(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{2:function(t,e,n){t.exports=n("zUnb")},CcZ5:function(t,e,n){var r;r=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n,r,o,i,a="object",u=function(t){return t&&t.Math==Math&&t},s=u(typeof globalThis==a&&globalThis)||u(typeof window==a&&window)||u(typeof self==a&&self)||u(typeof t==a&&t)||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},c=!l(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),h={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,d={f:p&&!h.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:h},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g={}.toString,v="".split,y=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==function(t){return g.call(t).slice(8,-1)}(t)?v.call(t,""):Object(t)}:Object,m=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},b=function(t){return y(m(t))},_=function(t){return"object"==typeof t?null!==t:"function"==typeof t},A=function(t,e){if(!_(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!_(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!_(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!_(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},w={}.hasOwnProperty,C=function(t,e){return w.call(t,e)},S=s.document,T=_(S)&&_(S.createElement),P=!c&&!l(function(){return 7!=Object.defineProperty(T?S.createElement("div"):{},"a",{get:function(){return 7}}).a}),E=Object.getOwnPropertyDescriptor,M={f:c?E:function(t,e){if(t=b(t),e=A(e,!0),P)try{return E(t,e)}catch(t){}if(C(t,e))return f(!d.f.call(t,e),t[e])}},k=function(t){if(!_(t))throw TypeError(String(t)+" is not an object");return t},O=Object.defineProperty,I={f:c?O:function(t,e,n){if(k(t),e=A(e,!0),k(n),P)try{return O(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},x=c?function(t,e,n){return I.f(t,e,f(1,n))}:function(t,e,n){return t[e]=n,t},D=function(t,e){try{x(s,t,e)}catch(n){s[t]=e}return e},N=e(function(t){var e=s["__core-js_shared__"]||D("__core-js_shared__",{});(t.exports=function(t,n){return e[t]||(e[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.1.3",mode:"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})}),R=N("native-function-to-string",Function.toString),B=s.WeakMap,G="function"==typeof B&&/native code/.test(R.call(B)),H=0,V=Math.random(),F=N("keys"),j={};if(G){var U=new(0,s.WeakMap),L=U.get,z=U.has,W=U.set;n=function(t,e){return W.call(U,t,e),e},r=function(t){return L.call(U,t)||{}},o=function(t){return z.call(U,t)}}else{var X=F[i="state"]||(F[i]=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++H+V).toString(36)}(i));j[X]=!0,n=function(t,e){return x(t,X,e),e},r=function(t){return C(t,X)?t[X]:{}},o=function(t){return C(t,X)}}var Q={set:n,get:r,has:o,enforce:function(t){return o(t)?r(t):n(t,{})},getterFor:function(t){return function(e){var n;if(!_(e)||(n=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},K=e(function(t){var e=Q.get,n=Q.enforce,r=String(R).split("toString");N("inspectSource",function(t){return R.call(t)}),(t.exports=function(t,e,o,i){var a=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||C(o,"name")||x(o,"name",e),n(o).source=r.join("string"==typeof e?e:"")),t!==s?(a?!l&&t[e]&&(u=!0):delete t[e],u?t[e]=o:x(t,e,o)):u?t[e]=o:D(e,o)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||R.call(this)})}),Y=s,Z=function(t){return"function"==typeof t?t:void 0},q=function(t,e){return arguments.length<2?Z(Y[t])||Z(s[t]):Y[t]&&Y[t][e]||s[t]&&s[t][e]},J=Math.ceil,$=Math.floor,tt=function(t){return isNaN(t=+t)?0:(t>0?$:J)(t)},et=Math.min,nt=function(t){return t>0?et(tt(t),9007199254740991):0},rt=Math.max,ot=Math.min,it=function(t){return function(e,n,r){var o,i=b(e),a=nt(i.length),u=function(t,e){var n=tt(r);return n<0?rt(n+e,0):ot(n,e)}(0,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},at=(it(!0),it(!1)),ut=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),st={f:Object.getOwnPropertyNames||function(t){return function(t,e){var n,r=b(t),o=0,i=[];for(n in r)!C(j,n)&&C(r,n)&&i.push(n);for(;e.length>o;)C(r,n=e[o++])&&(~at(i,n)||i.push(n));return i}(t,ut)}},lt={f:Object.getOwnPropertySymbols},ct=q("Reflect","ownKeys")||function(t){var e=st.f(k(t)),n=lt.f;return n?e.concat(n(t)):e},ht=function(t,e){for(var n=ct(e),r=I.f,o=M.f,i=0;i0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n},wt=Math.ceil,Ct=function(t){return function(e,n,r){var o,i,a=String(m(e)),u=a.length,s=void 0===r?" ":String(r),l=nt(n);return l<=u||""==s?a:((i=At.call(s,wt((o=l-u)/s.length))).length>o&&(i=i.slice(0,o)),t?a+i:i+a)}},St={start:Ct(!1),end:Ct(!0)},Tt=q("navigator","userAgent")||"",Pt=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(Tt),Et=St.end;_t({target:"String",proto:!0,forced:Pt},{padEnd:function(t){return Et(this,t,arguments.length>1?arguments[1]:void 0)}});var Mt=St.start;function kt(t){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ot(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function It(t,e){for(var n=0;n=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Vt(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ft(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Gt(t)););return t}function jt(t,e,n){return(jt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=Ft(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Ut(t,e,n,r){return(Ut="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,n,r){var o,i=Ft(t,e);if(i){if((o=Object.getOwnPropertyDescriptor(i,e)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,e)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,e,o)}else Dt(r,e,n);return!0})(t,e,n,r)}function Lt(t,e,n,r,o){if(!Ut(t,e,n,r||t)&&o)throw new Error("failed to set property");return n}function zt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Wt(t){return"string"==typeof t||t instanceof String}_t({target:"String",proto:!0,forced:Pt},{padStart:function(t){return Mt(this,t,arguments.length>1?arguments[1]:void 0)}}),_t({target:"String",proto:!0},{repeat:At});function Xt(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}var Qt="undefined"!=typeof window&&window||"undefined"!=typeof global&&global.global===global&&global||"undefined"!=typeof self&&self.self===self&&self||{},Kt=function(){function t(e,n,r,o){for(Ot(this,t),this.value=e,this.cursorPos=n,this.oldValue=r,this.oldSelection=o;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}return xt(t,[{key:"startChangePos",get:function(){return Math.min(this.cursorPos,this.oldSelection.start)}},{key:"insertedCount",get:function(){return this.cursorPos-this.startChangePos}},{key:"inserted",get:function(){return this.value.substr(this.startChangePos,this.insertedCount)}},{key:"removedCount",get:function(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}},{key:"removed",get:function(){return this.oldValue.substr(this.startChangePos,this.removedCount)}},{key:"head",get:function(){return this.value.substring(0,this.startChangePos)}},{key:"tail",get:function(){return this.value.substring(this.startChangePos+this.insertedCount)}},{key:"removeDirection",get:function(){return!this.removedCount||this.insertedCount?"NONE":this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos?"RIGHT":"LEFT"}}]),t}(),Yt=function(){function t(e){Ot(this,t),Nt(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},e)}return xt(t,[{key:"aggregate",value:function(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}},{key:"offset",get:function(){return this.tailShift+this.inserted.length}}]),t}(),Zt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;Ot(this,t),this.value=e,this.from=n,this.stop=r}return xt(t,[{key:"toString",value:function(){return this.value}},{key:"extend",value:function(t){this.value+=String(t)}},{key:"appendTo",value:function(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}},{key:"shiftBefore",value:function(t){if(this.from>=t||!this.value.length)return"";var e=this.value[0];return this.value=this.value.slice(1),e}},{key:"state",get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(t){Nt(this,t)}}]),t}(),qt=function(){function t(e){Ot(this,t),this._value="",this._update(e),this.isInitialized=!0}return xt(t,[{key:"updateOptions",value:function(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}},{key:"_update",value:function(t){Nt(this,t)}},{key:"reset",value:function(){this._value=""}},{key:"resolve",value:function(t){return this.reset(),this.append(t,{input:!0},""),this.doCommit(),this.value}},{key:"nearestInputPos",value:function(t,e){return t}},{key:"extractInput",value:function(){return this.value.slice(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length)}},{key:"extractTail",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Zt(this.extractInput(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length),t)}},{key:"appendTail",value:function(t){return Wt(t)&&(t=new Zt(String(t))),t.appendTo(this)}},{key:"_appendCharRaw",value:function(t){return(t=this.doPrepare(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))?(this._value+=t,new Yt({inserted:t,rawInserted:t})):new Yt}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=this.state,o=this._appendCharRaw(t,e);if(o.inserted){var i,a=!1!==this.doValidate(e);if(a&&null!=n){var u=this.state;this.overwrite&&(i=n.state,n.shiftBefore(this.value.length));var s=this.appendTail(n);(a=s.rawInserted===n.toString())&&s.inserted&&(this.state=u)}a||(o.rawInserted=o.inserted="",this.state=r,n&&i&&(n.state=i))}return o}},{key:"_appendPlaceholder",value:function(){return new Yt}},{key:"append",value:function(t,e,n){if(!Wt(t))throw new Error("value should be string");var r=new Yt,o=Wt(n)?new Zt(String(n)):n;e.tail&&(e._beforeTailState=this.state);for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:this.value.length;return this._value=this.value.slice(0,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+this.value.slice(t),new Yt}},{key:"withValueRefresh",value:function(t){if(this._refreshing||!this.isInitialized)return t();this._refreshing=!0;var e=this.unmaskedValue,n=this.value,r=t();return this.resolve(n)!==n&&(this.unmaskedValue=e),delete this._refreshing,r}},{key:"doPrepare",value:function(t){return this.prepare?this.prepare(t,this,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}):t}},{key:"doValidate",value:function(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}},{key:"doCommit",value:function(){this.commit&&this.commit(this.value,this)}},{key:"splice",value:function(t,e,n,r){var o=this.extractTail(t+e),i=this.nearestInputPos(t,r);return new Yt({tailShift:i-t}).aggregate(this.remove(i)).aggregate(this.append(n,{input:!0},o))}},{key:"state",get:function(){return{_value:this.value}},set:function(t){this._value=t._value}},{key:"value",get:function(){return this._value},set:function(t){this.resolve(t)}},{key:"unmaskedValue",get:function(){return this.value},set:function(t){this.reset(),this.append(t,{},""),this.doCommit()}},{key:"typedValue",get:function(){return this.unmaskedValue},set:function(t){this.unmaskedValue=t}},{key:"rawInputValue",get:function(){return this.extractInput(0,this.value.length,{raw:!0})},set:function(t){this.reset(),this.append(t,{raw:!0},""),this.doCommit()}},{key:"isComplete",get:function(){return!0}}]),t}();function Jt(t){if(null==t)throw new Error("mask property should be defined");return t instanceof RegExp?Qt.IMask.MaskedRegExp:Wt(t)?Qt.IMask.MaskedPattern:t instanceof Date||t===Date?Qt.IMask.MaskedDate:t instanceof Number||"number"==typeof t||t===Number?Qt.IMask.MaskedNumber:Array.isArray(t)||t===Array?Qt.IMask.MaskedDynamic:t.prototype instanceof Qt.IMask.Masked?t:t instanceof Function?Qt.IMask.MaskedFunction:(console.warn("Mask not found for mask",t),Qt.IMask.Masked)}function $t(t){var e=(t=Rt({},t)).mask;return e instanceof Qt.IMask.Masked?e:new(Jt(e))(t)}var te={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},ee=function(){function t(e){Ot(this,t);var n=e.mask,r=Ht(e,["mask"]);this.masked=$t({mask:n}),Nt(this,r)}return xt(t,[{key:"reset",value:function(){this._isFilled=!1,this.masked.reset()}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length;return 0===t&&e>=1?(this._isFilled=!1,this.masked.remove(t,e)):new Yt}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._isFilled)return new Yt;var n=this.masked.state,r=this.masked._appendChar(t,e);return r.inserted&&!1===this.doValidate(e)&&(r.inserted=r.rawInserted="",this.masked.state=n),r.inserted||this.isOptional||this.lazy||e.input||(r.inserted=this.placeholderChar),r.skip=!r.inserted&&!this.isOptional,this._isFilled=Boolean(r.inserted),r}},{key:"append",value:function(){var t;return(t=this.masked).append.apply(t,arguments)}},{key:"_appendPlaceholder",value:function(){var t=new Yt;return this._isFilled||this.isOptional?t:(this._isFilled=!0,t.inserted=this.placeholderChar,t)}},{key:"extractTail",value:function(){var t;return(t=this.masked).extractTail.apply(t,arguments)}},{key:"appendTail",value:function(){var t;return(t=this.masked).appendTail.apply(t,arguments)}},{key:"extractInput",value:function(){return this.masked.extractInput(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,arguments.length>2?arguments[2]:void 0)}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"NONE",n=this.value.length,r=Math.min(Math.max(t,0),n);switch(e){case"LEFT":case"FORCE_LEFT":return this.isComplete?r:0;case"RIGHT":case"FORCE_RIGHT":return this.isComplete?r:n;case"NONE":default:return r}}},{key:"doValidate",value:function(){var t,e;return(t=this.masked).doValidate.apply(t,arguments)&&(!this.parent||(e=this.parent).doValidate.apply(e,arguments))}},{key:"doCommit",value:function(){this.masked.doCommit()}},{key:"value",get:function(){return this.masked.value||(this._isFilled&&!this.isOptional?this.placeholderChar:"")}},{key:"unmaskedValue",get:function(){return this.masked.unmaskedValue}},{key:"isComplete",get:function(){return Boolean(this.masked.value)||this.isOptional}},{key:"state",get:function(){return{masked:this.masked.state,_isFilled:this._isFilled}},set:function(t){this.masked.state=t.masked,this._isFilled=t._isFilled}}]),t}(),ne=function(){function t(e){Ot(this,t),Nt(this,e),this._value=""}return xt(t,[{key:"reset",value:function(){this._isRawInput=!1,this._value=""}},{key:"remove",value:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length;return this._value=this._value.slice(0,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+this._value.slice(t),this._value||(this._isRawInput=!1),new Yt}},{key:"nearestInputPos",value:function(t){var e=this._value.length;switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"NONE"){case"LEFT":case"FORCE_LEFT":return 0;case"NONE":case"RIGHT":case"FORCE_RIGHT":default:return e}}},{key:"extractInput",value:function(){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._value.length)||""}},{key:"_appendChar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Yt;if(this._value)return n;var r=this.char===t[0]&&(this.isUnmasking||e.input||e.raw)&&!e.tail;return r&&(n.rawInserted=this.char),this._value=n.inserted=this.char,this._isRawInput=r&&(e.raw||e.input),n}},{key:"_appendPlaceholder",value:function(){var t=new Yt;return this._value?t:(this._value=t.inserted=this.char,t)}},{key:"extractTail",value:function(){return new Zt("")}},{key:"appendTail",value:function(t){return Wt(t)&&(t=new Zt(String(t))),t.appendTo(this)}},{key:"append",value:function(t,e,n){var r=this._appendChar(t,e);return null!=n&&(r.tailShift+=this.appendTail(n).tailShift),r}},{key:"doCommit",value:function(){}},{key:"value",get:function(){return this._value}},{key:"unmaskedValue",get:function(){return this.isUnmasking?this.value:""}},{key:"isComplete",get:function(){return!0}},{key:"state",get:function(){return{_value:this._value,_isRawInput:this._isRawInput}},set:function(t){Nt(this,t)}}]),t}(),re=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ot(this,t),this.chunks=e,this.from=n}return xt(t,[{key:"toString",value:function(){return this.chunks.map(String).join("")}},{key:"extend",value:function(e){if(String(e)){Wt(e)&&(e=new Zt(String(e)));var n=this.chunks[this.chunks.length-1],r=n&&(n.stop===e.stop||null==e.stop)&&e.from===n.from+n.toString().length;if(e instanceof Zt)r?n.extend(e.toString()):this.chunks.push(e);else if(e instanceof t){if(null==e.stop)for(var o;e.chunks.length&&null==e.chunks[0].stop;)(o=e.chunks.shift()).from+=e.from,this.extend(o);e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}}},{key:"appendTo",value:function(e){if(!(e instanceof Qt.IMask.MaskedPattern))return new Zt(this.toString()).appendTo(e);for(var n=new Yt,r=0;r=0)&&n.aggregate(e._appendPlaceholder(a)),u=o instanceof t&&e._blocks[a]),u){var s=u.appendTail(o);s.skip=!1,n.aggregate(s),e._value+=s.inserted;var l=o.toString().slice(s.rawInserted.length);l&&n.aggregate(e.append(l,{tail:!0}))}else n.aggregate(e.append(o.toString(),{tail:!0}))}return n}},{key:"shiftBefore",value:function(t){if(this.from>=t||!this.chunks.length)return"";for(var e=t-this.from,n=0;n0&&void 0!==arguments[0]?arguments[0]:{};return Ot(this,e),t.definitions=Nt({},te,t.definitions),Vt(this,Gt(e).call(this,Rt({},e.DEFAULTS,{},t)))}return Bt(e,qt),xt(e,[{key:"_update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.definitions=Nt({},this.definitions,t.definitions),jt(Gt(e.prototype),"_update",this).call(this,t),this._rebuildMask()}},{key:"_rebuildMask",value:function(){var t=this,n=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};var r=this.mask;if(r&&n)for(var o=!1,i=!1,a=0;a1&&void 0!==arguments[1]?arguments[1]:{};t=this.doPrepare(t,e);var n=this._mapPosToBlock(this.value.length),r=new Yt;if(!n)return r;for(var o=n.index;;++o){var i=this._blocks[o];if(!i)break;var a=i._appendChar(t,e),u=a.skip;if(r.aggregate(a),u||a.rawInserted)break}return r}},{key:"extractTail",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=new re;return e===n?r:(this._forEachBlocksInRange(e,n,function(e,n,o,i){var a=e.extractTail(o,i);a.stop=t._findStopBefore(n),a.from=t._blockStartPos(n),a instanceof re&&(a.blockIndex=n),r.extend(a)}),r)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t===e)return"";var r="";return this._forEachBlocksInRange(t,e,function(t,e,o,i){r+=t.extractInput(o,i,n)}),r}},{key:"_findStopBefore",value:function(t){for(var e,n=0;n1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=arguments.length>2?arguments[2]:void 0,r=this._mapPosToBlock(t);if(r){var o=this._mapPosToBlock(e),i=o&&r.index===o.index;if(n(this._blocks[r.index],r.index,r.offset,o&&i?o.offset:this._blocks[r.index].value.length),o&&!i){for(var a=r.index+1;a0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=jt(Gt(e.prototype),"remove",this).call(this,t,n);return this._forEachBlocksInRange(t,n,function(t,e,n,o){r.aggregate(t.remove(n,o))}),r}},{key:"nearestInputPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"NONE",n=this._mapPosToBlock(t)||{index:0,offset:0},r=n.offset,o=n.index,i=this._blocks[o];if(!i)return t;var a=r;0!==a&&a0){var l=this._blocks[s-1],c=l.nearestInputPos(0,"NONE");if(!l.value.length||c!==l.value.length)return this._blockStartPos(s)}for(var h=s;h=0;--f){var g=this._blocks[f],v=g.nearestInputPos(0,"NONE");if(!g.value.length||v!==g.value.length)return this._blockStartPos(f)+g.value.length}return t}if("LEFT"===e||"FORCE_LEFT"===e){for(var y,m=s;m=0;--C){var S=this._blocks[C],T=S.nearestInputPos(S.value.length,"FORCE_LEFT");if(S.value&&0===T||(A=C),0!==T){if(T!==S.value.length)return this._blockStartPos(C)+T;w=C;break}}if("LEFT"===e)for(var P=w+1;P<=Math.min(s,this._blocks.length-1);++P){var E=this._blocks[P],M=E.nearestInputPos(0,"NONE"),k=this._blockStartPos(P)+M;if(k>t)break;if(M!==E.value.length)return k}if(w>=0)return this._blockStartPos(w)+this._blocks[w].value.length;if("FORCE_LEFT"===e||this.lazy&&!this.extractInput()&&!function(t){if(!t)return!1;var e=t.value;return!e||t.nearestInputPos(0,"NONE")!==e.length}(this._blocks[s]))return 0;if(null!=A)return this._blockStartPos(A);for(var O=s;O=0;--j){var U=this._blocks[j],L=U.nearestInputPos(U.value.length,"LEFT");if(0!==L){var z=this._blockStartPos(j)+L;if(z>=t)return z;break}}}return t}},{key:"maskedBlock",value:function(t){return this.maskedBlocks(t)[0]}},{key:"maskedBlocks",value:function(t){var e=this,n=this._maskedBlocks[t];return n?n.map(function(t){return e._blocks[t]}):[]}},{key:"state",get:function(){return Rt({},jt(Gt(e.prototype),"state",this),{_blocks:this._blocks.map(function(t){return t.state})})},set:function(t){var n=t._blocks,r=Ht(t,["_blocks"]);this._blocks.forEach(function(t,e){return t.state=n[e]}),Lt(Gt(e.prototype),"state",r,this,!0)}},{key:"isComplete",get:function(){return this._blocks.every(function(t){return t.isComplete})}},{key:"unmaskedValue",get:function(){return this._blocks.reduce(function(t,e){return t+e.unmaskedValue},"")},set:function(t){Lt(Gt(e.prototype),"unmaskedValue",t,this,!0)}},{key:"value",get:function(){return this._blocks.reduce(function(t,e){return t+e.value},"")},set:function(t){Lt(Gt(e.prototype),"value",t,this,!0)}}]),e}();oe.DEFAULTS={lazy:!0,placeholderChar:"_"},oe.STOP_CHAR="`",oe.ESCAPE_CHAR="\\",oe.InputDefinition=ee,oe.FixedDefinition=ne;var ie=function(t){function e(){return Ot(this,e),Vt(this,Gt(e).apply(this,arguments))}return Bt(e,oe),xt(e,[{key:"_update",value:function(t){t=Rt({to:this.to||0,from:this.from||0},t);var n=String(t.to).length;null!=t.maxLength&&(n=Math.max(n,t.maxLength)),t.maxLength=n;for(var r=String(t.from).padStart(n,"0"),o=String(t.to).padStart(n,"0"),i=0;i1&&void 0!==arguments[1]?arguments[1]:{};if(t=jt(Gt(e.prototype),"doPrepare",this).call(this,t,n).replace(/\D/g,""),!this.autofix)return t;for(var r=String(this.from).padStart(this.maxLength,"0"),o=String(this.to).padStart(this.maxLength,"0"),i=this.value,a="",u=0;uthis.to?a+=o[s.length-1]:a+=t[u]}return a}},{key:"doValidate",value:function(){var t,n=this.value;if(-1===n.search(/[^0]/)&&n.length<=this._matchFrom)return!0;for(var r=zt(this.boundaries(n),2),o=r[0],i=r[1],a=arguments.length,u=new Array(a),s=0;s=0&&this._listeners[t].splice(n,1),this}},{key:"_onInput",value:function(){if(this._abortUpdateCursor(),!this._selection)return this.updateValue();var t=new Kt(this.el.value,this.cursorPos,this.value,this._selection),e=this.masked.rawInputValue,n=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection).offset,r=this.masked.nearestInputPos(t.startChangePos+n,e===this.masked.rawInputValue?t.removeDirection:"NONE");this.updateControl(),this.updateCursor(r)}},{key:"_onChange",value:function(){this.value!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}},{key:"_onDrop",value:function(t){t.preventDefault(),t.stopPropagation()}},{key:"_onFocus",value:function(t){this.selectionStart===this.cursorPos&&(this._selection&&(this.cursorPos=this._selection.end),this.alignCursorFriendly())}},{key:"destroy",value:function(){this._unbindEvents(),this._listeners.length=0,delete this.el}},{key:"mask",get:function(){return this.masked.mask},set:function(t){if(!(null==t||t===this.masked.mask||t===Date&&this.masked instanceof ae))if(this.masked.constructor!==Jt(t)){var e=$t({mask:t});e.unmaskedValue=this.masked.unmaskedValue,this.masked=e}else this.masked.updateOptions({mask:t})}},{key:"value",get:function(){return this._value},set:function(t){this.masked.value=t,this.updateControl(),this.alignCursor()}},{key:"unmaskedValue",get:function(){return this._unmaskedValue},set:function(t){this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor()}},{key:"typedValue",get:function(){return this.masked.typedValue},set:function(t){this.masked.typedValue=t,this.updateControl(),this.alignCursor()}},{key:"selectionStart",get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}},{key:"cursorPos",get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd},set:function(t){this.el.isActive&&(this.el.select(t,t),this._saveSelection())}}]),t}(),ce=function(t){function e(){return Ot(this,e),Vt(this,Gt(e).apply(this,arguments))}return Bt(e,oe),xt(e,[{key:"_update",value:function(t){t.enum&&(t.mask="*".repeat(t.enum[0].length)),jt(Gt(e.prototype),"_update",this).call(this,t)}},{key:"doValidate",value:function(){for(var t,n=this,r=arguments.length,o=new Array(r),i=0;i=0})&&(t=jt(Gt(e.prototype),"doValidate",this)).call.apply(t,[this].concat(o))}}]),e}(),he=function(t){function e(t){return Ot(this,e),Vt(this,Gt(e).call(this,Rt({},e.DEFAULTS,{},t)))}return Bt(e,qt),xt(e,[{key:"_update",value:function(t){jt(Gt(e.prototype),"_update",this).call(this,t),this._updateRegExps()}},{key:"_updateRegExps",value:function(){var t="^"+(this.allowNegative?"[+|\\-]?":""),e=(this.scale?"("+Xt(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExpInput=new RegExp(t+"(0|([1-9]+\\d*))?"+e),this._numberRegExp=new RegExp(t+"\\d*"+e),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(Xt).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(Xt(this.thousandsSeparator),"g")}},{key:"_removeThousandsSeparators",value:function(t){return t.replace(this._thousandsSeparatorRegExp,"")}},{key:"_insertThousandsSeparators",value:function(t){var e=t.split(this.radix);return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),e.join(this.radix)}},{key:"doPrepare",value:function(t){for(var n,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i1&&void 0!==arguments[1]&&arguments[1],n=0,r=0;r0&&void 0!==arguments[0]?arguments[0]:this._value).length,!0)}},{key:"extractInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,r=arguments.length>2?arguments[2]:void 0,o=zt(this._adjustRangeWithSeparators(t,n),2);return t=o[0],n=o[1],this._removeThousandsSeparators(jt(Gt(e.prototype),"extractInput",this).call(this,t,n,r))}},{key:"_appendCharRaw",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.thousandsSeparator)return jt(Gt(e.prototype),"_appendCharRaw",this).call(this,t,n);var r=this._separatorsCountFromSlice(n.tail&&n._beforeTailState?n._beforeTailState._value:this._value);this._value=this._removeThousandsSeparators(this.value);var o=jt(Gt(e.prototype),"_appendCharRaw",this).call(this,t,n);this._value=this._insertThousandsSeparators(this._value);var i=this._separatorsCountFromSlice(n.tail&&n._beforeTailState?n._beforeTailState._value:this._value);return o.tailShift+=(i-r)*this.thousandsSeparator.length,o}},{key:"_findSeparatorAround",value:function(t){if(this.thousandsSeparator){var e=this.value.indexOf(this.thousandsSeparator,t-this.thousandsSeparator.length+1);if(e<=t)return e}return-1}},{key:"_adjustRangeWithSeparators",value:function(t,e){var n=this._findSeparatorAround(t);n>=0&&(t=n);var r=this._findSeparatorAround(e);return r>=0&&(e=r+this.thousandsSeparator.length),[t,e]}},{key:"remove",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.value.length,n=zt(this._adjustRangeWithSeparators(t,e),2);e=n[1];var r=this.value.slice(0,t=n[0]),o=this.value.slice(e),i=this._separatorsCount(r.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(r+o));var a=this._separatorsCountFromSlice(r);return new Yt({tailShift:(a-i)*this.thousandsSeparator.length})}},{key:"nearestInputPos",value:function(t,e){if(!this.thousandsSeparator)return t;switch(e){case"NONE":case"LEFT":case"FORCE_LEFT":var n=this._findSeparatorAround(t-1);if(n>=0){var r=n+this.thousandsSeparator.length;if(t=0)return o+this.thousandsSeparator.length}return t}},{key:"doValidate",value:function(t){var n=(t.input?this._numberRegExpInput:this._numberRegExp).test(this._removeThousandsSeparators(this.value));return n&&(n=n&&!isNaN(this.number)&&(null==this.min||this.min>=0||this.min<=this.number)&&(null==this.max||this.max<=0||this.number<=this.max)),n&&jt(Gt(e.prototype),"doValidate",this).call(this,t)}},{key:"doCommit",value:function(){if(this.value){var t=this.number,n=t;null!=this.min&&(n=Math.max(n,this.min)),null!=this.max&&(n=Math.min(n,this.max)),n!==t&&(this.unmaskedValue=String(n));var r=this.value;this.normalizeZeros&&(r=this._normalizeZeros(r)),this.padFractionalZeros&&(r=this._padFractionalZeros(r)),this._value=r}jt(Gt(e.prototype),"doCommit",this).call(this)}},{key:"_normalizeZeros",value:function(t){var e=this._removeThousandsSeparators(t).split(this.radix);return e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,function(t,e,n,r){return e+r}),t.length&&!/\d$/.test(e[0])&&(e[0]=e[0]+"0"),e.length>1&&(e[1]=e[1].replace(/0*$/,""),e[1].length||(e.length=1)),this._insertThousandsSeparators(e.join(this.radix))}},{key:"_padFractionalZeros",value:function(t){if(!t)return t;var e=t.split(this.radix);return e.length<2&&e.push(""),e[1]=e[1].padEnd(this.scale,"0"),e.join(this.radix)}},{key:"unmaskedValue",get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,".")},set:function(t){Lt(Gt(e.prototype),"unmaskedValue",t.replace(".",this.radix),this,!0)}},{key:"number",get:function(){return Number(this.unmaskedValue)},set:function(t){this.unmaskedValue=String(t)}},{key:"typedValue",get:function(){return this.number},set:function(t){this.number=t}},{key:"allowNegative",get:function(){return this.signed||null!=this.min&&this.min<0||null!=this.max&&this.max<0}}]),e}();he.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:["."],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1};var pe=function(t){function e(){return Ot(this,e),Vt(this,Gt(e).apply(this,arguments))}return Bt(e,qt),xt(e,[{key:"_update",value:function(t){t.mask&&(t.validate=function(e){return e.search(t.mask)>=0}),jt(Gt(e.prototype),"_update",this).call(this,t)}}]),e}(),de=function(t){function e(){return Ot(this,e),Vt(this,Gt(e).apply(this,arguments))}return Bt(e,qt),xt(e,[{key:"_update",value:function(t){t.mask&&(t.validate=t.mask),jt(Gt(e.prototype),"_update",this).call(this,t)}}]),e}(),fe=function(t){function e(t){var n;return Ot(this,e),(n=Vt(this,Gt(e).call(this,Rt({},e.DEFAULTS,{},t)))).currentMask=null,n}return Bt(e,qt),xt(e,[{key:"_update",value:function(t){jt(Gt(e.prototype),"_update",this).call(this,t),"mask"in t&&(this.compiledMasks=Array.isArray(t.mask)?t.mask.map(function(t){return $t(t)}):[])}},{key:"_appendCharRaw",value:function(){var t,e=this._applyDispatch.apply(this,arguments);return this.currentMask&&e.aggregate((t=this.currentMask)._appendChar.apply(t,arguments)),e}},{key:"_applyDispatch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.tail&&null!=e._beforeTailState?e._beforeTailState._value:this.value,r=this.rawInputValue,o=e.tail&&null!=e._beforeTailState?e._beforeTailState._rawInputValue:r,i=r.slice(o.length),a=this.currentMask,u=new Yt,s=a&&a.state;if(this.currentMask=this.doDispatch(t,Rt({},e)),this.currentMask)if(this.currentMask!==a){this.currentMask.reset();var l=this.currentMask.append(o,{raw:!0});u.tailShift=l.inserted.length-n.length,i&&(u.tailShift+=this.currentMask.append(i,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=s;return u}},{key:"_appendPlaceholder",value:function(){var t=this._applyDispatch.apply(this,arguments);return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}},{key:"doDispatch",value:function(t){return this.dispatch(t,this,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},{key:"doValidate",value:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:{})}return fe.DEFAULTS={dispatch:function(t,e,n){if(e.compiledMasks.length){var r=e.rawInputValue,o=e.compiledMasks.map(function(e,o){return e.reset(),e.append(r,{raw:!0}),e.append(t,n),{weight:e.rawInputValue.length,index:o}});return o.sort(function(t,e){return e.weight-t.weight}),e.compiledMasks[o[0].index]}}},ge.InputMask=le,ge.Masked=qt,ge.MaskedPattern=oe,ge.MaskedEnum=ce,ge.MaskedRange=ie,ge.MaskedNumber=he,ge.MaskedDate=ae,ge.MaskedRegExp=pe,ge.MaskedFunction=de,ge.MaskedDynamic=fe,ge.createMask=$t,ge.MaskElement=ue,ge.HTMLMaskElement=se,Qt.IMask=ge,ge},t.exports=r()},PDX0:function(t,e){(function(e){t.exports=e}).call(this,{})},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error('Cannot find module "'+t+'".');throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},zMKE:function(t,e,n){var r;!function(){"use strict";var e="input is invalid type",o="object"==typeof window,i=o?window:{};i.JS_SHA512_NO_WINDOW&&(o=!1);var a=!o&&"object"==typeof self;!i.JS_SHA512_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?i=global:a&&(i=self);var u=!i.JS_SHA512_NO_COMMON_JS&&"object"==typeof t&&t.exports,s=n("PDX0"),l=!i.JS_SHA512_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),h=[-2147483648,8388608,32768,128],p=[24,16,8,0],d=[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],f=["hex","array","digest","arrayBuffer"],g=[];!i.JS_SHA512_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!l||!i.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var v=function(t,e){return function(n){return new _(e,!0).update(n)[t]()}},y=function(t){var e=v("hex",t);e.create=function(){return new _(t)},e.update=function(t){return e.create().update(t)};for(var n=0;n>6,s[c++]=128|63&u):u<55296||u>=57344?(s[c++]=224|u>>12,s[c++]=128|u>>6&63,s[c++]=128|63&u):(u=65536+((1023&u)<<10|1023&t.charCodeAt(++h)),s[c++]=240|u>>18,s[c++]=128|u>>12&63,s[c++]=128|u>>6&63,s[c++]=128|63&u);t=s}t.length>128&&(t=new _(n,!0).update(t).array());var p=[],d=[];for(h=0;h<128;++h){var f=t[h]||0;p[h]=92^f,d[h]=54^f}_.call(this,n,r),this.update(d),this.oKeyPad=p,this.inner=!0,this.sharedMemory=r}_.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var n,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(e);if(null===t)throw new Error(e);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||l&&ArrayBuffer.isView(t)))throw new Error(e);n=!0}for(var o,i,a=0,u=t.length,s=this.blocks;a>2]|=t[a]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(s[i>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=128?(this.block=s[32],this.start=i-128,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},_.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[32]=this.block,t[e>>2]|=h[3&e],this.block=t[32],e>=112&&(this.hashed||this.hash(),t[0]=this.block,t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=t[16]=t[17]=t[18]=t[19]=t[20]=t[21]=t[22]=t[23]=t[24]=t[25]=t[26]=t[27]=t[28]=t[29]=t[30]=t[31]=t[32]=0),t[30]=this.hBytes<<3|this.bytes>>>29,t[31]=this.bytes<<3,this.hash()}},_.prototype.hash=function(){var t,e,n,r,o,i,a,u,s,l,c,h,p,f,g,v,y,m,b,_,A,w,C,S,T=this.h0h,P=this.h0l,E=this.h1h,M=this.h1l,k=this.h2h,O=this.h2l,I=this.h3h,x=this.h3l,D=this.h4h,N=this.h4l,R=this.h5h,B=this.h5l,G=this.h6h,H=this.h6l,V=this.h7h,F=this.h7l,j=this.blocks;for(t=32;t<160;t+=2)e=((b=j[t-30])>>>1|(_=j[t-29])<<31)^(b>>>8|_<<24)^b>>>7,n=(_>>>1|b<<31)^(_>>>8|b<<24)^(_>>>7|b<<25),r=((b=j[t-4])>>>19|(_=j[t-3])<<13)^(_>>>29|b<<3)^b>>>6,o=(_>>>19|b<<13)^(b>>>29|_<<3)^(_>>>6|b<<26),j[t]=((A=j[t-14])>>>16)+((b=j[t-32])>>>16)+(e>>>16)+(r>>>16)+((u=(65535&A)+(65535&b)+(65535&e)+(65535&r)+((a=((w=j[t-13])>>>16)+((_=j[t-31])>>>16)+(n>>>16)+(o>>>16)+((i=(65535&w)+(65535&_)+(65535&n)+(65535&o))>>>16))>>>16))>>>16)<<16|65535&u,j[t+1]=a<<16|65535&i;var U=T,L=P,z=E,W=M,X=k,Q=O,K=I,Y=x,Z=D,q=N,J=R,$=B,tt=G,et=H,nt=V,rt=F;for(g=z&X,v=W&Q,t=0;t<160;t+=8)b=((A=d[t])>>>16)+((b=j[t])>>>16)+((C=Z&J^~Z&tt)>>>16)+((r=(Z>>>14|q<<18)^(Z>>>18|q<<14)^(q>>>9|Z<<23))>>>16)+(nt>>>16)+((u=(65535&A)+(65535&b)+(65535&C)+(65535&r)+(65535&nt)+((a=((w=d[t+1])>>>16)+((_=j[t+1])>>>16)+((S=q&$^~q&et)>>>16)+((o=(q>>>14|Z<<18)^(q>>>18|Z<<14)^(Z>>>9|q<<23))>>>16)+(rt>>>16)+((i=(65535&w)+(65535&_)+(65535&S)+(65535&o)+(65535&rt))>>>16))>>>16))>>>16)<<16|65535&u,_=a<<16|65535&i,A=((y=(s=U&z)^U&X^g)>>>16)+((e=(U>>>28|L<<4)^(L>>>2|U<<30)^(L>>>7|U<<25))>>>16)+((u=(65535&y)+(65535&e)+((a=((m=(l=L&W)^L&Q^v)>>>16)+((n=(L>>>28|U<<4)^(U>>>2|L<<30)^(U>>>7|L<<25))>>>16)+((i=(65535&m)+(65535&n))>>>16))>>>16))>>>16)<<16|65535&u,w=a<<16|65535&i,nt=(K>>>16)+(b>>>16)+((u=(65535&K)+(65535&b)+((a=(Y>>>16)+(_>>>16)+((i=(65535&Y)+(65535&_))>>>16))>>>16))>>>16)<<16|65535&u,rt=a<<16|65535&i,K=(A>>>16)+(b>>>16)+((u=(65535&A)+(65535&b)+((a=(w>>>16)+(_>>>16)+((i=(65535&w)+(65535&_))>>>16))>>>16))>>>16)<<16|65535&u,Y=a<<16|65535&i,b=((A=d[t+2])>>>16)+((b=j[t+2])>>>16)+((C=nt&Z^~nt&J)>>>16)+((r=(nt>>>14|rt<<18)^(nt>>>18|rt<<14)^(rt>>>9|nt<<23))>>>16)+(tt>>>16)+((u=(65535&A)+(65535&b)+(65535&C)+(65535&r)+(65535&tt)+((a=((w=d[t+3])>>>16)+((_=j[t+3])>>>16)+((S=rt&q^~rt&$)>>>16)+((o=(rt>>>14|nt<<18)^(rt>>>18|nt<<14)^(nt>>>9|rt<<23))>>>16)+(et>>>16)+((i=(65535&w)+(65535&_)+(65535&S)+(65535&o)+(65535&et))>>>16))>>>16))>>>16)<<16|65535&u,_=a<<16|65535&i,A=((y=(c=K&U)^K&z^s)>>>16)+((e=(K>>>28|Y<<4)^(Y>>>2|K<<30)^(Y>>>7|K<<25))>>>16)+((u=(65535&y)+(65535&e)+((a=((m=(h=Y&L)^Y&W^l)>>>16)+((n=(Y>>>28|K<<4)^(K>>>2|Y<<30)^(K>>>7|Y<<25))>>>16)+((i=(65535&m)+(65535&n))>>>16))>>>16))>>>16)<<16|65535&u,w=a<<16|65535&i,tt=(X>>>16)+(b>>>16)+((u=(65535&X)+(65535&b)+((a=(Q>>>16)+(_>>>16)+((i=(65535&Q)+(65535&_))>>>16))>>>16))>>>16)<<16|65535&u,et=a<<16|65535&i,X=(A>>>16)+(b>>>16)+((u=(65535&A)+(65535&b)+((a=(w>>>16)+(_>>>16)+((i=(65535&w)+(65535&_))>>>16))>>>16))>>>16)<<16|65535&u,Q=a<<16|65535&i,b=((A=d[t+4])>>>16)+((b=j[t+4])>>>16)+((C=tt&nt^~tt&Z)>>>16)+((r=(tt>>>14|et<<18)^(tt>>>18|et<<14)^(et>>>9|tt<<23))>>>16)+(J>>>16)+((u=(65535&A)+(65535&b)+(65535&C)+(65535&r)+(65535&J)+((a=((w=d[t+5])>>>16)+((_=j[t+5])>>>16)+((S=et&rt^~et&q)>>>16)+((o=(et>>>14|tt<<18)^(et>>>18|tt<<14)^(tt>>>9|et<<23))>>>16)+($>>>16)+((i=(65535&w)+(65535&_)+(65535&S)+(65535&o)+(65535&$))>>>16))>>>16))>>>16)<<16|65535&u,_=a<<16|65535&i,A=((y=(p=X&K)^X&U^c)>>>16)+((e=(X>>>28|Q<<4)^(Q>>>2|X<<30)^(Q>>>7|X<<25))>>>16)+((u=(65535&y)+(65535&e)+((a=((m=(f=Q&Y)^Q&L^h)>>>16)+((n=(Q>>>28|X<<4)^(X>>>2|Q<<30)^(X>>>7|Q<<25))>>>16)+((i=(65535&m)+(65535&n))>>>16))>>>16))>>>16)<<16|65535&u,w=a<<16|65535&i,J=(z>>>16)+(b>>>16)+((u=(65535&z)+(65535&b)+((a=(W>>>16)+(_>>>16)+((i=(65535&W)+(65535&_))>>>16))>>>16))>>>16)<<16|65535&u,$=a<<16|65535&i,z=(A>>>16)+(b>>>16)+((u=(65535&A)+(65535&b)+((a=(w>>>16)+(_>>>16)+((i=(65535&w)+(65535&_))>>>16))>>>16))>>>16)<<16|65535&u,W=a<<16|65535&i,b=((A=d[t+6])>>>16)+((b=j[t+6])>>>16)+((C=J&tt^~J&nt)>>>16)+((r=(J>>>14|$<<18)^(J>>>18|$<<14)^($>>>9|J<<23))>>>16)+(Z>>>16)+((u=(65535&A)+(65535&b)+(65535&C)+(65535&r)+(65535&Z)+((a=((w=d[t+7])>>>16)+((_=j[t+7])>>>16)+((S=$&et^~$&rt)>>>16)+((o=($>>>14|J<<18)^($>>>18|J<<14)^(J>>>9|$<<23))>>>16)+(q>>>16)+((i=(65535&w)+(65535&_)+(65535&S)+(65535&o)+(65535&q))>>>16))>>>16))>>>16)<<16|65535&u,_=a<<16|65535&i,A=((y=(g=z&X)^z&K^p)>>>16)+((e=(z>>>28|W<<4)^(W>>>2|z<<30)^(W>>>7|z<<25))>>>16)+((u=(65535&y)+(65535&e)+((a=((m=(v=W&Q)^W&Y^f)>>>16)+((n=(W>>>28|z<<4)^(z>>>2|W<<30)^(z>>>7|W<<25))>>>16)+((i=(65535&m)+(65535&n))>>>16))>>>16))>>>16)<<16|65535&u,w=a<<16|65535&i,Z=(U>>>16)+(b>>>16)+((u=(65535&U)+(65535&b)+((a=(L>>>16)+(_>>>16)+((i=(65535&L)+(65535&_))>>>16))>>>16))>>>16)<<16|65535&u,q=a<<16|65535&i,U=(A>>>16)+(b>>>16)+((u=(65535&A)+(65535&b)+((a=(w>>>16)+(_>>>16)+((i=(65535&w)+(65535&_))>>>16))>>>16))>>>16)<<16|65535&u,L=a<<16|65535&i;this.h0h=(T>>>16)+(U>>>16)+((u=(65535&T)+(65535&U)+((a=(P>>>16)+(L>>>16)+((i=(65535&P)+(65535&L))>>>16))>>>16))>>>16)<<16|65535&u,this.h0l=a<<16|65535&i,this.h1h=(E>>>16)+(z>>>16)+((u=(65535&E)+(65535&z)+((a=(M>>>16)+(W>>>16)+((i=(65535&M)+(65535&W))>>>16))>>>16))>>>16)<<16|65535&u,this.h1l=a<<16|65535&i,this.h2h=(k>>>16)+(X>>>16)+((u=(65535&k)+(65535&X)+((a=(O>>>16)+(Q>>>16)+((i=(65535&O)+(65535&Q))>>>16))>>>16))>>>16)<<16|65535&u,this.h2l=a<<16|65535&i,this.h3h=(I>>>16)+(K>>>16)+((u=(65535&I)+(65535&K)+((a=(x>>>16)+(Y>>>16)+((i=(65535&x)+(65535&Y))>>>16))>>>16))>>>16)<<16|65535&u,this.h3l=a<<16|65535&i,this.h4h=(D>>>16)+(Z>>>16)+((u=(65535&D)+(65535&Z)+((a=(N>>>16)+(q>>>16)+((i=(65535&N)+(65535&q))>>>16))>>>16))>>>16)<<16|65535&u,this.h4l=a<<16|65535&i,this.h5h=(R>>>16)+(J>>>16)+((u=(65535&R)+(65535&J)+((a=(B>>>16)+($>>>16)+((i=(65535&B)+(65535&$))>>>16))>>>16))>>>16)<<16|65535&u,this.h5l=a<<16|65535&i,this.h6h=(G>>>16)+(tt>>>16)+((u=(65535&G)+(65535&tt)+((a=(H>>>16)+(et>>>16)+((i=(65535&H)+(65535&et))>>>16))>>>16))>>>16)<<16|65535&u,this.h6l=a<<16|65535&i,this.h7h=(V>>>16)+(nt>>>16)+((u=(65535&V)+(65535&nt)+((a=(F>>>16)+(rt>>>16)+((i=(65535&F)+(65535&rt))>>>16))>>>16))>>>16)<<16|65535&u,this.h7l=a<<16|65535&i},_.prototype.toString=_.prototype.hex=function(){this.finalize();var t=this.h0h,e=this.h0l,n=this.h1h,r=this.h1l,o=this.h2h,i=this.h2l,a=this.h3h,u=this.h3l,s=this.h4h,l=this.h4l,h=this.h5h,p=this.h5l,d=this.h6h,f=this.h6l,g=this.h7h,v=this.h7l,y=this.bits,m=c[t>>28&15]+c[t>>24&15]+c[t>>20&15]+c[t>>16&15]+c[t>>12&15]+c[t>>8&15]+c[t>>4&15]+c[15&t]+c[e>>28&15]+c[e>>24&15]+c[e>>20&15]+c[e>>16&15]+c[e>>12&15]+c[e>>8&15]+c[e>>4&15]+c[15&e]+c[n>>28&15]+c[n>>24&15]+c[n>>20&15]+c[n>>16&15]+c[n>>12&15]+c[n>>8&15]+c[n>>4&15]+c[15&n]+c[r>>28&15]+c[r>>24&15]+c[r>>20&15]+c[r>>16&15]+c[r>>12&15]+c[r>>8&15]+c[r>>4&15]+c[15&r]+c[o>>28&15]+c[o>>24&15]+c[o>>20&15]+c[o>>16&15]+c[o>>12&15]+c[o>>8&15]+c[o>>4&15]+c[15&o]+c[i>>28&15]+c[i>>24&15]+c[i>>20&15]+c[i>>16&15]+c[i>>12&15]+c[i>>8&15]+c[i>>4&15]+c[15&i]+c[a>>28&15]+c[a>>24&15]+c[a>>20&15]+c[a>>16&15]+c[a>>12&15]+c[a>>8&15]+c[a>>4&15]+c[15&a];return y>=256&&(m+=c[u>>28&15]+c[u>>24&15]+c[u>>20&15]+c[u>>16&15]+c[u>>12&15]+c[u>>8&15]+c[u>>4&15]+c[15&u]),y>=384&&(m+=c[s>>28&15]+c[s>>24&15]+c[s>>20&15]+c[s>>16&15]+c[s>>12&15]+c[s>>8&15]+c[s>>4&15]+c[15&s]+c[l>>28&15]+c[l>>24&15]+c[l>>20&15]+c[l>>16&15]+c[l>>12&15]+c[l>>8&15]+c[l>>4&15]+c[15&l]+c[h>>28&15]+c[h>>24&15]+c[h>>20&15]+c[h>>16&15]+c[h>>12&15]+c[h>>8&15]+c[h>>4&15]+c[15&h]+c[p>>28&15]+c[p>>24&15]+c[p>>20&15]+c[p>>16&15]+c[p>>12&15]+c[p>>8&15]+c[p>>4&15]+c[15&p]),512==y&&(m+=c[d>>28&15]+c[d>>24&15]+c[d>>20&15]+c[d>>16&15]+c[d>>12&15]+c[d>>8&15]+c[d>>4&15]+c[15&d]+c[f>>28&15]+c[f>>24&15]+c[f>>20&15]+c[f>>16&15]+c[f>>12&15]+c[f>>8&15]+c[f>>4&15]+c[15&f]+c[g>>28&15]+c[g>>24&15]+c[g>>20&15]+c[g>>16&15]+c[g>>12&15]+c[g>>8&15]+c[g>>4&15]+c[15&g]+c[v>>28&15]+c[v>>24&15]+c[v>>20&15]+c[v>>16&15]+c[v>>12&15]+c[v>>8&15]+c[v>>4&15]+c[15&v]),m},_.prototype.array=_.prototype.digest=function(){this.finalize();var t=this.h0h,e=this.h0l,n=this.h1h,r=this.h1l,o=this.h2h,i=this.h2l,a=this.h3h,u=this.h3l,s=this.h4h,l=this.h4l,c=this.h5h,h=this.h5l,p=this.h6h,d=this.h6l,f=this.h7h,g=this.h7l,v=this.bits,y=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o,i>>24&255,i>>16&255,i>>8&255,255&i,a>>24&255,a>>16&255,a>>8&255,255&a];return v>=256&&y.push(u>>24&255,u>>16&255,u>>8&255,255&u),v>=384&&y.push(s>>24&255,s>>16&255,s>>8&255,255&s,l>>24&255,l>>16&255,l>>8&255,255&l,c>>24&255,c>>16&255,c>>8&255,255&c,h>>24&255,h>>16&255,h>>8&255,255&h),512==v&&y.push(p>>24&255,p>>16&255,p>>8&255,255&p,d>>24&255,d>>16&255,d>>8&255,255&d,f>>24&255,f>>16&255,f>>8&255,255&f,g>>24&255,g>>16&255,g>>8&255,255&g),y},_.prototype.arrayBuffer=function(){this.finalize();var t=this.bits,e=new ArrayBuffer(t/8),n=new DataView(e);return n.setUint32(0,this.h0h),n.setUint32(4,this.h0l),n.setUint32(8,this.h1h),n.setUint32(12,this.h1l),n.setUint32(16,this.h2h),n.setUint32(20,this.h2l),n.setUint32(24,this.h3h),t>=256&&n.setUint32(28,this.h3l),t>=384&&(n.setUint32(32,this.h4h),n.setUint32(36,this.h4l),n.setUint32(40,this.h5h),n.setUint32(44,this.h5l)),512==t&&(n.setUint32(48,this.h6h),n.setUint32(52,this.h6l),n.setUint32(56,this.h7h),n.setUint32(60,this.h7l)),e},_.prototype.clone=function(){var t=new _(this.bits,!1);return this.copyTo(t),t},_.prototype.copyTo=function(t){var e=0,n=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(e=0;e=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function h(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(F);function Y(t){return t}function Z(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),X(Y,t)}function q(t,e){return e?z(t,e):new O(N(t))}function J(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}J.prototype=Object.create(Error.prototype);var $=J,tt=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return o(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(A),et=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return o(e,t),e}(S),nt=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o(e,t),e.prototype[C]=function(){return new et(this)},e.prototype.lift=function(t){var e=new rt(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new $;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(S),ut=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new A).add(this.source.subscribe(new lt(this.getSubject(),this))),t.closed&&(this._connection=null,t=A.EMPTY)),t},e.prototype.refCount=function(){return ot()(this)},e}(O).prototype,st={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ut._subscribe},_isComplete:{value:ut._isComplete,writable:!0},getSubject:{value:ut.getSubject},connect:{value:ut.connect},refCount:{value:ut.refCount}},lt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(et);function ct(){return new nt}function ht(t){for(var e in t)if(t[e]===ht)return e;throw Error("Could not find renamed property on target object.")}var pt=ht({ngComponentDef:ht}),dt=ht({ngInjectableDef:ht}),ft=ht({ngInjectorDef:ht}),gt=ht({ngModuleDef:ht}),vt=ht({__NG_ELEMENT_ID__:ht});function yt(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function mt(t){return t&&t.hasOwnProperty(dt)?t[dt]:null}function bt(t){return t&&t.hasOwnProperty(ft)?t[ft]:null}var _t=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?yt({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),At="__parameters__";function wt(t,e,n){var r=function(t){return function(){for(var e=[],n=0;n=e&&Ut(n)}function jt(t,e){null==t&&Ut(e)}function Ut(t){throw new Error("ASSERTION ERROR: "+t)}"undefined"==typeof ngDevMode||ngDevMode,"undefined"!=typeof ngDevMode&&ngDevMode;var Lt=0,zt=1,Wt=2,Xt=3,Qt=5,Kt=6,Yt=7,Zt=8,qt=9,Jt=10,$t=11,te=12,ee=13,ne=15,re=17,oe=18,ie=0,ae=1,ue=6,se=8,le="__ngContext__",ce=8,he=8,pe=9,de=-1,fe=function(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n},ge=fe.prototype;function ve(t){return"function"==typeof t?t.name||t:"string"==typeof t?t:null==t?"":"object"==typeof t&&"function"==typeof t.type?t.type.name||t.type:""+t}function ye(t){for(;Array.isArray(t);)t=t[Qt];return t}function me(t,e){return ye(e[t.index])}function be(t,e){var n=e[t];return n.length>=oe?n:n[Qt]}function _e(t){return null!==t.template}function Ae(t){return ngDevMode&&jt(t,"Target expected"),t[le]}function we(t){var e=Ae(t);return e?Array.isArray(e)?e:e.lView:null}function Ce(t){return 32767&t}function Se(t,e){for(var n=t>>16,r=e;n>0;)r=r[re],n--;return r}var Te=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Et);function Pe(t){for(var e=t[Kt];e&&2===e.type;)ngDevMode&&jt(t[re],"lView[DECLARATION_VIEW]"),e=(t=t[re])[Kt];return t}var Ee,Me,ke,Oe,Ie=wt("Inject",function(t){return{token:t}}),xe=wt("Optional"),De=wt("Self"),Ne=wt("SkipSelf"),Re=wt("Host"),Be=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({}),Ge=void 0;function He(t){var e=Ge;return Ge=t,e}function Ve(t){var e=Ee;return Ee=t,e}function Fe(t,e){return void 0===e&&(e=Be.Default),(Ee||function(t,e){if(void 0===e&&(e=Be.Default),void 0===Ge)throw new Error("inject() must be called from an injection context");return null===Ge?je(t,void 0,e):Ge.get(t,e&Be.Optional?null:void 0,e)})(t,e)}function je(t,e,n){var r=mt(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&Be.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND ["+Dt(t)+"]")}function Ue(t){for(var e=[],n=0;n>16,c=o?u+l:t.directiveEnd,h=r?u:u+l;h=s&&p.type===n)return h}if(o){var d=a[s];if(d&&_e(d)&&d.type===n)return s}return null}(u,e,n,null==r?function(t){return 1==(1&t.flags)}(u)&&cn:r!=a&&3===u.type,o&Be.Host&&i===u);return null!==s?bn(a.data,e,s,u):yn}function bn(t,e,n,r){var o,i=e[n];if(null!=(o=i)&&"object"==typeof o&&Object.getPrototypeOf(o)==ge){var a=i;if(a.resolving)throw new Error("Circular dep for "+ve(t[n]));var u=hn(a.canSeeViewProviders);a.resolving=!0;var s=void 0;a.injectImpl&&(s=Ve(a.injectImpl));var l=Ye(),c=Ke();qe(r,e);try{i=e[n]=a.factory(null,t,e,r)}finally{a.injectImpl&&Ve(s),hn(u),a.resolving=!1,qe(l,c)}}return i}function _n(t,e,n){var r=64&t,o=32&t;return!!((128&t?r?o?n[e+7]:n[e+6]:o?n[e+5]:n[e+4]:r?o?n[e+3]:n[e+2]:o?n[e+1]:n[e])&1<=oe&&(n=t[Kt])&&2===n.type?function(t,e){if(-1===t.index){var n=e[ne];return n>-1?e[Wt][n]:null}return e[Wt][t.parent.index]}(n,t):t[Wt]===e?null:t[Wt]}function Vn(t){if(t.length>=oe){var e=t;!function(t){var e,n=t[Lt];null!=n&&null!=(e=n.destroyHooks)&&Qe(t,e)}(e),(o=(r=e)[Lt]&&r[Lt].pipeDestroyHooks)&&Qe(r,o),function(t){var e=t[Lt].cleanup;if(null!=e){for(var n=t[Zt],r=0;r=0?n[a]():n[-a].unsubscribe(),r+=2}else"number"==typeof e[r]?(0,n[e[r]])():e[r].call(n[e[r+1]]);t[Zt]=null}}(e);var n=e[Kt];n&&3===n.type&&Dn(e[te])&&(ngDevMode&&ngDevMode.rendererDestroy++,e[te].destroy())}var r,o}var Fn="@",jn=Promise.resolve(null);function Un(t){var e=t[Lt];if(e.firstTemplatePass=!1,un(!1),!tn(t)){var n=nn();(function(t,e,n){!n&&32&t[zt]&&(Xe(t,e.initHooks,e.checkHooks,n),t[zt]&=-33)})(t,e,n),function(t){for(var e=Gn(t);null!==e;e=e[Xt])if(e.length"}(o))),16==(16&i[zt])&&12&i[zt]&&(function(t){for(var e=t[Lt],n=t.length;n ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];o.push(i+":"+("string"==typeof a?JSON.stringify(a):Dt(a)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(wr,"\n ")}function Er(t,e){return new Error(Pr(t,e))}var Mr=new _t("The presence of this token marks an injector as being the root injector."),kr={},Or={},Ir=[],xr=void 0;function Dr(){return void 0===xr&&(xr=new dr),xr}var Nr=function(){function t(t,e,n){var r=this;this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this.destroyed=!1;var o=[];Gr([t],function(t){return r.processInjectorType(t,[],o)}),e&&Gr(e,function(n){return r.processProvider(n,t,e)}),this.records.set(pr,Br(void 0,this)),this.isRootInjector=this.records.has(Mr),this.injectorDefTypes.forEach(function(t){return r.get(t)})}return t.prototype.destroy=function(){this.assertNotDestroyed(),this.destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.prototype.get=function(t,e,n){void 0===e&&(e=hr),void 0===n&&(n=Be.Default),this.assertNotDestroyed();var r,o=He(this);try{if(!(n&Be.SkipSelf)){var i=this.records.get(t);if(void 0===i){var a=("function"==typeof(r=t)||"object"==typeof r&&r instanceof _t)&&mt(t);a&&this.injectableDefInScope(a)&&(i=Br(Rr(t),kr),this.records.set(t,i))}if(void 0!==i)return this.hydrate(t,i)}return(n&Be.Self?Dr():this.parent).get(t,e)}finally{He(o)}},t.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e,n){var r=this;if(t=Bt(t)){var o=bt(t),i=null==o&&t.ngModule||void 0,a=void 0===i?t:i;if(ngDevMode&&-1!==e.indexOf(a)){var u=Dt(a);throw new Error("Circular dependency in DI detected for type "+u+". Dependency path: "+e.map(function(t){return Dt(t)}).join(" > ")+" > "+u+".")}var s=-1!==n.indexOf(a),l=void 0!==i&&t.providers||Ir;if(void 0!==i&&(o=bt(i)),null!=o){if(this.injectorDefTypes.add(a),this.records.set(a,Br(o.factory,kr)),null!=o.imports&&!s){ngDevMode&&e.push(a),n.push(a);try{Gr(o.imports,function(t){return r.processInjectorType(t,e,n)})}finally{ngDevMode&&e.pop()}}var c=o.providers;if(null!=c&&!s){var h=t;Gr(c,function(t){return r.processProvider(t,h,c)})}var p=t.ngModule;Gr(l,function(t){return r.processProvider(t,p,l)})}}},t.prototype.processProvider=function(t,e,n){var r=Vr(t=Bt(t))?t:Bt(t&&t.provide),o=function(t,e,n){var r=function(t,e,n){var r,o=void 0;if(Vr(t))return Rr(Bt(t));if(Hr(t))o=function(){return Bt(t.useValue)};else if((r=t)&&r.useExisting)o=function(){return Fe(Bt(t.useExisting))};else if(t&&t.useFactory)o=function(){return t.useFactory.apply(t,h(Ue(t.deps||[])))};else{var i=Bt(t&&(t.useClass||t.provide));if(!i){var a="";throw e&&n&&(a=" - only instances of Provider and Type are allowed, got: ["+n.map(function(e){return e==t?"?"+t+"?":"..."}).join(", ")+"]"),new Error("Invalid provider for the NgModule '"+Dt(e)+"'"+a)}if(!t.deps)return Rr(i);o=function(){return new(i.bind.apply(i,h([void 0],Ue(t.deps))))}}return o}(t,e,n);return Hr(t)?Br(void 0,t.useValue):Br(r,kr)}(t,e,n);if(Vr(t)||!0!==t.multi){var i=this.records.get(r);if(i&&void 0!==i.multi)throw new Error("Mixed multi-provider for "+Dt(r))}else{var a=this.records.get(r);if(a){if(void 0===a.multi)throw new Error("Mixed multi-provider for "+r+".")}else(a=Br(void 0,kr,!0)).factory=function(){return Ue(a.multi)},this.records.set(r,a);r=t,a.multi.push(t)}this.records.set(r,o)},t.prototype.hydrate=function(t,e){if(e.value===Or)throw new Error("Cannot instantiate cyclic dependency! "+Dt(t));var n;return e.value===kr&&(e.value=Or,e.value=e.factory()),"object"==typeof e.value&&e.value&&"object"==typeof(n=e.value)&&null!=n&&n.ngOnDestroy&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value},t.prototype.injectableDefInScope=function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||"root"===t.providedIn&&this.isRootInjector:this.injectorDefTypes.has(t.providedIn))},t}();function Rr(t){var e=mt(t);if(null===e){var n=bt(t);if(null!==n)return n.factory;if(t instanceof _t)throw new Error("Token "+Dt(t)+" is missing an ngInjectableDef definition.");if(t instanceof Function){var r=t.length;if(r>0){var o=new Array(r).fill("?");throw new Error("Can't resolve all parameters for "+Dt(t)+": ("+o.join(", ")+").")}return function(){return new t}}throw new Error("unreachable")}return e.factory}function Br(t,e,n){return void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function Gr(t,e){t.forEach(function(t){return Array.isArray(t)?Gr(t,e):e(t)})}function Hr(t){return t&&"object"==typeof t&&_r in t}function Vr(t){return"function"==typeof t}var Fr=function(){},jr=function(){};function Ur(t){var e=Error("No component factory found for "+Dt(t)+". Did you add it to @NgModule.entryComponents?");return e[zr]=t,e}var Lr,zr="ngComponent",Wr=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw Ur(t)},t}(),Xr=function(){function t(){}return t.NULL=new Wr,t}(),Qr=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}var e,n;Dn(n=(e=this._lView)[te])&&n.destroyNode&&function(t,n,r,o,i){for(var a=e[Lt].node,u=-1,s=e,l=a.child;l;){var c=null;if(3===l.type){Bn(2,r,null,me(l,s),i);var h=s[l.index];g=h,Array.isArray(g)&&g.length===se&&Bn(2,r,null,h[ue],i)}else if(0===l.type){var p=s[l.index];Bn(2,r,null,p[ue],i),p[ae].length&&(c=(s=p[ae][0])[Lt].node,i=p[ue])}else if(1===l.type){var d=Pe(s),f=d[Kt].projection[l.projection];Rn[++u]=l,Rn[++u]=s,f&&(c=(s=d[Wt])[Lt].data[f.index])}else c=l.child;if(null===c)for(null===l.next&&2&l.flags&&(s=Rn[u--],l=Rn[u--]),c=l.next;!c;){if(null===(l=l.parent||s[Lt].node)||l===a)return null;0===l.type&&(i=(s=s[Wt])[l.index][ue]),c=2===l.type&&s[Xt]?(s=s[Xt])[Lt].node:l.next}l=c}var g}(0,0,n),function(t){if(-1===t[Lt].childIndex)return Vn(t);for(var e=Gn(t);e;){var n=null;if(e.length>=oe?e[Lt].childIndex>-1&&(n=Gn(e)):e[ae].length&&(n=e[ae][0]),null==n){for(;e&&!e[Xt]&&e!==t;)Vn(e),e=Hn(e,t);Vn(e||t),n=e&&e[Xt]}e=n}}(e),e[zt]|=64},t.prototype.onDestroy=function(t){var e,n;n=t,function(t){return t[Zt]||(t[Zt]=[])}(e=this._lView).push(n),e[Lt].firstTemplatePass&&function(t){return t[Lt].cleanup||(t[Lt].cleanup=[])}(e).push(e[Zt].length-1,null)},t.prototype.markForCheck=function(){!function(t){for(;t&&!(128&t[zt]);)t[zt]|=8,t=t[Wt];var e,n,r;t[zt]|=8,ngDevMode&&jt(t[qt],"rootContext should be defined"),r=0===(e=t[qt]).flags,e.flags|=1,r&&e.clean==jn&&(e.clean=new Promise(function(t){return n=t}),e.scheduler(function(){if(1&e.flags&&(e.flags&=-2,$n(e)),2&e.flags){e.flags&=-3;var t=e.playerHandler;t&&t.flushPlayers()}e.clean=jn,n(null)}))}(this._lView)},t.prototype.detach=function(){this._lView[zt]&=-17},t.prototype.reattach=function(){this._lView[zt]|=16},t.prototype.detectChanges=function(){tr(this._lView,this.context)},t.prototype.checkNoChanges=function(){!function(t){rn(!0);try{!function(t){tr(function(t){var e,n=Ae(t);if(Array.isArray(n)){var r=function(t,e){var n=t[Lt].components;if(n)for(var r=0;r',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();ko.hasOwnProperty(e)&&!To.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(Go(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),Ro=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Bo=/([^\#-~ |!])/g;function Go(t){return t.replace(/&/g,"&").replace(Ro,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Bo,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Ho(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Vo={provide:Xr,useClass:uo,deps:[Yr]},Fo=function(t){function e(e,n){var r=t.call(this)||this;r._parent=n,r._bootstrapComponents=[],r.injector=r,r.destroyCbs=[];var o=function(t,e){var n=t[gt]||null;return n}(e);return ngDevMode&&jt(o,"NgModule '"+Dt(e)+"' is not a subtype of 'NgModuleType'."),r._bootstrapComponents=o.bootstrap,r._r3Injector=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),e=e||Dr(),new Nr(t,n,e)}(e,n,[{provide:Yr,useValue:r},Vo]),r.instance=r.get(e),r}return o(e,t),e.prototype.get=function(t,e,n){return void 0===e&&(e=fr.THROW_IF_NOT_FOUND),void 0===n&&(n=Be.Default),t===fr||t===Yr||t===pr?this:this._r3Injector.get(t,e,n)},Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(Xr)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){ngDevMode&&jt(this.destroyCbs,"NgModule already destroyed"),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){ngDevMode&&jt(this.destroyCbs,"NgModule already destroyed"),this.destroyCbs.push(t)},e}(Yr);!function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,n}o(e,t),e.prototype.create=function(t){return new Fo(this.moduleType,t)}}(Zr);var jo=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return o(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var o,i=function(t){return null},a=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(i=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var u=t.prototype.subscribe.call(this,o,i,a);return e instanceof A&&e.add(u),u},e}(nt),Uo=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Lo(t,Jr)},t}(),Lo=sr,zo=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Wo=/^url\(([^)]+)\)$/,Xo=function(){};Function,String,String;var Qo="ngDebugContext",Ko="ngOriginalError",Yo="ngErrorLogger";function Zo(t){return t[Qo]}function qo(t){return t[Ko]}function Jo(t){for(var e=[],n=1;n0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Di=function(){function t(){this._applications=new Map,Ni.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Ni.findTestabilityInTree(this,t,e)},a([s("design:paramtypes",[])],t)}(),Ni=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Ri=new _t("AllowMultipleToken"),Bi=function(t,e){this.name=t,this.token=e};function Gi(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new _t(r);return function(e){void 0===e&&(e=[]);var i=Hi();if(!i||i.injector.get(Ri,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var a=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(Oi&&!Oi.destroyed&&!Oi.injector.get(Ri,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Oi=t.get(Vi);var e=t.get(ui,null);e&&e.forEach(function(t){return t()})}(fr.create({providers:a,name:r}))}return function(t){var e=Hi();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function Hi(){return Oi&&!Oi.destroyed?Oi:null}var Vi=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new Ii:("zone.js"===n?void 0:n)||new Si({enableLongStackTrace:yo()}),i=[{provide:Si,useValue:o}];return o.run(function(){var e=fr.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get($o,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Ui(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,o){try{var i=((a=n.injector.get(ri)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return ti(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var a}(a,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=Fi({},e);return function(t,e,n){return t.get(bi).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(ji);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Dt(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Fi(t,e){return Array.isArray(e)?e.reduce(Fi,t):i({},t,e)}var ji=function(){function t(t,e,n,r,o,i){var a=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=yo(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var u=new O(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),s=new O(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){Si.assertNotInAngularZone(),It(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){Si.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof O?t[0]:Z(n)(q(t,r))}(u,s.pipe(function(t){return ot()((e=ct,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,st);return r.source=t,r.subjectFactory=n,r})(t));var e}))}var e;return e=t,t.prototype.bootstrap=function(t,e){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=t instanceof jr?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof Kr?null:this._injector.get(Yr),i=n.create(fr.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var a=i.injector.get(xi,null);return a&&i.injector.get(Di).registerApplication(i.location.nativeElement,a),this._loadComponent(i),yo()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Ci(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Ui(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(li,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Ui(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=wi("ApplicationRef#tick()"),t}();function Ui(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Li=function(){function t(){this.dirty=!0,this._results=[],this.changes=new jo,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[Ot()]=function(){return this._results[Ot()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),zi=function(){},Wi={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Xi=function(){function t(t,e){this._compiler=t,this._config=e||Wi}return t.prototype.load=function(t){return this._compiler instanceof mi?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=c(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("crnd")(o).then(function(t){return t[i]}).then(function(t){return Qi(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=c(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return Qi(t,r,o)})},a([u(1,xe())],t)}();function Qi(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var Ki,Yi=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Zi(t,Jr)},t}(),Zi=sr,qi=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Ji()},t}(),Ji=function(){for(var t=[],e=0;e-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var c=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:u.factory,deps:[],index:c,token:e.token},t._providers[c]=wu,t._providers[c]=Mu(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{He(i)}}function Mu(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Eu(t,n[0]));case 2:return new e(Eu(t,n[0]),Eu(t,n[1]));case 3:return new e(Eu(t,n[0]),Eu(t,n[1]),Eu(t,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Du(n,e),Da.dirtyParentQueries(r),Iu(r),r}function Ou(t,e,n){var r=e?Ja(e,e.def.lastRenderRootNode):t.renderElement;au(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Iu(t){au(t,3,null,null,void 0)}function xu(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Du(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Nu=new Object;function Ru(t,e,n,r,o,i){return new Bu(t,e,n,r,o,i)}var Bu=function(t){function e(e,n,r,o,i,a){var u=t.call(this)||this;return u.selector=e,u.componentType=n,u._inputs=o,u._outputs=i,u.ngContentSelectors=a,u.viewDefFactory=r,u}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=iu(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,a=Da.createRootView(t,e||[],n,o,r,Nu),u=Oa(a,i).instance;return n&&a.renderer.setAttribute(ka(a,0).renderElement,"ng-version",ao.full),new Gu(a,new ju(a),u)},e}(jr),Gu=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Jr(ka(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Wu(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Fr);function Hu(t,e,n){return new Vu(t,e,n)}var Vu=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new Jr(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Wu(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=qa(t),t=t.parent;return t?new Wu(t,e):new Wu(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=ku(this._data,t);Da.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new ju(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof Kr||(o=i.get(Yr));var a=t.create(i,r,void 0,o);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,a=t;return o=a._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,xu(i,r,o),function(t,e){var n=Za(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),Da.dirtyParentQueries(o),Ou(n,r>0?i[r-1]:null,o),a.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,a,u=this._embeddedViews.indexOf(t._view);return o=e,a=(i=(n=this._data).viewContainer._embeddedViews)[r=u],Du(i,r),null==o&&(o=i.length),xu(i,o,a),Da.dirtyParentQueries(a),Iu(a),Ou(n,o>0?i[o-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=ku(this._data,t);e&&Da.destroyView(e)},t.prototype.detach=function(t){var e=ku(this._data,t);return e?new ju(e):null},t}();function Fu(t){return new ju(t)}var ju=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return au(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Qa(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Da.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Da.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Da.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Iu(this._view),Da.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Uu(t,e){return new Lu(t,e)}var Lu=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new ju(Da.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Jr(ka(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Uo);function zu(t,e){return new Wu(t,e)}var Wu=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=fr.THROW_IF_NOT_FOUND),Da.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Va(t)},e)},t}();function Xu(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=ka(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Ma(t,n.nodeIndex).renderText;if(20240&n.flags)return Oa(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Qu(t){return new Ku(t.renderer)}var Ku=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=c(pu(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return ds(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(gs(t,e,n,o[0]));case 2:return r(gs(t,e,n,o[0]),gs(t,e,n,o[1]));case 3:return r(gs(t,e,n,o[0]),gs(t,e,n,o[1]),gs(t,e,n,o[2]));default:for(var a=Array(i),u=0;u0)l=g,Is(g)||(c=g);else for(;l&&f===l.nodeIndex+l.childCount;){var m=l.parent;m&&(m.childFlags|=l.childFlags,m.childMatchedQueries|=l.childMatchedQueries),c=(l=m)&&Is(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:u,nodeMatchedQueries:s,flags:t,nodes:e,updateDirectives:n||Ga,updateRenderer:r||Ga,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:d}}function Is(t){return 0!=(1&t.flags)&&null===t.element.name}function xs(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Ds(t,e,n,r){var o=Bs(t.root,t.renderer,t,e,n);return Gs(o,t.component,r),Hs(o),o}function Ns(t,e,n){var r=Bs(t,t.renderer,null,null,e);return Gs(r,n,n),Hs(r),r}function Rs(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,Bs(t.root,o,t,e.element.componentProvider,n)}function Bs(t,e,n,r,o){var i=new Array(o.nodes.length),a=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:a,initIndex:-1}}function Gs(t,e,n){t.component=e,t.context=n}function Hs(t){var e;$a(t)&&(e=ka(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&Au(t,e,0,n)&&(d=!0),p>1&&Au(t,e,1,r)&&(d=!0),p>2&&Au(t,e,2,o)&&(d=!0),p>3&&Au(t,e,3,i)&&(d=!0),p>4&&Au(t,e,4,a)&&(d=!0),p>5&&Au(t,e,5,u)&&(d=!0),p>6&&Au(t,e,6,s)&&(d=!0),p>7&&Au(t,e,7,l)&&(d=!0),p>8&&Au(t,e,8,c)&&(d=!0),p>9&&Au(t,e,9,h)&&(d=!0),d}(t,e,n,r,o,i,a,u,s,l,c,h);case 2:return function(t,e,n,r,o,i,a,u,s,l,c,h){var p=!1,d=e.bindings,f=d.length;if(f>0&&Wa(t,e,0,n)&&(p=!0),f>1&&Wa(t,e,1,r)&&(p=!0),f>2&&Wa(t,e,2,o)&&(p=!0),f>3&&Wa(t,e,3,i)&&(p=!0),f>4&&Wa(t,e,4,a)&&(p=!0),f>5&&Wa(t,e,5,u)&&(p=!0),f>6&&Wa(t,e,6,s)&&(p=!0),f>7&&Wa(t,e,7,l)&&(p=!0),f>8&&Wa(t,e,8,c)&&(p=!0),f>9&&Wa(t,e,9,h)&&(p=!0),p){var g=e.text.prefix;f>0&&(g+=ks(n,d[0])),f>1&&(g+=ks(r,d[1])),f>2&&(g+=ks(o,d[2])),f>3&&(g+=ks(i,d[3])),f>4&&(g+=ks(a,d[4])),f>5&&(g+=ks(u,d[5])),f>6&&(g+=ks(s,d[6])),f>7&&(g+=ks(l,d[7])),f>8&&(g+=ks(c,d[8])),f>9&&(g+=ks(h,d[9]));var v=Ma(t,e.nodeIndex).renderText;t.renderer.setValue(v,g)}return p}(t,e,n,r,o,i,a,u,s,l,c,h);case 16384:return function(t,e,n,r,o,i,a,u,s,l,c,h){var p=Oa(t,e.nodeIndex),d=p.instance,f=!1,g=void 0,v=e.bindings.length;return v>0&&za(t,e,0,n)&&(f=!0,g=ys(t,p,e,0,n,g)),v>1&&za(t,e,1,r)&&(f=!0,g=ys(t,p,e,1,r,g)),v>2&&za(t,e,2,o)&&(f=!0,g=ys(t,p,e,2,o,g)),v>3&&za(t,e,3,i)&&(f=!0,g=ys(t,p,e,3,i,g)),v>4&&za(t,e,4,a)&&(f=!0,g=ys(t,p,e,4,a,g)),v>5&&za(t,e,5,u)&&(f=!0,g=ys(t,p,e,5,u,g)),v>6&&za(t,e,6,s)&&(f=!0,g=ys(t,p,e,6,s,g)),v>7&&za(t,e,7,l)&&(f=!0,g=ys(t,p,e,7,l,g)),v>8&&za(t,e,8,c)&&(f=!0,g=ys(t,p,e,8,c,g)),v>9&&za(t,e,9,h)&&(f=!0,g=ys(t,p,e,9,h,g)),g&&d.ngOnChanges(g),65536&e.flags&&Ea(t,256,e.nodeIndex)&&d.ngOnInit(),262144&e.flags&&d.ngDoCheck(),f}(t,e,n,r,o,i,a,u,s,l,c,h);case 32:case 64:case 128:return function(t,e,n,r,o,i,a,u,s,l,c,h){var p=e.bindings,d=!1,f=p.length;if(f>0&&Wa(t,e,0,n)&&(d=!0),f>1&&Wa(t,e,1,r)&&(d=!0),f>2&&Wa(t,e,2,o)&&(d=!0),f>3&&Wa(t,e,3,i)&&(d=!0),f>4&&Wa(t,e,4,a)&&(d=!0),f>5&&Wa(t,e,5,u)&&(d=!0),f>6&&Wa(t,e,6,s)&&(d=!0),f>7&&Wa(t,e,7,l)&&(d=!0),f>8&&Wa(t,e,8,c)&&(d=!0),f>9&&Wa(t,e,9,h)&&(d=!0),d){var g=Ia(t,e.nodeIndex),v=void 0;switch(201347067&e.flags){case 32:v=new Array(p.length),f>0&&(v[0]=n),f>1&&(v[1]=r),f>2&&(v[2]=o),f>3&&(v[3]=i),f>4&&(v[4]=a),f>5&&(v[5]=u),f>6&&(v[6]=s),f>7&&(v[7]=l),f>8&&(v[8]=c),f>9&&(v[9]=h);break;case 64:v={},f>0&&(v[p[0].name]=n),f>1&&(v[p[1].name]=r),f>2&&(v[p[2].name]=o),f>3&&(v[p[3].name]=i),f>4&&(v[p[4].name]=a),f>5&&(v[p[5].name]=u),f>6&&(v[p[6].name]=s),f>7&&(v[p[7].name]=l),f>8&&(v[p[8].name]=c),f>9&&(v[p[9].name]=h);break;case 128:var y=n;switch(f){case 1:v=y.transform(n);break;case 2:v=y.transform(r);break;case 3:v=y.transform(r,o);break;case 4:v=y.transform(r,o,i);break;case 5:v=y.transform(r,o,i,a);break;case 6:v=y.transform(r,o,i,a,u);break;case 7:v=y.transform(r,o,i,a,u,s);break;case 8:v=y.transform(r,o,i,a,u,s,l);break;case 9:v=y.transform(r,o,i,a,u,s,l,c);break;case 10:v=y.transform(r,o,i,a,u,s,l,c,h)}}g.value=v}return d}(t,e,n,r,o,i,a,u,s,l,c,h);default:throw"unreachable"}}(t,e,r,o,i,a,u,s,l,c,p,d):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&Xa(t,e,0,n),p>1&&Xa(t,e,1,r),p>2&&Xa(t,e,2,o),p>3&&Xa(t,e,3,i),p>4&&Xa(t,e,4,a),p>5&&Xa(t,e,5,u),p>6&&Xa(t,e,6,s),p>7&&Xa(t,e,7,l),p>8&&Xa(t,e,8,c),p>9&&Xa(t,e,9,h)}(t,e,r,o,i,a,u,s,l,c,h,p):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);al.forEach(function(e,r){if(i.has(mt(r).providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:nu(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[Va(r)]=o}})}}(t=t.factory(function(){return Ga})),t):t}(r))}var il=new Map,al=new Map,ul=new Map;function sl(t){var e;il.set(t.token,t),"function"==typeof t.token&&(e=mt(t.token))&&"function"==typeof e.providedIn&&al.set(t.token,t)}function ll(t,e){var n=iu(iu(e.viewDefFactory).nodes[0].element.componentView);ul.set(t,n)}function cl(){il.clear(),al.clear(),ul.clear()}function hl(t){if(0===il.size)return t;var e=function(t){for(var e=[],n=null,r=0;r0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=Wl.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Wl.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Wl.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},a([u(1,xe()),u(1,Ie(zl))],e)}(Ll),Kl=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)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 r._baseHref=n,r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return Wl.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+Wl.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Wl.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Wl.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},a([u(1,xe()),u(1,Ie(zl))],e)}(Ll),Yl=void 0,Zl=["en",[["a","p"],["AM","PM"],Yl],[["AM","PM"],Yl,Yl],[["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"]],Yl,[["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"]],Yl,[["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}",Yl,"{1} 'at' {0}",Yl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],ql={},Jl=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),$l=new _t("UseV4Plurals"),tc=function(){},ec=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=ql[e];if(n)return n;var r=e.split("-")[0];if(n=ql[r])return n;if("en"===r)return Zl;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case Jl.Zero:return"zero";case Jl.One:return"one";case Jl.Two:return"two";case Jl.Few:return"few";case Jl.Many:return"many";default:return"other"}},a([u(0,Ie(Aa)),u(1,xe()),u(1,Ie($l))],e)}(tc);function nc(t,e){var n,r;e=encodeURIComponent(e);try{for(var o=l(t.split(";")),i=o.next();!i.done;i=o.next()){var a=i.value,u=a.indexOf("="),s=c(-1==u?[a,""]:[a.slice(0,u),a.slice(u+1)],2),h=s[1];if(s[0].trim()===e)return decodeURIComponent(h)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}var rc=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(kn(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Dt(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t}(),oc=function(){function t(t,e){this._viewContainer=t,this._context=new ic,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){ac("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){ac("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=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)))},t.ngTemplateGuard_ngIf=function(t,e){return!0},t}(),ic=function(){this.$implicit=null,this.ngIf=null};function ac(t,e){if(e&&!e.createEmbeddedView)throw new Error(t+" must be a TemplateRef, but received '"+Dt(e)+"'.")}var uc=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),sc=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,h(n)),this.headers.set(e,r);break;case"d":var o=t.value;if(o){var i=this.headers.get(e);if(!i)return;0===(i=i.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),Ac=function(){function t(){}return t.prototype.encodeKey=function(t){return wc(t)},t.prototype.encodeValue=function(t){return wc(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function wc(t){return encodeURIComponent(t).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,"/")}var Cc=function(){function t(t){void 0===t&&(t={});var e,n,r,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Ac,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=c(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),i=o[0],a=o[1],u=r.get(i)||[];u.push(a),r.set(i,u)}),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)},t}();function Sc(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Tc(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Pc(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Ec=function(){function t(t,e,n,r){var o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new _c),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a=200&&this.status<300}}(),Oc=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Mc.ResponseHeader,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(kc),Ic=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Mc.Response,n.body=void 0!==e.body?e.body:null,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(kc),xc=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return o(e,t),e}(kc);function Dc(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Nc=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof Ec)r=t;else{var i;i=n.headers instanceof _c?n.headers:new _c(n.headers);var a=void 0;n.params&&(a=n.params instanceof Cc?n.params:new Cc({fromObject:n.params})),r=new Ec(t,e,void 0!==n.body?n.body:null,{headers:i,params:a,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var u=Bl(r).pipe(Gl(function(t){return o.handler.handle(t)}));if(t instanceof Ec||"events"===n.observe)return u;var s=u.pipe(Hl(function(t){return t instanceof Ic}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(j(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe(j(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe(j(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe(j(function(t){return t.body}))}case"response":return s;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new Cc).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,Dc(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Dc(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Dc(n,e))},t}(),Rc=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),Bc=new _t("HTTP_INTERCEPTORS"),Gc=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),Hc=/^\)\]\}',?\n/,Vc=function(){},Fc=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),jc=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new O(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var a=t.serializeBody(),u=null,s=function(){if(null!==u)return u;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new _c(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return u=new Oc({headers:o,status:e,statusText:n,url:i})},l=function(){var e=s(),o=e.headers,i=e.status,a=e.statusText,u=e.url,l=null;204!==i&&(l=void 0===r.response?r.responseText:r.response),0===i&&(i=l?200:0);var c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){var h=l;l=l.replace(Hc,"");try{l=""!==l?JSON.parse(l):null}catch(t){l=h,c&&(c=!1,l={error:t,text:l})}}c?(n.next(new Ic({body:l,headers:o,status:i,statusText:a,url:u||void 0})),n.complete()):n.error(new xc({error:l,headers:o,status:i,statusText:a,url:u||void 0}))},c=function(t){var e=s().url,o=new xc({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(o)},h=!1,p=function(e){h||(n.next(s()),h=!0);var o={type:Mc.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},d=function(t){var e={type:Mc.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",p),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:Mc.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),t.reportProgress&&(r.removeEventListener("progress",p),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.abort()}})},t}(),Uc=new _t("XSRF_COOKIE_NAME"),Lc=new _t("XSRF_HEADER_NAME"),zc=function(){},Wc=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=nc(t,this.cookieName),this.lastCookieString=t),this.lastToken},a([u(0,Ie(dc)),u(1,Ie(si)),u(2,Ie(Uc))],t)}(),Xc=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},a([u(1,Ie(Lc))],t)}(),Qc=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(Bc,[]);this.chain=e.reduceRight(function(t,e){return new Rc(t,e)},this.backend)}return this.chain.handle(t)},t}(),Kc=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:Xc,useClass:Gc}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:Uc,useValue:t.cookieName}:[],t.headerName?{provide:Lc,useValue:t.headerName}:[]]}},t}(),Yc=function(){},Zc={headers:new _c({"Content-Type":"application/json"})},qc=function(){function t(t){this.http=t}return t.prototype.getOperator=function(){return this.http.get("https://apidetectoperator.teleaudio.pl/api/connection",Zc)},t}();function Jc(t,e){return new O(function(n){var r=t.length;if(0!==r)for(var o=new Array(r),i=0,a=0,u=function(u){var s=W(t[u]),l=!1;n.add(s.subscribe({next:function(t){l||(l=!0,a++),o[u]=t},error:function(t){return n.error(t)},complete:function(){++i!==r&&l||(a===r&&n.next(e?e.reduce(function(t,e,n){return t[e]=o[n],t},{}):o),n.complete())}}))},s=0;s0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;a||(a=t[i]=[]);var s=Fh(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:s,handler:o});else{for(var l=!1,c=0;c-1},a([u(0,Ie(sh)),u(1,Ie(zh)),u(3,xe()),u(3,Ie(Wh))],e)}(bh),Kh=["alt","control","meta","shift"],Yh={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Zh=function(t){function e(e){return t.call(this,e)||this}var n;return o(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var o=n.parseEventName(e),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return th().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(e.pop()),i="";if(Kh.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),i+=t+".")}),i+=o,0!=e.length||0===o.length)return null;var a={};return a.domEventName=r,a.fullKey=i,a},e.getEventFullKey=function(t){var e="",n=th().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Kh.forEach(function(r){r!=n&&(0,Yh[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(o){n.getEventFullKey(o)===t&&r.runGuarded(function(){return e(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},n=a([u(0,Ie(sh))],e)}(bh),qh=function(){},Jh=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case oo.NONE:return e;case oo.HTML:return e instanceof tp?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{So=So||new mo(t);var r=e?String(e):"";n=So.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=So.getInertBodyElement(r)}while(r!==i);var a=new No,u=a.sanitizeChildren(Ho(n)||n);return yo()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),u}finally{if(n)for(var s=Ho(n)||n;s.firstChild;)s.removeChild(s.firstChild)}}(this._doc,String(e)));case oo.STYLE:return e instanceof ep?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Wo);return e&&Ao(e[1])===e[1]||t.match(zo)&&function(t){for(var e=!0,n=!0,r=0;rt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return cp(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return cp(t.value)?null:dp.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(cp(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(cp(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(gp);return 0==e.length?null:function(t){return yp(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(gp);return 0==e.length?null:function(t){return function(){for(var t=[],e=0;e=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),Mp=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Pp),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}(),kp=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),Op='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Ip='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',xp=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Op)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+Ip+'\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n \n
\n
\n \n
\n
')},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Op)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Ip)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}();function Dp(t,e){return h(e.path,[t])}function Np(t,e){t||Hp(e,"Cannot find control with"),e.valueAccessor||Hp(e,"No value accessor for form control with"),t.validator=fp.compose([t.validator,e.validator]),t.asyncValidator=fp.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Rp(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Rp(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function Rp(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Bp(t,e){null==t&&Hp(e,"Cannot find control with"),t.validator=fp.compose([t.validator,e.validator]),t.asyncValidator=fp.composeAsync([t.asyncValidator,e.asyncValidator])}function Gp(t){return Hp(t,"There is no FormControl instance attached to form control element with")}function Hp(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function Vp(t){return null!=t?fp.compose(t.map(wp)):null}function Fp(t){return null!=t?fp.composeAsync(t.map(Cp)):null}var jp=[bp,kp,Sp,function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=xt}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var r=l(Array.from(this._optionMap.keys())),o=r.next();!o.done;o=r.next()){var i=o.value;if(this._compareWith(this._optionMap.get(i),t))return i}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=xt}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(Yp),Jp=function(t){function e(e,n,r){var o=t.call(this,Xp(n),Qp(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof Zp?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){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(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=l(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Yp),$p=new _t("NgFormSelectorWarning"),td=new _t("NgModelWithFormControlWarning"),ed=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new jo,r}return o(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return Np(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e,n;(n=(e=this.directives).indexOf(t))>-1&&e.splice(n,1)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);Bp(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);Bp(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,e=this.directives,this.form._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange(function(){return Gp(e)}),e.valueAccessor.registerOnTouched(function(){return Gp(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&Np(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=Vp(this._validators);this.form.validator=fp.compose([this.form.validator,t]);var e=Fp(this._asyncValidators);this.form.asyncValidator=fp.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||xp.missingFormException()},a([u(0,xe()),u(0,De()),u(0,Ie(hp)),u(1,xe()),u(1,De()),u(1,Ie(pp))],e)}(lp),nd=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return o(e,t),e.prototype._checkParentType=function(){od(this._parent)&&xp.groupParentException()},a([u(0,xe()),u(0,Re()),u(0,Ne()),u(1,xe()),u(1,De()),u(1,Ie(hp)),u(2,xe()),u(2,De()),u(2,Ie(pp))],e)}(Up),rd=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return o(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return Dp(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Vp(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Fp(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){od(this._parent)&&xp.arrayParentException()},a([u(0,xe()),u(0,Re()),u(0,Ne()),u(1,xe()),u(1,De()),u(1,Ie(hp)),u(2,xe()),u(2,De()),u(2,Ie(pp))],e)}(lp);function od(t){return!(t instanceof nd||t instanceof ed||t instanceof rd)}var id=function(t){function e(e,n,r,o,i){var a=t.call(this)||this;return a._ngModelWarningConfig=i,a._added=!1,a.update=new jo,a._ngModelWarningSent=!1,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||Hp(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){var i;e.constructor===Ap?n=e:(i=e,jp.some(function(t){return i.constructor===t})?(r&&Hp(t,"More than one built-in value accessor matches form control with"),r=e):(o&&Hp(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(Hp(t,"No valid value accessor for form control with"),null)}(a,o),a}var n;return o(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){xp.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){var e,r,o,i;this._added||this._setUpControl(),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!xt(e,n.currentValue)}(t,this.viewModel)&&(e="formControlName",r=n,o=this,i=this._ngModelWarningConfig,yo()&&"never"!==i&&((null!==i&&"once"!==i||r._ngModelWarningSentOnce)&&("always"!==i||o._ngModelWarningSent)||(xp.ngModelWarning(e),r._ngModelWarningSentOnce=!0,o._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return Dp(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Vp(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Fp(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof nd)&&this._parent instanceof Up?xp.ngModelGroupException():this._parent instanceof nd||this._parent instanceof ed||this._parent instanceof rd||xp.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e._ngModelWarningSentOnce=!1,n=a([u(0,xe()),u(0,Re()),u(0,Ne()),u(1,xe()),u(1,De()),u(1,Ie(hp)),u(2,xe()),u(2,De()),u(2,Ie(pp)),u(3,xe()),u(3,De()),u(3,Ie(mp)),u(4,xe()),u(4,Ie(td))],e)}(Pp),ad=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?fp.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}(),ud=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.validate=function(t){return this.required?fp.requiredTrue(t):null},e}(ad),sd=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null,o=null,i=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new qp(n,{asyncValidators:o,updateOn:i,validators:r})},t.prototype.control=function(t,e,n){return new Zp(t,e,n)},t.prototype.array=function(t,e,n){var r=this,o=t.map(function(t){return r._createControl(t)});return new Jp(o,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){return t instanceof Zp||t instanceof qp||t instanceof Jp?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t}(),ld=function(){},cd=function(){},hd=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:$p,useValue:t.warnOnDeprecatedNgFormSelector}]}},t}(),pd=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:td,useValue:t.warnOnNgModelWithFormControl}]}},t}(),dd=n("zMKE"),fd={headers:new _c({"Content-Type":"application/json"})},gd=function(){function t(t){this.http=t}return t.prototype.start=function(t,e){return this.http.get("https://epayment.teleaudio.pl/api2/null/direct/start/"+t+"?redirectUrl="+(e||""),fd)},t.prototype.getTransaction=function(t,e,n,r){var o={headers:new _c({"Content-Type":"application/json",Authorization:"bearer "+e,"aoc-net-type":r,"tmob-code-ta":Object(dd.sha512)(r+"_"+t+"getTransaction/api2/"+r+"_"+n)})};return this.http.get("https://epayment.teleaudio.pl/api2/"+r+"_"+n+"/direct/transaction2/"+r+"/"+t,o)},t.prototype.open=function(t,e){var n={headers:new _c({"Content-Type":"application/json",Authorization:"bearer "+e})};return this.http.get(t,n)},t.prototype.proceed=function(t,e,n){var r={headers:new _c({"Content-Type":"application/json",Authorization:"bearer "+e,"aoc-net-type":t.Connection,"tmob-code-ta":Object(dd.sha512)(t.Connection+"_"+t.TransactionId+"proceed/api2/"+t.Connection+"_"+n)})};return this.http.post("https://epayment.teleaudio.pl/api2/"+t.Connection+"_"+n+"/direct/proceed",t,r)},t.prototype.confirm=function(t,e,n){var r={headers:new _c({"Content-Type":"application/json",Authorization:"bearer "+e,"aoc-net-type":n,"tmob-code-ta":Object(dd.sha512)(n+t.Pin+"_"+t.TransactionId+"confirm/api2/ta")})};return this.http.post("https://epayment.teleaudio.pl/api2/ta/direct/confirm",t,r)},t.prototype.status=function(t,e){var n={headers:new _c({"Content-Type":"application/json",Authorization:"bearer "+e})};return this.http.get("https://epayment.teleaudio.pl/api2/ta/direct/status/"+t,n)},t.prototype.network=function(t){var e={headers:new _c({"Content-Type":"application/json",Authorization:"bearer "+t})};return this.http.get("https://epayment.teleaudio.pl/api2/ta/direct/network/",e)},t}(),vd={rules:{U:{operator:"",color:"#5AAAFF",accept:""},O:{operator:"Orange",color:"#406da4",url:"https://socialsharing.teleaudio.pl/public/aoc/regulamin_zamow_z_orange.pdf",name:"Zam\xf3w z Orange",privacy_old:"Administratorem danych osobowych u\u017cytkownik\xf3w us\u0142ugi dost\u0119pu jest \u201eOrange Polska S.A.\u201d z siedzib\u0105 w Warszawie, al. Jerozolimskie 160, 02-326 Warszawa. Dane b\u0119d\u0105 przetwarzane przez administratora, w tym udost\u0119pniane dostawcom wsp\xf3\u0142pracuj\u0105cym z administratorem, w zakresie koniecznym do \u015bwiadczenia us\u0142ugi dost\u0119pu, a w przypadku z\u0142o\u017cenia reklamacji \u2013 w celu ich rozpatrzenia. U\u017cytkownikowi przys\u0142uguje prawo dost\u0119pu do tre\u015bci danych i prawo do poprawiania danych.",privacy:'Orange Polska SA (jako administrator danych us\u0142ugi \u201eZam\xf3w z Orange\u201d) udost\u0119pni informacje o Twoim numerze telefonu i o tym, czy posiadasz uprawnienie dost\u0119pu do produktu cyfrowego, podmiotowi po\u015brednicz\u0105cemu przy aktywacji produktu u Dostawcy. Czytaj wi\u0119cej w Informacji o danych osobowych w Orange Polska ',limits:"Sprawd\u017a limity dla zakup\xf3w \u201eDodanych do rachunk\xf3w\u201d u Twojego Operatora",limitsUrl:"http://www.orange.pl/limitymiesieczne.phtml",accept:"Zgadzam si\u0119 na uzyskanie dost\u0119pu do produktu cyfrowego ju\u017c teraz. Wiem, \u017ce natychmiastowe skorzystanie z produktu cyfrowego oznacza utrat\u0119 prawa do odst\u0105pienia od umowy z Orange Polska S.A. oraz z jego Dostawc\u0105",paymentAddToBill:"Op\u0142ata zostanie doliczona do Twojego rachunku w Orange (telefon na abonament) lub odliczona od \u015brodk\xf3w na koncie (telefon na kart\u0119)",cyclic:"Mo\u017cesz dezaktywowa\u0107 us\u0142ug\u0119 poprzez wys\u0142anie",cyclic2:"Wi\u0119cej o dezaktywacji i zawieszeniu subskrypcji dowiesz si\u0119 w Regulaminie",ruleName:"Zapoznaj si\u0119 z tre\u015bci\u0105 regulaminu "},P:{operator:"Plus",color:"#00B262",url:"https://socialsharing.teleaudio.pl/public/aoc/Regulamin_uslugi_dostepowej.pdf",name:"Us\u0142ugi Dost\u0119powej",accept:"Wyra\u017cam zgod\u0119 na wy\u015bwiadczenie Us\u0142ugi Dost\u0119powej niezw\u0142ocznie po jej zam\xf3wieniu, a przed up\u0142ywem 14-dniowego terminu do odst\u0105pienia od niej oraz przyjmuj\u0119 do wiadomo\u015bci, i\u017c utrac\u0119 prawo do odst\u0105pienia z chwil\u0105 jej pe\u0142nego wykonania. O\u015bwiadczam, i\u017c zapozna\u0142em si\u0119 z Regulaminem Us\u0142ugi Dost\u0119powej i akceptuj\u0119 jego tre\u015b\u0107.",ruleName:"Zapoznaj si\u0119 z tre\u015bci\u0105 regulaminu ",cyclic:"Mo\u017cesz dezaktywowa\u0107 us\u0142ug\u0119 poprzez wys\u0142anie",usl_api:'Zgadzam si\u0119 na odblokowanie us\u0142ugi dost\u0119powej'},E:{operator:"T-Mobile",color:"#DF026F",name:"Zam\xf3w z T-Mobile",accept:'Akceptuj\u0119 tre\u015b\u0107 regulaminu us\u0142ugi Zam\xf3w z T-Mobile oraz Regulamin [SERVICENAME] oraz Wyra\u017cam zgod\u0119 na obci\u0105\u017canie rachunku za wykonane us\u0142ugi w ramach zakup\xf3w cyfrowych (np. gry online, ebooki, audiobooki, aplikacje, serwisy vod). Potwierdzam, \u017ce jestem \u015bwiadomy utraty prawa odst\u0105pienia od umowy.',cyclic:"Mo\u017cesz dezaktywowa\u0107 us\u0142ug\u0119 poprzez wys\u0142anie",rodo:"Administratorem danych osobowych u\u017cytkownik\xf3w us\u0142ugi dost\u0119pu jest T-Mobile Polska S.A. z siedzib\u0105 w Warszawie, ul. Marynarska 12, 02-674 Warszawa. Dane b\u0119d\u0105 przetwarzane przez administratora, w tym udost\u0119pniane dostawcom wsp\xf3\u0142pracuj\u0105cym z administratorem, w zakresie koniecznym do \u015bwiadczenia us\u0142ugi dost\u0119pu, a w przypadku z\u0142o\u017cenia reklamacji w celu ich rozpatrzenia. U\u017cytkownikowi przys\u0142uguje prawo dost\u0119pu do tre\u015bci danych i prawo do poprawiania danych."},4:{operator:"Play",color:"#58E454",url:"https://www.play.pl/zamow-z-play/",name:"Zam\xf3w z Play",accept:'Akceptuj\u0119 tre\u015b\u0107 regulaminu Zam\xf3w z Play. Zgadzam si\u0119 na natychmiastowe rozpocz\u0119cie spe\u0142niania \u015bwiadczenia i potwierdzam \u017ce jestem \u015bwiadomy utraty prawa odst\u0105pienia od umowy',cyclic:"Us\u0142uga \u015bwiadczona b\u0119dzie przez czas nieokre\u015blony. Mo\u017cesz wy\u0142\u0105czy\u0107 us\u0142ug\u0119 poprzez wys\u0142anie SMS o tre\u015bci",paymentAddToBill:"Op\u0142ata zostanie doliczona do Twojego rachunku w Play dla numeru [msisdn]",provider:"Us\u0142ug\u0119 Zam\xf3w z Play \u015bwiadczy P4 sp. z o.o. Za po\u015brednictwem us\u0142ugi Zam\xf3w z Play uzyskasz dost\u0119p do "}}},yd=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return o(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return o(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(A)),md=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),bd=new(function(t){function e(n,r){void 0===r&&(r=md.now);var o=t.call(this,n,function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return o(e,t),e.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,o):t.prototype.schedule.call(this,n,r,o)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(md))(yd);function _d(t,e){var n;return void 0===t&&(t=0),void 0===e&&(e=bd),(y(n=t)||!(n-parseFloat(n)+1>=0)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=bd),new O(function(n){return n.add(e.schedule(Ad,t,{subscriber:n,counter:0,period:t})),n})}function Ad(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}var wd=function(){function t(t,e,n,r,o,i,a){this.detectService=t,this.paymentService=e,this.router=n,this.route=r,this.formBuilder=o,this.renderer=i,this.document=a,this.mobnumPattern="^48[0-9]{9}$",this.redirectTout=5,this.redirected=!1,this.pinHint=!1,this.validMsisdn=!1,this.orangeUSE=!1,this.connCellular=0}return Object.defineProperty(t.prototype,"form1",{get:function(){return this.stepForm1.controls},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.stepVisible=0,this.showError=!1,this.isAcceptForm2=!1,this.partner=this.route.snapshot.paramMap.get("partner"),this.transactionId=this.route.snapshot.paramMap.get("transactionId"),this.authToken=this.route.snapshot.paramMap.get("authToken"),this.isReturn=this.route.snapshot.paramMap.get("isReturn"),window.parent.postMessage({step:1,transactionId:this.transactionId},"*"),this.transaction=new function(){},this.orderInit=new function(){},this.socialSharingAPI="https://socialsharing.teleaudio.pl",this.configGuid=this.authToken?this.authToken:sessionStorage.getItem("configGuid"),this.stepForm1=this.formBuilder.group({phoneNumber:new Zp("",[fp.required,fp.pattern(this.mobnumPattern)])}),this.stepForm2=this.formBuilder.group({PIN:new Zp(""),rules0:new Zp("",[fp.required]),rules1:new Zp("",[fp.required])}),this.transactionId&&this.getTransaction()},t.prototype.getTransaction=function(){var t=this;this.showLoading=!0,this.paymentService.getTransaction(this.transactionId,this.authToken,this.partner,this.isMobileConnection()).subscribe(function(e){t.transaction=e;var n=null;t.transaction.heUrl&&"1"!==t.isReturn?t.document.location.href=t.transaction.heUrl:(t.transaction.order.msisdn?11===t.transaction.order.msisdn.length&&(t.transaction.order.msisdn=t.transaction.order.msisdn.substr(2,t.transaction.order.msisdn.length)):(n=localStorage.getItem(t.partner+".msisdn"))&&(t.transaction.order.msisdn=n),t.transaction.phoneNumber=t.transaction.order.msisdn,t.transaction.order.carrier||(t.transaction.order.carrier="U"),t.transaction.rules=vd.rules[t.transaction.order.carrier],t.transaction.rules.accept&&(t.transaction.rules.accept=t.transaction.rules.accept.replace("[SERVICENAME]",t.transaction.service.name)),t.document.body.style.backgroundImage="url('"+t.socialSharingAPI+"/images/dcb2/"+t.configGuid+"/backgroundmain/"+(t.transaction.order.productId?t.transaction.order.productId:"")+"')",t.transaction.config&&t.transaction.config.theme&&t.transaction.config.theme.length>0?t.renderer.addClass(t.document.body,t.transaction.config.theme):t.renderer.removeClass(t.document.body,"dark-mode"),t.fillForm(),"SUBSCRIBED"===t.transaction.status&&(t.showLoading=!1,t.transaction.order.status="SUBSCRIBED",t.transaction.order.code=-1,t.transaction.order.message="Istnieje aktywna subskrypcja",t.stepVisible=3,t.runRedirectUrl()),"NOSERVICE"===t.transaction.status&&(t.showLoading=!1,t.transaction.order.status="NOSERVICE",t.transaction.order.code=-2,t.transaction.order.message="Tw\xf3j operator nie jest wspierany",t.stepVisible=3,t.runRedirectUrl()),t.transaction.phoneNumber&&"TOKENOC"===t.transaction.tag&&"cellular"!==t.isMobileConnection()&&10379!==t.transaction.service.id&&(t.transaction.phoneNumber="",t.transaction.order.msisdn="",t.transaction.order.carrier="U",t.transaction.rules=vd.rules[t.transaction.order.carrier],t.transaction.rules.accept=t.transaction.rules.accept.replace("[SERVICENAME]",t.transaction.service.name),t.showLoading=!1,t.fillForm()),t.transaction.phoneNumber?(t.validMsisdn=!0,t.stepForm1.setErrors(null),t.stepForm1.get("phoneNumber").setErrors(null),622===t.transaction.service.id||623===t.transaction.service.id||t.transaction.service.id>=10597&&t.transaction.service.id<=10606?(t.transaction.order.carrier="?",t.stepVisible=1,t.showLoading=!1):"OC"!==t.transaction.service.authMode?(t.stepVisible=1,null==n||t.transaction.order.memorizing&&t.transaction.order.memorizing.startsWith("OC")?t.onFormSubmit1():(t.stepVisible=1,t.showLoading=!1,t.findOperator())):(t.transaction.pinRequired=!1,t.stepVisible=2,t.showLoading=!1)):(t.stepVisible=1,t.showLoading=!1,t.findOperator()))},function(e){"BOUNDLED"!==e.error.code?t.showError=!0:t.document.location.href=e.error.message})},t.prototype.fillForm=function(){this.transaction&&this.transaction.phoneNumber&&this.transaction.phoneNumber.length>0&&(console.log("XX-MSISDN: "+this.transaction.phoneNumber),this.stepForm1.get("phoneNumber").setValue(this.transaction.phoneNumber.startsWith("48")?this.transaction.phoneNumber:"48"+this.transaction.phoneNumber),console.log("XX-MSISDN: "+this.stepForm1.get("phoneNumber").value))},t.prototype.onFormSubmit1=function(){var t=this;console.log("stepForm1 - invalid: ",this.stepForm1.invalid),console.log("stepForm1 - invalid: ",this.validMsisdn),this.stepForm1.invalid&&!this.validMsisdn||(this.errorProccedText="",this.showLoading=!0,this.transaction.phoneNumber=this.stepForm1.get("phoneNumber").value,this.transaction.order.msisdn=this.stepForm1.get("phoneNumber").value,this.transaction.phoneNumber.startsWith("48")?this.transaction.order.msisdn=this.transaction.order.msisdn.substr(2):this.transaction.phoneNumber="48"+this.transaction.phoneNumber,this.paymentService.proceed({TransactionId:this.transactionId,Msisdn:this.transaction.phoneNumber,Carrier:this.transaction.order.carrier,Consents:"ASK"===this.transaction.config.plusConsent?"USL_API":null,Connection:this.isMobileConnection()},this.authToken,this.partner).subscribe(function(e){t.transaction.config=e.config,t.transactionId=e.transactionId,t.transaction.config&&t.transaction.config.theme&&t.transaction.config.theme.length>0?t.renderer.addClass(t.document.body,t.transaction.config.theme):t.renderer.removeClass(t.document.body,"dark-mode"),t.transaction.pinRequired="TOKEN"===e.auth,e.pin&&(t.pinHint=!0,t.transaction.PIN=e.pin,t.stepForm2.get("PIN").setValue(e.pin)),t.transaction.order.carrier=e.carrier,t.transaction.rules=vd.rules[t.transaction.order.carrier],t.transaction.rules.accept=t.transaction.rules.accept.replace("[SERVICENAME]",t.transaction.service.name),t.transaction.service=e.service,t.showLoading=!1,t.stepVisible=2,window.scroll(0,0),window.parent.postMessage({step:2,transactionId:t.transactionId,msisdn:t.transaction.phoneNumber},"*")},function(e){if(console.log("proceed error: ",e.error.code),"BOUNDLED"!==e.error.code){if("NOSERVICE"===e.error.code)return t.showLoading=!1,t.transaction.order.status="REJECTED",t.transaction.order.code=-2,t.transaction.order.message="Us\u0142uga aktualnie nie jest dostepna u Twojego operatora",t.stepVisible=3,void t.finishStep3();t.errorProccedText=e.error.message,t.showLoading=!1,t.transaction.order.message=e.error.message,t.transaction.order.status=e.error.code,t.transaction.order.code=-1,t.stepVisible=3,"SUBSCRIBED"===e.error.code?(t.transaction.status="SUBSCRIBED",t.transaction.config.subscribeDuration>2?(t.redirectTout=t.transaction.config.subscribeDuration,t.finishStep3()):t.runRedirectUrl()):(t.transaction.order.status="PENDING",t.stepVisible=3,t.onStep3())}else t.document.location.href=e.error.message}))},t.prototype.acceptForm2=function(){this.stepForm2.get("rules1").setValue(!0),this.isAcceptForm2=!0},t.prototype.onFormSubmit2=function(){var t=this;console.log("stepForm2 - invalid: ",this.stepForm2.invalid);var e,n=!0;if("ASK"===this.transaction.config.plusConsent&&((n=this.stepForm2.get("rules0").value)||(this.showInValidRule0=!0,setTimeout(function(){t.showInValidRule0=!1},2e3))),(e=this.stepForm2.get("rules1").value)||(this.showInValidRule1=!0,setTimeout(function(){t.showInValidRule1=!1},2e3)),n&&e)if(this.showLoading=!0,this.transaction.pinRequired){var r=new function(t,e,n){this.TransactionId=t,this.Pin=e,this.Consents=n}(this.transactionId,this.stepForm2.get("PIN").value||this.transaction.PIN,"ASK"===this.transaction.config.plusConsent?"USL_API":null);this.paymentService.confirm(r,this.authToken,this.isMobileConnection()).subscribe(function(e){console.log("confirm: ",e),t.showLoading=!1,t.transaction.order.status=e.status,t.transaction.order.code=e.code,t.transaction.order.message=e.message,t.transaction.order.netPrice=e.price,"O"!==t.transaction.order.carrier||347!==e.code&&361!==e.code&&611!==e.code&&612!==e.code&&613!==e.code&&614!==e.code&&620!==e.code&&621!==e.code&&623!==e.code&&624!==e.code&&514!==e.code&&619!==e.code&&622!==e.code||(t.orangeUSE=!0,t.redirectTout=20),"INVALIDPIN"===e.status?t.errorPayText="Nieprawid\u0142owy PIN":(window.parent.postMessage({step:3,transactionId:t.transactionId,msisdn:t.transaction.phoneNumber},"*"),t.stepVisible=3,t.onStep3())},function(e){console.log("confirm-err: ",e.error),"BOUNDLED"!==e.error.code?(t.showLoading=!1,t.errorProccedText=e.error.message,t.transaction.order.status=e.error.code,t.transaction.order.code=-1,t.transaction.order.message=e.error.message,t.stepVisible=3,"SUBSCRIBED"===e.error.code?(t.transaction.status="SUBSCRIBED",t.transaction.config.subscribeDuration>2?(t.redirectTout=t.transaction.config.subscribeDuration,t.finishStep3()):t.runRedirectUrl()):(t.transaction.order.status="PENDING",t.stepVisible=3,t.onStep3())):t.document.location.href=e.error.message})}else this.transaction.phoneNumber.startsWith("48")||(this.transaction.phoneNumber="48"+this.transaction.phoneNumber),this.paymentService.proceed({TransactionId:this.transactionId,Msisdn:this.transaction.phoneNumber,Carrier:this.transaction.order.carrier,Consents:"ASK"===this.transaction.config.plusConsent?"USL_API":null,Connection:this.isMobileConnection()},this.authToken,this.partner).subscribe(function(e){t.transaction.config=e.config,t.showLoading=!1,t.transaction.order.status=e.status,window.parent.postMessage({step:3,transactionId:t.transactionId,msisdn:t.transaction.phoneNumber},"*"),t.stepVisible=3,t.onStep3()},function(e){if(console.log("proceed-err: ",e.error),"BOUNDLED"===e.error.code)return t.transaction.order.status=e.error.code,t.transaction.order.redirectUrl=e.error.message,void(t.document.location.href=e.error.message);t.errorProccedText=e.error.message,t.transaction.order.status=e.error.code,t.transaction.order.code=-1,t.transaction.order.message=e.error.message,t.showLoading=!1,t.stepVisible=3,"SUBSCRIBED"===e.error.code?(t.transaction.status="SUBSCRIBED",t.transaction.config.subscribeDuration>2?(t.redirectTout=t.transaction.config.subscribeDuration,t.finishStep3()):t.runRedirectUrl()):(t.transaction.order.status="PENDING",t.stepVisible=3,t.onStep3())})},t.prototype.onStep3=function(){var t=this,e=0;if("PENDING"===this.transaction.order.status||"VALIDPIN"===this.transaction.order.status){this.showLoading=!0;var n=_d(1e3).pipe(j(function(t){return t})).subscribe(function(r){console.log("interval y: ",r," | date: ",new Date),r%16!=0&&0!==r||t.checkStatus(++e,n)})}else this.finishStep3()},t.prototype.checkStatus=function(t,e){var n=this;return this.paymentService.status(this.transactionId,this.authToken).subscribe(function(r){if(console.log("checkStatus.step3 - status:",r),n.transaction.order.status=r.status,n.transaction.order.code=r.code,n.transaction.order.message=r.message,n.transaction.order.netPrice=r.price,6===t||"PENDING"!==n.transaction.order.status)return e&&(console.log("checkStatus.step3 - unsubscribe:",r),e.unsubscribe()),"O"!==n.transaction.order.carrier||347!==r.code&&361!==r.code&&611!==r.code&&612!==r.code&&613!==r.code&&614!==r.code&&620!==r.code&&621!==r.code&&623!==r.code&&624!==r.code&&514!==r.code&&619!==r.code&&622!==r.code||(n.orangeUSE=!0,n.redirectTout=20),n.transaction.order.memorizing&&(("OCC"!==n.transaction.order.memorizing&&"CFC"!==n.transaction.order.memorizing||"COMPLETED"!==n.transaction.order.status)&&"OCA"!==n.transaction.order.memorizing&&"CFA"!==n.transaction.order.memorizing||localStorage.setItem(n.partner+".msisdn",n.transaction.phoneNumber)),n.finishStep3(),!0}),!1},t.prototype.runRedirectUrl=function(){if(!this.redirected){if(void 0===this.transaction.order.redirectUrl)return;if(null===this.transaction.order.redirectUrl)return;var t=this.transaction.order.redirectUrl.replace("@tid",this.transactionId).replace("@status","PENDING"===this.transaction.order.status?"REJECTED":this.transaction.order.status).replace("@msisdn",this.transaction.order.msisdn).replace("@pmsisdn","48"+this.transaction.order.msisdn).replace("@carrier",this.transaction.order.carrier).replace("@id",this.transaction.order.id?this.transaction.order.id:"").replace("@code",this.transaction.order.code?this.transaction.order.code.toString():"").replace("@price",this.transaction.order.netPrice?this.transaction.order.netPrice.toString():"").replace("@product",this.transaction.order.productId?this.transaction.order.productId.toString():"").replace("@sid",this.transaction.service?this.transaction.service.id.toString():"").replace("%40tid",this.transactionId).replace("%40status",this.transaction.order.status).replace("%40msisdn",this.transaction.order.msisdn).replace("%40pmsisdn","48"+this.transaction.order.msisdn).replace("%40carrier",this.transaction.order.carrier).replace("%40id",this.transaction.order.id?this.transaction.order.id:"").replace("%40code",this.transaction.order.code?this.transaction.order.code.toString():"").replace("%40price",this.transaction.order.netPrice?this.transaction.order.netPrice.toString():"").replace("%40product",this.transaction.order.productId?this.transaction.order.productId.toString():"").replace("%40sid",this.transaction.service?this.transaction.service.id.toString():"");this.redirected||this.redirected||(this.redirected=!0,this.document.location.href=t)}},t.prototype.finishStep3=function(){var t=this;if(this.showLoading=!1,this.transaction.order.redirectUrl&&this.transaction.order.redirectUrl.length>0)var e=_d(1e3).pipe(j(function(t){return t})).subscribe(function(n){console.log("finish.interval y: ",n," | date: ",new Date),t.redirectTout>0&&0==--t.redirectTout&&(e.unsubscribe(),t.returnToPage())})},t.prototype.returnToPage=function(){this.runRedirectUrl()},t.prototype.backToBegining=function(){this.transaction.order.carrier="?",this.stepVisible=1},t.prototype.findOperator=function(){var t=this,e=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection;if(e){var n=String(e.type);console.log("AN:findOperator! conType",n),"cellular"===n?(this.connCellular=2,this.paymentService.network(this.authToken).subscribe(function(e){t.transaction.order.carrier=e.carrier,t.transaction.rules=vd.rules[t.transaction.order.carrier],t.transaction.rules.accept=t.transaction.rules.accept.replace("[SERVICENAME]",t.transaction.service.name)})):this.connCellular=1}else this.paymentService.network(this.authToken).subscribe(function(e){t.transaction.order.carrier=e.carrier,t.transaction.rules=vd.rules[t.transaction.order.carrier],t.transaction.rules.accept=t.transaction.rules.accept.replace("[SERVICENAME]",t.transaction.service.name)})},t.prototype.isMobileConnection=function(){var t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection;if(t){var e=String(t.type);return console.log("AN:isMobileConnection! conType",e),"cellular"===e?(this.connCellular=2,"cellular"):(this.connCellular=1,void 0===t.type||null===t.type?"typeundef":e)}return console.log("AN:isMobileConnection! conType",e),this.connCellular=1,"conundef"},t.prototype.onAccept=function(){console.log("OnAccept")},t.prototype.onComplete=function(){console.log("onComplete")},t}(),Cd=function(){},Sd=function(){function t(t,e){this.route=t,this.title="app",this.configGuid=e.nativeElement.getAttribute("configGuid"),this.redirectUrl=e.nativeElement.getAttribute("redirectUrl")}return t.prototype.ngOnInit=function(){console.log("configGuid: ",this.configGuid),sessionStorage.setItem("configGuid",this.configGuid),this.redirectUrl||(this.redirectUrl=""),sessionStorage.setItem("redirectUrl",this.redirectUrl),this.route.url.subscribe(function(t){console.log(t)})},t.prototype.ngAfterViewChecked=function(){},t}(),Td=new O(function(t){return t.complete()});function Pd(t){return t?function(t){return new O(function(e){return t.schedule(function(){return e.complete()})})}(t):Td}function Ed(t){return new O(function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?W(n):Pd()).subscribe(e)})}var Md={},kd=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Od(t,this.resultSelector))},t}(),Od=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return o(e,t),e.prototype._next=function(t){this.values.push(Md),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n=2;return function(r){return r.pipe(t?Hl(function(e,n){return t(e,n,r)}):Y,Kd(1),n?qd(e):tf(function(){return new Dd}))}}function af(t){return function(e){return 0===t?Pd():e.lift(new uf(t))}}var uf=function(){function t(t){if(this.total=t,this.total<0)throw new Qd}return t.prototype.call=function(t,e){return e.subscribe(new sf(t,this.total))},t}(),sf=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(t?Hl(function(e,n){return t(e,n,r)}):Y,af(1),n?qd(e):tf(function(){return new Dd}))}}function cf(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new hf(t,e,n))}}var hf=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new pf(t,this.accumulator,this.seed,this.hasSeed))},t}(),pf=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(S);function df(){for(var t=[],e=0;et.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Kf(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Yf(t){return ei(t)?t:ti(t)?W(Promise.resolve(t)):Bl(t)}function Zf(t,e,n){return n?function(t,e){return Wf(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!tg(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!tg(a=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!tg(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var a=o.slice(0,n.segments.length),u=o.slice(n.segments.length);return!!tg(n.segments,a)&&!!n.children[Nf]&&e(n.children[Nf],r,u)}(e,n,n.segments)}(t.root,e.root)}var qf=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Bf(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return og.serialize(this)},t}(),Jf=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Kf(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return ig(this)},t}(),$f=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Bf(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return hg(this)},t}();function tg(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function eg(t,e){var n=[];return Kf(t.children,function(t,r){r===Nf&&(n=n.concat(e(t,r)))}),Kf(t.children,function(t,r){r!==Nf&&(n=n.concat(e(t,r)))}),n}var ng=function(){},rg=function(){function t(){}return t.prototype.parse=function(t){var e=new vg(t);return new qf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return ig(e);if(n){var r=e.children[Nf]?t(e.children[Nf],!1):"",o=[];return Kf(e.children,function(e,n){n!==Nf&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=eg(e,function(n,r){return r===Nf?[t(e.children[Nf],!1)]:[r+":"+t(n,!1)]});return ig(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return ug(t)+"="+ug(e)}).join("&"):ug(t)+"="+ug(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),og=new rg;function ig(t){return t.segments.map(function(t){return hg(t)}).join("/")}function ag(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ug(t){return ag(t).replace(/%3B/gi,";")}function sg(t){return ag(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lg(t){return decodeURIComponent(t)}function cg(t){return lg(t.replace(/\+/g,"%20"))}function hg(t){return""+sg(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+sg(t)+"="+sg(e[t])}).join(""));var e}var pg=/^[^\/()?;=#]+/;function dg(t){var e=t.match(pg);return e?e[0]:""}var fg=/^[^=?&#]+/,gg=/^[^?&#]+/,vg=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Jf([],{}):new Jf([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Nf]=new Jf(t,e)),n},t.prototype.parseSegment=function(){var t=dg(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new $f(lg(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=dg(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=dg(this.remaining);r&&this.capture(n=r)}t[lg(e)]=lg(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(fg))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(gg);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=cg(n),a=cg(r);if(t.hasOwnProperty(i)){var u=t[i];Array.isArray(u)||(t[i]=u=[u]),u.push(a)}else t[i]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=dg(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Nf);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[Nf]:new Jf([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),yg=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=mg(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=mg(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=bg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return bg(t,this._root).map(function(t){return t.value})},t}();function mg(t,e){var n,r;if(t===e.value)return e;try{for(var o=l(e.children),i=o.next();!i.done;i=o.next()){var a=mg(t,i.value);if(a)return a}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function bg(t,e){var n,r;if(t===e.value)return[e];try{for(var o=l(e.children),i=o.next();!i.done;i=o.next()){var a=bg(t,i.value);if(a.length)return a.unshift(e),a}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return[]}var _g=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Ag(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var wg=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Mg(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(yg);function Cg(t,e){var n=function(t,e){var n=new Pg([],{},{},"",{},Nf,e,null,t.root,-1,{});return new Eg("",new _g(n,[]))}(t,e),r=new Id([new $f("",{})]),o=new Id({}),i=new Id({}),a=new Id({}),u=new Id(""),s=new Sg(r,o,a,u,i,Nf,e,n.root);return s.snapshot=n.root,new wg(new _g(s,[]),n)}var Sg=function(){function t(t,e,n,r,o,i,a,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this._futureSnapshot=u}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(j(function(t){return Bf(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(j(function(t){return Bf(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Tg(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],a=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(a.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:i({},t.params,e.params),data:i({},t.data,e.data),resolve:i({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Pg=function(){function t(t,e,n,r,o,i,a,u,s,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this.routeConfig=u,this._urlSegment=s,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Bf(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Bf(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Eg=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Mg(r,n),r}return o(e,t),e.prototype.toString=function(){return kg(this._root)},e}(yg);function Mg(t,e){e.value._routerState=t,e.children.forEach(function(e){return Mg(t,e)})}function kg(t){var e=t.children.length>0?" { "+t.children.map(kg).join(", ")+" } ":"";return""+t.value+e}function Og(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Wf(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Wf(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&xg(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==Qf(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),Rg=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function Bg(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Nf]:""+t}function Gg(t,e,n){if(t||(t=new Jf([],{})),0===t.segments.length&&t.hasChildren())return Hg(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var a=t.segments[o],u=Bg(n[r]),s=r0&&void 0===u)break;if(u&&s&&"object"==typeof s&&void 0===s.outlets){if(!Ug(u,s,a))return i;r+=2}else{if(!Ug(u,{},a))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new Jf([],((r={})[Nf]=t,r)):t;return new qf(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(j(function(t){return new Jf([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Bl({});var i=[],a=[],u={};return Kf(n,function(n,o){var s,l,c=(s=o,l=n,r.expandSegmentGroup(t,e,l,s)).pipe(j(function(t){return u[o]=t}));o===Nf?i.push(c):a.push(c)}),Bl.apply(null,i.concat(a)).pipe(Wd(),lf(),j(function(){return u}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var a=this;return Bl.apply(void 0,h(n)).pipe(j(function(u){return a.expandSegmentAgainstRoute(t,e,n,u,r,o,i).pipe(Ud(function(t){if(t instanceof Qg)return Bl(null);throw t}))}),Wd(),of(function(t){return!!t}),Ud(function(t,n){if(t instanceof Dd||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,r,o))return Bl(new Jf([],{}));throw new Qg(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,a){return nv(r)!==i?Yg(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):Yg(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Zg(i):this.lineralizeSegments(n,i).pipe(X(function(n){var i=new Jf(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var a=this,u=$g(e,r,o),s=u.consumedSegments,l=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return Yg(e);var h=this.applyRedirectCommands(s,r.redirectTo,c);return r.redirectTo.startsWith("/")?Zg(h):this.lineralizeSegments(r,h).pipe(X(function(r){return a.expandSegment(t,e,n,r.concat(o.slice(l)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(j(function(t){return n._loadedConfig=t,new Jf(r,{})})):Bl(new Jf(r,{}));var a=$g(e,n,r),u=a.consumedSegments,s=a.lastChild;if(!a.matched)return Yg(e);var c=r.slice(s);return this.getChildConfig(t,n,r).pipe(X(function(t){var n=t.module,r=t.routes,a=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return ev(t,e,n)&&nv(n)!==Nf})}(t,n)?{segmentGroup:tv(new Jf(e,function(t,e){var n,r,o={};o[Nf]=e;try{for(var i=l(t),a=i.next();!a.done;a=i.next()){var u=a.value;""===u.path&&nv(u)!==Nf&&(o[nv(u)]=new Jf([],{}))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new Jf(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return ev(t,e,n)})}(t,n)?{segmentGroup:tv(new Jf(t.segments,function(t,e,n,r){var o,a,u={};try{for(var s=l(n),c=s.next();!c.done;c=s.next()){var h=c.value;ev(t,e,h)&&!r[nv(h)]&&(u[nv(h)]=new Jf([],{}))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}return i({},r,u)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,c,r),s=a.segmentGroup,h=a.slicedSegments;return 0===h.length&&s.hasChildren()?o.expandChildren(n,r,s).pipe(j(function(t){return new Jf(u,t)})):0===r.length&&0===h.length?Bl(new Jf(u,{})):o.expandSegment(n,s,r,h,Nf,!0).pipe(j(function(t){return new Jf(u.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?Bl(new Ff(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Bl(e._loadedConfig):function(t,e,n){var r,o=e.canLoad;return o&&0!==o.length?W(o).pipe(j(function(r){var o,i=t.get(r);if(function(t){return t&&Wg(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!Wg(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return Yf(o)})).pipe(Wd(),(r=function(t){return!0===t},function(t){return t.lift(new ff(r,void 0,t))})):Bl(!0)}(t.injector,e,n).pipe(X(function(n){return n?r.configLoader.load(t.injector,e).pipe(j(function(t){return e._loadedConfig=t,t})):function(t){return new O(function(e){return e.error(Hf("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):Bl(new Ff([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Bl(n);if(r.numberOfChildren>1||!r.children[Nf])return qg(t.redirectTo);r=r.children[Nf]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new qf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Kf(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),a={};return Kf(e.children,function(e,i){a[i]=o.createSegmentGroup(t,e,n,r)}),new Jf(i,a)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var i=l(e),a=i.next();!a.done;a=i.next()){var u=a.value;if(u.path===t.path)return e.splice(o),u;o++}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function $g(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Vf)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function tv(t){if(1===t.numberOfChildren&&t.children[Nf]){var e=t.children[Nf];return new Jf(t.segments.concat(e.segments),e.children)}return t}function ev(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function nv(t){return t.outlet||Nf}var rv=function(t){this.path=t,this.route=this.path[this.path.length-1]},ov=function(t,e){this.component=t,this.route=e};function iv(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function av(t,e,n){var r=Ag(t),o=t.value;Kf(r,function(t,r){av(t,o.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new ov(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}var uv=Symbol("INITIAL_VALUE");function sv(){return Gd(function(t){return(function(){for(var t=[],e=0;e0?Qf(n).parameters:{};o=new Pg(n,s,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,vv(t),r,t.component,t,hv(e),pv(e)+n.length,yv(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new lv;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Vf)(n,t,e);if(!r)throw new lv;var o={};Kf(r.posParams,function(t,e){o[e]=t.path});var a=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a}}(e,t,n);a=l.consumedSegments,u=n.slice(l.lastChild),o=new Pg(a,l.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,vv(t),r,t.component,t,hv(e),pv(e)+a.length,yv(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),h=dv(e,a,u,c,this.relativeLinkResolution),p=h.segmentGroup,d=h.slicedSegments;if(0===d.length&&p.hasChildren()){var f=this.processChildren(c,p);return[new _g(o,f)]}if(0===c.length&&0===d.length)return[new _g(o,[])];var g=this.processSegment(c,p,d,Nf);return[new _g(o,g)]},t}();function hv(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function pv(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function dv(t,e,n,r,o){if(n.length>0&&function(t,e,n){return r.some(function(n){return fv(t,e,n)&&gv(n)!==Nf})}(t,n)){var a=new Jf(e,function(t,e,n,r){var o,i,a={};a[Nf]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var u=l(n),s=u.next();!s.done;s=u.next()){var c=s.value;if(""===c.path&&gv(c)!==Nf){var h=new Jf([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,a[gv(c)]=h}}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return a}(t,e,r,new Jf(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return fv(t,e,n)})}(t,n)){var u=new Jf(t.segments,function(t,e,n,r,o,a){var u,s,c={};try{for(var h=l(r),p=h.next();!p.done;p=h.next()){var d=p.value;if(fv(t,n,d)&&!o[gv(d)]){var f=new Jf([],{});f._sourceSegment=t,f._segmentIndexShift="legacy"===a?t.segments.length:e.length,c[gv(d)]=f}}}catch(t){u={error:t}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}return i({},o,c)}(t,e,n,r,t.children,o));return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}var s=new Jf(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function fv(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function gv(t){return t.outlet||Nf}function vv(t){return t.data||{}}function yv(t){return t.resolve||{}}function mv(t,e,n,r){var o=iv(t,e,r);return Yf(o.resolve?o.resolve(e,n):o(e,n))}function bv(t){return function(e){return e.pipe(Gd(function(e){var n=t(e);return n?W(n).pipe(j(function(){return e})):W([e])}))}}var _v=function(){},Av=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),wv=new _t("ROUTES"),Cv=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(j(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new Ff(Xf(o.injector.get(wv)).map(zf),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?W(this.loader.load(t)):Yf(t()).pipe(X(function(t){return t instanceof Zr?Bl(t):W(e.compiler.compileModuleAsync(t))}))},t}(),Sv=function(){},Tv=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function Pv(t){throw t}function Ev(t,e,n){return e.parse("/")}function Mv(t,e){return Bl(null)}var kv=function(){function t(t,e,n,r,o,i,a,u){var s=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new nt,this.errorHandler=Pv,this.malformedUriErrorHandler=Ev,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Mv,afterPreactivation:Mv},this.urlHandlingStrategy=new Tv,this.routeReuseStrategy=new Av,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(Yr),this.console=o.get(ci);var l=o.get(Si);this.isNgZoneEnabled=l instanceof Si,this.resetConfig(u),this.currentUrlTree=new qf(new Jf([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Cv(i,a,function(t){return s.triggerEvent(new Pf(t))},function(t){return s.triggerEvent(new Ef(t))}),this.routerState=Cg(this.currentUrlTree,this.rootComponentType),this.transitions=new Id({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 t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(Hl(function(t){return 0!==t.id}),j(function(t){return i({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Gd(function(t){var r,o,a,u,s=!1,c=!1;return Bl(t).pipe(Nd(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?i({},e.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Gd(function(t){var r,o,a,u,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Bl(t).pipe(Gd(function(t){var r=e.transitions.getValue();return n.next(new yf(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?Td:[t]}),Gd(function(t){return Promise.resolve(t)}),(r=e.ngModule.injector,o=e.configLoader,a=e.urlSerializer,u=e.config,function(t){return t.pipe(Gd(function(t){return function(e,n,r,o,i){return new Jg(e,n,r,t.extractedUrl,i).apply()}(r,o,a,0,u).pipe(j(function(e){return i({},t,{urlAfterRedirects:e})}))}))}),Nd(function(t){e.currentNavigation=i({},e.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function(t,n,r,o,a){return function(r){return r.pipe(X(function(r){return function(t,e,n,r,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new cv(t,e,n,r,o,i).recognize()}(t,n,r.urlAfterRedirects,(u=r.urlAfterRedirects,e.serializeUrl(u)),o,a).pipe(j(function(t){return i({},r,{targetSnapshot:t})}));var u}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Nd(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id),e.browserUrlTree=t.urlAfterRedirects)}),Nd(function(t){var r=new Af(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var l=t.extractedUrl,c=t.source,h=t.restoredState,p=t.extras,d=new yf(t.id,e.serializeUrl(l),c,h);n.next(d);var f=Cg(l,e.rootComponentType).snapshot;return Bl(i({},t,{targetSnapshot:f,urlAfterRedirects:l,extras:i({},p,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,t.resolve(null),Td}),bv(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Nd(function(t){var n=new wf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),j(function(t){return i({},t,{guards:(n=t.targetSnapshot,r=t.currentSnapshot,o=e.rootContexts,a=n._root,function t(e,n,r,o,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var a=Ag(n);return e.children.forEach(function(e){!function(e,n,r,o,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var a=e.value,u=n?n.value:null,s=r?r.getContext(e.value.outlet):null;if(u&&a.routeConfig===u.routeConfig){var l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!tg(t.url,e.url);case"pathParamsOrQueryParamsChange":return!tg(t.url,e.url)||!Wf(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ig(t,e)||!Wf(t.queryParams,e.queryParams);case"paramsChange":default:return!Ig(t,e)}}(u,a,a.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new rv(o)):(a.data=u.data,a._resolvedData=u._resolvedData),t(e,n,a.component?s?s.children:null:r,o,i),l&&i.canDeactivateChecks.push(new ov(s&&s.outlet&&s.outlet.component||null,u))}else u&&av(n,s,i),i.canActivateChecks.push(new rv(o)),t(e,null,a.component?s?s.children:null:r,o,i)}(e,a[e.value.outlet],r,o.concat([e.value]),i),delete a[e.value.outlet]}),Kf(a,function(t,e){return av(t,r.getContext(e),i)}),i}(a,r?r._root:null,o,[a.value]))});var n,r,o,a}),function(t,e){return function(n){return n.pipe(X(function(n){var r=n.targetSnapshot,o=n.currentSnapshot,a=n.guards,u=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===u.length?Bl(i({},n,{guardsResult:!0})):function(t,e,n,r){return W(s).pipe(X(function(t){return function(t,e,n,r,o){var i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?Bl(i.map(function(i){var a,u=iv(i,e,o);if(function(t){return t&&Wg(t.canDeactivate)}(u))a=Yf(u.canDeactivate(t,e,n,r));else{if(!Wg(u))throw new Error("Invalid CanDeactivate guard");a=Yf(u(t,e,n,r))}return a.pipe(of())})).pipe(sv()):Bl(!0)}(t.component,t.route,n,e,r)}),of(function(t){return!0!==t},!0))}(0,r,o,t).pipe(X(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return W(u).pipe(Gl(function(e){return W([function(t,e){return null!==t&&e&&e(new Mf(t)),Bl(!0)}(e.route.parent,r),function(t,e){return null!==t&&e&&e(new Of(t)),Bl(!0)}(e.route,r),function(t,e,n){var r=e[e.length-1];return Bl(e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return Ed(function(){return Bl(e.guards.map(function(o){var i,a=iv(o,e.node,n);if(function(t){return t&&Wg(t.canActivateChild)}(a))i=Yf(a.canActivateChild(r,t));else{if(!Wg(a))throw new Error("Invalid CanActivateChild guard");i=Yf(a(r,t))}return i.pipe(of())})).pipe(sv())})})).pipe(sv())}(t,e.path,n),function(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Bl(r.map(function(r){return Ed(function(){var o,i=iv(r,e,n);if(function(t){return t&&Wg(t.canActivate)}(i))o=Yf(i.canActivate(e,t));else{if(!Wg(i))throw new Error("Invalid CanActivate guard");o=Yf(i(e,t))}return o.pipe(of())})})).pipe(sv()):Bl(!0)}(t,e.route,n)]).pipe(Wd(),of(function(t){return!0!==t},!0))}),of(function(t){return!0!==t},!0))}(r,0,t,e):Bl(n)}),j(function(t){return i({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),Nd(function(t){if(Xg(t.guardsResult)){var n=Hf('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}}),Nd(function(t){var n=new Cf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),Hl(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new bf(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),bv(function(t){if(t.guards.canActivateChecks.length)return Bl(t).pipe(Nd(function(t){var n=new Sf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(X(function(t){var e=t.targetSnapshot,o=t.guards.canActivateChecks;return o.length?W(o).pipe(Gl(function(t){return function(t,n,r,o){return function(t,e,n,r){var o=Object.keys(t);if(0===o.length)return Bl({});if(1===o.length){var i=o[0];return mv(t[i],e,n,r).pipe(j(function(t){var e;return(e={})[i]=t,e}))}var a={};return W(o).pipe(X(function(o){return mv(t[o],e,n,r).pipe(j(function(t){return a[o]=t,t}))})).pipe(lf(),j(function(){return a}))}(t._resolve,t,e,o).pipe(j(function(e){return t._resolvedData=e,t.data=i({},t.data,Tg(t,r).resolve),null}))}(t.route,0,n,r)}),function(t,e){return arguments.length>=2?function(n){return M(cf(t,e),af(1),qd(e))(n)}:function(e){return M(cf(function(e,n,r){return t(e,n,r+1)}),af(1))(e)}}(function(t,e){return t}),j(function(e){return t})):Bl(t)}))}),Nd(function(t){var n=new Tf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,r}),bv(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),j(function(t){var n,r,o,a=(o=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(s=r.value)._futureSnapshot=n.value;var o=function(e,n,r){return n.children.map(function(n){var o,i;try{for(var a=l(r.children),u=a.next();!u.done;u=a.next()){var s=u.value;if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s)}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return t(e,n)})}(e,n,r);return new _g(s,o)}var i=e.retrieve(n.value);if(i){var a=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;ru;){if(s-=u,!(a=a.parent))throw new Error("Invalid number of '../'");u=a.segments.length}return new Rg(a,!1,u-s)}()}(i,0,t),u=a.processChildren?Hg(a.segmentGroup,a.index,i.commands):Gg(a.segmentGroup,a.index,i.commands);return Dg(a.segmentGroup,u,e,r,o)}(l,this.currentUrlTree,t,p,c)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),yo()&&this.isNgZoneEnabled&&!Si.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Xg(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e-1},a([u(0,Ie(si))],t)}(),Dm=function(){function t(){}var e;return e=t,t.forRoot=function(){return{ngModule:e,providers:[xm]}},t}(),Nm=function(){},Rm=function(){},Bm=function(t,e,n){return new Rl(Cd,[Sd],function(t){return function(t){for(var e={},n=[],r=!1,o=0;o