mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
1 line
3.3 MiB
1 line
3.3 MiB
(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{98255:function(ue){function q(f){return Promise.resolve().then(function(){var B=new Error("Cannot find module '"+f+"'");throw B.code="MODULE_NOT_FOUND",B})}q.keys=function(){return[]},q.resolve=q,q.id=98255,ue.exports=q},82908:function(ue){ue.exports=function(f,B){(null==B||B>f.length)&&(B=f.length);for(var U=0,V=new Array(B);U<B;U++)V[U]=f[U];return V},ue.exports.default=ue.exports,ue.exports.__esModule=!0},36457:function(ue){ue.exports=function(f){if(Array.isArray(f))return f},ue.exports.default=ue.exports,ue.exports.__esModule=!0},35036:function(ue){ue.exports=function(f,B){var U=null==f?null:"undefined"!=typeof Symbol&&f[Symbol.iterator]||f["@@iterator"];if(null!=U){var N,b,V=[],Z=!0,w=!1;try{for(U=U.call(f);!(Z=(N=U.next()).done)&&(V.push(N.value),!B||V.length!==B);Z=!0);}catch(_){w=!0,b=_}finally{try{!Z&&null!=U.return&&U.return()}finally{if(w)throw b}}return V}},ue.exports.default=ue.exports,ue.exports.__esModule=!0},13969:function(ue){ue.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},ue.exports.default=ue.exports,ue.exports.__esModule=!0},6326:function(ue,q,f){var B=f(36457),U=f(35036),V=f(54850),Z=f(13969);ue.exports=function(N,b){return B(N)||U(N,b)||V(N,b)||Z()},ue.exports.default=ue.exports,ue.exports.__esModule=!0},54850:function(ue,q,f){var B=f(82908);ue.exports=function(V,Z){if(V){if("string"==typeof V)return B(V,Z);var w=Object.prototype.toString.call(V).slice(8,-1);if("Object"===w&&V.constructor&&(w=V.constructor.name),"Map"===w||"Set"===w)return Array.from(V);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return B(V,Z)}},ue.exports.default=ue.exports,ue.exports.__esModule=!0},26552:function(ue,q,f){ue.exports=f(55590)},61855:function(ue,q,f){"use strict";f.d(q,{ZT:function(){return U},mG:function(){return _},Jh:function(){return I},ev:function(){return R}});var B=function($,ae){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ce){se.__proto__=ce}||function(se,ce){for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&(se[le]=ce[le])})($,ae)};function U($,ae){if("function"!=typeof ae&&null!==ae)throw new TypeError("Class extends value "+String(ae)+" is not a constructor or null");function se(){this.constructor=$}B($,ae),$.prototype=null===ae?Object.create(ae):(se.prototype=ae.prototype,new se)}function _($,ae,se,ce){return new(se||(se=Promise))(function(oe,Ae){function be(_t){try{qe(ce.next(_t))}catch(yt){Ae(yt)}}function it(_t){try{qe(ce.throw(_t))}catch(yt){Ae(yt)}}function qe(_t){_t.done?oe(_t.value):function(oe){return oe instanceof se?oe:new se(function(Ae){Ae(oe)})}(_t.value).then(be,it)}qe((ce=ce.apply($,ae||[])).next())})}function I($,ae){var ce,le,oe,Ae,se={label:0,sent:function(){if(1&oe[0])throw oe[1];return oe[1]},trys:[],ops:[]};return Ae={next:be(0),throw:be(1),return:be(2)},"function"==typeof Symbol&&(Ae[Symbol.iterator]=function(){return this}),Ae;function be(qe){return function(_t){return function(qe){if(ce)throw new TypeError("Generator is already executing.");for(;se;)try{if(ce=1,le&&(oe=2&qe[0]?le.return:qe[0]?le.throw||((oe=le.return)&&oe.call(le),0):le.next)&&!(oe=oe.call(le,qe[1])).done)return oe;switch(le=0,oe&&(qe=[2&qe[0],oe.value]),qe[0]){case 0:case 1:oe=qe;break;case 4:return se.label++,{value:qe[1],done:!1};case 5:se.label++,le=qe[1],qe=[0];continue;case 7:qe=se.ops.pop(),se.trys.pop();continue;default:if(!(oe=(oe=se.trys).length>0&&oe[oe.length-1])&&(6===qe[0]||2===qe[0])){se=0;continue}if(3===qe[0]&&(!oe||qe[1]>oe[0]&&qe[1]<oe[3])){se.label=qe[1];break}if(6===qe[0]&&se.label<oe[1]){se.label=oe[1],oe=qe;break}if(oe&&se.label<oe[2]){se.label=oe[2],se.ops.push(qe);break}oe[2]&&se.ops.pop(),se.trys.pop();continue}qe=ae.call($,se)}catch(_t){qe=[6,_t],le=0}finally{ce=oe=0}if(5&qe[0])throw qe[1];return{value:qe[0]?qe[1]:void 0,done:!0}}([qe,_t])}}}function R($,ae,se){if(se||2===arguments.length)for(var oe,ce=0,le=ae.length;ce<le;ce++)(oe||!(ce in ae))&&(oe||(oe=Array.prototype.slice.call(ae,0,ce)),oe[ce]=ae[ce]);return $.concat(oe||Array.prototype.slice.call(ae))}},739:function(ue,q,f){"use strict";f.d(q,{l3:function(){return w},_j:function(){return V},LC:function(){return Z},ZN:function(){return O},jt:function(){return b},pV:function(){return T},F4:function(){return S},IO:function(){return k},vP:function(){return I},SB:function(){return A},oB:function(){return D},eR:function(){return v},X$:function(){return N},ZE:function(){return F},k1:function(){return z}});var B=f(14105),U=f(18967),V=function K(){(0,U.Z)(this,K)},Z=function K(){(0,U.Z)(this,K)},w="*";function N(K,j){return{type:7,name:K,definitions:j,options:{}}}function b(K){var j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:j,timings:K}}function I(K){var j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:K,options:j}}function D(K){return{type:6,styles:K,offset:null}}function A(K,j,J){return{type:0,name:K,styles:j,options:J}}function S(K){return{type:5,steps:K}}function v(K,j){var J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:K,animation:j,options:J}}function T(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:K}}function k(K,j){var J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:K,animation:j,options:J}}function x(K){Promise.resolve(null).then(K)}var O=function(){function K(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,U.Z)(this,K),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=j+J}return(0,B.Z)(K,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(J){return J()}),this._onDoneFns=[])}},{key:"onStart",value:function(J){this._onStartFns.push(J)}},{key:"onDone",value:function(J){this._onDoneFns.push(J)}},{key:"onDestroy",value:function(J){this._onDestroyFns.push(J)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var J=this;x(function(){return J._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(J){return J()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(J){return J()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(J){this._position=this.totalTime?J*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(J){var ee="start"==J?this._onStartFns:this._onDoneFns;ee.forEach(function($){return $()}),ee.length=0}}]),K}(),F=function(){function K(j){var J=this;(0,U.Z)(this,K),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=j;var ee=0,$=0,ae=0,se=this.players.length;0==se?x(function(){return J._onFinish()}):this.players.forEach(function(ce){ce.onDone(function(){++ee==se&&J._onFinish()}),ce.onDestroy(function(){++$==se&&J._onDestroy()}),ce.onStart(function(){++ae==se&&J._onStart()})}),this.totalTime=this.players.reduce(function(ce,le){return Math.max(ce,le.totalTime)},0)}return(0,B.Z)(K,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(J){return J()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(J){return J.init()})}},{key:"onStart",value:function(J){this._onStartFns.push(J)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(J){return J()}),this._onStartFns=[])}},{key:"onDone",value:function(J){this._onDoneFns.push(J)}},{key:"onDestroy",value:function(J){this._onDestroyFns.push(J)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(J){return J.play()})}},{key:"pause",value:function(){this.players.forEach(function(J){return J.pause()})}},{key:"restart",value:function(){this.players.forEach(function(J){return J.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(J){return J.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(J){return J.destroy()}),this._onDestroyFns.forEach(function(J){return J()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(J){return J.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(J){var ee=J*this.totalTime;this.players.forEach(function($){var ae=$.totalTime?Math.min(1,ee/$.totalTime):1;$.setPosition(ae)})}},{key:"getPosition",value:function(){var J=this.players.reduce(function(ee,$){return null===ee||$.totalTime>ee.totalTime?$:ee},null);return null!=J?J.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(J){J.beforeDestroy&&J.beforeDestroy()})}},{key:"triggerCallback",value:function(J){var ee="start"==J?this._onStartFns:this._onDoneFns;ee.forEach(function($){return $()}),ee.length=0}}]),K}(),z="!"},6517:function(ue,q,f){"use strict";f.d(q,{rt:function(){return rt},s1:function(){return xe},$s:function(){return qe},kH:function(){return ur},Em:function(){return De},tE:function(){return tr},qV:function(){return Ln},qm:function(){return Oe},Kd:function(){return In},X6:function(){return we},yG:function(){return ct}});var B=f(71955),U=f(13920),V=f(89200),Z=f(10509),w=f(97154),N=f(18967),b=f(14105),_=f(40098),I=f(38999),D=f(68707),A=f(5051),S=f(90838),v=f(43161),g=f(32819),T=f(59371),R=f(57263),k=f(58780),E=f(85639),x=f(48359),O=f(18756),F=f(76161),z=f(44213),K=f(78081),j=f(15427),J=f(96798);function se(he,Ie){return(he.getAttribute(Ie)||"").match(/\S+/g)||[]}var ce="cdk-describedby-message-container",le="cdk-describedby-message",oe="cdk-describedby-host",Ae=0,be=new Map,it=null,qe=function(){var he=function(){function Ie(Ne){(0,N.Z)(this,Ie),this._document=Ne}return(0,b.Z)(Ie,[{key:"describe",value:function(Le,ze,At){if(this._canBeDescribed(Le,ze)){var an=_t(ze,At);"string"!=typeof ze?(yt(ze),be.set(an,{messageElement:ze,referenceCount:0})):be.has(an)||this._createMessageElement(ze,At),this._isElementDescribedByMessage(Le,an)||this._addMessageReference(Le,an)}}},{key:"removeDescription",value:function(Le,ze,At){if(ze&&this._isElementNode(Le)){var an=_t(ze,At);if(this._isElementDescribedByMessage(Le,an)&&this._removeMessageReference(Le,an),"string"==typeof ze){var jn=be.get(an);jn&&0===jn.referenceCount&&this._deleteMessageElement(an)}it&&0===it.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var Le=this._document.querySelectorAll("[".concat(oe,"]")),ze=0;ze<Le.length;ze++)this._removeCdkDescribedByReferenceIds(Le[ze]),Le[ze].removeAttribute(oe);it&&this._deleteMessagesContainer(),be.clear()}},{key:"_createMessageElement",value:function(Le,ze){var At=this._document.createElement("div");yt(At),At.textContent=Le,ze&&At.setAttribute("role",ze),this._createMessagesContainer(),it.appendChild(At),be.set(_t(Le,ze),{messageElement:At,referenceCount:0})}},{key:"_deleteMessageElement",value:function(Le){var ze=be.get(Le),At=ze&&ze.messageElement;it&&At&&it.removeChild(At),be.delete(Le)}},{key:"_createMessagesContainer",value:function(){if(!it){var Le=this._document.getElementById(ce);Le&&Le.parentNode&&Le.parentNode.removeChild(Le),(it=this._document.createElement("div")).id=ce,it.style.visibility="hidden",it.classList.add("cdk-visually-hidden"),this._document.body.appendChild(it)}}},{key:"_deleteMessagesContainer",value:function(){it&&it.parentNode&&(it.parentNode.removeChild(it),it=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(Le){var ze=se(Le,"aria-describedby").filter(function(At){return 0!=At.indexOf(le)});Le.setAttribute("aria-describedby",ze.join(" "))}},{key:"_addMessageReference",value:function(Le,ze){var At=be.get(ze);(function(he,Ie,Ne){var Le=se(he,Ie);Le.some(function(ze){return ze.trim()==Ne.trim()})||(Le.push(Ne.trim()),he.setAttribute(Ie,Le.join(" ")))})(Le,"aria-describedby",At.messageElement.id),Le.setAttribute(oe,""),At.referenceCount++}},{key:"_removeMessageReference",value:function(Le,ze){var At=be.get(ze);At.referenceCount--,function(he,Ie,Ne){var ze=se(he,Ie).filter(function(At){return At!=Ne.trim()});ze.length?he.setAttribute(Ie,ze.join(" ")):he.removeAttribute(Ie)}(Le,"aria-describedby",At.messageElement.id),Le.removeAttribute(oe)}},{key:"_isElementDescribedByMessage",value:function(Le,ze){var At=se(Le,"aria-describedby"),an=be.get(ze),jn=an&&an.messageElement.id;return!!jn&&-1!=At.indexOf(jn)}},{key:"_canBeDescribed",value:function(Le,ze){if(!this._isElementNode(Le))return!1;if(ze&&"object"==typeof ze)return!0;var At=null==ze?"":"".concat(ze).trim(),an=Le.getAttribute("aria-label");return!(!At||an&&an.trim()===At)}},{key:"_isElementNode",value:function(Le){return Le.nodeType===this._document.ELEMENT_NODE}}]),Ie}();return he.\u0275fac=function(Ne){return new(Ne||he)(I.LFG(_.K0))},he.\u0275prov=I.Yz7({factory:function(){return new he(I.LFG(_.K0))},token:he,providedIn:"root"}),he}();function _t(he,Ie){return"string"==typeof he?"".concat(Ie||"","/").concat(he):he}function yt(he){he.id||(he.id="".concat(le,"-").concat(Ae++))}var Ft=function(){function he(Ie){var Ne=this;(0,N.Z)(this,he),this._items=Ie,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new D.xQ,this._typeaheadSubscription=A.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(Le){return Le.disabled},this._pressedLetters=[],this.tabOut=new D.xQ,this.change=new D.xQ,Ie instanceof I.n_E&&Ie.changes.subscribe(function(Le){if(Ne._activeItem){var At=Le.toArray().indexOf(Ne._activeItem);At>-1&&At!==Ne._activeItemIndex&&(Ne._activeItemIndex=At)}})}return(0,b.Z)(he,[{key:"skipPredicate",value:function(Ne){return this._skipPredicateFn=Ne,this}},{key:"withWrap",value:function(){var Ne=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=Ne,this}},{key:"withVerticalOrientation",value:function(){var Ne=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=Ne,this}},{key:"withHorizontalOrientation",value:function(Ne){return this._horizontal=Ne,this}},{key:"withAllowedModifierKeys",value:function(Ne){return this._allowedModifierKeys=Ne,this}},{key:"withTypeAhead",value:function(){var Ne=this,Le=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,T.b)(function(ze){return Ne._pressedLetters.push(ze)}),(0,R.b)(Le),(0,k.h)(function(){return Ne._pressedLetters.length>0}),(0,E.U)(function(){return Ne._pressedLetters.join("")})).subscribe(function(ze){for(var At=Ne._getItemsArray(),an=1;an<At.length+1;an++){var jn=(Ne._activeItemIndex+an)%At.length,Rr=At[jn];if(!Ne._skipPredicateFn(Rr)&&0===Rr.getLabel().toUpperCase().trim().indexOf(ze)){Ne.setActiveItem(jn);break}}Ne._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var Ne=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=Ne,this}},{key:"setActiveItem",value:function(Ne){var Le=this._activeItem;this.updateActiveItem(Ne),this._activeItem!==Le&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(Ne){var Le=this,ze=Ne.keyCode,an=["altKey","ctrlKey","metaKey","shiftKey"].every(function(jn){return!Ne[jn]||Le._allowedModifierKeys.indexOf(jn)>-1});switch(ze){case g.Mf:return void this.tabOut.next();case g.JH:if(this._vertical&&an){this.setNextItemActive();break}return;case g.LH:if(this._vertical&&an){this.setPreviousItemActive();break}return;case g.SV:if(this._horizontal&&an){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case g.oh:if(this._horizontal&&an){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case g.Sd:if(this._homeAndEnd&&an){this.setFirstItemActive();break}return;case g.uR:if(this._homeAndEnd&&an){this.setLastItemActive();break}return;default:return void((an||(0,g.Vb)(Ne,"shiftKey"))&&(Ne.key&&1===Ne.key.length?this._letterKeyStream.next(Ne.key.toLocaleUpperCase()):(ze>=g.A&&ze<=g.Z||ze>=g.xE&&ze<=g.aO)&&this._letterKeyStream.next(String.fromCharCode(ze))))}this._pressedLetters=[],Ne.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(Ne){var Le=this._getItemsArray(),ze="number"==typeof Ne?Ne:Le.indexOf(Ne),At=Le[ze];this._activeItem=null==At?null:At,this._activeItemIndex=ze}},{key:"_setActiveItemByDelta",value:function(Ne){this._wrap?this._setActiveInWrapMode(Ne):this._setActiveInDefaultMode(Ne)}},{key:"_setActiveInWrapMode",value:function(Ne){for(var Le=this._getItemsArray(),ze=1;ze<=Le.length;ze++){var At=(this._activeItemIndex+Ne*ze+Le.length)%Le.length;if(!this._skipPredicateFn(Le[At]))return void this.setActiveItem(At)}}},{key:"_setActiveInDefaultMode",value:function(Ne){this._setActiveItemByIndex(this._activeItemIndex+Ne,Ne)}},{key:"_setActiveItemByIndex",value:function(Ne,Le){var ze=this._getItemsArray();if(ze[Ne]){for(;this._skipPredicateFn(ze[Ne]);)if(!ze[Ne+=Le])return;this.setActiveItem(Ne)}}},{key:"_getItemsArray",value:function(){return this._items instanceof I.n_E?this._items.toArray():this._items}}]),he}(),xe=function(he){(0,Z.Z)(Ne,he);var Ie=(0,w.Z)(Ne);function Ne(){return(0,N.Z)(this,Ne),Ie.apply(this,arguments)}return(0,b.Z)(Ne,[{key:"setActiveItem",value:function(ze){this.activeItem&&this.activeItem.setInactiveStyles(),(0,U.Z)((0,V.Z)(Ne.prototype),"setActiveItem",this).call(this,ze),this.activeItem&&this.activeItem.setActiveStyles()}}]),Ne}(Ft),De=function(he){(0,Z.Z)(Ne,he);var Ie=(0,w.Z)(Ne);function Ne(){var Le;return(0,N.Z)(this,Ne),(Le=Ie.apply(this,arguments))._origin="program",Le}return(0,b.Z)(Ne,[{key:"setFocusOrigin",value:function(ze){return this._origin=ze,this}},{key:"setActiveItem",value:function(ze){(0,U.Z)((0,V.Z)(Ne.prototype),"setActiveItem",this).call(this,ze),this.activeItem&&this.activeItem.focus(this._origin)}}]),Ne}(Ft),dt=function(){var he=function(){function Ie(Ne){(0,N.Z)(this,Ie),this._platform=Ne}return(0,b.Z)(Ie,[{key:"isDisabled",value:function(Le){return Le.hasAttribute("disabled")}},{key:"isVisible",value:function(Le){return function(he){return!!(he.offsetWidth||he.offsetHeight||"function"==typeof he.getClientRects&&he.getClientRects().length)}(Le)&&"visible"===getComputedStyle(Le).visibility}},{key:"isTabbable",value:function(Le){if(!this._platform.isBrowser)return!1;var ze=function(he){try{return he.frameElement}catch(Ie){return null}}(function(he){return he.ownerDocument&&he.ownerDocument.defaultView||window}(Le));if(ze&&(-1===bt(ze)||!this.isVisible(ze)))return!1;var At=Le.nodeName.toLowerCase(),an=bt(Le);return Le.hasAttribute("contenteditable")?-1!==an:!("iframe"===At||"object"===At||this._platform.WEBKIT&&this._platform.IOS&&!function(he){var Ie=he.nodeName.toLowerCase(),Ne="input"===Ie&&he.type;return"text"===Ne||"password"===Ne||"select"===Ie||"textarea"===Ie}(Le))&&("audio"===At?!!Le.hasAttribute("controls")&&-1!==an:"video"===At?-1!==an&&(null!==an||this._platform.FIREFOX||Le.hasAttribute("controls")):Le.tabIndex>=0)}},{key:"isFocusable",value:function(Le,ze){return function(he){return!function(he){return function(he){return"input"==he.nodeName.toLowerCase()}(he)&&"hidden"==he.type}(he)&&(function(he){var Ie=he.nodeName.toLowerCase();return"input"===Ie||"select"===Ie||"button"===Ie||"textarea"===Ie}(he)||function(he){return function(he){return"a"==he.nodeName.toLowerCase()}(he)&&he.hasAttribute("href")}(he)||he.hasAttribute("contenteditable")||qt(he))}(Le)&&!this.isDisabled(Le)&&((null==ze?void 0:ze.ignoreVisibility)||this.isVisible(Le))}}]),Ie}();return he.\u0275fac=function(Ne){return new(Ne||he)(I.LFG(j.t4))},he.\u0275prov=I.Yz7({factory:function(){return new he(I.LFG(j.t4))},token:he,providedIn:"root"}),he}();function qt(he){if(!he.hasAttribute("tabindex")||void 0===he.tabIndex)return!1;var Ie=he.getAttribute("tabindex");return"-32768"!=Ie&&!(!Ie||isNaN(parseInt(Ie,10)))}function bt(he){if(!qt(he))return null;var Ie=parseInt(he.getAttribute("tabindex")||"",10);return isNaN(Ie)?-1:Ie}var kn=function(){function he(Ie,Ne,Le,ze){var At=this,an=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,N.Z)(this,he),this._element=Ie,this._checker=Ne,this._ngZone=Le,this._document=ze,this._hasAttached=!1,this.startAnchorListener=function(){return At.focusLastTabbableElement()},this.endAnchorListener=function(){return At.focusFirstTabbableElement()},this._enabled=!0,an||this.attachAnchors()}return(0,b.Z)(he,[{key:"enabled",get:function(){return this._enabled},set:function(Ne){this._enabled=Ne,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ne,this._startAnchor),this._toggleAnchorTabIndex(Ne,this._endAnchor))}},{key:"destroy",value:function(){var Ne=this._startAnchor,Le=this._endAnchor;Ne&&(Ne.removeEventListener("focus",this.startAnchorListener),Ne.parentNode&&Ne.parentNode.removeChild(Ne)),Le&&(Le.removeEventListener("focus",this.endAnchorListener),Le.parentNode&&Le.parentNode.removeChild(Le)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var Ne=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){Ne._startAnchor||(Ne._startAnchor=Ne._createAnchor(),Ne._startAnchor.addEventListener("focus",Ne.startAnchorListener)),Ne._endAnchor||(Ne._endAnchor=Ne._createAnchor(),Ne._endAnchor.addEventListener("focus",Ne.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(Ne){var Le=this;return new Promise(function(ze){Le._executeOnStable(function(){return ze(Le.focusInitialElement(Ne))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(Ne){var Le=this;return new Promise(function(ze){Le._executeOnStable(function(){return ze(Le.focusFirstTabbableElement(Ne))})})}},{key:"focusLastTabbableElementWhenReady",value:function(Ne){var Le=this;return new Promise(function(ze){Le._executeOnStable(function(){return ze(Le.focusLastTabbableElement(Ne))})})}},{key:"_getRegionBoundary",value:function(Ne){for(var Le=this._element.querySelectorAll("[cdk-focus-region-".concat(Ne,"], ")+"[cdkFocusRegion".concat(Ne,"], ")+"[cdk-focus-".concat(Ne,"]")),ze=0;ze<Le.length;ze++)Le[ze].hasAttribute("cdk-focus-".concat(Ne))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(Ne,"', ")+"use 'cdkFocusRegion".concat(Ne,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",Le[ze]):Le[ze].hasAttribute("cdk-focus-region-".concat(Ne))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(Ne,"', ")+"use 'cdkFocusRegion".concat(Ne,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",Le[ze]);return"start"==Ne?Le.length?Le[0]:this._getFirstTabbableElement(this._element):Le.length?Le[Le.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(Ne){var Le=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Le){if(Le.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",Le),!this._checker.isFocusable(Le)){var ze=this._getFirstTabbableElement(Le);return null==ze||ze.focus(Ne),!!ze}return Le.focus(Ne),!0}return this.focusFirstTabbableElement(Ne)}},{key:"focusFirstTabbableElement",value:function(Ne){var Le=this._getRegionBoundary("start");return Le&&Le.focus(Ne),!!Le}},{key:"focusLastTabbableElement",value:function(Ne){var Le=this._getRegionBoundary("end");return Le&&Le.focus(Ne),!!Le}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(Ne){if(this._checker.isFocusable(Ne)&&this._checker.isTabbable(Ne))return Ne;for(var Le=Ne.children||Ne.childNodes,ze=0;ze<Le.length;ze++){var At=Le[ze].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(Le[ze]):null;if(At)return At}return null}},{key:"_getLastTabbableElement",value:function(Ne){if(this._checker.isFocusable(Ne)&&this._checker.isTabbable(Ne))return Ne;for(var Le=Ne.children||Ne.childNodes,ze=Le.length-1;ze>=0;ze--){var At=Le[ze].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Le[ze]):null;if(At)return At}return null}},{key:"_createAnchor",value:function(){var Ne=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ne),Ne.classList.add("cdk-visually-hidden"),Ne.classList.add("cdk-focus-trap-anchor"),Ne.setAttribute("aria-hidden","true"),Ne}},{key:"_toggleAnchorTabIndex",value:function(Ne,Le){Ne?Le.setAttribute("tabindex","0"):Le.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(Ne){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ne,this._startAnchor),this._toggleAnchorTabIndex(Ne,this._endAnchor))}},{key:"_executeOnStable",value:function(Ne){this._ngZone.isStable?Ne():this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(Ne)}}]),he}(),Ln=function(){var he=function(){function Ie(Ne,Le,ze){(0,N.Z)(this,Ie),this._checker=Ne,this._ngZone=Le,this._document=ze}return(0,b.Z)(Ie,[{key:"create",value:function(Le){var ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new kn(Le,this._checker,this._ngZone,this._document,ze)}}]),Ie}();return he.\u0275fac=function(Ne){return new(Ne||he)(I.LFG(dt),I.LFG(I.R0b),I.LFG(_.K0))},he.\u0275prov=I.Yz7({factory:function(){return new he(I.LFG(dt),I.LFG(I.R0b),I.LFG(_.K0))},token:he,providedIn:"root"}),he}();function we(he){return 0===he.offsetX&&0===he.offsetY}function ct(he){var Ie=he.touches&&he.touches[0]||he.changedTouches&&he.changedTouches[0];return!(!Ie||-1!==Ie.identifier||null!=Ie.radiusX&&1!==Ie.radiusX||null!=Ie.radiusY&&1!==Ie.radiusY)}"undefined"!=typeof Element&∈var ft=new I.OlP("cdk-input-modality-detector-options"),Yt={ignoreKeys:[g.zL,g.jx,g.b2,g.MW,g.JU]},Jt=(0,j.i$)({passive:!0,capture:!0}),nn=function(){var he=function(){function Ie(Ne,Le,ze,At){var an=this;(0,N.Z)(this,Ie),this._platform=Ne,this._mostRecentTarget=null,this._modality=new S.X(null),this._lastTouchMs=0,this._onKeydown=function(jn){var Rr,Hr;(null===(Hr=null===(Rr=an._options)||void 0===Rr?void 0:Rr.ignoreKeys)||void 0===Hr?void 0:Hr.some(function(yr){return yr===jn.keyCode}))||(an._modality.next("keyboard"),an._mostRecentTarget=(0,j.sA)(jn))},this._onMousedown=function(jn){Date.now()-an._lastTouchMs<650||(an._modality.next(we(jn)?"keyboard":"mouse"),an._mostRecentTarget=(0,j.sA)(jn))},this._onTouchstart=function(jn){ct(jn)?an._modality.next("keyboard"):(an._lastTouchMs=Date.now(),an._modality.next("touch"),an._mostRecentTarget=(0,j.sA)(jn))},this._options=Object.assign(Object.assign({},Yt),At),this.modalityDetected=this._modality.pipe((0,O.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,F.x)()),Ne.isBrowser&&Le.runOutsideAngular(function(){ze.addEventListener("keydown",an._onKeydown,Jt),ze.addEventListener("mousedown",an._onMousedown,Jt),ze.addEventListener("touchstart",an._onTouchstart,Jt)})}return(0,b.Z)(Ie,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Jt),document.removeEventListener("mousedown",this._onMousedown,Jt),document.removeEventListener("touchstart",this._onTouchstart,Jt))}}]),Ie}();return he.\u0275fac=function(Ne){return new(Ne||he)(I.LFG(j.t4),I.LFG(I.R0b),I.LFG(_.K0),I.LFG(ft,8))},he.\u0275prov=I.Yz7({factory:function(){return new he(I.LFG(j.t4),I.LFG(I.R0b),I.LFG(_.K0),I.LFG(ft,8))},token:he,providedIn:"root"}),he}(),ln=new I.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Tn=new I.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),In=function(){var he=function(){function Ie(Ne,Le,ze,At){(0,N.Z)(this,Ie),this._ngZone=Le,this._defaultOptions=At,this._document=ze,this._liveElement=Ne||this._createLiveElement()}return(0,b.Z)(Ie,[{key:"announce",value:function(Le){for(var an,jn,ze=this,At=this._defaultOptions,Rr=arguments.length,Hr=new Array(Rr>1?Rr-1:0),yr=1;yr<Rr;yr++)Hr[yr-1]=arguments[yr];return 1===Hr.length&&"number"==typeof Hr[0]?jn=Hr[0]:(an=Hr[0],jn=Hr[1]),this.clear(),clearTimeout(this._previousTimeout),an||(an=At&&At.politeness?At.politeness:"polite"),null==jn&&At&&(jn=At.duration),this._liveElement.setAttribute("aria-live",an),this._ngZone.runOutsideAngular(function(){return new Promise(function(Yr){clearTimeout(ze._previousTimeout),ze._previousTimeout=setTimeout(function(){ze._liveElement.textContent=Le,Yr(),"number"==typeof jn&&(ze._previousTimeout=setTimeout(function(){return ze.clear()},jn))},100)})})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var Le="cdk-live-announcer-element",ze=this._document.getElementsByClassName(Le),At=this._document.createElement("div"),an=0;an<ze.length;an++)ze[an].parentNode.removeChild(ze[an]);return At.classList.add(Le),At.classList.add("cdk-visually-hidden"),At.setAttribute("aria-atomic","true"),At.setAttribute("aria-live","polite"),this._document.body.appendChild(At),At}}]),Ie}();return he.\u0275fac=function(Ne){return new(Ne||he)(I.LFG(ln,8),I.LFG(I.R0b),I.LFG(_.K0),I.LFG(Tn,8))},he.\u0275prov=I.Yz7({factory:function(){return new he(I.LFG(ln,8),I.LFG(I.R0b),I.LFG(_.K0),I.LFG(Tn,8))},token:he,providedIn:"root"}),he}(),Cn=new I.OlP("cdk-focus-monitor-default-options"),Sn=(0,j.i$)({passive:!0,capture:!0}),tr=function(){var he=function(){function Ie(Ne,Le,ze,At,an){var jn=this;(0,N.Z)(this,Ie),this._ngZone=Ne,this._platform=Le,this._inputModalityDetector=ze,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=function(){jn._windowFocused=!0,jn._windowFocusTimeoutId=setTimeout(function(){return jn._windowFocused=!1})},this._stopInputModalityDetector=new D.xQ,this._rootNodeFocusAndBlurListener=function(Rr){for(var Hr=(0,j.sA)(Rr),yr="focus"===Rr.type?jn._onFocus:jn._onBlur,Yr=Hr;Yr;Yr=Yr.parentElement)yr.call(jn,Rr,Yr)},this._document=At,this._detectionMode=(null==an?void 0:an.detectionMode)||0}return(0,b.Z)(Ie,[{key:"monitor",value:function(Le){var ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1],At=(0,K.fI)(Le);if(!this._platform.isBrowser||1!==At.nodeType)return(0,v.of)(null);var an=(0,j.kV)(At)||this._getDocument(),jn=this._elementInfo.get(At);if(jn)return ze&&(jn.checkChildren=!0),jn.subject;var Rr={checkChildren:ze,subject:new D.xQ,rootNode:an};return this._elementInfo.set(At,Rr),this._registerGlobalListeners(Rr),Rr.subject}},{key:"stopMonitoring",value:function(Le){var ze=(0,K.fI)(Le),At=this._elementInfo.get(ze);At&&(At.subject.complete(),this._setClasses(ze),this._elementInfo.delete(ze),this._removeGlobalListeners(At))}},{key:"focusVia",value:function(Le,ze,At){var an=this,jn=(0,K.fI)(Le);jn===this._getDocument().activeElement?this._getClosestElementsInfo(jn).forEach(function(Hr){var yr=(0,B.Z)(Hr,2);return an._originChanged(yr[0],ze,yr[1])}):(this._setOrigin(ze),"function"==typeof jn.focus&&jn.focus(At))}},{key:"ngOnDestroy",value:function(){var Le=this;this._elementInfo.forEach(function(ze,At){return Le.stopMonitoring(At)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(Le,ze,At){At?Le.classList.add(ze):Le.classList.remove(ze)}},{key:"_getFocusOrigin",value:function(Le){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Le)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(Le){return 1===this._detectionMode||!!(null==Le?void 0:Le.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(Le,ze){this._toggleClass(Le,"cdk-focused",!!ze),this._toggleClass(Le,"cdk-touch-focused","touch"===ze),this._toggleClass(Le,"cdk-keyboard-focused","keyboard"===ze),this._toggleClass(Le,"cdk-mouse-focused","mouse"===ze),this._toggleClass(Le,"cdk-program-focused","program"===ze)}},{key:"_setOrigin",value:function(Le){var ze=this,At=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){ze._origin=Le,ze._originFromTouchInteraction="touch"===Le&&At,0===ze._detectionMode&&(clearTimeout(ze._originTimeoutId),ze._originTimeoutId=setTimeout(function(){return ze._origin=null},ze._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(Le,ze){var At=this._elementInfo.get(ze),an=(0,j.sA)(Le);!At||!At.checkChildren&&ze!==an||this._originChanged(ze,this._getFocusOrigin(an),At)}},{key:"_onBlur",value:function(Le,ze){var At=this._elementInfo.get(ze);!At||At.checkChildren&&Le.relatedTarget instanceof Node&&ze.contains(Le.relatedTarget)||(this._setClasses(ze),this._emitOrigin(At.subject,null))}},{key:"_emitOrigin",value:function(Le,ze){this._ngZone.run(function(){return Le.next(ze)})}},{key:"_registerGlobalListeners",value:function(Le){var ze=this;if(this._platform.isBrowser){var At=Le.rootNode,an=this._rootNodeFocusListenerCount.get(At)||0;an||this._ngZone.runOutsideAngular(function(){At.addEventListener("focus",ze._rootNodeFocusAndBlurListener,Sn),At.addEventListener("blur",ze._rootNodeFocusAndBlurListener,Sn)}),this._rootNodeFocusListenerCount.set(At,an+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){ze._getWindow().addEventListener("focus",ze._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,z.R)(this._stopInputModalityDetector)).subscribe(function(jn){ze._setOrigin(jn,!0)}))}}},{key:"_removeGlobalListeners",value:function(Le){var ze=Le.rootNode;if(this._rootNodeFocusListenerCount.has(ze)){var At=this._rootNodeFocusListenerCount.get(ze);At>1?this._rootNodeFocusListenerCount.set(ze,At-1):(ze.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Sn),ze.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Sn),this._rootNodeFocusListenerCount.delete(ze))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(Le,ze,At){this._setClasses(Le,ze),this._emitOrigin(At.subject,ze),this._lastFocusOrigin=ze}},{key:"_getClosestElementsInfo",value:function(Le){var ze=[];return this._elementInfo.forEach(function(At,an){(an===Le||At.checkChildren&&an.contains(Le))&&ze.push([an,At])}),ze}}]),Ie}();return he.\u0275fac=function(Ne){return new(Ne||he)(I.LFG(I.R0b),I.LFG(j.t4),I.LFG(nn),I.LFG(_.K0,8),I.LFG(Cn,8))},he.\u0275prov=I.Yz7({factory:function(){return new he(I.LFG(I.R0b),I.LFG(j.t4),I.LFG(nn),I.LFG(_.K0,8),I.LFG(Cn,8))},token:he,providedIn:"root"}),he}(),ur=function(){var he=function(){function Ie(Ne,Le){(0,N.Z)(this,Ie),this._elementRef=Ne,this._focusMonitor=Le,this.cdkFocusChange=new I.vpe}return(0,b.Z)(Ie,[{key:"ngAfterViewInit",value:function(){var Le=this,ze=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ze,1===ze.nodeType&&ze.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(At){return Le.cdkFocusChange.emit(At)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),Ie}();return he.\u0275fac=function(Ne){return new(Ne||he)(I.Y36(I.SBq),I.Y36(tr))},he.\u0275dir=I.lG2({type:he,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),he}(),Ut="cdk-high-contrast-black-on-white",Rt="cdk-high-contrast-white-on-black",Lt="cdk-high-contrast-active",Oe=function(){var he=function(){function Ie(Ne,Le){(0,N.Z)(this,Ie),this._platform=Ne,this._document=Le}return(0,b.Z)(Ie,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var Le=this._document.createElement("div");Le.style.backgroundColor="rgb(1,2,3)",Le.style.position="absolute",this._document.body.appendChild(Le);var ze=this._document.defaultView||window,At=ze&&ze.getComputedStyle?ze.getComputedStyle(Le):null,an=(At&&At.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(Le),an){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var Le=this._document.body.classList;Le.remove(Lt),Le.remove(Ut),Le.remove(Rt),this._hasCheckedHighContrastMode=!0;var ze=this.getHighContrastMode();1===ze?(Le.add(Lt),Le.add(Ut)):2===ze&&(Le.add(Lt),Le.add(Rt))}}}]),Ie}();return he.\u0275fac=function(Ne){return new(Ne||he)(I.LFG(j.t4),I.LFG(_.K0))},he.\u0275prov=I.Yz7({factory:function(){return new he(I.LFG(j.t4),I.LFG(_.K0))},token:he,providedIn:"root"}),he}(),rt=function(){var he=function Ie(Ne){(0,N.Z)(this,Ie),Ne._applyBodyHighContrastModeCssClasses()};return he.\u0275fac=function(Ne){return new(Ne||he)(I.LFG(Oe))},he.\u0275mod=I.oAB({type:he}),he.\u0275inj=I.cJS({imports:[[j.ud,J.Q8]]}),he}()},8392:function(ue,q,f){"use strict";f.d(q,{vT:function(){return I},Is:function(){return b}});var B=f(18967),U=f(14105),V=f(38999),Z=f(40098),w=new V.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,V.f3M)(Z.K0)}}),b=function(){var D=function(){function A(S){if((0,B.Z)(this,A),this.value="ltr",this.change=new V.vpe,S){var T=(S.body?S.body.dir:null)||(S.documentElement?S.documentElement.dir:null);this.value="ltr"===T||"rtl"===T?T:"ltr"}}return(0,U.Z)(A,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),A}();return D.\u0275fac=function(S){return new(S||D)(V.LFG(w,8))},D.\u0275prov=V.Yz7({factory:function(){return new D(V.LFG(w,8))},token:D,providedIn:"root"}),D}(),I=function(){var D=function A(){(0,B.Z)(this,A)};return D.\u0275fac=function(S){return new(S||D)},D.\u0275mod=V.oAB({type:D}),D.\u0275inj=V.cJS({}),D}()},37429:function(ue,q,f){"use strict";f.d(q,{P3:function(){return S},o2:function(){return D},Ov:function(){return T},A8:function(){return k},yy:function(){return v},eX:function(){return g},k:function(){return E},Z9:function(){return A}});var B=f(36683),U=f(14105),V=f(10509),Z=f(97154),w=f(18967),N=f(17504),b=f(43161),_=f(68707),I=f(38999),D=function x(){(0,w.Z)(this,x)};function A(x){return x&&"function"==typeof x.connect}var S=function(x){(0,V.Z)(F,x);var O=(0,Z.Z)(F);function F(z){var K;return(0,w.Z)(this,F),(K=O.call(this))._data=z,K}return(0,U.Z)(F,[{key:"connect",value:function(){return(0,N.b)(this._data)?this._data:(0,b.of)(this._data)}},{key:"disconnect",value:function(){}}]),F}(D),v=function(){function x(){(0,w.Z)(this,x)}return(0,U.Z)(x,[{key:"applyChanges",value:function(F,z,K,j,J){F.forEachOperation(function(ee,$,ae){var se,ce;if(null==ee.previousIndex){var le=K(ee,$,ae);se=z.createEmbeddedView(le.templateRef,le.context,le.index),ce=1}else null==ae?(z.remove($),ce=3):(se=z.get($),z.move(se,ae),ce=2);J&&J({context:null==se?void 0:se.context,operation:ce,record:ee})})}},{key:"detach",value:function(){}}]),x}(),g=function(){function x(){(0,w.Z)(this,x),this.viewCacheSize=20,this._viewCache=[]}return(0,U.Z)(x,[{key:"applyChanges",value:function(F,z,K,j,J){var ee=this;F.forEachOperation(function($,ae,se){var ce,le;null==$.previousIndex?le=(ce=ee._insertView(function(){return K($,ae,se)},se,z,j($)))?1:0:null==se?(ee._detachAndCacheView(ae,z),le=3):(ce=ee._moveView(ae,se,z,j($)),le=2),J&&J({context:null==ce?void 0:ce.context,operation:le,record:$})})}},{key:"detach",value:function(){var z,F=(0,B.Z)(this._viewCache);try{for(F.s();!(z=F.n()).done;)z.value.destroy()}catch(j){F.e(j)}finally{F.f()}this._viewCache=[]}},{key:"_insertView",value:function(F,z,K,j){var J=this._insertViewFromCache(z,K);if(!J){var ee=F();return K.createEmbeddedView(ee.templateRef,ee.context,ee.index)}J.context.$implicit=j}},{key:"_detachAndCacheView",value:function(F,z){var K=z.detach(F);this._maybeCacheView(K,z)}},{key:"_moveView",value:function(F,z,K,j){var J=K.get(F);return K.move(J,z),J.context.$implicit=j,J}},{key:"_maybeCacheView",value:function(F,z){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(F);else{var K=z.indexOf(F);-1===K?F.destroy():z.remove(K)}}},{key:"_insertViewFromCache",value:function(F,z){var K=this._viewCache.pop();return K&&z.insert(K,F),K||null}}]),x}(),T=function(){function x(){var O=this,F=arguments.length>0&&void 0!==arguments[0]&&arguments[0],z=arguments.length>1?arguments[1]:void 0,K=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,w.Z)(this,x),this._multiple=F,this._emitChanges=K,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new _.xQ,z&&z.length&&(F?z.forEach(function(j){return O._markSelected(j)}):this._markSelected(z[0]),this._selectedToEmit.length=0)}return(0,U.Z)(x,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var F=this,z=arguments.length,K=new Array(z),j=0;j<z;j++)K[j]=arguments[j];this._verifyValueAssignment(K),K.forEach(function(J){return F._markSelected(J)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var F=this,z=arguments.length,K=new Array(z),j=0;j<z;j++)K[j]=arguments[j];this._verifyValueAssignment(K),K.forEach(function(J){return F._unmarkSelected(J)}),this._emitChangeEvent()}},{key:"toggle",value:function(F){this.isSelected(F)?this.deselect(F):this.select(F)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(F){return this._selection.has(F)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(F){this._multiple&&this.selected&&this._selected.sort(F)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(F){this.isSelected(F)||(this._multiple||this._unmarkAll(),this._selection.add(F),this._emitChanges&&this._selectedToEmit.push(F))}},{key:"_unmarkSelected",value:function(F){this.isSelected(F)&&(this._selection.delete(F),this._emitChanges&&this._deselectedToEmit.push(F))}},{key:"_unmarkAll",value:function(){var F=this;this.isEmpty()||this._selection.forEach(function(z){return F._unmarkSelected(z)})}},{key:"_verifyValueAssignment",value:function(F){}}]),x}(),k=function(){var x=function(){function O(){(0,w.Z)(this,O),this._listeners=[]}return(0,U.Z)(O,[{key:"notify",value:function(z,K){var J,j=(0,B.Z)(this._listeners);try{for(j.s();!(J=j.n()).done;)(0,J.value)(z,K)}catch($){j.e($)}finally{j.f()}}},{key:"listen",value:function(z){var K=this;return this._listeners.push(z),function(){K._listeners=K._listeners.filter(function(j){return z!==j})}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),O}();return x.\u0275fac=function(F){return new(F||x)},x.\u0275prov=I.Yz7({factory:function(){return new x},token:x,providedIn:"root"}),x}(),E=new I.OlP("_ViewRepeater")},32819:function(ue,q,f){"use strict";f.d(q,{A:function(){return Ft},zL:function(){return _},ZH:function(){return U},jx:function(){return b},yY:function(){return j},JH:function(){return O},uR:function(){return T},K5:function(){return w},hY:function(){return A},Sd:function(){return R},oh:function(){return k},b2:function(){return Gt},MW:function(){return ve},aO:function(){return be},SV:function(){return x},JU:function(){return N},L_:function(){return S},Mf:function(){return V},LH:function(){return E},Z:function(){return He},xE:function(){return J},Vb:function(){return Xt}});var U=8,V=9,w=13,N=16,b=17,_=18,A=27,S=32,T=35,R=36,k=37,E=38,x=39,O=40,j=46,J=48,be=57,Ft=65,He=90,ve=91,Gt=224;function Xt(gn){for(var Gn=arguments.length,zn=new Array(Gn>1?Gn-1:0),Vn=1;Vn<Gn;Vn++)zn[Vn-1]=arguments[Vn];return zn.length?zn.some(function(si){return gn[si]}):gn.altKey||gn.shiftKey||gn.ctrlKey||gn.metaKey}},96798:function(ue,q,f){"use strict";f.d(q,{wD:function(){return D},yq:function(){return I},Q8:function(){return A}});var B=f(18967),U=f(14105),V=f(78081),Z=f(38999),w=f(89797),N=f(68707),b=f(57263),_=function(){var S=function(){function v(){(0,B.Z)(this,v)}return(0,U.Z)(v,[{key:"create",value:function(T){return"undefined"==typeof MutationObserver?null:new MutationObserver(T)}}]),v}();return S.\u0275fac=function(g){return new(g||S)},S.\u0275prov=Z.Yz7({factory:function(){return new S},token:S,providedIn:"root"}),S}(),I=function(){var S=function(){function v(g){(0,B.Z)(this,v),this._mutationObserverFactory=g,this._observedElements=new Map}return(0,U.Z)(v,[{key:"ngOnDestroy",value:function(){var T=this;this._observedElements.forEach(function(R,k){return T._cleanupObserver(k)})}},{key:"observe",value:function(T){var R=this,k=(0,V.fI)(T);return new w.y(function(E){var O=R._observeElement(k).subscribe(E);return function(){O.unsubscribe(),R._unobserveElement(k)}})}},{key:"_observeElement",value:function(T){if(this._observedElements.has(T))this._observedElements.get(T).count++;else{var R=new N.xQ,k=this._mutationObserverFactory.create(function(E){return R.next(E)});k&&k.observe(T,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(T,{observer:k,stream:R,count:1})}return this._observedElements.get(T).stream}},{key:"_unobserveElement",value:function(T){this._observedElements.has(T)&&(this._observedElements.get(T).count--,this._observedElements.get(T).count||this._cleanupObserver(T))}},{key:"_cleanupObserver",value:function(T){if(this._observedElements.has(T)){var R=this._observedElements.get(T),k=R.observer,E=R.stream;k&&k.disconnect(),E.complete(),this._observedElements.delete(T)}}}]),v}();return S.\u0275fac=function(g){return new(g||S)(Z.LFG(_))},S.\u0275prov=Z.Yz7({factory:function(){return new S(Z.LFG(_))},token:S,providedIn:"root"}),S}(),D=function(){var S=function(){function v(g,T,R){(0,B.Z)(this,v),this._contentObserver=g,this._elementRef=T,this._ngZone=R,this.event=new Z.vpe,this._disabled=!1,this._currentSubscription=null}return(0,U.Z)(v,[{key:"disabled",get:function(){return this._disabled},set:function(T){this._disabled=(0,V.Ig)(T),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(T){this._debounce=(0,V.su)(T),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var T=this;this._unsubscribe();var R=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){T._currentSubscription=(T.debounce?R.pipe((0,b.b)(T.debounce)):R).subscribe(T.event)})}},{key:"_unsubscribe",value:function(){var T;null===(T=this._currentSubscription)||void 0===T||T.unsubscribe()}}]),v}();return S.\u0275fac=function(g){return new(g||S)(Z.Y36(I),Z.Y36(Z.SBq),Z.Y36(Z.R0b))},S.\u0275dir=Z.lG2({type:S,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),S}(),A=function(){var S=function v(){(0,B.Z)(this,v)};return S.\u0275fac=function(g){return new(g||S)},S.\u0275mod=Z.oAB({type:S}),S.\u0275inj=Z.cJS({providers:[_]}),S}()},93889:function(ue,q,f){"use strict";f.d(q,{pI:function(){return Rn},xu:function(){return Ln},aV:function(){return Nt},X_:function(){return oe},Xj:function(){return De},U8:function(){return wn}});var B=f(71955),U=f(36683),V=f(13920),Z=f(89200),w=f(10509),N=f(97154),b=f(18967),_=f(14105),I=f(28722),D=f(38999),A=f(15427),S=f(8392),v=f(40098),g=f(78081),T=f(80785),R=f(68707),k=f(5051),E=f(55371),x=f(48359),O=f(44213),F=f(49196),z=f(32819),K=(0,A.Mq)(),j=function(){function ut(He,ve){(0,b.Z)(this,ut),this._viewportRuler=He,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ve}return(0,_.Z)(ut,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var ve=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ve.style.left||"",this._previousHTMLStyles.top=ve.style.top||"",ve.style.left=(0,g.HM)(-this._previousScrollPosition.left),ve.style.top=(0,g.HM)(-this._previousScrollPosition.top),ve.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var ve=this._document.documentElement,Te=ve.style,we=this._document.body.style,ct=Te.scrollBehavior||"",ft=we.scrollBehavior||"";this._isEnabled=!1,Te.left=this._previousHTMLStyles.left,Te.top=this._previousHTMLStyles.top,ve.classList.remove("cdk-global-scrollblock"),K&&(Te.scrollBehavior=we.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),K&&(Te.scrollBehavior=ct,we.scrollBehavior=ft)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var ye=this._document.body,Te=this._viewportRuler.getViewportSize();return ye.scrollHeight>Te.height||ye.scrollWidth>Te.width}}]),ut}(),ee=function(){function ut(He,ve,ye,Te){var we=this;(0,b.Z)(this,ut),this._scrollDispatcher=He,this._ngZone=ve,this._viewportRuler=ye,this._config=Te,this._scrollSubscription=null,this._detach=function(){we.disable(),we._overlayRef.hasAttached()&&we._ngZone.run(function(){return we._overlayRef.detach()})}}return(0,_.Z)(ut,[{key:"attach",value:function(ve){this._overlayRef=ve}},{key:"enable",value:function(){var ve=this;if(!this._scrollSubscription){var ye=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ye.subscribe(function(){var Te=ve._viewportRuler.getViewportScrollPosition().top;Math.abs(Te-ve._initialScrollPosition)>ve._config.threshold?ve._detach():ve._overlayRef.updatePosition()})):this._scrollSubscription=ye.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),ut}(),$=function(){function ut(){(0,b.Z)(this,ut)}return(0,_.Z)(ut,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),ut}();function ae(ut,He){return He.some(function(ve){return ut.bottom<ve.top||ut.top>ve.bottom||ut.right<ve.left||ut.left>ve.right})}function se(ut,He){return He.some(function(ve){return ut.top<ve.top||ut.bottom>ve.bottom||ut.left<ve.left||ut.right>ve.right})}var ce=function(){function ut(He,ve,ye,Te){(0,b.Z)(this,ut),this._scrollDispatcher=He,this._viewportRuler=ve,this._ngZone=ye,this._config=Te,this._scrollSubscription=null}return(0,_.Z)(ut,[{key:"attach",value:function(ve){this._overlayRef=ve}},{key:"enable",value:function(){var ve=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(ve._overlayRef.updatePosition(),ve._config&&ve._config.autoClose){var Te=ve._overlayRef.overlayElement.getBoundingClientRect(),we=ve._viewportRuler.getViewportSize(),ct=we.width,ft=we.height;ae(Te,[{width:ct,height:ft,bottom:ft,right:ct,top:0,left:0}])&&(ve.disable(),ve._ngZone.run(function(){return ve._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),ut}(),le=function(){var ut=function He(ve,ye,Te,we){var ct=this;(0,b.Z)(this,He),this._scrollDispatcher=ve,this._viewportRuler=ye,this._ngZone=Te,this.noop=function(){return new $},this.close=function(ft){return new ee(ct._scrollDispatcher,ct._ngZone,ct._viewportRuler,ft)},this.block=function(){return new j(ct._viewportRuler,ct._document)},this.reposition=function(ft){return new ce(ct._scrollDispatcher,ct._viewportRuler,ct._ngZone,ft)},this._document=we};return ut.\u0275fac=function(ve){return new(ve||ut)(D.LFG(I.mF),D.LFG(I.rL),D.LFG(D.R0b),D.LFG(v.K0))},ut.\u0275prov=D.Yz7({factory:function(){return new ut(D.LFG(I.mF),D.LFG(I.rL),D.LFG(D.R0b),D.LFG(v.K0))},token:ut,providedIn:"root"}),ut}(),oe=function ut(He){if((0,b.Z)(this,ut),this.scrollStrategy=new $,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,He)for(var ye=0,Te=Object.keys(He);ye<Te.length;ye++){var we=Te[ye];void 0!==He[we]&&(this[we]=He[we])}},Ae=function ut(He,ve,ye,Te,we){(0,b.Z)(this,ut),this.offsetX=ye,this.offsetY=Te,this.panelClass=we,this.originX=He.originX,this.originY=He.originY,this.overlayX=ve.overlayX,this.overlayY=ve.overlayY},it=function ut(He,ve){(0,b.Z)(this,ut),this.connectionPair=He,this.scrollableViewProperties=ve},yt=function(){var ut=function(){function He(ve){(0,b.Z)(this,He),this._attachedOverlays=[],this._document=ve}return(0,_.Z)(He,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(ye){this.remove(ye),this._attachedOverlays.push(ye)}},{key:"remove",value:function(ye){var Te=this._attachedOverlays.indexOf(ye);Te>-1&&this._attachedOverlays.splice(Te,1),0===this._attachedOverlays.length&&this.detach()}}]),He}();return ut.\u0275fac=function(ve){return new(ve||ut)(D.LFG(v.K0))},ut.\u0275prov=D.Yz7({factory:function(){return new ut(D.LFG(v.K0))},token:ut,providedIn:"root"}),ut}(),Ft=function(){var ut=function(He){(0,w.Z)(ye,He);var ve=(0,N.Z)(ye);function ye(Te){var we;return(0,b.Z)(this,ye),(we=ve.call(this,Te))._keydownListener=function(ct){for(var ft=we._attachedOverlays,Yt=ft.length-1;Yt>-1;Yt--)if(ft[Yt]._keydownEvents.observers.length>0){ft[Yt]._keydownEvents.next(ct);break}},we}return(0,_.Z)(ye,[{key:"add",value:function(we){(0,V.Z)((0,Z.Z)(ye.prototype),"add",this).call(this,we),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),ye}(yt);return ut.\u0275fac=function(ve){return new(ve||ut)(D.LFG(v.K0))},ut.\u0275prov=D.Yz7({factory:function(){return new ut(D.LFG(v.K0))},token:ut,providedIn:"root"}),ut}(),xe=function(){var ut=function(He){(0,w.Z)(ye,He);var ve=(0,N.Z)(ye);function ye(Te,we){var ct;return(0,b.Z)(this,ye),(ct=ve.call(this,Te))._platform=we,ct._cursorStyleIsSet=!1,ct._pointerDownListener=function(ft){ct._pointerDownEventTarget=(0,A.sA)(ft)},ct._clickListener=function(ft){var Yt=(0,A.sA)(ft),Kt="click"===ft.type&&ct._pointerDownEventTarget?ct._pointerDownEventTarget:Yt;ct._pointerDownEventTarget=null;for(var Jt=ct._attachedOverlays.slice(),nn=Jt.length-1;nn>-1;nn--){var ln=Jt[nn];if(!(ln._outsidePointerEvents.observers.length<1)&&ln.hasAttached()){if(ln.overlayElement.contains(Yt)||ln.overlayElement.contains(Kt))break;ln._outsidePointerEvents.next(ft)}}},ct}return(0,_.Z)(ye,[{key:"add",value:function(we){if((0,V.Z)((0,Z.Z)(ye.prototype),"add",this).call(this,we),!this._isAttached){var ct=this._document.body;ct.addEventListener("pointerdown",this._pointerDownListener,!0),ct.addEventListener("click",this._clickListener,!0),ct.addEventListener("auxclick",this._clickListener,!0),ct.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=ct.style.cursor,ct.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var we=this._document.body;we.removeEventListener("pointerdown",this._pointerDownListener,!0),we.removeEventListener("click",this._clickListener,!0),we.removeEventListener("auxclick",this._clickListener,!0),we.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(we.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),ye}(yt);return ut.\u0275fac=function(ve){return new(ve||ut)(D.LFG(v.K0),D.LFG(A.t4))},ut.\u0275prov=D.Yz7({factory:function(){return new ut(D.LFG(v.K0),D.LFG(A.t4))},token:ut,providedIn:"root"}),ut}(),De=function(){var ut=function(){function He(ve,ye){(0,b.Z)(this,He),this._platform=ye,this._document=ve}return(0,_.Z)(He,[{key:"ngOnDestroy",value:function(){var ye=this._containerElement;ye&&ye.parentNode&&ye.parentNode.removeChild(ye)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var ye="cdk-overlay-container";if(this._platform.isBrowser||(0,A.Oy)())for(var Te=this._document.querySelectorAll(".".concat(ye,'[platform="server"], ')+".".concat(ye,'[platform="test"]')),we=0;we<Te.length;we++)Te[we].parentNode.removeChild(Te[we]);var ct=this._document.createElement("div");ct.classList.add(ye),(0,A.Oy)()?ct.setAttribute("platform","test"):this._platform.isBrowser||ct.setAttribute("platform","server"),this._document.body.appendChild(ct),this._containerElement=ct}}]),He}();return ut.\u0275fac=function(ve){return new(ve||ut)(D.LFG(v.K0),D.LFG(A.t4))},ut.\u0275prov=D.Yz7({factory:function(){return new ut(D.LFG(v.K0),D.LFG(A.t4))},token:ut,providedIn:"root"}),ut}(),je=function(){function ut(He,ve,ye,Te,we,ct,ft,Yt,Kt){var Jt=this;(0,b.Z)(this,ut),this._portalOutlet=He,this._host=ve,this._pane=ye,this._config=Te,this._ngZone=we,this._keyboardDispatcher=ct,this._document=ft,this._location=Yt,this._outsideClickDispatcher=Kt,this._backdropElement=null,this._backdropClick=new R.xQ,this._attachments=new R.xQ,this._detachments=new R.xQ,this._locationChanges=k.w.EMPTY,this._backdropClickHandler=function(nn){return Jt._backdropClick.next(nn)},this._keydownEvents=new R.xQ,this._outsidePointerEvents=new R.xQ,Te.scrollStrategy&&(this._scrollStrategy=Te.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Te.positionStrategy}return(0,_.Z)(ut,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(ve){var ye=this,Te=this._portalOutlet.attach(ve);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,x.q)(1)).subscribe(function(){ye.hasAttached()&&ye.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return ye.dispose()})),this._outsideClickDispatcher.add(this),Te}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var ve=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ve}}},{key:"dispose",value:function(){var ve=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,ve&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(ve){ve!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ve,this.hasAttached()&&(ve.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(ve){this._config=Object.assign(Object.assign({},this._config),ve),this._updateElementSize()}},{key:"setDirection",value:function(ve){this._config=Object.assign(Object.assign({},this._config),{direction:ve}),this._updateElementDirection()}},{key:"addPanelClass",value:function(ve){this._pane&&this._toggleClasses(this._pane,ve,!0)}},{key:"removePanelClass",value:function(ve){this._pane&&this._toggleClasses(this._pane,ve,!1)}},{key:"getDirection",value:function(){var ve=this._config.direction;return ve?"string"==typeof ve?ve:ve.value:"ltr"}},{key:"updateScrollStrategy",value:function(ve){ve!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ve,this.hasAttached()&&(ve.attach(this),ve.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var ve=this._pane.style;ve.width=(0,g.HM)(this._config.width),ve.height=(0,g.HM)(this._config.height),ve.minWidth=(0,g.HM)(this._config.minWidth),ve.minHeight=(0,g.HM)(this._config.minHeight),ve.maxWidth=(0,g.HM)(this._config.maxWidth),ve.maxHeight=(0,g.HM)(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(ve){this._pane.style.pointerEvents=ve?"":"none"}},{key:"_attachBackdrop",value:function(){var ve=this,ye="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){ve._backdropElement&&ve._backdropElement.classList.add(ye)})}):this._backdropElement.classList.add(ye)}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var ve=this,ye=this._backdropElement;if(ye){var Te,we=function ct(){ye&&(ye.removeEventListener("click",ve._backdropClickHandler),ye.removeEventListener("transitionend",ct),ve._disposeBackdrop(ye)),ve._config.backdropClass&&ve._toggleClasses(ye,ve._config.backdropClass,!1),clearTimeout(Te)};ye.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){ye.addEventListener("transitionend",we)}),ye.style.pointerEvents="none",Te=this._ngZone.runOutsideAngular(function(){return setTimeout(we,500)})}}},{key:"_toggleClasses",value:function(ve,ye,Te){var we=ve.classList;(0,g.Eq)(ye).forEach(function(ct){ct&&(Te?we.add(ct):we.remove(ct))})}},{key:"_detachContentWhenStable",value:function(){var ve=this;this._ngZone.runOutsideAngular(function(){var ye=ve._ngZone.onStable.pipe((0,O.R)((0,E.T)(ve._attachments,ve._detachments))).subscribe(function(){(!ve._pane||!ve._host||0===ve._pane.children.length)&&(ve._pane&&ve._config.panelClass&&ve._toggleClasses(ve._pane,ve._config.panelClass,!1),ve._host&&ve._host.parentElement&&(ve._previousHostParent=ve._host.parentElement,ve._previousHostParent.removeChild(ve._host)),ye.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var ve=this._scrollStrategy;ve&&(ve.disable(),ve.detach&&ve.detach())}},{key:"_disposeBackdrop",value:function(ve){ve&&(ve.parentNode&&ve.parentNode.removeChild(ve),this._backdropElement===ve&&(this._backdropElement=null))}}]),ut}(),dt="cdk-overlay-connected-position-bounding-box",Ke=/([A-Za-z%]+)$/,Bt=function(){function ut(He,ve,ye,Te,we){(0,b.Z)(this,ut),this._viewportRuler=ve,this._document=ye,this._platform=Te,this._overlayContainer=we,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new R.xQ,this._resizeSubscription=k.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(He)}return(0,_.Z)(ut,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(ve){var ye=this;this._validatePositions(),ve.hostElement.classList.add(dt),this._overlayRef=ve,this._boundingBox=ve.hostElement,this._pane=ve.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){ye._isInitialRender=!0,ye.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser){if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var ct,Yt,ve=this._originRect,ye=this._overlayRect,Te=this._viewportRect,we=[],ft=(0,U.Z)(this._preferredPositions);try{for(ft.s();!(Yt=ft.n()).done;){var Kt=Yt.value,Jt=this._getOriginPoint(ve,Kt),nn=this._getOverlayPoint(Jt,ye,Kt),ln=this._getOverlayFit(nn,ye,Te,Kt);if(ln.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Kt,Jt);this._canFitWithFlexibleDimensions(ln,nn,Te)?we.push({position:Kt,origin:Jt,overlayRect:ye,boundingBoxRect:this._calculateBoundingBoxRect(Jt,Kt)}):(!ct||ct.overlayFit.visibleArea<ln.visibleArea)&&(ct={overlayFit:ln,overlayPoint:nn,originPoint:Jt,position:Kt,overlayRect:ye})}}catch(tr){ft.e(tr)}finally{ft.f()}if(we.length){var Yn,yn=null,Tn=-1,In=(0,U.Z)(we);try{for(In.s();!(Yn=In.n()).done;){var Cn=Yn.value,Sn=Cn.boundingBoxRect.width*Cn.boundingBoxRect.height*(Cn.position.weight||1);Sn>Tn&&(Tn=Sn,yn=Cn)}}catch(tr){In.e(tr)}finally{In.f()}return this._isPushed=!1,void this._applyPosition(yn.position,yn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ct.position,ct.originPoint);this._applyPosition(ct.position,ct.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&xt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var ve=this._lastPosition||this._preferredPositions[0],ye=this._getOriginPoint(this._originRect,ve);this._applyPosition(ve,ye)}}},{key:"withScrollableContainers",value:function(ve){return this._scrollables=ve,this}},{key:"withPositions",value:function(ve){return this._preferredPositions=ve,-1===ve.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(ve){return this._viewportMargin=ve,this}},{key:"withFlexibleDimensions",value:function(){var ve=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=ve,this}},{key:"withGrowAfterOpen",value:function(){var ve=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=ve,this}},{key:"withPush",value:function(){var ve=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=ve,this}},{key:"withLockedPosition",value:function(){var ve=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=ve,this}},{key:"setOrigin",value:function(ve){return this._origin=ve,this}},{key:"withDefaultOffsetX",value:function(ve){return this._offsetX=ve,this}},{key:"withDefaultOffsetY",value:function(ve){return this._offsetY=ve,this}},{key:"withTransformOriginOn",value:function(ve){return this._transformOriginSelector=ve,this}},{key:"_getOriginPoint",value:function(ve,ye){var Te;if("center"==ye.originX)Te=ve.left+ve.width/2;else{var we=this._isRtl()?ve.right:ve.left,ct=this._isRtl()?ve.left:ve.right;Te="start"==ye.originX?we:ct}return{x:Te,y:"center"==ye.originY?ve.top+ve.height/2:"top"==ye.originY?ve.top:ve.bottom}}},{key:"_getOverlayPoint",value:function(ve,ye,Te){var we;return we="center"==Te.overlayX?-ye.width/2:"start"===Te.overlayX?this._isRtl()?-ye.width:0:this._isRtl()?0:-ye.width,{x:ve.x+we,y:ve.y+("center"==Te.overlayY?-ye.height/2:"top"==Te.overlayY?0:-ye.height)}}},{key:"_getOverlayFit",value:function(ve,ye,Te,we){var ct=Qt(ye),ft=ve.x,Yt=ve.y,Kt=this._getOffset(we,"x"),Jt=this._getOffset(we,"y");Kt&&(ft+=Kt),Jt&&(Yt+=Jt);var yn=0-Yt,Tn=Yt+ct.height-Te.height,In=this._subtractOverflows(ct.width,0-ft,ft+ct.width-Te.width),Yn=this._subtractOverflows(ct.height,yn,Tn),Cn=In*Yn;return{visibleArea:Cn,isCompletelyWithinViewport:ct.width*ct.height===Cn,fitsInViewportVertically:Yn===ct.height,fitsInViewportHorizontally:In==ct.width}}},{key:"_canFitWithFlexibleDimensions",value:function(ve,ye,Te){if(this._hasFlexibleDimensions){var we=Te.bottom-ye.y,ct=Te.right-ye.x,ft=vt(this._overlayRef.getConfig().minHeight),Yt=vt(this._overlayRef.getConfig().minWidth);return(ve.fitsInViewportVertically||null!=ft&&ft<=we)&&(ve.fitsInViewportHorizontally||null!=Yt&&Yt<=ct)}return!1}},{key:"_pushOverlayOnScreen",value:function(ve,ye,Te){if(this._previousPushAmount&&this._positionLocked)return{x:ve.x+this._previousPushAmount.x,y:ve.y+this._previousPushAmount.y};var nn,ln,we=Qt(ye),ct=this._viewportRect,ft=Math.max(ve.x+we.width-ct.width,0),Yt=Math.max(ve.y+we.height-ct.height,0),Kt=Math.max(ct.top-Te.top-ve.y,0),Jt=Math.max(ct.left-Te.left-ve.x,0);return this._previousPushAmount={x:nn=we.width<=ct.width?Jt||-ft:ve.x<this._viewportMargin?ct.left-Te.left-ve.x:0,y:ln=we.height<=ct.height?Kt||-Yt:ve.y<this._viewportMargin?ct.top-Te.top-ve.y:0},{x:ve.x+nn,y:ve.y+ln}}},{key:"_applyPosition",value:function(ve,ye){if(this._setTransformOrigin(ve),this._setOverlayElementStyles(ye,ve),this._setBoundingBoxStyles(ye,ve),ve.panelClass&&this._addPanelClasses(ve.panelClass),this._lastPosition=ve,this._positionChanges.observers.length){var Te=this._getScrollVisibility(),we=new it(ve,Te);this._positionChanges.next(we)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(ve){if(this._transformOriginSelector){var Te,ye=this._boundingBox.querySelectorAll(this._transformOriginSelector),we=ve.overlayY;Te="center"===ve.overlayX?"center":this._isRtl()?"start"===ve.overlayX?"right":"left":"start"===ve.overlayX?"left":"right";for(var ct=0;ct<ye.length;ct++)ye[ct].style.transformOrigin="".concat(Te," ").concat(we)}}},{key:"_calculateBoundingBoxRect",value:function(ve,ye){var ct,ft,Yt,yn,Tn,In,Te=this._viewportRect,we=this._isRtl();if("top"===ye.overlayY)ct=Te.height-(ft=ve.y)+this._viewportMargin;else if("bottom"===ye.overlayY)ct=Te.height-(Yt=Te.height-ve.y+2*this._viewportMargin)+this._viewportMargin;else{var Kt=Math.min(Te.bottom-ve.y+Te.top,ve.y),Jt=this._lastBoundingBoxSize.height;ft=ve.y-Kt,(ct=2*Kt)>Jt&&!this._isInitialRender&&!this._growAfterOpen&&(ft=ve.y-Jt/2)}if("end"===ye.overlayX&&!we||"start"===ye.overlayX&&we)In=Te.width-ve.x+this._viewportMargin,yn=ve.x-this._viewportMargin;else if("start"===ye.overlayX&&!we||"end"===ye.overlayX&&we)Tn=ve.x,yn=Te.right-ve.x;else{var Yn=Math.min(Te.right-ve.x+Te.left,ve.x),Cn=this._lastBoundingBoxSize.width;Tn=ve.x-Yn,(yn=2*Yn)>Cn&&!this._isInitialRender&&!this._growAfterOpen&&(Tn=ve.x-Cn/2)}return{top:ft,left:Tn,bottom:Yt,right:In,width:yn,height:ct}}},{key:"_setBoundingBoxStyles",value:function(ve,ye){var Te=this._calculateBoundingBoxRect(ve,ye);!this._isInitialRender&&!this._growAfterOpen&&(Te.height=Math.min(Te.height,this._lastBoundingBoxSize.height),Te.width=Math.min(Te.width,this._lastBoundingBoxSize.width));var we={};if(this._hasExactPosition())we.top=we.left="0",we.bottom=we.right=we.maxHeight=we.maxWidth="",we.width=we.height="100%";else{var ct=this._overlayRef.getConfig().maxHeight,ft=this._overlayRef.getConfig().maxWidth;we.height=(0,g.HM)(Te.height),we.top=(0,g.HM)(Te.top),we.bottom=(0,g.HM)(Te.bottom),we.width=(0,g.HM)(Te.width),we.left=(0,g.HM)(Te.left),we.right=(0,g.HM)(Te.right),we.alignItems="center"===ye.overlayX?"center":"end"===ye.overlayX?"flex-end":"flex-start",we.justifyContent="center"===ye.overlayY?"center":"bottom"===ye.overlayY?"flex-end":"flex-start",ct&&(we.maxHeight=(0,g.HM)(ct)),ft&&(we.maxWidth=(0,g.HM)(ft))}this._lastBoundingBoxSize=Te,xt(this._boundingBox.style,we)}},{key:"_resetBoundingBoxStyles",value:function(){xt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){xt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(ve,ye){var Te={},we=this._hasExactPosition(),ct=this._hasFlexibleDimensions,ft=this._overlayRef.getConfig();if(we){var Yt=this._viewportRuler.getViewportScrollPosition();xt(Te,this._getExactOverlayY(ye,ve,Yt)),xt(Te,this._getExactOverlayX(ye,ve,Yt))}else Te.position="static";var Kt="",Jt=this._getOffset(ye,"x"),nn=this._getOffset(ye,"y");Jt&&(Kt+="translateX(".concat(Jt,"px) ")),nn&&(Kt+="translateY(".concat(nn,"px)")),Te.transform=Kt.trim(),ft.maxHeight&&(we?Te.maxHeight=(0,g.HM)(ft.maxHeight):ct&&(Te.maxHeight="")),ft.maxWidth&&(we?Te.maxWidth=(0,g.HM)(ft.maxWidth):ct&&(Te.maxWidth="")),xt(this._pane.style,Te)}},{key:"_getExactOverlayY",value:function(ve,ye,Te){var we={top:"",bottom:""},ct=this._getOverlayPoint(ye,this._overlayRect,ve);this._isPushed&&(ct=this._pushOverlayOnScreen(ct,this._overlayRect,Te));var ft=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return ct.y-=ft,"bottom"===ve.overlayY?we.bottom="".concat(this._document.documentElement.clientHeight-(ct.y+this._overlayRect.height),"px"):we.top=(0,g.HM)(ct.y),we}},{key:"_getExactOverlayX",value:function(ve,ye,Te){var we={left:"",right:""},ct=this._getOverlayPoint(ye,this._overlayRect,ve);return this._isPushed&&(ct=this._pushOverlayOnScreen(ct,this._overlayRect,Te)),"right"==(this._isRtl()?"end"===ve.overlayX?"left":"right":"end"===ve.overlayX?"right":"left")?we.right="".concat(this._document.documentElement.clientWidth-(ct.x+this._overlayRect.width),"px"):we.left=(0,g.HM)(ct.x),we}},{key:"_getScrollVisibility",value:function(){var ve=this._getOriginRect(),ye=this._pane.getBoundingClientRect(),Te=this._scrollables.map(function(we){return we.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:se(ve,Te),isOriginOutsideView:ae(ve,Te),isOverlayClipped:se(ye,Te),isOverlayOutsideView:ae(ye,Te)}}},{key:"_subtractOverflows",value:function(ve){for(var ye=arguments.length,Te=new Array(ye>1?ye-1:0),we=1;we<ye;we++)Te[we-1]=arguments[we];return Te.reduce(function(ct,ft){return ct-Math.max(ft,0)},ve)}},{key:"_getNarrowedViewportRect",value:function(){var ve=this._document.documentElement.clientWidth,ye=this._document.documentElement.clientHeight,Te=this._viewportRuler.getViewportScrollPosition();return{top:Te.top+this._viewportMargin,left:Te.left+this._viewportMargin,right:Te.left+ve-this._viewportMargin,bottom:Te.top+ye-this._viewportMargin,width:ve-2*this._viewportMargin,height:ye-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(ve,ye){return"x"===ye?null==ve.offsetX?this._offsetX:ve.offsetX:null==ve.offsetY?this._offsetY:ve.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(ve){var ye=this;this._pane&&(0,g.Eq)(ve).forEach(function(Te){""!==Te&&-1===ye._appliedPanelClasses.indexOf(Te)&&(ye._appliedPanelClasses.push(Te),ye._pane.classList.add(Te))})}},{key:"_clearPanelClasses",value:function(){var ve=this;this._pane&&(this._appliedPanelClasses.forEach(function(ye){ve._pane.classList.remove(ye)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var ve=this._origin;if(ve instanceof D.SBq)return ve.nativeElement.getBoundingClientRect();if(ve instanceof Element)return ve.getBoundingClientRect();var ye=ve.width||0,Te=ve.height||0;return{top:ve.y,bottom:ve.y+Te,left:ve.x,right:ve.x+ye,height:Te,width:ye}}}]),ut}();function xt(ut,He){for(var ve in He)He.hasOwnProperty(ve)&&(ut[ve]=He[ve]);return ut}function vt(ut){if("number"!=typeof ut&&null!=ut){var He=ut.split(Ke),ve=(0,B.Z)(He,2),Te=ve[1];return Te&&"px"!==Te?null:parseFloat(ve[0])}return ut||null}function Qt(ut){return{top:Math.floor(ut.top),right:Math.floor(ut.right),bottom:Math.floor(ut.bottom),left:Math.floor(ut.left),width:Math.floor(ut.width),height:Math.floor(ut.height)}}var Ht=function(){function ut(He,ve,ye,Te,we,ct,ft){(0,b.Z)(this,ut),this._preferredPositions=[],this._positionStrategy=new Bt(ye,Te,we,ct,ft).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(He,ve),this.onPositionChange=this._positionStrategy.positionChanges}return(0,_.Z)(ut,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(ve){this._overlayRef=ve,this._positionStrategy.attach(ve),this._direction&&(ve.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(ve){this._positionStrategy.withScrollableContainers(ve)}},{key:"withFallbackPosition",value:function(ve,ye,Te,we){var ct=new Ae(ve,ye,Te,we);return this._preferredPositions.push(ct),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(ve){return this._overlayRef?this._overlayRef.setDirection(ve):this._direction=ve,this}},{key:"withOffsetX",value:function(ve){return this._positionStrategy.withDefaultOffsetX(ve),this}},{key:"withOffsetY",value:function(ve){return this._positionStrategy.withDefaultOffsetY(ve),this}},{key:"withLockedPosition",value:function(ve){return this._positionStrategy.withLockedPosition(ve),this}},{key:"withPositions",value:function(ve){return this._preferredPositions=ve.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(ve){return this._positionStrategy.setOrigin(ve),this}}]),ut}(),Ct="cdk-global-overlay-wrapper",qt=function(){function ut(){(0,b.Z)(this,ut),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return(0,_.Z)(ut,[{key:"attach",value:function(ve){var ye=ve.getConfig();this._overlayRef=ve,this._width&&!ye.width&&ve.updateSize({width:this._width}),this._height&&!ye.height&&ve.updateSize({height:this._height}),ve.hostElement.classList.add(Ct),this._isDisposed=!1}},{key:"top",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=ve,this._alignItems="flex-start",this}},{key:"left",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=ve,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=ve,this._alignItems="flex-end",this}},{key:"right",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=ve,this._justifyContent="flex-end",this}},{key:"width",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:ve}):this._width=ve,this}},{key:"height",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:ve}):this._height=ve,this}},{key:"centerHorizontally",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(ve),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(ve),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var ve=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement.style,Te=this._overlayRef.getConfig(),we=Te.width,ct=Te.height,ft=Te.maxWidth,Yt=Te.maxHeight,Kt=!("100%"!==we&&"100vw"!==we||ft&&"100%"!==ft&&"100vw"!==ft),Jt=!("100%"!==ct&&"100vh"!==ct||Yt&&"100%"!==Yt&&"100vh"!==Yt);ve.position=this._cssPosition,ve.marginLeft=Kt?"0":this._leftOffset,ve.marginTop=Jt?"0":this._topOffset,ve.marginBottom=this._bottomOffset,ve.marginRight=this._rightOffset,Kt?ye.justifyContent="flex-start":"center"===this._justifyContent?ye.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?ye.justifyContent="flex-end":"flex-end"===this._justifyContent&&(ye.justifyContent="flex-start"):ye.justifyContent=this._justifyContent,ye.alignItems=Jt?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var ve=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement,Te=ye.style;ye.classList.remove(Ct),Te.justifyContent=Te.alignItems=ve.marginTop=ve.marginBottom=ve.marginLeft=ve.marginRight=ve.position="",this._overlayRef=null,this._isDisposed=!0}}}]),ut}(),bt=function(){var ut=function(){function He(ve,ye,Te,we){(0,b.Z)(this,He),this._viewportRuler=ve,this._document=ye,this._platform=Te,this._overlayContainer=we}return(0,_.Z)(He,[{key:"global",value:function(){return new qt}},{key:"connectedTo",value:function(ye,Te,we){return new Ht(Te,we,ye,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(ye){return new Bt(ye,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),He}();return ut.\u0275fac=function(ve){return new(ve||ut)(D.LFG(I.rL),D.LFG(v.K0),D.LFG(A.t4),D.LFG(De))},ut.\u0275prov=D.Yz7({factory:function(){return new ut(D.LFG(I.rL),D.LFG(v.K0),D.LFG(A.t4),D.LFG(De))},token:ut,providedIn:"root"}),ut}(),en=0,Nt=function(){var ut=function(){function He(ve,ye,Te,we,ct,ft,Yt,Kt,Jt,nn,ln){(0,b.Z)(this,He),this.scrollStrategies=ve,this._overlayContainer=ye,this._componentFactoryResolver=Te,this._positionBuilder=we,this._keyboardDispatcher=ct,this._injector=ft,this._ngZone=Yt,this._document=Kt,this._directionality=Jt,this._location=nn,this._outsideClickDispatcher=ln}return(0,_.Z)(He,[{key:"create",value:function(ye){var Te=this._createHostElement(),we=this._createPaneElement(Te),ct=this._createPortalOutlet(we),ft=new oe(ye);return ft.direction=ft.direction||this._directionality.value,new je(ct,Te,we,ft,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(ye){var Te=this._document.createElement("div");return Te.id="cdk-overlay-".concat(en++),Te.classList.add("cdk-overlay-pane"),ye.appendChild(Te),Te}},{key:"_createHostElement",value:function(){var ye=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ye),ye}},{key:"_createPortalOutlet",value:function(ye){return this._appRef||(this._appRef=this._injector.get(D.z2F)),new T.u0(ye,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),He}();return ut.\u0275fac=function(ve){return new(ve||ut)(D.LFG(le),D.LFG(De),D.LFG(D._Vd),D.LFG(bt),D.LFG(Ft),D.LFG(D.zs3),D.LFG(D.R0b),D.LFG(v.K0),D.LFG(S.Is),D.LFG(v.Ye),D.LFG(xe))},ut.\u0275prov=D.Yz7({token:ut,factory:ut.\u0275fac}),ut}(),rn=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],kn=new D.OlP("cdk-connected-overlay-scroll-strategy"),Ln=function(){var ut=function He(ve){(0,b.Z)(this,He),this.elementRef=ve};return ut.\u0275fac=function(ve){return new(ve||ut)(D.Y36(D.SBq))},ut.\u0275dir=D.lG2({type:ut,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ut}(),Rn=function(){var ut=function(){function He(ve,ye,Te,we,ct){(0,b.Z)(this,He),this._overlay=ve,this._dir=ct,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=k.w.EMPTY,this._attachSubscription=k.w.EMPTY,this._detachSubscription=k.w.EMPTY,this._positionSubscription=k.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new D.vpe,this.positionChange=new D.vpe,this.attach=new D.vpe,this.detach=new D.vpe,this.overlayKeydown=new D.vpe,this.overlayOutsideClick=new D.vpe,this._templatePortal=new T.UE(ye,Te),this._scrollStrategyFactory=we,this.scrollStrategy=this._scrollStrategyFactory()}return(0,_.Z)(He,[{key:"offsetX",get:function(){return this._offsetX},set:function(ye){this._offsetX=ye,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(ye){this._offsetY=ye,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(ye){this._hasBackdrop=(0,g.Ig)(ye)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(ye){this._lockPosition=(0,g.Ig)(ye)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(ye){this._flexibleDimensions=(0,g.Ig)(ye)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(ye){this._growAfterOpen=(0,g.Ig)(ye)}},{key:"push",get:function(){return this._push},set:function(ye){this._push=(0,g.Ig)(ye)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(ye){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ye.origin&&this.open&&this._position.apply()),ye.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var ye=this;(!this.positions||!this.positions.length)&&(this.positions=rn);var Te=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Te.attachments().subscribe(function(){return ye.attach.emit()}),this._detachSubscription=Te.detachments().subscribe(function(){return ye.detach.emit()}),Te.keydownEvents().subscribe(function(we){ye.overlayKeydown.next(we),we.keyCode===z.hY&&!ye.disableClose&&!(0,z.Vb)(we)&&(we.preventDefault(),ye._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(we){ye.overlayOutsideClick.next(we)})}},{key:"_buildConfig",value:function(){var ye=this._position=this.positionStrategy||this._createPositionStrategy(),Te=new oe({direction:this._dir,positionStrategy:ye,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Te.width=this.width),(this.height||0===this.height)&&(Te.height=this.height),(this.minWidth||0===this.minWidth)&&(Te.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Te.minHeight=this.minHeight),this.backdropClass&&(Te.backdropClass=this.backdropClass),this.panelClass&&(Te.panelClass=this.panelClass),Te}},{key:"_updatePositionStrategy",value:function(ye){var Te=this,we=this.positions.map(function(ct){return{originX:ct.originX,originY:ct.originY,overlayX:ct.overlayX,overlayY:ct.overlayY,offsetX:ct.offsetX||Te.offsetX,offsetY:ct.offsetY||Te.offsetY,panelClass:ct.panelClass||void 0}});return ye.setOrigin(this.origin.elementRef).withPositions(we).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var ye=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(ye),ye}},{key:"_attachOverlay",value:function(){var ye=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(Te){ye.backdropClick.emit(Te)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,F.o)(function(){return ye.positionChange.observers.length>0})).subscribe(function(Te){ye.positionChange.emit(Te),0===ye.positionChange.observers.length&&ye._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),He}();return ut.\u0275fac=function(ve){return new(ve||ut)(D.Y36(Nt),D.Y36(D.Rgc),D.Y36(D.s_b),D.Y36(kn),D.Y36(S.Is,8))},ut.\u0275dir=D.lG2({type:ut,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[D.TTD]}),ut}(),Nn={provide:kn,deps:[Nt],useFactory:function(ut){return function(){return ut.scrollStrategies.reposition()}}},wn=function(){var ut=function He(){(0,b.Z)(this,He)};return ut.\u0275fac=function(ve){return new(ve||ut)},ut.\u0275mod=D.oAB({type:ut}),ut.\u0275inj=D.cJS({providers:[Nt,Nn],imports:[[S.vT,T.eL,I.Cl],I.Cl]}),ut}()},15427:function(ue,q,f){"use strict";f.d(q,{t4:function(){return w},ud:function(){return N},sA:function(){return F},ht:function(){return O},kV:function(){return x},Oy:function(){return K},_i:function(){return R},qK:function(){return I},i$:function(){return S},Mq:function(){return T}});var Z,B=f(18967),U=f(38999),V=f(40098);try{Z="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(j){Z=!1}var b,D,v,g,k,z,w=function(){var j=function J(ee){(0,B.Z)(this,J),this._platformId=ee,this.isBrowser=this._platformId?(0,V.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Z)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return j.\u0275fac=function(ee){return new(ee||j)(U.LFG(U.Lbi))},j.\u0275prov=U.Yz7({factory:function(){return new j(U.LFG(U.Lbi))},token:j,providedIn:"root"}),j}(),N=function(){var j=function J(){(0,B.Z)(this,J)};return j.\u0275fac=function(ee){return new(ee||j)},j.\u0275mod=U.oAB({type:j}),j.\u0275inj=U.cJS({}),j}(),_=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function I(){if(b)return b;if("object"!=typeof document||!document)return b=new Set(_);var j=document.createElement("input");return b=new Set(_.filter(function(J){return j.setAttribute("type",J),j.type===J}))}function S(j){return function(){if(null==D&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return D=!0}}))}finally{D=D||!1}return D}()?j:!!j.capture}function T(){if(null==g){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return g=!1;if("scrollBehavior"in document.documentElement.style)g=!0;else{var j=Element.prototype.scrollTo;g=!!j&&!/\{\s*\[native code\]\s*\}/.test(j.toString())}}return g}function R(){if("object"!=typeof document||!document)return 0;if(null==v){var j=document.createElement("div"),J=j.style;j.dir="rtl",J.width="1px",J.overflow="auto",J.visibility="hidden",J.pointerEvents="none",J.position="absolute";var ee=document.createElement("div"),$=ee.style;$.width="2px",$.height="1px",j.appendChild(ee),document.body.appendChild(j),v=0,0===j.scrollLeft&&(j.scrollLeft=1,v=0===j.scrollLeft?1:2),j.parentNode.removeChild(j)}return v}function x(j){if(function(){if(null==k){var j="undefined"!=typeof document?document.head:null;k=!(!j||!j.createShadowRoot&&!j.attachShadow)}return k}()){var J=j.getRootNode?j.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&J instanceof ShadowRoot)return J}return null}function O(){for(var j="undefined"!=typeof document&&document?document.activeElement:null;j&&j.shadowRoot;){var J=j.shadowRoot.activeElement;if(J===j)break;j=J}return j}function F(j){return j.composedPath?j.composedPath()[0]:j.target}function K(){return void 0!==z.__karma__&&!!z.__karma__||void 0!==z.jasmine&&!!z.jasmine||void 0!==z.jest&&!!z.jest||void 0!==z.Mocha&&!!z.Mocha}z="undefined"!=typeof global?global:"undefined"!=typeof window?window:{}},80785:function(ue,q,f){"use strict";f.d(q,{en:function(){return O},ig:function(){return j},Pl:function(){return ee},C5:function(){return k},u0:function(){return z},eL:function(){return ae},UE:function(){return E}});var B=f(88009),U=f(13920),V=f(89200),Z=f(10509),w=f(97154),N=f(18967),b=f(14105),_=f(38999),I=f(40098),R=function(){function ce(){(0,N.Z)(this,ce)}return(0,b.Z)(ce,[{key:"attach",value:function(oe){return this._attachedHost=oe,oe.attach(this)}},{key:"detach",value:function(){var oe=this._attachedHost;null!=oe&&(this._attachedHost=null,oe.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(oe){this._attachedHost=oe}}]),ce}(),k=function(ce){(0,Z.Z)(oe,ce);var le=(0,w.Z)(oe);function oe(Ae,be,it,qe){var _t;return(0,N.Z)(this,oe),(_t=le.call(this)).component=Ae,_t.viewContainerRef=be,_t.injector=it,_t.componentFactoryResolver=qe,_t}return oe}(R),E=function(ce){(0,Z.Z)(oe,ce);var le=(0,w.Z)(oe);function oe(Ae,be,it){var qe;return(0,N.Z)(this,oe),(qe=le.call(this)).templateRef=Ae,qe.viewContainerRef=be,qe.context=it,qe}return(0,b.Z)(oe,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(be){var it=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=it,(0,U.Z)((0,V.Z)(oe.prototype),"attach",this).call(this,be)}},{key:"detach",value:function(){return this.context=void 0,(0,U.Z)((0,V.Z)(oe.prototype),"detach",this).call(this)}}]),oe}(R),x=function(ce){(0,Z.Z)(oe,ce);var le=(0,w.Z)(oe);function oe(Ae){var be;return(0,N.Z)(this,oe),(be=le.call(this)).element=Ae instanceof _.SBq?Ae.nativeElement:Ae,be}return oe}(R),O=function(){function ce(){(0,N.Z)(this,ce),this._isDisposed=!1,this.attachDomPortal=null}return(0,b.Z)(ce,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(oe){return oe instanceof k?(this._attachedPortal=oe,this.attachComponentPortal(oe)):oe instanceof E?(this._attachedPortal=oe,this.attachTemplatePortal(oe)):this.attachDomPortal&&oe instanceof x?(this._attachedPortal=oe,this.attachDomPortal(oe)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(oe){this._disposeFn=oe}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),ce}(),z=function(ce){(0,Z.Z)(oe,ce);var le=(0,w.Z)(oe);function oe(Ae,be,it,qe,_t){var yt,Ft;return(0,N.Z)(this,oe),(Ft=le.call(this)).outletElement=Ae,Ft._componentFactoryResolver=be,Ft._appRef=it,Ft._defaultInjector=qe,Ft.attachDomPortal=function(xe){var De=xe.element,je=Ft._document.createComment("dom-portal");De.parentNode.insertBefore(je,De),Ft.outletElement.appendChild(De),Ft._attachedPortal=xe,(0,U.Z)((yt=(0,B.Z)(Ft),(0,V.Z)(oe.prototype)),"setDisposeFn",yt).call(yt,function(){je.parentNode&&je.parentNode.replaceChild(De,je)})},Ft._document=_t,Ft}return(0,b.Z)(oe,[{key:"attachComponentPortal",value:function(be){var yt,it=this,_t=(be.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(be.component);return be.viewContainerRef?(yt=be.viewContainerRef.createComponent(_t,be.viewContainerRef.length,be.injector||be.viewContainerRef.injector),this.setDisposeFn(function(){return yt.destroy()})):(yt=_t.create(be.injector||this._defaultInjector),this._appRef.attachView(yt.hostView),this.setDisposeFn(function(){it._appRef.detachView(yt.hostView),yt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(yt)),this._attachedPortal=be,yt}},{key:"attachTemplatePortal",value:function(be){var it=this,qe=be.viewContainerRef,_t=qe.createEmbeddedView(be.templateRef,be.context);return _t.rootNodes.forEach(function(yt){return it.outletElement.appendChild(yt)}),_t.detectChanges(),this.setDisposeFn(function(){var yt=qe.indexOf(_t);-1!==yt&&qe.remove(yt)}),this._attachedPortal=be,_t}},{key:"dispose",value:function(){(0,U.Z)((0,V.Z)(oe.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(be){return be.hostView.rootNodes[0]}}]),oe}(O),j=function(){var ce=function(le){(0,Z.Z)(Ae,le);var oe=(0,w.Z)(Ae);function Ae(be,it){return(0,N.Z)(this,Ae),oe.call(this,be,it)}return Ae}(E);return ce.\u0275fac=function(oe){return new(oe||ce)(_.Y36(_.Rgc),_.Y36(_.s_b))},ce.\u0275dir=_.lG2({type:ce,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[_.qOj]}),ce}(),ee=function(){var ce=function(le){(0,Z.Z)(Ae,le);var oe=(0,w.Z)(Ae);function Ae(be,it,qe){var _t,yt;return(0,N.Z)(this,Ae),(yt=oe.call(this))._componentFactoryResolver=be,yt._viewContainerRef=it,yt._isInitialized=!1,yt.attached=new _.vpe,yt.attachDomPortal=function(Ft){var xe=Ft.element,De=yt._document.createComment("dom-portal");Ft.setAttachedHost((0,B.Z)(yt)),xe.parentNode.insertBefore(De,xe),yt._getRootNode().appendChild(xe),yt._attachedPortal=Ft,(0,U.Z)((_t=(0,B.Z)(yt),(0,V.Z)(Ae.prototype)),"setDisposeFn",_t).call(_t,function(){De.parentNode&&De.parentNode.replaceChild(xe,De)})},yt._document=qe,yt}return(0,b.Z)(Ae,[{key:"portal",get:function(){return this._attachedPortal},set:function(it){this.hasAttached()&&!it&&!this._isInitialized||(this.hasAttached()&&(0,U.Z)((0,V.Z)(Ae.prototype),"detach",this).call(this),it&&(0,U.Z)((0,V.Z)(Ae.prototype),"attach",this).call(this,it),this._attachedPortal=it)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){(0,U.Z)((0,V.Z)(Ae.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(it){it.setAttachedHost(this);var qe=null!=it.viewContainerRef?it.viewContainerRef:this._viewContainerRef,yt=(it.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(it.component),Ft=qe.createComponent(yt,qe.length,it.injector||qe.injector);return qe!==this._viewContainerRef&&this._getRootNode().appendChild(Ft.hostView.rootNodes[0]),(0,U.Z)((0,V.Z)(Ae.prototype),"setDisposeFn",this).call(this,function(){return Ft.destroy()}),this._attachedPortal=it,this._attachedRef=Ft,this.attached.emit(Ft),Ft}},{key:"attachTemplatePortal",value:function(it){var qe=this;it.setAttachedHost(this);var _t=this._viewContainerRef.createEmbeddedView(it.templateRef,it.context);return(0,U.Z)((0,V.Z)(Ae.prototype),"setDisposeFn",this).call(this,function(){return qe._viewContainerRef.clear()}),this._attachedPortal=it,this._attachedRef=_t,this.attached.emit(_t),_t}},{key:"_getRootNode",value:function(){var it=this._viewContainerRef.element.nativeElement;return it.nodeType===it.ELEMENT_NODE?it:it.parentNode}}]),Ae}(O);return ce.\u0275fac=function(oe){return new(oe||ce)(_.Y36(_._Vd),_.Y36(_.s_b),_.Y36(I.K0))},ce.\u0275dir=_.lG2({type:ce,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[_.qOj]}),ce}(),ae=function(){var ce=function le(){(0,N.Z)(this,le)};return ce.\u0275fac=function(oe){return new(oe||ce)},ce.\u0275mod=_.oAB({type:ce}),ce.\u0275inj=_.cJS({}),ce}()},28722:function(ue,q,f){"use strict";f.d(q,{PQ:function(){return Ft},ZD:function(){return vt},mF:function(){return yt},Cl:function(){return Qt},rL:function(){return De}}),f(71955),f(36683),f(13920),f(89200),f(10509),f(97154);var b=f(18967),_=f(14105),I=f(78081),D=f(38999),A=f(68707),S=f(43161),v=f(89797),g=f(33090),O=(f(58172),f(8285),f(5051),f(17504),f(76161),f(54562)),F=f(58780),z=f(44213),$=(f(57682),f(4363),f(34487),f(61106),f(15427)),ae=f(40098),se=f(8392);f(37429);var yt=function(){var Ht=function(){function Ct(qt,bt,en){(0,b.Z)(this,Ct),this._ngZone=qt,this._platform=bt,this._scrolled=new A.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=en}return(0,_.Z)(Ct,[{key:"register",value:function(bt){var en=this;this.scrollContainers.has(bt)||this.scrollContainers.set(bt,bt.elementScrolled().subscribe(function(){return en._scrolled.next(bt)}))}},{key:"deregister",value:function(bt){var en=this.scrollContainers.get(bt);en&&(en.unsubscribe(),this.scrollContainers.delete(bt))}},{key:"scrolled",value:function(){var bt=this,en=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new v.y(function(Nt){bt._globalSubscription||bt._addGlobalListener();var rn=en>0?bt._scrolled.pipe((0,O.e)(en)).subscribe(Nt):bt._scrolled.subscribe(Nt);return bt._scrolledCount++,function(){rn.unsubscribe(),bt._scrolledCount--,bt._scrolledCount||bt._removeGlobalListener()}}):(0,S.of)()}},{key:"ngOnDestroy",value:function(){var bt=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(en,Nt){return bt.deregister(Nt)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(bt,en){var Nt=this.getAncestorScrollContainers(bt);return this.scrolled(en).pipe((0,F.h)(function(rn){return!rn||Nt.indexOf(rn)>-1}))}},{key:"getAncestorScrollContainers",value:function(bt){var en=this,Nt=[];return this.scrollContainers.forEach(function(rn,kn){en._scrollableContainsElement(kn,bt)&&Nt.push(kn)}),Nt}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(bt,en){var Nt=(0,I.fI)(en),rn=bt.getElementRef().nativeElement;do{if(Nt==rn)return!0}while(Nt=Nt.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var bt=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var en=bt._getWindow();return(0,g.R)(en.document,"scroll").subscribe(function(){return bt._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),Ct}();return Ht.\u0275fac=function(qt){return new(qt||Ht)(D.LFG(D.R0b),D.LFG($.t4),D.LFG(ae.K0,8))},Ht.\u0275prov=D.Yz7({factory:function(){return new Ht(D.LFG(D.R0b),D.LFG($.t4),D.LFG(ae.K0,8))},token:Ht,providedIn:"root"}),Ht}(),Ft=function(){var Ht=function(){function Ct(qt,bt,en,Nt){var rn=this;(0,b.Z)(this,Ct),this.elementRef=qt,this.scrollDispatcher=bt,this.ngZone=en,this.dir=Nt,this._destroyed=new A.xQ,this._elementScrolled=new v.y(function(kn){return rn.ngZone.runOutsideAngular(function(){return(0,g.R)(rn.elementRef.nativeElement,"scroll").pipe((0,z.R)(rn._destroyed)).subscribe(kn)})})}return(0,_.Z)(Ct,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(bt){var en=this.elementRef.nativeElement,Nt=this.dir&&"rtl"==this.dir.value;null==bt.left&&(bt.left=Nt?bt.end:bt.start),null==bt.right&&(bt.right=Nt?bt.start:bt.end),null!=bt.bottom&&(bt.top=en.scrollHeight-en.clientHeight-bt.bottom),Nt&&0!=(0,$._i)()?(null!=bt.left&&(bt.right=en.scrollWidth-en.clientWidth-bt.left),2==(0,$._i)()?bt.left=bt.right:1==(0,$._i)()&&(bt.left=bt.right?-bt.right:bt.right)):null!=bt.right&&(bt.left=en.scrollWidth-en.clientWidth-bt.right),this._applyScrollToOptions(bt)}},{key:"_applyScrollToOptions",value:function(bt){var en=this.elementRef.nativeElement;(0,$.Mq)()?en.scrollTo(bt):(null!=bt.top&&(en.scrollTop=bt.top),null!=bt.left&&(en.scrollLeft=bt.left))}},{key:"measureScrollOffset",value:function(bt){var en="left",rn=this.elementRef.nativeElement;if("top"==bt)return rn.scrollTop;if("bottom"==bt)return rn.scrollHeight-rn.clientHeight-rn.scrollTop;var kn=this.dir&&"rtl"==this.dir.value;return"start"==bt?bt=kn?"right":en:"end"==bt&&(bt=kn?en:"right"),kn&&2==(0,$._i)()?bt==en?rn.scrollWidth-rn.clientWidth-rn.scrollLeft:rn.scrollLeft:kn&&1==(0,$._i)()?bt==en?rn.scrollLeft+rn.scrollWidth-rn.clientWidth:-rn.scrollLeft:bt==en?rn.scrollLeft:rn.scrollWidth-rn.clientWidth-rn.scrollLeft}}]),Ct}();return Ht.\u0275fac=function(qt){return new(qt||Ht)(D.Y36(D.SBq),D.Y36(yt),D.Y36(D.R0b),D.Y36(se.Is,8))},Ht.\u0275dir=D.lG2({type:Ht,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Ht}(),De=function(){var Ht=function(){function Ct(qt,bt,en){var Nt=this;(0,b.Z)(this,Ct),this._platform=qt,this._change=new A.xQ,this._changeListener=function(rn){Nt._change.next(rn)},this._document=en,bt.runOutsideAngular(function(){if(qt.isBrowser){var rn=Nt._getWindow();rn.addEventListener("resize",Nt._changeListener),rn.addEventListener("orientationchange",Nt._changeListener)}Nt.change().subscribe(function(){return Nt._viewportSize=null})})}return(0,_.Z)(Ct,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var bt=this._getWindow();bt.removeEventListener("resize",this._changeListener),bt.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var bt={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),bt}},{key:"getViewportRect",value:function(){var bt=this.getViewportScrollPosition(),en=this.getViewportSize(),Nt=en.width,rn=en.height;return{top:bt.top,left:bt.left,bottom:bt.top+rn,right:bt.left+Nt,height:rn,width:Nt}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var bt=this._document,en=this._getWindow(),Nt=bt.documentElement,rn=Nt.getBoundingClientRect();return{top:-rn.top||bt.body.scrollTop||en.scrollY||Nt.scrollTop||0,left:-rn.left||bt.body.scrollLeft||en.scrollX||Nt.scrollLeft||0}}},{key:"change",value:function(){var bt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return bt>0?this._change.pipe((0,O.e)(bt)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var bt=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:bt.innerWidth,height:bt.innerHeight}:{width:0,height:0}}}]),Ct}();return Ht.\u0275fac=function(qt){return new(qt||Ht)(D.LFG($.t4),D.LFG(D.R0b),D.LFG(ae.K0,8))},Ht.\u0275prov=D.Yz7({factory:function(){return new Ht(D.LFG($.t4),D.LFG(D.R0b),D.LFG(ae.K0,8))},token:Ht,providedIn:"root"}),Ht}(),vt=function(){var Ht=function Ct(){(0,b.Z)(this,Ct)};return Ht.\u0275fac=function(qt){return new(qt||Ht)},Ht.\u0275mod=D.oAB({type:Ht}),Ht.\u0275inj=D.cJS({}),Ht}(),Qt=function(){var Ht=function Ct(){(0,b.Z)(this,Ct)};return Ht.\u0275fac=function(qt){return new(qt||Ht)},Ht.\u0275mod=D.oAB({type:Ht}),Ht.\u0275inj=D.cJS({imports:[[se.vT,$.ud,vt],se.vT,vt]}),Ht}()},78081:function(ue,q,f){"use strict";f.d(q,{t6:function(){return Z},Eq:function(){return w},Ig:function(){return U},HM:function(){return N},fI:function(){return b},su:function(){return V}});var B=f(38999);function U(I){return null!=I&&"false"!=="".concat(I)}function V(I){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Z(I)?Number(I):D}function Z(I){return!isNaN(parseFloat(I))&&!isNaN(Number(I))}function w(I){return Array.isArray(I)?I:[I]}function N(I){return null==I?"":"string"==typeof I?I:"".concat(I,"px")}function b(I){return I instanceof B.SBq?I.nativeElement:I}},40098:function(ue,q,f){"use strict";f.d(q,{mr:function(){return J},Ov:function(){return ho},ez:function(){return Bn},K0:function(){return v},Do:function(){return $},V_:function(){return R},Ye:function(){return ae},S$:function(){return K},mk:function(){return Xt},sg:function(){return zn},O5:function(){return Si},PC:function(){return ji},RF:function(){return Io},n9:function(){return $o},ED:function(){return ko},tP:function(){return Ji},b0:function(){return ee},lw:function(){return g},EM:function(){return Va},JF:function(){return Cl},NF:function(){return Wi},w_:function(){return S},bD:function(){return Ma},q:function(){return I},Mx:function(){return Gt},HT:function(){return A}});var B=f(36683),U=f(71955),V=f(10509),Z=f(97154),w=f(14105),N=f(18967),b=f(38999),_=null;function I(){return _}function A(pe){_||(_=pe)}var S=function pe(){(0,N.Z)(this,pe)},v=new b.OlP("DocumentToken"),g=function(){var pe=function(){function Fe(){(0,N.Z)(this,Fe)}return(0,w.Z)(Fe,[{key:"historyGo",value:function(We){throw new Error("Not implemented")}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)},pe.\u0275prov=(0,b.Yz7)({factory:T,token:pe,providedIn:"platform"}),pe}();function T(){return(0,b.LFG)(k)}var R=new b.OlP("Location Initialized"),k=function(){var pe=function(Fe){(0,V.Z)(We,Fe);var $e=(0,Z.Z)(We);function We(ie){var fe;return(0,N.Z)(this,We),(fe=$e.call(this))._doc=ie,fe._init(),fe}return(0,w.Z)(We,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return I().getBaseHref(this._doc)}},{key:"onPopState",value:function(fe){var _e=I().getGlobalEventTarget(this._doc,"window");return _e.addEventListener("popstate",fe,!1),function(){return _e.removeEventListener("popstate",fe)}}},{key:"onHashChange",value:function(fe){var _e=I().getGlobalEventTarget(this._doc,"window");return _e.addEventListener("hashchange",fe,!1),function(){return _e.removeEventListener("hashchange",fe)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(fe){this.location.pathname=fe}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(fe,_e,Ce){E()?this._history.pushState(fe,_e,Ce):this.location.hash=Ce}},{key:"replaceState",value:function(fe,_e,Ce){E()?this._history.replaceState(fe,_e,Ce):this.location.hash=Ce}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(fe)}},{key:"getState",value:function(){return this._history.state}}]),We}(g);return pe.\u0275fac=function($e){return new($e||pe)(b.LFG(v))},pe.\u0275prov=(0,b.Yz7)({factory:x,token:pe,providedIn:"platform"}),pe}();function E(){return!!window.history.pushState}function x(){return new k((0,b.LFG)(v))}function O(pe,Fe){if(0==pe.length)return Fe;if(0==Fe.length)return pe;var $e=0;return pe.endsWith("/")&&$e++,Fe.startsWith("/")&&$e++,2==$e?pe+Fe.substring(1):1==$e?pe+Fe:pe+"/"+Fe}function F(pe){var Fe=pe.match(/#|\?|$/),$e=Fe&&Fe.index||pe.length;return pe.slice(0,$e-("/"===pe[$e-1]?1:0))+pe.slice($e)}function z(pe){return pe&&"?"!==pe[0]?"?"+pe:pe}var K=function(){var pe=function(){function Fe(){(0,N.Z)(this,Fe)}return(0,w.Z)(Fe,[{key:"historyGo",value:function(We){throw new Error("Not implemented")}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)},pe.\u0275prov=(0,b.Yz7)({factory:j,token:pe,providedIn:"root"}),pe}();function j(pe){var Fe=(0,b.LFG)(v).location;return new ee((0,b.LFG)(g),Fe&&Fe.origin||"")}var J=new b.OlP("appBaseHref"),ee=function(){var pe=function(Fe){(0,V.Z)(We,Fe);var $e=(0,Z.Z)(We);function We(ie,fe){var _e;if((0,N.Z)(this,We),(_e=$e.call(this))._platformLocation=ie,_e._removeListenerFns=[],null==fe&&(fe=_e._platformLocation.getBaseHrefFromDOM()),null==fe)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 _e._baseHref=fe,_e}return(0,w.Z)(We,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(fe){this._removeListenerFns.push(this._platformLocation.onPopState(fe),this._platformLocation.onHashChange(fe))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(fe){return O(this._baseHref,fe)}},{key:"path",value:function(){var fe=arguments.length>0&&void 0!==arguments[0]&&arguments[0],_e=this._platformLocation.pathname+z(this._platformLocation.search),Ce=this._platformLocation.hash;return Ce&&fe?"".concat(_e).concat(Ce):_e}},{key:"pushState",value:function(fe,_e,Ce,Re){var Ge=this.prepareExternalUrl(Ce+z(Re));this._platformLocation.pushState(fe,_e,Ge)}},{key:"replaceState",value:function(fe,_e,Ce,Re){var Ge=this.prepareExternalUrl(Ce+z(Re));this._platformLocation.replaceState(fe,_e,Ge)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var _e,Ce,fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Ce=(_e=this._platformLocation).historyGo)||void 0===Ce||Ce.call(_e,fe)}}]),We}(K);return pe.\u0275fac=function($e){return new($e||pe)(b.LFG(g),b.LFG(J,8))},pe.\u0275prov=b.Yz7({token:pe,factory:pe.\u0275fac}),pe}(),$=function(){var pe=function(Fe){(0,V.Z)(We,Fe);var $e=(0,Z.Z)(We);function We(ie,fe){var _e;return(0,N.Z)(this,We),(_e=$e.call(this))._platformLocation=ie,_e._baseHref="",_e._removeListenerFns=[],null!=fe&&(_e._baseHref=fe),_e}return(0,w.Z)(We,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(fe){this._removeListenerFns.push(this._platformLocation.onPopState(fe),this._platformLocation.onHashChange(fe))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var _e=this._platformLocation.hash;return null==_e&&(_e="#"),_e.length>0?_e.substring(1):_e}},{key:"prepareExternalUrl",value:function(fe){var _e=O(this._baseHref,fe);return _e.length>0?"#"+_e:_e}},{key:"pushState",value:function(fe,_e,Ce,Re){var Ge=this.prepareExternalUrl(Ce+z(Re));0==Ge.length&&(Ge=this._platformLocation.pathname),this._platformLocation.pushState(fe,_e,Ge)}},{key:"replaceState",value:function(fe,_e,Ce,Re){var Ge=this.prepareExternalUrl(Ce+z(Re));0==Ge.length&&(Ge=this._platformLocation.pathname),this._platformLocation.replaceState(fe,_e,Ge)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var _e,Ce,fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Ce=(_e=this._platformLocation).historyGo)||void 0===Ce||Ce.call(_e,fe)}}]),We}(K);return pe.\u0275fac=function($e){return new($e||pe)(b.LFG(g),b.LFG(J,8))},pe.\u0275prov=b.Yz7({token:pe,factory:pe.\u0275fac}),pe}(),ae=function(){var pe=function(){function Fe($e,We){var ie=this;(0,N.Z)(this,Fe),this._subject=new b.vpe,this._urlChangeListeners=[],this._platformStrategy=$e;var fe=this._platformStrategy.getBaseHref();this._platformLocation=We,this._baseHref=F(le(fe)),this._platformStrategy.onPopState(function(_e){ie._subject.emit({url:ie.path(!0),pop:!0,state:_e.state,type:_e.type})})}return(0,w.Z)(Fe,[{key:"path",value:function(){var We=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(We))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(We){var ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(We+z(ie))}},{key:"normalize",value:function(We){return Fe.stripTrailingSlash(function(pe,Fe){return pe&&Fe.startsWith(pe)?Fe.substring(pe.length):Fe}(this._baseHref,le(We)))}},{key:"prepareExternalUrl",value:function(We){return We&&"/"!==We[0]&&(We="/"+We),this._platformStrategy.prepareExternalUrl(We)}},{key:"go",value:function(We){var ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",fe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(fe,"",We,ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(We+z(ie)),fe)}},{key:"replaceState",value:function(We){var ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",fe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(fe,"",We,ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(We+z(ie)),fe)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var ie,fe,We=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(fe=(ie=this._platformStrategy).historyGo)||void 0===fe||fe.call(ie,We)}},{key:"onUrlChange",value:function(We){var ie=this;this._urlChangeListeners.push(We),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(fe){ie._notifyUrlChangeListeners(fe.url,fe.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var We=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",ie=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(fe){return fe(We,ie)})}},{key:"subscribe",value:function(We,ie,fe){return this._subject.subscribe({next:We,error:ie,complete:fe})}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)(b.LFG(K),b.LFG(g))},pe.normalizeQueryParams=z,pe.joinWithSlash=O,pe.stripTrailingSlash=F,pe.\u0275prov=(0,b.Yz7)({factory:se,token:pe,providedIn:"root"}),pe}();function se(){return new ae((0,b.LFG)(K),(0,b.LFG)(g))}function le(pe){return pe.replace(/\/index.html$/,"")}var be=function(pe){return pe[pe.Zero=0]="Zero",pe[pe.One=1]="One",pe[pe.Two=2]="Two",pe[pe.Few=3]="Few",pe[pe.Many=4]="Many",pe[pe.Other=5]="Other",pe}({}),kn=b.kL8,Ot=function pe(){(0,N.Z)(this,pe)},Pt=function(){var pe=function(Fe){(0,V.Z)(We,Fe);var $e=(0,Z.Z)(We);function We(ie){var fe;return(0,N.Z)(this,We),(fe=$e.call(this)).locale=ie,fe}return(0,w.Z)(We,[{key:"getPluralCategory",value:function(fe,_e){switch(kn(_e||this.locale)(fe)){case be.Zero:return"zero";case be.One:return"one";case be.Two:return"two";case be.Few:return"few";case be.Many:return"many";default:return"other"}}}]),We}(Ot);return pe.\u0275fac=function($e){return new($e||pe)(b.LFG(b.soG))},pe.\u0275prov=b.Yz7({token:pe,factory:pe.\u0275fac}),pe}();function Gt(pe,Fe){Fe=encodeURIComponent(Fe);var We,$e=(0,B.Z)(pe.split(";"));try{for($e.s();!(We=$e.n()).done;){var ie=We.value,fe=ie.indexOf("="),_e=-1==fe?[ie,""]:[ie.slice(0,fe),ie.slice(fe+1)],Ce=(0,U.Z)(_e,2),Ge=Ce[1];if(Ce[0].trim()===Fe)return decodeURIComponent(Ge)}}catch(St){$e.e(St)}finally{$e.f()}return null}var Xt=function(){var pe=function(){function Fe($e,We,ie,fe){(0,N.Z)(this,Fe),this._iterableDiffers=$e,this._keyValueDiffers=We,this._ngEl=ie,this._renderer=fe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return(0,w.Z)(Fe,[{key:"klass",set:function(We){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof We?We.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(We){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof We?We.split(/\s+/):We,this._rawClass&&((0,b.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var We=this._iterableDiffer.diff(this._rawClass);We&&this._applyIterableChanges(We)}else if(this._keyValueDiffer){var ie=this._keyValueDiffer.diff(this._rawClass);ie&&this._applyKeyValueChanges(ie)}}},{key:"_applyKeyValueChanges",value:function(We){var ie=this;We.forEachAddedItem(function(fe){return ie._toggleClass(fe.key,fe.currentValue)}),We.forEachChangedItem(function(fe){return ie._toggleClass(fe.key,fe.currentValue)}),We.forEachRemovedItem(function(fe){fe.previousValue&&ie._toggleClass(fe.key,!1)})}},{key:"_applyIterableChanges",value:function(We){var ie=this;We.forEachAddedItem(function(fe){if("string"!=typeof fe.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,b.AaK)(fe.item)));ie._toggleClass(fe.item,!0)}),We.forEachRemovedItem(function(fe){return ie._toggleClass(fe.item,!1)})}},{key:"_applyClasses",value:function(We){var ie=this;We&&(Array.isArray(We)||We instanceof Set?We.forEach(function(fe){return ie._toggleClass(fe,!0)}):Object.keys(We).forEach(function(fe){return ie._toggleClass(fe,!!We[fe])}))}},{key:"_removeClasses",value:function(We){var ie=this;We&&(Array.isArray(We)||We instanceof Set?We.forEach(function(fe){return ie._toggleClass(fe,!1)}):Object.keys(We).forEach(function(fe){return ie._toggleClass(fe,!1)}))}},{key:"_toggleClass",value:function(We,ie){var fe=this;(We=We.trim())&&We.split(/\s+/g).forEach(function(_e){ie?fe._renderer.addClass(fe._ngEl.nativeElement,_e):fe._renderer.removeClass(fe._ngEl.nativeElement,_e)})}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)(b.Y36(b.ZZ4),b.Y36(b.aQg),b.Y36(b.SBq),b.Y36(b.Qsj))},pe.\u0275dir=b.lG2({type:pe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),pe}(),Gn=function(){function pe(Fe,$e,We,ie){(0,N.Z)(this,pe),this.$implicit=Fe,this.ngForOf=$e,this.index=We,this.count=ie}return(0,w.Z)(pe,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),pe}(),zn=function(){var pe=function(){function Fe($e,We,ie){(0,N.Z)(this,Fe),this._viewContainer=$e,this._template=We,this._differs=ie,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return(0,w.Z)(Fe,[{key:"ngForOf",set:function(We){this._ngForOf=We,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(We){this._trackByFn=We}},{key:"ngForTemplate",set:function(We){We&&(this._template=We)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var We=this._ngForOf;if(!this._differ&&We)try{this._differ=this._differs.find(We).create(this.ngForTrackBy)}catch(fe){throw new Error("Cannot find a differ supporting object '".concat(We,"' of type '").concat(function(pe){return pe.name||typeof pe}(We),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var ie=this._differ.diff(this._ngForOf);ie&&this._applyChanges(ie)}}},{key:"_applyChanges",value:function(We){var ie=this,fe=[];We.forEachOperation(function(St,ht,gt){if(null==St.previousIndex){var Jr=ie._viewContainer.createEmbeddedView(ie._template,new Gn(null,ie._ngForOf,-1,-1),null===gt?void 0:gt),Vr=new Vn(St,Jr);fe.push(Vr)}else if(null==gt)ie._viewContainer.remove(null===ht?void 0:ht);else if(null!==ht){var Pi=ie._viewContainer.get(ht);ie._viewContainer.move(Pi,gt);var _a=new Vn(St,Pi);fe.push(_a)}});for(var _e=0;_e<fe.length;_e++)this._perViewChange(fe[_e].view,fe[_e].record);for(var Ce=0,Re=this._viewContainer.length;Ce<Re;Ce++){var Ge=this._viewContainer.get(Ce);Ge.context.index=Ce,Ge.context.count=Re,Ge.context.ngForOf=this._ngForOf}We.forEachIdentityChange(function(St){ie._viewContainer.get(St.currentIndex).context.$implicit=St.item})}},{key:"_perViewChange",value:function(We,ie){We.context.$implicit=ie.item}}],[{key:"ngTemplateContextGuard",value:function(We,ie){return!0}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)(b.Y36(b.s_b),b.Y36(b.Rgc),b.Y36(b.ZZ4))},pe.\u0275dir=b.lG2({type:pe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),pe}(),Vn=function pe(Fe,$e){(0,N.Z)(this,pe),this.record=Fe,this.view=$e},Si=function(){var pe=function(){function Fe($e,We){(0,N.Z)(this,Fe),this._viewContainer=$e,this._context=new ro,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=We}return(0,w.Z)(Fe,[{key:"ngIf",set:function(We){this._context.$implicit=this._context.ngIf=We,this._updateView()}},{key:"ngIfThen",set:function(We){Co("ngIfThen",We),this._thenTemplateRef=We,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(We){Co("ngIfElse",We),this._elseTemplateRef=We,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(We,ie){return!0}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)(b.Y36(b.s_b),b.Y36(b.Rgc))},pe.\u0275dir=b.lG2({type:pe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),pe}(),ro=function pe(){(0,N.Z)(this,pe),this.$implicit=null,this.ngIf=null};function Co(pe,Fe){if(Fe&&!Fe.createEmbeddedView)throw new Error("".concat(pe," must be a TemplateRef, but received '").concat((0,b.AaK)(Fe),"'."))}var Li=function(){function pe(Fe,$e){(0,N.Z)(this,pe),this._viewContainerRef=Fe,this._templateRef=$e,this._created=!1}return(0,w.Z)(pe,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function($e){$e&&!this._created?this.create():!$e&&this._created&&this.destroy()}}]),pe}(),Io=function(){var pe=function(){function Fe(){(0,N.Z)(this,Fe),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return(0,w.Z)(Fe,[{key:"ngSwitch",set:function(We){this._ngSwitch=We,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(We){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(We)}},{key:"_matchCase",value:function(We){var ie=We==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ie,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ie}},{key:"_updateDefaultCases",value:function(We){if(this._defaultViews&&We!==this._defaultUsed){this._defaultUsed=We;for(var ie=0;ie<this._defaultViews.length;ie++)this._defaultViews[ie].enforceState(We)}}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)},pe.\u0275dir=b.lG2({type:pe,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),pe}(),$o=function(){var pe=function(){function Fe($e,We,ie){(0,N.Z)(this,Fe),this.ngSwitch=ie,ie._addCase(),this._view=new Li($e,We)}return(0,w.Z)(Fe,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)(b.Y36(b.s_b),b.Y36(b.Rgc),b.Y36(Io,9))},pe.\u0275dir=b.lG2({type:pe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),pe}(),ko=function(){var pe=function Fe($e,We,ie){(0,N.Z)(this,Fe),ie._addDefault(new Li($e,We))};return pe.\u0275fac=function($e){return new($e||pe)(b.Y36(b.s_b),b.Y36(b.Rgc),b.Y36(Io,9))},pe.\u0275dir=b.lG2({type:pe,selectors:[["","ngSwitchDefault",""]]}),pe}(),ji=function(){var pe=function(){function Fe($e,We,ie){(0,N.Z)(this,Fe),this._ngEl=$e,this._differs=We,this._renderer=ie,this._ngStyle=null,this._differ=null}return(0,w.Z)(Fe,[{key:"ngStyle",set:function(We){this._ngStyle=We,!this._differ&&We&&(this._differ=this._differs.find(We).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var We=this._differ.diff(this._ngStyle);We&&this._applyChanges(We)}}},{key:"_setStyle",value:function(We,ie){var fe=We.split("."),_e=(0,U.Z)(fe,2),Ce=_e[0],Re=_e[1];null!=(ie=null!=ie&&Re?"".concat(ie).concat(Re):ie)?this._renderer.setStyle(this._ngEl.nativeElement,Ce,ie):this._renderer.removeStyle(this._ngEl.nativeElement,Ce)}},{key:"_applyChanges",value:function(We){var ie=this;We.forEachRemovedItem(function(fe){return ie._setStyle(fe.key,null)}),We.forEachAddedItem(function(fe){return ie._setStyle(fe.key,fe.currentValue)}),We.forEachChangedItem(function(fe){return ie._setStyle(fe.key,fe.currentValue)})}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)(b.Y36(b.SBq),b.Y36(b.aQg),b.Y36(b.Qsj))},pe.\u0275dir=b.lG2({type:pe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),pe}(),Ji=function(){var pe=function(){function Fe($e){(0,N.Z)(this,Fe),this._viewContainerRef=$e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return(0,w.Z)(Fe,[{key:"ngOnChanges",value:function(We){if(We.ngTemplateOutlet){var ie=this._viewContainerRef;this._viewRef&&ie.remove(ie.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ie.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&We.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)(b.Y36(b.s_b))},pe.\u0275dir=b.lG2({type:pe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[b.TTD]}),pe}();var Qi=function(){function pe(){(0,N.Z)(this,pe)}return(0,w.Z)(pe,[{key:"createSubscription",value:function($e,We){return $e.subscribe({next:We,error:function(fe){throw fe}})}},{key:"dispose",value:function($e){$e.unsubscribe()}},{key:"onDestroy",value:function($e){$e.unsubscribe()}}]),pe}(),vn=new(function(){function pe(){(0,N.Z)(this,pe)}return(0,w.Z)(pe,[{key:"createSubscription",value:function($e,We){return $e.then(We,function(ie){throw ie})}},{key:"dispose",value:function($e){}},{key:"onDestroy",value:function($e){}}]),pe}()),pr=new Qi,ho=function(){var pe=function(){function Fe($e){(0,N.Z)(this,Fe),this._ref=$e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return(0,w.Z)(Fe,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(We){return this._obj?We!==this._obj?(this._dispose(),this.transform(We)):this._latestValue:(We&&this._subscribe(We),this._latestValue)}},{key:"_subscribe",value:function(We){var ie=this;this._obj=We,this._strategy=this._selectStrategy(We),this._subscription=this._strategy.createSubscription(We,function(fe){return ie._updateLatestValue(We,fe)})}},{key:"_selectStrategy",value:function(We){if((0,b.QGY)(We))return vn;if((0,b.F4k)(We))return pr;throw function(pe,Fe){return Error("InvalidPipeArgument: '".concat(Fe,"' for pipe '").concat((0,b.AaK)(pe),"'"))}(Fe,We)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(We,ie){We===this._obj&&(this._latestValue=ie,this._ref.markForCheck())}}]),Fe}();return pe.\u0275fac=function($e){return new($e||pe)(b.Y36(b.sBO,16))},pe.\u0275pipe=b.Yjl({name:"async",type:pe,pure:!1}),pe}(),Bn=function(){var pe=function Fe(){(0,N.Z)(this,Fe)};return pe.\u0275fac=function($e){return new($e||pe)},pe.\u0275mod=b.oAB({type:pe}),pe.\u0275inj=b.cJS({providers:[{provide:Ot,useClass:Pt}]}),pe}(),Ma="browser";function Wi(pe){return pe===Ma}var Va=function(){var pe=function Fe(){(0,N.Z)(this,Fe)};return pe.\u0275prov=(0,b.Yz7)({token:pe,providedIn:"root",factory:function(){return new yl((0,b.LFG)(v),window)}}),pe}(),yl=function(){function pe(Fe,$e){(0,N.Z)(this,pe),this.document=Fe,this.window=$e,this.offset=function(){return[0,0]}}return(0,w.Z)(pe,[{key:"setOffset",value:function($e){this.offset=Array.isArray($e)?function(){return $e}:$e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function($e){this.supportsScrolling()&&this.window.scrollTo($e[0],$e[1])}},{key:"scrollToAnchor",value:function($e){if(this.supportsScrolling()){var We=function(pe,Fe){var $e=pe.getElementById(Fe)||pe.getElementsByName(Fe)[0];if($e)return $e;if("function"==typeof pe.createTreeWalker&&pe.body&&(pe.body.createShadowRoot||pe.body.attachShadow))for(var We=pe.createTreeWalker(pe.body,NodeFilter.SHOW_ELEMENT),ie=We.currentNode;ie;){var fe=ie.shadowRoot;if(fe){var _e=fe.getElementById(Fe)||fe.querySelector('[name="'.concat(Fe,'"]'));if(_e)return _e}ie=We.nextNode()}return null}(this.document,$e);We&&(this.scrollToElement(We),this.attemptFocus(We))}}},{key:"setHistoryScrollRestoration",value:function($e){if(this.supportScrollRestoration()){var We=this.window.history;We&&We.scrollRestoration&&(We.scrollRestoration=$e)}}},{key:"scrollToElement",value:function($e){var We=$e.getBoundingClientRect(),ie=We.left+this.window.pageXOffset,fe=We.top+this.window.pageYOffset,_e=this.offset();this.window.scrollTo(ie-_e[0],fe-_e[1])}},{key:"attemptFocus",value:function($e){return $e.focus(),this.document.activeElement===$e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var $e=tn(this.window.history)||tn(Object.getPrototypeOf(this.window.history));return!(!$e||!$e.writable&&!$e.set)}catch(We){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch($e){return!1}}}]),pe}();function tn(pe){return Object.getOwnPropertyDescriptor(pe,"scrollRestoration")}var Cl=function pe(){(0,N.Z)(this,pe)}},75472:function(ue,q,f){"use strict";f.d(q,{eN:function(){return yt},JF:function(){return wn},UA:function(){return qe}});var B=f(10509),U=f(97154),V=f(71955),Z=f(62467),w=f(14105),N=f(18967),b=f(40098),_=f(38999),I=f(43161),D=f(89797),A=f(38575),S=f(58780),v=f(85639),g=function He(){(0,N.Z)(this,He)},T=function He(){(0,N.Z)(this,He)},R=function(){function He(ve){var ye=this;(0,N.Z)(this,He),this.normalizedNames=new Map,this.lazyUpdate=null,ve?this.lazyInit="string"==typeof ve?function(){ye.headers=new Map,ve.split("\n").forEach(function(Te){var we=Te.indexOf(":");if(we>0){var ct=Te.slice(0,we),ft=ct.toLowerCase(),Yt=Te.slice(we+1).trim();ye.maybeSetNormalizedName(ct,ft),ye.headers.has(ft)?ye.headers.get(ft).push(Yt):ye.headers.set(ft,[Yt])}})}:function(){ye.headers=new Map,Object.keys(ve).forEach(function(Te){var we=ve[Te],ct=Te.toLowerCase();"string"==typeof we&&(we=[we]),we.length>0&&(ye.headers.set(ct,we),ye.maybeSetNormalizedName(Te,ct))})}:this.headers=new Map}return(0,w.Z)(He,[{key:"has",value:function(ye){return this.init(),this.headers.has(ye.toLowerCase())}},{key:"get",value:function(ye){this.init();var Te=this.headers.get(ye.toLowerCase());return Te&&Te.length>0?Te[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(ye){return this.init(),this.headers.get(ye.toLowerCase())||null}},{key:"append",value:function(ye,Te){return this.clone({name:ye,value:Te,op:"a"})}},{key:"set",value:function(ye,Te){return this.clone({name:ye,value:Te,op:"s"})}},{key:"delete",value:function(ye,Te){return this.clone({name:ye,value:Te,op:"d"})}},{key:"maybeSetNormalizedName",value:function(ye,Te){this.normalizedNames.has(Te)||this.normalizedNames.set(Te,ye)}},{key:"init",value:function(){var ye=this;this.lazyInit&&(this.lazyInit instanceof He?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(Te){return ye.applyUpdate(Te)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(ye){var Te=this;ye.init(),Array.from(ye.headers.keys()).forEach(function(we){Te.headers.set(we,ye.headers.get(we)),Te.normalizedNames.set(we,ye.normalizedNames.get(we))})}},{key:"clone",value:function(ye){var Te=new He;return Te.lazyInit=this.lazyInit&&this.lazyInit instanceof He?this.lazyInit:this,Te.lazyUpdate=(this.lazyUpdate||[]).concat([ye]),Te}},{key:"applyUpdate",value:function(ye){var Te=ye.name.toLowerCase();switch(ye.op){case"a":case"s":var we=ye.value;if("string"==typeof we&&(we=[we]),0===we.length)return;this.maybeSetNormalizedName(ye.name,Te);var ct=("a"===ye.op?this.headers.get(Te):void 0)||[];ct.push.apply(ct,(0,Z.Z)(we)),this.headers.set(Te,ct);break;case"d":var ft=ye.value;if(ft){var Yt=this.headers.get(Te);if(!Yt)return;0===(Yt=Yt.filter(function(Kt){return-1===ft.indexOf(Kt)})).length?(this.headers.delete(Te),this.normalizedNames.delete(Te)):this.headers.set(Te,Yt)}else this.headers.delete(Te),this.normalizedNames.delete(Te)}}},{key:"forEach",value:function(ye){var Te=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(we){return ye(Te.normalizedNames.get(we),Te.headers.get(we))})}}]),He}(),k=function(){function He(){(0,N.Z)(this,He)}return(0,w.Z)(He,[{key:"encodeKey",value:function(ye){return F(ye)}},{key:"encodeValue",value:function(ye){return F(ye)}},{key:"decodeKey",value:function(ye){return decodeURIComponent(ye)}},{key:"decodeValue",value:function(ye){return decodeURIComponent(ye)}}]),He}();function E(He,ve){var ye=new Map;return He.length>0&&He.replace(/^\?/,"").split("&").forEach(function(we){var ct=we.indexOf("="),ft=-1==ct?[ve.decodeKey(we),""]:[ve.decodeKey(we.slice(0,ct)),ve.decodeValue(we.slice(ct+1))],Yt=(0,V.Z)(ft,2),Kt=Yt[0],Jt=Yt[1],nn=ye.get(Kt)||[];nn.push(Jt),ye.set(Kt,nn)}),ye}var x=/%(\d[a-f0-9])/gi,O={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function F(He){return encodeURIComponent(He).replace(x,function(ve,ye){var Te;return null!==(Te=O[ye])&&void 0!==Te?Te:ve})}function z(He){return"".concat(He)}var K=function(){function He(){var ve=this,ye=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,N.Z)(this,He),this.updates=null,this.cloneFrom=null,this.encoder=ye.encoder||new k,ye.fromString){if(ye.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=E(ye.fromString,this.encoder)}else ye.fromObject?(this.map=new Map,Object.keys(ye.fromObject).forEach(function(Te){var we=ye.fromObject[Te];ve.map.set(Te,Array.isArray(we)?we:[we])})):this.map=null}return(0,w.Z)(He,[{key:"has",value:function(ye){return this.init(),this.map.has(ye)}},{key:"get",value:function(ye){this.init();var Te=this.map.get(ye);return Te?Te[0]:null}},{key:"getAll",value:function(ye){return this.init(),this.map.get(ye)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(ye,Te){return this.clone({param:ye,value:Te,op:"a"})}},{key:"appendAll",value:function(ye){var Te=[];return Object.keys(ye).forEach(function(we){var ct=ye[we];Array.isArray(ct)?ct.forEach(function(ft){Te.push({param:we,value:ft,op:"a"})}):Te.push({param:we,value:ct,op:"a"})}),this.clone(Te)}},{key:"set",value:function(ye,Te){return this.clone({param:ye,value:Te,op:"s"})}},{key:"delete",value:function(ye,Te){return this.clone({param:ye,value:Te,op:"d"})}},{key:"toString",value:function(){var ye=this;return this.init(),this.keys().map(function(Te){var we=ye.encoder.encodeKey(Te);return ye.map.get(Te).map(function(ct){return we+"="+ye.encoder.encodeValue(ct)}).join("&")}).filter(function(Te){return""!==Te}).join("&")}},{key:"clone",value:function(ye){var Te=new He({encoder:this.encoder});return Te.cloneFrom=this.cloneFrom||this,Te.updates=(this.updates||[]).concat(ye),Te}},{key:"init",value:function(){var ye=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(Te){return ye.map.set(Te,ye.cloneFrom.map.get(Te))}),this.updates.forEach(function(Te){switch(Te.op){case"a":case"s":var we=("a"===Te.op?ye.map.get(Te.param):void 0)||[];we.push(z(Te.value)),ye.map.set(Te.param,we);break;case"d":if(void 0===Te.value){ye.map.delete(Te.param);break}var ct=ye.map.get(Te.param)||[],ft=ct.indexOf(z(Te.value));-1!==ft&&ct.splice(ft,1),ct.length>0?ye.map.set(Te.param,ct):ye.map.delete(Te.param)}}),this.cloneFrom=this.updates=null)}}]),He}(),J=function(){function He(){(0,N.Z)(this,He),this.map=new Map}return(0,w.Z)(He,[{key:"set",value:function(ye,Te){return this.map.set(ye,Te),this}},{key:"get",value:function(ye){return this.map.has(ye)||this.map.set(ye,ye.defaultValue()),this.map.get(ye)}},{key:"delete",value:function(ye){return this.map.delete(ye),this}},{key:"keys",value:function(){return this.map.keys()}}]),He}();function $(He){return"undefined"!=typeof ArrayBuffer&&He instanceof ArrayBuffer}function ae(He){return"undefined"!=typeof Blob&&He instanceof Blob}function se(He){return"undefined"!=typeof FormData&&He instanceof FormData}var le=function(){function He(ve,ye,Te,we){var ct;if((0,N.Z)(this,He),this.url=ye,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ve.toUpperCase(),function(He){switch(He){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||we?(this.body=void 0!==Te?Te:null,ct=we):ct=Te,ct&&(this.reportProgress=!!ct.reportProgress,this.withCredentials=!!ct.withCredentials,ct.responseType&&(this.responseType=ct.responseType),ct.headers&&(this.headers=ct.headers),ct.context&&(this.context=ct.context),ct.params&&(this.params=ct.params)),this.headers||(this.headers=new R),this.context||(this.context=new J),this.params){var ft=this.params.toString();if(0===ft.length)this.urlWithParams=ye;else{var Yt=ye.indexOf("?");this.urlWithParams=ye+(-1===Yt?"?":Yt<ye.length-1?"&":"")+ft}}else this.params=new K,this.urlWithParams=ye}return(0,w.Z)(He,[{key:"serializeBody",value:function(){return null===this.body?null:$(this.body)||ae(this.body)||se(this.body)||function(He){return"undefined"!=typeof URLSearchParams&&He instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof K?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||se(this.body)?null:ae(this.body)?this.body.type||null:$(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof K?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var Te,ye=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},we=ye.method||this.method,ct=ye.url||this.url,ft=ye.responseType||this.responseType,Yt=void 0!==ye.body?ye.body:this.body,Kt=void 0!==ye.withCredentials?ye.withCredentials:this.withCredentials,Jt=void 0!==ye.reportProgress?ye.reportProgress:this.reportProgress,nn=ye.headers||this.headers,ln=ye.params||this.params,yn=null!==(Te=ye.context)&&void 0!==Te?Te:this.context;return void 0!==ye.setHeaders&&(nn=Object.keys(ye.setHeaders).reduce(function(Tn,In){return Tn.set(In,ye.setHeaders[In])},nn)),ye.setParams&&(ln=Object.keys(ye.setParams).reduce(function(Tn,In){return Tn.set(In,ye.setParams[In])},ln)),new He(we,ct,Yt,{params:ln,headers:nn,context:yn,reportProgress:Jt,responseType:ft,withCredentials:Kt})}}]),He}(),oe=function(He){return He[He.Sent=0]="Sent",He[He.UploadProgress=1]="UploadProgress",He[He.ResponseHeader=2]="ResponseHeader",He[He.DownloadProgress=3]="DownloadProgress",He[He.Response=4]="Response",He[He.User=5]="User",He}({}),Ae=function He(ve){var ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,Te=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";(0,N.Z)(this,He),this.headers=ve.headers||new R,this.status=void 0!==ve.status?ve.status:ye,this.statusText=ve.statusText||Te,this.url=ve.url||null,this.ok=this.status>=200&&this.status<300},be=function(He){(0,B.Z)(ye,He);var ve=(0,U.Z)(ye);function ye(){var Te,we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,N.Z)(this,ye),(Te=ve.call(this,we)).type=oe.ResponseHeader,Te}return(0,w.Z)(ye,[{key:"clone",value:function(){var we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ye({headers:we.headers||this.headers,status:void 0!==we.status?we.status:this.status,statusText:we.statusText||this.statusText,url:we.url||this.url||void 0})}}]),ye}(Ae),it=function(He){(0,B.Z)(ye,He);var ve=(0,U.Z)(ye);function ye(){var Te,we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,N.Z)(this,ye),(Te=ve.call(this,we)).type=oe.Response,Te.body=void 0!==we.body?we.body:null,Te}return(0,w.Z)(ye,[{key:"clone",value:function(){var we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ye({body:void 0!==we.body?we.body:this.body,headers:we.headers||this.headers,status:void 0!==we.status?we.status:this.status,statusText:we.statusText||this.statusText,url:we.url||this.url||void 0})}}]),ye}(Ae),qe=function(He){(0,B.Z)(ye,He);var ve=(0,U.Z)(ye);function ye(Te){var we;return(0,N.Z)(this,ye),(we=ve.call(this,Te,0,"Unknown Error")).name="HttpErrorResponse",we.ok=!1,we.message=we.status>=200&&we.status<300?"Http failure during parsing for ".concat(Te.url||"(unknown url)"):"Http failure response for ".concat(Te.url||"(unknown url)",": ").concat(Te.status," ").concat(Te.statusText),we.error=Te.error||null,we}return ye}(Ae);function _t(He,ve){return{body:ve,headers:He.headers,context:He.context,observe:He.observe,params:He.params,reportProgress:He.reportProgress,responseType:He.responseType,withCredentials:He.withCredentials}}var yt=function(){var He=function(){function ve(ye){(0,N.Z)(this,ve),this.handler=ye}return(0,w.Z)(ve,[{key:"request",value:function(Te,we){var Yt,ct=this,ft=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Te instanceof le)Yt=Te;else{var Kt=void 0;Kt=ft.headers instanceof R?ft.headers:new R(ft.headers);var Jt=void 0;ft.params&&(Jt=ft.params instanceof K?ft.params:new K({fromObject:ft.params})),Yt=new le(Te,we,void 0!==ft.body?ft.body:null,{headers:Kt,context:ft.context,params:Jt,reportProgress:ft.reportProgress,responseType:ft.responseType||"json",withCredentials:ft.withCredentials})}var nn=(0,I.of)(Yt).pipe((0,A.b)(function(yn){return ct.handler.handle(yn)}));if(Te instanceof le||"events"===ft.observe)return nn;var ln=nn.pipe((0,S.h)(function(yn){return yn instanceof it}));switch(ft.observe||"body"){case"body":switch(Yt.responseType){case"arraybuffer":return ln.pipe((0,v.U)(function(yn){if(null!==yn.body&&!(yn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return yn.body}));case"blob":return ln.pipe((0,v.U)(function(yn){if(null!==yn.body&&!(yn.body instanceof Blob))throw new Error("Response is not a Blob.");return yn.body}));case"text":return ln.pipe((0,v.U)(function(yn){if(null!==yn.body&&"string"!=typeof yn.body)throw new Error("Response is not a string.");return yn.body}));case"json":default:return ln.pipe((0,v.U)(function(yn){return yn.body}))}case"response":return ln;default:throw new Error("Unreachable: unhandled observe type ".concat(ft.observe,"}"))}}},{key:"delete",value:function(Te){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",Te,we)}},{key:"get",value:function(Te){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",Te,we)}},{key:"head",value:function(Te){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",Te,we)}},{key:"jsonp",value:function(Te,we){return this.request("JSONP",Te,{params:(new K).append(we,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(Te){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",Te,we)}},{key:"patch",value:function(Te,we){var ct=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",Te,_t(ct,we))}},{key:"post",value:function(Te,we){var ct=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",Te,_t(ct,we))}},{key:"put",value:function(Te,we){var ct=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",Te,_t(ct,we))}}]),ve}();return He.\u0275fac=function(ye){return new(ye||He)(_.LFG(g))},He.\u0275prov=_.Yz7({token:He,factory:He.\u0275fac}),He}(),Ft=function(){function He(ve,ye){(0,N.Z)(this,He),this.next=ve,this.interceptor=ye}return(0,w.Z)(He,[{key:"handle",value:function(ye){return this.interceptor.intercept(ye,this.next)}}]),He}(),xe=new _.OlP("HTTP_INTERCEPTORS"),De=function(){var He=function(){function ve(){(0,N.Z)(this,ve)}return(0,w.Z)(ve,[{key:"intercept",value:function(Te,we){return we.handle(Te)}}]),ve}();return He.\u0275fac=function(ye){return new(ye||He)},He.\u0275prov=_.Yz7({token:He,factory:He.\u0275fac}),He}(),Ht=/^\)\]\}',?\n/,qt=function(){var He=function(){function ve(ye){(0,N.Z)(this,ve),this.xhrFactory=ye}return(0,w.Z)(ve,[{key:"handle",value:function(Te){var we=this;if("JSONP"===Te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new D.y(function(ct){var ft=we.xhrFactory.build();if(ft.open(Te.method,Te.urlWithParams),Te.withCredentials&&(ft.withCredentials=!0),Te.headers.forEach(function(Sn,tr){return ft.setRequestHeader(Sn,tr.join(","))}),Te.headers.has("Accept")||ft.setRequestHeader("Accept","application/json, text/plain, */*"),!Te.headers.has("Content-Type")){var Yt=Te.detectContentTypeHeader();null!==Yt&&ft.setRequestHeader("Content-Type",Yt)}if(Te.responseType){var Kt=Te.responseType.toLowerCase();ft.responseType="json"!==Kt?Kt:"text"}var Jt=Te.serializeBody(),nn=null,ln=function(){if(null!==nn)return nn;var tr=1223===ft.status?204:ft.status,ur=ft.statusText||"OK",Ut=new R(ft.getAllResponseHeaders()),Rt=function(He){return"responseURL"in He&&He.responseURL?He.responseURL:/^X-Request-URL:/m.test(He.getAllResponseHeaders())?He.getResponseHeader("X-Request-URL"):null}(ft)||Te.url;return nn=new be({headers:Ut,status:tr,statusText:ur,url:Rt})},yn=function(){var tr=ln(),ur=tr.headers,Ut=tr.status,Rt=tr.statusText,Lt=tr.url,Oe=null;204!==Ut&&(Oe=void 0===ft.response?ft.responseText:ft.response),0===Ut&&(Ut=Oe?200:0);var rt=Ut>=200&&Ut<300;if("json"===Te.responseType&&"string"==typeof Oe){var he=Oe;Oe=Oe.replace(Ht,"");try{Oe=""!==Oe?JSON.parse(Oe):null}catch(Ie){Oe=he,rt&&(rt=!1,Oe={error:Ie,text:Oe})}}rt?(ct.next(new it({body:Oe,headers:ur,status:Ut,statusText:Rt,url:Lt||void 0})),ct.complete()):ct.error(new qe({error:Oe,headers:ur,status:Ut,statusText:Rt,url:Lt||void 0}))},Tn=function(tr){var ur=ln(),Rt=new qe({error:tr,status:ft.status||0,statusText:ft.statusText||"Unknown Error",url:ur.url||void 0});ct.error(Rt)},In=!1,Yn=function(tr){In||(ct.next(ln()),In=!0);var ur={type:oe.DownloadProgress,loaded:tr.loaded};tr.lengthComputable&&(ur.total=tr.total),"text"===Te.responseType&&!!ft.responseText&&(ur.partialText=ft.responseText),ct.next(ur)},Cn=function(tr){var ur={type:oe.UploadProgress,loaded:tr.loaded};tr.lengthComputable&&(ur.total=tr.total),ct.next(ur)};return ft.addEventListener("load",yn),ft.addEventListener("error",Tn),ft.addEventListener("timeout",Tn),ft.addEventListener("abort",Tn),Te.reportProgress&&(ft.addEventListener("progress",Yn),null!==Jt&&ft.upload&&ft.upload.addEventListener("progress",Cn)),ft.send(Jt),ct.next({type:oe.Sent}),function(){ft.removeEventListener("error",Tn),ft.removeEventListener("abort",Tn),ft.removeEventListener("load",yn),ft.removeEventListener("timeout",Tn),Te.reportProgress&&(ft.removeEventListener("progress",Yn),null!==Jt&&ft.upload&&ft.upload.removeEventListener("progress",Cn)),ft.readyState!==ft.DONE&&ft.abort()}})}}]),ve}();return He.\u0275fac=function(ye){return new(ye||He)(_.LFG(b.JF))},He.\u0275prov=_.Yz7({token:He,factory:He.\u0275fac}),He}(),bt=new _.OlP("XSRF_COOKIE_NAME"),en=new _.OlP("XSRF_HEADER_NAME"),Nt=function He(){(0,N.Z)(this,He)},rn=function(){var He=function(){function ve(ye,Te,we){(0,N.Z)(this,ve),this.doc=ye,this.platform=Te,this.cookieName=we,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return(0,w.Z)(ve,[{key:"getToken",value:function(){if("server"===this.platform)return null;var Te=this.doc.cookie||"";return Te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,b.Mx)(Te,this.cookieName),this.lastCookieString=Te),this.lastToken}}]),ve}();return He.\u0275fac=function(ye){return new(ye||He)(_.LFG(b.K0),_.LFG(_.Lbi),_.LFG(bt))},He.\u0275prov=_.Yz7({token:He,factory:He.\u0275fac}),He}(),kn=function(){var He=function(){function ve(ye,Te){(0,N.Z)(this,ve),this.tokenService=ye,this.headerName=Te}return(0,w.Z)(ve,[{key:"intercept",value:function(Te,we){var ct=Te.url.toLowerCase();if("GET"===Te.method||"HEAD"===Te.method||ct.startsWith("http://")||ct.startsWith("https://"))return we.handle(Te);var ft=this.tokenService.getToken();return null!==ft&&!Te.headers.has(this.headerName)&&(Te=Te.clone({headers:Te.headers.set(this.headerName,ft)})),we.handle(Te)}}]),ve}();return He.\u0275fac=function(ye){return new(ye||He)(_.LFG(Nt),_.LFG(en))},He.\u0275prov=_.Yz7({token:He,factory:He.\u0275fac}),He}(),Ln=function(){var He=function(){function ve(ye,Te){(0,N.Z)(this,ve),this.backend=ye,this.injector=Te,this.chain=null}return(0,w.Z)(ve,[{key:"handle",value:function(Te){if(null===this.chain){var we=this.injector.get(xe,[]);this.chain=we.reduceRight(function(ct,ft){return new Ft(ct,ft)},this.backend)}return this.chain.handle(Te)}}]),ve}();return He.\u0275fac=function(ye){return new(ye||He)(_.LFG(T),_.LFG(_.zs3))},He.\u0275prov=_.Yz7({token:He,factory:He.\u0275fac}),He}(),Nn=function(){var He=function(){function ve(){(0,N.Z)(this,ve)}return(0,w.Z)(ve,null,[{key:"disable",value:function(){return{ngModule:ve,providers:[{provide:kn,useClass:De}]}}},{key:"withOptions",value:function(){var Te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:ve,providers:[Te.cookieName?{provide:bt,useValue:Te.cookieName}:[],Te.headerName?{provide:en,useValue:Te.headerName}:[]]}}}]),ve}();return He.\u0275fac=function(ye){return new(ye||He)},He.\u0275mod=_.oAB({type:He}),He.\u0275inj=_.cJS({providers:[kn,{provide:xe,useExisting:kn,multi:!0},{provide:Nt,useClass:rn},{provide:bt,useValue:"XSRF-TOKEN"},{provide:en,useValue:"X-XSRF-TOKEN"}]}),He}(),wn=function(){var He=function ve(){(0,N.Z)(this,ve)};return He.\u0275fac=function(ye){return new(ye||He)},He.\u0275mod=_.oAB({type:He}),He.\u0275inj=_.cJS({providers:[yt,{provide:g,useClass:Ln},qt,{provide:T,useExisting:qt}],imports:[[Nn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),He}()},38999:function(ue,q,f){"use strict";f.d(q,{deG:function(){return mD},tb:function(){return JC},AFp:function(){return kf},ip1:function(){return cm},CZH:function(){return Cu},hGG:function(){return op},z2F:function(){return _m},sBO:function(){return pE},Sil:function(){return dm},_Vd:function(){return Ng},EJc:function(){return mk},SBq:function(){return vf},a5r:function(){return SR},qLn:function(){return Jp},vpe:function(){return Ls},gxx:function(){return tf},tBr:function(){return bh},XFs:function(){return ft},OlP:function(){return No},zs3:function(){return Ia},ZZ4:function(){return Lg},aQg:function(){return Kh},soG:function(){return rp},YKP:function(){return dC},v3s:function(){return vR},h0i:function(){return Yd},PXZ:function(){return cR},R0b:function(){return il},FiY:function(){return Lu},Lbi:function(){return hk},g9A:function(){return YC},n_E:function(){return OC},Qsj:function(){return sE},FYo:function(){return sC},JOm:function(){return Ec},Tiy:function(){return lC},q3G:function(){return Fd},tp0:function(){return Fu},EAV:function(){return bR},Rgc:function(){return Fg},dDg:function(){return Ck},DyG:function(){return iu},GfV:function(){return lE},s_b:function(){return Bg},ifc:function(){return Cn},eFA:function(){return Ek},G48:function(){return sR},Gpc:function(){return $},f3M:function(){return TD},X6Q:function(){return n1},_c5:function(){return AR},VLi:function(){return aR},c2e:function(){return p_},zSh:function(){return Ks},wAp:function(){return Dg},vHH:function(){return le},EiD:function(){return Tb},mCW:function(){return ms},qzn:function(){return Oc},JVY:function(){return mb},pB0:function(){return Jv},eBb:function(){return vb},L6k:function(){return Nd},LAX:function(){return gb},cg1:function(){return Bw},Tjo:function(){return kR},kL8:function(){return YP},yhl:function(){return Yv},dqk:function(){return Rt},sIi:function(){return jh},CqO:function(){return D0},QGY:function(){return M0},F4k:function(){return A0},RDi:function(){return Ce},AaK:function(){return j},z3N:function(){return Ps},qOj:function(){return c0},TTD:function(){return Va},_Bn:function(){return MI},xp6:function(){return tO},uIk:function(){return m0},Q2q:function(){return _g},zWS:function(){return yg},Tol:function(){return z0},Gre:function(){return ZP},ekj:function(){return Eg},Suo:function(){return im},Xpm:function(){return Hr},lG2:function(){return Ei},Yz7:function(){return Rn},cJS:function(){return Nn},oAB:function(){return bo},Yjl:function(){return no},Y36:function(){return zh},_UZ:function(){return pf},GkF:function(){return lw},BQk:function(){return Vc},ynx:function(){return Tg},qZA:function(){return k0},TgZ:function(){return E0},EpF:function(){return uw},n5z:function(){return vh},Ikx:function(){return Lw},LFG:function(){return Wo},$8M:function(){return Fy},NdJ:function(){return O0},CRH:function(){return bu},kcU:function(){return Iu},O4$:function(){return dh},oxw:function(){return dw},ALo:function(){return n_},lcZ:function(){return qE},xi3:function(){return jE},Hsn:function(){return N0},F$t:function(){return xg},Q6J:function(){return Sg},s9C:function(){return Z0},MGl:function(){return wg},hYB:function(){return L0},DdM:function(){return BE},VKq:function(){return w3},WLB:function(){return t_},iGM:function(){return YE},MAs:function(){return y0},evT:function(){return Ic},Jf7:function(){return tx},CHM:function(){return Q},oJD:function(){return YT},Ckj:function(){return eg},LSH:function(){return Gp},B6R:function(){return yr},kYT:function(){return po},Akn:function(){return $s},Udp:function(){return j0},WFA:function(){return P0},d8E:function(){return Fw},YNc:function(){return Gx},W1O:function(){return JE},_uU:function(){return Mw},Oqu:function(){return Q0},hij:function(){return Mg},AsE:function(){return Ag},lnq:function(){return K0},Gf:function(){return xf}});var B=f(13920),U=f(89200),V=f(88009),Z=f(71955),b=(f(42515),f(99890),f(36683)),_=f(62467),I=f(99740),D=f(14105),A=f(18967),S=f(10509),v=f(97154),g=f(35470);function R(l){var c="function"==typeof Map?new Map:void 0;return(R=function(h){if(null===h||!function(l){return-1!==Function.toString.call(l).indexOf("[native code]")}(h))return h;if("function"!=typeof h)throw new TypeError("Super expression must either be null or a function");if(void 0!==c){if(c.has(h))return c.get(h);c.set(h,y)}function y(){return(0,I.Z)(h,arguments,(0,U.Z)(this).constructor)}return y.prototype=Object.create(h.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),(0,g.Z)(y,h)})(l)}var k=f(5051),E=f(68707),x=f(89797),O=f(55371),F=f(16338);function z(l){for(var c in l)if(l[c]===z)return c;throw Error("Could not find renamed property on target object.")}function K(l,c){for(var d in c)c.hasOwnProperty(d)&&!l.hasOwnProperty(d)&&(l[d]=c[d])}function j(l){if("string"==typeof l)return l;if(Array.isArray(l))return"["+l.map(j).join(", ")+"]";if(null==l)return""+l;if(l.overriddenName)return"".concat(l.overriddenName);if(l.name)return"".concat(l.name);var c=l.toString();if(null==c)return""+c;var d=c.indexOf("\n");return-1===d?c:c.substring(0,d)}function J(l,c){return null==l||""===l?null===c?"":c:null==c||""===c?l:l+" "+c}var ee=z({__forward_ref__:z});function $(l){return l.__forward_ref__=$,l.toString=function(){return j(this())},l}function ae(l){return se(l)?l():l}function se(l){return"function"==typeof l&&l.hasOwnProperty(ee)&&l.__forward_ref__===$}var le=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(h,y){var M;return(0,A.Z)(this,d),(M=c.call(this,function(l,c){var d=l?"NG0".concat(l,": "):"";return"".concat(d).concat(c)}(h,y))).code=h,M}return d}(R(Error));function be(l){return"string"==typeof l?l:null==l?"":String(l)}function it(l){return"function"==typeof l?l.name||l.toString():"object"==typeof l&&null!=l&&"function"==typeof l.type?l.type.name||l.type.toString():be(l)}function Ft(l,c){var d=c?" in ".concat(c):"";throw new le("201","No provider for ".concat(it(l)," found").concat(d))}function en(l,c){null==l&&function(l,c,d,h){throw new Error("ASSERTION ERROR: ".concat(l)+(null==h?"":" [Expected=> ".concat(d," ").concat(h," ").concat(c," <=Actual]")))}(c,l,null,"!=")}function Rn(l){return{token:l.token,providedIn:l.providedIn||null,factory:l.factory,value:void 0}}function Nn(l){return{providers:l.providers||[],imports:l.imports||[]}}function wn(l){return _r(l,ye)||_r(l,we)}function _r(l,c){return l.hasOwnProperty(c)?l[c]:null}function ve(l){return l&&(l.hasOwnProperty(Te)||l.hasOwnProperty(ct))?l[Te]:null}var Yt,ye=z({"\u0275prov":z}),Te=z({"\u0275inj":z}),we=z({ngInjectableDef:z}),ct=z({ngInjectorDef:z}),ft=function(l){return l[l.Default=0]="Default",l[l.Host=1]="Host",l[l.Self=2]="Self",l[l.SkipSelf=4]="SkipSelf",l[l.Optional=8]="Optional",l}({});function Kt(){return Yt}function Jt(l){var c=Yt;return Yt=l,c}function nn(l,c,d){var h=wn(l);return h&&"root"==h.providedIn?void 0===h.value?h.value=h.factory():h.value:d&ft.Optional?null:void 0!==c?c:void Ft(j(l),"Injector")}function yn(l){return{toString:l}.toString()}var Tn=function(l){return l[l.OnPush=0]="OnPush",l[l.Default=1]="Default",l}({}),Cn=function(l){return l[l.Emulated=0]="Emulated",l[l.None=2]="None",l[l.ShadowDom=3]="ShadowDom",l}({}),Sn="undefined"!=typeof globalThis&&globalThis,tr="undefined"!=typeof window&&window,ur="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ut="undefined"!=typeof global&&global,Rt=Sn||Ut||tr||ur,rt={},he=[],Ie=z({"\u0275cmp":z}),Ne=z({"\u0275dir":z}),Le=z({"\u0275pipe":z}),ze=z({"\u0275mod":z}),At=z({"\u0275loc":z}),an=z({"\u0275fac":z}),jn=z({__NG_ELEMENT_ID__:z}),Rr=0;function Hr(l){return yn(function(){var d={},h={type:l.type,providersResolver:null,decls:l.decls,vars:l.vars,factory:null,template:l.template||null,consts:l.consts||null,ngContentSelectors:l.ngContentSelectors,hostBindings:l.hostBindings||null,hostVars:l.hostVars||0,hostAttrs:l.hostAttrs||null,contentQueries:l.contentQueries||null,declaredInputs:d,inputs:null,outputs:null,exportAs:l.exportAs||null,onPush:l.changeDetection===Tn.OnPush,directiveDefs:null,pipeDefs:null,selectors:l.selectors||he,viewQuery:l.viewQuery||null,features:l.features||null,data:l.data||{},encapsulation:l.encapsulation||Cn.Emulated,id:"c",styles:l.styles||he,_:null,setInput:null,schemas:l.schemas||null,tView:null},y=l.directives,M=l.features,H=l.pipes;return h.id+=Rr++,h.inputs=Xo(l.inputs,d),h.outputs=Xo(l.outputs),M&&M.forEach(function(W){return W(h)}),h.directiveDefs=y?function(){return("function"==typeof y?y():y).map(Yr)}:null,h.pipeDefs=H?function(){return("function"==typeof H?H():H).map(co)}:null,h})}function yr(l,c,d){var h=l.\u0275cmp;h.directiveDefs=function(){return c.map(Yr)},h.pipeDefs=function(){return d.map(co)}}function Yr(l){return vi(l)||function(l){return l[Ne]||null}(l)}function co(l){return function(l){return l[Le]||null}(l)}var Zi={};function bo(l){return yn(function(){var c={type:l.type,bootstrap:l.bootstrap||he,declarations:l.declarations||he,imports:l.imports||he,exports:l.exports||he,transitiveCompileScopes:null,schemas:l.schemas||null,id:l.id||null};return null!=l.id&&(Zi[l.id]=l.type),c})}function po(l,c){return yn(function(){var d=fi(l,!0);d.declarations=c.declarations||he,d.imports=c.imports||he,d.exports=c.exports||he})}function Xo(l,c){if(null==l)return rt;var d={};for(var h in l)if(l.hasOwnProperty(h)){var y=l[h],M=y;Array.isArray(y)&&(M=y[1],y=y[0]),d[y]=h,c&&(c[y]=M)}return d}var Ei=Hr;function no(l){return{type:l.type,name:l.name,factory:null,pure:!1!==l.pure,onDestroy:l.type.prototype.ngOnDestroy||null}}function vi(l){return l[Ie]||null}function fi(l,c){var d=l[ze]||null;if(!d&&!0===c)throw new Error("Type ".concat(j(l)," does not have '\u0275mod' property."));return d}function pr(l){return Array.isArray(l)&&"object"==typeof l[1]}function ho(l){return Array.isArray(l)&&!0===l[1]}function pa(l){return 0!=(8&l.flags)}function xi(l){return 2==(2&l.flags)}function So(l){return 1==(1&l.flags)}function Fi(l){return null!==l.template}function fa(l){return 0!=(512&l[2])}function Ka(l,c){return l.hasOwnProperty(an)?l[an]:null}var Ki=function(){function l(c,d,h){(0,A.Z)(this,l),this.previousValue=c,this.currentValue=d,this.firstChange=h}return(0,D.Z)(l,[{key:"isFirstChange",value:function(){return this.firstChange}}]),l}();function Va(){return yl}function yl(l){return l.type.prototype.ngOnChanges&&(l.setInput=tu),tn}function tn(){var l=Cl(this),c=null==l?void 0:l.current;if(c){var d=l.previous;if(d===rt)l.previous=c;else for(var h in c)d[h]=c[h];l.current=null,this.ngOnChanges(c)}}function tu(l,c,d,h){var y=Cl(l)||function(l,c){return l[bl]=c}(l,{previous:rt,current:null}),M=y.current||(y.current={}),H=y.previous,W=this.declaredInputs[d],X=H[W];M[W]=new Ki(X&&X.currentValue,c,H===rt),l[h]=c}Va.ngInherit=!0;var bl="__ngSimpleChanges__";function Cl(l){return l[bl]||null}var ie="http://www.w3.org/2000/svg",_e=void 0;function Ce(l){_e=l}function Re(){return void 0!==_e?_e:"undefined"!=typeof document?document:void 0}function St(l){return!!l.listen}var gt={createRenderer:function(c,d){return Re()}};function Vr(l){for(;Array.isArray(l);)l=l[0];return l}function li(l,c){return Vr(c[l])}function Mi(l,c){return Vr(c[l.index])}function Aa(l,c){return l.data[c]}function Xa(l,c){return l[c]}function ya(l,c){var d=c[l];return pr(d)?d:d[0]}function Ms(l){return 4==(4&l[2])}function kp(l){return 128==(128&l[2])}function Ws(l,c){return null==c?null:l[c]}function yc(l){l[18]=0}function Tl(l,c){l[5]+=c;for(var d=l,h=l[3];null!==h&&(1===c&&1===d[5]||-1===c&&0===d[5]);)h[5]+=c,d=h,h=h[3]}var Mr={lFrame:bn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function md(){return Mr.bindingsEnabled}function Se(){return Mr.lFrame.lView}function ge(){return Mr.lFrame.tView}function Q(l){return Mr.lFrame.contextLView=l,l[8]}function ne(){for(var l=ke();null!==l&&64===l.type;)l=l.parent;return l}function ke(){return Mr.lFrame.currentTNode}function lt(l,c){var d=Mr.lFrame;d.currentTNode=l,d.isParent=c}function wt(){return Mr.lFrame.isParent}function Zt(){Mr.lFrame.isParent=!1}function Dn(){return Mr.isInCheckNoChangesMode}function Un(l){Mr.isInCheckNoChangesMode=l}function Qn(){var l=Mr.lFrame,c=l.bindingRootIndex;return-1===c&&(c=l.bindingRootIndex=l.tView.bindingStartIndex),c}function fr(){return Mr.lFrame.bindingIndex}function br(){return Mr.lFrame.bindingIndex++}function wr(l){var c=Mr.lFrame,d=c.bindingIndex;return c.bindingIndex=c.bindingIndex+l,d}function oi(l,c){var d=Mr.lFrame;d.bindingIndex=d.bindingRootIndex=l,Be(c)}function Be(l){Mr.lFrame.currentDirectiveIndex=l}function Ye(l){var c=Mr.lFrame.currentDirectiveIndex;return-1===c?null:l[c]}function Ee(){return Mr.lFrame.currentQueryIndex}function Ue(l){Mr.lFrame.currentQueryIndex=l}function Ze(l){var c=l[1];return 2===c.type?c.declTNode:1===c.type?l[6]:null}function nt(l,c,d){if(d&ft.SkipSelf){for(var h=c,y=l;!(null!==(h=h.parent)||d&ft.Host||null===(h=Ze(y))||(y=y[15],10&h.type)););if(null===h)return!1;c=h,l=y}var M=Mr.lFrame=sn();return M.currentTNode=c,M.lView=l,!0}function Tt(l){var c=sn(),d=l[1];Mr.lFrame=c,c.currentTNode=d.firstChild,c.lView=l,c.tView=d,c.contextLView=l,c.bindingIndex=d.bindingStartIndex,c.inI18n=!1}function sn(){var l=Mr.lFrame,c=null===l?null:l.child;return null===c?bn(l):c}function bn(l){var c={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:l,child:null,inI18n:!1};return null!==l&&(l.child=c),c}function Tr(){var l=Mr.lFrame;return Mr.lFrame=l.parent,l.currentTNode=null,l.lView=null,l}var Ii=Tr;function ea(){var l=Tr();l.isParent=!0,l.tView=null,l.selectedIndex=-1,l.contextLView=null,l.elementDepthCount=0,l.currentDirectiveIndex=-1,l.currentNamespace=null,l.bindingRootIndex=-1,l.bindingIndex=-1,l.currentQueryIndex=0}function Da(l){return(Mr.lFrame.contextLView=function(l,c){for(;l>0;)c=c[15],l--;return c}(l,Mr.lFrame.contextLView))[8]}function Do(){return Mr.lFrame.selectedIndex}function hs(l){Mr.lFrame.selectedIndex=l}function oo(){var l=Mr.lFrame;return Aa(l.tView,l.selectedIndex)}function dh(){Mr.lFrame.currentNamespace=ie}function Iu(){Mr.lFrame.currentNamespace=null}function jo(l,c){for(var d=c.directiveStart,h=c.directiveEnd;d<h;d++){var M=l.data[d].type.prototype,H=M.ngAfterContentInit,W=M.ngAfterContentChecked,X=M.ngAfterViewInit,me=M.ngAfterViewChecked,Pe=M.ngOnDestroy;H&&(l.contentHooks||(l.contentHooks=[])).push(-d,H),W&&((l.contentHooks||(l.contentHooks=[])).push(d,W),(l.contentCheckHooks||(l.contentCheckHooks=[])).push(d,W)),X&&(l.viewHooks||(l.viewHooks=[])).push(-d,X),me&&((l.viewHooks||(l.viewHooks=[])).push(d,me),(l.viewCheckHooks||(l.viewCheckHooks=[])).push(d,me)),null!=Pe&&(l.destroyHooks||(l.destroyHooks=[])).push(d,Pe)}}function Ru(l,c,d){nr(l,c,3,d)}function Cc(l,c,d,h){(3&l[2])===d&&nr(l,c,d,h)}function Oo(l,c){var d=l[2];(3&d)===c&&(d&=2047,l[2]=d+=1)}function nr(l,c,d,h){for(var M=null!=h?h:-1,H=c.length-1,W=0,X=void 0!==h?65535&l[18]:0;X<H;X++)if("number"==typeof c[X+1]){if(W=c[X],null!=h&&W>=h)break}else c[X]<0&&(l[18]+=65536),(W<M||-1==M)&&(Pr(l,d,c,X),l[18]=(4294901760&l[18])+X+2),X++}function Pr(l,c,d,h){var y=d[h]<0,M=d[h+1],W=l[y?-d[h]:d[h]];if(y){if(l[2]>>11<l[18]>>16&&(3&l[2])===c){l[2]+=2048;try{M.call(W)}finally{}}}else try{M.call(W)}finally{}}var Xi=function l(c,d,h){(0,A.Z)(this,l),this.factory=c,this.resolving=!1,this.canSeeViewProviders=d,this.injectImpl=h};function Ys(l,c,d){for(var h=St(l),y=0;y<d.length;){var M=d[y];if("number"==typeof M){if(0!==M)break;y++;var H=d[y++],W=d[y++],X=d[y++];h?l.setAttribute(c,W,X,H):c.setAttributeNS(H,W,X)}else{var me=M,Pe=d[++y];uT(me)?h&&l.setProperty(c,me,Pe):h?l.setAttribute(c,me,Pe):c.setAttribute(me,Pe),y++}}return y}function Rp(l){return 3===l||4===l||6===l}function uT(l){return 64===l.charCodeAt(0)}function Iy(l,c){if(null!==c&&0!==c.length)if(null===l||0===l.length)l=c.slice();else for(var d=-1,h=0;h<c.length;h++){var y=c[h];"number"==typeof y?d=y:0===d||uD(l,d,y,null,-1===d||2===d?c[++h]:null)}return l}function uD(l,c,d,h,y){var M=0,H=l.length;if(-1===c)H=-1;else for(;M<l.length;){var W=l[M++];if("number"==typeof W){if(W===c){H=-1;break}if(W>c){H=M-1;break}}}for(;M<l.length;){var X=l[M];if("number"==typeof X)break;if(X===d){if(null===h)return void(null!==y&&(l[M+1]=y));if(h===l[M+1])return void(l[M+2]=y)}M++,null!==h&&M++,null!==y&&M++}-1!==H&&(l.splice(H,0,c),M=H+1),l.splice(M++,0,d),null!==h&&l.splice(M++,0,h),null!==y&&l.splice(M++,0,y)}function cD(l){return-1!==l}function fh(l){return 32767&l}function Np(l,c){for(var d=function(l){return l>>16}(l),h=c;d>0;)h=h[15],d--;return h}var cT=!0;function Ry(l){var c=cT;return cT=l,c}var M5=0;function hh(l,c){var d=pT(l,c);if(-1!==d)return d;var h=c[1];h.firstCreatePass&&(l.injectorIndex=c.length,dT(h.data,l),dT(c,null),dT(h.blueprint,null));var y=Ny(l,c),M=l.injectorIndex;if(cD(y))for(var H=fh(y),W=Np(y,c),X=W[1].data,me=0;me<8;me++)c[M+me]=W[H+me]|X[H+me];return c[M+8]=y,M}function dT(l,c){l.push(0,0,0,0,0,0,0,0,c)}function pT(l,c){return-1===l.injectorIndex||l.parent&&l.parent.injectorIndex===l.injectorIndex||null===c[l.injectorIndex+8]?-1:l.injectorIndex}function Ny(l,c){if(l.parent&&-1!==l.parent.injectorIndex)return l.parent.injectorIndex;for(var d=0,h=null,y=c;null!==y;){var M=y[1],H=M.type;if(null===(h=2===H?M.declTNode:1===H?y[6]:null))return-1;if(d++,y=y[15],-1!==h.injectorIndex)return h.injectorIndex|d<<16}return-1}function Mv(l,c,d){!function(l,c,d){var h;"string"==typeof d?h=d.charCodeAt(0)||0:d.hasOwnProperty(jn)&&(h=d[jn]),null==h&&(h=d[jn]=M5++);var y=255&h;c.data[l+(y>>5)]|=1<<y}(l,c,d)}function fT(l,c,d){if(d&ft.Optional)return l;Ft(c,"NodeInjector")}function Zy(l,c,d,h){if(d&ft.Optional&&void 0===h&&(h=null),0==(d&(ft.Self|ft.Host))){var y=l[9],M=Jt(void 0);try{return y?y.get(c,h,d&ft.Optional):nn(c,h,d&ft.Optional)}finally{Jt(M)}}return fT(h,c,d)}function Av(l,c,d){var h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ft.Default,y=arguments.length>4?arguments[4]:void 0;if(null!==l){var M=Dv(d);if("function"==typeof M){if(!nt(c,l,h))return h&ft.Host?fT(y,d,h):Zy(c,d,h,y);try{var H=M(h);if(null!=H||h&ft.Optional)return H;Ft(d)}finally{Ii()}}else if("number"==typeof M){var W=null,X=pT(l,c),me=-1,Pe=h&ft.Host?c[16][6]:null;for((-1===X||h&ft.SkipSelf)&&(-1!==(me=-1===X?Ny(l,c):c[X+8])&&gT(h,!1)?(W=c[1],X=fh(me),c=Np(me,c)):X=-1);-1!==X;){var Xe=c[1];if(vT(M,X,Xe.data)){var Qe=mT(X,c,d,W,h,Pe);if(Qe!==hT)return Qe}-1!==(me=c[X+8])&&gT(h,c[1].data[X+8]===Pe)&&vT(M,X,c)?(W=Xe,X=fh(me),c=Np(me,c)):X=-1}}}return Zy(c,d,h,y)}var hT={};function hD(){return new _d(ne(),Se())}function mT(l,c,d,h,y,M){var H=c[1],W=H.data[l+8],Pe=mh(W,H,d,null==h?xi(W)&&cT:h!=H&&0!=(3&W.type),y&ft.Host&&M===W);return null!==Pe?Nu(c,H,Pe,W):hT}function mh(l,c,d,h,y){for(var M=l.providerIndexes,H=c.data,W=1048575&M,X=l.directiveStart,Pe=M>>20,Qe=y?W+Pe:l.directiveEnd,mt=h?W:W+Pe;mt<Qe;mt++){var Mt=H[mt];if(mt<X&&d===Mt||mt>=X&&Mt.type===d)return mt}if(y){var zt=H[X];if(zt&&Fi(zt)&&zt.type===d)return X}return null}function Nu(l,c,d,h){var y=l[d],M=c.data;if(function(l){return l instanceof Xi}(y)){var H=y;H.resolving&&function(l,c){throw new le("200","Circular dependency in DI detected for ".concat(l).concat(""))}(it(M[d]));var W=Ry(H.canSeeViewProviders);H.resolving=!0;var X=H.injectImpl?Jt(H.injectImpl):null;nt(l,h,ft.Default);try{y=l[d]=H.factory(void 0,M,l,h),c.firstCreatePass&&d>=h.directiveStart&&function(l,c,d){var h=c.type.prototype,M=h.ngOnInit,H=h.ngDoCheck;if(h.ngOnChanges){var W=yl(c);(d.preOrderHooks||(d.preOrderHooks=[])).push(l,W),(d.preOrderCheckHooks||(d.preOrderCheckHooks=[])).push(l,W)}M&&(d.preOrderHooks||(d.preOrderHooks=[])).push(0-l,M),H&&((d.preOrderHooks||(d.preOrderHooks=[])).push(l,H),(d.preOrderCheckHooks||(d.preOrderCheckHooks=[])).push(l,H))}(d,M[d],c)}finally{null!==X&&Jt(X),Ry(W),H.resolving=!1,Ii()}}return y}function Dv(l){if("string"==typeof l)return l.charCodeAt(0)||0;var c=l.hasOwnProperty(jn)?l[jn]:void 0;return"number"==typeof c?c>=0?255&c:hD:c}function vT(l,c,d){return!!(d[c+(l>>5)]&1<<l)}function gT(l,c){return!(l&ft.Self||l&ft.Host&&c)}var _d=function(){function l(c,d){(0,A.Z)(this,l),this._tNode=c,this._lView=d}return(0,D.Z)(l,[{key:"get",value:function(d,h,y){return Av(this._tNode,this._lView,d,y,h)}}]),l}();function vh(l){return yn(function(){for(var c=l.prototype.constructor,d=c[an]||Ly(c),h=Object.prototype,y=Object.getPrototypeOf(l.prototype).constructor;y&&y!==h;){var M=y[an]||Ly(y);if(M&&M!==d)return M;y=Object.getPrototypeOf(y)}return function(H){return new H}})}function Ly(l){return se(l)?function(){var c=Ly(ae(l));return c&&c()}:Ka(l)}function Fy(l){return function(l,c){if("class"===c)return l.classes;if("style"===c)return l.styles;var d=l.attrs;if(d)for(var h=d.length,y=0;y<h;){var M=d[y];if(Rp(M))break;if(0===M)y+=2;else if("number"==typeof M)for(y++;y<h&&"string"==typeof d[y];)y++;else{if(M===c)return d[y+1];y+=2}}return null}(ne(),l)}var Zu="__parameters__";function Tc(l,c,d){return yn(function(){var h=function(l){return function(){if(l){var d=l.apply(void 0,arguments);for(var h in d)this[h]=d[h]}}}(c);function y(){for(var M=arguments.length,H=new Array(M),W=0;W<M;W++)H[W]=arguments[W];if(this instanceof y)return h.apply(this,H),this;var X=(0,I.Z)(y,H);return me.annotation=X,me;function me(Pe,Xe,Qe){for(var mt=Pe.hasOwnProperty(Zu)?Pe[Zu]:Object.defineProperty(Pe,Zu,{value:[]})[Zu];mt.length<=Qe;)mt.push(null);return(mt[Qe]=mt[Qe]||[]).push(X),Pe}}return d&&(y.prototype=Object.create(d.prototype)),y.prototype.ngMetadataName=l,y.annotationCls=y,y})}var No=function(){function l(c,d){(0,A.Z)(this,l),this._desc=c,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof d?this.__NG_ELEMENT_ID__=d:void 0!==d&&(this.\u0275prov=Rn({token:this,providedIn:d.providedIn||"root",factory:d.factory}))}return(0,D.Z)(l,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),l}(),mD=new No("AnalyzeForEntryComponents"),iu=Function;function Ds(l,c){void 0===c&&(c=l);for(var d=0;d<l.length;d++){var h=l[d];Array.isArray(h)?(c===l&&(c=l.slice(0,d)),Ds(h,c)):c!==l&&c.push(h)}return c}function Os(l,c){l.forEach(function(d){return Array.isArray(d)?Os(d,c):c(d)})}function Pv(l,c,d){c>=l.length?l.push(d):l.splice(c,0,d)}function Sd(l,c){return c>=l.length-1?l.pop():l.splice(c,1)[0]}function wc(l,c){for(var d=[],h=0;h<l;h++)d.push(c);return d}function es(l,c,d){var h=Td(l,c);return h>=0?l[1|h]=d:function(l,c,d,h){var y=l.length;if(y==c)l.push(d,h);else if(1===y)l.push(h,l[0]),l[0]=d;else{for(y--,l.push(l[y-1],l[y]);y>c;)l[y]=l[y-2],y--;l[c]=d,l[c+1]=h}}(l,h=~h,c,d),h}function _h(l,c){var d=Td(l,c);if(d>=0)return l[1|d]}function Td(l,c){return function(l,c,d){for(var h=0,y=l.length>>d;y!==h;){var M=h+(y-h>>1),H=l[M<<d];if(c===H)return M<<d;H>c?y=M:h=M+1}return~(y<<d)}(l,c,1)}var yh={},qy="__NG_DI_FLAG__",wd="ngTempTokenPath",El=/\n/gm,kl="__source",Lv=z({provide:String,useValue:z}),Fp=void 0;function Fv(l){var c=Fp;return Fp=l,c}function SD(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ft.Default;if(void 0===Fp)throw new Error("inject() must be called from an injection context");return null===Fp?nn(l,void 0,c):Fp.get(l,c&ft.Optional?null:void 0,c)}function Wo(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ft.Default;return(Kt()||SD)(ae(l),c)}var TD=Wo;function kd(l){for(var c=[],d=0;d<l.length;d++){var h=ae(l[d]);if(Array.isArray(h)){if(0===h.length)throw new Error("Arguments array must have arguments.");for(var y=void 0,M=ft.Default,H=0;H<h.length;H++){var W=h[H],X=ET(W);"number"==typeof X?-1===X?y=W.token:M|=X:y=W}c.push(Wo(y,M))}else c.push(Wo(h))}return c}function Bp(l,c){return l[qy]=c,l.prototype[qy]=c,l}function ET(l){return l[qy]}function kT(l,c,d,h){var y=l[wd];throw c[kl]&&y.unshift(c[kl]),l.message=function(l,c,d){var h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;l=l&&"\n"===l.charAt(0)&&"\u0275"==l.charAt(1)?l.substr(2):l;var y=j(c);if(Array.isArray(c))y=c.map(j).join(" -> ");else if("object"==typeof c){var M=[];for(var H in c)if(c.hasOwnProperty(H)){var W=c[H];M.push(H+":"+("string"==typeof W?JSON.stringify(W):j(W)))}y="{".concat(M.join(", "),"}")}return"".concat(d).concat(h?"("+h+")":"","[").concat(y,"]: ").concat(l.replace(El,"\n "))}("\n"+l.message,y,d,h),l.ngTokenPath=y,l[wd]=null,l}var bh=Bp(Tc("Inject",function(c){return{token:c}}),-1),Lu=Bp(Tc("Optional"),8),Fu=Bp(Tc("SkipSelf"),4),Ec=function(l){return l[l.Important=1]="Important",l[l.DashCase=2]="DashCase",l}({}),au="__ngContext__";function Go(l,c){l[au]=c}function lu(l){var c=function(l){return l[au]||null}(l);return c?Array.isArray(c)?c:c.lView:null}function Th(l,c){return undefined(l,c)}function Pd(l){var c=l[3];return ho(c)?c[3]:c}function Xy(l){return $y(l[13])}function wh(l){return $y(l[4])}function $y(l){for(;null!==l&&!ho(l);)l=l[4];return l}function Id(l,c,d,h,y){if(null!=h){var M,H=!1;ho(h)?M=h:pr(h)&&(H=!0,h=h[0]);var W=Vr(h);0===l&&null!==d?null==y?Ac(c,d,W):Hu(c,d,W,y||null,!0):1===l&&null!==d?Hu(c,d,W,y||null,!0):2===l?function(l,c,d){var h=du(l,c);h&&function(l,c,d,h){St(l)?l.removeChild(c,d,h):c.removeChild(d)}(l,h,c,d)}(c,W,H):3===l&&c.destroyNode(W),null!=M&&function(l,c,d,h,y){var M=d[7];M!==Vr(d)&&Id(c,l,h,M,y);for(var W=10;W<d.length;W++){var X=d[W];Vp(X[1],X,l,c,h,M)}}(c,l,M,d,y)}}function qv(l,c){return St(l)?l.createText(c):l.createTextNode(c)}function Rd(l,c,d){return St(l)?l.createElement(c,d):null===d?l.createElement(c):l.createElementNS(d,c)}function OD(l,c){var d=l[9],h=d.indexOf(c),y=c[3];1024&c[2]&&(c[2]&=-1025,Tl(y,-1)),d.splice(h,1)}function tb(l,c){if(!(l.length<=10)){var d=10+c,h=l[d];if(h){var y=h[17];null!==y&&y!==l&&OD(y,h),c>0&&(l[d-1][4]=h[4]);var M=Sd(l,10+c);!function(l,c){Vp(l,c,c[11],2,null,null),c[0]=null,c[6]=null}(h[1],h);var H=M[19];null!==H&&H.detachView(M[1]),h[3]=null,h[4]=null,h[2]&=-129}return h}}function jv(l,c){if(!(256&c[2])){var d=c[11];St(d)&&d.destroyNode&&Vp(l,c,d,3,null,null),function(l){var c=l[13];if(!c)return cu(l[1],l);for(;c;){var d=null;if(pr(c))d=c[13];else{var h=c[10];h&&(d=h)}if(!d){for(;c&&!c[4]&&c!==l;)pr(c)&&cu(c[1],c),c=c[3];null===c&&(c=l),pr(c)&&cu(c[1],c),d=c&&c[4]}c=d}}(c)}}function cu(l,c){if(!(256&c[2])){c[2]&=-129,c[2]|=256,function(l,c){var d;if(null!=l&&null!=(d=l.destroyHooks))for(var h=0;h<d.length;h+=2){var y=c[d[h]];if(!(y instanceof Xi)){var M=d[h+1];if(Array.isArray(M))for(var H=0;H<M.length;H+=2){var W=y[M[H]],X=M[H+1];try{X.call(W)}finally{}}else try{M.call(y)}finally{}}}}(l,c),function(l,c){var d=l.cleanup,h=c[7],y=-1;if(null!==d)for(var M=0;M<d.length-1;M+=2)if("string"==typeof d[M]){var H=d[M+1],W="function"==typeof H?H(c):Vr(c[H]),X=h[y=d[M+2]],me=d[M+3];"boolean"==typeof me?W.removeEventListener(d[M],X,me):me>=0?h[y=me]():h[y=-me].unsubscribe(),M+=2}else{var Pe=h[y=d[M+1]];d[M].call(Pe)}if(null!==h){for(var Xe=y+1;Xe<h.length;Xe++)(0,h[Xe])();c[7]=null}}(l,c),1===c[1].type&&St(c[11])&&c[11].destroy();var d=c[17];if(null!==d&&ho(c[3])){d!==c[3]&&OD(d,c);var h=c[19];null!==h&&h.detachView(l)}}}function rb(l,c,d){return function(l,c,d){for(var h=c;null!==h&&40&h.type;)h=(c=h).parent;if(null===h)return d[0];if(2&h.flags){var y=l.data[h.directiveStart].encapsulation;if(y===Cn.None||y===Cn.Emulated)return null}return Mi(h,d)}(l,c.parent,d)}function Hu(l,c,d,h,y){St(l)?l.insertBefore(c,d,h,y):c.insertBefore(d,h,y)}function Ac(l,c,d){St(l)?l.appendChild(c,d):c.appendChild(d)}function Eh(l,c,d,h,y){null!==h?Hu(l,c,d,h,y):Ac(l,c,d)}function du(l,c){return St(l)?l.parentNode(c):c.parentNode}function ID(l,c,d){return Mh(l,c,d)}var Wv,Dh,Mh=function(l,c,d){return 40&l.type?Mi(l,d):null};function ab(l,c,d,h){var y=rb(l,h,c),M=c[11],W=ID(h.parent||c[6],h,c);if(null!=y)if(Array.isArray(d))for(var X=0;X<d.length;X++)Eh(M,y,d[X],W,!1);else Eh(M,y,d,W,!1)}function sb(l,c){if(null!==c){var d=c.type;if(3&d)return Mi(c,l);if(4&d)return ba(-1,l[c.index]);if(8&d){var h=c.child;if(null!==h)return sb(l,h);var y=l[c.index];return ho(y)?ba(-1,y):Vr(y)}if(32&d)return Th(c,l)()||Vr(l[c.index]);var W=VT(l,c);return null!==W?Array.isArray(W)?W[0]:sb(Pd(l[16]),W):sb(l,c.next)}return null}function VT(l,c){return null!==c?l[16][6].projection[c.projection]:null}function ba(l,c){var d=10+l+1;if(d<c.length){var h=c[d],y=h[1].firstChild;if(null!==y)return sb(h,y)}return c[7]}function Vu(l,c,d,h,y,M,H){for(;null!=d;){var W=h[d.index],X=d.type;if(H&&0===c&&(W&&Go(Vr(W),h),d.flags|=4),64!=(64&d.flags))if(8&X)Vu(l,c,d.child,h,y,M,!1),Id(c,l,y,W,M);else if(32&X){for(var me=Th(d,h),Pe=void 0;Pe=me();)Id(c,l,y,Pe,M);Id(c,l,y,W,M)}else 16&X?Ah(l,c,h,d,y,M):Id(c,l,y,W,M);d=H?d.projectionNext:d.next}}function Vp(l,c,d,h,y,M){Vu(d,h,l.firstChild,c,y,M,!1)}function RD(l,c,d){Ah(c[11],0,c,d,rb(l,d,c),ID(d.parent||c[6],d,c))}function Ah(l,c,d,h,y,M){var H=d[16],X=H[6].projection[h.projection];if(Array.isArray(X))for(var me=0;me<X.length;me++)Id(c,l,y,X[me],M);else Vu(l,c,X,H[3],y,M,!0)}function ub(l,c,d){St(l)?l.setAttribute(c,"style",d):c.style.cssText=d}function cb(l,c,d){St(l)?""===d?l.removeAttribute(c,"class"):l.setAttribute(c,"class",d):c.className=d}function Dc(l){var c;return(null===(c=function(){if(void 0===Wv&&(Wv=null,Rt.trustedTypes))try{Wv=Rt.trustedTypes.createPolicy("angular",{createHTML:function(c){return c},createScript:function(c){return c},createScriptURL:function(c){return c}})}catch(l){}return Wv}())||void 0===c?void 0:c.createHTML(l))||l}function Gv(l){var c;return(null===(c=function(){if(void 0===Dh&&(Dh=null,Rt.trustedTypes))try{Dh=Rt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(c){return c},createScript:function(c){return c},createScriptURL:function(c){return c}})}catch(l){}return Dh}())||void 0===c?void 0:c.createHTML(l))||l}var qu=function(){function l(c){(0,A.Z)(this,l),this.changingThisBreaksApplicationSecurity=c}return(0,D.Z)(l,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),l}(),qp=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(){return(0,A.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"HTML"}}]),d}(qu),Ca=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(){return(0,A.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"Style"}}]),d}(qu),jp=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(){return(0,A.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"Script"}}]),d}(qu),jT=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(){return(0,A.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"URL"}}]),d}(qu),Dl=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(){return(0,A.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),d}(qu);function Ps(l){return l instanceof qu?l.changingThisBreaksApplicationSecurity:l}function Oc(l,c){var d=Yv(l);if(null!=d&&d!==c){if("ResourceURL"===d&&"URL"===c)return!0;throw new Error("Required a safe ".concat(c,", got a ").concat(d," (see https://g.co/ng/security#xss)"))}return d===c}function Yv(l){return l instanceof qu&&l.getTypeName()||null}function mb(l){return new qp(l)}function Nd(l){return new Ca(l)}function vb(l){return new jp(l)}function gb(l){return new jT(l)}function Jv(l){return new Dl(l)}var _b=function(){function l(c){(0,A.Z)(this,l),this.inertDocumentHelper=c}return(0,D.Z)(l,[{key:"getInertBodyElement",value:function(d){d="<body><remove></remove>"+d;try{var h=(new window.DOMParser).parseFromString(Dc(d),"text/html").body;return null===h?this.inertDocumentHelper.getInertBodyElement(d):(h.removeChild(h.firstChild),h)}catch(y){return null}}}]),l}(),Qv=function(){function l(c){if((0,A.Z)(this,l),this.defaultDoc=c,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var d=this.inertDocument.createElement("html");this.inertDocument.appendChild(d);var h=this.inertDocument.createElement("body");d.appendChild(h)}}return(0,D.Z)(l,[{key:"getInertBodyElement",value:function(d){var h=this.inertDocument.createElement("template");if("content"in h)return h.innerHTML=Dc(d),h;var y=this.inertDocument.createElement("body");return y.innerHTML=Dc(d),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}},{key:"stripCustomNsAttrs",value:function(d){for(var h=d.attributes,y=h.length-1;0<y;y--){var H=h.item(y).name;("xmlns:ns1"===H||0===H.indexOf("ns1:"))&&d.removeAttribute(H)}for(var W=d.firstChild;W;)W.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(W),W=W.nextSibling}}]),l}(),Kv=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ja=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ms(l){return(l=String(l)).match(Kv)||l.match(ja)?l:"unsafe:"+l}function Zd(l){return(l=String(l)).split(",").map(function(c){return ms(c.trim())}).join(", ")}function Js(l){var h,c={},d=(0,b.Z)(l.split(","));try{for(d.s();!(h=d.n()).done;)c[h.value]=!0}catch(M){d.e(M)}finally{d.f()}return c}function Ld(){for(var l={},c=arguments.length,d=new Array(c),h=0;h<c;h++)d[h]=arguments[h];for(var y=0,M=d;y<M.length;y++){var H=M[y];for(var W in H)H.hasOwnProperty(W)&&(l[W]=!0)}return l}var $v,Ph=Js("area,br,col,hr,img,wbr"),Ih=Js("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),zp=Js("rp,rt"),Ol=Ld(zp,Ih),bb=Ld(Ph,Ld(Ih,Js("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ld(zp,Js("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ol),Xv=Js("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Cb=Js("srcset"),Wp=Ld(Xv,Cb,Js("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Js("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),WT=Js("script,style,template"),UD=function(){function l(){(0,A.Z)(this,l),this.sanitizedSomething=!1,this.buf=[]}return(0,D.Z)(l,[{key:"sanitizeChildren",value:function(d){for(var h=d.firstChild,y=!0;h;)if(h.nodeType===Node.ELEMENT_NODE?y=this.startElement(h):h.nodeType===Node.TEXT_NODE?this.chars(h.nodeValue):this.sanitizedSomething=!0,y&&h.firstChild)h=h.firstChild;else for(;h;){h.nodeType===Node.ELEMENT_NODE&&this.endElement(h);var M=this.checkClobberedElement(h,h.nextSibling);if(M){h=M;break}h=this.checkClobberedElement(h,h.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(d){var h=d.nodeName.toLowerCase();if(!bb.hasOwnProperty(h))return this.sanitizedSomething=!0,!WT.hasOwnProperty(h);this.buf.push("<"),this.buf.push(h);for(var y=d.attributes,M=0;M<y.length;M++){var H=y.item(M),W=H.name,X=W.toLowerCase();if(Wp.hasOwnProperty(X)){var me=H.value;Xv[X]&&(me=ms(me)),Cb[X]&&(me=Zd(me)),this.buf.push(" ",W,'="',Pc(me),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(d){var h=d.nodeName.toLowerCase();bb.hasOwnProperty(h)&&!Ph.hasOwnProperty(h)&&(this.buf.push("</"),this.buf.push(h),this.buf.push(">"))}},{key:"chars",value:function(d){this.buf.push(Pc(d))}},{key:"checkClobberedElement",value:function(d,h){if(h&&(d.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(d.outerHTML));return h}}]),l}(),GT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ir=/([^\#-~ |!])/g;function Pc(l){return l.replace(/&/g,"&").replace(GT,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(Ir,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function Tb(l,c){var d=null;try{$v=$v||function(l){var c=new Qv(l);return function(){try{return!!(new window.DOMParser).parseFromString(Dc(""),"text/html")}catch(l){return!1}}()?new _b(c):c}(l);var h=c?String(c):"";d=$v.getInertBodyElement(h);var y=5,M=h;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,h=M,M=d.innerHTML,d=$v.getInertBodyElement(h)}while(h!==M);return Dc((new UD).sanitizeChildren(Rh(d)||d))}finally{if(d)for(var X=Rh(d)||d;X.firstChild;)X.removeChild(X.firstChild)}}function Rh(l){return"content"in l&&function(l){return l.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===l.nodeName}(l)?l.content:null}var Fd=function(l){return l[l.NONE=0]="NONE",l[l.HTML=1]="HTML",l[l.STYLE=2]="STYLE",l[l.SCRIPT=3]="SCRIPT",l[l.URL=4]="URL",l[l.RESOURCE_URL=5]="RESOURCE_URL",l}({});function YT(l){var c=Nh();return c?Gv(c.sanitize(Fd.HTML,l)||""):Oc(l,"HTML")?Gv(Ps(l)):Tb(Re(),be(l))}function eg(l){var c=Nh();return c?c.sanitize(Fd.STYLE,l)||"":Oc(l,"Style")?Ps(l):be(l)}function Gp(l){var c=Nh();return c?c.sanitize(Fd.URL,l)||"":Oc(l,"URL")?Ps(l):ms(be(l))}function Nh(){var l=Se();return l&&l[12]}function ng(l){return l.ngOriginalError}function Yp(l){for(var c=arguments.length,d=new Array(c>1?c-1:0),h=1;h<c;h++)d[h-1]=arguments[h];l.error.apply(l,d)}var Jp=function(){function l(){(0,A.Z)(this,l),this._console=console}return(0,D.Z)(l,[{key:"handleError",value:function(d){var h=this._findOriginalError(d),y=this._findContext(d),M=function(l){return l&&l.ngErrorLogger||Yp}(d);M(this._console,"ERROR",d),h&&M(this._console,"ORIGINAL ERROR",h),y&&M(this._console,"ERROR CONTEXT",y)}},{key:"_findContext",value:function(d){return d?function(l){return l.ngDebugContext}(d)||this._findContext(ng(d)):null}},{key:"_findOriginalError",value:function(d){for(var h=d&&ng(d);h&&ng(h);)h=ng(h);return h||null}}]),l}(),ex=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Rt)}();function tx(l){return l.ownerDocument.defaultView}function Ic(l){return l.ownerDocument}function Pl(l){return l instanceof Function?l():l}function ix(l,c,d){for(var h=l.length;;){var y=l.indexOf(c,d);if(-1===y)return y;if(0===y||l.charCodeAt(y-1)<=32){var M=c.length;if(y+M===h||l.charCodeAt(y+M)<=32)return y}d=y+1}}var ox="ng-template";function JD(l,c,d){for(var h=0;h<l.length;){var y=l[h++];if(d&&"class"===y){if(-1!==ix((y=l[h]).toLowerCase(),c,0))return!0}else if(1===y){for(;h<l.length&&"string"==typeof(y=l[h++]);)if(y.toLowerCase()===c)return!0;return!1}}return!1}function og(l){return 4===l.type&&l.value!==ox}function QD(l,c,d){return c===(4!==l.type||d?l.value:ox)}function KD(l,c,d){for(var h=4,y=l.attrs||[],M=function(l){for(var c=0;c<l.length;c++)if(Rp(l[c]))return c;return l.length}(y),H=!1,W=0;W<c.length;W++){var X=c[W];if("number"!=typeof X){if(!H)if(4&h){if(h=2|1&h,""!==X&&!QD(l,X,d)||""===X&&1===c.length){if(Il(h))return!1;H=!0}}else{var me=8&h?X:c[++W];if(8&h&&null!==l.attrs){if(!JD(l.attrs,me,d)){if(Il(h))return!1;H=!0}continue}var Xe=XD(8&h?"class":X,y,og(l),d);if(-1===Xe){if(Il(h))return!1;H=!0;continue}if(""!==me){var Qe;Qe=Xe>M?"":y[Xe+1].toLowerCase();var mt=8&h?Qe:null;if(mt&&-1!==ix(mt,me,0)||2&h&&me!==Qe){if(Il(h))return!1;H=!0}}}}else{if(!H&&!Il(h)&&!Il(X))return!1;if(H&&Il(X))continue;H=!1,h=X|1&h}}return Il(h)||H}function Il(l){return 0==(1&l)}function XD(l,c,d,h){if(null===c)return-1;var y=0;if(h||!d){for(var M=!1;y<c.length;){var H=c[y];if(H===l)return y;if(3===H||6===H)M=!0;else{if(1===H||2===H){for(var W=c[++y];"string"==typeof W;)W=c[++y];continue}if(4===H)break;if(0===H){y+=4;continue}}y+=M?1:2}return-1}return function(l,c){var d=l.indexOf(4);if(d>-1)for(d++;d<l.length;){var h=l[d];if("number"==typeof h)return-1;if(h===c)return d;d++}return-1}(c,l)}function ax(l,c){for(var d=arguments.length>2&&void 0!==arguments[2]&&arguments[2],h=0;h<c.length;h++)if(KD(l,c[h],d))return!0;return!1}function lx(l,c){e:for(var d=0;d<c.length;d++){var h=c[d];if(l.length===h.length){for(var y=0;y<l.length;y++)if(l[y]!==h[y])continue e;return!0}}return!1}function ux(l,c){return l?":not("+c.trim()+")":c}function eO(l){for(var c=l[0],d=1,h=2,y="",M=!1;d<l.length;){var H=l[d];if("string"==typeof H)if(2&h){var W=l[++d];y+="["+H+(W.length>0?'="'+W+'"':"")+"]"}else 8&h?y+="."+H:4&h&&(y+=" "+H);else""!==y&&!Il(H)&&(c+=ux(M,y),y=""),h=H,M=M||!Il(h);d++}return""!==y&&(c+=ux(M,y)),c}var qr={};function tO(l){nO(ge(),Se(),Do()+l,Dn())}function nO(l,c,d,h){if(!h)if(3==(3&c[2])){var M=l.preOrderCheckHooks;null!==M&&Ru(c,M,d)}else{var H=l.preOrderHooks;null!==H&&Cc(c,H,0,d)}hs(d)}function Db(l,c){return l<<17|c<<2}function Rl(l){return l>>17&32767}function cx(l){return 2|l}function Nc(l){return(131068&l)>>2}function dx(l,c){return-131069&l|c<<2}function px(l){return 1|l}function yx(l,c){var d=l.contentQueries;if(null!==d)for(var h=0;h<d.length;h+=2){var M=d[h+1];if(-1!==M){var H=l.data[M];Ue(d[h]),H.contentQueries(2,c[M],M)}}}function Fh(l,c,d,h,y,M,H,W,X,me){var Pe=c.blueprint.slice();return Pe[0]=y,Pe[2]=140|h,yc(Pe),Pe[3]=Pe[15]=l,Pe[8]=d,Pe[10]=H||l&&l[10],Pe[11]=W||l&&l[11],Pe[12]=X||l&&l[12]||null,Pe[9]=me||l&&l[9]||null,Pe[6]=M,Pe[16]=2==c.type?l[16]:Pe,Pe}function Kp(l,c,d,h,y){var M=l.data[c];if(null===M)M=function(l,c,d,h,y){var M=ke(),H=wt(),X=l.data[c]=function(l,c,d,h,y,M){return{type:d,index:h,insertBeforeIndex:null,injectorIndex:c?c.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:y,attrs:M,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:c,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,H?M:M&&M.parent,d,c,h,y);return null===l.firstChild&&(l.firstChild=X),null!==M&&(H?null==M.child&&null!==X.parent&&(M.child=X):null===M.next&&(M.next=X)),X}(l,c,d,h,y),Mr.lFrame.inI18n&&(M.flags|=64);else if(64&M.type){M.type=d,M.value=h,M.attrs=y;var H=function(){var l=Mr.lFrame,c=l.currentTNode;return l.isParent?c:c.parent}();M.injectorIndex=null===H?-1:H.injectorIndex}return lt(M,!0),M}function Xp(l,c,d,h){if(0===d)return-1;for(var y=c.length,M=0;M<d;M++)c.push(h),l.blueprint.push(h),l.data.push(null);return y}function $p(l,c,d){Tt(c);try{var h=l.viewQuery;null!==h&&dg(1,h,d);var y=l.template;null!==y&&fu(l,c,y,1,d),l.firstCreatePass&&(l.firstCreatePass=!1),l.staticContentQueries&&yx(l,c),l.staticViewQueries&&dg(2,l.viewQuery,d);var M=l.components;null!==M&&function(l,c){for(var d=0;d<c.length;d++)cF(l,c[d])}(c,M)}catch(H){throw l.firstCreatePass&&(l.incompleteFirstPass=!0,l.firstCreatePass=!1),H}finally{c[2]&=-5,ea()}}function ef(l,c,d,h){var y=c[2];if(256!=(256&y)){Tt(c);var M=Dn();try{yc(c),function(l){Mr.lFrame.bindingIndex=l}(l.bindingStartIndex),null!==d&&fu(l,c,d,2,h);var H=3==(3&y);if(!M)if(H){var W=l.preOrderCheckHooks;null!==W&&Ru(c,W,null)}else{var X=l.preOrderHooks;null!==X&&Cc(c,X,0,null),Oo(c,0)}if(function(l){for(var c=Xy(l);null!==c;c=wh(c))if(c[2])for(var d=c[9],h=0;h<d.length;h++){var y=d[h];0==(1024&y[2])&&Tl(y[3],1),y[2]|=1024}}(c),function(l){for(var c=Xy(l);null!==c;c=wh(c))for(var d=10;d<c.length;d++){var h=c[d],y=h[1];kp(h)&&ef(y,h,y.template,h[8])}}(c),null!==l.contentQueries&&yx(l,c),!M)if(H){var me=l.contentCheckHooks;null!==me&&Ru(c,me)}else{var Pe=l.contentHooks;null!==Pe&&Cc(c,Pe,1),Oo(c,1)}!function(l,c){var d=l.hostBindingOpCodes;if(null!==d)try{for(var h=0;h<d.length;h++){var y=d[h];if(y<0)hs(~y);else{var M=y,H=d[++h],W=d[++h];oi(H,M),W(2,c[M])}}}finally{hs(-1)}}(l,c);var Xe=l.components;null!==Xe&&function(l,c){for(var d=0;d<c.length;d++)yO(l,c[d])}(c,Xe);var Qe=l.viewQuery;if(null!==Qe&&dg(2,Qe,h),!M)if(H){var mt=l.viewCheckHooks;null!==mt&&Ru(c,mt)}else{var Mt=l.viewHooks;null!==Mt&&Cc(c,Mt,2),Oo(c,2)}!0===l.firstUpdatePass&&(l.firstUpdatePass=!1),M||(c[2]&=-73),1024&c[2]&&(c[2]&=-1025,Tl(c[3],-1))}finally{ea()}}}function Hb(l,c,d,h){var y=c[10],M=!Dn(),H=Ms(c);try{M&&!H&&y.begin&&y.begin(),H&&$p(l,c,h),ef(l,c,d,h)}finally{M&&!H&&y.end&&y.end()}}function fu(l,c,d,h,y){var M=Do(),H=2&h;try{hs(-1),H&&c.length>20&&nO(l,c,20,Dn()),d(h,y)}finally{hs(M)}}function cg(l,c,d){if(pa(c))for(var y=c.directiveEnd,M=c.directiveStart;M<y;M++){var H=l.data[M];H.contentQueries&&H.contentQueries(1,d[M],M)}}function Vb(l,c,d){!md()||(function(l,c,d,h){var y=d.directiveStart,M=d.directiveEnd;l.firstCreatePass||hh(d,c),Go(h,c);for(var H=d.initialInputs,W=y;W<M;W++){var X=l.data[W],me=Fi(X);me&&gO(c,d,X);var Pe=Nu(c,l,W,d);Go(Pe,c),null!==H&&kx(0,W-y,Pe,X,0,H),me&&(ya(d.index,c)[8]=Pe)}}(l,c,d,Mi(d,c)),128==(128&d.flags)&&function(l,c,d){var h=d.directiveStart,y=d.directiveEnd,H=d.index,W=Mr.lFrame.currentDirectiveIndex;try{hs(H);for(var X=h;X<y;X++){var me=l.data[X],Pe=c[X];Be(X),(null!==me.hostBindings||0!==me.hostVars||null!==me.hostAttrs)&&wx(me,Pe)}}finally{hs(-1),Be(W)}}(l,c,d))}function qb(l,c){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mi,h=c.localNames;if(null!==h)for(var y=c.index+1,M=0;M<h.length;M+=2){var H=h[M+1],W=-1===H?d(c,l):l[H];l[y++]=W}}function jb(l){var c=l.tView;return null===c||c.incompleteFirstPass?l.tView=Bh(1,null,l.template,l.decls,l.vars,l.directiveDefs,l.pipeDefs,l.viewQuery,l.schemas,l.consts):c}function Bh(l,c,d,h,y,M,H,W,X,me){var Pe=20+h,Xe=Pe+y,Qe=function(l,c){for(var d=[],h=0;h<c;h++)d.push(h<l?null:qr);return d}(Pe,Xe),mt="function"==typeof me?me():me;return Qe[1]={type:l,blueprint:Qe,template:d,queries:null,viewQuery:W,declTNode:c,data:Qe.slice().fill(null,Pe),bindingStartIndex:Pe,expandoStartIndex:Xe,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof M?M():M,pipeRegistry:"function"==typeof H?H():H,firstChild:null,schemas:X,consts:mt,incompleteFirstPass:!1}}function bx(l,c,d,h){var y=Ox(c);null===d?y.push(h):(y.push(d),l.firstCreatePass&&Px(l).push(h,y.length-1))}function Cx(l,c,d){for(var h in l)if(l.hasOwnProperty(h)){var y=l[h];(d=null===d?{}:d).hasOwnProperty(h)?d[h].push(c,y):d[h]=[c,y]}return d}function Rs(l,c,d,h,y,M,H,W){var Pe,X=Mi(c,d),me=c.inputs;!W&&null!=me&&(Pe=me[h])?(Rx(l,d,Pe,h,y),xi(c)&&function(l,c){var d=ya(c,l);16&d[2]||(d[2]|=64)}(d,c.index)):3&c.type&&(h=function(l){return"class"===l?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l}(h),y=null!=H?H(y,c.value||"",h):y,St(M)?M.setProperty(X,h,y):uT(h)||(X.setProperty?X.setProperty(h,y):X[h]=y))}function Jb(l,c,d,h){var y=!1;if(md()){var M=function(l,c,d){var h=l.directiveRegistry,y=null;if(h)for(var M=0;M<h.length;M++){var H=h[M];ax(d,H.selectors,!1)&&(y||(y=[]),Mv(hh(d,c),l,H.type),Fi(H)?(mO(l,d),y.unshift(H)):y.push(H))}return y}(l,c,d),H=null===h?null:{"":-1};if(null!==M){y=!0,vO(d,l.data.length,M.length);for(var W=0;W<M.length;W++){var X=M[W];X.providersResolver&&X.providersResolver(X)}for(var me=!1,Pe=!1,Xe=Xp(l,c,M.length,null),Qe=0;Qe<M.length;Qe++){var mt=M[Qe];d.mergedAttrs=Iy(d.mergedAttrs,mt.hostAttrs),Qb(l,d,c,Xe,mt),aF(Xe,mt,H),null!==mt.contentQueries&&(d.flags|=8),(null!==mt.hostBindings||null!==mt.hostAttrs||0!==mt.hostVars)&&(d.flags|=128);var Mt=mt.type.prototype;!me&&(Mt.ngOnChanges||Mt.ngOnInit||Mt.ngDoCheck)&&((l.preOrderHooks||(l.preOrderHooks=[])).push(d.index),me=!0),!Pe&&(Mt.ngOnChanges||Mt.ngDoCheck)&&((l.preOrderCheckHooks||(l.preOrderCheckHooks=[])).push(d.index),Pe=!0),Xe++}!function(l,c){for(var h=c.directiveEnd,y=l.data,M=c.attrs,H=[],W=null,X=null,me=c.directiveStart;me<h;me++){var Pe=y[me],Xe=Pe.inputs,Qe=null===M||og(c)?null:hu(Xe,M);H.push(Qe),W=Cx(Xe,me,W),X=Cx(Pe.outputs,me,X)}null!==W&&(W.hasOwnProperty("class")&&(c.flags|=16),W.hasOwnProperty("style")&&(c.flags|=32)),c.initialInputs=H,c.inputs=W,c.outputs=X}(l,d)}H&&function(l,c,d){if(c)for(var h=l.localNames=[],y=0;y<c.length;y+=2){var M=d[c[y+1]];if(null==M)throw new le("301","Export of name '".concat(c[y+1],"' not found!"));h.push(c[y],M)}}(d,h,H)}return d.mergedAttrs=Iy(d.mergedAttrs,d.attrs),y}function fO(l,c,d,h,y,M){var H=M.hostBindings;if(H){var W=l.hostBindingOpCodes;null===W&&(W=l.hostBindingOpCodes=[]);var X=~c.index;(function(l){for(var c=l.length;c>0;){var d=l[--c];if("number"==typeof d&&d<0)return d}return 0})(W)!=X&&W.push(X),W.push(h,y,H)}}function wx(l,c){null!==l.hostBindings&&l.hostBindings(1,c)}function mO(l,c){c.flags|=2,(l.components||(l.components=[])).push(c.index)}function aF(l,c,d){if(d){if(c.exportAs)for(var h=0;h<c.exportAs.length;h++)d[c.exportAs[h]]=l;Fi(c)&&(d[""]=l)}}function vO(l,c,d){l.flags|=1,l.directiveStart=c,l.directiveEnd=c+d,l.providerIndexes=c}function Qb(l,c,d,h,y){l.data[h]=y;var M=y.factory||(y.factory=Ka(y.type)),H=new Xi(M,Fi(y),null);l.blueprint[h]=H,d[h]=H,fO(l,c,0,h,Xp(l,d,y.hostVars,qr),y)}function gO(l,c,d){var h=Mi(c,l),y=jb(d),M=l[10],H=Kb(l,Fh(l,y,null,d.onPush?64:16,h,c,M,M.createRenderer(h,d),null,null));l[c.index]=H}function zu(l,c,d,h,y,M){var H=Mi(l,c);!function(l,c,d,h,y,M,H){if(null==M)St(l)?l.removeAttribute(c,y,d):c.removeAttribute(y);else{var W=null==H?be(M):H(M,h||"",y);St(l)?l.setAttribute(c,y,W,d):d?c.setAttributeNS(d,y,W):c.setAttribute(y,W)}}(c[11],H,M,l.value,d,h,y)}function kx(l,c,d,h,y,M){var H=M[c];if(null!==H)for(var W=h.setInput,X=0;X<H.length;){var me=H[X++],Pe=H[X++],Xe=H[X++];null!==W?h.setInput(d,Xe,me,Pe):d[Pe]=Xe}}function hu(l,c){for(var d=null,h=0;h<c.length;){var y=c[h];if(0!==y)if(5!==y){if("number"==typeof y)break;l.hasOwnProperty(y)&&(null===d&&(d=[]),d.push(y,l[y],c[h+1])),h+=2}else h+=2;else h+=4}return d}function _O(l,c,d,h){return new Array(l,!0,!1,c,null,0,h,d,null,null)}function yO(l,c){var d=ya(c,l);if(kp(d)){var h=d[1];80&d[2]?ef(h,d,h.template,d[8]):d[5]>0&&Mx(d)}}function Mx(l){for(var c=Xy(l);null!==c;c=wh(c))for(var d=10;d<c.length;d++){var h=c[d];if(1024&h[2]){var y=h[1];ef(y,h,y.template,h[8])}else h[5]>0&&Mx(h)}var H=l[1].components;if(null!==H)for(var W=0;W<H.length;W++){var X=ya(H[W],l);kp(X)&&X[5]>0&&Mx(X)}}function cF(l,c){var d=ya(c,l),h=d[1];(function(l,c){for(var d=c.length;d<l.blueprint.length;d++)c.push(l.blueprint[d])})(h,d),$p(h,d,d[8])}function Kb(l,c){return l[13]?l[14][4]=c:l[13]=c,l[14]=c,c}function Ax(l){for(;l;){l[2]|=64;var c=Pd(l);if(fa(l)&&!c)return l;l=c}return null}function Xb(l,c,d){var h=c[10];h.begin&&h.begin();try{ef(l,c,l.template,d)}catch(y){throw Ix(c,y),y}finally{h.end&&h.end()}}function bO(l){!function(l){for(var c=0;c<l.components.length;c++){var d=l.components[c],h=lu(d),y=h[1];Hb(y,h,y.template,d)}}(l[8])}function dg(l,c,d){Ue(0),c(l,d)}var SO=function(){return Promise.resolve(null)}();function Ox(l){return l[7]||(l[7]=[])}function Px(l){return l.cleanup||(l.cleanup=[])}function $b(l,c,d){return(null===l||Fi(l))&&(d=function(l){for(;Array.isArray(l);){if("object"==typeof l[1])return l;l=l[0]}return null}(d[c.index])),d[11]}function Ix(l,c){var d=l[9],h=d?d.get(Jp,null):null;h&&h.handleError(c)}function Rx(l,c,d,h,y){for(var M=0;M<d.length;){var H=d[M++],W=d[M++],X=c[H],me=l.data[H];null!==me.setInput?me.setInput(X,y,h,W):X[W]=y}}function Wu(l,c,d){var h=li(c,l);!function(l,c,d){St(l)?l.setValue(c,d):c.textContent=d}(l[11],h,d)}function pg(l,c,d){var h=d?l.styles:null,y=d?l.classes:null,M=0;if(null!==c)for(var H=0;H<c.length;H++){var W=c[H];"number"==typeof W?M=W:1==M?y=J(y,W):2==M&&(h=J(h,W+": "+c[++H]+";"))}d?l.styles=h:l.stylesWithoutHost=h,d?l.classes=y:l.classesWithoutHost=y}var tf=new No("INJECTOR",-1),fg=function(){function l(){(0,A.Z)(this,l)}return(0,D.Z)(l,[{key:"get",value:function(d){var h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yh;if(h===yh){var y=new Error("NullInjectorError: No provider for ".concat(j(d),"!"));throw y.name="NullInjectorError",y}return h}}]),l}(),Ks=new No("Set Injector scope."),Hh={},xO={},t0=void 0;function Nx(){return void 0===t0&&(t0=new fg),t0}function Zx(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,h=arguments.length>3?arguments[3]:void 0;return new EO(l,d,c||Nx(),h)}var EO=function(){function l(c,d,h){var y=this,M=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,A.Z)(this,l),this.parent=h,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var H=[];d&&Os(d,function(X){return y.processProvider(X,c,d)}),Os([c],function(X){return y.processInjectorType(X,[],H)}),this.records.set(tf,nf(void 0,this));var W=this.records.get(Ks);this.scope=null!=W?W.value:null,this.source=M||("object"==typeof c?null:j(c))}return(0,D.Z)(l,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(d){return d.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(d){var h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yh,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ft.Default;this.assertNotDestroyed();var M=Fv(this),H=Jt(void 0);try{if(!(y&ft.SkipSelf)){var W=this.records.get(d);if(void 0===W){var X=yF(d)&&wn(d);W=X&&this.injectableDefInScope(X)?nf(n0(d),Hh):null,this.records.set(d,W)}if(null!=W)return this.hydrate(d,W)}var me=y&ft.Self?Nx():this.parent;return me.get(d,h=y&ft.Optional&&h===yh?null:h)}catch(Xe){if("NullInjectorError"===Xe.name){var Pe=Xe[wd]=Xe[wd]||[];if(Pe.unshift(j(d)),M)throw Xe;return kT(Xe,d,"R3InjectorError",this.source)}throw Xe}finally{Jt(H),Fv(M)}}},{key:"_resolveInjectorDefTypes",value:function(){var d=this;this.injectorDefTypes.forEach(function(h){return d.get(h)})}},{key:"toString",value:function(){var d=[];return this.records.forEach(function(y,M){return d.push(j(M))}),"R3Injector[".concat(d.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(d,h,y){var M=this;if(!(d=ae(d)))return!1;var H=ve(d),W=null==H&&d.ngModule||void 0,X=void 0===W?d:W,Xe=-1!==y.indexOf(X);if(void 0!==W&&(H=ve(W)),null==H)return!1;if(null!=H.imports&&!Xe){var Qe;y.push(X);try{Os(H.imports,function(_n){M.processInjectorType(_n,h,y)&&(void 0===Qe&&(Qe=[]),Qe.push(_n))})}finally{}if(void 0!==Qe)for(var mt=function(Kn){var Lr=Qe[Kn],ei=Lr.ngModule,Di=Lr.providers;Os(Di,function(_o){return M.processProvider(_o,ei,Di||he)})},Mt=0;Mt<Qe.length;Mt++)mt(Mt)}this.injectorDefTypes.add(X);var zt=Ka(X)||function(){return new X};this.records.set(X,nf(zt,Hh));var hn=H.providers;if(null!=hn&&!Xe){var En=d;Os(hn,function(_n){return M.processProvider(_n,En,hn)})}return void 0!==W&&void 0!==d.providers}},{key:"processProvider",value:function(d,h,y){var M=Vh(d=ae(d))?d:ae(d&&d.provide),H=function(l,c,d){return Lx(l)?nf(void 0,l.useValue):nf(za(l),Hh)}(d);if(Vh(d)||!0!==d.multi)this.records.get(M);else{var W=this.records.get(M);W||((W=nf(void 0,Hh,!0)).factory=function(){return kd(W.multi)},this.records.set(M,W)),M=d,W.multi.push(d)}this.records.set(M,H)}},{key:"hydrate",value:function(d,h){return h.value===Hh&&(h.value=xO,h.value=h.factory()),"object"==typeof h.value&&h.value&&function(l){return null!==l&&"object"==typeof l&&"function"==typeof l.ngOnDestroy}(h.value)&&this.onDestroy.add(h.value),h.value}},{key:"injectableDefInScope",value:function(d){if(!d.providedIn)return!1;var h=ae(d.providedIn);return"string"==typeof h?"any"===h||h===this.scope:this.injectorDefTypes.has(h)}}]),l}();function n0(l){var c=wn(l),d=null!==c?c.factory:Ka(l);if(null!==d)return d;if(l instanceof No)throw new Error("Token ".concat(j(l)," is missing a \u0275prov definition."));if(l instanceof Function)return function(l){var c=l.length;if(c>0){var d=wc(c,"?");throw new Error("Can't resolve all parameters for ".concat(j(l),": (").concat(d.join(", "),")."))}var h=function(l){var c=l&&(l[ye]||l[we]);if(c){var d=function(l){if(l.hasOwnProperty("name"))return l.name;var c=(""+l).match(/^function\s*([^\s(]+)/);return null===c?"":c[1]}(l);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(d,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(d,'" class.')),c}return null}(l);return null!==h?function(){return h.factory(l)}:function(){return new l}}(l);throw new Error("unreachable")}function za(l,c,d){var h=void 0;if(Vh(l)){var y=ae(l);return Ka(y)||n0(y)}if(Lx(l))h=function(){return ae(l.useValue)};else if(function(l){return!(!l||!l.useFactory)}(l))h=function(){return l.useFactory.apply(l,(0,_.Z)(kd(l.deps||[])))};else if(function(l){return!(!l||!l.useExisting)}(l))h=function(){return Wo(ae(l.useExisting))};else{var M=ae(l&&(l.useClass||l.provide));if(!function(l){return!!l.deps}(l))return Ka(M)||n0(M);h=function(){return(0,I.Z)(M,(0,_.Z)(kd(l.deps)))}}return h}function nf(l,c){var d=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:l,value:c,multi:d?[]:void 0}}function Lx(l){return null!==l&&"object"==typeof l&&Lv in l}function Vh(l){return"function"==typeof l}function yF(l){return"function"==typeof l||"object"==typeof l&&l instanceof No}var MO=function(l,c,d){return function(l){var y=Zx(l,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return y._resolveInjectorDefTypes(),y}({name:d},c,l,d)},Ia=function(){var l=function(){function c(){(0,A.Z)(this,c)}return(0,D.Z)(c,null,[{key:"create",value:function(h,y){return Array.isArray(h)?MO(h,y,""):MO(h.providers,h.parent,h.name||"")}}]),c}();return l.THROW_IF_NOT_FOUND=yh,l.NULL=new fg,l.\u0275prov=Rn({token:l,providedIn:"any",factory:function(){return Wo(tf)}}),l.__NG_ELEMENT_ID__=-1,l}();function u0(l,c){jo(lu(l)[1],ne())}function c0(l){for(var c=function(l){return Object.getPrototypeOf(l.prototype).constructor}(l.type),d=!0,h=[l];c;){var y=void 0;if(Fi(l))y=c.\u0275cmp||c.\u0275dir;else{if(c.\u0275cmp)throw new Error("Directives cannot inherit Components");y=c.\u0275dir}if(y){if(d){h.push(y);var M=l;M.inputs=p0(l.inputs),M.declaredInputs=p0(l.declaredInputs),M.outputs=p0(l.outputs);var H=y.hostBindings;H&&GO(l,H);var W=y.viewQuery,X=y.contentQueries;if(W&&zO(l,W),X&&WO(l,X),K(l.inputs,y.inputs),K(l.declaredInputs,y.declaredInputs),K(l.outputs,y.outputs),Fi(y)&&y.data.animation){var me=l.data;me.animation=(me.animation||[]).concat(y.data.animation)}}var Pe=y.features;if(Pe)for(var Xe=0;Xe<Pe.length;Xe++){var Qe=Pe[Xe];Qe&&Qe.ngInherit&&Qe(l),Qe===c0&&(d=!1)}}c=Object.getPrototypeOf(c)}!function(l){for(var c=0,d=null,h=l.length-1;h>=0;h--){var y=l[h];y.hostVars=c+=y.hostVars,y.hostAttrs=Iy(y.hostAttrs,d=Iy(d,y.hostAttrs))}}(h)}function p0(l){return l===rt?{}:l===he?[]:l}function zO(l,c){var d=l.viewQuery;l.viewQuery=d?function(h,y){c(h,y),d(h,y)}:c}function WO(l,c){var d=l.contentQueries;l.contentQueries=d?function(h,y,M){c(h,y,M),d(h,y,M)}:c}function GO(l,c){var d=l.hostBindings;l.hostBindings=d?function(h,y){c(h,y),d(h,y)}:c}var vg=null;function Gu(){if(!vg){var l=Rt.Symbol;if(l&&l.iterator)vg=l.iterator;else for(var c=Object.getOwnPropertyNames(Map.prototype),d=0;d<c.length;++d){var h=c[d];"entries"!==h&&"size"!==h&&Map.prototype[h]===Map.prototype.entries&&(vg=h)}}return vg}var Hd=function(){function l(c){(0,A.Z)(this,l),this.wrapped=c}return(0,D.Z)(l,null,[{key:"wrap",value:function(d){return new l(d)}},{key:"unwrap",value:function(d){return l.isWrapped(d)?d.wrapped:d}},{key:"isWrapped",value:function(d){return d instanceof l}}]),l}();function jh(l){return!!of(l)&&(Array.isArray(l)||!(l instanceof Map)&&Gu()in l)}function of(l){return null!==l&&("function"==typeof l||"object"==typeof l)}function Ll(l,c,d){return l[c]=d}function Wa(l,c,d){return!Object.is(l[c],d)&&(l[c]=d,!0)}function Vd(l,c,d,h){var y=Wa(l,c,d);return Wa(l,c+1,h)||y}function m0(l,c,d,h){var y=Se();return Wa(y,br(),c)&&(ge(),zu(oo(),y,l,c,d,h)),m0}function Uc(l,c,d,h){return Wa(l,br(),d)?c+be(d)+h:qr}function sf(l,c,d,h,y,M){var W=Vd(l,fr(),d,y);return wr(2),W?c+be(d)+h+be(y)+M:qr}function Hc(l,c,d,h,y,M,H,W){var me=function(l,c,d,h,y){var M=Vd(l,c,d,h);return Wa(l,c+2,y)||M}(l,fr(),d,y,H);return wr(3),me?c+be(d)+h+be(y)+M+be(H)+W:qr}function _g(l,c,d,h,y,M){var H=Se(),W=Uc(H,c,d,h);return W!==qr&&zu(oo(),H,l,W,y,M),_g}function yg(l,c,d,h,y,M,H,W){var X=Se(),me=sf(X,c,d,h,y,M);return me!==qr&&zu(oo(),X,l,me,H,W),yg}function Gx(l,c,d,h,y,M,H,W){var X=Se(),me=ge(),Pe=l+20,Xe=me.firstCreatePass?function(l,c,d,h,y,M,H,W,X){var me=c.consts,Pe=Kp(c,l,4,H||null,Ws(me,W));Jb(c,d,Pe,Ws(me,X)),jo(c,Pe);var Xe=Pe.tViews=Bh(2,Pe,h,y,M,c.directiveRegistry,c.pipeRegistry,null,c.schemas,me);return null!==c.queries&&(c.queries.template(c,Pe),Xe.queries=c.queries.embeddedTView(Pe)),Pe}(Pe,me,X,c,d,h,y,M,H):me.data[Pe];lt(Xe,!1);var Qe=X[11].createComment("");ab(me,X,Qe,Xe),Go(Qe,X),Kb(X,X[Pe]=_O(Qe,X,Qe,Xe)),So(Xe)&&Vb(me,X,Xe),null!=H&&qb(X,Xe,W)}function y0(l){return Xa(Mr.lFrame.contextLView,20+l)}function zh(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ft.Default,d=Se();if(null===d)return Wo(l,c);var h=ne();return Av(h,d,ae(l),c)}function Sg(l,c,d){var h=Se();return Wa(h,br(),c)&&Rs(ge(),oo(),h,l,c,h[11],d,!1),Sg}function w0(l,c,d,h,y){var H=y?"class":"style";Rx(l,d,c.inputs[H],H,h)}function E0(l,c,d,h){var y=Se(),M=ge(),H=20+l,W=y[11],X=y[H]=Rd(W,c,Mr.lFrame.currentNamespace),me=M.firstCreatePass?function(l,c,d,h,y,M,H){var W=c.consts,me=Kp(c,l,2,y,Ws(W,M));return Jb(c,d,me,Ws(W,H)),null!==me.attrs&&pg(me,me.attrs,!1),null!==me.mergedAttrs&&pg(me,me.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,me),me}(H,M,y,0,c,d,h):M.data[H];lt(me,!0);var Pe=me.mergedAttrs;null!==Pe&&Ys(W,X,Pe);var Xe=me.classes;null!==Xe&&cb(W,X,Xe);var Qe=me.styles;null!==Qe&&ub(W,X,Qe),64!=(64&me.flags)&&ab(M,y,X,me),0===Mr.lFrame.elementDepthCount&&Go(X,y),Mr.lFrame.elementDepthCount++,So(me)&&(Vb(M,y,me),cg(M,me,y)),null!==h&&qb(y,me)}function k0(){var l=ne();wt()?Zt():lt(l=l.parent,!1);var c=l;Mr.lFrame.elementDepthCount--;var d=ge();d.firstCreatePass&&(jo(d,l),pa(l)&&d.queries.elementEnd(l)),null!=c.classesWithoutHost&&function(l){return 0!=(16&l.flags)}(c)&&w0(d,c,Se(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function(l){return 0!=(32&l.flags)}(c)&&w0(d,c,Se(),c.stylesWithoutHost,!1)}function pf(l,c,d,h){E0(l,c,d,h),k0()}function Tg(l,c,d){var h=Se(),y=ge(),M=l+20,H=y.firstCreatePass?function(l,c,d,h,y){var M=c.consts,H=Ws(M,h),W=Kp(c,l,8,"ng-container",H);return null!==H&&pg(W,H,!0),Jb(c,d,W,Ws(M,y)),null!==c.queries&&c.queries.elementStart(c,W),W}(M,y,h,c,d):y.data[M];lt(H,!0);var W=h[M]=h[11].createComment("");ab(y,h,W,H),Go(W,h),So(H)&&(Vb(y,h,H),cg(y,H,h)),null!=d&&qb(h,H)}function Vc(){var l=ne(),c=ge();wt()?Zt():lt(l=l.parent,!1),c.firstCreatePass&&(jo(c,l),pa(l)&&c.queries.elementEnd(l))}function lw(l,c,d){Tg(l,c,d),Vc()}function uw(){return Se()}function M0(l){return!!l&&"function"==typeof l.then}function A0(l){return!!l&&"function"==typeof l.subscribe}var D0=A0;function O0(l,c,d,h){var y=Se(),M=ge(),H=ne();return Wh(M,y,y[11],H,l,c,!!d,h),O0}function P0(l,c){var d=ne(),h=Se(),y=ge();return Wh(y,h,$b(Ye(y.data),d,h),d,l,c,!1),P0}function Wh(l,c,d,h,y,M,H,W){var X=So(h),Pe=l.firstCreatePass&&Px(l),Xe=c[8],Qe=Ox(c),mt=!0;if(3&h.type||W){var Mt=Mi(h,c),zt=W?W(Mt):Mt,hn=Qe.length,En=W?function(sl){return W(Vr(sl[h.index]))}:h.index;if(St(d)){var _n=null;if(!W&&X&&(_n=function(l,c,d,h){var y=l.cleanup;if(null!=y)for(var M=0;M<y.length-1;M+=2){var H=y[M];if(H===d&&y[M+1]===h){var W=c[7],X=y[M+2];return W.length>X?W[X]:null}"string"==typeof H&&(M+=2)}return null}(l,c,y,h.index)),null!==_n)(_n.__ngLastListenerFn__||_n).__ngNextListenerFn__=M,_n.__ngLastListenerFn__=M,mt=!1;else{M=R0(h,c,Xe,M,!1);var Lr=d.listen(zt,y,M);Qe.push(M,Lr),Pe&&Pe.push(y,En,hn,hn+1)}}else M=R0(h,c,Xe,M,!0),zt.addEventListener(y,M,H),Qe.push(M),Pe&&Pe.push(y,En,hn,H)}else M=R0(h,c,Xe,M,!1);var Di,ei=h.outputs;if(mt&&null!==ei&&(Di=ei[y])){var _o=Di.length;if(_o)for(var Ni=0;Ni<_o;Ni+=2){var Jc=c[Di[Ni]][Di[Ni+1]].subscribe(M),jl=Qe.length;Qe.push(M,Jc),Pe&&Pe.push(y,h.index,jl,-(jl+1))}}}function I0(l,c,d,h){try{return!1!==d(h)}catch(y){return Ix(l,y),!1}}function R0(l,c,d,h,y){return function M(H){if(H===Function)return h;var W=2&l.flags?ya(l.index,c):c;0==(32&c[2])&&Ax(W);for(var X=I0(c,0,h,H),me=M.__ngNextListenerFn__;me;)X=I0(c,0,me,H)&&X,me=me.__ngNextListenerFn__;return y&&!1===X&&(H.preventDefault(),H.returnValue=!1),X}}function dw(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Da(l)}function TP(l,c){for(var d=null,h=function(l){var c=l.attrs;if(null!=c){var d=c.indexOf(5);if(0==(1&d))return c[d+1]}return null}(l),y=0;y<c.length;y++){var M=c[y];if("*"!==M){if(null===h?ax(l,M,!0):lx(h,M))return y}else d=y}return d}function xg(l){var c=Se()[16][6];if(!c.projection)for(var h=c.projection=wc(l?l.length:1,null),y=h.slice(),M=c.child;null!==M;){var H=l?TP(M,l):0;null!==H&&(y[H]?y[H].projectionNext=M:h[H]=M,y[H]=M),M=M.next}}function N0(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,d=arguments.length>2?arguments[2]:void 0,h=Se(),y=ge(),M=Kp(y,20+l,16,null,d||null);null===M.projection&&(M.projection=c),Zt(),64!=(64&M.flags)&&RD(y,h,M)}function Z0(l,c,d){return wg(l,"",c,"",d),Z0}function wg(l,c,d,h,y){var M=Se(),H=Uc(M,c,d,h);return H!==qr&&Rs(ge(),oo(),M,l,H,M[11],y,!1),wg}function L0(l,c,d,h,y,M,H){var W=Se(),X=sf(W,c,d,h,y,M);return X!==qr&&Rs(ge(),oo(),W,l,X,W[11],H,!1),L0}function hw(l,c,d,h,y){for(var M=l[d+1],H=null===c,W=h?Rl(M):Nc(M),X=!1;0!==W&&(!1===X||H);){var Pe=l[W+1];mw(l[W],c)&&(X=!0,l[W+1]=h?px(Pe):cx(Pe)),W=h?Rl(Pe):Nc(Pe)}X&&(l[d+1]=h?cx(M):px(M))}function mw(l,c){return null===l||null==c||(Array.isArray(l)?l[1]:l)===c||!(!Array.isArray(l)||"string"!=typeof c)&&Td(l,c)>=0}var Yo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function q0(l){return l.substring(Yo.key,Yo.keyEnd)}function vw(l){return l.substring(Yo.value,Yo.valueEnd)}function gw(l,c){var d=Yo.textEnd;return d===c?-1:(c=Yo.keyEnd=function(l,c,d){for(;c<d&&l.charCodeAt(c)>32;)c++;return c}(l,Yo.key=c,d),ff(l,c,d))}function yw(l,c){var d=Yo.textEnd,h=Yo.key=ff(l,c,d);return d===h?-1:(h=Yo.keyEnd=function(l,c,d){for(var h;c<d&&(45===(h=l.charCodeAt(c))||95===h||(-33&h)>=65&&(-33&h)<=90||h>=48&&h<=57);)c++;return c}(l,h,d),h=Sw(l,h,d),h=Yo.value=ff(l,h,d),h=Yo.valueEnd=function(l,c,d){for(var h=-1,y=-1,M=-1,H=c,W=H;H<d;){var X=l.charCodeAt(H++);if(59===X)return W;34===X||39===X?W=H=Tw(l,X,H,d):c===H-4&&85===M&&82===y&&76===h&&40===X?W=H=Tw(l,41,H,d):X>32&&(W=H),M=y,y=h,h=-33&X}return W}(l,h,d),Sw(l,h,d))}function bw(l){Yo.key=0,Yo.keyEnd=0,Yo.value=0,Yo.valueEnd=0,Yo.textEnd=l.length}function ff(l,c,d){for(;c<d&&l.charCodeAt(c)<=32;)c++;return c}function Sw(l,c,d,h){return(c=ff(l,c,d))<d&&c++,c}function Tw(l,c,d,h){for(var y=-1,M=d;M<h;){var H=l.charCodeAt(M++);if(H==c&&92!==y)return M;y=92==H&&92===y?0:H}throw new Error}function j0(l,c,d){return el(l,c,d,!1),j0}function Eg(l,c){return el(l,c,null,!0),Eg}function $s(l){tl(G0,xw,l,!1)}function xw(l,c){for(var d=function(l){return bw(l),yw(l,ff(l,0,Yo.textEnd))}(c);d>=0;d=yw(c,d))G0(l,q0(c),vw(c))}function z0(l){tl(es,Fl,l,!0)}function Fl(l,c){for(var d=function(l){return bw(l),gw(l,ff(l,0,Yo.textEnd))}(c);d>=0;d=gw(c,d))es(l,q0(c),!0)}function el(l,c,d,h){var y=Se(),M=ge(),H=wr(2);M.firstUpdatePass&&ww(M,l,H,h),c!==qr&&Wa(y,H,c)&&Y0(M,M.data[Do()],y,y[11],l,y[H+1]=function(l,c){return null==l||("string"==typeof c?l+=c:"object"==typeof l&&(l=j(Ps(l)))),l}(c,d),h,H)}function tl(l,c,d,h){var y=ge(),M=wr(2);y.firstUpdatePass&&ww(y,null,M,h);var H=Se();if(d!==qr&&Wa(H,M,d)){var W=y.data[Do()];if(kw(W,h)&&!W0(y,M)){var me=h?W.classesWithoutHost:W.stylesWithoutHost;null!==me&&(d=J(me,d||"")),w0(y,W,H,d,h)}else!function(l,c,d,h,y,M,H,W){y===qr&&(y=he);for(var X=0,me=0,Pe=0<y.length?y[0]:null,Xe=0<M.length?M[0]:null;null!==Pe||null!==Xe;){var Qe=X<y.length?y[X+1]:void 0,mt=me<M.length?M[me+1]:void 0,Mt=null,zt=void 0;Pe===Xe?(X+=2,me+=2,Qe!==mt&&(Mt=Xe,zt=mt)):null===Xe||null!==Pe&&Pe<Xe?(X+=2,Mt=Pe):(me+=2,Mt=Xe,zt=mt),null!==Mt&&Y0(l,c,d,h,Mt,zt,H,W),Pe=X<y.length?y[X]:null,Xe=me<M.length?M[me]:null}}(y,W,H,H[11],H[M+1],H[M+1]=function(l,c,d){if(null==d||""===d)return he;var h=[],y=Ps(d);if(Array.isArray(y))for(var M=0;M<y.length;M++)l(h,y[M],!0);else if("object"==typeof y)for(var H in y)y.hasOwnProperty(H)&&l(h,H,y[H]);else"string"==typeof y&&c(h,y);return h}(l,c,d),h,M)}}function W0(l,c){return c>=l.expandoStartIndex}function ww(l,c,d,h){var y=l.data;if(null===y[d+1]){var M=y[Do()],H=W0(l,d);kw(M,h)&&null===c&&!H&&(c=!1),c=function(l,c,d,h){var y=Ye(l),M=h?c.residualClasses:c.residualStyles;if(null===y)0===(h?c.classBindings:c.styleBindings)&&(d=vu(d=kg(null,l,c,d,h),c.attrs,h),M=null);else{var W=c.directiveStylingLast;if(-1===W||l[W]!==y)if(d=kg(y,l,c,d,h),null===M){var me=function(l,c,d){var h=d?c.classBindings:c.styleBindings;if(0!==Nc(h))return l[Rl(h)]}(l,c,h);void 0!==me&&Array.isArray(me)&&function(l,c,d,h){l[Rl(d?c.classBindings:c.styleBindings)]=h}(l,c,h,me=vu(me=kg(null,l,c,me[1],h),c.attrs,h))}else M=function(l,c,d){for(var h=void 0,y=c.directiveEnd,M=1+c.directiveStylingLast;M<y;M++)h=vu(h,l[M].hostAttrs,d);return vu(h,c.attrs,d)}(l,c,h)}return void 0!==M&&(h?c.residualClasses=M:c.residualStyles=M),d}(y,M,c,h),function(l,c,d,h,y,M){var H=M?c.classBindings:c.styleBindings,W=Rl(H),X=Nc(H);l[h]=d;var Pe,me=!1;if(Array.isArray(d)?(null===(Pe=d[1])||Td(d,Pe)>0)&&(me=!0):Pe=d,y)if(0!==X){var mt=Rl(l[W+1]);l[h+1]=Db(mt,W),0!==mt&&(l[mt+1]=dx(l[mt+1],h)),l[W+1]=function(l,c){return 131071&l|c<<17}(l[W+1],h)}else l[h+1]=Db(W,0),0!==W&&(l[W+1]=dx(l[W+1],h)),W=h;else l[h+1]=Db(X,0),0===W?W=h:l[X+1]=dx(l[X+1],h),X=h;me&&(l[h+1]=cx(l[h+1])),hw(l,Pe,h,!0),hw(l,Pe,h,!1),function(l,c,d,h,y){var M=y?l.residualClasses:l.residualStyles;null!=M&&"string"==typeof c&&Td(M,c)>=0&&(d[h+1]=px(d[h+1]))}(c,Pe,l,h,M),H=Db(W,X),M?c.classBindings=H:c.styleBindings=H}(y,M,c,d,H,h)}}function kg(l,c,d,h,y){var M=null,H=d.directiveEnd,W=d.directiveStylingLast;for(-1===W?W=d.directiveStart:W++;W<H&&(h=vu(h,(M=c[W]).hostAttrs,y),M!==l);)W++;return null!==l&&(d.directiveStylingLast=W),h}function vu(l,c,d){var h=d?1:2,y=-1;if(null!==c)for(var M=0;M<c.length;M++){var H=c[M];"number"==typeof H?y=H:y===h&&(Array.isArray(l)||(l=void 0===l?[]:["",l]),es(l,H,!!d||c[++M]))}return void 0===l?null:l}function G0(l,c,d){es(l,c,Ps(d))}function Y0(l,c,d,h,y,M,H,W){if(3&c.type){var X=l.data,me=X[W+1];Gh(function(l){return 1==(1&l)}(me)?J0(X,c,d,y,Nc(me),H):void 0)||(Gh(M)||function(l){return 2==(2&l)}(me)&&(M=J0(X,null,d,y,W,H)),function(l,c,d,h,y){var M=St(l);if(c)y?M?l.addClass(d,h):d.classList.add(h):M?l.removeClass(d,h):d.classList.remove(h);else{var H=-1===h.indexOf("-")?void 0:Ec.DashCase;if(null==y)M?l.removeStyle(d,h,H):d.style.removeProperty(h);else{var W="string"==typeof y&&y.endsWith("!important");W&&(y=y.slice(0,-10),H|=Ec.Important),M?l.setStyle(d,h,y,H):d.style.setProperty(h,y,W?"important":"")}}}(h,H,li(Do(),d),y,M))}}function J0(l,c,d,h,y,M){for(var H=null===c,W=void 0;y>0;){var X=l[y],me=Array.isArray(X),Pe=me?X[1]:X,Xe=null===Pe,Qe=d[y+1];Qe===qr&&(Qe=Xe?he:void 0);var mt=Xe?_h(Qe,h):Pe===h?Qe:void 0;if(me&&!Gh(mt)&&(mt=_h(X,h)),Gh(mt)&&(W=mt,H))return W;var Mt=l[y+1];y=H?Rl(Mt):Nc(Mt)}if(null!==c){var zt=M?c.residualClasses:c.residualStyles;null!=zt&&(W=_h(zt,h))}return W}function Gh(l){return void 0!==l}function kw(l,c){return 0!=(l.flags&(c?16:32))}function Mw(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",d=Se(),h=ge(),y=l+20,M=h.firstCreatePass?Kp(h,y,1,c,null):h.data[y],H=d[y]=qv(d[11],c);ab(h,d,H,M),lt(M,!1)}function Q0(l){return Mg("",l,""),Q0}function Mg(l,c,d){var h=Se(),y=Uc(h,l,c,d);return y!==qr&&Wu(h,Do(),y),Mg}function Ag(l,c,d,h,y){var M=Se(),H=sf(M,l,c,d,h,y);return H!==qr&&Wu(M,Do(),H),Ag}function K0(l,c,d,h,y,M,H){var W=Se(),X=Hc(W,l,c,d,h,y,M,H);return X!==qr&&Wu(W,Do(),X),K0}function ZP(l,c,d){tl(es,Fl,Uc(Se(),l,c,d),!0)}function Lw(l,c,d){var h=Se();return Wa(h,br(),c)&&Rs(ge(),oo(),h,l,c,h[11],d,!0),Lw}function Fw(l,c,d){var h=Se();if(Wa(h,br(),c)){var M=ge(),H=oo();Rs(M,H,h,l,c,$b(Ye(M.data),H,h),d,!0)}return Fw}var hf=void 0,$F=["en",[["a","p"],["AM","PM"],hf],[["AM","PM"],hf,hf],[["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"]],hf,[["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"]],hf,[["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}",hf,"{1} 'at' {0}",hf],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(l){var c=Math.floor(Math.abs(l)),d=l.toString().replace(/^[^.]*\.?/,"").length;return 1===c&&0===d?1:5}],Yh={};function Bw(l){var c=function(l){return l.toLowerCase().replace(/_/g,"-")}(l),d=Uw(c);if(d)return d;var h=c.split("-")[0];if(d=Uw(h))return d;if("en"===h)return $F;throw new Error('Missing locale data for the locale "'.concat(l,'".'))}function YP(l){return Bw(l)[Dg.PluralCase]}function Uw(l){return l in Yh||(Yh[l]=Rt.ng&&Rt.ng.common&&Rt.ng.common.locales&&Rt.ng.common.locales[l]),Yh[l]}var Dg=function(l){return l[l.LocaleId=0]="LocaleId",l[l.DayPeriodsFormat=1]="DayPeriodsFormat",l[l.DayPeriodsStandalone=2]="DayPeriodsStandalone",l[l.DaysFormat=3]="DaysFormat",l[l.DaysStandalone=4]="DaysStandalone",l[l.MonthsFormat=5]="MonthsFormat",l[l.MonthsStandalone=6]="MonthsStandalone",l[l.Eras=7]="Eras",l[l.FirstDayOfWeek=8]="FirstDayOfWeek",l[l.WeekendRange=9]="WeekendRange",l[l.DateFormat=10]="DateFormat",l[l.TimeFormat=11]="TimeFormat",l[l.DateTimeFormat=12]="DateTimeFormat",l[l.NumberSymbols=13]="NumberSymbols",l[l.NumberFormats=14]="NumberFormats",l[l.CurrencyCode=15]="CurrencyCode",l[l.CurrencySymbol=16]="CurrencySymbol",l[l.CurrencyName=17]="CurrencyName",l[l.Currencies=18]="Currencies",l[l.Directionality=19]="Directionality",l[l.PluralCase=20]="PluralCase",l[l.ExtraData=21]="ExtraData",l}({}),X0="en-US";function Hw(l){en(l,"Expected localeId to be defined"),"string"==typeof l&&l.toLowerCase().replace(/_/g,"-")}function EI(l,c,d){var h=ge();if(h.firstCreatePass){var y=Fi(l);rE(d,h.data,h.blueprint,y,!0),rE(c,h.data,h.blueprint,y,!1)}}function rE(l,c,d,h,y){if(l=ae(l),Array.isArray(l))for(var M=0;M<l.length;M++)rE(l[M],c,d,h,y);else{var H=ge(),W=Se(),X=Vh(l)?l:ae(l.provide),me=za(l),Pe=ne(),Xe=1048575&Pe.providerIndexes,Qe=Pe.directiveStart,mt=Pe.providerIndexes>>20;if(Vh(l)||!l.multi){var Mt=new Xi(me,y,zh),zt=iE(X,c,y?Xe:Xe+mt,Qe);-1===zt?(Mv(hh(Pe,W),H,X),Jh(H,l,c.length),c.push(X),Pe.directiveStart++,Pe.directiveEnd++,y&&(Pe.providerIndexes+=1048576),d.push(Mt),W.push(Mt)):(d[zt]=Mt,W[zt]=Mt)}else{var hn=iE(X,c,Xe+mt,Qe),En=iE(X,c,Xe,Xe+mt),Kn=En>=0&&d[En];if(y&&!Kn||!y&&!(hn>=0&&d[hn])){Mv(hh(Pe,W),H,X);var Lr=function(l,c,d,h,y){var M=new Xi(l,d,zh);return M.multi=[],M.index=c,M.componentProviders=0,oC(M,y,h&&!d),M}(y?kB:EB,d.length,y,h,me);!y&&Kn&&(d[En].providerFactory=Lr),Jh(H,l,c.length,0),c.push(X),Pe.directiveStart++,Pe.directiveEnd++,y&&(Pe.providerIndexes+=1048576),d.push(Lr),W.push(Lr)}else Jh(H,l,hn>-1?hn:En,oC(d[y?En:hn],me,!y&&h));!y&&h&&Kn&&d[En].componentProviders++}}}function Jh(l,c,d,h){var y=Vh(c);if(y||function(l){return!!l.useClass}(c)){var H=(c.useClass||c).prototype.ngOnDestroy;if(H){var W=l.destroyHooks||(l.destroyHooks=[]);if(!y&&c.multi){var X=W.indexOf(d);-1===X?W.push(d,[h,H]):W[X+1].push(h,H)}else W.push(d,H)}}}function oC(l,c,d){return d&&l.componentProviders++,l.multi.push(c)-1}function iE(l,c,d,h){for(var y=d;y<h;y++)if(c[y]===l)return y;return-1}function EB(l,c,d,h){return oE(this.multi,[])}function kB(l,c,d,h){var M,y=this.multi;if(this.providerFactory){var H=this.providerFactory.componentProviders,W=Nu(d,d[1],this.providerFactory.index,h);oE(y,M=W.slice(0,H));for(var X=H;X<W.length;X++)M.push(W[X])}else oE(y,M=[]);return M}function oE(l,c){for(var d=0;d<l.length;d++)c.push((0,l[d])());return c}function MI(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(d){d.providersResolver=function(h,y){return EI(h,y?y(l):l,c)}}}var MB=function l(){(0,A.Z)(this,l)},aE=function l(){(0,A.Z)(this,l)},DB=function(){function l(){(0,A.Z)(this,l)}return(0,D.Z)(l,[{key:"resolveComponentFactory",value:function(d){throw function(l){var c=Error("No component factory found for ".concat(j(l),". Did you add it to @NgModule.entryComponents?"));return c.ngComponent=l,c}(d)}}]),l}(),Ng=function(){var l=function c(){(0,A.Z)(this,c)};return l.NULL=new DB,l}();function aC(){}function Qh(l,c){return new vf(Mi(l,c))}var RB=function(){return Qh(ne(),Se())},vf=function(){var l=function c(d){(0,A.Z)(this,c),this.nativeElement=d};return l.__NG_ELEMENT_ID__=RB,l}();function DI(l){return l instanceof vf?l.nativeElement:l}var sC=function l(){(0,A.Z)(this,l)},sE=function(){var l=function c(){(0,A.Z)(this,c)};return l.__NG_ELEMENT_ID__=function(){return LB()},l}(),LB=function(){var l=Se(),d=ya(ne().index,l);return function(l){return l[11]}(pr(d)?d:l)},lC=function(){var l=function c(){(0,A.Z)(this,c)};return l.\u0275prov=Rn({token:l,providedIn:"root",factory:function(){return null}}),l}(),lE=function l(c){(0,A.Z)(this,l),this.full=c,this.major=c.split(".")[0],this.minor=c.split(".")[1],this.patch=c.split(".").slice(2).join(".")},uE=new lE("12.2.17"),II=function(){function l(){(0,A.Z)(this,l)}return(0,D.Z)(l,[{key:"supports",value:function(d){return jh(d)}},{key:"create",value:function(d){return new UB(d)}}]),l}(),FB=function(c,d){return d},UB=function(){function l(c){(0,A.Z)(this,l),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=c||FB}return(0,D.Z)(l,[{key:"forEachItem",value:function(d){var h;for(h=this._itHead;null!==h;h=h._next)d(h)}},{key:"forEachOperation",value:function(d){for(var h=this._itHead,y=this._removalsHead,M=0,H=null;h||y;){var W=!y||h&&h.currentIndex<NI(y,M,H)?h:y,X=NI(W,M,H),me=W.currentIndex;if(W===y)M--,y=y._nextRemoved;else if(h=h._next,null==W.previousIndex)M++;else{H||(H=[]);var Pe=X-M,Xe=me-M;if(Pe!=Xe){for(var Qe=0;Qe<Pe;Qe++){var mt=Qe<H.length?H[Qe]:H[Qe]=0,Mt=mt+Qe;Xe<=Mt&&Mt<Pe&&(H[Qe]=mt+1)}H[W.previousIndex]=Xe-Pe}}X!==me&&d(W,X,me)}}},{key:"forEachPreviousItem",value:function(d){var h;for(h=this._previousItHead;null!==h;h=h._nextPrevious)d(h)}},{key:"forEachAddedItem",value:function(d){var h;for(h=this._additionsHead;null!==h;h=h._nextAdded)d(h)}},{key:"forEachMovedItem",value:function(d){var h;for(h=this._movesHead;null!==h;h=h._nextMoved)d(h)}},{key:"forEachRemovedItem",value:function(d){var h;for(h=this._removalsHead;null!==h;h=h._nextRemoved)d(h)}},{key:"forEachIdentityChange",value:function(d){var h;for(h=this._identityChangesHead;null!==h;h=h._nextIdentityChange)d(h)}},{key:"diff",value:function(d){if(null==d&&(d=[]),!jh(d))throw new Error("Error trying to diff '".concat(j(d),"'. Only arrays and iterables are allowed"));return this.check(d)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(d){var h=this;this._reset();var H,W,X,y=this._itHead,M=!1;if(Array.isArray(d)){this.length=d.length;for(var me=0;me<this.length;me++)X=this._trackByFn(me,W=d[me]),null!==y&&Object.is(y.trackById,X)?(M&&(y=this._verifyReinsertion(y,W,X,me)),Object.is(y.item,W)||this._addIdentityChange(y,W)):(y=this._mismatch(y,W,X,me),M=!0),y=y._next}else H=0,function(l,c){if(Array.isArray(l))for(var d=0;d<l.length;d++)c(l[d]);else for(var y,h=l[Gu()]();!(y=h.next()).done;)c(y.value)}(d,function(Pe){X=h._trackByFn(H,Pe),null!==y&&Object.is(y.trackById,X)?(M&&(y=h._verifyReinsertion(y,Pe,X,H)),Object.is(y.item,Pe)||h._addIdentityChange(y,Pe)):(y=h._mismatch(y,Pe,X,H),M=!0),y=y._next,H++}),this.length=H;return this._truncate(y),this.collection=d,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var d;for(d=this._previousItHead=this._itHead;null!==d;d=d._next)d._nextPrevious=d._next;for(d=this._additionsHead;null!==d;d=d._nextAdded)d.previousIndex=d.currentIndex;for(this._additionsHead=this._additionsTail=null,d=this._movesHead;null!==d;d=d._nextMoved)d.previousIndex=d.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(d,h,y,M){var H;return null===d?H=this._itTail:(H=d._prev,this._remove(d)),null!==(d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(d.item,h)||this._addIdentityChange(d,h),this._reinsertAfter(d,H,M)):null!==(d=null===this._linkedRecords?null:this._linkedRecords.get(y,M))?(Object.is(d.item,h)||this._addIdentityChange(d,h),this._moveAfter(d,H,M)):d=this._addAfter(new HB(h,y),H,M),d}},{key:"_verifyReinsertion",value:function(d,h,y,M){var H=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==H?d=this._reinsertAfter(H,d._prev,M):d.currentIndex!=M&&(d.currentIndex=M,this._addToMoves(d,M)),d}},{key:"_truncate",value:function(d){for(;null!==d;){var h=d._next;this._addToRemovals(this._unlink(d)),d=h}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(d,h,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(d);var M=d._prevRemoved,H=d._nextRemoved;return null===M?this._removalsHead=H:M._nextRemoved=H,null===H?this._removalsTail=M:H._prevRemoved=M,this._insertAfter(d,h,y),this._addToMoves(d,y),d}},{key:"_moveAfter",value:function(d,h,y){return this._unlink(d),this._insertAfter(d,h,y),this._addToMoves(d,y),d}},{key:"_addAfter",value:function(d,h,y){return this._insertAfter(d,h,y),this._additionsTail=null===this._additionsTail?this._additionsHead=d:this._additionsTail._nextAdded=d,d}},{key:"_insertAfter",value:function(d,h,y){var M=null===h?this._itHead:h._next;return d._next=M,d._prev=h,null===M?this._itTail=d:M._prev=d,null===h?this._itHead=d:h._next=d,null===this._linkedRecords&&(this._linkedRecords=new cE),this._linkedRecords.put(d),d.currentIndex=y,d}},{key:"_remove",value:function(d){return this._addToRemovals(this._unlink(d))}},{key:"_unlink",value:function(d){null!==this._linkedRecords&&this._linkedRecords.remove(d);var h=d._prev,y=d._next;return null===h?this._itHead=y:h._next=y,null===y?this._itTail=h:y._prev=h,d}},{key:"_addToMoves",value:function(d,h){return d.previousIndex===h||(this._movesTail=null===this._movesTail?this._movesHead=d:this._movesTail._nextMoved=d),d}},{key:"_addToRemovals",value:function(d){return null===this._unlinkedRecords&&(this._unlinkedRecords=new cE),this._unlinkedRecords.put(d),d.currentIndex=null,d._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=d,d._prevRemoved=null):(d._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=d),d}},{key:"_addIdentityChange",value:function(d,h){return d.item=h,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=d:this._identityChangesTail._nextIdentityChange=d,d}}]),l}(),HB=function l(c,d){(0,A.Z)(this,l),this.item=c,this.trackById=d,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},RI=function(){function l(){(0,A.Z)(this,l),this._head=null,this._tail=null}return(0,D.Z)(l,[{key:"add",value:function(d){null===this._head?(this._head=this._tail=d,d._nextDup=null,d._prevDup=null):(this._tail._nextDup=d,d._prevDup=this._tail,d._nextDup=null,this._tail=d)}},{key:"get",value:function(d,h){var y;for(y=this._head;null!==y;y=y._nextDup)if((null===h||h<=y.currentIndex)&&Object.is(y.trackById,d))return y;return null}},{key:"remove",value:function(d){var h=d._prevDup,y=d._nextDup;return null===h?this._head=y:h._nextDup=y,null===y?this._tail=h:y._prevDup=h,null===this._head}}]),l}(),cE=function(){function l(){(0,A.Z)(this,l),this.map=new Map}return(0,D.Z)(l,[{key:"put",value:function(d){var h=d.trackById,y=this.map.get(h);y||(y=new RI,this.map.set(h,y)),y.add(d)}},{key:"get",value:function(d,h){var M=this.map.get(d);return M?M.get(d,h):null}},{key:"remove",value:function(d){var h=d.trackById;return this.map.get(h).remove(d)&&this.map.delete(h),d}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),l}();function NI(l,c,d){var h=l.previousIndex;if(null===h)return h;var y=0;return d&&h<d.length&&(y=d[h]),h+c+y}var uC=function(){function l(){(0,A.Z)(this,l)}return(0,D.Z)(l,[{key:"supports",value:function(d){return d instanceof Map||of(d)}},{key:"create",value:function(){return new ZI}}]),l}(),ZI=function(){function l(){(0,A.Z)(this,l),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return(0,D.Z)(l,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(d){var h;for(h=this._mapHead;null!==h;h=h._next)d(h)}},{key:"forEachPreviousItem",value:function(d){var h;for(h=this._previousMapHead;null!==h;h=h._nextPrevious)d(h)}},{key:"forEachChangedItem",value:function(d){var h;for(h=this._changesHead;null!==h;h=h._nextChanged)d(h)}},{key:"forEachAddedItem",value:function(d){var h;for(h=this._additionsHead;null!==h;h=h._nextAdded)d(h)}},{key:"forEachRemovedItem",value:function(d){var h;for(h=this._removalsHead;null!==h;h=h._nextRemoved)d(h)}},{key:"diff",value:function(d){if(d){if(!(d instanceof Map||of(d)))throw new Error("Error trying to diff '".concat(j(d),"'. Only maps and objects are allowed"))}else d=new Map;return this.check(d)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(d){var h=this;this._reset();var y=this._mapHead;if(this._appendAfter=null,this._forEach(d,function(H,W){if(y&&y.key===W)h._maybeAddToChanges(y,H),h._appendAfter=y,y=y._next;else{var X=h._getOrCreateRecordForKey(W,H);y=h._insertBeforeOrAppend(y,X)}}),y){y._prev&&(y._prev._next=null),this._removalsHead=y;for(var M=y;null!==M;M=M._nextRemoved)M===this._mapHead&&(this._mapHead=null),this._records.delete(M.key),M._nextRemoved=M._next,M.previousValue=M.currentValue,M.currentValue=null,M._prev=null,M._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(d,h){if(d){var y=d._prev;return h._next=d,h._prev=y,d._prev=h,y&&(y._next=h),d===this._mapHead&&(this._mapHead=h),this._appendAfter=d,d}return this._appendAfter?(this._appendAfter._next=h,h._prev=this._appendAfter):this._mapHead=h,this._appendAfter=h,null}},{key:"_getOrCreateRecordForKey",value:function(d,h){if(this._records.has(d)){var y=this._records.get(d);this._maybeAddToChanges(y,h);var M=y._prev,H=y._next;return M&&(M._next=H),H&&(H._prev=M),y._next=null,y._prev=null,y}var W=new LI(d);return this._records.set(d,W),W.currentValue=h,this._addToAdditions(W),W}},{key:"_reset",value:function(){if(this.isDirty){var d;for(this._previousMapHead=this._mapHead,d=this._previousMapHead;null!==d;d=d._next)d._nextPrevious=d._next;for(d=this._changesHead;null!==d;d=d._nextChanged)d.previousValue=d.currentValue;for(d=this._additionsHead;null!=d;d=d._nextAdded)d.previousValue=d.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(d,h){Object.is(h,d.currentValue)||(d.previousValue=d.currentValue,d.currentValue=h,this._addToChanges(d))}},{key:"_addToAdditions",value:function(d){null===this._additionsHead?this._additionsHead=this._additionsTail=d:(this._additionsTail._nextAdded=d,this._additionsTail=d)}},{key:"_addToChanges",value:function(d){null===this._changesHead?this._changesHead=this._changesTail=d:(this._changesTail._nextChanged=d,this._changesTail=d)}},{key:"_forEach",value:function(d,h){d instanceof Map?d.forEach(h):Object.keys(d).forEach(function(y){return h(d[y],y)})}}]),l}(),LI=function l(c){(0,A.Z)(this,l),this.key=c,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null};function FI(){return new Lg([new II])}var Lg=function(){var l=function(){function c(d){(0,A.Z)(this,c),this.factories=d}return(0,D.Z)(c,[{key:"find",value:function(h){var y=this.factories.find(function(M){return M.supports(h)});if(null!=y)return y;throw new Error("Cannot find a differ supporting object '".concat(h,"' of type '").concat(function(l){return l.name||typeof l}(h),"'"))}}],[{key:"create",value:function(h,y){if(null!=y){var M=y.factories.slice();h=h.concat(M)}return new c(h)}},{key:"extend",value:function(h){return{provide:c,useFactory:function(M){return c.create(h,M||FI())},deps:[[c,new Fu,new Lu]]}}}]),c}();return l.\u0275prov=Rn({token:l,providedIn:"root",factory:FI}),l}();function BI(){return new Kh([new uC])}var Kh=function(){var l=function(){function c(d){(0,A.Z)(this,c),this.factories=d}return(0,D.Z)(c,[{key:"find",value:function(h){var y=this.factories.find(function(M){return M.supports(h)});if(y)return y;throw new Error("Cannot find a differ supporting object '".concat(h,"'"))}}],[{key:"create",value:function(h,y){if(y){var M=y.factories.slice();h=h.concat(M)}return new c(h)}},{key:"extend",value:function(h){return{provide:c,useFactory:function(M){return c.create(h,M||BI())},deps:[[c,new Fu,new Lu]]}}}]),c}();return l.\u0275prov=Rn({token:l,providedIn:"root",factory:BI}),l}();function Xh(l,c,d,h){for(var y=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==d;){var M=c[d.index];if(null!==M&&h.push(Vr(M)),ho(M))for(var H=10;H<M.length;H++){var W=M[H],X=W[1].firstChild;null!==X&&Xh(W[1],W,X,h)}var me=d.type;if(8&me)Xh(l,c,d.child,h);else if(32&me)for(var Pe=Th(d,c),Xe=void 0;Xe=Pe();)h.push(Xe);else if(16&me){var Qe=VT(c,d);if(Array.isArray(Qe))h.push.apply(h,(0,_.Z)(Qe));else{var mt=Pd(c[16]);Xh(mt[1],mt,Qe,h,!0)}}d=y?d.projectionNext:d.next}return h}var gf=function(){function l(c,d){(0,A.Z)(this,l),this._lView=c,this._cdRefInjectingView=d,this._appRef=null,this._attachedToViewContainer=!1}return(0,D.Z)(l,[{key:"rootNodes",get:function(){var d=this._lView,h=d[1];return Xh(h,d,h.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(d){this._lView[8]=d}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var d=this._lView[3];if(ho(d)){var h=d[8],y=h?h.indexOf(this):-1;y>-1&&(tb(d,y),Sd(h,y))}this._attachedToViewContainer=!1}jv(this._lView[1],this._lView)}},{key:"onDestroy",value:function(d){bx(this._lView[1],this._lView,null,d)}},{key:"markForCheck",value:function(){Ax(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Xb(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(l,c,d){Un(!0);try{Xb(l,c,d)}finally{Un(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function(l,c){Vp(l,c,c[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(d){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=d}}]),l}(),UI=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(h){var y;return(0,A.Z)(this,d),(y=c.call(this,h))._view=h,y}return(0,D.Z)(d,[{key:"detectChanges",value:function(){bO(this._view)}},{key:"checkNoChanges",value:function(){!function(l){Un(!0);try{bO(l)}finally{Un(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),d}(gf),qB=function(l){return function(l,c,d){if(xi(l)&&!d){var h=ya(l.index,c);return new gf(h,h)}return 47&l.type?new gf(c[16],c):null}(ne(),Se(),16==(16&l))},pE=function(){var l=function c(){(0,A.Z)(this,c)};return l.__NG_ELEMENT_ID__=qB,l}(),zB=[new uC],GB=new Lg([new II]),YB=new Kh(zB),fE=function(){return _f(ne(),Se())},Fg=function(){var l=function c(){(0,A.Z)(this,c)};return l.__NG_ELEMENT_ID__=fE,l}(),cC=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(h,y,M){var H;return(0,A.Z)(this,d),(H=c.call(this))._declarationLView=h,H._declarationTContainer=y,H.elementRef=M,H}return(0,D.Z)(d,[{key:"createEmbeddedView",value:function(y){var M=this._declarationTContainer.tViews,H=Fh(this._declarationLView,M,y,16,null,M.declTNode,null,null,null,null);H[17]=this._declarationLView[this._declarationTContainer.index];var X=this._declarationLView[19];return null!==X&&(H[19]=X.createEmbeddedView(M)),$p(M,H,y),new gf(H)}}]),d}(Fg);function _f(l,c){return 4&l.type?new cC(c,l,Qh(l,c)):null}var Yd=function l(){(0,A.Z)(this,l)},dC=function l(){(0,A.Z)(this,l)},zI=function(){return fC(ne(),Se())},Bg=function(){var l=function c(){(0,A.Z)(this,c)};return l.__NG_ELEMENT_ID__=zI,l}(),WI=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(h,y,M){var H;return(0,A.Z)(this,d),(H=c.call(this))._lContainer=h,H._hostTNode=y,H._hostLView=M,H}return(0,D.Z)(d,[{key:"element",get:function(){return Qh(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new _d(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var y=Ny(this._hostTNode,this._hostLView);if(cD(y)){var M=Np(y,this._hostLView),H=fh(y);return new _d(M[1].data[H+8],M)}return new _d(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(y){var M=GI(this._lContainer);return null!==M&&M[y]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(y,M,H){var W=y.createEmbeddedView(M||{});return this.insert(W,H),W}},{key:"createComponent",value:function(y,M,H,W,X){var me=H||this.parentInjector;if(!X&&null==y.ngModule&&me){var Pe=me.get(Yd,null);Pe&&(X=Pe)}var Xe=y.create(me,W,void 0,X);return this.insert(Xe.hostView,M),Xe}},{key:"insert",value:function(y,M){var H=y._lView,W=H[1];if(function(l){return ho(l[3])}(H)){var X=this.indexOf(y);if(-1!==X)this.detach(X);else{var me=H[3],Pe=new WI(me,me[6],me[3]);Pe.detach(Pe.indexOf(y))}}var Xe=this._adjustIndex(M),Qe=this._lContainer;!function(l,c,d,h){var y=10+h,M=d.length;h>0&&(d[y-1][4]=c),h<M-10?(c[4]=d[y],Pv(d,10+h,c)):(d.push(c),c[4]=null),c[3]=d;var H=c[17];null!==H&&d!==H&&function(l,c){var d=l[9];c[16]!==c[3][3][16]&&(l[2]=!0),null===d?l[9]=[c]:d.push(c)}(H,c);var W=c[19];null!==W&&W.insertView(l),c[2]|=128}(W,H,Qe,Xe);var mt=ba(Xe,Qe),Mt=H[11],zt=du(Mt,Qe[7]);return null!==zt&&function(l,c,d,h,y,M){h[0]=y,h[6]=c,Vp(l,h,d,1,y,M)}(W,Qe[6],Mt,H,zt,mt),y.attachToViewContainerRef(),Pv(mE(Qe),Xe,y),y}},{key:"move",value:function(y,M){return this.insert(y,M)}},{key:"indexOf",value:function(y){var M=GI(this._lContainer);return null!==M?M.indexOf(y):-1}},{key:"remove",value:function(y){var M=this._adjustIndex(y,-1),H=tb(this._lContainer,M);H&&(Sd(mE(this._lContainer),M),jv(H[1],H))}},{key:"detach",value:function(y){var M=this._adjustIndex(y,-1),H=tb(this._lContainer,M);return H&&null!=Sd(mE(this._lContainer),M)?new gf(H):null}},{key:"_adjustIndex",value:function(y){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==y?this.length+M:y}}]),d}(Bg);function GI(l){return l[8]}function mE(l){return l[8]||(l[8]=[])}function fC(l,c){var d,h=c[l.index];if(ho(h))d=h;else{var y;if(8&l.type)y=Vr(h);else{var M=c[11];y=M.createComment("");var H=Mi(l,c);Hu(M,du(M,H),y,function(l,c){return St(l)?l.nextSibling(c):c.nextSibling}(M,H),!1)}c[l.index]=d=_O(h,c,y,l),Kb(c,d)}return new WI(d,l,c)}var Xd={},IE=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(h){var y;return(0,A.Z)(this,d),(y=c.call(this)).ngModule=h,y}return(0,D.Z)(d,[{key:"resolveComponentFactory",value:function(y){var M=vi(y);return new MC(M,this.ngModule)}}]),d}(Ng);function Xg(l){var c=[];for(var d in l)l.hasOwnProperty(d)&&c.push({propName:l[d],templateName:d});return c}var NE=new No("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return ex}}),MC=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(h,y){var M;return(0,A.Z)(this,d),(M=c.call(this)).componentDef=h,M.ngModule=y,M.componentType=h.type,M.selector=function(l){return l.map(eO).join(",")}(h.selectors),M.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],M.isBoundToModule=!!y,M}return(0,D.Z)(d,[{key:"inputs",get:function(){return Xg(this.componentDef.inputs)}},{key:"outputs",get:function(){return Xg(this.componentDef.outputs)}},{key:"create",value:function(y,M,H,W){var _n,Kn,X=(W=W||this.ngModule)?function(l,c){return{get:function(h,y,M){var H=l.get(h,Xd,M);return H!==Xd||y===Xd?H:c.get(h,y,M)}}}(y,W.injector):y,me=X.get(sC,gt),Pe=X.get(lC,null),Xe=me.createRenderer(null,this.componentDef),Qe=this.componentDef.selectors[0][0]||"div",mt=H?function(l,c,d){if(St(l))return l.selectRootElement(c,d===Cn.ShadowDom);var y="string"==typeof c?l.querySelector(c):c;return y.textContent="",y}(Xe,H,this.componentDef.encapsulation):Rd(me.createRenderer(null,this.componentDef),Qe,function(l){var c=l.toLowerCase();return"svg"===c?ie:"math"===c?"http://www.w3.org/1998/MathML/":null}(Qe)),Mt=this.componentDef.onPush?576:528,zt=function(l,c){return{components:[],scheduler:l||ex,clean:SO,playerHandler:c||null,flags:0}}(),hn=Bh(0,null,null,1,0,null,null,null,null,null),En=Fh(null,hn,zt,Mt,null,null,me,Xe,Pe,X);Tt(En);try{var Lr=function(l,c,d,h,y,M){var H=d[1];d[20]=l;var X=Kp(H,20,2,"#host",null),me=X.mergedAttrs=c.hostAttrs;null!==me&&(pg(X,me,!0),null!==l&&(Ys(y,l,me),null!==X.classes&&cb(y,l,X.classes),null!==X.styles&&ub(y,l,X.styles)));var Pe=h.createRenderer(l,c),Xe=Fh(d,jb(c),null,c.onPush?64:16,d[20],X,h,Pe,M||null,null);return H.firstCreatePass&&(Mv(hh(X,d),H,c.type),mO(H,X),vO(X,d.length,1)),Kb(d,Xe),d[20]=Xe}(mt,this.componentDef,En,me,Xe);if(mt)if(H)Ys(Xe,mt,["ng-version",uE.full]);else{var ei=function(l){for(var c=[],d=[],h=1,y=2;h<l.length;){var M=l[h];if("string"==typeof M)2===y?""!==M&&c.push(M,l[++h]):8===y&&d.push(M);else{if(!Il(y))break;y=M}h++}return{attrs:c,classes:d}}(this.componentDef.selectors[0]),Di=ei.attrs,_o=ei.classes;Di&&Ys(Xe,mt,Di),_o&&_o.length>0&&cb(Xe,mt,_o.join(" "))}if(Kn=Aa(hn,20),void 0!==M)for(var Ni=Kn.projection=[],la=0;la<this.ngContentSelectors.length;la++){var al=M[la];Ni.push(null!=al?Array.from(al):null)}_n=function(l,c,d,h,y){var M=d[1],H=function(l,c,d){var h=ne();l.firstCreatePass&&(d.providersResolver&&d.providersResolver(d),Qb(l,h,c,Xp(l,c,1,null),d));var M=Nu(c,l,h.directiveStart,h);Go(M,c);var H=Mi(h,c);return H&&Go(H,c),M}(M,d,c);if(h.components.push(H),l[8]=H,y&&y.forEach(function(Pe){return Pe(H,c)}),c.contentQueries){var W=ne();c.contentQueries(1,H,W.directiveStart)}var X=ne();return!M.firstCreatePass||null===c.hostBindings&&null===c.hostAttrs||(hs(X.index),fO(d[1],X,0,X.directiveStart,X.directiveEnd,c),wx(c,H)),H}(Lr,this.componentDef,En,zt,[u0]),$p(hn,En,null)}finally{ea()}return new LE(this.componentType,_n,Qh(Kn,En),En,Kn)}}]),d}(aE),LE=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(h,y,M,H,W){var X;return(0,A.Z)(this,d),(X=c.call(this)).location=M,X._rootLView=H,X._tNode=W,X.instance=y,X.hostView=X.changeDetectorRef=new UI(H),X.componentType=h,X}return(0,D.Z)(d,[{key:"injector",get:function(){return new _d(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(y){this.hostView.onDestroy(y)}}]),d}(MB),qc=new Map;var x3=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(h,y){var M;(0,A.Z)(this,d),(M=c.call(this))._parent=y,M._bootstrapComponents=[],M.injector=(0,V.Z)(M),M.destroyCbs=[],M.componentFactoryResolver=new IE((0,V.Z)(M));var H=fi(h),W=function(l){return l[At]||null}(h);return W&&Hw(W),M._bootstrapComponents=Pl(H.bootstrap),M._r3Injector=Zx(h,y,[{provide:Yd,useValue:(0,V.Z)(M)},{provide:Ng,useValue:M.componentFactoryResolver}],j(h)),M._r3Injector._resolveInjectorDefTypes(),M.instance=M.get(h),M}return(0,D.Z)(d,[{key:"get",value:function(y){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ia.THROW_IF_NOT_FOUND,H=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ft.Default;return y===Ia||y===Yd||y===tf?this:this._r3Injector.get(y,M,H)}},{key:"destroy",value:function(){var y=this._r3Injector;!y.destroyed&&y.destroy(),this.destroyCbs.forEach(function(M){return M()}),this.destroyCbs=null}},{key:"onDestroy",value:function(y){this.destroyCbs.push(y)}}]),d}(Yd),e_=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(h){var y;return(0,A.Z)(this,d),(y=c.call(this)).moduleType=h,null!==fi(h)&&function(l){var c=new Set;!function d(h){var y=fi(h,!0),M=y.id;null!==M&&(function(l,c,d){if(c&&c!==d)throw new Error("Duplicate module registered for ".concat(l," - ").concat(j(c)," vs ").concat(j(c.name)))}(M,qc.get(M),h),qc.set(M,h));var me,W=Pl(y.imports),X=(0,b.Z)(W);try{for(X.s();!(me=X.n()).done;){var Pe=me.value;c.has(Pe)||(c.add(Pe),d(Pe))}}catch(Xe){X.e(Xe)}finally{X.f()}}(l)}(h),y}return(0,D.Z)(d,[{key:"create",value:function(y){return new x3(this.moduleType,y)}}]),d}(dC);function BE(l,c,d){var h=Qn()+l,y=Se();return y[h]===qr?Ll(y,h,d?c.call(d):c()):function(l,c){return l[c]}(y,h)}function w3(l,c,d,h){return VE(Se(),Qn(),l,c,d,h)}function t_(l,c,d,h,y){return so(Se(),Qn(),l,c,d,h,y)}function Cf(l,c){var d=l[c];return d===qr?void 0:d}function VE(l,c,d,h,y,M){var H=c+d;return Wa(l,H,y)?Ll(l,H+1,M?h.call(M,y):h(y)):Cf(l,H+1)}function so(l,c,d,h,y,M,H){var W=c+d;return Vd(l,W,y,M)?Ll(l,W+2,H?h.call(H,y,M):h(y,M)):Cf(l,W+2)}function n_(l,c){var h,d=ge(),y=l+20;d.firstCreatePass?(h=function(l,c){if(c)for(var d=c.length-1;d>=0;d--){var h=c[d];if(l===h.name)return h}throw new le("302","The pipe '".concat(l,"' could not be found!"))}(c,d.pipeRegistry),d.data[y]=h,h.onDestroy&&(d.destroyHooks||(d.destroyHooks=[])).push(y,h.onDestroy)):h=d.data[y];var M=h.factory||(h.factory=Ka(h.type)),H=Jt(zh);try{var W=Ry(!1),X=M();return Ry(W),function(l,c,d,h){d>=l.data.length&&(l.data[d]=null,l.blueprint[d]=null),c[d]=h}(d,Se(),y,X),X}finally{Jt(H)}}function qE(l,c,d){var h=l+20,y=Se(),M=Xa(y,h);return rm(y,yu(y,h)?VE(y,Qn(),c,M.transform,d,M):M.transform(d))}function jE(l,c,d,h){var y=l+20,M=Se(),H=Xa(M,y);return rm(M,yu(M,y)?so(M,Qn(),c,H.transform,d,h,H):H.transform(d,h))}function yu(l,c){return l[1].data[c].pure}function rm(l,c){return Hd.isWrapped(c)&&(c=Hd.unwrap(c),l[fr()]=qr),c}function jc(l){return function(c){setTimeout(l,void 0,c)}}var Ls=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(){var h,y=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,A.Z)(this,d),(h=c.call(this)).__isAsync=y,h}return(0,D.Z)(d,[{key:"emit",value:function(y){(0,B.Z)((0,U.Z)(d.prototype),"next",this).call(this,y)}},{key:"subscribe",value:function(y,M,H){var W,X,me,Pe=y,Xe=M||function(){return null},Qe=H;if(y&&"object"==typeof y){var mt=y;Pe=null===(W=mt.next)||void 0===W?void 0:W.bind(mt),Xe=null===(X=mt.error)||void 0===X?void 0:X.bind(mt),Qe=null===(me=mt.complete)||void 0===me?void 0:me.bind(mt)}this.__isAsync&&(Xe=jc(Xe),Pe&&(Pe=jc(Pe)),Qe&&(Qe=jc(Qe)));var Mt=(0,B.Z)((0,U.Z)(d.prototype),"subscribe",this).call(this,{next:Pe,error:Xe,complete:Qe});return y instanceof k.w&&y.add(Mt),Mt}}]),d}(E.xQ);function A3(){return this._results[Gu()]()}var OC=function(){function l(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,A.Z)(this,l),this._emitDistinctChangesOnly=c,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var d=Gu(),h=l.prototype;h[d]||(h[d]=A3)}return(0,D.Z)(l,[{key:"changes",get:function(){return this._changes||(this._changes=new Ls)}},{key:"get",value:function(d){return this._results[d]}},{key:"map",value:function(d){return this._results.map(d)}},{key:"filter",value:function(d){return this._results.filter(d)}},{key:"find",value:function(d){return this._results.find(d)}},{key:"reduce",value:function(d,h){return this._results.reduce(d,h)}},{key:"forEach",value:function(d){this._results.forEach(d)}},{key:"some",value:function(d){return this._results.some(d)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(d,h){var y=this;y.dirty=!1;var M=Ds(d);(this._changesDetected=!function(l,c,d){if(l.length!==c.length)return!1;for(var h=0;h<l.length;h++){var y=l[h],M=c[h];if(d&&(y=d(y),M=d(M)),M!==y)return!1}return!0}(y._results,M,h))&&(y._results=M,y.length=M.length,y.last=M[this.length-1],y.first=M[0])}},{key:"notifyOnChanges",value:function(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),l}();Symbol;var WE=function(){function l(c){(0,A.Z)(this,l),this.queryList=c,this.matches=null}return(0,D.Z)(l,[{key:"clone",value:function(){return new l(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),l}(),IC=function(){function l(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,A.Z)(this,l),this.queries=c}return(0,D.Z)(l,[{key:"createEmbeddedView",value:function(d){var h=d.queries;if(null!==h){for(var y=null!==d.contentQueries?d.contentQueries[0]:h.length,M=[],H=0;H<y;H++){var W=h.getByIndex(H);M.push(this.queries[W.indexInDeclarationView].clone())}return new l(M)}return null}},{key:"insertView",value:function(d){this.dirtyQueriesWithMatches(d)}},{key:"detachView",value:function(d){this.dirtyQueriesWithMatches(d)}},{key:"dirtyQueriesWithMatches",value:function(d){for(var h=0;h<this.queries.length;h++)null!==BC(d,h).matches&&this.queries[h].setDirty()}}]),l}(),RC=function l(c,d){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,A.Z)(this,l),this.predicate=c,this.flags=d,this.read=h},NC=function(){function l(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,A.Z)(this,l),this.queries=c}return(0,D.Z)(l,[{key:"elementStart",value:function(d,h){for(var y=0;y<this.queries.length;y++)this.queries[y].elementStart(d,h)}},{key:"elementEnd",value:function(d){for(var h=0;h<this.queries.length;h++)this.queries[h].elementEnd(d)}},{key:"embeddedTView",value:function(d){for(var h=null,y=0;y<this.length;y++){var M=null!==h?h.length:0,H=this.getByIndex(y).embeddedTView(d,M);H&&(H.indexInDeclarationView=y,null!==h?h.push(H):h=[H])}return null!==h?new l(h):null}},{key:"template",value:function(d,h){for(var y=0;y<this.queries.length;y++)this.queries[y].template(d,h)}},{key:"getByIndex",value:function(d){return this.queries[d]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(d){this.queries.push(d)}}]),l}(),GE=function(){function l(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;(0,A.Z)(this,l),this.metadata=c,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=d}return(0,D.Z)(l,[{key:"elementStart",value:function(d,h){this.isApplyingToNode(h)&&this.matchTNode(d,h)}},{key:"elementEnd",value:function(d){this._declarationNodeIndex===d.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(d,h){this.elementStart(d,h)}},{key:"embeddedTView",value:function(d,h){return this.isApplyingToNode(d)?(this.crossesNgTemplate=!0,this.addMatch(-d.index,h),new l(this.metadata)):null}},{key:"isApplyingToNode",value:function(d){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var h=this._declarationNodeIndex,y=d.parent;null!==y&&8&y.type&&y.index!==h;)y=y.parent;return h===(null!==y?y.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(d,h){var y=this.metadata.predicate;if(Array.isArray(y))for(var M=0;M<y.length;M++){var H=y[M];this.matchTNodeWithReadOption(d,h,f4(h,H)),this.matchTNodeWithReadOption(d,h,mh(h,d,H,!1,!1))}else y===Fg?4&h.type&&this.matchTNodeWithReadOption(d,h,-1):this.matchTNodeWithReadOption(d,h,mh(h,d,y,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(d,h,y){if(null!==y){var M=this.metadata.read;if(null!==M)if(M===vf||M===Bg||M===Fg&&4&h.type)this.addMatch(h.index,-2);else{var H=mh(h,d,M,!1,!1);null!==H&&this.addMatch(h.index,H)}else this.addMatch(h.index,y)}}},{key:"addMatch",value:function(d,h){null===this.matches?this.matches=[d,h]:this.matches.push(d,h)}}]),l}();function f4(l,c){var d=l.localNames;if(null!==d)for(var h=0;h<d.length;h+=2)if(d[h]===c)return d[h+1];return null}function D3(l,c,d,h){return-1===d?function(l,c){return 11&l.type?Qh(l,c):4&l.type?_f(l,c):null}(c,l):-2===d?function(l,c,d){return d===vf?Qh(c,l):d===Fg?_f(c,l):d===Bg?fC(c,l):void 0}(l,c,h):Nu(l,l[1],d,c)}function Tf(l,c,d,h){var y=c[19].queries[h];if(null===y.matches){for(var M=l.data,H=d.matches,W=[],X=0;X<H.length;X+=2){var me=H[X];W.push(me<0?null:D3(c,M[me],H[X+1],d.metadata.read))}y.matches=W}return y.matches}function LC(l,c,d,h){var y=l.queries.getByIndex(d),M=y.matches;if(null!==M)for(var H=Tf(l,c,y,d),W=0;W<M.length;W+=2){var X=M[W];if(X>0)h.push(H[W/2]);else{for(var me=M[W+1],Pe=c[-X],Xe=10;Xe<Pe.length;Xe++){var Qe=Pe[Xe];Qe[17]===Qe[3]&&LC(Qe[1],Qe,me,h)}if(null!==Pe[9])for(var mt=Pe[9],Mt=0;Mt<mt.length;Mt++){var zt=mt[Mt];LC(zt[1],zt,me,h)}}}return h}function YE(l){var c=Se(),d=ge(),h=Ee();Ue(h+1);var y=BC(d,h);if(l.dirty&&Ms(c)===(2==(2&y.metadata.flags))){if(null===y.matches)l.reset([]);else{var M=y.crossesNgTemplate?LC(d,c,h,[]):Tf(d,c,y,h);l.reset(M,DI),l.notifyOnChanges()}return!0}return!1}function xf(l,c,d){var h=ge();h.firstCreatePass&&(i_(h,new RC(l,c,d),-1),2==(2&c)&&(h.staticViewQueries=!0)),r_(h,Se(),c)}function im(l,c,d,h){var y=ge();if(y.firstCreatePass){var M=ne();i_(y,new RC(c,d,h),M.index),function(l,c){var d=l.contentQueries||(l.contentQueries=[]);c!==(d.length?d[d.length-1]:-1)&&d.push(l.queries.length-1,c)}(y,l),2==(2&d)&&(y.staticContentQueries=!0)}r_(y,Se(),d)}function bu(){return l=Se(),c=Ee(),l[19].queries[c].queryList;var l,c}function r_(l,c,d){var h=new OC(4==(4&d));bx(l,c,h,h.destroy),null===c[19]&&(c[19]=new IC),c[19].queries.push(new WE(h))}function i_(l,c,d){null===l.queries&&(l.queries=new NC),l.queries.track(new GE(c,d))}function BC(l,c){return l.queries.getByIndex(c)}function JE(l,c){return _f(l,c)}var cm=new No("Application Initializer"),Cu=function(){var l=function(){function c(d){var h=this;(0,A.Z)(this,c),this.appInits=d,this.resolve=aC,this.reject=aC,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(y,M){h.resolve=y,h.reject=M})}return(0,D.Z)(c,[{key:"runInitializers",value:function(){var h=this;if(!this.initialized){var y=[],M=function(){h.done=!0,h.resolve()};if(this.appInits)for(var H=function(me){var Pe=h.appInits[me]();if(M0(Pe))y.push(Pe);else if(D0(Pe)){var Xe=new Promise(function(Qe,mt){Pe.subscribe({complete:Qe,error:mt})});y.push(Xe)}},W=0;W<this.appInits.length;W++)H(W);Promise.all(y).then(function(){M()}).catch(function(X){h.reject(X)}),0===y.length&&M(),this.initialized=!0}}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Wo(cm,8))},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}(),kf=new No("AppId"),Y3={provide:kf,useFactory:function(){return"".concat(GC()).concat(GC()).concat(GC())},deps:[]};function GC(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var YC=new No("Platform Initializer"),hk=new No("Platform ID"),JC=new No("appBootstrapListener"),p_=function(){var l=function(){function c(){(0,A.Z)(this,c)}return(0,D.Z)(c,[{key:"log",value:function(h){console.log(h)}},{key:"warn",value:function(h){console.warn(h)}}]),c}();return l.\u0275fac=function(d){return new(d||l)},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}(),rp=new No("LocaleId"),mk=new No("DefaultCurrencyCode"),K3=function l(c,d){(0,A.Z)(this,l),this.ngModuleFactory=c,this.componentFactories=d},QC=function(c){return new e_(c)},Of=QC,eR=function(c){return Promise.resolve(QC(c))},Xu=function(c){var d=QC(c),y=Pl(fi(c).declarations).reduce(function(M,H){var W=vi(H);return W&&M.push(new MC(W)),M},[]);return new K3(d,y)},_k=Xu,yk=function(c){return Promise.resolve(Xu(c))},dm=function(){var l=function(){function c(){(0,A.Z)(this,c),this.compileModuleSync=Of,this.compileModuleAsync=eR,this.compileModuleAndAllComponentsSync=_k,this.compileModuleAndAllComponentsAsync=yk}return(0,D.Z)(c,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(h){}},{key:"getModuleId",value:function(h){}}]),c}();return l.\u0275fac=function(d){return new(d||l)},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}(),rR=function(){return Promise.resolve(0)}();function is(l){"undefined"==typeof Zone?rR.then(function(){l&&l.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",l)}var il=function(){function l(c){var d=c.enableLongStackTrace,h=void 0!==d&&d,y=c.shouldCoalesceEventChangeDetection,M=void 0!==y&&y,H=c.shouldCoalesceRunChangeDetection,W=void 0!==H&&H;if((0,A.Z)(this,l),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ls(!1),this.onMicrotaskEmpty=new Ls(!1),this.onStable=new Ls(!1),this.onError=new Ls(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var X=this;X._nesting=0,X._outer=X._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(X._inner=X._inner.fork(new Zone.TaskTrackingZoneSpec)),h&&Zone.longStackTraceZoneSpec&&(X._inner=X._inner.fork(Zone.longStackTraceZoneSpec)),X.shouldCoalesceEventChangeDetection=!W&&M,X.shouldCoalesceRunChangeDetection=W,X.lastRequestAnimationFrameId=-1,X.nativeRequestAnimationFrame=function(){var l=Rt.requestAnimationFrame,c=Rt.cancelAnimationFrame;if("undefined"!=typeof Zone&&l&&c){var d=l[Zone.__symbol__("OriginalDelegate")];d&&(l=d);var h=c[Zone.__symbol__("OriginalDelegate")];h&&(c=h)}return{nativeRequestAnimationFrame:l,nativeCancelAnimationFrame:c}}().nativeRequestAnimationFrame,function(l){var c=function(){!function(l){l.isCheckStableRunning||-1!==l.lastRequestAnimationFrameId||(l.lastRequestAnimationFrameId=l.nativeRequestAnimationFrame.call(Rt,function(){l.fakeTopEventTask||(l.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){l.lastRequestAnimationFrameId=-1,hm(l),l.isCheckStableRunning=!0,pm(l),l.isCheckStableRunning=!1},void 0,function(){},function(){})),l.fakeTopEventTask.invoke()}),hm(l))}(l)};l._inner=l._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(h,y,M,H,W,X){try{return bk(l),h.invokeTask(M,H,W,X)}finally{(l.shouldCoalesceEventChangeDetection&&"eventTask"===H.type||l.shouldCoalesceRunChangeDetection)&&c(),Pf(l)}},onInvoke:function(h,y,M,H,W,X,me){try{return bk(l),h.invoke(M,H,W,X,me)}finally{l.shouldCoalesceRunChangeDetection&&c(),Pf(l)}},onHasTask:function(h,y,M,H){h.hasTask(M,H),y===M&&("microTask"==H.change?(l._hasPendingMicrotasks=H.microTask,hm(l),pm(l)):"macroTask"==H.change&&(l.hasPendingMacrotasks=H.macroTask))},onHandleError:function(h,y,M,H){return h.handleError(M,H),l.runOutsideAngular(function(){return l.onError.emit(H)}),!1}})}(X)}return(0,D.Z)(l,[{key:"run",value:function(d,h,y){return this._inner.run(d,h,y)}},{key:"runTask",value:function(d,h,y,M){var H=this._inner,W=H.scheduleEventTask("NgZoneEvent: "+M,d,$C,aC,aC);try{return H.runTask(W,h,y)}finally{H.cancelTask(W)}}},{key:"runGuarded",value:function(d,h,y){return this._inner.runGuarded(d,h,y)}},{key:"runOutsideAngular",value:function(d){return this._outer.run(d)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!l.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(l.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),l}(),$C={};function pm(l){if(0==l._nesting&&!l.hasPendingMicrotasks&&!l.isStable)try{l._nesting++,l.onMicrotaskEmpty.emit(null)}finally{if(l._nesting--,!l.hasPendingMicrotasks)try{l.runOutsideAngular(function(){return l.onStable.emit(null)})}finally{l.isStable=!0}}}function hm(l){l.hasPendingMicrotasks=!!(l._hasPendingMicrotasks||(l.shouldCoalesceEventChangeDetection||l.shouldCoalesceRunChangeDetection)&&-1!==l.lastRequestAnimationFrameId)}function bk(l){l._nesting++,l.isStable&&(l.isStable=!1,l.onUnstable.emit(null))}function Pf(l){l._nesting--,pm(l)}var iR=function(){function l(){(0,A.Z)(this,l),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ls,this.onMicrotaskEmpty=new Ls,this.onStable=new Ls,this.onError=new Ls}return(0,D.Z)(l,[{key:"run",value:function(d,h,y){return d.apply(h,y)}},{key:"runGuarded",value:function(d,h,y){return d.apply(h,y)}},{key:"runOutsideAngular",value:function(d){return d()}},{key:"runTask",value:function(d,h,y,M){return d.apply(h,y)}}]),l}(),Ck=function(){var l=function(){function c(d){var h=this;(0,A.Z)(this,c),this._ngZone=d,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),d.run(function(){h.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return(0,D.Z)(c,[{key:"_watchAngularEvents",value:function(){var h=this;this._ngZone.onUnstable.subscribe({next:function(){h._didWork=!0,h._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){h._ngZone.onStable.subscribe({next:function(){il.assertNotInAngularZone(),is(function(){h._isZoneStable=!0,h._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var h=this;if(this.isStable())is(function(){for(;0!==h._callbacks.length;){var M=h._callbacks.pop();clearTimeout(M.timeoutId),M.doneCb(h._didWork)}h._didWork=!1});else{var y=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(M){return!M.updateCb||!M.updateCb(y)||(clearTimeout(M.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(h){return{source:h.source,creationLocation:h.creationLocation,data:h.data}}):[]}},{key:"addCallback",value:function(h,y,M){var H=this,W=-1;y&&y>0&&(W=setTimeout(function(){H._callbacks=H._callbacks.filter(function(X){return X.timeoutId!==W}),h(H._didWork,H.getPendingTasks())},y)),this._callbacks.push({doneCb:h,timeoutId:W,updateCb:M})}},{key:"whenStable",value:function(h,y,M){if(M&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(h,y,M),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(h,y,M){return[]}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Wo(il))},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}(),e1=function(){var l=function(){function c(){(0,A.Z)(this,c),this._applications=new Map,mm.addToWindow(this)}return(0,D.Z)(c,[{key:"registerApplication",value:function(h,y){this._applications.set(h,y)}},{key:"unregisterApplication",value:function(h){this._applications.delete(h)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(h){return this._applications.get(h)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(h){var y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return mm.findTestabilityInTree(this,h,y)}}]),c}();return l.\u0275fac=function(d){return new(d||l)},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}();function aR(l){mm=l}var mm=new(function(){function l(){(0,A.Z)(this,l)}return(0,D.Z)(l,[{key:"addToWindow",value:function(d){}},{key:"findTestabilityInTree",value:function(d,h,y){return null}}]),l}()),t1=!0,Sk=!1;function n1(){return Sk=!0,t1}function sR(){if(Sk)throw new Error("Cannot enable prod mode after platform setup.");t1=!1}var Bl,Tk=function(l,c,d){var h=new e_(d);return Promise.resolve(h)},r1=new No("AllowMultipleToken"),cR=function l(c,d){(0,A.Z)(this,l),this.name=c,this.token=d};function dR(l){if(Bl&&!Bl.destroyed&&!Bl.injector.get(r1,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Bl=l.get(kk);var c=l.get(YC,null);return c&&c.forEach(function(d){return d()}),Bl}function Ek(l,c){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],h="Platform: ".concat(c),y=new No(h);return function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],H=gm();if(!H||H.injector.get(r1,!1))if(l)l(d.concat(M).concat({provide:y,useValue:!0}));else{var W=d.concat(M).concat({provide:y,useValue:!0},{provide:Ks,useValue:"platform"});dR(Ia.create({providers:W,name:h}))}return pR(y)}}function pR(l){var c=gm();if(!c)throw new Error("No platform exists!");if(!c.injector.get(l,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return c}function gm(){return Bl&&!Bl.destroyed?Bl:null}var kk=function(){var l=function(){function c(d){(0,A.Z)(this,c),this._injector=d,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return(0,D.Z)(c,[{key:"bootstrapModuleFactory",value:function(h,y){var M=this,me=function(l,c){return"noop"===l?new iR:("zone.js"===l?void 0:l)||new il({enableLongStackTrace:n1(),shouldCoalesceEventChangeDetection:!!(null==c?void 0:c.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==c?void 0:c.ngZoneRunCoalescing)})}(y?y.ngZone:void 0,{ngZoneEventCoalescing:y&&y.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:y&&y.ngZoneRunCoalescing||!1}),Pe=[{provide:il,useValue:me}];return me.run(function(){var Xe=Ia.create({providers:Pe,parent:M.injector,name:h.moduleType.name}),Qe=h.create(Xe),mt=Qe.injector.get(Jp,null);if(!mt)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return me.runOutsideAngular(function(){var Mt=me.onError.subscribe({next:function(hn){mt.handleError(hn)}});Qe.onDestroy(function(){v_(M._modules,Qe),Mt.unsubscribe()})}),function(l,c,d){try{var h=((Mt=Qe.injector.get(Cu)).runInitializers(),Mt.donePromise.then(function(){return Hw(Qe.injector.get(rp,X0)||X0),M._moduleDoBootstrap(Qe),Qe}));return M0(h)?h.catch(function(y){throw c.runOutsideAngular(function(){return l.handleError(y)}),y}):h}catch(y){throw c.runOutsideAngular(function(){return l.handleError(y)}),y}var Mt}(mt,me)})}},{key:"bootstrapModule",value:function(h){var y=this,M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],H=Mk({},M);return Tk(0,0,h).then(function(W){return y.bootstrapModuleFactory(W,H)})}},{key:"_moduleDoBootstrap",value:function(h){var y=h.injector.get(_m);if(h._bootstrapComponents.length>0)h._bootstrapComponents.forEach(function(M){return y.bootstrap(M)});else{if(!h.instance.ngDoBootstrap)throw new Error("The module ".concat(j(h.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");h.instance.ngDoBootstrap(y)}this._modules.push(h)}},{key:"onDestroy",value:function(h){this._destroyListeners.push(h)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(h){return h.destroy()}),this._destroyListeners.forEach(function(h){return h()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Wo(Ia))},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}();function Mk(l,c){return Array.isArray(c)?c.reduce(Mk,l):Object.assign(Object.assign({},l),c)}var _m=function(){var l=function(){function c(d,h,y,M,H){var W=this;(0,A.Z)(this,c),this._zone=d,this._injector=h,this._exceptionHandler=y,this._componentFactoryResolver=M,this._initStatus=H,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){W._zone.run(function(){W.tick()})}});var X=new x.y(function(Pe){W._stable=W._zone.isStable&&!W._zone.hasPendingMacrotasks&&!W._zone.hasPendingMicrotasks,W._zone.runOutsideAngular(function(){Pe.next(W._stable),Pe.complete()})}),me=new x.y(function(Pe){var Xe;W._zone.runOutsideAngular(function(){Xe=W._zone.onStable.subscribe(function(){il.assertNotInAngularZone(),is(function(){!W._stable&&!W._zone.hasPendingMacrotasks&&!W._zone.hasPendingMicrotasks&&(W._stable=!0,Pe.next(!0))})})});var Qe=W._zone.onUnstable.subscribe(function(){il.assertInAngularZone(),W._stable&&(W._stable=!1,W._zone.runOutsideAngular(function(){Pe.next(!1)}))});return function(){Xe.unsubscribe(),Qe.unsubscribe()}});this.isStable=(0,O.T)(X,me.pipe((0,F.B)()))}return(0,D.Z)(c,[{key:"bootstrap",value:function(h,y){var H,M=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.");H=h instanceof aE?h:this._componentFactoryResolver.resolveComponentFactory(h),this.componentTypes.push(H.componentType);var W=function(l){return l.isBoundToModule}(H)?void 0:this._injector.get(Yd),me=H.create(Ia.NULL,[],y||H.selector,W),Pe=me.location.nativeElement,Xe=me.injector.get(Ck,null),Qe=Xe&&me.injector.get(e1);return Xe&&Qe&&Qe.registerApplication(Pe,Xe),me.onDestroy(function(){M.detachView(me.hostView),v_(M.components,me),Qe&&Qe.unregisterApplication(Pe)}),this._loadComponent(me),me}},{key:"tick",value:function(){var h=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var M,y=(0,b.Z)(this._views);try{for(y.s();!(M=y.n()).done;)M.value.detectChanges()}catch(Pe){y.e(Pe)}finally{y.f()}}catch(Pe){this._zone.runOutsideAngular(function(){return h._exceptionHandler.handleError(Pe)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(h){var y=h;this._views.push(y),y.attachToAppRef(this)}},{key:"detachView",value:function(h){var y=h;v_(this._views,y),y.detachFromAppRef()}},{key:"_loadComponent",value:function(h){this.attachView(h.hostView),this.tick(),this.components.push(h),this._injector.get(JC,[]).concat(this._bootstrapListeners).forEach(function(M){return M(h)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(h){return h.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Wo(il),Wo(Ia),Wo(Jp),Wo(Ng),Wo(Cu))},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}();function v_(l,c){var d=l.indexOf(c);d>-1&&l.splice(d,1)}var vR=function l(){(0,A.Z)(this,l)},yR=function l(){(0,A.Z)(this,l)},__={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},bR=function(){var l=function(){function c(d,h){(0,A.Z)(this,c),this._compiler=d,this._config=h||__}return(0,D.Z)(c,[{key:"load",value:function(h){return this.loadAndCompile(h)}},{key:"loadAndCompile",value:function(h){var y=this,M=h.split("#"),H=(0,Z.Z)(M,2),W=H[0],X=H[1];return void 0===X&&(X="default"),f(98255)(W).then(function(me){return me[X]}).then(function(me){return Cm(me,W,X)}).then(function(me){return y._compiler.compileModuleAsync(me)})}},{key:"loadFactory",value:function(h){var y=h.split("#"),M=(0,Z.Z)(y,2),H=M[0],W=M[1],X="NgFactory";return void 0===W&&(W="default",X=""),f(98255)(this._config.factoryPathPrefix+H+this._config.factoryPathSuffix).then(function(me){return me[W+X]}).then(function(me){return Cm(me,H,W)})}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Wo(dm),Wo(yR,8))},l.\u0275prov=Rn({token:l,factory:l.\u0275fac}),l}();function Cm(l,c,d){if(!l)throw new Error("Cannot find '".concat(d,"' in '").concat(c,"'"));return l}var SR=function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(){return(0,A.Z)(this,d),c.apply(this,arguments)}return d}(function(l){(0,S.Z)(d,l);var c=(0,v.Z)(d);function d(){return(0,A.Z)(this,d),c.apply(this,arguments)}return d}(pE)),kR=function(l){return null},AR=Ek(null,"core",[{provide:hk,useValue:"unknown"},{provide:kk,deps:[Ia]},{provide:e1,deps:[]},{provide:p_,deps:[]}]),RR=[{provide:_m,useClass:_m,deps:[il,Ia,Jp,Ng,Cu]},{provide:NE,deps:[il],useFactory:function(l){var c=[];return l.onStable.subscribe(function(){for(;c.length;)c.pop()()}),function(d){c.push(d)}}},{provide:Cu,useClass:Cu,deps:[[new Lu,cm]]},{provide:dm,useClass:dm,deps:[]},Y3,{provide:Lg,useFactory:function(){return GB},deps:[]},{provide:Kh,useFactory:function(){return YB},deps:[]},{provide:rp,useFactory:function(l){return Hw(l=l||"undefined"!=typeof $localize&&$localize.locale||X0),l},deps:[[new bh(rp),new Lu,new Fu]]},{provide:mk,useValue:"USD"}],op=function(){var l=function c(d){(0,A.Z)(this,c)};return l.\u0275fac=function(d){return new(d||l)(Wo(_m))},l.\u0275mod=bo({type:l}),l.\u0275inj=Nn({providers:RR}),l}()},19061:function(ue,q,f){"use strict";f.d(q,{Zs:function(){return Hi},Fj:function(){return F},qu:function(){return $e},NI:function(){return Ei},u:function(){return pa},cw:function(){return no},sg:function(){return Vo},u5:function(){return Cl},Fd:function(){return zi},qQ:function(){return ga},Cf:function(){return j},JU:function(){return T},a5:function(){return kn},JJ:function(){return Nn},JL:function(){return wn},F:function(){return Uo},On:function(){return zn},wV:function(){return Si},UX:function(){return pe},kI:function(){return $},_Y:function(){return Vn}});var B=f(88009),U=f(36683),V=f(62467),Z=f(10509),w=f(97154),N=f(18967),b=f(14105),_=f(38999),I=f(40098),D=f(61493),A=f(91925),S=f(85639),v=function(){var ie=function(){function fe(_e,Ce){(0,N.Z)(this,fe),this._renderer=_e,this._elementRef=Ce,this.onChange=function(Re){},this.onTouched=function(){}}return(0,b.Z)(fe,[{key:"setProperty",value:function(Ce,Re){this._renderer.setProperty(this._elementRef.nativeElement,Ce,Re)}},{key:"registerOnTouched",value:function(Ce){this.onTouched=Ce}},{key:"registerOnChange",value:function(Ce){this.onChange=Ce}},{key:"setDisabledState",value:function(Ce){this.setProperty("disabled",Ce)}}]),fe}();return ie.\u0275fac=function(_e){return new(_e||ie)(_.Y36(_.Qsj),_.Y36(_.SBq))},ie.\u0275dir=_.lG2({type:ie}),ie}(),g=function(){var ie=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,w.Z)(Ce);function Ce(){return(0,N.Z)(this,Ce),_e.apply(this,arguments)}return Ce}(v);return ie.\u0275fac=function(){var fe;return function(Ce){return(fe||(fe=_.n5z(ie)))(Ce||ie)}}(),ie.\u0275dir=_.lG2({type:ie,features:[_.qOj]}),ie}(),T=new _.OlP("NgValueAccessor"),E={provide:T,useExisting:(0,_.Gpc)(function(){return F}),multi:!0},O=new _.OlP("CompositionEventMode"),F=function(){var ie=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,w.Z)(Ce);function Ce(Re,Ge,St){var ht;return(0,N.Z)(this,Ce),(ht=_e.call(this,Re,Ge))._compositionMode=St,ht._composing=!1,null==ht._compositionMode&&(ht._compositionMode=!function(){var ie=(0,I.q)()?(0,I.q)().getUserAgent():"";return/android (\d+)/.test(ie.toLowerCase())}()),ht}return(0,b.Z)(Ce,[{key:"writeValue",value:function(Ge){this.setProperty("value",null==Ge?"":Ge)}},{key:"_handleInput",value:function(Ge){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ge)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(Ge){this._composing=!1,this._compositionMode&&this.onChange(Ge)}}]),Ce}(v);return ie.\u0275fac=function(_e){return new(_e||ie)(_.Y36(_.Qsj),_.Y36(_.SBq),_.Y36(O,8))},ie.\u0275dir=_.lG2({type:ie,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(_e,Ce){1&_e&&_.NdJ("input",function(Ge){return Ce._handleInput(Ge.target.value)})("blur",function(){return Ce.onTouched()})("compositionstart",function(){return Ce._compositionStart()})("compositionend",function(Ge){return Ce._compositionEnd(Ge.target.value)})},features:[_._Bn([E]),_.qOj]}),ie}();function z(ie){return null==ie||0===ie.length}function K(ie){return null!=ie&&"number"==typeof ie.length}var j=new _.OlP("NgValidators"),J=new _.OlP("NgAsyncValidators"),ee=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,$=function(){function ie(){(0,N.Z)(this,ie)}return(0,b.Z)(ie,null,[{key:"min",value:function(_e){return ae(_e)}},{key:"max",value:function(_e){return se(_e)}},{key:"required",value:function(_e){return ce(_e)}},{key:"requiredTrue",value:function(_e){return le(_e)}},{key:"email",value:function(_e){return function(ie){return z(ie.value)||ee.test(ie.value)?null:{email:!0}}(_e)}},{key:"minLength",value:function(_e){return function(ie){return function(fe){return z(fe.value)||!K(fe.value)?null:fe.value.length<ie?{minlength:{requiredLength:ie,actualLength:fe.value.length}}:null}}(_e)}},{key:"maxLength",value:function(_e){return function(ie){return function(fe){return K(fe.value)&&fe.value.length>ie?{maxlength:{requiredLength:ie,actualLength:fe.value.length}}:null}}(_e)}},{key:"pattern",value:function(_e){return function(ie){return ie?("string"==typeof ie?(_e="","^"!==ie.charAt(0)&&(_e+="^"),_e+=ie,"$"!==ie.charAt(ie.length-1)&&(_e+="$"),fe=new RegExp(_e)):(_e=ie.toString(),fe=ie),function(Ce){if(z(Ce.value))return null;var Re=Ce.value;return fe.test(Re)?null:{pattern:{requiredPattern:_e,actualValue:Re}}}):qe;var fe,_e}(_e)}},{key:"nullValidator",value:function(_e){return null}},{key:"compose",value:function(_e){return dt(_e)}},{key:"composeAsync",value:function(_e){return Bt(_e)}}]),ie}();function ae(ie){return function(fe){if(z(fe.value)||z(ie))return null;var _e=parseFloat(fe.value);return!isNaN(_e)&&_e<ie?{min:{min:ie,actual:fe.value}}:null}}function se(ie){return function(fe){if(z(fe.value)||z(ie))return null;var _e=parseFloat(fe.value);return!isNaN(_e)&&_e>ie?{max:{max:ie,actual:fe.value}}:null}}function ce(ie){return z(ie.value)?{required:!0}:null}function le(ie){return!0===ie.value?null:{required:!0}}function qe(ie){return null}function _t(ie){return null!=ie}function yt(ie){var fe=(0,_.QGY)(ie)?(0,D.D)(ie):ie;return(0,_.CqO)(fe),fe}function Ft(ie){var fe={};return ie.forEach(function(_e){fe=null!=_e?Object.assign(Object.assign({},fe),_e):fe}),0===Object.keys(fe).length?null:fe}function xe(ie,fe){return fe.map(function(_e){return _e(ie)})}function je(ie){return ie.map(function(fe){return function(ie){return!ie.validate}(fe)?fe:function(_e){return fe.validate(_e)}})}function dt(ie){if(!ie)return null;var fe=ie.filter(_t);return 0==fe.length?null:function(_e){return Ft(xe(_e,fe))}}function Ke(ie){return null!=ie?dt(je(ie)):null}function Bt(ie){if(!ie)return null;var fe=ie.filter(_t);return 0==fe.length?null:function(_e){var Ce=xe(_e,fe).map(yt);return(0,A.D)(Ce).pipe((0,S.U)(Ft))}}function xt(ie){return null!=ie?Bt(je(ie)):null}function vt(ie,fe){return null===ie?[fe]:Array.isArray(ie)?[].concat((0,V.Z)(ie),[fe]):[ie,fe]}function Qt(ie){return ie._rawValidators}function Ht(ie){return ie._rawAsyncValidators}function Ct(ie){return ie?Array.isArray(ie)?ie:[ie]:[]}function qt(ie,fe){return Array.isArray(ie)?ie.includes(fe):ie===fe}function bt(ie,fe){var _e=Ct(fe);return Ct(ie).forEach(function(Re){qt(_e,Re)||_e.push(Re)}),_e}function en(ie,fe){return Ct(fe).filter(function(_e){return!qt(ie,_e)})}var Nt=function(){var ie=function(){function fe(){(0,N.Z)(this,fe),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return(0,b.Z)(fe,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(Ce){this._rawValidators=Ce||[],this._composedValidatorFn=Ke(this._rawValidators)}},{key:"_setAsyncValidators",value:function(Ce){this._rawAsyncValidators=Ce||[],this._composedAsyncValidatorFn=xt(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(Ce){this._onDestroyCallbacks.push(Ce)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(Ce){return Ce()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(Ce)}},{key:"hasError",value:function(Ce,Re){return!!this.control&&this.control.hasError(Ce,Re)}},{key:"getError",value:function(Ce,Re){return this.control?this.control.getError(Ce,Re):null}}]),fe}();return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275dir=_.lG2({type:ie}),ie}(),rn=function(){var ie=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,w.Z)(Ce);function Ce(){return(0,N.Z)(this,Ce),_e.apply(this,arguments)}return(0,b.Z)(Ce,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),Ce}(Nt);return ie.\u0275fac=function(){var fe;return function(Ce){return(fe||(fe=_.n5z(ie)))(Ce||ie)}}(),ie.\u0275dir=_.lG2({type:ie,features:[_.qOj]}),ie}(),kn=function(ie){(0,Z.Z)(_e,ie);var fe=(0,w.Z)(_e);function _e(){var Ce;return(0,N.Z)(this,_e),(Ce=fe.apply(this,arguments))._parent=null,Ce.name=null,Ce.valueAccessor=null,Ce}return _e}(Nt),Ln=function(){function ie(fe){(0,N.Z)(this,ie),this._cd=fe}return(0,b.Z)(ie,[{key:"is",value:function(_e){var Ce,Re,Ge;return"submitted"===_e?!!(null===(Ce=this._cd)||void 0===Ce?void 0:Ce.submitted):!!(null===(Ge=null===(Re=this._cd)||void 0===Re?void 0:Re.control)||void 0===Ge?void 0:Ge[_e])}}]),ie}(),Nn=function(){var ie=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,w.Z)(Ce);function Ce(Re){return(0,N.Z)(this,Ce),_e.call(this,Re)}return Ce}(Ln);return ie.\u0275fac=function(_e){return new(_e||ie)(_.Y36(kn,2))},ie.\u0275dir=_.lG2({type:ie,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(_e,Ce){2&_e&&_.ekj("ng-untouched",Ce.is("untouched"))("ng-touched",Ce.is("touched"))("ng-pristine",Ce.is("pristine"))("ng-dirty",Ce.is("dirty"))("ng-valid",Ce.is("valid"))("ng-invalid",Ce.is("invalid"))("ng-pending",Ce.is("pending"))},features:[_.qOj]}),ie}(),wn=function(){var ie=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,w.Z)(Ce);function Ce(Re){return(0,N.Z)(this,Ce),_e.call(this,Re)}return Ce}(Ln);return ie.\u0275fac=function(_e){return new(_e||ie)(_.Y36(rn,10))},ie.\u0275dir=_.lG2({type:ie,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(_e,Ce){2&_e&&_.ekj("ng-untouched",Ce.is("untouched"))("ng-touched",Ce.is("touched"))("ng-pristine",Ce.is("pristine"))("ng-dirty",Ce.is("dirty"))("ng-valid",Ce.is("valid"))("ng-invalid",Ce.is("invalid"))("ng-pending",Ce.is("pending"))("ng-submitted",Ce.is("submitted"))},features:[_.qOj]}),ie}();function nn(ie,fe){return[].concat((0,V.Z)(fe.path),[ie])}function ln(ie,fe){Yn(ie,fe),fe.valueAccessor.writeValue(ie.value),function(ie,fe){fe.valueAccessor.registerOnChange(function(_e){ie._pendingValue=_e,ie._pendingChange=!0,ie._pendingDirty=!0,"change"===ie.updateOn&&ur(ie,fe)})}(ie,fe),function(ie,fe){var _e=function(Re,Ge){fe.valueAccessor.writeValue(Re),Ge&&fe.viewToModelUpdate(Re)};ie.registerOnChange(_e),fe._registerOnDestroy(function(){ie._unregisterOnChange(_e)})}(ie,fe),function(ie,fe){fe.valueAccessor.registerOnTouched(function(){ie._pendingTouched=!0,"blur"===ie.updateOn&&ie._pendingChange&&ur(ie,fe),"submit"!==ie.updateOn&&ie.markAsTouched()})}(ie,fe),function(ie,fe){if(fe.valueAccessor.setDisabledState){var _e=function(Re){fe.valueAccessor.setDisabledState(Re)};ie.registerOnDisabledChange(_e),fe._registerOnDestroy(function(){ie._unregisterOnDisabledChange(_e)})}}(ie,fe)}function yn(ie,fe){var Ce=function(){};fe.valueAccessor&&(fe.valueAccessor.registerOnChange(Ce),fe.valueAccessor.registerOnTouched(Ce)),Cn(ie,fe),ie&&(fe._invokeOnDestroyCallbacks(),ie._registerOnCollectionChange(function(){}))}function Tn(ie,fe){ie.forEach(function(_e){_e.registerOnValidatorChange&&_e.registerOnValidatorChange(fe)})}function Yn(ie,fe){var _e=Qt(ie);null!==fe.validator?ie.setValidators(vt(_e,fe.validator)):"function"==typeof _e&&ie.setValidators([_e]);var Ce=Ht(ie);null!==fe.asyncValidator?ie.setAsyncValidators(vt(Ce,fe.asyncValidator)):"function"==typeof Ce&&ie.setAsyncValidators([Ce]);var Re=function(){return ie.updateValueAndValidity()};Tn(fe._rawValidators,Re),Tn(fe._rawAsyncValidators,Re)}function Cn(ie,fe){var _e=!1;if(null!==ie){if(null!==fe.validator){var Ce=Qt(ie);if(Array.isArray(Ce)&&Ce.length>0){var Re=Ce.filter(function(gt){return gt!==fe.validator});Re.length!==Ce.length&&(_e=!0,ie.setValidators(Re))}}if(null!==fe.asyncValidator){var Ge=Ht(ie);if(Array.isArray(Ge)&&Ge.length>0){var St=Ge.filter(function(gt){return gt!==fe.asyncValidator});St.length!==Ge.length&&(_e=!0,ie.setAsyncValidators(St))}}}var ht=function(){};return Tn(fe._rawValidators,ht),Tn(fe._rawAsyncValidators,ht),_e}function ur(ie,fe){ie._pendingDirty&&ie.markAsDirty(),ie.setValue(ie._pendingValue,{emitModelToViewChange:!1}),fe.viewToModelUpdate(ie._pendingValue),ie._pendingChange=!1}function Rt(ie,fe){Yn(ie,fe)}function he(ie,fe){if(!ie.hasOwnProperty("model"))return!1;var _e=ie.model;return!!_e.isFirstChange()||!Object.is(fe,_e.currentValue)}function Ne(ie,fe){ie._syncPendingControls(),fe.forEach(function(_e){var Ce=_e.control;"submit"===Ce.updateOn&&Ce._pendingChange&&(_e.viewToModelUpdate(Ce._pendingValue),Ce._pendingChange=!1)})}function Le(ie,fe){if(!fe)return null;Array.isArray(fe);var _e=void 0,Ce=void 0,Re=void 0;return fe.forEach(function(Ge){Ge.constructor===F?_e=Ge:function(ie){return Object.getPrototypeOf(ie.constructor)===g}(Ge)?Ce=Ge:Re=Ge}),Re||Ce||_e||null}function ze(ie,fe){var _e=ie.indexOf(fe);_e>-1&&ie.splice(_e,1)}var an="VALID",jn="INVALID",Rr="PENDING",Hr="DISABLED";function Yr(ie){return(po(ie)?ie.validators:ie)||null}function co(ie){return Array.isArray(ie)?Ke(ie):ie||null}function Zi(ie,fe){return(po(fe)?fe.asyncValidators:ie)||null}function bo(ie){return Array.isArray(ie)?xt(ie):ie||null}function po(ie){return null!=ie&&!Array.isArray(ie)&&"object"==typeof ie}var Xo=function(){function ie(fe,_e){(0,N.Z)(this,ie),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=fe,this._rawAsyncValidators=_e,this._composedValidatorFn=co(this._rawValidators),this._composedAsyncValidatorFn=bo(this._rawAsyncValidators)}return(0,b.Z)(ie,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(_e){this._rawValidators=this._composedValidatorFn=_e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(_e){this._rawAsyncValidators=this._composedAsyncValidatorFn=_e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===an}},{key:"invalid",get:function(){return this.status===jn}},{key:"pending",get:function(){return this.status==Rr}},{key:"disabled",get:function(){return this.status===Hr}},{key:"enabled",get:function(){return this.status!==Hr}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(_e){this._rawValidators=_e,this._composedValidatorFn=co(_e)}},{key:"setAsyncValidators",value:function(_e){this._rawAsyncValidators=_e,this._composedAsyncValidatorFn=bo(_e)}},{key:"addValidators",value:function(_e){this.setValidators(bt(_e,this._rawValidators))}},{key:"addAsyncValidators",value:function(_e){this.setAsyncValidators(bt(_e,this._rawAsyncValidators))}},{key:"removeValidators",value:function(_e){this.setValidators(en(_e,this._rawValidators))}},{key:"removeAsyncValidators",value:function(_e){this.setAsyncValidators(en(_e,this._rawAsyncValidators))}},{key:"hasValidator",value:function(_e){return qt(this._rawValidators,_e)}},{key:"hasAsyncValidator",value:function(_e){return qt(this._rawAsyncValidators,_e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!_e.onlySelf&&this._parent.markAsTouched(_e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(_e){return _e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(Ce){Ce.markAsUntouched({onlySelf:!0})}),this._parent&&!_e.onlySelf&&this._parent._updateTouched(_e)}},{key:"markAsDirty",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!_e.onlySelf&&this._parent.markAsDirty(_e)}},{key:"markAsPristine",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(Ce){Ce.markAsPristine({onlySelf:!0})}),this._parent&&!_e.onlySelf&&this._parent._updatePristine(_e)}},{key:"markAsPending",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Rr,!1!==_e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!_e.onlySelf&&this._parent.markAsPending(_e)}},{key:"disable",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ce=this._parentMarkedDirty(_e.onlySelf);this.status=Hr,this.errors=null,this._forEachChild(function(Re){Re.disable(Object.assign(Object.assign({},_e),{onlySelf:!0}))}),this._updateValue(),!1!==_e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},_e),{skipPristineCheck:Ce})),this._onDisabledChange.forEach(function(Re){return Re(!0)})}},{key:"enable",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ce=this._parentMarkedDirty(_e.onlySelf);this.status=an,this._forEachChild(function(Re){Re.enable(Object.assign(Object.assign({},_e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:_e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},_e),{skipPristineCheck:Ce})),this._onDisabledChange.forEach(function(Re){return Re(!1)})}},{key:"_updateAncestors",value:function(_e){this._parent&&!_e.onlySelf&&(this._parent.updateValueAndValidity(_e),_e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(_e){this._parent=_e}},{key:"updateValueAndValidity",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===an||this.status===Rr)&&this._runAsyncValidator(_e.emitEvent)),!1!==_e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!_e.onlySelf&&this._parent.updateValueAndValidity(_e)}},{key:"_updateTreeValidity",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(Ce){return Ce._updateTreeValidity(_e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:_e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Hr:an}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(_e){var Ce=this;if(this.asyncValidator){this.status=Rr,this._hasOwnPendingAsyncValidator=!0;var Re=yt(this.asyncValidator(this));this._asyncValidationSubscription=Re.subscribe(function(Ge){Ce._hasOwnPendingAsyncValidator=!1,Ce.setErrors(Ge,{emitEvent:_e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(_e){var Ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=_e,this._updateControlsErrors(!1!==Ce.emitEvent)}},{key:"get",value:function(_e){return function(ie,fe,_e){if(null==fe||(Array.isArray(fe)||(fe=fe.split(".")),Array.isArray(fe)&&0===fe.length))return null;var Ce=ie;return fe.forEach(function(Re){Ce=Ce instanceof no?Ce.controls.hasOwnProperty(Re)?Ce.controls[Re]:null:Ce instanceof vi&&Ce.at(Re)||null}),Ce}(this,_e)}},{key:"getError",value:function(_e,Ce){var Re=Ce?this.get(Ce):this;return Re&&Re.errors?Re.errors[_e]:null}},{key:"hasError",value:function(_e,Ce){return!!this.getError(_e,Ce)}},{key:"root",get:function(){for(var _e=this;_e._parent;)_e=_e._parent;return _e}},{key:"_updateControlsErrors",value:function(_e){this.status=this._calculateStatus(),_e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(_e)}},{key:"_initObservables",value:function(){this.valueChanges=new _.vpe,this.statusChanges=new _.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Hr:this.errors?jn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Rr)?Rr:this._anyControlsHaveStatus(jn)?jn:an}},{key:"_anyControlsHaveStatus",value:function(_e){return this._anyControls(function(Ce){return Ce.status===_e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(_e){return _e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(_e){return _e.touched})}},{key:"_updatePristine",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!_e.onlySelf&&this._parent._updatePristine(_e)}},{key:"_updateTouched",value:function(){var _e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!_e.onlySelf&&this._parent._updateTouched(_e)}},{key:"_isBoxedValue",value:function(_e){return"object"==typeof _e&&null!==_e&&2===Object.keys(_e).length&&"value"in _e&&"disabled"in _e}},{key:"_registerOnCollectionChange",value:function(_e){this._onCollectionChange=_e}},{key:"_setUpdateStrategy",value:function(_e){po(_e)&&null!=_e.updateOn&&(this._updateOn=_e.updateOn)}},{key:"_parentMarkedDirty",value:function(_e){return!_e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),ie}(),Ei=function(ie){(0,Z.Z)(_e,ie);var fe=(0,w.Z)(_e);function _e(){var Ce,Re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,Ge=arguments.length>1?arguments[1]:void 0,St=arguments.length>2?arguments[2]:void 0;return(0,N.Z)(this,_e),(Ce=fe.call(this,Yr(Ge),Zi(St,Ge)))._onChange=[],Ce._applyFormState(Re),Ce._setUpdateStrategy(Ge),Ce._initObservables(),Ce.updateValueAndValidity({onlySelf:!0,emitEvent:!!Ce.asyncValidator}),Ce}return(0,b.Z)(_e,[{key:"setValue",value:function(Re){var Ge=this,St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=Re,this._onChange.length&&!1!==St.emitModelToViewChange&&this._onChange.forEach(function(ht){return ht(Ge.value,!1!==St.emitViewToModelChange)}),this.updateValueAndValidity(St)}},{key:"patchValue",value:function(Re){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(Re,Ge)}},{key:"reset",value:function(){var Re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(Re),this.markAsPristine(Ge),this.markAsUntouched(Ge),this.setValue(this.value,Ge),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(Re){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(Re){this._onChange.push(Re)}},{key:"_unregisterOnChange",value:function(Re){ze(this._onChange,Re)}},{key:"registerOnDisabledChange",value:function(Re){this._onDisabledChange.push(Re)}},{key:"_unregisterOnDisabledChange",value:function(Re){ze(this._onDisabledChange,Re)}},{key:"_forEachChild",value:function(Re){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(Re){this._isBoxedValue(Re)?(this.value=this._pendingValue=Re.value,Re.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Re}}]),_e}(Xo),no=function(ie){(0,Z.Z)(_e,ie);var fe=(0,w.Z)(_e);function _e(Ce,Re,Ge){var St;return(0,N.Z)(this,_e),(St=fe.call(this,Yr(Re),Zi(Ge,Re))).controls=Ce,St._initObservables(),St._setUpdateStrategy(Re),St._setUpControls(),St.updateValueAndValidity({onlySelf:!0,emitEvent:!!St.asyncValidator}),St}return(0,b.Z)(_e,[{key:"registerControl",value:function(Re,Ge){return this.controls[Re]?this.controls[Re]:(this.controls[Re]=Ge,Ge.setParent(this),Ge._registerOnCollectionChange(this._onCollectionChange),Ge)}},{key:"addControl",value:function(Re,Ge){var St=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(Re,Ge),this.updateValueAndValidity({emitEvent:St.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(Re){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(function(){}),delete this.controls[Re],this.updateValueAndValidity({emitEvent:Ge.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(Re,Ge){var St=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(function(){}),delete this.controls[Re],Ge&&this.registerControl(Re,Ge),this.updateValueAndValidity({emitEvent:St.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(Re){return this.controls.hasOwnProperty(Re)&&this.controls[Re].enabled}},{key:"setValue",value:function(Re){var Ge=this,St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(Re),Object.keys(Re).forEach(function(ht){Ge._throwIfControlMissing(ht),Ge.controls[ht].setValue(Re[ht],{onlySelf:!0,emitEvent:St.emitEvent})}),this.updateValueAndValidity(St)}},{key:"patchValue",value:function(Re){var Ge=this,St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Re&&(Object.keys(Re).forEach(function(ht){Ge.controls[ht]&&Ge.controls[ht].patchValue(Re[ht],{onlySelf:!0,emitEvent:St.emitEvent})}),this.updateValueAndValidity(St))}},{key:"reset",value:function(){var Re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(St,ht){St.reset(Re[ht],{onlySelf:!0,emitEvent:Ge.emitEvent})}),this._updatePristine(Ge),this._updateTouched(Ge),this.updateValueAndValidity(Ge)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(Re,Ge,St){return Re[St]=Ge instanceof Ei?Ge.value:Ge.getRawValue(),Re})}},{key:"_syncPendingControls",value:function(){var Re=this._reduceChildren(!1,function(Ge,St){return!!St._syncPendingControls()||Ge});return Re&&this.updateValueAndValidity({onlySelf:!0}),Re}},{key:"_throwIfControlMissing",value:function(Re){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[Re])throw new Error("Cannot find form control with name: ".concat(Re,"."))}},{key:"_forEachChild",value:function(Re){var Ge=this;Object.keys(this.controls).forEach(function(St){var ht=Ge.controls[St];ht&&Re(ht,St)})}},{key:"_setUpControls",value:function(){var Re=this;this._forEachChild(function(Ge){Ge.setParent(Re),Ge._registerOnCollectionChange(Re._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(Re){for(var Ge=0,St=Object.keys(this.controls);Ge<St.length;Ge++){var ht=St[Ge],gt=this.controls[ht];if(this.contains(ht)&&Re(gt))return!0}return!1}},{key:"_reduceValue",value:function(){var Re=this;return this._reduceChildren({},function(Ge,St,ht){return(St.enabled||Re.disabled)&&(Ge[ht]=St.value),Ge})}},{key:"_reduceChildren",value:function(Re,Ge){var St=Re;return this._forEachChild(function(ht,gt){St=Ge(St,ht,gt)}),St}},{key:"_allControlsDisabled",value:function(){for(var Re=0,Ge=Object.keys(this.controls);Re<Ge.length;Re++)if(this.controls[Ge[Re]].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(Re){this._forEachChild(function(Ge,St){if(void 0===Re[St])throw new Error("Must supply a value for form control with name: '".concat(St,"'."))})}}]),_e}(Xo),vi=function(ie){(0,Z.Z)(_e,ie);var fe=(0,w.Z)(_e);function _e(Ce,Re,Ge){var St;return(0,N.Z)(this,_e),(St=fe.call(this,Yr(Re),Zi(Ge,Re))).controls=Ce,St._initObservables(),St._setUpdateStrategy(Re),St._setUpControls(),St.updateValueAndValidity({onlySelf:!0,emitEvent:!!St.asyncValidator}),St}return(0,b.Z)(_e,[{key:"at",value:function(Re){return this.controls[Re]}},{key:"push",value:function(Re){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(Re),this._registerControl(Re),this.updateValueAndValidity({emitEvent:Ge.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(Re,Ge){var St=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(Re,0,Ge),this._registerControl(Ge),this.updateValueAndValidity({emitEvent:St.emitEvent})}},{key:"removeAt",value:function(Re){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(function(){}),this.controls.splice(Re,1),this.updateValueAndValidity({emitEvent:Ge.emitEvent})}},{key:"setControl",value:function(Re,Ge){var St=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(function(){}),this.controls.splice(Re,1),Ge&&(this.controls.splice(Re,0,Ge),this._registerControl(Ge)),this.updateValueAndValidity({emitEvent:St.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(Re){var Ge=this,St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(Re),Re.forEach(function(ht,gt){Ge._throwIfControlMissing(gt),Ge.at(gt).setValue(ht,{onlySelf:!0,emitEvent:St.emitEvent})}),this.updateValueAndValidity(St)}},{key:"patchValue",value:function(Re){var Ge=this,St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Re&&(Re.forEach(function(ht,gt){Ge.at(gt)&&Ge.at(gt).patchValue(ht,{onlySelf:!0,emitEvent:St.emitEvent})}),this.updateValueAndValidity(St))}},{key:"reset",value:function(){var Re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(St,ht){St.reset(Re[ht],{onlySelf:!0,emitEvent:Ge.emitEvent})}),this._updatePristine(Ge),this._updateTouched(Ge),this.updateValueAndValidity(Ge)}},{key:"getRawValue",value:function(){return this.controls.map(function(Re){return Re instanceof Ei?Re.value:Re.getRawValue()})}},{key:"clear",value:function(){var Re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(Ge){return Ge._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Re.emitEvent}))}},{key:"_syncPendingControls",value:function(){var Re=this.controls.reduce(function(Ge,St){return!!St._syncPendingControls()||Ge},!1);return Re&&this.updateValueAndValidity({onlySelf:!0}),Re}},{key:"_throwIfControlMissing",value:function(Re){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(Re))throw new Error("Cannot find form control at index ".concat(Re))}},{key:"_forEachChild",value:function(Re){this.controls.forEach(function(Ge,St){Re(Ge,St)})}},{key:"_updateValue",value:function(){var Re=this;this.value=this.controls.filter(function(Ge){return Ge.enabled||Re.disabled}).map(function(Ge){return Ge.value})}},{key:"_anyControls",value:function(Re){return this.controls.some(function(Ge){return Ge.enabled&&Re(Ge)})}},{key:"_setUpControls",value:function(){var Re=this;this._forEachChild(function(Ge){return Re._registerControl(Ge)})}},{key:"_checkAllValuesPresent",value:function(Re){this._forEachChild(function(Ge,St){if(void 0===Re[St])throw new Error("Must supply a value for form control at index: ".concat(St,"."))})}},{key:"_allControlsDisabled",value:function(){var Ge,Re=(0,U.Z)(this.controls);try{for(Re.s();!(Ge=Re.n()).done;)if(Ge.value.enabled)return!1}catch(ht){Re.e(ht)}finally{Re.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(Re){Re.setParent(this),Re._registerOnCollectionChange(this._onCollectionChange)}}]),_e}(Xo),Yi={provide:rn,useExisting:(0,_.Gpc)(function(){return Uo})},fi=function(){return Promise.resolve(null)}(),Uo=function(){var ie=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,w.Z)(Ce);function Ce(Re,Ge){var St;return(0,N.Z)(this,Ce),(St=_e.call(this)).submitted=!1,St._directives=[],St.ngSubmit=new _.vpe,St.form=new no({},Ke(Re),xt(Ge)),St}return(0,b.Z)(Ce,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(Ge){var St=this;fi.then(function(){var ht=St._findContainer(Ge.path);Ge.control=ht.registerControl(Ge.name,Ge.control),ln(Ge.control,Ge),Ge.control.updateValueAndValidity({emitEvent:!1}),St._directives.push(Ge)})}},{key:"getControl",value:function(Ge){return this.form.get(Ge.path)}},{key:"removeControl",value:function(Ge){var St=this;fi.then(function(){var ht=St._findContainer(Ge.path);ht&&ht.removeControl(Ge.name),ze(St._directives,Ge)})}},{key:"addFormGroup",value:function(Ge){var St=this;fi.then(function(){var ht=St._findContainer(Ge.path),gt=new no({});Rt(gt,Ge),ht.registerControl(Ge.name,gt),gt.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(Ge){var St=this;fi.then(function(){var ht=St._findContainer(Ge.path);ht&&ht.removeControl(Ge.name)})}},{key:"getFormGroup",value:function(Ge){return this.form.get(Ge.path)}},{key:"updateModel",value:function(Ge,St){var ht=this;fi.then(function(){ht.form.get(Ge.path).setValue(St)})}},{key:"setValue",value:function(Ge){this.control.setValue(Ge)}},{key:"onSubmit",value:function(Ge){return this.submitted=!0,Ne(this.form,this._directives),this.ngSubmit.emit(Ge),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Ge),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(Ge){return Ge.pop(),Ge.length?this.form.get(Ge):this.form}}]),Ce}(rn);return ie.\u0275fac=function(_e){return new(_e||ie)(_.Y36(j,10),_.Y36(J,10))},ie.\u0275dir=_.lG2({type:ie,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(_e,Ce){1&_e&&_.NdJ("submit",function(Ge){return Ce.onSubmit(Ge)})("reset",function(){return Ce.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([Yi]),_.qOj]}),ie}(),Xt={provide:kn,useExisting:(0,_.Gpc)(function(){return zn})},Gn=function(){return Promise.resolve(null)}(),zn=function(){var ie=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,w.Z)(Ce);function Ce(Re,Ge,St,ht){var gt;return(0,N.Z)(this,Ce),(gt=_e.call(this)).control=new Ei,gt._registered=!1,gt.update=new _.vpe,gt._parent=Re,gt._setValidators(Ge),gt._setAsyncValidators(St),gt.valueAccessor=Le((0,B.Z)(gt),ht),gt}return(0,b.Z)(Ce,[{key:"ngOnChanges",value:function(Ge){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in Ge&&this._updateDisabled(Ge),he(Ge,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?nn(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(Ge){this.viewModel=Ge,this.update.emit(Ge)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){ln(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(Ge){var St=this;Gn.then(function(){St.control.setValue(Ge,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(Ge){var St=this,ht=Ge.isDisabled.currentValue,gt=""===ht||ht&&"false"!==ht;Gn.then(function(){gt&&!St.control.disabled?St.control.disable():!gt&&St.control.disabled&&St.control.enable()})}}]),Ce}(kn);return ie.\u0275fac=function(_e){return new(_e||ie)(_.Y36(rn,9),_.Y36(j,10),_.Y36(J,10),_.Y36(T,10))},ie.\u0275dir=_.lG2({type:ie,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[_._Bn([Xt]),_.qOj,_.TTD]}),ie}(),Vn=function(){var ie=function fe(){(0,N.Z)(this,fe)};return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275dir=_.lG2({type:ie,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ie}(),si={provide:T,useExisting:(0,_.Gpc)(function(){return Si}),multi:!0},Si=function(){var ie=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,w.Z)(Ce);function Ce(){return(0,N.Z)(this,Ce),_e.apply(this,arguments)}return(0,b.Z)(Ce,[{key:"writeValue",value:function(Ge){this.setProperty("value",null==Ge?"":Ge)}},{key:"registerOnChange",value:function(Ge){this.onChange=function(St){Ge(""==St?null:parseFloat(St))}}}]),Ce}(g);return ie.\u0275fac=function(){var fe;return function(Ce){return(fe||(fe=_.n5z(ie)))(Ce||ie)}}(),ie.\u0275dir=_.lG2({type:ie,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(_e,Ce){1&_e&&_.NdJ("input",function(Ge){return Ce.onChange(Ge.target.value)})("blur",function(){return Ce.onTouched()})},features:[_._Bn([si]),_.qOj]}),ie}(),Li=function(){var ie=function fe(){(0,N.Z)(this,fe)};return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275mod=_.oAB({type:ie}),ie.\u0275inj=_.cJS({}),ie}(),Ho=new _.OlP("NgModelWithFormControlWarning"),Ji={provide:rn,useExisting:(0,_.Gpc)(function(){return Vo})},Vo=function(){var ie=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,w.Z)(Ce);function Ce(Re,Ge){var St;return(0,N.Z)(this,Ce),(St=_e.call(this)).validators=Re,St.asyncValidators=Ge,St.submitted=!1,St._onCollectionChange=function(){return St._updateDomValue()},St.directives=[],St.form=null,St.ngSubmit=new _.vpe,St._setValidators(Re),St._setAsyncValidators(Ge),St}return(0,b.Z)(Ce,[{key:"ngOnChanges",value:function(Ge){this._checkFormPresent(),Ge.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(Cn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(Ge){var St=this.form.get(Ge.path);return ln(St,Ge),St.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ge),St}},{key:"getControl",value:function(Ge){return this.form.get(Ge.path)}},{key:"removeControl",value:function(Ge){yn(Ge.control||null,Ge),ze(this.directives,Ge)}},{key:"addFormGroup",value:function(Ge){this._setUpFormContainer(Ge)}},{key:"removeFormGroup",value:function(Ge){this._cleanUpFormContainer(Ge)}},{key:"getFormGroup",value:function(Ge){return this.form.get(Ge.path)}},{key:"addFormArray",value:function(Ge){this._setUpFormContainer(Ge)}},{key:"removeFormArray",value:function(Ge){this._cleanUpFormContainer(Ge)}},{key:"getFormArray",value:function(Ge){return this.form.get(Ge.path)}},{key:"updateModel",value:function(Ge,St){this.form.get(Ge.path).setValue(St)}},{key:"onSubmit",value:function(Ge){return this.submitted=!0,Ne(this.form,this.directives),this.ngSubmit.emit(Ge),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Ge),this.submitted=!1}},{key:"_updateDomValue",value:function(){var Ge=this;this.directives.forEach(function(St){var ht=St.control,gt=Ge.form.get(St.path);ht!==gt&&(yn(ht||null,St),gt instanceof Ei&&(ln(gt,St),St.control=gt))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(Ge){var St=this.form.get(Ge.path);Rt(St,Ge),St.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(Ge){if(this.form){var St=this.form.get(Ge.path);St&&function(ie,fe){return Cn(ie,fe)}(St,Ge)&&St.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Yn(this.form,this),this._oldForm&&Cn(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),Ce}(rn);return ie.\u0275fac=function(_e){return new(_e||ie)(_.Y36(j,10),_.Y36(J,10))},ie.\u0275dir=_.lG2({type:ie,selectors:[["","formGroup",""]],hostBindings:function(_e,Ce){1&_e&&_.NdJ("submit",function(Ge){return Ce.onSubmit(Ge)})("reset",function(){return Ce.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([Ji]),_.qOj,_.TTD]}),ie}(),ho={provide:kn,useExisting:(0,_.Gpc)(function(){return pa})},pa=function(){var ie=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,w.Z)(Ce);function Ce(Re,Ge,St,ht,gt){var Jr;return(0,N.Z)(this,Ce),(Jr=_e.call(this))._ngModelWarningConfig=gt,Jr._added=!1,Jr.update=new _.vpe,Jr._ngModelWarningSent=!1,Jr._parent=Re,Jr._setValidators(Ge),Jr._setAsyncValidators(St),Jr.valueAccessor=Le((0,B.Z)(Jr),ht),Jr}return(0,b.Z)(Ce,[{key:"isDisabled",set:function(Ge){}},{key:"ngOnChanges",value:function(Ge){this._added||this._setUpControl(),he(Ge,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(Ge){this.viewModel=Ge,this.update.emit(Ge)}},{key:"path",get:function(){return nn(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),Ce}(kn);return ie.\u0275fac=function(_e){return new(_e||ie)(_.Y36(rn,13),_.Y36(j,10),_.Y36(J,10),_.Y36(T,10),_.Y36(Ho,8))},ie.\u0275dir=_.lG2({type:ie,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[_._Bn([ho]),_.qOj,_.TTD]}),ie._ngModelWarningSentOnce=!1,ie}(),Ui=function(){var ie=function(){function fe(){(0,N.Z)(this,fe),this._validator=qe}return(0,b.Z)(fe,[{key:"handleChanges",value:function(Ce){if(this.inputName in Ce){var Re=this.normalizeInput(Ce[this.inputName].currentValue);this._validator=this.createValidator(Re),this._onChange&&this._onChange()}}},{key:"validate",value:function(Ce){return this._validator(Ce)}},{key:"registerOnValidatorChange",value:function(Ce){this._onChange=Ce}}]),fe}();return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275dir=_.lG2({type:ie}),ie}(),ma={provide:j,useExisting:(0,_.Gpc)(function(){return zi}),multi:!0},zi=function(){var ie=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,w.Z)(Ce);function Ce(){var Re;return(0,N.Z)(this,Ce),(Re=_e.apply(this,arguments)).inputName="max",Re.normalizeInput=function(Ge){return parseFloat(Ge)},Re.createValidator=function(Ge){return se(Ge)},Re}return(0,b.Z)(Ce,[{key:"ngOnChanges",value:function(Ge){this.handleChanges(Ge)}}]),Ce}(Ui);return ie.\u0275fac=function(){var fe;return function(Ce){return(fe||(fe=_.n5z(ie)))(Ce||ie)}}(),ie.\u0275dir=_.lG2({type:ie,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(_e,Ce){var Re;2&_e&&_.uIk("max",null!==(Re=Ce.max)&&void 0!==Re?Re:null)},inputs:{max:"max"},features:[_._Bn([ma]),_.qOj,_.TTD]}),ie}(),va={provide:j,useExisting:(0,_.Gpc)(function(){return ga}),multi:!0},ga=function(){var ie=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,w.Z)(Ce);function Ce(){var Re;return(0,N.Z)(this,Ce),(Re=_e.apply(this,arguments)).inputName="min",Re.normalizeInput=function(Ge){return parseFloat(Ge)},Re.createValidator=function(Ge){return ae(Ge)},Re}return(0,b.Z)(Ce,[{key:"ngOnChanges",value:function(Ge){this.handleChanges(Ge)}}]),Ce}(Ui);return ie.\u0275fac=function(){var fe;return function(Ce){return(fe||(fe=_.n5z(ie)))(Ce||ie)}}(),ie.\u0275dir=_.lG2({type:ie,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(_e,Ce){var Re;2&_e&&_.uIk("min",null!==(Re=Ce.min)&&void 0!==Re?Re:null)},inputs:{min:"min"},features:[_._Bn([va]),_.qOj,_.TTD]}),ie}(),gr={provide:j,useExisting:(0,_.Gpc)(function(){return Ma}),multi:!0},Bn={provide:j,useExisting:(0,_.Gpc)(function(){return Hi}),multi:!0},Ma=function(){var ie=function(){function fe(){(0,N.Z)(this,fe),this._required=!1}return(0,b.Z)(fe,[{key:"required",get:function(){return this._required},set:function(Ce){this._required=null!=Ce&&!1!==Ce&&"false"!=="".concat(Ce),this._onChange&&this._onChange()}},{key:"validate",value:function(Ce){return this.required?ce(Ce):null}},{key:"registerOnValidatorChange",value:function(Ce){this._onChange=Ce}}]),fe}();return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275dir=_.lG2({type:ie,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(_e,Ce){2&_e&&_.uIk("required",Ce.required?"":null)},inputs:{required:"required"},features:[_._Bn([gr])]}),ie}(),Hi=function(){var ie=function(fe){(0,Z.Z)(Ce,fe);var _e=(0,w.Z)(Ce);function Ce(){return(0,N.Z)(this,Ce),_e.apply(this,arguments)}return(0,b.Z)(Ce,[{key:"validate",value:function(Ge){return this.required?le(Ge):null}}]),Ce}(Ma);return ie.\u0275fac=function(){var fe;return function(Ce){return(fe||(fe=_.n5z(ie)))(Ce||ie)}}(),ie.\u0275dir=_.lG2({type:ie,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(_e,Ce){2&_e&&_.uIk("required",Ce.required?"":null)},features:[_._Bn([Bn]),_.qOj]}),ie}(),bl=function(){var ie=function fe(){(0,N.Z)(this,fe)};return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275mod=_.oAB({type:ie}),ie.\u0275inj=_.cJS({imports:[[Li]]}),ie}(),Cl=function(){var ie=function fe(){(0,N.Z)(this,fe)};return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275mod=_.oAB({type:ie}),ie.\u0275inj=_.cJS({imports:[bl]}),ie}(),pe=function(){var ie=function(){function fe(){(0,N.Z)(this,fe)}return(0,b.Z)(fe,null,[{key:"withConfig",value:function(Ce){return{ngModule:fe,providers:[{provide:Ho,useValue:Ce.warnOnNgModelWithFormControl}]}}}]),fe}();return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275mod=_.oAB({type:ie}),ie.\u0275inj=_.cJS({imports:[bl]}),ie}();function Fe(ie){return void 0!==ie.asyncValidators||void 0!==ie.validators||void 0!==ie.updateOn}var $e=function(){var ie=function(){function fe(){(0,N.Z)(this,fe)}return(0,b.Z)(fe,[{key:"group",value:function(Ce){var Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Ge=this._reduceControls(Ce),St=null,ht=null,gt=void 0;return null!=Re&&(Fe(Re)?(St=null!=Re.validators?Re.validators:null,ht=null!=Re.asyncValidators?Re.asyncValidators:null,gt=null!=Re.updateOn?Re.updateOn:void 0):(St=null!=Re.validator?Re.validator:null,ht=null!=Re.asyncValidator?Re.asyncValidator:null)),new no(Ge,{asyncValidators:ht,updateOn:gt,validators:St})}},{key:"control",value:function(Ce,Re,Ge){return new Ei(Ce,Re,Ge)}},{key:"array",value:function(Ce,Re,Ge){var St=this,ht=Ce.map(function(gt){return St._createControl(gt)});return new vi(ht,Re,Ge)}},{key:"_reduceControls",value:function(Ce){var Re=this,Ge={};return Object.keys(Ce).forEach(function(St){Ge[St]=Re._createControl(Ce[St])}),Ge}},{key:"_createControl",value:function(Ce){return Ce instanceof Ei||Ce instanceof no||Ce instanceof vi?Ce:Array.isArray(Ce)?this.control(Ce[0],Ce.length>1?Ce[1]:null,Ce.length>2?Ce[2]:null):this.control(Ce)}}]),fe}();return ie.\u0275fac=function(_e){return new(_e||ie)},ie.\u0275prov=(0,_.Yz7)({factory:function(){return new ie},token:ie,providedIn:pe}),ie}()},59412:function(ue,q,f){"use strict";f.d(q,{yN:function(){return ee},mZ:function(){return $},rD:function(){return rn},K7:function(){return In},HF:function(){return nn},Y2:function(){return ct},BQ:function(){return le},X2:function(){return kn},uc:function(){return $n},Nv:function(){return Yn},ey:function(){return ur},Ng:function(){return Lt},nP:function(){return Kt},us:function(){return Jt},wG:function(){return ft},si:function(){return Yt},IR:function(){return ye},CB:function(){return Ut},jH:function(){return Rt},pj:function(){return Ae},Kr:function(){return be},Id:function(){return oe},FD:function(){return qe},dB:function(){return _t},sb:function(){return it},E0:function(){return Ln}}),f(88009),f(13920),f(89200);var Z=f(10509),w=f(97154),N=f(14105),b=f(18967),_=f(38999),I=f(6517),D=f(8392),A=new _.GfV("12.2.12"),S=f(40098),v=f(15427),g=f(78081),T=f(68707),R=f(89797),k=f(57682),E=f(38480),x=f(32819),O=["*",[["mat-option"],["ng-container"]]],F=["*","mat-option, ng-container"];function z(Oe,rt){if(1&Oe&&_._UZ(0,"mat-pseudo-checkbox",4),2&Oe){var he=_.oxw();_.Q6J("state",he.selected?"checked":"unchecked")("disabled",he.disabled)}}function K(Oe,rt){if(1&Oe&&(_.TgZ(0,"span",5),_._uU(1),_.qZA()),2&Oe){var he=_.oxw();_.xp6(1),_.hij("(",he.group.label,")")}}var j=["*"],ee=function(){var Oe=function rt(){(0,b.Z)(this,rt)};return Oe.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Oe.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Oe.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Oe.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Oe}(),$=function(){var Oe=function rt(){(0,b.Z)(this,rt)};return Oe.COMPLEX="375ms",Oe.ENTERING="225ms",Oe.EXITING="195ms",Oe}(),ae=new _.GfV("12.2.12"),ce=new _.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),le=function(){var Oe=function(){function rt(he,Ie,Ne){(0,b.Z)(this,rt),this._hasDoneGlobalChecks=!1,this._document=Ne,he._applyBodyHighContrastModeCssClasses(),this._sanityChecks=Ie,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return(0,N.Z)(rt,[{key:"_checkIsEnabled",value:function(Ie){return!(!(0,_.X6Q)()||(0,v.Oy)())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Ie])}},{key:"_checkDoctypeIsDefined",value:function(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checkIsEnabled("theme")&&this._document.body&&"function"==typeof getComputedStyle){var Ie=this._document.createElement("div");Ie.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(Ie);var Ne=getComputedStyle(Ie);Ne&&"none"!==Ne.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(Ie)}}},{key:"_checkCdkVersionMatch",value:function(){this._checkIsEnabled("version")&&ae.full!==A.full&&console.warn("The Angular Material version ("+ae.full+") does not match the Angular CDK version ("+A.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),rt}();return Oe.\u0275fac=function(he){return new(he||Oe)(_.LFG(I.qm),_.LFG(ce,8),_.LFG(S.K0))},Oe.\u0275mod=_.oAB({type:Oe}),Oe.\u0275inj=_.cJS({imports:[[D.vT],D.vT]}),Oe}();function oe(Oe){return function(rt){(0,Z.Z)(Ie,rt);var he=(0,w.Z)(Ie);function Ie(){var Ne;(0,b.Z)(this,Ie);for(var Le=arguments.length,ze=new Array(Le),At=0;At<Le;At++)ze[At]=arguments[At];return(Ne=he.call.apply(he,[this].concat(ze)))._disabled=!1,Ne}return(0,N.Z)(Ie,[{key:"disabled",get:function(){return this._disabled},set:function(Le){this._disabled=(0,g.Ig)(Le)}}]),Ie}(Oe)}function Ae(Oe,rt){return function(he){(0,Z.Z)(Ne,he);var Ie=(0,w.Z)(Ne);function Ne(){var Le;(0,b.Z)(this,Ne);for(var ze=arguments.length,At=new Array(ze),an=0;an<ze;an++)At[an]=arguments[an];return(Le=Ie.call.apply(Ie,[this].concat(At))).defaultColor=rt,Le.color=rt,Le}return(0,N.Z)(Ne,[{key:"color",get:function(){return this._color},set:function(ze){var At=ze||this.defaultColor;At!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),At&&this._elementRef.nativeElement.classList.add("mat-".concat(At)),this._color=At)}}]),Ne}(Oe)}function be(Oe){return function(rt){(0,Z.Z)(Ie,rt);var he=(0,w.Z)(Ie);function Ie(){var Ne;(0,b.Z)(this,Ie);for(var Le=arguments.length,ze=new Array(Le),At=0;At<Le;At++)ze[At]=arguments[At];return(Ne=he.call.apply(he,[this].concat(ze)))._disableRipple=!1,Ne}return(0,N.Z)(Ie,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(Le){this._disableRipple=(0,g.Ig)(Le)}}]),Ie}(Oe)}function it(Oe){var rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(he){(0,Z.Z)(Ne,he);var Ie=(0,w.Z)(Ne);function Ne(){var Le;(0,b.Z)(this,Ne);for(var ze=arguments.length,At=new Array(ze),an=0;an<ze;an++)At[an]=arguments[an];return(Le=Ie.call.apply(Ie,[this].concat(At)))._tabIndex=rt,Le.defaultTabIndex=rt,Le}return(0,N.Z)(Ne,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(ze){this._tabIndex=null!=ze?(0,g.su)(ze):this.defaultTabIndex}}]),Ne}(Oe)}function qe(Oe){return function(rt){(0,Z.Z)(Ie,rt);var he=(0,w.Z)(Ie);function Ie(){var Ne;(0,b.Z)(this,Ie);for(var Le=arguments.length,ze=new Array(Le),At=0;At<Le;At++)ze[At]=arguments[At];return(Ne=he.call.apply(he,[this].concat(ze))).stateChanges=new T.xQ,Ne.errorState=!1,Ne}return(0,N.Z)(Ie,[{key:"updateErrorState",value:function(){var Le=this.errorState,jn=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);jn!==Le&&(this.errorState=jn,this.stateChanges.next())}}]),Ie}(Oe)}function _t(Oe){return function(rt){(0,Z.Z)(Ie,rt);var he=(0,w.Z)(Ie);function Ie(){var Ne;(0,b.Z)(this,Ie);for(var Le=arguments.length,ze=new Array(Le),At=0;At<Le;At++)ze[At]=arguments[At];return(Ne=he.call.apply(he,[this].concat(ze)))._isInitialized=!1,Ne._pendingSubscribers=[],Ne.initialized=new R.y(function(an){Ne._isInitialized?Ne._notifySubscriber(an):Ne._pendingSubscribers.push(an)}),Ne}return(0,N.Z)(Ie,[{key:"_markInitialized",value:function(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(Le){Le.next(),Le.complete()}}]),Ie}(Oe)}var rn=function(){var Oe=function(){function rt(){(0,b.Z)(this,rt)}return(0,N.Z)(rt,[{key:"isErrorState",value:function(Ie,Ne){return!!(Ie&&Ie.invalid&&(Ie.touched||Ne&&Ne.submitted))}}]),rt}();return Oe.\u0275fac=function(he){return new(he||Oe)},Oe.\u0275prov=_.Yz7({factory:function(){return new Oe},token:Oe,providedIn:"root"}),Oe}(),kn=function(){var Oe=function rt(){(0,b.Z)(this,rt)};return Oe.\u0275fac=function(he){return new(he||Oe)},Oe.\u0275dir=_.lG2({type:Oe,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Oe}();function Ln(Oe,rt){var he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";Oe.changes.pipe((0,k.O)(Oe)).subscribe(function(Ie){var Ne=Ie.length;Rn(rt,"".concat(he,"-2-line"),!1),Rn(rt,"".concat(he,"-3-line"),!1),Rn(rt,"".concat(he,"-multi-line"),!1),2===Ne||3===Ne?Rn(rt,"".concat(he,"-").concat(Ne,"-line"),!0):Ne>3&&Rn(rt,"".concat(he,"-multi-line"),!0)})}function Rn(Oe,rt,he){var Ie=Oe.nativeElement.classList;he?Ie.add(rt):Ie.remove(rt)}var $n=function(){var Oe=function rt(){(0,b.Z)(this,rt)};return Oe.\u0275fac=function(he){return new(he||Oe)},Oe.\u0275mod=_.oAB({type:Oe}),Oe.\u0275inj=_.cJS({imports:[[le],le]}),Oe}(),Nn=function(){function Oe(rt,he,Ie){(0,b.Z)(this,Oe),this._renderer=rt,this.element=he,this.config=Ie,this.state=3}return(0,N.Z)(Oe,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),Oe}(),wn={enterDuration:225,exitDuration:150},ut=(0,v.i$)({passive:!0}),He=["mousedown","touchstart"],ve=["mouseup","mouseleave","touchend","touchcancel"],ye=function(){function Oe(rt,he,Ie,Ne){(0,b.Z)(this,Oe),this._target=rt,this._ngZone=he,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Ne.isBrowser&&(this._containerElement=(0,g.fI)(Ie))}return(0,N.Z)(Oe,[{key:"fadeInRipple",value:function(he,Ie){var Ne=this,Le=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ze=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),At=Object.assign(Object.assign({},wn),Le.animation);Le.centered&&(he=ze.left+ze.width/2,Ie=ze.top+ze.height/2);var an=Le.radius||we(he,Ie,ze),jn=he-ze.left,Rr=Ie-ze.top,Hr=At.enterDuration,yr=document.createElement("div");yr.classList.add("mat-ripple-element"),yr.style.left="".concat(jn-an,"px"),yr.style.top="".concat(Rr-an,"px"),yr.style.height="".concat(2*an,"px"),yr.style.width="".concat(2*an,"px"),null!=Le.color&&(yr.style.backgroundColor=Le.color),yr.style.transitionDuration="".concat(Hr,"ms"),this._containerElement.appendChild(yr),Te(yr),yr.style.transform="scale(1)";var Yr=new Nn(this,yr,Le);return Yr.state=0,this._activeRipples.add(Yr),Le.persistent||(this._mostRecentTransientRipple=Yr),this._runTimeoutOutsideZone(function(){var co=Yr===Ne._mostRecentTransientRipple;Yr.state=1,!Le.persistent&&(!co||!Ne._isPointerDown)&&Yr.fadeOut()},Hr),Yr}},{key:"fadeOutRipple",value:function(he){var Ie=this._activeRipples.delete(he);if(he===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),Ie){var Ne=he.element,Le=Object.assign(Object.assign({},wn),he.config.animation);Ne.style.transitionDuration="".concat(Le.exitDuration,"ms"),Ne.style.opacity="0",he.state=2,this._runTimeoutOutsideZone(function(){he.state=3,Ne.parentNode.removeChild(Ne)},Le.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(he){return he.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(he){he.config.persistent||he.fadeOut()})}},{key:"setupTriggerEvents",value:function(he){var Ie=(0,g.fI)(he);!Ie||Ie===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ie,this._registerEvents(He))}},{key:"handleEvent",value:function(he){"mousedown"===he.type?this._onMousedown(he):"touchstart"===he.type?this._onTouchStart(he):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ve),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(he){var Ie=(0,I.X6)(he),Ne=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Ie&&!Ne&&(this._isPointerDown=!0,this.fadeInRipple(he.clientX,he.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(he){if(!this._target.rippleDisabled&&!(0,I.yG)(he)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var Ie=he.changedTouches,Ne=0;Ne<Ie.length;Ne++)this.fadeInRipple(Ie[Ne].clientX,Ie[Ne].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(function(he){!he.config.persistent&&(1===he.state||he.config.terminateOnPointerUp&&0===he.state)&&he.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(he){var Ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(he,Ie)})}},{key:"_registerEvents",value:function(he){var Ie=this;this._ngZone.runOutsideAngular(function(){he.forEach(function(Ne){Ie._triggerElement.addEventListener(Ne,Ie,ut)})})}},{key:"_removeTriggerEvents",value:function(){var he=this;this._triggerElement&&(He.forEach(function(Ie){he._triggerElement.removeEventListener(Ie,he,ut)}),this._pointerUpEventsRegistered&&ve.forEach(function(Ie){he._triggerElement.removeEventListener(Ie,he,ut)}))}}]),Oe}();function Te(Oe){window.getComputedStyle(Oe).getPropertyValue("opacity")}function we(Oe,rt,he){var Ie=Math.max(Math.abs(Oe-he.left),Math.abs(Oe-he.right)),Ne=Math.max(Math.abs(rt-he.top),Math.abs(rt-he.bottom));return Math.sqrt(Ie*Ie+Ne*Ne)}var ct=new _.OlP("mat-ripple-global-options"),ft=function(){var Oe=function(){function rt(he,Ie,Ne,Le,ze){(0,b.Z)(this,rt),this._elementRef=he,this._animationMode=ze,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Le||{},this._rippleRenderer=new ye(this,Ie,he,Ne)}return(0,N.Z)(rt,[{key:"disabled",get:function(){return this._disabled},set:function(Ie){Ie&&this.fadeOutAllNonPersistent(),this._disabled=Ie,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(Ie){this._trigger=Ie,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(Ie){var Ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Le=arguments.length>2?arguments[2]:void 0;return"number"==typeof Ie?this._rippleRenderer.fadeInRipple(Ie,Ne,Object.assign(Object.assign({},this.rippleConfig),Le)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Ie))}}]),rt}();return Oe.\u0275fac=function(he){return new(he||Oe)(_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(v.t4),_.Y36(ct,8),_.Y36(E.Qb,8))},Oe.\u0275dir=_.lG2({type:Oe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(he,Ie){2&he&&_.ekj("mat-ripple-unbounded",Ie.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),Oe}(),Yt=function(){var Oe=function rt(){(0,b.Z)(this,rt)};return Oe.\u0275fac=function(he){return new(he||Oe)},Oe.\u0275mod=_.oAB({type:Oe}),Oe.\u0275inj=_.cJS({imports:[[le,v.ud],le]}),Oe}(),Kt=function(){var Oe=function rt(he){(0,b.Z)(this,rt),this._animationMode=he,this.state="unchecked",this.disabled=!1};return Oe.\u0275fac=function(he){return new(he||Oe)(_.Y36(E.Qb,8))},Oe.\u0275cmp=_.Xpm({type:Oe,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(he,Ie){2&he&&_.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Ie.state)("mat-pseudo-checkbox-checked","checked"===Ie.state)("mat-pseudo-checkbox-disabled",Ie.disabled)("_mat-animation-noopable","NoopAnimations"===Ie._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(he,Ie){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Oe}(),Jt=function(){var Oe=function rt(){(0,b.Z)(this,rt)};return Oe.\u0275fac=function(he){return new(he||Oe)},Oe.\u0275mod=_.oAB({type:Oe}),Oe.\u0275inj=_.cJS({imports:[[le]]}),Oe}(),nn=new _.OlP("MAT_OPTION_PARENT_COMPONENT"),ln=oe(function(){return function Oe(){(0,b.Z)(this,Oe)}}()),yn=0,Tn=function(){var Oe=function(rt){(0,Z.Z)(Ie,rt);var he=(0,w.Z)(Ie);function Ie(Ne){var Le,ze;return(0,b.Z)(this,Ie),(Le=he.call(this))._labelId="mat-optgroup-label-".concat(yn++),Le._inert=null!==(ze=null==Ne?void 0:Ne.inertGroups)&&void 0!==ze&&ze,Le}return Ie}(ln);return Oe.\u0275fac=function(he){return new(he||Oe)(_.Y36(nn,8))},Oe.\u0275dir=_.lG2({type:Oe,inputs:{label:"label"},features:[_.qOj]}),Oe}(),In=new _.OlP("MatOptgroup"),Yn=function(){var Oe=function(rt){(0,Z.Z)(Ie,rt);var he=(0,w.Z)(Ie);function Ie(){return(0,b.Z)(this,Ie),he.apply(this,arguments)}return Ie}(Tn);return Oe.\u0275fac=function(){var rt;return function(Ie){return(rt||(rt=_.n5z(Oe)))(Ie||Oe)}}(),Oe.\u0275cmp=_.Xpm({type:Oe,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(he,Ie){2&he&&(_.uIk("role",Ie._inert?null:"group")("aria-disabled",Ie._inert?null:Ie.disabled.toString())("aria-labelledby",Ie._inert?null:Ie._labelId),_.ekj("mat-optgroup-disabled",Ie.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[_._Bn([{provide:In,useExisting:Oe}]),_.qOj],ngContentSelectors:F,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(he,Ie){1&he&&(_.F$t(O),_.TgZ(0,"span",0),_._uU(1),_.Hsn(2),_.qZA(),_.Hsn(3,1)),2&he&&(_.Q6J("id",Ie._labelId),_.xp6(1),_.hij("",Ie.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Oe}(),Cn=0,Sn=function Oe(rt){var he=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,b.Z)(this,Oe),this.source=rt,this.isUserInput=he},tr=function(){var Oe=function(){function rt(he,Ie,Ne,Le){(0,b.Z)(this,rt),this._element=he,this._changeDetectorRef=Ie,this._parent=Ne,this.group=Le,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(Cn++),this.onSelectionChange=new _.vpe,this._stateChanges=new T.xQ}return(0,N.Z)(rt,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(Ie){this._disabled=(0,g.Ig)(Ie)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(Ie,Ne){var Le=this._getHostElement();"function"==typeof Le.focus&&Le.focus(Ne)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(Ie){(Ie.keyCode===x.K5||Ie.keyCode===x.L_)&&!(0,x.Vb)(Ie)&&(this._selectViaInteraction(),Ie.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var Ie=this.viewValue;Ie!==this._mostRecentViewValue&&(this._mostRecentViewValue=Ie,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var Ie=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Sn(this,Ie))}}]),rt}();return Oe.\u0275fac=function(he){return new(he||Oe)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(void 0),_.Y36(Tn))},Oe.\u0275dir=_.lG2({type:Oe,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),Oe}(),ur=function(){var Oe=function(rt){(0,Z.Z)(Ie,rt);var he=(0,w.Z)(Ie);function Ie(Ne,Le,ze,At){return(0,b.Z)(this,Ie),he.call(this,Ne,Le,ze,At)}return Ie}(tr);return Oe.\u0275fac=function(he){return new(he||Oe)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(nn,8),_.Y36(In,8))},Oe.\u0275cmp=_.Xpm({type:Oe,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(he,Ie){1&he&&_.NdJ("click",function(){return Ie._selectViaInteraction()})("keydown",function(Le){return Ie._handleKeydown(Le)}),2&he&&(_.Ikx("id",Ie.id),_.uIk("tabindex",Ie._getTabIndex())("aria-selected",Ie._getAriaSelected())("aria-disabled",Ie.disabled.toString()),_.ekj("mat-selected",Ie.selected)("mat-option-multiple",Ie.multiple)("mat-active",Ie.active)("mat-option-disabled",Ie.disabled))},exportAs:["matOption"],features:[_.qOj],ngContentSelectors:j,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(he,Ie){1&he&&(_.F$t(),_.YNc(0,z,1,2,"mat-pseudo-checkbox",0),_.TgZ(1,"span",1),_.Hsn(2),_.qZA(),_.YNc(3,K,2,1,"span",2),_._UZ(4,"div",3)),2&he&&(_.Q6J("ngIf",Ie.multiple),_.xp6(3),_.Q6J("ngIf",Ie.group&&Ie.group._inert),_.xp6(1),_.Q6J("matRippleTrigger",Ie._getHostElement())("matRippleDisabled",Ie.disabled||Ie.disableRipple))},directives:[S.O5,ft,Kt],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Oe}();function Ut(Oe,rt,he){if(he.length){for(var Ie=rt.toArray(),Ne=he.toArray(),Le=0,ze=0;ze<Oe+1;ze++)Ie[ze].group&&Ie[ze].group===Ne[Le]&&Le++;return Le}return 0}function Rt(Oe,rt,he,Ie){return Oe<he?Oe:Oe+rt>he+Ie?Math.max(0,Oe-Ie+rt):he}var Lt=function(){var Oe=function rt(){(0,b.Z)(this,rt)};return Oe.\u0275fac=function(he){return new(he||Oe)},Oe.\u0275mod=_.oAB({type:Oe}),Oe.\u0275inj=_.cJS({imports:[[Yt,S.ez,le,Jt]]}),Oe}()},93386:function(ue,q,f){"use strict";f.d(q,{d:function(){return N},t:function(){return b}});var B=f(18967),U=f(14105),V=f(78081),Z=f(59412),w=f(38999),N=function(){var _=function(){function I(){(0,B.Z)(this,I),this._vertical=!1,this._inset=!1}return(0,U.Z)(I,[{key:"vertical",get:function(){return this._vertical},set:function(A){this._vertical=(0,V.Ig)(A)}},{key:"inset",get:function(){return this._inset},set:function(A){this._inset=(0,V.Ig)(A)}}]),I}();return _.\u0275fac=function(D){return new(D||_)},_.\u0275cmp=w.Xpm({type:_,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(D,A){2&D&&(w.uIk("aria-orientation",A.vertical?"vertical":"horizontal"),w.ekj("mat-divider-vertical",A.vertical)("mat-divider-horizontal",!A.vertical)("mat-divider-inset",A.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(D,A){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),_}(),b=function(){var _=function I(){(0,B.Z)(this,I)};return _.\u0275fac=function(D){return new(D||_)},_.\u0275mod=w.oAB({type:_}),_.\u0275inj=w.cJS({imports:[[Z.BQ],Z.BQ]}),_}()},36410:function(ue,q,f){"use strict";f.d(q,{G_:function(){return Nn},TO:function(){return xe},KE:function(){return wn},Eo:function(){return je},lN:function(){return _r},hX:function(){return Ht},R9:function(){return Nt}});var B=f(62467),U=f(14105),V=f(10509),Z=f(97154),w=f(18967),N=f(96798),b=f(40098),_=f(38999),I=f(59412),D=f(78081),A=f(68707),S=f(55371),v=f(33090),g=f(57682),T=f(44213),R=f(48359),k=f(739),E=f(38480),x=f(8392),O=f(15427),F=["underline"],z=["connectionContainer"],K=["inputContainer"],j=["label"];function J(ut,He){1&ut&&(_.ynx(0),_.TgZ(1,"div",14),_._UZ(2,"div",15),_._UZ(3,"div",16),_._UZ(4,"div",17),_.qZA(),_.TgZ(5,"div",18),_._UZ(6,"div",15),_._UZ(7,"div",16),_._UZ(8,"div",17),_.qZA(),_.BQk())}function ee(ut,He){1&ut&&(_.TgZ(0,"div",19),_.Hsn(1,1),_.qZA())}function $(ut,He){if(1&ut&&(_.ynx(0),_.Hsn(1,2),_.TgZ(2,"span"),_._uU(3),_.qZA(),_.BQk()),2&ut){var ve=_.oxw(2);_.xp6(3),_.Oqu(ve._control.placeholder)}}function ae(ut,He){1&ut&&_.Hsn(0,3,["*ngSwitchCase","true"])}function se(ut,He){1&ut&&(_.TgZ(0,"span",23),_._uU(1," *"),_.qZA())}function ce(ut,He){if(1&ut){var ve=_.EpF();_.TgZ(0,"label",20,21),_.NdJ("cdkObserveContent",function(){return _.CHM(ve),_.oxw().updateOutlineGap()}),_.YNc(2,$,4,1,"ng-container",12),_.YNc(3,ae,1,0,"ng-content",12),_.YNc(4,se,2,0,"span",22),_.qZA()}if(2&ut){var ye=_.oxw();_.ekj("mat-empty",ye._control.empty&&!ye._shouldAlwaysFloat())("mat-form-field-empty",ye._control.empty&&!ye._shouldAlwaysFloat())("mat-accent","accent"==ye.color)("mat-warn","warn"==ye.color),_.Q6J("cdkObserveContentDisabled","outline"!=ye.appearance)("id",ye._labelId)("ngSwitch",ye._hasLabel()),_.uIk("for",ye._control.id)("aria-owns",ye._control.id),_.xp6(2),_.Q6J("ngSwitchCase",!1),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngIf",!ye.hideRequiredMarker&&ye._control.required&&!ye._control.disabled)}}function le(ut,He){1&ut&&(_.TgZ(0,"div",24),_.Hsn(1,4),_.qZA())}function oe(ut,He){if(1&ut&&(_.TgZ(0,"div",25,26),_._UZ(2,"span",27),_.qZA()),2&ut){var ve=_.oxw();_.xp6(2),_.ekj("mat-accent","accent"==ve.color)("mat-warn","warn"==ve.color)}}function Ae(ut,He){if(1&ut&&(_.TgZ(0,"div"),_.Hsn(1,5),_.qZA()),2&ut){var ve=_.oxw();_.Q6J("@transitionMessages",ve._subscriptAnimationState)}}function be(ut,He){if(1&ut&&(_.TgZ(0,"div",31),_._uU(1),_.qZA()),2&ut){var ve=_.oxw(2);_.Q6J("id",ve._hintLabelId),_.xp6(1),_.Oqu(ve.hintLabel)}}function it(ut,He){if(1&ut&&(_.TgZ(0,"div",28),_.YNc(1,be,2,2,"div",29),_.Hsn(2,6),_._UZ(3,"div",30),_.Hsn(4,7),_.qZA()),2&ut){var ve=_.oxw();_.Q6J("@transitionMessages",ve._subscriptAnimationState),_.xp6(1),_.Q6J("ngIf",ve.hintLabel)}}var qe=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_t=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],yt=0,Ft=new _.OlP("MatError"),xe=function(){var ut=function He(ve,ye){(0,w.Z)(this,He),this.id="mat-error-".concat(yt++),ve||ye.nativeElement.setAttribute("aria-live","polite")};return ut.\u0275fac=function(ve){return new(ve||ut)(_.$8M("aria-live"),_.Y36(_.SBq))},ut.\u0275dir=_.lG2({type:ut,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(ve,ye){2&ve&&_.uIk("id",ye.id)},inputs:{id:"id"},features:[_._Bn([{provide:Ft,useExisting:ut}])]}),ut}(),De={transitionMessages:(0,k.X$)("transitionMessages",[(0,k.SB)("enter",(0,k.oB)({opacity:1,transform:"translateY(0%)"})),(0,k.eR)("void => enter",[(0,k.oB)({opacity:0,transform:"translateY(-5px)"}),(0,k.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},je=function(){var ut=function He(){(0,w.Z)(this,He)};return ut.\u0275fac=function(ve){return new(ve||ut)},ut.\u0275dir=_.lG2({type:ut}),ut}(),vt=new _.OlP("MatHint"),Ht=function(){var ut=function He(){(0,w.Z)(this,He)};return ut.\u0275fac=function(ve){return new(ve||ut)},ut.\u0275dir=_.lG2({type:ut,selectors:[["mat-label"]]}),ut}(),Ct=function(){var ut=function He(){(0,w.Z)(this,He)};return ut.\u0275fac=function(ve){return new(ve||ut)},ut.\u0275dir=_.lG2({type:ut,selectors:[["mat-placeholder"]]}),ut}(),qt=new _.OlP("MatPrefix"),en=new _.OlP("MatSuffix"),Nt=function(){var ut=function He(){(0,w.Z)(this,He)};return ut.\u0275fac=function(ve){return new(ve||ut)},ut.\u0275dir=_.lG2({type:ut,selectors:[["","matSuffix",""]],features:[_._Bn([{provide:en,useExisting:ut}])]}),ut}(),rn=0,Rn=(0,I.pj)(function(){return function ut(He){(0,w.Z)(this,ut),this._elementRef=He}}(),"primary"),$n=new _.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Nn=new _.OlP("MatFormField"),wn=function(){var ut=function(He){(0,V.Z)(ye,He);var ve=(0,Z.Z)(ye);function ye(Te,we,ct,ft,Yt,Kt,Jt,nn){var ln;return(0,w.Z)(this,ye),(ln=ve.call(this,Te))._changeDetectorRef=we,ln._dir=ft,ln._defaults=Yt,ln._platform=Kt,ln._ngZone=Jt,ln._outlineGapCalculationNeededImmediately=!1,ln._outlineGapCalculationNeededOnStable=!1,ln._destroyed=new A.xQ,ln._showAlwaysAnimate=!1,ln._subscriptAnimationState="",ln._hintLabel="",ln._hintLabelId="mat-hint-".concat(rn++),ln._labelId="mat-form-field-label-".concat(rn++),ln.floatLabel=ln._getDefaultFloatLabelState(),ln._animationsEnabled="NoopAnimations"!==nn,ln.appearance=Yt&&Yt.appearance?Yt.appearance:"legacy",ln._hideRequiredMarker=!(!Yt||null==Yt.hideRequiredMarker)&&Yt.hideRequiredMarker,ln}return(0,U.Z)(ye,[{key:"appearance",get:function(){return this._appearance},set:function(we){var ct=this._appearance;this._appearance=we||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&ct!==we&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(we){this._hideRequiredMarker=(0,D.Ig)(we)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(we){this._hintLabel=we,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(we){we!==this._floatLabel&&(this._floatLabel=we||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(we){this._explicitFormFieldControl=we}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var we=this;this._validateControlChild();var ct=this._control;ct.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(ct.controlType)),ct.stateChanges.pipe((0,g.O)(null)).subscribe(function(){we._validatePlaceholders(),we._syncDescribedByIds(),we._changeDetectorRef.markForCheck()}),ct.ngControl&&ct.ngControl.valueChanges&&ct.ngControl.valueChanges.pipe((0,T.R)(this._destroyed)).subscribe(function(){return we._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){we._ngZone.onStable.pipe((0,T.R)(we._destroyed)).subscribe(function(){we._outlineGapCalculationNeededOnStable&&we.updateOutlineGap()})}),(0,S.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){we._outlineGapCalculationNeededOnStable=!0,we._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,g.O)(null)).subscribe(function(){we._processHints(),we._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,g.O)(null)).subscribe(function(){we._syncDescribedByIds(),we._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,T.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?we._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return we.updateOutlineGap()})}):we.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(we){var ct=this._control?this._control.ngControl:null;return ct&&ct[we]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var we=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,v.R)(this._label.nativeElement,"transitionend").pipe((0,R.q)(1)).subscribe(function(){we._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var we=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&we.push.apply(we,(0,B.Z)(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var ct=this._hintChildren?this._hintChildren.find(function(Yt){return"start"===Yt.align}):null,ft=this._hintChildren?this._hintChildren.find(function(Yt){return"end"===Yt.align}):null;ct?we.push(ct.id):this._hintLabel&&we.push(this._hintLabelId),ft&&we.push(ft.id)}else this._errorChildren&&we.push.apply(we,(0,B.Z)(this._errorChildren.map(function(Yt){return Yt.id})));this._control.setDescribedByIds(we)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var we=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&we&&we.children.length&&we.textContent.trim()&&this._platform.isBrowser){if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var ct=0,ft=0,Yt=this._connectionContainerRef.nativeElement,Kt=Yt.querySelectorAll(".mat-form-field-outline-start"),Jt=Yt.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var nn=Yt.getBoundingClientRect();if(0===nn.width&&0===nn.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var ln=this._getStartEnd(nn),yn=we.children,Tn=this._getStartEnd(yn[0].getBoundingClientRect()),In=0,Yn=0;Yn<yn.length;Yn++)In+=yn[Yn].offsetWidth;ct=Math.abs(Tn-ln)-5,ft=In>0?.75*In+10:0}for(var Cn=0;Cn<Kt.length;Cn++)Kt[Cn].style.width="".concat(ct,"px");for(var Sn=0;Sn<Jt.length;Sn++)Jt[Sn].style.width="".concat(ft,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}}},{key:"_getStartEnd",value:function(we){return this._dir&&"rtl"===this._dir.value?we.right:we.left}},{key:"_isAttachedToDOM",value:function(){var we=this._elementRef.nativeElement;if(we.getRootNode){var ct=we.getRootNode();return ct&&ct!==we}return document.documentElement.contains(we)}}]),ye}(Rn);return ut.\u0275fac=function(ve){return new(ve||ut)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(_.SBq),_.Y36(x.Is,8),_.Y36($n,8),_.Y36(O.t4),_.Y36(_.R0b),_.Y36(E.Qb,8))},ut.\u0275cmp=_.Xpm({type:ut,selectors:[["mat-form-field"]],contentQueries:function(ve,ye,Te){var we;1&ve&&(_.Suo(Te,je,5),_.Suo(Te,je,7),_.Suo(Te,Ht,5),_.Suo(Te,Ht,7),_.Suo(Te,Ct,5),_.Suo(Te,Ft,5),_.Suo(Te,vt,5),_.Suo(Te,qt,5),_.Suo(Te,en,5)),2&ve&&(_.iGM(we=_.CRH())&&(ye._controlNonStatic=we.first),_.iGM(we=_.CRH())&&(ye._controlStatic=we.first),_.iGM(we=_.CRH())&&(ye._labelChildNonStatic=we.first),_.iGM(we=_.CRH())&&(ye._labelChildStatic=we.first),_.iGM(we=_.CRH())&&(ye._placeholderChild=we.first),_.iGM(we=_.CRH())&&(ye._errorChildren=we),_.iGM(we=_.CRH())&&(ye._hintChildren=we),_.iGM(we=_.CRH())&&(ye._prefixChildren=we),_.iGM(we=_.CRH())&&(ye._suffixChildren=we))},viewQuery:function(ve,ye){var Te;1&ve&&(_.Gf(F,5),_.Gf(z,7),_.Gf(K,5),_.Gf(j,5)),2&ve&&(_.iGM(Te=_.CRH())&&(ye.underlineRef=Te.first),_.iGM(Te=_.CRH())&&(ye._connectionContainerRef=Te.first),_.iGM(Te=_.CRH())&&(ye._inputContainerRef=Te.first),_.iGM(Te=_.CRH())&&(ye._label=Te.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(ve,ye){2&ve&&_.ekj("mat-form-field-appearance-standard","standard"==ye.appearance)("mat-form-field-appearance-fill","fill"==ye.appearance)("mat-form-field-appearance-outline","outline"==ye.appearance)("mat-form-field-appearance-legacy","legacy"==ye.appearance)("mat-form-field-invalid",ye._control.errorState)("mat-form-field-can-float",ye._canLabelFloat())("mat-form-field-should-float",ye._shouldLabelFloat())("mat-form-field-has-label",ye._hasFloatingLabel())("mat-form-field-hide-placeholder",ye._hideControlPlaceholder())("mat-form-field-disabled",ye._control.disabled)("mat-form-field-autofilled",ye._control.autofilled)("mat-focused",ye._control.focused)("ng-untouched",ye._shouldForward("untouched"))("ng-touched",ye._shouldForward("touched"))("ng-pristine",ye._shouldForward("pristine"))("ng-dirty",ye._shouldForward("dirty"))("ng-valid",ye._shouldForward("valid"))("ng-invalid",ye._shouldForward("invalid"))("ng-pending",ye._shouldForward("pending"))("_mat-animation-noopable",!ye._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[_._Bn([{provide:Nn,useExisting:ut}]),_.qOj],ngContentSelectors:_t,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(ve,ye){1&ve&&(_.F$t(qe),_.TgZ(0,"div",0),_.TgZ(1,"div",1,2),_.NdJ("click",function(we){return ye._control.onContainerClick&&ye._control.onContainerClick(we)}),_.YNc(3,J,9,0,"ng-container",3),_.YNc(4,ee,2,0,"div",4),_.TgZ(5,"div",5,6),_.Hsn(7),_.TgZ(8,"span",7),_.YNc(9,ce,5,16,"label",8),_.qZA(),_.qZA(),_.YNc(10,le,2,0,"div",9),_.qZA(),_.YNc(11,oe,3,4,"div",10),_.TgZ(12,"div",11),_.YNc(13,Ae,2,1,"div",12),_.YNc(14,it,5,2,"div",13),_.qZA(),_.qZA()),2&ve&&(_.xp6(3),_.Q6J("ngIf","outline"==ye.appearance),_.xp6(1),_.Q6J("ngIf",ye._prefixChildren.length),_.xp6(5),_.Q6J("ngIf",ye._hasFloatingLabel()),_.xp6(1),_.Q6J("ngIf",ye._suffixChildren.length),_.xp6(1),_.Q6J("ngIf","outline"!=ye.appearance),_.xp6(1),_.Q6J("ngSwitch",ye._getDisplayedMessages()),_.xp6(1),_.Q6J("ngSwitchCase","error"),_.xp6(1),_.Q6J("ngSwitchCase","hint"))},directives:[b.O5,b.RF,b.n9,N.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[De.transitionMessages]},changeDetection:0}),ut}(),_r=function(){var ut=function He(){(0,w.Z)(this,He)};return ut.\u0275fac=function(ve){return new(ve||ut)},ut.\u0275mod=_.oAB({type:ut}),ut.\u0275inj=_.cJS({imports:[[b.ez,I.BQ,N.Q8],I.BQ]}),ut}()},73044:function(ue,q,f){"use strict";f.d(q,{gD:function(){return wn},LD:function(){return _r}});var B=f(13920),U=f(89200),V=f(62467),Z=f(14105),w=f(88009),N=f(10509),b=f(97154),_=f(18967),I=f(93889),D=f(40098),A=f(38999),S=f(59412),v=f(36410),g=f(28722),T=f(6517),R=f(78081),k=f(37429),E=f(32819),x=f(68707),O=f(4499),F=f(55371),z=f(57682),K=f(34487),j=f(48359),J=f(58780),ee=f(85639),$=f(76161),ae=f(44213),se=f(739),ce=f(8392),le=f(19061),oe=["trigger"],Ae=["panel"];function be(ut,He){if(1&ut&&(A.TgZ(0,"span",8),A._uU(1),A.qZA()),2&ut){var ve=A.oxw();A.xp6(1),A.Oqu(ve.placeholder)}}function it(ut,He){if(1&ut&&(A.TgZ(0,"span",12),A._uU(1),A.qZA()),2&ut){var ve=A.oxw(2);A.xp6(1),A.Oqu(ve.triggerValue)}}function qe(ut,He){1&ut&&A.Hsn(0,0,["*ngSwitchCase","true"])}function _t(ut,He){if(1&ut&&(A.TgZ(0,"span",9),A.YNc(1,it,2,1,"span",10),A.YNc(2,qe,1,0,"ng-content",11),A.qZA()),2&ut){var ve=A.oxw();A.Q6J("ngSwitch",!!ve.customTrigger),A.xp6(2),A.Q6J("ngSwitchCase",!0)}}function yt(ut,He){if(1&ut){var ve=A.EpF();A.TgZ(0,"div",13),A.TgZ(1,"div",14,15),A.NdJ("@transformPanel.done",function(we){return A.CHM(ve),A.oxw()._panelDoneAnimatingStream.next(we.toState)})("keydown",function(we){return A.CHM(ve),A.oxw()._handleKeydown(we)}),A.Hsn(3,1),A.qZA(),A.qZA()}if(2&ut){var ye=A.oxw();A.Q6J("@transformPanelWrap",void 0),A.xp6(1),A.Gre("mat-select-panel ",ye._getPanelTheme(),""),A.Udp("transform-origin",ye._transformOrigin)("font-size",ye._triggerFontSize,"px"),A.Q6J("ngClass",ye.panelClass)("@transformPanel",ye.multiple?"showing-multiple":"showing"),A.uIk("id",ye.id+"-panel")("aria-multiselectable",ye.multiple)("aria-label",ye.ariaLabel||null)("aria-labelledby",ye._getPanelAriaLabelledby())}}var Ft=[[["mat-select-trigger"]],"*"],xe=["mat-select-trigger","*"],De={transformPanelWrap:(0,se.X$)("transformPanelWrap",[(0,se.eR)("* => void",(0,se.IO)("@transformPanel",[(0,se.pV)()],{optional:!0}))]),transformPanel:(0,se.X$)("transformPanel",[(0,se.SB)("void",(0,se.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,se.SB)("showing",(0,se.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,se.SB)("showing-multiple",(0,se.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,se.eR)("void => *",(0,se.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,se.eR)("* => void",(0,se.jt)("100ms 25ms linear",(0,se.oB)({opacity:0})))])},Bt=0,bt=new A.OlP("mat-select-scroll-strategy"),Nt=new A.OlP("MAT_SELECT_CONFIG"),rn={provide:bt,deps:[I.aV],useFactory:function(ut){return function(){return ut.scrollStrategies.reposition()}}},kn=function ut(He,ve){(0,_.Z)(this,ut),this.source=He,this.value=ve},Ln=(0,S.Kr)((0,S.sb)((0,S.Id)((0,S.FD)(function(){return function ut(He,ve,ye,Te,we){(0,_.Z)(this,ut),this._elementRef=He,this._defaultErrorStateMatcher=ve,this._parentForm=ye,this._parentFormGroup=Te,this.ngControl=we}}())))),Rn=new A.OlP("MatSelectTrigger"),Nn=function(){var ut=function(He){(0,N.Z)(ye,He);var ve=(0,b.Z)(ye);function ye(Te,we,ct,ft,Yt,Kt,Jt,nn,ln,yn,Tn,In,Yn,Cn){var Sn,tr,ur,Ut;return(0,_.Z)(this,ye),(Sn=ve.call(this,Yt,ft,Jt,nn,yn))._viewportRuler=Te,Sn._changeDetectorRef=we,Sn._ngZone=ct,Sn._dir=Kt,Sn._parentFormField=ln,Sn._liveAnnouncer=Yn,Sn._defaultOptions=Cn,Sn._panelOpen=!1,Sn._compareWith=function(Rt,Lt){return Rt===Lt},Sn._uid="mat-select-".concat(Bt++),Sn._triggerAriaLabelledBy=null,Sn._destroy=new x.xQ,Sn._onChange=function(){},Sn._onTouched=function(){},Sn._valueId="mat-select-value-".concat(Bt++),Sn._panelDoneAnimatingStream=new x.xQ,Sn._overlayPanelClass=(null===(tr=Sn._defaultOptions)||void 0===tr?void 0:tr.overlayPanelClass)||"",Sn._focused=!1,Sn.controlType="mat-select",Sn._required=!1,Sn._multiple=!1,Sn._disableOptionCentering=null!==(Ut=null===(ur=Sn._defaultOptions)||void 0===ur?void 0:ur.disableOptionCentering)&&void 0!==Ut&&Ut,Sn.ariaLabel="",Sn.optionSelectionChanges=(0,O.P)(function(){var Rt=Sn.options;return Rt?Rt.changes.pipe((0,z.O)(Rt),(0,K.w)(function(){return F.T.apply(void 0,(0,V.Z)(Rt.map(function(Lt){return Lt.onSelectionChange})))})):Sn._ngZone.onStable.pipe((0,j.q)(1),(0,K.w)(function(){return Sn.optionSelectionChanges}))}),Sn.openedChange=new A.vpe,Sn._openedStream=Sn.openedChange.pipe((0,J.h)(function(Rt){return Rt}),(0,ee.U)(function(){})),Sn._closedStream=Sn.openedChange.pipe((0,J.h)(function(Rt){return!Rt}),(0,ee.U)(function(){})),Sn.selectionChange=new A.vpe,Sn.valueChange=new A.vpe,Sn.ngControl&&(Sn.ngControl.valueAccessor=(0,w.Z)(Sn)),null!=(null==Cn?void 0:Cn.typeaheadDebounceInterval)&&(Sn._typeaheadDebounceInterval=Cn.typeaheadDebounceInterval),Sn._scrollStrategyFactory=In,Sn._scrollStrategy=Sn._scrollStrategyFactory(),Sn.tabIndex=parseInt(Tn)||0,Sn.id=Sn.id,Sn}return(0,Z.Z)(ye,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(we){this._placeholder=we,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(we){this._required=(0,R.Ig)(we),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(we){this._multiple=(0,R.Ig)(we)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(we){this._disableOptionCentering=(0,R.Ig)(we)}},{key:"compareWith",get:function(){return this._compareWith},set:function(we){this._compareWith=we,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(we){(we!==this._value||this._multiple&&Array.isArray(we))&&(this.options&&this._setSelectionByValue(we),this._value=we)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(we){this._typeaheadDebounceInterval=(0,R.su)(we)}},{key:"id",get:function(){return this._id},set:function(we){this._id=we||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var we=this;this._selectionModel=new k.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,$.x)(),(0,ae.R)(this._destroy)).subscribe(function(){return we._panelDoneAnimating(we.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var we=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,ae.R)(this._destroy)).subscribe(function(ct){ct.added.forEach(function(ft){return ft.select()}),ct.removed.forEach(function(ft){return ft.deselect()})}),this.options.changes.pipe((0,z.O)(null),(0,ae.R)(this._destroy)).subscribe(function(){we._resetOptions(),we._initializeSelection()})}},{key:"ngDoCheck",value:function(){var we=this._getTriggerAriaLabelledby();if(we!==this._triggerAriaLabelledBy){var ct=this._elementRef.nativeElement;this._triggerAriaLabelledBy=we,we?ct.setAttribute("aria-labelledby",we):ct.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(we){we.disabled&&this.stateChanges.next(),we.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(we){this.value=we}},{key:"registerOnChange",value:function(we){this._onChange=we}},{key:"registerOnTouched",value:function(we){this._onTouched=we}},{key:"setDisabledState",value:function(we){this.disabled=we,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){var we,ct;return this.multiple?(null===(we=this._selectionModel)||void 0===we?void 0:we.selected)||[]:null===(ct=this._selectionModel)||void 0===ct?void 0:ct.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var we=this._selectionModel.selected.map(function(ct){return ct.viewValue});return this._isRtl()&&we.reverse(),we.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(we){this.disabled||(this.panelOpen?this._handleOpenKeydown(we):this._handleClosedKeydown(we))}},{key:"_handleClosedKeydown",value:function(we){var ct=we.keyCode,ft=ct===E.JH||ct===E.LH||ct===E.oh||ct===E.SV,Yt=ct===E.K5||ct===E.L_,Kt=this._keyManager;if(!Kt.isTyping()&&Yt&&!(0,E.Vb)(we)||(this.multiple||we.altKey)&&ft)we.preventDefault(),this.open();else if(!this.multiple){var Jt=this.selected;Kt.onKeydown(we);var nn=this.selected;nn&&Jt!==nn&&this._liveAnnouncer.announce(nn.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(we){var ct=this._keyManager,ft=we.keyCode,Yt=ft===E.JH||ft===E.LH,Kt=ct.isTyping();if(Yt&&we.altKey)we.preventDefault(),this.close();else if(Kt||ft!==E.K5&&ft!==E.L_||!ct.activeItem||(0,E.Vb)(we))if(!Kt&&this._multiple&&ft===E.A&&we.ctrlKey){we.preventDefault();var Jt=this.options.some(function(ln){return!ln.disabled&&!ln.selected});this.options.forEach(function(ln){ln.disabled||(Jt?ln.select():ln.deselect())})}else{var nn=ct.activeItemIndex;ct.onKeydown(we),this._multiple&&Yt&&we.shiftKey&&ct.activeItem&&ct.activeItemIndex!==nn&&ct.activeItem._selectViaInteraction()}else we.preventDefault(),ct.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var we=this;this._overlayDir.positionChange.pipe((0,j.q)(1)).subscribe(function(){we._changeDetectorRef.detectChanges(),we._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var we=this;Promise.resolve().then(function(){we._setSelectionByValue(we.ngControl?we.ngControl.value:we._value),we.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(we){var ct=this;if(this._selectionModel.selected.forEach(function(Yt){return Yt.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&we)Array.isArray(we),we.forEach(function(Yt){return ct._selectValue(Yt)}),this._sortValues();else{var ft=this._selectValue(we);ft?this._keyManager.updateActiveItem(ft):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(we){var ct=this,ft=this.options.find(function(Yt){if(ct._selectionModel.isSelected(Yt))return!1;try{return null!=Yt.value&&ct._compareWith(Yt.value,we)}catch(Kt){return!1}});return ft&&this._selectionModel.select(ft),ft}},{key:"_initKeyManager",value:function(){var we=this;this._keyManager=new T.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,ae.R)(this._destroy)).subscribe(function(){we.panelOpen&&(!we.multiple&&we._keyManager.activeItem&&we._keyManager.activeItem._selectViaInteraction(),we.focus(),we.close())}),this._keyManager.change.pipe((0,ae.R)(this._destroy)).subscribe(function(){we._panelOpen&&we.panel?we._scrollOptionIntoView(we._keyManager.activeItemIndex||0):!we._panelOpen&&!we.multiple&&we._keyManager.activeItem&&we._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var we=this,ct=(0,F.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ae.R)(ct)).subscribe(function(ft){we._onSelect(ft.source,ft.isUserInput),ft.isUserInput&&!we.multiple&&we._panelOpen&&(we.close(),we.focus())}),F.T.apply(void 0,(0,V.Z)(this.options.map(function(ft){return ft._stateChanges}))).pipe((0,ae.R)(ct)).subscribe(function(){we._changeDetectorRef.markForCheck(),we.stateChanges.next()})}},{key:"_onSelect",value:function(we,ct){var ft=this._selectionModel.isSelected(we);null!=we.value||this._multiple?(ft!==we.selected&&(we.selected?this._selectionModel.select(we):this._selectionModel.deselect(we)),ct&&this._keyManager.setActiveItem(we),this.multiple&&(this._sortValues(),ct&&this.focus())):(we.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(we.value)),ft!==this._selectionModel.isSelected(we)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var we=this;if(this.multiple){var ct=this.options.toArray();this._selectionModel.sort(function(ft,Yt){return we.sortComparator?we.sortComparator(ft,Yt,ct):ct.indexOf(ft)-ct.indexOf(Yt)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(we){var ct;ct=this.multiple?this.selected.map(function(ft){return ft.value}):this.selected?this.selected.value:we,this._value=ct,this.valueChange.emit(ct),this._onChange(ct),this.selectionChange.emit(this._getChangeEvent(ct)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var we;return!this._panelOpen&&!this.disabled&&(null===(we=this.options)||void 0===we?void 0:we.length)>0}},{key:"focus",value:function(we){this._elementRef.nativeElement.focus(we)}},{key:"_getPanelAriaLabelledby",value:function(){var we;if(this.ariaLabel)return null;var ct=null===(we=this._parentFormField)||void 0===we?void 0:we.getLabelId();return this.ariaLabelledby?(ct?ct+" ":"")+this.ariaLabelledby:ct}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var we;if(this.ariaLabel)return null;var ct=null===(we=this._parentFormField)||void 0===we?void 0:we.getLabelId(),ft=(ct?ct+" ":"")+this._valueId;return this.ariaLabelledby&&(ft+=" "+this.ariaLabelledby),ft}},{key:"_panelDoneAnimating",value:function(we){this.openedChange.emit(we)}},{key:"setDescribedByIds",value:function(we){this._ariaDescribedby=we.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),ye}(Ln);return ut.\u0275fac=function(ve){return new(ve||ut)(A.Y36(g.rL),A.Y36(A.sBO),A.Y36(A.R0b),A.Y36(S.rD),A.Y36(A.SBq),A.Y36(ce.Is,8),A.Y36(le.F,8),A.Y36(le.sg,8),A.Y36(v.G_,8),A.Y36(le.a5,10),A.$8M("tabindex"),A.Y36(bt),A.Y36(T.Kd),A.Y36(Nt,8))},ut.\u0275dir=A.lG2({type:ut,viewQuery:function(ve,ye){var Te;1&ve&&(A.Gf(oe,5),A.Gf(Ae,5),A.Gf(I.pI,5)),2&ve&&(A.iGM(Te=A.CRH())&&(ye.trigger=Te.first),A.iGM(Te=A.CRH())&&(ye.panel=Te.first),A.iGM(Te=A.CRH())&&(ye._overlayDir=Te.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[A.qOj,A.TTD]}),ut}(),wn=function(){var ut=function(He){(0,N.Z)(ye,He);var ve=(0,b.Z)(ye);function ye(){var Te;return(0,_.Z)(this,ye),(Te=ve.apply(this,arguments))._scrollTop=0,Te._triggerFontSize=0,Te._transformOrigin="top",Te._offsetY=0,Te._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],Te}return(0,Z.Z)(ye,[{key:"_calculateOverlayScroll",value:function(we,ct,ft){var Yt=this._getItemHeight();return Math.min(Math.max(0,Yt*we-ct+Yt/2),ft)}},{key:"ngOnInit",value:function(){var we=this;(0,B.Z)((0,U.Z)(ye.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,ae.R)(this._destroy)).subscribe(function(){we.panelOpen&&(we._triggerRect=we.trigger.nativeElement.getBoundingClientRect(),we._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var we=this;(0,B.Z)((0,U.Z)(ye.prototype),"_canOpen",this).call(this)&&((0,B.Z)((0,U.Z)(ye.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,j.q)(1)).subscribe(function(){we._triggerFontSize&&we._overlayDir.overlayRef&&we._overlayDir.overlayRef.overlayElement&&(we._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(we._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(we){var ct=(0,S.CB)(we,this.options,this.optionGroups),ft=this._getItemHeight();this.panel.nativeElement.scrollTop=0===we&&1===ct?0:(0,S.jH)((we+ct)*ft,ft,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(we){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),(0,B.Z)((0,U.Z)(ye.prototype),"_panelDoneAnimating",this).call(this,we)}},{key:"_getChangeEvent",value:function(we){return new kn(this,we)}},{key:"_calculateOverlayOffsetX",value:function(){var Kt,we=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),ct=this._viewportRuler.getViewportSize(),ft=this._isRtl(),Yt=this.multiple?56:32;if(this.multiple)Kt=40;else if(this.disableOptionCentering)Kt=16;else{var Jt=this._selectionModel.selected[0]||this.options.first;Kt=Jt&&Jt.group?32:16}ft||(Kt*=-1);var nn=0-(we.left+Kt-(ft?Yt:0)),ln=we.right+Kt-ct.width+(ft?0:Yt);nn>0?Kt+=nn+8:ln>0&&(Kt-=ln+8),this._overlayDir.offsetX=Math.round(Kt),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(we,ct,ft){var nn,Yt=this._getItemHeight(),Kt=(Yt-this._triggerRect.height)/2,Jt=Math.floor(256/Yt);return this.disableOptionCentering?0:(nn=0===this._scrollTop?we*Yt:this._scrollTop===ft?(we-(this._getItemCount()-Jt))*Yt+(Yt-(this._getItemCount()*Yt-256)%Yt):ct-Yt/2,Math.round(-1*nn-Kt))}},{key:"_checkOverlayWithinViewport",value:function(we){var ct=this._getItemHeight(),ft=this._viewportRuler.getViewportSize(),Yt=this._triggerRect.top-8,Kt=ft.height-this._triggerRect.bottom-8,Jt=Math.abs(this._offsetY),ln=Math.min(this._getItemCount()*ct,256)-Jt-this._triggerRect.height;ln>Kt?this._adjustPanelUp(ln,Kt):Jt>Yt?this._adjustPanelDown(Jt,Yt,we):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(we,ct){var ft=Math.round(we-ct);this._scrollTop-=ft,this._offsetY-=ft,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(we,ct,ft){var Yt=Math.round(we-ct);if(this._scrollTop+=Yt,this._offsetY+=Yt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=ft)return this._scrollTop=ft,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var Jt,we=this._getItemHeight(),ct=this._getItemCount(),ft=Math.min(ct*we,256),Kt=ct*we-ft;Jt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),Jt+=(0,S.CB)(Jt,this.options,this.optionGroups);var nn=ft/2;this._scrollTop=this._calculateOverlayScroll(Jt,nn,Kt),this._offsetY=this._calculateOverlayOffsetY(Jt,nn,Kt),this._checkOverlayWithinViewport(Kt)}},{key:"_getOriginBasedOnOption",value:function(){var we=this._getItemHeight(),ct=(we-this._triggerRect.height)/2,ft=Math.abs(this._offsetY)-ct+we/2;return"50% ".concat(ft,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),ye}(Nn);return ut.\u0275fac=function(){var He;return function(ye){return(He||(He=A.n5z(ut)))(ye||ut)}}(),ut.\u0275cmp=A.Xpm({type:ut,selectors:[["mat-select"]],contentQueries:function(ve,ye,Te){var we;1&ve&&(A.Suo(Te,Rn,5),A.Suo(Te,S.ey,5),A.Suo(Te,S.K7,5)),2&ve&&(A.iGM(we=A.CRH())&&(ye.customTrigger=we.first),A.iGM(we=A.CRH())&&(ye.options=we),A.iGM(we=A.CRH())&&(ye.optionGroups=we))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(ve,ye){1&ve&&A.NdJ("keydown",function(we){return ye._handleKeydown(we)})("focus",function(){return ye._onFocus()})("blur",function(){return ye._onBlur()}),2&ve&&(A.uIk("id",ye.id)("tabindex",ye.tabIndex)("aria-controls",ye.panelOpen?ye.id+"-panel":null)("aria-expanded",ye.panelOpen)("aria-label",ye.ariaLabel||null)("aria-required",ye.required.toString())("aria-disabled",ye.disabled.toString())("aria-invalid",ye.errorState)("aria-describedby",ye._ariaDescribedby||null)("aria-activedescendant",ye._getAriaActiveDescendant()),A.ekj("mat-select-disabled",ye.disabled)("mat-select-invalid",ye.errorState)("mat-select-required",ye.required)("mat-select-empty",ye.empty)("mat-select-multiple",ye.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[A._Bn([{provide:v.Eo,useExisting:ut},{provide:S.HF,useExisting:ut}]),A.qOj],ngContentSelectors:xe,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(ve,ye){if(1&ve&&(A.F$t(Ft),A.TgZ(0,"div",0,1),A.NdJ("click",function(){return ye.toggle()}),A.TgZ(3,"div",2),A.YNc(4,be,2,1,"span",3),A.YNc(5,_t,3,2,"span",4),A.qZA(),A.TgZ(6,"div",5),A._UZ(7,"div",6),A.qZA(),A.qZA(),A.YNc(8,yt,4,14,"ng-template",7),A.NdJ("backdropClick",function(){return ye.close()})("attach",function(){return ye._onAttached()})("detach",function(){return ye.close()})),2&ve){var Te=A.MAs(1);A.uIk("aria-owns",ye.panelOpen?ye.id+"-panel":null),A.xp6(3),A.Q6J("ngSwitch",ye.empty),A.uIk("id",ye._valueId),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(1),A.Q6J("ngSwitchCase",!1),A.xp6(3),A.Q6J("cdkConnectedOverlayPanelClass",ye._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",ye._scrollStrategy)("cdkConnectedOverlayOrigin",Te)("cdkConnectedOverlayOpen",ye.panelOpen)("cdkConnectedOverlayPositions",ye._positions)("cdkConnectedOverlayMinWidth",null==ye._triggerRect?null:ye._triggerRect.width)("cdkConnectedOverlayOffsetY",ye._offsetY)}},directives:[I.xu,D.RF,D.n9,I.pI,D.ED,D.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[De.transformPanelWrap,De.transformPanel]},changeDetection:0}),ut}(),_r=function(){var ut=function He(){(0,_.Z)(this,He)};return ut.\u0275fac=function(ve){return new(ve||ut)},ut.\u0275mod=A.oAB({type:ut}),ut.\u0275inj=A.cJS({providers:[rn],imports:[[D.ez,I.U8,S.Ng,S.BQ],g.ZD,v.lN,S.Ng,S.BQ]}),ut}()},88802:function(ue,q,f){"use strict";f.d(q,{uX:function(){return Rn},SP:function(){return we},uD:function(){return rn},Nh:function(){return ur}}),f(88009);var U=f(62467),V=f(13920),Z=f(89200),w=f(10509),N=f(97154),b=f(18967),_=f(14105),I=f(6517),D=f(96798),A=f(80785),S=f(40098),v=f(38999),g=f(59412),T=f(38480),R=f(68707),k=f(5051),E=f(55371),x=f(33090),O=f(43161),F=f(5041),z=f(739),K=f(57682),j=f(76161),J=f(44213),ee=f(78081),$=f(15427),ae=f(32819),se=f(8392),ce=f(28722);function le(Ut,Rt){1&Ut&&v.Hsn(0)}var oe=["*"];function Ae(Ut,Rt){}var be=function(Rt){return{animationDuration:Rt}},it=function(Rt,Lt){return{value:Rt,params:Lt}},qe=["tabBodyWrapper"],_t=["tabHeader"];function yt(Ut,Rt){}function Ft(Ut,Rt){if(1&Ut&&v.YNc(0,yt,0,0,"ng-template",9),2&Ut){var Lt=v.oxw().$implicit;v.Q6J("cdkPortalOutlet",Lt.templateLabel)}}function xe(Ut,Rt){if(1&Ut&&v._uU(0),2&Ut){var Lt=v.oxw().$implicit;v.Oqu(Lt.textLabel)}}function De(Ut,Rt){if(1&Ut){var Lt=v.EpF();v.TgZ(0,"div",6),v.NdJ("click",function(){var Ne=v.CHM(Lt),Le=Ne.$implicit,ze=Ne.index,At=v.oxw(),an=v.MAs(1);return At._handleClick(Le,an,ze)})("cdkFocusChange",function(Ne){var ze=v.CHM(Lt).index;return v.oxw()._tabFocusChanged(Ne,ze)}),v.TgZ(1,"div",7),v.YNc(2,Ft,1,1,"ng-template",8),v.YNc(3,xe,1,1,"ng-template",8),v.qZA(),v.qZA()}if(2&Ut){var Oe=Rt.$implicit,rt=Rt.index,he=v.oxw();v.ekj("mat-tab-label-active",he.selectedIndex==rt),v.Q6J("id",he._getTabLabelId(rt))("disabled",Oe.disabled)("matRippleDisabled",Oe.disabled||he.disableRipple),v.uIk("tabIndex",he._getTabIndex(Oe,rt))("aria-posinset",rt+1)("aria-setsize",he._tabs.length)("aria-controls",he._getTabContentId(rt))("aria-selected",he.selectedIndex==rt)("aria-label",Oe.ariaLabel||null)("aria-labelledby",!Oe.ariaLabel&&Oe.ariaLabelledby?Oe.ariaLabelledby:null),v.xp6(2),v.Q6J("ngIf",Oe.templateLabel),v.xp6(1),v.Q6J("ngIf",!Oe.templateLabel)}}function je(Ut,Rt){if(1&Ut){var Lt=v.EpF();v.TgZ(0,"mat-tab-body",10),v.NdJ("_onCentered",function(){return v.CHM(Lt),v.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Ne){return v.CHM(Lt),v.oxw()._setTabBodyWrapperHeight(Ne)}),v.qZA()}if(2&Ut){var Oe=Rt.$implicit,rt=Rt.index,he=v.oxw();v.ekj("mat-tab-body-active",he.selectedIndex===rt),v.Q6J("id",he._getTabContentId(rt))("content",Oe.content)("position",Oe.position)("origin",Oe.origin)("animationDuration",he.animationDuration),v.uIk("tabindex",null!=he.contentTabIndex&&he.selectedIndex===rt?he.contentTabIndex:null)("aria-labelledby",he._getTabLabelId(rt))}}var dt=["tabListContainer"],Ke=["tabList"],Bt=["nextPaginator"],xt=["previousPaginator"],Qt=new v.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(Lt){return{left:Lt?(Lt.offsetLeft||0)+"px":"0",width:Lt?(Lt.offsetWidth||0)+"px":"0"}}}}),Ct=function(){var Ut=function(){function Rt(Lt,Oe,rt,he){(0,b.Z)(this,Rt),this._elementRef=Lt,this._ngZone=Oe,this._inkBarPositioner=rt,this._animationMode=he}return(0,_.Z)(Rt,[{key:"alignToElement",value:function(Oe){var rt=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return rt._setStyles(Oe)})}):this._setStyles(Oe)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(Oe){var rt=this._inkBarPositioner(Oe),he=this._elementRef.nativeElement;he.style.left=rt.left,he.style.width=rt.width}}]),Rt}();return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(Qt),v.Y36(T.Qb,8))},Ut.\u0275dir=v.lG2({type:Ut,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Lt,Oe){2&Lt&&v.ekj("_mat-animation-noopable","NoopAnimations"===Oe._animationMode)}}),Ut}(),qt=new v.OlP("MatTabContent"),en=new v.OlP("MatTabLabel"),Nt=new v.OlP("MAT_TAB"),rn=function(){var Ut=function(Rt){(0,w.Z)(Oe,Rt);var Lt=(0,N.Z)(Oe);function Oe(rt,he,Ie){var Ne;return(0,b.Z)(this,Oe),(Ne=Lt.call(this,rt,he))._closestTab=Ie,Ne}return Oe}(A.ig);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(v.Y36(v.Rgc),v.Y36(v.s_b),v.Y36(Nt,8))},Ut.\u0275dir=v.lG2({type:Ut,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[v._Bn([{provide:en,useExisting:Ut}]),v.qOj]}),Ut}(),kn=(0,g.Id)(function(){return function Ut(){(0,b.Z)(this,Ut)}}()),Ln=new v.OlP("MAT_TAB_GROUP"),Rn=function(){var Ut=function(Rt){(0,w.Z)(Oe,Rt);var Lt=(0,N.Z)(Oe);function Oe(rt,he){var Ie;return(0,b.Z)(this,Oe),(Ie=Lt.call(this))._viewContainerRef=rt,Ie._closestTabGroup=he,Ie.textLabel="",Ie._contentPortal=null,Ie._stateChanges=new R.xQ,Ie.position=null,Ie.origin=null,Ie.isActive=!1,Ie}return(0,_.Z)(Oe,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(he){this._setTemplateLabelInput(he)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(he){(he.hasOwnProperty("textLabel")||he.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new A.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(he){he&&he._closestTab===this&&(this._templateLabel=he)}}]),Oe}(kn);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(v.Y36(v.s_b),v.Y36(Ln,8))},Ut.\u0275cmp=v.Xpm({type:Ut,selectors:[["mat-tab"]],contentQueries:function(Lt,Oe,rt){var he;1&Lt&&(v.Suo(rt,en,5),v.Suo(rt,qt,7,v.Rgc)),2&Lt&&(v.iGM(he=v.CRH())&&(Oe.templateLabel=he.first),v.iGM(he=v.CRH())&&(Oe._explicitContent=he.first))},viewQuery:function(Lt,Oe){var rt;1&Lt&&v.Gf(v.Rgc,7),2&Lt&&v.iGM(rt=v.CRH())&&(Oe._implicitContent=rt.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[v._Bn([{provide:Nt,useExisting:Ut}]),v.qOj,v.TTD],ngContentSelectors:oe,decls:1,vars:0,template:function(Lt,Oe){1&Lt&&(v.F$t(),v.YNc(0,le,1,0,"ng-template"))},encapsulation:2}),Ut}(),$n={translateTab:(0,z.X$)("translateTab",[(0,z.SB)("center, void, left-origin-center, right-origin-center",(0,z.oB)({transform:"none"})),(0,z.SB)("left",(0,z.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,z.SB)("right",(0,z.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,z.eR)("* => left, * => right, left => center, right => center",(0,z.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,z.eR)("void => left-origin-center",[(0,z.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,z.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,z.eR)("void => right-origin-center",[(0,z.oB)({transform:"translate3d(100%, 0, 0)"}),(0,z.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Nn=function(){var Ut=function(Rt){(0,w.Z)(Oe,Rt);var Lt=(0,N.Z)(Oe);function Oe(rt,he,Ie,Ne){var Le;return(0,b.Z)(this,Oe),(Le=Lt.call(this,rt,he,Ne))._host=Ie,Le._centeringSub=k.w.EMPTY,Le._leavingSub=k.w.EMPTY,Le}return(0,_.Z)(Oe,[{key:"ngOnInit",value:function(){var he=this;(0,V.Z)((0,Z.Z)(Oe.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,K.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(Ie){Ie&&!he.hasAttached()&&he.attach(he._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){he.detach()})}},{key:"ngOnDestroy",value:function(){(0,V.Z)((0,Z.Z)(Oe.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),Oe}(A.Pl);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(v.Y36(v._Vd),v.Y36(v.s_b),v.Y36((0,v.Gpc)(function(){return _r})),v.Y36(S.K0))},Ut.\u0275dir=v.lG2({type:Ut,selectors:[["","matTabBodyHost",""]],features:[v.qOj]}),Ut}(),wn=function(){var Ut=function(){function Rt(Lt,Oe,rt){var he=this;(0,b.Z)(this,Rt),this._elementRef=Lt,this._dir=Oe,this._dirChangeSubscription=k.w.EMPTY,this._translateTabComplete=new R.xQ,this._onCentering=new v.vpe,this._beforeCentering=new v.vpe,this._afterLeavingCenter=new v.vpe,this._onCentered=new v.vpe(!0),this.animationDuration="500ms",Oe&&(this._dirChangeSubscription=Oe.change.subscribe(function(Ie){he._computePositionAnimationState(Ie),rt.markForCheck()})),this._translateTabComplete.pipe((0,j.x)(function(Ie,Ne){return Ie.fromState===Ne.fromState&&Ie.toState===Ne.toState})).subscribe(function(Ie){he._isCenterPosition(Ie.toState)&&he._isCenterPosition(he._position)&&he._onCentered.emit(),he._isCenterPosition(Ie.fromState)&&!he._isCenterPosition(he._position)&&he._afterLeavingCenter.emit()})}return(0,_.Z)(Rt,[{key:"position",set:function(Oe){this._positionIndex=Oe,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(Oe){var rt=this._isCenterPosition(Oe.toState);this._beforeCentering.emit(rt),rt&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(Oe){return"center"==Oe||"left-origin-center"==Oe||"right-origin-center"==Oe}},{key:"_computePositionAnimationState",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==Oe?"left":"right":this._positionIndex>0?"ltr"==Oe?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(Oe){var rt=this._getLayoutDirection();return"ltr"==rt&&Oe<=0||"rtl"==rt&&Oe>0?"left-origin-center":"right-origin-center"}}]),Rt}();return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(v.Y36(v.SBq),v.Y36(se.Is,8),v.Y36(v.sBO))},Ut.\u0275dir=v.lG2({type:Ut,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ut}(),_r=function(){var Ut=function(Rt){(0,w.Z)(Oe,Rt);var Lt=(0,N.Z)(Oe);function Oe(rt,he,Ie){return(0,b.Z)(this,Oe),Lt.call(this,rt,he,Ie)}return Oe}(wn);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(v.Y36(v.SBq),v.Y36(se.Is,8),v.Y36(v.sBO))},Ut.\u0275cmp=v.Xpm({type:Ut,selectors:[["mat-tab-body"]],viewQuery:function(Lt,Oe){var rt;1&Lt&&v.Gf(A.Pl,5),2&Lt&&v.iGM(rt=v.CRH())&&(Oe._portalHost=rt.first)},hostAttrs:[1,"mat-tab-body"],features:[v.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Lt,Oe){1&Lt&&(v.TgZ(0,"div",0,1),v.NdJ("@translateTab.start",function(he){return Oe._onTranslateTabStarted(he)})("@translateTab.done",function(he){return Oe._translateTabComplete.next(he)}),v.YNc(2,Ae,0,0,"ng-template",2),v.qZA()),2&Lt&&v.Q6J("@translateTab",v.WLB(3,it,Oe._position,v.VKq(1,be,Oe.animationDuration)))},directives:[Nn],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[$n.translateTab]}}),Ut}(),ut=new v.OlP("MAT_TABS_CONFIG"),He=0,ve=function Ut(){(0,b.Z)(this,Ut)},ye=(0,g.pj)((0,g.Kr)(function(){return function Ut(Rt){(0,b.Z)(this,Ut),this._elementRef=Rt}}()),"primary"),Te=function(){var Ut=function(Rt){(0,w.Z)(Oe,Rt);var Lt=(0,N.Z)(Oe);function Oe(rt,he,Ie,Ne){var Le,ze;return(0,b.Z)(this,Oe),(Le=Lt.call(this,rt))._changeDetectorRef=he,Le._animationMode=Ne,Le._tabs=new v.n_E,Le._indexToSelect=0,Le._tabBodyWrapperHeight=0,Le._tabsSubscription=k.w.EMPTY,Le._tabLabelSubscription=k.w.EMPTY,Le._selectedIndex=null,Le.headerPosition="above",Le.selectedIndexChange=new v.vpe,Le.focusChange=new v.vpe,Le.animationDone=new v.vpe,Le.selectedTabChange=new v.vpe(!0),Le._groupId=He++,Le.animationDuration=Ie&&Ie.animationDuration?Ie.animationDuration:"500ms",Le.disablePagination=!(!Ie||null==Ie.disablePagination)&&Ie.disablePagination,Le.dynamicHeight=!(!Ie||null==Ie.dynamicHeight)&&Ie.dynamicHeight,Le.contentTabIndex=null!==(ze=null==Ie?void 0:Ie.contentTabIndex)&&void 0!==ze?ze:null,Le}return(0,_.Z)(Oe,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(he){this._dynamicHeight=(0,ee.Ig)(he)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(he){this._indexToSelect=(0,ee.su)(he,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(he){this._animationDuration=/^\d+$/.test(he)?he+"ms":he}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(he){this._contentTabIndex=(0,ee.su)(he,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(he){var Ie=this._elementRef.nativeElement;Ie.classList.remove("mat-background-".concat(this.backgroundColor)),he&&Ie.classList.add("mat-background-".concat(he)),this._backgroundColor=he}},{key:"ngAfterContentChecked",value:function(){var he=this,Ie=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Ie){var Ne=null==this._selectedIndex;if(!Ne){this.selectedTabChange.emit(this._createChangeEvent(Ie));var Le=this._tabBodyWrapper.nativeElement;Le.style.minHeight=Le.clientHeight+"px"}Promise.resolve().then(function(){he._tabs.forEach(function(ze,At){return ze.isActive=At===Ie}),Ne||(he.selectedIndexChange.emit(Ie),he._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(ze,At){ze.position=At-Ie,null!=he._selectedIndex&&0==ze.position&&!ze.origin&&(ze.origin=Ie-he._selectedIndex)}),this._selectedIndex!==Ie&&(this._selectedIndex=Ie,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var he=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(he._clampTabIndex(he._indexToSelect)===he._selectedIndex)for(var Ne=he._tabs.toArray(),Le=0;Le<Ne.length;Le++)if(Ne[Le].isActive){he._indexToSelect=he._selectedIndex=Le;break}he._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var he=this;this._allTabs.changes.pipe((0,K.O)(this._allTabs)).subscribe(function(Ie){he._tabs.reset(Ie.filter(function(Ne){return Ne._closestTabGroup===he||!Ne._closestTabGroup})),he._tabs.notifyOnChanges()})}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"focusTab",value:function(he){var Ie=this._tabHeader;Ie&&(Ie.focusIndex=he)}},{key:"_focusChanged",value:function(he){this.focusChange.emit(this._createChangeEvent(he))}},{key:"_createChangeEvent",value:function(he){var Ie=new ve;return Ie.index=he,this._tabs&&this._tabs.length&&(Ie.tab=this._tabs.toArray()[he]),Ie}},{key:"_subscribeToTabLabels",value:function(){var he=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=E.T.apply(void 0,(0,U.Z)(this._tabs.map(function(Ie){return Ie._stateChanges}))).subscribe(function(){return he._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(he){return Math.min(this._tabs.length-1,Math.max(he||0,0))}},{key:"_getTabLabelId",value:function(he){return"mat-tab-label-".concat(this._groupId,"-").concat(he)}},{key:"_getTabContentId",value:function(he){return"mat-tab-content-".concat(this._groupId,"-").concat(he)}},{key:"_setTabBodyWrapperHeight",value:function(he){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var Ie=this._tabBodyWrapper.nativeElement;Ie.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Ie.style.height=he+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var he=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=he.clientHeight,he.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(he,Ie,Ne){he.disabled||(this.selectedIndex=Ie.focusIndex=Ne)}},{key:"_getTabIndex",value:function(he,Ie){return he.disabled?null:this.selectedIndex===Ie?0:-1}},{key:"_tabFocusChanged",value:function(he,Ie){he&&"mouse"!==he&&"touch"!==he&&(this._tabHeader.focusIndex=Ie)}}]),Oe}(ye);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(ut,8),v.Y36(T.Qb,8))},Ut.\u0275dir=v.lG2({type:Ut,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[v.qOj]}),Ut}(),we=function(){var Ut=function(Rt){(0,w.Z)(Oe,Rt);var Lt=(0,N.Z)(Oe);function Oe(rt,he,Ie,Ne){return(0,b.Z)(this,Oe),Lt.call(this,rt,he,Ie,Ne)}return Oe}(Te);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(ut,8),v.Y36(T.Qb,8))},Ut.\u0275cmp=v.Xpm({type:Ut,selectors:[["mat-tab-group"]],contentQueries:function(Lt,Oe,rt){var he;1&Lt&&v.Suo(rt,Rn,5),2&Lt&&v.iGM(he=v.CRH())&&(Oe._allTabs=he)},viewQuery:function(Lt,Oe){var rt;1&Lt&&(v.Gf(qe,5),v.Gf(_t,5)),2&Lt&&(v.iGM(rt=v.CRH())&&(Oe._tabBodyWrapper=rt.first),v.iGM(rt=v.CRH())&&(Oe._tabHeader=rt.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Lt,Oe){2&Lt&&v.ekj("mat-tab-group-dynamic-height",Oe.dynamicHeight)("mat-tab-group-inverted-header","below"===Oe.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[v._Bn([{provide:Ln,useExisting:Ut}]),v.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(Lt,Oe){1&Lt&&(v.TgZ(0,"mat-tab-header",0,1),v.NdJ("indexFocused",function(he){return Oe._focusChanged(he)})("selectFocusedIndex",function(he){return Oe.selectedIndex=he}),v.YNc(2,De,4,14,"div",2),v.qZA(),v.TgZ(3,"div",3,4),v.YNc(5,je,1,9,"mat-tab-body",5),v.qZA()),2&Lt&&(v.Q6J("selectedIndex",Oe.selectedIndex||0)("disableRipple",Oe.disableRipple)("disablePagination",Oe.disablePagination),v.xp6(2),v.Q6J("ngForOf",Oe._tabs),v.xp6(1),v.ekj("_mat-animation-noopable","NoopAnimations"===Oe._animationMode),v.xp6(2),v.Q6J("ngForOf",Oe._tabs))},directives:function(){return[Tn,S.sg,ft,g.wG,I.kH,S.O5,A.Pl,_r]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),Ut}(),ct=(0,g.Id)(function(){return function Ut(){(0,b.Z)(this,Ut)}}()),ft=function(){var Ut=function(Rt){(0,w.Z)(Oe,Rt);var Lt=(0,N.Z)(Oe);function Oe(rt){var he;return(0,b.Z)(this,Oe),(he=Lt.call(this)).elementRef=rt,he}return(0,_.Z)(Oe,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),Oe}(ct);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(v.Y36(v.SBq))},Ut.\u0275dir=v.lG2({type:Ut,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Lt,Oe){2&Lt&&(v.uIk("aria-disabled",!!Oe.disabled),v.ekj("mat-tab-disabled",Oe.disabled))},inputs:{disabled:"disabled"},features:[v.qOj]}),Ut}(),Yt=(0,$.i$)({passive:!0}),ln=function(){var Ut=function(){function Rt(Lt,Oe,rt,he,Ie,Ne,Le){var ze=this;(0,b.Z)(this,Rt),this._elementRef=Lt,this._changeDetectorRef=Oe,this._viewportRuler=rt,this._dir=he,this._ngZone=Ie,this._platform=Ne,this._animationMode=Le,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new R.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new R.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new v.vpe,this.indexFocused=new v.vpe,Ie.runOutsideAngular(function(){(0,x.R)(Lt.nativeElement,"mouseleave").pipe((0,J.R)(ze._destroyed)).subscribe(function(){ze._stopInterval()})})}return(0,_.Z)(Rt,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(Oe){Oe=(0,ee.su)(Oe),this._selectedIndex!=Oe&&(this._selectedIndexChanged=!0,this._selectedIndex=Oe,this._keyManager&&this._keyManager.updateActiveItem(Oe))}},{key:"ngAfterViewInit",value:function(){var Oe=this;(0,x.R)(this._previousPaginator.nativeElement,"touchstart",Yt).pipe((0,J.R)(this._destroyed)).subscribe(function(){Oe._handlePaginatorPress("before")}),(0,x.R)(this._nextPaginator.nativeElement,"touchstart",Yt).pipe((0,J.R)(this._destroyed)).subscribe(function(){Oe._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var Oe=this,rt=this._dir?this._dir.change:(0,O.of)("ltr"),he=this._viewportRuler.change(150),Ie=function(){Oe.updatePagination(),Oe._alignInkBarToSelectedTab()};this._keyManager=new I.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(Ie):Ie(),(0,E.T)(rt,he,this._items.changes).pipe((0,J.R)(this._destroyed)).subscribe(function(){Oe._ngZone.run(function(){return Promise.resolve().then(Ie)}),Oe._keyManager.withHorizontalOrientation(Oe._getLayoutDirection())}),this._keyManager.change.pipe((0,J.R)(this._destroyed)).subscribe(function(Ne){Oe.indexFocused.emit(Ne),Oe._setTabFocus(Ne)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(Oe){if(!(0,ae.Vb)(Oe))switch(Oe.keyCode){case ae.K5:case ae.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Oe));break;default:this._keyManager.onKeydown(Oe)}}},{key:"_onContentChanges",value:function(){var Oe=this,rt=this._elementRef.nativeElement.textContent;rt!==this._currentTextContent&&(this._currentTextContent=rt||"",this._ngZone.run(function(){Oe.updatePagination(),Oe._alignInkBarToSelectedTab(),Oe._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(Oe){!this._isValidIndex(Oe)||this.focusIndex===Oe||!this._keyManager||this._keyManager.setActiveItem(Oe)}},{key:"_isValidIndex",value:function(Oe){if(!this._items)return!0;var rt=this._items?this._items.toArray()[Oe]:null;return!!rt&&!rt.disabled}},{key:"_setTabFocus",value:function(Oe){if(this._showPaginationControls&&this._scrollToLabel(Oe),this._items&&this._items.length){this._items.toArray()[Oe].focus();var rt=this._tabListContainer.nativeElement,he=this._getLayoutDirection();rt.scrollLeft="ltr"==he?0:rt.scrollWidth-rt.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var Oe=this.scrollDistance,rt="ltr"===this._getLayoutDirection()?-Oe:Oe;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(rt),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(Oe){this._scrollTo(Oe)}},{key:"_scrollHeader",value:function(Oe){return this._scrollTo(this._scrollDistance+("before"==Oe?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(Oe){this._stopInterval(),this._scrollHeader(Oe)}},{key:"_scrollToLabel",value:function(Oe){if(!this.disablePagination){var rt=this._items?this._items.toArray()[Oe]:null;if(rt){var ze,At,he=this._tabListContainer.nativeElement.offsetWidth,Ie=rt.elementRef.nativeElement,Ne=Ie.offsetLeft,Le=Ie.offsetWidth;"ltr"==this._getLayoutDirection()?At=(ze=Ne)+Le:ze=(At=this._tabList.nativeElement.offsetWidth-Ne)-Le;var an=this.scrollDistance,jn=this.scrollDistance+he;ze<an?this.scrollDistance-=an-ze+60:At>jn&&(this.scrollDistance+=At-jn+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var Oe=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Oe||(this.scrollDistance=0),Oe!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Oe}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var Oe=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,rt=Oe?Oe.elementRef.nativeElement:null;rt?this._inkBar.alignToElement(rt):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(Oe,rt){var he=this;rt&&null!=rt.button&&0!==rt.button||(this._stopInterval(),(0,F.H)(650,100).pipe((0,J.R)((0,E.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var Ie=he._scrollHeader(Oe),Le=Ie.distance;(0===Le||Le>=Ie.maxScrollDistance)&&he._stopInterval()}))}},{key:"_scrollTo",value:function(Oe){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var rt=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(rt,Oe)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:rt,distance:this._scrollDistance}}}]),Rt}();return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(ce.rL),v.Y36(se.Is,8),v.Y36(v.R0b),v.Y36($.t4),v.Y36(T.Qb,8))},Ut.\u0275dir=v.lG2({type:Ut,inputs:{disablePagination:"disablePagination"}}),Ut}(),yn=function(){var Ut=function(Rt){(0,w.Z)(Oe,Rt);var Lt=(0,N.Z)(Oe);function Oe(rt,he,Ie,Ne,Le,ze,At){var an;return(0,b.Z)(this,Oe),(an=Lt.call(this,rt,he,Ie,Ne,Le,ze,At))._disableRipple=!1,an}return(0,_.Z)(Oe,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(he){this._disableRipple=(0,ee.Ig)(he)}},{key:"_itemSelected",value:function(he){he.preventDefault()}}]),Oe}(ln);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(ce.rL),v.Y36(se.Is,8),v.Y36(v.R0b),v.Y36($.t4),v.Y36(T.Qb,8))},Ut.\u0275dir=v.lG2({type:Ut,inputs:{disableRipple:"disableRipple"},features:[v.qOj]}),Ut}(),Tn=function(){var Ut=function(Rt){(0,w.Z)(Oe,Rt);var Lt=(0,N.Z)(Oe);function Oe(rt,he,Ie,Ne,Le,ze,At){return(0,b.Z)(this,Oe),Lt.call(this,rt,he,Ie,Ne,Le,ze,At)}return Oe}(yn);return Ut.\u0275fac=function(Lt){return new(Lt||Ut)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(ce.rL),v.Y36(se.Is,8),v.Y36(v.R0b),v.Y36($.t4),v.Y36(T.Qb,8))},Ut.\u0275cmp=v.Xpm({type:Ut,selectors:[["mat-tab-header"]],contentQueries:function(Lt,Oe,rt){var he;1&Lt&&v.Suo(rt,ft,4),2&Lt&&v.iGM(he=v.CRH())&&(Oe._items=he)},viewQuery:function(Lt,Oe){var rt;1&Lt&&(v.Gf(Ct,7),v.Gf(dt,7),v.Gf(Ke,7),v.Gf(Bt,5),v.Gf(xt,5)),2&Lt&&(v.iGM(rt=v.CRH())&&(Oe._inkBar=rt.first),v.iGM(rt=v.CRH())&&(Oe._tabListContainer=rt.first),v.iGM(rt=v.CRH())&&(Oe._tabList=rt.first),v.iGM(rt=v.CRH())&&(Oe._nextPaginator=rt.first),v.iGM(rt=v.CRH())&&(Oe._previousPaginator=rt.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Lt,Oe){2&Lt&&v.ekj("mat-tab-header-pagination-controls-enabled",Oe._showPaginationControls)("mat-tab-header-rtl","rtl"==Oe._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[v.qOj],ngContentSelectors:oe,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Lt,Oe){1&Lt&&(v.F$t(),v.TgZ(0,"div",0,1),v.NdJ("click",function(){return Oe._handlePaginatorClick("before")})("mousedown",function(he){return Oe._handlePaginatorPress("before",he)})("touchend",function(){return Oe._stopInterval()}),v._UZ(2,"div",2),v.qZA(),v.TgZ(3,"div",3,4),v.NdJ("keydown",function(he){return Oe._handleKeydown(he)}),v.TgZ(5,"div",5,6),v.NdJ("cdkObserveContent",function(){return Oe._onContentChanges()}),v.TgZ(7,"div",7),v.Hsn(8),v.qZA(),v._UZ(9,"mat-ink-bar"),v.qZA(),v.qZA(),v.TgZ(10,"div",8,9),v.NdJ("mousedown",function(he){return Oe._handlePaginatorPress("after",he)})("click",function(){return Oe._handlePaginatorClick("after")})("touchend",function(){return Oe._stopInterval()}),v._UZ(12,"div",2),v.qZA()),2&Lt&&(v.ekj("mat-tab-header-pagination-disabled",Oe._disableScrollBefore),v.Q6J("matRippleDisabled",Oe._disableScrollBefore||Oe.disableRipple),v.xp6(5),v.ekj("_mat-animation-noopable","NoopAnimations"===Oe._animationMode),v.xp6(5),v.ekj("mat-tab-header-pagination-disabled",Oe._disableScrollAfter),v.Q6J("matRippleDisabled",Oe._disableScrollAfter||Oe.disableRipple))},directives:[g.wG,D.wD,Ct],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),Ut}(),ur=function(){var Ut=function Rt(){(0,b.Z)(this,Rt)};return Ut.\u0275fac=function(Lt){return new(Lt||Ut)},Ut.\u0275mod=v.oAB({type:Ut}),Ut.\u0275inj=v.cJS({imports:[[S.ez,g.BQ,A.eL,g.si,D.Q8,I.rt],g.BQ]}),Ut}()},38480:function(ue,q,f){"use strict";f.d(q,{Qb:function(){return hd},PW:function(){return nu}});var B=f(71955),U=f(18967),V=f(14105),Z=f(10509),w=f(97154),N=f(38999),b=f(29176),_=f(739),I=f(13920),D=f(89200),A=f(36683),S=f(62467);function v(){return"undefined"!=typeof window&&void 0!==window.document}function g(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function T(Se){switch(Se.length){case 0:return new _.ZN;case 1:return Se[0];default:return new _.ZE(Se)}}function R(Se,ge,Q,ne){var ke=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},Ve=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},lt=[],wt=[],Zt=-1,$t=null;if(ne.forEach(function(Dn){var Un=Dn.offset,Qn=Un==Zt,fr=Qn&&$t||{};Object.keys(Dn).forEach(function(Or){var br=Or,wr=Dn[Or];if("offset"!==Or)switch(br=ge.normalizePropertyName(br,lt),wr){case _.k1:wr=ke[Or];break;case _.l3:wr=Ve[Or];break;default:wr=ge.normalizeStyleValue(Or,br,wr,lt)}fr[br]=wr}),Qn||wt.push(fr),$t=fr,Zt=Un}),lt.length){var cn="\n - ";throw new Error("Unable to animate due to the following errors:".concat(cn).concat(lt.join(cn)))}return wt}function k(Se,ge,Q,ne){switch(ge){case"start":Se.onStart(function(){return ne(Q&&E(Q,"start",Se))});break;case"done":Se.onDone(function(){return ne(Q&&E(Q,"done",Se))});break;case"destroy":Se.onDestroy(function(){return ne(Q&&E(Q,"destroy",Se))})}}function E(Se,ge,Q){var ne=Q.totalTime,Ve=x(Se.element,Se.triggerName,Se.fromState,Se.toState,ge||Se.phaseName,null==ne?Se.totalTime:ne,!!Q.disabled),lt=Se._data;return null!=lt&&(Ve._data=lt),Ve}function x(Se,ge,Q,ne){var ke=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",Ve=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,lt=arguments.length>6?arguments[6]:void 0;return{element:Se,triggerName:ge,fromState:Q,toState:ne,phaseName:ke,totalTime:Ve,disabled:!!lt}}function O(Se,ge,Q){var ne;return Se instanceof Map?(ne=Se.get(ge))||Se.set(ge,ne=Q):(ne=Se[ge])||(ne=Se[ge]=Q),ne}function F(Se){var ge=Se.indexOf(":");return[Se.substring(1,ge),Se.substr(ge+1)]}var z=function(ge,Q){return!1},j=function(ge,Q){return!1},ee=function(ge,Q,ne){return[]},ae=g();(ae||"undefined"!=typeof Element)&&(z=v()?function(ge,Q){for(;Q&&Q!==document.documentElement;){if(Q===ge)return!0;Q=Q.parentNode||Q.host}return!1}:function(ge,Q){return ge.contains(Q)},j=function(){if(ae||Element.prototype.matches)return function(Q,ne){return Q.matches(ne)};var Se=Element.prototype,ge=Se.matchesSelector||Se.mozMatchesSelector||Se.msMatchesSelector||Se.oMatchesSelector||Se.webkitMatchesSelector;return ge?function(Q,ne){return ge.apply(Q,[ne])}:j}(),ee=function(ge,Q,ne){var ke=[];if(ne)for(var Ve=ge.querySelectorAll(Q),lt=0;lt<Ve.length;lt++)ke.push(Ve[lt]);else{var wt=ge.querySelector(Q);wt&&ke.push(wt)}return ke});var ce=null,le=!1;function oe(Se){ce||(ce=("undefined"!=typeof document?document.body:null)||{},le=!!ce.style&&"WebkitAppearance"in ce.style);var ge=!0;return ce.style&&!function(Se){return"ebkit"==Se.substring(1,6)}(Se)&&!(ge=Se in ce.style)&&le&&(ge="Webkit"+Se.charAt(0).toUpperCase()+Se.substr(1)in ce.style),ge}var be=j,it=z,qe=ee;function _t(Se){var ge={};return Object.keys(Se).forEach(function(Q){var ne=Q.replace(/([a-z])([A-Z])/g,"$1-$2");ge[ne]=Se[Q]}),ge}var yt=function(){var Se=function(){function ge(){(0,U.Z)(this,ge)}return(0,V.Z)(ge,[{key:"validateStyleProperty",value:function(ne){return oe(ne)}},{key:"matchesElement",value:function(ne,ke){return be(ne,ke)}},{key:"containsElement",value:function(ne,ke){return it(ne,ke)}},{key:"query",value:function(ne,ke,Ve){return qe(ne,ke,Ve)}},{key:"computeStyle",value:function(ne,ke,Ve){return Ve||""}},{key:"animate",value:function(ne,ke,Ve,lt,wt){return new _.ZN(Ve,lt)}}]),ge}();return Se.\u0275fac=function(Q){return new(Q||Se)},Se.\u0275prov=N.Yz7({token:Se,factory:Se.\u0275fac}),Se}(),Ft=function(){var Se=function ge(){(0,U.Z)(this,ge)};return Se.NOOP=new yt,Se}(),dt="ng-enter",Ke="ng-leave",vt="ng-trigger",Qt=".ng-trigger",Ht="ng-animating",Ct=".ng-animating";function qt(Se){if("number"==typeof Se)return Se;var ge=Se.match(/^(-?[\.\d]+)(m?s)/);return!ge||ge.length<2?0:bt(parseFloat(ge[1]),ge[2])}function bt(Se,ge){switch(ge){case"s":return 1e3*Se;default:return Se}}function en(Se,ge,Q){return Se.hasOwnProperty("duration")?Se:function(Se,ge,Q){var ke,Ve=0,lt="";if("string"==typeof Se){var wt=Se.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===wt)return ge.push('The provided timing value "'.concat(Se,'" is invalid.')),{duration:0,delay:0,easing:""};ke=bt(parseFloat(wt[1]),wt[2]);var Zt=wt[3];null!=Zt&&(Ve=bt(parseFloat(Zt),wt[4]));var $t=wt[5];$t&&(lt=$t)}else ke=Se;if(!Q){var cn=!1,Dn=ge.length;ke<0&&(ge.push("Duration values below 0 are not allowed for this animation step."),cn=!0),Ve<0&&(ge.push("Delay values below 0 are not allowed for this animation step."),cn=!0),cn&&ge.splice(Dn,0,'The provided timing value "'.concat(Se,'" is invalid.'))}return{duration:ke,delay:Ve,easing:lt}}(Se,ge,Q)}function rn(Se){var ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(Se).forEach(function(Q){ge[Q]=Se[Q]}),ge}function Ln(Se,ge){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ge)for(var ne in Se)Q[ne]=Se[ne];else rn(Se,Q);return Q}function Rn(Se,ge,Q){return Q?ge+":"+Q+";":""}function $n(Se){for(var ge="",Q=0;Q<Se.style.length;Q++){var ne=Se.style.item(Q);ge+=Rn(0,ne,Se.style.getPropertyValue(ne))}for(var ke in Se.style)Se.style.hasOwnProperty(ke)&&!ke.startsWith("_")&&(ge+=Rn(0,ft(ke),Se.style[ke]));Se.setAttribute("style",ge)}function Nn(Se,ge,Q){Se.style&&(Object.keys(ge).forEach(function(ne){var ke=ct(ne);Q&&!Q.hasOwnProperty(ne)&&(Q[ne]=Se.style[ke]),Se.style[ke]=ge[ne]}),g()&&$n(Se))}function wn(Se,ge){Se.style&&(Object.keys(ge).forEach(function(Q){var ne=ct(Q);Se.style[ne]=""}),g()&&$n(Se))}function _r(Se){return Array.isArray(Se)?1==Se.length?Se[0]:(0,_.vP)(Se):Se}var He=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function ve(Se){var ge=[];if("string"==typeof Se){for(var Q;Q=He.exec(Se);)ge.push(Q[1]);He.lastIndex=0}return ge}function ye(Se,ge,Q){var ne=Se.toString(),ke=ne.replace(He,function(Ve,lt){var wt=ge[lt];return ge.hasOwnProperty(lt)||(Q.push("Please provide a value for the animation param ".concat(lt)),wt=""),wt.toString()});return ke==ne?Se:ke}function Te(Se){for(var ge=[],Q=Se.next();!Q.done;)ge.push(Q.value),Q=Se.next();return ge}var we=/-+([a-z0-9])/g;function ct(Se){return Se.replace(we,function(){for(var ge=arguments.length,Q=new Array(ge),ne=0;ne<ge;ne++)Q[ne]=arguments[ne];return Q[1].toUpperCase()})}function ft(Se){return Se.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Yt(Se,ge){return 0===Se||0===ge}function Kt(Se,ge,Q){var ne=Object.keys(Q);if(ne.length&&ge.length){var ke=ge[0],Ve=[];if(ne.forEach(function(Zt){ke.hasOwnProperty(Zt)||Ve.push(Zt),ke[Zt]=Q[Zt]}),Ve.length)for(var lt=function(){var $t=ge[wt];Ve.forEach(function(cn){$t[cn]=nn(Se,cn)})},wt=1;wt<ge.length;wt++)lt()}return ge}function Jt(Se,ge,Q){switch(ge.type){case 7:return Se.visitTrigger(ge,Q);case 0:return Se.visitState(ge,Q);case 1:return Se.visitTransition(ge,Q);case 2:return Se.visitSequence(ge,Q);case 3:return Se.visitGroup(ge,Q);case 4:return Se.visitAnimate(ge,Q);case 5:return Se.visitKeyframes(ge,Q);case 6:return Se.visitStyle(ge,Q);case 8:return Se.visitReference(ge,Q);case 9:return Se.visitAnimateChild(ge,Q);case 10:return Se.visitAnimateRef(ge,Q);case 11:return Se.visitQuery(ge,Q);case 12:return Se.visitStagger(ge,Q);default:throw new Error("Unable to resolve animation metadata node #".concat(ge.type))}}function nn(Se,ge){return window.getComputedStyle(Se)[ge]}function yn(Se,ge){var Q=[];return"string"==typeof Se?Se.split(/\s*,\s*/).forEach(function(ne){return function(Se,ge,Q){if(":"==Se[0]){var ne=function(Se,ge){switch(Se){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(Q,ne){return parseFloat(ne)>parseFloat(Q)};case":decrement":return function(Q,ne){return parseFloat(ne)<parseFloat(Q)};default:return ge.push('The transition alias value "'.concat(Se,'" is not supported')),"* => *"}}(Se,Q);if("function"==typeof ne)return void ge.push(ne);Se=ne}var ke=Se.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==ke||ke.length<4)return Q.push('The provided transition expression "'.concat(Se,'" is not supported')),ge;var Ve=ke[1],lt=ke[2],wt=ke[3];ge.push(Sn(Ve,wt)),"<"==lt[0]&&!("*"==Ve&&"*"==wt)&&ge.push(Sn(wt,Ve))}(ne,Q,ge)}):Q.push(Se),Q}var Yn=new Set(["true","1"]),Cn=new Set(["false","0"]);function Sn(Se,ge){var Q=Yn.has(Se)||Cn.has(Se),ne=Yn.has(ge)||Cn.has(ge);return function(ke,Ve){var lt="*"==Se||Se==ke,wt="*"==ge||ge==Ve;return!lt&&Q&&"boolean"==typeof ke&&(lt=ke?Yn.has(Se):Cn.has(Se)),!wt&&ne&&"boolean"==typeof Ve&&(wt=Ve?Yn.has(ge):Cn.has(ge)),lt&&wt}}var ur=new RegExp("s*".concat(":self","s*,?"),"g");function Ut(Se,ge,Q){return new Lt(Se).build(ge,Q)}var Lt=function(){function Se(ge){(0,U.Z)(this,Se),this._driver=ge}return(0,V.Z)(Se,[{key:"build",value:function(Q,ne){var ke=new he(ne);return this._resetContextStyleTimingState(ke),Jt(this,_r(Q),ke)}},{key:"_resetContextStyleTimingState",value:function(Q){Q.currentQuerySelector="",Q.collectedStyles={},Q.collectedStyles[""]={},Q.currentTime=0}},{key:"visitTrigger",value:function(Q,ne){var ke=this,Ve=ne.queryCount=0,lt=ne.depCount=0,wt=[],Zt=[];return"@"==Q.name.charAt(0)&&ne.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),Q.definitions.forEach(function($t){if(ke._resetContextStyleTimingState(ne),0==$t.type){var cn=$t,Dn=cn.name;Dn.toString().split(/\s*,\s*/).forEach(function(Qn){cn.name=Qn,wt.push(ke.visitState(cn,ne))}),cn.name=Dn}else if(1==$t.type){var Un=ke.visitTransition($t,ne);Ve+=Un.queryCount,lt+=Un.depCount,Zt.push(Un)}else ne.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:Q.name,states:wt,transitions:Zt,queryCount:Ve,depCount:lt,options:null}}},{key:"visitState",value:function(Q,ne){var ke=this.visitStyle(Q.styles,ne),Ve=Q.options&&Q.options.params||null;if(ke.containsDynamicStyles){var lt=new Set,wt=Ve||{};if(ke.styles.forEach(function($t){if(Ne($t)){var cn=$t;Object.keys(cn).forEach(function(Dn){ve(cn[Dn]).forEach(function(Un){wt.hasOwnProperty(Un)||lt.add(Un)})})}}),lt.size){var Zt=Te(lt.values());ne.errors.push('state("'.concat(Q.name,'", ...) must define default values for all the following style substitutions: ').concat(Zt.join(", ")))}}return{type:0,name:Q.name,style:ke,options:Ve?{params:Ve}:null}}},{key:"visitTransition",value:function(Q,ne){ne.queryCount=0,ne.depCount=0;var ke=Jt(this,_r(Q.animation),ne);return{type:1,matchers:yn(Q.expr,ne.errors),animation:ke,queryCount:ne.queryCount,depCount:ne.depCount,options:ze(Q.options)}}},{key:"visitSequence",value:function(Q,ne){var ke=this;return{type:2,steps:Q.steps.map(function(Ve){return Jt(ke,Ve,ne)}),options:ze(Q.options)}}},{key:"visitGroup",value:function(Q,ne){var ke=this,Ve=ne.currentTime,lt=0,wt=Q.steps.map(function(Zt){ne.currentTime=Ve;var $t=Jt(ke,Zt,ne);return lt=Math.max(lt,ne.currentTime),$t});return ne.currentTime=lt,{type:3,steps:wt,options:ze(Q.options)}}},{key:"visitAnimate",value:function(Q,ne){var ke=function(Se,ge){var Q=null;if(Se.hasOwnProperty("duration"))Q=Se;else if("number"==typeof Se)return At(en(Se,ge).duration,0,"");var ke=Se;if(ke.split(/\s+/).some(function(wt){return"{"==wt.charAt(0)&&"{"==wt.charAt(1)})){var lt=At(0,0,"");return lt.dynamic=!0,lt.strValue=ke,lt}return At((Q=Q||en(ke,ge)).duration,Q.delay,Q.easing)}(Q.timings,ne.errors);ne.currentAnimateTimings=ke;var Ve,lt=Q.styles?Q.styles:(0,_.oB)({});if(5==lt.type)Ve=this.visitKeyframes(lt,ne);else{var wt=Q.styles,Zt=!1;if(!wt){Zt=!0;var $t={};ke.easing&&($t.easing=ke.easing),wt=(0,_.oB)($t)}ne.currentTime+=ke.duration+ke.delay;var cn=this.visitStyle(wt,ne);cn.isEmptyStep=Zt,Ve=cn}return ne.currentAnimateTimings=null,{type:4,timings:ke,style:Ve,options:null}}},{key:"visitStyle",value:function(Q,ne){var ke=this._makeStyleAst(Q,ne);return this._validateStyleAst(ke,ne),ke}},{key:"_makeStyleAst",value:function(Q,ne){var ke=[];Array.isArray(Q.styles)?Q.styles.forEach(function(wt){"string"==typeof wt?wt==_.l3?ke.push(wt):ne.errors.push("The provided style string value ".concat(wt," is not allowed.")):ke.push(wt)}):ke.push(Q.styles);var Ve=!1,lt=null;return ke.forEach(function(wt){if(Ne(wt)){var Zt=wt,$t=Zt.easing;if($t&&(lt=$t,delete Zt.easing),!Ve)for(var cn in Zt)if(Zt[cn].toString().indexOf("{{")>=0){Ve=!0;break}}}),{type:6,styles:ke,easing:lt,offset:Q.offset,containsDynamicStyles:Ve,options:null}}},{key:"_validateStyleAst",value:function(Q,ne){var ke=this,Ve=ne.currentAnimateTimings,lt=ne.currentTime,wt=ne.currentTime;Ve&&wt>0&&(wt-=Ve.duration+Ve.delay),Q.styles.forEach(function(Zt){"string"!=typeof Zt&&Object.keys(Zt).forEach(function($t){if(ke._driver.validateStyleProperty($t)){var cn=ne.collectedStyles[ne.currentQuerySelector],Dn=cn[$t],Un=!0;Dn&&(wt!=lt&&wt>=Dn.startTime&<<=Dn.endTime&&(ne.errors.push('The CSS property "'.concat($t,'" that exists between the times of "').concat(Dn.startTime,'ms" and "').concat(Dn.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(wt,'ms" and "').concat(lt,'ms"')),Un=!1),wt=Dn.startTime),Un&&(cn[$t]={startTime:wt,endTime:lt}),ne.options&&function(Se,ge,Q){var ne=ge.params||{},ke=ve(Se);ke.length&&ke.forEach(function(Ve){ne.hasOwnProperty(Ve)||Q.push("Unable to resolve the local animation param ".concat(Ve," in the given list of values"))})}(Zt[$t],ne.options,ne.errors)}else ne.errors.push('The provided animation property "'.concat($t,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(Q,ne){var ke=this,Ve={type:5,styles:[],options:null};if(!ne.currentAnimateTimings)return ne.errors.push("keyframes() must be placed inside of a call to animate()"),Ve;var wt=0,Zt=[],$t=!1,cn=!1,Dn=0,Un=Q.steps.map(function(hi){var oi=ke._makeStyleAst(hi,ne),Ao=null!=oi.offset?oi.offset:function(Se){if("string"==typeof Se)return null;var ge=null;if(Array.isArray(Se))Se.forEach(function(ne){if(Ne(ne)&&ne.hasOwnProperty("offset")){var ke=ne;ge=parseFloat(ke.offset),delete ke.offset}});else if(Ne(Se)&&Se.hasOwnProperty("offset")){var Q=Se;ge=parseFloat(Q.offset),delete Q.offset}return ge}(oi.styles),Be=0;return null!=Ao&&(wt++,Be=oi.offset=Ao),cn=cn||Be<0||Be>1,$t=$t||Be<Dn,Dn=Be,Zt.push(Be),oi});cn&&ne.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),$t&&ne.errors.push("Please ensure that all keyframe offsets are in order");var Qn=Q.steps.length,fr=0;wt>0&&wt<Qn?ne.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==wt&&(fr=1/(Qn-1));var Or=Qn-1,br=ne.currentTime,wr=ne.currentAnimateTimings,ui=wr.duration;return Un.forEach(function(hi,oi){var Ao=fr>0?oi==Or?1:fr*oi:Zt[oi],Be=Ao*ui;ne.currentTime=br+wr.delay+Be,wr.duration=Be,ke._validateStyleAst(hi,ne),hi.offset=Ao,Ve.styles.push(hi)}),Ve}},{key:"visitReference",value:function(Q,ne){return{type:8,animation:Jt(this,_r(Q.animation),ne),options:ze(Q.options)}}},{key:"visitAnimateChild",value:function(Q,ne){return ne.depCount++,{type:9,options:ze(Q.options)}}},{key:"visitAnimateRef",value:function(Q,ne){return{type:10,animation:this.visitReference(Q.animation,ne),options:ze(Q.options)}}},{key:"visitQuery",value:function(Q,ne){var ke=ne.currentQuerySelector,Ve=Q.options||{};ne.queryCount++,ne.currentQuery=Q;var lt=function(Se){var ge=!!Se.split(/\s*,\s*/).find(function(Q){return":self"==Q});return ge&&(Se=Se.replace(ur,"")),[Se=Se.replace(/@\*/g,Qt).replace(/@\w+/g,function(Q){return Qt+"-"+Q.substr(1)}).replace(/:animating/g,Ct),ge]}(Q.selector),wt=(0,B.Z)(lt,2),Zt=wt[0],$t=wt[1];ne.currentQuerySelector=ke.length?ke+" "+Zt:Zt,O(ne.collectedStyles,ne.currentQuerySelector,{});var cn=Jt(this,_r(Q.animation),ne);return ne.currentQuery=null,ne.currentQuerySelector=ke,{type:11,selector:Zt,limit:Ve.limit||0,optional:!!Ve.optional,includeSelf:$t,animation:cn,originalSelector:Q.selector,options:ze(Q.options)}}},{key:"visitStagger",value:function(Q,ne){ne.currentQuery||ne.errors.push("stagger() can only be used inside of query()");var ke="full"===Q.timings?{duration:0,delay:0,easing:"full"}:en(Q.timings,ne.errors,!0);return{type:12,animation:Jt(this,_r(Q.animation),ne),timings:ke,options:null}}}]),Se}(),he=function Se(ge){(0,U.Z)(this,Se),this.errors=ge,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Ne(Se){return!Array.isArray(Se)&&"object"==typeof Se}function ze(Se){return Se?(Se=rn(Se)).params&&(Se.params=function(Se){return Se?rn(Se):null}(Se.params)):Se={},Se}function At(Se,ge,Q){return{duration:Se,delay:ge,easing:Q}}function an(Se,ge,Q,ne,ke,Ve){var lt=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,wt=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:Se,keyframes:ge,preStyleProps:Q,postStyleProps:ne,duration:ke,delay:Ve,totalTime:ke+Ve,easing:lt,subTimeline:wt}}var jn=function(){function Se(){(0,U.Z)(this,Se),this._map=new Map}return(0,V.Z)(Se,[{key:"consume",value:function(Q){var ne=this._map.get(Q);return ne?this._map.delete(Q):ne=[],ne}},{key:"append",value:function(Q,ne){var ke,Ve=this._map.get(Q);Ve||this._map.set(Q,Ve=[]),(ke=Ve).push.apply(ke,(0,S.Z)(ne))}},{key:"has",value:function(Q){return this._map.has(Q)}},{key:"clear",value:function(){this._map.clear()}}]),Se}(),yr=new RegExp(":enter","g"),co=new RegExp(":leave","g");function Zi(Se,ge,Q,ne,ke){var Ve=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},lt=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},wt=arguments.length>7?arguments[7]:void 0,Zt=arguments.length>8?arguments[8]:void 0,$t=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new bo).buildKeyframes(Se,ge,Q,ne,ke,Ve,lt,wt,Zt,$t)}var bo=function(){function Se(){(0,U.Z)(this,Se)}return(0,V.Z)(Se,[{key:"buildKeyframes",value:function(Q,ne,ke,Ve,lt,wt,Zt,$t,cn){var Dn=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];cn=cn||new jn;var Un=new Xo(Q,ne,cn,Ve,lt,Dn,[]);Un.options=$t,Un.currentTimeline.setStyles([wt],null,Un.errors,$t),Jt(this,ke,Un);var Qn=Un.timelines.filter(function(Or){return Or.containsAnimation()});if(Qn.length&&Object.keys(Zt).length){var fr=Qn[Qn.length-1];fr.allowOnlyTimelineStyles()||fr.setStyles([Zt],null,Un.errors,$t)}return Qn.length?Qn.map(function(Or){return Or.buildKeyframes()}):[an(ne,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(Q,ne){}},{key:"visitState",value:function(Q,ne){}},{key:"visitTransition",value:function(Q,ne){}},{key:"visitAnimateChild",value:function(Q,ne){var ke=ne.subInstructions.consume(ne.element);if(ke){var Ve=ne.createSubContext(Q.options),lt=ne.currentTimeline.currentTime,wt=this._visitSubInstructions(ke,Ve,Ve.options);lt!=wt&&ne.transformIntoNewTimeline(wt)}ne.previousNode=Q}},{key:"visitAnimateRef",value:function(Q,ne){var ke=ne.createSubContext(Q.options);ke.transformIntoNewTimeline(),this.visitReference(Q.animation,ke),ne.transformIntoNewTimeline(ke.currentTimeline.currentTime),ne.previousNode=Q}},{key:"_visitSubInstructions",value:function(Q,ne,ke){var lt=ne.currentTimeline.currentTime,wt=null!=ke.duration?qt(ke.duration):null,Zt=null!=ke.delay?qt(ke.delay):null;return 0!==wt&&Q.forEach(function($t){var cn=ne.appendInstructionToTimeline($t,wt,Zt);lt=Math.max(lt,cn.duration+cn.delay)}),lt}},{key:"visitReference",value:function(Q,ne){ne.updateOptions(Q.options,!0),Jt(this,Q.animation,ne),ne.previousNode=Q}},{key:"visitSequence",value:function(Q,ne){var ke=this,Ve=ne.subContextCount,lt=ne,wt=Q.options;if(wt&&(wt.params||wt.delay)&&((lt=ne.createSubContext(wt)).transformIntoNewTimeline(),null!=wt.delay)){6==lt.previousNode.type&&(lt.currentTimeline.snapshotCurrentStyles(),lt.previousNode=po);var Zt=qt(wt.delay);lt.delayNextStep(Zt)}Q.steps.length&&(Q.steps.forEach(function($t){return Jt(ke,$t,lt)}),lt.currentTimeline.applyStylesToKeyframe(),lt.subContextCount>Ve&<.transformIntoNewTimeline()),ne.previousNode=Q}},{key:"visitGroup",value:function(Q,ne){var ke=this,Ve=[],lt=ne.currentTimeline.currentTime,wt=Q.options&&Q.options.delay?qt(Q.options.delay):0;Q.steps.forEach(function(Zt){var $t=ne.createSubContext(Q.options);wt&&$t.delayNextStep(wt),Jt(ke,Zt,$t),lt=Math.max(lt,$t.currentTimeline.currentTime),Ve.push($t.currentTimeline)}),Ve.forEach(function(Zt){return ne.currentTimeline.mergeTimelineCollectedStyles(Zt)}),ne.transformIntoNewTimeline(lt),ne.previousNode=Q}},{key:"_visitTiming",value:function(Q,ne){if(Q.dynamic){var ke=Q.strValue;return en(ne.params?ye(ke,ne.params,ne.errors):ke,ne.errors)}return{duration:Q.duration,delay:Q.delay,easing:Q.easing}}},{key:"visitAnimate",value:function(Q,ne){var ke=ne.currentAnimateTimings=this._visitTiming(Q.timings,ne),Ve=ne.currentTimeline;ke.delay&&(ne.incrementTime(ke.delay),Ve.snapshotCurrentStyles());var lt=Q.style;5==lt.type?this.visitKeyframes(lt,ne):(ne.incrementTime(ke.duration),this.visitStyle(lt,ne),Ve.applyStylesToKeyframe()),ne.currentAnimateTimings=null,ne.previousNode=Q}},{key:"visitStyle",value:function(Q,ne){var ke=ne.currentTimeline,Ve=ne.currentAnimateTimings;!Ve&&ke.getCurrentStyleProperties().length&&ke.forwardFrame();var lt=Ve&&Ve.easing||Q.easing;Q.isEmptyStep?ke.applyEmptyStep(lt):ke.setStyles(Q.styles,lt,ne.errors,ne.options),ne.previousNode=Q}},{key:"visitKeyframes",value:function(Q,ne){var ke=ne.currentAnimateTimings,Ve=ne.currentTimeline.duration,lt=ke.duration,Zt=ne.createSubContext().currentTimeline;Zt.easing=ke.easing,Q.styles.forEach(function($t){Zt.forwardTime(($t.offset||0)*lt),Zt.setStyles($t.styles,$t.easing,ne.errors,ne.options),Zt.applyStylesToKeyframe()}),ne.currentTimeline.mergeTimelineCollectedStyles(Zt),ne.transformIntoNewTimeline(Ve+lt),ne.previousNode=Q}},{key:"visitQuery",value:function(Q,ne){var ke=this,Ve=ne.currentTimeline.currentTime,lt=Q.options||{},wt=lt.delay?qt(lt.delay):0;wt&&(6===ne.previousNode.type||0==Ve&&ne.currentTimeline.getCurrentStyleProperties().length)&&(ne.currentTimeline.snapshotCurrentStyles(),ne.previousNode=po);var Zt=Ve,$t=ne.invokeQuery(Q.selector,Q.originalSelector,Q.limit,Q.includeSelf,!!lt.optional,ne.errors);ne.currentQueryTotal=$t.length;var cn=null;$t.forEach(function(Dn,Un){ne.currentQueryIndex=Un;var Qn=ne.createSubContext(Q.options,Dn);wt&&Qn.delayNextStep(wt),Dn===ne.element&&(cn=Qn.currentTimeline),Jt(ke,Q.animation,Qn),Qn.currentTimeline.applyStylesToKeyframe(),Zt=Math.max(Zt,Qn.currentTimeline.currentTime)}),ne.currentQueryIndex=0,ne.currentQueryTotal=0,ne.transformIntoNewTimeline(Zt),cn&&(ne.currentTimeline.mergeTimelineCollectedStyles(cn),ne.currentTimeline.snapshotCurrentStyles()),ne.previousNode=Q}},{key:"visitStagger",value:function(Q,ne){var ke=ne.parentContext,Ve=ne.currentTimeline,lt=Q.timings,wt=Math.abs(lt.duration),Zt=wt*(ne.currentQueryTotal-1),$t=wt*ne.currentQueryIndex;switch(lt.duration<0?"reverse":lt.easing){case"reverse":$t=Zt-$t;break;case"full":$t=ke.currentStaggerTime}var Dn=ne.currentTimeline;$t&&Dn.delayNextStep($t);var Un=Dn.currentTime;Jt(this,Q.animation,ne),ne.previousNode=Q,ke.currentStaggerTime=Ve.currentTime-Un+(Ve.startTime-ke.currentTimeline.startTime)}}]),Se}(),po={},Xo=function(){function Se(ge,Q,ne,ke,Ve,lt,wt,Zt){(0,U.Z)(this,Se),this._driver=ge,this.element=Q,this.subInstructions=ne,this._enterClassName=ke,this._leaveClassName=Ve,this.errors=lt,this.timelines=wt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=po,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Zt||new Ei(this._driver,Q,0),wt.push(this.currentTimeline)}return(0,V.Z)(Se,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(Q,ne){var ke=this;if(Q){var Ve=Q,lt=this.options;null!=Ve.duration&&(lt.duration=qt(Ve.duration)),null!=Ve.delay&&(lt.delay=qt(Ve.delay));var wt=Ve.params;if(wt){var Zt=lt.params;Zt||(Zt=this.options.params={}),Object.keys(wt).forEach(function($t){(!ne||!Zt.hasOwnProperty($t))&&(Zt[$t]=ye(wt[$t],Zt,ke.errors))})}}}},{key:"_copyOptions",value:function(){var Q={};if(this.options){var ne=this.options.params;if(ne){var ke=Q.params={};Object.keys(ne).forEach(function(Ve){ke[Ve]=ne[Ve]})}}return Q}},{key:"createSubContext",value:function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ne=arguments.length>1?arguments[1]:void 0,ke=arguments.length>2?arguments[2]:void 0,Ve=ne||this.element,lt=new Se(this._driver,Ve,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Ve,ke||0));return lt.previousNode=this.previousNode,lt.currentAnimateTimings=this.currentAnimateTimings,lt.options=this._copyOptions(),lt.updateOptions(Q),lt.currentQueryIndex=this.currentQueryIndex,lt.currentQueryTotal=this.currentQueryTotal,lt.parentContext=this,this.subContextCount++,lt}},{key:"transformIntoNewTimeline",value:function(Q){return this.previousNode=po,this.currentTimeline=this.currentTimeline.fork(this.element,Q),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(Q,ne,ke){var Ve={duration:null!=ne?ne:Q.duration,delay:this.currentTimeline.currentTime+(null!=ke?ke:0)+Q.delay,easing:""},lt=new no(this._driver,Q.element,Q.keyframes,Q.preStyleProps,Q.postStyleProps,Ve,Q.stretchStartingKeyframe);return this.timelines.push(lt),Ve}},{key:"incrementTime",value:function(Q){this.currentTimeline.forwardTime(this.currentTimeline.duration+Q)}},{key:"delayNextStep",value:function(Q){Q>0&&this.currentTimeline.delayNextStep(Q)}},{key:"invokeQuery",value:function(Q,ne,ke,Ve,lt,wt){var Zt=[];if(Ve&&Zt.push(this.element),Q.length>0){Q=(Q=Q.replace(yr,"."+this._enterClassName)).replace(co,"."+this._leaveClassName);var cn=this._driver.query(this.element,Q,1!=ke);0!==ke&&(cn=ke<0?cn.slice(cn.length+ke,cn.length):cn.slice(0,ke)),Zt.push.apply(Zt,(0,S.Z)(cn))}return!lt&&0==Zt.length&&wt.push('`query("'.concat(ne,'")` returned zero elements. (Use `query("').concat(ne,'", { optional: true })` if you wish to allow this.)')),Zt}}]),Se}(),Ei=function(){function Se(ge,Q,ne,ke){(0,U.Z)(this,Se),this._driver=ge,this.element=Q,this.startTime=ne,this._elementTimelineStylesLookup=ke,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(Q),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(Q,this._localTimelineStyles)),this._loadKeyframe()}return(0,V.Z)(Se,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(Q){var ne=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||ne?(this.forwardTime(this.currentTime+Q),ne&&this.snapshotCurrentStyles()):this.startTime+=Q}},{key:"fork",value:function(Q,ne){return this.applyStylesToKeyframe(),new Se(this._driver,Q,ne||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(Q){this.applyStylesToKeyframe(),this.duration=Q,this._loadKeyframe()}},{key:"_updateStyle",value:function(Q,ne){this._localTimelineStyles[Q]=ne,this._globalTimelineStyles[Q]=ne,this._styleSummary[Q]={time:this.currentTime,value:ne}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(Q){var ne=this;Q&&(this._previousKeyframe.easing=Q),Object.keys(this._globalTimelineStyles).forEach(function(ke){ne._backFill[ke]=ne._globalTimelineStyles[ke]||_.l3,ne._currentKeyframe[ke]=_.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(Q,ne,ke,Ve){var lt=this;ne&&(this._previousKeyframe.easing=ne);var wt=Ve&&Ve.params||{},Zt=function(Se,ge){var ne,Q={};return Se.forEach(function(ke){"*"===ke?(ne=ne||Object.keys(ge)).forEach(function(Ve){Q[Ve]=_.l3}):Ln(ke,!1,Q)}),Q}(Q,this._globalTimelineStyles);Object.keys(Zt).forEach(function($t){var cn=ye(Zt[$t],wt,ke);lt._pendingStyles[$t]=cn,lt._localTimelineStyles.hasOwnProperty($t)||(lt._backFill[$t]=lt._globalTimelineStyles.hasOwnProperty($t)?lt._globalTimelineStyles[$t]:_.l3),lt._updateStyle($t,cn)})}},{key:"applyStylesToKeyframe",value:function(){var Q=this,ne=this._pendingStyles,ke=Object.keys(ne);0!=ke.length&&(this._pendingStyles={},ke.forEach(function(Ve){Q._currentKeyframe[Ve]=ne[Ve]}),Object.keys(this._localTimelineStyles).forEach(function(Ve){Q._currentKeyframe.hasOwnProperty(Ve)||(Q._currentKeyframe[Ve]=Q._localTimelineStyles[Ve])}))}},{key:"snapshotCurrentStyles",value:function(){var Q=this;Object.keys(this._localTimelineStyles).forEach(function(ne){var ke=Q._localTimelineStyles[ne];Q._pendingStyles[ne]=ke,Q._updateStyle(ne,ke)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var Q=[];for(var ne in this._currentKeyframe)Q.push(ne);return Q}},{key:"mergeTimelineCollectedStyles",value:function(Q){var ne=this;Object.keys(Q._styleSummary).forEach(function(ke){var Ve=ne._styleSummary[ke],lt=Q._styleSummary[ke];(!Ve||lt.time>Ve.time)&&ne._updateStyle(ke,lt.value)})}},{key:"buildKeyframes",value:function(){var Q=this;this.applyStylesToKeyframe();var ne=new Set,ke=new Set,Ve=1===this._keyframes.size&&0===this.duration,lt=[];this._keyframes.forEach(function(Dn,Un){var Qn=Ln(Dn,!0);Object.keys(Qn).forEach(function(fr){var Or=Qn[fr];Or==_.k1?ne.add(fr):Or==_.l3&&ke.add(fr)}),Ve||(Qn.offset=Un/Q.duration),lt.push(Qn)});var wt=ne.size?Te(ne.values()):[],Zt=ke.size?Te(ke.values()):[];if(Ve){var $t=lt[0],cn=rn($t);$t.offset=0,cn.offset=1,lt=[$t,cn]}return an(this.element,lt,wt,Zt,this.duration,this.startTime,this.easing,!1)}}]),Se}(),no=function(Se){(0,Z.Z)(Q,Se);var ge=(0,w.Z)(Q);function Q(ne,ke,Ve,lt,wt,Zt){var $t,cn=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,U.Z)(this,Q),($t=ge.call(this,ne,ke,Zt.delay)).keyframes=Ve,$t.preStyleProps=lt,$t.postStyleProps=wt,$t._stretchStartingKeyframe=cn,$t.timings={duration:Zt.duration,delay:Zt.delay,easing:Zt.easing},$t}return(0,V.Z)(Q,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var ke=this.keyframes,Ve=this.timings,lt=Ve.delay,wt=Ve.duration,Zt=Ve.easing;if(this._stretchStartingKeyframe&<){var $t=[],cn=wt+lt,Dn=lt/cn,Un=Ln(ke[0],!1);Un.offset=0,$t.push(Un);var Qn=Ln(ke[0],!1);Qn.offset=vi(Dn),$t.push(Qn);for(var fr=ke.length-1,Or=1;Or<=fr;Or++){var br=Ln(ke[Or],!1);br.offset=vi((lt+br.offset*wt)/cn),$t.push(br)}wt=cn,lt=0,Zt="",ke=$t}return an(this.element,ke,this.preStyleProps,this.postStyleProps,wt,lt,Zt,!0)}}]),Q}(Ei);function vi(Se){var ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,Q=Math.pow(10,ge-1);return Math.round(Se*Q)/Q}var fi=function Se(){(0,U.Z)(this,Se)},ki=function(Se){(0,Z.Z)(Q,Se);var ge=(0,w.Z)(Q);function Q(){return(0,U.Z)(this,Q),ge.apply(this,arguments)}return(0,V.Z)(Q,[{key:"normalizePropertyName",value:function(ke,Ve){return ct(ke)}},{key:"normalizeStyleValue",value:function(ke,Ve,lt,wt){var Zt="",$t=lt.toString().trim();if(Ot[Ve]&&0!==lt&&"0"!==lt)if("number"==typeof lt)Zt="px";else{var cn=lt.match(/^[+-]?[\d\.]+([a-z]*)$/);cn&&0==cn[1].length&&wt.push("Please provide a CSS unit value for ".concat(ke,":").concat(lt))}return $t+Zt}}]),Q}(fi),Ot=function(){return Se="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),ge={},Se.forEach(function(Q){return ge[Q]=!0}),ge;var Se,ge}();function Pt(Se,ge,Q,ne,ke,Ve,lt,wt,Zt,$t,cn,Dn,Un){return{type:0,element:Se,triggerName:ge,isRemovalTransition:ke,fromState:Q,fromStyles:Ve,toState:ne,toStyles:lt,timelines:wt,queriedElements:Zt,preStyleProps:$t,postStyleProps:cn,totalTime:Dn,errors:Un}}var Vt={},Gt=function(){function Se(ge,Q,ne){(0,U.Z)(this,Se),this._triggerName=ge,this.ast=Q,this._stateStyles=ne}return(0,V.Z)(Se,[{key:"match",value:function(Q,ne,ke,Ve){return function(Se,ge,Q,ne,ke){return Se.some(function(Ve){return Ve(ge,Q,ne,ke)})}(this.ast.matchers,Q,ne,ke,Ve)}},{key:"buildStyles",value:function(Q,ne,ke){var Ve=this._stateStyles["*"],lt=this._stateStyles[Q],wt=Ve?Ve.buildStyles(ne,ke):{};return lt?lt.buildStyles(ne,ke):wt}},{key:"build",value:function(Q,ne,ke,Ve,lt,wt,Zt,$t,cn,Dn){var Un=[],Qn=this.ast.options&&this.ast.options.params||Vt,Or=this.buildStyles(ke,Zt&&Zt.params||Vt,Un),br=$t&&$t.params||Vt,wr=this.buildStyles(Ve,br,Un),ui=new Set,hi=new Map,oi=new Map,Ao="void"===Ve,Be={params:Object.assign(Object.assign({},Qn),br)},Ye=Dn?[]:Zi(Q,ne,this.ast.animation,lt,wt,Or,wr,Be,cn,Un),Ee=0;if(Ye.forEach(function(Ze){Ee=Math.max(Ze.duration+Ze.delay,Ee)}),Un.length)return Pt(ne,this._triggerName,ke,Ve,Ao,Or,wr,[],[],hi,oi,Ee,Un);Ye.forEach(function(Ze){var nt=Ze.element,Tt=O(hi,nt,{});Ze.preStyleProps.forEach(function(bn){return Tt[bn]=!0});var sn=O(oi,nt,{});Ze.postStyleProps.forEach(function(bn){return sn[bn]=!0}),nt!==ne&&ui.add(nt)});var Ue=Te(ui.values());return Pt(ne,this._triggerName,ke,Ve,Ao,Or,wr,Ye,Ue,hi,oi,Ee)}}]),Se}(),gn=function(){function Se(ge,Q,ne){(0,U.Z)(this,Se),this.styles=ge,this.defaultParams=Q,this.normalizer=ne}return(0,V.Z)(Se,[{key:"buildStyles",value:function(Q,ne){var ke=this,Ve={},lt=rn(this.defaultParams);return Object.keys(Q).forEach(function(wt){var Zt=Q[wt];null!=Zt&&(lt[wt]=Zt)}),this.styles.styles.forEach(function(wt){if("string"!=typeof wt){var Zt=wt;Object.keys(Zt).forEach(function($t){var cn=Zt[$t];cn.length>1&&(cn=ye(cn,lt,ne));var Dn=ke.normalizer.normalizePropertyName($t,ne);cn=ke.normalizer.normalizeStyleValue($t,Dn,cn,ne),Ve[Dn]=cn})}}),Ve}}]),Se}(),zn=function(){function Se(ge,Q,ne){var ke=this;(0,U.Z)(this,Se),this.name=ge,this.ast=Q,this._normalizer=ne,this.transitionFactories=[],this.states={},Q.states.forEach(function(Ve){ke.states[Ve.name]=new gn(Ve.style,Ve.options&&Ve.options.params||{},ne)}),si(this.states,"true","1"),si(this.states,"false","0"),Q.transitions.forEach(function(Ve){ke.transitionFactories.push(new Gt(ge,Ve,ke.states))}),this.fallbackTransition=function(Se,ge,Q){return new Gt(Se,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(lt,wt){return!0}],options:null,queryCount:0,depCount:0},ge)}(ge,this.states)}return(0,V.Z)(Se,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(Q,ne,ke,Ve){return this.transitionFactories.find(function(wt){return wt.match(Q,ne,ke,Ve)})||null}},{key:"matchStyles",value:function(Q,ne,ke){return this.fallbackTransition.buildStyles(Q,ne,ke)}}]),Se}();function si(Se,ge,Q){Se.hasOwnProperty(ge)?Se.hasOwnProperty(Q)||(Se[Q]=Se[ge]):Se.hasOwnProperty(Q)&&(Se[ge]=Se[Q])}var Si=new jn,ro=function(){function Se(ge,Q,ne){(0,U.Z)(this,Se),this.bodyNode=ge,this._driver=Q,this._normalizer=ne,this._animations={},this._playersById={},this.players=[]}return(0,V.Z)(Se,[{key:"register",value:function(Q,ne){var ke=[],Ve=Ut(this._driver,ne,ke);if(ke.length)throw new Error("Unable to build the animation due to the following errors: ".concat(ke.join("\n")));this._animations[Q]=Ve}},{key:"_buildPlayer",value:function(Q,ne,ke){var Ve=Q.element,lt=R(this._driver,this._normalizer,Ve,Q.keyframes,ne,ke);return this._driver.animate(Ve,lt,Q.duration,Q.delay,Q.easing,[],!0)}},{key:"create",value:function(Q,ne){var Zt,ke=this,Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},lt=[],wt=this._animations[Q],$t=new Map;if(wt?(Zt=Zi(this._driver,ne,wt,dt,Ke,{},{},Ve,Si,lt)).forEach(function(Un){var Qn=O($t,Un.element,{});Un.postStyleProps.forEach(function(fr){return Qn[fr]=null})}):(lt.push("The requested animation doesn't exist or has already been destroyed"),Zt=[]),lt.length)throw new Error("Unable to create the animation due to the following errors: ".concat(lt.join("\n")));$t.forEach(function(Un,Qn){Object.keys(Un).forEach(function(fr){Un[fr]=ke._driver.computeStyle(Qn,fr,_.l3)})});var cn=Zt.map(function(Un){var Qn=$t.get(Un.element);return ke._buildPlayer(Un,{},Qn)}),Dn=T(cn);return this._playersById[Q]=Dn,Dn.onDestroy(function(){return ke.destroy(Q)}),this.players.push(Dn),Dn}},{key:"destroy",value:function(Q){var ne=this._getPlayer(Q);ne.destroy(),delete this._playersById[Q];var ke=this.players.indexOf(ne);ke>=0&&this.players.splice(ke,1)}},{key:"_getPlayer",value:function(Q){var ne=this._playersById[Q];if(!ne)throw new Error("Unable to find the timeline player referenced by ".concat(Q));return ne}},{key:"listen",value:function(Q,ne,ke,Ve){var lt=x(ne,"","","");return k(this._getPlayer(Q),ke,lt,Ve),function(){}}},{key:"command",value:function(Q,ne,ke,Ve){if("register"!=ke)if("create"!=ke){var wt=this._getPlayer(Q);switch(ke){case"play":wt.play();break;case"pause":wt.pause();break;case"reset":wt.reset();break;case"restart":wt.restart();break;case"finish":wt.finish();break;case"init":wt.init();break;case"setPosition":wt.setPosition(parseFloat(Ve[0]));break;case"destroy":this.destroy(Q)}}else this.create(Q,ne,Ve[0]||{});else this.register(Q,Ve[0])}}]),Se}(),Co="ng-animate-queued",Io="ng-animate-disabled",$o=".ng-animate-disabled",ko="ng-star-inserted",Ho=[],io={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ji={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ji="__ng_removed",Vo=function(){function Se(ge){var Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,U.Z)(this,Se),this.namespaceId=Q;var ne=ge&&ge.hasOwnProperty("value"),ke=ne?ge.value:ge;if(this.value=pa(ke),ne){var Ve=rn(ge);delete Ve.value,this.options=Ve}else this.options={};this.options.params||(this.options.params={})}return(0,V.Z)(Se,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(Q){var ne=Q.params;if(ne){var ke=this.options.params;Object.keys(ne).forEach(function(Ve){null==ke[Ve]&&(ke[Ve]=ne[Ve])})}}}]),Se}(),Ti="void",Qi=new Vo(Ti),fn=function(){function Se(ge,Q,ne){(0,U.Z)(this,Se),this.id=ge,this.hostElement=Q,this._engine=ne,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+ge,To(Q,this._hostClassName)}return(0,V.Z)(Se,[{key:"listen",value:function(Q,ne,ke,Ve){var lt=this;if(!this._triggers.hasOwnProperty(ne))throw new Error('Unable to listen on the animation trigger event "'.concat(ke,'" because the animation trigger "').concat(ne,"\" doesn't exist!"));if(null==ke||0==ke.length)throw new Error('Unable to listen on the animation trigger "'.concat(ne,'" because the provided event is undefined!'));if(!function(Se){return"start"==Se||"done"==Se}(ke))throw new Error('The provided animation trigger event "'.concat(ke,'" for the animation trigger "').concat(ne,'" is not supported!'));var wt=O(this._elementListeners,Q,[]),Zt={name:ne,phase:ke,callback:Ve};wt.push(Zt);var $t=O(this._engine.statesByElement,Q,{});return $t.hasOwnProperty(ne)||(To(Q,vt),To(Q,vt+"-"+ne),$t[ne]=Qi),function(){lt._engine.afterFlush(function(){var cn=wt.indexOf(Zt);cn>=0&&wt.splice(cn,1),lt._triggers[ne]||delete $t[ne]})}}},{key:"register",value:function(Q,ne){return!this._triggers[Q]&&(this._triggers[Q]=ne,!0)}},{key:"_getTrigger",value:function(Q){var ne=this._triggers[Q];if(!ne)throw new Error('The provided animation trigger "'.concat(Q,'" has not been registered!'));return ne}},{key:"trigger",value:function(Q,ne,ke){var Ve=this,lt=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],wt=this._getTrigger(ne),Zt=new pr(this.id,ne,Q),$t=this._engine.statesByElement.get(Q);$t||(To(Q,vt),To(Q,vt+"-"+ne),this._engine.statesByElement.set(Q,$t={}));var cn=$t[ne],Dn=new Vo(ke,this.id),Un=ke&&ke.hasOwnProperty("value");!Un&&cn&&Dn.absorbOptions(cn.options),$t[ne]=Dn,cn||(cn=Qi);var Qn=Dn.value===Ti;if(Qn||cn.value!==Dn.value){var wr=O(this._engine.playersByElement,Q,[]);wr.forEach(function(oi){oi.namespaceId==Ve.id&&oi.triggerName==ne&&oi.queued&&oi.destroy()});var ui=wt.matchTransition(cn.value,Dn.value,Q,Dn.params),hi=!1;if(!ui){if(!lt)return;ui=wt.fallbackTransition,hi=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:Q,triggerName:ne,transition:ui,fromState:cn,toState:Dn,player:Zt,isFallbackTransition:hi}),hi||(To(Q,Co),Zt.onStart(function(){ha(Q,Co)})),Zt.onDone(function(){var oi=Ve.players.indexOf(Zt);oi>=0&&Ve.players.splice(oi,1);var Ao=Ve._engine.playersByElement.get(Q);if(Ao){var Be=Ao.indexOf(Zt);Be>=0&&Ao.splice(Be,1)}}),this.players.push(Zt),wr.push(Zt),Zt}if(!Ui(cn.params,Dn.params)){var fr=[],Or=wt.matchStyles(cn.value,cn.params,fr),br=wt.matchStyles(Dn.value,Dn.params,fr);fr.length?this._engine.reportError(fr):this._engine.afterFlush(function(){wn(Q,Or),Nn(Q,br)})}}},{key:"deregister",value:function(Q){var ne=this;delete this._triggers[Q],this._engine.statesByElement.forEach(function(ke,Ve){delete ke[Q]}),this._elementListeners.forEach(function(ke,Ve){ne._elementListeners.set(Ve,ke.filter(function(lt){return lt.name!=Q}))})}},{key:"clearElementCache",value:function(Q){this._engine.statesByElement.delete(Q),this._elementListeners.delete(Q);var ne=this._engine.playersByElement.get(Q);ne&&(ne.forEach(function(ke){return ke.destroy()}),this._engine.playersByElement.delete(Q))}},{key:"_signalRemovalForInnerTriggers",value:function(Q,ne){var ke=this,Ve=this._engine.driver.query(Q,Qt,!0);Ve.forEach(function(lt){if(!lt[Ji]){var wt=ke._engine.fetchNamespacesByElement(lt);wt.size?wt.forEach(function(Zt){return Zt.triggerLeaveAnimation(lt,ne,!1,!0)}):ke.clearElementCache(lt)}}),this._engine.afterFlushAnimationsDone(function(){return Ve.forEach(function(lt){return ke.clearElementCache(lt)})})}},{key:"triggerLeaveAnimation",value:function(Q,ne,ke,Ve){var lt=this,wt=this._engine.statesByElement.get(Q);if(wt){var Zt=[];if(Object.keys(wt).forEach(function($t){if(lt._triggers[$t]){var cn=lt.trigger(Q,$t,Ti,Ve);cn&&Zt.push(cn)}}),Zt.length)return this._engine.markElementAsRemoved(this.id,Q,!0,ne),ke&&T(Zt).onDone(function(){return lt._engine.processLeaveNode(Q)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(Q){var ne=this,ke=this._elementListeners.get(Q),Ve=this._engine.statesByElement.get(Q);if(ke&&Ve){var lt=new Set;ke.forEach(function(wt){var Zt=wt.name;if(!lt.has(Zt)){lt.add(Zt);var cn=ne._triggers[Zt].fallbackTransition,Dn=Ve[Zt]||Qi,Un=new Vo(Ti),Qn=new pr(ne.id,Zt,Q);ne._engine.totalQueuedPlayers++,ne._queue.push({element:Q,triggerName:Zt,transition:cn,fromState:Dn,toState:Un,player:Qn,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(Q,ne){var ke=this,Ve=this._engine;if(Q.childElementCount&&this._signalRemovalForInnerTriggers(Q,ne),!this.triggerLeaveAnimation(Q,ne,!0)){var lt=!1;if(Ve.totalAnimations){var wt=Ve.players.length?Ve.playersByQueriedElement.get(Q):[];if(wt&&wt.length)lt=!0;else for(var Zt=Q;Zt=Zt.parentNode;)if(Ve.statesByElement.get(Zt)){lt=!0;break}}if(this.prepareLeaveAnimationListeners(Q),lt)Ve.markElementAsRemoved(this.id,Q,!1,ne);else{var cn=Q[Ji];(!cn||cn===io)&&(Ve.afterFlush(function(){return ke.clearElementCache(Q)}),Ve.destroyInnerAnimations(Q),Ve._onRemovalComplete(Q,ne))}}}},{key:"insertNode",value:function(Q,ne){To(Q,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(Q){var ne=this,ke=[];return this._queue.forEach(function(Ve){var lt=Ve.player;if(!lt.destroyed){var wt=Ve.element,Zt=ne._elementListeners.get(wt);Zt&&Zt.forEach(function($t){if($t.name==Ve.triggerName){var cn=x(wt,Ve.triggerName,Ve.fromState.value,Ve.toState.value);cn._data=Q,k(Ve.player,$t.phase,cn,$t.callback)}}),lt.markedForDestroy?ne._engine.afterFlush(function(){lt.destroy()}):ke.push(Ve)}}),this._queue=[],ke.sort(function(Ve,lt){var wt=Ve.transition.ast.depCount,Zt=lt.transition.ast.depCount;return 0==wt||0==Zt?wt-Zt:ne._engine.driver.containsElement(Ve.element,lt.element)?1:-1})}},{key:"destroy",value:function(Q){this.players.forEach(function(ne){return ne.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,Q)}},{key:"elementContainsData",value:function(Q){var ne=!1;return this._elementListeners.has(Q)&&(ne=!0),!!this._queue.find(function(ke){return ke.element===Q})||ne}}]),Se}(),vn=function(){function Se(ge,Q,ne){(0,U.Z)(this,Se),this.bodyNode=ge,this.driver=Q,this._normalizer=ne,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(ke,Ve){}}return(0,V.Z)(Se,[{key:"_onRemovalComplete",value:function(Q,ne){this.onRemovalComplete(Q,ne)}},{key:"queuedPlayers",get:function(){var Q=[];return this._namespaceList.forEach(function(ne){ne.players.forEach(function(ke){ke.queued&&Q.push(ke)})}),Q}},{key:"createNamespace",value:function(Q,ne){var ke=new fn(Q,ne,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,ne)?this._balanceNamespaceList(ke,ne):(this.newHostElements.set(ne,ke),this.collectEnterElement(ne)),this._namespaceLookup[Q]=ke}},{key:"_balanceNamespaceList",value:function(Q,ne){var ke=this._namespaceList.length-1;if(ke>=0){for(var Ve=!1,lt=ke;lt>=0;lt--)if(this.driver.containsElement(this._namespaceList[lt].hostElement,ne)){this._namespaceList.splice(lt+1,0,Q),Ve=!0;break}Ve||this._namespaceList.splice(0,0,Q)}else this._namespaceList.push(Q);return this.namespacesByHostElement.set(ne,Q),Q}},{key:"register",value:function(Q,ne){var ke=this._namespaceLookup[Q];return ke||(ke=this.createNamespace(Q,ne)),ke}},{key:"registerTrigger",value:function(Q,ne,ke){var Ve=this._namespaceLookup[Q];Ve&&Ve.register(ne,ke)&&this.totalAnimations++}},{key:"destroy",value:function(Q,ne){var ke=this;if(Q){var Ve=this._fetchNamespace(Q);this.afterFlush(function(){ke.namespacesByHostElement.delete(Ve.hostElement),delete ke._namespaceLookup[Q];var lt=ke._namespaceList.indexOf(Ve);lt>=0&&ke._namespaceList.splice(lt,1)}),this.afterFlushAnimationsDone(function(){return Ve.destroy(ne)})}}},{key:"_fetchNamespace",value:function(Q){return this._namespaceLookup[Q]}},{key:"fetchNamespacesByElement",value:function(Q){var ne=new Set,ke=this.statesByElement.get(Q);if(ke)for(var Ve=Object.keys(ke),lt=0;lt<Ve.length;lt++){var wt=ke[Ve[lt]].namespaceId;if(wt){var Zt=this._fetchNamespace(wt);Zt&&ne.add(Zt)}}return ne}},{key:"trigger",value:function(Q,ne,ke,Ve){if(xi(ne)){var lt=this._fetchNamespace(Q);if(lt)return lt.trigger(ne,ke,Ve),!0}return!1}},{key:"insertNode",value:function(Q,ne,ke,Ve){if(xi(ne)){var lt=ne[Ji];if(lt&<.setForRemoval){lt.setForRemoval=!1,lt.setForMove=!0;var wt=this.collectedLeaveElements.indexOf(ne);wt>=0&&this.collectedLeaveElements.splice(wt,1)}if(Q){var Zt=this._fetchNamespace(Q);Zt&&Zt.insertNode(ne,ke)}Ve&&this.collectEnterElement(ne)}}},{key:"collectEnterElement",value:function(Q){this.collectedEnterElements.push(Q)}},{key:"markElementAsDisabled",value:function(Q,ne){ne?this.disabledNodes.has(Q)||(this.disabledNodes.add(Q),To(Q,Io)):this.disabledNodes.has(Q)&&(this.disabledNodes.delete(Q),ha(Q,Io))}},{key:"removeNode",value:function(Q,ne,ke,Ve){if(xi(ne)){var lt=Q?this._fetchNamespace(Q):null;if(lt?lt.removeNode(ne,Ve):this.markElementAsRemoved(Q,ne,!1,Ve),ke){var wt=this.namespacesByHostElement.get(ne);wt&&wt.id!==Q&&wt.removeNode(ne,Ve)}}else this._onRemovalComplete(ne,Ve)}},{key:"markElementAsRemoved",value:function(Q,ne,ke,Ve){this.collectedLeaveElements.push(ne),ne[Ji]={namespaceId:Q,setForRemoval:Ve,hasAnimation:ke,removedBeforeQueried:!1}}},{key:"listen",value:function(Q,ne,ke,Ve,lt){return xi(ne)?this._fetchNamespace(Q).listen(ne,ke,Ve,lt):function(){}}},{key:"_buildInstruction",value:function(Q,ne,ke,Ve,lt){return Q.transition.build(this.driver,Q.element,Q.fromState.value,Q.toState.value,ke,Ve,Q.fromState.options,Q.toState.options,ne,lt)}},{key:"destroyInnerAnimations",value:function(Q){var ne=this,ke=this.driver.query(Q,Qt,!0);ke.forEach(function(Ve){return ne.destroyActiveAnimationsForElement(Ve)}),0!=this.playersByQueriedElement.size&&(ke=this.driver.query(Q,Ct,!0)).forEach(function(Ve){return ne.finishActiveQueriedAnimationOnElement(Ve)})}},{key:"destroyActiveAnimationsForElement",value:function(Q){var ne=this.playersByElement.get(Q);ne&&ne.forEach(function(ke){ke.queued?ke.markedForDestroy=!0:ke.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(Q){var ne=this.playersByQueriedElement.get(Q);ne&&ne.forEach(function(ke){return ke.finish()})}},{key:"whenRenderingDone",value:function(){var Q=this;return new Promise(function(ne){if(Q.players.length)return T(Q.players).onDone(function(){return ne()});ne()})}},{key:"processLeaveNode",value:function(Q){var ne=this,ke=Q[Ji];if(ke&&ke.setForRemoval){if(Q[Ji]=io,ke.namespaceId){this.destroyInnerAnimations(Q);var Ve=this._fetchNamespace(ke.namespaceId);Ve&&Ve.clearElementCache(Q)}this._onRemovalComplete(Q,ke.setForRemoval)}this.driver.matchesElement(Q,$o)&&this.markElementAsDisabled(Q,!1),this.driver.query(Q,$o,!0).forEach(function(lt){ne.markElementAsDisabled(lt,!1)})}},{key:"flush",value:function(){var Q=this,ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,ke=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(Un,Qn){return Q._balanceNamespaceList(Un,Qn)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var Ve=0;Ve<this.collectedEnterElements.length;Ve++){var lt=this.collectedEnterElements[Ve];To(lt,ko)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var wt=[];try{ke=this._flushAnimations(wt,ne)}finally{for(var Zt=0;Zt<wt.length;Zt++)wt[Zt]()}}else for(var $t=0;$t<this.collectedLeaveElements.length;$t++){var cn=this.collectedLeaveElements[$t];this.processLeaveNode(cn)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(Un){return Un()}),this._flushFns=[],this._whenQuietFns.length){var Dn=this._whenQuietFns;this._whenQuietFns=[],ke.length?T(ke).onDone(function(){Dn.forEach(function(Un){return Un()})}):Dn.forEach(function(Un){return Un()})}}},{key:"reportError",value:function(Q){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(Q.join("\n")))}},{key:"_flushAnimations",value:function(Q,ne){var ke=this,Ve=new jn,lt=[],wt=new Map,Zt=[],$t=new Map,cn=new Map,Dn=new Map,Un=new Set;this.disabledNodes.forEach(function(nr){Un.add(nr);for(var Pr=ke.driver.query(nr,".ng-animate-queued",!0),kr=0;kr<Pr.length;kr++)Un.add(Pr[kr])});var Qn=this.bodyNode,fr=Array.from(this.statesByElement.keys()),Or=Mo(fr,this.collectedEnterElements),br=new Map,wr=0;Or.forEach(function(nr,Pr){var kr=dt+wr++;br.set(Pr,kr),nr.forEach(function(Xi){return To(Xi,kr)})});for(var ui=[],hi=new Set,oi=new Set,Ao=0;Ao<this.collectedLeaveElements.length;Ao++){var Be=this.collectedLeaveElements[Ao],Ye=Be[Ji];Ye&&Ye.setForRemoval&&(ui.push(Be),hi.add(Be),Ye.hasAnimation?this.driver.query(Be,".ng-star-inserted",!0).forEach(function(nr){return hi.add(nr)}):oi.add(Be))}var Ee=new Map,Ue=Mo(fr,Array.from(hi));Ue.forEach(function(nr,Pr){var kr=Ke+wr++;Ee.set(Pr,kr),nr.forEach(function(Xi){return To(Xi,kr)})}),Q.push(function(){Or.forEach(function(nr,Pr){var kr=br.get(Pr);nr.forEach(function(Xi){return ha(Xi,kr)})}),Ue.forEach(function(nr,Pr){var kr=Ee.get(Pr);nr.forEach(function(Xi){return ha(Xi,kr)})}),ui.forEach(function(nr){ke.processLeaveNode(nr)})});for(var Ze=[],nt=[],Tt=this._namespaceList.length-1;Tt>=0;Tt--)this._namespaceList[Tt].drainQueuedTransitions(ne).forEach(function(nr){var Pr=nr.player,kr=nr.element;if(Ze.push(Pr),ke.collectedEnterElements.length){var Xi=kr[Ji];if(Xi&&Xi.setForMove)return void Pr.destroy()}var $a=!Qn||!ke.driver.containsElement(Qn,kr),Sc=Ee.get(kr),ru=br.get(kr),ta=ke._buildInstruction(nr,Ve,ru,Sc,$a);if(ta.errors&&ta.errors.length)nt.push(ta);else{if($a)return Pr.onStart(function(){return wn(kr,ta.fromStyles)}),Pr.onDestroy(function(){return Nn(kr,ta.toStyles)}),void lt.push(Pr);if(nr.isFallbackTransition)return Pr.onStart(function(){return wn(kr,ta.fromStyles)}),Pr.onDestroy(function(){return Nn(kr,ta.toStyles)}),void lt.push(Pr);ta.timelines.forEach(function(As){return As.stretchStartingKeyframe=!0}),Ve.append(kr,ta.timelines),Zt.push({instruction:ta,player:Pr,element:kr}),ta.queriedElements.forEach(function(As){return O($t,As,[]).push(Pr)}),ta.preStyleProps.forEach(function(As,gd){var kv=Object.keys(As);if(kv.length){var Ys=cn.get(gd);Ys||cn.set(gd,Ys=new Set),kv.forEach(function(Rp){return Ys.add(Rp)})}}),ta.postStyleProps.forEach(function(As,gd){var kv=Object.keys(As),Ys=Dn.get(gd);Ys||Dn.set(gd,Ys=new Set),kv.forEach(function(Rp){return Ys.add(Rp)})})}});if(nt.length){var bn=[];nt.forEach(function(nr){bn.push("@".concat(nr.triggerName," has failed due to:\n")),nr.errors.forEach(function(Pr){return bn.push("- ".concat(Pr,"\n"))})}),Ze.forEach(function(nr){return nr.destroy()}),this.reportError(bn)}var Tr=new Map,Ii=new Map;Zt.forEach(function(nr){var Pr=nr.element;Ve.has(Pr)&&(Ii.set(Pr,Pr),ke._beforeAnimationBuild(nr.player.namespaceId,nr.instruction,Tr))}),lt.forEach(function(nr){var Pr=nr.element;ke._getPreviousPlayers(Pr,!1,nr.namespaceId,nr.triggerName,null).forEach(function(Xi){O(Tr,Pr,[]).push(Xi),Xi.destroy()})});var ea=ui.filter(function(nr){return ma(nr,cn,Dn)}),Da=new Map;fa(Da,this.driver,oi,Dn,_.l3).forEach(function(nr){ma(nr,cn,Dn)&&ea.push(nr)});var Do=new Map;Or.forEach(function(nr,Pr){fa(Do,ke.driver,new Set(nr),cn,_.k1)}),ea.forEach(function(nr){var Pr=Da.get(nr),kr=Do.get(nr);Da.set(nr,Object.assign(Object.assign({},Pr),kr))});var hs=[],oo=[],dh={};Zt.forEach(function(nr){var Pr=nr.element,kr=nr.player,Xi=nr.instruction;if(Ve.has(Pr)){if(Un.has(Pr))return kr.onDestroy(function(){return Nn(Pr,Xi.toStyles)}),kr.disabled=!0,kr.overrideTotalTime(Xi.totalTime),void lt.push(kr);var $a=dh;if(Ii.size>1){for(var Sc=Pr,ru=[];Sc=Sc.parentNode;){var ta=Ii.get(Sc);if(ta){$a=ta;break}ru.push(Sc)}ru.forEach(function(gd){return Ii.set(gd,$a)})}var Ip=ke._buildAnimation(kr.namespaceId,Xi,Tr,wt,Do,Da);if(kr.setRealPlayer(Ip),$a===dh)hs.push(kr);else{var As=ke.playersByElement.get($a);As&&As.length&&(kr.parentPlayer=T(As)),lt.push(kr)}}else wn(Pr,Xi.fromStyles),kr.onDestroy(function(){return Nn(Pr,Xi.toStyles)}),oo.push(kr),Un.has(Pr)&<.push(kr)}),oo.forEach(function(nr){var Pr=wt.get(nr.element);if(Pr&&Pr.length){var kr=T(Pr);nr.setRealPlayer(kr)}}),lt.forEach(function(nr){nr.parentPlayer?nr.syncPlayerEvents(nr.parentPlayer):nr.destroy()});for(var Pp=0;Pp<ui.length;Pp++){var Iu=ui[Pp],ph=Iu[Ji];if(ha(Iu,Ke),!ph||!ph.hasAnimation){var bc=[];if($t.size){var Gs=$t.get(Iu);Gs&&Gs.length&&bc.push.apply(bc,(0,S.Z)(Gs));for(var jo=this.driver.query(Iu,Ct,!0),Ru=0;Ru<jo.length;Ru++){var Cc=$t.get(jo[Ru]);Cc&&Cc.length&&bc.push.apply(bc,(0,S.Z)(Cc))}}var Oo=bc.filter(function(nr){return!nr.destroyed});Oo.length?ka(this,Iu,Oo):this.processLeaveNode(Iu)}}return ui.length=0,hs.forEach(function(nr){ke.players.push(nr),nr.onDone(function(){nr.destroy();var Pr=ke.players.indexOf(nr);ke.players.splice(Pr,1)}),nr.play()}),hs}},{key:"elementContainsData",value:function(Q,ne){var ke=!1,Ve=ne[Ji];return Ve&&Ve.setForRemoval&&(ke=!0),this.playersByElement.has(ne)&&(ke=!0),this.playersByQueriedElement.has(ne)&&(ke=!0),this.statesByElement.has(ne)&&(ke=!0),this._fetchNamespace(Q).elementContainsData(ne)||ke}},{key:"afterFlush",value:function(Q){this._flushFns.push(Q)}},{key:"afterFlushAnimationsDone",value:function(Q){this._whenQuietFns.push(Q)}},{key:"_getPreviousPlayers",value:function(Q,ne,ke,Ve,lt){var wt=[];if(ne){var Zt=this.playersByQueriedElement.get(Q);Zt&&(wt=Zt)}else{var $t=this.playersByElement.get(Q);if($t){var cn=!lt||lt==Ti;$t.forEach(function(Dn){Dn.queued||!cn&&Dn.triggerName!=Ve||wt.push(Dn)})}}return(ke||Ve)&&(wt=wt.filter(function(Dn){return!(ke&&ke!=Dn.namespaceId||Ve&&Ve!=Dn.triggerName)})),wt}},{key:"_beforeAnimationBuild",value:function(Q,ne,ke){var Dn,Ve=this,wt=ne.element,Zt=ne.isRemovalTransition?void 0:Q,$t=ne.isRemovalTransition?void 0:ne.triggerName,cn=(0,A.Z)(ne.timelines);try{var Un=function(){var Or=Dn.value.element,br=Or!==wt,wr=O(ke,Or,[]);Ve._getPreviousPlayers(Or,br,Zt,$t,ne.toState).forEach(function(hi){var oi=hi.getRealPlayer();oi.beforeDestroy&&oi.beforeDestroy(),hi.destroy(),wr.push(hi)})};for(cn.s();!(Dn=cn.n()).done;)Un()}catch(Qn){cn.e(Qn)}finally{cn.f()}wn(wt,ne.fromStyles)}},{key:"_buildAnimation",value:function(Q,ne,ke,Ve,lt,wt){var Zt=this,$t=ne.triggerName,cn=ne.element,Dn=[],Un=new Set,Qn=new Set,fr=ne.timelines.map(function(br){var wr=br.element;Un.add(wr);var ui=wr[Ji];if(ui&&ui.removedBeforeQueried)return new _.ZN(br.duration,br.delay);var hi=wr!==cn,oi=function(Se){var ge=[];return xo(Se,ge),ge}((ke.get(wr)||Ho).map(function(Ze){return Ze.getRealPlayer()})).filter(function(Ze){return!!Ze.element&&Ze.element===wr}),Ao=lt.get(wr),Be=wt.get(wr),Ye=R(Zt.driver,Zt._normalizer,wr,br.keyframes,Ao,Be),Ee=Zt._buildPlayer(br,Ye,oi);if(br.subTimeline&&Ve&&Qn.add(wr),hi){var Ue=new pr(Q,$t,wr);Ue.setRealPlayer(Ee),Dn.push(Ue)}return Ee});Dn.forEach(function(br){O(Zt.playersByQueriedElement,br.element,[]).push(br),br.onDone(function(){return function(Se,ge,Q){var ne;if(Se instanceof Map){if(ne=Se.get(ge)){if(ne.length){var ke=ne.indexOf(Q);ne.splice(ke,1)}0==ne.length&&Se.delete(ge)}}else if(ne=Se[ge]){if(ne.length){var Ve=ne.indexOf(Q);ne.splice(Ve,1)}0==ne.length&&delete Se[ge]}return ne}(Zt.playersByQueriedElement,br.element,br)})}),Un.forEach(function(br){return To(br,Ht)});var Or=T(fr);return Or.onDestroy(function(){Un.forEach(function(br){return ha(br,Ht)}),Nn(cn,ne.toStyles)}),Qn.forEach(function(br){O(Ve,br,[]).push(Or)}),Or}},{key:"_buildPlayer",value:function(Q,ne,ke){return ne.length>0?this.driver.animate(Q.element,ne,Q.duration,Q.delay,Q.easing,ke):new _.ZN(Q.duration,Q.delay)}}]),Se}(),pr=function(){function Se(ge,Q,ne){(0,U.Z)(this,Se),this.namespaceId=ge,this.triggerName=Q,this.element=ne,this._player=new _.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return(0,V.Z)(Se,[{key:"setRealPlayer",value:function(Q){var ne=this;this._containsRealPlayer||(this._player=Q,Object.keys(this._queuedCallbacks).forEach(function(ke){ne._queuedCallbacks[ke].forEach(function(Ve){return k(Q,ke,void 0,Ve)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(Q.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(Q){this.totalTime=Q}},{key:"syncPlayerEvents",value:function(Q){var ne=this,ke=this._player;ke.triggerCallback&&Q.onStart(function(){return ke.triggerCallback("start")}),Q.onDone(function(){return ne.finish()}),Q.onDestroy(function(){return ne.destroy()})}},{key:"_queueEvent",value:function(Q,ne){O(this._queuedCallbacks,Q,[]).push(ne)}},{key:"onDone",value:function(Q){this.queued&&this._queueEvent("done",Q),this._player.onDone(Q)}},{key:"onStart",value:function(Q){this.queued&&this._queueEvent("start",Q),this._player.onStart(Q)}},{key:"onDestroy",value:function(Q){this.queued&&this._queueEvent("destroy",Q),this._player.onDestroy(Q)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(Q){this.queued||this._player.setPosition(Q)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(Q){var ne=this._player;ne.triggerCallback&&ne.triggerCallback(Q)}}]),Se}();function pa(Se){return null!=Se?Se:null}function xi(Se){return Se&&1===Se.nodeType}function Fi(Se,ge){var Q=Se.style.display;return Se.style.display=null!=ge?ge:"none",Q}function fa(Se,ge,Q,ne,ke){var Ve=[];Q.forEach(function(Zt){return Ve.push(Fi(Zt))});var lt=[];ne.forEach(function(Zt,$t){var cn={};Zt.forEach(function(Dn){var Un=cn[Dn]=ge.computeStyle($t,Dn,ke);(!Un||0==Un.length)&&($t[Ji]=ji,lt.push($t))}),Se.set($t,cn)});var wt=0;return Q.forEach(function(Zt){return Fi(Zt,Ve[wt++])}),lt}function Mo(Se,ge){var Q=new Map;if(Se.forEach(function(wt){return Q.set(wt,[])}),0==ge.length)return Q;var ke=new Set(ge),Ve=new Map;function lt(wt){if(!wt)return 1;var Zt=Ve.get(wt);if(Zt)return Zt;var $t=wt.parentNode;return Zt=Q.has($t)?$t:ke.has($t)?1:lt($t),Ve.set(wt,Zt),Zt}return ge.forEach(function(wt){var Zt=lt(wt);1!==Zt&&Q.get(Zt).push(wt)}),Q}var Ro="$$classes";function To(Se,ge){if(Se.classList)Se.classList.add(ge);else{var Q=Se[Ro];Q||(Q=Se[Ro]={}),Q[ge]=!0}}function ha(Se,ge){if(Se.classList)Se.classList.remove(ge);else{var Q=Se[Ro];Q&&delete Q[ge]}}function ka(Se,ge,Q){T(Q).onDone(function(){return Se.processLeaveNode(ge)})}function xo(Se,ge){for(var Q=0;Q<Se.length;Q++){var ne=Se[Q];ne instanceof _.ZE?xo(ne.players,ge):ge.push(ne)}}function Ui(Se,ge){var Q=Object.keys(Se),ne=Object.keys(ge);if(Q.length!=ne.length)return!1;for(var ke=0;ke<Q.length;ke++){var Ve=Q[ke];if(!ge.hasOwnProperty(Ve)||Se[Ve]!==ge[Ve])return!1}return!0}function ma(Se,ge,Q){var ne=Q.get(Se);if(!ne)return!1;var ke=ge.get(Se);return ke?ne.forEach(function(Ve){return ke.add(Ve)}):ge.set(Se,ne),Q.delete(Se),!0}var zi=function(){function Se(ge,Q,ne){var ke=this;(0,U.Z)(this,Se),this.bodyNode=ge,this._driver=Q,this._normalizer=ne,this._triggerCache={},this.onRemovalComplete=function(Ve,lt){},this._transitionEngine=new vn(ge,Q,ne),this._timelineEngine=new ro(ge,Q,ne),this._transitionEngine.onRemovalComplete=function(Ve,lt){return ke.onRemovalComplete(Ve,lt)}}return(0,V.Z)(Se,[{key:"registerTrigger",value:function(Q,ne,ke,Ve,lt){var wt=Q+"-"+Ve,Zt=this._triggerCache[wt];if(!Zt){var $t=[],cn=Ut(this._driver,lt,$t);if($t.length)throw new Error('The animation trigger "'.concat(Ve,'" has failed to build due to the following errors:\n - ').concat($t.join("\n - ")));Zt=function(Se,ge,Q){return new zn(Se,ge,Q)}(Ve,cn,this._normalizer),this._triggerCache[wt]=Zt}this._transitionEngine.registerTrigger(ne,Ve,Zt)}},{key:"register",value:function(Q,ne){this._transitionEngine.register(Q,ne)}},{key:"destroy",value:function(Q,ne){this._transitionEngine.destroy(Q,ne)}},{key:"onInsert",value:function(Q,ne,ke,Ve){this._transitionEngine.insertNode(Q,ne,ke,Ve)}},{key:"onRemove",value:function(Q,ne,ke,Ve){this._transitionEngine.removeNode(Q,ne,Ve||!1,ke)}},{key:"disableAnimations",value:function(Q,ne){this._transitionEngine.markElementAsDisabled(Q,ne)}},{key:"process",value:function(Q,ne,ke,Ve){if("@"==ke.charAt(0)){var lt=F(ke),wt=(0,B.Z)(lt,2);this._timelineEngine.command(wt[0],ne,wt[1],Ve)}else this._transitionEngine.trigger(Q,ne,ke,Ve)}},{key:"listen",value:function(Q,ne,ke,Ve,lt){if("@"==ke.charAt(0)){var wt=F(ke),Zt=(0,B.Z)(wt,2);return this._timelineEngine.listen(Zt[0],ne,Zt[1],lt)}return this._transitionEngine.listen(Q,ne,ke,Ve,lt)}},{key:"flush",value:function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(Q)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),Se}();function va(Se,ge){var Q=null,ne=null;return Array.isArray(ge)&&ge.length?(Q=gr(ge[0]),ge.length>1&&(ne=gr(ge[ge.length-1]))):ge&&(Q=gr(ge)),Q||ne?new ga(Se,Q,ne):null}var ga=function(){var Se=function(){function ge(Q,ne,ke){(0,U.Z)(this,ge),this._element=Q,this._startStyles=ne,this._endStyles=ke,this._state=0;var Ve=ge.initialStylesByElement.get(Q);Ve||ge.initialStylesByElement.set(Q,Ve={}),this._initialStyles=Ve}return(0,V.Z)(ge,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Nn(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Nn(this._element,this._initialStyles),this._endStyles&&(Nn(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(ge.initialStylesByElement.delete(this._element),this._startStyles&&(wn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wn(this._element,this._endStyles),this._endStyles=null),Nn(this._element,this._initialStyles),this._state=3)}}]),ge}();return Se.initialStylesByElement=new WeakMap,Se}();function gr(Se){for(var ge=null,Q=Object.keys(Se),ne=0;ne<Q.length;ne++){var ke=Q[ne];Bn(ke)&&((ge=ge||{})[ke]=Se[ke])}return ge}function Bn(Se){return"display"===Se||"position"===Se}var Hi="animation",Ua="animationend",Wi=function(){function Se(ge,Q,ne,ke,Ve,lt,wt){var Zt=this;(0,U.Z)(this,Se),this._element=ge,this._name=Q,this._duration=ne,this._delay=ke,this._easing=Ve,this._fillMode=lt,this._onDoneFn=wt,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function($t){return Zt._handleCallback($t)}}return(0,V.Z)(Se,[{key:"apply",value:function(){(function(Se,ge){var Q=tu(Se,"").trim();Q.length&&(function(Se,ge){for(var Q=0,ne=0;ne<Se.length;ne++)","===Se.charAt(ne)&&Q++;return Q}(Q)+1,ge="".concat(Q,", ").concat(ge)),tn(Se,"",ge)})(this._element,"".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name)),yl(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){Ha(this._element,this._name,"paused")}},{key:"resume",value:function(){Ha(this._element,this._name,"running")}},{key:"setPosition",value:function(Q){var ne=Ki(this._element,this._name);this._position=Q*this._duration,tn(this._element,"Delay","-".concat(this._position,"ms"),ne)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(Q){var ne=Q._ngTestManualTimestamp||Date.now(),ke=1e3*parseFloat(Q.elapsedTime.toFixed(3));Q.animationName==this._name&&Math.max(ne-this._startTime,0)>=this._delay&&ke>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),yl(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(Se,ge){var ne=tu(Se,"").split(","),ke=Va(ne,ge);ke>=0&&(ne.splice(ke,1),tn(Se,"",ne.join(",")))}(this._element,this._name))}}]),Se}();function Ha(Se,ge,Q){tn(Se,"PlayState",Q,Ki(Se,ge))}function Ki(Se,ge){var Q=tu(Se,"");return Q.indexOf(",")>0?Va(Q.split(","),ge):Va([Q],ge)}function Va(Se,ge){for(var Q=0;Q<Se.length;Q++)if(Se[Q].indexOf(ge)>=0)return Q;return-1}function yl(Se,ge,Q){Q?Se.removeEventListener(Ua,ge):Se.addEventListener(Ua,ge)}function tn(Se,ge,Q,ne){var ke=Hi+ge;if(null!=ne){var Ve=Se.style[ke];if(Ve.length){var lt=Ve.split(",");lt[ne]=Q,Q=lt.join(",")}}Se.style[ke]=Q}function tu(Se,ge){return Se.style[Hi+ge]||""}var Fe=function(){function Se(ge,Q,ne,ke,Ve,lt,wt,Zt){(0,U.Z)(this,Se),this.element=ge,this.keyframes=Q,this.animationName=ne,this._duration=ke,this._delay=Ve,this._finalStyles=wt,this._specialStyles=Zt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=lt||"linear",this.totalTime=ke+Ve,this._buildStyler()}return(0,V.Z)(Se,[{key:"onStart",value:function(Q){this._onStartFns.push(Q)}},{key:"onDone",value:function(Q){this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(Q){this._styler.setPosition(Q)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var Q=this;this._styler=new Wi(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return Q.finish()})}},{key:"triggerCallback",value:function(Q){var ne="start"==Q?this._onStartFns:this._onDoneFns;ne.forEach(function(ke){return ke()}),ne.length=0}},{key:"beforeDestroy",value:function(){var Q=this;this.init();var ne={};if(this.hasStarted()){var ke=this._state>=3;Object.keys(this._finalStyles).forEach(function(Ve){"offset"!=Ve&&(ne[Ve]=ke?Q._finalStyles[Ve]:nn(Q.element,Ve))})}this.currentSnapshot=ne}}]),Se}(),$e=function(Se){(0,Z.Z)(Q,Se);var ge=(0,w.Z)(Q);function Q(ne,ke){var Ve;return(0,U.Z)(this,Q),(Ve=ge.call(this)).element=ne,Ve._startingStyles={},Ve.__initialized=!1,Ve._styles=_t(ke),Ve}return(0,V.Z)(Q,[{key:"init",value:function(){var ke=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(Ve){ke._startingStyles[Ve]=ke.element.style[Ve]}),(0,I.Z)((0,D.Z)(Q.prototype),"init",this).call(this))}},{key:"play",value:function(){var ke=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(Ve){return ke.element.style.setProperty(Ve,ke._styles[Ve])}),(0,I.Z)((0,D.Z)(Q.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var ke=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(Ve){var lt=ke._startingStyles[Ve];lt?ke.element.style.setProperty(Ve,lt):ke.element.style.removeProperty(Ve)}),this._startingStyles=null,(0,I.Z)((0,D.Z)(Q.prototype),"destroy",this).call(this))}}]),Q}(_.ZN),We="gen_css_kf_",fe=function(){function Se(){(0,U.Z)(this,Se),this._count=0}return(0,V.Z)(Se,[{key:"validateStyleProperty",value:function(Q){return oe(Q)}},{key:"matchesElement",value:function(Q,ne){return be(Q,ne)}},{key:"containsElement",value:function(Q,ne){return it(Q,ne)}},{key:"query",value:function(Q,ne,ke){return qe(Q,ne,ke)}},{key:"computeStyle",value:function(Q,ne,ke){return window.getComputedStyle(Q)[ne]}},{key:"buildKeyframeElement",value:function(Q,ne,ke){ke=ke.map(function(Zt){return _t(Zt)});var Ve="@keyframes ".concat(ne," {\n"),lt="";ke.forEach(function(Zt){lt=" ";var $t=parseFloat(Zt.offset);Ve+="".concat(lt).concat(100*$t,"% {\n"),lt+=" ",Object.keys(Zt).forEach(function(cn){var Dn=Zt[cn];switch(cn){case"offset":return;case"easing":return void(Dn&&(Ve+="".concat(lt,"animation-timing-function: ").concat(Dn,";\n")));default:return void(Ve+="".concat(lt).concat(cn,": ").concat(Dn,";\n"))}}),Ve+="".concat(lt,"}\n")}),Ve+="}\n";var wt=document.createElement("style");return wt.textContent=Ve,wt}},{key:"animate",value:function(Q,ne,ke,Ve,lt){var wt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],$t=wt.filter(function(wr){return wr instanceof Fe}),cn={};Yt(ke,Ve)&&$t.forEach(function(wr){var ui=wr.currentSnapshot;Object.keys(ui).forEach(function(hi){return cn[hi]=ui[hi]})});var Dn=Ce(ne=Kt(Q,ne,cn));if(0==ke)return new $e(Q,Dn);var Un="".concat(We).concat(this._count++),Qn=this.buildKeyframeElement(Q,Un,ne),fr=_e(Q);fr.appendChild(Qn);var Or=va(Q,ne),br=new Fe(Q,ne,Un,ke,Ve,lt,Dn,Or);return br.onDestroy(function(){return Re(Qn)}),br}}]),Se}();function _e(Se){var ge,Q=null===(ge=Se.getRootNode)||void 0===ge?void 0:ge.call(Se);return"undefined"!=typeof ShadowRoot&&Q instanceof ShadowRoot?Q:document.head}function Ce(Se){var ge={};return Se&&(Array.isArray(Se)?Se:[Se]).forEach(function(ne){Object.keys(ne).forEach(function(ke){"offset"==ke||"easing"==ke||(ge[ke]=ne[ke])})}),ge}function Re(Se){Se.parentNode.removeChild(Se)}var ht=function(){function Se(ge,Q,ne,ke){(0,U.Z)(this,Se),this.element=ge,this.keyframes=Q,this.options=ne,this._specialStyles=ke,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=ne.duration,this._delay=ne.delay||0,this.time=this._duration+this._delay}return(0,V.Z)(Se,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var Q=this;if(!this._initialized){this._initialized=!0;var ne=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,ne,this.options),this._finalKeyframe=ne.length?ne[ne.length-1]:{},this.domPlayer.addEventListener("finish",function(){return Q._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(Q,ne,ke){return Q.animate(ne,ke)}},{key:"onStart",value:function(Q){this._onStartFns.push(Q)}},{key:"onDone",value:function(Q){this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(Q){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=Q*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var Q=this,ne={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(ke){"offset"!=ke&&(ne[ke]=Q._finished?Q._finalKeyframe[ke]:nn(Q.element,ke))}),this.currentSnapshot=ne}},{key:"triggerCallback",value:function(Q){var ne="start"==Q?this._onStartFns:this._onDoneFns;ne.forEach(function(ke){return ke()}),ne.length=0}}]),Se}(),gt=function(){function Se(){(0,U.Z)(this,Se),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Vr().toString()),this._cssKeyframesDriver=new fe}return(0,V.Z)(Se,[{key:"validateStyleProperty",value:function(Q){return oe(Q)}},{key:"matchesElement",value:function(Q,ne){return be(Q,ne)}},{key:"containsElement",value:function(Q,ne){return it(Q,ne)}},{key:"query",value:function(Q,ne,ke){return qe(Q,ne,ke)}},{key:"computeStyle",value:function(Q,ne,ke){return window.getComputedStyle(Q)[ne]}},{key:"overrideWebAnimationsSupport",value:function(Q){this._isNativeImpl=Q}},{key:"animate",value:function(Q,ne,ke,Ve,lt){var wt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],Zt=arguments.length>6?arguments[6]:void 0,$t=!Zt&&!this._isNativeImpl;if($t)return this._cssKeyframesDriver.animate(Q,ne,ke,Ve,lt,wt);var cn=0==Ve?"both":"forwards",Dn={duration:ke,delay:Ve,fill:cn};lt&&(Dn.easing=lt);var Un={},Qn=wt.filter(function(Or){return Or instanceof ht});Yt(ke,Ve)&&Qn.forEach(function(Or){var br=Or.currentSnapshot;Object.keys(br).forEach(function(wr){return Un[wr]=br[wr]})});var fr=va(Q,ne=Kt(Q,ne=ne.map(function(Or){return Ln(Or,!1)}),Un));return new ht(Q,ne,Dn,fr)}}]),Se}();function Vr(){return v()&&Element.prototype.animate||{}}var Pi=f(40098),_a=function(){var Se=function(ge){(0,Z.Z)(ne,ge);var Q=(0,w.Z)(ne);function ne(ke,Ve){var lt;return(0,U.Z)(this,ne),(lt=Q.call(this))._nextAnimationId=0,lt._renderer=ke.createRenderer(Ve.body,{id:"0",encapsulation:N.ifc.None,styles:[],data:{animation:[]}}),lt}return(0,V.Z)(ne,[{key:"build",value:function(Ve){var lt=this._nextAnimationId.toString();this._nextAnimationId++;var wt=Array.isArray(Ve)?(0,_.vP)(Ve):Ve;return Sl(this._renderer,null,lt,"register",[wt]),new li(lt,this._renderer)}}]),ne}(_._j);return Se.\u0275fac=function(Q){return new(Q||Se)(N.LFG(N.FYo),N.LFG(Pi.K0))},Se.\u0275prov=N.Yz7({token:Se,factory:Se.\u0275fac}),Se}(),li=function(Se){(0,Z.Z)(Q,Se);var ge=(0,w.Z)(Q);function Q(ne,ke){var Ve;return(0,U.Z)(this,Q),(Ve=ge.call(this))._id=ne,Ve._renderer=ke,Ve}return(0,V.Z)(Q,[{key:"create",value:function(ke,Ve){return new Mi(this._id,ke,Ve||{},this._renderer)}}]),Q}(_.LC),Mi=function(){function Se(ge,Q,ne,ke){(0,U.Z)(this,Se),this.id=ge,this.element=Q,this._renderer=ke,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",ne)}return(0,V.Z)(Se,[{key:"_listen",value:function(Q,ne){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(Q),ne)}},{key:"_command",value:function(Q){for(var ne=arguments.length,ke=new Array(ne>1?ne-1:0),Ve=1;Ve<ne;Ve++)ke[Ve-1]=arguments[Ve];return Sl(this._renderer,this.element,this.id,Q,ke)}},{key:"onDone",value:function(Q){this._listen("done",Q)}},{key:"onStart",value:function(Q){this._listen("start",Q)}},{key:"onDestroy",value:function(Q){this._listen("destroy",Q)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset"),this._started=!1}},{key:"setPosition",value:function(Q){this._command("setPosition",Q)}},{key:"getPosition",value:function(){var Q,ne;return null!==(ne=null===(Q=this._renderer.engine.players[+this.id])||void 0===Q?void 0:Q.getPosition())&&void 0!==ne?ne:0}}]),Se}();function Sl(Se,ge,Q,ne,ke){return Se.setProperty(ge,"@@".concat(Q,":").concat(ne),ke)}var Xa="@.disabled",ya=function(){var Se=function(){function ge(Q,ne,ke){(0,U.Z)(this,ge),this.delegate=Q,this.engine=ne,this._zone=ke,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),ne.onRemovalComplete=function(Ve,lt){lt&<.parentNode(Ve)&<.removeChild(Ve.parentNode,Ve)}}return(0,V.Z)(ge,[{key:"createRenderer",value:function(ne,ke){var Ve=this,wt=this.delegate.createRenderer(ne,ke);if(!(ne&&ke&&ke.data&&ke.data.animation)){var Zt=this._rendererCache.get(wt);return Zt||(Zt=new Ms("",wt,this.engine),this._rendererCache.set(wt,Zt)),Zt}var $t=ke.id,cn=ke.id+"-"+this._currentId;return this._currentId++,this.engine.register(cn,ne),ke.data.animation.forEach(function Qn(fr){Array.isArray(fr)?fr.forEach(Qn):Ve.engine.registerTrigger($t,cn,ne,fr.name,fr)}),new kp(this,cn,wt,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var ne=this;this.promise.then(function(){ne._microtaskId++})}},{key:"scheduleListenerCallback",value:function(ne,ke,Ve){var lt=this;ne>=0&&ne<this._microtaskId?this._zone.run(function(){return ke(Ve)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){lt._zone.run(function(){lt._animationCallbacksBuffer.forEach(function(wt){var Zt=(0,B.Z)(wt,2);(0,Zt[0])(Zt[1])}),lt._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([ke,Ve]))}},{key:"end",value:function(){var ne=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){ne._scheduleCountTask(),ne.engine.flush(ne._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),ge}();return Se.\u0275fac=function(Q){return new(Q||Se)(N.LFG(N.FYo),N.LFG(zi),N.LFG(N.R0b))},Se.\u0275prov=N.Yz7({token:Se,factory:Se.\u0275fac}),Se}(),Ms=function(){function Se(ge,Q,ne){(0,U.Z)(this,Se),this.namespaceId=ge,this.delegate=Q,this.engine=ne,this.destroyNode=this.delegate.destroyNode?function(ke){return Q.destroyNode(ke)}:null}return(0,V.Z)(Se,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(Q,ne){return this.delegate.createElement(Q,ne)}},{key:"createComment",value:function(Q){return this.delegate.createComment(Q)}},{key:"createText",value:function(Q){return this.delegate.createText(Q)}},{key:"appendChild",value:function(Q,ne){this.delegate.appendChild(Q,ne),this.engine.onInsert(this.namespaceId,ne,Q,!1)}},{key:"insertBefore",value:function(Q,ne,ke){var Ve=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(Q,ne,ke),this.engine.onInsert(this.namespaceId,ne,Q,Ve)}},{key:"removeChild",value:function(Q,ne,ke){this.engine.onRemove(this.namespaceId,ne,this.delegate,ke)}},{key:"selectRootElement",value:function(Q,ne){return this.delegate.selectRootElement(Q,ne)}},{key:"parentNode",value:function(Q){return this.delegate.parentNode(Q)}},{key:"nextSibling",value:function(Q){return this.delegate.nextSibling(Q)}},{key:"setAttribute",value:function(Q,ne,ke,Ve){this.delegate.setAttribute(Q,ne,ke,Ve)}},{key:"removeAttribute",value:function(Q,ne,ke){this.delegate.removeAttribute(Q,ne,ke)}},{key:"addClass",value:function(Q,ne){this.delegate.addClass(Q,ne)}},{key:"removeClass",value:function(Q,ne){this.delegate.removeClass(Q,ne)}},{key:"setStyle",value:function(Q,ne,ke,Ve){this.delegate.setStyle(Q,ne,ke,Ve)}},{key:"removeStyle",value:function(Q,ne,ke){this.delegate.removeStyle(Q,ne,ke)}},{key:"setProperty",value:function(Q,ne,ke){"@"==ne.charAt(0)&&ne==Xa?this.disableAnimations(Q,!!ke):this.delegate.setProperty(Q,ne,ke)}},{key:"setValue",value:function(Q,ne){this.delegate.setValue(Q,ne)}},{key:"listen",value:function(Q,ne,ke){return this.delegate.listen(Q,ne,ke)}},{key:"disableAnimations",value:function(Q,ne){this.engine.disableAnimations(Q,ne)}}]),Se}(),kp=function(Se){(0,Z.Z)(Q,Se);var ge=(0,w.Z)(Q);function Q(ne,ke,Ve,lt){var wt;return(0,U.Z)(this,Q),(wt=ge.call(this,ke,Ve,lt)).factory=ne,wt.namespaceId=ke,wt}return(0,V.Z)(Q,[{key:"setProperty",value:function(ke,Ve,lt){"@"==Ve.charAt(0)?"."==Ve.charAt(1)&&Ve==Xa?this.disableAnimations(ke,lt=void 0===lt||!!lt):this.engine.process(this.namespaceId,ke,Ve.substr(1),lt):this.delegate.setProperty(ke,Ve,lt)}},{key:"listen",value:function(ke,Ve,lt){var wt=this;if("@"==Ve.charAt(0)){var Zt=function(Se){switch(Se){case"body":return document.body;case"document":return document;case"window":return window;default:return Se}}(ke),$t=Ve.substr(1),cn="";if("@"!=$t.charAt(0)){var Dn=function(Se){var ge=Se.indexOf(".");return[Se.substring(0,ge),Se.substr(ge+1)]}($t),Un=(0,B.Z)(Dn,2);$t=Un[0],cn=Un[1]}return this.engine.listen(this.namespaceId,Zt,$t,cn,function(Qn){wt.factory.scheduleListenerCallback(Qn._data||-1,lt,Qn)})}return this.delegate.listen(ke,Ve,lt)}}]),Q}(Ms),yc=function(){var Se=function(ge){(0,Z.Z)(ne,ge);var Q=(0,w.Z)(ne);function ne(ke,Ve,lt){return(0,U.Z)(this,ne),Q.call(this,ke.body,Ve,lt)}return(0,V.Z)(ne,[{key:"ngOnDestroy",value:function(){this.flush()}}]),ne}(zi);return Se.\u0275fac=function(Q){return new(Q||Se)(N.LFG(Pi.K0),N.LFG(Ft),N.LFG(fi))},Se.\u0275prov=N.Yz7({token:Se,factory:Se.\u0275fac}),Se}(),hd=new N.OlP("AnimationModuleType"),Dp=[{provide:_._j,useClass:_a},{provide:fi,useFactory:function(){return new ki}},{provide:zi,useClass:yc},{provide:N.FYo,useFactory:function(Se,ge,Q){return new ya(Se,ge,Q)},deps:[b.se,zi,N.R0b]}],Op=[{provide:Ft,useFactory:function(){return"function"==typeof Vr()?new gt:new fe}},{provide:hd,useValue:"BrowserAnimations"}].concat(Dp),md=[{provide:Ft,useClass:yt},{provide:hd,useValue:"NoopAnimations"}].concat(Dp),nu=function(){var Se=function(){function ge(){(0,U.Z)(this,ge)}return(0,V.Z)(ge,null,[{key:"withConfig",value:function(ne){return{ngModule:ge,providers:ne.disableAnimations?md:Op}}}]),ge}();return Se.\u0275fac=function(Q){return new(Q||Se)},Se.\u0275mod=N.oAB({type:Se}),Se.\u0275inj=N.cJS({providers:Op,imports:[b.b2]}),Se}()},29176:function(ue,q,f){"use strict";f.d(q,{b2:function(){return ze},H7:function(){return Cn},Dx:function(){return Hr},HJ:function(){return po},q6:function(){return Ne},se:function(){return bt}});var v,B=f(13920),U=f(89200),V=f(14105),Z=f(18967),w=f(10509),N=f(97154),b=f(40098),_=f(38999),D=function(Ot){(0,w.Z)(Pt,Ot);var jt=(0,N.Z)(Pt);function Pt(){return(0,Z.Z)(this,Pt),jt.apply(this,arguments)}return(0,V.Z)(Pt,[{key:"onAndCancel",value:function(Gt,Xt,gn){return Gt.addEventListener(Xt,gn,!1),function(){Gt.removeEventListener(Xt,gn,!1)}}},{key:"dispatchEvent",value:function(Gt,Xt){Gt.dispatchEvent(Xt)}},{key:"remove",value:function(Gt){Gt.parentNode&&Gt.parentNode.removeChild(Gt)}},{key:"createElement",value:function(Gt,Xt){return(Xt=Xt||this.getDefaultDocument()).createElement(Gt)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(Gt){return Gt.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(Gt){return Gt instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(Gt,Xt){return"window"===Xt?window:"document"===Xt?Gt:"body"===Xt?Gt.body:null}},{key:"getBaseHref",value:function(Gt){var Xt=(A=A||document.querySelector("base"))?A.getAttribute("href"):null;return null==Xt?null:function(Ot){(v=v||document.createElement("a")).setAttribute("href",Ot);var jt=v.pathname;return"/"===jt.charAt(0)?jt:"/".concat(jt)}(Xt)}},{key:"resetBaseElement",value:function(){A=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(Gt){return(0,b.Mx)(document.cookie,Gt)}}],[{key:"makeCurrent",value:function(){(0,b.HT)(new Pt)}}]),Pt}(function(Ot){(0,w.Z)(Pt,Ot);var jt=(0,N.Z)(Pt);function Pt(){var Vt;return(0,Z.Z)(this,Pt),(Vt=jt.apply(this,arguments)).supportsDOMEvents=!0,Vt}return Pt}(b.w_)),A=null,T=new _.OlP("TRANSITION_ID"),k=[{provide:_.ip1,useFactory:function(Ot,jt,Pt){return function(){Pt.get(_.CZH).donePromise.then(function(){for(var Vt=(0,b.q)(),Gt=jt.querySelectorAll('style[ng-transition="'.concat(Ot,'"]')),Xt=0;Xt<Gt.length;Xt++)Vt.remove(Gt[Xt])})}},deps:[T,b.K0,_.zs3],multi:!0}],E=function(){function Ot(){(0,Z.Z)(this,Ot)}return(0,V.Z)(Ot,[{key:"addToWindow",value:function(Pt){_.dqk.getAngularTestability=function(Gt){var Xt=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],gn=Pt.findTestabilityInTree(Gt,Xt);if(null==gn)throw new Error("Could not find testability for element.");return gn},_.dqk.getAllAngularTestabilities=function(){return Pt.getAllTestabilities()},_.dqk.getAllAngularRootElements=function(){return Pt.getAllRootElements()},_.dqk.frameworkStabilizers||(_.dqk.frameworkStabilizers=[]),_.dqk.frameworkStabilizers.push(function(Xt){var gn=_.dqk.getAllAngularTestabilities(),Gn=gn.length,zn=!1,Vn=function(Si){zn=zn||Si,0==--Gn&&Xt(zn)};gn.forEach(function(si){si.whenStable(Vn)})})}},{key:"findTestabilityInTree",value:function(Pt,Vt,Gt){if(null==Vt)return null;var Xt=Pt.getTestability(Vt);return null!=Xt?Xt:Gt?(0,b.q)().isShadowRoot(Vt)?this.findTestabilityInTree(Pt,Vt.host,!0):this.findTestabilityInTree(Pt,Vt.parentElement,!0):null}}],[{key:"init",value:function(){(0,_.VLi)(new Ot)}}]),Ot}(),x=function(){var Ot=function(){function jt(){(0,Z.Z)(this,jt)}return(0,V.Z)(jt,[{key:"build",value:function(){return new XMLHttpRequest}}]),jt}();return Ot.\u0275fac=function(Pt){return new(Pt||Ot)},Ot.\u0275prov=_.Yz7({token:Ot,factory:Ot.\u0275fac}),Ot}();var it=new _.OlP("EventManagerPlugins"),qe=function(){var Ot=function(){function jt(Pt,Vt){var Gt=this;(0,Z.Z)(this,jt),this._zone=Vt,this._eventNameToPlugin=new Map,Pt.forEach(function(Xt){return Xt.manager=Gt}),this._plugins=Pt.slice().reverse()}return(0,V.Z)(jt,[{key:"addEventListener",value:function(Vt,Gt,Xt){return this._findPluginFor(Gt).addEventListener(Vt,Gt,Xt)}},{key:"addGlobalEventListener",value:function(Vt,Gt,Xt){return this._findPluginFor(Gt).addGlobalEventListener(Vt,Gt,Xt)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(Vt){var Gt=this._eventNameToPlugin.get(Vt);if(Gt)return Gt;for(var Xt=this._plugins,gn=0;gn<Xt.length;gn++){var Gn=Xt[gn];if(Gn.supports(Vt))return this._eventNameToPlugin.set(Vt,Gn),Gn}throw new Error("No event manager plugin found for event ".concat(Vt))}}]),jt}();return Ot.\u0275fac=function(Pt){return new(Pt||Ot)(_.LFG(it),_.LFG(_.R0b))},Ot.\u0275prov=_.Yz7({token:Ot,factory:Ot.\u0275fac}),Ot}(),_t=function(){function Ot(jt){(0,Z.Z)(this,Ot),this._doc=jt}return(0,V.Z)(Ot,[{key:"addGlobalEventListener",value:function(Pt,Vt,Gt){var Xt=(0,b.q)().getGlobalEventTarget(this._doc,Pt);if(!Xt)throw new Error("Unsupported event target ".concat(Xt," for event ").concat(Vt));return this.addEventListener(Xt,Vt,Gt)}}]),Ot}(),yt=function(){var Ot=function(){function jt(){(0,Z.Z)(this,jt),this._stylesSet=new Set}return(0,V.Z)(jt,[{key:"addStyles",value:function(Vt){var Gt=this,Xt=new Set;Vt.forEach(function(gn){Gt._stylesSet.has(gn)||(Gt._stylesSet.add(gn),Xt.add(gn))}),this.onStylesAdded(Xt)}},{key:"onStylesAdded",value:function(Vt){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),jt}();return Ot.\u0275fac=function(Pt){return new(Pt||Ot)},Ot.\u0275prov=_.Yz7({token:Ot,factory:Ot.\u0275fac}),Ot}(),Ft=function(){var Ot=function(jt){(0,w.Z)(Vt,jt);var Pt=(0,N.Z)(Vt);function Vt(Gt){var Xt;return(0,Z.Z)(this,Vt),(Xt=Pt.call(this))._doc=Gt,Xt._hostNodes=new Map,Xt._hostNodes.set(Gt.head,[]),Xt}return(0,V.Z)(Vt,[{key:"_addStylesToHost",value:function(Xt,gn,Gn){var zn=this;Xt.forEach(function(Vn){var si=zn._doc.createElement("style");si.textContent=Vn,Gn.push(gn.appendChild(si))})}},{key:"addHost",value:function(Xt){var gn=[];this._addStylesToHost(this._stylesSet,Xt,gn),this._hostNodes.set(Xt,gn)}},{key:"removeHost",value:function(Xt){var gn=this._hostNodes.get(Xt);gn&&gn.forEach(xe),this._hostNodes.delete(Xt)}},{key:"onStylesAdded",value:function(Xt){var gn=this;this._hostNodes.forEach(function(Gn,zn){gn._addStylesToHost(Xt,zn,Gn)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(Xt){return Xt.forEach(xe)})}}]),Vt}(yt);return Ot.\u0275fac=function(Pt){return new(Pt||Ot)(_.LFG(b.K0))},Ot.\u0275prov=_.Yz7({token:Ot,factory:Ot.\u0275fac}),Ot}();function xe(Ot){(0,b.q)().remove(Ot)}var De={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},je=/%COMP%/g,Bt="_nghost-".concat("%COMP%"),xt="_ngcontent-".concat("%COMP%");function Ht(Ot,jt,Pt){for(var Vt=0;Vt<jt.length;Vt++){var Gt=jt[Vt];Array.isArray(Gt)?Ht(Ot,Gt,Pt):(Gt=Gt.replace(je,Ot),Pt.push(Gt))}return Pt}function Ct(Ot){return function(jt){if("__ngUnwrap__"===jt)return Ot;!1===Ot(jt)&&(jt.preventDefault(),jt.returnValue=!1)}}var bt=function(){var Ot=function(){function jt(Pt,Vt,Gt){(0,Z.Z)(this,jt),this.eventManager=Pt,this.sharedStylesHost=Vt,this.appId=Gt,this.rendererByCompId=new Map,this.defaultRenderer=new en(Pt)}return(0,V.Z)(jt,[{key:"createRenderer",value:function(Vt,Gt){if(!Vt||!Gt)return this.defaultRenderer;switch(Gt.encapsulation){case _.ifc.Emulated:var Xt=this.rendererByCompId.get(Gt.id);return Xt||(Xt=new Ln(this.eventManager,this.sharedStylesHost,Gt,this.appId),this.rendererByCompId.set(Gt.id,Xt)),Xt.applyToHost(Vt),Xt;case 1:case _.ifc.ShadowDom:return new Rn(this.eventManager,this.sharedStylesHost,Vt,Gt);default:if(!this.rendererByCompId.has(Gt.id)){var gn=Ht(Gt.id,Gt.styles,[]);this.sharedStylesHost.addStyles(gn),this.rendererByCompId.set(Gt.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),jt}();return Ot.\u0275fac=function(Pt){return new(Pt||Ot)(_.LFG(qe),_.LFG(Ft),_.LFG(_.AFp))},Ot.\u0275prov=_.Yz7({token:Ot,factory:Ot.\u0275fac}),Ot}(),en=function(){function Ot(jt){(0,Z.Z)(this,Ot),this.eventManager=jt,this.data=Object.create(null)}return(0,V.Z)(Ot,[{key:"destroy",value:function(){}},{key:"createElement",value:function(Pt,Vt){return Vt?document.createElementNS(De[Vt]||Vt,Pt):document.createElement(Pt)}},{key:"createComment",value:function(Pt){return document.createComment(Pt)}},{key:"createText",value:function(Pt){return document.createTextNode(Pt)}},{key:"appendChild",value:function(Pt,Vt){Pt.appendChild(Vt)}},{key:"insertBefore",value:function(Pt,Vt,Gt){Pt&&Pt.insertBefore(Vt,Gt)}},{key:"removeChild",value:function(Pt,Vt){Pt&&Pt.removeChild(Vt)}},{key:"selectRootElement",value:function(Pt,Vt){var Gt="string"==typeof Pt?document.querySelector(Pt):Pt;if(!Gt)throw new Error('The selector "'.concat(Pt,'" did not match any elements'));return Vt||(Gt.textContent=""),Gt}},{key:"parentNode",value:function(Pt){return Pt.parentNode}},{key:"nextSibling",value:function(Pt){return Pt.nextSibling}},{key:"setAttribute",value:function(Pt,Vt,Gt,Xt){if(Xt){Vt=Xt+":"+Vt;var gn=De[Xt];gn?Pt.setAttributeNS(gn,Vt,Gt):Pt.setAttribute(Vt,Gt)}else Pt.setAttribute(Vt,Gt)}},{key:"removeAttribute",value:function(Pt,Vt,Gt){if(Gt){var Xt=De[Gt];Xt?Pt.removeAttributeNS(Xt,Vt):Pt.removeAttribute("".concat(Gt,":").concat(Vt))}else Pt.removeAttribute(Vt)}},{key:"addClass",value:function(Pt,Vt){Pt.classList.add(Vt)}},{key:"removeClass",value:function(Pt,Vt){Pt.classList.remove(Vt)}},{key:"setStyle",value:function(Pt,Vt,Gt,Xt){Xt&(_.JOm.DashCase|_.JOm.Important)?Pt.style.setProperty(Vt,Gt,Xt&_.JOm.Important?"important":""):Pt.style[Vt]=Gt}},{key:"removeStyle",value:function(Pt,Vt,Gt){Gt&_.JOm.DashCase?Pt.style.removeProperty(Vt):Pt.style[Vt]=""}},{key:"setProperty",value:function(Pt,Vt,Gt){Pt[Vt]=Gt}},{key:"setValue",value:function(Pt,Vt){Pt.nodeValue=Vt}},{key:"listen",value:function(Pt,Vt,Gt){return"string"==typeof Pt?this.eventManager.addGlobalEventListener(Pt,Vt,Ct(Gt)):this.eventManager.addEventListener(Pt,Vt,Ct(Gt))}}]),Ot}(),Ln=function(Ot){(0,w.Z)(Pt,Ot);var jt=(0,N.Z)(Pt);function Pt(Vt,Gt,Xt,gn){var Gn;(0,Z.Z)(this,Pt),(Gn=jt.call(this,Vt)).component=Xt;var zn=Ht(gn+"-"+Xt.id,Xt.styles,[]);return Gt.addStyles(zn),Gn.contentAttr=function(Ot){return xt.replace(je,Ot)}(gn+"-"+Xt.id),Gn.hostAttr=function(Ot){return Bt.replace(je,Ot)}(gn+"-"+Xt.id),Gn}return(0,V.Z)(Pt,[{key:"applyToHost",value:function(Gt){(0,B.Z)((0,U.Z)(Pt.prototype),"setAttribute",this).call(this,Gt,this.hostAttr,"")}},{key:"createElement",value:function(Gt,Xt){var gn=(0,B.Z)((0,U.Z)(Pt.prototype),"createElement",this).call(this,Gt,Xt);return(0,B.Z)((0,U.Z)(Pt.prototype),"setAttribute",this).call(this,gn,this.contentAttr,""),gn}}]),Pt}(en),Rn=function(Ot){(0,w.Z)(Pt,Ot);var jt=(0,N.Z)(Pt);function Pt(Vt,Gt,Xt,gn){var Gn;(0,Z.Z)(this,Pt),(Gn=jt.call(this,Vt)).sharedStylesHost=Gt,Gn.hostEl=Xt,Gn.shadowRoot=Xt.attachShadow({mode:"open"}),Gn.sharedStylesHost.addHost(Gn.shadowRoot);for(var zn=Ht(gn.id,gn.styles,[]),Vn=0;Vn<zn.length;Vn++){var si=document.createElement("style");si.textContent=zn[Vn],Gn.shadowRoot.appendChild(si)}return Gn}return(0,V.Z)(Pt,[{key:"nodeOrShadowRoot",value:function(Gt){return Gt===this.hostEl?this.shadowRoot:Gt}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(Gt,Xt){return(0,B.Z)((0,U.Z)(Pt.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(Gt),Xt)}},{key:"insertBefore",value:function(Gt,Xt,gn){return(0,B.Z)((0,U.Z)(Pt.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(Gt),Xt,gn)}},{key:"removeChild",value:function(Gt,Xt){return(0,B.Z)((0,U.Z)(Pt.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(Gt),Xt)}},{key:"parentNode",value:function(Gt){return this.nodeOrShadowRoot((0,B.Z)((0,U.Z)(Pt.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(Gt)))}}]),Pt}(en),$n=function(){var Ot=function(jt){(0,w.Z)(Vt,jt);var Pt=(0,N.Z)(Vt);function Vt(Gt){return(0,Z.Z)(this,Vt),Pt.call(this,Gt)}return(0,V.Z)(Vt,[{key:"supports",value:function(Xt){return!0}},{key:"addEventListener",value:function(Xt,gn,Gn){var zn=this;return Xt.addEventListener(gn,Gn,!1),function(){return zn.removeEventListener(Xt,gn,Gn)}}},{key:"removeEventListener",value:function(Xt,gn,Gn){return Xt.removeEventListener(gn,Gn)}}]),Vt}(_t);return Ot.\u0275fac=function(Pt){return new(Pt||Ot)(_.LFG(b.K0))},Ot.\u0275prov=_.Yz7({token:Ot,factory:Ot.\u0275fac}),Ot}(),ct=["alt","control","meta","shift"],Yt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Kt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Tn={alt:function(jt){return jt.altKey},control:function(jt){return jt.ctrlKey},meta:function(jt){return jt.metaKey},shift:function(jt){return jt.shiftKey}},In=function(){var Ot=function(jt){(0,w.Z)(Vt,jt);var Pt=(0,N.Z)(Vt);function Vt(Gt){return(0,Z.Z)(this,Vt),Pt.call(this,Gt)}return(0,V.Z)(Vt,[{key:"supports",value:function(Xt){return null!=Vt.parseEventName(Xt)}},{key:"addEventListener",value:function(Xt,gn,Gn){var zn=Vt.parseEventName(gn),Vn=Vt.eventCallback(zn.fullKey,Gn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return(0,b.q)().onAndCancel(Xt,zn.domEventName,Vn)})}}],[{key:"parseEventName",value:function(Xt){var gn=Xt.toLowerCase().split("."),Gn=gn.shift();if(0===gn.length||"keydown"!==Gn&&"keyup"!==Gn)return null;var zn=Vt._normalizeKey(gn.pop()),Vn="";if(ct.forEach(function(Si){var ro=gn.indexOf(Si);ro>-1&&(gn.splice(ro,1),Vn+=Si+".")}),Vn+=zn,0!=gn.length||0===zn.length)return null;var si={};return si.domEventName=Gn,si.fullKey=Vn,si}},{key:"getEventFullKey",value:function(Xt){var gn="",Gn=function(Ot){var jt=Ot.key;if(null==jt){if(null==(jt=Ot.keyIdentifier))return"Unidentified";jt.startsWith("U+")&&(jt=String.fromCharCode(parseInt(jt.substring(2),16)),3===Ot.location&&Kt.hasOwnProperty(jt)&&(jt=Kt[jt]))}return Yt[jt]||jt}(Xt);return" "===(Gn=Gn.toLowerCase())?Gn="space":"."===Gn&&(Gn="dot"),ct.forEach(function(zn){zn!=Gn&&(0,Tn[zn])(Xt)&&(gn+=zn+".")}),gn+=Gn}},{key:"eventCallback",value:function(Xt,gn,Gn){return function(zn){Vt.getEventFullKey(zn)===Xt&&Gn.runGuarded(function(){return gn(zn)})}}},{key:"_normalizeKey",value:function(Xt){switch(Xt){case"esc":return"escape";default:return Xt}}}]),Vt}(_t);return Ot.\u0275fac=function(Pt){return new(Pt||Ot)(_.LFG(b.K0))},Ot.\u0275prov=_.Yz7({token:Ot,factory:Ot.\u0275fac}),Ot}(),Cn=function(){var Ot=function jt(){(0,Z.Z)(this,jt)};return Ot.\u0275fac=function(Pt){return new(Pt||Ot)},Ot.\u0275prov=(0,_.Yz7)({factory:function(){return(0,_.LFG)(tr)},token:Ot,providedIn:"root"}),Ot}(),tr=function(){var Ot=function(jt){(0,w.Z)(Vt,jt);var Pt=(0,N.Z)(Vt);function Vt(Gt){var Xt;return(0,Z.Z)(this,Vt),(Xt=Pt.call(this))._doc=Gt,Xt}return(0,V.Z)(Vt,[{key:"sanitize",value:function(Xt,gn){if(null==gn)return null;switch(Xt){case _.q3G.NONE:return gn;case _.q3G.HTML:return(0,_.qzn)(gn,"HTML")?(0,_.z3N)(gn):(0,_.EiD)(this._doc,String(gn)).toString();case _.q3G.STYLE:return(0,_.qzn)(gn,"Style")?(0,_.z3N)(gn):gn;case _.q3G.SCRIPT:if((0,_.qzn)(gn,"Script"))return(0,_.z3N)(gn);throw new Error("unsafe value used in a script context");case _.q3G.URL:return(0,_.yhl)(gn),(0,_.qzn)(gn,"URL")?(0,_.z3N)(gn):(0,_.mCW)(String(gn));case _.q3G.RESOURCE_URL:if((0,_.qzn)(gn,"ResourceURL"))return(0,_.z3N)(gn);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(Xt," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(Xt){return(0,_.JVY)(Xt)}},{key:"bypassSecurityTrustStyle",value:function(Xt){return(0,_.L6k)(Xt)}},{key:"bypassSecurityTrustScript",value:function(Xt){return(0,_.eBb)(Xt)}},{key:"bypassSecurityTrustUrl",value:function(Xt){return(0,_.LAX)(Xt)}},{key:"bypassSecurityTrustResourceUrl",value:function(Xt){return(0,_.pB0)(Xt)}}]),Vt}(Cn);return Ot.\u0275fac=function(Pt){return new(Pt||Ot)(_.LFG(b.K0))},Ot.\u0275prov=(0,_.Yz7)({factory:function(){return function(Ot){return new tr(Ot.get(b.K0))}((0,_.LFG)(_.gxx))},token:Ot,providedIn:"root"}),Ot}(),Ne=(0,_.eFA)(_._c5,"browser",[{provide:_.Lbi,useValue:b.bD},{provide:_.g9A,useValue:function(){D.makeCurrent(),E.init()},multi:!0},{provide:b.K0,useFactory:function(){return(0,_.RDi)(document),document},deps:[]}]),Le=[[],{provide:_.zSh,useValue:"root"},{provide:_.qLn,useFactory:function(){return new _.qLn},deps:[]},{provide:it,useClass:$n,multi:!0,deps:[b.K0,_.R0b,_.Lbi]},{provide:it,useClass:In,multi:!0,deps:[b.K0]},[],{provide:bt,useClass:bt,deps:[qe,Ft,_.AFp]},{provide:_.FYo,useExisting:bt},{provide:yt,useExisting:Ft},{provide:Ft,useClass:Ft,deps:[b.K0]},{provide:_.dDg,useClass:_.dDg,deps:[_.R0b]},{provide:qe,useClass:qe,deps:[it,_.R0b]},{provide:b.JF,useClass:x,deps:[]},[]],ze=function(){var Ot=function(){function jt(Pt){if((0,Z.Z)(this,jt),Pt)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return(0,V.Z)(jt,null,[{key:"withServerTransition",value:function(Vt){return{ngModule:jt,providers:[{provide:_.AFp,useValue:Vt.appId},{provide:T,useExisting:_.AFp},k]}}}]),jt}();return Ot.\u0275fac=function(Pt){return new(Pt||Ot)(_.LFG(Ot,12))},Ot.\u0275mod=_.oAB({type:Ot}),Ot.\u0275inj=_.cJS({providers:Le,imports:[b.ez,_.hGG]}),Ot}();function Rr(){return new Hr((0,_.LFG)(b.K0))}var Hr=function(){var Ot=function(){function jt(Pt){(0,Z.Z)(this,jt),this._doc=Pt}return(0,V.Z)(jt,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(Vt){this._doc.title=Vt||""}}]),jt}();return Ot.\u0275fac=function(Pt){return new(Pt||Ot)(_.LFG(b.K0))},Ot.\u0275prov=(0,_.Yz7)({factory:Rr,token:Ot,providedIn:"root"}),Ot}(),yr="undefined"!=typeof window&&window||{},Yr=function Ot(jt,Pt){(0,Z.Z)(this,Ot),this.msPerTick=jt,this.numTicks=Pt},co=function(){function Ot(jt){(0,Z.Z)(this,Ot),this.appRef=jt.injector.get(_.z2F)}return(0,V.Z)(Ot,[{key:"timeChangeDetection",value:function(Pt){var Vt=Pt&&Pt.record,Gt="Change Detection",Xt=null!=yr.console.profile;Vt&&Xt&&yr.console.profile(Gt);for(var gn=Zi(),Gn=0;Gn<5||Zi()-gn<500;)this.appRef.tick(),Gn++;var zn=Zi();Vt&&Xt&&yr.console.profileEnd(Gt);var Vn=(zn-gn)/Gn;return yr.console.log("ran ".concat(Gn," change detection cycles")),yr.console.log("".concat(Vn.toFixed(2)," ms per check")),new Yr(Vn,Gn)}}]),Ot}();function Zi(){return yr.performance&&yr.performance.now?yr.performance.now():(new Date).getTime()}function po(Ot){return function(Ot,jt){"undefined"!=typeof COMPILED&&COMPILED||((_.dqk.ng=_.dqk.ng||{})[Ot]=jt)}("profiler",new co(Ot)),Ot}},95665:function(ue,q,f){"use strict";f.d(q,{R:function(){return V}});var B=f(4839),U={};function V(){return(0,B.KV)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:U}},4839:function(ue,q,f){"use strict";function B(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function U(Z,w){return Z.require(w)}f.d(q,{KV:function(){return B},l$:function(){return U}}),ue=f.hmd(ue)},46354:function(ue,q,f){"use strict";f.d(q,{yW:function(){return _},ph:function(){return I}});var B=f(95665),U=f(4839);ue=f.hmd(ue);var V={nowSeconds:function(){return Date.now()/1e3}},N=(0,U.KV)()?function(){try{return(0,U.l$)(ue,"perf_hooks").performance}catch(T){return}}():function(){var g=(0,B.R)().performance;if(g&&g.now)return{now:function(){return g.now()},timeOrigin:Date.now()-g.now()}}(),b=void 0===N?V:{nowSeconds:function(){return(N.timeOrigin+N.now())/1e3}},_=V.nowSeconds.bind(V),I=b.nowSeconds.bind(b);!function(){var g=(0,B.R)().performance;if(g&&g.now){var T=36e5,R=g.now(),k=Date.now(),E=g.timeOrigin?Math.abs(g.timeOrigin+R-k):T,x=E<T,O=g.timing&&g.timing.navigationStart,z="number"==typeof O?Math.abs(O+R-k):T}}()},39095:function(ue,q,f){"use strict";f.d(q,{E$:function(){return Ft},ym:function(){return je}});var B=f(71955),U=f(18967),V=f(14105),Z=f(40098),w=f(38999),N=f(68707),b=f(55371),_=f(93487),I=f(89797),A=(f(33090),f(59371)),S=f(16338),v=f(57682),g=f(85639),T=f(34487),R=f(54562),k=f(44213),E=f(35135),x=f(48359),O=f(4363),F=f(58780),z="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function K(dt,Ke){var Bt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,xt=Math.abs(dt-Ke);return xt<Bt}function j(dt,Ke,Bt,xt){var vt={top:dt.top,bottom:dt.bottom,left:dt.left,right:dt.right};return Ke.top&&(vt.top+=xt),Ke.bottom&&(vt.bottom+=xt),Ke.left&&(vt.left+=Bt),Ke.right&&(vt.right+=Bt),vt.height=vt.bottom-vt.top,vt.width=vt.right-vt.left,vt}function ee(dt){var Ke=dt.clientY,Bt=dt.rect;return Ke>=Bt.top&&Ke<=Bt.bottom}function $(dt){var Ke=dt.clientX,Bt=dt.rect;return Ke>=Bt.left&&Ke<=Bt.right}function ae(dt){var Ke=dt.clientX,Bt=dt.clientY,vt=dt.allowedEdges,Qt=dt.cursorPrecision,Ht=dt.elm.nativeElement.getBoundingClientRect(),Ct={};return vt.left&&K(Ke,Ht.left,Qt)&&ee({clientY:Bt,rect:Ht})&&(Ct.left=!0),vt.right&&K(Ke,Ht.right,Qt)&&ee({clientY:Bt,rect:Ht})&&(Ct.right=!0),vt.top&&K(Bt,Ht.top,Qt)&&$({clientX:Ke,rect:Ht})&&(Ct.top=!0),vt.bottom&&K(Bt,Ht.bottom,Qt)&&$({clientX:Ke,rect:Ht})&&(Ct.bottom=!0),Ct}var se=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function ce(dt,Ke){return dt.left&&dt.top?Ke.topLeft:dt.right&&dt.top?Ke.topRight:dt.left&&dt.bottom?Ke.bottomLeft:dt.right&&dt.bottom?Ke.bottomRight:dt.left||dt.right?Ke.leftOrRight:dt.top||dt.bottom?Ke.topOrBottom:""}function le(dt){var Bt=dt.initialRectangle,xt=dt.newRectangle,vt={};return Object.keys(dt.edges).forEach(function(Qt){vt[Qt]=(xt[Qt]||0)-(Bt[Qt]||0)}),vt}var oe="resize-active",Ft=function(){var dt=function(){function Ke(Bt,xt,vt,Qt){(0,U.Z)(this,Ke),this.platformId=Bt,this.renderer=xt,this.elm=vt,this.zone=Qt,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=se,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new w.vpe,this.resizing=new w.vpe,this.resizeEnd=new w.vpe,this.mouseup=new N.xQ,this.mousedown=new N.xQ,this.mousemove=new N.xQ,this.destroy$=new N.xQ,this.resizeEdges$=new N.xQ,this.pointerEventListeners=xe.getInstance(xt,Qt)}return(0,V.Z)(Ke,[{key:"ngOnInit",value:function(){var Ct,xt=this,vt=(0,b.T)(this.pointerEventListeners.pointerDown,this.mousedown),Qt=(0,b.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,A.b)(function(Nt){var rn=Nt.event;if(Ct)try{rn.preventDefault()}catch(kn){}}),(0,S.B)()),Ht=(0,b.T)(this.pointerEventListeners.pointerUp,this.mouseup),qt=function(){Ct&&Ct.clonedNode&&(xt.elm.nativeElement.parentElement.removeChild(Ct.clonedNode),xt.renderer.setStyle(xt.elm.nativeElement,"visibility","inherit"))},bt=function(){return Object.assign({},se,xt.resizeCursors)};this.resizeEdges$.pipe((0,v.O)(this.resizeEdges),(0,g.U)(function(){return xt.resizeEdges&&Object.keys(xt.resizeEdges).some(function(Nt){return!!xt.resizeEdges[Nt]})}),(0,T.w)(function(Nt){return Nt?Qt:_.E}),(0,R.e)(this.mouseMoveThrottleMS),(0,k.R)(this.destroy$)).subscribe(function(Nt){var Ln=ae({clientX:Nt.clientX,clientY:Nt.clientY,elm:xt.elm,allowedEdges:xt.resizeEdges,cursorPrecision:xt.resizeCursorPrecision}),Rn=bt();if(!Ct){var $n=ce(Ln,Rn);xt.renderer.setStyle(xt.elm.nativeElement,"cursor",$n)}xt.setElementClass(xt.elm,"resize-left-hover",!0===Ln.left),xt.setElementClass(xt.elm,"resize-right-hover",!0===Ln.right),xt.setElementClass(xt.elm,"resize-top-hover",!0===Ln.top),xt.setElementClass(xt.elm,"resize-bottom-hover",!0===Ln.bottom)}),vt.pipe((0,E.zg)(function(Nt){function rn(Rn){return{clientX:Rn.clientX-Nt.clientX,clientY:Rn.clientY-Nt.clientY}}var kn=function(){var $n={x:1,y:1};return Ct&&(xt.resizeSnapGrid.left&&Ct.edges.left?$n.x=+xt.resizeSnapGrid.left:xt.resizeSnapGrid.right&&Ct.edges.right&&($n.x=+xt.resizeSnapGrid.right),xt.resizeSnapGrid.top&&Ct.edges.top?$n.y=+xt.resizeSnapGrid.top:xt.resizeSnapGrid.bottom&&Ct.edges.bottom&&($n.y=+xt.resizeSnapGrid.bottom)),$n};function Ln(Rn,$n){return{x:Math.ceil(Rn.clientX/$n.x),y:Math.ceil(Rn.clientY/$n.y)}}return(0,b.T)(Qt.pipe((0,x.q)(1)).pipe((0,g.U)(function(Rn){return[,Rn]})),Qt.pipe((0,O.G)())).pipe((0,g.U)(function(Rn){var $n=(0,B.Z)(Rn,2),Nn=$n[0],wn=$n[1];return[Nn&&rn(Nn),rn(wn)]})).pipe((0,F.h)(function(Rn){var $n=(0,B.Z)(Rn,2),Nn=$n[0],wn=$n[1];if(!Nn)return!0;var _r=kn(),ut=Ln(Nn,_r),He=Ln(wn,_r);return ut.x!==He.x||ut.y!==He.y})).pipe((0,g.U)(function(Rn){var Nn=(0,B.Z)(Rn,2)[1],wn=kn();return{clientX:Math.round(Nn.clientX/wn.x)*wn.x,clientY:Math.round(Nn.clientY/wn.y)*wn.y}})).pipe((0,k.R)((0,b.T)(Ht,vt)))})).pipe((0,F.h)(function(){return!!Ct})).pipe((0,g.U)(function(Nt){return j(Ct.startingRect,Ct.edges,Nt.clientX,Nt.clientY)})).pipe((0,F.h)(function(Nt){return xt.allowNegativeResizes||!!(Nt.height&&Nt.width&&Nt.height>0&&Nt.width>0)})).pipe((0,F.h)(function(Nt){return!xt.validateResize||xt.validateResize({rectangle:Nt,edges:le({edges:Ct.edges,initialRectangle:Ct.startingRect,newRectangle:Nt})})}),(0,k.R)(this.destroy$)).subscribe(function(Nt){Ct&&Ct.clonedNode&&(xt.renderer.setStyle(Ct.clonedNode,"height","".concat(Nt.height,"px")),xt.renderer.setStyle(Ct.clonedNode,"width","".concat(Nt.width,"px")),xt.renderer.setStyle(Ct.clonedNode,"top","".concat(Nt.top,"px")),xt.renderer.setStyle(Ct.clonedNode,"left","".concat(Nt.left,"px"))),xt.resizing.observers.length>0&&xt.zone.run(function(){xt.resizing.emit({edges:le({edges:Ct.edges,initialRectangle:Ct.startingRect,newRectangle:Nt}),rectangle:Nt})}),Ct.currentRect=Nt}),vt.pipe((0,g.U)(function(Nt){return Nt.edges||ae({clientX:Nt.clientX,clientY:Nt.clientY,elm:xt.elm,allowedEdges:xt.resizeEdges,cursorPrecision:xt.resizeCursorPrecision})})).pipe((0,F.h)(function(Nt){return Object.keys(Nt).length>0}),(0,k.R)(this.destroy$)).subscribe(function(Nt){Ct&&qt();var rn=function(dt,Ke){var Bt=0,xt=0,vt=dt.nativeElement.style,Ht=["transform","-ms-transform","-moz-transform","-o-transform"].map(function(qt){return vt[qt]}).find(function(qt){return!!qt});if(Ht&&Ht.includes("translate")&&(Bt=Ht.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),xt=Ht.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===Ke)return{height:dt.nativeElement.offsetHeight,width:dt.nativeElement.offsetWidth,top:dt.nativeElement.offsetTop-xt,bottom:dt.nativeElement.offsetHeight+dt.nativeElement.offsetTop-xt,left:dt.nativeElement.offsetLeft-Bt,right:dt.nativeElement.offsetWidth+dt.nativeElement.offsetLeft-Bt};var Ct=dt.nativeElement.getBoundingClientRect();return{height:Ct.height,width:Ct.width,top:Ct.top-xt,bottom:Ct.bottom-xt,left:Ct.left-Bt,right:Ct.right-Bt,scrollTop:dt.nativeElement.scrollTop,scrollLeft:dt.nativeElement.scrollLeft}}(xt.elm,xt.ghostElementPositioning);Ct={edges:Nt,startingRect:rn,currentRect:rn};var kn=bt(),Ln=ce(Ct.edges,kn);xt.renderer.setStyle(document.body,"cursor",Ln),xt.setElementClass(xt.elm,oe,!0),xt.enableGhostResize&&(Ct.clonedNode=xt.elm.nativeElement.cloneNode(!0),xt.elm.nativeElement.parentElement.appendChild(Ct.clonedNode),xt.renderer.setStyle(xt.elm.nativeElement,"visibility","hidden"),xt.renderer.setStyle(Ct.clonedNode,"position",xt.ghostElementPositioning),xt.renderer.setStyle(Ct.clonedNode,"left","".concat(Ct.startingRect.left,"px")),xt.renderer.setStyle(Ct.clonedNode,"top","".concat(Ct.startingRect.top,"px")),xt.renderer.setStyle(Ct.clonedNode,"height","".concat(Ct.startingRect.height,"px")),xt.renderer.setStyle(Ct.clonedNode,"width","".concat(Ct.startingRect.width,"px")),xt.renderer.setStyle(Ct.clonedNode,"cursor",ce(Ct.edges,kn)),xt.renderer.addClass(Ct.clonedNode,"resize-ghost-element"),Ct.clonedNode.scrollTop=Ct.startingRect.scrollTop,Ct.clonedNode.scrollLeft=Ct.startingRect.scrollLeft),xt.resizeStart.observers.length>0&&xt.zone.run(function(){xt.resizeStart.emit({edges:le({edges:Nt,initialRectangle:rn,newRectangle:rn}),rectangle:j(rn,{},0,0)})})}),Ht.pipe((0,k.R)(this.destroy$)).subscribe(function(){Ct&&(xt.renderer.removeClass(xt.elm.nativeElement,oe),xt.renderer.setStyle(document.body,"cursor",""),xt.renderer.setStyle(xt.elm.nativeElement,"cursor",""),xt.resizeEnd.observers.length>0&&xt.zone.run(function(){xt.resizeEnd.emit({edges:le({edges:Ct.edges,initialRectangle:Ct.startingRect,newRectangle:Ct.currentRect}),rectangle:Ct.currentRect})}),qt(),Ct=null)})}},{key:"ngOnChanges",value:function(xt){xt.resizeEdges&&this.resizeEdges$.next(this.resizeEdges)}},{key:"ngOnDestroy",value:function(){(0,Z.NF)(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.resizeEdges$.complete(),this.destroy$.next()}},{key:"setElementClass",value:function(xt,vt,Qt){Qt?this.renderer.addClass(xt.nativeElement,vt):this.renderer.removeClass(xt.nativeElement,vt)}}]),Ke}();return dt.\u0275fac=function(Bt){return new(Bt||dt)(w.Y36(w.Lbi),w.Y36(w.Qsj),w.Y36(w.SBq),w.Y36(w.R0b))},dt.\u0275dir=w.lG2({type:dt,selectors:[["","mwlResizable",""]],inputs:{resizeEdges:"resizeEdges",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",resizeCursorPrecision:"resizeCursorPrecision",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS",validateResize:"validateResize"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"],features:[w.TTD]}),dt}(),xe=function(){function dt(Ke,Bt){(0,U.Z)(this,dt),this.pointerDown=new I.y(function(xt){var vt,Qt;return Bt.runOutsideAngular(function(){vt=Ke.listen("document","mousedown",function(Ht){xt.next({clientX:Ht.clientX,clientY:Ht.clientY,event:Ht})}),z&&(Qt=Ke.listen("document","touchstart",function(Ht){xt.next({clientX:Ht.touches[0].clientX,clientY:Ht.touches[0].clientY,event:Ht})}))}),function(){vt(),z&&Qt()}}).pipe((0,S.B)()),this.pointerMove=new I.y(function(xt){var vt,Qt;return Bt.runOutsideAngular(function(){vt=Ke.listen("document","mousemove",function(Ht){xt.next({clientX:Ht.clientX,clientY:Ht.clientY,event:Ht})}),z&&(Qt=Ke.listen("document","touchmove",function(Ht){xt.next({clientX:Ht.targetTouches[0].clientX,clientY:Ht.targetTouches[0].clientY,event:Ht})}))}),function(){vt(),z&&Qt()}}).pipe((0,S.B)()),this.pointerUp=new I.y(function(xt){var vt,Qt,Ht;return Bt.runOutsideAngular(function(){vt=Ke.listen("document","mouseup",function(Ct){xt.next({clientX:Ct.clientX,clientY:Ct.clientY,event:Ct})}),z&&(Qt=Ke.listen("document","touchend",function(Ct){xt.next({clientX:Ct.changedTouches[0].clientX,clientY:Ct.changedTouches[0].clientY,event:Ct})}),Ht=Ke.listen("document","touchcancel",function(Ct){xt.next({clientX:Ct.changedTouches[0].clientX,clientY:Ct.changedTouches[0].clientY,event:Ct})}))}),function(){vt(),z&&(Qt(),Ht())}}).pipe((0,S.B)())}return(0,V.Z)(dt,null,[{key:"getInstance",value:function(Bt,xt){return dt.instance||(dt.instance=new dt(Bt,xt)),dt.instance}}]),dt}(),je=function(){var dt=function Ke(){(0,U.Z)(this,Ke)};return dt.\u0275fac=function(Bt){return new(Bt||dt)},dt.\u0275mod=w.oAB({type:dt}),dt.\u0275inj=w.cJS({}),dt}()},57695:function(ue,q,f){var B=f(94518),U=f(23050),V=f(99262),Z=f(44900),w=/^\s*\|\s*/;function b(D,A){var S={};for(var v in D)S[v]=D[v].syntax||D[v];for(var g in A)g in D?A[g].syntax?S[g]=w.test(A[g].syntax)?S[g]+" "+A[g].syntax.trim():A[g].syntax:delete S[g]:A[g].syntax&&(S[g]=A[g].syntax.replace(w,""));return S}function _(D){var A={};for(var S in D)A[S]=D[S].syntax;return A}ue.exports={types:b(V,Z.syntaxes),atrules:function(D,A){var S={};for(var v in D){var g=A[v]&&A[v].descriptors||null;S[v]={prelude:v in A&&"prelude"in A[v]?A[v].prelude:D[v].prelude||null,descriptors:D[v].descriptors?b(D[v].descriptors,g||{}):g&&_(g)}}for(var T in A)hasOwnProperty.call(D,T)||(S[T]={prelude:A[T].prelude||null,descriptors:A[T].descriptors&&_(A[T].descriptors)});return S}(function(D){var A=Object.create(null);for(var S in D){var v=D[S],g=null;if(v.descriptors)for(var T in g=Object.create(null),v.descriptors)g[T]=v.descriptors[T].syntax;A[S.substr(1)]={prelude:v.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:g}}return A}(B),Z.atrules),properties:b(U,Z.properties)}},63335:function(ue){function q(Z){return{prev:null,next:null,data:Z}}function f(Z,w,N){var b;return null!==U?(b=U,U=U.cursor,b.prev=w,b.next=N,b.cursor=Z.cursor):b={prev:w,next:N,cursor:Z.cursor},Z.cursor=b,b}function B(Z){var w=Z.cursor;Z.cursor=w.cursor,w.prev=null,w.next=null,w.cursor=U,U=w}var U=null,V=function(){this.cursor=null,this.head=null,this.tail=null};V.createItem=q,V.prototype.createItem=q,V.prototype.updateCursors=function(Z,w,N,b){for(var _=this.cursor;null!==_;)_.prev===Z&&(_.prev=w),_.next===N&&(_.next=b),_=_.cursor},V.prototype.getSize=function(){for(var Z=0,w=this.head;w;)Z++,w=w.next;return Z},V.prototype.fromArray=function(Z){var w=null;this.head=null;for(var N=0;N<Z.length;N++){var b=q(Z[N]);null!==w?w.next=b:this.head=b,b.prev=w,w=b}return this.tail=w,this},V.prototype.toJSON=V.prototype.toArray=function(){for(var Z=this.head,w=[];Z;)w.push(Z.data),Z=Z.next;return w},V.prototype.isEmpty=function(){return null===this.head},V.prototype.first=function(){return this.head&&this.head.data},V.prototype.last=function(){return this.tail&&this.tail.data},V.prototype.forEach=V.prototype.each=function(Z,w){var N;void 0===w&&(w=this);for(var b=f(this,null,this.head);null!==b.next;)b.next=(N=b.next).next,Z.call(w,N.data,N,this);B(this)},V.prototype.forEachRight=V.prototype.eachRight=function(Z,w){var N;void 0===w&&(w=this);for(var b=f(this,this.tail,null);null!==b.prev;)b.prev=(N=b.prev).prev,Z.call(w,N.data,N,this);B(this)},V.prototype.reduce=function(Z,w,N){var b;void 0===N&&(N=this);for(var _=f(this,null,this.head),I=w;null!==_.next;)_.next=(b=_.next).next,I=Z.call(N,I,b.data,b,this);return B(this),I},V.prototype.reduceRight=function(Z,w,N){var b;void 0===N&&(N=this);for(var _=f(this,this.tail,null),I=w;null!==_.prev;)_.prev=(b=_.prev).prev,I=Z.call(N,I,b.data,b,this);return B(this),I},V.prototype.nextUntil=function(Z,w,N){if(null!==Z){var b;void 0===N&&(N=this);for(var _=f(this,null,Z);null!==_.next&&(_.next=(b=_.next).next,!w.call(N,b.data,b,this)););B(this)}},V.prototype.prevUntil=function(Z,w,N){if(null!==Z){var b;void 0===N&&(N=this);for(var _=f(this,Z,null);null!==_.prev&&(_.prev=(b=_.prev).prev,!w.call(N,b.data,b,this)););B(this)}},V.prototype.some=function(Z,w){var N=this.head;for(void 0===w&&(w=this);null!==N;){if(Z.call(w,N.data,N,this))return!0;N=N.next}return!1},V.prototype.map=function(Z,w){var N=new V,b=this.head;for(void 0===w&&(w=this);null!==b;)N.appendData(Z.call(w,b.data,b,this)),b=b.next;return N},V.prototype.filter=function(Z,w){var N=new V,b=this.head;for(void 0===w&&(w=this);null!==b;)Z.call(w,b.data,b,this)&&N.appendData(b.data),b=b.next;return N},V.prototype.clear=function(){this.head=null,this.tail=null},V.prototype.copy=function(){for(var Z=new V,w=this.head;null!==w;)Z.insert(q(w.data)),w=w.next;return Z},V.prototype.prepend=function(Z){return this.updateCursors(null,Z,this.head,Z),null!==this.head?(this.head.prev=Z,Z.next=this.head):this.tail=Z,this.head=Z,this},V.prototype.prependData=function(Z){return this.prepend(q(Z))},V.prototype.append=function(Z){return this.insert(Z)},V.prototype.appendData=function(Z){return this.insert(q(Z))},V.prototype.insert=function(Z,w){if(null!=w)if(this.updateCursors(w.prev,Z,w,Z),null===w.prev){if(this.head!==w)throw new Error("before doesn't belong to list");this.head=Z,w.prev=Z,Z.next=w,this.updateCursors(null,Z)}else w.prev.next=Z,Z.prev=w.prev,w.prev=Z,Z.next=w;else this.updateCursors(this.tail,Z,null,Z),null!==this.tail?(this.tail.next=Z,Z.prev=this.tail):this.head=Z,this.tail=Z;return this},V.prototype.insertData=function(Z,w){return this.insert(q(Z),w)},V.prototype.remove=function(Z){if(this.updateCursors(Z,Z.prev,Z,Z.next),null!==Z.prev)Z.prev.next=Z.next;else{if(this.head!==Z)throw new Error("item doesn't belong to list");this.head=Z.next}if(null!==Z.next)Z.next.prev=Z.prev;else{if(this.tail!==Z)throw new Error("item doesn't belong to list");this.tail=Z.prev}return Z.prev=null,Z.next=null,Z},V.prototype.push=function(Z){this.insert(q(Z))},V.prototype.pop=function(){if(null!==this.tail)return this.remove(this.tail)},V.prototype.unshift=function(Z){this.prepend(q(Z))},V.prototype.shift=function(){if(null!==this.head)return this.remove(this.head)},V.prototype.prependList=function(Z){return this.insertList(Z,this.head)},V.prototype.appendList=function(Z){return this.insertList(Z)},V.prototype.insertList=function(Z,w){return null===Z.head||(null!=w?(this.updateCursors(w.prev,Z.tail,w,Z.head),null!==w.prev?(w.prev.next=Z.head,Z.head.prev=w.prev):this.head=Z.head,w.prev=Z.tail,Z.tail.next=w):(this.updateCursors(this.tail,Z.tail,null,Z.head),null!==this.tail?(this.tail.next=Z.head,Z.head.prev=this.tail):this.head=Z.head,this.tail=Z.tail),Z.head=null,Z.tail=null),this},V.prototype.replace=function(Z,w){"head"in w?this.insertList(w,Z):this.insert(w,Z),this.remove(Z)},ue.exports=V},88373:function(ue,q,f){var B=f(62146),U=f(97555).isBOM,b=function(){this.lines=null,this.columns=null,this.linesAndColumnsComputed=!1};b.prototype={setSource:function(I,D,A,S){this.source=I,this.startOffset=void 0===D?0:D,this.startLine=void 0===A?1:A,this.startColumn=void 0===S?1:S,this.linesAndColumnsComputed=!1},ensureLinesAndColumnsComputed:function(){this.linesAndColumnsComputed||(function(_,I){for(var D=I.length,A=B(_.lines,D),S=_.startLine,v=B(_.columns,D),g=_.startColumn,R=I.length>0?U(I.charCodeAt(0)):0;R<D;R++){var k=I.charCodeAt(R);A[R]=S,v[R]=g++,(10===k||13===k||12===k)&&(13===k&&R+1<D&&10===I.charCodeAt(R+1)&&(A[++R]=S,v[R]=g),S++,g=1)}A[R]=S,v[R]=g,_.lines=A,_.columns=v}(this,this.source),this.linesAndColumnsComputed=!0)},getLocation:function(I,D){return this.ensureLinesAndColumnsComputed(),{source:D,offset:this.startOffset+I,line:this.lines[I],column:this.columns[I]}},getLocationRange:function(I,D,A){return this.ensureLinesAndColumnsComputed(),{source:A,start:{offset:this.startOffset+I,line:this.lines[I],column:this.columns[I]},end:{offset:this.startOffset+D,line:this.lines[D],column:this.columns[D]}}}},ue.exports=b},52556:function(ue,q,f){var B=f(92455),Z=" ";function w(b,_){function I(E,x){return D.slice(E,x).map(function(O,F){for(var z=String(E+F+1);z.length<T;)z=" "+z;return z+" |"+O}).join("\n")}var D=b.source.split(/\r\n?|\n|\f/),A=b.line,S=b.column,v=Math.max(1,A-_)-1,g=Math.min(A+_,D.length+1),T=Math.max(4,String(g).length)+1,R=0;(S+=(Z.length-1)*(D[A-1].substr(0,S-1).match(/\t/g)||[]).length)>100&&(R=S-60+3,S=58);for(var k=v;k<=g;k++)k>=0&&k<D.length&&(D[k]=D[k].replace(/\t/g,Z),D[k]=(R>0&&D[k].length>R?"\u2026":"")+D[k].substr(R,98)+(D[k].length>R+100-1?"\u2026":""));return[I(v,A),new Array(S+T+2).join("-")+"^",I(A,g)].filter(Boolean).join("\n")}ue.exports=function(_,I,D,A,S){var v=B("SyntaxError",_);return v.source=I,v.offset=D,v.line=A,v.column=S,v.sourceFragment=function(g){return w(v,isNaN(g)?0:g)},Object.defineProperty(v,"formattedMessage",{get:function(){return"Parse error: "+v.message+"\n"+w(v,2)}}),v.parseError={offset:D,line:A,column:S},v}},13146:function(ue,q,f){var B=f(97077),U=B.TYPE,V=B.NAME,w=f(74586).cmpStr,N=U.EOF,b=U.WhiteSpace,_=U.Comment,I=16777215,D=24,A=function(){this.offsetAndType=null,this.balance=null,this.reset()};A.prototype={reset:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset},lookupType:function(v){return(v+=this.tokenIndex)<this.tokenCount?this.offsetAndType[v]>>D:N},lookupOffset:function(v){return(v+=this.tokenIndex)<this.tokenCount?this.offsetAndType[v-1]&I:this.source.length},lookupValue:function(v,g){return(v+=this.tokenIndex)<this.tokenCount&&w(this.source,this.offsetAndType[v-1]&I,this.offsetAndType[v]&I,g)},getTokenStart:function(v){return v===this.tokenIndex?this.tokenStart:v>0?v<this.tokenCount?this.offsetAndType[v-1]&I:this.offsetAndType[this.tokenCount]&I:this.firstCharOffset},getRawLength:function(v,g){var R,T=v,k=this.offsetAndType[Math.max(T-1,0)]&I;e:for(;T<this.tokenCount&&!((R=this.balance[T])<v);T++)switch(g(this.offsetAndType[T]>>D,this.source,k)){case 1:break e;case 2:T++;break e;default:this.balance[R]===T&&(T=R),k=this.offsetAndType[T]&I}return T-this.tokenIndex},isBalanceEdge:function(v){return this.balance[this.tokenIndex]<v},isDelim:function(v,g){return g?this.lookupType(g)===U.Delim&&this.source.charCodeAt(this.lookupOffset(g))===v:this.tokenType===U.Delim&&this.source.charCodeAt(this.tokenStart)===v},getTokenValue:function(){return this.source.substring(this.tokenStart,this.tokenEnd)},getTokenLength:function(){return this.tokenEnd-this.tokenStart},substrToCursor:function(v){return this.source.substring(v,this.tokenStart)},skipWS:function(){for(var v=this.tokenIndex,g=0;v<this.tokenCount&&this.offsetAndType[v]>>D===b;v++,g++);g>0&&this.skip(g)},skipSC:function(){for(;this.tokenType===b||this.tokenType===_;)this.next()},skip:function(v){var g=this.tokenIndex+v;g<this.tokenCount?(this.tokenIndex=g,this.tokenStart=this.offsetAndType[g-1]&I,this.tokenType=(g=this.offsetAndType[g])>>D,this.tokenEnd=g&I):(this.tokenIndex=this.tokenCount,this.next())},next:function(){var v=this.tokenIndex+1;v<this.tokenCount?(this.tokenIndex=v,this.tokenStart=this.tokenEnd,this.tokenType=(v=this.offsetAndType[v])>>D,this.tokenEnd=v&I):(this.tokenIndex=this.tokenCount,this.eof=!0,this.tokenType=N,this.tokenStart=this.tokenEnd=this.source.length)},forEachToken:function(v){for(var g=0,T=this.firstCharOffset;g<this.tokenCount;g++){var R=T,k=this.offsetAndType[g],E=k&I;T=E,v(k>>D,R,E,g)}},dump:function(){var v=this,g=new Array(this.tokenCount);return this.forEachToken(function(T,R,k,E){g[E]={idx:E,type:V[T],chunk:v.source.substring(R,k),balance:v.balance[E]}}),g}},ue.exports=A},62146:function(ue){var f="undefined"!=typeof Uint32Array?Uint32Array:Array;ue.exports=function(U,V){return null===U||U.length<V?new f(Math.max(V+1024,16384)):U}},62139:function(ue,q,f){var B=f(63335);ue.exports=function(V){return{fromPlainObject:function(w){return V(w,{enter:function(b){b.children&&!(b.children instanceof B)&&(b.children=(new B).fromArray(b.children))}}),w},toPlainObject:function(w){return V(w,{leave:function(b){b.children&&b.children instanceof B&&(b.children=b.children.toArray())}}),w}}}},6063:function(ue,q,f){var B=f(92455);ue.exports=function(V,Z,w){var N=B("SyntaxError",V);return N.input=Z,N.offset=w,N.rawMessage=V,N.message=N.rawMessage+"\n "+N.input+"\n--"+new Array((N.offset||N.input.length)+1).join("-")+"^",N}},58298:function(ue){function q(Z){return Z}function V(Z,w,N,b){var _;switch(Z.type){case"Group":_=function(Z,w,N,b){var _=" "===Z.combinator||b?Z.combinator:" "+Z.combinator+" ",I=Z.terms.map(function(D){return V(D,w,N,b)}).join(_);return(Z.explicit||N)&&(I=(b||","===I[0]?"[":"[ ")+I+(b?"]":" ]")),I}(Z,w,N,b)+(Z.disallowEmpty?"!":"");break;case"Multiplier":return V(Z.term,w,N,b)+w(function(Z){return 0===Z.min&&0===Z.max?"*":0===Z.min&&1===Z.max?"?":1===Z.min&&0===Z.max?Z.comma?"#":"+":1===Z.min&&1===Z.max?"":(Z.comma?"#":"")+(Z.min===Z.max?"{"+Z.min+"}":"{"+Z.min+","+(0!==Z.max?Z.max:"")+"}")}(Z),Z);case"Type":_="<"+Z.name+(Z.opts?w(function(Z){switch(Z.type){case"Range":return" ["+(null===Z.min?"-\u221e":Z.min)+","+(null===Z.max?"\u221e":Z.max)+"]";default:throw new Error("Unknown node type `"+Z.type+"`")}}(Z.opts),Z.opts):"")+">";break;case"Property":_="<'"+Z.name+"'>";break;case"Keyword":_=Z.name;break;case"AtKeyword":_="@"+Z.name;break;case"Function":_=Z.name+"(";break;case"String":case"Token":_=Z.value;break;case"Comma":_=",";break;default:throw new Error("Unknown node type `"+Z.type+"`")}return w(_,Z)}ue.exports=function(Z,w){var N=q,b=!1,_=!1;return"function"==typeof w?N=w:w&&(b=Boolean(w.forceBraces),_=Boolean(w.compact),"function"==typeof w.decorate&&(N=w.decorate)),V(Z,N,b,_)}},37149:function(ue,q,f){ue.exports={SyntaxError:f(6063),parse:f(11261),generate:f(58298),walk:f(37363)}},11261:function(ue,q,f){var B=f(57674),K=123,$=function(vt){for(var Qt="function"==typeof Uint32Array?new Uint32Array(128):new Array(128),Ht=0;Ht<128;Ht++)Qt[Ht]=vt(String.fromCharCode(Ht))?1:0;return Qt}(function(vt){return/[a-zA-Z0-9\-]/.test(vt)}),ae={" ":1,"&&":2,"||":3,"|":4};function ce(vt){return vt.substringToPos(vt.findWsEnd(vt.pos))}function le(vt){for(var Qt=vt.pos;Qt<vt.str.length;Qt++){var Ht=vt.str.charCodeAt(Qt);if(Ht>=128||0===$[Ht])break}return vt.pos===Qt&&vt.error("Expect a keyword"),vt.substringToPos(Qt)}function oe(vt){for(var Qt=vt.pos;Qt<vt.str.length;Qt++){var Ht=vt.str.charCodeAt(Qt);if(Ht<48||Ht>57)break}return vt.pos===Qt&&vt.error("Expect a number"),vt.substringToPos(Qt)}function Ae(vt){var Qt=vt.str.indexOf("'",vt.pos+1);return-1===Qt&&(vt.pos=vt.str.length,vt.error("Expect an apostrophe")),vt.substringToPos(Qt+1)}function be(vt){var Qt,Ht=null;return vt.eat(K),Qt=oe(vt),44===vt.charCode()?(vt.pos++,125!==vt.charCode()&&(Ht=oe(vt))):Ht=Qt,vt.eat(125),{min:Number(Qt),max:Ht?Number(Ht):0}}function qe(vt,Qt){var Ht=function(vt){var Qt=null,Ht=!1;switch(vt.charCode()){case 42:vt.pos++,Qt={min:0,max:0};break;case 43:vt.pos++,Qt={min:1,max:0};break;case 63:vt.pos++,Qt={min:0,max:1};break;case 35:vt.pos++,Ht=!0,Qt=vt.charCode()===K?be(vt):{min:1,max:0};break;case K:Qt=be(vt);break;default:return null}return{type:"Multiplier",comma:Ht,min:Qt.min,max:Qt.max,term:null}}(vt);return null!==Ht?(Ht.term=Qt,Ht):Qt}function _t(vt){var Qt=vt.peek();return""===Qt?null:{type:"Token",value:Qt}}function je(vt,Qt){function Ht(Nt,rn){return{type:"Group",terms:Nt,combinator:rn,disallowEmpty:!1,explicit:!1}}for(Qt=Object.keys(Qt).sort(function(Nt,rn){return ae[Nt]-ae[rn]});Qt.length>0;){for(var Ct=Qt.shift(),qt=0,bt=0;qt<vt.length;qt++){var en=vt[qt];"Combinator"===en.type&&(en.value===Ct?(-1===bt&&(bt=qt-1),vt.splice(qt,1),qt--):(-1!==bt&&qt-bt>1&&(vt.splice(bt,qt-bt,Ht(vt.slice(bt,qt),Ct)),qt=bt+1),bt=-1))}-1!==bt&&Qt.length&&vt.splice(bt,qt-bt,Ht(vt.slice(bt,qt),Ct))}return Ct}function dt(vt){for(var Ct,Qt=[],Ht={},qt=null,bt=vt.pos;Ct=Bt(vt);)"Spaces"!==Ct.type&&("Combinator"===Ct.type?((null===qt||"Combinator"===qt.type)&&(vt.pos=bt,vt.error("Unexpected combinator")),Ht[Ct.value]=!0):null!==qt&&"Combinator"!==qt.type&&(Ht[" "]=!0,Qt.push({type:"Combinator",value:" "})),Qt.push(Ct),qt=Ct,bt=vt.pos);return null!==qt&&"Combinator"===qt.type&&(vt.pos-=bt,vt.error("Unexpected combinator")),{type:"Group",terms:Qt,combinator:je(Qt,Ht)||" ",disallowEmpty:!1,explicit:!1}}function Bt(vt){var Qt=vt.charCode();if(Qt<128&&1===$[Qt])return function(vt){var Qt;return Qt=le(vt),40===vt.charCode()?(vt.pos++,{type:"Function",name:Qt}):qe(vt,{type:"Keyword",name:Qt})}(vt);switch(Qt){case 93:break;case 91:return qe(vt,function(vt){var Qt;return vt.eat(91),Qt=dt(vt),vt.eat(93),Qt.explicit=!0,33===vt.charCode()&&(vt.pos++,Qt.disallowEmpty=!0),Qt}(vt));case 60:return 39===vt.nextCharCode()?function(vt){var Qt;return vt.eat(60),vt.eat(39),Qt=le(vt),vt.eat(39),vt.eat(62),qe(vt,{type:"Property",name:Qt})}(vt):function(vt){var Qt,Ht=null;return vt.eat(60),Qt=le(vt),40===vt.charCode()&&41===vt.nextCharCode()&&(vt.pos+=2,Qt+="()"),91===vt.charCodeAt(vt.findWsEnd(vt.pos))&&(ce(vt),Ht=function(vt){var Qt=null,Ht=null,Ct=1;return vt.eat(91),45===vt.charCode()&&(vt.peek(),Ct=-1),-1==Ct&&8734===vt.charCode()?vt.peek():Qt=Ct*Number(oe(vt)),ce(vt),vt.eat(44),ce(vt),8734===vt.charCode()?vt.peek():(Ct=1,45===vt.charCode()&&(vt.peek(),Ct=-1),Ht=Ct*Number(oe(vt))),vt.eat(93),null===Qt&&null===Ht?null:{type:"Range",min:Qt,max:Ht}}(vt)),vt.eat(62),qe(vt,{type:"Type",name:Qt,opts:Ht})}(vt);case 124:return{type:"Combinator",value:vt.substringToPos(124===vt.nextCharCode()?vt.pos+2:vt.pos+1)};case 38:return vt.pos++,vt.eat(38),{type:"Combinator",value:"&&"};case 44:return vt.pos++,{type:"Comma"};case 39:return qe(vt,{type:"String",value:Ae(vt)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:ce(vt)};case 64:return(Qt=vt.nextCharCode())<128&&1===$[Qt]?(vt.pos++,{type:"AtKeyword",name:le(vt)}):_t(vt);case 42:case 43:case 63:case 35:case 33:break;case K:if((Qt=vt.nextCharCode())<48||Qt>57)return _t(vt);break;default:return _t(vt)}}function xt(vt){var Qt=new B(vt),Ht=dt(Qt);return Qt.pos!==vt.length&&Qt.error("Unexpected input"),1===Ht.terms.length&&"Group"===Ht.terms[0].type&&(Ht=Ht.terms[0]),Ht}xt("[a&&<b>#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!"),ue.exports=xt},57674:function(ue,q,f){var B=f(6063),b=function(I){this.str=I,this.pos=0};b.prototype={charCodeAt:function(I){return I<this.str.length?this.str.charCodeAt(I):0},charCode:function(){return this.charCodeAt(this.pos)},nextCharCode:function(){return this.charCodeAt(this.pos+1)},nextNonWsCode:function(I){return this.charCodeAt(this.findWsEnd(I))},findWsEnd:function(I){for(;I<this.str.length;I++){var D=this.str.charCodeAt(I);if(13!==D&&10!==D&&12!==D&&32!==D&&9!==D)break}return I},substringToPos:function(I){return this.str.substring(this.pos,this.pos=I)},eat:function(I){this.charCode()!==I&&this.error("Expect `"+String.fromCharCode(I)+"`"),this.pos++},peek:function(){return this.pos<this.str.length?this.str.charAt(this.pos++):""},error:function(I){throw new B(I,this.str,this.pos)}},ue.exports=b},37363:function(ue){var q=function(){};function f(B){return"function"==typeof B?B:q}ue.exports=function(B,U,V){var w=q,N=q;if("function"==typeof U?w=U:U&&(w=f(U.enter),N=f(U.leave)),w===q&&N===q)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function Z(b){switch(w.call(V,b),b.type){case"Group":b.terms.forEach(Z);break;case"Multiplier":Z(b.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+b.type)}N.call(V,b)}(B)}},9861:function(ue,q,f){var B=f(79274),U=Object.prototype.hasOwnProperty;function V(Z,w){var b=null;Z.children.forEach("function"!=typeof w?this.node:function(_){null!==b&&w.call(this,b),this.node(_),b=_},this)}ue.exports=function(w){function N(I){if(!U.call(b,I.type))throw new Error("Unknown node type: "+I.type);b[I.type].call(this,I)}var b={};if(w.node)for(var _ in w.node)b[_]=w.node[_].generate;return function(I,D){var A="",S={children:V,node:N,chunk:function(g){A+=g},result:function(){return A}};return D&&("function"==typeof D.decorator&&(S=D.decorator(S)),D.sourceMap&&(S=B(S))),S.node(I),S.result()}}},79274:function(ue,q,f){var B=f(30673).h,U={Atrule:!0,Selector:!0,Declaration:!0};ue.exports=function(Z){var w=new B,N=1,b=0,_={line:1,column:0},I={line:0,column:0},D=!1,A={line:1,column:0},S={generated:A},v=Z.node;Z.node=function(R){if(R.loc&&R.loc.start&&U.hasOwnProperty(R.type)){var k=R.loc.start.line,E=R.loc.start.column-1;(I.line!==k||I.column!==E)&&(I.line=k,I.column=E,_.line=N,_.column=b,D&&(D=!1,(_.line!==A.line||_.column!==A.column)&&w.addMapping(S)),D=!0,w.addMapping({source:R.loc.source,original:I,generated:_}))}v.call(this,R),D&&U.hasOwnProperty(R.type)&&(A.line=N,A.column=b)};var g=Z.chunk;Z.chunk=function(R){for(var k=0;k<R.length;k++)10===R.charCodeAt(k)?(N++,b=0):b++;g(R)};var T=Z.result;return Z.result=function(){return D&&w.addMapping(S),{css:T(),map:w}},Z}},59473:function(ue,q,f){ue.exports=f(39158)},63539:function(ue,q,f){var B=f(6326).default,U=f(40533).SyntaxReferenceError,V=f(40533).SyntaxMatchError,Z=f(50643),w=f(71473),N=f(11261),b=f(58298),_=f(37363),I=f(73130),D=f(60997).buildMatchGraph,A=f(77569).matchAsTree,S=f(24988),v=f(62798),g=f(92363).getStructureFromConfig,T=D("inherit | initial | unset"),R=D("inherit | initial | unset | <-ms-legacy-expression>");function k(K,j,J){var ee={};for(var $ in K)K[$].syntax&&(ee[$]=J?K[$].syntax:b(K[$].syntax,{compact:j}));return ee}function E(K,j,J){for(var ee={},$=0,ae=Object.entries(K);$<ae.length;$++){var se=B(ae[$],2),le=se[1];ee[se[0]]={prelude:le.prelude&&(J?le.prelude.syntax:b(le.prelude.syntax,{compact:j})),descriptors:le.descriptors&&k(le.descriptors,j,J)}}return ee}function O(K,j,J){return{matched:K,iterations:J,error:j,getTrace:S.getTrace,isType:S.isType,isProperty:S.isProperty,isKeyword:S.isKeyword}}function F(K,j,J,ee){var ae,$=I(J,K.syntax);return function(K){for(var j=0;j<K.length;j++)if("var("===K[j].value.toLowerCase())return!0;return!1}($)?O(null,new Error("Matching for a tree with var() is not supported")):(ee&&(ae=A($,K.valueCommonSyntax,K)),ee&&ae.match||(ae=A($,j.match,K)).match?O(ae.match,null,ae.iterations):O(null,new V(ae.reason,j.syntax,J,ae),ae.iterations))}var z=function(j,J,ee){if(this.valueCommonSyntax=T,this.syntax=J,this.generic=!1,this.atrules={},this.properties={},this.types={},this.structure=ee||g(j),j){if(j.types)for(var $ in j.types)this.addType_($,j.types[$]);if(j.generic)for(var $ in this.generic=!0,w)this.addType_($,w[$]);if(j.atrules)for(var $ in j.atrules)this.addAtrule_($,j.atrules[$]);if(j.properties)for(var $ in j.properties)this.addProperty_($,j.properties[$])}};z.prototype={structure:{},checkStructure:function(j){function J(ae,se){$.push({node:ae,message:se})}var ee=this.structure,$=[];return this.syntax.walk(j,function(ae){ee.hasOwnProperty(ae.type)?ee[ae.type].check(ae,J):J(ae,"Unknown node type `"+ae.type+"`")}),!!$.length&&$},createDescriptor:function(j,J,ee){var $=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,ae={type:J,name:ee},se={type:J,name:ee,parent:$,syntax:null,match:null};return"function"==typeof j?se.match=D(j,ae):("string"==typeof j?Object.defineProperty(se,"syntax",{get:function(){return Object.defineProperty(se,"syntax",{value:N(j)}),se.syntax}}):se.syntax=j,Object.defineProperty(se,"match",{get:function(){return Object.defineProperty(se,"match",{value:D(se.syntax,ae)}),se.match}})),se},addAtrule_:function(j,J){var ee=this;!J||(this.atrules[j]={type:"Atrule",name:j,prelude:J.prelude?this.createDescriptor(J.prelude,"AtrulePrelude",j):null,descriptors:J.descriptors?Object.keys(J.descriptors).reduce(function($,ae){return $[ae]=ee.createDescriptor(J.descriptors[ae],"AtruleDescriptor",ae,j),$},{}):null})},addProperty_:function(j,J){!J||(this.properties[j]=this.createDescriptor(J,"Property",j))},addType_:function(j,J){!J||(this.types[j]=this.createDescriptor(J,"Type",j),J===w["-ms-legacy-expression"]&&(this.valueCommonSyntax=R))},checkAtruleName:function(j){if(!this.getAtrule(j))return new U("Unknown at-rule","@"+j)},checkAtrulePrelude:function(j,J){var ee=this.checkAtruleName(j);if(ee)return ee;var $=this.getAtrule(j);return!$.prelude&&J?new SyntaxError("At-rule `@"+j+"` should not contain a prelude"):$.prelude&&!J?new SyntaxError("At-rule `@"+j+"` should contain a prelude"):void 0},checkAtruleDescriptorName:function(j,J){var ee=this.checkAtruleName(j);if(ee)return ee;var $=this.getAtrule(j),ae=Z.keyword(J);return $.descriptors?$.descriptors[ae.name]||$.descriptors[ae.basename]?void 0:new U("Unknown at-rule descriptor",J):new SyntaxError("At-rule `@"+j+"` has no known descriptors")},checkPropertyName:function(j){return Z.property(j).custom?new Error("Lexer matching doesn't applicable for custom properties"):this.getProperty(j)?void 0:new U("Unknown property",j)},matchAtrulePrelude:function(j,J){var ee=this.checkAtrulePrelude(j,J);return ee?O(null,ee):J?F(this,this.getAtrule(j).prelude,J,!1):O(null,null)},matchAtruleDescriptor:function(j,J,ee){var $=this.checkAtruleDescriptorName(j,J);if($)return O(null,$);var ae=this.getAtrule(j),se=Z.keyword(J);return F(this,ae.descriptors[se.name]||ae.descriptors[se.basename],ee,!1)},matchDeclaration:function(j){return"Declaration"!==j.type?O(null,new Error("Not a Declaration node")):this.matchProperty(j.property,j.value)},matchProperty:function(j,J){var ee=this.checkPropertyName(j);return ee?O(null,ee):F(this,this.getProperty(j),J,!0)},matchType:function(j,J){var ee=this.getType(j);return ee?F(this,ee,J,!1):O(null,new U("Unknown type",j))},match:function(j,J){return"string"==typeof j||j&&j.type?(("string"==typeof j||!j.match)&&(j=this.createDescriptor(j,"Type","anonymous")),F(this,j,J,!1)):O(null,new U("Bad syntax"))},findValueFragments:function(j,J,ee,$){return v.matchFragments(this,J,this.matchProperty(j,J),ee,$)},findDeclarationValueFragments:function(j,J,ee){return v.matchFragments(this,j.value,this.matchDeclaration(j),J,ee)},findAllFragments:function(j,J,ee){var $=[];return this.syntax.walk(j,{visit:"Declaration",enter:function(ae){$.push.apply($,this.findDeclarationValueFragments(ae,J,ee))}.bind(this)}),$},getAtrule:function(j){var J=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ee=Z.keyword(j),$=ee.vendor&&J?this.atrules[ee.name]||this.atrules[ee.basename]:this.atrules[ee.name];return $||null},getAtrulePrelude:function(j){var J=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ee=this.getAtrule(j,J);return ee&&ee.prelude||null},getAtruleDescriptor:function(j,J){return this.atrules.hasOwnProperty(j)&&this.atrules.declarators&&this.atrules[j].declarators[J]||null},getProperty:function(j){var J=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ee=Z.property(j),$=ee.vendor&&J?this.properties[ee.name]||this.properties[ee.basename]:this.properties[ee.name];return $||null},getType:function(j){return this.types.hasOwnProperty(j)?this.types[j]:null},validate:function(){function j(ae,se,ce,le){if(ce.hasOwnProperty(se))return ce[se];ce[se]=!1,null!==le.syntax&&_(le.syntax,function(oe){if("Type"===oe.type||"Property"===oe.type){var Ae="Type"===oe.type?ae.types:ae.properties,be="Type"===oe.type?J:ee;(!Ae.hasOwnProperty(oe.name)||j(ae,oe.name,be,Ae[oe.name]))&&(ce[se]=!0)}},this)}var J={},ee={};for(var $ in this.types)j(this,$,J,this.types[$]);for(var $ in this.properties)j(this,$,ee,this.properties[$]);return J=Object.keys(J).filter(function(ae){return J[ae]}),ee=Object.keys(ee).filter(function(ae){return ee[ae]}),J.length||ee.length?{types:J,properties:ee}:null},dump:function(j,J){return{generic:this.generic,types:k(this.types,!J,j),properties:k(this.properties,!J,j),atrules:E(this.atrules,!J,j)}},toString:function(){return JSON.stringify(this.dump())}},ue.exports=z},40533:function(ue,q,f){var B=f(92455),U=f(58298),V={offset:0,line:1,column:1};function w(I,D){var A=I&&I.loc&&I.loc[D];return A?"line"in A?N(A):A:null}function N(I,D){var g={offset:I.offset,line:I.line,column:I.column};if(D){var T=D.split(/\n|\r\n?|\f/);g.offset+=D.length,g.line+=T.length-1,g.column=1===T.length?g.column+D.length:T.pop().length+1}return g}ue.exports={SyntaxReferenceError:function(D,A){var S=B("SyntaxReferenceError",D+(A?" `"+A+"`":""));return S.reference=A,S},SyntaxMatchError:function(D,A,S,v){var g=B("SyntaxMatchError",D),T=function(I,D){for(var x,O,A=I.tokens,S=I.longestMatch,v=S<A.length&&A[S].node||null,g=v!==D?v:null,T=0,R=0,k=0,E="",F=0;F<A.length;F++){var z=A[F].value;F===S&&(R=z.length,T=E.length),null!==g&&A[F].node===g&&(F<=S?k++:k=0),E+=z}return S===A.length||k>1?(x=w(g||D,"end")||N(V,E),O=N(x)):(x=w(g,"start")||N(w(D,"start")||V,E.slice(0,T)),O=w(g,"end")||N(x,E.substr(T,R))),{css:E,mismatchOffset:T,mismatchLength:R,start:x,end:O}}(v,S),R=T.css,k=T.mismatchOffset,E=T.mismatchLength,x=T.start,O=T.end;return g.rawMessage=D,g.syntax=A?U(A):"<generic>",g.css=R,g.mismatchOffset=k,g.mismatchLength=E,g.message=D+"\n syntax: "+g.syntax+"\n value: "+(R||"<empty string>")+"\n --------"+new Array(g.mismatchOffset+1).join("-")+"^",Object.assign(g,x),g.loc={source:S&&S.loc&&S.loc.source||"<unknown>",start:x,end:O},g}}},25533:function(ue,q,f){var B=f(97555).isDigit,U=f(97555).cmpChar,V=f(97555).TYPE,Z=V.Delim,w=V.WhiteSpace,N=V.Comment,b=V.Ident,_=V.Number,I=V.Dimension,A=45,v=!0;function T(x,O){return null!==x&&x.type===Z&&x.value.charCodeAt(0)===O}function R(x,O,F){for(;null!==x&&(x.type===w||x.type===N);)x=F(++O);return O}function k(x,O,F,z){if(!x)return 0;var K=x.value.charCodeAt(O);if(43===K||K===A){if(F)return 0;O++}for(;O<x.value.length;O++)if(!B(x.value.charCodeAt(O)))return 0;return z+1}function E(x,O,F){var z=!1,K=R(x,O,F);if(null===(x=F(K)))return O;if(x.type!==_){if(!T(x,43)&&!T(x,A))return O;if(z=!0,K=R(F(++K),K,F),null===(x=F(K))&&x.type!==_)return 0}if(!z){var j=x.value.charCodeAt(0);if(43!==j&&j!==A)return 0}return k(x,z?0:1,z,K)}ue.exports=function(O,F){var z=0;if(!O)return 0;if(O.type===_)return k(O,0,!1,z);if(O.type===b&&O.value.charCodeAt(0)===A){if(!U(O.value,1,110))return 0;switch(O.value.length){case 2:return E(F(++z),z,F);case 3:return O.value.charCodeAt(2)!==A?0:(z=R(F(++z),z,F),k(O=F(z),0,v,z));default:return O.value.charCodeAt(2)!==A?0:k(O,3,v,z)}}else if(O.type===b||T(O,43)&&F(z+1).type===b){if(O.type!==b&&(O=F(++z)),null===O||!U(O.value,0,110))return 0;switch(O.value.length){case 1:return E(F(++z),z,F);case 2:return O.value.charCodeAt(1)!==A?0:(z=R(F(++z),z,F),k(O=F(z),0,v,z));default:return O.value.charCodeAt(1)!==A?0:k(O,2,v,z)}}else if(O.type===I){for(var K=O.value.charCodeAt(0),j=43===K||K===A?1:0,J=j;J<O.value.length&&B(O.value.charCodeAt(J));J++);return J!==j&&U(O.value,J,110)?J+1===O.value.length?E(F(++z),z,F):O.value.charCodeAt(J+1)!==A?0:J+2===O.value.length?(z=R(F(++z),z,F),k(O=F(z),0,v,z)):k(O,J+2,v,z):0}return 0}},70156:function(ue,q,f){var B=f(97555).isHexDigit,U=f(97555).cmpChar,V=f(97555).TYPE,Z=V.Ident,w=V.Delim,N=V.Number,b=V.Dimension;function S(R,k){return null!==R&&R.type===w&&R.value.charCodeAt(0)===k}function v(R,k){return R.value.charCodeAt(0)===k}function g(R,k,E){for(var x=k,O=0;x<R.value.length;x++){var F=R.value.charCodeAt(x);if(45===F&&E&&0!==O)return g(R,k+O+1,!1)>0?6:0;if(!B(F)||++O>6)return 0}return O}function T(R,k,E){if(!R)return 0;for(;S(E(k),63);){if(++R>6)return 0;k++}return k}ue.exports=function(k,E){var x=0;if(null===k||k.type!==Z||!U(k.value,0,117)||null===(k=E(++x)))return 0;if(S(k,43))return null===(k=E(++x))?0:k.type===Z?T(g(k,0,!0),++x,E):S(k,63)?T(1,++x,E):0;if(k.type===N){if(!v(k,43))return 0;var O=g(k,1,!0);return 0===O?0:null===(k=E(++x))?x:k.type===b||k.type===N?v(k,45)&&g(k,1,!1)?x+1:0:T(O,x,E)}return k.type===b&&v(k,43)?T(g(k,1,!0),++x,E):0}},71473:function(ue,q,f){var B=f(97555),U=B.isIdentifierStart,V=B.isHexDigit,Z=B.isDigit,w=B.cmpStr,N=B.consumeNumber,b=B.TYPE,_=f(25533),I=f(70156),D=["unset","initial","inherit"],A=["calc(","-moz-calc(","-webkit-calc("];function O(xe,De){return De<xe.length?xe.charCodeAt(De):0}function F(xe,De){return w(xe,0,xe.length,De)}function z(xe,De){for(var je=0;je<De.length;je++)if(F(xe,De[je]))return!0;return!1}function K(xe,De){return De===xe.length-2&&92===xe.charCodeAt(De)&&Z(xe.charCodeAt(De+1))}function j(xe,De,je){if(xe&&"Range"===xe.type){var dt=Number(void 0!==je&&je!==De.length?De.substr(0,je):De);if(isNaN(dt)||null!==xe.min&&dt<xe.min||null!==xe.max&&dt>xe.max)return!0}return!1}function J(xe,De){var je=xe.index,dt=0;do{if(dt++,xe.balance<=je)break}while(xe=De(dt));return dt}function ee(xe){return function(De,je,dt){return null===De?0:De.type===b.Function&&z(De.value,A)?J(De,je):xe(De,je,dt)}}function $(xe){return function(De){return null===De||De.type!==xe?0:1}}function it(xe){return function(De,je,dt){if(null===De||De.type!==b.Dimension)return 0;var Ke=N(De.value,0);if(null!==xe){var Bt=De.value.indexOf("\\",Ke),xt=-1!==Bt&&K(De.value,Bt)?De.value.substring(Ke,Bt):De.value.substr(Ke);if(!1===xe.hasOwnProperty(xt.toLowerCase()))return 0}return j(dt,De.value,Ke)?0:1}}function _t(xe){return"function"!=typeof xe&&(xe=function(){return 0}),function(De,je,dt){return null!==De&&De.type===b.Number&&0===Number(De.value)?1:xe(De,je,dt)}}ue.exports={"ident-token":$(b.Ident),"function-token":$(b.Function),"at-keyword-token":$(b.AtKeyword),"hash-token":$(b.Hash),"string-token":$(b.String),"bad-string-token":$(b.BadString),"url-token":$(b.Url),"bad-url-token":$(b.BadUrl),"delim-token":$(b.Delim),"number-token":$(b.Number),"percentage-token":$(b.Percentage),"dimension-token":$(b.Dimension),"whitespace-token":$(b.WhiteSpace),"CDO-token":$(b.CDO),"CDC-token":$(b.CDC),"colon-token":$(b.Colon),"semicolon-token":$(b.Semicolon),"comma-token":$(b.Comma),"[-token":$(b.LeftSquareBracket),"]-token":$(b.RightSquareBracket),"(-token":$(b.LeftParenthesis),")-token":$(b.RightParenthesis),"{-token":$(b.LeftCurlyBracket),"}-token":$(b.RightCurlyBracket),string:$(b.String),ident:$(b.Ident),"custom-ident":function(xe){if(null===xe||xe.type!==b.Ident)return 0;var De=xe.value.toLowerCase();return z(De,D)||F(De,"default")?0:1},"custom-property-name":function(xe){return null===xe||xe.type!==b.Ident||45!==O(xe.value,0)||45!==O(xe.value,1)?0:1},"hex-color":function(xe){if(null===xe||xe.type!==b.Hash)return 0;var De=xe.value.length;if(4!==De&&5!==De&&7!==De&&9!==De)return 0;for(var je=1;je<De;je++)if(!V(xe.value.charCodeAt(je)))return 0;return 1},"id-selector":function(xe){return null!==xe&&xe.type===b.Hash&&U(O(xe.value,1),O(xe.value,2),O(xe.value,3))?1:0},"an-plus-b":_,urange:I,"declaration-value":function(xe,De){if(!xe)return 0;var je=0,dt=0,Ke=xe.index;e:do{switch(xe.type){case b.BadString:case b.BadUrl:break e;case b.RightCurlyBracket:case b.RightParenthesis:case b.RightSquareBracket:if(xe.balance>xe.index||xe.balance<Ke)break e;dt--;break;case b.Semicolon:if(0===dt)break e;break;case b.Delim:if("!"===xe.value&&0===dt)break e;break;case b.Function:case b.LeftParenthesis:case b.LeftSquareBracket:case b.LeftCurlyBracket:dt++}if(je++,xe.balance<=Ke)break}while(xe=De(je));return je},"any-value":function(xe,De){if(!xe)return 0;var je=xe.index,dt=0;e:do{switch(xe.type){case b.BadString:case b.BadUrl:break e;case b.RightCurlyBracket:case b.RightParenthesis:case b.RightSquareBracket:if(xe.balance>xe.index||xe.balance<je)break e}if(dt++,xe.balance<=je)break}while(xe=De(dt));return dt},dimension:ee(it(null)),angle:ee(it({deg:!0,grad:!0,rad:!0,turn:!0})),decibel:ee(it({db:!0})),frequency:ee(it({hz:!0,khz:!0})),flex:ee(it({fr:!0})),length:ee(_t(it({px:!0,mm:!0,cm:!0,in:!0,pt:!0,pc:!0,q:!0,em:!0,ex:!0,ch:!0,rem:!0,vh:!0,vw:!0,vmin:!0,vmax:!0,vm:!0}))),resolution:ee(it({dpi:!0,dpcm:!0,dppx:!0,x:!0})),semitones:ee(it({st:!0})),time:ee(it({s:!0,ms:!0})),percentage:ee(function(xe,De,je){return null===xe||xe.type!==b.Percentage||j(je,xe.value,xe.value.length-1)?0:1}),zero:_t(),number:ee(function(xe,De,je){if(null===xe)return 0;var dt=N(xe.value,0);return dt!==xe.value.length&&!K(xe.value,dt)||j(je,xe.value,dt)?0:1}),integer:ee(function(xe,De,je){if(null===xe||xe.type!==b.Number)return 0;for(var dt=43===xe.value.charCodeAt(0)||45===xe.value.charCodeAt(0)?1:0;dt<xe.value.length;dt++)if(!Z(xe.value.charCodeAt(dt)))return 0;return j(je,xe.value,dt)?0:1}),"-ms-legacy-expression":("expression","(",function(De,je){return null!==De&&F(De.value,"expression(")?J(De,je):0})}},60997:function(ue,q,f){var B=f(11261),U={type:"Match"},V={type:"Mismatch"},Z={type:"DisallowEmpty"};function b(v,g,T){return g===U&&T===V||v===U&&g===U&&T===U?v:("If"===v.type&&v.else===V&&g===U&&(g=v.then,v=v.match),{type:"If",match:v,then:g,else:T})}function _(v){return v.length>2&&40===v.charCodeAt(v.length-2)&&41===v.charCodeAt(v.length-1)}function I(v){return"Keyword"===v.type||"AtKeyword"===v.type||"Function"===v.type||"Type"===v.type&&_(v.name)}function D(v,g,T){switch(v){case" ":for(var R=U,k=g.length-1;k>=0;k--)R=b(E=g[k],R,V);return R;case"|":R=V;var x=null;for(k=g.length-1;k>=0;k--){if(I(E=g[k])&&(null===x&&k>0&&I(g[k-1])&&(R=b({type:"Enum",map:x=Object.create(null)},U,R)),null!==x)){var O=(_(E.name)?E.name.slice(0,-1):E.name).toLowerCase();if(!(O in x)){x[O]=E;continue}}x=null,R=b(E,U,R)}return R;case"&&":if(g.length>5)return{type:"MatchOnce",terms:g,all:!0};for(R=V,k=g.length-1;k>=0;k--){var E=g[k];F=g.length>1?D(v,g.filter(function(j){return j!==E}),!1):U,R=b(E,F,R)}return R;case"||":if(g.length>5)return{type:"MatchOnce",terms:g,all:!1};for(R=T?U:V,k=g.length-1;k>=0;k--){var F;E=g[k],F=g.length>1?D(v,g.filter(function(J){return J!==E}),!0):U,R=b(E,F,R)}return R}}function S(v){if("function"==typeof v)return{type:"Generic",fn:v};switch(v.type){case"Group":var g=D(v.combinator,v.terms.map(S),!1);return v.disallowEmpty&&(g=b(g,Z,V)),g;case"Multiplier":return function(v){var g=U,T=S(v.term);if(0===v.max)T=b(T,Z,V),(g=b(T,null,V)).then=b(U,U,g),v.comma&&(g.then.else=b({type:"Comma",syntax:v},g,V));else for(var R=v.min||1;R<=v.max;R++)v.comma&&g!==U&&(g=b({type:"Comma",syntax:v},g,V)),g=b(T,b(U,U,g),V);if(0===v.min)g=b(U,U,g);else for(R=0;R<v.min-1;R++)v.comma&&g!==U&&(g=b({type:"Comma",syntax:v},g,V)),g=b(T,g,V);return g}(v);case"Type":case"Property":return{type:v.type,name:v.name,syntax:v};case"Keyword":return{type:v.type,name:v.name.toLowerCase(),syntax:v};case"AtKeyword":return{type:v.type,name:"@"+v.name.toLowerCase(),syntax:v};case"Function":return{type:v.type,name:v.name.toLowerCase()+"(",syntax:v};case"String":return 3===v.value.length?{type:"Token",value:v.value.charAt(1),syntax:v}:{type:v.type,value:v.value.substr(1,v.value.length-2).replace(/\\'/g,"'"),syntax:v};case"Token":return{type:v.type,value:v.value,syntax:v};case"Comma":return{type:v.type,syntax:v};default:throw new Error("Unknown node type:",v.type)}}ue.exports={MATCH:U,MISMATCH:V,DISALLOW_EMPTY:Z,buildMatchGraph:function(g,T){return"string"==typeof g&&(g=B(g)),{type:"MatchGraph",match:S(g),syntax:T||null,source:g}}}},77569:function(ue,q,f){var B=Object.prototype.hasOwnProperty,U=f(60997),V=U.MATCH,Z=U.MISMATCH,w=U.DISALLOW_EMPTY,N=f(97077).TYPE,A="Match",T=0;function R(j){for(var J=null,ee=null,$=j;null!==$;)ee=$.prev,$.prev=J,J=$,$=ee;return J}function k(j,J){if(j.length!==J.length)return!1;for(var ee=0;ee<j.length;ee++){var $=j.charCodeAt(ee);if($>=65&&$<=90&&($|=32),$!==J.charCodeAt(ee))return!1}return!0}function x(j){return null===j||j.type===N.Comma||j.type===N.Function||j.type===N.LeftParenthesis||j.type===N.LeftSquareBracket||j.type===N.LeftCurlyBracket||function(j){return j.type===N.Delim&&"?"!==j.value}(j)}function O(j){return null===j||j.type===N.RightParenthesis||j.type===N.RightSquareBracket||j.type===N.RightCurlyBracket||j.type===N.Delim}function F(j,J,ee){function $(){do{je++,De=je<j.length?j[je]:null}while(null!==De&&(De.type===N.WhiteSpace||De.type===N.Comment))}function ae(rn){var kn=je+rn;return kn<j.length?j[kn]:null}function se(rn,kn){return{nextState:rn,matchStack:Ke,syntaxStack:it,thenStack:qe,tokenIndex:je,prev:kn}}function ce(rn){qe={nextState:rn,matchStack:Ke,syntaxStack:it,prev:qe}}function le(rn){_t=se(rn,_t)}function oe(){Ke={type:1,syntax:J.syntax,token:De,prev:Ke},$(),yt=null,je>dt&&(dt=je)}function be(){Ke=2===Ke.type?Ke.prev:{type:3,syntax:it.syntax,token:Ke.token,prev:Ke},it=it.prev}var it=null,qe=null,_t=null,yt=null,Ft=0,xe=null,De=null,je=-1,dt=0,Ke={type:0,syntax:null,token:null,prev:null};for($();null===xe&&++Ft<15e3;)switch(J.type){case"Match":if(null===qe){if(null!==De&&(je!==j.length-1||"\\0"!==De.value&&"\\9"!==De.value)){J=Z;break}xe=A;break}if((J=qe.nextState)===w){if(qe.matchStack===Ke){J=Z;break}J=V}for(;qe.syntaxStack!==it;)be();qe=qe.prev;break;case"Mismatch":if(null!==yt&&!1!==yt)(null===_t||je>_t.tokenIndex)&&(_t=yt,yt=!1);else if(null===_t){xe="Mismatch";break}J=_t.nextState,qe=_t.thenStack,it=_t.syntaxStack,Ke=_t.matchStack,De=(je=_t.tokenIndex)<j.length?j[je]:null,_t=_t.prev;break;case"MatchGraph":J=J.match;break;case"If":J.else!==Z&&le(J.else),J.then!==V&&ce(J.then),J=J.match;break;case"MatchOnce":J={type:"MatchOnceBuffer",syntax:J,index:0,mask:0};break;case"MatchOnceBuffer":var Bt=J.syntax.terms;if(J.index===Bt.length){if(0===J.mask||J.syntax.all){J=Z;break}J=V;break}if(J.mask===(1<<Bt.length)-1){J=V;break}for(;J.index<Bt.length;J.index++){var xt=1<<J.index;if(0==(J.mask&xt)){le(J),ce({type:"AddMatchOnce",syntax:J.syntax,mask:J.mask|xt}),J=Bt[J.index++];break}}break;case"AddMatchOnce":J={type:"MatchOnceBuffer",syntax:J.syntax,index:0,mask:J.mask};break;case"Enum":if(null!==De&&(-1!==(bt=De.value.toLowerCase()).indexOf("\\")&&(bt=bt.replace(/\\[09].*$/,"")),B.call(J.map,bt))){J=J.map[bt];break}J=Z;break;case"Generic":var Qt=je+Math.floor(J.fn(De,ae,null!==it?it.opts:null));if(!isNaN(Qt)&&Qt>je){for(;je<Qt;)oe();J=V}else J=Z;break;case"Type":case"Property":var Ht="Type"===J.type?"types":"properties",Ct=B.call(ee,Ht)?ee[Ht][J.name]:null;if(!Ct||!Ct.match)throw new Error("Bad syntax reference: "+("Type"===J.type?"<"+J.name+">":"<'"+J.name+"'>"));if(!1!==yt&&null!==De&&"Type"===J.type&&("custom-ident"===J.name&&De.type===N.Ident||"length"===J.name&&"0"===De.value)){null===yt&&(yt=se(J,_t)),J=Z;break}it={syntax:J.syntax,opts:J.syntax.opts||null!==it&&it.opts||null,prev:it},Ke={type:2,syntax:J.syntax,token:Ke.token,prev:Ke},J=Ct.match;break;case"Keyword":var bt=J.name;if(null!==De){var en=De.value;if(-1!==en.indexOf("\\")&&(en=en.replace(/\\[09].*$/,"")),k(en,bt)){oe(),J=V;break}}J=Z;break;case"AtKeyword":case"Function":if(null!==De&&k(De.value,J.name)){oe(),J=V;break}J=Z;break;case"Token":if(null!==De&&De.value===J.value){oe(),J=V;break}J=Z;break;case"Comma":null!==De&&De.type===N.Comma?x(Ke.token)?J=Z:(oe(),J=O(De)?Z:V):J=x(Ke.token)||O(De)?V:Z;break;case"String":var Nt="";for(Qt=je;Qt<j.length&&Nt.length<J.value.length;Qt++)Nt+=j[Qt].value;if(k(Nt,J.value)){for(;je<Qt;)oe();J=V}else J=Z;break;default:throw new Error("Unknown node type: "+J.type)}switch(T+=Ft,xe){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),xe="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Ke=null;break;case A:for(;null!==it;)be();break;default:Ke=null}return{tokens:j,reason:xe,iterations:Ft,match:Ke,longestMatch:dt}}ue.exports={matchAsList:function(j,J,ee){var $=F(j,J,ee||{});if(null!==$.match){var ae=R($.match).prev;for($.match=[];null!==ae;){switch(ae.type){case 0:break;case 2:case 3:$.match.push({type:ae.type,syntax:ae.syntax});break;default:$.match.push({token:ae.token.value,node:ae.token.node})}ae=ae.prev}}return $},matchAsTree:function(j,J,ee){var $=F(j,J,ee||{});if(null===$.match)return $;var ae=$.match,se=$.match={syntax:J.syntax||null,match:[]},ce=[se];for(ae=R(ae).prev;null!==ae;){switch(ae.type){case 2:se.match.push(se={syntax:ae.syntax,match:[]}),ce.push(se);break;case 3:ce.pop(),se=ce[ce.length-1];break;default:se.match.push({syntax:ae.syntax||null,token:ae.token.value,node:ae.token.node})}ae=ae.prev}return $},getTotalIterationCount:function(){return T}}},73130:function(ue,q,f){var B=f(97555),V=new(f(13146)),Z={decorator:function(b){var _=null,I={len:0,node:null},D=[I],A="";return{children:b.children,node:function(v){var g=_;_=v,b.node.call(this,v),_=g},chunk:function(v){A+=v,I.node!==_?D.push({len:v.length,node:_}):I.len+=v.length},result:function(){return w(A,D)}}}};function w(N,b){var _=[],I=0,D=0,A=b?b[D].node:null;for(B(N,V);!V.eof;){if(b)for(;D<b.length&&I+b[D].len<=V.tokenStart;)I+=b[D++].len,A=b[D].node;_.push({type:V.tokenType,value:V.getTokenValue(),index:V.tokenIndex,balance:V.balance[V.tokenIndex],node:A}),V.next()}return _}ue.exports=function(N,b){return"string"==typeof N?w(N,null):b.generate(N,Z)}},62798:function(ue,q,f){var B=f(63335);function U(w){return"node"in w?w.node:U(w.match[0])}function V(w){return"node"in w?w.node:V(w.match[w.match.length-1])}ue.exports={matchFragments:function(w,N,b,_,I){var A=[];return null!==b.matched&&function D(S){if(null!==S.syntax&&S.syntax.type===_&&S.syntax.name===I){var v=U(S),g=V(S);w.syntax.walk(N,function(T,R,k){if(T===v){var E=new B;do{if(E.appendData(R.data),R.data===g)break;R=R.next}while(null!==R);A.push({parent:k,nodes:E})}})}Array.isArray(S.match)&&S.match.forEach(D)}(b.matched),A}}},92363:function(ue,q,f){var B=f(63335),U=Object.prototype.hasOwnProperty;function V(b){return"number"==typeof b&&isFinite(b)&&Math.floor(b)===b&&b>=0}function Z(b){return Boolean(b)&&V(b.offset)&&V(b.line)&&V(b.column)}function w(b,_){return function(D,A){if(!D||D.constructor!==Object)return A(D,"Type of node should be an Object");for(var S in D){var v=!0;if(!1!==U.call(D,S)){if("type"===S)D.type!==b&&A(D,"Wrong node type `"+D.type+"`, expected `"+b+"`");else if("loc"===S){if(null===D.loc)continue;if(D.loc&&D.loc.constructor===Object)if("string"!=typeof D.loc.source)S+=".source";else if(Z(D.loc.start)){if(Z(D.loc.end))continue;S+=".end"}else S+=".start";v=!1}else if(_.hasOwnProperty(S)){var g=0;for(v=!1;!v&&g<_[S].length;g++){var T=_[S][g];switch(T){case String:v="string"==typeof D[S];break;case Boolean:v="boolean"==typeof D[S];break;case null:v=null===D[S];break;default:"string"==typeof T?v=D[S]&&D[S].type===T:Array.isArray(T)&&(v=D[S]instanceof B)}}}else A(D,"Unknown field `"+S+"` for "+b+" node type");v||A(D,"Bad value for `"+b+"."+S+"`")}}for(var S in _)U.call(_,S)&&!1===U.call(D,S)&&A(D,"Field `"+b+"."+S+"` is missed")}}function N(b,_){var I=_.structure,D={type:String,loc:!0},A={type:'"'+b+'"'};for(var S in I)if(!1!==U.call(I,S)){for(var v=[],g=D[S]=Array.isArray(I[S])?I[S].slice():[I[S]],T=0;T<g.length;T++){var R=g[T];if(R===String||R===Boolean)v.push(R.name);else if(null===R)v.push("null");else if("string"==typeof R)v.push("<"+R+">");else{if(!Array.isArray(R))throw new Error("Wrong value `"+R+"` in `"+b+"."+S+"` structure definition");v.push("List")}}A[S]=v.join(" | ")}return{docs:A,check:w(b,D)}}ue.exports={getStructureFromConfig:function(_){var I={};if(_.node)for(var D in _.node)if(U.call(_.node,D)){var A=_.node[D];if(!A.structure)throw new Error("Missed `structure` field in `"+D+"` node type definition");I[D]=N(D,A)}return I}}},24988:function(ue){function q(Z){function w(_){return null!==_&&("Type"===_.type||"Property"===_.type||"Keyword"===_.type)}var b=null;return null!==this.matched&&function N(_){if(Array.isArray(_.match)){for(var I=0;I<_.match.length;I++)if(N(_.match[I]))return w(_.syntax)&&b.unshift(_.syntax),!0}else if(_.node===Z)return b=w(_.syntax)?[_.syntax]:[],!0;return!1}(this.matched),b}function f(Z,w,N){var b=q.call(Z,w);return null!==b&&b.some(N)}ue.exports={getTrace:q,isType:function(Z,w){return f(this,Z,function(N){return"Type"===N.type&&N.name===w})},isProperty:function(Z,w){return f(this,Z,function(N){return"Property"===N.type&&N.name===w})},isKeyword:function(Z){return f(this,Z,function(w){return"Keyword"===w.type})}}},29365:function(ue,q,f){var B=f(88373),U=f(52556),V=f(13146),Z=f(63335),w=f(97555),N=f(97077),b=f(74586),_=b.findWhiteSpaceStart,I=b.cmpStr,D=f(15785),A=function(){},S=N.TYPE,v=N.NAME,g=S.WhiteSpace,T=S.Comment,R=S.Ident,k=S.Function,E=S.Url,x=S.Hash,O=S.Percentage,F=S.Number;function j(ee){return function(){return this[ee]()}}ue.exports=function($){var ae={scanner:new V,locationMap:new B,filename:"<unknown>",needPositions:!1,onParseError:A,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:D,createList:function(){return new Z},createSingleNodeList:function(le){return(new Z).appendData(le)},getFirstListNode:function(le){return le&&le.first()},getLastListNode:function(le){return le.last()},parseWithFallback:function(le,oe){var Ae=this.scanner.tokenIndex;try{return le.call(this)}catch(it){if(this.onParseErrorThrow)throw it;var be=oe.call(this,Ae);return this.onParseErrorThrow=!0,this.onParseError(it,be),this.onParseErrorThrow=!1,be}},lookupNonWSType:function(le){do{var oe=this.scanner.lookupType(le++);if(oe!==g)return oe}while(0!==oe);return 0},eat:function(le){if(this.scanner.tokenType!==le){var oe=this.scanner.tokenStart,Ae=v[le]+" is expected";switch(le){case R:this.scanner.tokenType===k||this.scanner.tokenType===E?(oe=this.scanner.tokenEnd-1,Ae="Identifier is expected but function found"):Ae="Identifier is expected";break;case x:this.scanner.isDelim(35)&&(this.scanner.next(),oe++,Ae="Name is expected");break;case O:this.scanner.tokenType===F&&(oe=this.scanner.tokenEnd,Ae="Percent sign is expected");break;default:this.scanner.source.charCodeAt(this.scanner.tokenStart)===le&&(oe+=1)}this.error(Ae,oe)}this.scanner.next()},consume:function(le){var oe=this.scanner.getTokenValue();return this.eat(le),oe},consumeFunctionName:function(){var le=this.scanner.source.substring(this.scanner.tokenStart,this.scanner.tokenEnd-1);return this.eat(k),le},getLocation:function(le,oe){return this.needPositions?this.locationMap.getLocationRange(le,oe,this.filename):null},getLocationFromList:function(le){if(this.needPositions){var oe=this.getFirstListNode(le),Ae=this.getLastListNode(le);return this.locationMap.getLocationRange(null!==oe?oe.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,null!==Ae?Ae.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function(le,oe){var Ae=this.locationMap.getLocation(void 0!==oe&&oe<this.scanner.source.length?oe:this.scanner.eof?_(this.scanner.source,this.scanner.source.length-1):this.scanner.tokenStart);throw new U(le||"Unexpected input",this.scanner.source,Ae.offset,Ae.line,Ae.column)}};for(var se in $=function(ee){var $={context:{},scope:{},atrule:{},pseudo:{}};if(ee.parseContext)for(var ae in ee.parseContext)switch(typeof ee.parseContext[ae]){case"function":$.context[ae]=ee.parseContext[ae];break;case"string":$.context[ae]=j(ee.parseContext[ae])}if(ee.scope)for(var ae in ee.scope)$.scope[ae]=ee.scope[ae];if(ee.atrule)for(var ae in ee.atrule){var se=ee.atrule[ae];se.parse&&($.atrule[ae]=se.parse)}if(ee.pseudo)for(var ae in ee.pseudo){var ce=ee.pseudo[ae];ce.parse&&($.pseudo[ae]=ce.parse)}if(ee.node)for(var ae in ee.node)$[ae]=ee.node[ae].parse;return $}($||{}))ae[se]=$[se];return function(ce,le){var be,oe=(le=le||{}).context||"default",Ae=le.onComment;if(w(ce,ae.scanner),ae.locationMap.setSource(ce,le.offset,le.line,le.column),ae.filename=le.filename||"<unknown>",ae.needPositions=Boolean(le.positions),ae.onParseError="function"==typeof le.onParseError?le.onParseError:A,ae.onParseErrorThrow=!1,ae.parseAtrulePrelude=!("parseAtrulePrelude"in le)||Boolean(le.parseAtrulePrelude),ae.parseRulePrelude=!("parseRulePrelude"in le)||Boolean(le.parseRulePrelude),ae.parseValue=!("parseValue"in le)||Boolean(le.parseValue),ae.parseCustomProperty="parseCustomProperty"in le&&Boolean(le.parseCustomProperty),!ae.context.hasOwnProperty(oe))throw new Error("Unknown context `"+oe+"`");return"function"==typeof Ae&&ae.scanner.forEachToken(function(it,qe,_t){if(it===T){var yt=ae.getLocation(qe,_t),Ft=I(ce,_t-2,_t,"*/")?ce.slice(qe+2,_t-2):ce.slice(qe+2,_t);Ae(Ft,yt)}}),be=ae.context[oe].call(ae,le),ae.scanner.eof||ae.error(),be}}},15785:function(ue,q,f){var B=f(97555).TYPE,U=B.WhiteSpace,V=B.Comment;ue.exports=function(w){var N=this.createList(),b=null,_={recognizer:w,space:null,ignoreWS:!1,ignoreWSAfter:!1};for(this.scanner.skipSC();!this.scanner.eof;){switch(this.scanner.tokenType){case V:this.scanner.next();continue;case U:_.ignoreWS?this.scanner.next():_.space=this.WhiteSpace();continue}if(void 0===(b=w.getNode.call(this,_)))break;null!==_.space&&(N.push(_.space),_.space=null),N.push(b),_.ignoreWSAfter?(_.ignoreWSAfter=!1,_.ignoreWS=!0):_.ignoreWS=!1}return N}},71713:function(ue){ue.exports={parse:{prelude:null,block:function(){return this.Block(!0)}}}},88208:function(ue,q,f){var B=f(97555).TYPE,U=B.String,V=B.Ident,Z=B.Url,w=B.Function,N=B.LeftParenthesis;ue.exports={parse:{prelude:function(){var _=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case U:_.push(this.String());break;case Z:case w:_.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===V||this.lookupNonWSType(0)===N)&&(_.push(this.WhiteSpace()),_.push(this.MediaQueryList())),_},block:null}}},55682:function(ue,q,f){ue.exports={"font-face":f(71713),import:f(88208),media:f(81706),page:f(93949),supports:f(46928)}},81706:function(ue){ue.exports={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}}},93949:function(ue){ue.exports={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}}},46928:function(ue,q,f){var B=f(97555).TYPE,U=B.WhiteSpace,V=B.Comment,Z=B.Ident,w=B.Function,N=B.Colon,b=B.LeftParenthesis;function _(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function I(){return this.scanner.skipSC(),this.scanner.tokenType===Z&&this.lookupNonWSType(1)===N?this.createSingleNodeList(this.Declaration()):D.call(this)}function D(){var v,A=this.createList(),S=null;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case U:S=this.WhiteSpace();continue;case V:this.scanner.next();continue;case w:v=this.Function(_,this.scope.AtrulePrelude);break;case Z:v=this.Identifier();break;case b:v=this.Parentheses(I,this.scope.AtrulePrelude);break;default:break e}null!==S&&(A.push(S),S=null),A.push(v)}return A}ue.exports={parse:{prelude:function(){var S=D.call(this);return null===this.getFirstListNode(S)&&this.error("Condition is expected"),S},block:function(){return this.Block(!1)}}}},53901:function(ue,q,f){var B=f(57695);ue.exports={generic:!0,types:B.types,atrules:B.atrules,properties:B.properties,node:f(5678)}},15249:function(ue,q,f){var B=f(6326).default,U=Object.prototype.hasOwnProperty,V={generic:!0,types:I,atrules:{prelude:D,descriptors:D},properties:I,parseContext:function(S,v){return Object.assign(S,v)},scope:function b(S,v){for(var g in v)U.call(v,g)&&(Z(S[g])?b(S[g],w(v[g])):S[g]=w(v[g]));return S},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function Z(S){return S&&S.constructor===Object}function w(S){return Z(S)?Object.assign({},S):S}function _(S,v){return"string"==typeof v&&/^\s*\|/.test(v)?"string"==typeof S?S+v:v.replace(/^\s*\|\s*/,""):v||null}function I(S,v){if("string"==typeof v)return _(S,v);var g=Object.assign({},S);for(var T in v)U.call(v,T)&&(g[T]=_(U.call(S,T)?S[T]:void 0,v[T]));return g}function D(S,v){var g=I(S,v);return!Z(g)||Object.keys(g).length?g:null}function A(S,v,g){for(var T in g)if(!1!==U.call(g,T))if(!0===g[T])T in v&&U.call(v,T)&&(S[T]=w(v[T]));else if(g[T])if("function"==typeof g[T]){var R=g[T];S[T]=R({},S[T]),S[T]=R(S[T]||{},v[T])}else if(Z(g[T])){var k={};for(var E in S[T])k[E]=A({},S[T][E],g[T]);for(var x in v[T])k[x]=A(k[x]||{},v[T][x],g[T]);S[T]=k}else if(Array.isArray(g[T])){for(var O={},F=g[T].reduce(function(ae,se){return ae[se]=!0,ae},{}),z=0,K=Object.entries(S[T]||{});z<K.length;z++){var j=B(K[z],2),J=j[0],ee=j[1];O[J]={},ee&&A(O[J],ee,F)}for(var $ in v[T])U.call(v[T],$)&&(O[$]||(O[$]={}),v[T]&&v[T][$]&&A(O[$],v[T][$],F));S[T]=O}return S}ue.exports=function(S,v){return A(S,v,V)}},76816:function(ue,q,f){ue.exports={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(U){return this.AtrulePrelude(U.atrule?String(U.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:f(73241),atrule:f(55682),pseudo:f(31947),node:f(5678)}},29897:function(ue,q,f){ue.exports={node:f(5678)}},15067:function(ue,q,f){var B=f(63335),U=f(52556),V=f(13146),Z=f(63539),w=f(37149),N=f(97555),b=f(29365),_=f(9861),I=f(62139),D=f(24523),A=f(30714),S=f(50643),v=f(15249);function g(T){var R=b(T),k=D(T),E=_(T),x=I(k),O={List:B,SyntaxError:U,TokenStream:V,Lexer:Z,vendorPrefix:S.vendorPrefix,keyword:S.keyword,property:S.property,isCustomProperty:S.isCustomProperty,definitionSyntax:w,lexer:null,createLexer:function(z){return new Z(z,O,O.lexer.structure)},tokenize:N,parse:R,walk:k,generate:E,find:k.find,findLast:k.findLast,findAll:k.findAll,clone:A,fromPlainObject:x.fromPlainObject,toPlainObject:x.toPlainObject,createSyntax:function(z){return g(v({},z))},fork:function(z){var K=v({},T);return g("function"==typeof z?z(K,Object.assign):v(K,z))}};return O.lexer=new Z({generic:!0,types:T.types,atrules:T.atrules,properties:T.properties,node:T.node},O),O}q.create=function(T){return g(v({},T))}},36728:function(ue){ue.exports=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}},82418:function(ue,q,f){var B=f(97555).TYPE,U=f(89604).mode,V=B.Comma,Z=B.WhiteSpace;ue.exports=function(){var w=this.createList();if(this.scanner.skipSC(),w.push(this.Identifier()),this.scanner.skipSC(),this.scanner.tokenType===V){w.push(this.Operator());var N=this.scanner.tokenIndex,b=this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,U.exclamationMarkOrSemicolon,!1);if("Value"===b.type&&b.children.isEmpty())for(var _=N-this.scanner.tokenIndex;_<=0;_++)if(this.scanner.lookupType(_)===Z){b.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}w.push(b)}return w}},39158:function(ue,q,f){ue.exports=f(15067).create(function(){for(var U={},V=0;V<arguments.length;V++){var Z=arguments[V];for(var w in Z)U[w]=Z[w]}return U}(f(53901),f(76816),f(29897))),ue.exports.version=f(37151).version},34230:function(ue,q,f){var B=f(97555).cmpChar,U=f(97555).isDigit,V=f(97555).TYPE,Z=V.WhiteSpace,w=V.Comment,N=V.Ident,b=V.Number,_=V.Dimension,I=43,D=45,A=110,S=!0;function g(E,x){var O=this.scanner.tokenStart+E,F=this.scanner.source.charCodeAt(O);for((F===I||F===D)&&(x&&this.error("Number sign is not allowed"),O++);O<this.scanner.tokenEnd;O++)U(this.scanner.source.charCodeAt(O))||this.error("Integer is expected",O)}function T(E){return g.call(this,0,E)}function R(E,x){if(!B(this.scanner.source,this.scanner.tokenStart+E,x)){var O="";switch(x){case A:O="N is expected";break;case D:O="HyphenMinus is expected"}this.error(O,this.scanner.tokenStart+E)}}function k(){for(var E=0,x=0,O=this.scanner.tokenType;O===Z||O===w;)O=this.scanner.lookupType(++E);if(O!==b){if(!this.scanner.isDelim(I,E)&&!this.scanner.isDelim(D,E))return null;x=this.scanner.isDelim(I,E)?I:D;do{O=this.scanner.lookupType(++E)}while(O===Z||O===w);O!==b&&(this.scanner.skip(E),T.call(this,S))}return E>0&&this.scanner.skip(E),0===x&&(O=this.scanner.source.charCodeAt(this.scanner.tokenStart))!==I&&O!==D&&this.error("Number sign is expected"),T.call(this,0!==x),x===D?"-"+this.consume(b):this.consume(b)}ue.exports={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var x=this.scanner.tokenStart,O=null,F=null;if(this.scanner.tokenType===b)T.call(this,!1),F=this.consume(b);else if(this.scanner.tokenType===N&&B(this.scanner.source,this.scanner.tokenStart,D))switch(O="-1",R.call(this,1,A),this.scanner.getTokenLength()){case 2:this.scanner.next(),F=k.call(this);break;case 3:R.call(this,2,D),this.scanner.next(),this.scanner.skipSC(),T.call(this,S),F="-"+this.consume(b);break;default:R.call(this,2,D),g.call(this,3,S),this.scanner.next(),F=this.scanner.substrToCursor(x+2)}else if(this.scanner.tokenType===N||this.scanner.isDelim(I)&&this.scanner.lookupType(1)===N){var z=0;switch(O="1",this.scanner.isDelim(I)&&(z=1,this.scanner.next()),R.call(this,0,A),this.scanner.getTokenLength()){case 1:this.scanner.next(),F=k.call(this);break;case 2:R.call(this,1,D),this.scanner.next(),this.scanner.skipSC(),T.call(this,S),F="-"+this.consume(b);break;default:R.call(this,1,D),g.call(this,2,S),this.scanner.next(),F=this.scanner.substrToCursor(x+z+1)}}else if(this.scanner.tokenType===_){for(var K=this.scanner.source.charCodeAt(this.scanner.tokenStart),j=this.scanner.tokenStart+(z=K===I||K===D);j<this.scanner.tokenEnd&&U(this.scanner.source.charCodeAt(j));j++);j===this.scanner.tokenStart+z&&this.error("Integer is expected",this.scanner.tokenStart+z),R.call(this,j-this.scanner.tokenStart,A),O=this.scanner.source.substring(x,j),j+1===this.scanner.tokenEnd?(this.scanner.next(),F=k.call(this)):(R.call(this,j-this.scanner.tokenStart+1,D),j+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),T.call(this,S),F="-"+this.consume(b)):(g.call(this,j-this.scanner.tokenStart+2,S),this.scanner.next(),F=this.scanner.substrToCursor(j+1)))}else this.error();return null!==O&&O.charCodeAt(0)===I&&(O=O.substr(1)),null!==F&&F.charCodeAt(0)===I&&(F=F.substr(1)),{type:"AnPlusB",loc:this.getLocation(x,this.scanner.tokenStart),a:O,b:F}},generate:function(x){var F=null!=x.b;null!=x.a?(this.chunk("+1"===x.a?"+n":"1"===x.a?"n":"-1"===x.a?"-n":x.a+"n"),F&&("-"===(F=String(x.b)).charAt(0)||"+"===F.charAt(0)?(this.chunk(F.charAt(0)),this.chunk(F.substr(1))):(this.chunk("+"),this.chunk(F)))):this.chunk(String(x.b))}}},24867:function(ue,q,f){var B=f(97555).TYPE,U=f(89604).mode,V=B.AtKeyword,Z=B.Semicolon,w=B.LeftCurlyBracket,N=B.RightCurlyBracket;function b(I){return this.Raw(I,U.leftCurlyBracketOrSemicolon,!0)}function _(){for(var D,I=1;D=this.scanner.lookupType(I);I++){if(D===N)return!0;if(D===w||D===V)return!1}return!1}ue.exports={name:"Atrule",structure:{name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]},parse:function(){var A,S,D=this.scanner.tokenStart,v=null,g=null;switch(this.eat(V),S=(A=this.scanner.substrToCursor(D+1)).toLowerCase(),this.scanner.skipSC(),!1===this.scanner.eof&&this.scanner.tokenType!==w&&this.scanner.tokenType!==Z&&(this.parseAtrulePrelude?"AtrulePrelude"===(v=this.parseWithFallback(this.AtrulePrelude.bind(this,A),b)).type&&null===v.children.head&&(v=null):v=b.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case Z:this.scanner.next();break;case w:g=this.atrule.hasOwnProperty(S)&&"function"==typeof this.atrule[S].block?this.atrule[S].block.call(this):this.Block(_.call(this))}return{type:"Atrule",loc:this.getLocation(D,this.scanner.tokenStart),name:A,prelude:v,block:g}},generate:function(D){this.chunk("@"),this.chunk(D.name),null!==D.prelude&&(this.chunk(" "),this.node(D.prelude)),D.block?this.node(D.block):this.chunk(";")},walkContext:"atrule"}},19121:function(ue,q,f){var B=f(97555).TYPE,U=B.Semicolon,V=B.LeftCurlyBracket;ue.exports={name:"AtrulePrelude",structure:{children:[[]]},parse:function(w){var N=null;return null!==w&&(w=w.toLowerCase()),this.scanner.skipSC(),N=this.atrule.hasOwnProperty(w)&&"function"==typeof this.atrule[w].prelude?this.atrule[w].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.scanner.skipSC(),!0!==this.scanner.eof&&this.scanner.tokenType!==V&&this.scanner.tokenType!==U&&this.error("Semicolon or block is expected"),null===N&&(N=this.createList()),{type:"AtrulePrelude",loc:this.getLocationFromList(N),children:N}},generate:function(w){this.children(w)},walkContext:"atrulePrelude"}},87446:function(ue,q,f){var B=f(97555).TYPE,U=B.Ident,V=B.String,Z=B.Colon,w=B.LeftSquareBracket,N=B.RightSquareBracket;function v(){this.scanner.eof&&this.error("Unexpected end of input");var T=this.scanner.tokenStart,R=!1,k=!0;return this.scanner.isDelim(42)?(R=!0,k=!1,this.scanner.next()):this.scanner.isDelim(124)||this.eat(U),this.scanner.isDelim(124)?61!==this.scanner.source.charCodeAt(this.scanner.tokenStart+1)?(this.scanner.next(),this.eat(U)):R&&this.error("Identifier is expected",this.scanner.tokenEnd):R&&this.error("Vertical line is expected"),k&&this.scanner.tokenType===Z&&(this.scanner.next(),this.eat(U)),{type:"Identifier",loc:this.getLocation(T,this.scanner.tokenStart),name:this.scanner.substrToCursor(T)}}function g(){var T=this.scanner.tokenStart,R=this.scanner.source.charCodeAt(T);return 61!==R&&126!==R&&94!==R&&36!==R&&42!==R&&124!==R&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),61!==R&&(this.scanner.isDelim(61)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(T)}ue.exports={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var k,R=this.scanner.tokenStart,E=null,x=null,O=null;return this.eat(w),this.scanner.skipSC(),k=v.call(this),this.scanner.skipSC(),this.scanner.tokenType!==N&&(this.scanner.tokenType!==U&&(E=g.call(this),this.scanner.skipSC(),x=this.scanner.tokenType===V?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===U&&(O=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(N),{type:"AttributeSelector",loc:this.getLocation(R,this.scanner.tokenStart),name:k,matcher:E,value:x,flags:O}},generate:function(R){var k=" ";this.chunk("["),this.node(R.name),null!==R.matcher&&(this.chunk(R.matcher),null!==R.value&&(this.node(R.value),"String"===R.value.type&&(k=""))),null!==R.flags&&(this.chunk(k),this.chunk(R.flags)),this.chunk("]")}}},33570:function(ue,q,f){var B=f(97555).TYPE,U=f(89604).mode,V=B.WhiteSpace,Z=B.Comment,w=B.Semicolon,N=B.AtKeyword,b=B.LeftCurlyBracket,_=B.RightCurlyBracket;function I(v){return this.Raw(v,null,!0)}function D(){return this.parseWithFallback(this.Rule,I)}function A(v){return this.Raw(v,U.semicolonIncluded,!0)}function S(){if(this.scanner.tokenType===w)return A.call(this,this.scanner.tokenIndex);var v=this.parseWithFallback(this.Declaration,A);return this.scanner.tokenType===w&&this.scanner.next(),v}ue.exports={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(g){var T=g?S:D,R=this.scanner.tokenStart,k=this.createList();this.eat(b);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case _:break e;case V:case Z:this.scanner.next();break;case N:k.push(this.parseWithFallback(this.Atrule,I));break;default:k.push(T.call(this))}return this.scanner.eof||this.eat(_),{type:"Block",loc:this.getLocation(R,this.scanner.tokenStart),children:k}},generate:function(g){this.chunk("{"),this.children(g,function(T){"Declaration"===T.type&&this.chunk(";")}),this.chunk("}")},walkContext:"block"}},8916:function(ue,q,f){var B=f(97555).TYPE,U=B.LeftSquareBracket,V=B.RightSquareBracket;ue.exports={name:"Brackets",structure:{children:[[]]},parse:function(w,N){var _,b=this.scanner.tokenStart;return this.eat(U),_=w.call(this,N),this.scanner.eof||this.eat(V),{type:"Brackets",loc:this.getLocation(b,this.scanner.tokenStart),children:_}},generate:function(w){this.chunk("["),this.children(w),this.chunk("]")}}},91485:function(ue,q,f){var B=f(97555).TYPE.CDC;ue.exports={name:"CDC",structure:[],parse:function(){var V=this.scanner.tokenStart;return this.eat(B),{type:"CDC",loc:this.getLocation(V,this.scanner.tokenStart)}},generate:function(){this.chunk("--\x3e")}}},59315:function(ue,q,f){var B=f(97555).TYPE.CDO;ue.exports={name:"CDO",structure:[],parse:function(){var V=this.scanner.tokenStart;return this.eat(B),{type:"CDO",loc:this.getLocation(V,this.scanner.tokenStart)}},generate:function(){this.chunk("\x3c!--")}}},37016:function(ue,q,f){var U=f(97555).TYPE.Ident;ue.exports={name:"ClassSelector",structure:{name:String},parse:function(){return this.scanner.isDelim(46)||this.error("Full stop is expected"),this.scanner.next(),{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(U)}},generate:function(w){this.chunk("."),this.chunk(w.name)}}},55136:function(ue,q,f){var U=f(97555).TYPE.Ident;ue.exports={name:"Combinator",structure:{name:String},parse:function(){var _=this.scanner.tokenStart;switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 62:case 43:case 126:this.scanner.next();break;case 47:this.scanner.next(),(this.scanner.tokenType!==U||!1===this.scanner.lookupValue(0,"deep"))&&this.error("Identifier `deep` is expected"),this.scanner.next(),this.scanner.isDelim(47)||this.error("Solidus is expected"),this.scanner.next();break;default:this.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(_,this.scanner.tokenStart),name:this.scanner.substrToCursor(_)}},generate:function(_){this.chunk(_.name)}}},6875:function(ue,q,f){var U=f(97555).TYPE.Comment;ue.exports={name:"Comment",structure:{value:String},parse:function(){var N=this.scanner.tokenStart,b=this.scanner.tokenEnd;return this.eat(U),b-N+2>=2&&42===this.scanner.source.charCodeAt(b-2)&&47===this.scanner.source.charCodeAt(b-1)&&(b-=2),{type:"Comment",loc:this.getLocation(N,this.scanner.tokenStart),value:this.scanner.source.substring(N+2,b)}},generate:function(N){this.chunk("/*"),this.chunk(N.value),this.chunk("*/")}}},7217:function(ue,q,f){var B=f(50643).isCustomProperty,U=f(97555).TYPE,V=f(89604).mode,Z=U.Ident,w=U.Hash,N=U.Colon,b=U.Semicolon,_=U.Delim,I=U.WhiteSpace;function k(z){return this.Raw(z,V.exclamationMarkOrSemicolon,!0)}function E(z){return this.Raw(z,V.exclamationMarkOrSemicolon,!1)}function x(){var z=this.scanner.tokenIndex,K=this.Value();return"Raw"!==K.type&&!1===this.scanner.eof&&this.scanner.tokenType!==b&&!1===this.scanner.isDelim(33)&&!1===this.scanner.isBalanceEdge(z)&&this.error(),K}function O(){var z=this.scanner.tokenStart;if(this.scanner.tokenType===_)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.scanner.next();break;case 47:this.scanner.next(),this.scanner.isDelim(47)&&this.scanner.next()}return this.eat(this.scanner.tokenType===w?w:Z),this.scanner.substrToCursor(z)}function F(){this.eat(_),this.scanner.skipSC();var z=this.consume(Z);return"important"===z||z}ue.exports={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var ce,K=this.scanner.tokenStart,j=this.scanner.tokenIndex,J=O.call(this),ee=B(J),$=ee?this.parseCustomProperty:this.parseValue,ae=ee?E:k,se=!1;this.scanner.skipSC(),this.eat(N);var le=this.scanner.tokenIndex;if(ee||this.scanner.skipSC(),ce=$?this.parseWithFallback(x,ae):ae.call(this,this.scanner.tokenIndex),ee&&"Value"===ce.type&&ce.children.isEmpty())for(var oe=le-this.scanner.tokenIndex;oe<=0;oe++)if(this.scanner.lookupType(oe)===I){ce.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.scanner.isDelim(33)&&(se=F.call(this),this.scanner.skipSC()),!1===this.scanner.eof&&this.scanner.tokenType!==b&&!1===this.scanner.isBalanceEdge(j)&&this.error(),{type:"Declaration",loc:this.getLocation(K,this.scanner.tokenStart),important:se,property:J,value:ce}},generate:function(K){this.chunk(K.property),this.chunk(":"),this.node(K.value),K.important&&this.chunk(!0===K.important?"!important":"!"+K.important)},walkContext:"declaration"}},69013:function(ue,q,f){var B=f(97555).TYPE,U=f(89604).mode,V=B.WhiteSpace,Z=B.Comment,w=B.Semicolon;function N(b){return this.Raw(b,U.semicolonIncluded,!0)}ue.exports={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var _=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case V:case Z:case w:this.scanner.next();break;default:_.push(this.parseWithFallback(this.Declaration,N))}return{type:"DeclarationList",loc:this.getLocationFromList(_),children:_}},generate:function(_){this.children(_,function(I){"Declaration"===I.type&&this.chunk(";")})}}},68241:function(ue,q,f){var B=f(74586).consumeNumber,V=f(97555).TYPE.Dimension;ue.exports={name:"Dimension",structure:{value:String,unit:String},parse:function(){var w=this.scanner.tokenStart,N=B(this.scanner.source,w);return this.eat(V),{type:"Dimension",loc:this.getLocation(w,this.scanner.tokenStart),value:this.scanner.source.substring(w,N),unit:this.scanner.source.substring(N,this.scanner.tokenStart)}},generate:function(w){this.chunk(w.value),this.chunk(w.unit)}}},60298:function(ue,q,f){var U=f(97555).TYPE.RightParenthesis;ue.exports={name:"Function",structure:{name:String,children:[[]]},parse:function(Z,w){var I,N=this.scanner.tokenStart,b=this.consumeFunctionName(),_=b.toLowerCase();return I=w.hasOwnProperty(_)?w[_].call(this,w):Z.call(this,w),this.scanner.eof||this.eat(U),{type:"Function",loc:this.getLocation(N,this.scanner.tokenStart),name:b,children:I}},generate:function(Z){this.chunk(Z.name),this.chunk("("),this.children(Z),this.chunk(")")},walkContext:"function"}},50759:function(ue,q,f){var U=f(97555).TYPE.Hash;ue.exports={name:"Hash",structure:{value:String},parse:function(){var Z=this.scanner.tokenStart;return this.eat(U),{type:"Hash",loc:this.getLocation(Z,this.scanner.tokenStart),value:this.scanner.substrToCursor(Z+1)}},generate:function(Z){this.chunk("#"),this.chunk(Z.value)}}},37701:function(ue,q,f){var U=f(97555).TYPE.Hash;ue.exports={name:"IdSelector",structure:{name:String},parse:function(){var Z=this.scanner.tokenStart;return this.eat(U),{type:"IdSelector",loc:this.getLocation(Z,this.scanner.tokenStart),name:this.scanner.substrToCursor(Z+1)}},generate:function(Z){this.chunk("#"),this.chunk(Z.name)}}},71392:function(ue,q,f){var U=f(97555).TYPE.Ident;ue.exports={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(U)}},generate:function(Z){this.chunk(Z.name)}}},94179:function(ue,q,f){var B=f(97555).TYPE,U=B.Ident,V=B.Number,Z=B.Dimension,w=B.LeftParenthesis,N=B.RightParenthesis,b=B.Colon,_=B.Delim;ue.exports={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var A,D=this.scanner.tokenStart,S=null;if(this.eat(w),this.scanner.skipSC(),A=this.consume(U),this.scanner.skipSC(),this.scanner.tokenType!==N){switch(this.eat(b),this.scanner.skipSC(),this.scanner.tokenType){case V:S=this.lookupNonWSType(1)===_?this.Ratio():this.Number();break;case Z:S=this.Dimension();break;case U:S=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(N),{type:"MediaFeature",loc:this.getLocation(D,this.scanner.tokenStart),name:A,value:S}},generate:function(D){this.chunk("("),this.chunk(D.name),null!==D.value&&(this.chunk(":"),this.node(D.value)),this.chunk(")")}}},32107:function(ue,q,f){var B=f(97555).TYPE,U=B.WhiteSpace,V=B.Comment,Z=B.Ident,w=B.LeftParenthesis;ue.exports={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var b=this.createList(),_=null,I=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case V:this.scanner.next();continue;case U:I=this.WhiteSpace();continue;case Z:_=this.Identifier();break;case w:_=this.MediaFeature();break;default:break e}null!==I&&(b.push(I),I=null),b.push(_)}return null===_&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(b),children:b}},generate:function(b){this.children(b)}}},54459:function(ue,q,f){var B=f(97555).TYPE.Comma;ue.exports={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(V){var Z=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(Z.push(this.MediaQuery(V)),this.scanner.tokenType===B);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(Z),children:Z}},generate:function(V){this.children(V,function(){this.chunk(",")})}}},61123:function(ue){ue.exports={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(f){this.scanner.skipSC();var Z,B=this.scanner.tokenStart,U=B,V=null;return Z=this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),this.scanner.skipSC(),f&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),V=this.SelectorList(),this.needPositions&&(U=this.getLastListNode(V.children).loc.end.offset)):this.needPositions&&(U=Z.loc.end.offset),{type:"Nth",loc:this.getLocation(B,U),nth:Z,selector:V}},generate:function(f){this.node(f.nth),null!==f.selector&&(this.chunk(" of "),this.node(f.selector))}}},63902:function(ue,q,f){var B=f(97555).TYPE.Number;ue.exports={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(B)}},generate:function(V){this.chunk(V.value)}}},7249:function(ue){ue.exports={name:"Operator",structure:{value:String},parse:function(){var f=this.scanner.tokenStart;return this.scanner.next(),{type:"Operator",loc:this.getLocation(f,this.scanner.tokenStart),value:this.scanner.substrToCursor(f)}},generate:function(f){this.chunk(f.value)}}},34875:function(ue,q,f){var B=f(97555).TYPE,U=B.LeftParenthesis,V=B.RightParenthesis;ue.exports={name:"Parentheses",structure:{children:[[]]},parse:function(w,N){var _,b=this.scanner.tokenStart;return this.eat(U),_=w.call(this,N),this.scanner.eof||this.eat(V),{type:"Parentheses",loc:this.getLocation(b,this.scanner.tokenStart),children:_}},generate:function(w){this.chunk("("),this.children(w),this.chunk(")")}}},62173:function(ue,q,f){var B=f(74586).consumeNumber,V=f(97555).TYPE.Percentage;ue.exports={name:"Percentage",structure:{value:String},parse:function(){var w=this.scanner.tokenStart,N=B(this.scanner.source,w);return this.eat(V),{type:"Percentage",loc:this.getLocation(w,this.scanner.tokenStart),value:this.scanner.source.substring(w,N)}},generate:function(w){this.chunk(w.value),this.chunk("%")}}},38887:function(ue,q,f){var B=f(97555).TYPE,U=B.Ident,V=B.Function,Z=B.Colon,w=B.RightParenthesis;ue.exports={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var I,D,b=this.scanner.tokenStart,_=null;return this.eat(Z),this.scanner.tokenType===V?(D=(I=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(D)?(this.scanner.skipSC(),_=this.pseudo[D].call(this),this.scanner.skipSC()):(_=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(w)):I=this.consume(U),{type:"PseudoClassSelector",loc:this.getLocation(b,this.scanner.tokenStart),name:I,children:_}},generate:function(b){this.chunk(":"),this.chunk(b.name),null!==b.children&&(this.chunk("("),this.children(b),this.chunk(")"))},walkContext:"function"}},78076:function(ue,q,f){var B=f(97555).TYPE,U=B.Ident,V=B.Function,Z=B.Colon,w=B.RightParenthesis;ue.exports={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var I,D,b=this.scanner.tokenStart,_=null;return this.eat(Z),this.eat(Z),this.scanner.tokenType===V?(D=(I=this.consumeFunctionName()).toLowerCase(),this.pseudo.hasOwnProperty(D)?(this.scanner.skipSC(),_=this.pseudo[D].call(this),this.scanner.skipSC()):(_=this.createList()).push(this.Raw(this.scanner.tokenIndex,null,!1)),this.eat(w)):I=this.consume(U),{type:"PseudoElementSelector",loc:this.getLocation(b,this.scanner.tokenStart),name:I,children:_}},generate:function(b){this.chunk("::"),this.chunk(b.name),null!==b.children&&(this.chunk("("),this.children(b),this.chunk(")"))},walkContext:"function"}},15482:function(ue,q,f){var B=f(97555).isDigit,U=f(97555).TYPE,V=U.Number,Z=U.Delim;function b(){this.scanner.skipWS();for(var _=this.consume(V),I=0;I<_.length;I++){var D=_.charCodeAt(I);!B(D)&&46!==D&&this.error("Unsigned number is expected",this.scanner.tokenStart-_.length+I)}return 0===Number(_)&&this.error("Zero number is not allowed",this.scanner.tokenStart-_.length),_}ue.exports={name:"Ratio",structure:{left:String,right:String},parse:function(){var A,I=this.scanner.tokenStart,D=b.call(this);return this.scanner.skipWS(),this.scanner.isDelim(47)||this.error("Solidus is expected"),this.eat(Z),A=b.call(this),{type:"Ratio",loc:this.getLocation(I,this.scanner.tokenStart),left:D,right:A}},generate:function(I){this.chunk(I.left),this.chunk("/"),this.chunk(I.right)}}},89604:function(ue,q,f){var U=f(97555).TYPE,V=U.WhiteSpace,Z=U.Semicolon,w=U.LeftCurlyBracket,N=U.Delim;function _(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===V?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function I(){return 0}ue.exports={name:"Raw",structure:{value:String},parse:function(T,R,k){var x,E=this.scanner.getTokenStart(T);return this.scanner.skip(this.scanner.getRawLength(T,R||I)),x=k&&this.scanner.tokenStart>E?_.call(this):this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(E,x),value:this.scanner.source.substring(E,x)}},generate:function(T){this.chunk(T.value)},mode:{default:I,leftCurlyBracket:function(g){return g===w?1:0},leftCurlyBracketOrSemicolon:function(g){return g===w||g===Z?1:0},exclamationMarkOrSemicolon:function(g,T,R){return g===N&&33===T.charCodeAt(R)||g===Z?1:0},semicolonIncluded:function(g){return g===Z?2:0}}}},56064:function(ue,q,f){var B=f(97555).TYPE,U=f(89604).mode,V=B.LeftCurlyBracket;function Z(N){return this.Raw(N,U.leftCurlyBracket,!0)}function w(){var N=this.SelectorList();return"Raw"!==N.type&&!1===this.scanner.eof&&this.scanner.tokenType!==V&&this.error(),N}ue.exports={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var I,D,b=this.scanner.tokenIndex,_=this.scanner.tokenStart;return I=this.parseRulePrelude?this.parseWithFallback(w,Z):Z.call(this,b),D=this.Block(!0),{type:"Rule",loc:this.getLocation(_,this.scanner.tokenStart),prelude:I,block:D}},generate:function(b){this.node(b.prelude),this.node(b.block)},walkContext:"rule"}},43042:function(ue){ue.exports={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var f=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(f)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(f),children:f}},generate:function(f){this.children(f)}}},38444:function(ue,q,f){var U=f(97555).TYPE.Comma;ue.exports={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var Z=this.createList();!this.scanner.eof&&(Z.push(this.Selector()),this.scanner.tokenType===U);)this.scanner.next();return{type:"SelectorList",loc:this.getLocationFromList(Z),children:Z}},generate:function(Z){this.children(Z,function(){this.chunk(",")})},walkContext:"selector"}},12565:function(ue,q,f){var B=f(97555).TYPE.String;ue.exports={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(B)}},generate:function(V){this.chunk(V.value)}}},91348:function(ue,q,f){var B=f(97555).TYPE,U=B.WhiteSpace,V=B.Comment,Z=B.AtKeyword,w=B.CDO,N=B.CDC;function _(I){return this.Raw(I,null,!1)}ue.exports={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var S,D=this.scanner.tokenStart,A=this.createList();!this.scanner.eof;){switch(this.scanner.tokenType){case U:this.scanner.next();continue;case V:if(33!==this.scanner.source.charCodeAt(this.scanner.tokenStart+2)){this.scanner.next();continue}S=this.Comment();break;case w:S=this.CDO();break;case N:S=this.CDC();break;case Z:S=this.parseWithFallback(this.Atrule,_);break;default:S=this.parseWithFallback(this.Rule,_)}A.push(S)}return{type:"StyleSheet",loc:this.getLocation(D,this.scanner.tokenStart),children:A}},generate:function(D){this.children(D)},walkContext:"stylesheet"}},16983:function(ue,q,f){var U=f(97555).TYPE.Ident;function w(){this.scanner.tokenType!==U&&!1===this.scanner.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.scanner.next()}ue.exports={name:"TypeSelector",structure:{name:String},parse:function(){var b=this.scanner.tokenStart;return this.scanner.isDelim(124)?(this.scanner.next(),w.call(this)):(w.call(this),this.scanner.isDelim(124)&&(this.scanner.next(),w.call(this))),{type:"TypeSelector",loc:this.getLocation(b,this.scanner.tokenStart),name:this.scanner.substrToCursor(b)}},generate:function(b){this.chunk(b.name)}}},95616:function(ue,q,f){var B=f(97555).isHexDigit,U=f(97555).cmpChar,V=f(97555).TYPE,Z=f(97555).NAME,w=V.Ident,N=V.Number,b=V.Dimension;function S(R,k){for(var E=this.scanner.tokenStart+R,x=0;E<this.scanner.tokenEnd;E++){var O=this.scanner.source.charCodeAt(E);if(45===O&&k&&0!==x)return 0===S.call(this,R+x+1,!1)&&this.error(),-1;B(O)||this.error(k&&0!==x?"HyphenMinus"+(x<6?" or hex digit":"")+" is expected":x<6?"Hex digit is expected":"Unexpected input",E),++x>6&&this.error("Too many hex digits",E)}return this.scanner.next(),x}function v(R){for(var k=0;this.scanner.isDelim(63);)++k>R&&this.error("Too many question marks"),this.scanner.next()}function g(R){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==R&&this.error(Z[R]+" is expected")}function T(){var R=0;return this.scanner.isDelim(43)?(this.scanner.next(),this.scanner.tokenType===w?void((R=S.call(this,0,!0))>0&&v.call(this,6-R)):this.scanner.isDelim(63)?(this.scanner.next(),void v.call(this,5)):void this.error("Hex digit or question mark is expected")):this.scanner.tokenType===N?(g.call(this,43),R=S.call(this,1,!0),this.scanner.isDelim(63)?void v.call(this,6-R):this.scanner.tokenType===b||this.scanner.tokenType===N?(g.call(this,45),void S.call(this,1,!1)):void 0):this.scanner.tokenType===b?(g.call(this,43),void((R=S.call(this,1,!0))>0&&v.call(this,6-R))):void this.error()}ue.exports={name:"UnicodeRange",structure:{value:String},parse:function(){var k=this.scanner.tokenStart;return U(this.scanner.source,k,117)||this.error("U is expected"),U(this.scanner.source,k+1,43)||this.error("Plus sign is expected"),this.scanner.next(),T.call(this),{type:"UnicodeRange",loc:this.getLocation(k,this.scanner.tokenStart),value:this.scanner.substrToCursor(k)}},generate:function(k){this.chunk(k.value)}}},72796:function(ue,q,f){var B=f(97555).isWhiteSpace,U=f(97555).cmpStr,V=f(97555).TYPE,Z=V.Function,w=V.Url,N=V.RightParenthesis;ue.exports={name:"Url",structure:{value:["String","Raw"]},parse:function(){var I,_=this.scanner.tokenStart;switch(this.scanner.tokenType){case w:for(var D=_+4,A=this.scanner.tokenEnd-1;D<A&&B(this.scanner.source.charCodeAt(D));)D++;for(;D<A&&B(this.scanner.source.charCodeAt(A-1));)A--;I={type:"Raw",loc:this.getLocation(D,A),value:this.scanner.source.substring(D,A)},this.eat(w);break;case Z:U(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Z),this.scanner.skipSC(),I=this.String(),this.scanner.skipSC(),this.eat(N);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(_,this.scanner.tokenStart),value:I}},generate:function(_){this.chunk("url"),this.chunk("("),this.node(_.value),this.chunk(")")}}},605:function(ue){ue.exports={name:"Value",structure:{children:[[]]},parse:function(){var f=this.scanner.tokenStart,B=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(f,this.scanner.tokenStart),children:B}},generate:function(f){this.children(f)}}},48360:function(ue,q,f){var B=f(97555).TYPE.WhiteSpace,U=Object.freeze({type:"WhiteSpace",loc:null,value:" "});ue.exports={name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(B),U},generate:function(Z){this.chunk(Z.value)}}},5678:function(ue,q,f){ue.exports={AnPlusB:f(34230),Atrule:f(24867),AtrulePrelude:f(19121),AttributeSelector:f(87446),Block:f(33570),Brackets:f(8916),CDC:f(91485),CDO:f(59315),ClassSelector:f(37016),Combinator:f(55136),Comment:f(6875),Declaration:f(7217),DeclarationList:f(69013),Dimension:f(68241),Function:f(60298),Hash:f(50759),Identifier:f(71392),IdSelector:f(37701),MediaFeature:f(94179),MediaQuery:f(32107),MediaQueryList:f(54459),Nth:f(61123),Number:f(63902),Operator:f(7249),Parentheses:f(34875),Percentage:f(62173),PseudoClassSelector:f(38887),PseudoElementSelector:f(78076),Ratio:f(15482),Raw:f(89604),Rule:f(56064),Selector:f(43042),SelectorList:f(38444),String:f(12565),StyleSheet:f(91348),TypeSelector:f(16983),UnicodeRange:f(95616),Url:f(72796),Value:f(605),WhiteSpace:f(48360)}},99281:function(ue){ue.exports={parse:function(){return this.createSingleNodeList(this.Nth(!1))}}},56849:function(ue){ue.exports={parse:function(){return this.createSingleNodeList(this.Nth(!0))}}},23317:function(ue){ue.exports={parse:function(){return this.createSingleNodeList(this.SelectorList())}}},41448:function(ue){ue.exports={parse:function(){return this.createSingleNodeList(this.Identifier())}}},12742:function(ue){ue.exports={parse:function(){return this.createSingleNodeList(this.SelectorList())}}},31947:function(ue,q,f){ue.exports={dir:f(41448),has:f(12742),lang:f(90367),matches:f(74468),not:f(13251),"nth-child":f(3198),"nth-last-child":f(78171),"nth-last-of-type":f(36963),"nth-of-type":f(91002),slotted:f(81307)}},90367:function(ue){ue.exports={parse:function(){return this.createSingleNodeList(this.Identifier())}}},74468:function(ue,q,f){ue.exports=f(23317)},13251:function(ue,q,f){ue.exports=f(23317)},3198:function(ue,q,f){ue.exports=f(56849)},78171:function(ue,q,f){ue.exports=f(56849)},36963:function(ue,q,f){ue.exports=f(99281)},91002:function(ue,q,f){ue.exports=f(99281)},81307:function(ue){ue.exports={parse:function(){return this.createSingleNodeList(this.Selector())}}},87714:function(ue,q,f){ue.exports={getNode:f(5495)}},5495:function(ue,q,f){var B=f(97555).cmpChar,U=f(97555).cmpStr,V=f(97555).TYPE,Z=V.Ident,w=V.String,N=V.Number,b=V.Function,_=V.Url,I=V.Hash,D=V.Dimension,A=V.Percentage,S=V.LeftParenthesis,v=V.LeftSquareBracket,g=V.Comma,T=V.Delim;ue.exports=function(K){switch(this.scanner.tokenType){case I:return this.Hash();case g:return K.space=null,K.ignoreWSAfter=!0,this.Operator();case S:return this.Parentheses(this.readSequence,K.recognizer);case v:return this.Brackets(this.readSequence,K.recognizer);case w:return this.String();case D:return this.Dimension();case A:return this.Percentage();case N:return this.Number();case b:return U(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,K.recognizer);case _:return this.Url();case Z:return B(this.scanner.source,this.scanner.tokenStart,117)&&B(this.scanner.source,this.scanner.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case T:var j=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(47===j||42===j||43===j||45===j)return this.Operator();35===j&&this.error("Hex or identifier is expected",this.scanner.tokenStart+1)}}},73241:function(ue,q,f){ue.exports={AtrulePrelude:f(87714),Selector:f(59604),Value:f(84761)}},59604:function(ue,q,f){var B=f(97555).TYPE,U=B.Delim,V=B.Ident,Z=B.Dimension,w=B.Percentage,N=B.Number,b=B.Hash,_=B.Colon,I=B.LeftSquareBracket;ue.exports={getNode:function(x){switch(this.scanner.tokenType){case I:return this.AttributeSelector();case b:return this.IdSelector();case _:return this.scanner.lookupType(1)===_?this.PseudoElementSelector():this.PseudoClassSelector();case V:return this.TypeSelector();case N:case w:return this.Percentage();case Z:46===this.scanner.source.charCodeAt(this.scanner.tokenStart)&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case U:switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 43:case 62:case 126:return x.space=null,x.ignoreWSAfter=!0,this.Combinator();case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector()}}}}},84761:function(ue,q,f){ue.exports={getNode:f(5495),expression:f(36728),var:f(82418)}},88312:function(ue){function f(E){return E>=48&&E<=57}function U(E){return E>=65&&E<=90}function V(E){return E>=97&&E<=122}function Z(E){return U(E)||V(E)}function w(E){return E>=128}function N(E){return Z(E)||w(E)||95===E}function _(E){return E>=0&&E<=8||11===E||E>=14&&E<=31||127===E}function I(E){return 10===E||13===E||12===E}function D(E){return I(E)||32===E||9===E}function A(E,x){return!(92!==E||I(x)||0===x)}var T=new Array(128);k.Eof=128,k.WhiteSpace=130,k.Digit=131,k.NameStart=132,k.NonPrintable=133;for(var R=0;R<T.length;R++)switch(!0){case D(R):T[R]=k.WhiteSpace;break;case f(R):T[R]=k.Digit;break;case N(R):T[R]=k.NameStart;break;case _(R):T[R]=k.NonPrintable;break;default:T[R]=R||k.Eof}function k(E){return E<128?T[E]:k.NameStart}ue.exports={isDigit:f,isHexDigit:function(E){return f(E)||E>=65&&E<=70||E>=97&&E<=102},isUppercaseLetter:U,isLowercaseLetter:V,isLetter:Z,isNonAscii:w,isNameStart:N,isName:function(E){return N(E)||f(E)||45===E},isNonPrintable:_,isNewline:I,isWhiteSpace:D,isValidEscape:A,isIdentifierStart:function(E,x,O){return 45===E?N(x)||45===x||A(x,O):!!N(E)||92===E&&A(E,x)},isNumberStart:function(E,x,O){return 43===E||45===E?f(x)?2:46===x&&f(O)?3:0:46===E?f(x)?2:0:f(E)?1:0},isBOM:function(E){return 65279===E||65534===E?1:0},charCodeCategory:k}},97077:function(ue){var q={EOF:0,Ident:1,Function:2,AtKeyword:3,Hash:4,String:5,BadString:6,Url:7,BadUrl:8,Delim:9,Number:10,Percentage:11,Dimension:12,WhiteSpace:13,CDO:14,CDC:15,Colon:16,Semicolon:17,Comma:18,LeftSquareBracket:19,RightSquareBracket:20,LeftParenthesis:21,RightParenthesis:22,LeftCurlyBracket:23,RightCurlyBracket:24,Comment:25},f=Object.keys(q).reduce(function(B,U){return B[q[U]]=U,B},{});ue.exports={TYPE:q,NAME:f}},97555:function(ue,q,f){var B=f(13146),U=f(62146),V=f(97077),Z=V.TYPE,w=f(88312),N=w.isNewline,b=w.isName,_=w.isValidEscape,I=w.isNumberStart,D=w.isIdentifierStart,A=w.charCodeCategory,S=w.isBOM,v=f(74586),g=v.cmpStr,T=v.getNewlineLength,R=v.findWhiteSpaceEnd,k=v.consumeEscaped,E=v.consumeName,x=v.consumeNumber,O=v.consumeBadUrlRemnants,F=16777215,z=24;function K(j,J){function ee(je){return je<le?j.charCodeAt(je):0}function $(){return qe=x(j,qe),D(ee(qe),ee(qe+1),ee(qe+2))?(De=Z.Dimension,void(qe=E(j,qe))):37===ee(qe)?(De=Z.Percentage,void qe++):void(De=Z.Number)}function ae(){var je=qe;return qe=E(j,qe),g(j,je,qe,"url")&&40===ee(qe)?34===ee(qe=R(j,qe+1))||39===ee(qe)?(De=Z.Function,void(qe=je+4)):void function(){for(De=Z.Url,qe=R(j,qe);qe<j.length;qe++){var je=j.charCodeAt(qe);switch(A(je)){case 41:return void qe++;case A.Eof:return;case A.WhiteSpace:return 41===ee(qe=R(j,qe))||qe>=j.length?void(qe<j.length&&qe++):(qe=O(j,qe),void(De=Z.BadUrl));case 34:case 39:case 40:case A.NonPrintable:return qe=O(j,qe),void(De=Z.BadUrl);case 92:if(_(je,ee(qe+1))){qe=k(j,qe)-1;break}return qe=O(j,qe),void(De=Z.BadUrl)}}}():40===ee(qe)?(De=Z.Function,void qe++):void(De=Z.Ident)}function se(je){for(je||(je=ee(qe++)),De=Z.String;qe<j.length;qe++){var dt=j.charCodeAt(qe);switch(A(dt)){case je:return void qe++;case A.Eof:return;case A.WhiteSpace:if(N(dt))return qe+=T(j,qe,dt),void(De=Z.BadString);break;case 92:if(qe===j.length-1)break;var Ke=ee(qe+1);N(Ke)?qe+=T(j,qe+1,Ke):_(dt,Ke)&&(qe=k(j,qe)-1)}}}J||(J=new B);for(var le=(j=String(j||"")).length,oe=U(J.offsetAndType,le+1),Ae=U(J.balance,le+1),be=0,it=S(ee(0)),qe=it,_t=0,yt=0,Ft=0;qe<le;){var xe=j.charCodeAt(qe),De=0;switch(Ae[be]=le,A(xe)){case A.WhiteSpace:De=Z.WhiteSpace,qe=R(j,qe+1);break;case 34:se();break;case 35:b(ee(qe+1))||_(ee(qe+1),ee(qe+2))?(De=Z.Hash,qe=E(j,qe+1)):(De=Z.Delim,qe++);break;case 39:se();break;case 40:De=Z.LeftParenthesis,qe++;break;case 41:De=Z.RightParenthesis,qe++;break;case 43:I(xe,ee(qe+1),ee(qe+2))?$():(De=Z.Delim,qe++);break;case 44:De=Z.Comma,qe++;break;case 45:I(xe,ee(qe+1),ee(qe+2))?$():45===ee(qe+1)&&62===ee(qe+2)?(De=Z.CDC,qe+=3):D(xe,ee(qe+1),ee(qe+2))?ae():(De=Z.Delim,qe++);break;case 46:I(xe,ee(qe+1),ee(qe+2))?$():(De=Z.Delim,qe++);break;case 47:42===ee(qe+1)?(De=Z.Comment,1===(qe=j.indexOf("*/",qe+2)+2)&&(qe=j.length)):(De=Z.Delim,qe++);break;case 58:De=Z.Colon,qe++;break;case 59:De=Z.Semicolon,qe++;break;case 60:33===ee(qe+1)&&45===ee(qe+2)&&45===ee(qe+3)?(De=Z.CDO,qe+=4):(De=Z.Delim,qe++);break;case 64:D(ee(qe+1),ee(qe+2),ee(qe+3))?(De=Z.AtKeyword,qe=E(j,qe+1)):(De=Z.Delim,qe++);break;case 91:De=Z.LeftSquareBracket,qe++;break;case 92:_(xe,ee(qe+1))?ae():(De=Z.Delim,qe++);break;case 93:De=Z.RightSquareBracket,qe++;break;case 123:De=Z.LeftCurlyBracket,qe++;break;case 125:De=Z.RightCurlyBracket,qe++;break;case A.Digit:$();break;case A.NameStart:ae();break;case A.Eof:break;default:De=Z.Delim,qe++}switch(De){case _t:for(_t=(yt=Ae[Ft=yt&F])>>z,Ae[be]=Ft,Ae[Ft++]=be;Ft<be;Ft++)Ae[Ft]===le&&(Ae[Ft]=be);break;case Z.LeftParenthesis:case Z.Function:Ae[be]=yt,yt=(_t=Z.RightParenthesis)<<z|be;break;case Z.LeftSquareBracket:Ae[be]=yt,yt=(_t=Z.RightSquareBracket)<<z|be;break;case Z.LeftCurlyBracket:Ae[be]=yt,yt=(_t=Z.RightCurlyBracket)<<z|be}oe[be++]=De<<z|qe}for(oe[be]=Z.EOF<<z|qe,Ae[be]=le,Ae[le]=le;0!==yt;)yt=Ae[Ft=yt&F],Ae[Ft]=le;return J.source=j,J.firstCharOffset=it,J.offsetAndType=oe,J.tokenCount=be,J.balance=Ae,J.reset(),J.next(),J}Object.keys(V).forEach(function(j){K[j]=V[j]}),Object.keys(w).forEach(function(j){K[j]=w[j]}),Object.keys(v).forEach(function(j){K[j]=v[j]}),ue.exports=K},74586:function(ue,q,f){var B=f(88312),U=B.isDigit,V=B.isHexDigit,Z=B.isUppercaseLetter,w=B.isName,N=B.isWhiteSpace,b=B.isValidEscape;function _(x,O){return O<x.length?x.charCodeAt(O):0}function I(x,O,F){return 13===F&&10===_(x,O+1)?2:1}function D(x,O,F){var z=x.charCodeAt(O);return Z(z)&&(z|=32),z===F}function g(x,O){for(;O<x.length&&U(x.charCodeAt(O));O++);return O}function T(x,O){if(V(_(x,(O+=2)-1))){for(var F=Math.min(x.length,O+5);O<F&&V(_(x,O));O++);var z=_(x,O);N(z)&&(O+=I(x,O,z))}return O}ue.exports={consumeEscaped:T,consumeName:function(x,O){for(;O<x.length;O++){var F=x.charCodeAt(O);if(!w(F)){if(b(F,_(x,O+1))){O=T(x,O)-1;continue}break}}return O},consumeNumber:function(x,O){var F=x.charCodeAt(O);if((43===F||45===F)&&(F=x.charCodeAt(O+=1)),U(F)&&(O=g(x,O+1),F=x.charCodeAt(O)),46===F&&U(x.charCodeAt(O+1))&&(F=x.charCodeAt(O+=2),O=g(x,O)),D(x,O,101)){var z=0;(45===(F=x.charCodeAt(O+1))||43===F)&&(z=1,F=x.charCodeAt(O+2)),U(F)&&(O=g(x,O+1+z+1))}return O},consumeBadUrlRemnants:function(x,O){for(;O<x.length;O++){var F=x.charCodeAt(O);if(41===F){O++;break}b(F,_(x,O+1))&&(O=T(x,O))}return O},cmpChar:D,cmpStr:function(x,O,F,z){if(F-O!==z.length||O<0||F>x.length)return!1;for(var K=O;K<F;K++){var j=x.charCodeAt(K),J=z.charCodeAt(K-O);if(Z(j)&&(j|=32),j!==J)return!1}return!0},getNewlineLength:I,findWhiteSpaceStart:function(x,O){for(;O>=0&&N(x.charCodeAt(O));O--);return O+1},findWhiteSpaceEnd:function(x,O){for(;O<x.length&&N(x.charCodeAt(O));O++);return O}}},30714:function(ue,q,f){var B=f(63335);ue.exports=function U(V){var Z={};for(var w in V){var N=V[w];N&&(Array.isArray(N)||N instanceof B?N=N.map(U):N.constructor===Object&&(N=U(N))),Z[w]=N}return Z}},92455:function(ue){ue.exports=function(f,B){var U=Object.create(SyntaxError.prototype),V=new Error;return U.name=f,U.message=B,Object.defineProperty(U,"stack",{get:function(){return(V.stack||"").replace(/^(.+\n){1,3}/,f+": "+B+"\n")}}),U}},50643:function(ue){var q=Object.prototype.hasOwnProperty,f=Object.create(null),B=Object.create(null);function V(b,_){return b.length-(_=_||0)>=2&&45===b.charCodeAt(_)&&45===b.charCodeAt(_+1)}function Z(b,_){if(b.length-(_=_||0)>=3&&45===b.charCodeAt(_)&&45!==b.charCodeAt(_+1)){var I=b.indexOf("-",_+2);if(-1!==I)return b.substring(_,I+1)}return""}ue.exports={keyword:function(b){if(q.call(f,b))return f[b];var _=b.toLowerCase();if(q.call(f,_))return f[b]=f[_];var I=V(_,0),D=I?"":Z(_,0);return f[b]=Object.freeze({basename:_.substr(D.length),name:_,vendor:D,prefix:D,custom:I})},property:function(b){if(q.call(B,b))return B[b];var _=b,I=b[0];"/"===I?I="/"===b[1]?"//":"/":"_"!==I&&"*"!==I&&"$"!==I&&"#"!==I&&"+"!==I&&"&"!==I&&(I="");var D=V(_,I.length);if(!D&&(_=_.toLowerCase(),q.call(B,_)))return B[b]=B[_];var A=D?"":Z(_,I.length),S=_.substr(0,I.length+A.length);return B[b]=Object.freeze({basename:_.substr(S.length),name:_.substr(I.length),hack:I,vendor:A,prefix:S,custom:D})},isCustomProperty:V,vendorPrefix:Z}},24523:function(ue){var q=Object.prototype.hasOwnProperty,f=function(){};function B(b){return"function"==typeof b?b:f}function U(b,_){return function(I,D,A){I.type===_&&b.call(this,I,D,A)}}function V(b,_){var I=_.structure,D=[];for(var A in I)if(!1!==q.call(I,A)){var S=I[A],v={name:A,type:!1,nullable:!1};Array.isArray(I[A])||(S=[I[A]]);for(var g=0;g<S.length;g++){var T=S[g];null===T?v.nullable=!0:"string"==typeof T?v.type="node":Array.isArray(T)&&(v.type="list")}v.type&&D.push(v)}return D.length?{context:_.walkContext,fields:D}:null}function w(b,_){var I=b.fields.slice(),D=b.context,A="string"==typeof D;return _&&I.reverse(),function(S,v,g,T){var R;A&&(R=v[D],v[D]=S);for(var k=0;k<I.length;k++){var E=I[k],x=S[E.name];if(!E.nullable||x)if("list"===E.type){if(_?x.reduceRight(T,!1):x.reduce(T,!1))return!0}else if(g(x))return!0}A&&(v[D]=R)}}function N(b){return{Atrule:{StyleSheet:b.StyleSheet,Atrule:b.Atrule,Rule:b.Rule,Block:b.Block},Rule:{StyleSheet:b.StyleSheet,Atrule:b.Atrule,Rule:b.Rule,Block:b.Block},Declaration:{StyleSheet:b.StyleSheet,Atrule:b.Atrule,Rule:b.Rule,Block:b.Block,DeclarationList:b.DeclarationList}}}ue.exports=function(_){var I=function(b){var _={};for(var I in b.node)if(q.call(b.node,I)){var D=b.node[I];if(!D.structure)throw new Error("Missed `structure` field in `"+I+"` node type definition");_[I]=V(0,D)}return _}(_),D={},A={},S=Symbol("break-walk"),v=Symbol("skip-node");for(var g in I)q.call(I,g)&&null!==I[g]&&(D[g]=w(I[g],!1),A[g]=w(I[g],!0));var T=N(D),R=N(A),k=function(x,O){function F($,ae,se){var ce=K.call(ee,$,ae,se);return ce===S||ce!==v&&!!(J.hasOwnProperty($.type)&&J[$.type]($,ee,F,z)||j.call(ee,$,ae,se)===S)}var z=function(ae,se,ce,le){return ae||F(se,ce,le)},K=f,j=f,J=D,ee={break:S,skip:v,root:x,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof O)K=O;else if(O&&(K=B(O.enter),j=B(O.leave),O.reverse&&(J=A),O.visit)){if(T.hasOwnProperty(O.visit))J=O.reverse?R[O.visit]:T[O.visit];else if(!I.hasOwnProperty(O.visit))throw new Error("Bad value `"+O.visit+"` for `visit` option (should be: "+Object.keys(I).join(", ")+")");K=U(K,O.visit),j=U(j,O.visit)}if(K===f&&j===f)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");F(x)};return k.break=S,k.skip=v,k.find=function(E,x){var O=null;return k(E,function(F,z,K){if(x.call(this,F,z,K))return O=F,S}),O},k.findLast=function(E,x){var O=null;return k(E,{reverse:!0,enter:function(z,K,j){if(x.call(this,z,K,j))return O=z,S}}),O},k.findAll=function(E,x){var O=[];return k(E,function(F,z,K){x.call(this,F,z,K)&&O.push(F)}),O},k}},9047:function(ue){!function(q){"use strict";var f="(0?\\d+|0x[a-f0-9]+)",B={fourOctet:new RegExp("^".concat(f,"\\.").concat(f,"\\.").concat(f,"\\.").concat(f,"$"),"i"),threeOctet:new RegExp("^".concat(f,"\\.").concat(f,"\\.").concat(f,"$"),"i"),twoOctet:new RegExp("^".concat(f,"\\.").concat(f,"$"),"i"),longValue:new RegExp("^".concat(f,"$"),"i")},U=new RegExp("^0[0-7]+$","i"),V=new RegExp("^0x[a-f0-9]+$","i"),Z="%[0-9a-z]{1,}",w="(?:[0-9a-f]+::?)+",N={zoneIndex:new RegExp(Z,"i"),native:new RegExp("^(::)?(".concat(w,")?([0-9a-f]+)?(::)?(").concat(Z,")?$"),"i"),deprecatedTransitional:new RegExp("^(?:::)(".concat(f,"\\.").concat(f,"\\.").concat(f,"\\.").concat(f,"(").concat(Z,")?)$"),"i"),transitional:new RegExp("^((?:".concat(w,")|(?:::)(?:").concat(w,")?)").concat(f,"\\.").concat(f,"\\.").concat(f,"\\.").concat(f,"(").concat(Z,")?$"),"i")};function b(S,v){if(S.indexOf("::")!==S.lastIndexOf("::"))return null;var k,E,g=0,T=-1,R=(S.match(N.zoneIndex)||[])[0];for(R&&(R=R.substring(1),S=S.replace(/%.+$/,""));(T=S.indexOf(":",T+1))>=0;)g++;if("::"===S.substr(0,2)&&g--,"::"===S.substr(-2,2)&&g--,g>v)return null;for(E=v-g,k=":";E--;)k+="0:";return":"===(S=S.replace("::",k))[0]&&(S=S.slice(1)),":"===S[S.length-1]&&(S=S.slice(0,-1)),{parts:v=function(){for(var x=S.split(":"),O=[],F=0;F<x.length;F++)O.push(parseInt(x[F],16));return O}(),zoneId:R}}function _(S,v,g,T){if(S.length!==v.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(var k,R=0;T>0;){if((k=g-T)<0&&(k=0),S[R]>>k!=v[R]>>k)return!1;T-=g,R+=1}return!0}function I(S){if(V.test(S))return parseInt(S,16);if("0"===S[0]&&!isNaN(parseInt(S[1],10))){if(U.test(S))return parseInt(S,8);throw new Error("ipaddr: cannot parse ".concat(S," as octal"))}return parseInt(S,10)}function D(S,v){for(;S.length<v;)S="0".concat(S);return S}var A={};A.IPv4=function(){function S(v){if(4!==v.length)throw new Error("ipaddr: ipv4 octet count should be 4");var g,T;for(g=0;g<v.length;g++)if(!(0<=(T=v[g])&&T<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=v}return S.prototype.SpecialRanges={unspecified:[[new S([0,0,0,0]),8]],broadcast:[[new S([255,255,255,255]),32]],multicast:[[new S([224,0,0,0]),4]],linkLocal:[[new S([169,254,0,0]),16]],loopback:[[new S([127,0,0,0]),8]],carrierGradeNat:[[new S([100,64,0,0]),10]],private:[[new S([10,0,0,0]),8],[new S([172,16,0,0]),12],[new S([192,168,0,0]),16]],reserved:[[new S([192,0,0,0]),24],[new S([192,0,2,0]),24],[new S([192,88,99,0]),24],[new S([198,18,0,0]),15],[new S([198,51,100,0]),24],[new S([203,0,113,0]),24],[new S([240,0,0,0]),4]]},S.prototype.kind=function(){return"ipv4"},S.prototype.match=function(v,g){var T;if(void 0===g&&(v=(T=v)[0],g=T[1]),"ipv4"!==v.kind())throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return _(this.octets,v.octets,8,g)},S.prototype.prefixLengthFromSubnetMask=function(){var R,k,E,v=0,g=!1,T={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};for(R=3;R>=0;R-=1){if(!((k=this.octets[R])in T))return null;if(E=T[k],g&&0!==E)return null;8!==E&&(g=!0),v+=E}return 32-v},S.prototype.range=function(){return A.subnetMatch(this,this.SpecialRanges)},S.prototype.toByteArray=function(){return this.octets.slice(0)},S.prototype.toIPv4MappedAddress=function(){return A.IPv6.parse("::ffff:".concat(this.toString()))},S.prototype.toNormalizedString=function(){return this.toString()},S.prototype.toString=function(){return this.octets.join(".")},S}(),A.IPv4.broadcastAddressFromCIDR=function(S){try{for(var v=this.parseCIDR(S),g=v[0].toByteArray(),T=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),R=[],k=0;k<4;)R.push(parseInt(g[k],10)|255^parseInt(T[k],10)),k++;return new this(R)}catch(E){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},A.IPv4.isIPv4=function(S){return null!==this.parser(S)},A.IPv4.isValid=function(S){try{return new this(this.parser(S)),!0}catch(v){return!1}},A.IPv4.isValidFourPartDecimal=function(S){return!(!A.IPv4.isValid(S)||!S.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},A.IPv4.networkAddressFromCIDR=function(S){var v,g,T,R,k;try{for(T=(v=this.parseCIDR(S))[0].toByteArray(),k=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),R=[],g=0;g<4;)R.push(parseInt(T[g],10)&parseInt(k[g],10)),g++;return new this(R)}catch(E){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},A.IPv4.parse=function(S){var v=this.parser(S);if(null===v)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(v)},A.IPv4.parseCIDR=function(S){var v;if(v=S.match(/^(.+)\/(\d+)$/)){var g=parseInt(v[2]);if(g>=0&&g<=32){var T=[this.parse(v[1]),g];return Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},A.IPv4.parser=function(S){var v,T;if(v=S.match(B.fourOctet))return function(){for(var R=v.slice(1,6),k=[],E=0;E<R.length;E++)k.push(I(R[E]));return k}();if(v=S.match(B.longValue)){if((T=I(v[1]))>4294967295||T<0)throw new Error("ipaddr: address outside defined range");return function(){var k,R=[];for(k=0;k<=24;k+=8)R.push(T>>k&255);return R}().reverse()}return(v=S.match(B.twoOctet))?function(){var R=v.slice(1,4),k=[];if((T=I(R[1]))>16777215||T<0)throw new Error("ipaddr: address outside defined range");return k.push(I(R[0])),k.push(T>>16&255),k.push(T>>8&255),k.push(255&T),k}():(v=S.match(B.threeOctet))?function(){var R=v.slice(1,5),k=[];if((T=I(R[2]))>65535||T<0)throw new Error("ipaddr: address outside defined range");return k.push(I(R[0])),k.push(I(R[1])),k.push(T>>8&255),k.push(255&T),k}():null},A.IPv4.subnetMaskFromPrefixLength=function(S){if((S=parseInt(S))<0||S>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(var v=[0,0,0,0],g=0,T=Math.floor(S/8);g<T;)v[g]=255,g++;return T<4&&(v[T]=Math.pow(2,S%8)-1<<8-S%8),new this(v)},A.IPv6=function(){function S(v,g){var T,R;if(16===v.length)for(this.parts=[],T=0;T<=14;T+=2)this.parts.push(v[T]<<8|v[T+1]);else{if(8!==v.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=v}for(T=0;T<this.parts.length;T++)if(!(0<=(R=this.parts[T])&&R<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");g&&(this.zoneId=g)}return S.prototype.SpecialRanges={unspecified:[new S([0,0,0,0,0,0,0,0]),128],linkLocal:[new S([65152,0,0,0,0,0,0,0]),10],multicast:[new S([65280,0,0,0,0,0,0,0]),8],loopback:[new S([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new S([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new S([0,0,0,0,0,65535,0,0]),96],rfc6145:[new S([0,0,0,0,65535,0,0,0]),96],rfc6052:[new S([100,65435,0,0,0,0,0,0]),96],"6to4":[new S([8194,0,0,0,0,0,0,0]),16],teredo:[new S([8193,0,0,0,0,0,0,0]),32],reserved:[[new S([8193,3512,0,0,0,0,0,0]),32]],benchmarking:[new S([8193,2,0,0,0,0,0,0]),48],amt:[new S([8193,3,0,0,0,0,0,0]),32],as112v6:[new S([8193,4,274,0,0,0,0,0]),48],deprecated:[new S([8193,16,0,0,0,0,0,0]),28],orchid2:[new S([8193,32,0,0,0,0,0,0]),28]},S.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},S.prototype.kind=function(){return"ipv6"},S.prototype.match=function(v,g){var T;if(void 0===g&&(v=(T=v)[0],g=T[1]),"ipv6"!==v.kind())throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return _(this.parts,v.parts,16,g)},S.prototype.prefixLengthFromSubnetMask=function(){for(var R,k,v=0,g=!1,T={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},E=7;E>=0;E-=1){if(!((R=this.parts[E])in T))return null;if(k=T[R],g&&0!==k)return null;16!==k&&(g=!0),v+=k}return 128-v},S.prototype.range=function(){return A.subnetMatch(this,this.SpecialRanges)},S.prototype.toByteArray=function(){for(var v,g=[],T=this.parts,R=0;R<T.length;R++)g.push((v=T[R])>>8),g.push(255&v);return g},S.prototype.toFixedLengthString=function(){var v=function(){for(var T=[],R=0;R<this.parts.length;R++)T.push(D(this.parts[R].toString(16),4));return T}.call(this).join(":"),g="";return this.zoneId&&(g="%".concat(this.zoneId)),v+g},S.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");var v=this.parts.slice(-2),g=v[0],T=v[1];return new A.IPv4([g>>8,255&g,T>>8,255&T])},S.prototype.toNormalizedString=function(){var v=function(){for(var T=[],R=0;R<this.parts.length;R++)T.push(this.parts[R].toString(16));return T}.call(this).join(":"),g="";return this.zoneId&&(g="%".concat(this.zoneId)),v+g},S.prototype.toRFC5952String=function(){for(var k,v=/((^|:)(0(:|$)){2,})/g,g=this.toNormalizedString(),T=0,R=-1;k=v.exec(g);)k[0].length>R&&(T=k.index,R=k[0].length);return R<0?g:"".concat(g.substring(0,T),"::").concat(g.substring(T+R))},S.prototype.toString=function(){return this.toRFC5952String()},S}(),A.IPv6.broadcastAddressFromCIDR=function(S){try{for(var v=this.parseCIDR(S),g=v[0].toByteArray(),T=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),R=[],k=0;k<16;)R.push(parseInt(g[k],10)|255^parseInt(T[k],10)),k++;return new this(R)}catch(E){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(E,")"))}},A.IPv6.isIPv6=function(S){return null!==this.parser(S)},A.IPv6.isValid=function(S){if("string"==typeof S&&-1===S.indexOf(":"))return!1;try{var v=this.parser(S);return new this(v.parts,v.zoneId),!0}catch(g){return!1}},A.IPv6.networkAddressFromCIDR=function(S){var v,g,T,R,k;try{for(T=(v=this.parseCIDR(S))[0].toByteArray(),k=this.subnetMaskFromPrefixLength(v[1]).toByteArray(),R=[],g=0;g<16;)R.push(parseInt(T[g],10)&parseInt(k[g],10)),g++;return new this(R)}catch(E){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(E,")"))}},A.IPv6.parse=function(S){var v=this.parser(S);if(null===v.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(v.parts,v.zoneId)},A.IPv6.parseCIDR=function(S){var v,g,T;if((g=S.match(/^(.+)\/(\d+)$/))&&(v=parseInt(g[2]))>=0&&v<=128)return T=[this.parse(g[1]),v],Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},A.IPv6.parser=function(S){var v,g,T,R,k,E;if(T=S.match(N.deprecatedTransitional))return this.parser("::ffff:".concat(T[1]));if(N.native.test(S))return b(S,8);if((T=S.match(N.transitional))&&(E=T[6]||"",(v=b(T[1].slice(0,-1)+E,6)).parts)){for(k=[parseInt(T[2]),parseInt(T[3]),parseInt(T[4]),parseInt(T[5])],g=0;g<k.length;g++)if(!(0<=(R=k[g])&&R<=255))return null;return v.parts.push(k[0]<<8|k[1]),v.parts.push(k[2]<<8|k[3]),{parts:v.parts,zoneId:v.zoneId}}return null},A.IPv6.subnetMaskFromPrefixLength=function(S){if((S=parseInt(S))<0||S>128)throw new Error("ipaddr: invalid IPv6 prefix length");for(var v=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],g=0,T=Math.floor(S/8);g<T;)v[g]=255,g++;return T<16&&(v[T]=Math.pow(2,S%8)-1<<8-S%8),new this(v)},A.fromByteArray=function(S){var v=S.length;if(4===v)return new A.IPv4(S);if(16===v)return new A.IPv6(S);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},A.isValid=function(S){return A.IPv6.isValid(S)||A.IPv4.isValid(S)},A.parse=function(S){if(A.IPv6.isValid(S))return A.IPv6.parse(S);if(A.IPv4.isValid(S))return A.IPv4.parse(S);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},A.parseCIDR=function(S){try{return A.IPv6.parseCIDR(S)}catch(v){try{return A.IPv4.parseCIDR(S)}catch(g){throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},A.process=function(S){var v=this.parse(S);return"ipv6"===v.kind()&&v.isIPv4MappedAddress()?v.toIPv4Address():v},A.subnetMatch=function(S,v,g){var T,R,k,E;for(R in null==g&&(g="unicast"),v)if(Object.prototype.hasOwnProperty.call(v,R))for((k=v[R])[0]&&!(k[0]instanceof Array)&&(k=[k]),T=0;T<k.length;T++)if(E=k[T],S.kind()===E[0].kind()&&S.match.apply(S,E))return R;return g},ue.exports?ue.exports=A:q.ipaddr=A}(this)},33931:function(ue,q,f){var B;!function(U,V,Z){if(U){for(var I,w={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},N={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},b={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},_={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},D=1;D<20;++D)w[111+D]="f"+D;for(D=0;D<=9;++D)w[D+96]=D.toString();K.prototype.bind=function(j,J,ee){var $=this;return $._bindMultiple.call($,j=j instanceof Array?j:[j],J,ee),$},K.prototype.unbind=function(j,J){return this.bind.call(this,j,function(){},J)},K.prototype.trigger=function(j,J){return this._directMap[j+":"+J]&&this._directMap[j+":"+J]({},j),this},K.prototype.reset=function(){var j=this;return j._callbacks={},j._directMap={},j},K.prototype.stopCallback=function(j,J){if((" "+J.className+" ").indexOf(" mousetrap ")>-1||z(J,this.target))return!1;if("composedPath"in j&&"function"==typeof j.composedPath){var $=j.composedPath()[0];$!==j.target&&(J=$)}return"INPUT"==J.tagName||"SELECT"==J.tagName||"TEXTAREA"==J.tagName||J.isContentEditable},K.prototype.handleKey=function(){var j=this;return j._handleKey.apply(j,arguments)},K.addKeycodes=function(j){for(var J in j)j.hasOwnProperty(J)&&(w[J]=j[J]);I=null},K.init=function(){var j=K(V);for(var J in j)"_"!==J.charAt(0)&&(K[J]=function(ee){return function(){return j[ee].apply(j,arguments)}}(J))},K.init(),U.Mousetrap=K,ue.exports&&(ue.exports=K),void 0!==(B=function(){return K}.call(q,f,q,ue))&&(ue.exports=B)}function A(j,J,ee){j.addEventListener?j.addEventListener(J,ee,!1):j.attachEvent("on"+J,ee)}function S(j){if("keypress"==j.type){var J=String.fromCharCode(j.which);return j.shiftKey||(J=J.toLowerCase()),J}return w[j.which]?w[j.which]:N[j.which]?N[j.which]:String.fromCharCode(j.which).toLowerCase()}function v(j,J){return j.sort().join(",")===J.sort().join(",")}function k(j){return"shift"==j||"ctrl"==j||"alt"==j||"meta"==j}function x(j,J,ee){return ee||(ee=function(){if(!I)for(var j in I={},w)j>95&&j<112||w.hasOwnProperty(j)&&(I[w[j]]=j);return I}()[j]?"keydown":"keypress"),"keypress"==ee&&J.length&&(ee="keydown"),ee}function F(j,J){var ee,$,ae,se=[];for(ee=function(j){return"+"===j?["+"]:(j=j.replace(/\+{2}/g,"+plus")).split("+")}(j),ae=0;ae<ee.length;++ae)_[$=ee[ae]]&&($=_[$]),J&&"keypress"!=J&&b[$]&&($=b[$],se.push("shift")),k($)&&se.push($);return{key:$,modifiers:se,action:J=x($,se,J)}}function z(j,J){return null!==j&&j!==V&&(j===J||z(j.parentNode,J))}function K(j){var J=this;if(j=j||V,!(J instanceof K))return new K(j);J.target=j,J._callbacks={},J._directMap={};var $,ee={},ae=!1,se=!1,ce=!1;function le(yt){yt=yt||{};var xe,Ft=!1;for(xe in ee)yt[xe]?Ft=!0:ee[xe]=0;Ft||(ce=!1)}function oe(yt,Ft,xe,De,je,dt){var Ke,Bt,xt=[],vt=xe.type;if(!J._callbacks[yt])return[];for("keyup"==vt&&k(yt)&&(Ft=[yt]),Ke=0;Ke<J._callbacks[yt].length;++Ke)Bt=J._callbacks[yt][Ke],!De&&Bt.seq&&ee[Bt.seq]!=Bt.level||vt!=Bt.action||("keypress"!=vt||xe.metaKey||xe.ctrlKey)&&!v(Ft,Bt.modifiers)||((!De&&Bt.combo==je||De&&Bt.seq==De&&Bt.level==dt)&&J._callbacks[yt].splice(Ke,1),xt.push(Bt));return xt}function Ae(yt,Ft,xe,De){J.stopCallback(Ft,Ft.target||Ft.srcElement,xe,De)||!1===yt(Ft,xe)&&(function(j){j.preventDefault?j.preventDefault():j.returnValue=!1}(Ft),function(j){j.stopPropagation?j.stopPropagation():j.cancelBubble=!0}(Ft))}function be(yt){"number"!=typeof yt.which&&(yt.which=yt.keyCode);var Ft=S(yt);if(Ft){if("keyup"==yt.type&&ae===Ft)return void(ae=!1);J.handleKey(Ft,function(j){var J=[];return j.shiftKey&&J.push("shift"),j.altKey&&J.push("alt"),j.ctrlKey&&J.push("ctrl"),j.metaKey&&J.push("meta"),J}(yt),yt)}}function _t(yt,Ft,xe,De,je){J._directMap[yt+":"+xe]=Ft;var Ke,dt=(yt=yt.replace(/\s+/g," ")).split(" ");dt.length>1?function(yt,Ft,xe,De){function je(vt){return function(){ce=vt,++ee[yt],clearTimeout($),$=setTimeout(le,1e3)}}function dt(vt){Ae(xe,vt,yt),"keyup"!==De&&(ae=S(vt)),setTimeout(le,10)}ee[yt]=0;for(var Ke=0;Ke<Ft.length;++Ke){var xt=Ke+1===Ft.length?dt:je(De||F(Ft[Ke+1]).action);_t(Ft[Ke],xt,De,yt,Ke)}}(yt,dt,Ft,xe):(Ke=F(yt,xe),J._callbacks[Ke.key]=J._callbacks[Ke.key]||[],oe(Ke.key,Ke.modifiers,{type:Ke.action},De,yt,je),J._callbacks[Ke.key][De?"unshift":"push"]({callback:Ft,modifiers:Ke.modifiers,action:Ke.action,seq:De,level:je,combo:yt}))}J._handleKey=function(yt,Ft,xe){var je,De=oe(yt,Ft,xe),dt={},Ke=0,Bt=!1;for(je=0;je<De.length;++je)De[je].seq&&(Ke=Math.max(Ke,De[je].level));for(je=0;je<De.length;++je)if(De[je].seq){if(De[je].level!=Ke)continue;Bt=!0,dt[De[je].seq]=1,Ae(De[je].callback,xe,De[je].combo,De[je].seq)}else Bt||Ae(De[je].callback,xe,De[je].combo);var xt="keypress"==xe.type&&se;xe.type==ce&&!k(yt)&&!xt&&le(dt),se=Bt&&"keydown"==xe.type},J._bindMultiple=function(yt,Ft,xe){for(var De=0;De<yt.length;++De)_t(yt[De],Ft,xe)},A(j,"keypress",be),A(j,"keydown",be),A(j,"keyup",be)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},55590:function(ue){var q=function(f){"use strict";var V,B=Object.prototype,U=B.hasOwnProperty,Z="function"==typeof Symbol?Symbol:{},w=Z.iterator||"@@iterator",N=Z.asyncIterator||"@@asyncIterator",b=Z.toStringTag||"@@toStringTag";function _(oe,Ae,be){return Object.defineProperty(oe,Ae,{value:be,enumerable:!0,configurable:!0,writable:!0}),oe[Ae]}try{_({},"")}catch(oe){_=function(be,it,qe){return be[it]=qe}}function I(oe,Ae,be,it){var _t=Object.create((Ae&&Ae.prototype instanceof R?Ae:R).prototype),yt=new se(it||[]);return _t._invoke=function(oe,Ae,be){var it=A;return function(_t,yt){if(it===v)throw new Error("Generator is already running");if(it===g){if("throw"===_t)throw yt;return le()}for(be.method=_t,be.arg=yt;;){var Ft=be.delegate;if(Ft){var xe=ee(Ft,be);if(xe){if(xe===T)continue;return xe}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if(it===A)throw it=g,be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);it=v;var De=D(oe,Ae,be);if("normal"===De.type){if(it=be.done?g:S,De.arg===T)continue;return{value:De.arg,done:be.done}}"throw"===De.type&&(it=g,be.method="throw",be.arg=De.arg)}}}(oe,be,yt),_t}function D(oe,Ae,be){try{return{type:"normal",arg:oe.call(Ae,be)}}catch(it){return{type:"throw",arg:it}}}f.wrap=I;var A="suspendedStart",S="suspendedYield",v="executing",g="completed",T={};function R(){}function k(){}function E(){}var x={};_(x,w,function(){return this});var O=Object.getPrototypeOf,F=O&&O(O(ce([])));F&&F!==B&&U.call(F,w)&&(x=F);var z=E.prototype=R.prototype=Object.create(x);function K(oe){["next","throw","return"].forEach(function(Ae){_(oe,Ae,function(be){return this._invoke(Ae,be)})})}function j(oe,Ae){function be(_t,yt,Ft,xe){var De=D(oe[_t],oe,yt);if("throw"!==De.type){var je=De.arg,dt=je.value;return dt&&"object"==typeof dt&&U.call(dt,"__await")?Ae.resolve(dt.__await).then(function(Ke){be("next",Ke,Ft,xe)},function(Ke){be("throw",Ke,Ft,xe)}):Ae.resolve(dt).then(function(Ke){je.value=Ke,Ft(je)},function(Ke){return be("throw",Ke,Ft,xe)})}xe(De.arg)}var it;this._invoke=function(_t,yt){function Ft(){return new Ae(function(xe,De){be(_t,yt,xe,De)})}return it=it?it.then(Ft,Ft):Ft()}}function ee(oe,Ae){var be=oe.iterator[Ae.method];if(be===V){if(Ae.delegate=null,"throw"===Ae.method){if(oe.iterator.return&&(Ae.method="return",Ae.arg=V,ee(oe,Ae),"throw"===Ae.method))return T;Ae.method="throw",Ae.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var it=D(be,oe.iterator,Ae.arg);if("throw"===it.type)return Ae.method="throw",Ae.arg=it.arg,Ae.delegate=null,T;var qe=it.arg;return qe?qe.done?(Ae[oe.resultName]=qe.value,Ae.next=oe.nextLoc,"return"!==Ae.method&&(Ae.method="next",Ae.arg=V),Ae.delegate=null,T):qe:(Ae.method="throw",Ae.arg=new TypeError("iterator result is not an object"),Ae.delegate=null,T)}function $(oe){var Ae={tryLoc:oe[0]};1 in oe&&(Ae.catchLoc=oe[1]),2 in oe&&(Ae.finallyLoc=oe[2],Ae.afterLoc=oe[3]),this.tryEntries.push(Ae)}function ae(oe){var Ae=oe.completion||{};Ae.type="normal",delete Ae.arg,oe.completion=Ae}function se(oe){this.tryEntries=[{tryLoc:"root"}],oe.forEach($,this),this.reset(!0)}function ce(oe){if(oe){var Ae=oe[w];if(Ae)return Ae.call(oe);if("function"==typeof oe.next)return oe;if(!isNaN(oe.length)){var be=-1,it=function qe(){for(;++be<oe.length;)if(U.call(oe,be))return qe.value=oe[be],qe.done=!1,qe;return qe.value=V,qe.done=!0,qe};return it.next=it}}return{next:le}}function le(){return{value:V,done:!0}}return k.prototype=E,_(z,"constructor",E),_(E,"constructor",k),k.displayName=_(E,b,"GeneratorFunction"),f.isGeneratorFunction=function(oe){var Ae="function"==typeof oe&&oe.constructor;return!!Ae&&(Ae===k||"GeneratorFunction"===(Ae.displayName||Ae.name))},f.mark=function(oe){return Object.setPrototypeOf?Object.setPrototypeOf(oe,E):(oe.__proto__=E,_(oe,b,"GeneratorFunction")),oe.prototype=Object.create(z),oe},f.awrap=function(oe){return{__await:oe}},K(j.prototype),_(j.prototype,N,function(){return this}),f.AsyncIterator=j,f.async=function(oe,Ae,be,it,qe){void 0===qe&&(qe=Promise);var _t=new j(I(oe,Ae,be,it),qe);return f.isGeneratorFunction(Ae)?_t:_t.next().then(function(yt){return yt.done?yt.value:_t.next()})},K(z),_(z,b,"Generator"),_(z,w,function(){return this}),_(z,"toString",function(){return"[object Generator]"}),f.keys=function(oe){var Ae=[];for(var be in oe)Ae.push(be);return Ae.reverse(),function it(){for(;Ae.length;){var qe=Ae.pop();if(qe in oe)return it.value=qe,it.done=!1,it}return it.done=!0,it}},f.values=ce,se.prototype={constructor:se,reset:function(Ae){if(this.prev=0,this.next=0,this.sent=this._sent=V,this.done=!1,this.delegate=null,this.method="next",this.arg=V,this.tryEntries.forEach(ae),!Ae)for(var be in this)"t"===be.charAt(0)&&U.call(this,be)&&!isNaN(+be.slice(1))&&(this[be]=V)},stop:function(){this.done=!0;var be=this.tryEntries[0].completion;if("throw"===be.type)throw be.arg;return this.rval},dispatchException:function(Ae){if(this.done)throw Ae;var be=this;function it(De,je){return yt.type="throw",yt.arg=Ae,be.next=De,je&&(be.method="next",be.arg=V),!!je}for(var qe=this.tryEntries.length-1;qe>=0;--qe){var _t=this.tryEntries[qe],yt=_t.completion;if("root"===_t.tryLoc)return it("end");if(_t.tryLoc<=this.prev){var Ft=U.call(_t,"catchLoc"),xe=U.call(_t,"finallyLoc");if(Ft&&xe){if(this.prev<_t.catchLoc)return it(_t.catchLoc,!0);if(this.prev<_t.finallyLoc)return it(_t.finallyLoc)}else if(Ft){if(this.prev<_t.catchLoc)return it(_t.catchLoc,!0)}else{if(!xe)throw new Error("try statement without catch or finally");if(this.prev<_t.finallyLoc)return it(_t.finallyLoc)}}}},abrupt:function(Ae,be){for(var it=this.tryEntries.length-1;it>=0;--it){var qe=this.tryEntries[it];if(qe.tryLoc<=this.prev&&U.call(qe,"finallyLoc")&&this.prev<qe.finallyLoc){var _t=qe;break}}_t&&("break"===Ae||"continue"===Ae)&&_t.tryLoc<=be&&be<=_t.finallyLoc&&(_t=null);var yt=_t?_t.completion:{};return yt.type=Ae,yt.arg=be,_t?(this.method="next",this.next=_t.finallyLoc,T):this.complete(yt)},complete:function(Ae,be){if("throw"===Ae.type)throw Ae.arg;return"break"===Ae.type||"continue"===Ae.type?this.next=Ae.arg:"return"===Ae.type?(this.rval=this.arg=Ae.arg,this.method="return",this.next="end"):"normal"===Ae.type&&be&&(this.next=be),T},finish:function(Ae){for(var be=this.tryEntries.length-1;be>=0;--be){var it=this.tryEntries[be];if(it.finallyLoc===Ae)return this.complete(it.completion,it.afterLoc),ae(it),T}},catch:function(Ae){for(var be=this.tryEntries.length-1;be>=0;--be){var it=this.tryEntries[be];if(it.tryLoc===Ae){var qe=it.completion;if("throw"===qe.type){var _t=qe.arg;ae(it)}return _t}}throw new Error("illegal catch attempt")},delegateYield:function(Ae,be,it){return this.delegate={iterator:ce(Ae),resultName:be,nextLoc:it},"next"===this.method&&(this.arg=V),T}},f}(ue.exports);try{regeneratorRuntime=q}catch(f){"object"==typeof globalThis?globalThis.regeneratorRuntime=q:Function("r","regeneratorRuntime = r")(q)}},56938:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);q.Observable=B.Observable,q.Subject=B.Subject;var U=f(37294);q.AnonymousSubject=U.AnonymousSubject;var V=f(37294);q.config=V.config,f(26598),f(87663),f(95351),f(66981),f(31881),f(36800),f(52413),f(86376),f(41029),f(30918),f(79817),f(29023),f(48668),f(61975),f(92442),f(42697),f(63990),f(86230),f(61201),f(32171),f(40439),f(69079),f(9222),f(52357),f(36294),f(12782),f(94618),f(93231),f(96547),f(62374),f(35595),f(57540),f(97010),f(56518),f(59982),f(70198),f(3943),f(95297),f(53842),f(46085),f(46753),f(12452),f(51341),f(41575),f(42657),f(17109),f(89716),f(71255),f(75197),f(70992),f(3106),f(54506),f(16161),f(11405),f(37132),f(45396),f(41154),f(96986),f(67259),f(89015),f(57301),f(4993),f(77490),f(4533),f(42215),f(95564),f(61431),f(68663),f(63566),f(62729),f(48483),f(32979),f(78104),f(64259),f(30336),f(46315),f(60771),f(92700),f(43545),f(89242),f(70177),f(43800),f(33434),f(37179),f(97810),f(27430),f(44633),f(37953),f(58435),f(14234),f(98741),f(43263),f(57180),f(87700),f(34860),f(67751),f(63733),f(38596),f(20038),f(58186),f(77538),f(33866),f(1676),f(3018),f(58003),f(77394),f(92947),f(27971),f(33934),f(43126),f(6320),f(96813),f(20425),f(70140),f(32035),f(49421),f(9693),f(87276),f(63934),f(17360),f(37222),f(55214),f(22854),f(65259),f(84715),f(27798),f(98441),f(56238),f(42145);var Z=f(94117);q.Subscription=Z.Subscription,q.ReplaySubject=Z.ReplaySubject,q.BehaviorSubject=Z.BehaviorSubject,q.Notification=Z.Notification,q.EmptyError=Z.EmptyError,q.ArgumentOutOfRangeError=Z.ArgumentOutOfRangeError,q.ObjectUnsubscribedError=Z.ObjectUnsubscribedError,q.UnsubscriptionError=Z.UnsubscriptionError,q.pipe=Z.pipe;var w=f(53520);q.TestScheduler=w.TestScheduler;var N=f(94117);q.Subscriber=N.Subscriber,q.AsyncSubject=N.AsyncSubject,q.ConnectableObservable=N.ConnectableObservable,q.TimeoutError=N.TimeoutError,q.VirtualTimeScheduler=N.VirtualTimeScheduler;var b=f(55905);q.AjaxResponse=b.AjaxResponse,q.AjaxError=b.AjaxError,q.AjaxTimeoutError=b.AjaxTimeoutError;var _=f(94117),I=f(37294),D=f(37294);q.TimeInterval=D.TimeInterval,q.Timestamp=D.Timestamp;var A=f(73033);q.operators=A,q.Scheduler={asap:_.asapScheduler,queue:_.queueScheduler,animationFrame:_.animationFrameScheduler,async:_.asyncScheduler},q.Symbol={rxSubscriber:I.rxSubscriber,observable:I.observable,iterator:I.iterator}},26598:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.bindCallback=B.bindCallback},87663:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.bindNodeCallback=B.bindNodeCallback},95351:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.combineLatest=B.combineLatest},66981:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.concat=B.concat},31881:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.defer=B.defer},12782:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(55905);B.Observable.ajax=U.ajax},94618:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(4194);B.Observable.webSocket=U.webSocket},36800:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.empty=B.empty},52413:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.forkJoin=B.forkJoin},86376:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.from=B.from},41029:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.fromEvent=B.fromEvent},30918:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.fromEventPattern=B.fromEventPattern},79817:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.fromPromise=B.from},29023:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.generate=B.generate},48668:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.if=B.iif},61975:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.interval=B.interval},92442:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.merge=B.merge},63990:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);function U(){return B.NEVER}q.staticNever=U,B.Observable.never=U},86230:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.of=B.of},61201:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.onErrorResumeNext=B.onErrorResumeNext},32171:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.pairs=B.pairs},42697:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.race=B.race},40439:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.range=B.range},9222:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.throw=B.throwError,B.Observable.throwError=B.throwError},52357:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.timer=B.timer},69079:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.using=B.using},36294:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);B.Observable.zip=B.zip},77490:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(20325);B.Observable.prototype.audit=U.audit},4533:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(55702);B.Observable.prototype.auditTime=U.auditTime},93231:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(19931);B.Observable.prototype.buffer=U.buffer},96547:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(38173);B.Observable.prototype.bufferCount=U.bufferCount},62374:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(93690);B.Observable.prototype.bufferTime=U.bufferTime},35595:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(79681);B.Observable.prototype.bufferToggle=U.bufferToggle},57540:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(75311);B.Observable.prototype.bufferWhen=U.bufferWhen},97010:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(26306);B.Observable.prototype.catch=U._catch,B.Observable.prototype._catch=U._catch},56518:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(15869);B.Observable.prototype.combineAll=U.combineAll},59982:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(23265);B.Observable.prototype.combineLatest=U.combineLatest},70198:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(31179);B.Observable.prototype.concat=U.concat},3943:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(16148);B.Observable.prototype.concatAll=U.concatAll},95297:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(28552);B.Observable.prototype.concatMap=U.concatMap},53842:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(91798);B.Observable.prototype.concatMapTo=U.concatMapTo},46085:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(93653);B.Observable.prototype.count=U.count},12452:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(36477);B.Observable.prototype.debounce=U.debounce},51341:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(61529);B.Observable.prototype.debounceTime=U.debounceTime},41575:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(64502);B.Observable.prototype.defaultIfEmpty=U.defaultIfEmpty},42657:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(33674);B.Observable.prototype.delay=U.delay},17109:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(49477);B.Observable.prototype.delayWhen=U.delayWhen},46753:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(21941);B.Observable.prototype.dematerialize=U.dematerialize},89716:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(18053);B.Observable.prototype.distinct=U.distinct},71255:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(13598);B.Observable.prototype.distinctUntilChanged=U.distinctUntilChanged},75197:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(94936);B.Observable.prototype.distinctUntilKeyChanged=U.distinctUntilKeyChanged},70992:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(21790);B.Observable.prototype.do=U._do,B.Observable.prototype._do=U._do},11405:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(2538);B.Observable.prototype.elementAt=U.elementAt},61431:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(58136);B.Observable.prototype.every=U.every},3106:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(26734);B.Observable.prototype.exhaust=U.exhaust},54506:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(2084);B.Observable.prototype.exhaustMap=U.exhaustMap},16161:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(2945);B.Observable.prototype.expand=U.expand},37132:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(3704);B.Observable.prototype.filter=U.filter},45396:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(58870);B.Observable.prototype.finally=U._finally,B.Observable.prototype._finally=U._finally},41154:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(16201);B.Observable.prototype.find=U.find},96986:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(95148);B.Observable.prototype.findIndex=U.findIndex},67259:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(96050);B.Observable.prototype.first=U.first},89015:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(16309);B.Observable.prototype.groupBy=U.groupBy},57301:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(3640);B.Observable.prototype.ignoreElements=U.ignoreElements},4993:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(87486);B.Observable.prototype.isEmpty=U.isEmpty},42215:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(30274);B.Observable.prototype.last=U.last},95564:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(11668);B.Observable.prototype.let=U.letProto,B.Observable.prototype.letBind=U.letProto},68663:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(23307);B.Observable.prototype.map=U.map},63566:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(3498);B.Observable.prototype.mapTo=U.mapTo},62729:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(70845);B.Observable.prototype.materialize=U.materialize},48483:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(96415);B.Observable.prototype.max=U.max},32979:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(33836);B.Observable.prototype.merge=U.merge},78104:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(58610);B.Observable.prototype.mergeAll=U.mergeAll},64259:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(36098);B.Observable.prototype.mergeMap=U.mergeMap,B.Observable.prototype.flatMap=U.mergeMap},30336:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(53033);B.Observable.prototype.flatMapTo=U.mergeMapTo,B.Observable.prototype.mergeMapTo=U.mergeMapTo},46315:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(11444);B.Observable.prototype.mergeScan=U.mergeScan},60771:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(6626);B.Observable.prototype.min=U.min},92700:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(4291);B.Observable.prototype.multicast=U.multicast},43545:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(37675);B.Observable.prototype.observeOn=U.observeOn},89242:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(92878);B.Observable.prototype.onErrorResumeNext=U.onErrorResumeNext},70177:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(94401);B.Observable.prototype.pairwise=U.pairwise},43800:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(93110);B.Observable.prototype.partition=U.partition},33434:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(53937);B.Observable.prototype.pluck=U.pluck},37179:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(81e3);B.Observable.prototype.publish=U.publish},97810:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(78665);B.Observable.prototype.publishBehavior=U.publishBehavior},44633:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(34696);B.Observable.prototype.publishLast=U.publishLast},27430:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(35543);B.Observable.prototype.publishReplay=U.publishReplay},37953:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(33963);B.Observable.prototype.race=U.race},58435:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(99216);B.Observable.prototype.reduce=U.reduce},14234:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(19613);B.Observable.prototype.repeat=U.repeat},98741:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(72798);B.Observable.prototype.repeatWhen=U.repeatWhen},43263:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(59813);B.Observable.prototype.retry=U.retry},57180:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(5419);B.Observable.prototype.retryWhen=U.retryWhen},87700:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(58693);B.Observable.prototype.sample=U.sample},34860:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(86803);B.Observable.prototype.sampleTime=U.sampleTime},67751:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(65036);B.Observable.prototype.scan=U.scan},63733:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(12201);B.Observable.prototype.sequenceEqual=U.sequenceEqual},38596:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(86892);B.Observable.prototype.share=U.share},20038:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(9050);B.Observable.prototype.shareReplay=U.shareReplay},58186:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(13533);B.Observable.prototype.single=U.single},77538:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(65846);B.Observable.prototype.skip=U.skip},33866:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(90955);B.Observable.prototype.skipLast=U.skipLast},1676:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(75479);B.Observable.prototype.skipUntil=U.skipUntil},3018:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(76841);B.Observable.prototype.skipWhile=U.skipWhile},58003:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(66560);B.Observable.prototype.startWith=U.startWith},77394:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(92265);B.Observable.prototype.subscribeOn=U.subscribeOn},92947:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(41428);B.Observable.prototype.switch=U._switch,B.Observable.prototype._switch=U._switch},27971:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(5193);B.Observable.prototype.switchMap=U.switchMap},33934:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(34022);B.Observable.prototype.switchMapTo=U.switchMapTo},43126:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(204);B.Observable.prototype.take=U.take},6320:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(62299);B.Observable.prototype.takeLast=U.takeLast},96813:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(93542);B.Observable.prototype.takeUntil=U.takeUntil},20425:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(79214);B.Observable.prototype.takeWhile=U.takeWhile},70140:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(35922);B.Observable.prototype.throttle=U.throttle},32035:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(41941);B.Observable.prototype.throttleTime=U.throttleTime},49421:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(99194);B.Observable.prototype.timeInterval=U.timeInterval},9693:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(53358);B.Observable.prototype.timeout=U.timeout},87276:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(41237);B.Observable.prototype.timeoutWith=U.timeoutWith},63934:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(84485);B.Observable.prototype.timestamp=U.timestamp},17360:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(23552);B.Observable.prototype.toArray=U.toArray},37222:function(){},55214:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(13977);B.Observable.prototype.window=U.window},22854:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(54052);B.Observable.prototype.windowCount=U.windowCount},65259:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(17884);B.Observable.prototype.windowTime=U.windowTime},84715:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(18835);B.Observable.prototype.windowToggle=U.windowToggle},27798:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(84220);B.Observable.prototype.windowWhen=U.windowWhen},98441:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(41603);B.Observable.prototype.withLatestFrom=U.withLatestFrom},56238:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(83313);B.Observable.prototype.zip=U.zipProto},42145:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(80396);B.Observable.prototype.zipAll=U.zipAll},20325:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.audit=function(V){return B.audit(V)(this)}},55702:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(73033);q.auditTime=function(Z,w){return void 0===w&&(w=B.asyncScheduler),U.auditTime(Z,w)(this)}},19931:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.buffer=function(V){return B.buffer(V)(this)}},38173:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.bufferCount=function(V,Z){return void 0===Z&&(Z=null),B.bufferCount(V,Z)(this)}},93690:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(37294),V=f(73033);q.bufferTime=function(w){var N=arguments.length,b=B.asyncScheduler;U.isScheduler(arguments[arguments.length-1])&&(b=arguments[arguments.length-1],N--);var _=null;N>=2&&(_=arguments[1]);var I=Number.POSITIVE_INFINITY;return N>=3&&(I=arguments[2]),V.bufferTime(w,_,I,b)(this)}},79681:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.bufferToggle=function(V,Z){return B.bufferToggle(V,Z)(this)}},75311:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.bufferWhen=function(V){return B.bufferWhen(V)(this)}},26306:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q._catch=function(V){return B.catchError(V)(this)}},15869:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.combineAll=function(V){return B.combineAll(V)(this)}},23265:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(37294);q.combineLatest=function(){for(var Z=[],w=0;w<arguments.length;w++)Z[w]=arguments[w];var N=null;return"function"==typeof Z[Z.length-1]&&(N=Z.pop()),1===Z.length&&U.isArray(Z[0])&&(Z=Z[0].slice()),this.lift.call(B.of.apply(void 0,[this].concat(Z)),new U.CombineLatestOperator(N))}},31179:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);q.concat=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return this.lift.call(B.concat.apply(void 0,[this].concat(V)))}},16148:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.concatAll=function(){return B.concatAll()(this)}},28552:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.concatMap=function(V){return B.concatMap(V)(this)}},91798:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.concatMapTo=function(V){return B.concatMapTo(V)(this)}},93653:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.count=function(V){return B.count(V)(this)}},36477:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.debounce=function(V){return B.debounce(V)(this)}},61529:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(73033);q.debounceTime=function(Z,w){return void 0===w&&(w=B.asyncScheduler),U.debounceTime(Z,w)(this)}},64502:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.defaultIfEmpty=function(V){return void 0===V&&(V=null),B.defaultIfEmpty(V)(this)}},33674:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(73033);q.delay=function(Z,w){return void 0===w&&(w=B.asyncScheduler),U.delay(Z,w)(this)}},49477:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.delayWhen=function(V,Z){return B.delayWhen(V,Z)(this)}},21941:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.dematerialize=function(){return B.dematerialize()(this)}},18053:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.distinct=function(V,Z){return B.distinct(V,Z)(this)}},13598:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.distinctUntilChanged=function(V,Z){return B.distinctUntilChanged(V,Z)(this)}},94936:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.distinctUntilKeyChanged=function(V,Z){return B.distinctUntilKeyChanged(V,Z)(this)}},21790:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q._do=function(V,Z,w){return B.tap(V,Z,w)(this)}},2538:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.elementAt=function(V,Z){return B.elementAt.apply(void 0,arguments)(this)}},58136:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.every=function(V,Z){return B.every(V,Z)(this)}},26734:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.exhaust=function(){return B.exhaust()(this)}},2084:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.exhaustMap=function(V){return B.exhaustMap(V)(this)}},2945:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.expand=function(V,Z,w){return void 0===Z&&(Z=Number.POSITIVE_INFINITY),void 0===w&&(w=void 0),B.expand(V,Z=(Z||0)<1?Number.POSITIVE_INFINITY:Z,w)(this)}},3704:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.filter=function(V,Z){return B.filter(V,Z)(this)}},58870:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q._finally=function(V){return B.finalize(V)(this)}},16201:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.find=function(V,Z){return B.find(V,Z)(this)}},95148:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.findIndex=function(V,Z){return B.findIndex(V,Z)(this)}},96050:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.first=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return B.first.apply(void 0,V)(this)}},16309:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.groupBy=function(V,Z,w,N){return B.groupBy(V,Z,w,N)(this)}},3640:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.ignoreElements=function(){return B.ignoreElements()(this)}},87486:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.isEmpty=function(){return B.isEmpty()(this)}},30274:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.last=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return B.last.apply(void 0,V)(this)}},11668:function(ue,q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.letProto=function(B){return B(this)}},23307:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.map=function(V,Z){return B.map(V,Z)(this)}},3498:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.mapTo=function(V){return B.mapTo(V)(this)}},70845:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.materialize=function(){return B.materialize()(this)}},96415:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.max=function(V){return B.max(V)(this)}},33836:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);q.merge=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return this.lift.call(B.merge.apply(void 0,[this].concat(V)))}},58610:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.mergeAll=function(V){return void 0===V&&(V=Number.POSITIVE_INFINITY),B.mergeAll(V)(this)}},36098:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.mergeMap=function(V,Z){return void 0===Z&&(Z=Number.POSITIVE_INFINITY),B.mergeMap(V,Z)(this)}},53033:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.mergeMapTo=function(V,Z){return void 0===Z&&(Z=Number.POSITIVE_INFINITY),B.mergeMapTo(V,Z)(this)}},11444:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.mergeScan=function(V,Z,w){return void 0===w&&(w=Number.POSITIVE_INFINITY),B.mergeScan(V,Z,w)(this)}},6626:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.min=function(V){return B.min(V)(this)}},4291:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.multicast=function(V,Z){return B.multicast(V,Z)(this)}},37675:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.observeOn=function(V,Z){return void 0===Z&&(Z=0),B.observeOn(V,Z)(this)}},92878:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.onErrorResumeNext=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return B.onErrorResumeNext.apply(void 0,V)(this)}},94401:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.pairwise=function(){return B.pairwise()(this)}},93110:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.partition=function(V,Z){return B.partition(V,Z)(this)}},53937:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.pluck=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return B.pluck.apply(void 0,V)(this)}},81e3:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.publish=function(V){return B.publish(V)(this)}},78665:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.publishBehavior=function(V){return B.publishBehavior(V)(this)}},34696:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.publishLast=function(){return B.publishLast()(this)}},35543:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.publishReplay=function(V,Z,w,N){return B.publishReplay(V,Z,w,N)(this)}},33963:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.race=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return B.race.apply(void 0,V)(this)}},99216:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.reduce=function(V,Z){return arguments.length>=2?B.reduce(V,Z)(this):B.reduce(V)(this)}},19613:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.repeat=function(V){return void 0===V&&(V=-1),B.repeat(V)(this)}},72798:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.repeatWhen=function(V){return B.repeatWhen(V)(this)}},59813:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.retry=function(V){return void 0===V&&(V=-1),B.retry(V)(this)}},5419:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.retryWhen=function(V){return B.retryWhen(V)(this)}},58693:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.sample=function(V){return B.sample(V)(this)}},86803:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(73033);q.sampleTime=function(Z,w){return void 0===w&&(w=B.asyncScheduler),U.sampleTime(Z,w)(this)}},65036:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.scan=function(V,Z){return arguments.length>=2?B.scan(V,Z)(this):B.scan(V)(this)}},12201:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.sequenceEqual=function(V,Z){return B.sequenceEqual(V,Z)(this)}},86892:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.share=function(){return B.share()(this)}},9050:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.shareReplay=function(V,Z,w){return V&&"object"==typeof V?B.shareReplay(V)(this):B.shareReplay(V,Z,w)(this)}},13533:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.single=function(V){return B.single(V)(this)}},65846:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.skip=function(V){return B.skip(V)(this)}},90955:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.skipLast=function(V){return B.skipLast(V)(this)}},75479:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.skipUntil=function(V){return B.skipUntil(V)(this)}},76841:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.skipWhile=function(V){return B.skipWhile(V)(this)}},66560:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.startWith=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return B.startWith.apply(void 0,V)(this)}},92265:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.subscribeOn=function(V,Z){return void 0===Z&&(Z=0),B.subscribeOn(V,Z)(this)}},41428:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q._switch=function(){return B.switchAll()(this)}},5193:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.switchMap=function(V){return B.switchMap(V)(this)}},34022:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.switchMapTo=function(V){return B.switchMapTo(V)(this)}},204:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.take=function(V){return B.take(V)(this)}},62299:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.takeLast=function(V){return B.takeLast(V)(this)}},93542:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.takeUntil=function(V){return B.takeUntil(V)(this)}},79214:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.takeWhile=function(V){return B.takeWhile(V)(this)}},35922:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033),U=f(37294);q.throttle=function(Z,w){return void 0===w&&(w=U.defaultThrottleConfig),B.throttle(Z,w)(this)}},41941:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(37294),V=f(73033);q.throttleTime=function(w,N,b){return void 0===N&&(N=B.asyncScheduler),void 0===b&&(b=U.defaultThrottleConfig),V.throttleTime(w,N,b)(this)}},99194:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(73033);q.timeInterval=function(Z){return void 0===Z&&(Z=B.asyncScheduler),U.timeInterval(Z)(this)}},53358:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(73033);q.timeout=function(Z,w){return void 0===w&&(w=B.asyncScheduler),U.timeout(Z,w)(this)}},41237:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(73033);q.timeoutWith=function(Z,w,N){return void 0===N&&(N=B.asyncScheduler),U.timeoutWith(Z,w,N)(this)}},84485:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(73033);q.timestamp=function(Z){return void 0===Z&&(Z=B.asyncScheduler),U.timestamp(Z)(this)}},23552:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.toArray=function(){return B.toArray()(this)}},13977:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.window=function(V){return B.window(V)(this)}},54052:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.windowCount=function(V,Z){return void 0===Z&&(Z=0),B.windowCount(V,Z)(this)}},17884:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117),U=f(37294),V=f(73033);q.windowTime=function(w){var N=B.asyncScheduler,b=null,_=Number.POSITIVE_INFINITY;return U.isScheduler(arguments[3])&&(N=arguments[3]),U.isScheduler(arguments[2])?N=arguments[2]:U.isNumeric(arguments[2])&&(_=Number(arguments[2])),U.isScheduler(arguments[1])?N=arguments[1]:U.isNumeric(arguments[1])&&(b=Number(arguments[1])),V.windowTime(w,b,_,N)(this)}},18835:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.windowToggle=function(V,Z){return B.windowToggle(V,Z)(this)}},84220:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.windowWhen=function(V){return B.windowWhen(V)(this)}},41603:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.withLatestFrom=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return B.withLatestFrom.apply(void 0,V)(this)}},83313:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(94117);q.zipProto=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return this.lift.call(B.zip.apply(void 0,[this].concat(V)))}},80396:function(ue,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var B=f(73033);q.zipAll=function(V){return B.zipAll(V)(this)}},53628:function(ue,q,f){},55905:function(ue,q,f){"use strict";f.r(q),f.d(q,{ajax:function(){return B.h},AjaxResponse:function(){return U.vD},AjaxError:function(){return U.iM},AjaxTimeoutError:function(){return U.cw}});var B=f(30437),U=f(51361)},94117:function(ue,q,f){"use strict";f.r(q),f.d(q,{ArgumentOutOfRangeError:function(){return z.W},AsyncSubject:function(){return _.c},BehaviorSubject:function(){return N.X},ConnectableObservable:function(){return U.c},EMPTY:function(){return dt.E},EmptyError:function(){return K.K},GroupedObservable:function(){return V.T},NEVER:function(){return Nt},Notification:function(){return k.P},NotificationKind:function(){return k.W},ObjectUnsubscribedError:function(){return j.N},Observable:function(){return B.y},ReplaySubject:function(){return b.t},Scheduler:function(){return g.b},Subject:function(){return w.xQ},Subscriber:function(){return R.L},Subscription:function(){return T.w},TimeoutError:function(){return ee.W},UnsubscriptionError:function(){return J.B},VirtualAction:function(){return v.h},VirtualTimeScheduler:function(){return v.y},animationFrame:function(){return S.r},animationFrameScheduler:function(){return S.Z},asap:function(){return I.e},asapScheduler:function(){return I.E},async:function(){return D.P},asyncScheduler:function(){return D.z},bindCallback:function(){return oe},bindNodeCallback:function(){return qe},combineLatest:function(){return xe.aj},concat:function(){return De.z},config:function(){return Yt.v},defer:function(){return je.P},empty:function(){return dt.c},forkJoin:function(){return Ke.D},from:function(){return Bt.D},fromEvent:function(){return xt.R},fromEventPattern:function(){return Qt},generate:function(){return Ht},identity:function(){return O.y},iif:function(){return qt},interval:function(){return bt.F},isObservable:function(){return F.b},merge:function(){return en.T},never:function(){return rn},noop:function(){return x.Z},observable:function(){return Z.L},of:function(){return kn.of},onErrorResumeNext:function(){return Ln},pairs:function(){return Rn},partition:function(){return ut},pipe:function(){return E.z},queue:function(){return A.c},queueScheduler:function(){return A.N},race:function(){return He.S3},range:function(){return ve.w},scheduled:function(){return ft.x},throwError:function(){return ye._},timer:function(){return Te.H},using:function(){return we},zip:function(){return ct.$R}});var B=f(89797),U=f(39887),V=f(86072),Z=f(57694),w=f(68707),N=f(90838),b=f(82667),_=f(3435),I=f(8285),D=f(46813),A=f(60641),S=f(58172),v=f(2296),g=f(67801),T=f(5051),R=f(39874),k=f(80286),E=f(96194),x=f(66029),O=f(57070),F=f(17504),z=f(9855),K=f(64646),j=f(1696),J=f(66351),ee=f(98691),$=f(62467),ae=f(85639),se=f(20006),ce=f(78985),le=f(91299);function oe(Kt,Jt,nn){if(Jt){if(!(0,le.K)(Jt))return function(){return oe(Kt,nn).apply(void 0,arguments).pipe((0,ae.U)(function(ln){return(0,ce.k)(ln)?Jt.apply(void 0,(0,$.Z)(ln)):Jt(ln)}))};nn=Jt}return function(){for(var ln=arguments.length,yn=new Array(ln),Tn=0;Tn<ln;Tn++)yn[Tn]=arguments[Tn];var Yn,In=this,Cn={context:In,subject:Yn,callbackFunc:Kt,scheduler:nn};return new B.y(function(Sn){if(nn)return nn.schedule(Ae,0,{args:yn,subscriber:Sn,params:Cn});if(!Yn){Yn=new _.c;try{Kt.apply(In,[].concat(yn,[function(){for(var Rt=arguments.length,Lt=new Array(Rt),Oe=0;Oe<Rt;Oe++)Lt[Oe]=arguments[Oe];Yn.next(Lt.length<=1?Lt[0]:Lt),Yn.complete()}]))}catch(Ut){(0,se._)(Yn)?Yn.error(Ut):console.warn(Ut)}}return Yn.subscribe(Sn)})}}function Ae(Kt){var Jt=this,ln=Kt.args,yn=Kt.subscriber,Tn=Kt.params,In=Tn.callbackFunc,Yn=Tn.context,Cn=Tn.scheduler,Sn=Tn.subject;if(!Sn){Sn=Tn.subject=new _.c;try{In.apply(Yn,[].concat((0,$.Z)(ln),[function(){for(var Ut=arguments.length,Rt=new Array(Ut),Lt=0;Lt<Ut;Lt++)Rt[Lt]=arguments[Lt];Jt.add(Cn.schedule(be,0,{value:Rt.length<=1?Rt[0]:Rt,subject:Sn}))}]))}catch(ur){Sn.error(ur)}}this.add(Sn.subscribe(yn))}function be(Kt){var nn=Kt.subject;nn.next(Kt.value),nn.complete()}function qe(Kt,Jt,nn){if(Jt){if(!(0,le.K)(Jt))return function(){return qe(Kt,nn).apply(void 0,arguments).pipe((0,ae.U)(function(ln){return(0,ce.k)(ln)?Jt.apply(void 0,(0,$.Z)(ln)):Jt(ln)}))};nn=Jt}return function(){for(var ln=arguments.length,yn=new Array(ln),Tn=0;Tn<ln;Tn++)yn[Tn]=arguments[Tn];var In={subject:void 0,args:yn,callbackFunc:Kt,scheduler:nn,context:this};return new B.y(function(Yn){var Cn=In.context,Sn=In.subject;if(nn)return nn.schedule(_t,0,{params:In,subscriber:Yn,context:Cn});if(!Sn){Sn=In.subject=new _.c;try{Kt.apply(Cn,[].concat(yn,[function(){for(var Ut=arguments.length,Rt=new Array(Ut),Lt=0;Lt<Ut;Lt++)Rt[Lt]=arguments[Lt];var Oe=Rt.shift();Oe?Sn.error(Oe):(Sn.next(Rt.length<=1?Rt[0]:Rt),Sn.complete())}]))}catch(ur){(0,se._)(Sn)?Sn.error(ur):console.warn(ur)}}return Sn.subscribe(Yn)})}}function _t(Kt){var Jt=this,nn=Kt.params,ln=Kt.subscriber,yn=Kt.context,Tn=nn.callbackFunc,In=nn.args,Yn=nn.scheduler,Cn=nn.subject;if(!Cn){Cn=nn.subject=new _.c;try{Tn.apply(yn,[].concat((0,$.Z)(In),[function(){for(var ur=arguments.length,Ut=new Array(ur),Rt=0;Rt<ur;Rt++)Ut[Rt]=arguments[Rt];var Lt=Ut.shift();Jt.add(Lt?Yn.schedule(Ft,0,{err:Lt,subject:Cn}):Yn.schedule(yt,0,{value:Ut.length<=1?Ut[0]:Ut,subject:Cn}))}]))}catch(tr){this.add(Yn.schedule(Ft,0,{err:tr,subject:Cn}))}}this.add(Cn.subscribe(ln))}function yt(Kt){var nn=Kt.subject;nn.next(Kt.value),nn.complete()}function Ft(Kt){Kt.subject.error(Kt.err)}var xe=f(81370),De=f(60131),je=f(4499),dt=f(93487),Ke=f(91925),Bt=f(61493),xt=f(33090),vt=f(20684);function Qt(Kt,Jt,nn){return nn?Qt(Kt,Jt).pipe((0,ae.U)(function(ln){return(0,ce.k)(ln)?nn.apply(void 0,(0,$.Z)(ln)):nn(ln)})):new B.y(function(ln){var Tn,yn=function(){for(var Yn=arguments.length,Cn=new Array(Yn),Sn=0;Sn<Yn;Sn++)Cn[Sn]=arguments[Sn];return ln.next(1===Cn.length?Cn[0]:Cn)};try{Tn=Kt(yn)}catch(In){return void ln.error(In)}if((0,vt.m)(Jt))return function(){return Jt(yn,Tn)}})}function Ht(Kt,Jt,nn,ln,yn){var Tn,In;return 1==arguments.length?(In=Kt.initialState,Jt=Kt.condition,nn=Kt.iterate,Tn=Kt.resultSelector||O.y,yn=Kt.scheduler):void 0===ln||(0,le.K)(ln)?(In=Kt,Tn=O.y,yn=ln):(In=Kt,Tn=ln),new B.y(function(Cn){var Sn=In;if(yn)return yn.schedule(Ct,0,{subscriber:Cn,iterate:nn,condition:Jt,resultSelector:Tn,state:Sn});for(;;){if(Jt){var tr=void 0;try{tr=Jt(Sn)}catch(Ut){return void Cn.error(Ut)}if(!tr){Cn.complete();break}}var ur=void 0;try{ur=Tn(Sn)}catch(Ut){return void Cn.error(Ut)}if(Cn.next(ur),Cn.closed)break;try{Sn=nn(Sn)}catch(Ut){return void Cn.error(Ut)}}})}function Ct(Kt){var Jt=Kt.subscriber,nn=Kt.condition;if(!Jt.closed){if(Kt.needIterate)try{Kt.state=Kt.iterate(Kt.state)}catch(Tn){return void Jt.error(Tn)}else Kt.needIterate=!0;if(nn){var ln;try{ln=nn(Kt.state)}catch(Tn){return void Jt.error(Tn)}if(!ln)return void Jt.complete();if(Jt.closed)return}var yn;try{yn=Kt.resultSelector(Kt.state)}catch(Tn){return void Jt.error(Tn)}if(!Jt.closed&&(Jt.next(yn),!Jt.closed))return this.schedule(Kt)}}function qt(Kt){var Jt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dt.E,nn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dt.E;return(0,je.P)(function(){return Kt()?Jt:nn})}var bt=f(57434),en=f(55371),Nt=new B.y(x.Z);function rn(){return Nt}var kn=f(43161);function Ln(){for(var Kt=arguments.length,Jt=new Array(Kt),nn=0;nn<Kt;nn++)Jt[nn]=arguments[nn];if(0===Jt.length)return dt.E;var ln=Jt[0],yn=Jt.slice(1);return 1===Jt.length&&(0,ce.k)(ln)?Ln.apply(void 0,(0,$.Z)(ln)):new B.y(function(Tn){var In=function(){return Tn.add(Ln.apply(void 0,(0,$.Z)(yn)).subscribe(Tn))};return(0,Bt.D)(ln).subscribe({next:function(Cn){Tn.next(Cn)},error:In,complete:In})})}function Rn(Kt,Jt){return new B.y(Jt?function(nn){var ln=Object.keys(Kt),yn=new T.w;return yn.add(Jt.schedule($n,0,{keys:ln,index:0,subscriber:nn,subscription:yn,obj:Kt})),yn}:function(nn){for(var ln=Object.keys(Kt),yn=0;yn<ln.length&&!nn.closed;yn++){var Tn=ln[yn];Kt.hasOwnProperty(Tn)&&nn.next([Tn,Kt[Tn]])}nn.complete()})}function $n(Kt){var Jt=Kt.keys,nn=Kt.index,ln=Kt.subscriber,yn=Kt.subscription,Tn=Kt.obj;if(!ln.closed)if(nn<Jt.length){var In=Jt[nn];ln.next([In,Tn[In]]),yn.add(this.schedule({keys:Jt,index:nn+1,subscriber:ln,subscription:yn,obj:Tn}))}else ln.complete()}var Nn=f(59849),wn=f(20735),_r=f(58780);function ut(Kt,Jt,nn){return[(0,_r.h)(Jt,nn)(new B.y((0,wn.s)(Kt))),(0,_r.h)((0,Nn.f)(Jt,nn))(new B.y((0,wn.s)(Kt)))]}var He=f(31695),ve=f(10961),ye=f(11363),Te=f(5041);function we(Kt,Jt){return new B.y(function(nn){var ln,yn;try{ln=Kt()}catch(Yn){return void nn.error(Yn)}try{yn=Jt(ln)}catch(Yn){return void nn.error(Yn)}var In=(yn?(0,Bt.D)(yn):dt.E).subscribe(nn);return function(){In.unsubscribe(),ln&&ln.unsubscribe()}})}var ct=f(43008),ft=f(77493),Yt=f(10817)},37294:function(ue,q,f){"use strict";f.r(q),f.d(q,{AjaxError:function(){return k.iM},AjaxObservable:function(){return k.i6},AjaxResponse:function(){return k.vD},AjaxSubscriber:function(){return k.de},AjaxTimeoutError:function(){return k.cw},AnonymousSubject:function(){return w.ug},ArgumentOutOfRangeError:function(){return se.W},CombineLatestOperator:function(){return x.Ms},EmptyError:function(){return ce.K},GroupedObservable:function(){return j.T},Immediate:function(){return le.H},InnerSubscriber:function(){return U.d},ObjectUnsubscribedError:function(){return oe.N},OuterSubscriber:function(){return V.L},Scheduler:function(){return Z.b},SubjectSubscription:function(){return N.W},SubscribeOnObservable:function(){return F.e},Subscriber:function(){return b.L},TimeInterval:function(){return K.R},TimeoutError:function(){return Ae.W},Timestamp:function(){return z.E},UnsubscriptionError:function(){return be.B},WebSocketSubject:function(){return E.p},ajax:function(){return T.h},ajaxDelete:function(){return k._c},ajaxGet:function(){return k.Ck},ajaxGetJSON:function(){return k.uX},ajaxPatch:function(){return k.YB},ajaxPost:function(){return k.tB},ajaxPut:function(){return k.Vk},applyMixins:function(){return it.e},config:function(){return B.v},defaultThrottleConfig:function(){return J.d},dispatch:function(){return O.W},errorObject:function(){return qe},fromIterable:function(){return g},fromPromise:function(){return A},hostReportError:function(){return _t.z},identity:function(){return yt.y},isArray:function(){return Ft.k},isArrayLike:function(){return xe.z},isDate:function(){return De.J},isFunction:function(){return je.m},isIterable:function(){return dt.T},isNumeric:function(){return Ke.k},isObject:function(){return Bt.K},isObservable:function(){return xt.c},isPromise:function(){return vt.t},isScheduler:function(){return Qt.K},iterator:function(){return $.hZ},noop:function(){return Ht.Z},not:function(){return Ct.f},observable:function(){return ae.L},pipe:function(){return qt.z},root:function(){return bt.J},rxSubscriber:function(){return ee.b},subscribeTo:function(){return en.s},subscribeToArray:function(){return Nt.V},subscribeToIterable:function(){return S.u},subscribeToObservable:function(){return rn.h},subscribeToPromise:function(){return I.A},subscribeToResult:function(){return kn.D},toSubscriber:function(){return Ln.Y},tryCatch:function(){return Nn},webSocket:function(){return R.j}});var B=f(10817),U=f(22320),V=f(7283),Z=f(67801),w=f(68707),N=f(18480),b=f(39874),_=f(89797),I=f(56112),D=f(10498);function A(wn,_r){return _r?(0,D.c)(wn,_r):new _.y((0,I.A)(wn))}var S=f(49089),v=f(60612);function g(wn,_r){if(!wn)throw new Error("Iterable cannot be null");return _r?(0,v.Q)(wn,_r):new _.y((0,S.u)(wn))}var Rn,T=f(30437),R=f(99298),k=f(51361),E=f(46095),x=f(81370),O=f(10961),F=f(18613),z=f(63706),K=f(73445),j=f(86072),J=f(243),ee=f(79542),$=f(81695),ae=f(57694),se=f(9855),ce=f(64646),le=f(96421),oe=f(1696),Ae=f(98691),be=f(66351),it=f(2808),qe={e:{}},_t=f(82009),yt=f(57070),Ft=f(78985),xe=f(30621),De=f(88972),je=f(20684),dt=f(2762),Ke=f(11705),Bt=f(64902),xt=f(19104),vt=f(36514),Qt=f(91299),Ht=f(66029),Ct=f(59849),qt=f(96194),bt=f(44962),en=f(20735),Nt=f(22312),rn=f(71414),kn=f(61454),Ln=f(3410);function $n(){qe.e=void 0;try{return Rn.apply(this,arguments)}catch(wn){return qe.e=wn,qe}finally{Rn=void 0}}function Nn(wn){return Rn=wn,$n}},3435:function(ue,q,f){"use strict";f.d(q,{c:function(){return I}});var B=f(18967),U=f(14105),V=f(13920),Z=f(89200),w=f(10509),N=f(97154),b=f(68707),_=f(5051),I=function(D){(0,w.Z)(S,D);var A=(0,N.Z)(S);function S(){var v;return(0,B.Z)(this,S),(v=A.apply(this,arguments)).value=null,v.hasNext=!1,v.hasCompleted=!1,v}return(0,U.Z)(S,[{key:"_subscribe",value:function(g){return this.hasError?(g.error(this.thrownError),_.w.EMPTY):this.hasCompleted&&this.hasNext?(g.next(this.value),g.complete(),_.w.EMPTY):(0,V.Z)((0,Z.Z)(S.prototype),"_subscribe",this).call(this,g)}},{key:"next",value:function(g){this.hasCompleted||(this.value=g,this.hasNext=!0)}},{key:"error",value:function(g){this.hasCompleted||(0,V.Z)((0,Z.Z)(S.prototype),"error",this).call(this,g)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&(0,V.Z)((0,Z.Z)(S.prototype),"next",this).call(this,this.value),(0,V.Z)((0,Z.Z)(S.prototype),"complete",this).call(this)}}]),S}(b.xQ)},90838:function(ue,q,f){"use strict";f.d(q,{X:function(){return I}});var B=f(18967),U=f(14105),V=f(13920),Z=f(89200),w=f(10509),N=f(97154),b=f(68707),_=f(1696),I=function(D){(0,w.Z)(S,D);var A=(0,N.Z)(S);function S(v){var g;return(0,B.Z)(this,S),(g=A.call(this))._value=v,g}return(0,U.Z)(S,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(g){var T=(0,V.Z)((0,Z.Z)(S.prototype),"_subscribe",this).call(this,g);return T&&!T.closed&&g.next(this._value),T}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new _.N;return this._value}},{key:"next",value:function(g){(0,V.Z)((0,Z.Z)(S.prototype),"next",this).call(this,this._value=g)}}]),S}(b.xQ)},22320:function(ue,q,f){"use strict";f.d(q,{d:function(){return N}});var B=f(18967),U=f(14105),V=f(10509),Z=f(97154),N=function(b){(0,V.Z)(I,b);var _=(0,Z.Z)(I);function I(D,A,S){var v;return(0,B.Z)(this,I),(v=_.call(this)).parent=D,v.outerValue=A,v.outerIndex=S,v.index=0,v}return(0,U.Z)(I,[{key:"_next",value:function(A){this.parent.notifyNext(this.outerValue,A,this.outerIndex,this.index++,this)}},{key:"_error",value:function(A){this.parent.notifyError(A,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),I}(f(39874).L)},80286:function(ue,q,f){"use strict";f.d(q,{W:function(){return N},P:function(){return b}});var B=f(18967),U=f(14105),V=f(93487),Z=f(43161),w=f(11363),N=function(_){return _.NEXT="N",_.ERROR="E",_.COMPLETE="C",_}({}),b=function(){var _=function(){function I(D,A,S){(0,B.Z)(this,I),this.kind=D,this.value=A,this.error=S,this.hasValue="N"===D}return(0,U.Z)(I,[{key:"observe",value:function(A){switch(this.kind){case"N":return A.next&&A.next(this.value);case"E":return A.error&&A.error(this.error);case"C":return A.complete&&A.complete()}}},{key:"do",value:function(A,S,v){switch(this.kind){case"N":return A&&A(this.value);case"E":return S&&S(this.error);case"C":return v&&v()}}},{key:"accept",value:function(A,S,v){return A&&"function"==typeof A.next?this.observe(A):this.do(A,S,v)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,Z.of)(this.value);case"E":return(0,w._)(this.error);case"C":return(0,V.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(A){return void 0!==A?new I("N",A):I.undefinedValueNotification}},{key:"createError",value:function(A){return new I("E",void 0,A)}},{key:"createComplete",value:function(){return I.completeNotification}}]),I}();return _.completeNotification=new _("C"),_.undefinedValueNotification=new _("N",void 0),_}()},89797:function(ue,q,f){"use strict";f.d(q,{y:function(){return _}});var B=f(18967),U=f(14105),V=f(20006),Z=f(3410),w=f(57694),N=f(96194),b=f(10817),_=function(){var D=function(){function A(S){(0,B.Z)(this,A),this._isScalar=!1,S&&(this._subscribe=S)}return(0,U.Z)(A,[{key:"lift",value:function(v){var g=new A;return g.source=this,g.operator=v,g}},{key:"subscribe",value:function(v,g,T){var R=this.operator,k=(0,Z.Y)(v,g,T);if(k.add(R?R.call(k,this.source):this.source||b.v.useDeprecatedSynchronousErrorHandling&&!k.syncErrorThrowable?this._subscribe(k):this._trySubscribe(k)),b.v.useDeprecatedSynchronousErrorHandling&&k.syncErrorThrowable&&(k.syncErrorThrowable=!1,k.syncErrorThrown))throw k.syncErrorValue;return k}},{key:"_trySubscribe",value:function(v){try{return this._subscribe(v)}catch(g){b.v.useDeprecatedSynchronousErrorHandling&&(v.syncErrorThrown=!0,v.syncErrorValue=g),(0,V._)(v)?v.error(g):console.warn(g)}}},{key:"forEach",value:function(v,g){var T=this;return new(g=I(g))(function(R,k){var E;E=T.subscribe(function(x){try{v(x)}catch(O){k(O),E&&E.unsubscribe()}},k,R)})}},{key:"_subscribe",value:function(v){var g=this.source;return g&&g.subscribe(v)}},{key:w.L,value:function(){return this}},{key:"pipe",value:function(){for(var v=arguments.length,g=new Array(v),T=0;T<v;T++)g[T]=arguments[T];return 0===g.length?this:(0,N.U)(g)(this)}},{key:"toPromise",value:function(v){var g=this;return new(v=I(v))(function(T,R){var k;g.subscribe(function(E){return k=E},function(E){return R(E)},function(){return T(k)})})}}]),A}();return D.create=function(A){return new D(A)},D}();function I(D){if(D||(D=b.v.Promise||Promise),!D)throw new Error("no Promise impl found");return D}},88944:function(ue,q,f){"use strict";f.d(q,{c:function(){return V}});var B=f(10817),U=f(82009),V={closed:!0,next:function(w){},error:function(w){if(B.v.useDeprecatedSynchronousErrorHandling)throw w;(0,U.z)(w)},complete:function(){}}},7283:function(ue,q,f){"use strict";f.d(q,{L:function(){return N}});var B=f(18967),U=f(14105),V=f(10509),Z=f(97154),N=function(b){(0,V.Z)(I,b);var _=(0,Z.Z)(I);function I(){return(0,B.Z)(this,I),_.apply(this,arguments)}return(0,U.Z)(I,[{key:"notifyNext",value:function(A,S,v,g,T){this.destination.next(S)}},{key:"notifyError",value:function(A,S){this.destination.error(A)}},{key:"notifyComplete",value:function(A){this.destination.complete()}}]),I}(f(39874).L)},82667:function(ue,q,f){"use strict";f.d(q,{t:function(){return v}});var B=f(18967),U=f(14105),V=f(13920),Z=f(89200),w=f(10509),N=f(97154),b=f(68707),_=f(60641),I=f(5051),D=f(25110),A=f(1696),S=f(18480),v=function(T){(0,w.Z)(k,T);var R=(0,N.Z)(k);function k(){var E,x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,F=arguments.length>2?arguments[2]:void 0;return(0,B.Z)(this,k),(E=R.call(this)).scheduler=F,E._events=[],E._infiniteTimeWindow=!1,E._bufferSize=x<1?1:x,E._windowTime=O<1?1:O,O===Number.POSITIVE_INFINITY?(E._infiniteTimeWindow=!0,E.next=E.nextInfiniteTimeWindow):E.next=E.nextTimeWindow,E}return(0,U.Z)(k,[{key:"nextInfiniteTimeWindow",value:function(x){if(!this.isStopped){var O=this._events;O.push(x),O.length>this._bufferSize&&O.shift()}(0,V.Z)((0,Z.Z)(k.prototype),"next",this).call(this,x)}},{key:"nextTimeWindow",value:function(x){this.isStopped||(this._events.push(new g(this._getNow(),x)),this._trimBufferThenGetEvents()),(0,V.Z)((0,Z.Z)(k.prototype),"next",this).call(this,x)}},{key:"_subscribe",value:function(x){var j,O=this._infiniteTimeWindow,F=O?this._events:this._trimBufferThenGetEvents(),z=this.scheduler,K=F.length;if(this.closed)throw new A.N;if(this.isStopped||this.hasError?j=I.w.EMPTY:(this.observers.push(x),j=new S.W(this,x)),z&&x.add(x=new D.ht(x,z)),O)for(var J=0;J<K&&!x.closed;J++)x.next(F[J]);else for(var ee=0;ee<K&&!x.closed;ee++)x.next(F[ee].value);return this.hasError?x.error(this.thrownError):this.isStopped&&x.complete(),j}},{key:"_getNow",value:function(){return(this.scheduler||_.c).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var x=this._getNow(),O=this._bufferSize,F=this._windowTime,z=this._events,K=z.length,j=0;j<K&&!(x-z[j].time<F);)j++;return K>O&&(j=Math.max(j,K-O)),j>0&&z.splice(0,j),z}}]),k}(b.xQ),g=function T(R,k){(0,B.Z)(this,T),this.time=R,this.value=k}},67801:function(ue,q,f){"use strict";f.d(q,{b:function(){return V}});var B=f(18967),U=f(14105),V=function(){var Z=function(){function w(N){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.now;(0,B.Z)(this,w),this.SchedulerAction=N,this.now=b}return(0,U.Z)(w,[{key:"schedule",value:function(b){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,I=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,b).schedule(I,_)}}]),w}();return Z.now=function(){return Date.now()},Z}()},68707:function(ue,q,f){"use strict";f.d(q,{Yc:function(){return v},xQ:function(){return g},ug:function(){return T}});var B=f(14105),U=f(13920),V=f(89200),Z=f(18967),w=f(10509),N=f(97154),b=f(89797),_=f(39874),I=f(5051),D=f(1696),A=f(18480),S=f(79542),v=function(R){(0,w.Z)(E,R);var k=(0,N.Z)(E);function E(x){var O;return(0,Z.Z)(this,E),(O=k.call(this,x)).destination=x,O}return E}(_.L),g=function(){var R=function(k){(0,w.Z)(x,k);var E=(0,N.Z)(x);function x(){var O;return(0,Z.Z)(this,x),(O=E.call(this)).observers=[],O.closed=!1,O.isStopped=!1,O.hasError=!1,O.thrownError=null,O}return(0,B.Z)(x,[{key:S.b,value:function(){return new v(this)}},{key:"lift",value:function(F){var z=new T(this,this);return z.operator=F,z}},{key:"next",value:function(F){if(this.closed)throw new D.N;if(!this.isStopped)for(var z=this.observers,K=z.length,j=z.slice(),J=0;J<K;J++)j[J].next(F)}},{key:"error",value:function(F){if(this.closed)throw new D.N;this.hasError=!0,this.thrownError=F,this.isStopped=!0;for(var z=this.observers,K=z.length,j=z.slice(),J=0;J<K;J++)j[J].error(F);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new D.N;this.isStopped=!0;for(var F=this.observers,z=F.length,K=F.slice(),j=0;j<z;j++)K[j].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(F){if(this.closed)throw new D.N;return(0,U.Z)((0,V.Z)(x.prototype),"_trySubscribe",this).call(this,F)}},{key:"_subscribe",value:function(F){if(this.closed)throw new D.N;return this.hasError?(F.error(this.thrownError),I.w.EMPTY):this.isStopped?(F.complete(),I.w.EMPTY):(this.observers.push(F),new A.W(this,F))}},{key:"asObservable",value:function(){var F=new b.y;return F.source=this,F}}]),x}(b.y);return R.create=function(k,E){return new T(k,E)},R}(),T=function(R){(0,w.Z)(E,R);var k=(0,N.Z)(E);function E(x,O){var F;return(0,Z.Z)(this,E),(F=k.call(this)).destination=x,F.source=O,F}return(0,B.Z)(E,[{key:"next",value:function(O){var F=this.destination;F&&F.next&&F.next(O)}},{key:"error",value:function(O){var F=this.destination;F&&F.error&&this.destination.error(O)}},{key:"complete",value:function(){var O=this.destination;O&&O.complete&&this.destination.complete()}},{key:"_subscribe",value:function(O){return this.source?this.source.subscribe(O):I.w.EMPTY}}]),E}(g)},18480:function(ue,q,f){"use strict";f.d(q,{W:function(){return N}});var B=f(18967),U=f(14105),V=f(10509),Z=f(97154),N=function(b){(0,V.Z)(I,b);var _=(0,Z.Z)(I);function I(D,A){var S;return(0,B.Z)(this,I),(S=_.call(this)).subject=D,S.subscriber=A,S.closed=!1,S}return(0,U.Z)(I,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var A=this.subject,S=A.observers;if(this.subject=null,S&&0!==S.length&&!A.isStopped&&!A.closed){var v=S.indexOf(this.subscriber);-1!==v&&S.splice(v,1)}}}}]),I}(f(5051).w)},39874:function(ue,q,f){"use strict";f.d(q,{L:function(){return g}});var B=f(18967),U=f(14105),V=f(88009),Z=f(13920),w=f(89200),N=f(10509),b=f(97154),_=f(20684),I=f(88944),D=f(5051),A=f(79542),S=f(10817),v=f(82009),g=function(R){(0,N.Z)(E,R);var k=(0,b.Z)(E);function E(x,O,F){var z;switch((0,B.Z)(this,E),(z=k.call(this)).syncErrorValue=null,z.syncErrorThrown=!1,z.syncErrorThrowable=!1,z.isStopped=!1,arguments.length){case 0:z.destination=I.c;break;case 1:if(!x){z.destination=I.c;break}if("object"==typeof x){x instanceof E?(z.syncErrorThrowable=x.syncErrorThrowable,z.destination=x,x.add((0,V.Z)(z))):(z.syncErrorThrowable=!0,z.destination=new T((0,V.Z)(z),x));break}default:z.syncErrorThrowable=!0,z.destination=new T((0,V.Z)(z),x,O,F)}return z}return(0,U.Z)(E,[{key:A.b,value:function(){return this}},{key:"next",value:function(O){this.isStopped||this._next(O)}},{key:"error",value:function(O){this.isStopped||(this.isStopped=!0,this._error(O))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,(0,Z.Z)((0,w.Z)(E.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(O){this.destination.next(O)}},{key:"_error",value:function(O){this.destination.error(O),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var O=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=O,this}}],[{key:"create",value:function(O,F,z){var K=new E(O,F,z);return K.syncErrorThrowable=!1,K}}]),E}(D.w),T=function(R){(0,N.Z)(E,R);var k=(0,b.Z)(E);function E(x,O,F,z){var K;(0,B.Z)(this,E),(K=k.call(this))._parentSubscriber=x;var j,J=(0,V.Z)(K);return(0,_.m)(O)?j=O:O&&(j=O.next,F=O.error,z=O.complete,O!==I.c&&(J=Object.create(O),(0,_.m)(J.unsubscribe)&&K.add(J.unsubscribe.bind(J)),J.unsubscribe=K.unsubscribe.bind((0,V.Z)(K)))),K._context=J,K._next=j,K._error=F,K._complete=z,K}return(0,U.Z)(E,[{key:"next",value:function(O){if(!this.isStopped&&this._next){var F=this._parentSubscriber;S.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?this.__tryOrSetError(F,this._next,O)&&this.unsubscribe():this.__tryOrUnsub(this._next,O)}}},{key:"error",value:function(O){if(!this.isStopped){var F=this._parentSubscriber,z=S.v.useDeprecatedSynchronousErrorHandling;if(this._error)z&&F.syncErrorThrowable?(this.__tryOrSetError(F,this._error,O),this.unsubscribe()):(this.__tryOrUnsub(this._error,O),this.unsubscribe());else if(F.syncErrorThrowable)z?(F.syncErrorValue=O,F.syncErrorThrown=!0):(0,v.z)(O),this.unsubscribe();else{if(this.unsubscribe(),z)throw O;(0,v.z)(O)}}}},{key:"complete",value:function(){var O=this;if(!this.isStopped){var F=this._parentSubscriber;if(this._complete){var z=function(){return O._complete.call(O._context)};S.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?(this.__tryOrSetError(F,z),this.unsubscribe()):(this.__tryOrUnsub(z),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(O,F){try{O.call(this._context,F)}catch(z){if(this.unsubscribe(),S.v.useDeprecatedSynchronousErrorHandling)throw z;(0,v.z)(z)}}},{key:"__tryOrSetError",value:function(O,F,z){if(!S.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{F.call(this._context,z)}catch(K){return S.v.useDeprecatedSynchronousErrorHandling?(O.syncErrorValue=K,O.syncErrorThrown=!0,!0):((0,v.z)(K),!0)}return!1}},{key:"_unsubscribe",value:function(){var O=this._parentSubscriber;this._context=null,this._parentSubscriber=null,O.unsubscribe()}}]),E}(g)},5051:function(ue,q,f){"use strict";f.d(q,{w:function(){return b}});var B=f(18967),U=f(14105),V=f(78985),Z=f(64902),w=f(20684),N=f(66351),b=function(){var D,I=function(){function D(A){(0,B.Z)(this,D),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,A&&(this._ctorUnsubscribe=!0,this._unsubscribe=A)}return(0,U.Z)(D,[{key:"unsubscribe",value:function(){var S;if(!this.closed){var v=this._parentOrParents,g=this._ctorUnsubscribe,T=this._unsubscribe,R=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,v instanceof D)v.remove(this);else if(null!==v)for(var k=0;k<v.length;++k)v[k].remove(this);if((0,w.m)(T)){g&&(this._unsubscribe=void 0);try{T.call(this)}catch(z){S=z instanceof N.B?_(z.errors):[z]}}if((0,V.k)(R))for(var x=-1,O=R.length;++x<O;){var F=R[x];if((0,Z.K)(F))try{F.unsubscribe()}catch(z){S=S||[],z instanceof N.B?S=S.concat(_(z.errors)):S.push(z)}}if(S)throw new N.B(S)}}},{key:"add",value:function(S){var v=S;if(!S)return D.EMPTY;switch(typeof S){case"function":v=new D(S);case"object":if(v===this||v.closed||"function"!=typeof v.unsubscribe)return v;if(this.closed)return v.unsubscribe(),v;if(!(v instanceof D)){var g=v;(v=new D)._subscriptions=[g]}break;default:throw new Error("unrecognized teardown "+S+" added to Subscription.")}var R=v._parentOrParents;if(null===R)v._parentOrParents=this;else if(R instanceof D){if(R===this)return v;v._parentOrParents=[R,this]}else{if(-1!==R.indexOf(this))return v;R.push(this)}var k=this._subscriptions;return null===k?this._subscriptions=[v]:k.push(v),v}},{key:"remove",value:function(S){var v=this._subscriptions;if(v){var g=v.indexOf(S);-1!==g&&v.splice(g,1)}}}]),D}();return I.EMPTY=((D=new I).closed=!0,D),I}();function _(I){return I.reduce(function(D,A){return D.concat(A instanceof N.B?A.errors:A)},[])}},10817:function(ue,q,f){"use strict";f.d(q,{v:function(){return U}});var B=!1,U={Promise:void 0,set useDeprecatedSynchronousErrorHandling(V){if(V){var Z=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+Z.stack)}else B&&console.log("RxJS: Back to a better error behavior. Thank you. <3");B=V},get useDeprecatedSynchronousErrorHandling(){return B}}},32124:function(ue,q,f){"use strict";f.d(q,{IY:function(){return _},Ds:function(){return D},ft:function(){return S}});var B=f(18967),U=f(14105),V=f(10509),Z=f(97154),w=f(39874),N=f(89797),b=f(20735),_=function(v){(0,V.Z)(T,v);var g=(0,Z.Z)(T);function T(R){var k;return(0,B.Z)(this,T),(k=g.call(this)).parent=R,k}return(0,U.Z)(T,[{key:"_next",value:function(k){this.parent.notifyNext(k)}},{key:"_error",value:function(k){this.parent.notifyError(k),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),T}(w.L),D=function(v){(0,V.Z)(T,v);var g=(0,Z.Z)(T);function T(){return(0,B.Z)(this,T),g.apply(this,arguments)}return(0,U.Z)(T,[{key:"notifyNext",value:function(k){this.destination.next(k)}},{key:"notifyError",value:function(k){this.destination.error(k)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),T}(w.L);function S(v,g){if(!g.closed){if(v instanceof N.y)return v.subscribe(g);var T;try{T=(0,b.s)(v)(g)}catch(R){g.error(R)}return T}}},39887:function(ue,q,f){"use strict";f.d(q,{c:function(){return S},N:function(){return v}});var B=f(13920),U=f(89200),V=f(18967),Z=f(14105),w=f(10509),N=f(97154),b=f(68707),_=f(89797),D=(f(39874),f(5051)),A=f(26575),S=function(k){(0,w.Z)(x,k);var E=(0,N.Z)(x);function x(O,F){var z;return(0,V.Z)(this,x),(z=E.call(this)).source=O,z.subjectFactory=F,z._refCount=0,z._isComplete=!1,z}return(0,Z.Z)(x,[{key:"_subscribe",value:function(F){return this.getSubject().subscribe(F)}},{key:"getSubject",value:function(){var F=this._subject;return(!F||F.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var F=this._connection;return F||(this._isComplete=!1,(F=this._connection=new D.w).add(this.source.subscribe(new g(this.getSubject(),this))),F.closed&&(this._connection=null,F=D.w.EMPTY)),F}},{key:"refCount",value:function(){return(0,A.x)()(this)}}]),x}(_.y),v=function(){var k=S.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:k._subscribe},_isComplete:{value:k._isComplete,writable:!0},getSubject:{value:k.getSubject},connect:{value:k.connect},refCount:{value:k.refCount}}}(),g=function(k){(0,w.Z)(x,k);var E=(0,N.Z)(x);function x(O,F){var z;return(0,V.Z)(this,x),(z=E.call(this,O)).connectable=F,z}return(0,Z.Z)(x,[{key:"_error",value:function(F){this._unsubscribe(),(0,B.Z)((0,U.Z)(x.prototype),"_error",this).call(this,F)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),(0,B.Z)((0,U.Z)(x.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var F=this.connectable;if(F){this.connectable=null;var z=F._connection;F._refCount=0,F._subject=null,F._connection=null,z&&z.unsubscribe()}}}]),x}(b.Yc)},18613:function(ue,q,f){"use strict";f.d(q,{e:function(){return _}});var B=f(18967),U=f(14105),V=f(10509),Z=f(97154),w=f(89797),N=f(8285),b=f(11705),_=function(I){(0,V.Z)(A,I);var D=(0,Z.Z)(A);function A(S){var v,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N.e;return(0,B.Z)(this,A),(v=D.call(this)).source=S,v.delayTime=g,v.scheduler=T,(!(0,b.k)(g)||g<0)&&(v.delayTime=0),(!T||"function"!=typeof T.schedule)&&(v.scheduler=N.e),v}return(0,U.Z)(A,[{key:"_subscribe",value:function(v){return this.scheduler.schedule(A.dispatch,this.delayTime,{source:this.source,subscriber:v})}}],[{key:"create",value:function(v){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N.e;return new A(v,g,T)}},{key:"dispatch",value:function(v){return this.add(v.source.subscribe(v.subscriber))}}]),A}(w.y)},81370:function(ue,q,f){"use strict";f.d(q,{aj:function(){return A},Ms:function(){return S}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(91299),N=f(78985),b=f(7283),_=f(61454),I=f(80503),D={};function A(){for(var g=arguments.length,T=new Array(g),R=0;R<g;R++)T[R]=arguments[R];var k=void 0,E=void 0;return(0,w.K)(T[T.length-1])&&(E=T.pop()),"function"==typeof T[T.length-1]&&(k=T.pop()),1===T.length&&(0,N.k)(T[0])&&(T=T[0]),(0,I.n)(T,E).lift(new S(k))}var S=function(){function g(T){(0,V.Z)(this,g),this.resultSelector=T}return(0,Z.Z)(g,[{key:"call",value:function(R,k){return k.subscribe(new v(R,this.resultSelector))}}]),g}(),v=function(g){(0,B.Z)(R,g);var T=(0,U.Z)(R);function R(k,E){var x;return(0,V.Z)(this,R),(x=T.call(this,k)).resultSelector=E,x.active=0,x.values=[],x.observables=[],x}return(0,Z.Z)(R,[{key:"_next",value:function(E){this.values.push(D),this.observables.push(E)}},{key:"_complete",value:function(){var E=this.observables,x=E.length;if(0===x)this.destination.complete();else{this.active=x,this.toRespond=x;for(var O=0;O<x;O++)this.add((0,_.D)(this,E[O],void 0,O))}}},{key:"notifyComplete",value:function(E){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(E,x,O){var F=this.values,K=this.toRespond?F[O]===D?--this.toRespond:this.toRespond:0;F[O]=x,0===K&&(this.resultSelector?this._tryResultSelector(F):this.destination.next(F.slice()))}},{key:"_tryResultSelector",value:function(E){var x;try{x=this.resultSelector.apply(this,E)}catch(O){return void this.destination.error(O)}this.destination.next(x)}}]),R}(b.L)},60131:function(ue,q,f){"use strict";f.d(q,{z:function(){return V}});var B=f(43161),U=f(95416);function V(){return(0,U.u)()(B.of.apply(void 0,arguments))}},4499:function(ue,q,f){"use strict";f.d(q,{P:function(){return Z}});var B=f(89797),U=f(61493),V=f(93487);function Z(w){return new B.y(function(N){var b;try{b=w()}catch(I){return void N.error(I)}return(b?(0,U.D)(b):(0,V.c)()).subscribe(N)})}},51361:function(ue,q,f){"use strict";f.d(q,{Ck:function(){return v},tB:function(){return g},_c:function(){return T},Vk:function(){return R},YB:function(){return k},uX:function(){return x},i6:function(){return O},de:function(){return F},vD:function(){return z},iM:function(){return j},cw:function(){return ae}});var B=f(13920),U=f(89200),V=f(18967),Z=f(14105),w=f(10509),N=f(97154),b=f(44962),_=f(89797),I=f(39874);function v(se){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new O({method:"GET",url:se,headers:ce})}function g(se,ce,le){return new O({method:"POST",url:se,body:ce,headers:le})}function T(se,ce){return new O({method:"DELETE",url:se,headers:ce})}function R(se,ce,le){return new O({method:"PUT",url:se,body:ce,headers:le})}function k(se,ce,le){return new O({method:"PATCH",url:se,body:ce,headers:le})}var E=(0,f(85639).U)(function(se,ce){return se.response});function x(se,ce){return E(new O({method:"GET",url:se,responseType:"json",headers:ce}))}var O=function(){var se=function(ce){(0,w.Z)(oe,ce);var le=(0,N.Z)(oe);function oe(Ae){var be;(0,V.Z)(this,oe),be=le.call(this);var it={async:!0,createXHR:function(){return this.crossDomain?function(){if(b.J.XMLHttpRequest)return new b.J.XMLHttpRequest;if(b.J.XDomainRequest)return new b.J.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(b.J.XMLHttpRequest)return new b.J.XMLHttpRequest;var se;try{for(var ce=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],le=0;le<3;le++)try{if(new b.J.ActiveXObject(se=ce[le]))break}catch(oe){}return new b.J.ActiveXObject(se)}catch(oe){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof Ae)it.url=Ae;else for(var qe in Ae)Ae.hasOwnProperty(qe)&&(it[qe]=Ae[qe]);return be.request=it,be}return(0,Z.Z)(oe,[{key:"_subscribe",value:function(be){return new F(be,this.request)}}]),oe}(_.y);return se.create=function(){var ce=function(oe){return new se(oe)};return ce.get=v,ce.post=g,ce.delete=T,ce.put=R,ce.patch=k,ce.getJSON=x,ce}(),se}(),F=function(se){(0,w.Z)(le,se);var ce=(0,N.Z)(le);function le(oe,Ae){var be;(0,V.Z)(this,le),(be=ce.call(this,oe)).request=Ae,be.done=!1;var it=Ae.headers=Ae.headers||{};return!Ae.crossDomain&&!be.getHeader(it,"X-Requested-With")&&(it["X-Requested-With"]="XMLHttpRequest"),!be.getHeader(it,"Content-Type")&&!(b.J.FormData&&Ae.body instanceof b.J.FormData)&&void 0!==Ae.body&&(it["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),Ae.body=be.serializeBody(Ae.body,be.getHeader(Ae.headers,"Content-Type")),be.send(),be}return(0,Z.Z)(le,[{key:"next",value:function(Ae){this.done=!0;var _t,be=this.xhr,it=this.request,qe=this.destination;try{_t=new z(Ae,be,it)}catch(yt){return qe.error(yt)}qe.next(_t)}},{key:"send",value:function(){var Ae=this.request,be=this.request,it=be.user,qe=be.method,_t=be.url,yt=be.async,Ft=be.password,xe=be.headers,De=be.body;try{var je=this.xhr=Ae.createXHR();this.setupEvents(je,Ae),it?je.open(qe,_t,yt,it,Ft):je.open(qe,_t,yt),yt&&(je.timeout=Ae.timeout,je.responseType=Ae.responseType),"withCredentials"in je&&(je.withCredentials=!!Ae.withCredentials),this.setHeaders(je,xe),De?je.send(De):je.send()}catch(dt){this.error(dt)}}},{key:"serializeBody",value:function(Ae,be){if(!Ae||"string"==typeof Ae)return Ae;if(b.J.FormData&&Ae instanceof b.J.FormData)return Ae;if(be){var it=be.indexOf(";");-1!==it&&(be=be.substring(0,it))}switch(be){case"application/x-www-form-urlencoded":return Object.keys(Ae).map(function(qe){return"".concat(encodeURIComponent(qe),"=").concat(encodeURIComponent(Ae[qe]))}).join("&");case"application/json":return JSON.stringify(Ae);default:return Ae}}},{key:"setHeaders",value:function(Ae,be){for(var it in be)be.hasOwnProperty(it)&&Ae.setRequestHeader(it,be[it])}},{key:"getHeader",value:function(Ae,be){for(var it in Ae)if(it.toLowerCase()===be.toLowerCase())return Ae[it]}},{key:"setupEvents",value:function(Ae,be){var _t,yt,it=be.progressSubscriber;function qe(De){var Bt,je=qe.subscriber,dt=qe.progressSubscriber,Ke=qe.request;dt&&dt.error(De);try{Bt=new ae(this,Ke)}catch(xt){Bt=xt}je.error(Bt)}(Ae.ontimeout=qe,qe.request=be,qe.subscriber=this,qe.progressSubscriber=it,Ae.upload&&"withCredentials"in Ae)&&(it&&(_t=function(je){_t.progressSubscriber.next(je)},b.J.XDomainRequest?Ae.onprogress=_t:Ae.upload.onprogress=_t,_t.progressSubscriber=it),Ae.onerror=yt=function(je){var vt,Ke=yt.progressSubscriber,Bt=yt.subscriber,xt=yt.request;Ke&&Ke.error(je);try{vt=new j("ajax error",this,xt)}catch(Qt){vt=Qt}Bt.error(vt)},yt.request=be,yt.subscriber=this,yt.progressSubscriber=it);function Ft(De){}function xe(De){var je=xe.subscriber,dt=xe.progressSubscriber,Ke=xe.request;if(4===this.readyState){var Bt=1223===this.status?204:this.status;if(0===Bt&&(Bt=("text"===this.responseType?this.response||this.responseText:this.response)?200:0),Bt<400)dt&&dt.complete(),je.next(De),je.complete();else{var vt;dt&&dt.error(De);try{vt=new j("ajax error "+Bt,this,Ke)}catch(Qt){vt=Qt}je.error(vt)}}}Ae.onreadystatechange=Ft,Ft.subscriber=this,Ft.progressSubscriber=it,Ft.request=be,Ae.onload=xe,xe.subscriber=this,xe.progressSubscriber=it,xe.request=be}},{key:"unsubscribe",value:function(){var be=this.xhr;!this.done&&be&&4!==be.readyState&&"function"==typeof be.abort&&be.abort(),(0,B.Z)((0,U.Z)(le.prototype),"unsubscribe",this).call(this)}}]),le}(I.L),z=function se(ce,le,oe){(0,V.Z)(this,se),this.originalEvent=ce,this.xhr=le,this.request=oe,this.status=le.status,this.responseType=le.responseType||oe.responseType,this.response=ee(this.responseType,le)},j=function(){function se(ce,le,oe){return Error.call(this),this.message=ce,this.name="AjaxError",this.xhr=le,this.request=oe,this.status=le.status,this.responseType=le.responseType||oe.responseType,this.response=ee(this.responseType,le),this}return se.prototype=Object.create(Error.prototype),se}();function ee(se,ce){switch(se){case"json":return function(se){return"response"in se?se.responseType?se.response:JSON.parse(se.response||se.responseText||"null"):JSON.parse(se.responseText||"null")}(ce);case"xml":return ce.responseXML;case"text":default:return"response"in ce?ce.response:ce.responseText}}var ae=function(se,ce){return j.call(this,"ajax timeout",se,ce),this.name="AjaxTimeoutError",this}},46095:function(ue,q,f){"use strict";f.d(q,{p:function(){return g}});var B=f(18967),U=f(14105),V=f(13920),Z=f(89200),w=f(10509),N=f(97154),b=f(68707),_=f(39874),I=f(89797),D=f(5051),A=f(82667),S={url:"",deserializer:function(R){return JSON.parse(R.data)},serializer:function(R){return JSON.stringify(R)}},g=function(T){(0,w.Z)(k,T);var R=(0,N.Z)(k);function k(E,x){var O;if((0,B.Z)(this,k),O=R.call(this),E instanceof I.y)O.destination=x,O.source=E;else{var F=O._config=Object.assign({},S);if(O._output=new b.xQ,"string"==typeof E)F.url=E;else for(var z in E)E.hasOwnProperty(z)&&(F[z]=E[z]);if(!F.WebSocketCtor&&WebSocket)F.WebSocketCtor=WebSocket;else if(!F.WebSocketCtor)throw new Error("no WebSocket constructor can be found");O.destination=new A.t}return O}return(0,U.Z)(k,[{key:"lift",value:function(x){var O=new k(this._config,this.destination);return O.operator=x,O.source=this,O}},{key:"_resetState",value:function(){this._socket=null,this.source||(this.destination=new A.t),this._output=new b.xQ}},{key:"multiplex",value:function(x,O,F){var z=this;return new I.y(function(K){try{z.next(x())}catch(J){K.error(J)}var j=z.subscribe(function(J){try{F(J)&&K.next(J)}catch(ee){K.error(ee)}},function(J){return K.error(J)},function(){return K.complete()});return function(){try{z.next(O())}catch(J){K.error(J)}j.unsubscribe()}})}},{key:"_connectSocket",value:function(){var x=this,O=this._config,F=O.WebSocketCtor,z=O.protocol,K=O.url,j=O.binaryType,J=this._output,ee=null;try{ee=z?new F(K,z):new F(K),this._socket=ee,j&&(this._socket.binaryType=j)}catch(ae){return void J.error(ae)}var $=new D.w(function(){x._socket=null,ee&&1===ee.readyState&&ee.close()});ee.onopen=function(ae){if(!x._socket)return ee.close(),void x._resetState();var ce=x._config.openObserver;ce&&ce.next(ae);var le=x.destination;x.destination=_.L.create(function(oe){if(1===ee.readyState)try{ee.send((0,x._config.serializer)(oe))}catch(be){x.destination.error(be)}},function(oe){var Ae=x._config.closingObserver;Ae&&Ae.next(void 0),oe&&oe.code?ee.close(oe.code,oe.reason):J.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),x._resetState()},function(){var oe=x._config.closingObserver;oe&&oe.next(void 0),ee.close(),x._resetState()}),le&&le instanceof A.t&&$.add(le.subscribe(x.destination))},ee.onerror=function(ae){x._resetState(),J.error(ae)},ee.onclose=function(ae){x._resetState();var se=x._config.closeObserver;se&&se.next(ae),ae.wasClean?J.complete():J.error(ae)},ee.onmessage=function(ae){try{J.next((0,x._config.deserializer)(ae))}catch(ce){J.error(ce)}}}},{key:"_subscribe",value:function(x){var O=this,F=this.source;return F?F.subscribe(x):(this._socket||this._connectSocket(),this._output.subscribe(x),x.add(function(){var z=O._socket;0===O._output.observers.length&&(z&&1===z.readyState&&z.close(),O._resetState())}),x)}},{key:"unsubscribe",value:function(){var x=this._socket;x&&1===x.readyState&&x.close(),this._resetState(),(0,V.Z)((0,Z.Z)(k.prototype),"unsubscribe",this).call(this)}}]),k}(b.ug)},30437:function(ue,q,f){"use strict";f.d(q,{h:function(){return U}});var B=f(51361),U=function(){return B.i6.create}()},99298:function(ue,q,f){"use strict";f.d(q,{j:function(){return U}});var B=f(46095);function U(V){return new B.p(V)}},93487:function(ue,q,f){"use strict";f.d(q,{E:function(){return U},c:function(){return V}});var B=f(89797),U=new B.y(function(w){return w.complete()});function V(w){return w?function(w){return new B.y(function(N){return w.schedule(function(){return N.complete()})})}(w):U}},91925:function(ue,q,f){"use strict";f.d(q,{D:function(){return b}});var B=f(62467),U=f(89797),V=f(78985),Z=f(85639),w=f(64902),N=f(61493);function b(){for(var I=arguments.length,D=new Array(I),A=0;A<I;A++)D[A]=arguments[A];if(1===D.length){var S=D[0];if((0,V.k)(S))return _(S,null);if((0,w.K)(S)&&Object.getPrototypeOf(S)===Object.prototype){var v=Object.keys(S);return _(v.map(function(T){return S[T]}),v)}}if("function"==typeof D[D.length-1]){var g=D.pop();return _(D=1===D.length&&(0,V.k)(D[0])?D[0]:D,null).pipe((0,Z.U)(function(T){return g.apply(void 0,(0,B.Z)(T))}))}return _(D,null)}function _(I,D){return new U.y(function(A){var S=I.length;if(0!==S)for(var v=new Array(S),g=0,T=0,R=function(x){var O=(0,N.D)(I[x]),F=!1;A.add(O.subscribe({next:function(K){F||(F=!0,T++),v[x]=K},error:function(K){return A.error(K)},complete:function(){(++g===S||!F)&&(T===S&&A.next(D?D.reduce(function(K,j,J){return K[j]=v[J],K},{}):v),A.complete())}}))},k=0;k<S;k++)R(k);else A.complete()})}},61493:function(ue,q,f){"use strict";f.d(q,{D:function(){return Z}});var B=f(89797),U=f(20735),V=f(77493);function Z(w,N){return N?(0,V.x)(w,N):w instanceof B.y?w:new B.y((0,U.s)(w))}},80503:function(ue,q,f){"use strict";f.d(q,{n:function(){return Z}});var B=f(89797),U=f(22312),V=f(55835);function Z(w,N){return N?(0,V.r)(w,N):new B.y((0,U.V)(w))}},33090:function(ue,q,f){"use strict";f.d(q,{R:function(){return b}});var B=f(62467),U=f(89797),V=f(78985),Z=f(20684),w=f(85639);function b(S,v,g,T){return(0,Z.m)(g)&&(T=g,g=void 0),T?b(S,v,g).pipe((0,w.U)(function(R){return(0,V.k)(R)?T.apply(void 0,(0,B.Z)(R)):T(R)})):new U.y(function(R){_(S,v,function(E){R.next(arguments.length>1?Array.prototype.slice.call(arguments):E)},R,g)})}function _(S,v,g,T,R){var k;if(function(S){return S&&"function"==typeof S.addEventListener&&"function"==typeof S.removeEventListener}(S)){var E=S;S.addEventListener(v,g,R),k=function(){return E.removeEventListener(v,g,R)}}else if(function(S){return S&&"function"==typeof S.on&&"function"==typeof S.off}(S)){var x=S;S.on(v,g),k=function(){return x.off(v,g)}}else if(function(S){return S&&"function"==typeof S.addListener&&"function"==typeof S.removeListener}(S)){var O=S;S.addListener(v,g),k=function(){return O.removeListener(v,g)}}else{if(!S||!S.length)throw new TypeError("Invalid event target");for(var F=0,z=S.length;F<z;F++)_(S[F],v,g,T,R)}T.add(k)}},57434:function(ue,q,f){"use strict";f.d(q,{F:function(){return Z}});var B=f(89797),U=f(46813),V=f(11705);function Z(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.P;return(!(0,V.k)(N)||N<0)&&(N=0),(!b||"function"!=typeof b.schedule)&&(b=U.P),new B.y(function(_){return _.add(b.schedule(w,N,{subscriber:_,counter:0,period:N})),_})}function w(N){var b=N.subscriber,_=N.counter,I=N.period;b.next(_),this.schedule({subscriber:b,counter:_+1,period:I},I)}},55371:function(ue,q,f){"use strict";f.d(q,{T:function(){return w}});var B=f(89797),U=f(91299),V=f(65890),Z=f(80503);function w(){for(var N=Number.POSITIVE_INFINITY,b=null,_=arguments.length,I=new Array(_),D=0;D<_;D++)I[D]=arguments[D];var A=I[I.length-1];return(0,U.K)(A)?(b=I.pop(),I.length>1&&"number"==typeof I[I.length-1]&&(N=I.pop())):"number"==typeof A&&(N=I.pop()),null===b&&1===I.length&&I[0]instanceof B.y?I[0]:(0,V.J)(N)((0,Z.n)(I,b))}},43161:function(ue,q,f){"use strict";f.d(q,{of:function(){return Z}});var B=f(91299),U=f(80503),V=f(55835);function Z(){for(var w=arguments.length,N=new Array(w),b=0;b<w;b++)N[b]=arguments[b];var _=N[N.length-1];return(0,B.K)(_)?(N.pop(),(0,V.r)(N,_)):(0,U.n)(N)}},31695:function(ue,q,f){"use strict";f.d(q,{S3:function(){return I}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(78985),N=f(80503),b=f(7283),_=f(61454);function I(){for(var S=arguments.length,v=new Array(S),g=0;g<S;g++)v[g]=arguments[g];if(1===v.length){if(!(0,w.k)(v[0]))return v[0];v=v[0]}return(0,N.n)(v,void 0).lift(new D)}var D=function(){function S(){(0,V.Z)(this,S)}return(0,Z.Z)(S,[{key:"call",value:function(g,T){return T.subscribe(new A(g))}}]),S}(),A=function(S){(0,B.Z)(g,S);var v=(0,U.Z)(g);function g(T){var R;return(0,V.Z)(this,g),(R=v.call(this,T)).hasFirst=!1,R.observables=[],R.subscriptions=[],R}return(0,Z.Z)(g,[{key:"_next",value:function(R){this.observables.push(R)}},{key:"_complete",value:function(){var R=this.observables,k=R.length;if(0===k)this.destination.complete();else{for(var E=0;E<k&&!this.hasFirst;E++){var O=(0,_.D)(this,R[E],void 0,E);this.subscriptions&&this.subscriptions.push(O),this.add(O)}this.observables=null}}},{key:"notifyNext",value:function(R,k,E){if(!this.hasFirst){this.hasFirst=!0;for(var x=0;x<this.subscriptions.length;x++)if(x!==E){var O=this.subscriptions[x];O.unsubscribe(),this.remove(O)}this.subscriptions=null}this.destination.next(k)}}]),g}(b.L)},10961:function(ue,q,f){"use strict";f.d(q,{w:function(){return U},W:function(){return V}});var B=f(89797);function U(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,w=arguments.length>1?arguments[1]:void 0,N=arguments.length>2?arguments[2]:void 0;return new B.y(function(b){void 0===w&&(w=Z,Z=0);var _=0,I=Z;if(N)return N.schedule(V,0,{index:_,count:w,start:Z,subscriber:b});for(;;){if(_++>=w){b.complete();break}if(b.next(I++),b.closed)break}})}function V(Z){var w=Z.start,N=Z.index,_=Z.subscriber;N>=Z.count?_.complete():(_.next(w),!_.closed&&(Z.index=N+1,Z.start=w+1,this.schedule(Z)))}},11363:function(ue,q,f){"use strict";f.d(q,{_:function(){return U}});var B=f(89797);function U(Z,w){return new B.y(w?function(N){return w.schedule(V,0,{error:Z,subscriber:N})}:function(N){return N.error(Z)})}function V(Z){Z.subscriber.error(Z.error)}},5041:function(ue,q,f){"use strict";f.d(q,{H:function(){return w}});var B=f(89797),U=f(46813),V=f(11705),Z=f(91299);function w(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,_=arguments.length>1?arguments[1]:void 0,I=arguments.length>2?arguments[2]:void 0,D=-1;return(0,V.k)(_)?D=Number(_)<1?1:Number(_):(0,Z.K)(_)&&(I=_),(0,Z.K)(I)||(I=U.P),new B.y(function(A){var S=(0,V.k)(b)?b:+b-I.now();return I.schedule(N,S,{index:0,period:D,subscriber:A})})}function N(b){var _=b.index,I=b.period,D=b.subscriber;if(D.next(_),!D.closed){if(-1===I)return D.complete();b.index=_+1,this.schedule(b,I)}}},43008:function(ue,q,f){"use strict";f.d(q,{$R:function(){return D},mx:function(){return A}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(80503),N=f(78985),b=f(39874),_=f(81695),I=f(32124);function D(){for(var R=arguments.length,k=new Array(R),E=0;E<R;E++)k[E]=arguments[E];var x=k[k.length-1];return"function"==typeof x&&k.pop(),(0,w.n)(k,void 0).lift(new A(x))}var A=function(){function R(k){(0,V.Z)(this,R),this.resultSelector=k}return(0,Z.Z)(R,[{key:"call",value:function(E,x){return x.subscribe(new S(E,this.resultSelector))}}]),R}(),S=function(R){(0,B.Z)(E,R);var k=(0,U.Z)(E);function E(x,O){var F;return arguments.length>2&&void 0!==arguments[2]||Object.create(null),(0,V.Z)(this,E),(F=k.call(this,x)).resultSelector=O,F.iterators=[],F.active=0,F.resultSelector="function"==typeof O?O:void 0,F}return(0,Z.Z)(E,[{key:"_next",value:function(O){var F=this.iterators;(0,N.k)(O)?F.push(new g(O)):F.push("function"==typeof O[_.hZ]?new v(O[_.hZ]()):new T(this.destination,this,O))}},{key:"_complete",value:function(){var O=this.iterators,F=O.length;if(this.unsubscribe(),0!==F){this.active=F;for(var z=0;z<F;z++){var K=O[z];K.stillUnsubscribed?this.destination.add(K.subscribe()):this.active--}}else this.destination.complete()}},{key:"notifyInactive",value:function(){this.active--,0===this.active&&this.destination.complete()}},{key:"checkIterators",value:function(){for(var O=this.iterators,F=O.length,z=this.destination,K=0;K<F;K++){var j=O[K];if("function"==typeof j.hasValue&&!j.hasValue())return}for(var J=!1,ee=[],$=0;$<F;$++){var ae=O[$],se=ae.next();if(ae.hasCompleted()&&(J=!0),se.done)return void z.complete();ee.push(se.value)}this.resultSelector?this._tryresultSelector(ee):z.next(ee),J&&z.complete()}},{key:"_tryresultSelector",value:function(O){var F;try{F=this.resultSelector.apply(this,O)}catch(z){return void this.destination.error(z)}this.destination.next(F)}}]),E}(b.L),v=function(){function R(k){(0,V.Z)(this,R),this.iterator=k,this.nextResult=k.next()}return(0,Z.Z)(R,[{key:"hasValue",value:function(){return!0}},{key:"next",value:function(){var E=this.nextResult;return this.nextResult=this.iterator.next(),E}},{key:"hasCompleted",value:function(){var E=this.nextResult;return Boolean(E&&E.done)}}]),R}(),g=function(){function R(k){(0,V.Z)(this,R),this.array=k,this.index=0,this.length=0,this.length=k.length}return(0,Z.Z)(R,[{key:_.hZ,value:function(){return this}},{key:"next",value:function(E){var x=this.index++;return x<this.length?{value:this.array[x],done:!1}:{value:null,done:!0}}},{key:"hasValue",value:function(){return this.array.length>this.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),R}(),T=function(R){(0,B.Z)(E,R);var k=(0,U.Z)(E);function E(x,O,F){var z;return(0,V.Z)(this,E),(z=k.call(this,x)).parent=O,z.observable=F,z.stillUnsubscribed=!0,z.buffer=[],z.isComplete=!1,z}return(0,Z.Z)(E,[{key:_.hZ,value:function(){return this}},{key:"next",value:function(){var O=this.buffer;return 0===O.length&&this.isComplete?{value:null,done:!0}:{value:O.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(O){this.buffer.push(O),this.parent.checkIterators()}},{key:"subscribe",value:function(){return(0,I.ft)(this.observable,new I.IY(this))}}]),E}(I.Ds)},67494:function(ue,q,f){"use strict";f.d(q,{U:function(){return N}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(32124);function N(I){return function(A){return A.lift(new b(I))}}var b=function(){function I(D){(0,V.Z)(this,I),this.durationSelector=D}return(0,Z.Z)(I,[{key:"call",value:function(A,S){return S.subscribe(new _(A,this.durationSelector))}}]),I}(),_=function(I){(0,B.Z)(A,I);var D=(0,U.Z)(A);function A(S,v){var g;return(0,V.Z)(this,A),(g=D.call(this,S)).durationSelector=v,g.hasValue=!1,g}return(0,Z.Z)(A,[{key:"_next",value:function(v){if(this.value=v,this.hasValue=!0,!this.throttled){var g;try{g=(0,this.durationSelector)(v)}catch(k){return this.destination.error(k)}var R=(0,w.ft)(g,new w.IY(this));!R||R.closed?this.clearThrottle():this.add(this.throttled=R)}}},{key:"clearThrottle",value:function(){var v=this.value,g=this.hasValue,T=this.throttled;T&&(this.remove(T),this.throttled=void 0,T.unsubscribe()),g&&(this.value=void 0,this.hasValue=!1,this.destination.next(v))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),A}(w.Ds)},54562:function(ue,q,f){"use strict";f.d(q,{e:function(){return Z}});var B=f(46813),U=f(67494),V=f(5041);function Z(w){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B.P;return(0,U.U)(function(){return(0,V.H)(w,N)})}},13426:function(ue,q,f){"use strict";f.d(q,{K:function(){return _}});var B=f(13920),U=f(89200),V=f(10509),Z=f(97154),w=f(18967),N=f(14105),b=f(32124);function _(A){return function(v){var g=new I(A),T=v.lift(g);return g.caught=T}}var I=function(){function A(S){(0,w.Z)(this,A),this.selector=S}return(0,N.Z)(A,[{key:"call",value:function(v,g){return g.subscribe(new D(v,this.selector,this.caught))}}]),A}(),D=function(A){(0,V.Z)(v,A);var S=(0,Z.Z)(v);function v(g,T,R){var k;return(0,w.Z)(this,v),(k=S.call(this,g)).selector=T,k.caught=R,k}return(0,N.Z)(v,[{key:"error",value:function(T){if(!this.isStopped){var R;try{R=this.selector(T,this.caught)}catch(x){return void(0,B.Z)((0,U.Z)(v.prototype),"error",this).call(this,x)}this._unsubscribeAndRecycle();var k=new b.IY(this);this.add(k);var E=(0,b.ft)(R,k);E!==k&&this.add(E)}}}]),v}(b.Ds)},95416:function(ue,q,f){"use strict";f.d(q,{u:function(){return U}});var B=f(65890);function U(){return(0,B.J)(1)}},38575:function(ue,q,f){"use strict";f.d(q,{b:function(){return U}});var B=f(35135);function U(V,Z){return(0,B.zg)(V,Z,1)}},75398:function(ue,q,f){"use strict";f.d(q,{Q:function(){return N}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874);function N(I){return function(D){return D.lift(new b(I,D))}}var b=function(){function I(D,A){(0,V.Z)(this,I),this.predicate=D,this.source=A}return(0,Z.Z)(I,[{key:"call",value:function(A,S){return S.subscribe(new _(A,this.predicate,this.source))}}]),I}(),_=function(I){(0,B.Z)(A,I);var D=(0,U.Z)(A);function A(S,v,g){var T;return(0,V.Z)(this,A),(T=D.call(this,S)).predicate=v,T.source=g,T.count=0,T.index=0,T}return(0,Z.Z)(A,[{key:"_next",value:function(v){this.predicate?this._tryPredicate(v):this.count++}},{key:"_tryPredicate",value:function(v){var g;try{g=this.predicate(v,this.index++,this.source)}catch(T){return void this.destination.error(T)}g&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}]),A}(w.L)},57263:function(ue,q,f){"use strict";f.d(q,{b:function(){return b}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874),N=f(46813);function b(A){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N.P;return function(v){return v.lift(new _(A,S))}}var _=function(){function A(S,v){(0,V.Z)(this,A),this.dueTime=S,this.scheduler=v}return(0,Z.Z)(A,[{key:"call",value:function(v,g){return g.subscribe(new I(v,this.dueTime,this.scheduler))}}]),A}(),I=function(A){(0,B.Z)(v,A);var S=(0,U.Z)(v);function v(g,T,R){var k;return(0,V.Z)(this,v),(k=S.call(this,g)).dueTime=T,k.scheduler=R,k.debouncedSubscription=null,k.lastValue=null,k.hasValue=!1,k}return(0,Z.Z)(v,[{key:"_next",value:function(T){this.clearDebounce(),this.lastValue=T,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(D,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var T=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(T)}}},{key:"clearDebounce",value:function(){var T=this.debouncedSubscription;null!==T&&(this.remove(T),T.unsubscribe(),this.debouncedSubscription=null)}}]),v}(w.L);function D(A){A.debouncedNext()}},34235:function(ue,q,f){"use strict";f.d(q,{d:function(){return N}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874);function N(){var I=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(D){return D.lift(new b(I))}}var b=function(){function I(D){(0,V.Z)(this,I),this.defaultValue=D}return(0,Z.Z)(I,[{key:"call",value:function(A,S){return S.subscribe(new _(A,this.defaultValue))}}]),I}(),_=function(I){(0,B.Z)(A,I);var D=(0,U.Z)(A);function A(S,v){var g;return(0,V.Z)(this,A),(g=D.call(this,S)).defaultValue=v,g.isEmpty=!0,g}return(0,Z.Z)(A,[{key:"_next",value:function(v){this.isEmpty=!1,this.destination.next(v)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),A}(w.L)},86004:function(ue,q,f){"use strict";f.d(q,{g:function(){return I}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(46813),N=f(88972),b=f(39874),_=f(80286);function I(v){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.P,T=(0,N.J)(v),R=T?+v-g.now():Math.abs(v);return function(k){return k.lift(new D(R,g))}}var D=function(){function v(g,T){(0,V.Z)(this,v),this.delay=g,this.scheduler=T}return(0,Z.Z)(v,[{key:"call",value:function(T,R){return R.subscribe(new A(T,this.delay,this.scheduler))}}]),v}(),A=function(v){(0,B.Z)(T,v);var g=(0,U.Z)(T);function T(R,k,E){var x;return(0,V.Z)(this,T),(x=g.call(this,R)).delay=k,x.scheduler=E,x.queue=[],x.active=!1,x.errored=!1,x}return(0,Z.Z)(T,[{key:"_schedule",value:function(k){this.active=!0,this.destination.add(k.schedule(T.dispatch,this.delay,{source:this,destination:this.destination,scheduler:k}))}},{key:"scheduleNotification",value:function(k){if(!0!==this.errored){var E=this.scheduler,x=new S(E.now()+this.delay,k);this.queue.push(x),!1===this.active&&this._schedule(E)}}},{key:"_next",value:function(k){this.scheduleNotification(_.P.createNext(k))}},{key:"_error",value:function(k){this.errored=!0,this.queue=[],this.destination.error(k),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(_.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(k){for(var E=k.source,x=E.queue,O=k.scheduler,F=k.destination;x.length>0&&x[0].time-O.now()<=0;)x.shift().notification.observe(F);if(x.length>0){var z=Math.max(0,x[0].time-O.now());this.schedule(k,z)}else this.unsubscribe(),E.active=!1}}]),T}(b.L),S=function v(g,T){(0,V.Z)(this,v),this.time=g,this.notification=T}},76161:function(ue,q,f){"use strict";f.d(q,{x:function(){return N}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874);function N(I,D){return function(A){return A.lift(new b(I,D))}}var b=function(){function I(D,A){(0,V.Z)(this,I),this.compare=D,this.keySelector=A}return(0,Z.Z)(I,[{key:"call",value:function(A,S){return S.subscribe(new _(A,this.compare,this.keySelector))}}]),I}(),_=function(I){(0,B.Z)(A,I);var D=(0,U.Z)(A);function A(S,v,g){var T;return(0,V.Z)(this,A),(T=D.call(this,S)).keySelector=g,T.hasKey=!1,"function"==typeof v&&(T.compare=v),T}return(0,Z.Z)(A,[{key:"compare",value:function(v,g){return v===g}},{key:"_next",value:function(v){var g;try{var T=this.keySelector;g=T?T(v):v}catch(E){return this.destination.error(E)}var R=!1;if(this.hasKey)try{R=(0,this.compare)(this.key,g)}catch(E){return this.destination.error(E)}else this.hasKey=!0;R||(this.key=g,this.destination.next(v))}}]),A}(w.L)},58780:function(ue,q,f){"use strict";f.d(q,{h:function(){return N}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874);function N(I,D){return function(S){return S.lift(new b(I,D))}}var b=function(){function I(D,A){(0,V.Z)(this,I),this.predicate=D,this.thisArg=A}return(0,Z.Z)(I,[{key:"call",value:function(A,S){return S.subscribe(new _(A,this.predicate,this.thisArg))}}]),I}(),_=function(I){(0,B.Z)(A,I);var D=(0,U.Z)(A);function A(S,v,g){var T;return(0,V.Z)(this,A),(T=D.call(this,S)).predicate=v,T.thisArg=g,T.count=0,T}return(0,Z.Z)(A,[{key:"_next",value:function(v){var g;try{g=this.predicate.call(this.thisArg,v,this.count++)}catch(T){return void this.destination.error(T)}g&&this.destination.next(v)}}]),A}(w.L)},59803:function(ue,q,f){"use strict";f.d(q,{x:function(){return b}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874),N=f(5051);function b(D){return function(A){return A.lift(new _(D))}}var _=function(){function D(A){(0,V.Z)(this,D),this.callback=A}return(0,Z.Z)(D,[{key:"call",value:function(S,v){return v.subscribe(new I(S,this.callback))}}]),D}(),I=function(D){(0,B.Z)(S,D);var A=(0,U.Z)(S);function S(v,g){var T;return(0,V.Z)(this,S),(T=A.call(this,v)).add(new N.w(g)),T}return S}(w.L)},64233:function(ue,q,f){"use strict";f.d(q,{P:function(){return b}});var B=f(64646),U=f(58780),V=f(48359),Z=f(34235),w=f(88942),N=f(57070);function b(_,I){var D=arguments.length>=2;return function(A){return A.pipe(_?(0,U.h)(function(S,v){return _(S,v,A)}):N.y,(0,V.q)(1),D?(0,Z.d)(I):(0,w.T)(function(){return new B.K}))}}},86072:function(ue,q,f){"use strict";f.d(q,{v:function(){return A},T:function(){return T}});var B=f(13920),U=f(89200),V=f(10509),Z=f(97154),w=f(18967),N=f(14105),b=f(39874),_=f(5051),I=f(89797),D=f(68707);function A(k,E,x,O){return function(F){return F.lift(new S(k,E,x,O))}}var S=function(){function k(E,x,O,F){(0,w.Z)(this,k),this.keySelector=E,this.elementSelector=x,this.durationSelector=O,this.subjectSelector=F}return(0,N.Z)(k,[{key:"call",value:function(x,O){return O.subscribe(new v(x,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),k}(),v=function(k){(0,V.Z)(x,k);var E=(0,Z.Z)(x);function x(O,F,z,K,j){var J;return(0,w.Z)(this,x),(J=E.call(this,O)).keySelector=F,J.elementSelector=z,J.durationSelector=K,J.subjectSelector=j,J.groups=null,J.attemptedToUnsubscribe=!1,J.count=0,J}return(0,N.Z)(x,[{key:"_next",value:function(F){var z;try{z=this.keySelector(F)}catch(K){return void this.error(K)}this._group(F,z)}},{key:"_group",value:function(F,z){var K=this.groups;K||(K=this.groups=new Map);var J,j=K.get(z);if(this.elementSelector)try{J=this.elementSelector(F)}catch(ae){this.error(ae)}else J=F;if(!j){j=this.subjectSelector?this.subjectSelector():new D.xQ,K.set(z,j);var ee=new T(z,j,this);if(this.destination.next(ee),this.durationSelector){var $;try{$=this.durationSelector(new T(z,j))}catch(ae){return void this.error(ae)}this.add($.subscribe(new g(z,j,this)))}}j.closed||j.next(J)}},{key:"_error",value:function(F){var z=this.groups;z&&(z.forEach(function(K,j){K.error(F)}),z.clear()),this.destination.error(F)}},{key:"_complete",value:function(){var F=this.groups;F&&(F.forEach(function(z,K){z.complete()}),F.clear()),this.destination.complete()}},{key:"removeGroup",value:function(F){this.groups.delete(F)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&(0,B.Z)((0,U.Z)(x.prototype),"unsubscribe",this).call(this))}}]),x}(b.L),g=function(k){(0,V.Z)(x,k);var E=(0,Z.Z)(x);function x(O,F,z){var K;return(0,w.Z)(this,x),(K=E.call(this,F)).key=O,K.group=F,K.parent=z,K}return(0,N.Z)(x,[{key:"_next",value:function(F){this.complete()}},{key:"_unsubscribe",value:function(){var F=this.parent,z=this.key;this.key=this.parent=null,F&&F.removeGroup(z)}}]),x}(b.L),T=function(k){(0,V.Z)(x,k);var E=(0,Z.Z)(x);function x(O,F,z){var K;return(0,w.Z)(this,x),(K=E.call(this)).key=O,K.groupSubject=F,K.refCountSubscription=z,K}return(0,N.Z)(x,[{key:"_subscribe",value:function(F){var z=new _.w,K=this.refCountSubscription,j=this.groupSubject;return K&&!K.closed&&z.add(new R(K)),z.add(j.subscribe(F)),z}}]),x}(I.y),R=function(k){(0,V.Z)(x,k);var E=(0,Z.Z)(x);function x(O){var F;return(0,w.Z)(this,x),(F=E.call(this)).parent=O,O.count++,F}return(0,N.Z)(x,[{key:"unsubscribe",value:function(){var F=this.parent;!F.closed&&!this.closed&&((0,B.Z)((0,U.Z)(x.prototype),"unsubscribe",this).call(this),F.count-=1,0===F.count&&F.attemptedToUnsubscribe&&F.unsubscribe())}}]),x}(_.w)},99583:function(ue,q,f){"use strict";f.d(q,{Z:function(){return b}});var B=f(64646),U=f(58780),V=f(64397),Z=f(88942),w=f(34235),N=f(57070);function b(_,I){var D=arguments.length>=2;return function(A){return A.pipe(_?(0,U.h)(function(S,v){return _(S,v,A)}):N.y,(0,V.h)(1),D?(0,w.d)(I):(0,Z.T)(function(){return new B.K}))}}},85639:function(ue,q,f){"use strict";f.d(q,{U:function(){return b}});var B=f(88009),U=f(10509),V=f(97154),Z=f(18967),w=f(14105),N=f(39874);function b(D,A){return function(v){if("function"!=typeof D)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return v.lift(new _(D,A))}}var _=function(){function D(A,S){(0,Z.Z)(this,D),this.project=A,this.thisArg=S}return(0,w.Z)(D,[{key:"call",value:function(S,v){return v.subscribe(new I(S,this.project,this.thisArg))}}]),D}(),I=function(D){(0,U.Z)(S,D);var A=(0,V.Z)(S);function S(v,g,T){var R;return(0,Z.Z)(this,S),(R=A.call(this,v)).project=g,R.count=0,R.thisArg=T||(0,B.Z)(R),R}return(0,w.Z)(S,[{key:"_next",value:function(g){var T;try{T=this.project.call(this.thisArg,g,this.count++)}catch(R){return void this.destination.error(R)}this.destination.next(T)}}]),S}(N.L)},12698:function(ue,q,f){"use strict";f.d(q,{h:function(){return N}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874);function N(I){return function(D){return D.lift(new b(I))}}var b=function(){function I(D){(0,V.Z)(this,I),this.value=D}return(0,Z.Z)(I,[{key:"call",value:function(A,S){return S.subscribe(new _(A,this.value))}}]),I}(),_=function(I){(0,B.Z)(A,I);var D=(0,U.Z)(A);function A(S,v){var g;return(0,V.Z)(this,A),(g=D.call(this,S)).value=v,g}return(0,Z.Z)(A,[{key:"_next",value:function(v){this.destination.next(this.value)}}]),A}(w.L)},65890:function(ue,q,f){"use strict";f.d(q,{J:function(){return V}});var B=f(35135),U=f(57070);function V(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,B.zg)(U.y,Z)}},35135:function(ue,q,f){"use strict";f.d(q,{zg:function(){return _},VS:function(){return A}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(85639),N=f(61493),b=f(32124);function _(S,v){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof v?function(T){return T.pipe(_(function(R,k){return(0,N.D)(S(R,k)).pipe((0,w.U)(function(E,x){return v(R,E,k,x)}))},g))}:("number"==typeof v&&(g=v),function(T){return T.lift(new I(S,g))})}var I=function(){function S(v){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,V.Z)(this,S),this.project=v,this.concurrent=g}return(0,Z.Z)(S,[{key:"call",value:function(g,T){return T.subscribe(new D(g,this.project,this.concurrent))}}]),S}(),D=function(S){(0,B.Z)(g,S);var v=(0,U.Z)(g);function g(T,R){var k,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return(0,V.Z)(this,g),(k=v.call(this,T)).project=R,k.concurrent=E,k.hasCompleted=!1,k.buffer=[],k.active=0,k.index=0,k}return(0,Z.Z)(g,[{key:"_next",value:function(R){this.active<this.concurrent?this._tryNext(R):this.buffer.push(R)}},{key:"_tryNext",value:function(R){var k,E=this.index++;try{k=this.project(R,E)}catch(x){return void this.destination.error(x)}this.active++,this._innerSub(k)}},{key:"_innerSub",value:function(R){var k=new b.IY(this),E=this.destination;E.add(k);var x=(0,b.ft)(R,k);x!==k&&E.add(x)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(R){this.destination.next(R)}},{key:"notifyComplete",value:function(){var R=this.buffer;this.active--,R.length>0?this._next(R.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),g}(b.Ds),A=_},4981:function(ue,q,f){"use strict";f.d(q,{O:function(){return Z}});var B=f(18967),U=f(14105),V=f(39887);function Z(N,b){return function(I){var D;if(D="function"==typeof N?N:function(){return N},"function"==typeof b)return I.lift(new w(D,b));var A=Object.create(I,V.N);return A.source=I,A.subjectFactory=D,A}}var w=function(){function N(b,_){(0,B.Z)(this,N),this.subjectFactory=b,this.selector=_}return(0,U.Z)(N,[{key:"call",value:function(_,I){var D=this.selector,A=this.subjectFactory(),S=D(A).subscribe(_);return S.add(I.subscribe(A)),S}}]),N}()},25110:function(ue,q,f){"use strict";f.d(q,{QV:function(){return b},ht:function(){return I}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874),N=f(80286);function b(A){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(g){return g.lift(new _(A,S))}}var _=function(){function A(S){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,V.Z)(this,A),this.scheduler=S,this.delay=v}return(0,Z.Z)(A,[{key:"call",value:function(v,g){return g.subscribe(new I(v,this.scheduler,this.delay))}}]),A}(),I=function(A){(0,B.Z)(v,A);var S=(0,U.Z)(v);function v(g,T){var R,k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,V.Z)(this,v),(R=S.call(this,g)).scheduler=T,R.delay=k,R}return(0,Z.Z)(v,[{key:"scheduleMessage",value:function(T){this.destination.add(this.scheduler.schedule(v.dispatch,this.delay,new D(T,this.destination)))}},{key:"_next",value:function(T){this.scheduleMessage(N.P.createNext(T))}},{key:"_error",value:function(T){this.scheduleMessage(N.P.createError(T)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(N.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(T){T.notification.observe(T.destination),this.unsubscribe()}}]),v}(w.L),D=function A(S,v){(0,V.Z)(this,A),this.notification=S,this.destination=v}},4363:function(ue,q,f){"use strict";f.d(q,{G:function(){return N}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874);function N(){return function(I){return I.lift(new b)}}var b=function(){function I(){(0,V.Z)(this,I)}return(0,Z.Z)(I,[{key:"call",value:function(A,S){return S.subscribe(new _(A))}}]),I}(),_=function(I){(0,B.Z)(A,I);var D=(0,U.Z)(A);function A(S){var v;return(0,V.Z)(this,A),(v=D.call(this,S)).hasPrev=!1,v}return(0,Z.Z)(A,[{key:"_next",value:function(v){var g;this.hasPrev?g=[this.prev,v]:this.hasPrev=!0,this.prev=v,g&&this.destination.next(g)}}]),A}(w.L)},26575:function(ue,q,f){"use strict";f.d(q,{x:function(){return N}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874);function N(){return function(D){return D.lift(new b(D))}}var b=function(){function I(D){(0,V.Z)(this,I),this.connectable=D}return(0,Z.Z)(I,[{key:"call",value:function(A,S){var v=this.connectable;v._refCount++;var g=new _(A,v),T=S.subscribe(g);return g.closed||(g.connection=v.connect()),T}}]),I}(),_=function(I){(0,B.Z)(A,I);var D=(0,U.Z)(A);function A(S,v){var g;return(0,V.Z)(this,A),(g=D.call(this,S)).connectable=v,g}return(0,Z.Z)(A,[{key:"_unsubscribe",value:function(){var v=this.connectable;if(v){this.connectable=null;var g=v._refCount;if(g<=0)this.connection=null;else if(v._refCount=g-1,g>1)this.connection=null;else{var T=this.connection,R=v._connection;this.connection=null,R&&(!T||R===T)&&R.unsubscribe()}}else this.connection=null}}]),A}(w.L)},31927:function(ue,q,f){"use strict";f.d(q,{R:function(){return N}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874);function N(I,D){var A=!1;return arguments.length>=2&&(A=!0),function(v){return v.lift(new b(I,D,A))}}var b=function(){function I(D,A){var S=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,V.Z)(this,I),this.accumulator=D,this.seed=A,this.hasSeed=S}return(0,Z.Z)(I,[{key:"call",value:function(A,S){return S.subscribe(new _(A,this.accumulator,this.seed,this.hasSeed))}}]),I}(),_=function(I){(0,B.Z)(A,I);var D=(0,U.Z)(A);function A(S,v,g,T){var R;return(0,V.Z)(this,A),(R=D.call(this,S)).accumulator=v,R._seed=g,R.hasSeed=T,R.index=0,R}return(0,Z.Z)(A,[{key:"seed",get:function(){return this._seed},set:function(v){this.hasSeed=!0,this._seed=v}},{key:"_next",value:function(v){if(this.hasSeed)return this._tryNext(v);this.seed=v,this.destination.next(v)}},{key:"_tryNext",value:function(v){var T,g=this.index++;try{T=this.accumulator(this.seed,v,g)}catch(R){this.destination.error(R)}this.seed=T,this.destination.next(T)}}]),A}(w.L)},16338:function(ue,q,f){"use strict";f.d(q,{B:function(){return w}});var B=f(4981),U=f(26575),V=f(68707);function Z(){return new V.xQ}function w(){return function(N){return(0,U.x)()((0,B.O)(Z)(N))}}},61106:function(ue,q,f){"use strict";f.d(q,{d:function(){return U}});var B=f(82667);function U(Z,w,N){var b;return b=Z&&"object"==typeof Z?Z:{bufferSize:Z,windowTime:w,refCount:!1,scheduler:N},function(_){return _.lift(function(Z){var A,v,w=Z.bufferSize,N=void 0===w?Number.POSITIVE_INFINITY:w,b=Z.windowTime,_=void 0===b?Number.POSITIVE_INFINITY:b,I=Z.refCount,D=Z.scheduler,S=0,g=!1,T=!1;return function(k){var E;S++,!A||g?(g=!1,A=new B.t(N,_,D),E=A.subscribe(this),v=k.subscribe({next:function(O){A.next(O)},error:function(O){g=!0,A.error(O)},complete:function(){T=!0,v=void 0,A.complete()}}),T&&(v=void 0)):E=A.subscribe(this),this.add(function(){S--,E.unsubscribe(),E=void 0,v&&!T&&I&&0===S&&(v.unsubscribe(),v=void 0,A=void 0)})}}(b))}}},18756:function(ue,q,f){"use strict";f.d(q,{T:function(){return N}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874);function N(I){return function(D){return D.lift(new b(I))}}var b=function(){function I(D){(0,V.Z)(this,I),this.total=D}return(0,Z.Z)(I,[{key:"call",value:function(A,S){return S.subscribe(new _(A,this.total))}}]),I}(),_=function(I){(0,B.Z)(A,I);var D=(0,U.Z)(A);function A(S,v){var g;return(0,V.Z)(this,A),(g=D.call(this,S)).total=v,g.count=0,g}return(0,Z.Z)(A,[{key:"_next",value:function(v){++this.count>this.total&&this.destination.next(v)}}]),A}(w.L)},57682:function(ue,q,f){"use strict";f.d(q,{O:function(){return V}});var B=f(60131),U=f(91299);function V(){for(var Z=arguments.length,w=new Array(Z),N=0;N<Z;N++)w[N]=arguments[N];var b=w[w.length-1];return(0,U.K)(b)?(w.pop(),function(_){return(0,B.z)(w,_,b)}):function(_){return(0,B.z)(w,_)}}},34487:function(ue,q,f){"use strict";f.d(q,{w:function(){return D}});var B=f(13920),U=f(89200),V=f(10509),Z=f(97154),w=f(18967),N=f(14105),b=f(85639),_=f(61493),I=f(32124);function D(v,g){return"function"==typeof g?function(T){return T.pipe(D(function(R,k){return(0,_.D)(v(R,k)).pipe((0,b.U)(function(E,x){return g(R,E,k,x)}))}))}:function(T){return T.lift(new A(v))}}var A=function(){function v(g){(0,w.Z)(this,v),this.project=g}return(0,N.Z)(v,[{key:"call",value:function(T,R){return R.subscribe(new S(T,this.project))}}]),v}(),S=function(v){(0,V.Z)(T,v);var g=(0,Z.Z)(T);function T(R,k){var E;return(0,w.Z)(this,T),(E=g.call(this,R)).project=k,E.index=0,E}return(0,N.Z)(T,[{key:"_next",value:function(k){var E,x=this.index++;try{E=this.project(k,x)}catch(O){return void this.destination.error(O)}this._innerSub(E)}},{key:"_innerSub",value:function(k){var E=this.innerSubscription;E&&E.unsubscribe();var x=new I.IY(this),O=this.destination;O.add(x),this.innerSubscription=(0,I.ft)(k,x),this.innerSubscription!==x&&O.add(this.innerSubscription)}},{key:"_complete",value:function(){var k=this.innerSubscription;(!k||k.closed)&&(0,B.Z)((0,U.Z)(T.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&(0,B.Z)((0,U.Z)(T.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(k){this.destination.next(k)}}]),T}(I.Ds)},48359:function(ue,q,f){"use strict";f.d(q,{q:function(){return _}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874),N=f(9855),b=f(93487);function _(A){return function(S){return 0===A?(0,b.c)():S.lift(new I(A))}}var I=function(){function A(S){if((0,V.Z)(this,A),this.total=S,this.total<0)throw new N.W}return(0,Z.Z)(A,[{key:"call",value:function(v,g){return g.subscribe(new D(v,this.total))}}]),A}(),D=function(A){(0,B.Z)(v,A);var S=(0,U.Z)(v);function v(g,T){var R;return(0,V.Z)(this,v),(R=S.call(this,g)).total=T,R.count=0,R}return(0,Z.Z)(v,[{key:"_next",value:function(T){var R=this.total,k=++this.count;k<=R&&(this.destination.next(T),k===R&&(this.destination.complete(),this.unsubscribe()))}}]),v}(w.L)},64397:function(ue,q,f){"use strict";f.d(q,{h:function(){return _}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874),N=f(9855),b=f(93487);function _(A){return function(v){return 0===A?(0,b.c)():v.lift(new I(A))}}var I=function(){function A(S){if((0,V.Z)(this,A),this.total=S,this.total<0)throw new N.W}return(0,Z.Z)(A,[{key:"call",value:function(v,g){return g.subscribe(new D(v,this.total))}}]),A}(),D=function(A){(0,B.Z)(v,A);var S=(0,U.Z)(v);function v(g,T){var R;return(0,V.Z)(this,v),(R=S.call(this,g)).total=T,R.ring=new Array,R.count=0,R}return(0,Z.Z)(v,[{key:"_next",value:function(T){var R=this.ring,k=this.total,E=this.count++;R.length<k?R.push(T):R[E%k]=T}},{key:"_complete",value:function(){var T=this.destination,R=this.count;if(R>0)for(var k=this.count>=this.total?this.total:this.count,E=this.ring,x=0;x<k;x++){var O=R++%k;T.next(E[O])}T.complete()}}]),v}(w.L)},44213:function(ue,q,f){"use strict";f.d(q,{R:function(){return N}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(32124);function N(I){return function(D){return D.lift(new b(I))}}var b=function(){function I(D){(0,V.Z)(this,I),this.notifier=D}return(0,Z.Z)(I,[{key:"call",value:function(A,S){var v=new _(A),g=(0,w.ft)(this.notifier,new w.IY(v));return g&&!v.seenValue?(v.add(g),S.subscribe(v)):v}}]),I}(),_=function(I){(0,B.Z)(A,I);var D=(0,U.Z)(A);function A(S){var v;return(0,V.Z)(this,A),(v=D.call(this,S)).seenValue=!1,v}return(0,Z.Z)(A,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),A}(w.Ds)},49196:function(ue,q,f){"use strict";f.d(q,{o:function(){return N}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(39874);function N(I){var D=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(A){return A.lift(new b(I,D))}}var b=function(){function I(D,A){(0,V.Z)(this,I),this.predicate=D,this.inclusive=A}return(0,Z.Z)(I,[{key:"call",value:function(A,S){return S.subscribe(new _(A,this.predicate,this.inclusive))}}]),I}(),_=function(I){(0,B.Z)(A,I);var D=(0,U.Z)(A);function A(S,v,g){var T;return(0,V.Z)(this,A),(T=D.call(this,S)).predicate=v,T.inclusive=g,T.index=0,T}return(0,Z.Z)(A,[{key:"_next",value:function(v){var T,g=this.destination;try{T=this.predicate(v,this.index++)}catch(R){return void g.error(R)}this.nextOrComplete(v,T)}},{key:"nextOrComplete",value:function(v,g){var T=this.destination;Boolean(g)?T.next(v):(this.inclusive&&T.next(v),T.complete())}}]),A}(w.L)},59371:function(ue,q,f){"use strict";f.d(q,{b:function(){return I}});var B=f(88009),U=f(10509),V=f(97154),Z=f(18967),w=f(14105),N=f(39874),b=f(66029),_=f(20684);function I(S,v,g){return function(R){return R.lift(new D(S,v,g))}}var D=function(){function S(v,g,T){(0,Z.Z)(this,S),this.nextOrObserver=v,this.error=g,this.complete=T}return(0,w.Z)(S,[{key:"call",value:function(g,T){return T.subscribe(new A(g,this.nextOrObserver,this.error,this.complete))}}]),S}(),A=function(S){(0,U.Z)(g,S);var v=(0,V.Z)(g);function g(T,R,k,E){var x;return(0,Z.Z)(this,g),(x=v.call(this,T))._tapNext=b.Z,x._tapError=b.Z,x._tapComplete=b.Z,x._tapError=k||b.Z,x._tapComplete=E||b.Z,(0,_.m)(R)?(x._context=(0,B.Z)(x),x._tapNext=R):R&&(x._context=R,x._tapNext=R.next||b.Z,x._tapError=R.error||b.Z,x._tapComplete=R.complete||b.Z),x}return(0,w.Z)(g,[{key:"_next",value:function(R){try{this._tapNext.call(this._context,R)}catch(k){return void this.destination.error(k)}this.destination.next(R)}},{key:"_error",value:function(R){try{this._tapError.call(this._context,R)}catch(k){return void this.destination.error(k)}this.destination.error(R)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(R){return void this.destination.error(R)}return this.destination.complete()}}]),g}(N.L)},243:function(ue,q,f){"use strict";f.d(q,{d:function(){return N},P:function(){return b}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(32124),N={leading:!0,trailing:!1};function b(D){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N;return function(S){return S.lift(new _(D,!!A.leading,!!A.trailing))}}var _=function(){function D(A,S,v){(0,V.Z)(this,D),this.durationSelector=A,this.leading=S,this.trailing=v}return(0,Z.Z)(D,[{key:"call",value:function(S,v){return v.subscribe(new I(S,this.durationSelector,this.leading,this.trailing))}}]),D}(),I=function(D){(0,B.Z)(S,D);var A=(0,U.Z)(S);function S(v,g,T,R){var k;return(0,V.Z)(this,S),(k=A.call(this,v)).destination=v,k.durationSelector=g,k._leading=T,k._trailing=R,k._hasValue=!1,k}return(0,Z.Z)(S,[{key:"_next",value:function(g){this._hasValue=!0,this._sendValue=g,this._throttled||(this._leading?this.send():this.throttle(g))}},{key:"send",value:function(){var T=this._sendValue;this._hasValue&&(this.destination.next(T),this.throttle(T)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(g){var T=this.tryDurationSelector(g);T&&this.add(this._throttled=(0,w.ft)(T,new w.IY(this)))}},{key:"tryDurationSelector",value:function(g){try{return this.durationSelector(g)}catch(T){return this.destination.error(T),null}}},{key:"throttlingDone",value:function(){var g=this._throttled,T=this._trailing;g&&g.unsubscribe(),this._throttled=void 0,T&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),S}(w.Ds)},88942:function(ue,q,f){"use strict";f.d(q,{T:function(){return b}});var B=f(10509),U=f(97154),V=f(18967),Z=f(14105),w=f(64646),N=f(39874);function b(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;return function(S){return S.lift(new _(A))}}var _=function(){function A(S){(0,V.Z)(this,A),this.errorFactory=S}return(0,Z.Z)(A,[{key:"call",value:function(v,g){return g.subscribe(new I(v,this.errorFactory))}}]),A}(),I=function(A){(0,B.Z)(v,A);var S=(0,U.Z)(v);function v(g,T){var R;return(0,V.Z)(this,v),(R=S.call(this,g)).errorFactory=T,R.hasValue=!1,R}return(0,Z.Z)(v,[{key:"_next",value:function(T){this.hasValue=!0,this.destination.next(T)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var T;try{T=this.errorFactory()}catch(R){T=R}this.destination.error(T)}}]),v}(N.L);function D(){return new w.K}},73445:function(ue,q,f){"use strict";f.d(q,{J:function(){return N},R:function(){return b}});var B=f(18967),U=f(46813),V=f(31927),Z=f(4499),w=f(85639);function N(){var _=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U.P;return function(I){return(0,Z.P)(function(){return I.pipe((0,V.R)(function(D,A){var S=D.current;return{value:A,current:_.now(),last:S}},{current:_.now(),value:void 0,last:void 0}),(0,w.U)(function(D){return new b(D.value,D.current-D.last)}))})}}var b=function _(I,D){(0,B.Z)(this,_),this.value=I,this.interval=D}},63706:function(ue,q,f){"use strict";f.d(q,{A:function(){return Z},E:function(){return w}});var B=f(18967),U=f(46813),V=f(85639);function Z(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U.P;return(0,V.U)(function(b){return new w(b,N.now())})}var w=function N(b,_){(0,B.Z)(this,N),this.value=b,this.timestamp=_}},55835:function(ue,q,f){"use strict";f.d(q,{r:function(){return V}});var B=f(89797),U=f(5051);function V(Z,w){return new B.y(function(N){var b=new U.w,_=0;return b.add(w.schedule(function(){_!==Z.length?(N.next(Z[_++]),N.closed||b.add(this.schedule())):N.complete()})),b})}},60612:function(ue,q,f){"use strict";f.d(q,{Q:function(){return Z}});var B=f(89797),U=f(5051),V=f(81695);function Z(w,N){if(!w)throw new Error("Iterable cannot be null");return new B.y(function(b){var I,_=new U.w;return _.add(function(){I&&"function"==typeof I.return&&I.return()}),_.add(N.schedule(function(){I=w[V.hZ](),_.add(N.schedule(function(){if(!b.closed){var D,A;try{var S=I.next();D=S.value,A=S.done}catch(v){return void b.error(v)}A?b.complete():(b.next(D),this.schedule())}}))})),_})}},10498:function(ue,q,f){"use strict";f.d(q,{c:function(){return V}});var B=f(89797),U=f(5051);function V(Z,w){return new B.y(function(N){var b=new U.w;return b.add(w.schedule(function(){return Z.then(function(_){b.add(w.schedule(function(){N.next(_),b.add(w.schedule(function(){return N.complete()}))}))},function(_){b.add(w.schedule(function(){return N.error(_)}))})})),b})}},77493:function(ue,q,f){"use strict";f.d(q,{x:function(){return S}});var B=f(89797),U=f(5051),V=f(57694),w=f(10498),N=f(55835),b=f(60612),_=f(19104),I=f(36514),D=f(30621),A=f(2762);function S(v,g){if(null!=v){if((0,_.c)(v))return function(v,g){return new B.y(function(T){var R=new U.w;return R.add(g.schedule(function(){var k=v[V.L]();R.add(k.subscribe({next:function(x){R.add(g.schedule(function(){return T.next(x)}))},error:function(x){R.add(g.schedule(function(){return T.error(x)}))},complete:function(){R.add(g.schedule(function(){return T.complete()}))}}))})),R})}(v,g);if((0,I.t)(v))return(0,w.c)(v,g);if((0,D.z)(v))return(0,N.r)(v,g);if((0,A.T)(v)||"string"==typeof v)return(0,b.Q)(v,g)}throw new TypeError((null!==v&&typeof v||v)+" is not observable")}},4065:function(ue,q,f){"use strict";f.d(q,{o:function(){return b}});var B=f(18967),U=f(14105),V=f(10509),Z=f(97154),b=function(_){(0,V.Z)(D,_);var I=(0,Z.Z)(D);function D(A,S){var v;return(0,B.Z)(this,D),(v=I.call(this,A,S)).scheduler=A,v.work=S,v.pending=!1,v}return(0,U.Z)(D,[{key:"schedule",value:function(S){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=S;var g=this.id,T=this.scheduler;return null!=g&&(this.id=this.recycleAsyncId(T,g,v)),this.pending=!0,this.delay=v,this.id=this.id||this.requestAsyncId(T,this.id,v),this}},{key:"requestAsyncId",value:function(S,v){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(S.flush.bind(S,this),g)}},{key:"recycleAsyncId",value:function(S,v){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==g&&this.delay===g&&!1===this.pending)return v;clearInterval(v)}},{key:"execute",value:function(S,v){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var g=this._execute(S,v);if(g)return g;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(S,v){var g=!1,T=void 0;try{this.work(S)}catch(R){g=!0,T=!!R&&R||new Error(R)}if(g)return this.unsubscribe(),T}},{key:"_unsubscribe",value:function(){var S=this.id,v=this.scheduler,g=v.actions,T=g.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==T&&g.splice(T,1),null!=S&&(this.id=this.recycleAsyncId(v,S,null)),this.delay=null}}]),D}(function(_){(0,V.Z)(D,_);var I=(0,Z.Z)(D);function D(A,S){return(0,B.Z)(this,D),I.call(this)}return(0,U.Z)(D,[{key:"schedule",value:function(S){return this}}]),D}(f(5051).w))},81572:function(ue,q,f){"use strict";f.d(q,{v:function(){return I}});var B=f(18967),U=f(14105),V=f(88009),Z=f(13920),w=f(89200),N=f(10509),b=f(97154),_=f(67801),I=function(D){(0,N.Z)(S,D);var A=(0,b.Z)(S);function S(v){var g,T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.b.now;return(0,B.Z)(this,S),(g=A.call(this,v,function(){return S.delegate&&S.delegate!==(0,V.Z)(g)?S.delegate.now():T()})).actions=[],g.active=!1,g.scheduled=void 0,g}return(0,U.Z)(S,[{key:"schedule",value:function(g){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,R=arguments.length>2?arguments[2]:void 0;return S.delegate&&S.delegate!==this?S.delegate.schedule(g,T,R):(0,Z.Z)((0,w.Z)(S.prototype),"schedule",this).call(this,g,T,R)}},{key:"flush",value:function(g){var T=this.actions;if(this.active)T.push(g);else{var R;this.active=!0;do{if(R=g.execute(g.state,g.delay))break}while(g=T.shift());if(this.active=!1,R){for(;g=T.shift();)g.unsubscribe();throw R}}}}]),S}(_.b)},2296:function(ue,q,f){"use strict";f.d(q,{y:function(){return I},h:function(){return D}});var B=f(13920),U=f(89200),V=f(18967),Z=f(14105),w=f(10509),N=f(97154),b=f(4065),_=f(81572),I=function(){var A=function(S){(0,w.Z)(g,S);var v=(0,N.Z)(g);function g(){var T,R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return(0,V.Z)(this,g),(T=v.call(this,R,function(){return T.frame})).maxFrames=k,T.frame=0,T.index=-1,T}return(0,Z.Z)(g,[{key:"flush",value:function(){for(var E,x,R=this.actions,k=this.maxFrames;(x=R[0])&&x.delay<=k&&(R.shift(),this.frame=x.delay,!(E=x.execute(x.state,x.delay))););if(E){for(;x=R.shift();)x.unsubscribe();throw E}}}]),g}(_.v);return A.frameTimeFactor=10,A}(),D=function(A){(0,w.Z)(v,A);var S=(0,N.Z)(v);function v(g,T){var R,k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.index+=1;return(0,V.Z)(this,v),(R=S.call(this,g,T)).scheduler=g,R.work=T,R.index=k,R.active=!0,R.index=g.index=k,R}return(0,Z.Z)(v,[{key:"schedule",value:function(T){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return(0,B.Z)((0,U.Z)(v.prototype),"schedule",this).call(this,T,R);this.active=!1;var k=new v(this.scheduler,this.work);return this.add(k),k.schedule(T,R)}},{key:"requestAsyncId",value:function(T,R){var k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=T.frame+k;var E=T.actions;return E.push(this),E.sort(v.sortActions),!0}},{key:"recycleAsyncId",value:function(T,R){}},{key:"_execute",value:function(T,R){if(!0===this.active)return(0,B.Z)((0,U.Z)(v.prototype),"_execute",this).call(this,T,R)}}],[{key:"sortActions",value:function(T,R){return T.delay===R.delay?T.index===R.index?0:T.index>R.index?1:-1:T.delay>R.delay?1:-1}}]),v}(b.o)},58172:function(ue,q,f){"use strict";f.d(q,{r:function(){return S},Z:function(){return A}});var B=f(18967),U=f(14105),V=f(13920),Z=f(89200),w=f(10509),N=f(97154),_=function(v){(0,w.Z)(T,v);var g=(0,N.Z)(T);function T(R,k){var E;return(0,B.Z)(this,T),(E=g.call(this,R,k)).scheduler=R,E.work=k,E}return(0,U.Z)(T,[{key:"requestAsyncId",value:function(k,E){var x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==x&&x>0?(0,V.Z)((0,Z.Z)(T.prototype),"requestAsyncId",this).call(this,k,E,x):(k.actions.push(this),k.scheduled||(k.scheduled=requestAnimationFrame(function(){return k.flush(null)})))}},{key:"recycleAsyncId",value:function(k,E){var x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==x&&x>0||null===x&&this.delay>0)return(0,V.Z)((0,Z.Z)(T.prototype),"recycleAsyncId",this).call(this,k,E,x);0===k.actions.length&&(cancelAnimationFrame(E),k.scheduled=void 0)}}]),T}(f(4065).o),A=new(function(v){(0,w.Z)(T,v);var g=(0,N.Z)(T);function T(){return(0,B.Z)(this,T),g.apply(this,arguments)}return(0,U.Z)(T,[{key:"flush",value:function(k){this.active=!0,this.scheduled=void 0;var x,E=this.actions,O=-1,F=E.length;k=k||E.shift();do{if(x=k.execute(k.state,k.delay))break}while(++O<F&&(k=E.shift()));if(this.active=!1,x){for(;++O<F&&(k=E.shift());)k.unsubscribe();throw x}}}]),T}(f(81572).v))(_),S=A},8285:function(ue,q,f){"use strict";f.d(q,{e:function(){return v},E:function(){return S}});var B=f(18967),U=f(14105),V=f(13920),Z=f(89200),w=f(10509),N=f(97154),b=f(96421),I=function(g){(0,w.Z)(R,g);var T=(0,N.Z)(R);function R(k,E){var x;return(0,B.Z)(this,R),(x=T.call(this,k,E)).scheduler=k,x.work=E,x}return(0,U.Z)(R,[{key:"requestAsyncId",value:function(E,x){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==O&&O>0?(0,V.Z)((0,Z.Z)(R.prototype),"requestAsyncId",this).call(this,E,x,O):(E.actions.push(this),E.scheduled||(E.scheduled=b.H.setImmediate(E.flush.bind(E,null))))}},{key:"recycleAsyncId",value:function(E,x){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==O&&O>0||null===O&&this.delay>0)return(0,V.Z)((0,Z.Z)(R.prototype),"recycleAsyncId",this).call(this,E,x,O);0===E.actions.length&&(b.H.clearImmediate(x),E.scheduled=void 0)}}]),R}(f(4065).o),S=new(function(g){(0,w.Z)(R,g);var T=(0,N.Z)(R);function R(){return(0,B.Z)(this,R),T.apply(this,arguments)}return(0,U.Z)(R,[{key:"flush",value:function(E){this.active=!0,this.scheduled=void 0;var O,x=this.actions,F=-1,z=x.length;E=E||x.shift();do{if(O=E.execute(E.state,E.delay))break}while(++F<z&&(E=x.shift()));if(this.active=!1,O){for(;++F<z&&(E=x.shift());)E.unsubscribe();throw O}}}]),R}(f(81572).v))(I),v=S},46813:function(ue,q,f){"use strict";f.d(q,{z:function(){return V},P:function(){return Z}});var B=f(4065),V=new(f(81572).v)(B.o),Z=V},60641:function(ue,q,f){"use strict";f.d(q,{c:function(){return S},N:function(){return A}});var B=f(18967),U=f(14105),V=f(13920),Z=f(89200),w=f(10509),N=f(97154),_=function(v){(0,w.Z)(T,v);var g=(0,N.Z)(T);function T(R,k){var E;return(0,B.Z)(this,T),(E=g.call(this,R,k)).scheduler=R,E.work=k,E}return(0,U.Z)(T,[{key:"schedule",value:function(k){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return E>0?(0,V.Z)((0,Z.Z)(T.prototype),"schedule",this).call(this,k,E):(this.delay=E,this.state=k,this.scheduler.flush(this),this)}},{key:"execute",value:function(k,E){return E>0||this.closed?(0,V.Z)((0,Z.Z)(T.prototype),"execute",this).call(this,k,E):this._execute(k,E)}},{key:"requestAsyncId",value:function(k,E){var x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==x&&x>0||null===x&&this.delay>0?(0,V.Z)((0,Z.Z)(T.prototype),"requestAsyncId",this).call(this,k,E,x):k.flush(this)}}]),T}(f(4065).o),A=new(function(v){(0,w.Z)(T,v);var g=(0,N.Z)(T);function T(){return(0,B.Z)(this,T),g.apply(this,arguments)}return T}(f(81572).v))(_),S=A},81695:function(ue,q,f){"use strict";function B(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}f.d(q,{hZ:function(){return U}});var U=B()},57694:function(ue,q,f){"use strict";f.d(q,{L:function(){return B}});var B=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},79542:function(ue,q,f){"use strict";f.d(q,{b:function(){return B}});var B=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},9855:function(ue,q,f){"use strict";f.d(q,{W:function(){return U}});var U=function(){function V(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return V.prototype=Object.create(Error.prototype),V}()},64646:function(ue,q,f){"use strict";f.d(q,{K:function(){return U}});var U=function(){function V(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return V.prototype=Object.create(Error.prototype),V}()},96421:function(ue,q,f){"use strict";f.d(q,{H:function(){return w}});var B=1,U=function(){return Promise.resolve()}(),V={};function Z(b){return b in V&&(delete V[b],!0)}var w={setImmediate:function(_){var I=B++;return V[I]=!0,U.then(function(){return Z(I)&&_()}),I},clearImmediate:function(_){Z(_)}}},1696:function(ue,q,f){"use strict";f.d(q,{N:function(){return U}});var U=function(){function V(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return V.prototype=Object.create(Error.prototype),V}()},98691:function(ue,q,f){"use strict";f.d(q,{W:function(){return U}});var U=function(){function V(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return V.prototype=Object.create(Error.prototype),V}()},66351:function(ue,q,f){"use strict";f.d(q,{B:function(){return U}});var U=function(){function V(Z){return Error.call(this),this.message=Z?"".concat(Z.length," errors occurred during unsubscription:\n").concat(Z.map(function(w,N){return"".concat(N+1,") ").concat(w.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=Z,this}return V.prototype=Object.create(Error.prototype),V}()},2808:function(ue,q,f){"use strict";function B(U,V){for(var Z=0,w=V.length;Z<w;Z++)for(var N=V[Z],b=Object.getOwnPropertyNames(N.prototype),_=0,I=b.length;_<I;_++){var D=b[_];U.prototype[D]=N.prototype[D]}}f.d(q,{e:function(){return B}})},20006:function(ue,q,f){"use strict";f.d(q,{_:function(){return U}});var B=f(39874);function U(V){for(;V;){var N=V.destination;if(V.closed||V.isStopped)return!1;V=N&&N instanceof B.L?N:null}return!0}},82009:function(ue,q,f){"use strict";function B(U){setTimeout(function(){throw U},0)}f.d(q,{z:function(){return B}})},57070:function(ue,q,f){"use strict";function B(U){return U}f.d(q,{y:function(){return B}})},78985:function(ue,q,f){"use strict";f.d(q,{k:function(){return B}});var B=function(){return Array.isArray||function(U){return U&&"number"==typeof U.length}}()},30621:function(ue,q,f){"use strict";f.d(q,{z:function(){return B}});var B=function(V){return V&&"number"==typeof V.length&&"function"!=typeof V}},88972:function(ue,q,f){"use strict";function B(U){return U instanceof Date&&!isNaN(+U)}f.d(q,{J:function(){return B}})},20684:function(ue,q,f){"use strict";function B(U){return"function"==typeof U}f.d(q,{m:function(){return B}})},19104:function(ue,q,f){"use strict";f.d(q,{c:function(){return U}});var B=f(57694);function U(V){return V&&"function"==typeof V[B.L]}},2762:function(ue,q,f){"use strict";f.d(q,{T:function(){return U}});var B=f(81695);function U(V){return V&&"function"==typeof V[B.hZ]}},11705:function(ue,q,f){"use strict";f.d(q,{k:function(){return U}});var B=f(78985);function U(V){return!(0,B.k)(V)&&V-parseFloat(V)+1>=0}},64902:function(ue,q,f){"use strict";function B(U){return null!==U&&"object"==typeof U}f.d(q,{K:function(){return B}})},17504:function(ue,q,f){"use strict";f.d(q,{b:function(){return U}});var B=f(89797);function U(V){return!!V&&(V instanceof B.y||"function"==typeof V.lift&&"function"==typeof V.subscribe)}},36514:function(ue,q,f){"use strict";function B(U){return!!U&&"function"!=typeof U.subscribe&&"function"==typeof U.then}f.d(q,{t:function(){return B}})},91299:function(ue,q,f){"use strict";function B(U){return U&&"function"==typeof U.schedule}f.d(q,{K:function(){return B}})},66029:function(ue,q,f){"use strict";function B(){}f.d(q,{Z:function(){return B}})},59849:function(ue,q,f){"use strict";function B(U,V){function Z(){return!Z.pred.apply(Z.thisArg,arguments)}return Z.pred=U,Z.thisArg=V,Z}f.d(q,{f:function(){return B}})},96194:function(ue,q,f){"use strict";f.d(q,{z:function(){return U},U:function(){return V}});var B=f(57070);function U(){for(var Z=arguments.length,w=new Array(Z),N=0;N<Z;N++)w[N]=arguments[N];return V(w)}function V(Z){return 0===Z.length?B.y:1===Z.length?Z[0]:function(N){return Z.reduce(function(b,_){return _(b)},N)}}},44962:function(ue,q,f){"use strict";f.d(q,{J:function(){return Z}});var B="undefined"!=typeof window&&window,U="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,V="undefined"!=typeof global&&global,Z=B||V||U},20735:function(ue,q,f){"use strict";f.d(q,{s:function(){return D}});var B=f(22312),U=f(56112),V=f(49089),Z=f(71414),w=f(30621),N=f(36514),b=f(64902),_=f(81695),I=f(57694),D=function(S){if(S&&"function"==typeof S[I.L])return(0,Z.h)(S);if((0,w.z)(S))return(0,B.V)(S);if((0,N.t)(S))return(0,U.A)(S);if(S&&"function"==typeof S[_.hZ])return(0,V.u)(S);var v=(0,b.K)(S)?"an invalid object":"'".concat(S,"'"),g="You provided ".concat(v," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(g)}},22312:function(ue,q,f){"use strict";f.d(q,{V:function(){return B}});var B=function(V){return function(Z){for(var w=0,N=V.length;w<N&&!Z.closed;w++)Z.next(V[w]);Z.complete()}}},49089:function(ue,q,f){"use strict";f.d(q,{u:function(){return U}});var B=f(81695),U=function(Z){return function(w){for(var N=Z[B.hZ]();;){var b=void 0;try{b=N.next()}catch(_){return w.error(_),w}if(b.done){w.complete();break}if(w.next(b.value),w.closed)break}return"function"==typeof N.return&&w.add(function(){N.return&&N.return()}),w}}},71414:function(ue,q,f){"use strict";f.d(q,{h:function(){return U}});var B=f(57694),U=function(Z){return function(w){var N=Z[B.L]();if("function"!=typeof N.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return N.subscribe(w)}}},56112:function(ue,q,f){"use strict";f.d(q,{A:function(){return U}});var B=f(82009),U=function(Z){return function(w){return Z.then(function(N){w.closed||(w.next(N),w.complete())},function(N){return w.error(N)}).then(null,B.z),w}}},61454:function(ue,q,f){"use strict";f.d(q,{D:function(){return Z}});var B=f(22320),U=f(20735),V=f(89797);function Z(w,N,b,_){var I=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new B.d(w,b,_);if(!I.closed)return N instanceof V.y?N.subscribe(I):(0,U.s)(N)(I)}},3410:function(ue,q,f){"use strict";f.d(q,{Y:function(){return Z}});var B=f(39874),U=f(79542),V=f(88944);function Z(w,N,b){if(w){if(w instanceof B.L)return w;if(w[U.b])return w[U.b]()}return w||N||b?new B.L(w,N,b):new B.L(V.c)}},73033:function(ue,q,f){"use strict";f.r(q),f.d(q,{audit:function(){return B.U},auditTime:function(){return U.e},buffer:function(){return I},bufferCount:function(){return T},bufferTime:function(){return F},bufferToggle:function(){return le},bufferWhen:function(){return be},catchError:function(){return _t.K},combineAll:function(){return Ft},combineLatest:function(){return Ke},concat:function(){return xt},concatAll:function(){return vt.u},concatMap:function(){return Qt.b},concatMapTo:function(){return Ht},count:function(){return Ct.Q},debounce:function(){return qt},debounceTime:function(){return Nt.b},defaultIfEmpty:function(){return rn.d},delay:function(){return kn.g},delayWhen:function(){return Rn},dematerialize:function(){return ut},distinct:function(){return ye},distinctUntilChanged:function(){return ct.x},distinctUntilKeyChanged:function(){return ft},elementAt:function(){return ln},endWith:function(){return Tn},every:function(){return In},exhaust:function(){return Sn},exhaustMap:function(){return Rt},expand:function(){return rt},filter:function(){return Kt.h},finalize:function(){return Ne.x},find:function(){return Le},findIndex:function(){return an},first:function(){return jn.P},flatMap:function(){return Vt.VS},groupBy:function(){return Rr.v},ignoreElements:function(){return Hr},isEmpty:function(){return co},last:function(){return po.Z},map:function(){return Ut.U},mapTo:function(){return Xo.h},materialize:function(){return no},max:function(){return Wn},merge:function(){return jt},mergeAll:function(){return Pt.J},mergeMap:function(){return Vt.zg},mergeMapTo:function(){return Gt},mergeScan:function(){return Xt},min:function(){return zn},multicast:function(){return Vn.O},observeOn:function(){return si.QV},onErrorResumeNext:function(){return Si},pairwise:function(){return Io.G},partition:function(){return ko},pluck:function(){return ii},publish:function(){return ji},publishBehavior:function(){return Vo},publishLast:function(){return Qi},publishReplay:function(){return vn},race:function(){return ho},reduce:function(){return ki},refCount:function(){return Ui.x},repeat:function(){return xi},repeatWhen:function(){return fa},retry:function(){return fs},retryWhen:function(){return ka},sample:function(){return ma},sampleTime:function(){return ga},scan:function(){return fo.R},sequenceEqual:function(){return Hi},share:function(){return Ha.B},shareReplay:function(){return Pu.d},single:function(){return Ki},skip:function(){return tn.T},skipLast:function(){return tu},skipUntil:function(){return pe},skipWhile:function(){return We},startWith:function(){return _e.O},subscribeOn:function(){return Re},switchAll:function(){return gt},switchMap:function(){return St.w},switchMapTo:function(){return Jr},take:function(){return nn.q},takeLast:function(){return fi.h},takeUntil:function(){return Vr.R},takeWhile:function(){return Pi.o},tap:function(){return _a.b},throttle:function(){return li.P},throttleTime:function(){return Mi},throwIfEmpty:function(){return Jt.T},timeInterval:function(){return ya.J},timeout:function(){return Mr},timeoutWith:function(){return Mp},timestamp:function(){return Ap.A},toArray:function(){return Dp},window:function(){return Op},windowCount:function(){return Ev},windowTime:function(){return ne},windowToggle:function(){return cn},windowWhen:function(){return Qn},withLatestFrom:function(){return br},zip:function(){return oi},zipAll:function(){return Ao}});var B=f(67494),U=f(54562),V=f(88009),Z=f(10509),w=f(97154),N=f(18967),b=f(14105),_=f(32124);function I(Be){return function(Ee){return Ee.lift(new D(Be))}}var D=function(){function Be(Ye){(0,N.Z)(this,Be),this.closingNotifier=Ye}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new A(Ee,this.closingNotifier))}}]),Be}(),A=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze){var nt;return(0,N.Z)(this,Ee),(nt=Ye.call(this,Ue)).buffer=[],nt.add((0,_.ft)(Ze,new _.IY((0,V.Z)(nt)))),nt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){this.buffer.push(Ze)}},{key:"notifyNext",value:function(){var Ze=this.buffer;this.buffer=[],this.destination.next(Ze)}}]),Ee}(_.Ds),S=f(13920),v=f(89200),g=f(39874);function T(Be){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(Ue){return Ue.lift(new R(Be,Ye))}}var R=function(){function Be(Ye,Ee){(0,N.Z)(this,Be),this.bufferSize=Ye,this.startBufferEvery=Ee,this.subscriberClass=Ee&&Ye!==Ee?E:k}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new this.subscriberClass(Ee,this.bufferSize,this.startBufferEvery))}}]),Be}(),k=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze){var nt;return(0,N.Z)(this,Ee),(nt=Ye.call(this,Ue)).bufferSize=Ze,nt.buffer=[],nt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){var nt=this.buffer;nt.push(Ze),nt.length==this.bufferSize&&(this.destination.next(nt),this.buffer=[])}},{key:"_complete",value:function(){var Ze=this.buffer;Ze.length>0&&this.destination.next(Ze),(0,S.Z)((0,v.Z)(Ee.prototype),"_complete",this).call(this)}}]),Ee}(g.L),E=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt){var Tt;return(0,N.Z)(this,Ee),(Tt=Ye.call(this,Ue)).bufferSize=Ze,Tt.startBufferEvery=nt,Tt.buffers=[],Tt.count=0,Tt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){var nt=this.bufferSize,Tt=this.startBufferEvery,sn=this.buffers,bn=this.count;this.count++,bn%Tt==0&&sn.push([]);for(var Tr=sn.length;Tr--;){var Ii=sn[Tr];Ii.push(Ze),Ii.length===nt&&(sn.splice(Tr,1),this.destination.next(Ii))}}},{key:"_complete",value:function(){for(var Ze=this.buffers,nt=this.destination;Ze.length>0;){var Tt=Ze.shift();Tt.length>0&&nt.next(Tt)}(0,S.Z)((0,v.Z)(Ee.prototype),"_complete",this).call(this)}}]),Ee}(g.L),x=f(46813),O=f(91299);function F(Be){var Ye=arguments.length,Ee=x.P;(0,O.K)(arguments[arguments.length-1])&&(Ee=arguments[arguments.length-1],Ye--);var Ue=null;Ye>=2&&(Ue=arguments[1]);var Ze=Number.POSITIVE_INFINITY;return Ye>=3&&(Ze=arguments[2]),function(Tt){return Tt.lift(new z(Be,Ue,Ze,Ee))}}var z=function(){function Be(Ye,Ee,Ue,Ze){(0,N.Z)(this,Be),this.bufferTimeSpan=Ye,this.bufferCreationInterval=Ee,this.maxBufferSize=Ue,this.scheduler=Ze}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new j(Ee,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),Be}(),K=function Be(){(0,N.Z)(this,Be),this.buffer=[]},j=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt,Tt,sn){var bn;(0,N.Z)(this,Ee),(bn=Ye.call(this,Ue)).bufferTimeSpan=Ze,bn.bufferCreationInterval=nt,bn.maxBufferSize=Tt,bn.scheduler=sn,bn.contexts=[];var Tr=bn.openContext();if(bn.timespanOnly=null==nt||nt<0,bn.timespanOnly){var Ii={subscriber:(0,V.Z)(bn),context:Tr,bufferTimeSpan:Ze};bn.add(Tr.closeAction=sn.schedule(J,Ze,Ii))}else{var ea={subscriber:(0,V.Z)(bn),context:Tr},Da={bufferTimeSpan:Ze,bufferCreationInterval:nt,subscriber:(0,V.Z)(bn),scheduler:sn};bn.add(Tr.closeAction=sn.schedule($,Ze,ea)),bn.add(sn.schedule(ee,nt,Da))}return bn}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){for(var sn,nt=this.contexts,Tt=nt.length,bn=0;bn<Tt;bn++){var Tr=nt[bn],Ii=Tr.buffer;Ii.push(Ze),Ii.length==this.maxBufferSize&&(sn=Tr)}sn&&this.onBufferFull(sn)}},{key:"_error",value:function(Ze){this.contexts.length=0,(0,S.Z)((0,v.Z)(Ee.prototype),"_error",this).call(this,Ze)}},{key:"_complete",value:function(){for(var Ze=this.contexts,nt=this.destination;Ze.length>0;){var Tt=Ze.shift();nt.next(Tt.buffer)}(0,S.Z)((0,v.Z)(Ee.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(Ze){this.closeContext(Ze);var nt=Ze.closeAction;if(nt.unsubscribe(),this.remove(nt),!this.closed&&this.timespanOnly){Ze=this.openContext();var Tt=this.bufferTimeSpan;this.add(Ze.closeAction=this.scheduler.schedule(J,Tt,{subscriber:this,context:Ze,bufferTimeSpan:Tt}))}}},{key:"openContext",value:function(){var Ze=new K;return this.contexts.push(Ze),Ze}},{key:"closeContext",value:function(Ze){this.destination.next(Ze.buffer);var nt=this.contexts;(nt?nt.indexOf(Ze):-1)>=0&&nt.splice(nt.indexOf(Ze),1)}}]),Ee}(g.L);function J(Be){var Ye=Be.subscriber,Ee=Be.context;Ee&&Ye.closeContext(Ee),Ye.closed||(Be.context=Ye.openContext(),Be.context.closeAction=this.schedule(Be,Be.bufferTimeSpan))}function ee(Be){var Ye=Be.bufferCreationInterval,Ee=Be.bufferTimeSpan,Ue=Be.subscriber,Ze=Be.scheduler,nt=Ue.openContext();Ue.closed||(Ue.add(nt.closeAction=Ze.schedule($,Ee,{subscriber:Ue,context:nt})),this.schedule(Be,Ye))}function $(Be){Be.subscriber.closeContext(Be.context)}var ae=f(5051),se=f(61454),ce=f(7283);function le(Be,Ye){return function(Ue){return Ue.lift(new oe(Be,Ye))}}var oe=function(){function Be(Ye,Ee){(0,N.Z)(this,Be),this.openings=Ye,this.closingSelector=Ee}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Ae(Ee,this.openings,this.closingSelector))}}]),Be}(),Ae=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt){var Tt;return(0,N.Z)(this,Ee),(Tt=Ye.call(this,Ue)).closingSelector=nt,Tt.contexts=[],Tt.add((0,se.D)((0,V.Z)(Tt),Ze)),Tt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){for(var nt=this.contexts,Tt=nt.length,sn=0;sn<Tt;sn++)nt[sn].buffer.push(Ze)}},{key:"_error",value:function(Ze){for(var nt=this.contexts;nt.length>0;){var Tt=nt.shift();Tt.subscription.unsubscribe(),Tt.buffer=null,Tt.subscription=null}this.contexts=null,(0,S.Z)((0,v.Z)(Ee.prototype),"_error",this).call(this,Ze)}},{key:"_complete",value:function(){for(var Ze=this.contexts;Ze.length>0;){var nt=Ze.shift();this.destination.next(nt.buffer),nt.subscription.unsubscribe(),nt.buffer=null,nt.subscription=null}this.contexts=null,(0,S.Z)((0,v.Z)(Ee.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(Ze,nt){Ze?this.closeBuffer(Ze):this.openBuffer(nt)}},{key:"notifyComplete",value:function(Ze){this.closeBuffer(Ze.context)}},{key:"openBuffer",value:function(Ze){try{var Tt=this.closingSelector.call(this,Ze);Tt&&this.trySubscribe(Tt)}catch(sn){this._error(sn)}}},{key:"closeBuffer",value:function(Ze){var nt=this.contexts;if(nt&&Ze){var sn=Ze.subscription;this.destination.next(Ze.buffer),nt.splice(nt.indexOf(Ze),1),this.remove(sn),sn.unsubscribe()}}},{key:"trySubscribe",value:function(Ze){var nt=this.contexts,sn=new ae.w,bn={buffer:[],subscription:sn};nt.push(bn);var Tr=(0,se.D)(this,Ze,bn);!Tr||Tr.closed?this.closeBuffer(bn):(Tr.context=bn,this.add(Tr),sn.add(Tr))}}]),Ee}(ce.L);function be(Be){return function(Ye){return Ye.lift(new it(Be))}}var it=function(){function Be(Ye){(0,N.Z)(this,Be),this.closingSelector=Ye}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new qe(Ee,this.closingSelector))}}]),Be}(),qe=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze){var nt;return(0,N.Z)(this,Ee),(nt=Ye.call(this,Ue)).closingSelector=Ze,nt.subscribing=!1,nt.openBuffer(),nt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){this.buffer.push(Ze)}},{key:"_complete",value:function(){var Ze=this.buffer;Ze&&this.destination.next(Ze),(0,S.Z)((0,v.Z)(Ee.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.buffer=void 0,this.subscribing=!1}},{key:"notifyNext",value:function(){this.openBuffer()}},{key:"notifyComplete",value:function(){this.subscribing?this.complete():this.openBuffer()}},{key:"openBuffer",value:function(){var Tt,Ze=this.closingSubscription;Ze&&(this.remove(Ze),Ze.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{Tt=(0,this.closingSelector)()}catch(bn){return this.error(bn)}Ze=new ae.w,this.closingSubscription=Ze,this.add(Ze),this.subscribing=!0,Ze.add((0,_.ft)(Tt,new _.IY(this))),this.subscribing=!1}}]),Ee}(_.Ds),_t=f(13426),yt=f(81370);function Ft(Be){return function(Ye){return Ye.lift(new yt.Ms(Be))}}var xe=f(62467),De=f(78985),je=f(61493);function Ke(){for(var Be=arguments.length,Ye=new Array(Be),Ee=0;Ee<Be;Ee++)Ye[Ee]=arguments[Ee];var Ue=null;return"function"==typeof Ye[Ye.length-1]&&(Ue=Ye.pop()),1===Ye.length&&(0,De.k)(Ye[0])&&(Ye=Ye[0].slice()),function(Ze){return Ze.lift.call((0,je.D)([Ze].concat((0,xe.Z)(Ye))),new yt.Ms(Ue))}}var Bt=f(60131);function xt(){for(var Be=arguments.length,Ye=new Array(Be),Ee=0;Ee<Be;Ee++)Ye[Ee]=arguments[Ee];return function(Ue){return Ue.lift.call(Bt.z.apply(void 0,[Ue].concat(Ye)))}}var vt=f(95416),Qt=f(38575);function Ht(Be,Ye){return(0,Qt.b)(function(){return Be},Ye)}var Ct=f(75398);function qt(Be){return function(Ye){return Ye.lift(new bt(Be))}}var bt=function(){function Be(Ye){(0,N.Z)(this,Be),this.durationSelector=Ye}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new en(Ee,this.durationSelector))}}]),Be}(),en=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze){var nt;return(0,N.Z)(this,Ee),(nt=Ye.call(this,Ue)).durationSelector=Ze,nt.hasValue=!1,nt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){try{var nt=this.durationSelector.call(this,Ze);nt&&this._tryNext(Ze,nt)}catch(Tt){this.destination.error(Tt)}}},{key:"_complete",value:function(){this.emitValue(),this.destination.complete()}},{key:"_tryNext",value:function(Ze,nt){var Tt=this.durationSubscription;this.value=Ze,this.hasValue=!0,Tt&&(Tt.unsubscribe(),this.remove(Tt)),(Tt=(0,_.ft)(nt,new _.IY(this)))&&!Tt.closed&&this.add(this.durationSubscription=Tt)}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){if(this.hasValue){var Ze=this.value,nt=this.durationSubscription;nt&&(this.durationSubscription=void 0,nt.unsubscribe(),this.remove(nt)),this.value=void 0,this.hasValue=!1,(0,S.Z)((0,v.Z)(Ee.prototype),"_next",this).call(this,Ze)}}}]),Ee}(_.Ds),Nt=f(57263),rn=f(34235),kn=f(86004),Ln=f(89797);function Rn(Be,Ye){return Ye?function(Ee){return new wn(Ee,Ye).lift(new $n(Be))}:function(Ee){return Ee.lift(new $n(Be))}}var $n=function(){function Be(Ye){(0,N.Z)(this,Be),this.delayDurationSelector=Ye}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Nn(Ee,this.delayDurationSelector))}}]),Be}(),Nn=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze){var nt;return(0,N.Z)(this,Ee),(nt=Ye.call(this,Ue)).delayDurationSelector=Ze,nt.completed=!1,nt.delayNotifierSubscriptions=[],nt.index=0,nt}return(0,b.Z)(Ee,[{key:"notifyNext",value:function(Ze,nt,Tt,sn,bn){this.destination.next(Ze),this.removeSubscription(bn),this.tryComplete()}},{key:"notifyError",value:function(Ze,nt){this._error(Ze)}},{key:"notifyComplete",value:function(Ze){var nt=this.removeSubscription(Ze);nt&&this.destination.next(nt),this.tryComplete()}},{key:"_next",value:function(Ze){var nt=this.index++;try{var Tt=this.delayDurationSelector(Ze,nt);Tt&&this.tryDelay(Tt,Ze)}catch(sn){this.destination.error(sn)}}},{key:"_complete",value:function(){this.completed=!0,this.tryComplete(),this.unsubscribe()}},{key:"removeSubscription",value:function(Ze){Ze.unsubscribe();var nt=this.delayNotifierSubscriptions.indexOf(Ze);return-1!==nt&&this.delayNotifierSubscriptions.splice(nt,1),Ze.outerValue}},{key:"tryDelay",value:function(Ze,nt){var Tt=(0,se.D)(this,Ze,nt);Tt&&!Tt.closed&&(this.destination.add(Tt),this.delayNotifierSubscriptions.push(Tt))}},{key:"tryComplete",value:function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}]),Ee}(ce.L),wn=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze){var nt;return(0,N.Z)(this,Ee),(nt=Ye.call(this)).source=Ue,nt.subscriptionDelay=Ze,nt}return(0,b.Z)(Ee,[{key:"_subscribe",value:function(Ze){this.subscriptionDelay.subscribe(new _r(Ze,this.source))}}]),Ee}(Ln.y),_r=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze){var nt;return(0,N.Z)(this,Ee),(nt=Ye.call(this)).parent=Ue,nt.source=Ze,nt.sourceSubscribed=!1,nt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){this.subscribeToSource()}},{key:"_error",value:function(Ze){this.unsubscribe(),this.parent.error(Ze)}},{key:"_complete",value:function(){this.unsubscribe(),this.subscribeToSource()}},{key:"subscribeToSource",value:function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}]),Ee}(g.L);function ut(){return function(Ye){return Ye.lift(new He)}}var He=function(){function Be(){(0,N.Z)(this,Be)}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new ve(Ee))}}]),Be}(),ve=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue){return(0,N.Z)(this,Ee),Ye.call(this,Ue)}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){Ze.observe(this.destination)}}]),Ee}(g.L);function ye(Be,Ye){return function(Ee){return Ee.lift(new Te(Be,Ye))}}var Te=function(){function Be(Ye,Ee){(0,N.Z)(this,Be),this.keySelector=Ye,this.flushes=Ee}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new we(Ee,this.keySelector,this.flushes))}}]),Be}(),we=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt){var Tt;return(0,N.Z)(this,Ee),(Tt=Ye.call(this,Ue)).keySelector=Ze,Tt.values=new Set,nt&&Tt.add((0,_.ft)(nt,new _.IY((0,V.Z)(Tt)))),Tt}return(0,b.Z)(Ee,[{key:"notifyNext",value:function(){this.values.clear()}},{key:"notifyError",value:function(Ze){this._error(Ze)}},{key:"_next",value:function(Ze){this.keySelector?this._useKeySelector(Ze):this._finalizeNext(Ze,Ze)}},{key:"_useKeySelector",value:function(Ze){var nt,Tt=this.destination;try{nt=this.keySelector(Ze)}catch(sn){return void Tt.error(sn)}this._finalizeNext(nt,Ze)}},{key:"_finalizeNext",value:function(Ze,nt){var Tt=this.values;Tt.has(Ze)||(Tt.add(Ze),this.destination.next(nt))}}]),Ee}(_.Ds),ct=f(76161);function ft(Be,Ye){return(0,ct.x)(function(Ee,Ue){return Ye?Ye(Ee[Be],Ue[Be]):Ee[Be]===Ue[Be]})}var Yt=f(9855),Kt=f(58780),Jt=f(88942),nn=f(48359);function ln(Be,Ye){if(Be<0)throw new Yt.W;var Ee=arguments.length>=2;return function(Ue){return Ue.pipe((0,Kt.h)(function(Ze,nt){return nt===Be}),(0,nn.q)(1),Ee?(0,rn.d)(Ye):(0,Jt.T)(function(){return new Yt.W}))}}var yn=f(43161);function Tn(){for(var Be=arguments.length,Ye=new Array(Be),Ee=0;Ee<Be;Ee++)Ye[Ee]=arguments[Ee];return function(Ue){return(0,Bt.z)(Ue,yn.of.apply(void 0,Ye))}}function In(Be,Ye){return function(Ee){return Ee.lift(new Yn(Be,Ye,Ee))}}var Yn=function(){function Be(Ye,Ee,Ue){(0,N.Z)(this,Be),this.predicate=Ye,this.thisArg=Ee,this.source=Ue}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Cn(Ee,this.predicate,this.thisArg,this.source))}}]),Be}(),Cn=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt,Tt){var sn;return(0,N.Z)(this,Ee),(sn=Ye.call(this,Ue)).predicate=Ze,sn.thisArg=nt,sn.source=Tt,sn.index=0,sn.thisArg=nt||(0,V.Z)(sn),sn}return(0,b.Z)(Ee,[{key:"notifyComplete",value:function(Ze){this.destination.next(Ze),this.destination.complete()}},{key:"_next",value:function(Ze){var nt=!1;try{nt=this.predicate.call(this.thisArg,Ze,this.index++,this.source)}catch(Tt){return void this.destination.error(Tt)}nt||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),Ee}(g.L);function Sn(){return function(Be){return Be.lift(new tr)}}var tr=function(){function Be(){(0,N.Z)(this,Be)}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new ur(Ee))}}]),Be}(),ur=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue){var Ze;return(0,N.Z)(this,Ee),(Ze=Ye.call(this,Ue)).hasCompleted=!1,Ze.hasSubscription=!1,Ze}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){this.hasSubscription||(this.hasSubscription=!0,this.add((0,_.ft)(Ze,new _.IY(this))))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),Ee}(_.Ds),Ut=f(85639);function Rt(Be,Ye){return Ye?function(Ee){return Ee.pipe(Rt(function(Ue,Ze){return(0,je.D)(Be(Ue,Ze)).pipe((0,Ut.U)(function(nt,Tt){return Ye(Ue,nt,Ze,Tt)}))}))}:function(Ee){return Ee.lift(new Lt(Be))}}var Lt=function(){function Be(Ye){(0,N.Z)(this,Be),this.project=Ye}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Oe(Ee,this.project))}}]),Be}(),Oe=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze){var nt;return(0,N.Z)(this,Ee),(nt=Ye.call(this,Ue)).project=Ze,nt.hasSubscription=!1,nt.hasCompleted=!1,nt.index=0,nt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){this.hasSubscription||this.tryNext(Ze)}},{key:"tryNext",value:function(Ze){var nt,Tt=this.index++;try{nt=this.project(Ze,Tt)}catch(sn){return void this.destination.error(sn)}this.hasSubscription=!0,this._innerSub(nt)}},{key:"_innerSub",value:function(Ze){var nt=new _.IY(this),Tt=this.destination;Tt.add(nt);var sn=(0,_.ft)(Ze,nt);sn!==nt&&Tt.add(sn)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(Ze){this.destination.next(Ze)}},{key:"notifyError",value:function(Ze){this.destination.error(Ze)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),Ee}(_.Ds);function rt(Be){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,Ee=arguments.length>2?arguments[2]:void 0;return Ye=(Ye||0)<1?Number.POSITIVE_INFINITY:Ye,function(Ue){return Ue.lift(new he(Be,Ye,Ee))}}var he=function(){function Be(Ye,Ee,Ue){(0,N.Z)(this,Be),this.project=Ye,this.concurrent=Ee,this.scheduler=Ue}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Ie(Ee,this.project,this.concurrent,this.scheduler))}}]),Be}(),Ie=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt,Tt){var sn;return(0,N.Z)(this,Ee),(sn=Ye.call(this,Ue)).project=Ze,sn.concurrent=nt,sn.scheduler=Tt,sn.index=0,sn.active=0,sn.hasCompleted=!1,nt<Number.POSITIVE_INFINITY&&(sn.buffer=[]),sn}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){var nt=this.destination;if(nt.closed)this._complete();else{var Tt=this.index++;if(this.active<this.concurrent){nt.next(Ze);try{var bn=(0,this.project)(Ze,Tt);this.scheduler?this.destination.add(this.scheduler.schedule(Ee.dispatch,0,{subscriber:this,result:bn,value:Ze,index:Tt})):this.subscribeToProjection(bn,Ze,Tt)}catch(ea){nt.error(ea)}}else this.buffer.push(Ze)}}},{key:"subscribeToProjection",value:function(Ze,nt,Tt){this.active++,this.destination.add((0,_.ft)(Ze,new _.IY(this)))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(Ze){this._next(Ze)}},{key:"notifyComplete",value:function(){var Ze=this.buffer;this.active--,Ze&&Ze.length>0&&this._next(Ze.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(Ze){Ze.subscriber.subscribeToProjection(Ze.result,Ze.value,Ze.index)}}]),Ee}(_.Ds),Ne=f(59803);function Le(Be,Ye){if("function"!=typeof Be)throw new TypeError("predicate is not a function");return function(Ee){return Ee.lift(new ze(Be,Ee,!1,Ye))}}var ze=function(){function Be(Ye,Ee,Ue,Ze){(0,N.Z)(this,Be),this.predicate=Ye,this.source=Ee,this.yieldIndex=Ue,this.thisArg=Ze}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new At(Ee,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),Be}(),At=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt,Tt,sn){var bn;return(0,N.Z)(this,Ee),(bn=Ye.call(this,Ue)).predicate=Ze,bn.source=nt,bn.yieldIndex=Tt,bn.thisArg=sn,bn.index=0,bn}return(0,b.Z)(Ee,[{key:"notifyComplete",value:function(Ze){var nt=this.destination;nt.next(Ze),nt.complete(),this.unsubscribe()}},{key:"_next",value:function(Ze){var nt=this.predicate,Tt=this.thisArg,sn=this.index++;try{nt.call(Tt||this,Ze,sn,this.source)&&this.notifyComplete(this.yieldIndex?sn:Ze)}catch(Tr){this.destination.error(Tr)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),Ee}(g.L);function an(Be,Ye){return function(Ee){return Ee.lift(new ze(Be,Ee,!0,Ye))}}var jn=f(64233),Rr=f(86072);function Hr(){return function(Ye){return Ye.lift(new yr)}}var yr=function(){function Be(){(0,N.Z)(this,Be)}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Yr(Ee))}}]),Be}(),Yr=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(){return(0,N.Z)(this,Ee),Ye.apply(this,arguments)}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){}}]),Ee}(g.L);function co(){return function(Be){return Be.lift(new Zi)}}var Zi=function(){function Be(){(0,N.Z)(this,Be)}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new bo(Ee))}}]),Be}(),bo=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue){return(0,N.Z)(this,Ee),Ye.call(this,Ue)}return(0,b.Z)(Ee,[{key:"notifyComplete",value:function(Ze){var nt=this.destination;nt.next(Ze),nt.complete()}},{key:"_next",value:function(Ze){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),Ee}(g.L),po=f(99583),Xo=f(12698),Ei=f(80286);function no(){return function(Ye){return Ye.lift(new vi)}}var vi=function(){function Be(){(0,N.Z)(this,Be)}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Yi(Ee))}}]),Be}(),Yi=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue){return(0,N.Z)(this,Ee),Ye.call(this,Ue)}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){this.destination.next(Ei.P.createNext(Ze))}},{key:"_error",value:function(Ze){var nt=this.destination;nt.next(Ei.P.createError(Ze)),nt.complete()}},{key:"_complete",value:function(){var Ze=this.destination;Ze.next(Ei.P.createComplete()),Ze.complete()}}]),Ee}(g.L),fo=f(31927),fi=f(64397),Uo=f(96194);function ki(Be,Ye){return arguments.length>=2?function(Ue){return(0,Uo.z)((0,fo.R)(Be,Ye),(0,fi.h)(1),(0,rn.d)(Ye))(Ue)}:function(Ue){return(0,Uo.z)((0,fo.R)(function(Ze,nt,Tt){return Be(Ze,nt,Tt+1)}),(0,fi.h)(1))(Ue)}}function Wn(Be){return ki("function"==typeof Be?function(Ee,Ue){return Be(Ee,Ue)>0?Ee:Ue}:function(Ee,Ue){return Ee>Ue?Ee:Ue})}var Ot=f(55371);function jt(){for(var Be=arguments.length,Ye=new Array(Be),Ee=0;Ee<Be;Ee++)Ye[Ee]=arguments[Ee];return function(Ue){return Ue.lift.call(Ot.T.apply(void 0,[Ue].concat(Ye)))}}var Pt=f(65890),Vt=f(35135);function Gt(Be,Ye){var Ee=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof Ye?(0,Vt.zg)(function(){return Be},Ye,Ee):("number"==typeof Ye&&(Ee=Ye),(0,Vt.zg)(function(){return Be},Ee))}function Xt(Be,Ye){var Ee=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(Ue){return Ue.lift(new gn(Be,Ye,Ee))}}var gn=function(){function Be(Ye,Ee,Ue){(0,N.Z)(this,Be),this.accumulator=Ye,this.seed=Ee,this.concurrent=Ue}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Gn(Ee,this.accumulator,this.seed,this.concurrent))}}]),Be}(),Gn=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt,Tt){var sn;return(0,N.Z)(this,Ee),(sn=Ye.call(this,Ue)).accumulator=Ze,sn.acc=nt,sn.concurrent=Tt,sn.hasValue=!1,sn.hasCompleted=!1,sn.buffer=[],sn.active=0,sn.index=0,sn}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){if(this.active<this.concurrent){var sn,nt=this.index++,Tt=this.destination;try{sn=(0,this.accumulator)(this.acc,Ze,nt)}catch(Tr){return Tt.error(Tr)}this.active++,this._innerSub(sn)}else this.buffer.push(Ze)}},{key:"_innerSub",value:function(Ze){var nt=new _.IY(this),Tt=this.destination;Tt.add(nt);var sn=(0,_.ft)(Ze,nt);sn!==nt&&Tt.add(sn)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}},{key:"notifyNext",value:function(Ze){var nt=this.destination;this.acc=Ze,this.hasValue=!0,nt.next(Ze)}},{key:"notifyComplete",value:function(){var Ze=this.buffer;this.active--,Ze.length>0?this._next(Ze.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),Ee}(_.Ds);function zn(Be){return ki("function"==typeof Be?function(Ee,Ue){return Be(Ee,Ue)<0?Ee:Ue}:function(Ee,Ue){return Ee<Ue?Ee:Ue})}var Vn=f(4981),si=f(25110);function Si(){for(var Be=arguments.length,Ye=new Array(Be),Ee=0;Ee<Be;Ee++)Ye[Ee]=arguments[Ee];return 1===Ye.length&&(0,De.k)(Ye[0])&&(Ye=Ye[0]),function(Ue){return Ue.lift(new Co(Ye))}}var Co=function(){function Be(Ye){(0,N.Z)(this,Be),this.nextSources=Ye}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Li(Ee,this.nextSources))}}]),Be}(),Li=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze){var nt;return(0,N.Z)(this,Ee),(nt=Ye.call(this,Ue)).destination=Ue,nt.nextSources=Ze,nt}return(0,b.Z)(Ee,[{key:"notifyError",value:function(){this.subscribeToNextSource()}},{key:"notifyComplete",value:function(){this.subscribeToNextSource()}},{key:"_error",value:function(Ze){this.subscribeToNextSource(),this.unsubscribe()}},{key:"_complete",value:function(){this.subscribeToNextSource(),this.unsubscribe()}},{key:"subscribeToNextSource",value:function(){var Ze=this.nextSources.shift();if(Ze){var nt=new _.IY(this),Tt=this.destination;Tt.add(nt);var sn=(0,_.ft)(Ze,nt);sn!==nt&&Tt.add(sn)}else this.destination.complete()}}]),Ee}(_.Ds),Io=f(4363),$o=f(59849);function ko(Be,Ye){return function(Ee){return[(0,Kt.h)(Be,Ye)(Ee),(0,Kt.h)((0,$o.f)(Be,Ye))(Ee)]}}function ii(){for(var Be=arguments.length,Ye=new Array(Be),Ee=0;Ee<Be;Ee++)Ye[Ee]=arguments[Ee];var Ue=Ye.length;if(0===Ue)throw new Error("list of properties cannot be empty.");return function(Ze){return(0,Ut.U)(Ho(Ye,Ue))(Ze)}}function Ho(Be,Ye){return function(Ze){for(var nt=Ze,Tt=0;Tt<Ye;Tt++){var sn=null!=nt?nt[Be[Tt]]:void 0;if(void 0===sn)return;nt=sn}return nt}}var io=f(68707);function ji(Be){return Be?(0,Vn.O)(function(){return new io.xQ},Be):(0,Vn.O)(new io.xQ)}var Ji=f(90838);function Vo(Be){return function(Ye){return(0,Vn.O)(new Ji.X(Be))(Ye)}}var Ti=f(3435);function Qi(){return function(Be){return(0,Vn.O)(new Ti.c)(Be)}}var fn=f(82667);function vn(Be,Ye,Ee,Ue){Ee&&"function"!=typeof Ee&&(Ue=Ee);var Ze="function"==typeof Ee?Ee:void 0,nt=new fn.t(Be,Ye,Ue);return function(Tt){return(0,Vn.O)(function(){return nt},Ze)(Tt)}}var pr=f(31695);function ho(){for(var Be=arguments.length,Ye=new Array(Be),Ee=0;Ee<Be;Ee++)Ye[Ee]=arguments[Ee];return function(Ze){return 1===Ye.length&&(0,De.k)(Ye[0])&&(Ye=Ye[0]),Ze.lift.call(pr.S3.apply(void 0,[Ze].concat((0,xe.Z)(Ye))))}}var pa=f(93487);function xi(){var Be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ye){return 0===Be?(0,pa.c)():Ye.lift(new So(Be<0?-1:Be-1,Ye))}}var So=function(){function Be(Ye,Ee){(0,N.Z)(this,Be),this.count=Ye,this.source=Ee}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Fi(Ee,this.count,this.source))}}]),Be}(),Fi=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt){var Tt;return(0,N.Z)(this,Ee),(Tt=Ye.call(this,Ue)).count=Ze,Tt.source=nt,Tt}return(0,b.Z)(Ee,[{key:"complete",value:function(){if(!this.isStopped){var Ze=this.source,nt=this.count;if(0===nt)return(0,S.Z)((0,v.Z)(Ee.prototype),"complete",this).call(this);nt>-1&&(this.count=nt-1),Ze.subscribe(this._unsubscribeAndRecycle())}}}]),Ee}(g.L);function fa(Be){return function(Ye){return Ye.lift(new Mo(Be))}}var Mo=function(){function Be(Ye){(0,N.Z)(this,Be),this.notifier=Ye}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Ro(Ee,this.notifier,Ue))}}]),Be}(),Ro=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt){var Tt;return(0,N.Z)(this,Ee),(Tt=Ye.call(this,Ue)).notifier=Ze,Tt.source=nt,Tt.sourceIsBeingSubscribedTo=!0,Tt}return(0,b.Z)(Ee,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return(0,S.Z)((0,v.Z)(Ee.prototype),"complete",this).call(this)}},{key:"complete",value:function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return(0,S.Z)((0,v.Z)(Ee.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var Ze=this.notifications,nt=this.retriesSubscription;Ze&&(Ze.unsubscribe(),this.notifications=void 0),nt&&(nt.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var Ze=this._unsubscribe;return this._unsubscribe=null,(0,S.Z)((0,v.Z)(Ee.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=Ze,this}},{key:"subscribeToRetries",value:function(){var Ze;this.notifications=new io.xQ;try{Ze=(0,this.notifier)(this.notifications)}catch(Tt){return(0,S.Z)((0,v.Z)(Ee.prototype),"complete",this).call(this)}this.retries=Ze,this.retriesSubscription=(0,_.ft)(Ze,new _.IY(this))}}]),Ee}(_.Ds);function fs(){var Be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ye){return Ye.lift(new To(Be,Ye))}}var To=function(){function Be(Ye,Ee){(0,N.Z)(this,Be),this.count=Ye,this.source=Ee}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new ha(Ee,this.count,this.source))}}]),Be}(),ha=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt){var Tt;return(0,N.Z)(this,Ee),(Tt=Ye.call(this,Ue)).count=Ze,Tt.source=nt,Tt}return(0,b.Z)(Ee,[{key:"error",value:function(Ze){if(!this.isStopped){var nt=this.source,Tt=this.count;if(0===Tt)return(0,S.Z)((0,v.Z)(Ee.prototype),"error",this).call(this,Ze);Tt>-1&&(this.count=Tt-1),nt.subscribe(this._unsubscribeAndRecycle())}}}]),Ee}(g.L);function ka(Be){return function(Ye){return Ye.lift(new qo(Be,Ye))}}var qo=function(){function Be(Ye,Ee){(0,N.Z)(this,Be),this.notifier=Ye,this.source=Ee}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new xo(Ee,this.notifier,this.source))}}]),Be}(),xo=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt){var Tt;return(0,N.Z)(this,Ee),(Tt=Ye.call(this,Ue)).notifier=Ze,Tt.source=nt,Tt}return(0,b.Z)(Ee,[{key:"error",value:function(Ze){if(!this.isStopped){var nt=this.errors,Tt=this.retries,sn=this.retriesSubscription;if(Tt)this.errors=void 0,this.retriesSubscription=void 0;else{nt=new io.xQ;try{Tt=(0,this.notifier)(nt)}catch(Tr){return(0,S.Z)((0,v.Z)(Ee.prototype),"error",this).call(this,Tr)}sn=(0,_.ft)(Tt,new _.IY(this))}this._unsubscribeAndRecycle(),this.errors=nt,this.retries=Tt,this.retriesSubscription=sn,nt.next(Ze)}}},{key:"_unsubscribe",value:function(){var Ze=this.errors,nt=this.retriesSubscription;Ze&&(Ze.unsubscribe(),this.errors=void 0),nt&&(nt.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var Ze=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=Ze,this.source.subscribe(this)}}]),Ee}(_.Ds),Ui=f(26575);function ma(Be){return function(Ye){return Ye.lift(new zi(Be))}}var zi=function(){function Be(Ye){(0,N.Z)(this,Be),this.notifier=Ye}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){var Ze=new va(Ee),nt=Ue.subscribe(Ze);return nt.add((0,_.ft)(this.notifier,new _.IY(Ze))),nt}}]),Be}(),va=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(){var Ue;return(0,N.Z)(this,Ee),(Ue=Ye.apply(this,arguments)).hasValue=!1,Ue}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){this.value=Ze,this.hasValue=!0}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}]),Ee}(_.Ds);function ga(Be){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.P;return function(Ee){return Ee.lift(new gr(Be,Ye))}}var gr=function(){function Be(Ye,Ee){(0,N.Z)(this,Be),this.period=Ye,this.scheduler=Ee}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Bn(Ee,this.period,this.scheduler))}}]),Be}(),Bn=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt){var Tt;return(0,N.Z)(this,Ee),(Tt=Ye.call(this,Ue)).period=Ze,Tt.scheduler=nt,Tt.hasValue=!1,Tt.add(nt.schedule(Ma,Ze,{subscriber:(0,V.Z)(Tt),period:Ze})),Tt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){this.lastValue=Ze,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),Ee}(g.L);function Ma(Be){var Ee=Be.period;Be.subscriber.notifyNext(),this.schedule(Be,Ee)}function Hi(Be,Ye){return function(Ee){return Ee.lift(new Ua(Be,Ye))}}var Ua=function(){function Be(Ye,Ee){(0,N.Z)(this,Be),this.compareTo=Ye,this.comparator=Ee}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new ar(Ee,this.compareTo,this.comparator))}}]),Be}(),ar=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt){var Tt;return(0,N.Z)(this,Ee),(Tt=Ye.call(this,Ue)).compareTo=Ze,Tt.comparator=nt,Tt._a=[],Tt._b=[],Tt._oneComplete=!1,Tt.destination.add(Ze.subscribe(new Wi(Ue,(0,V.Z)(Tt)))),Tt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(Ze),this.checkValues())}},{key:"_complete",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}},{key:"checkValues",value:function(){for(var Ze=this._a,nt=this._b,Tt=this.comparator;Ze.length>0&&nt.length>0;){var sn=Ze.shift(),bn=nt.shift(),Tr=!1;try{Tr=Tt?Tt(sn,bn):sn===bn}catch(Ii){this.destination.error(Ii)}Tr||this.emit(!1)}}},{key:"emit",value:function(Ze){var nt=this.destination;nt.next(Ze),nt.complete()}},{key:"nextB",value:function(Ze){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(Ze),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),Ee}(g.L),Wi=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze){var nt;return(0,N.Z)(this,Ee),(nt=Ye.call(this,Ue)).parent=Ze,nt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){this.parent.nextB(Ze)}},{key:"_error",value:function(Ze){this.parent.error(Ze),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),Ee}(g.L),Ha=f(16338),Pu=f(61106),Ka=f(64646);function Ki(Be){return function(Ye){return Ye.lift(new Va(Be,Ye))}}var Va=function(){function Be(Ye,Ee){(0,N.Z)(this,Be),this.predicate=Ye,this.source=Ee}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new yl(Ee,this.predicate,this.source))}}]),Be}(),yl=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt){var Tt;return(0,N.Z)(this,Ee),(Tt=Ye.call(this,Ue)).predicate=Ze,Tt.source=nt,Tt.seenValue=!1,Tt.index=0,Tt}return(0,b.Z)(Ee,[{key:"applySingleValue",value:function(Ze){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=Ze)}},{key:"_next",value:function(Ze){var nt=this.index++;this.predicate?this.tryNext(Ze,nt):this.applySingleValue(Ze)}},{key:"tryNext",value:function(Ze,nt){try{this.predicate(Ze,nt,this.source)&&this.applySingleValue(Ze)}catch(Tt){this.destination.error(Tt)}}},{key:"_complete",value:function(){var Ze=this.destination;this.index>0?(Ze.next(this.seenValue?this.singleValue:void 0),Ze.complete()):Ze.error(new Ka.K)}}]),Ee}(g.L),tn=f(18756);function tu(Be){return function(Ye){return Ye.lift(new bl(Be))}}var bl=function(){function Be(Ye){if((0,N.Z)(this,Be),this._skipCount=Ye,this._skipCount<0)throw new Yt.W}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(0===this._skipCount?new g.L(Ee):new Cl(Ee,this._skipCount))}}]),Be}(),Cl=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze){var nt;return(0,N.Z)(this,Ee),(nt=Ye.call(this,Ue))._skipCount=Ze,nt._count=0,nt._ring=new Array(Ze),nt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){var nt=this._skipCount,Tt=this._count++;if(Tt<nt)this._ring[Tt]=Ze;else{var sn=Tt%nt,bn=this._ring,Tr=bn[sn];bn[sn]=Ze,this.destination.next(Tr)}}}]),Ee}(g.L);function pe(Be){return function(Ye){return Ye.lift(new Fe(Be))}}var Fe=function(){function Be(Ye){(0,N.Z)(this,Be),this.notifier=Ye}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new $e(Ee,this.notifier))}}]),Be}(),$e=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze){var nt;(0,N.Z)(this,Ee),(nt=Ye.call(this,Ue)).hasValue=!1;var Tt=new _.IY((0,V.Z)(nt));nt.add(Tt),nt.innerSubscription=Tt;var sn=(0,_.ft)(Ze,Tt);return sn!==Tt&&(nt.add(sn),nt.innerSubscription=sn),nt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){this.hasValue&&(0,S.Z)((0,v.Z)(Ee.prototype),"_next",this).call(this,Ze)}},{key:"notifyNext",value:function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}},{key:"notifyComplete",value:function(){}}]),Ee}(_.Ds);function We(Be){return function(Ye){return Ye.lift(new ie(Be))}}var ie=function(){function Be(Ye){(0,N.Z)(this,Be),this.predicate=Ye}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new fe(Ee,this.predicate))}}]),Be}(),fe=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze){var nt;return(0,N.Z)(this,Ee),(nt=Ye.call(this,Ue)).predicate=Ze,nt.skipping=!0,nt.index=0,nt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){var nt=this.destination;this.skipping&&this.tryCallPredicate(Ze),this.skipping||nt.next(Ze)}},{key:"tryCallPredicate",value:function(Ze){try{var nt=this.predicate(Ze,this.index++);this.skipping=Boolean(nt)}catch(Tt){this.destination.error(Tt)}}}]),Ee}(g.L),_e=f(57682),Ce=f(18613);function Re(Be){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Ue){return Ue.lift(new Ge(Be,Ye))}}var Ge=function(){function Be(Ye,Ee){(0,N.Z)(this,Be),this.scheduler=Ye,this.delay=Ee}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return new Ce.e(Ue,this.delay,this.scheduler).subscribe(Ee)}}]),Be}(),St=f(34487),ht=f(57070);function gt(){return(0,St.w)(ht.y)}function Jr(Be,Ye){return Ye?(0,St.w)(function(){return Be},Ye):(0,St.w)(function(){return Be})}var Vr=f(44213),Pi=f(49196),_a=f(59371),li=f(243);function Mi(Be){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.P,Ee=arguments.length>2&&void 0!==arguments[2]?arguments[2]:li.d;return function(Ue){return Ue.lift(new Sl(Be,Ye,Ee.leading,Ee.trailing))}}var Sl=function(){function Be(Ye,Ee,Ue,Ze){(0,N.Z)(this,Be),this.duration=Ye,this.scheduler=Ee,this.leading=Ue,this.trailing=Ze}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Aa(Ee,this.duration,this.scheduler,this.leading,this.trailing))}}]),Be}(),Aa=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt,Tt,sn){var bn;return(0,N.Z)(this,Ee),(bn=Ye.call(this,Ue)).duration=Ze,bn.scheduler=nt,bn.leading=Tt,bn.trailing=sn,bn._hasTrailingValue=!1,bn._trailingValue=null,bn}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){this.throttled?this.trailing&&(this._trailingValue=Ze,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Xa,this.duration,{subscriber:this})),this.leading?this.destination.next(Ze):this.trailing&&(this._trailingValue=Ze,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var Ze=this.throttled;Ze&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),Ze.unsubscribe(),this.remove(Ze),this.throttled=null)}}]),Ee}(g.L);function Xa(Be){Be.subscriber.clearThrottle()}var ya=f(73445),Ms=f(98691),kp=f(88972);function Mp(Be,Ye){var Ee=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x.P;return function(Ue){var Ze=(0,kp.J)(Be),nt=Ze?+Be-Ee.now():Math.abs(Be);return Ue.lift(new Ws(nt,Ze,Ye,Ee))}}var Ws=function(){function Be(Ye,Ee,Ue,Ze){(0,N.Z)(this,Be),this.waitFor=Ye,this.absoluteTimeout=Ee,this.withObservable=Ue,this.scheduler=Ze}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new yc(Ee,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),Be}(),yc=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt,Tt,sn){var bn;return(0,N.Z)(this,Ee),(bn=Ye.call(this,Ue)).absoluteTimeout=Ze,bn.waitFor=nt,bn.withObservable=Tt,bn.scheduler=sn,bn.scheduleTimeout(),bn}return(0,b.Z)(Ee,[{key:"scheduleTimeout",value:function(){var Ze=this.action;Ze?this.action=Ze.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(Ee.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(Ze){this.absoluteTimeout||this.scheduleTimeout(),(0,S.Z)((0,v.Z)(Ee.prototype),"_next",this).call(this,Ze)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(Ze){var nt=Ze.withObservable;Ze._unsubscribeAndRecycle(),Ze.add((0,_.ft)(nt,new _.IY(Ze)))}}]),Ee}(_.Ds),Tl=f(11363);function Mr(Be){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.P;return Mp(Be,(0,Tl._)(new Ms.W),Ye)}var Ap=f(63706);function hd(Be,Ye,Ee){return 0===Ee?[Ye]:(Be.push(Ye),Be)}function Dp(){return ki(hd,[])}function Op(Be){return function(Ee){return Ee.lift(new md(Be))}}var md=function(){function Be(Ye){(0,N.Z)(this,Be),this.windowBoundaries=Ye}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){var Ze=new nu(Ee),nt=Ue.subscribe(Ze);return nt.closed||Ze.add((0,_.ft)(this.windowBoundaries,new _.IY(Ze))),nt}}]),Be}(),nu=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue){var Ze;return(0,N.Z)(this,Ee),(Ze=Ye.call(this,Ue)).window=new io.xQ,Ue.next(Ze.window),Ze}return(0,b.Z)(Ee,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(Ze){this._error(Ze)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(Ze){this.window.next(Ze)}},{key:"_error",value:function(Ze){this.window.error(Ze),this.destination.error(Ze)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var Ze=this.window;Ze&&Ze.complete();var nt=this.destination,Tt=this.window=new io.xQ;nt.next(Tt)}}]),Ee}(_.Ds);function Ev(Be){var Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Ue){return Ue.lift(new Se(Be,Ye))}}var Se=function(){function Be(Ye,Ee){(0,N.Z)(this,Be),this.windowSize=Ye,this.startWindowEvery=Ee}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new ge(Ee,this.windowSize,this.startWindowEvery))}}]),Be}(),ge=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt){var Tt;return(0,N.Z)(this,Ee),(Tt=Ye.call(this,Ue)).destination=Ue,Tt.windowSize=Ze,Tt.startWindowEvery=nt,Tt.windows=[new io.xQ],Tt.count=0,Ue.next(Tt.windows[0]),Tt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){for(var nt=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,Tt=this.destination,sn=this.windowSize,bn=this.windows,Tr=bn.length,Ii=0;Ii<Tr&&!this.closed;Ii++)bn[Ii].next(Ze);var ea=this.count-sn+1;if(ea>=0&&ea%nt==0&&!this.closed&&bn.shift().complete(),++this.count%nt==0&&!this.closed){var Da=new io.xQ;bn.push(Da),Tt.next(Da)}}},{key:"_error",value:function(Ze){var nt=this.windows;if(nt)for(;nt.length>0&&!this.closed;)nt.shift().error(Ze);this.destination.error(Ze)}},{key:"_complete",value:function(){var Ze=this.windows;if(Ze)for(;Ze.length>0&&!this.closed;)Ze.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),Ee}(g.L),Q=f(11705);function ne(Be){var Ye=x.P,Ee=null,Ue=Number.POSITIVE_INFINITY;return(0,O.K)(arguments[3])&&(Ye=arguments[3]),(0,O.K)(arguments[2])?Ye=arguments[2]:(0,Q.k)(arguments[2])&&(Ue=Number(arguments[2])),(0,O.K)(arguments[1])?Ye=arguments[1]:(0,Q.k)(arguments[1])&&(Ee=Number(arguments[1])),function(nt){return nt.lift(new ke(Be,Ee,Ue,Ye))}}var ke=function(){function Be(Ye,Ee,Ue,Ze){(0,N.Z)(this,Be),this.windowTimeSpan=Ye,this.windowCreationInterval=Ee,this.maxWindowSize=Ue,this.scheduler=Ze}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new lt(Ee,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),Be}(),Ve=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(){var Ue;return(0,N.Z)(this,Ee),(Ue=Ye.apply(this,arguments))._numberOfNextedValues=0,Ue}return(0,b.Z)(Ee,[{key:"next",value:function(Ze){this._numberOfNextedValues++,(0,S.Z)((0,v.Z)(Ee.prototype),"next",this).call(this,Ze)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),Ee}(io.xQ),lt=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt,Tt,sn){var bn;(0,N.Z)(this,Ee),(bn=Ye.call(this,Ue)).destination=Ue,bn.windowTimeSpan=Ze,bn.windowCreationInterval=nt,bn.maxWindowSize=Tt,bn.scheduler=sn,bn.windows=[];var Tr=bn.openWindow();if(null!==nt&&nt>=0){var Ii={subscriber:(0,V.Z)(bn),window:Tr,context:null},ea={windowTimeSpan:Ze,windowCreationInterval:nt,subscriber:(0,V.Z)(bn),scheduler:sn};bn.add(sn.schedule($t,Ze,Ii)),bn.add(sn.schedule(Zt,nt,ea))}else{var Da={subscriber:(0,V.Z)(bn),window:Tr,windowTimeSpan:Ze};bn.add(sn.schedule(wt,Ze,Da))}return bn}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){for(var nt=this.windows,Tt=nt.length,sn=0;sn<Tt;sn++){var bn=nt[sn];bn.closed||(bn.next(Ze),bn.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(bn))}}},{key:"_error",value:function(Ze){for(var nt=this.windows;nt.length>0;)nt.shift().error(Ze);this.destination.error(Ze)}},{key:"_complete",value:function(){for(var Ze=this.windows;Ze.length>0;){var nt=Ze.shift();nt.closed||nt.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var Ze=new Ve;return this.windows.push(Ze),this.destination.next(Ze),Ze}},{key:"closeWindow",value:function(Ze){Ze.complete();var nt=this.windows;nt.splice(nt.indexOf(Ze),1)}}]),Ee}(g.L);function wt(Be){var Ye=Be.subscriber,Ee=Be.windowTimeSpan,Ue=Be.window;Ue&&Ye.closeWindow(Ue),Be.window=Ye.openWindow(),this.schedule(Be,Ee)}function Zt(Be){var Ye=Be.windowTimeSpan,Ee=Be.subscriber,Ue=Be.scheduler,Ze=Be.windowCreationInterval,nt=Ee.openWindow(),sn={action:this,subscription:null};sn.subscription=Ue.schedule($t,Ye,{subscriber:Ee,window:nt,context:sn}),this.add(sn.subscription),this.schedule(Be,Ze)}function $t(Be){var Ye=Be.subscriber,Ee=Be.window,Ue=Be.context;Ue&&Ue.action&&Ue.subscription&&Ue.action.remove(Ue.subscription),Ye.closeWindow(Ee)}function cn(Be,Ye){return function(Ee){return Ee.lift(new Dn(Be,Ye))}}var Dn=function(){function Be(Ye,Ee){(0,N.Z)(this,Be),this.openings=Ye,this.closingSelector=Ee}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Un(Ee,this.openings,this.closingSelector))}}]),Be}(),Un=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt){var Tt;return(0,N.Z)(this,Ee),(Tt=Ye.call(this,Ue)).openings=Ze,Tt.closingSelector=nt,Tt.contexts=[],Tt.add(Tt.openSubscription=(0,se.D)((0,V.Z)(Tt),Ze,Ze)),Tt}return(0,b.Z)(Ee,[{key:"_next",value:function(Ze){var nt=this.contexts;if(nt)for(var Tt=nt.length,sn=0;sn<Tt;sn++)nt[sn].window.next(Ze)}},{key:"_error",value:function(Ze){var nt=this.contexts;if(this.contexts=null,nt)for(var Tt=nt.length,sn=-1;++sn<Tt;){var bn=nt[sn];bn.window.error(Ze),bn.subscription.unsubscribe()}(0,S.Z)((0,v.Z)(Ee.prototype),"_error",this).call(this,Ze)}},{key:"_complete",value:function(){var Ze=this.contexts;if(this.contexts=null,Ze)for(var nt=Ze.length,Tt=-1;++Tt<nt;){var sn=Ze[Tt];sn.window.complete(),sn.subscription.unsubscribe()}(0,S.Z)((0,v.Z)(Ee.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var Ze=this.contexts;if(this.contexts=null,Ze)for(var nt=Ze.length,Tt=-1;++Tt<nt;){var sn=Ze[Tt];sn.window.unsubscribe(),sn.subscription.unsubscribe()}}},{key:"notifyNext",value:function(Ze,nt,Tt,sn,bn){if(Ze===this.openings){var Tr;try{Tr=(0,this.closingSelector)(nt)}catch(hs){return this.error(hs)}var ea=new io.xQ,Da=new ae.w,vd={window:ea,subscription:Da};this.contexts.push(vd);var Do=(0,se.D)(this,Tr,vd);Do.closed?this.closeWindow(this.contexts.length-1):(Do.context=vd,Da.add(Do)),this.destination.next(ea)}else this.closeWindow(this.contexts.indexOf(Ze))}},{key:"notifyError",value:function(Ze){this.error(Ze)}},{key:"notifyComplete",value:function(Ze){Ze!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(Ze.context))}},{key:"closeWindow",value:function(Ze){if(-1!==Ze){var nt=this.contexts,Tt=nt[Ze],sn=Tt.window,bn=Tt.subscription;nt.splice(Ze,1),sn.complete(),bn.unsubscribe()}}}]),Ee}(ce.L);function Qn(Be){return function(Ee){return Ee.lift(new fr(Be))}}var fr=function(){function Be(Ye){(0,N.Z)(this,Be),this.closingSelector=Ye}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new Or(Ee,this.closingSelector))}}]),Be}(),Or=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze){var nt;return(0,N.Z)(this,Ee),(nt=Ye.call(this,Ue)).destination=Ue,nt.closingSelector=Ze,nt.openWindow(),nt}return(0,b.Z)(Ee,[{key:"notifyNext",value:function(Ze,nt,Tt,sn,bn){this.openWindow(bn)}},{key:"notifyError",value:function(Ze){this._error(Ze)}},{key:"notifyComplete",value:function(Ze){this.openWindow(Ze)}},{key:"_next",value:function(Ze){this.window.next(Ze)}},{key:"_error",value:function(Ze){this.window.error(Ze),this.destination.error(Ze),this.unsubscribeClosingNotification()}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}},{key:"unsubscribeClosingNotification",value:function(){this.closingNotification&&this.closingNotification.unsubscribe()}},{key:"openWindow",value:function(){var Ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;Ze&&(this.remove(Ze),Ze.unsubscribe());var nt=this.window;nt&&nt.complete();var sn,Tt=this.window=new io.xQ;this.destination.next(Tt);try{var bn=this.closingSelector;sn=bn()}catch(Tr){return this.destination.error(Tr),void this.window.error(Tr)}this.add(this.closingNotification=(0,se.D)(this,sn))}}]),Ee}(ce.L);function br(){for(var Be=arguments.length,Ye=new Array(Be),Ee=0;Ee<Be;Ee++)Ye[Ee]=arguments[Ee];return function(Ue){var Ze;return"function"==typeof Ye[Ye.length-1]&&(Ze=Ye.pop()),Ue.lift(new wr(Ye,Ze))}}var wr=function(){function Be(Ye,Ee){(0,N.Z)(this,Be),this.observables=Ye,this.project=Ee}return(0,b.Z)(Be,[{key:"call",value:function(Ee,Ue){return Ue.subscribe(new ui(Ee,this.observables,this.project))}}]),Be}(),ui=function(Be){(0,Z.Z)(Ee,Be);var Ye=(0,w.Z)(Ee);function Ee(Ue,Ze,nt){var Tt;(0,N.Z)(this,Ee),(Tt=Ye.call(this,Ue)).observables=Ze,Tt.project=nt,Tt.toRespond=[];var sn=Ze.length;Tt.values=new Array(sn);for(var bn=0;bn<sn;bn++)Tt.toRespond.push(bn);for(var Tr=0;Tr<sn;Tr++){var Ii=Ze[Tr];Tt.add((0,se.D)((0,V.Z)(Tt),Ii,void 0,Tr))}return Tt}return(0,b.Z)(Ee,[{key:"notifyNext",value:function(Ze,nt,Tt){this.values[Tt]=nt;var sn=this.toRespond;if(sn.length>0){var bn=sn.indexOf(Tt);-1!==bn&&sn.splice(bn,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(Ze){if(0===this.toRespond.length){var nt=[Ze].concat((0,xe.Z)(this.values));this.project?this._tryProject(nt):this.destination.next(nt)}}},{key:"_tryProject",value:function(Ze){var nt;try{nt=this.project.apply(this,Ze)}catch(Tt){return void this.destination.error(Tt)}this.destination.next(nt)}}]),Ee}(ce.L),hi=f(43008);function oi(){for(var Be=arguments.length,Ye=new Array(Be),Ee=0;Ee<Be;Ee++)Ye[Ee]=arguments[Ee];return function(Ze){return Ze.lift.call(hi.$R.apply(void 0,[Ze].concat(Ye)))}}function Ao(Be){return function(Ye){return Ye.lift(new hi.mx(Be))}}},53520:function(ue,q,f){"use strict";f.r(q),f.d(q,{TestScheduler:function(){return x}});var B=f(18967),U=f(14105),V=f(13920),Z=f(89200),w=f(10509),N=f(97154),b=f(89797),_=f(80286),I=f(5051),D=function O(F){var z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,B.Z)(this,O),this.subscribedFrame=F,this.unsubscribedFrame=z},v=(f(2808),function(O){(0,w.Z)(z,O);var F=(0,N.Z)(z);function z(K,j){var J;return(0,B.Z)(this,z),(J=F.call(this,function(ee){var $=this,ae=$.logSubscribedFrame(),se=new I.w;return se.add(new I.w(function(){$.logUnsubscribedFrame(ae)})),$.scheduleMessages(ee),se})).messages=K,J.subscriptions=[],J.scheduler=j,J}return(0,U.Z)(z,[{key:"scheduleMessages",value:function(j){for(var J=this.messages.length,ee=0;ee<J;ee++){var $=this.messages[ee];j.add(this.scheduler.schedule(function(ae){ae.message.notification.observe(ae.subscriber)},$.frame,{message:$,subscriber:j}))}}}]),z}(b.y)),T=function(O){(0,w.Z)(z,O);var F=(0,N.Z)(z);function z(K,j){var J;return(0,B.Z)(this,z),(J=F.call(this)).messages=K,J.subscriptions=[],J.scheduler=j,J}return(0,U.Z)(z,[{key:"_subscribe",value:function(j){var J=this,ee=J.logSubscribedFrame(),$=new I.w;return $.add(new I.w(function(){J.logUnsubscribedFrame(ee)})),$.add((0,V.Z)((0,Z.Z)(z.prototype),"_subscribe",this).call(this,j)),$}},{key:"setup",value:function(){for(var j=this,J=j.messages.length,ee=0;ee<J;ee++)!function(){var $=j.messages[ee];j.scheduler.schedule(function(){$.notification.observe(j)},$.frame)}()}}]),z}(f(68707).xQ),R=f(2296),k=f(81572),x=function(O){(0,w.Z)(z,O);var F=(0,N.Z)(z);function z(K){var j;return(0,B.Z)(this,z),(j=F.call(this,R.h,750)).assertDeepEqual=K,j.hotObservables=[],j.coldObservables=[],j.flushTests=[],j.runMode=!1,j}return(0,U.Z)(z,[{key:"createTime",value:function(j){var J=j.indexOf("|");if(-1===J)throw new Error('marble diagram for time should have a completion marker "|"');return J*z.frameTimeFactor}},{key:"createColdObservable",value:function(j,J,ee){if(-1!==j.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==j.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var $=z.parseMarbles(j,J,ee,void 0,this.runMode),ae=new v($,this);return this.coldObservables.push(ae),ae}},{key:"createHotObservable",value:function(j,J,ee){if(-1!==j.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var $=z.parseMarbles(j,J,ee,void 0,this.runMode),ae=new T($,this);return this.hotObservables.push(ae),ae}},{key:"materializeInnerObservable",value:function(j,J){var ee=this,$=[];return j.subscribe(function(ae){$.push({frame:ee.frame-J,notification:_.P.createNext(ae)})},function(ae){$.push({frame:ee.frame-J,notification:_.P.createError(ae)})},function(){$.push({frame:ee.frame-J,notification:_.P.createComplete()})}),$}},{key:"expectObservable",value:function(j){var oe,J=this,ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,$=[],ae={actual:$,ready:!1},se=z.parseMarblesAsSubscriptions(ee,this.runMode),ce=se.subscribedFrame===Number.POSITIVE_INFINITY?0:se.subscribedFrame,le=se.unsubscribedFrame;this.schedule(function(){oe=j.subscribe(function(be){var it=be;be instanceof b.y&&(it=J.materializeInnerObservable(it,J.frame)),$.push({frame:J.frame,notification:_.P.createNext(it)})},function(be){$.push({frame:J.frame,notification:_.P.createError(be)})},function(){$.push({frame:J.frame,notification:_.P.createComplete()})})},ce),le!==Number.POSITIVE_INFINITY&&this.schedule(function(){return oe.unsubscribe()},le),this.flushTests.push(ae);var Ae=this.runMode;return{toBe:function(it,qe,_t){ae.ready=!0,ae.expected=z.parseMarbles(it,qe,_t,!0,Ae)}}}},{key:"expectSubscriptions",value:function(j){var J={actual:j,ready:!1};this.flushTests.push(J);var ee=this.runMode;return{toBe:function(ae){var se="string"==typeof ae?[ae]:ae;J.ready=!0,J.expected=se.map(function(ce){return z.parseMarblesAsSubscriptions(ce,ee)})}}}},{key:"flush",value:function(){for(var j=this,J=this.hotObservables;J.length>0;)J.shift().setup();(0,V.Z)((0,Z.Z)(z.prototype),"flush",this).call(this),this.flushTests=this.flushTests.filter(function(ee){return!ee.ready||(j.assertDeepEqual(ee.actual,ee.expected),!1)})}},{key:"run",value:function(j){var J=z.frameTimeFactor,ee=this.maxFrames;z.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,k.v.delegate=this;var $={cold:this.createColdObservable.bind(this),hot:this.createHotObservable.bind(this),flush:this.flush.bind(this),expectObservable:this.expectObservable.bind(this),expectSubscriptions:this.expectSubscriptions.bind(this)};try{var ae=j($);return this.flush(),ae}finally{z.frameTimeFactor=J,this.maxFrames=ee,this.runMode=!1,k.v.delegate=void 0}}}],[{key:"parseMarblesAsSubscriptions",value:function(j){var J=this,ee=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof j)return new D(Number.POSITIVE_INFINITY);for(var $=j.length,ae=-1,se=Number.POSITIVE_INFINITY,ce=Number.POSITIVE_INFINITY,le=0,oe=0;oe<$;oe++){var Ae=le,be=function(je){Ae+=je*J.frameTimeFactor},it=j[oe];switch(it){case" ":ee||be(1);break;case"-":be(1);break;case"(":ae=le,be(1);break;case")":ae=-1,be(1);break;case"^":if(se!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");se=ae>-1?ae:le,be(1);break;case"!":if(ce!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");ce=ae>-1?ae:le;break;default:if(ee&&it.match(/^[0-9]$/)&&(0===oe||" "===j[oe-1])){var qe=j.slice(oe),_t=qe.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(_t){oe+=_t[0].length-1;var yt=parseFloat(_t[1]),Ft=_t[2],xe=void 0;switch(Ft){case"ms":xe=yt;break;case"s":xe=1e3*yt;break;case"m":xe=1e3*yt*60}be(xe/this.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+it+"'.")}le=Ae}return ce<0?new D(se):new D(se,ce)}},{key:"parseMarbles",value:function(j,J,ee){var $=this,ae=arguments.length>3&&void 0!==arguments[3]&&arguments[3],se=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==j.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var ce=j.length,le=[],oe=se?j.replace(/^[ ]+/,"").indexOf("^"):j.indexOf("^"),Ae=-1===oe?0:oe*-this.frameTimeFactor,be="object"!=typeof J?function(xt){return xt}:function(xt){return ae&&J[xt]instanceof v?J[xt].messages:J[xt]},it=-1,qe=0;qe<ce;qe++){var _t=Ae,yt=function(vt){_t+=vt*$.frameTimeFactor},Ft=void 0,xe=j[qe];switch(xe){case" ":se||yt(1);break;case"-":yt(1);break;case"(":it=Ae,yt(1);break;case")":it=-1,yt(1);break;case"|":Ft=_.P.createComplete(),yt(1);break;case"^":yt(1);break;case"#":Ft=_.P.createError(ee||"error"),yt(1);break;default:if(se&&xe.match(/^[0-9]$/)&&(0===qe||" "===j[qe-1])){var De=j.slice(qe),je=De.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(je){qe+=je[0].length-1;var dt=parseFloat(je[1]),Ke=je[2],Bt=void 0;switch(Ke){case"ms":Bt=dt;break;case"s":Bt=1e3*dt;break;case"m":Bt=1e3*dt*60}yt(Bt/this.frameTimeFactor);break}}Ft=_.P.createNext(be(xe)),yt(1)}Ft&&le.push({frame:it>-1?it:Ae,notification:Ft}),Ae=_t}return le}}]),z}(R.y)},4194:function(ue,q,f){"use strict";f.r(q),f.d(q,{webSocket:function(){return B.j},WebSocketSubject:function(){return U.p}});var B=f(99298),U=f(46095)},26918:function(ue,q,f){"use strict";f(68663)},56205:function(ue,q){"use strict";var B;!function(){var U=q||{};void 0!==(B=function(){return U}.apply(q,[]))&&(ue.exports=B),U.default=U;var V="http://www.w3.org/2000/xmlns/",w="http://www.w3.org/2000/svg",b=/url\(["']?(.+?)["']?\)/,_={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},I=function(se){return se instanceof HTMLElement||se instanceof SVGElement},D=function(se){if(!I(se))throw new Error("an HTMLElement or SVGElement is required; got "+se)},A=function(se){return new Promise(function(ce,le){I(se)?ce(se):le(new Error("an HTMLElement or SVGElement is required; got "+se))})},v=function(se){var ce=Object.keys(_).filter(function(le){return se.indexOf("."+le)>0}).map(function(le){return _[le]});return ce?ce[0]:(console.error("Unknown font format for "+se+". Fonts may not be working correctly."),"application/octet-stream")},T=function(se,ce,le){var oe=se.viewBox&&se.viewBox.baseVal&&se.viewBox.baseVal[le]||null!==ce.getAttribute(le)&&!ce.getAttribute(le).match(/%$/)&&parseInt(ce.getAttribute(le))||se.getBoundingClientRect()[le]||parseInt(ce.style[le])||parseInt(window.getComputedStyle(se).getPropertyValue(le));return null==oe||isNaN(parseFloat(oe))?0:oe},E=function(se){for(var ce=window.atob(se.split(",")[1]),le=se.split(",")[0].split(":")[1].split(";")[0],oe=new ArrayBuffer(ce.length),Ae=new Uint8Array(oe),be=0;be<ce.length;be++)Ae[be]=ce.charCodeAt(be);return new Blob([oe],{type:le})},z={},j=null,ee=function(se,ce){var le=ce||{},oe=le.selectorRemap,Ae=le.modifyStyle,it=le.fonts,qe=le.excludeUnusedCss,_t=le.modifyCss||function(De,je){return(oe?oe(De):De)+"{"+(Ae?Ae(je):je)+"}\n"},yt=[],Ft=void 0===it,xe=it||[];return(j||(j=Array.from(document.styleSheets).map(function(se){try{return{rules:se.cssRules,href:se.href}}catch(ce){return console.warn("Stylesheet could not be loaded: "+se.href,ce),{}}}))).forEach(function(De){var je=De.rules,dt=De.href;!je||Array.from(je).forEach(function(Ke){if(void 0!==Ke.style)if(function(se,ce){if(ce)try{return se.querySelector(ce)||se.parentNode&&se.parentNode.querySelector(ce)}catch(le){console.warn('Invalid CSS selector "'+ce+'"',le)}}(se,Ke.selectorText))yt.push(_t(Ke.selectorText,Ke.style.cssText));else if(Ft&&Ke.cssText.match(/^@font-face/)){var Bt=function(se,ce){var le=se.cssText.match(b),oe=le&&le[1]||"";if(oe&&!oe.match(/^data:/)&&"about:blank"!==oe){var Ae=oe.startsWith("../")?ce+"/../"+oe:oe.startsWith("./")?ce+"/."+oe:oe;return{text:se.cssText,format:v(Ae),url:Ae}}}(Ke,dt);Bt&&xe.push(Bt)}else qe||yt.push(Ke.cssText)})}),function(se){return Promise.all(se.map(function(ce){return new Promise(function(le,oe){if(z[ce.url])return le(z[ce.url]);var Ae=new XMLHttpRequest;Ae.addEventListener("load",function(){var be=function(se){for(var ce="",le=new Uint8Array(se),oe=0;oe<le.byteLength;oe++)ce+=String.fromCharCode(le[oe]);return window.btoa(ce)}(Ae.response),it=ce.text.replace(b,'url("data:'+ce.format+";base64,"+be+'")')+"\n";z[ce.url]=it,le(it)}),Ae.addEventListener("error",function(be){console.warn("Failed to load font from: "+ce.url,be),z[ce.url]=null,le(null)}),Ae.addEventListener("abort",function(be){console.warn("Aborted loading font from: "+ce.url,be),le(null)}),Ae.open("GET",ce.url),Ae.responseType="arraybuffer",Ae.send()})})).then(function(ce){return ce.filter(function(le){return le}).join("")})}(xe).then(function(De){return yt.join("\n")+De})},$=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};U.prepareSvg=function(ae,se,ce){D(ae);var le=se||{},oe=le.left,Ae=void 0===oe?0:oe,be=le.top,it=void 0===be?0:be,qe=le.width,_t=le.height,yt=le.scale,Ft=void 0===yt?1:yt,xe=le.responsive,De=void 0!==xe&&xe,je=le.excludeCss,dt=void 0!==je&&je;return function(se){return Promise.all(Array.from(se.querySelectorAll("image")).map(function(ce){var le=ce.getAttributeNS("http://www.w3.org/1999/xlink","href")||ce.getAttribute("href");return le?(function(se){return se&&0===se.lastIndexOf("http",0)&&-1===se.lastIndexOf(window.location.host)}(le)&&(le+=(-1===le.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),new Promise(function(oe,Ae){var be=document.createElement("canvas"),it=new Image;it.crossOrigin="anonymous",it.src=le,it.onerror=function(){return Ae(new Error("Could not load "+le))},it.onload=function(){be.width=it.width,be.height=it.height,be.getContext("2d").drawImage(it,0,0),ce.setAttributeNS("http://www.w3.org/1999/xlink","href",be.toDataURL("image/png")),oe(!0)}})):Promise.resolve(null)}))}(ae).then(function(){var Ke=ae.cloneNode(!0);Ke.style.backgroundColor=(se||{}).backgroundColor||ae.style.backgroundColor;var Bt=function(se,ce,le,oe){if("svg"===se.tagName)return{width:le||T(se,ce,"width"),height:oe||T(se,ce,"height")};if(se.getBBox){var Ae=se.getBBox();return{width:Ae.x+Ae.width,height:Ae.y+Ae.height}}}(ae,Ke,qe,_t),xt=Bt.width,vt=Bt.height;if("svg"!==ae.tagName){if(!ae.getBBox)return void console.error("Attempted to render non-SVG element",ae);null!=Ke.getAttribute("transform")&&Ke.setAttribute("transform",Ke.getAttribute("transform").replace(/translate\(.*?\)/,""));var Qt=document.createElementNS("http://www.w3.org/2000/svg","svg");Qt.appendChild(Ke),Ke=Qt}if(Ke.setAttribute("version","1.1"),Ke.setAttribute("viewBox",[Ae,it,xt,vt].join(" ")),Ke.getAttribute("xmlns")||Ke.setAttributeNS(V,"xmlns",w),Ke.getAttribute("xmlns:xlink")||Ke.setAttributeNS(V,"xmlns:xlink","http://www.w3.org/1999/xlink"),De?(Ke.removeAttribute("width"),Ke.removeAttribute("height"),Ke.setAttribute("preserveAspectRatio","xMinYMin meet")):(Ke.setAttribute("width",xt*Ft),Ke.setAttribute("height",vt*Ft)),Array.from(Ke.querySelectorAll("foreignObject > *")).forEach(function(qt){qt.setAttributeNS(V,"xmlns","svg"===qt.tagName?w:"http://www.w3.org/1999/xhtml")}),!dt)return ee(ae,se).then(function(qt){var bt=document.createElement("style");bt.setAttribute("type","text/css"),bt.innerHTML="<![CDATA[\n"+qt+"\n]]>";var en=document.createElement("defs");en.appendChild(bt),Ke.insertBefore(en,Ke.firstChild);var Nt=document.createElement("div");Nt.appendChild(Ke);var rn=Nt.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof ce)return{src:rn,width:xt,height:vt};ce(rn,xt,vt)});var Ht=document.createElement("div");Ht.appendChild(Ke);var Ct=Ht.innerHTML;if("function"!=typeof ce)return{src:Ct,width:xt,height:vt};ce(Ct,xt,vt)})},U.svgAsDataUri=function(ae,se,ce){return D(ae),U.prepareSvg(ae,se).then(function(le){var Ae=le.width,be=le.height,it="data:image/svg+xml;base64,"+window.btoa(function(se){return decodeURIComponent(encodeURIComponent(se).replace(/%([0-9A-F]{2})/g,function(ce,le){var oe=String.fromCharCode("0x"+le);return"%"===oe?"%25":oe}))}('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp " ">]>'+le.src));return"function"==typeof ce&&ce(it,Ae,be),it})},U.svgAsPngUri=function(ae,se,ce){D(ae);var le=se||{},oe=le.encoderType,Ae=void 0===oe?"image/png":oe,be=le.encoderOptions,it=void 0===be?.8:be,qe=le.canvg,_t=function(Ft){var xe=Ft.src,De=Ft.width,je=Ft.height,dt=document.createElement("canvas"),Ke=dt.getContext("2d"),Bt=window.devicePixelRatio||1;dt.width=De*Bt,dt.height=je*Bt,dt.style.width=dt.width+"px",dt.style.height=dt.height+"px",Ke.setTransform(Bt,0,0,Bt,0,0),qe?qe(dt,xe):Ke.drawImage(xe,0,0);var xt=void 0;try{xt=dt.toDataURL(Ae,it)}catch(vt){if("undefined"!=typeof SecurityError&&vt instanceof SecurityError||"SecurityError"===vt.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw vt}return"function"==typeof ce&&ce(xt,dt.width,dt.height),Promise.resolve(xt)};return qe?U.prepareSvg(ae,se).then(_t):U.svgAsDataUri(ae,se).then(function(yt){return new Promise(function(Ft,xe){var De=new Image;De.onload=function(){return Ft(_t({src:De,width:De.width,height:De.height}))},De.onerror=function(){xe("There was an error loading the data URI as an image on the following SVG\n"+window.atob(yt.slice(26))+"Open the following link to see browser's diagnosis\n"+yt)},De.src=yt})})},U.download=function(ae,se,ce){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(E(se),ae);else{var le=document.createElement("a");if("download"in le){le.download=ae,le.style.display="none",document.body.appendChild(le);try{var oe=E(se),Ae=URL.createObjectURL(oe);le.href=Ae,le.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(Ae)})}}catch(be){console.error(be),console.warn("Error while getting object URL. Falling back to string URL."),le.href=se}le.click(),document.body.removeChild(le)}else ce&&ce.popup&&(ce.popup.document.title=ae,ce.popup.location.replace(se))}},U.saveSvg=function(ae,se,ce){var le=$();return A(ae).then(function(oe){return U.svgAsDataUri(oe,ce||{})}).then(function(oe){return U.download(se,oe,le)})},U.saveSvgAsPng=function(ae,se,ce){var le=$();return A(ae).then(function(oe){return U.svgAsPngUri(oe,ce||{})}).then(function(oe){return U.download(se,oe,le)})}}()},5042:function(ue,q,f){var B=f(25523),U=Object.prototype.hasOwnProperty,V="undefined"!=typeof Map;function Z(){this._array=[],this._set=V?new Map:Object.create(null)}Z.fromArray=function(N,b){for(var _=new Z,I=0,D=N.length;I<D;I++)_.add(N[I],b);return _},Z.prototype.size=function(){return V?this._set.size:Object.getOwnPropertyNames(this._set).length},Z.prototype.add=function(N,b){var _=V?N:B.toSetString(N),I=V?this.has(N):U.call(this._set,_),D=this._array.length;(!I||b)&&this._array.push(N),I||(V?this._set.set(N,D):this._set[_]=D)},Z.prototype.has=function(N){if(V)return this._set.has(N);var b=B.toSetString(N);return U.call(this._set,b)},Z.prototype.indexOf=function(N){if(V){var b=this._set.get(N);if(b>=0)return b}else{var _=B.toSetString(N);if(U.call(this._set,_))return this._set[_]}throw new Error('"'+N+'" is not in the set.')},Z.prototype.at=function(N){if(N>=0&&N<this._array.length)return this._array[N];throw new Error("No element indexed by "+N)},Z.prototype.toArray=function(){return this._array.slice()},q.I=Z},78619:function(ue,q,f){var B=f(7698);q.encode=function(I){var A,_,D="",S=(_=I)<0?1+(-_<<1):0+(_<<1);do{A=31&S,(S>>>=5)>0&&(A|=32),D+=B.encode(A)}while(S>0);return D},q.decode=function(I,D,A){var T,R,S=I.length,v=0,g=0;do{if(D>=S)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(R=B.decode(I.charCodeAt(D++))))throw new Error("Invalid base64 digit: "+I.charAt(D-1));T=!!(32&R),v+=(R&=31)<<g,g+=5}while(T);A.value=function(_){var D=_>>1;return 1==(1&_)?-D:D}(v),A.rest=D}},7698:function(ue,q){var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");q.encode=function(B){if(0<=B&&B<f.length)return f[B];throw new TypeError("Must be between 0 and 63: "+B)},q.decode=function(B){return 65<=B&&B<=90?B-65:97<=B&&B<=122?B-97+26:48<=B&&B<=57?B-48+52:43==B?62:47==B?63:-1}},66306:function(ue,q,f){var B=f(25523);function V(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}V.prototype.unsortedForEach=function(w,N){this._array.forEach(w,N)},V.prototype.add=function(w){!function(Z,w){var N=Z.generatedLine,b=w.generatedLine;return b>N||b==N&&w.generatedColumn>=Z.generatedColumn||B.compareByGeneratedPositionsInflated(Z,w)<=0}(this._last,w)?(this._sorted=!1,this._array.push(w)):(this._last=w,this._array.push(w))},V.prototype.toArray=function(){return this._sorted||(this._array.sort(B.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},q.H=V},30673:function(ue,q,f){var B=f(78619),U=f(25523),V=f(5042).I,Z=f(66306).H;function w(N){N||(N={}),this._file=U.getArg(N,"file",null),this._sourceRoot=U.getArg(N,"sourceRoot",null),this._skipValidation=U.getArg(N,"skipValidation",!1),this._sources=new V,this._names=new V,this._mappings=new Z,this._sourcesContents=null}w.prototype._version=3,w.fromSourceMap=function(b){var _=b.sourceRoot,I=new w({file:b.file,sourceRoot:_});return b.eachMapping(function(D){var A={generated:{line:D.generatedLine,column:D.generatedColumn}};null!=D.source&&(A.source=D.source,null!=_&&(A.source=U.relative(_,A.source)),A.original={line:D.originalLine,column:D.originalColumn},null!=D.name&&(A.name=D.name)),I.addMapping(A)}),b.sources.forEach(function(D){var A=D;null!==_&&(A=U.relative(_,D)),I._sources.has(A)||I._sources.add(A);var S=b.sourceContentFor(D);null!=S&&I.setSourceContent(D,S)}),I},w.prototype.addMapping=function(b){var _=U.getArg(b,"generated"),I=U.getArg(b,"original",null),D=U.getArg(b,"source",null),A=U.getArg(b,"name",null);this._skipValidation||this._validateMapping(_,I,D,A),null!=D&&(D=String(D),this._sources.has(D)||this._sources.add(D)),null!=A&&(A=String(A),this._names.has(A)||this._names.add(A)),this._mappings.add({generatedLine:_.line,generatedColumn:_.column,originalLine:null!=I&&I.line,originalColumn:null!=I&&I.column,source:D,name:A})},w.prototype.setSourceContent=function(b,_){var I=b;null!=this._sourceRoot&&(I=U.relative(this._sourceRoot,I)),null!=_?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[U.toSetString(I)]=_):this._sourcesContents&&(delete this._sourcesContents[U.toSetString(I)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},w.prototype.applySourceMap=function(b,_,I){var D=_;if(null==_){if(null==b.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');D=b.file}var A=this._sourceRoot;null!=A&&(D=U.relative(A,D));var S=new V,v=new V;this._mappings.unsortedForEach(function(g){if(g.source===D&&null!=g.originalLine){var T=b.originalPositionFor({line:g.originalLine,column:g.originalColumn});null!=T.source&&(g.source=T.source,null!=I&&(g.source=U.join(I,g.source)),null!=A&&(g.source=U.relative(A,g.source)),g.originalLine=T.line,g.originalColumn=T.column,null!=T.name&&(g.name=T.name))}var R=g.source;null!=R&&!S.has(R)&&S.add(R);var k=g.name;null!=k&&!v.has(k)&&v.add(k)},this),this._sources=S,this._names=v,b.sources.forEach(function(g){var T=b.sourceContentFor(g);null!=T&&(null!=I&&(g=U.join(I,g)),null!=A&&(g=U.relative(A,g)),this.setSourceContent(g,T))},this)},w.prototype._validateMapping=function(b,_,I,D){if(_&&"number"!=typeof _.line&&"number"!=typeof _.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(b&&"line"in b&&"column"in b&&b.line>0&&b.column>=0)||_||I||D){if(b&&"line"in b&&"column"in b&&_&&"line"in _&&"column"in _&&b.line>0&&b.column>=0&&_.line>0&&_.column>=0&&I)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:b,source:I,original:_,name:D}))}},w.prototype._serializeMappings=function(){for(var g,T,R,k,b=0,_=1,I=0,D=0,A=0,S=0,v="",E=this._mappings.toArray(),x=0,O=E.length;x<O;x++){if(g="",(T=E[x]).generatedLine!==_)for(b=0;T.generatedLine!==_;)g+=";",_++;else if(x>0){if(!U.compareByGeneratedPositionsInflated(T,E[x-1]))continue;g+=","}g+=B.encode(T.generatedColumn-b),b=T.generatedColumn,null!=T.source&&(k=this._sources.indexOf(T.source),g+=B.encode(k-S),S=k,g+=B.encode(T.originalLine-1-D),D=T.originalLine-1,g+=B.encode(T.originalColumn-I),I=T.originalColumn,null!=T.name&&(R=this._names.indexOf(T.name),g+=B.encode(R-A),A=R)),v+=g}return v},w.prototype._generateSourcesContent=function(b,_){return b.map(function(I){if(!this._sourcesContents)return null;null!=_&&(I=U.relative(_,I));var D=U.toSetString(I);return Object.prototype.hasOwnProperty.call(this._sourcesContents,D)?this._sourcesContents[D]:null},this)},w.prototype.toJSON=function(){var b={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(b.file=this._file),null!=this._sourceRoot&&(b.sourceRoot=this._sourceRoot),this._sourcesContents&&(b.sourcesContent=this._generateSourcesContent(b.sources,b.sourceRoot)),b},w.prototype.toString=function(){return JSON.stringify(this.toJSON())},q.h=w},25523:function(ue,q){q.getArg=function(x,O,F){if(O in x)return x[O];if(3===arguments.length)return F;throw new Error('"'+O+'" is a required argument.')};var B=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,U=/^data:.+\,.+$/;function V(x){var O=x.match(B);return O?{scheme:O[1],auth:O[2],host:O[3],port:O[4],path:O[5]}:null}function Z(x){var O="";return x.scheme&&(O+=x.scheme+":"),O+="//",x.auth&&(O+=x.auth+"@"),x.host&&(O+=x.host),x.port&&(O+=":"+x.port),x.path&&(O+=x.path),O}function w(x){var O=x,F=V(x);if(F){if(!F.path)return x;O=F.path}for(var j,z=q.isAbsolute(O),K=O.split(/\/+/),J=0,ee=K.length-1;ee>=0;ee--)"."===(j=K[ee])?K.splice(ee,1):".."===j?J++:J>0&&(""===j?(K.splice(ee+1,J),J=0):(K.splice(ee,2),J--));return""===(O=K.join("/"))&&(O=z?"/":"."),F?(F.path=O,Z(F)):O}function N(x,O){""===x&&(x="."),""===O&&(O=".");var F=V(O),z=V(x);if(z&&(x=z.path||"/"),F&&!F.scheme)return z&&(F.scheme=z.scheme),Z(F);if(F||O.match(U))return O;if(z&&!z.host&&!z.path)return z.host=O,Z(z);var K="/"===O.charAt(0)?O:w(x.replace(/\/+$/,"")+"/"+O);return z?(z.path=K,Z(z)):K}q.urlParse=V,q.urlGenerate=Z,q.normalize=w,q.join=N,q.isAbsolute=function(x){return"/"===x.charAt(0)||B.test(x)},q.relative=function(x,O){""===x&&(x="."),x=x.replace(/\/$/,"");for(var F=0;0!==O.indexOf(x+"/");){var z=x.lastIndexOf("/");if(z<0||(x=x.slice(0,z)).match(/^([^\/]+:\/)?\/*$/))return O;++F}return Array(F+1).join("../")+O.substr(x.length+1)};var _=!("__proto__"in Object.create(null));function I(x){return x}function S(x){if(!x)return!1;var O=x.length;if(O<9||95!==x.charCodeAt(O-1)||95!==x.charCodeAt(O-2)||111!==x.charCodeAt(O-3)||116!==x.charCodeAt(O-4)||111!==x.charCodeAt(O-5)||114!==x.charCodeAt(O-6)||112!==x.charCodeAt(O-7)||95!==x.charCodeAt(O-8)||95!==x.charCodeAt(O-9))return!1;for(var F=O-10;F>=0;F--)if(36!==x.charCodeAt(F))return!1;return!0}function T(x,O){return x===O?0:null===x?1:null===O?-1:x>O?1:-1}q.toSetString=_?I:function(x){return S(x)?"$"+x:x},q.fromSetString=_?I:function(x){return S(x)?x.slice(1):x},q.compareByOriginalPositions=function(x,O,F){var z=T(x.source,O.source);return 0!==z||0!=(z=x.originalLine-O.originalLine)||0!=(z=x.originalColumn-O.originalColumn)||F||0!=(z=x.generatedColumn-O.generatedColumn)||0!=(z=x.generatedLine-O.generatedLine)?z:T(x.name,O.name)},q.compareByGeneratedPositionsDeflated=function(x,O,F){var z=x.generatedLine-O.generatedLine;return 0!==z||0!=(z=x.generatedColumn-O.generatedColumn)||F||0!==(z=T(x.source,O.source))||0!=(z=x.originalLine-O.originalLine)||0!=(z=x.originalColumn-O.originalColumn)?z:T(x.name,O.name)},q.compareByGeneratedPositionsInflated=function(x,O){var F=x.generatedLine-O.generatedLine;return 0!==F||0!=(F=x.generatedColumn-O.generatedColumn)||0!==(F=T(x.source,O.source))||0!=(F=x.originalLine-O.originalLine)||0!=(F=x.originalColumn-O.originalColumn)?F:T(x.name,O.name)},q.parseSourceMapInput=function(x){return JSON.parse(x.replace(/^\)]}'[^\n]*\n/,""))},q.computeSourceURL=function(x,O,F){if(O=O||"",x&&("/"!==x[x.length-1]&&"/"!==O[0]&&(x+="/"),O=x+O),F){var z=V(F);if(!z)throw new Error("sourceMapURL could not be parsed");if(z.path){var K=z.path.lastIndexOf("/");K>=0&&(z.path=z.path.substring(0,K+1))}O=N(Z(z),O)}return w(O)}},52402:function(ue){ue.exports=function(q){"use strict";var B=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function V(R,k){var E=R[0],x=R[1],O=R[2],F=R[3];x=((x+=((O=((O+=((F=((F+=((E=((E+=(x&O|~x&F)+k[0]-680876936|0)<<7|E>>>25)+x|0)&x|~E&O)+k[1]-389564586|0)<<12|F>>>20)+E|0)&E|~F&x)+k[2]+606105819|0)<<17|O>>>15)+F|0)&F|~O&E)+k[3]-1044525330|0)<<22|x>>>10)+O|0,x=((x+=((O=((O+=((F=((F+=((E=((E+=(x&O|~x&F)+k[4]-176418897|0)<<7|E>>>25)+x|0)&x|~E&O)+k[5]+1200080426|0)<<12|F>>>20)+E|0)&E|~F&x)+k[6]-1473231341|0)<<17|O>>>15)+F|0)&F|~O&E)+k[7]-45705983|0)<<22|x>>>10)+O|0,x=((x+=((O=((O+=((F=((F+=((E=((E+=(x&O|~x&F)+k[8]+1770035416|0)<<7|E>>>25)+x|0)&x|~E&O)+k[9]-1958414417|0)<<12|F>>>20)+E|0)&E|~F&x)+k[10]-42063|0)<<17|O>>>15)+F|0)&F|~O&E)+k[11]-1990404162|0)<<22|x>>>10)+O|0,x=((x+=((O=((O+=((F=((F+=((E=((E+=(x&O|~x&F)+k[12]+1804603682|0)<<7|E>>>25)+x|0)&x|~E&O)+k[13]-40341101|0)<<12|F>>>20)+E|0)&E|~F&x)+k[14]-1502002290|0)<<17|O>>>15)+F|0)&F|~O&E)+k[15]+1236535329|0)<<22|x>>>10)+O|0,x=((x+=((O=((O+=((F=((F+=((E=((E+=(x&F|O&~F)+k[1]-165796510|0)<<5|E>>>27)+x|0)&O|x&~O)+k[6]-1069501632|0)<<9|F>>>23)+E|0)&x|E&~x)+k[11]+643717713|0)<<14|O>>>18)+F|0)&E|F&~E)+k[0]-373897302|0)<<20|x>>>12)+O|0,x=((x+=((O=((O+=((F=((F+=((E=((E+=(x&F|O&~F)+k[5]-701558691|0)<<5|E>>>27)+x|0)&O|x&~O)+k[10]+38016083|0)<<9|F>>>23)+E|0)&x|E&~x)+k[15]-660478335|0)<<14|O>>>18)+F|0)&E|F&~E)+k[4]-405537848|0)<<20|x>>>12)+O|0,x=((x+=((O=((O+=((F=((F+=((E=((E+=(x&F|O&~F)+k[9]+568446438|0)<<5|E>>>27)+x|0)&O|x&~O)+k[14]-1019803690|0)<<9|F>>>23)+E|0)&x|E&~x)+k[3]-187363961|0)<<14|O>>>18)+F|0)&E|F&~E)+k[8]+1163531501|0)<<20|x>>>12)+O|0,x=((x+=((O=((O+=((F=((F+=((E=((E+=(x&F|O&~F)+k[13]-1444681467|0)<<5|E>>>27)+x|0)&O|x&~O)+k[2]-51403784|0)<<9|F>>>23)+E|0)&x|E&~x)+k[7]+1735328473|0)<<14|O>>>18)+F|0)&E|F&~E)+k[12]-1926607734|0)<<20|x>>>12)+O|0,x=((x+=((O=((O+=((F=((F+=((E=((E+=(x^O^F)+k[5]-378558|0)<<4|E>>>28)+x|0)^x^O)+k[8]-2022574463|0)<<11|F>>>21)+E|0)^E^x)+k[11]+1839030562|0)<<16|O>>>16)+F|0)^F^E)+k[14]-35309556|0)<<23|x>>>9)+O|0,x=((x+=((O=((O+=((F=((F+=((E=((E+=(x^O^F)+k[1]-1530992060|0)<<4|E>>>28)+x|0)^x^O)+k[4]+1272893353|0)<<11|F>>>21)+E|0)^E^x)+k[7]-155497632|0)<<16|O>>>16)+F|0)^F^E)+k[10]-1094730640|0)<<23|x>>>9)+O|0,x=((x+=((O=((O+=((F=((F+=((E=((E+=(x^O^F)+k[13]+681279174|0)<<4|E>>>28)+x|0)^x^O)+k[0]-358537222|0)<<11|F>>>21)+E|0)^E^x)+k[3]-722521979|0)<<16|O>>>16)+F|0)^F^E)+k[6]+76029189|0)<<23|x>>>9)+O|0,x=((x+=((O=((O+=((F=((F+=((E=((E+=(x^O^F)+k[9]-640364487|0)<<4|E>>>28)+x|0)^x^O)+k[12]-421815835|0)<<11|F>>>21)+E|0)^E^x)+k[15]+530742520|0)<<16|O>>>16)+F|0)^F^E)+k[2]-995338651|0)<<23|x>>>9)+O|0,x=((x+=((F=((F+=(x^((E=((E+=(O^(x|~F))+k[0]-198630844|0)<<6|E>>>26)+x|0)|~O))+k[7]+1126891415|0)<<10|F>>>22)+E|0)^((O=((O+=(E^(F|~x))+k[14]-1416354905|0)<<15|O>>>17)+F|0)|~E))+k[5]-57434055|0)<<21|x>>>11)+O|0,x=((x+=((F=((F+=(x^((E=((E+=(O^(x|~F))+k[12]+1700485571|0)<<6|E>>>26)+x|0)|~O))+k[3]-1894986606|0)<<10|F>>>22)+E|0)^((O=((O+=(E^(F|~x))+k[10]-1051523|0)<<15|O>>>17)+F|0)|~E))+k[1]-2054922799|0)<<21|x>>>11)+O|0,x=((x+=((F=((F+=(x^((E=((E+=(O^(x|~F))+k[8]+1873313359|0)<<6|E>>>26)+x|0)|~O))+k[15]-30611744|0)<<10|F>>>22)+E|0)^((O=((O+=(E^(F|~x))+k[6]-1560198380|0)<<15|O>>>17)+F|0)|~E))+k[13]+1309151649|0)<<21|x>>>11)+O|0,x=((x+=((F=((F+=(x^((E=((E+=(O^(x|~F))+k[4]-145523070|0)<<6|E>>>26)+x|0)|~O))+k[11]-1120210379|0)<<10|F>>>22)+E|0)^((O=((O+=(E^(F|~x))+k[2]+718787259|0)<<15|O>>>17)+F|0)|~E))+k[9]-343485551|0)<<21|x>>>11)+O|0,R[0]=E+R[0]|0,R[1]=x+R[1]|0,R[2]=O+R[2]|0,R[3]=F+R[3]|0}function Z(R){var E,k=[];for(E=0;E<64;E+=4)k[E>>2]=R.charCodeAt(E)+(R.charCodeAt(E+1)<<8)+(R.charCodeAt(E+2)<<16)+(R.charCodeAt(E+3)<<24);return k}function w(R){var E,k=[];for(E=0;E<64;E+=4)k[E>>2]=R[E]+(R[E+1]<<8)+(R[E+2]<<16)+(R[E+3]<<24);return k}function N(R){var x,O,F,z,K,j,k=R.length,E=[1732584193,-271733879,-1732584194,271733878];for(x=64;x<=k;x+=64)V(E,Z(R.substring(x-64,x)));for(O=(R=R.substring(x-64)).length,F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;x<O;x+=1)F[x>>2]|=R.charCodeAt(x)<<(x%4<<3);if(F[x>>2]|=128<<(x%4<<3),x>55)for(V(E,F),x=0;x<16;x+=1)F[x]=0;return z=(z=8*k).toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(z[2],16),j=parseInt(z[1],16)||0,F[14]=K,F[15]=j,V(E,F),E}function _(R){var E,k="";for(E=0;E<4;E+=1)k+=B[R>>8*E+4&15]+B[R>>8*E&15];return k}function I(R){var k;for(k=0;k<R.length;k+=1)R[k]=_(R[k]);return R.join("")}function D(R){return/[\u0080-\uFFFF]/.test(R)&&(R=unescape(encodeURIComponent(R))),R}function g(R){var x,k=[],E=R.length;for(x=0;x<E-1;x+=2)k.push(parseInt(R.substr(x,2),16));return String.fromCharCode.apply(String,k)}function T(){this.reset()}return I(N("hello")),"undefined"!=typeof ArrayBuffer&&!ArrayBuffer.prototype.slice&&function(){function R(k,E){return(k=0|k||0)<0?Math.max(k+E,0):Math.min(k,E)}ArrayBuffer.prototype.slice=function(k,E){var z,K,j,J,x=this.byteLength,O=R(k,x),F=x;return undefined!==E&&(F=R(E,x)),O>F?new ArrayBuffer(0):(z=F-O,K=new ArrayBuffer(z),j=new Uint8Array(K),J=new Uint8Array(this,O,z),j.set(J),K)}}(),T.prototype.append=function(R){return this.appendBinary(D(R)),this},T.prototype.appendBinary=function(R){this._buff+=R,this._length+=R.length;var E,k=this._buff.length;for(E=64;E<=k;E+=64)V(this._hash,Z(this._buff.substring(E-64,E)));return this._buff=this._buff.substring(E-64),this},T.prototype.end=function(R){var x,F,k=this._buff,E=k.length,O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(x=0;x<E;x+=1)O[x>>2]|=k.charCodeAt(x)<<(x%4<<3);return this._finish(O,E),F=I(this._hash),R&&(F=g(F)),this.reset(),F},T.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},T.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},T.prototype.setState=function(R){return this._buff=R.buff,this._length=R.length,this._hash=R.hash,this},T.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},T.prototype._finish=function(R,k){var x,O,F,E=k;if(R[E>>2]|=128<<(E%4<<3),E>55)for(V(this._hash,R),E=0;E<16;E+=1)R[E]=0;x=(x=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),O=parseInt(x[2],16),F=parseInt(x[1],16)||0,R[14]=O,R[15]=F,V(this._hash,R)},T.hash=function(R,k){return T.hashBinary(D(R),k)},T.hashBinary=function(R,k){var x=I(N(R));return k?g(x):x},(T.ArrayBuffer=function(){this.reset()}).prototype.append=function(R){var x,k=function(R,k,E){var x=new Uint8Array(R.byteLength+k.byteLength);return x.set(new Uint8Array(R)),x.set(new Uint8Array(k),R.byteLength),E?x:x.buffer}(this._buff.buffer,R,!0),E=k.length;for(this._length+=R.byteLength,x=64;x<=E;x+=64)V(this._hash,w(k.subarray(x-64,x)));return this._buff=x-64<E?new Uint8Array(k.buffer.slice(x-64)):new Uint8Array(0),this},T.ArrayBuffer.prototype.end=function(R){var O,F,k=this._buff,E=k.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(O=0;O<E;O+=1)x[O>>2]|=k[O]<<(O%4<<3);return this._finish(x,E),F=I(this._hash),R&&(F=g(F)),this.reset(),F},T.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},T.ArrayBuffer.prototype.getState=function(){var R=T.prototype.getState.call(this);return R.buff=function(R){return String.fromCharCode.apply(null,new Uint8Array(R))}(R.buff),R},T.ArrayBuffer.prototype.setState=function(R){return R.buff=function(R,k){var F,E=R.length,x=new ArrayBuffer(E),O=new Uint8Array(x);for(F=0;F<E;F+=1)O[F]=R.charCodeAt(F);return k?O:x}(R.buff,!0),T.prototype.setState.call(this,R)},T.ArrayBuffer.prototype.destroy=T.prototype.destroy,T.ArrayBuffer.prototype._finish=T.prototype._finish,T.ArrayBuffer.hash=function(R,k){var x=I(function(R){var x,O,F,z,K,j,k=R.length,E=[1732584193,-271733879,-1732584194,271733878];for(x=64;x<=k;x+=64)V(E,w(R.subarray(x-64,x)));for(O=(R=x-64<k?R.subarray(x-64):new Uint8Array(0)).length,F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;x<O;x+=1)F[x>>2]|=R[x]<<(x%4<<3);if(F[x>>2]|=128<<(x%4<<3),x>55)for(V(E,F),x=0;x<16;x+=1)F[x]=0;return z=(z=8*k).toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(z[2],16),j=parseInt(z[1],16)||0,F[14]=K,F[15]=j,V(E,F),E}(new Uint8Array(R)));return k?g(x):x},T}()},49940:function(ue,q,f){var B=f(33499),U=f(54968),V=U;V.v1=B,V.v4=U,ue.exports=V},83702:function(ue){for(var q=[],f=0;f<256;++f)q[f]=(f+256).toString(16).substr(1);ue.exports=function(U,V){var Z=V||0;return[q[U[Z++]],q[U[Z++]],q[U[Z++]],q[U[Z++]],"-",q[U[Z++]],q[U[Z++]],"-",q[U[Z++]],q[U[Z++]],"-",q[U[Z++]],q[U[Z++]],"-",q[U[Z++]],q[U[Z++]],q[U[Z++]],q[U[Z++]],q[U[Z++]],q[U[Z++]]].join("")}},1942:function(ue){var q="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(q){var f=new Uint8Array(16);ue.exports=function(){return q(f),f}}else{var B=new Array(16);ue.exports=function(){for(var Z,V=0;V<16;V++)0==(3&V)&&(Z=4294967296*Math.random()),B[V]=Z>>>((3&V)<<3)&255;return B}}},33499:function(ue,q,f){var V,Z,B=f(1942),U=f(83702),w=0,N=0;ue.exports=function(_,I,D){var A=I&&D||0,S=I||[],v=(_=_||{}).node||V,g=void 0!==_.clockseq?_.clockseq:Z;if(null==v||null==g){var T=B();null==v&&(v=V=[1|T[0],T[1],T[2],T[3],T[4],T[5]]),null==g&&(g=Z=16383&(T[6]<<8|T[7]))}var R=void 0!==_.msecs?_.msecs:(new Date).getTime(),k=void 0!==_.nsecs?_.nsecs:N+1,E=R-w+(k-N)/1e4;if(E<0&&void 0===_.clockseq&&(g=g+1&16383),(E<0||R>w)&&void 0===_.nsecs&&(k=0),k>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");w=R,N=k,Z=g;var x=(1e4*(268435455&(R+=122192928e5))+k)%4294967296;S[A++]=x>>>24&255,S[A++]=x>>>16&255,S[A++]=x>>>8&255,S[A++]=255&x;var O=R/4294967296*1e4&268435455;S[A++]=O>>>8&255,S[A++]=255&O,S[A++]=O>>>24&15|16,S[A++]=O>>>16&255,S[A++]=g>>>8|128,S[A++]=255&g;for(var F=0;F<6;++F)S[A+F]=v[F];return I||U(S)}},54968:function(ue,q,f){var B=f(1942),U=f(83702);ue.exports=function(Z,w,N){var b=w&&N||0;"string"==typeof Z&&(w="binary"===Z?new Array(16):null,Z=null);var _=(Z=Z||{}).random||(Z.rng||B)();if(_[6]=15&_[6]|64,_[8]=63&_[8]|128,w)for(var I=0;I<16;++I)w[b+I]=_[I];return w||U(_)}},3397:function(ue){window,ue.exports=function(q){var f={};function B(U){if(f[U])return f[U].exports;var V=f[U]={i:U,l:!1,exports:{}};return q[U].call(V.exports,V,V.exports,B),V.l=!0,V.exports}return B.m=q,B.c=f,B.d=function(U,V,Z){B.o(U,V)||Object.defineProperty(U,V,{enumerable:!0,get:Z})},B.r=function(U){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(U,"__esModule",{value:!0})},B.t=function(U,V){if(1&V&&(U=B(U)),8&V||4&V&&"object"==typeof U&&U&&U.__esModule)return U;var Z=Object.create(null);if(B.r(Z),Object.defineProperty(Z,"default",{enumerable:!0,value:U}),2&V&&"string"!=typeof U)for(var w in U)B.d(Z,w,function(N){return U[N]}.bind(null,w));return Z},B.n=function(U){var V=U&&U.__esModule?function(){return U.default}:function(){return U};return B.d(V,"a",V),V},B.o=function(U,V){return Object.prototype.hasOwnProperty.call(U,V)},B.p="",B(B.s=0)}([function(q,f,B){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.AttachAddon=void 0;var U=function(){function Z(w,N){this._disposables=[],this._socket=w,this._socket.binaryType="arraybuffer",this._bidirectional=!N||!1!==N.bidirectional}return Z.prototype.activate=function(w){var N=this;this._disposables.push(V(this._socket,"message",function(b){var _=b.data;w.write("string"==typeof _?_:new Uint8Array(_))})),this._bidirectional&&(this._disposables.push(w.onData(function(b){return N._sendData(b)})),this._disposables.push(w.onBinary(function(b){return N._sendBinary(b)}))),this._disposables.push(V(this._socket,"close",function(){return N.dispose()})),this._disposables.push(V(this._socket,"error",function(){return N.dispose()}))},Z.prototype.dispose=function(){this._disposables.forEach(function(w){return w.dispose()})},Z.prototype._sendData=function(w){1===this._socket.readyState&&this._socket.send(w)},Z.prototype._sendBinary=function(w){if(1===this._socket.readyState){for(var N=new Uint8Array(w.length),b=0;b<w.length;++b)N[b]=255&w.charCodeAt(b);this._socket.send(N)}},Z}();function V(Z,w,N){return Z.addEventListener(w,N),{dispose:function(){N&&Z.removeEventListener(w,N)}}}f.AttachAddon=U}])},97916:function(ue){self,ue.exports=function(){"use strict";var q={775:function(U,V){Object.defineProperty(V,"__esModule",{value:!0}),V.FitAddon=void 0;var Z=function(){function w(){}return w.prototype.activate=function(N){this._terminal=N},w.prototype.dispose=function(){},w.prototype.fit=function(){var N=this.proposeDimensions();N&&this._terminal&&(this._terminal.rows===N.rows&&this._terminal.cols===N.cols||(this._terminal._core._renderService.clear(),this._terminal.resize(N.cols,N.rows)))},w.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var N=this._terminal._core;if(0!==N._renderService.dimensions.actualCellWidth&&0!==N._renderService.dimensions.actualCellHeight){var b=window.getComputedStyle(this._terminal.element.parentElement),_=parseInt(b.getPropertyValue("height")),I=Math.max(0,parseInt(b.getPropertyValue("width"))),D=window.getComputedStyle(this._terminal.element),A=_-(parseInt(D.getPropertyValue("padding-top"))+parseInt(D.getPropertyValue("padding-bottom"))),S=I-(parseInt(D.getPropertyValue("padding-right"))+parseInt(D.getPropertyValue("padding-left")))-N.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(S/N._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(A/N._renderService.dimensions.actualCellHeight))}}}},w}();V.FitAddon=Z}},f={};return function B(U){if(f[U])return f[U].exports;var V=f[U]={exports:{}};return q[U](V,V.exports,B),V.exports}(775)}()},20039:function(ue){self,ue.exports=function(){"use strict";var q={4567:function(Z,w,N){var b,_=this&&this.__extends||(b=function(E,x){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,F){O.__proto__=F}||function(O,F){for(var z in F)Object.prototype.hasOwnProperty.call(F,z)&&(O[z]=F[z])})(E,x)},function(k,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=k}b(k,E),k.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)});Object.defineProperty(w,"__esModule",{value:!0}),w.AccessibilityManager=void 0;var I=N(9042),D=N(6114),A=N(9924),S=N(3656),v=N(844),g=N(5596),T=N(9631),R=function(k){function E(x,O){var F=k.call(this)||this;F._terminal=x,F._renderService=O,F._liveRegionLineCount=0,F._charsToConsume=[],F._charsToAnnounce="",F._accessibilityTreeRoot=document.createElement("div"),F._accessibilityTreeRoot.setAttribute("role","document"),F._accessibilityTreeRoot.classList.add("xterm-accessibility"),F._rowContainer=document.createElement("div"),F._rowContainer.setAttribute("role","list"),F._rowContainer.classList.add("xterm-accessibility-tree"),F._rowElements=[];for(var z=0;z<F._terminal.rows;z++)F._rowElements[z]=F._createAccessibilityTreeNode(),F._rowContainer.appendChild(F._rowElements[z]);if(F._topBoundaryFocusListener=function(K){return F._onBoundaryFocus(K,0)},F._bottomBoundaryFocusListener=function(K){return F._onBoundaryFocus(K,1)},F._rowElements[0].addEventListener("focus",F._topBoundaryFocusListener),F._rowElements[F._rowElements.length-1].addEventListener("focus",F._bottomBoundaryFocusListener),F._refreshRowsDimensions(),F._accessibilityTreeRoot.appendChild(F._rowContainer),F._renderRowsDebouncer=new A.TimeBasedDebouncer(F._renderRows.bind(F)),F._refreshRows(),F._liveRegion=document.createElement("div"),F._liveRegion.classList.add("live-region"),F._liveRegion.setAttribute("aria-live","assertive"),F._accessibilityTreeRoot.appendChild(F._liveRegion),!F._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return F._terminal.element.insertAdjacentElement("afterbegin",F._accessibilityTreeRoot),F.register(F._renderRowsDebouncer),F.register(F._terminal.onResize(function(K){return F._onResize(K.rows)})),F.register(F._terminal.onRender(function(K){return F._refreshRows(K.start,K.end)})),F.register(F._terminal.onScroll(function(){return F._refreshRows()})),F.register(F._terminal.onA11yChar(function(K){return F._onChar(K)})),F.register(F._terminal.onLineFeed(function(){return F._onChar("\n")})),F.register(F._terminal.onA11yTab(function(K){return F._onTab(K)})),F.register(F._terminal.onKey(function(K){return F._onKey(K.key)})),F.register(F._terminal.onBlur(function(){return F._clearLiveRegion()})),F.register(F._renderService.onDimensionsChange(function(){return F._refreshRowsDimensions()})),F._screenDprMonitor=new g.ScreenDprMonitor,F.register(F._screenDprMonitor),F._screenDprMonitor.setListener(function(){return F._refreshRowsDimensions()}),F.register((0,S.addDisposableDomListener)(window,"resize",function(){return F._refreshRowsDimensions()})),F}return _(E,k),E.prototype.dispose=function(){k.prototype.dispose.call(this),(0,T.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0},E.prototype._onBoundaryFocus=function(x,O){var F=x.target,z=this._rowElements[0===O?1:this._rowElements.length-2];if(F.getAttribute("aria-posinset")!==(0===O?"1":""+this._terminal.buffer.lines.length)&&x.relatedTarget===z){var K,j;if(0===O?(K=F,j=this._rowElements.pop(),this._rowContainer.removeChild(j)):(K=this._rowElements.shift(),j=F,this._rowContainer.removeChild(K)),K.removeEventListener("focus",this._topBoundaryFocusListener),j.removeEventListener("focus",this._bottomBoundaryFocusListener),0===O){var J=this._createAccessibilityTreeNode();this._rowElements.unshift(J),this._rowContainer.insertAdjacentElement("afterbegin",J)}else J=this._createAccessibilityTreeNode(),this._rowElements.push(J),this._rowContainer.appendChild(J);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===O?-1:1),this._rowElements[0===O?1:this._rowElements.length-2].focus(),x.preventDefault(),x.stopImmediatePropagation()}},E.prototype._onResize=function(x){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var O=this._rowContainer.children.length;O<this._terminal.rows;O++)this._rowElements[O]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[O]);for(;this._rowElements.length>x;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},E.prototype._createAccessibilityTreeNode=function(){var x=document.createElement("div");return x.setAttribute("role","listitem"),x.tabIndex=-1,this._refreshRowDimensions(x),x},E.prototype._onTab=function(x){for(var O=0;O<x;O++)this._onChar(" ")},E.prototype._onChar=function(x){var O=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==x&&(this._charsToAnnounce+=x):this._charsToAnnounce+=x,"\n"===x&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=I.tooMuchOutput)),D.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){O._accessibilityTreeRoot.appendChild(O._liveRegion)},0))},E.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,D.isMac&&(0,T.removeElementFromParent)(this._liveRegion)},E.prototype._onKey=function(x){this._clearLiveRegion(),this._charsToConsume.push(x)},E.prototype._refreshRows=function(x,O){this._renderRowsDebouncer.refresh(x,O,this._terminal.rows)},E.prototype._renderRows=function(x,O){for(var F=this._terminal.buffer,z=F.lines.length.toString(),K=x;K<=O;K++){var j=F.translateBufferLineToString(F.ydisp+K,!0),J=(F.ydisp+K+1).toString(),ee=this._rowElements[K];ee&&(0===j.length?ee.innerText="\xa0":ee.textContent=j,ee.setAttribute("aria-posinset",J),ee.setAttribute("aria-setsize",z))}this._announceCharacters()},E.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var x=0;x<this._terminal.rows;x++)this._refreshRowDimensions(this._rowElements[x])}},E.prototype._refreshRowDimensions=function(x){x.style.height=this._renderService.dimensions.actualCellHeight+"px"},E.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},E}(v.Disposable);w.AccessibilityManager=R},3614:function(Z,w){function N(D){return D.replace(/\r?\n/g,"\r")}function b(D,A){return A?"\x1b[200~"+D+"\x1b[201~":D}function _(D,A,S){D=b(D=N(D),S.decPrivateModes.bracketedPasteMode),S.triggerDataEvent(D,!0),A.value=""}function I(D,A,S){var v=S.getBoundingClientRect(),g=D.clientX-v.left-10,T=D.clientY-v.top-10;A.style.width="20px",A.style.height="20px",A.style.left=g+"px",A.style.top=T+"px",A.style.zIndex="1000",A.focus()}Object.defineProperty(w,"__esModule",{value:!0}),w.rightClickHandler=w.moveTextAreaUnderMouseCursor=w.paste=w.handlePasteEvent=w.copyHandler=w.bracketTextForPaste=w.prepareTextForTerminal=void 0,w.prepareTextForTerminal=N,w.bracketTextForPaste=b,w.copyHandler=function(D,A){D.clipboardData&&D.clipboardData.setData("text/plain",A.selectionText),D.preventDefault()},w.handlePasteEvent=function(D,A,S){D.stopPropagation(),D.clipboardData&&_(D.clipboardData.getData("text/plain"),A,S)},w.paste=_,w.moveTextAreaUnderMouseCursor=I,w.rightClickHandler=function(D,A,S,v,g){I(D,A,S),g&&v.rightClickSelect(D),A.value=v.selectionText,A.select()}},4774:function(Z,w){var N,b,_,I,S;function D(S){var v=S.toString(16);return v.length<2?"0"+v:v}function A(S,v){return S<v?(v+.05)/(S+.05):(S+.05)/(v+.05)}Object.defineProperty(w,"__esModule",{value:!0}),w.contrastRatio=w.toPaddedHex=w.rgba=w.rgb=w.css=w.color=w.channels=void 0,(S=N=w.channels||(w.channels={})).toCss=function(v,g,T,R){return void 0!==R?"#"+D(v)+D(g)+D(T)+D(R):"#"+D(v)+D(g)+D(T)},S.toRgba=function(v,g,T,R){return void 0===R&&(R=255),(v<<24|g<<16|T<<8|R)>>>0},(b=w.color||(w.color={})).blend=function(S,v){var g=(255&v.rgba)/255;if(1===g)return{css:v.css,rgba:v.rgba};var R=v.rgba>>16&255,k=v.rgba>>8&255,E=S.rgba>>24&255,x=S.rgba>>16&255,O=S.rgba>>8&255,F=E+Math.round(((v.rgba>>24&255)-E)*g),z=x+Math.round((R-x)*g),K=O+Math.round((k-O)*g);return{css:N.toCss(F,z,K),rgba:N.toRgba(F,z,K)}},b.isOpaque=function(S){return 255==(255&S.rgba)},b.ensureContrastRatio=function(S,v,g){var T=I.ensureContrastRatio(S.rgba,v.rgba,g);if(T)return I.toColor(T>>24&255,T>>16&255,T>>8&255)},b.opaque=function(S){var v=(255|S.rgba)>>>0,g=I.toChannels(v);return{css:N.toCss(g[0],g[1],g[2]),rgba:v}},b.opacity=function(S,v){var g=Math.round(255*v),T=I.toChannels(S.rgba),R=T[0],k=T[1],E=T[2];return{css:N.toCss(R,k,E,g),rgba:N.toRgba(R,k,E,g)}},(w.css||(w.css={})).toColor=function(S){switch(S.length){case 7:return{css:S,rgba:(parseInt(S.slice(1),16)<<8|255)>>>0};case 9:return{css:S,rgba:parseInt(S.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(S){function v(g,T,R){var k=g/255,E=T/255,x=R/255;return.2126*(k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4))+.7152*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))+.0722*(x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4))}S.relativeLuminance=function(g){return v(g>>16&255,g>>8&255,255&g)},S.relativeLuminance2=v}(_=w.rgb||(w.rgb={})),function(S){function v(T,R,k){for(var E=T>>24&255,x=T>>16&255,O=T>>8&255,F=R>>24&255,z=R>>16&255,K=R>>8&255,j=A(_.relativeLuminance2(F,K,z),_.relativeLuminance2(E,x,O));j<k&&(F>0||z>0||K>0);)F-=Math.max(0,Math.ceil(.1*F)),z-=Math.max(0,Math.ceil(.1*z)),K-=Math.max(0,Math.ceil(.1*K)),j=A(_.relativeLuminance2(F,K,z),_.relativeLuminance2(E,x,O));return(F<<24|z<<16|K<<8|255)>>>0}function g(T,R,k){for(var E=T>>24&255,x=T>>16&255,O=T>>8&255,F=R>>24&255,z=R>>16&255,K=R>>8&255,j=A(_.relativeLuminance2(F,K,z),_.relativeLuminance2(E,x,O));j<k&&(F<255||z<255||K<255);)F=Math.min(255,F+Math.ceil(.1*(255-F))),z=Math.min(255,z+Math.ceil(.1*(255-z))),K=Math.min(255,K+Math.ceil(.1*(255-K))),j=A(_.relativeLuminance2(F,K,z),_.relativeLuminance2(E,x,O));return(F<<24|z<<16|K<<8|255)>>>0}S.ensureContrastRatio=function(T,R,k){var E=_.relativeLuminance(T>>8),x=_.relativeLuminance(R>>8);if(A(E,x)<k)return x<E?v(T,R,k):g(T,R,k)},S.reduceLuminance=v,S.increaseLuminance=g,S.toChannels=function(T){return[T>>24&255,T>>16&255,T>>8&255,255&T]},S.toColor=function(T,R,k){return{css:N.toCss(T,R,k),rgba:N.toRgba(T,R,k)}}}(I=w.rgba||(w.rgba={})),w.toPaddedHex=D,w.contrastRatio=A},7239:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.ColorContrastCache=void 0;var N=function(){function b(){this._color={},this._rgba={}}return b.prototype.clear=function(){this._color={},this._rgba={}},b.prototype.setCss=function(_,I,D){this._rgba[_]||(this._rgba[_]={}),this._rgba[_][I]=D},b.prototype.getCss=function(_,I){return this._rgba[_]?this._rgba[_][I]:void 0},b.prototype.setColor=function(_,I,D){this._color[_]||(this._color[_]={}),this._color[_][I]=D},b.prototype.getColor=function(_,I){return this._color[_]?this._color[_][I]:void 0},b}();w.ColorContrastCache=N},5680:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.ColorManager=w.DEFAULT_ANSI_COLORS=void 0;var b=N(4774),_=N(7239),I=b.css.toColor("#ffffff"),D=b.css.toColor("#000000"),A=b.css.toColor("#ffffff"),S=b.css.toColor("#000000"),v={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};w.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var T=[b.css.toColor("#2e3436"),b.css.toColor("#cc0000"),b.css.toColor("#4e9a06"),b.css.toColor("#c4a000"),b.css.toColor("#3465a4"),b.css.toColor("#75507b"),b.css.toColor("#06989a"),b.css.toColor("#d3d7cf"),b.css.toColor("#555753"),b.css.toColor("#ef2929"),b.css.toColor("#8ae234"),b.css.toColor("#fce94f"),b.css.toColor("#729fcf"),b.css.toColor("#ad7fa8"),b.css.toColor("#34e2e2"),b.css.toColor("#eeeeec")],R=[0,95,135,175,215,255],k=0;k<216;k++){var E=R[k/36%6|0],x=R[k/6%6|0],O=R[k%6];T.push({css:b.channels.toCss(E,x,O),rgba:b.channels.toRgba(E,x,O)})}for(k=0;k<24;k++){var F=8+10*k;T.push({css:b.channels.toCss(F,F,F),rgba:b.channels.toRgba(F,F,F)})}return T}());var g=function(){function T(R,k){this.allowTransparency=k;var E=R.createElement("canvas");E.width=1,E.height=1;var x=E.getContext("2d");if(!x)throw new Error("Could not get rendering context");this._ctx=x,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new _.ColorContrastCache,this.colors={foreground:I,background:D,cursor:A,cursorAccent:S,selectionTransparent:v,selectionOpaque:b.color.blend(D,v),ansi:w.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return T.prototype.onOptionsChange=function(R){"minimumContrastRatio"===R&&this._contrastCache.clear()},T.prototype.setTheme=function(R){void 0===R&&(R={}),this.colors.foreground=this._parseColor(R.foreground,I),this.colors.background=this._parseColor(R.background,D),this.colors.cursor=this._parseColor(R.cursor,A,!0),this.colors.cursorAccent=this._parseColor(R.cursorAccent,S,!0),this.colors.selectionTransparent=this._parseColor(R.selection,v,!0),this.colors.selectionOpaque=b.color.blend(this.colors.background,this.colors.selectionTransparent),b.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=b.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(R.black,w.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(R.red,w.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(R.green,w.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(R.yellow,w.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(R.blue,w.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(R.magenta,w.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(R.cyan,w.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(R.white,w.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(R.brightBlack,w.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(R.brightRed,w.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(R.brightGreen,w.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(R.brightYellow,w.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(R.brightBlue,w.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(R.brightMagenta,w.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(R.brightCyan,w.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(R.brightWhite,w.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},T.prototype._parseColor=function(R,k,E){if(void 0===E&&(E=this.allowTransparency),void 0===R)return k;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=R,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+R+" is invalid using fallback "+k.css),k;this._ctx.fillRect(0,0,1,1);var x=this._ctx.getImageData(0,0,1,1).data;if(255!==x[3]){if(!E)return console.warn("Color: "+R+" is using transparency, but allowTransparency is false. Using fallback "+k.css+"."),k;var O=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(ee){return Number(ee)}),F=O[0],z=O[1],K=O[2],J=Math.round(255*O[3]);return{rgba:b.channels.toRgba(F,z,K,J),css:R}}return{css:this._ctx.fillStyle,rgba:b.channels.toRgba(x[0],x[1],x[2],x[3])}},T}();w.ColorManager=g},9631:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.removeElementFromParent=void 0,w.removeElementFromParent=function(){for(var N,b=[],_=0;_<arguments.length;_++)b[_]=arguments[_];for(var I=0,D=b;I<D.length;I++){var A=D[I];null===(N=null==A?void 0:A.parentElement)||void 0===N||N.removeChild(A)}}},3656:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.addDisposableDomListener=void 0,w.addDisposableDomListener=function(N,b,_,I){N.addEventListener(b,_,I);var D=!1;return{dispose:function(){D||(D=!0,N.removeEventListener(b,_,I))}}}},3551:function(Z,w,N){var b=this&&this.__decorate||function(v,g,T,R){var k,E=arguments.length,x=E<3?g:null===R?R=Object.getOwnPropertyDescriptor(g,T):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(v,g,T,R);else for(var O=v.length-1;O>=0;O--)(k=v[O])&&(x=(E<3?k(x):E>3?k(g,T,x):k(g,T))||x);return E>3&&x&&Object.defineProperty(g,T,x),x},_=this&&this.__param||function(v,g){return function(T,R){g(T,R,v)}};Object.defineProperty(w,"__esModule",{value:!0}),w.MouseZone=w.Linkifier=void 0;var I=N(8460),D=N(2585),A=function(){function v(g,T,R){this._bufferService=g,this._logService=T,this._unicodeService=R,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new I.EventEmitter,this._onHideLinkUnderline=new I.EventEmitter,this._onLinkTooltip=new I.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(v.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),v.prototype.attachToDom=function(g,T){this._element=g,this._mouseZoneManager=T},v.prototype.linkifyRows=function(g,T){var R=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=g,this._rowsToLinkify.end=T):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,g),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,T)),this._mouseZoneManager.clearAll(g,T),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return R._linkifyRows()},v._timeBeforeLatency))},v.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var g=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var T=g.ydisp+this._rowsToLinkify.start;if(!(T>=g.lines.length)){for(var R=g.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,k=Math.ceil(2e3/this._bufferService.cols),E=this._bufferService.buffer.iterator(!1,T,R,k,k);E.hasNext();)for(var x=E.next(),O=0;O<this._linkMatchers.length;O++)this._doLinkifyRow(x.range.first,x.content,this._linkMatchers[O]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},v.prototype.registerLinkMatcher=function(g,T,R){if(void 0===R&&(R={}),!T)throw new Error("handler must be defined");var k={id:this._nextLinkMatcherId++,regex:g,handler:T,matchIndex:R.matchIndex,validationCallback:R.validationCallback,hoverTooltipCallback:R.tooltipCallback,hoverLeaveCallback:R.leaveCallback,willLinkActivate:R.willLinkActivate,priority:R.priority||0};return this._addLinkMatcherToList(k),k.id},v.prototype._addLinkMatcherToList=function(g){if(0!==this._linkMatchers.length){for(var T=this._linkMatchers.length-1;T>=0;T--)if(g.priority<=this._linkMatchers[T].priority)return void this._linkMatchers.splice(T+1,0,g);this._linkMatchers.splice(0,0,g)}else this._linkMatchers.push(g)},v.prototype.deregisterLinkMatcher=function(g){for(var T=0;T<this._linkMatchers.length;T++)if(this._linkMatchers[T].id===g)return this._linkMatchers.splice(T,1),!0;return!1},v.prototype._doLinkifyRow=function(g,T,R){for(var k,E=this,x=new RegExp(R.regex.source,(R.regex.flags||"")+"g"),O=-1,F=function(){var j=k["number"!=typeof R.matchIndex?0:R.matchIndex];if(!j)return z._logService.debug("match found without corresponding matchIndex",k,R),"break";if(O=T.indexOf(j,O+1),x.lastIndex=O+j.length,O<0)return"break";var J=z._bufferService.buffer.stringIndexToBufferIndex(g,O);if(J[0]<0)return"break";var ee=z._bufferService.buffer.lines.get(J[0]);if(!ee)return"break";var $=ee.getFg(J[1]),ae=$?$>>9&511:void 0;R.validationCallback?R.validationCallback(j,function(se){E._rowsTimeoutId||se&&E._addLink(J[1],J[0]-E._bufferService.buffer.ydisp,j,R,ae)}):z._addLink(J[1],J[0]-z._bufferService.buffer.ydisp,j,R,ae)},z=this;null!==(k=x.exec(T))&&"break"!==F(););},v.prototype._addLink=function(g,T,R,k,E){var x=this;if(this._mouseZoneManager&&this._element){var O=this._unicodeService.getStringCellWidth(R),F=g%this._bufferService.cols,z=T+Math.floor(g/this._bufferService.cols),K=(F+O)%this._bufferService.cols,j=z+Math.floor((F+O)/this._bufferService.cols);0===K&&(K=this._bufferService.cols,j--),this._mouseZoneManager.add(new S(F+1,z+1,K+1,j+1,function(J){if(k.handler)return k.handler(J,R);var ee=window.open();ee?(ee.opener=null,ee.location.href=R):console.warn("Opening link blocked as opener could not be cleared")},function(){x._onShowLinkUnderline.fire(x._createLinkHoverEvent(F,z,K,j,E)),x._element.classList.add("xterm-cursor-pointer")},function(J){x._onLinkTooltip.fire(x._createLinkHoverEvent(F,z,K,j,E)),k.hoverTooltipCallback&&k.hoverTooltipCallback(J,R,{start:{x:F,y:z},end:{x:K,y:j}})},function(){x._onHideLinkUnderline.fire(x._createLinkHoverEvent(F,z,K,j,E)),x._element.classList.remove("xterm-cursor-pointer"),k.hoverLeaveCallback&&k.hoverLeaveCallback()},function(J){return!k.willLinkActivate||k.willLinkActivate(J,R)}))}},v.prototype._createLinkHoverEvent=function(g,T,R,k,E){return{x1:g,y1:T,x2:R,y2:k,cols:this._bufferService.cols,fg:E}},v._timeBeforeLatency=200,v=b([_(0,D.IBufferService),_(1,D.ILogService),_(2,D.IUnicodeService)],v)}();w.Linkifier=A;var S=function(g,T,R,k,E,x,O,F,z){this.x1=g,this.y1=T,this.x2=R,this.y2=k,this.clickCallback=E,this.hoverCallback=x,this.tooltipCallback=O,this.leaveCallback=F,this.willLinkActivate=z};w.MouseZone=S},6465:function(Z,w,N){var b,_=this&&this.__extends||(b=function(k,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var F in O)Object.prototype.hasOwnProperty.call(O,F)&&(x[F]=O[F])})(k,E)},function(R,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function E(){this.constructor=R}b(R,k),R.prototype=null===k?Object.create(k):(E.prototype=k.prototype,new E)}),I=this&&this.__decorate||function(R,k,E,x){var O,F=arguments.length,z=F<3?k:null===x?x=Object.getOwnPropertyDescriptor(k,E):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(R,k,E,x);else for(var K=R.length-1;K>=0;K--)(O=R[K])&&(z=(F<3?O(z):F>3?O(k,E,z):O(k,E))||z);return F>3&&z&&Object.defineProperty(k,E,z),z},D=this&&this.__param||function(R,k){return function(E,x){k(E,x,R)}};Object.defineProperty(w,"__esModule",{value:!0}),w.Linkifier2=void 0;var A=N(2585),S=N(8460),v=N(844),g=N(3656),T=function(R){function k(E){var x=R.call(this)||this;return x._bufferService=E,x._linkProviders=[],x._linkCacheDisposables=[],x._isMouseOut=!0,x._activeLine=-1,x._onShowLinkUnderline=x.register(new S.EventEmitter),x._onHideLinkUnderline=x.register(new S.EventEmitter),x.register((0,v.getDisposeArrayDisposable)(x._linkCacheDisposables)),x}return _(k,R),Object.defineProperty(k.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),k.prototype.registerLinkProvider=function(E){var x=this;return this._linkProviders.push(E),{dispose:function(){var F=x._linkProviders.indexOf(E);-1!==F&&x._linkProviders.splice(F,1)}}},k.prototype.attachToDom=function(E,x,O){var F=this;this._element=E,this._mouseService=x,this._renderService=O,this.register((0,g.addDisposableDomListener)(this._element,"mouseleave",function(){F._isMouseOut=!0,F._clearCurrentLink()})),this.register((0,g.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,g.addDisposableDomListener)(this._element,"click",this._onClick.bind(this)))},k.prototype._onMouseMove=function(E){if(this._lastMouseEvent=E,this._element&&this._mouseService){var x=this._positionFromMouseEvent(E,this._element,this._mouseService);if(x){this._isMouseOut=!1;for(var O=E.composedPath(),F=0;F<O.length;F++){var z=O[F];if(z.classList.contains("xterm"))break;if(z.classList.contains("xterm-hover"))return}this._lastBufferCell&&x.x===this._lastBufferCell.x&&x.y===this._lastBufferCell.y||(this._onHover(x),this._lastBufferCell=x)}}},k.prototype._onHover=function(E){if(this._activeLine!==E.y)return this._clearCurrentLink(),void this._askForLink(E,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,E)||(this._clearCurrentLink(),this._askForLink(E,!0))},k.prototype._askForLink=function(E,x){var O,F=this;this._activeProviderReplies&&x||(null===(O=this._activeProviderReplies)||void 0===O||O.forEach(function(K){null==K||K.forEach(function(j){j.link.dispose&&j.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=E.y);var z=!1;this._linkProviders.forEach(function(K,j){var J;x?(null===(J=F._activeProviderReplies)||void 0===J?void 0:J.get(j))&&(z=F._checkLinkProviderResult(j,E,z)):K.provideLinks(E.y,function(ee){var $,ae;if(!F._isMouseOut){var se=null==ee?void 0:ee.map(function(ce){return{link:ce}});null===($=F._activeProviderReplies)||void 0===$||$.set(j,se),z=F._checkLinkProviderResult(j,E,z),(null===(ae=F._activeProviderReplies)||void 0===ae?void 0:ae.size)===F._linkProviders.length&&F._removeIntersectingLinks(E.y,F._activeProviderReplies)}})})},k.prototype._removeIntersectingLinks=function(E,x){for(var O=new Set,F=0;F<x.size;F++){var z=x.get(F);if(z)for(var K=0;K<z.length;K++)for(var j=z[K],ee=j.link.range.end.y>E?this._bufferService.cols:j.link.range.end.x,$=j.link.range.start.y<E?0:j.link.range.start.x;$<=ee;$++){if(O.has($)){z.splice(K--,1);break}O.add($)}}},k.prototype._checkLinkProviderResult=function(E,x,O){var F,z=this;if(!this._activeProviderReplies)return O;for(var K=this._activeProviderReplies.get(E),j=!1,J=0;J<E;J++)this._activeProviderReplies.has(J)&&!this._activeProviderReplies.get(J)||(j=!0);if(!j&&K){var ee=K.find(function(ae){return z._linkAtPosition(ae.link,x)});ee&&(O=!0,this._handleNewLink(ee))}if(this._activeProviderReplies.size===this._linkProviders.length&&!O)for(J=0;J<this._activeProviderReplies.size;J++){var $=null===(F=this._activeProviderReplies.get(J))||void 0===F?void 0:F.find(function(ae){return z._linkAtPosition(ae.link,x)});if($){O=!0,this._handleNewLink($);break}}return O},k.prototype._onClick=function(E){if(this._element&&this._mouseService&&this._currentLink){var x=this._positionFromMouseEvent(E,this._element,this._mouseService);x&&this._linkAtPosition(this._currentLink.link,x)&&this._currentLink.link.activate(E,this._currentLink.link.text)}},k.prototype._clearCurrentLink=function(E,x){this._element&&this._currentLink&&this._lastMouseEvent&&(!E||!x||this._currentLink.link.range.start.y>=E&&this._currentLink.link.range.end.y<=x)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,v.disposeArray)(this._linkCacheDisposables))},k.prototype._handleNewLink=function(E){var x=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var O=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);O&&this._linkAtPosition(E.link,O)&&(this._currentLink=E,this._currentLink.state={decorations:{underline:void 0===E.link.decorations||E.link.decorations.underline,pointerCursor:void 0===E.link.decorations||E.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,E.link,this._lastMouseEvent),E.link.decorations={},Object.defineProperties(E.link.decorations,{pointerCursor:{get:function(){var z,K;return null===(K=null===(z=x._currentLink)||void 0===z?void 0:z.state)||void 0===K?void 0:K.decorations.pointerCursor},set:function(z){var K,j;(null===(K=x._currentLink)||void 0===K?void 0:K.state)&&x._currentLink.state.decorations.pointerCursor!==z&&(x._currentLink.state.decorations.pointerCursor=z,x._currentLink.state.isHovered&&(null===(j=x._element)||void 0===j||j.classList.toggle("xterm-cursor-pointer",z)))}},underline:{get:function(){var z,K;return null===(K=null===(z=x._currentLink)||void 0===z?void 0:z.state)||void 0===K?void 0:K.decorations.underline},set:function(z){var K,j,J;(null===(K=x._currentLink)||void 0===K?void 0:K.state)&&(null===(J=null===(j=x._currentLink)||void 0===j?void 0:j.state)||void 0===J?void 0:J.decorations.underline)!==z&&(x._currentLink.state.decorations.underline=z,x._currentLink.state.isHovered&&x._fireUnderlineEvent(E.link,z))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(F){x._clearCurrentLink(0===F.start?0:F.start+1+x._bufferService.buffer.ydisp,F.end+1+x._bufferService.buffer.ydisp)})))}},k.prototype._linkHover=function(E,x,O){var F;(null===(F=this._currentLink)||void 0===F?void 0:F.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(x,!0),this._currentLink.state.decorations.pointerCursor&&E.classList.add("xterm-cursor-pointer")),x.hover&&x.hover(O,x.text)},k.prototype._fireUnderlineEvent=function(E,x){var O=E.range,F=this._bufferService.buffer.ydisp,z=this._createLinkUnderlineEvent(O.start.x-1,O.start.y-F-1,O.end.x,O.end.y-F-1,void 0);(x?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(z)},k.prototype._linkLeave=function(E,x,O){var F;(null===(F=this._currentLink)||void 0===F?void 0:F.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(x,!1),this._currentLink.state.decorations.pointerCursor&&E.classList.remove("xterm-cursor-pointer")),x.leave&&x.leave(O,x.text)},k.prototype._linkAtPosition=function(E,x){var F=E.range.start.y<x.y,z=E.range.end.y>x.y;return(E.range.start.y===E.range.end.y&&E.range.start.x<=x.x&&E.range.end.x>=x.x||F&&E.range.end.x>=x.x||z&&E.range.start.x<=x.x||F&&z)&&E.range.start.y<=x.y&&E.range.end.y>=x.y},k.prototype._positionFromMouseEvent=function(E,x,O){var F=O.getCoords(E,x,this._bufferService.cols,this._bufferService.rows);if(F)return{x:F[0],y:F[1]+this._bufferService.buffer.ydisp}},k.prototype._createLinkUnderlineEvent=function(E,x,O,F,z){return{x1:E,y1:x,x2:O,y2:F,cols:this._bufferService.cols,fg:z}},I([D(0,A.IBufferService)],k)}(v.Disposable);w.Linkifier2=T},9042:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.tooMuchOutput=w.promptLabel=void 0,w.promptLabel="Terminal input",w.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(Z,w,N){var b,_=this&&this.__extends||(b=function(k,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var F in O)Object.prototype.hasOwnProperty.call(O,F)&&(x[F]=O[F])})(k,E)},function(R,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function E(){this.constructor=R}b(R,k),R.prototype=null===k?Object.create(k):(E.prototype=k.prototype,new E)}),I=this&&this.__decorate||function(R,k,E,x){var O,F=arguments.length,z=F<3?k:null===x?x=Object.getOwnPropertyDescriptor(k,E):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(R,k,E,x);else for(var K=R.length-1;K>=0;K--)(O=R[K])&&(z=(F<3?O(z):F>3?O(k,E,z):O(k,E))||z);return F>3&&z&&Object.defineProperty(k,E,z),z},D=this&&this.__param||function(R,k){return function(E,x){k(E,x,R)}};Object.defineProperty(w,"__esModule",{value:!0}),w.MouseZoneManager=void 0;var A=N(844),S=N(3656),v=N(4725),g=N(2585),T=function(R){function k(E,x,O,F,z,K){var j=R.call(this)||this;return j._element=E,j._screenElement=x,j._bufferService=O,j._mouseService=F,j._selectionService=z,j._optionsService=K,j._zones=[],j._areZonesActive=!1,j._lastHoverCoords=[void 0,void 0],j._initialSelectionLength=0,j.register((0,S.addDisposableDomListener)(j._element,"mousedown",function(J){return j._onMouseDown(J)})),j._mouseMoveListener=function(J){return j._onMouseMove(J)},j._mouseLeaveListener=function(J){return j._onMouseLeave(J)},j._clickListener=function(J){return j._onClick(J)},j}return _(k,R),k.prototype.dispose=function(){R.prototype.dispose.call(this),this._deactivate()},k.prototype.add=function(E){this._zones.push(E),1===this._zones.length&&this._activate()},k.prototype.clearAll=function(E,x){if(0!==this._zones.length){E&&x||(E=0,x=this._bufferService.rows-1);for(var O=0;O<this._zones.length;O++){var F=this._zones[O];(F.y1>E&&F.y1<=x+1||F.y2>E&&F.y2<=x+1||F.y1<E&&F.y2>x+1)&&(this._currentZone&&this._currentZone===F&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(O--,1))}0===this._zones.length&&this._deactivate()}},k.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},k.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},k.prototype._onMouseMove=function(E){this._lastHoverCoords[0]===E.pageX&&this._lastHoverCoords[1]===E.pageY||(this._onHover(E),this._lastHoverCoords=[E.pageX,E.pageY])},k.prototype._onHover=function(E){var x=this,O=this._findZoneEventAt(E);O!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),O&&(this._currentZone=O,O.hoverCallback&&O.hoverCallback(E),this._tooltipTimeout=window.setTimeout(function(){return x._onTooltip(E)},this._optionsService.options.linkTooltipHoverDuration)))},k.prototype._onTooltip=function(E){this._tooltipTimeout=void 0;var x=this._findZoneEventAt(E);null==x||x.tooltipCallback(E)},k.prototype._onMouseDown=function(E){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var x=this._findZoneEventAt(E);(null==x?void 0:x.willLinkActivate(E))&&(E.preventDefault(),E.stopImmediatePropagation())}},k.prototype._onMouseLeave=function(E){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},k.prototype._onClick=function(E){var x=this._findZoneEventAt(E),O=this._getSelectionLength();x&&O===this._initialSelectionLength&&(x.clickCallback(E),E.preventDefault(),E.stopImmediatePropagation())},k.prototype._getSelectionLength=function(){var E=this._selectionService.selectionText;return E?E.length:0},k.prototype._findZoneEventAt=function(E){var x=this._mouseService.getCoords(E,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(x)for(var O=x[0],F=x[1],z=0;z<this._zones.length;z++){var K=this._zones[z];if(K.y1===K.y2){if(F===K.y1&&O>=K.x1&&O<K.x2)return K}else if(F===K.y1&&O>=K.x1||F===K.y2&&O<K.x2||F>K.y1&&F<K.y2)return K}},I([D(2,g.IBufferService),D(3,v.IMouseService),D(4,v.ISelectionService),D(5,g.IOptionsService)],k)}(A.Disposable);w.MouseZoneManager=T},6193:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.RenderDebouncer=void 0;var N=function(){function b(_){this._renderCallback=_}return b.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},b.prototype.refresh=function(_,I,D){var A=this;this._rowCount=D,_=void 0!==_?_:0,I=void 0!==I?I:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,_):_,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,I):I,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return A._innerRefresh()}))},b.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var _=Math.max(this._rowStart,0),I=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(_,I)}},b}();w.RenderDebouncer=N},5596:function(Z,w,N){var b,_=this&&this.__extends||(b=function(A,S){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,g){v.__proto__=g}||function(v,g){for(var T in g)Object.prototype.hasOwnProperty.call(g,T)&&(v[T]=g[T])})(A,S)},function(D,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function S(){this.constructor=D}b(D,A),D.prototype=null===A?Object.create(A):(S.prototype=A.prototype,new S)});Object.defineProperty(w,"__esModule",{value:!0}),w.ScreenDprMonitor=void 0;var I=function(D){function A(){var S=null!==D&&D.apply(this,arguments)||this;return S._currentDevicePixelRatio=window.devicePixelRatio,S}return _(A,D),A.prototype.setListener=function(S){var v=this;this._listener&&this.clearListener(),this._listener=S,this._outerListener=function(){v._listener&&(v._listener(window.devicePixelRatio,v._currentDevicePixelRatio),v._updateDpr())},this._updateDpr()},A.prototype.dispose=function(){D.prototype.dispose.call(this),this.clearListener()},A.prototype._updateDpr=function(){var S;this._outerListener&&(null===(S=this._resolutionMediaMatchList)||void 0===S||S.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},A.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},A}(N(844).Disposable);w.ScreenDprMonitor=I},3236:function(Z,w,N){var b,_=this&&this.__extends||(b=function(xe,De){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(je,dt){je.__proto__=dt}||function(je,dt){for(var Ke in dt)Object.prototype.hasOwnProperty.call(dt,Ke)&&(je[Ke]=dt[Ke])})(xe,De)},function(Ft,xe){if("function"!=typeof xe&&null!==xe)throw new TypeError("Class extends value "+String(xe)+" is not a constructor or null");function De(){this.constructor=Ft}b(Ft,xe),Ft.prototype=null===xe?Object.create(xe):(De.prototype=xe.prototype,new De)});Object.defineProperty(w,"__esModule",{value:!0}),w.Terminal=void 0;var I=N(2950),D=N(1680),A=N(3614),S=N(2584),v=N(5435),g=N(3525),T=N(3551),R=N(9312),k=N(6114),E=N(3656),x=N(9042),O=N(357),F=N(6954),z=N(4567),K=N(1296),j=N(7399),J=N(8460),ee=N(8437),$=N(5680),ae=N(3230),se=N(4725),ce=N(428),le=N(8934),oe=N(6465),Ae=N(5114),be=N(8969),it=N(4774),qe=N(4269),_t="undefined"!=typeof window?window.document:null,yt=function(Ft){function xe(De){void 0===De&&(De={});var je=Ft.call(this,De)||this;return je.browser=k,je._keyDownHandled=!1,je._keyPressHandled=!1,je._unprocessedDeadKey=!1,je._onCursorMove=new J.EventEmitter,je._onKey=new J.EventEmitter,je._onRender=new J.EventEmitter,je._onSelectionChange=new J.EventEmitter,je._onTitleChange=new J.EventEmitter,je._onBell=new J.EventEmitter,je._onFocus=new J.EventEmitter,je._onBlur=new J.EventEmitter,je._onA11yCharEmitter=new J.EventEmitter,je._onA11yTabEmitter=new J.EventEmitter,je._setup(),je.linkifier=je._instantiationService.createInstance(T.Linkifier),je.linkifier2=je.register(je._instantiationService.createInstance(oe.Linkifier2)),je.register(je._inputHandler.onRequestBell(function(){return je.bell()})),je.register(je._inputHandler.onRequestRefreshRows(function(dt,Ke){return je.refresh(dt,Ke)})),je.register(je._inputHandler.onRequestSendFocus(function(){return je._reportFocus()})),je.register(je._inputHandler.onRequestReset(function(){return je.reset()})),je.register(je._inputHandler.onRequestWindowsOptionsReport(function(dt){return je._reportWindowsOptions(dt)})),je.register(je._inputHandler.onAnsiColorChange(function(dt){return je._changeAnsiColor(dt)})),je.register((0,J.forwardEvent)(je._inputHandler.onCursorMove,je._onCursorMove)),je.register((0,J.forwardEvent)(je._inputHandler.onTitleChange,je._onTitleChange)),je.register((0,J.forwardEvent)(je._inputHandler.onA11yChar,je._onA11yCharEmitter)),je.register((0,J.forwardEvent)(je._inputHandler.onA11yTab,je._onA11yTabEmitter)),je.register(je._bufferService.onResize(function(dt){return je._afterResize(dt.cols,dt.rows)})),je}return _(xe,Ft),Object.defineProperty(xe.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),xe.prototype._changeAnsiColor=function(De){var je,dt;if(this._colorManager){for(var Ke=0,Bt=De.colors;Ke<Bt.length;Ke++){var xt=Bt[Ke],vt=it.rgba.toColor(xt.red,xt.green,xt.blue);this._colorManager.colors.ansi[xt.colorIndex]=vt}null===(je=this._renderService)||void 0===je||je.setColors(this._colorManager.colors),null===(dt=this.viewport)||void 0===dt||dt.onThemeChange(this._colorManager.colors)}},xe.prototype.dispose=function(){var De,je,dt;this._isDisposed||(Ft.prototype.dispose.call(this),null===(De=this._renderService)||void 0===De||De.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(dt=null===(je=this.element)||void 0===je?void 0:je.parentNode)||void 0===dt||dt.removeChild(this.element))},xe.prototype._setup=function(){Ft.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(xe.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),xe.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},xe.prototype._updateOptions=function(De){var je,dt,Ke,Bt;switch(Ft.prototype._updateOptions.call(this,De),De){case"fontFamily":case"fontSize":null===(je=this._renderService)||void 0===je||je.clear(),null===(dt=this._charSizeService)||void 0===dt||dt.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"customGlyphs":case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":null===(Ke=this.viewport)||void 0===Ke||Ke.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new z.AccessibilityManager(this,this._renderService)):(null===(Bt=this._accessibilityManager)||void 0===Bt||Bt.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},xe.prototype._onTextAreaFocus=function(De){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(S.C0.ESC+"[I"),this.updateCursorStyle(De),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},xe.prototype.blur=function(){var De;return null===(De=this.textarea)||void 0===De?void 0:De.blur()},xe.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(S.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},xe.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var je=this.buffer.lines.get(this.buffer.ybase+this.buffer.y);if(je){var dt=Math.min(this.buffer.x,this.cols-1),Ke=this._renderService.dimensions.actualCellHeight,Bt=je.getWidth(dt),xt=this._renderService.dimensions.actualCellWidth*Bt,vt=this.buffer.y*this._renderService.dimensions.actualCellHeight;this.textarea.style.left=dt*this._renderService.dimensions.actualCellWidth+"px",this.textarea.style.top=vt+"px",this.textarea.style.width=xt+"px",this.textarea.style.height=Ke+"px",this.textarea.style.lineHeight=Ke+"px",this.textarea.style.zIndex="-5"}}},xe.prototype._initGlobal=function(){var De=this;this._bindKeys(),this.register((0,E.addDisposableDomListener)(this.element,"copy",function(dt){De.hasSelection()&&(0,A.copyHandler)(dt,De._selectionService)}));var je=function(Ke){return(0,A.handlePasteEvent)(Ke,De.textarea,De.coreService)};this.register((0,E.addDisposableDomListener)(this.textarea,"paste",je)),this.register((0,E.addDisposableDomListener)(this.element,"paste",je)),this.register(k.isFirefox?(0,E.addDisposableDomListener)(this.element,"mousedown",function(dt){2===dt.button&&(0,A.rightClickHandler)(dt,De.textarea,De.screenElement,De._selectionService,De.options.rightClickSelectsWord)}):(0,E.addDisposableDomListener)(this.element,"contextmenu",function(dt){(0,A.rightClickHandler)(dt,De.textarea,De.screenElement,De._selectionService,De.options.rightClickSelectsWord)})),k.isLinux&&this.register((0,E.addDisposableDomListener)(this.element,"auxclick",function(dt){1===dt.button&&(0,A.moveTextAreaUnderMouseCursor)(dt,De.textarea,De.screenElement)}))},xe.prototype._bindKeys=function(){var De=this;this.register((0,E.addDisposableDomListener)(this.textarea,"keyup",function(je){return De._keyUp(je)},!0)),this.register((0,E.addDisposableDomListener)(this.textarea,"keydown",function(je){return De._keyDown(je)},!0)),this.register((0,E.addDisposableDomListener)(this.textarea,"keypress",function(je){return De._keyPress(je)},!0)),this.register((0,E.addDisposableDomListener)(this.textarea,"compositionstart",function(){return De._compositionHelper.compositionstart()})),this.register((0,E.addDisposableDomListener)(this.textarea,"compositionupdate",function(je){return De._compositionHelper.compositionupdate(je)})),this.register((0,E.addDisposableDomListener)(this.textarea,"compositionend",function(){return De._compositionHelper.compositionend()})),this.register((0,E.addDisposableDomListener)(this.textarea,"input",function(je){return De._inputEvent(je)},!0)),this.register(this.onRender(function(){return De._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(je){return De._queueLinkification(je.start,je.end)}))},xe.prototype.open=function(De){var je=this;if(!De)throw new Error("Terminal requires a parent element.");De.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=De.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),De.appendChild(this.element);var dt=_t.createDocumentFragment();this._viewportElement=_t.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),dt.appendChild(this._viewportElement),this._viewportScrollArea=_t.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=_t.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=_t.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),dt.appendChild(this.screenElement),this.textarea=_t.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",x.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register((0,E.addDisposableDomListener)(this.textarea,"focus",function(xt){return je._onTextAreaFocus(xt)})),this.register((0,E.addDisposableDomListener)(this.textarea,"blur",function(){return je._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Ke=this._instantiationService.createInstance(Ae.CoreBrowserService,this.textarea);this._instantiationService.setService(se.ICoreBrowserService,Ke),this._charSizeService=this._instantiationService.createInstance(ce.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(se.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new $.ColorManager(_t,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(xt){return je._colorManager.onOptionsChange(xt)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(qe.CharacterJoinerService),this._instantiationService.setService(se.ICharacterJoinerService,this._characterJoinerService);var Bt=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(ae.RenderService,Bt,this.rows,this.screenElement)),this._instantiationService.setService(se.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(xt){return je._onRender.fire(xt)})),this.onResize(function(xt){return je._renderService.resize(xt.cols,xt.rows)}),this._compositionView=_t.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(I.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(dt),this._soundService=this._instantiationService.createInstance(O.SoundService),this._instantiationService.setService(se.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(le.MouseService),this._instantiationService.setService(se.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(D.Viewport,function(xt){return je.scrollLines(xt,!0,1)},this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return je.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){je._renderService.onCursorMove(),je._syncTextArea()})),this.register(this.onResize(function(){return je._renderService.onResize(je.cols,je.rows)})),this.register(this.onBlur(function(){return je._renderService.onBlur()})),this.register(this.onFocus(function(){return je._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return je.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(R.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(se.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(xt){return je.scrollLines(xt.amount,xt.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return je._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(xt){return je._renderService.onSelectionChanged(xt.start,xt.end,xt.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(xt){je.textarea.value=xt,je.textarea.focus(),je.textarea.select()})),this.register(this._onScroll.event(function(xt){je.viewport.syncScrollArea(),je._selectionService.refresh()})),this.register((0,E.addDisposableDomListener)(this._viewportElement,"scroll",function(){return je._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(F.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return je._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register((0,E.addDisposableDomListener)(this.element,"mousedown",function(xt){return je._selectionService.onMouseDown(xt)})),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new z.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},xe.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(g.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(K.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},xe.prototype._setTheme=function(De){var je,dt,Ke;this._theme=De,null===(je=this._colorManager)||void 0===je||je.setTheme(De),null===(dt=this._renderService)||void 0===dt||dt.setColors(this._colorManager.colors),null===(Ke=this.viewport)||void 0===Ke||Ke.onThemeChange(this._colorManager.colors)},xe.prototype.bindMouse=function(){var De=this,je=this,dt=this.element;function Ke(Ct){var qt,bt,en=je._mouseService.getRawByteCoords(Ct,je.screenElement,je.cols,je.rows);if(!en)return!1;switch(Ct.overrideType||Ct.type){case"mousemove":bt=32,void 0===Ct.buttons?(qt=3,void 0!==Ct.button&&(qt=Ct.button<3?Ct.button:3)):qt=1&Ct.buttons?0:4&Ct.buttons?1:2&Ct.buttons?2:3;break;case"mouseup":bt=0,qt=Ct.button<3?Ct.button:3;break;case"mousedown":bt=1,qt=Ct.button<3?Ct.button:3;break;case"wheel":0!==Ct.deltaY&&(bt=Ct.deltaY<0?0:1),qt=4;break;default:return!1}return!(void 0===bt||void 0===qt||qt>4)&&je.coreMouseService.triggerMouseEvent({col:en.x-33,row:en.y-33,button:qt,action:bt,ctrl:Ct.ctrlKey,alt:Ct.altKey,shift:Ct.shiftKey})}var Bt={mouseup:null,wheel:null,mousedrag:null,mousemove:null},xt=function(qt){return Ke(qt),qt.buttons||(De._document.removeEventListener("mouseup",Bt.mouseup),Bt.mousedrag&&De._document.removeEventListener("mousemove",Bt.mousedrag)),De.cancel(qt)},vt=function(qt){return Ke(qt),De.cancel(qt,!0)},Qt=function(qt){qt.buttons&&Ke(qt)},Ht=function(qt){qt.buttons||Ke(qt)};this.register(this.coreMouseService.onProtocolChange(function(Ct){Ct?("debug"===De.optionsService.options.logLevel&&De._logService.debug("Binding to mouse events:",De.coreMouseService.explainEvents(Ct)),De.element.classList.add("enable-mouse-events"),De._selectionService.disable()):(De._logService.debug("Unbinding from mouse events."),De.element.classList.remove("enable-mouse-events"),De._selectionService.enable()),8&Ct?Bt.mousemove||(dt.addEventListener("mousemove",Ht),Bt.mousemove=Ht):(dt.removeEventListener("mousemove",Bt.mousemove),Bt.mousemove=null),16&Ct?Bt.wheel||(dt.addEventListener("wheel",vt,{passive:!1}),Bt.wheel=vt):(dt.removeEventListener("wheel",Bt.wheel),Bt.wheel=null),2&Ct?Bt.mouseup||(Bt.mouseup=xt):(De._document.removeEventListener("mouseup",Bt.mouseup),Bt.mouseup=null),4&Ct?Bt.mousedrag||(Bt.mousedrag=Qt):(De._document.removeEventListener("mousemove",Bt.mousedrag),Bt.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,E.addDisposableDomListener)(dt,"mousedown",function(Ct){if(Ct.preventDefault(),De.focus(),De.coreMouseService.areMouseEventsActive&&!De._selectionService.shouldForceSelection(Ct))return Ke(Ct),Bt.mouseup&&De._document.addEventListener("mouseup",Bt.mouseup),Bt.mousedrag&&De._document.addEventListener("mousemove",Bt.mousedrag),De.cancel(Ct)})),this.register((0,E.addDisposableDomListener)(dt,"wheel",function(Ct){if(!Bt.wheel){if(!De.buffer.hasScrollback){var qt=De.viewport.getLinesScrolled(Ct);if(0===qt)return;for(var bt=S.C0.ESC+(De.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Ct.deltaY<0?"A":"B"),en="",Nt=0;Nt<Math.abs(qt);Nt++)en+=bt;return De.coreService.triggerDataEvent(en,!0),De.cancel(Ct,!0)}return De.viewport.onWheel(Ct)?void 0:De.cancel(Ct)}},{passive:!1})),this.register((0,E.addDisposableDomListener)(dt,"touchstart",function(Ct){if(!De.coreMouseService.areMouseEventsActive)return De.viewport.onTouchStart(Ct),De.cancel(Ct)},{passive:!0})),this.register((0,E.addDisposableDomListener)(dt,"touchmove",function(Ct){if(!De.coreMouseService.areMouseEventsActive)return De.viewport.onTouchMove(Ct)?void 0:De.cancel(Ct)},{passive:!1}))},xe.prototype.refresh=function(De,je){var dt;null===(dt=this._renderService)||void 0===dt||dt.refreshRows(De,je)},xe.prototype._queueLinkification=function(De,je){var dt;null===(dt=this.linkifier)||void 0===dt||dt.linkifyRows(De,je)},xe.prototype.updateCursorStyle=function(De){var je;(null===(je=this._selectionService)||void 0===je?void 0:je.shouldColumnSelect(De))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},xe.prototype._showCursor=function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},xe.prototype.scrollLines=function(De,je,dt){void 0===dt&&(dt=0),Ft.prototype.scrollLines.call(this,De,je,dt),this.refresh(0,this.rows-1)},xe.prototype.paste=function(De){(0,A.paste)(De,this.textarea,this.coreService)},xe.prototype.attachCustomKeyEventHandler=function(De){this._customKeyEventHandler=De},xe.prototype.registerLinkMatcher=function(De,je,dt){var Ke=this.linkifier.registerLinkMatcher(De,je,dt);return this.refresh(0,this.rows-1),Ke},xe.prototype.deregisterLinkMatcher=function(De){this.linkifier.deregisterLinkMatcher(De)&&this.refresh(0,this.rows-1)},xe.prototype.registerLinkProvider=function(De){return this.linkifier2.registerLinkProvider(De)},xe.prototype.registerCharacterJoiner=function(De){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var je=this._characterJoinerService.register(De);return this.refresh(0,this.rows-1),je},xe.prototype.deregisterCharacterJoiner=function(De){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(De)&&this.refresh(0,this.rows-1)},Object.defineProperty(xe.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),xe.prototype.addMarker=function(De){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+De)},xe.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},xe.prototype.select=function(De,je,dt){this._selectionService.setSelection(De,je,dt)},xe.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},xe.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},xe.prototype.clearSelection=function(){var De;null===(De=this._selectionService)||void 0===De||De.clearSelection()},xe.prototype.selectAll=function(){var De;null===(De=this._selectionService)||void 0===De||De.selectAll()},xe.prototype.selectLines=function(De,je){var dt;null===(dt=this._selectionService)||void 0===dt||dt.selectLines(De,je)},xe.prototype._keyDown=function(De){if(this._keyDownHandled=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(De))return!1;if(!this._compositionHelper.keydown(De))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;"Dead"!==De.key&&"AltGraph"!==De.key||(this._unprocessedDeadKey=!0);var je=(0,j.evaluateKeyboardEvent)(De,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(De),3===je.type||2===je.type){var dt=this.rows-1;return this.scrollLines(2===je.type?-dt:dt),this.cancel(De,!0)}return 1===je.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,De)||(je.cancel&&this.cancel(De,!0),!je.key||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(je.key!==S.C0.ETX&&je.key!==S.C0.CR||(this.textarea.value=""),this._onKey.fire({key:je.key,domEvent:De}),this._showCursor(),this.coreService.triggerDataEvent(je.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(De,!0))))},xe.prototype._isThirdLevelShift=function(De,je){var dt=De.isMac&&!this.options.macOptionIsMeta&&je.altKey&&!je.ctrlKey&&!je.metaKey||De.isWindows&&je.altKey&&je.ctrlKey&&!je.metaKey||De.isWindows&&je.getModifierState("AltGraph");return"keypress"===je.type?dt:dt&&(!je.keyCode||je.keyCode>47)},xe.prototype._keyUp=function(De){var je;this._customKeyEventHandler&&!1===this._customKeyEventHandler(De)||(16===(je=De).keyCode||17===je.keyCode||18===je.keyCode||this.focus(),this.updateCursorStyle(De),this._keyPressHandled=!1)},xe.prototype._keyPress=function(De){var je;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(De))return!1;if(this.cancel(De),De.charCode)je=De.charCode;else if(null==De.which)je=De.keyCode;else{if(0===De.which||0===De.charCode)return!1;je=De.which}return!(!je||(De.altKey||De.ctrlKey||De.metaKey)&&!this._isThirdLevelShift(this.browser,De)||(je=String.fromCharCode(je),this._onKey.fire({key:je,domEvent:De}),this._showCursor(),this.coreService.triggerDataEvent(je,!0),this._keyPressHandled=!0,0))},xe.prototype._inputEvent=function(De){return!(!De.data||"insertText"!==De.inputType||this.optionsService.options.screenReaderMode||this._keyPressHandled||(this.coreService.triggerDataEvent(De.data,!0),this.cancel(De),0))},xe.prototype.bell=function(){var De;this._soundBell()&&(null===(De=this._soundService)||void 0===De||De.playBellSound()),this._onBell.fire()},xe.prototype.resize=function(De,je){De!==this.cols||je!==this.rows?Ft.prototype.resize.call(this,De,je):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},xe.prototype._afterResize=function(De,je){var dt,Ke;null===(dt=this._charSizeService)||void 0===dt||dt.measure(),null===(Ke=this.viewport)||void 0===Ke||Ke.syncScrollArea(!0)},xe.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var De=1;De<this.rows;De++)this.buffer.lines.push(this.buffer.getBlankLine(ee.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},xe.prototype.reset=function(){var De,je;this.options.rows=this.rows,this.options.cols=this.cols;var dt=this._customKeyEventHandler;this._setup(),Ft.prototype.reset.call(this),null===(De=this._selectionService)||void 0===De||De.reset(),this._customKeyEventHandler=dt,this.refresh(0,this.rows-1),null===(je=this.viewport)||void 0===je||je.syncScrollArea()},xe.prototype.clearTextureAtlas=function(){var De;null===(De=this._renderService)||void 0===De||De.clearTextureAtlas()},xe.prototype._reportFocus=function(){var De;(null===(De=this.element)||void 0===De?void 0:De.classList.contains("focus"))?this.coreService.triggerDataEvent(S.C0.ESC+"[I"):this.coreService.triggerDataEvent(S.C0.ESC+"[O")},xe.prototype._reportWindowsOptions=function(De){if(this._renderService)switch(De){case v.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var je=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),dt=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(S.C0.ESC+"[4;"+dt+";"+je+"t");break;case v.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ke=this._renderService.dimensions.scaledCellWidth.toFixed(0),Bt=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(S.C0.ESC+"[6;"+Bt+";"+Ke+"t")}},xe.prototype.cancel=function(De,je){if(this.options.cancelEvents||je)return De.preventDefault(),De.stopPropagation(),!1},xe.prototype._visualBell=function(){return!1},xe.prototype._soundBell=function(){return"sound"===this.options.bellStyle},xe}(be.CoreTerminal);w.Terminal=yt},9924:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.TimeBasedDebouncer=void 0;var N=function(){function b(_,I){void 0===I&&(I=1e3),this._renderCallback=_,this._debounceThresholdMS=I,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return b.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},b.prototype.refresh=function(_,I,D){var A=this;this._rowCount=D,_=void 0!==_?_:0,I=void 0!==I?I:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,_):_,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,I):I;var S=Date.now();if(S-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=S,this._innerRefresh();else if(!this._additionalRefreshRequested){var g=this._debounceThresholdMS-(S-this._lastRefreshMs);this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){A._lastRefreshMs=Date.now(),A._innerRefresh(),A._additionalRefreshRequested=!1,A._refreshTimeoutID=void 0},g)}},b.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var _=Math.max(this._rowStart,0),I=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(_,I)}},b}();w.TimeBasedDebouncer=N},1680:function(Z,w,N){var b,_=this&&this.__extends||(b=function(k,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var F in O)Object.prototype.hasOwnProperty.call(O,F)&&(x[F]=O[F])})(k,E)},function(R,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function E(){this.constructor=R}b(R,k),R.prototype=null===k?Object.create(k):(E.prototype=k.prototype,new E)}),I=this&&this.__decorate||function(R,k,E,x){var O,F=arguments.length,z=F<3?k:null===x?x=Object.getOwnPropertyDescriptor(k,E):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(R,k,E,x);else for(var K=R.length-1;K>=0;K--)(O=R[K])&&(z=(F<3?O(z):F>3?O(k,E,z):O(k,E))||z);return F>3&&z&&Object.defineProperty(k,E,z),z},D=this&&this.__param||function(R,k){return function(E,x){k(E,x,R)}};Object.defineProperty(w,"__esModule",{value:!0}),w.Viewport=void 0;var A=N(844),S=N(3656),v=N(4725),g=N(2585),T=function(R){function k(E,x,O,F,z,K,j,J){var ee=R.call(this)||this;return ee._scrollLines=E,ee._viewportElement=x,ee._scrollArea=O,ee._element=F,ee._bufferService=z,ee._optionsService=K,ee._charSizeService=j,ee._renderService=J,ee.scrollBarWidth=0,ee._currentRowHeight=0,ee._currentScaledCellHeight=0,ee._lastRecordedBufferLength=0,ee._lastRecordedViewportHeight=0,ee._lastRecordedBufferHeight=0,ee._lastTouchY=0,ee._lastScrollTop=0,ee._lastHadScrollBar=!1,ee._wheelPartialScroll=0,ee._refreshAnimationFrame=null,ee._ignoreNextScrollEvent=!1,ee.scrollBarWidth=ee._viewportElement.offsetWidth-ee._scrollArea.offsetWidth||15,ee._lastHadScrollBar=!0,ee.register((0,S.addDisposableDomListener)(ee._viewportElement,"scroll",ee._onScroll.bind(ee))),ee._activeBuffer=ee._bufferService.buffer,ee.register(ee._bufferService.buffers.onBufferActivate(function($){return ee._activeBuffer=$.activeBuffer})),ee._renderDimensions=ee._renderService.dimensions,ee.register(ee._renderService.onDimensionsChange(function($){return ee._renderDimensions=$})),setTimeout(function(){return ee.syncScrollArea()},0),ee}return _(k,R),k.prototype.onThemeChange=function(E){this._viewportElement.style.backgroundColor=E.background.css},k.prototype._refresh=function(E){var x=this;if(E)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return x._innerRefresh()}))},k.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var E=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==E&&(this._lastRecordedBufferHeight=E,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var x=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==x&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=x),this.scrollBarWidth=0===this._optionsService.options.scrollback?0:this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this._lastHadScrollBar=this.scrollBarWidth>0;var O=window.getComputedStyle(this._element),F=parseInt(O.paddingLeft)+parseInt(O.paddingRight);this._viewportElement.style.width=(this._renderService.dimensions.actualCellWidth*this._bufferService.cols+this.scrollBarWidth+(this._lastHadScrollBar?F:0)).toString()+"px",this._refreshAnimationFrame=null},k.prototype.syncScrollArea=function(E){if(void 0===E&&(E=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(E);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight?this._lastHadScrollBar!==this._optionsService.options.scrollback>0&&this._refresh(E):this._refresh(E)},k.prototype._onScroll=function(E){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var x=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(x)}},k.prototype._bubbleScroll=function(E,x){return!(x<0&&0!==this._viewportElement.scrollTop||x>0&&this._viewportElement.scrollTop+this._lastRecordedViewportHeight<this._lastRecordedBufferHeight)||(E.cancelable&&E.preventDefault(),!1)},k.prototype.onWheel=function(E){var x=this._getPixelsScrolled(E);return 0!==x&&(this._viewportElement.scrollTop+=x,this._bubbleScroll(E,x))},k.prototype._getPixelsScrolled=function(E){if(0===E.deltaY)return 0;var x=this._applyScrollModifier(E.deltaY,E);return E.deltaMode===WheelEvent.DOM_DELTA_LINE?x*=this._currentRowHeight:E.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(x*=this._currentRowHeight*this._bufferService.rows),x},k.prototype.getLinesScrolled=function(E){if(0===E.deltaY)return 0;var x=this._applyScrollModifier(E.deltaY,E);return E.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(this._wheelPartialScroll+=x/=this._currentRowHeight+0,x=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):E.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(x*=this._bufferService.rows),x},k.prototype._applyScrollModifier=function(E,x){var O=this._optionsService.options.fastScrollModifier;return"alt"===O&&x.altKey||"ctrl"===O&&x.ctrlKey||"shift"===O&&x.shiftKey?E*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:E*this._optionsService.options.scrollSensitivity},k.prototype.onTouchStart=function(E){this._lastTouchY=E.touches[0].pageY},k.prototype.onTouchMove=function(E){var x=this._lastTouchY-E.touches[0].pageY;return this._lastTouchY=E.touches[0].pageY,0!==x&&(this._viewportElement.scrollTop+=x,this._bubbleScroll(E,x))},I([D(4,g.IBufferService),D(5,g.IOptionsService),D(6,v.ICharSizeService),D(7,v.IRenderService)],k)}(A.Disposable);w.Viewport=T},2950:function(Z,w,N){var b=this&&this.__decorate||function(S,v,g,T){var R,k=arguments.length,E=k<3?v:null===T?T=Object.getOwnPropertyDescriptor(v,g):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(S,v,g,T);else for(var x=S.length-1;x>=0;x--)(R=S[x])&&(E=(k<3?R(E):k>3?R(v,g,E):R(v,g))||E);return k>3&&E&&Object.defineProperty(v,g,E),E},_=this&&this.__param||function(S,v){return function(g,T){v(g,T,S)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CompositionHelper=void 0;var I=N(4725),D=N(2585),A=function(){function S(v,g,T,R,k,E){this._textarea=v,this._compositionView=g,this._bufferService=T,this._optionsService=R,this._coreService=k,this._renderService=E,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(S.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),S.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},S.prototype.compositionupdate=function(v){var g=this;this._compositionView.textContent=v.data,this.updateCompositionElements(),setTimeout(function(){g._compositionPosition.end=g._textarea.value.length},0)},S.prototype.compositionend=function(){this._finalizeComposition(!0)},S.prototype.keydown=function(v){if(this._isComposing||this._isSendingComposition){if(229===v.keyCode||16===v.keyCode||17===v.keyCode||18===v.keyCode)return!1;this._finalizeComposition(!1)}return 229!==v.keyCode||(this._handleAnyTextareaChanges(),!1)},S.prototype._finalizeComposition=function(v){var g=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,v){var T={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var k;g._isSendingComposition&&(g._isSendingComposition=!1,T.start+=g._dataAlreadySent.length,(k=g._isComposing?g._textarea.value.substring(T.start,T.end):g._textarea.value.substring(T.start)).length>0&&g._coreService.triggerDataEvent(k,!0))},0)}else{this._isSendingComposition=!1;var R=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(R,!0)}},S.prototype._handleAnyTextareaChanges=function(){var v=this,g=this._textarea.value;setTimeout(function(){if(!v._isComposing){var T=v._textarea.value.replace(g,"");T.length>0&&(v._dataAlreadySent=T,v._coreService.triggerDataEvent(T,!0))}},0)},S.prototype.updateCompositionElements=function(v){var g=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var T=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),R=this._renderService.dimensions.actualCellHeight,k=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,E=T*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=E+"px",this._compositionView.style.top=k+"px",this._compositionView.style.height=R+"px",this._compositionView.style.lineHeight=R+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var x=this._compositionView.getBoundingClientRect();this._textarea.style.left=E+"px",this._textarea.style.top=k+"px",this._textarea.style.width=Math.max(x.width,1)+"px",this._textarea.style.height=Math.max(x.height,1)+"px",this._textarea.style.lineHeight=x.height+"px"}v||setTimeout(function(){return g.updateCompositionElements(!0)},0)}},b([_(2,D.IBufferService),_(3,D.IOptionsService),_(4,D.ICoreService),_(5,I.IRenderService)],S)}();w.CompositionHelper=A},9806:function(Z,w){function N(b,_){var I=_.getBoundingClientRect();return[b.clientX-I.left,b.clientY-I.top]}Object.defineProperty(w,"__esModule",{value:!0}),w.getRawByteCoords=w.getCoords=w.getCoordsRelativeToElement=void 0,w.getCoordsRelativeToElement=N,w.getCoords=function(b,_,I,D,A,S,v,g){if(A){var T=N(b,_);if(T)return T[0]=Math.ceil((T[0]+(g?S/2:0))/S),T[1]=Math.ceil(T[1]/v),T[0]=Math.min(Math.max(T[0],1),I+(g?1:0)),T[1]=Math.min(Math.max(T[1],1),D),T}},w.getRawByteCoords=function(b){if(b)return{x:b[0]+32,y:b[1]+32}}},9504:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.moveToCellSequence=void 0;var b=N(2584);function _(g,T,R,k){var E=g-I(R,g),x=T-I(R,T);return v(Math.abs(E-x)-function(F,z,K){for(var j=0,J=F-I(K,F),ee=z-I(K,z),$=0;$<Math.abs(J-ee);$++){var ae="A"===D(F,z)?-1:1,se=K.buffer.lines.get(J+ae*$);se&&se.isWrapped&&j++}return j}(g,T,R),S(D(g,T),k))}function I(g,T){for(var R=0,k=g.buffer.lines.get(T),E=k&&k.isWrapped;E&&T>=0&&T<g.rows;)R++,E=(k=g.buffer.lines.get(--T))&&k.isWrapped;return R}function D(g,T){return g>T?"A":"B"}function A(g,T,R,k,E,x){for(var O=g,F=T,z="";O!==R||F!==k;)O+=E?1:-1,E&&O>x.cols-1?(z+=x.buffer.translateBufferLineToString(F,!1,g,O),O=0,g=0,F++):!E&&O<0&&(z+=x.buffer.translateBufferLineToString(F,!1,0,g+1),g=O=x.cols-1,F--);return z+x.buffer.translateBufferLineToString(F,!1,g,O)}function S(g,T){return b.C0.ESC+(T?"O":"[")+g}function v(g,T){g=Math.floor(g);for(var R="",k=0;k<g;k++)R+=T;return R}w.moveToCellSequence=function(g,T,R,k){var E,z,K,ee,$,x=R.buffer.x,O=R.buffer.y;if(!R.buffer.hasScrollback)return z=x,(0===_(K=O,T,ee=R,$=k).length?"":v(A(z,K,z,K-I(ee,K),!1,ee).length,S("D",$)))+_(O,T,R,k)+function(z,K,j,J,ee,$){var ae;ae=_(K,J,ee,$).length>0?J-I(ee,J):K;var le,oe,Ae,be,it,_t,se=J,ce=(le=z,oe=K,_t=_(Ae=j,be=J,it=ee,$).length>0?be-I(it,be):oe,le<Ae&&_t<=be||le>=Ae&&_t<be?"C":"D");return v(A(z,ae,j,se,"C"===ce,ee).length,S(ce,$))}(x,O,g,T,R,k);if(O===T)return E=x>g?"D":"C",v(Math.abs(x-g),S(E,k));E=O>T?"D":"C";var F=Math.abs(O-T);return v(function(z,K){return K.cols-z}(O>T?g:x,R)+(F-1)*R.cols+1+((O>T?x:g)-1),S(E,k))}},1546:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.BaseRenderLayer=void 0;var b=N(643),_=N(8803),I=N(1420),D=N(3734),A=N(1752),S=N(4774),v=N(9631),g=N(8978),T=function(){function R(k,E,x,O,F,z,K,j){this._container=k,this._alpha=O,this._colors=F,this._rendererId=z,this._bufferService=K,this._optionsService=j,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+E+"-layer"),this._canvas.style.zIndex=x.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return R.prototype.dispose=function(){var k;(0,v.removeElementFromParent)(this._canvas),null===(k=this._charAtlas)||void 0===k||k.dispose()},R.prototype._initCanvas=function(){this._ctx=(0,A.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},R.prototype.onOptionsChanged=function(){},R.prototype.onBlur=function(){},R.prototype.onFocus=function(){},R.prototype.onCursorMove=function(){},R.prototype.onGridChanged=function(k,E){},R.prototype.onSelectionChanged=function(k,E,x){void 0===x&&(x=!1)},R.prototype.setColors=function(k){this._refreshCharAtlas(k)},R.prototype._setTransparency=function(k){if(k!==this._alpha){var E=this._canvas;this._alpha=k,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,E),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},R.prototype._refreshCharAtlas=function(k){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,I.acquireCharAtlas)(this._optionsService.options,this._rendererId,k,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},R.prototype.resize=function(k){this._scaledCellWidth=k.scaledCellWidth,this._scaledCellHeight=k.scaledCellHeight,this._scaledCharWidth=k.scaledCharWidth,this._scaledCharHeight=k.scaledCharHeight,this._scaledCharLeft=k.scaledCharLeft,this._scaledCharTop=k.scaledCharTop,this._canvas.width=k.scaledCanvasWidth,this._canvas.height=k.scaledCanvasHeight,this._canvas.style.width=k.canvasWidth+"px",this._canvas.style.height=k.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},R.prototype.clearTextureAtlas=function(){var k;null===(k=this._charAtlas)||void 0===k||k.clear()},R.prototype._fillCells=function(k,E,x,O){this._ctx.fillRect(k*this._scaledCellWidth,E*this._scaledCellHeight,x*this._scaledCellWidth,O*this._scaledCellHeight)},R.prototype._fillMiddleLineAtCells=function(k,E,x){void 0===x&&(x=1);var O=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(k*this._scaledCellWidth,(E+1)*this._scaledCellHeight-O-window.devicePixelRatio,x*this._scaledCellWidth,window.devicePixelRatio)},R.prototype._fillBottomLineAtCells=function(k,E,x){void 0===x&&(x=1),this._ctx.fillRect(k*this._scaledCellWidth,(E+1)*this._scaledCellHeight-window.devicePixelRatio-1,x*this._scaledCellWidth,window.devicePixelRatio)},R.prototype._fillLeftLineAtCell=function(k,E,x){this._ctx.fillRect(k*this._scaledCellWidth,E*this._scaledCellHeight,window.devicePixelRatio*x,this._scaledCellHeight)},R.prototype._strokeRectAtCell=function(k,E,x,O){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(k*this._scaledCellWidth+window.devicePixelRatio/2,E*this._scaledCellHeight+window.devicePixelRatio/2,x*this._scaledCellWidth-window.devicePixelRatio,O*this._scaledCellHeight-window.devicePixelRatio)},R.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},R.prototype._clearCells=function(k,E,x,O){this._alpha?this._ctx.clearRect(k*this._scaledCellWidth,E*this._scaledCellHeight,x*this._scaledCellWidth,O*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(k*this._scaledCellWidth,E*this._scaledCellHeight,x*this._scaledCellWidth,O*this._scaledCellHeight))},R.prototype._fillCharTrueColor=function(k,E,x){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=_.TEXT_BASELINE,this._clipRow(x);var O=!1;!1!==this._optionsService.options.customGlyphs&&(O=(0,g.tryDrawCustomChar)(this._ctx,k.getChars(),E*this._scaledCellWidth,x*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),O||this._ctx.fillText(k.getChars(),E*this._scaledCellWidth+this._scaledCharLeft,x*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},R.prototype._drawChars=function(k,E,x){var O,F,z=this._getContrastColor(k);z||k.isFgRGB()||k.isBgRGB()?this._drawUncachedChars(k,E,x,z):(k.isInverse()?(O=k.isBgDefault()?_.INVERTED_DEFAULT_COLOR:k.getBgColor(),F=k.isFgDefault()?_.INVERTED_DEFAULT_COLOR:k.getFgColor()):(F=k.isBgDefault()?b.DEFAULT_COLOR:k.getBgColor(),O=k.isFgDefault()?b.DEFAULT_COLOR:k.getFgColor()),O+=this._optionsService.options.drawBoldTextInBrightColors&&k.isBold()&&O<8?8:0,this._currentGlyphIdentifier.chars=k.getChars()||b.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=k.getCode()||b.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=F,this._currentGlyphIdentifier.fg=O,this._currentGlyphIdentifier.bold=!!k.isBold(),this._currentGlyphIdentifier.dim=!!k.isDim(),this._currentGlyphIdentifier.italic=!!k.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,E*this._scaledCellWidth+this._scaledCharLeft,x*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(k,E,x))},R.prototype._drawUncachedChars=function(k,E,x,O){if(this._ctx.save(),this._ctx.font=this._getFont(!!k.isBold(),!!k.isItalic()),this._ctx.textBaseline=_.TEXT_BASELINE,k.isInverse())if(O)this._ctx.fillStyle=O.css;else if(k.isBgDefault())this._ctx.fillStyle=S.color.opaque(this._colors.background).css;else if(k.isBgRGB())this._ctx.fillStyle="rgb("+D.AttributeData.toColorRGB(k.getBgColor()).join(",")+")";else{var F=k.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&k.isBold()&&F<8&&(F+=8),this._ctx.fillStyle=this._colors.ansi[F].css}else if(O)this._ctx.fillStyle=O.css;else if(k.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(k.isFgRGB())this._ctx.fillStyle="rgb("+D.AttributeData.toColorRGB(k.getFgColor()).join(",")+")";else{var z=k.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&k.isBold()&&z<8&&(z+=8),this._ctx.fillStyle=this._colors.ansi[z].css}this._clipRow(x),k.isDim()&&(this._ctx.globalAlpha=_.DIM_OPACITY);var K=!1;!1!==this._optionsService.options.customGlyphs&&(K=(0,g.tryDrawCustomChar)(this._ctx,k.getChars(),E*this._scaledCellWidth,x*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),K||this._ctx.fillText(k.getChars(),E*this._scaledCellWidth+this._scaledCharLeft,x*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},R.prototype._clipRow=function(k){this._ctx.beginPath(),this._ctx.rect(0,k*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},R.prototype._getFont=function(k,E){return(E?"italic":"")+" "+(k?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},R.prototype._getContrastColor=function(k){if(1!==this._optionsService.options.minimumContrastRatio){var E=this._colors.contrastCache.getColor(k.bg,k.fg);if(void 0!==E)return E||void 0;var x=k.getFgColor(),O=k.getFgColorMode(),F=k.getBgColor(),z=k.getBgColorMode(),K=!!k.isInverse(),j=!!k.isInverse();if(K){var J=x;x=F,F=J;var ee=O;O=z,z=ee}var $=this._resolveBackgroundRgba(z,F,K),ae=this._resolveForegroundRgba(O,x,K,j),se=S.rgba.ensureContrastRatio($,ae,this._optionsService.options.minimumContrastRatio);if(se){var ce={css:S.channels.toCss(se>>24&255,se>>16&255,se>>8&255),rgba:se};return this._colors.contrastCache.setColor(k.bg,k.fg,ce),ce}this._colors.contrastCache.setColor(k.bg,k.fg,null)}},R.prototype._resolveBackgroundRgba=function(k,E,x){switch(k){case 16777216:case 33554432:return this._colors.ansi[E].rgba;case 50331648:return E<<8;default:return x?this._colors.foreground.rgba:this._colors.background.rgba}},R.prototype._resolveForegroundRgba=function(k,E,x,O){switch(k){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&O&&E<8&&(E+=8),this._colors.ansi[E].rgba;case 50331648:return E<<8;default:return x?this._colors.background.rgba:this._colors.foreground.rgba}},R}();w.BaseRenderLayer=T},2512:function(Z,w,N){var b,_=this&&this.__extends||(b=function(x,O){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,z){F.__proto__=z}||function(F,z){for(var K in z)Object.prototype.hasOwnProperty.call(z,K)&&(F[K]=z[K])})(x,O)},function(E,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function O(){this.constructor=E}b(E,x),E.prototype=null===x?Object.create(x):(O.prototype=x.prototype,new O)}),I=this&&this.__decorate||function(E,x,O,F){var z,K=arguments.length,j=K<3?x:null===F?F=Object.getOwnPropertyDescriptor(x,O):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(E,x,O,F);else for(var J=E.length-1;J>=0;J--)(z=E[J])&&(j=(K<3?z(j):K>3?z(x,O,j):z(x,O))||j);return K>3&&j&&Object.defineProperty(x,O,j),j},D=this&&this.__param||function(E,x){return function(O,F){x(O,F,E)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CursorRenderLayer=void 0;var A=N(1546),S=N(511),v=N(2585),g=N(4725),T=600,R=function(E){function x(O,F,z,K,j,J,ee,$,ae){var se=E.call(this,O,"cursor",F,!0,z,K,J,ee)||this;return se._onRequestRedraw=j,se._coreService=$,se._coreBrowserService=ae,se._cell=new S.CellData,se._state={x:0,y:0,isFocused:!1,style:"",width:0},se._cursorRenderers={bar:se._renderBarCursor.bind(se),block:se._renderBlockCursor.bind(se),underline:se._renderUnderlineCursor.bind(se)},se}return _(x,E),x.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),E.prototype.dispose.call(this)},x.prototype.resize=function(O){E.prototype.resize.call(this,O),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},x.prototype.reset=function(){var O;this._clearCursor(),null===(O=this._cursorBlinkStateManager)||void 0===O||O.restartBlinkAnimation(),this.onOptionsChanged()},x.prototype.onBlur=function(){var O;null===(O=this._cursorBlinkStateManager)||void 0===O||O.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},x.prototype.onFocus=function(){var O;null===(O=this._cursorBlinkStateManager)||void 0===O||O.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},x.prototype.onOptionsChanged=function(){var O,F=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new k(this._coreBrowserService.isFocused,function(){F._render(!0)})):(null===(O=this._cursorBlinkStateManager)||void 0===O||O.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},x.prototype.onCursorMove=function(){var O;null===(O=this._cursorBlinkStateManager)||void 0===O||O.restartBlinkAnimation()},x.prototype.onGridChanged=function(O,F){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},x.prototype._render=function(O){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var F=this._bufferService.buffer.ybase+this._bufferService.buffer.y,z=F-this._bufferService.buffer.ydisp;if(z<0||z>=this._bufferService.rows)this._clearCursor();else{var K=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(F).loadCell(K,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var j=this._optionsService.options.cursorStyle;return j&&"block"!==j?this._cursorRenderers[j](K,z,this._cell):this._renderBlurCursor(K,z,this._cell),this._ctx.restore(),this._state.x=K,this._state.y=z,this._state.isFocused=!1,this._state.style=j,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===K&&this._state.y===z&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](K,z,this._cell),this._ctx.restore(),this._state.x=K,this._state.y=z,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},x.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},x.prototype._renderBarCursor=function(O,F,z){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(O,F,this._optionsService.options.cursorWidth),this._ctx.restore()},x.prototype._renderBlockCursor=function(O,F,z){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(O,F,z.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(z,O,F),this._ctx.restore()},x.prototype._renderUnderlineCursor=function(O,F,z){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(O,F),this._ctx.restore()},x.prototype._renderBlurCursor=function(O,F,z){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(O,F,z.getWidth(),1),this._ctx.restore()},I([D(5,v.IBufferService),D(6,v.IOptionsService),D(7,v.ICoreService),D(8,g.ICoreBrowserService)],x)}(A.BaseRenderLayer);w.CursorRenderLayer=R;var k=function(){function E(x,O){this._renderCallback=O,this.isCursorVisible=!0,x&&this._restartInterval()}return Object.defineProperty(E.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},E.prototype.restartBlinkAnimation=function(){var x=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){x._renderCallback(),x._animationFrame=void 0})))},E.prototype._restartInterval=function(x){var O=this;void 0===x&&(x=T),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(O._animationTimeRestarted){var F=T-(Date.now()-O._animationTimeRestarted);if(O._animationTimeRestarted=void 0,F>0)return void O._restartInterval(F)}O.isCursorVisible=!1,O._animationFrame=window.requestAnimationFrame(function(){O._renderCallback(),O._animationFrame=void 0}),O._blinkInterval=window.setInterval(function(){if(O._animationTimeRestarted){var z=T-(Date.now()-O._animationTimeRestarted);return O._animationTimeRestarted=void 0,void O._restartInterval(z)}O.isCursorVisible=!O.isCursorVisible,O._animationFrame=window.requestAnimationFrame(function(){O._renderCallback(),O._animationFrame=void 0})},T)},x)},E.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},E.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},E}()},8978:function(Z,w,N){var b,_,I,D,A,S,v,g,T,R,k,E,x,O,F,z,K,j,J,ee,$,ae,se,ce,le,oe,Ae,be,it,qe,_t,yt,Ft,xe,De,je,dt,Ke,Bt,xt,vt,Qt,Ht,Ct,qt,bt,en,Nt,rn,kn,Ln,Rn,$n,Nn,wn,_r,ut,He,ve,ye,Te,we,ct,ft,Yt,Kt,Jt,nn,ln,yn,Tn,In,Yn,Cn,Sn,tr,ur,Ut,Rt,Lt,Oe,rt,he,Ie,Ne,Le,ze,At,an,jn,Rr,Hr,yr,Yr,co,Zi,bo,po,Xo,Ei,no,vi,Yi,fo,fi,Uo,ki,Wn,Ot,jt,Pt,Vt,Gt,Xt,gn,Gn,zn,Vn,si,Si,ro,Co,Li,Io,$o,ko,ii,Ho;Object.defineProperty(w,"__esModule",{value:!0}),w.tryDrawCustomChar=w.boxDrawingDefinitions=w.blockElementDefinitions=void 0;var io=N(1752);w.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258a":[{x:0,y:0,w:6,h:8}],"\u258b":[{x:0,y:0,w:5,h:8}],"\u258c":[{x:0,y:0,w:4,h:8}],"\u258d":[{x:0,y:0,w:3,h:8}],"\u258e":[{x:0,y:0,w:2,h:8}],"\u258f":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259a":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259b":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259c":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259d":[{x:4,y:0,w:4,h:4}],"\u259e":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259f":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\ud83e\udf70":[{x:1,y:0,w:1,h:8}],"\ud83e\udf71":[{x:2,y:0,w:1,h:8}],"\ud83e\udf72":[{x:3,y:0,w:1,h:8}],"\ud83e\udf73":[{x:4,y:0,w:1,h:8}],"\ud83e\udf74":[{x:5,y:0,w:1,h:8}],"\ud83e\udf75":[{x:6,y:0,w:1,h:8}],"\ud83e\udf76":[{x:0,y:1,w:8,h:1}],"\ud83e\udf77":[{x:0,y:2,w:8,h:1}],"\ud83e\udf78":[{x:0,y:3,w:8,h:1}],"\ud83e\udf79":[{x:0,y:4,w:8,h:1}],"\ud83e\udf7a":[{x:0,y:5,w:8,h:1}],"\ud83e\udf7b":[{x:0,y:6,w:8,h:1}],"\ud83e\udf7c":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf7d":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7e":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7f":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf80":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf81":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf82":[{x:0,y:0,w:8,h:2}],"\ud83e\udf83":[{x:0,y:0,w:8,h:3}],"\ud83e\udf84":[{x:0,y:0,w:8,h:5}],"\ud83e\udf85":[{x:0,y:0,w:8,h:6}],"\ud83e\udf86":[{x:0,y:0,w:8,h:7}],"\ud83e\udf87":[{x:6,y:0,w:2,h:8}],"\ud83e\udf88":[{x:5,y:0,w:3,h:8}],"\ud83e\udf89":[{x:3,y:0,w:5,h:8}],"\ud83e\udf8a":[{x:2,y:0,w:6,h:8}],"\ud83e\udf8b":[{x:1,y:0,w:7,h:8}],"\ud83e\udf95":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\ud83e\udf96":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\ud83e\udf97":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var ji={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};w.boxDrawingDefinitions={"\u2500":(b={},b[1]="M0,.5 L1,.5",b),"\u2501":(_={},_[3]="M0,.5 L1,.5",_),"\u2502":(I={},I[1]="M.5,0 L.5,1",I),"\u2503":(D={},D[3]="M.5,0 L.5,1",D),"\u250c":(A={},A[1]="M0.5,1 L.5,.5 L1,.5",A),"\u250f":(S={},S[3]="M0.5,1 L.5,.5 L1,.5",S),"\u2510":(v={},v[1]="M0,.5 L.5,.5 L.5,1",v),"\u2513":(g={},g[3]="M0,.5 L.5,.5 L.5,1",g),"\u2514":(T={},T[1]="M.5,0 L.5,.5 L1,.5",T),"\u2517":(R={},R[3]="M.5,0 L.5,.5 L1,.5",R),"\u2518":(k={},k[1]="M.5,0 L.5,.5 L0,.5",k),"\u251b":(E={},E[3]="M.5,0 L.5,.5 L0,.5",E),"\u251c":(x={},x[1]="M.5,0 L.5,1 M.5,.5 L1,.5",x),"\u2523":(O={},O[3]="M.5,0 L.5,1 M.5,.5 L1,.5",O),"\u2524":(F={},F[1]="M.5,0 L.5,1 M.5,.5 L0,.5",F),"\u252b":(z={},z[3]="M.5,0 L.5,1 M.5,.5 L0,.5",z),"\u252c":(K={},K[1]="M0,.5 L1,.5 M.5,.5 L.5,1",K),"\u2533":(j={},j[3]="M0,.5 L1,.5 M.5,.5 L.5,1",j),"\u2534":(J={},J[1]="M0,.5 L1,.5 M.5,.5 L.5,0",J),"\u253b":(ee={},ee[3]="M0,.5 L1,.5 M.5,.5 L.5,0",ee),"\u253c":($={},$[1]="M0,.5 L1,.5 M.5,0 L.5,1",$),"\u254b":(ae={},ae[3]="M0,.5 L1,.5 M.5,0 L.5,1",ae),"\u2574":(se={},se[1]="M.5,.5 L0,.5",se),"\u2578":(ce={},ce[3]="M.5,.5 L0,.5",ce),"\u2575":(le={},le[1]="M.5,.5 L.5,0",le),"\u2579":(oe={},oe[3]="M.5,.5 L.5,0",oe),"\u2576":(Ae={},Ae[1]="M.5,.5 L1,.5",Ae),"\u257a":(be={},be[3]="M.5,.5 L1,.5",be),"\u2577":(it={},it[1]="M.5,.5 L.5,1",it),"\u257b":(qe={},qe[3]="M.5,.5 L.5,1",qe),"\u2550":(_t={},_t[1]=function(fn,vn){return"M0,"+(.5-vn)+" L1,"+(.5-vn)+" M0,"+(.5+vn)+" L1,"+(.5+vn)},_t),"\u2551":(yt={},yt[1]=function(fn,vn){return"M"+(.5-fn)+",0 L"+(.5-fn)+",1 M"+(.5+fn)+",0 L"+(.5+fn)+",1"},yt),"\u2552":(Ft={},Ft[1]=function(fn,vn){return"M.5,1 L.5,"+(.5-vn)+" L1,"+(.5-vn)+" M.5,"+(.5+vn)+" L1,"+(.5+vn)},Ft),"\u2553":(xe={},xe[1]=function(fn,vn){return"M"+(.5-fn)+",1 L"+(.5-fn)+",.5 L1,.5 M"+(.5+fn)+",.5 L"+(.5+fn)+",1"},xe),"\u2554":(De={},De[1]=function(fn,vn){return"M1,"+(.5-vn)+" L"+(.5-fn)+","+(.5-vn)+" L"+(.5-fn)+",1 M1,"+(.5+vn)+" L"+(.5+fn)+","+(.5+vn)+" L"+(.5+fn)+",1"},De),"\u2555":(je={},je[1]=function(fn,vn){return"M0,"+(.5-vn)+" L.5,"+(.5-vn)+" L.5,1 M0,"+(.5+vn)+" L.5,"+(.5+vn)},je),"\u2556":(dt={},dt[1]=function(fn,vn){return"M"+(.5+fn)+",1 L"+(.5+fn)+",.5 L0,.5 M"+(.5-fn)+",.5 L"+(.5-fn)+",1"},dt),"\u2557":(Ke={},Ke[1]=function(fn,vn){return"M0,"+(.5+vn)+" L"+(.5-fn)+","+(.5+vn)+" L"+(.5-fn)+",1 M0,"+(.5-vn)+" L"+(.5+fn)+","+(.5-vn)+" L"+(.5+fn)+",1"},Ke),"\u2558":(Bt={},Bt[1]=function(fn,vn){return"M.5,0 L.5,"+(.5+vn)+" L1,"+(.5+vn)+" M.5,"+(.5-vn)+" L1,"+(.5-vn)},Bt),"\u2559":(xt={},xt[1]=function(fn,vn){return"M1,.5 L"+(.5-fn)+",.5 L"+(.5-fn)+",0 M"+(.5+fn)+",.5 L"+(.5+fn)+",0"},xt),"\u255a":(vt={},vt[1]=function(fn,vn){return"M1,"+(.5-vn)+" L"+(.5+fn)+","+(.5-vn)+" L"+(.5+fn)+",0 M1,"+(.5+vn)+" L"+(.5-fn)+","+(.5+vn)+" L"+(.5-fn)+",0"},vt),"\u255b":(Qt={},Qt[1]=function(fn,vn){return"M0,"+(.5+vn)+" L.5,"+(.5+vn)+" L.5,0 M0,"+(.5-vn)+" L.5,"+(.5-vn)},Qt),"\u255c":(Ht={},Ht[1]=function(fn,vn){return"M0,.5 L"+(.5+fn)+",.5 L"+(.5+fn)+",0 M"+(.5-fn)+",.5 L"+(.5-fn)+",0"},Ht),"\u255d":(Ct={},Ct[1]=function(fn,vn){return"M0,"+(.5-vn)+" L"+(.5-fn)+","+(.5-vn)+" L"+(.5-fn)+",0 M0,"+(.5+vn)+" L"+(.5+fn)+","+(.5+vn)+" L"+(.5+fn)+",0"},Ct),"\u255e":(qt={},qt[1]=function(fn,vn){return"M.5,0 L.5,1 M.5,"+(.5-vn)+" L1,"+(.5-vn)+" M.5,"+(.5+vn)+" L1,"+(.5+vn)},qt),"\u255f":(bt={},bt[1]=function(fn,vn){return"M"+(.5-fn)+",0 L"+(.5-fn)+",1 M"+(.5+fn)+",0 L"+(.5+fn)+",1 M"+(.5+fn)+",.5 L1,.5"},bt),"\u2560":(en={},en[1]=function(fn,vn){return"M"+(.5-fn)+",0 L"+(.5-fn)+",1 M1,"+(.5+vn)+" L"+(.5+fn)+","+(.5+vn)+" L"+(.5+fn)+",1 M1,"+(.5-vn)+" L"+(.5+fn)+","+(.5-vn)+" L"+(.5+fn)+",0"},en),"\u2561":(Nt={},Nt[1]=function(fn,vn){return"M.5,0 L.5,1 M0,"+(.5-vn)+" L.5,"+(.5-vn)+" M0,"+(.5+vn)+" L.5,"+(.5+vn)},Nt),"\u2562":(rn={},rn[1]=function(fn,vn){return"M0,.5 L"+(.5-fn)+",.5 M"+(.5-fn)+",0 L"+(.5-fn)+",1 M"+(.5+fn)+",0 L"+(.5+fn)+",1"},rn),"\u2563":(kn={},kn[1]=function(fn,vn){return"M"+(.5+fn)+",0 L"+(.5+fn)+",1 M0,"+(.5+vn)+" L"+(.5-fn)+","+(.5+vn)+" L"+(.5-fn)+",1 M0,"+(.5-vn)+" L"+(.5-fn)+","+(.5-vn)+" L"+(.5-fn)+",0"},kn),"\u2564":(Ln={},Ln[1]=function(fn,vn){return"M0,"+(.5-vn)+" L1,"+(.5-vn)+" M0,"+(.5+vn)+" L1,"+(.5+vn)+" M.5,"+(.5+vn)+" L.5,1"},Ln),"\u2565":(Rn={},Rn[1]=function(fn,vn){return"M0,.5 L1,.5 M"+(.5-fn)+",.5 L"+(.5-fn)+",1 M"+(.5+fn)+",.5 L"+(.5+fn)+",1"},Rn),"\u2566":($n={},$n[1]=function(fn,vn){return"M0,"+(.5-vn)+" L1,"+(.5-vn)+" M0,"+(.5+vn)+" L"+(.5-fn)+","+(.5+vn)+" L"+(.5-fn)+",1 M1,"+(.5+vn)+" L"+(.5+fn)+","+(.5+vn)+" L"+(.5+fn)+",1"},$n),"\u2567":(Nn={},Nn[1]=function(fn,vn){return"M.5,0 L.5,"+(.5-vn)+" M0,"+(.5-vn)+" L1,"+(.5-vn)+" M0,"+(.5+vn)+" L1,"+(.5+vn)},Nn),"\u2568":(wn={},wn[1]=function(fn,vn){return"M0,.5 L1,.5 M"+(.5-fn)+",.5 L"+(.5-fn)+",0 M"+(.5+fn)+",.5 L"+(.5+fn)+",0"},wn),"\u2569":(_r={},_r[1]=function(fn,vn){return"M0,"+(.5+vn)+" L1,"+(.5+vn)+" M0,"+(.5-vn)+" L"+(.5-fn)+","+(.5-vn)+" L"+(.5-fn)+",0 M1,"+(.5-vn)+" L"+(.5+fn)+","+(.5-vn)+" L"+(.5+fn)+",0"},_r),"\u256a":(ut={},ut[1]=function(fn,vn){return"M.5,0 L.5,1 M0,"+(.5-vn)+" L1,"+(.5-vn)+" M0,"+(.5+vn)+" L1,"+(.5+vn)},ut),"\u256b":(He={},He[1]=function(fn,vn){return"M0,.5 L1,.5 M"+(.5-fn)+",0 L"+(.5-fn)+",1 M"+(.5+fn)+",0 L"+(.5+fn)+",1"},He),"\u256c":(ve={},ve[1]=function(fn,vn){return"M0,"+(.5+vn)+" L"+(.5-fn)+","+(.5+vn)+" L"+(.5-fn)+",1 M1,"+(.5+vn)+" L"+(.5+fn)+","+(.5+vn)+" L"+(.5+fn)+",1 M0,"+(.5-vn)+" L"+(.5-fn)+","+(.5-vn)+" L"+(.5-fn)+",0 M1,"+(.5-vn)+" L"+(.5+fn)+","+(.5-vn)+" L"+(.5+fn)+",0"},ve),"\u2571":(ye={},ye[1]="M1,0 L0,1",ye),"\u2572":(Te={},Te[1]="M0,0 L1,1",Te),"\u2573":(we={},we[1]="M1,0 L0,1 M0,0 L1,1",we),"\u257c":(ct={},ct[1]="M.5,.5 L0,.5",ct[3]="M.5,.5 L1,.5",ct),"\u257d":(ft={},ft[1]="M.5,.5 L.5,0",ft[3]="M.5,.5 L.5,1",ft),"\u257e":(Yt={},Yt[1]="M.5,.5 L1,.5",Yt[3]="M.5,.5 L0,.5",Yt),"\u257f":(Kt={},Kt[1]="M.5,.5 L.5,1",Kt[3]="M.5,.5 L.5,0",Kt),"\u250d":(Jt={},Jt[1]="M.5,.5 L.5,1",Jt[3]="M.5,.5 L1,.5",Jt),"\u250e":(nn={},nn[1]="M.5,.5 L1,.5",nn[3]="M.5,.5 L.5,1",nn),"\u2511":(ln={},ln[1]="M.5,.5 L.5,1",ln[3]="M.5,.5 L0,.5",ln),"\u2512":(yn={},yn[1]="M.5,.5 L0,.5",yn[3]="M.5,.5 L.5,1",yn),"\u2515":(Tn={},Tn[1]="M.5,.5 L.5,0",Tn[3]="M.5,.5 L1,.5",Tn),"\u2516":(In={},In[1]="M.5,.5 L1,.5",In[3]="M.5,.5 L.5,0",In),"\u2519":(Yn={},Yn[1]="M.5,.5 L.5,0",Yn[3]="M.5,.5 L0,.5",Yn),"\u251a":(Cn={},Cn[1]="M.5,.5 L0,.5",Cn[3]="M.5,.5 L.5,0",Cn),"\u251d":(Sn={},Sn[1]="M.5,0 L.5,1",Sn[3]="M.5,.5 L1,.5",Sn),"\u251e":(tr={},tr[1]="M0.5,1 L.5,.5 L1,.5",tr[3]="M.5,.5 L.5,0",tr),"\u251f":(ur={},ur[1]="M.5,0 L.5,.5 L1,.5",ur[3]="M.5,.5 L.5,1",ur),"\u2520":(Ut={},Ut[1]="M.5,.5 L1,.5",Ut[3]="M.5,0 L.5,1",Ut),"\u2521":(Rt={},Rt[1]="M.5,.5 L.5,1",Rt[3]="M.5,0 L.5,.5 L1,.5",Rt),"\u2522":(Lt={},Lt[1]="M.5,.5 L.5,0",Lt[3]="M0.5,1 L.5,.5 L1,.5",Lt),"\u2525":(Oe={},Oe[1]="M.5,0 L.5,1",Oe[3]="M.5,.5 L0,.5",Oe),"\u2526":(rt={},rt[1]="M0,.5 L.5,.5 L.5,1",rt[3]="M.5,.5 L.5,0",rt),"\u2527":(he={},he[1]="M.5,0 L.5,.5 L0,.5",he[3]="M.5,.5 L.5,1",he),"\u2528":(Ie={},Ie[1]="M.5,.5 L0,.5",Ie[3]="M.5,0 L.5,1",Ie),"\u2529":(Ne={},Ne[1]="M.5,.5 L.5,1",Ne[3]="M.5,0 L.5,.5 L0,.5",Ne),"\u252a":(Le={},Le[1]="M.5,.5 L.5,0",Le[3]="M0,.5 L.5,.5 L.5,1",Le),"\u252d":(ze={},ze[1]="M0.5,1 L.5,.5 L1,.5",ze[3]="M.5,.5 L0,.5",ze),"\u252e":(At={},At[1]="M0,.5 L.5,.5 L.5,1",At[3]="M.5,.5 L1,.5",At),"\u252f":(an={},an[1]="M.5,.5 L.5,1",an[3]="M0,.5 L1,.5",an),"\u2530":(jn={},jn[1]="M0,.5 L1,.5",jn[3]="M.5,.5 L.5,1",jn),"\u2531":(Rr={},Rr[1]="M.5,.5 L1,.5",Rr[3]="M0,.5 L.5,.5 L.5,1",Rr),"\u2532":(Hr={},Hr[1]="M.5,.5 L0,.5",Hr[3]="M0.5,1 L.5,.5 L1,.5",Hr),"\u2535":(yr={},yr[1]="M.5,0 L.5,.5 L1,.5",yr[3]="M.5,.5 L0,.5",yr),"\u2536":(Yr={},Yr[1]="M.5,0 L.5,.5 L0,.5",Yr[3]="M.5,.5 L1,.5",Yr),"\u2537":(co={},co[1]="M.5,.5 L.5,0",co[3]="M0,.5 L1,.5",co),"\u2538":(Zi={},Zi[1]="M0,.5 L1,.5",Zi[3]="M.5,.5 L.5,0",Zi),"\u2539":(bo={},bo[1]="M.5,.5 L1,.5",bo[3]="M.5,0 L.5,.5 L0,.5",bo),"\u253a":(po={},po[1]="M.5,.5 L0,.5",po[3]="M.5,0 L.5,.5 L1,.5",po),"\u253d":(Xo={},Xo[1]="M.5,0 L.5,1 M.5,.5 L1,.5",Xo[3]="M.5,.5 L0,.5",Xo),"\u253e":(Ei={},Ei[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Ei[3]="M.5,.5 L1,.5",Ei),"\u253f":(no={},no[1]="M.5,0 L.5,1",no[3]="M0,.5 L1,.5",no),"\u2540":(vi={},vi[1]="M0,.5 L1,.5 M.5,.5 L.5,1",vi[3]="M.5,.5 L.5,0",vi),"\u2541":(Yi={},Yi[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Yi[3]="M.5,.5 L.5,1",Yi),"\u2542":(fo={},fo[1]="M0,.5 L1,.5",fo[3]="M.5,0 L.5,1",fo),"\u2543":(fi={},fi[1]="M0.5,1 L.5,.5 L1,.5",fi[3]="M.5,0 L.5,.5 L0,.5",fi),"\u2544":(Uo={},Uo[1]="M0,.5 L.5,.5 L.5,1",Uo[3]="M.5,0 L.5,.5 L1,.5",Uo),"\u2545":(ki={},ki[1]="M.5,0 L.5,.5 L1,.5",ki[3]="M0,.5 L.5,.5 L.5,1",ki),"\u2546":(Wn={},Wn[1]="M.5,0 L.5,.5 L0,.5",Wn[3]="M0.5,1 L.5,.5 L1,.5",Wn),"\u2547":(Ot={},Ot[1]="M.5,.5 L.5,1",Ot[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Ot),"\u2548":(jt={},jt[1]="M.5,.5 L.5,0",jt[3]="M0,.5 L1,.5 M.5,.5 L.5,1",jt),"\u2549":(Pt={},Pt[1]="M.5,.5 L1,.5",Pt[3]="M.5,0 L.5,1 M.5,.5 L0,.5",Pt),"\u254a":(Vt={},Vt[1]="M.5,.5 L0,.5",Vt[3]="M.5,0 L.5,1 M.5,.5 L1,.5",Vt),"\u254c":(Gt={},Gt[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Gt),"\u254d":(Xt={},Xt[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Xt),"\u2504":(gn={},gn[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",gn),"\u2505":(Gn={},Gn[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Gn),"\u2508":(zn={},zn[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",zn),"\u2509":(Vn={},Vn[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Vn),"\u254e":(si={},si[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",si),"\u254f":(Si={},Si[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Si),"\u2506":(ro={},ro[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",ro),"\u2507":(Co={},Co[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Co),"\u250a":(Li={},Li[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Li),"\u250b":(Io={},Io[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Io),"\u256d":($o={},$o[1]="C.5,1,.5,.5,1,.5",$o),"\u256e":(ko={},ko[1]="C.5,1,.5,.5,0,.5",ko),"\u256f":(ii={},ii[1]="C.5,0,.5,.5,0,.5",ii),"\u2570":(Ho={},Ho[1]="C.5,0,.5,.5,1,.5",Ho)},w.tryDrawCustomChar=function(fn,vn,pr,ho,pa,xi){var So=w.blockElementDefinitions[vn];if(So)return function(Mo,Ro,fs,To,ha,ka){for(var qo=0;qo<Ro.length;qo++){var xo=Ro[qo],Ui=ha/8,ma=ka/8;Mo.fillRect(fs+xo.x*Ui,To+xo.y*ma,xo.w*Ui,xo.h*ma)}}(fn,So,pr,ho,pa,xi),!0;var Fi=ji[vn];if(Fi)return function(Mo,Ro,fs,To,ha,ka){var qo,xo=Ji.get(Ro);xo||(xo=new Map,Ji.set(Ro,xo));var Ui=Mo.fillStyle;if("string"!=typeof Ui)throw new Error('Unexpected fillStyle type "'+Ui+'"');var ma=xo.get(Ui);if(!ma){var zi=Ro[0].length,va=Ro.length,ga=document.createElement("canvas");ga.width=zi,ga.height=va;var gr=(0,io.throwIfFalsy)(ga.getContext("2d")),Bn=new ImageData(zi,va),Ma=void 0,Hi=void 0,Ua=void 0,ar=void 0;if(Ui.startsWith("#"))Ma=parseInt(Ui.substr(1,2),16),Hi=parseInt(Ui.substr(3,2),16),Ua=parseInt(Ui.substr(5,2),16),ar=Ui.length>7&&parseInt(Ui.substr(7,2),16)||1;else{if(!Ui.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+Ui+'" when drawing pattern glyph');Ma=(qo=Ui.substring(5,Ui.length-1).split(",").map(function(Pu){return parseFloat(Pu)}))[0],Hi=qo[1],Ua=qo[2],ar=qo[3]}for(var Wi=0;Wi<va;Wi++)for(var Ha=0;Ha<zi;Ha++)Bn.data[4*(Wi*zi+Ha)]=Ma,Bn.data[4*(Wi*zi+Ha)+1]=Hi,Bn.data[4*(Wi*zi+Ha)+2]=Ua,Bn.data[4*(Wi*zi+Ha)+3]=Ro[Wi][Ha]*(255*ar);gr.putImageData(Bn,0,0),ma=(0,io.throwIfFalsy)(Mo.createPattern(ga,null)),xo.set(Ui,ma)}Mo.fillStyle=ma,Mo.fillRect(fs,To,ha,ka)}(fn,Fi,pr,ho,pa,xi),!0;var fa=w.boxDrawingDefinitions[vn];return!!fa&&(function(Mo,Ro,fs,To,ha,ka){Mo.strokeStyle=Mo.fillStyle;for(var qo=0,xo=Object.entries(Ro);qo<xo.length;qo++){var Ui=xo[qo],ma=Ui[0],zi=Ui[1];Mo.beginPath(),Mo.lineWidth=window.devicePixelRatio*Number.parseInt(ma);for(var va=0,ga=("function"==typeof zi?zi(.15,.15/ka*ha):zi).split(" ");va<ga.length;va++){var gr=ga[va],Bn=gr[0],Ma=Ti[Bn];if(Ma){var Hi=gr.substring(1).split(",");Hi[0]&&Hi[1]&&Ma(Mo,Qi(Hi,ha,ka,fs,To))}else console.error('Could not find drawing instructions for "'+Bn+'"')}Mo.stroke(),Mo.closePath()}}(fn,fa,pr,ho,pa,xi),!0)};var Ji=new Map;function Vo(fn,vn,pr){return void 0===pr&&(pr=0),Math.max(Math.min(fn,vn),pr)}var Ti={C:function(vn,pr){return vn.bezierCurveTo(pr[0],pr[1],pr[2],pr[3],pr[4],pr[5])},L:function(vn,pr){return vn.lineTo(pr[0],pr[1])},M:function(vn,pr){return vn.moveTo(pr[0],pr[1])}};function Qi(fn,vn,pr,ho,pa){var xi=fn.map(function(fa){return parseFloat(fa)||parseInt(fa)});if(xi.length<2)throw new Error("Too few arguments for instruction");for(var So=0;So<xi.length;So+=2)xi[So]*=vn,0!==xi[So]&&(xi[So]=Vo(Math.round(xi[So]+.5)-.5,vn,0)),xi[So]+=ho;for(var Fi=1;Fi<xi.length;Fi+=2)xi[Fi]*=pr,0!==xi[Fi]&&(xi[Fi]=Vo(Math.round(xi[Fi]+.5)-.5,pr,0)),xi[Fi]+=pa;return xi}},3700:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.GridCache=void 0;var N=function(){function b(){this.cache=[]}return b.prototype.resize=function(_,I){for(var D=0;D<_;D++){this.cache.length<=D&&this.cache.push([]);for(var A=this.cache[D].length;A<I;A++)this.cache[D].push(void 0);this.cache[D].length=I}this.cache.length=_},b.prototype.clear=function(){for(var _=0;_<this.cache.length;_++)for(var I=0;I<this.cache[_].length;I++)this.cache[_][I]=void 0},b}();w.GridCache=N},5098:function(Z,w,N){var b,_=this&&this.__extends||(b=function(k,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var F in O)Object.prototype.hasOwnProperty.call(O,F)&&(x[F]=O[F])})(k,E)},function(R,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function E(){this.constructor=R}b(R,k),R.prototype=null===k?Object.create(k):(E.prototype=k.prototype,new E)}),I=this&&this.__decorate||function(R,k,E,x){var O,F=arguments.length,z=F<3?k:null===x?x=Object.getOwnPropertyDescriptor(k,E):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(R,k,E,x);else for(var K=R.length-1;K>=0;K--)(O=R[K])&&(z=(F<3?O(z):F>3?O(k,E,z):O(k,E))||z);return F>3&&z&&Object.defineProperty(k,E,z),z},D=this&&this.__param||function(R,k){return function(E,x){k(E,x,R)}};Object.defineProperty(w,"__esModule",{value:!0}),w.LinkRenderLayer=void 0;var A=N(1546),S=N(8803),v=N(2040),g=N(2585),T=function(R){function k(E,x,O,F,z,K,j,J){var ee=R.call(this,E,"link",x,!0,O,F,j,J)||this;return z.onShowLinkUnderline(function($){return ee._onShowLinkUnderline($)}),z.onHideLinkUnderline(function($){return ee._onHideLinkUnderline($)}),K.onShowLinkUnderline(function($){return ee._onShowLinkUnderline($)}),K.onHideLinkUnderline(function($){return ee._onHideLinkUnderline($)}),ee}return _(k,R),k.prototype.resize=function(E){R.prototype.resize.call(this,E),this._state=void 0},k.prototype.reset=function(){this._clearCurrentLink()},k.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var E=this._state.y2-this._state.y1-1;E>0&&this._clearCells(0,this._state.y1+1,this._state.cols,E),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},k.prototype._onShowLinkUnderline=function(E){if(this._ctx.fillStyle=E.fg===S.INVERTED_DEFAULT_COLOR?this._colors.background.css:E.fg&&(0,v.is256Color)(E.fg)?this._colors.ansi[E.fg].css:this._colors.foreground.css,E.y1===E.y2)this._fillBottomLineAtCells(E.x1,E.y1,E.x2-E.x1);else{this._fillBottomLineAtCells(E.x1,E.y1,E.cols-E.x1);for(var x=E.y1+1;x<E.y2;x++)this._fillBottomLineAtCells(0,x,E.cols);this._fillBottomLineAtCells(0,E.y2,E.x2)}this._state=E},k.prototype._onHideLinkUnderline=function(E){this._clearCurrentLink()},I([D(6,g.IBufferService),D(7,g.IOptionsService)],k)}(A.BaseRenderLayer);w.LinkRenderLayer=T},3525:function(Z,w,N){var b,_=this&&this.__extends||(b=function(K,j){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,ee){J.__proto__=ee}||function(J,ee){for(var $ in ee)Object.prototype.hasOwnProperty.call(ee,$)&&(J[$]=ee[$])})(K,j)},function(z,K){if("function"!=typeof K&&null!==K)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function j(){this.constructor=z}b(z,K),z.prototype=null===K?Object.create(K):(j.prototype=K.prototype,new j)}),I=this&&this.__decorate||function(z,K,j,J){var ee,$=arguments.length,ae=$<3?K:null===J?J=Object.getOwnPropertyDescriptor(K,j):J;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ae=Reflect.decorate(z,K,j,J);else for(var se=z.length-1;se>=0;se--)(ee=z[se])&&(ae=($<3?ee(ae):$>3?ee(K,j,ae):ee(K,j))||ae);return $>3&&ae&&Object.defineProperty(K,j,ae),ae},D=this&&this.__param||function(z,K){return function(j,J){K(j,J,z)}};Object.defineProperty(w,"__esModule",{value:!0}),w.Renderer=void 0;var A=N(9596),S=N(4149),v=N(2512),g=N(5098),T=N(844),R=N(4725),k=N(2585),E=N(1420),x=N(8460),O=1,F=function(z){function K(j,J,ee,$,ae,se,ce,le){var oe=z.call(this)||this;return oe._colors=j,oe._screenElement=J,oe._bufferService=se,oe._charSizeService=ce,oe._optionsService=le,oe._id=O++,oe._onRequestRedraw=new x.EventEmitter,oe._renderLayers=[ae.createInstance(A.TextRenderLayer,oe._screenElement,0,oe._colors,oe._optionsService.options.allowTransparency,oe._id),ae.createInstance(S.SelectionRenderLayer,oe._screenElement,1,oe._colors,oe._id),ae.createInstance(g.LinkRenderLayer,oe._screenElement,2,oe._colors,oe._id,ee,$),ae.createInstance(v.CursorRenderLayer,oe._screenElement,3,oe._colors,oe._id,oe._onRequestRedraw)],oe.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},oe._devicePixelRatio=window.devicePixelRatio,oe._updateDimensions(),oe.onOptionsChanged(),oe}return _(K,z),Object.defineProperty(K.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),K.prototype.dispose=function(){for(var j=0,J=this._renderLayers;j<J.length;j++)J[j].dispose();z.prototype.dispose.call(this),(0,E.removeTerminalFromCache)(this._id)},K.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},K.prototype.setColors=function(j){this._colors=j;for(var J=0,ee=this._renderLayers;J<ee.length;J++){var $=ee[J];$.setColors(this._colors),$.reset()}},K.prototype.onResize=function(j,J){this._updateDimensions();for(var ee=0,$=this._renderLayers;ee<$.length;ee++)$[ee].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},K.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},K.prototype.onBlur=function(){this._runOperation(function(j){return j.onBlur()})},K.prototype.onFocus=function(){this._runOperation(function(j){return j.onFocus()})},K.prototype.onSelectionChanged=function(j,J,ee){void 0===ee&&(ee=!1),this._runOperation(function($){return $.onSelectionChanged(j,J,ee)})},K.prototype.onCursorMove=function(){this._runOperation(function(j){return j.onCursorMove()})},K.prototype.onOptionsChanged=function(){this._runOperation(function(j){return j.onOptionsChanged()})},K.prototype.clear=function(){this._runOperation(function(j){return j.reset()})},K.prototype._runOperation=function(j){for(var J=0,ee=this._renderLayers;J<ee.length;J++)j(ee[J])},K.prototype.renderRows=function(j,J){for(var ee=0,$=this._renderLayers;ee<$.length;ee++)$[ee].onGridChanged(j,J)},K.prototype.clearTextureAtlas=function(){for(var j=0,J=this._renderLayers;j<J.length;j++)J[j].clearTextureAtlas()},K.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.options.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},I([D(4,k.IInstantiationService),D(5,k.IBufferService),D(6,R.ICharSizeService),D(7,k.IOptionsService)],K)}(T.Disposable);w.Renderer=F},1752:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.throwIfFalsy=void 0,w.throwIfFalsy=function(N){if(!N)throw new Error("value must not be falsy");return N}},4149:function(Z,w,N){var b,_=this&&this.__extends||(b=function(T,R){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,E){k.__proto__=E}||function(k,E){for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(k[x]=E[x])})(T,R)},function(g,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function R(){this.constructor=g}b(g,T),g.prototype=null===T?Object.create(T):(R.prototype=T.prototype,new R)}),I=this&&this.__decorate||function(g,T,R,k){var E,x=arguments.length,O=x<3?T:null===k?k=Object.getOwnPropertyDescriptor(T,R):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)O=Reflect.decorate(g,T,R,k);else for(var F=g.length-1;F>=0;F--)(E=g[F])&&(O=(x<3?E(O):x>3?E(T,R,O):E(T,R))||O);return x>3&&O&&Object.defineProperty(T,R,O),O},D=this&&this.__param||function(g,T){return function(R,k){T(R,k,g)}};Object.defineProperty(w,"__esModule",{value:!0}),w.SelectionRenderLayer=void 0;var A=N(1546),S=N(2585),v=function(g){function T(R,k,E,x,O,F){var z=g.call(this,R,"selection",k,!0,E,x,O,F)||this;return z._clearState(),z}return _(T,g),T.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},T.prototype.resize=function(R){g.prototype.resize.call(this,R),this._clearState()},T.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},T.prototype.onSelectionChanged=function(R,k,E){if(this._didStateChange(R,k,E,this._bufferService.buffer.ydisp))if(this._clearAll(),R&&k){var x=R[1]-this._bufferService.buffer.ydisp,O=k[1]-this._bufferService.buffer.ydisp,F=Math.max(x,0),z=Math.min(O,this._bufferService.rows-1);if(F>=this._bufferService.rows||z<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,E){var K=R[0];this._fillCells(K,F,k[0]-K,z-F+1)}else{this._fillCells(K=x===F?R[0]:0,F,(F===O?k[0]:this._bufferService.cols)-K,1);var $=Math.max(z-F-1,0);this._fillCells(0,F+1,this._bufferService.cols,$),F!==z&&this._fillCells(0,z,O===z?k[0]:this._bufferService.cols,1)}this._state.start=[R[0],R[1]],this._state.end=[k[0],k[1]],this._state.columnSelectMode=E,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},T.prototype._didStateChange=function(R,k,E,x){return!this._areCoordinatesEqual(R,this._state.start)||!this._areCoordinatesEqual(k,this._state.end)||E!==this._state.columnSelectMode||x!==this._state.ydisp},T.prototype._areCoordinatesEqual=function(R,k){return!(!R||!k)&&R[0]===k[0]&&R[1]===k[1]},I([D(4,S.IBufferService),D(5,S.IOptionsService)],T)}(A.BaseRenderLayer);w.SelectionRenderLayer=v},9596:function(Z,w,N){var b,_=this&&this.__extends||(b=function(F,z){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,j){K.__proto__=j}||function(K,j){for(var J in j)Object.prototype.hasOwnProperty.call(j,J)&&(K[J]=j[J])})(F,z)},function(O,F){if("function"!=typeof F&&null!==F)throw new TypeError("Class extends value "+String(F)+" is not a constructor or null");function z(){this.constructor=O}b(O,F),O.prototype=null===F?Object.create(F):(z.prototype=F.prototype,new z)}),I=this&&this.__decorate||function(O,F,z,K){var j,J=arguments.length,ee=J<3?F:null===K?K=Object.getOwnPropertyDescriptor(F,z):K;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ee=Reflect.decorate(O,F,z,K);else for(var $=O.length-1;$>=0;$--)(j=O[$])&&(ee=(J<3?j(ee):J>3?j(F,z,ee):j(F,z))||ee);return J>3&&ee&&Object.defineProperty(F,z,ee),ee},D=this&&this.__param||function(O,F){return function(z,K){F(z,K,O)}};Object.defineProperty(w,"__esModule",{value:!0}),w.TextRenderLayer=void 0;var A=N(3700),S=N(1546),v=N(3734),g=N(643),T=N(511),R=N(2585),k=N(4725),E=N(4269),x=function(O){function F(z,K,j,J,ee,$,ae,se){var ce=O.call(this,z,"text",K,J,j,ee,$,ae)||this;return ce._characterJoinerService=se,ce._characterWidth=0,ce._characterFont="",ce._characterOverlapCache={},ce._workCell=new T.CellData,ce._state=new A.GridCache,ce}return _(F,O),F.prototype.resize=function(z){O.prototype.resize.call(this,z);var K=this._getFont(!1,!1);this._characterWidth===z.scaledCharWidth&&this._characterFont===K||(this._characterWidth=z.scaledCharWidth,this._characterFont=K,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},F.prototype.reset=function(){this._state.clear(),this._clearAll()},F.prototype._forEachCell=function(z,K,j){for(var J=z;J<=K;J++)for(var ee=J+this._bufferService.buffer.ydisp,$=this._bufferService.buffer.lines.get(ee),ae=this._characterJoinerService.getJoinedCharacters(ee),se=0;se<this._bufferService.cols;se++){$.loadCell(se,this._workCell);var ce=this._workCell,le=!1,oe=se;if(0!==ce.getWidth()){if(ae.length>0&&se===ae[0][0]){le=!0;var Ae=ae.shift();ce=new E.JoinedCellData(this._workCell,$.translateToString(!0,Ae[0],Ae[1]),Ae[1]-Ae[0]),oe=Ae[1]-1}!le&&this._isOverlapping(ce)&&oe<$.length-1&&$.getCodePoint(oe+1)===g.NULL_CELL_CODE&&(ce.content&=-12582913,ce.content|=2<<22),j(ce,se,J),se=oe}}},F.prototype._drawBackground=function(z,K){var j=this,J=this._ctx,ee=this._bufferService.cols,$=0,ae=0,se=null;J.save(),this._forEachCell(z,K,function(ce,le,oe){var Ae=null;ce.isInverse()?Ae=ce.isFgDefault()?j._colors.foreground.css:ce.isFgRGB()?"rgb("+v.AttributeData.toColorRGB(ce.getFgColor()).join(",")+")":j._colors.ansi[ce.getFgColor()].css:ce.isBgRGB()?Ae="rgb("+v.AttributeData.toColorRGB(ce.getBgColor()).join(",")+")":ce.isBgPalette()&&(Ae=j._colors.ansi[ce.getBgColor()].css),null===se&&($=le,ae=oe),oe!==ae?(J.fillStyle=se||"",j._fillCells($,ae,ee-$,1),$=le,ae=oe):se!==Ae&&(J.fillStyle=se||"",j._fillCells($,ae,le-$,1),$=le,ae=oe),se=Ae}),null!==se&&(J.fillStyle=se,this._fillCells($,ae,ee-$,1)),J.restore()},F.prototype._drawForeground=function(z,K){var j=this;this._forEachCell(z,K,function(J,ee,$){if(!J.isInvisible()&&(j._drawChars(J,ee,$),J.isUnderline()||J.isStrikethrough())){if(j._ctx.save(),J.isInverse())if(J.isBgDefault())j._ctx.fillStyle=j._colors.background.css;else if(J.isBgRGB())j._ctx.fillStyle="rgb("+v.AttributeData.toColorRGB(J.getBgColor()).join(",")+")";else{var ae=J.getBgColor();j._optionsService.options.drawBoldTextInBrightColors&&J.isBold()&&ae<8&&(ae+=8),j._ctx.fillStyle=j._colors.ansi[ae].css}else if(J.isFgDefault())j._ctx.fillStyle=j._colors.foreground.css;else if(J.isFgRGB())j._ctx.fillStyle="rgb("+v.AttributeData.toColorRGB(J.getFgColor()).join(",")+")";else{var se=J.getFgColor();j._optionsService.options.drawBoldTextInBrightColors&&J.isBold()&&se<8&&(se+=8),j._ctx.fillStyle=j._colors.ansi[se].css}J.isStrikethrough()&&j._fillMiddleLineAtCells(ee,$,J.getWidth()),J.isUnderline()&&j._fillBottomLineAtCells(ee,$,J.getWidth()),j._ctx.restore()}})},F.prototype.onGridChanged=function(z,K){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,z,this._bufferService.cols,K-z+1),this._drawBackground(z,K),this._drawForeground(z,K))},F.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},F.prototype._isOverlapping=function(z){if(1!==z.getWidth()||z.getCode()<256)return!1;var K=z.getChars();if(this._characterOverlapCache.hasOwnProperty(K))return this._characterOverlapCache[K];this._ctx.save(),this._ctx.font=this._characterFont;var j=Math.floor(this._ctx.measureText(K).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[K]=j,j},I([D(5,R.IBufferService),D(6,R.IOptionsService),D(7,k.ICharacterJoinerService)],F)}(S.BaseRenderLayer);w.TextRenderLayer=x},9616:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.BaseCharAtlas=void 0;var N=function(){function b(){this._didWarmUp=!1}return b.prototype.dispose=function(){},b.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},b.prototype._doWarmUp=function(){},b.prototype.clear=function(){},b.prototype.beginFrame=function(){},b}();w.BaseCharAtlas=N},1420:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.removeTerminalFromCache=w.acquireCharAtlas=void 0;var b=N(2040),_=N(1906),I=[];w.acquireCharAtlas=function(D,A,S,v,g){for(var T=(0,b.generateConfig)(v,g,D,S),R=0;R<I.length;R++){var k=(E=I[R]).ownedBy.indexOf(A);if(k>=0){if((0,b.configEquals)(E.config,T))return E.atlas;1===E.ownedBy.length?(E.atlas.dispose(),I.splice(R,1)):E.ownedBy.splice(k,1);break}}for(R=0;R<I.length;R++){var E=I[R];if((0,b.configEquals)(E.config,T))return E.ownedBy.push(A),E.atlas}var x={atlas:new _.DynamicCharAtlas(document,T),config:T,ownedBy:[A]};return I.push(x),x.atlas},w.removeTerminalFromCache=function(D){for(var A=0;A<I.length;A++){var S=I[A].ownedBy.indexOf(D);if(-1!==S){1===I[A].ownedBy.length?(I[A].atlas.dispose(),I.splice(A,1)):I[A].ownedBy.splice(S,1);break}}}},2040:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.is256Color=w.configEquals=w.generateConfig=void 0;var b=N(643);w.generateConfig=function(_,I,D,A){return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:_,scaledCharHeight:I,fontFamily:D.fontFamily,fontSize:D.fontSize,fontWeight:D.fontWeight,fontWeightBold:D.fontWeightBold,allowTransparency:D.allowTransparency,colors:{foreground:A.foreground,background:A.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:A.ansi}}},w.configEquals=function(_,I){for(var D=0;D<_.colors.ansi.length;D++)if(_.colors.ansi[D].rgba!==I.colors.ansi[D].rgba)return!1;return _.devicePixelRatio===I.devicePixelRatio&&_.fontFamily===I.fontFamily&&_.fontSize===I.fontSize&&_.fontWeight===I.fontWeight&&_.fontWeightBold===I.fontWeightBold&&_.allowTransparency===I.allowTransparency&&_.scaledCharWidth===I.scaledCharWidth&&_.scaledCharHeight===I.scaledCharHeight&&_.colors.foreground===I.colors.foreground&&_.colors.background===I.colors.background},w.is256Color=function(_){return _<b.DEFAULT_COLOR}},8803:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.CHAR_ATLAS_CELL_SPACING=w.TEXT_BASELINE=w.DIM_OPACITY=w.INVERTED_DEFAULT_COLOR=void 0;var b=N(6114);w.INVERTED_DEFAULT_COLOR=257,w.DIM_OPACITY=.5,w.TEXT_BASELINE=b.isFirefox?"bottom":"ideographic",w.CHAR_ATLAS_CELL_SPACING=1},1906:function(Z,w,N){var b,_=this&&this.__extends||(b=function(j,J){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,$){ee.__proto__=$}||function(ee,$){for(var ae in $)Object.prototype.hasOwnProperty.call($,ae)&&(ee[ae]=$[ae])})(j,J)},function(K,j){if("function"!=typeof j&&null!==j)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");function J(){this.constructor=K}b(K,j),K.prototype=null===j?Object.create(j):(J.prototype=j.prototype,new J)});Object.defineProperty(w,"__esModule",{value:!0}),w.NoneCharAtlas=w.DynamicCharAtlas=w.getGlyphCacheKey=void 0;var I=N(8803),D=N(9616),A=N(5680),S=N(7001),v=N(6114),g=N(1752),T=N(4774),R=1024,k=1024,E={css:"rgba(0, 0, 0, 0)",rgba:0};function x(K){return K.code<<21|K.bg<<12|K.fg<<3|(K.bold?0:4)+(K.dim?0:2)+(K.italic?0:1)}w.getGlyphCacheKey=x;var O=function(K){function j(J,ee){var $=K.call(this)||this;$._config=ee,$._drawToCacheCount=0,$._glyphsWaitingOnBitmap=[],$._bitmapCommitTimeout=null,$._bitmap=null,$._cacheCanvas=J.createElement("canvas"),$._cacheCanvas.width=R,$._cacheCanvas.height=k,$._cacheCtx=(0,g.throwIfFalsy)($._cacheCanvas.getContext("2d",{alpha:!0}));var ae=J.createElement("canvas");ae.width=$._config.scaledCharWidth,ae.height=$._config.scaledCharHeight,$._tmpCtx=(0,g.throwIfFalsy)(ae.getContext("2d",{alpha:$._config.allowTransparency})),$._width=Math.floor(R/$._config.scaledCharWidth),$._height=Math.floor(k/$._config.scaledCharHeight);var se=$._width*$._height;return $._cacheMap=new S.LRUMap(se),$._cacheMap.prealloc(se),$}return _(j,K),j.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},j.prototype.beginFrame=function(){this._drawToCacheCount=0},j.prototype.clear=function(){if(this._cacheMap.size>0){var J=this._width*this._height;this._cacheMap=new S.LRUMap(J),this._cacheMap.prealloc(J)}this._cacheCtx.clearRect(0,0,R,k),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},j.prototype.draw=function(J,ee,$,ae){if(32===ee.code)return!0;if(!this._canCache(ee))return!1;var se=x(ee),ce=this._cacheMap.get(se);if(null!=ce)return this._drawFromCache(J,ce,$,ae),!0;if(this._drawToCacheCount<100){var le;le=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var oe=this._drawToCache(ee,le);return this._cacheMap.set(se,oe),this._drawFromCache(J,oe,$,ae),!0}return!1},j.prototype._canCache=function(J){return J.code<256},j.prototype._toCoordinateX=function(J){return J%this._width*this._config.scaledCharWidth},j.prototype._toCoordinateY=function(J){return Math.floor(J/this._width)*this._config.scaledCharHeight},j.prototype._drawFromCache=function(J,ee,$,ae){if(!ee.isEmpty){var se=this._toCoordinateX(ee.index),ce=this._toCoordinateY(ee.index);J.drawImage(ee.inBitmap?this._bitmap:this._cacheCanvas,se,ce,this._config.scaledCharWidth,this._config.scaledCharHeight,$,ae,this._config.scaledCharWidth,this._config.scaledCharHeight)}},j.prototype._getColorFromAnsiIndex=function(J){return J<this._config.colors.ansi.length?this._config.colors.ansi[J]:A.DEFAULT_ANSI_COLORS[J]},j.prototype._getBackgroundColor=function(J){return this._config.allowTransparency?E:J.bg===I.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:J.bg<256?this._getColorFromAnsiIndex(J.bg):this._config.colors.background},j.prototype._getForegroundColor=function(J){return J.fg===I.INVERTED_DEFAULT_COLOR?T.color.opaque(this._config.colors.background):J.fg<256?this._getColorFromAnsiIndex(J.fg):this._config.colors.foreground},j.prototype._drawToCache=function(J,ee){this._drawToCacheCount++,this._tmpCtx.save();var $=this._getBackgroundColor(J);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=$.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over",this._tmpCtx.font=(J.italic?"italic":"")+" "+(J.bold?this._config.fontWeightBold:this._config.fontWeight)+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline=I.TEXT_BASELINE,this._tmpCtx.fillStyle=this._getForegroundColor(J).css,J.dim&&(this._tmpCtx.globalAlpha=I.DIM_OPACITY),this._tmpCtx.fillText(J.chars,0,this._config.scaledCharHeight);var ce=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),le=!1;if(this._config.allowTransparency||(le=z(ce,$)),le&&"_"===J.chars&&!this._config.allowTransparency)for(var oe=1;oe<=5&&(this._tmpCtx.fillText(J.chars,0,this._config.scaledCharHeight-oe),le=z(ce=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),$));oe++);this._tmpCtx.restore();var Ae=this._toCoordinateX(ee),be=this._toCoordinateY(ee);this._cacheCtx.putImageData(ce,Ae,be);var it={index:ee,isEmpty:le,inBitmap:!1};return this._addGlyphToBitmap(it),it},j.prototype._addGlyphToBitmap=function(J){var ee=this;!("createImageBitmap"in window)||v.isFirefox||v.isSafari||(this._glyphsWaitingOnBitmap.push(J),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return ee._generateBitmap()},100)))},j.prototype._generateBitmap=function(){var J=this,ee=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function($){J._bitmap=$;for(var ae=0;ae<ee.length;ae++)ee[ae].inBitmap=!0}),this._bitmapCommitTimeout=null},j}(D.BaseCharAtlas);w.DynamicCharAtlas=O;var F=function(K){function j(J,ee){return K.call(this)||this}return _(j,K),j.prototype.draw=function(J,ee,$,ae){return!1},j}(D.BaseCharAtlas);function z(K,j){for(var J=!0,ee=j.rgba>>>24,$=j.rgba>>>16&255,ae=j.rgba>>>8&255,se=0;se<K.data.length;se+=4)K.data[se]===ee&&K.data[se+1]===$&&K.data[se+2]===ae?K.data[se+3]=0:J=!1;return J}w.NoneCharAtlas=F},7001:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.LRUMap=void 0;var N=function(){function b(_){this.capacity=_,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return b.prototype._unlinkNode=function(_){var I=_.prev,D=_.next;_===this._head&&(this._head=D),_===this._tail&&(this._tail=I),null!==I&&(I.next=D),null!==D&&(D.prev=I)},b.prototype._appendNode=function(_){var I=this._tail;null!==I&&(I.next=_),_.prev=I,_.next=null,this._tail=_,null===this._head&&(this._head=_)},b.prototype.prealloc=function(_){for(var I=this._nodePool,D=0;D<_;D++)I.push({prev:null,next:null,key:null,value:null})},b.prototype.get=function(_){var I=this._map[_];return void 0!==I?(this._unlinkNode(I),this._appendNode(I),I.value):null},b.prototype.peekValue=function(_){var I=this._map[_];return void 0!==I?I.value:null},b.prototype.peek=function(){var _=this._head;return null===_?null:_.value},b.prototype.set=function(_,I){var D=this._map[_];if(void 0!==D)this._unlinkNode(D=this._map[_]),D.value=I;else if(this.size>=this.capacity)this._unlinkNode(D=this._head),delete this._map[D.key],D.key=_,D.value=I,this._map[_]=D;else{var A=this._nodePool;A.length>0?((D=A.pop()).key=_,D.value=I):D={prev:null,next:null,key:_,value:I},this._map[_]=D,this.size++}this._appendNode(D)},b}();w.LRUMap=N},1296:function(Z,w,N){var b,_=this&&this.__extends||(b=function(ee,$){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,se){ae.__proto__=se}||function(ae,se){for(var ce in se)Object.prototype.hasOwnProperty.call(se,ce)&&(ae[ce]=se[ce])})(ee,$)},function(J,ee){if("function"!=typeof ee&&null!==ee)throw new TypeError("Class extends value "+String(ee)+" is not a constructor or null");function $(){this.constructor=J}b(J,ee),J.prototype=null===ee?Object.create(ee):($.prototype=ee.prototype,new $)}),I=this&&this.__decorate||function(J,ee,$,ae){var se,ce=arguments.length,le=ce<3?ee:null===ae?ae=Object.getOwnPropertyDescriptor(ee,$):ae;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)le=Reflect.decorate(J,ee,$,ae);else for(var oe=J.length-1;oe>=0;oe--)(se=J[oe])&&(le=(ce<3?se(le):ce>3?se(ee,$,le):se(ee,$))||le);return ce>3&&le&&Object.defineProperty(ee,$,le),le},D=this&&this.__param||function(J,ee){return function($,ae){ee($,ae,J)}};Object.defineProperty(w,"__esModule",{value:!0}),w.DomRenderer=void 0;var A=N(3787),S=N(8803),v=N(844),g=N(4725),T=N(2585),R=N(8460),k=N(4774),E=N(9631),x="xterm-dom-renderer-owner-",O="xterm-fg-",F="xterm-bg-",z="xterm-focus",K=1,j=function(J){function ee($,ae,se,ce,le,oe,Ae,be,it,qe){var _t=J.call(this)||this;return _t._colors=$,_t._element=ae,_t._screenElement=se,_t._viewportElement=ce,_t._linkifier=le,_t._linkifier2=oe,_t._charSizeService=be,_t._optionsService=it,_t._bufferService=qe,_t._terminalClass=K++,_t._rowElements=[],_t._rowContainer=document.createElement("div"),_t._rowContainer.classList.add("xterm-rows"),_t._rowContainer.style.lineHeight="normal",_t._rowContainer.setAttribute("aria-hidden","true"),_t._refreshRowElements(_t._bufferService.cols,_t._bufferService.rows),_t._selectionContainer=document.createElement("div"),_t._selectionContainer.classList.add("xterm-selection"),_t._selectionContainer.setAttribute("aria-hidden","true"),_t.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},_t._updateDimensions(),_t._injectCss(),_t._rowFactory=Ae.createInstance(A.DomRendererRowFactory,document,_t._colors),_t._element.classList.add(x+_t._terminalClass),_t._screenElement.appendChild(_t._rowContainer),_t._screenElement.appendChild(_t._selectionContainer),_t._linkifier.onShowLinkUnderline(function(yt){return _t._onLinkHover(yt)}),_t._linkifier.onHideLinkUnderline(function(yt){return _t._onLinkLeave(yt)}),_t._linkifier2.onShowLinkUnderline(function(yt){return _t._onLinkHover(yt)}),_t._linkifier2.onHideLinkUnderline(function(yt){return _t._onLinkLeave(yt)}),_t}return _(ee,J),Object.defineProperty(ee.prototype,"onRequestRedraw",{get:function(){return(new R.EventEmitter).event},enumerable:!1,configurable:!0}),ee.prototype.dispose=function(){this._element.classList.remove(x+this._terminalClass),(0,E.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),J.prototype.dispose.call(this)},ee.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var $=0,ae=this._rowElements;$<ae.length;$++){var se=ae[$];se.style.width=this.dimensions.canvasWidth+"px",se.style.height=this.dimensions.actualCellHeight+"px",se.style.lineHeight=this.dimensions.actualCellHeight+"px",se.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement)),this._dimensionsStyleElement.textContent=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}",this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},ee.prototype.setColors=function($){this._colors=$,this._injectCss()},ee.prototype._injectCss=function(){var $=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var ae=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";ae+=this._terminalSelector+" span:not(."+A.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+A.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+A.ITALIC_CLASS+" { font-style: italic;}",ae+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",ae+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",ae+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+A.CURSOR_CLASS+"."+A.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+A.CURSOR_CLASS+"."+A.CURSOR_BLINK_CLASS+":not(."+A.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+A.CURSOR_CLASS+"."+A.CURSOR_BLINK_CLASS+"."+A.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+A.CURSOR_CLASS+"."+A.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+A.CURSOR_CLASS+"."+A.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+A.CURSOR_CLASS+"."+A.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",ae+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(se,ce){ae+=$._terminalSelector+" ."+O+ce+" { color: "+se.css+"; }"+$._terminalSelector+" ."+F+ce+" { background-color: "+se.css+"; }"}),ae+=this._terminalSelector+" ."+O+S.INVERTED_DEFAULT_COLOR+" { color: "+k.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+F+S.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=ae},ee.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},ee.prototype._refreshRowElements=function($,ae){for(var se=this._rowElements.length;se<=ae;se++){var ce=document.createElement("div");this._rowContainer.appendChild(ce),this._rowElements.push(ce)}for(;this._rowElements.length>ae;)this._rowContainer.removeChild(this._rowElements.pop())},ee.prototype.onResize=function($,ae){this._refreshRowElements($,ae),this._updateDimensions()},ee.prototype.onCharSizeChanged=function(){this._updateDimensions()},ee.prototype.onBlur=function(){this._rowContainer.classList.remove(z)},ee.prototype.onFocus=function(){this._rowContainer.classList.add(z)},ee.prototype.onSelectionChanged=function($,ae,se){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if($&&ae){var ce=$[1]-this._bufferService.buffer.ydisp,le=ae[1]-this._bufferService.buffer.ydisp,oe=Math.max(ce,0),Ae=Math.min(le,this._bufferService.rows-1);if(!(oe>=this._bufferService.rows||Ae<0)){var be=document.createDocumentFragment();se?be.appendChild(this._createSelectionElement(oe,$[0],ae[0],Ae-oe+1)):(be.appendChild(this._createSelectionElement(oe,ce===oe?$[0]:0,oe===le?ae[0]:this._bufferService.cols)),be.appendChild(this._createSelectionElement(oe+1,0,this._bufferService.cols,Ae-oe-1)),oe!==Ae&&be.appendChild(this._createSelectionElement(Ae,0,le===Ae?ae[0]:this._bufferService.cols))),this._selectionContainer.appendChild(be)}}},ee.prototype._createSelectionElement=function($,ae,se,ce){void 0===ce&&(ce=1);var le=document.createElement("div");return le.style.height=ce*this.dimensions.actualCellHeight+"px",le.style.top=$*this.dimensions.actualCellHeight+"px",le.style.left=ae*this.dimensions.actualCellWidth+"px",le.style.width=this.dimensions.actualCellWidth*(se-ae)+"px",le},ee.prototype.onCursorMove=function(){},ee.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},ee.prototype.clear=function(){for(var $=0,ae=this._rowElements;$<ae.length;$++)ae[$].innerText=""},ee.prototype.renderRows=function($,ae){for(var se=this._bufferService.buffer.ybase+this._bufferService.buffer.y,ce=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),le=this._optionsService.options.cursorBlink,oe=$;oe<=ae;oe++){var Ae=this._rowElements[oe];Ae.innerText="";var be=oe+this._bufferService.buffer.ydisp,it=this._bufferService.buffer.lines.get(be);Ae.appendChild(this._rowFactory.createRow(it,be,be===se,this._optionsService.options.cursorStyle,ce,le,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(ee.prototype,"_terminalSelector",{get:function(){return"."+x+this._terminalClass},enumerable:!1,configurable:!0}),ee.prototype._onLinkHover=function($){this._setCellUnderline($.x1,$.x2,$.y1,$.y2,$.cols,!0)},ee.prototype._onLinkLeave=function($){this._setCellUnderline($.x1,$.x2,$.y1,$.y2,$.cols,!1)},ee.prototype._setCellUnderline=function($,ae,se,ce,le,oe){for(;$!==ae||se!==ce;){var Ae=this._rowElements[se];if(!Ae)return;var be=Ae.children[$];be&&(be.style.textDecoration=oe?"underline":"none"),++$>=le&&($=0,se++)}},I([D(6,T.IInstantiationService),D(7,g.ICharSizeService),D(8,T.IOptionsService),D(9,T.IBufferService)],ee)}(v.Disposable);w.DomRenderer=j},3787:function(Z,w,N){var b=this&&this.__decorate||function(E,x,O,F){var z,K=arguments.length,j=K<3?x:null===F?F=Object.getOwnPropertyDescriptor(x,O):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(E,x,O,F);else for(var J=E.length-1;J>=0;J--)(z=E[J])&&(j=(K<3?z(j):K>3?z(x,O,j):z(x,O))||j);return K>3&&j&&Object.defineProperty(x,O,j),j},_=this&&this.__param||function(E,x){return function(O,F){x(O,F,E)}};Object.defineProperty(w,"__esModule",{value:!0}),w.DomRendererRowFactory=w.CURSOR_STYLE_UNDERLINE_CLASS=w.CURSOR_STYLE_BAR_CLASS=w.CURSOR_STYLE_BLOCK_CLASS=w.CURSOR_BLINK_CLASS=w.CURSOR_CLASS=w.STRIKETHROUGH_CLASS=w.UNDERLINE_CLASS=w.ITALIC_CLASS=w.DIM_CLASS=w.BOLD_CLASS=void 0;var I=N(8803),D=N(643),A=N(511),S=N(2585),v=N(4774),g=N(4725),T=N(4269);w.BOLD_CLASS="xterm-bold",w.DIM_CLASS="xterm-dim",w.ITALIC_CLASS="xterm-italic",w.UNDERLINE_CLASS="xterm-underline",w.STRIKETHROUGH_CLASS="xterm-strikethrough",w.CURSOR_CLASS="xterm-cursor",w.CURSOR_BLINK_CLASS="xterm-cursor-blink",w.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",w.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",w.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var R=function(){function E(x,O,F,z,K){this._document=x,this._colors=O,this._characterJoinerService=F,this._optionsService=z,this._coreService=K,this._workCell=new A.CellData}return E.prototype.setColors=function(x){this._colors=x},E.prototype.createRow=function(x,O,F,z,K,j,J,ee){for(var $=this._document.createDocumentFragment(),ae=this._characterJoinerService.getJoinedCharacters(O),se=0,ce=Math.min(x.length,ee)-1;ce>=0;ce--)if(x.loadCell(ce,this._workCell).getCode()!==D.NULL_CELL_CODE||F&&ce===K){se=ce+1;break}for(ce=0;ce<se;ce++){x.loadCell(ce,this._workCell);var le=this._workCell.getWidth();if(0!==le){var oe=!1,Ae=ce,be=this._workCell;if(ae.length>0&&ce===ae[0][0]){oe=!0;var it=ae.shift();be=new T.JoinedCellData(this._workCell,x.translateToString(!0,it[0],it[1]),it[1]-it[0]),Ae=it[1]-1,le=be.getWidth()}var qe=this._document.createElement("span");if(le>1&&(qe.style.width=J*le+"px"),oe&&(qe.style.display="inline",K>=ce&&K<=Ae&&(K=ce)),!this._coreService.isCursorHidden&&F&&ce===K)switch(qe.classList.add(w.CURSOR_CLASS),j&&qe.classList.add(w.CURSOR_BLINK_CLASS),z){case"bar":qe.classList.add(w.CURSOR_STYLE_BAR_CLASS);break;case"underline":qe.classList.add(w.CURSOR_STYLE_UNDERLINE_CLASS);break;default:qe.classList.add(w.CURSOR_STYLE_BLOCK_CLASS)}be.isBold()&&qe.classList.add(w.BOLD_CLASS),be.isItalic()&&qe.classList.add(w.ITALIC_CLASS),be.isDim()&&qe.classList.add(w.DIM_CLASS),be.isUnderline()&&qe.classList.add(w.UNDERLINE_CLASS),qe.textContent=be.isInvisible()?D.WHITESPACE_CELL_CHAR:be.getChars()||D.WHITESPACE_CELL_CHAR,be.isStrikethrough()&&qe.classList.add(w.STRIKETHROUGH_CLASS);var _t=be.getFgColor(),yt=be.getFgColorMode(),Ft=be.getBgColor(),xe=be.getBgColorMode(),De=!!be.isInverse();if(De){var je=_t;_t=Ft,Ft=je;var dt=yt;yt=xe,xe=dt}switch(yt){case 16777216:case 33554432:be.isBold()&&_t<8&&this._optionsService.options.drawBoldTextInBrightColors&&(_t+=8),this._applyMinimumContrast(qe,this._colors.background,this._colors.ansi[_t])||qe.classList.add("xterm-fg-"+_t);break;case 50331648:var Ke=v.rgba.toColor(_t>>16&255,_t>>8&255,255&_t);this._applyMinimumContrast(qe,this._colors.background,Ke)||this._addStyle(qe,"color:#"+k(_t.toString(16),"0",6));break;default:this._applyMinimumContrast(qe,this._colors.background,this._colors.foreground)||De&&qe.classList.add("xterm-fg-"+I.INVERTED_DEFAULT_COLOR)}switch(xe){case 16777216:case 33554432:qe.classList.add("xterm-bg-"+Ft);break;case 50331648:this._addStyle(qe,"background-color:#"+k(Ft.toString(16),"0",6));break;default:De&&qe.classList.add("xterm-bg-"+I.INVERTED_DEFAULT_COLOR)}$.appendChild(qe),ce=Ae}}return $},E.prototype._applyMinimumContrast=function(x,O,F){if(1===this._optionsService.options.minimumContrastRatio)return!1;var z=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===z&&(z=v.color.ensureContrastRatio(O,F,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=z?z:null)),!!z&&(this._addStyle(x,"color:"+z.css),!0)},E.prototype._addStyle=function(x,O){x.setAttribute("style",""+(x.getAttribute("style")||"")+O+";")},b([_(2,g.ICharacterJoinerService),_(3,S.IOptionsService),_(4,S.ICoreService)],E)}();function k(E,x,O){for(;E.length<O;)E=x+E;return E}w.DomRendererRowFactory=R},456:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.SelectionModel=void 0;var N=function(){function b(_){this._bufferService=_,this.isSelectAllActive=!1,this.selectionStartLength=0}return b.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(b.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var I=this.selectionStart[0]+this.selectionStartLength;return I>this._bufferService.cols?[I%this._bufferService.cols,this.selectionStart[1]+Math.floor(I/this._bufferService.cols)]:[I,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),b.prototype.areSelectionValuesReversed=function(){var _=this.selectionStart,I=this.selectionEnd;return!(!_||!I)&&(_[1]>I[1]||_[1]===I[1]&&_[0]>I[0])},b.prototype.onTrim=function(_){return this.selectionStart&&(this.selectionStart[1]-=_),this.selectionEnd&&(this.selectionEnd[1]-=_),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},b}();w.SelectionModel=N},428:function(Z,w,N){var b=this&&this.__decorate||function(v,g,T,R){var k,E=arguments.length,x=E<3?g:null===R?R=Object.getOwnPropertyDescriptor(g,T):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(v,g,T,R);else for(var O=v.length-1;O>=0;O--)(k=v[O])&&(x=(E<3?k(x):E>3?k(g,T,x):k(g,T))||x);return E>3&&x&&Object.defineProperty(g,T,x),x},_=this&&this.__param||function(v,g){return function(T,R){g(T,R,v)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CharSizeService=void 0;var I=N(2585),D=N(8460),A=function(){function v(g,T,R){this._optionsService=R,this.width=0,this.height=0,this._onCharSizeChange=new D.EventEmitter,this._measureStrategy=new S(g,T,this._optionsService)}return Object.defineProperty(v.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),v.prototype.measure=function(){var g=this._measureStrategy.measure();g.width===this.width&&g.height===this.height||(this.width=g.width,this.height=g.height,this._onCharSizeChange.fire())},b([_(2,I.IOptionsService)],v)}();w.CharSizeService=A;var S=function(){function v(g,T,R){this._document=g,this._parentElement=T,this._optionsService=R,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return v.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var g=this._measureElement.getBoundingClientRect();return 0!==g.width&&0!==g.height&&(this._result.width=g.width,this._result.height=Math.ceil(g.height)),this._result},v}()},4269:function(Z,w,N){var b,_=this&&this.__extends||(b=function(E,x){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,F){O.__proto__=F}||function(O,F){for(var z in F)Object.prototype.hasOwnProperty.call(F,z)&&(O[z]=F[z])})(E,x)},function(k,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=k}b(k,E),k.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),I=this&&this.__decorate||function(k,E,x,O){var F,z=arguments.length,K=z<3?E:null===O?O=Object.getOwnPropertyDescriptor(E,x):O;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)K=Reflect.decorate(k,E,x,O);else for(var j=k.length-1;j>=0;j--)(F=k[j])&&(K=(z<3?F(K):z>3?F(E,x,K):F(E,x))||K);return z>3&&K&&Object.defineProperty(E,x,K),K},D=this&&this.__param||function(k,E){return function(x,O){E(x,O,k)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CharacterJoinerService=w.JoinedCellData=void 0;var A=N(3734),S=N(643),v=N(511),g=N(2585),T=function(k){function E(x,O,F){var z=k.call(this)||this;return z.content=0,z.combinedData="",z.fg=x.fg,z.bg=x.bg,z.combinedData=O,z._width=F,z}return _(E,k),E.prototype.isCombined=function(){return 2097152},E.prototype.getWidth=function(){return this._width},E.prototype.getChars=function(){return this.combinedData},E.prototype.getCode=function(){return 2097151},E.prototype.setFromCharData=function(x){throw new Error("not implemented")},E.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},E}(A.AttributeData);w.JoinedCellData=T;var R=function(){function k(E){this._bufferService=E,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new v.CellData}return k.prototype.register=function(E){var x={id:this._nextCharacterJoinerId++,handler:E};return this._characterJoiners.push(x),x.id},k.prototype.deregister=function(E){for(var x=0;x<this._characterJoiners.length;x++)if(this._characterJoiners[x].id===E)return this._characterJoiners.splice(x,1),!0;return!1},k.prototype.getJoinedCharacters=function(E){if(0===this._characterJoiners.length)return[];var x=this._bufferService.buffer.lines.get(E);if(!x||0===x.length)return[];for(var O=[],F=x.translateToString(!0),z=0,K=0,j=0,J=x.getFg(0),ee=x.getBg(0),$=0;$<x.getTrimmedLength();$++)if(x.loadCell($,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==J||this._workCell.bg!==ee){if($-z>1)for(var ae=this._getJoinedRanges(F,j,K,x,z),se=0;se<ae.length;se++)O.push(ae[se]);z=$,j=K,J=this._workCell.fg,ee=this._workCell.bg}K+=this._workCell.getChars().length||S.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-z>1)for(ae=this._getJoinedRanges(F,j,K,x,z),se=0;se<ae.length;se++)O.push(ae[se]);return O},k.prototype._getJoinedRanges=function(E,x,O,F,z){for(var K=E.substring(x,O),j=this._characterJoiners[0].handler(K),J=1;J<this._characterJoiners.length;J++)for(var ee=this._characterJoiners[J].handler(K),$=0;$<ee.length;$++)k._mergeRanges(j,ee[$]);return this._stringRangesToCellRanges(j,F,z),j},k.prototype._stringRangesToCellRanges=function(E,x,O){var F=0,z=!1,K=0,j=E[F];if(j){for(var J=O;J<this._bufferService.cols;J++){var ee=x.getWidth(J),$=x.getString(J).length||S.WHITESPACE_CELL_CHAR.length;if(0!==ee){if(!z&&j[0]<=K&&(j[0]=J,z=!0),j[1]<=K){if(j[1]=J,!(j=E[++F]))break;j[0]<=K?(j[0]=J,z=!0):z=!1}K+=$}}j&&(j[1]=this._bufferService.cols)}},k._mergeRanges=function(E,x){for(var O=!1,F=0;F<E.length;F++){var z=E[F];if(O){if(x[1]<=z[0])return E[F-1][1]=x[1],E;if(x[1]<=z[1])return E[F-1][1]=Math.max(x[1],z[1]),E.splice(F,1),E;E.splice(F,1),F--}else{if(x[1]<=z[0])return E.splice(F,0,x),E;if(x[1]<=z[1])return z[0]=Math.min(x[0],z[0]),E;x[0]<z[1]&&(z[0]=Math.min(x[0],z[0]),O=!0)}}return O?E[E.length-1][1]=x[1]:E.push(x),E},k=I([D(0,g.IBufferService)],k)}();w.CharacterJoinerService=R},5114:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.CoreBrowserService=void 0;var N=function(){function b(_){this._textarea=_}return Object.defineProperty(b.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),b}();w.CoreBrowserService=N},8934:function(Z,w,N){var b=this&&this.__decorate||function(S,v,g,T){var R,k=arguments.length,E=k<3?v:null===T?T=Object.getOwnPropertyDescriptor(v,g):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(S,v,g,T);else for(var x=S.length-1;x>=0;x--)(R=S[x])&&(E=(k<3?R(E):k>3?R(v,g,E):R(v,g))||E);return k>3&&E&&Object.defineProperty(v,g,E),E},_=this&&this.__param||function(S,v){return function(g,T){v(g,T,S)}};Object.defineProperty(w,"__esModule",{value:!0}),w.MouseService=void 0;var I=N(4725),D=N(9806),A=function(){function S(v,g){this._renderService=v,this._charSizeService=g}return S.prototype.getCoords=function(v,g,T,R,k){return(0,D.getCoords)(v,g,T,R,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,k)},S.prototype.getRawByteCoords=function(v,g,T,R){var k=this.getCoords(v,g,T,R);return(0,D.getRawByteCoords)(k)},b([_(0,I.IRenderService),_(1,I.ICharSizeService)],S)}();w.MouseService=A},3230:function(Z,w,N){var b,_=this&&this.__extends||(b=function(O,F){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,K){z.__proto__=K}||function(z,K){for(var j in K)Object.prototype.hasOwnProperty.call(K,j)&&(z[j]=K[j])})(O,F)},function(x,O){if("function"!=typeof O&&null!==O)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");function F(){this.constructor=x}b(x,O),x.prototype=null===O?Object.create(O):(F.prototype=O.prototype,new F)}),I=this&&this.__decorate||function(x,O,F,z){var K,j=arguments.length,J=j<3?O:null===z?z=Object.getOwnPropertyDescriptor(O,F):z;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)J=Reflect.decorate(x,O,F,z);else for(var ee=x.length-1;ee>=0;ee--)(K=x[ee])&&(J=(j<3?K(J):j>3?K(O,F,J):K(O,F))||J);return j>3&&J&&Object.defineProperty(O,F,J),J},D=this&&this.__param||function(x,O){return function(F,z){O(F,z,x)}};Object.defineProperty(w,"__esModule",{value:!0}),w.RenderService=void 0;var A=N(6193),S=N(8460),v=N(844),g=N(5596),T=N(3656),R=N(2585),k=N(4725),E=function(x){function O(F,z,K,j,J,ee){var $=x.call(this)||this;if($._renderer=F,$._rowCount=z,$._charSizeService=J,$._isPaused=!1,$._needsFullRefresh=!1,$._isNextRenderRedrawOnly=!0,$._needsSelectionRefresh=!1,$._canvasWidth=0,$._canvasHeight=0,$._selectionState={start:void 0,end:void 0,columnSelectMode:!1},$._onDimensionsChange=new S.EventEmitter,$._onRender=new S.EventEmitter,$._onRefreshRequest=new S.EventEmitter,$.register({dispose:function(){return $._renderer.dispose()}}),$._renderDebouncer=new A.RenderDebouncer(function(se,ce){return $._renderRows(se,ce)}),$.register($._renderDebouncer),$._screenDprMonitor=new g.ScreenDprMonitor,$._screenDprMonitor.setListener(function(){return $.onDevicePixelRatioChange()}),$.register($._screenDprMonitor),$.register(ee.onResize(function(se){return $._fullRefresh()})),$.register(j.onOptionChange(function(){return $._renderer.onOptionsChanged()})),$.register($._charSizeService.onCharSizeChange(function(){return $.onCharSizeChanged()})),$._renderer.onRequestRedraw(function(se){return $.refreshRows(se.start,se.end,!0)}),$.register((0,T.addDisposableDomListener)(window,"resize",function(){return $.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var ae=new IntersectionObserver(function(se){return $._onIntersectionChange(se[se.length-1])},{threshold:0});ae.observe(K),$.register({dispose:function(){return ae.disconnect()}})}return $}return _(O,x),Object.defineProperty(O.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),O.prototype._onIntersectionChange=function(F){this._isPaused=void 0===F.isIntersecting?0===F.intersectionRatio:!F.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},O.prototype.refreshRows=function(F,z,K){void 0===K&&(K=!1),this._isPaused?this._needsFullRefresh=!0:(K||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(F,z,this._rowCount))},O.prototype._renderRows=function(F,z){this._renderer.renderRows(F,z),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:F,end:z}),this._isNextRenderRedrawOnly=!0},O.prototype.resize=function(F,z){this._rowCount=z,this._fireOnCanvasResize()},O.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},O.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},O.prototype.dispose=function(){x.prototype.dispose.call(this)},O.prototype.setRenderer=function(F){var z=this;this._renderer.dispose(),this._renderer=F,this._renderer.onRequestRedraw(function(K){return z.refreshRows(K.start,K.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},O.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},O.prototype.clearTextureAtlas=function(){var F,z;null===(z=null===(F=this._renderer)||void 0===F?void 0:F.clearTextureAtlas)||void 0===z||z.call(F),this._fullRefresh()},O.prototype.setColors=function(F){this._renderer.setColors(F),this._fullRefresh()},O.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},O.prototype.onResize=function(F,z){this._renderer.onResize(F,z),this._fullRefresh()},O.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},O.prototype.onBlur=function(){this._renderer.onBlur()},O.prototype.onFocus=function(){this._renderer.onFocus()},O.prototype.onSelectionChanged=function(F,z,K){this._selectionState.start=F,this._selectionState.end=z,this._selectionState.columnSelectMode=K,this._renderer.onSelectionChanged(F,z,K)},O.prototype.onCursorMove=function(){this._renderer.onCursorMove()},O.prototype.clear=function(){this._renderer.clear()},I([D(3,R.IOptionsService),D(4,k.ICharSizeService),D(5,R.IBufferService)],O)}(v.Disposable);w.RenderService=E},9312:function(Z,w,N){var b,_=this&&this.__extends||(b=function(J,ee){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ae){$.__proto__=ae}||function($,ae){for(var se in ae)Object.prototype.hasOwnProperty.call(ae,se)&&($[se]=ae[se])})(J,ee)},function(j,J){if("function"!=typeof J&&null!==J)throw new TypeError("Class extends value "+String(J)+" is not a constructor or null");function ee(){this.constructor=j}b(j,J),j.prototype=null===J?Object.create(J):(ee.prototype=J.prototype,new ee)}),I=this&&this.__decorate||function(j,J,ee,$){var ae,se=arguments.length,ce=se<3?J:null===$?$=Object.getOwnPropertyDescriptor(J,ee):$;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ce=Reflect.decorate(j,J,ee,$);else for(var le=j.length-1;le>=0;le--)(ae=j[le])&&(ce=(se<3?ae(ce):se>3?ae(J,ee,ce):ae(J,ee))||ce);return se>3&&ce&&Object.defineProperty(J,ee,ce),ce},D=this&&this.__param||function(j,J){return function(ee,$){J(ee,$,j)}};Object.defineProperty(w,"__esModule",{value:!0}),w.SelectionService=void 0;var A=N(6114),S=N(456),v=N(511),g=N(8460),T=N(4725),R=N(2585),k=N(9806),E=N(9504),x=N(844),O=N(4841),F=String.fromCharCode(160),z=new RegExp(F,"g"),K=function(j){function J(ee,$,ae,se,ce,le,oe,Ae){var be=j.call(this)||this;return be._element=ee,be._screenElement=$,be._linkifier=ae,be._bufferService=se,be._coreService=ce,be._mouseService=le,be._optionsService=oe,be._renderService=Ae,be._dragScrollAmount=0,be._enabled=!0,be._workCell=new v.CellData,be._mouseDownTimeStamp=0,be._oldHasSelection=!1,be._oldSelectionStart=void 0,be._oldSelectionEnd=void 0,be._onLinuxMouseSelection=be.register(new g.EventEmitter),be._onRedrawRequest=be.register(new g.EventEmitter),be._onSelectionChange=be.register(new g.EventEmitter),be._onRequestScrollLines=be.register(new g.EventEmitter),be._mouseMoveListener=function(it){return be._onMouseMove(it)},be._mouseUpListener=function(it){return be._onMouseUp(it)},be._coreService.onUserInput(function(){be.hasSelection&&be.clearSelection()}),be._trimListener=be._bufferService.buffer.lines.onTrim(function(it){return be._onTrim(it)}),be.register(be._bufferService.buffers.onBufferActivate(function(it){return be._onBufferActivate(it)})),be.enable(),be._model=new S.SelectionModel(be._bufferService),be._activeSelectionMode=0,be}return _(J,j),Object.defineProperty(J.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),J.prototype.dispose=function(){this._removeMouseDownListeners()},J.prototype.reset=function(){this.clearSelection()},J.prototype.disable=function(){this.clearSelection(),this._enabled=!1},J.prototype.enable=function(){this._enabled=!0},Object.defineProperty(J.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"hasSelection",{get:function(){var $=this._model.finalSelectionStart,ae=this._model.finalSelectionEnd;return!(!$||!ae||$[0]===ae[0]&&$[1]===ae[1])},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"selectionText",{get:function(){var $=this._model.finalSelectionStart,ae=this._model.finalSelectionEnd;if(!$||!ae)return"";var se=this._bufferService.buffer,ce=[];if(3===this._activeSelectionMode){if($[0]===ae[0])return"";for(var le=$[1];le<=ae[1];le++){var oe=se.translateBufferLineToString(le,!0,$[0],ae[0]);ce.push(oe)}}else{for(ce.push(se.translateBufferLineToString($[1],!0,$[0],$[1]===ae[1]?ae[0]:void 0)),le=$[1]+1;le<=ae[1]-1;le++){var be=se.lines.get(le);oe=se.translateBufferLineToString(le,!0),be&&be.isWrapped?ce[ce.length-1]+=oe:ce.push(oe)}$[1]!==ae[1]&&(be=se.lines.get(ae[1]),oe=se.translateBufferLineToString(ae[1],!0,0,ae[0]),be&&be.isWrapped?ce[ce.length-1]+=oe:ce.push(oe))}return ce.map(function(it){return it.replace(z," ")}).join(A.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),J.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},J.prototype.refresh=function(ee){var $=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return $._refresh()})),A.isLinux&&ee&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},J.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},J.prototype._isClickInSelection=function(ee){var $=this._getMouseBufferCoords(ee),ae=this._model.finalSelectionStart,se=this._model.finalSelectionEnd;return!!(ae&&se&&$)&&this._areCoordsInSelection($,ae,se)},J.prototype._areCoordsInSelection=function(ee,$,ae){return ee[1]>$[1]&&ee[1]<ae[1]||$[1]===ae[1]&&ee[1]===$[1]&&ee[0]>=$[0]&&ee[0]<ae[0]||$[1]<ae[1]&&ee[1]===ae[1]&&ee[0]<ae[0]||$[1]<ae[1]&&ee[1]===$[1]&&ee[0]>=$[0]},J.prototype._selectWordAtCursor=function(ee,$){var ae,se,ce=null===(se=null===(ae=this._linkifier.currentLink)||void 0===ae?void 0:ae.link)||void 0===se?void 0:se.range;if(ce)return this._model.selectionStart=[ce.start.x-1,ce.start.y-1],this._model.selectionStartLength=(0,O.getRangeLength)(ce,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var le=this._getMouseBufferCoords(ee);return!!le&&(this._selectWordAt(le,$),this._model.selectionEnd=void 0,!0)},J.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},J.prototype.selectLines=function(ee,$){this._model.clearSelection(),ee=Math.max(ee,0),$=Math.min($,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,ee],this._model.selectionEnd=[this._bufferService.cols,$],this.refresh(),this._onSelectionChange.fire()},J.prototype._onTrim=function(ee){this._model.onTrim(ee)&&this.refresh()},J.prototype._getMouseBufferCoords=function(ee){var $=this._mouseService.getCoords(ee,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if($)return $[0]--,$[1]--,$[1]+=this._bufferService.buffer.ydisp,$},J.prototype._getMouseEventScrollAmount=function(ee){var $=(0,k.getCoordsRelativeToElement)(ee,this._screenElement)[1],ae=this._renderService.dimensions.canvasHeight;return $>=0&&$<=ae?0:($>ae&&($-=ae),$=Math.min(Math.max($,-50),50),($/=50)/Math.abs($)+Math.round(14*$))},J.prototype.shouldForceSelection=function(ee){return A.isMac?ee.altKey&&this._optionsService.options.macOptionClickForcesSelection:ee.shiftKey},J.prototype.onMouseDown=function(ee){if(this._mouseDownTimeStamp=ee.timeStamp,(2!==ee.button||!this.hasSelection)&&0===ee.button){if(!this._enabled){if(!this.shouldForceSelection(ee))return;ee.stopPropagation()}ee.preventDefault(),this._dragScrollAmount=0,this._enabled&&ee.shiftKey?this._onIncrementalClick(ee):1===ee.detail?this._onSingleClick(ee):2===ee.detail?this._onDoubleClick(ee):3===ee.detail&&this._onTripleClick(ee),this._addMouseDownListeners(),this.refresh(!0)}},J.prototype._addMouseDownListeners=function(){var ee=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return ee._dragScroll()},50)},J.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},J.prototype._onIncrementalClick=function(ee){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(ee))},J.prototype._onSingleClick=function(ee){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(ee)?3:0,this._model.selectionStart=this._getMouseBufferCoords(ee),this._model.selectionStart){this._model.selectionEnd=void 0;var $=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);$&&$.length!==this._model.selectionStart[0]&&0===$.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},J.prototype._onDoubleClick=function(ee){this._selectWordAtCursor(ee,!0)&&(this._activeSelectionMode=1)},J.prototype._onTripleClick=function(ee){var $=this._getMouseBufferCoords(ee);$&&(this._activeSelectionMode=2,this._selectLineAt($[1]))},J.prototype.shouldColumnSelect=function(ee){return ee.altKey&&!(A.isMac&&this._optionsService.options.macOptionClickForcesSelection)},J.prototype._onMouseMove=function(ee){if(ee.stopImmediatePropagation(),this._model.selectionStart){var $=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(ee),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[0]=this._model.selectionEnd[1]<this._model.selectionStart[1]?0:this._bufferService.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(ee),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var ae=this._bufferService.buffer;if(this._model.selectionEnd[1]<ae.lines.length){var se=ae.lines.get(this._model.selectionEnd[1]);se&&0===se.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}$&&$[0]===this._model.selectionEnd[0]&&$[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},J.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var ee=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(ee.ydisp+this._bufferService.rows,ee.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=ee.ydisp),this.refresh()}},J.prototype._onMouseUp=function(ee){var $=ee.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&$<500&&ee.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var ae=this._mouseService.getCoords(ee,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(ae&&void 0!==ae[0]&&void 0!==ae[1]){var se=(0,E.moveToCellSequence)(ae[0]-1,ae[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(se,!0)}}}else this._fireEventIfSelectionChanged()},J.prototype._fireEventIfSelectionChanged=function(){var ee=this._model.finalSelectionStart,$=this._model.finalSelectionEnd,ae=!(!ee||!$||ee[0]===$[0]&&ee[1]===$[1]);ae?ee&&$&&(this._oldSelectionStart&&this._oldSelectionEnd&&ee[0]===this._oldSelectionStart[0]&&ee[1]===this._oldSelectionStart[1]&&$[0]===this._oldSelectionEnd[0]&&$[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(ee,$,ae)):this._oldHasSelection&&this._fireOnSelectionChange(ee,$,ae)},J.prototype._fireOnSelectionChange=function(ee,$,ae){this._oldSelectionStart=ee,this._oldSelectionEnd=$,this._oldHasSelection=ae,this._onSelectionChange.fire()},J.prototype._onBufferActivate=function(ee){var $=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=ee.activeBuffer.lines.onTrim(function(ae){return $._onTrim(ae)})},J.prototype._convertViewportColToCharacterIndex=function(ee,$){for(var ae=$[0],se=0;$[0]>=se;se++){var ce=ee.loadCell(se,this._workCell).getChars().length;0===this._workCell.getWidth()?ae--:ce>1&&$[0]!==se&&(ae+=ce-1)}return ae},J.prototype.setSelection=function(ee,$,ae){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[ee,$],this._model.selectionStartLength=ae,this.refresh()},J.prototype.rightClickSelect=function(ee){this._isClickInSelection(ee)||(this._selectWordAtCursor(ee,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},J.prototype._getWordAt=function(ee,$,ae,se){if(void 0===ae&&(ae=!0),void 0===se&&(se=!0),!(ee[0]>=this._bufferService.cols)){var ce=this._bufferService.buffer,le=ce.lines.get(ee[1]);if(le){var oe=ce.translateBufferLineToString(ee[1],!1),Ae=this._convertViewportColToCharacterIndex(le,ee),be=Ae,it=ee[0]-Ae,qe=0,_t=0,yt=0,Ft=0;if(" "===oe.charAt(Ae)){for(;Ae>0&&" "===oe.charAt(Ae-1);)Ae--;for(;be<oe.length&&" "===oe.charAt(be+1);)be++}else{var xe=ee[0],De=ee[0];0===le.getWidth(xe)&&(qe++,xe--),2===le.getWidth(De)&&(_t++,De++);var je=le.getString(De).length;for(je>1&&(Ft+=je-1,be+=je-1);xe>0&&Ae>0&&!this._isCharWordSeparator(le.loadCell(xe-1,this._workCell));){le.loadCell(xe-1,this._workCell);var dt=this._workCell.getChars().length;0===this._workCell.getWidth()?(qe++,xe--):dt>1&&(yt+=dt-1,Ae-=dt-1),Ae--,xe--}for(;De<le.length&&be+1<oe.length&&!this._isCharWordSeparator(le.loadCell(De+1,this._workCell));){le.loadCell(De+1,this._workCell);var Ke=this._workCell.getChars().length;2===this._workCell.getWidth()?(_t++,De++):Ke>1&&(Ft+=Ke-1,be+=Ke-1),be++,De++}}be++;var Bt=Ae+it-qe+yt,xt=Math.min(this._bufferService.cols,be-Ae+qe+_t-yt-Ft);if($||""!==oe.slice(Ae,be).trim()){if(ae&&0===Bt&&32!==le.getCodePoint(0)){var vt=ce.lines.get(ee[1]-1);if(vt&&le.isWrapped&&32!==vt.getCodePoint(this._bufferService.cols-1)){var Qt=this._getWordAt([this._bufferService.cols-1,ee[1]-1],!1,!0,!1);if(Qt){var Ht=this._bufferService.cols-Qt.start;Bt-=Ht,xt+=Ht}}}if(se&&Bt+xt===this._bufferService.cols&&32!==le.getCodePoint(this._bufferService.cols-1)){var Ct=ce.lines.get(ee[1]+1);if(Ct&&Ct.isWrapped&&32!==Ct.getCodePoint(0)){var qt=this._getWordAt([0,ee[1]+1],!1,!1,!0);qt&&(xt+=qt.length)}}return{start:Bt,length:xt}}}}},J.prototype._selectWordAt=function(ee,$){var ae=this._getWordAt(ee,$);if(ae){for(;ae.start<0;)ae.start+=this._bufferService.cols,ee[1]--;this._model.selectionStart=[ae.start,ee[1]],this._model.selectionStartLength=ae.length}},J.prototype._selectToWordAt=function(ee){var $=this._getWordAt(ee,!0);if($){for(var ae=ee[1];$.start<0;)$.start+=this._bufferService.cols,ae--;if(!this._model.areSelectionValuesReversed())for(;$.start+$.length>this._bufferService.cols;)$.length-=this._bufferService.cols,ae++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?$.start:$.start+$.length,ae]}},J.prototype._isCharWordSeparator=function(ee){return 0!==ee.getWidth()&&this._optionsService.options.wordSeparator.indexOf(ee.getChars())>=0},J.prototype._selectLineAt=function(ee){var $=this._bufferService.buffer.getWrappedRangeForLine(ee);this._model.selectionStart=[0,$.first],this._model.selectionEnd=[this._bufferService.cols,$.last],this._model.selectionStartLength=0},I([D(3,R.IBufferService),D(4,R.ICoreService),D(5,T.IMouseService),D(6,R.IOptionsService),D(7,T.IRenderService)],J)}(x.Disposable);w.SelectionService=K},4725:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.ICharacterJoinerService=w.ISoundService=w.ISelectionService=w.IRenderService=w.IMouseService=w.ICoreBrowserService=w.ICharSizeService=void 0;var b=N(8343);w.ICharSizeService=(0,b.createDecorator)("CharSizeService"),w.ICoreBrowserService=(0,b.createDecorator)("CoreBrowserService"),w.IMouseService=(0,b.createDecorator)("MouseService"),w.IRenderService=(0,b.createDecorator)("RenderService"),w.ISelectionService=(0,b.createDecorator)("SelectionService"),w.ISoundService=(0,b.createDecorator)("SoundService"),w.ICharacterJoinerService=(0,b.createDecorator)("CharacterJoinerService")},357:function(Z,w,N){var b=this&&this.__decorate||function(A,S,v,g){var T,R=arguments.length,k=R<3?S:null===g?g=Object.getOwnPropertyDescriptor(S,v):g;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)k=Reflect.decorate(A,S,v,g);else for(var E=A.length-1;E>=0;E--)(T=A[E])&&(k=(R<3?T(k):R>3?T(S,v,k):T(S,v))||k);return R>3&&k&&Object.defineProperty(S,v,k),k},_=this&&this.__param||function(A,S){return function(v,g){S(v,g,A)}};Object.defineProperty(w,"__esModule",{value:!0}),w.SoundService=void 0;var I=N(2585),D=function(){function A(S){this._optionsService=S}return Object.defineProperty(A,"audioContext",{get:function(){if(!A._audioContext){var v=window.AudioContext||window.webkitAudioContext;if(!v)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;A._audioContext=new v}return A._audioContext},enumerable:!1,configurable:!0}),A.prototype.playBellSound=function(){var S=A.audioContext;if(S){var v=S.createBufferSource();S.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(g){v.buffer=g,v.connect(S.destination),v.start(0)})}},A.prototype._base64ToArrayBuffer=function(S){for(var v=window.atob(S),g=v.length,T=new Uint8Array(g),R=0;R<g;R++)T[R]=v.charCodeAt(R);return T.buffer},A.prototype._removeMimeType=function(S){return S.split(",")[1]},A=b([_(0,I.IOptionsService)],A)}();w.SoundService=D},6349:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.CircularList=void 0;var b=N(8460),_=function(){function I(D){this._maxLength=D,this.onDeleteEmitter=new b.EventEmitter,this.onInsertEmitter=new b.EventEmitter,this.onTrimEmitter=new b.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(I.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"maxLength",{get:function(){return this._maxLength},set:function(A){if(this._maxLength!==A){for(var S=new Array(A),v=0;v<Math.min(A,this.length);v++)S[v]=this._array[this._getCyclicIndex(v)];this._array=S,this._maxLength=A,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"length",{get:function(){return this._length},set:function(A){if(A>this._length)for(var S=this._length;S<A;S++)this._array[S]=void 0;this._length=A},enumerable:!1,configurable:!0}),I.prototype.get=function(D){return this._array[this._getCyclicIndex(D)]},I.prototype.set=function(D,A){this._array[this._getCyclicIndex(D)]=A},I.prototype.push=function(D){this._array[this._getCyclicIndex(this._length)]=D,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},I.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(I.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),I.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},I.prototype.splice=function(D,A){for(var S=[],v=2;v<arguments.length;v++)S[v-2]=arguments[v];if(A){for(var g=D;g<this._length-A;g++)this._array[this._getCyclicIndex(g)]=this._array[this._getCyclicIndex(g+A)];this._length-=A,this.onDeleteEmitter.fire({index:D,amount:A})}for(g=this._length-1;g>=D;g--)this._array[this._getCyclicIndex(g+S.length)]=this._array[this._getCyclicIndex(g)];for(g=0;g<S.length;g++)this._array[this._getCyclicIndex(D+g)]=S[g];if(S.length&&this.onInsertEmitter.fire({index:D,amount:S.length}),this._length+S.length>this._maxLength){var T=this._length+S.length-this._maxLength;this._startIndex+=T,this._length=this._maxLength,this.onTrimEmitter.fire(T)}else this._length+=S.length},I.prototype.trimStart=function(D){D>this._length&&(D=this._length),this._startIndex+=D,this._length-=D,this.onTrimEmitter.fire(D)},I.prototype.shiftElements=function(D,A,S){if(!(A<=0)){if(D<0||D>=this._length)throw new Error("start argument out of range");if(D+S<0)throw new Error("Cannot shift elements in list beyond index 0");if(S>0){for(var v=A-1;v>=0;v--)this.set(D+v+S,this.get(D+v));var g=D+A+S-this._length;if(g>0)for(this._length+=g;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(v=0;v<A;v++)this.set(D+v+S,this.get(D+v))}},I.prototype._getCyclicIndex=function(D){return(this._startIndex+D)%this._maxLength},I}();w.CircularList=_},1439:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.clone=void 0,w.clone=function N(b,_){if(void 0===_&&(_=5),"object"!=typeof b)return b;var I=Array.isArray(b)?[]:{};for(var D in b)I[D]=_<=1?b[D]:b[D]&&N(b[D],_-1);return I}},8969:function(Z,w,N){var b,_=this&&this.__extends||(b=function($,ae){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ce){se.__proto__=ce}||function(se,ce){for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&(se[le]=ce[le])})($,ae)},function(ee,$){if("function"!=typeof $&&null!==$)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");function ae(){this.constructor=ee}b(ee,$),ee.prototype=null===$?Object.create($):(ae.prototype=$.prototype,new ae)});Object.defineProperty(w,"__esModule",{value:!0}),w.CoreTerminal=void 0;var I=N(844),D=N(2585),A=N(4348),S=N(7866),v=N(744),g=N(7302),T=N(6975),R=N(8460),k=N(1753),E=N(3730),x=N(1480),O=N(7994),F=N(9282),z=N(5435),K=N(5981),j=!1,J=function(ee){function $(ae){var se=ee.call(this)||this;return se._onBinary=new R.EventEmitter,se._onData=new R.EventEmitter,se._onLineFeed=new R.EventEmitter,se._onResize=new R.EventEmitter,se._onScroll=new R.EventEmitter,se._instantiationService=new A.InstantiationService,se.optionsService=new g.OptionsService(ae),se._instantiationService.setService(D.IOptionsService,se.optionsService),se._bufferService=se.register(se._instantiationService.createInstance(v.BufferService)),se._instantiationService.setService(D.IBufferService,se._bufferService),se._logService=se._instantiationService.createInstance(S.LogService),se._instantiationService.setService(D.ILogService,se._logService),se.coreService=se.register(se._instantiationService.createInstance(T.CoreService,function(){return se.scrollToBottom()})),se._instantiationService.setService(D.ICoreService,se.coreService),se.coreMouseService=se._instantiationService.createInstance(k.CoreMouseService),se._instantiationService.setService(D.ICoreMouseService,se.coreMouseService),se._dirtyRowService=se._instantiationService.createInstance(E.DirtyRowService),se._instantiationService.setService(D.IDirtyRowService,se._dirtyRowService),se.unicodeService=se._instantiationService.createInstance(x.UnicodeService),se._instantiationService.setService(D.IUnicodeService,se.unicodeService),se._charsetService=se._instantiationService.createInstance(O.CharsetService),se._instantiationService.setService(D.ICharsetService,se._charsetService),se._inputHandler=new z.InputHandler(se._bufferService,se._charsetService,se.coreService,se._dirtyRowService,se._logService,se.optionsService,se.coreMouseService,se.unicodeService),se.register((0,R.forwardEvent)(se._inputHandler.onLineFeed,se._onLineFeed)),se.register(se._inputHandler),se.register((0,R.forwardEvent)(se._bufferService.onResize,se._onResize)),se.register((0,R.forwardEvent)(se.coreService.onData,se._onData)),se.register((0,R.forwardEvent)(se.coreService.onBinary,se._onBinary)),se.register(se.optionsService.onOptionChange(function(ce){return se._updateOptions(ce)})),se.register(se._bufferService.onScroll(function(ce){se._onScroll.fire({position:se._bufferService.buffer.ydisp,source:0}),se._dirtyRowService.markRangeDirty(se._bufferService.buffer.scrollTop,se._bufferService.buffer.scrollBottom)})),se.register(se._inputHandler.onScroll(function(ce){se._onScroll.fire({position:se._bufferService.buffer.ydisp,source:0}),se._dirtyRowService.markRangeDirty(se._bufferService.buffer.scrollTop,se._bufferService.buffer.scrollBottom)})),se._writeBuffer=new K.WriteBuffer(function(ce,le){return se._inputHandler.parse(ce,le)}),se}return _($,ee),Object.defineProperty($.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onScroll",{get:function(){var se=this;return this._onScrollApi||(this._onScrollApi=new R.EventEmitter,this.register(this._onScroll.event(function(ce){var le;null===(le=se._onScrollApi)||void 0===le||le.fire(ce.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"options",{get:function(){return this.optionsService.publicOptions},enumerable:!1,configurable:!0}),$.prototype.dispose=function(){var ae;this._isDisposed||(ee.prototype.dispose.call(this),null===(ae=this._windowsMode)||void 0===ae||ae.dispose(),this._windowsMode=void 0)},$.prototype.write=function(ae,se){this._writeBuffer.write(ae,se)},$.prototype.writeSync=function(ae,se){this._logService.logLevel<=D.LogLevelEnum.WARN&&!j&&(this._logService.warn("writeSync is unreliable and will be removed soon."),j=!0),this._writeBuffer.writeSync(ae,se)},$.prototype.resize=function(ae,se){isNaN(ae)||isNaN(se)||(ae=Math.max(ae,v.MINIMUM_COLS),se=Math.max(se,v.MINIMUM_ROWS),this._bufferService.resize(ae,se))},$.prototype.scroll=function(ae,se){void 0===se&&(se=!1),this._bufferService.scroll(ae,se)},$.prototype.scrollLines=function(ae,se,ce){this._bufferService.scrollLines(ae,se,ce)},$.prototype.scrollPages=function(ae){this._bufferService.scrollPages(ae)},$.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},$.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},$.prototype.scrollToLine=function(ae){this._bufferService.scrollToLine(ae)},$.prototype.registerEscHandler=function(ae,se){return this._inputHandler.registerEscHandler(ae,se)},$.prototype.registerDcsHandler=function(ae,se){return this._inputHandler.registerDcsHandler(ae,se)},$.prototype.registerCsiHandler=function(ae,se){return this._inputHandler.registerCsiHandler(ae,se)},$.prototype.registerOscHandler=function(ae,se){return this._inputHandler.registerOscHandler(ae,se)},$.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},$.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},$.prototype._updateOptions=function(ae){var se;switch(ae){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():(null===(se=this._windowsMode)||void 0===se||se.dispose(),this._windowsMode=void 0)}},$.prototype._enableWindowsMode=function(){var ae=this;if(!this._windowsMode){var se=[];se.push(this.onLineFeed(F.updateWindowsModeWrappedState.bind(null,this._bufferService))),se.push(this.registerCsiHandler({final:"H"},function(){return(0,F.updateWindowsModeWrappedState)(ae._bufferService),!1})),this._windowsMode={dispose:function(){for(var le=0,oe=se;le<oe.length;le++)oe[le].dispose()}}}},$}(I.Disposable);w.CoreTerminal=J},8460:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.forwardEvent=w.EventEmitter=void 0;var N=function(){function b(){this._listeners=[],this._disposed=!1}return Object.defineProperty(b.prototype,"event",{get:function(){var I=this;return this._event||(this._event=function(D){return I._listeners.push(D),{dispose:function(){if(!I._disposed)for(var S=0;S<I._listeners.length;S++)if(I._listeners[S]===D)return void I._listeners.splice(S,1)}}}),this._event},enumerable:!1,configurable:!0}),b.prototype.fire=function(_,I){for(var D=[],A=0;A<this._listeners.length;A++)D.push(this._listeners[A]);for(A=0;A<D.length;A++)D[A].call(void 0,_,I)},b.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},b}();w.EventEmitter=N,w.forwardEvent=function(b,_){return b(function(I){return _.fire(I)})}},5435:function(Z,w,N){var b,_=this&&this.__extends||(b=function(ce,le){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,Ae){oe.__proto__=Ae}||function(oe,Ae){for(var be in Ae)Object.prototype.hasOwnProperty.call(Ae,be)&&(oe[be]=Ae[be])})(ce,le)},function(se,ce){if("function"!=typeof ce&&null!==ce)throw new TypeError("Class extends value "+String(ce)+" is not a constructor or null");function le(){this.constructor=se}b(se,ce),se.prototype=null===ce?Object.create(ce):(le.prototype=ce.prototype,new le)});Object.defineProperty(w,"__esModule",{value:!0}),w.InputHandler=w.WindowsOptionsReportType=void 0;var I,se,D=N(2584),A=N(7116),S=N(2015),v=N(844),g=N(8273),T=N(482),R=N(8437),k=N(8460),E=N(643),x=N(511),O=N(3734),F=N(2585),z=N(6242),K=N(6351),j={"(":0,")":1,"*":2,"+":3,"-":1,".":2},J=131072;function ee(se,ce){if(se>24)return ce.setWinLines||!1;switch(se){case 1:return!!ce.restoreWin;case 2:return!!ce.minimizeWin;case 3:return!!ce.setWinPosition;case 4:return!!ce.setWinSizePixels;case 5:return!!ce.raiseWin;case 6:return!!ce.lowerWin;case 7:return!!ce.refreshWin;case 8:return!!ce.setWinSizeChars;case 9:return!!ce.maximizeWin;case 10:return!!ce.fullscreenWin;case 11:return!!ce.getWinState;case 13:return!!ce.getWinPosition;case 14:return!!ce.getWinSizePixels;case 15:return!!ce.getScreenSizePixels;case 16:return!!ce.getCellSizePixels;case 18:return!!ce.getWinSizeChars;case 19:return!!ce.getScreenSizeChars;case 20:return!!ce.getIconTitle;case 21:return!!ce.getWinTitle;case 22:return!!ce.pushTitle;case 23:return!!ce.popTitle;case 24:return!!ce.setWinLines}return!1}(se=I=w.WindowsOptionsReportType||(w.WindowsOptionsReportType={}))[se.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",se[se.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";var $=function(){function se(ce,le,oe,Ae){this._bufferService=ce,this._coreService=le,this._logService=oe,this._optionsService=Ae,this._data=new Uint32Array(0)}return se.prototype.hook=function(ce){this._data=new Uint32Array(0)},se.prototype.put=function(ce,le,oe){this._data=(0,g.concat)(this._data,ce.subarray(le,oe))},se.prototype.unhook=function(ce){if(!ce)return this._data=new Uint32Array(0),!0;var le=(0,T.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),le){case'"q':this._coreService.triggerDataEvent(D.C0.ESC+'P1$r0"q'+D.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(D.C0.ESC+'P1$r61;1"p'+D.C0.ESC+"\\");break;case"r":this._coreService.triggerDataEvent(D.C0.ESC+"P1$r"+(this._bufferService.buffer.scrollTop+1)+";"+(this._bufferService.buffer.scrollBottom+1)+"r"+D.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(D.C0.ESC+"P1$r0m"+D.C0.ESC+"\\");break;case" q":var Ae={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];this._coreService.triggerDataEvent(D.C0.ESC+"P1$r"+(Ae-=this._optionsService.options.cursorBlink?1:0)+" q"+D.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",le),this._coreService.triggerDataEvent(D.C0.ESC+"P0$r"+D.C0.ESC+"\\")}return!0},se}(),ae=function(se){function ce(le,oe,Ae,be,it,qe,_t,yt,Ft){void 0===Ft&&(Ft=new S.EscapeSequenceParser);var xe=se.call(this)||this;xe._bufferService=le,xe._charsetService=oe,xe._coreService=Ae,xe._dirtyRowService=be,xe._logService=it,xe._optionsService=qe,xe._coreMouseService=_t,xe._unicodeService=yt,xe._parser=Ft,xe._parseBuffer=new Uint32Array(4096),xe._stringDecoder=new T.StringToUtf32,xe._utf8Decoder=new T.Utf8ToUtf32,xe._workCell=new x.CellData,xe._windowTitle="",xe._iconName="",xe._windowTitleStack=[],xe._iconNameStack=[],xe._curAttrData=R.DEFAULT_ATTR_DATA.clone(),xe._eraseAttrDataInternal=R.DEFAULT_ATTR_DATA.clone(),xe._onRequestBell=new k.EventEmitter,xe._onRequestRefreshRows=new k.EventEmitter,xe._onRequestReset=new k.EventEmitter,xe._onRequestSendFocus=new k.EventEmitter,xe._onRequestSyncScrollBar=new k.EventEmitter,xe._onRequestWindowsOptionsReport=new k.EventEmitter,xe._onA11yChar=new k.EventEmitter,xe._onA11yTab=new k.EventEmitter,xe._onCursorMove=new k.EventEmitter,xe._onLineFeed=new k.EventEmitter,xe._onScroll=new k.EventEmitter,xe._onTitleChange=new k.EventEmitter,xe._onAnsiColorChange=new k.EventEmitter,xe._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},xe.register(xe._parser),xe._activeBuffer=xe._bufferService.buffer,xe.register(xe._bufferService.buffers.onBufferActivate(function(Ke){return xe._activeBuffer=Ke.activeBuffer})),xe._parser.setCsiHandlerFallback(function(Ke,Bt){xe._logService.debug("Unknown CSI code: ",{identifier:xe._parser.identToString(Ke),params:Bt.toArray()})}),xe._parser.setEscHandlerFallback(function(Ke){xe._logService.debug("Unknown ESC code: ",{identifier:xe._parser.identToString(Ke)})}),xe._parser.setExecuteHandlerFallback(function(Ke){xe._logService.debug("Unknown EXECUTE code: ",{code:Ke})}),xe._parser.setOscHandlerFallback(function(Ke,Bt,xt){xe._logService.debug("Unknown OSC code: ",{identifier:Ke,action:Bt,data:xt})}),xe._parser.setDcsHandlerFallback(function(Ke,Bt,xt){"HOOK"===Bt&&(xt=xt.toArray()),xe._logService.debug("Unknown DCS code: ",{identifier:xe._parser.identToString(Ke),action:Bt,payload:xt})}),xe._parser.setPrintHandler(function(Ke,Bt,xt){return xe.print(Ke,Bt,xt)}),xe._parser.registerCsiHandler({final:"@"},function(Ke){return xe.insertChars(Ke)}),xe._parser.registerCsiHandler({intermediates:" ",final:"@"},function(Ke){return xe.scrollLeft(Ke)}),xe._parser.registerCsiHandler({final:"A"},function(Ke){return xe.cursorUp(Ke)}),xe._parser.registerCsiHandler({intermediates:" ",final:"A"},function(Ke){return xe.scrollRight(Ke)}),xe._parser.registerCsiHandler({final:"B"},function(Ke){return xe.cursorDown(Ke)}),xe._parser.registerCsiHandler({final:"C"},function(Ke){return xe.cursorForward(Ke)}),xe._parser.registerCsiHandler({final:"D"},function(Ke){return xe.cursorBackward(Ke)}),xe._parser.registerCsiHandler({final:"E"},function(Ke){return xe.cursorNextLine(Ke)}),xe._parser.registerCsiHandler({final:"F"},function(Ke){return xe.cursorPrecedingLine(Ke)}),xe._parser.registerCsiHandler({final:"G"},function(Ke){return xe.cursorCharAbsolute(Ke)}),xe._parser.registerCsiHandler({final:"H"},function(Ke){return xe.cursorPosition(Ke)}),xe._parser.registerCsiHandler({final:"I"},function(Ke){return xe.cursorForwardTab(Ke)}),xe._parser.registerCsiHandler({final:"J"},function(Ke){return xe.eraseInDisplay(Ke)}),xe._parser.registerCsiHandler({prefix:"?",final:"J"},function(Ke){return xe.eraseInDisplay(Ke)}),xe._parser.registerCsiHandler({final:"K"},function(Ke){return xe.eraseInLine(Ke)}),xe._parser.registerCsiHandler({prefix:"?",final:"K"},function(Ke){return xe.eraseInLine(Ke)}),xe._parser.registerCsiHandler({final:"L"},function(Ke){return xe.insertLines(Ke)}),xe._parser.registerCsiHandler({final:"M"},function(Ke){return xe.deleteLines(Ke)}),xe._parser.registerCsiHandler({final:"P"},function(Ke){return xe.deleteChars(Ke)}),xe._parser.registerCsiHandler({final:"S"},function(Ke){return xe.scrollUp(Ke)}),xe._parser.registerCsiHandler({final:"T"},function(Ke){return xe.scrollDown(Ke)}),xe._parser.registerCsiHandler({final:"X"},function(Ke){return xe.eraseChars(Ke)}),xe._parser.registerCsiHandler({final:"Z"},function(Ke){return xe.cursorBackwardTab(Ke)}),xe._parser.registerCsiHandler({final:"`"},function(Ke){return xe.charPosAbsolute(Ke)}),xe._parser.registerCsiHandler({final:"a"},function(Ke){return xe.hPositionRelative(Ke)}),xe._parser.registerCsiHandler({final:"b"},function(Ke){return xe.repeatPrecedingCharacter(Ke)}),xe._parser.registerCsiHandler({final:"c"},function(Ke){return xe.sendDeviceAttributesPrimary(Ke)}),xe._parser.registerCsiHandler({prefix:">",final:"c"},function(Ke){return xe.sendDeviceAttributesSecondary(Ke)}),xe._parser.registerCsiHandler({final:"d"},function(Ke){return xe.linePosAbsolute(Ke)}),xe._parser.registerCsiHandler({final:"e"},function(Ke){return xe.vPositionRelative(Ke)}),xe._parser.registerCsiHandler({final:"f"},function(Ke){return xe.hVPosition(Ke)}),xe._parser.registerCsiHandler({final:"g"},function(Ke){return xe.tabClear(Ke)}),xe._parser.registerCsiHandler({final:"h"},function(Ke){return xe.setMode(Ke)}),xe._parser.registerCsiHandler({prefix:"?",final:"h"},function(Ke){return xe.setModePrivate(Ke)}),xe._parser.registerCsiHandler({final:"l"},function(Ke){return xe.resetMode(Ke)}),xe._parser.registerCsiHandler({prefix:"?",final:"l"},function(Ke){return xe.resetModePrivate(Ke)}),xe._parser.registerCsiHandler({final:"m"},function(Ke){return xe.charAttributes(Ke)}),xe._parser.registerCsiHandler({final:"n"},function(Ke){return xe.deviceStatus(Ke)}),xe._parser.registerCsiHandler({prefix:"?",final:"n"},function(Ke){return xe.deviceStatusPrivate(Ke)}),xe._parser.registerCsiHandler({intermediates:"!",final:"p"},function(Ke){return xe.softReset(Ke)}),xe._parser.registerCsiHandler({intermediates:" ",final:"q"},function(Ke){return xe.setCursorStyle(Ke)}),xe._parser.registerCsiHandler({final:"r"},function(Ke){return xe.setScrollRegion(Ke)}),xe._parser.registerCsiHandler({final:"s"},function(Ke){return xe.saveCursor(Ke)}),xe._parser.registerCsiHandler({final:"t"},function(Ke){return xe.windowOptions(Ke)}),xe._parser.registerCsiHandler({final:"u"},function(Ke){return xe.restoreCursor(Ke)}),xe._parser.registerCsiHandler({intermediates:"'",final:"}"},function(Ke){return xe.insertColumns(Ke)}),xe._parser.registerCsiHandler({intermediates:"'",final:"~"},function(Ke){return xe.deleteColumns(Ke)}),xe._parser.setExecuteHandler(D.C0.BEL,function(){return xe.bell()}),xe._parser.setExecuteHandler(D.C0.LF,function(){return xe.lineFeed()}),xe._parser.setExecuteHandler(D.C0.VT,function(){return xe.lineFeed()}),xe._parser.setExecuteHandler(D.C0.FF,function(){return xe.lineFeed()}),xe._parser.setExecuteHandler(D.C0.CR,function(){return xe.carriageReturn()}),xe._parser.setExecuteHandler(D.C0.BS,function(){return xe.backspace()}),xe._parser.setExecuteHandler(D.C0.HT,function(){return xe.tab()}),xe._parser.setExecuteHandler(D.C0.SO,function(){return xe.shiftOut()}),xe._parser.setExecuteHandler(D.C0.SI,function(){return xe.shiftIn()}),xe._parser.setExecuteHandler(D.C1.IND,function(){return xe.index()}),xe._parser.setExecuteHandler(D.C1.NEL,function(){return xe.nextLine()}),xe._parser.setExecuteHandler(D.C1.HTS,function(){return xe.tabSet()}),xe._parser.registerOscHandler(0,new z.OscHandler(function(Ke){return xe.setTitle(Ke),xe.setIconName(Ke),!0})),xe._parser.registerOscHandler(1,new z.OscHandler(function(Ke){return xe.setIconName(Ke)})),xe._parser.registerOscHandler(2,new z.OscHandler(function(Ke){return xe.setTitle(Ke)})),xe._parser.registerOscHandler(4,new z.OscHandler(function(Ke){return xe.setAnsiColor(Ke)})),xe._parser.registerEscHandler({final:"7"},function(){return xe.saveCursor()}),xe._parser.registerEscHandler({final:"8"},function(){return xe.restoreCursor()}),xe._parser.registerEscHandler({final:"D"},function(){return xe.index()}),xe._parser.registerEscHandler({final:"E"},function(){return xe.nextLine()}),xe._parser.registerEscHandler({final:"H"},function(){return xe.tabSet()}),xe._parser.registerEscHandler({final:"M"},function(){return xe.reverseIndex()}),xe._parser.registerEscHandler({final:"="},function(){return xe.keypadApplicationMode()}),xe._parser.registerEscHandler({final:">"},function(){return xe.keypadNumericMode()}),xe._parser.registerEscHandler({final:"c"},function(){return xe.fullReset()}),xe._parser.registerEscHandler({final:"n"},function(){return xe.setgLevel(2)}),xe._parser.registerEscHandler({final:"o"},function(){return xe.setgLevel(3)}),xe._parser.registerEscHandler({final:"|"},function(){return xe.setgLevel(3)}),xe._parser.registerEscHandler({final:"}"},function(){return xe.setgLevel(2)}),xe._parser.registerEscHandler({final:"~"},function(){return xe.setgLevel(1)}),xe._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return xe.selectDefaultCharset()}),xe._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return xe.selectDefaultCharset()});var De=function(Bt){je._parser.registerEscHandler({intermediates:"(",final:Bt},function(){return xe.selectCharset("("+Bt)}),je._parser.registerEscHandler({intermediates:")",final:Bt},function(){return xe.selectCharset(")"+Bt)}),je._parser.registerEscHandler({intermediates:"*",final:Bt},function(){return xe.selectCharset("*"+Bt)}),je._parser.registerEscHandler({intermediates:"+",final:Bt},function(){return xe.selectCharset("+"+Bt)}),je._parser.registerEscHandler({intermediates:"-",final:Bt},function(){return xe.selectCharset("-"+Bt)}),je._parser.registerEscHandler({intermediates:".",final:Bt},function(){return xe.selectCharset("."+Bt)}),je._parser.registerEscHandler({intermediates:"/",final:Bt},function(){return xe.selectCharset("/"+Bt)})},je=this;for(var dt in A.CHARSETS)De(dt);return xe._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return xe.screenAlignmentPattern()}),xe._parser.setErrorHandler(function(Ke){return xe._logService.error("Parsing error: ",Ke),Ke}),xe._parser.registerDcsHandler({intermediates:"$",final:"q"},new $(xe._bufferService,xe._coreService,xe._logService,xe._optionsService)),xe}return _(ce,se),Object.defineProperty(ce.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onAnsiColorChange",{get:function(){return this._onAnsiColorChange.event},enumerable:!1,configurable:!0}),ce.prototype.dispose=function(){se.prototype.dispose.call(this)},ce.prototype._preserveStack=function(le,oe,Ae,be){this._parseStack.paused=!0,this._parseStack.cursorStartX=le,this._parseStack.cursorStartY=oe,this._parseStack.decodedLength=Ae,this._parseStack.position=be},ce.prototype._logSlowResolvingAsync=function(le){this._logService.logLevel<=F.LogLevelEnum.WARN&&Promise.race([le,new Promise(function(oe,Ae){return setTimeout(function(){return Ae("#SLOW_TIMEOUT")},5e3)})]).catch(function(oe){if("#SLOW_TIMEOUT"!==oe)throw oe;console.warn("async parser handler taking longer than 5000 ms")})},ce.prototype.parse=function(le,oe){var Ae,be=this._activeBuffer.x,it=this._activeBuffer.y,qe=0,_t=this._parseStack.paused;if(_t){if(Ae=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,oe))return this._logSlowResolvingAsync(Ae),Ae;be=this._parseStack.cursorStartX,it=this._parseStack.cursorStartY,this._parseStack.paused=!1,le.length>J&&(qe=this._parseStack.position+J)}if(this._logService.debug("parsing data",le),this._parseBuffer.length<le.length&&this._parseBuffer.length<J&&(this._parseBuffer=new Uint32Array(Math.min(le.length,J))),_t||this._dirtyRowService.clearRange(),le.length>J)for(var yt=qe;yt<le.length;yt+=J){var Ft=yt+J<le.length?yt+J:le.length,xe="string"==typeof le?this._stringDecoder.decode(le.substring(yt,Ft),this._parseBuffer):this._utf8Decoder.decode(le.subarray(yt,Ft),this._parseBuffer);if(Ae=this._parser.parse(this._parseBuffer,xe))return this._preserveStack(be,it,xe,yt),this._logSlowResolvingAsync(Ae),Ae}else if(!_t&&(xe="string"==typeof le?this._stringDecoder.decode(le,this._parseBuffer):this._utf8Decoder.decode(le,this._parseBuffer),Ae=this._parser.parse(this._parseBuffer,xe)))return this._preserveStack(be,it,xe,0),this._logSlowResolvingAsync(Ae),Ae;this._activeBuffer.x===be&&this._activeBuffer.y===it||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},ce.prototype.print=function(le,oe,Ae){var be,it,qe=this._charsetService.charset,_t=this._optionsService.options.screenReaderMode,yt=this._bufferService.cols,Ft=this._coreService.decPrivateModes.wraparound,xe=this._coreService.modes.insertMode,De=this._curAttrData,je=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowService.markDirty(this._activeBuffer.y),this._activeBuffer.x&&Ae-oe>0&&2===je.getWidth(this._activeBuffer.x-1)&&je.setCellFromCodePoint(this._activeBuffer.x-1,0,1,De.fg,De.bg,De.extended);for(var dt=oe;dt<Ae;++dt){if(it=this._unicodeService.wcwidth(be=le[dt]),be<127&&qe){var Ke=qe[String.fromCharCode(be)];Ke&&(be=Ke.charCodeAt(0))}if(_t&&this._onA11yChar.fire((0,T.stringFromCodePoint)(be)),it||!this._activeBuffer.x){if(this._activeBuffer.x+it-1>=yt)if(Ft){for(;this._activeBuffer.x<yt;)je.setCellFromCodePoint(this._activeBuffer.x++,0,1,De.fg,De.bg,De.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),je=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=yt-1,2===it)continue;if(xe&&(je.insertCells(this._activeBuffer.x,it,this._activeBuffer.getNullCell(De),De),2===je.getWidth(yt-1)&&je.setCellFromCodePoint(yt-1,E.NULL_CELL_CODE,E.NULL_CELL_WIDTH,De.fg,De.bg,De.extended)),je.setCellFromCodePoint(this._activeBuffer.x++,be,it,De.fg,De.bg,De.extended),it>0)for(;--it;)je.setCellFromCodePoint(this._activeBuffer.x++,0,0,De.fg,De.bg,De.extended)}else je.getWidth(this._activeBuffer.x-1)?je.addCodepointToCell(this._activeBuffer.x-1,be):je.addCodepointToCell(this._activeBuffer.x-2,be)}Ae-oe>0&&(je.loadCell(this._activeBuffer.x-1,this._workCell),this._parser.precedingCodepoint=2===this._workCell.getWidth()||this._workCell.getCode()>65535?0:this._workCell.isCombined()?this._workCell.getChars().charCodeAt(0):this._workCell.content),this._activeBuffer.x<yt&&Ae-oe>0&&0===je.getWidth(this._activeBuffer.x)&&!je.hasContent(this._activeBuffer.x)&&je.setCellFromCodePoint(this._activeBuffer.x,0,1,De.fg,De.bg,De.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},ce.prototype.registerCsiHandler=function(le,oe){var Ae=this;return this._parser.registerCsiHandler(le,"t"!==le.final||le.prefix||le.intermediates?oe:function(be){return!ee(be.params[0],Ae._optionsService.options.windowOptions)||oe(be)})},ce.prototype.registerDcsHandler=function(le,oe){return this._parser.registerDcsHandler(le,new K.DcsHandler(oe))},ce.prototype.registerEscHandler=function(le,oe){return this._parser.registerEscHandler(le,oe)},ce.prototype.registerOscHandler=function(le,oe){return this._parser.registerOscHandler(le,new z.OscHandler(oe))},ce.prototype.bell=function(){return this._onRequestBell.fire(),!0},ce.prototype.lineFeed=function(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.options.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0},ce.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},ce.prototype.backspace=function(){var le;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(le=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===le?void 0:le.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var oe=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);oe.hasWidth(this._activeBuffer.x)&&!oe.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},ce.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var le=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-le),!0},ce.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},ce.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},ce.prototype._restrictCursor=function(le){void 0===le&&(le=this._bufferService.cols-1),this._activeBuffer.x=Math.min(le,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)},ce.prototype._setCursor=function(le,oe){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=le,this._activeBuffer.y=this._activeBuffer.scrollTop+oe):(this._activeBuffer.x=le,this._activeBuffer.y=oe),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},ce.prototype._moveCursor=function(le,oe){this._restrictCursor(),this._setCursor(this._activeBuffer.x+le,this._activeBuffer.y+oe)},ce.prototype.cursorUp=function(le){var oe=this._activeBuffer.y-this._activeBuffer.scrollTop;return this._moveCursor(0,oe>=0?-Math.min(oe,le.params[0]||1):-(le.params[0]||1)),!0},ce.prototype.cursorDown=function(le){var oe=this._activeBuffer.scrollBottom-this._activeBuffer.y;return this._moveCursor(0,oe>=0?Math.min(oe,le.params[0]||1):le.params[0]||1),!0},ce.prototype.cursorForward=function(le){return this._moveCursor(le.params[0]||1,0),!0},ce.prototype.cursorBackward=function(le){return this._moveCursor(-(le.params[0]||1),0),!0},ce.prototype.cursorNextLine=function(le){return this.cursorDown(le),this._activeBuffer.x=0,!0},ce.prototype.cursorPrecedingLine=function(le){return this.cursorUp(le),this._activeBuffer.x=0,!0},ce.prototype.cursorCharAbsolute=function(le){return this._setCursor((le.params[0]||1)-1,this._activeBuffer.y),!0},ce.prototype.cursorPosition=function(le){return this._setCursor(le.length>=2?(le.params[1]||1)-1:0,(le.params[0]||1)-1),!0},ce.prototype.charPosAbsolute=function(le){return this._setCursor((le.params[0]||1)-1,this._activeBuffer.y),!0},ce.prototype.hPositionRelative=function(le){return this._moveCursor(le.params[0]||1,0),!0},ce.prototype.linePosAbsolute=function(le){return this._setCursor(this._activeBuffer.x,(le.params[0]||1)-1),!0},ce.prototype.vPositionRelative=function(le){return this._moveCursor(0,le.params[0]||1),!0},ce.prototype.hVPosition=function(le){return this.cursorPosition(le),!0},ce.prototype.tabClear=function(le){var oe=le.params[0];return 0===oe?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===oe&&(this._activeBuffer.tabs={}),!0},ce.prototype.cursorForwardTab=function(le){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var oe=le.params[0]||1;oe--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},ce.prototype.cursorBackwardTab=function(le){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var oe=le.params[0]||1;oe--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},ce.prototype._eraseInBufferLine=function(le,oe,Ae,be){void 0===be&&(be=!1);var it=this._activeBuffer.lines.get(this._activeBuffer.ybase+le);it.replaceCells(oe,Ae,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),be&&(it.isWrapped=!1)},ce.prototype._resetBufferLine=function(le){var oe=this._activeBuffer.lines.get(this._activeBuffer.ybase+le);oe.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),oe.isWrapped=!1},ce.prototype.eraseInDisplay=function(le){var oe;switch(this._restrictCursor(this._bufferService.cols),le.params[0]){case 0:for(this._dirtyRowService.markDirty(oe=this._activeBuffer.y),this._eraseInBufferLine(oe++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);oe<this._bufferService.rows;oe++)this._resetBufferLine(oe);this._dirtyRowService.markDirty(oe);break;case 1:for(this._dirtyRowService.markDirty(oe=this._activeBuffer.y),this._eraseInBufferLine(oe,0,this._activeBuffer.x+1,!0),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(oe+1).isWrapped=!1);oe--;)this._resetBufferLine(oe);this._dirtyRowService.markDirty(0);break;case 2:for(this._dirtyRowService.markDirty((oe=this._bufferService.rows)-1);oe--;)this._resetBufferLine(oe);this._dirtyRowService.markDirty(0);break;case 3:var Ae=this._activeBuffer.lines.length-this._bufferService.rows;Ae>0&&(this._activeBuffer.lines.trimStart(Ae),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-Ae,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-Ae,0),this._onScroll.fire(0))}return!0},ce.prototype.eraseInLine=function(le){switch(this._restrictCursor(this._bufferService.cols),le.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0},ce.prototype.insertLines=function(le){this._restrictCursor();var oe=le.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var Ae=this._activeBuffer.ybase+this._activeBuffer.y,it=this._bufferService.rows-1+this._activeBuffer.ybase-(this._bufferService.rows-1-this._activeBuffer.scrollBottom)+1;oe--;)this._activeBuffer.lines.splice(it-1,1),this._activeBuffer.lines.splice(Ae,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},ce.prototype.deleteLines=function(le){this._restrictCursor();var oe=le.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var Ae,be=this._activeBuffer.ybase+this._activeBuffer.y;for(Ae=this._bufferService.rows-1+this._activeBuffer.ybase-(Ae=this._bufferService.rows-1-this._activeBuffer.scrollBottom);oe--;)this._activeBuffer.lines.splice(be,1),this._activeBuffer.lines.splice(Ae,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},ce.prototype.insertChars=function(le){this._restrictCursor();var oe=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return oe&&(oe.insertCells(this._activeBuffer.x,le.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},ce.prototype.deleteChars=function(le){this._restrictCursor();var oe=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return oe&&(oe.deleteCells(this._activeBuffer.x,le.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},ce.prototype.scrollUp=function(le){for(var oe=le.params[0]||1;oe--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},ce.prototype.scrollDown=function(le){for(var oe=le.params[0]||1;oe--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(R.DEFAULT_ATTR_DATA));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},ce.prototype.scrollLeft=function(le){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var oe=le.params[0]||1,Ae=this._activeBuffer.scrollTop;Ae<=this._activeBuffer.scrollBottom;++Ae){var be=this._activeBuffer.lines.get(this._activeBuffer.ybase+Ae);be.deleteCells(0,oe,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),be.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},ce.prototype.scrollRight=function(le){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var oe=le.params[0]||1,Ae=this._activeBuffer.scrollTop;Ae<=this._activeBuffer.scrollBottom;++Ae){var be=this._activeBuffer.lines.get(this._activeBuffer.ybase+Ae);be.insertCells(0,oe,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),be.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},ce.prototype.insertColumns=function(le){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var oe=le.params[0]||1,Ae=this._activeBuffer.scrollTop;Ae<=this._activeBuffer.scrollBottom;++Ae){var be=this._activeBuffer.lines.get(this._activeBuffer.ybase+Ae);be.insertCells(this._activeBuffer.x,oe,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),be.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},ce.prototype.deleteColumns=function(le){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var oe=le.params[0]||1,Ae=this._activeBuffer.scrollTop;Ae<=this._activeBuffer.scrollBottom;++Ae){var be=this._activeBuffer.lines.get(this._activeBuffer.ybase+Ae);be.deleteCells(this._activeBuffer.x,oe,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),be.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},ce.prototype.eraseChars=function(le){this._restrictCursor();var oe=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return oe&&(oe.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(le.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},ce.prototype.repeatPrecedingCharacter=function(le){if(!this._parser.precedingCodepoint)return!0;for(var oe=le.params[0]||1,Ae=new Uint32Array(oe),be=0;be<oe;++be)Ae[be]=this._parser.precedingCodepoint;return this.print(Ae,0,Ae.length),!0},ce.prototype.sendDeviceAttributesPrimary=function(le){return le.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(D.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(D.C0.ESC+"[?6c")),!0},ce.prototype.sendDeviceAttributesSecondary=function(le){return le.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(D.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(D.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(le.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(D.C0.ESC+"[>83;40003;0c")),!0},ce.prototype._is=function(le){return 0===(this._optionsService.options.termName+"").indexOf(le)},ce.prototype.setMode=function(le){for(var oe=0;oe<le.length;oe++)4===le.params[oe]&&(this._coreService.modes.insertMode=!0);return!0},ce.prototype.setModePrivate=function(le){for(var oe=0;oe<le.length;oe++)switch(le.params[oe]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,A.DEFAULT_CHARSET),this._charsetService.setgCharset(1,A.DEFAULT_CHARSET),this._charsetService.setgCharset(2,A.DEFAULT_CHARSET),this._charsetService.setgCharset(3,A.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0},ce.prototype.resetMode=function(le){for(var oe=0;oe<le.length;oe++)4===le.params[oe]&&(this._coreService.modes.insertMode=!1);return!0},ce.prototype.resetModePrivate=function(le){for(var oe=0;oe<le.length;oe++)switch(le.params[oe]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),1049===le.params[oe]&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0},ce.prototype._updateAttrColor=function(le,oe,Ae,be,it){return 2===oe?(le|=50331648,le&=-16777216,le|=O.AttributeData.fromColorRGB([Ae,be,it])):5===oe&&(le&=-50331904,le|=33554432|255&Ae),le},ce.prototype._extractColor=function(le,oe,Ae){var be=[0,0,-1,0,0,0],it=0,qe=0;do{if(be[qe+it]=le.params[oe+qe],le.hasSubParams(oe+qe)){var _t=le.getSubParams(oe+qe),yt=0;do{5===be[1]&&(it=1),be[qe+yt+1+it]=_t[yt]}while(++yt<_t.length&&yt+qe+1+it<be.length);break}if(5===be[1]&&qe+it>=2||2===be[1]&&qe+it>=5)break;be[1]&&(it=1)}while(++qe+oe<le.length&&qe+it<be.length);for(yt=2;yt<be.length;++yt)-1===be[yt]&&(be[yt]=0);switch(be[0]){case 38:Ae.fg=this._updateAttrColor(Ae.fg,be[1],be[3],be[4],be[5]);break;case 48:Ae.bg=this._updateAttrColor(Ae.bg,be[1],be[3],be[4],be[5]);break;case 58:Ae.extended=Ae.extended.clone(),Ae.extended.underlineColor=this._updateAttrColor(Ae.extended.underlineColor,be[1],be[3],be[4],be[5])}return qe},ce.prototype._processUnderline=function(le,oe){oe.extended=oe.extended.clone(),(!~le||le>5)&&(le=1),oe.extended.underlineStyle=le,oe.fg|=268435456,0===le&&(oe.fg&=-268435457),oe.updateExtended()},ce.prototype.charAttributes=function(le){if(1===le.length&&0===le.params[0])return this._curAttrData.fg=R.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=R.DEFAULT_ATTR_DATA.bg,!0;for(var oe,Ae=le.length,be=this._curAttrData,it=0;it<Ae;it++)(oe=le.params[it])>=30&&oe<=37?(be.fg&=-50331904,be.fg|=16777216|oe-30):oe>=40&&oe<=47?(be.bg&=-50331904,be.bg|=16777216|oe-40):oe>=90&&oe<=97?(be.fg&=-50331904,be.fg|=16777224|oe-90):oe>=100&&oe<=107?(be.bg&=-50331904,be.bg|=16777224|oe-100):0===oe?(be.fg=R.DEFAULT_ATTR_DATA.fg,be.bg=R.DEFAULT_ATTR_DATA.bg):1===oe?be.fg|=134217728:3===oe?be.bg|=67108864:4===oe?(be.fg|=268435456,this._processUnderline(le.hasSubParams(it)?le.getSubParams(it)[0]:1,be)):5===oe?be.fg|=536870912:7===oe?be.fg|=67108864:8===oe?be.fg|=1073741824:9===oe?be.fg|=2147483648:2===oe?be.bg|=134217728:21===oe?this._processUnderline(2,be):22===oe?(be.fg&=-134217729,be.bg&=-134217729):23===oe?be.bg&=-67108865:24===oe?be.fg&=-268435457:25===oe?be.fg&=-536870913:27===oe?be.fg&=-67108865:28===oe?be.fg&=-1073741825:29===oe?be.fg&=2147483647:39===oe?(be.fg&=-67108864,be.fg|=16777215&R.DEFAULT_ATTR_DATA.fg):49===oe?(be.bg&=-67108864,be.bg|=16777215&R.DEFAULT_ATTR_DATA.bg):38===oe||48===oe||58===oe?it+=this._extractColor(le,it,be):59===oe?(be.extended=be.extended.clone(),be.extended.underlineColor=-1,be.updateExtended()):100===oe?(be.fg&=-67108864,be.fg|=16777215&R.DEFAULT_ATTR_DATA.fg,be.bg&=-67108864,be.bg|=16777215&R.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",oe);return!0},ce.prototype.deviceStatus=function(le){switch(le.params[0]){case 5:this._coreService.triggerDataEvent(D.C0.ESC+"[0n");break;case 6:this._coreService.triggerDataEvent(D.C0.ESC+"["+(this._activeBuffer.y+1)+";"+(this._activeBuffer.x+1)+"R")}return!0},ce.prototype.deviceStatusPrivate=function(le){return 6===le.params[0]&&this._coreService.triggerDataEvent(D.C0.ESC+"[?"+(this._activeBuffer.y+1)+";"+(this._activeBuffer.x+1)+"R"),!0},ce.prototype.softReset=function(le){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=R.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},ce.prototype.setCursorStyle=function(le){var oe=le.params[0]||1;switch(oe){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}return this._optionsService.options.cursorBlink=oe%2==1,!0},ce.prototype.setScrollRegion=function(le){var oe,Ae=le.params[0]||1;return(le.length<2||(oe=le.params[1])>this._bufferService.rows||0===oe)&&(oe=this._bufferService.rows),oe>Ae&&(this._activeBuffer.scrollTop=Ae-1,this._activeBuffer.scrollBottom=oe-1,this._setCursor(0,0)),!0},ce.prototype.windowOptions=function(le){if(!ee(le.params[0],this._optionsService.options.windowOptions))return!0;var oe=le.length>1?le.params[1]:0;switch(le.params[0]){case 14:2!==oe&&this._onRequestWindowsOptionsReport.fire(I.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(I.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(D.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==oe&&2!==oe||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==oe&&1!==oe||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==oe&&2!==oe||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==oe&&1!==oe||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},ce.prototype.saveCursor=function(le){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0},ce.prototype.restoreCursor=function(le){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0},ce.prototype.setTitle=function(le){return this._windowTitle=le,this._onTitleChange.fire(le),!0},ce.prototype.setIconName=function(le){return this._iconName=le,!0},ce.prototype._parseAnsiColorChange=function(le){for(var oe,Ae={colors:[]},be=/(\d+);rgb:([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})/gi;null!==(oe=be.exec(le));)Ae.colors.push({colorIndex:parseInt(oe[1]),red:parseInt(oe[2],16),green:parseInt(oe[3],16),blue:parseInt(oe[4],16)});return 0===Ae.colors.length?null:Ae},ce.prototype.setAnsiColor=function(le){var oe=this._parseAnsiColorChange(le);return oe?this._onAnsiColorChange.fire(oe):this._logService.warn("Expected format <num>;rgb:<rr>/<gg>/<bb> but got data: "+le),!0},ce.prototype.nextLine=function(){return this._activeBuffer.x=0,this.index(),!0},ce.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},ce.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},ce.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,A.DEFAULT_CHARSET),!0},ce.prototype.selectCharset=function(le){return 2!==le.length?(this.selectDefaultCharset(),!0):("/"===le[0]||this._charsetService.setgCharset(j[le[0]],A.CHARSETS[le[1]]||A.DEFAULT_CHARSET),!0)},ce.prototype.index=function(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},ce.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},ce.prototype.reverseIndex=function(){return this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop?(this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)):(this._activeBuffer.y--,this._restrictCursor()),!0},ce.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},ce.prototype.reset=function(){this._curAttrData=R.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=R.DEFAULT_ATTR_DATA.clone()},ce.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},ce.prototype.setgLevel=function(le){return this._charsetService.setgLevel(le),!0},ce.prototype.screenAlignmentPattern=function(){var le=new x.CellData;le.content=1<<22|"E".charCodeAt(0),le.fg=this._curAttrData.fg,le.bg=this._curAttrData.bg,this._setCursor(0,0);for(var oe=0;oe<this._bufferService.rows;++oe){var be=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y+oe);be&&(be.fill(le),be.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0},ce}(v.Disposable);w.InputHandler=ae},844:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.getDisposeArrayDisposable=w.disposeArray=w.Disposable=void 0;var N=function(){function _(){this._disposables=[],this._isDisposed=!1}return _.prototype.dispose=function(){this._isDisposed=!0;for(var I=0,D=this._disposables;I<D.length;I++)D[I].dispose();this._disposables.length=0},_.prototype.register=function(I){return this._disposables.push(I),I},_.prototype.unregister=function(I){var D=this._disposables.indexOf(I);-1!==D&&this._disposables.splice(D,1)},_}();function b(_){for(var I=0,D=_;I<D.length;I++)D[I].dispose();_.length=0}w.Disposable=N,w.disposeArray=b,w.getDisposeArrayDisposable=function(_){return{dispose:function(){return b(_)}}}},6114:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.isLinux=w.isWindows=w.isIphone=w.isIpad=w.isMac=w.isSafari=w.isFirefox=void 0;var N="undefined"==typeof navigator,b=N?"node":navigator.userAgent,_=N?"node":navigator.platform;w.isFirefox=b.includes("Firefox"),w.isSafari=/^((?!chrome|android).)*safari/i.test(b),w.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(_),w.isIpad="iPad"===_,w.isIphone="iPhone"===_,w.isWindows=["Windows","Win16","Win32","WinCE"].includes(_),w.isLinux=_.indexOf("Linux")>=0},8273:function(Z,w){function N(b,_,I,D){if(void 0===I&&(I=0),void 0===D&&(D=b.length),I>=b.length)return b;D=D>=b.length?b.length:(b.length+D)%b.length;for(var A=I=(b.length+I)%b.length;A<D;++A)b[A]=_;return b}Object.defineProperty(w,"__esModule",{value:!0}),w.concat=w.fillFallback=w.fill=void 0,w.fill=function(b,_,I,D){return b.fill?b.fill(_,I,D):N(b,_,I,D)},w.fillFallback=N,w.concat=function(b,_){var I=new b.constructor(b.length+_.length);return I.set(b),I.set(_,b.length),I}},9282:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.updateWindowsModeWrappedState=void 0;var b=N(643);w.updateWindowsModeWrappedState=function(_){var I=_.buffer.lines.get(_.buffer.ybase+_.buffer.y-1),D=null==I?void 0:I.get(_.cols-1),A=_.buffer.lines.get(_.buffer.ybase+_.buffer.y);A&&D&&(A.isWrapped=D[b.CHAR_DATA_CODE_INDEX]!==b.NULL_CELL_CODE&&D[b.CHAR_DATA_CODE_INDEX]!==b.WHITESPACE_CELL_CODE)}},3734:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.ExtendedAttrs=w.AttributeData=void 0;var N=function(){function _(){this.fg=0,this.bg=0,this.extended=new b}return _.toColorRGB=function(I){return[I>>>16&255,I>>>8&255,255&I]},_.fromColorRGB=function(I){return(255&I[0])<<16|(255&I[1])<<8|255&I[2]},_.prototype.clone=function(){var I=new _;return I.fg=this.fg,I.bg=this.bg,I.extended=this.extended.clone(),I},_.prototype.isInverse=function(){return 67108864&this.fg},_.prototype.isBold=function(){return 134217728&this.fg},_.prototype.isUnderline=function(){return 268435456&this.fg},_.prototype.isBlink=function(){return 536870912&this.fg},_.prototype.isInvisible=function(){return 1073741824&this.fg},_.prototype.isItalic=function(){return 67108864&this.bg},_.prototype.isDim=function(){return 134217728&this.bg},_.prototype.isStrikethrough=function(){return 2147483648&this.fg},_.prototype.getFgColorMode=function(){return 50331648&this.fg},_.prototype.getBgColorMode=function(){return 50331648&this.bg},_.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},_.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},_.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},_.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},_.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},_.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},_.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},_.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},_.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},_.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},_.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},_.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},_.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},_.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},_.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},_.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},_.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},_}();w.AttributeData=N;var b=function(){function _(I,D){void 0===I&&(I=0),void 0===D&&(D=-1),this.underlineStyle=I,this.underlineColor=D}return _.prototype.clone=function(){return new _(this.underlineStyle,this.underlineColor)},_.prototype.isEmpty=function(){return 0===this.underlineStyle},_}();w.ExtendedAttrs=b},9092:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.BufferStringIterator=w.Buffer=w.MAX_BUFFER_SIZE=void 0;var b=N(6349),_=N(8437),I=N(511),D=N(643),A=N(4634),S=N(4863),v=N(7116),g=N(3734);w.MAX_BUFFER_SIZE=4294967295;var T=function(){function k(E,x,O){this._hasScrollback=E,this._optionsService=x,this._bufferService=O,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=_.DEFAULT_ATTR_DATA.clone(),this.savedCharset=v.DEFAULT_CHARSET,this.markers=[],this._nullCell=I.CellData.fromCharData([0,D.NULL_CELL_CHAR,D.NULL_CELL_WIDTH,D.NULL_CELL_CODE]),this._whitespaceCell=I.CellData.fromCharData([0,D.WHITESPACE_CELL_CHAR,D.WHITESPACE_CELL_WIDTH,D.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new b.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return k.prototype.getNullCell=function(E){return E?(this._nullCell.fg=E.fg,this._nullCell.bg=E.bg,this._nullCell.extended=E.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new g.ExtendedAttrs),this._nullCell},k.prototype.getWhitespaceCell=function(E){return E?(this._whitespaceCell.fg=E.fg,this._whitespaceCell.bg=E.bg,this._whitespaceCell.extended=E.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new g.ExtendedAttrs),this._whitespaceCell},k.prototype.getBlankLine=function(E,x){return new _.BufferLine(this._bufferService.cols,this.getNullCell(E),x)},Object.defineProperty(k.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"isCursorInViewport",{get:function(){var x=this.ybase+this.y-this.ydisp;return x>=0&&x<this._rows},enumerable:!1,configurable:!0}),k.prototype._getCorrectBufferLength=function(E){if(!this._hasScrollback)return E;var x=E+this._optionsService.options.scrollback;return x>w.MAX_BUFFER_SIZE?w.MAX_BUFFER_SIZE:x},k.prototype.fillViewportRows=function(E){if(0===this.lines.length){void 0===E&&(E=_.DEFAULT_ATTR_DATA);for(var x=this._rows;x--;)this.lines.push(this.getBlankLine(E))}},k.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new b.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},k.prototype.resize=function(E,x){var O=this.getNullCell(_.DEFAULT_ATTR_DATA),F=this._getCorrectBufferLength(x);if(F>this.lines.maxLength&&(this.lines.maxLength=F),this.lines.length>0){if(this._cols<E)for(var z=0;z<this.lines.length;z++)this.lines.get(z).resize(E,O);var K=0;if(this._rows<x)for(var j=this._rows;j<x;j++)this.lines.length<x+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new _.BufferLine(E,O)):this.ybase>0&&this.lines.length<=this.ybase+this.y+K+1?(this.ybase--,K++,this.ydisp>0&&this.ydisp--):this.lines.push(new _.BufferLine(E,O)));else for(j=this._rows;j>x;j--)this.lines.length>x+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(F<this.lines.maxLength){var J=this.lines.length-F;J>0&&(this.lines.trimStart(J),this.ybase=Math.max(this.ybase-J,0),this.ydisp=Math.max(this.ydisp-J,0),this.savedY=Math.max(this.savedY-J,0)),this.lines.maxLength=F}this.x=Math.min(this.x,E-1),this.y=Math.min(this.y,x-1),K&&(this.y+=K),this.savedX=Math.min(this.savedX,E-1),this.scrollTop=0}if(this.scrollBottom=x-1,this._isReflowEnabled&&(this._reflow(E,x),this._cols>E))for(z=0;z<this.lines.length;z++)this.lines.get(z).resize(E,O);this._cols=E,this._rows=x},Object.defineProperty(k.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),k.prototype._reflow=function(E,x){this._cols!==E&&(E>this._cols?this._reflowLarger(E,x):this._reflowSmaller(E,x))},k.prototype._reflowLarger=function(E,x){var O=(0,A.reflowLargerGetLinesToRemove)(this.lines,this._cols,E,this.ybase+this.y,this.getNullCell(_.DEFAULT_ATTR_DATA));if(O.length>0){var F=(0,A.reflowLargerCreateNewLayout)(this.lines,O);(0,A.reflowLargerApplyNewLayout)(this.lines,F.layout),this._reflowLargerAdjustViewport(E,x,F.countRemoved)}},k.prototype._reflowLargerAdjustViewport=function(E,x,O){for(var F=this.getNullCell(_.DEFAULT_ATTR_DATA),z=O;z-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<x&&this.lines.push(new _.BufferLine(E,F))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-O,0)},k.prototype._reflowSmaller=function(E,x){for(var O=this.getNullCell(_.DEFAULT_ATTR_DATA),F=[],z=0,K=this.lines.length-1;K>=0;K--){var j=this.lines.get(K);if(!(!j||!j.isWrapped&&j.getTrimmedLength()<=E)){for(var J=[j];j.isWrapped&&K>0;)j=this.lines.get(--K),J.unshift(j);var ee=this.ybase+this.y;if(!(ee>=K&&ee<K+J.length)){var $,ae=J[J.length-1].getTrimmedLength(),se=(0,A.reflowSmallerGetNewLineLengths)(J,this._cols,E),ce=se.length-J.length;$=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+ce):Math.max(0,this.lines.length-this.lines.maxLength+ce);for(var le=[],oe=0;oe<ce;oe++){var Ae=this.getBlankLine(_.DEFAULT_ATTR_DATA,!0);le.push(Ae)}le.length>0&&(F.push({start:K+J.length+z,newLines:le}),z+=le.length),J.push.apply(J,le);var be=se.length-1,it=se[be];0===it&&(it=se[--be]);for(var qe=J.length-ce-1,_t=ae;qe>=0;){var yt=Math.min(_t,it);if(J[be].copyCellsFrom(J[qe],_t-yt,it-yt,yt,!0),0==(it-=yt)&&(it=se[--be]),0==(_t-=yt)){qe--;var Ft=Math.max(qe,0);_t=(0,A.getWrappedLineTrimmedLength)(J,Ft,this._cols)}}for(oe=0;oe<J.length;oe++)se[oe]<E&&J[oe].setCell(se[oe],O);for(var xe=ce-$;xe-- >0;)0===this.ybase?this.y<x-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+z)-x&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+ce,this.ybase+x-1)}}}if(F.length>0){var De=[],je=[];for(oe=0;oe<this.lines.length;oe++)je.push(this.lines.get(oe));var dt=this.lines.length,Ke=dt-1,Bt=0,xt=F[Bt];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+z);var vt=0;for(oe=Math.min(this.lines.maxLength-1,dt+z-1);oe>=0;oe--)if(xt&&xt.start>Ke+vt){for(var Qt=xt.newLines.length-1;Qt>=0;Qt--)this.lines.set(oe--,xt.newLines[Qt]);oe++,De.push({index:Ke+1,amount:xt.newLines.length}),vt+=xt.newLines.length,xt=F[++Bt]}else this.lines.set(oe,je[Ke--]);var Ht=0;for(oe=De.length-1;oe>=0;oe--)De[oe].index+=Ht,this.lines.onInsertEmitter.fire(De[oe]),Ht+=De[oe].amount;var Ct=Math.max(0,dt+z-this.lines.maxLength);Ct>0&&this.lines.onTrimEmitter.fire(Ct)}},k.prototype.stringIndexToBufferIndex=function(E,x,O){for(void 0===O&&(O=!1);x;){var F=this.lines.get(E);if(!F)return[-1,-1];for(var z=O?F.getTrimmedLength():F.length,K=0;K<z;++K)if(F.get(K)[D.CHAR_DATA_WIDTH_INDEX]&&(x-=F.get(K)[D.CHAR_DATA_CHAR_INDEX].length||1),x<0)return[E,K];E++}return[E,0]},k.prototype.translateBufferLineToString=function(E,x,O,F){void 0===O&&(O=0);var z=this.lines.get(E);return z?z.translateToString(x,O,F):""},k.prototype.getWrappedRangeForLine=function(E){for(var x=E,O=E;x>0&&this.lines.get(x).isWrapped;)x--;for(;O+1<this.lines.length&&this.lines.get(O+1).isWrapped;)O++;return{first:x,last:O}},k.prototype.setupTabStops=function(E){for(null!=E?this.tabs[E]||(E=this.prevStop(E)):(this.tabs={},E=0);E<this._cols;E+=this._optionsService.options.tabStopWidth)this.tabs[E]=!0},k.prototype.prevStop=function(E){for(null==E&&(E=this.x);!this.tabs[--E]&&E>0;);return E>=this._cols?this._cols-1:E<0?0:E},k.prototype.nextStop=function(E){for(null==E&&(E=this.x);!this.tabs[++E]&&E<this._cols;);return E>=this._cols?this._cols-1:E<0?0:E},k.prototype.addMarker=function(E){var x=this,O=new S.Marker(E);return this.markers.push(O),O.register(this.lines.onTrim(function(F){O.line-=F,O.line<0&&O.dispose()})),O.register(this.lines.onInsert(function(F){O.line>=F.index&&(O.line+=F.amount)})),O.register(this.lines.onDelete(function(F){O.line>=F.index&&O.line<F.index+F.amount&&O.dispose(),O.line>F.index&&(O.line-=F.amount)})),O.register(O.onDispose(function(){return x._removeMarker(O)})),O},k.prototype._removeMarker=function(E){this.markers.splice(this.markers.indexOf(E),1)},k.prototype.iterator=function(E,x,O,F,z){return new R(this,E,x,O,F,z)},k}();w.Buffer=T;var R=function(){function k(E,x,O,F,z,K){void 0===O&&(O=0),void 0===F&&(F=E.lines.length),void 0===z&&(z=0),void 0===K&&(K=0),this._buffer=E,this._trimRight=x,this._startIndex=O,this._endIndex=F,this._startOverscan=z,this._endOverscan=K,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return k.prototype.hasNext=function(){return this._current<this._endIndex},k.prototype.next=function(){var E=this._buffer.getWrappedRangeForLine(this._current);E.first<this._startIndex-this._startOverscan&&(E.first=this._startIndex-this._startOverscan),E.last>this._endIndex+this._endOverscan&&(E.last=this._endIndex+this._endOverscan),E.first=Math.max(E.first,0),E.last=Math.min(E.last,this._buffer.lines.length);for(var x="",O=E.first;O<=E.last;++O)x+=this._buffer.translateBufferLineToString(O,this._trimRight);return this._current=E.last+1,{range:E,content:x}},k}();w.BufferStringIterator=R},8437:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.BufferLine=w.DEFAULT_ATTR_DATA=void 0;var b=N(482),_=N(643),I=N(511),D=N(3734);w.DEFAULT_ATTR_DATA=Object.freeze(new D.AttributeData);var A=function(){function S(v,g,T){void 0===T&&(T=!1),this.isWrapped=T,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*v);for(var R=g||I.CellData.fromCharData([0,_.NULL_CELL_CHAR,_.NULL_CELL_WIDTH,_.NULL_CELL_CODE]),k=0;k<v;++k)this.setCell(k,R);this.length=v}return S.prototype.get=function(v){var g=this._data[3*v+0],T=2097151&g;return[this._data[3*v+1],2097152&g?this._combined[v]:T?(0,b.stringFromCodePoint)(T):"",g>>22,2097152&g?this._combined[v].charCodeAt(this._combined[v].length-1):T]},S.prototype.set=function(v,g){this._data[3*v+1]=g[_.CHAR_DATA_ATTR_INDEX],g[_.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[v]=g[1],this._data[3*v+0]=2097152|v|g[_.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*v+0]=g[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|g[_.CHAR_DATA_WIDTH_INDEX]<<22},S.prototype.getWidth=function(v){return this._data[3*v+0]>>22},S.prototype.hasWidth=function(v){return 12582912&this._data[3*v+0]},S.prototype.getFg=function(v){return this._data[3*v+1]},S.prototype.getBg=function(v){return this._data[3*v+2]},S.prototype.hasContent=function(v){return 4194303&this._data[3*v+0]},S.prototype.getCodePoint=function(v){var g=this._data[3*v+0];return 2097152&g?this._combined[v].charCodeAt(this._combined[v].length-1):2097151&g},S.prototype.isCombined=function(v){return 2097152&this._data[3*v+0]},S.prototype.getString=function(v){var g=this._data[3*v+0];return 2097152&g?this._combined[v]:2097151&g?(0,b.stringFromCodePoint)(2097151&g):""},S.prototype.loadCell=function(v,g){var T=3*v;return g.content=this._data[T+0],g.fg=this._data[T+1],g.bg=this._data[T+2],2097152&g.content&&(g.combinedData=this._combined[v]),268435456&g.bg&&(g.extended=this._extendedAttrs[v]),g},S.prototype.setCell=function(v,g){2097152&g.content&&(this._combined[v]=g.combinedData),268435456&g.bg&&(this._extendedAttrs[v]=g.extended),this._data[3*v+0]=g.content,this._data[3*v+1]=g.fg,this._data[3*v+2]=g.bg},S.prototype.setCellFromCodePoint=function(v,g,T,R,k,E){268435456&k&&(this._extendedAttrs[v]=E),this._data[3*v+0]=g|T<<22,this._data[3*v+1]=R,this._data[3*v+2]=k},S.prototype.addCodepointToCell=function(v,g){var T=this._data[3*v+0];2097152&T?this._combined[v]+=(0,b.stringFromCodePoint)(g):(2097151&T?(this._combined[v]=(0,b.stringFromCodePoint)(2097151&T)+(0,b.stringFromCodePoint)(g),T&=-2097152,T|=2097152):T=g|1<<22,this._data[3*v+0]=T)},S.prototype.insertCells=function(v,g,T,R){if((v%=this.length)&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==R?void 0:R.fg)||0,(null==R?void 0:R.bg)||0,(null==R?void 0:R.extended)||new D.ExtendedAttrs),g<this.length-v){for(var k=new I.CellData,E=this.length-v-g-1;E>=0;--E)this.setCell(v+g+E,this.loadCell(v+E,k));for(E=0;E<g;++E)this.setCell(v+E,T)}else for(E=v;E<this.length;++E)this.setCell(E,T);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==R?void 0:R.fg)||0,(null==R?void 0:R.bg)||0,(null==R?void 0:R.extended)||new D.ExtendedAttrs)},S.prototype.deleteCells=function(v,g,T,R){if(g<this.length-(v%=this.length)){for(var k=new I.CellData,E=0;E<this.length-v-g;++E)this.setCell(v+E,this.loadCell(v+g+E,k));for(E=this.length-g;E<this.length;++E)this.setCell(E,T)}else for(E=v;E<this.length;++E)this.setCell(E,T);v&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==R?void 0:R.fg)||0,(null==R?void 0:R.bg)||0,(null==R?void 0:R.extended)||new D.ExtendedAttrs),0!==this.getWidth(v)||this.hasContent(v)||this.setCellFromCodePoint(v,0,1,(null==R?void 0:R.fg)||0,(null==R?void 0:R.bg)||0,(null==R?void 0:R.extended)||new D.ExtendedAttrs)},S.prototype.replaceCells=function(v,g,T,R){for(v&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==R?void 0:R.fg)||0,(null==R?void 0:R.bg)||0,(null==R?void 0:R.extended)||new D.ExtendedAttrs),g<this.length&&2===this.getWidth(g-1)&&this.setCellFromCodePoint(g,0,1,(null==R?void 0:R.fg)||0,(null==R?void 0:R.bg)||0,(null==R?void 0:R.extended)||new D.ExtendedAttrs);v<g&&v<this.length;)this.setCell(v++,T)},S.prototype.resize=function(v,g){if(v!==this.length){if(v>this.length){var T=new Uint32Array(3*v);this.length&&T.set(3*v<this._data.length?this._data.subarray(0,3*v):this._data),this._data=T;for(var R=this.length;R<v;++R)this.setCell(R,g)}else if(v){(T=new Uint32Array(3*v)).set(this._data.subarray(0,3*v)),this._data=T;var k=Object.keys(this._combined);for(R=0;R<k.length;R++){var E=parseInt(k[R],10);E>=v&&delete this._combined[E]}}else this._data=new Uint32Array(0),this._combined={};this.length=v}},S.prototype.fill=function(v){this._combined={},this._extendedAttrs={};for(var g=0;g<this.length;++g)this.setCell(g,v)},S.prototype.copyFrom=function(v){for(var g in this.length!==v.length?this._data=new Uint32Array(v._data):this._data.set(v._data),this.length=v.length,this._combined={},v._combined)this._combined[g]=v._combined[g];for(var g in this._extendedAttrs={},v._extendedAttrs)this._extendedAttrs[g]=v._extendedAttrs[g];this.isWrapped=v.isWrapped},S.prototype.clone=function(){var v=new S(0);for(var g in v._data=new Uint32Array(this._data),v.length=this.length,this._combined)v._combined[g]=this._combined[g];for(var g in this._extendedAttrs)v._extendedAttrs[g]=this._extendedAttrs[g];return v.isWrapped=this.isWrapped,v},S.prototype.getTrimmedLength=function(){for(var v=this.length-1;v>=0;--v)if(4194303&this._data[3*v+0])return v+(this._data[3*v+0]>>22);return 0},S.prototype.copyCellsFrom=function(v,g,T,R,k){var E=v._data;if(k)for(var x=R-1;x>=0;x--)for(var O=0;O<3;O++)this._data[3*(T+x)+O]=E[3*(g+x)+O];else for(x=0;x<R;x++)for(O=0;O<3;O++)this._data[3*(T+x)+O]=E[3*(g+x)+O];var F=Object.keys(v._combined);for(O=0;O<F.length;O++){var z=parseInt(F[O],10);z>=g&&(this._combined[z-g+T]=v._combined[z])}},S.prototype.translateToString=function(v,g,T){void 0===v&&(v=!1),void 0===g&&(g=0),void 0===T&&(T=this.length),v&&(T=Math.min(T,this.getTrimmedLength()));for(var R="";g<T;){var k=this._data[3*g+0],E=2097151&k;R+=2097152&k?this._combined[g]:E?(0,b.stringFromCodePoint)(E):_.WHITESPACE_CELL_CHAR,g+=k>>22||1}return R},S}();w.BufferLine=A},4841:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.getRangeLength=void 0,w.getRangeLength=function(N,b){if(N.start.y>N.end.y)throw new Error("Buffer range end ("+N.end.x+", "+N.end.y+") cannot be before start ("+N.start.x+", "+N.start.y+")");return b*(N.end.y-N.start.y)+(N.end.x-N.start.x+1)}},4634:function(Z,w){function N(b,_,I){if(_===b.length-1)return b[_].getTrimmedLength();var D=!b[_].hasContent(I-1)&&1===b[_].getWidth(I-1),A=2===b[_+1].getWidth(0);return D&&A?I-1:I}Object.defineProperty(w,"__esModule",{value:!0}),w.getWrappedLineTrimmedLength=w.reflowSmallerGetNewLineLengths=w.reflowLargerApplyNewLayout=w.reflowLargerCreateNewLayout=w.reflowLargerGetLinesToRemove=void 0,w.reflowLargerGetLinesToRemove=function(b,_,I,D,A){for(var S=[],v=0;v<b.length-1;v++){var g=v,T=b.get(++g);if(T.isWrapped){for(var R=[b.get(v)];g<b.length&&T.isWrapped;)R.push(T),T=b.get(++g);if(D>=v&&D<g)v+=R.length-1;else{for(var k=0,E=N(R,k,_),x=1,O=0;x<R.length;){var F=N(R,x,_),j=Math.min(F-O,I-E);R[k].copyCellsFrom(R[x],O,E,j,!1),(E+=j)===I&&(k++,E=0),(O+=j)===F&&(x++,O=0),0===E&&0!==k&&2===R[k-1].getWidth(I-1)&&(R[k].copyCellsFrom(R[k-1],I-1,E++,1,!1),R[k-1].setCell(I-1,A))}R[k].replaceCells(E,I,A);for(var J=0,ee=R.length-1;ee>0&&(ee>k||0===R[ee].getTrimmedLength());ee--)J++;J>0&&(S.push(v+R.length-J),S.push(J)),v+=R.length-1}}}return S},w.reflowLargerCreateNewLayout=function(b,_){for(var I=[],D=0,A=_[D],S=0,v=0;v<b.length;v++)if(A===v){var g=_[++D];b.onDeleteEmitter.fire({index:v-S,amount:g}),v+=g-1,S+=g,A=_[++D]}else I.push(v);return{layout:I,countRemoved:S}},w.reflowLargerApplyNewLayout=function(b,_){for(var I=[],D=0;D<_.length;D++)I.push(b.get(_[D]));for(D=0;D<I.length;D++)b.set(D,I[D]);b.length=_.length},w.reflowSmallerGetNewLineLengths=function(b,_,I){for(var D=[],A=b.map(function(E,x){return N(b,x,_)}).reduce(function(E,x){return E+x}),S=0,v=0,g=0;g<A;){if(A-g<I){D.push(A-g);break}S+=I;var T=N(b,v,_);S>T&&(S-=T,v++);var R=2===b[v].getWidth(S-1);R&&S--;var k=R?I-1:I;D.push(k),g+=k}return D},w.getWrappedLineTrimmedLength=N},5295:function(Z,w,N){var b,_=this&&this.__extends||(b=function(v,g){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,R){T.__proto__=R}||function(T,R){for(var k in R)Object.prototype.hasOwnProperty.call(R,k)&&(T[k]=R[k])})(v,g)},function(S,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function g(){this.constructor=S}b(S,v),S.prototype=null===v?Object.create(v):(g.prototype=v.prototype,new g)});Object.defineProperty(w,"__esModule",{value:!0}),w.BufferSet=void 0;var I=N(9092),D=N(8460),A=function(S){function v(g,T){var R=S.call(this)||this;return R._optionsService=g,R._bufferService=T,R._onBufferActivate=R.register(new D.EventEmitter),R.reset(),R}return _(v,S),Object.defineProperty(v.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),v.prototype.reset=function(){this._normal=new I.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new I.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(v.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),v.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},v.prototype.activateAltBuffer=function(g){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(g),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},v.prototype.resize=function(g,T){this._normal.resize(g,T),this._alt.resize(g,T)},v.prototype.setupTabStops=function(g){this._normal.setupTabStops(g),this._alt.setupTabStops(g)},v}(N(844).Disposable);w.BufferSet=A},511:function(Z,w,N){var b,_=this&&this.__extends||(b=function(g,T){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,k){R.__proto__=k}||function(R,k){for(var E in k)Object.prototype.hasOwnProperty.call(k,E)&&(R[E]=k[E])})(g,T)},function(v,g){if("function"!=typeof g&&null!==g)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function T(){this.constructor=v}b(v,g),v.prototype=null===g?Object.create(g):(T.prototype=g.prototype,new T)});Object.defineProperty(w,"__esModule",{value:!0}),w.CellData=void 0;var I=N(482),D=N(643),A=N(3734),S=function(v){function g(){var T=null!==v&&v.apply(this,arguments)||this;return T.content=0,T.fg=0,T.bg=0,T.extended=new A.ExtendedAttrs,T.combinedData="",T}return _(g,v),g.fromCharData=function(T){var R=new g;return R.setFromCharData(T),R},g.prototype.isCombined=function(){return 2097152&this.content},g.prototype.getWidth=function(){return this.content>>22},g.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,I.stringFromCodePoint)(2097151&this.content):""},g.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},g.prototype.setFromCharData=function(T){this.fg=T[D.CHAR_DATA_ATTR_INDEX],this.bg=0;var R=!1;if(T[D.CHAR_DATA_CHAR_INDEX].length>2)R=!0;else if(2===T[D.CHAR_DATA_CHAR_INDEX].length){var k=T[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=k&&k<=56319){var E=T[D.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=E&&E<=57343?this.content=1024*(k-55296)+E-56320+65536|T[D.CHAR_DATA_WIDTH_INDEX]<<22:R=!0}else R=!0}else this.content=T[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|T[D.CHAR_DATA_WIDTH_INDEX]<<22;R&&(this.combinedData=T[D.CHAR_DATA_CHAR_INDEX],this.content=2097152|T[D.CHAR_DATA_WIDTH_INDEX]<<22)},g.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},g}(A.AttributeData);w.CellData=S},643:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.WHITESPACE_CELL_CODE=w.WHITESPACE_CELL_WIDTH=w.WHITESPACE_CELL_CHAR=w.NULL_CELL_CODE=w.NULL_CELL_WIDTH=w.NULL_CELL_CHAR=w.CHAR_DATA_CODE_INDEX=w.CHAR_DATA_WIDTH_INDEX=w.CHAR_DATA_CHAR_INDEX=w.CHAR_DATA_ATTR_INDEX=w.DEFAULT_ATTR=w.DEFAULT_COLOR=void 0,w.DEFAULT_COLOR=256,w.DEFAULT_ATTR=256|w.DEFAULT_COLOR<<9,w.CHAR_DATA_ATTR_INDEX=0,w.CHAR_DATA_CHAR_INDEX=1,w.CHAR_DATA_WIDTH_INDEX=2,w.CHAR_DATA_CODE_INDEX=3,w.NULL_CELL_CHAR="",w.NULL_CELL_WIDTH=1,w.NULL_CELL_CODE=0,w.WHITESPACE_CELL_CHAR=" ",w.WHITESPACE_CELL_WIDTH=1,w.WHITESPACE_CELL_CODE=32},4863:function(Z,w,N){var b,_=this&&this.__extends||(b=function(S,v){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,T){g.__proto__=T}||function(g,T){for(var R in T)Object.prototype.hasOwnProperty.call(T,R)&&(g[R]=T[R])})(S,v)},function(A,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function v(){this.constructor=A}b(A,S),A.prototype=null===S?Object.create(S):(v.prototype=S.prototype,new v)});Object.defineProperty(w,"__esModule",{value:!0}),w.Marker=void 0;var I=N(8460),D=function(A){function S(v){var g=A.call(this)||this;return g.line=v,g._id=S._nextId++,g.isDisposed=!1,g._onDispose=new I.EventEmitter,g}return _(S,A),Object.defineProperty(S.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),S.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),A.prototype.dispose.call(this))},S._nextId=1,S}(N(844).Disposable);w.Marker=D},7116:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.DEFAULT_CHARSET=w.CHARSETS=void 0,w.CHARSETS={},w.DEFAULT_CHARSET=w.CHARSETS.B,w.CHARSETS[0]={"`":"\u25c6",a:"\u2592",b:"\u2409",c:"\u240c",d:"\u240d",e:"\u240a",f:"\xb0",g:"\xb1",h:"\u2424",i:"\u240b",j:"\u2518",k:"\u2510",l:"\u250c",m:"\u2514",n:"\u253c",o:"\u23ba",p:"\u23bb",q:"\u2500",r:"\u23bc",s:"\u23bd",t:"\u251c",u:"\u2524",v:"\u2534",w:"\u252c",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03c0","|":"\u2260","}":"\xa3","~":"\xb7"},w.CHARSETS.A={"#":"\xa3"},w.CHARSETS.B=void 0,w.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},w.CHARSETS.C=w.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},w.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},w.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},w.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},w.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},w.CHARSETS.E=w.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},w.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},w.CHARSETS.H=w.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},w.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:function(Z,w){var N,b;Object.defineProperty(w,"__esModule",{value:!0}),w.C1=w.C0=void 0,(b=w.C0||(w.C0={})).NUL="\0",b.SOH="\x01",b.STX="\x02",b.ETX="\x03",b.EOT="\x04",b.ENQ="\x05",b.ACK="\x06",b.BEL="\x07",b.BS="\b",b.HT="\t",b.LF="\n",b.VT="\v",b.FF="\f",b.CR="\r",b.SO="\x0e",b.SI="\x0f",b.DLE="\x10",b.DC1="\x11",b.DC2="\x12",b.DC3="\x13",b.DC4="\x14",b.NAK="\x15",b.SYN="\x16",b.ETB="\x17",b.CAN="\x18",b.EM="\x19",b.SUB="\x1a",b.ESC="\x1b",b.FS="\x1c",b.GS="\x1d",b.RS="\x1e",b.US="\x1f",b.SP=" ",b.DEL="\x7f",(N=w.C1||(w.C1={})).PAD="\x80",N.HOP="\x81",N.BPH="\x82",N.NBH="\x83",N.IND="\x84",N.NEL="\x85",N.SSA="\x86",N.ESA="\x87",N.HTS="\x88",N.HTJ="\x89",N.VTS="\x8a",N.PLD="\x8b",N.PLU="\x8c",N.RI="\x8d",N.SS2="\x8e",N.SS3="\x8f",N.DCS="\x90",N.PU1="\x91",N.PU2="\x92",N.STS="\x93",N.CCH="\x94",N.MW="\x95",N.SPA="\x96",N.EPA="\x97",N.SOS="\x98",N.SGCI="\x99",N.SCI="\x9a",N.CSI="\x9b",N.ST="\x9c",N.OSC="\x9d",N.PM="\x9e",N.APC="\x9f"},7399:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.evaluateKeyboardEvent=void 0;var b=N(2584),_={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};w.evaluateKeyboardEvent=function(I,D,A,S){var v={type:0,cancel:!1,key:void 0},g=(I.shiftKey?1:0)|(I.altKey?2:0)|(I.ctrlKey?4:0)|(I.metaKey?8:0);switch(I.keyCode){case 0:"UIKeyInputUpArrow"===I.key?v.key=D?b.C0.ESC+"OA":b.C0.ESC+"[A":"UIKeyInputLeftArrow"===I.key?v.key=D?b.C0.ESC+"OD":b.C0.ESC+"[D":"UIKeyInputRightArrow"===I.key?v.key=D?b.C0.ESC+"OC":b.C0.ESC+"[C":"UIKeyInputDownArrow"===I.key&&(v.key=D?b.C0.ESC+"OB":b.C0.ESC+"[B");break;case 8:if(I.shiftKey){v.key=b.C0.BS;break}if(I.altKey){v.key=b.C0.ESC+b.C0.DEL;break}v.key=b.C0.DEL;break;case 9:if(I.shiftKey){v.key=b.C0.ESC+"[Z";break}v.key=b.C0.HT,v.cancel=!0;break;case 13:v.key=I.altKey?b.C0.ESC+b.C0.CR:b.C0.CR,v.cancel=!0;break;case 27:v.key=b.C0.ESC,I.altKey&&(v.key=b.C0.ESC+b.C0.ESC),v.cancel=!0;break;case 37:if(I.metaKey)break;g?(v.key=b.C0.ESC+"[1;"+(g+1)+"D",v.key===b.C0.ESC+"[1;3D"&&(v.key=b.C0.ESC+(A?"b":"[1;5D"))):v.key=D?b.C0.ESC+"OD":b.C0.ESC+"[D";break;case 39:if(I.metaKey)break;g?(v.key=b.C0.ESC+"[1;"+(g+1)+"C",v.key===b.C0.ESC+"[1;3C"&&(v.key=b.C0.ESC+(A?"f":"[1;5C"))):v.key=D?b.C0.ESC+"OC":b.C0.ESC+"[C";break;case 38:if(I.metaKey)break;g?(v.key=b.C0.ESC+"[1;"+(g+1)+"A",A||v.key!==b.C0.ESC+"[1;3A"||(v.key=b.C0.ESC+"[1;5A")):v.key=D?b.C0.ESC+"OA":b.C0.ESC+"[A";break;case 40:if(I.metaKey)break;g?(v.key=b.C0.ESC+"[1;"+(g+1)+"B",A||v.key!==b.C0.ESC+"[1;3B"||(v.key=b.C0.ESC+"[1;5B")):v.key=D?b.C0.ESC+"OB":b.C0.ESC+"[B";break;case 45:I.shiftKey||I.ctrlKey||(v.key=b.C0.ESC+"[2~");break;case 46:v.key=g?b.C0.ESC+"[3;"+(g+1)+"~":b.C0.ESC+"[3~";break;case 36:v.key=g?b.C0.ESC+"[1;"+(g+1)+"H":D?b.C0.ESC+"OH":b.C0.ESC+"[H";break;case 35:v.key=g?b.C0.ESC+"[1;"+(g+1)+"F":D?b.C0.ESC+"OF":b.C0.ESC+"[F";break;case 33:I.shiftKey?v.type=2:v.key=b.C0.ESC+"[5~";break;case 34:I.shiftKey?v.type=3:v.key=b.C0.ESC+"[6~";break;case 112:v.key=g?b.C0.ESC+"[1;"+(g+1)+"P":b.C0.ESC+"OP";break;case 113:v.key=g?b.C0.ESC+"[1;"+(g+1)+"Q":b.C0.ESC+"OQ";break;case 114:v.key=g?b.C0.ESC+"[1;"+(g+1)+"R":b.C0.ESC+"OR";break;case 115:v.key=g?b.C0.ESC+"[1;"+(g+1)+"S":b.C0.ESC+"OS";break;case 116:v.key=g?b.C0.ESC+"[15;"+(g+1)+"~":b.C0.ESC+"[15~";break;case 117:v.key=g?b.C0.ESC+"[17;"+(g+1)+"~":b.C0.ESC+"[17~";break;case 118:v.key=g?b.C0.ESC+"[18;"+(g+1)+"~":b.C0.ESC+"[18~";break;case 119:v.key=g?b.C0.ESC+"[19;"+(g+1)+"~":b.C0.ESC+"[19~";break;case 120:v.key=g?b.C0.ESC+"[20;"+(g+1)+"~":b.C0.ESC+"[20~";break;case 121:v.key=g?b.C0.ESC+"[21;"+(g+1)+"~":b.C0.ESC+"[21~";break;case 122:v.key=g?b.C0.ESC+"[23;"+(g+1)+"~":b.C0.ESC+"[23~";break;case 123:v.key=g?b.C0.ESC+"[24;"+(g+1)+"~":b.C0.ESC+"[24~";break;default:if(!I.ctrlKey||I.shiftKey||I.altKey||I.metaKey)if(A&&!S||!I.altKey||I.metaKey)!A||I.altKey||I.ctrlKey||I.shiftKey||!I.metaKey?I.key&&!I.ctrlKey&&!I.altKey&&!I.metaKey&&I.keyCode>=48&&1===I.key.length?v.key=I.key:I.key&&I.ctrlKey&&"_"===I.key&&(v.key=b.C0.US):65===I.keyCode&&(v.type=1);else{var T=_[I.keyCode],R=T&&T[I.shiftKey?1:0];R?v.key=b.C0.ESC+R:I.keyCode>=65&&I.keyCode<=90&&(v.key=b.C0.ESC+String.fromCharCode(I.ctrlKey?I.keyCode-64:I.keyCode+32))}else I.keyCode>=65&&I.keyCode<=90?v.key=String.fromCharCode(I.keyCode-64):32===I.keyCode?v.key=b.C0.NUL:I.keyCode>=51&&I.keyCode<=55?v.key=String.fromCharCode(I.keyCode-51+27):56===I.keyCode?v.key=b.C0.DEL:219===I.keyCode?v.key=b.C0.ESC:220===I.keyCode?v.key=b.C0.FS:221===I.keyCode&&(v.key=b.C0.GS)}return v}},482:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.Utf8ToUtf32=w.StringToUtf32=w.utf32ToString=w.stringFromCodePoint=void 0,w.stringFromCodePoint=function(_){return _>65535?(_-=65536,String.fromCharCode(55296+(_>>10))+String.fromCharCode(_%1024+56320)):String.fromCharCode(_)},w.utf32ToString=function(_,I,D){void 0===I&&(I=0),void 0===D&&(D=_.length);for(var A="",S=I;S<D;++S){var v=_[S];v>65535?(v-=65536,A+=String.fromCharCode(55296+(v>>10))+String.fromCharCode(v%1024+56320)):A+=String.fromCharCode(v)}return A};var N=function(){function _(){this._interim=0}return _.prototype.clear=function(){this._interim=0},_.prototype.decode=function(I,D){var A=I.length;if(!A)return 0;var S=0,v=0;this._interim&&(56320<=(R=I.charCodeAt(v++))&&R<=57343?D[S++]=1024*(this._interim-55296)+R-56320+65536:(D[S++]=this._interim,D[S++]=R),this._interim=0);for(var g=v;g<A;++g){var T=I.charCodeAt(g);if(55296<=T&&T<=56319){if(++g>=A)return this._interim=T,S;var R;56320<=(R=I.charCodeAt(g))&&R<=57343?D[S++]=1024*(T-55296)+R-56320+65536:(D[S++]=T,D[S++]=R)}else 65279!==T&&(D[S++]=T)}return S},_}();w.StringToUtf32=N;var b=function(){function _(){this.interim=new Uint8Array(3)}return _.prototype.clear=function(){this.interim.fill(0)},_.prototype.decode=function(I,D){var A=I.length;if(!A)return 0;var S,v,g,T,R=0,k=0,E=0;if(this.interim[0]){var x=!1,O=this.interim[0];O&=192==(224&O)?31:224==(240&O)?15:7;for(var F=0,z=void 0;(z=63&this.interim[++F])&&F<4;)O<<=6,O|=z;for(var K=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,j=K-F;E<j;){if(E>=A)return 0;if(128!=(192&(z=I[E++]))){E--,x=!0;break}this.interim[F++]=z,O<<=6,O|=63&z}x||(2===K?O<128?E--:D[R++]=O:3===K?O<2048||O>=55296&&O<=57343||65279===O||(D[R++]=O):O<65536||O>1114111||(D[R++]=O)),this.interim.fill(0)}for(var J=A-4,ee=E;ee<A;){for(;!(!(ee<J)||128&(S=I[ee])||128&(v=I[ee+1])||128&(g=I[ee+2])||128&(T=I[ee+3]));)D[R++]=S,D[R++]=v,D[R++]=g,D[R++]=T,ee+=4;if((S=I[ee++])<128)D[R++]=S;else if(192==(224&S)){if(ee>=A)return this.interim[0]=S,R;if(128!=(192&(v=I[ee++]))){ee--;continue}if((k=(31&S)<<6|63&v)<128){ee--;continue}D[R++]=k}else if(224==(240&S)){if(ee>=A)return this.interim[0]=S,R;if(128!=(192&(v=I[ee++]))){ee--;continue}if(ee>=A)return this.interim[0]=S,this.interim[1]=v,R;if(128!=(192&(g=I[ee++]))){ee--;continue}if((k=(15&S)<<12|(63&v)<<6|63&g)<2048||k>=55296&&k<=57343||65279===k)continue;D[R++]=k}else if(240==(248&S)){if(ee>=A)return this.interim[0]=S,R;if(128!=(192&(v=I[ee++]))){ee--;continue}if(ee>=A)return this.interim[0]=S,this.interim[1]=v,R;if(128!=(192&(g=I[ee++]))){ee--;continue}if(ee>=A)return this.interim[0]=S,this.interim[1]=v,this.interim[2]=g,R;if(128!=(192&(T=I[ee++]))){ee--;continue}if((k=(7&S)<<18|(63&v)<<12|(63&g)<<6|63&T)<65536||k>1114111)continue;D[R++]=k}}return R},_}();w.Utf8ToUtf32=b},225:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.UnicodeV6=void 0;var b,_=N(8273),I=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],D=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],A=function(){function S(){if(this.version="6",!b){b=new Uint8Array(65536),(0,_.fill)(b,1),b[0]=0,(0,_.fill)(b,0,1,32),(0,_.fill)(b,0,127,160),(0,_.fill)(b,2,4352,4448),b[9001]=2,b[9002]=2,(0,_.fill)(b,2,11904,42192),b[12351]=1,(0,_.fill)(b,2,44032,55204),(0,_.fill)(b,2,63744,64256),(0,_.fill)(b,2,65040,65050),(0,_.fill)(b,2,65072,65136),(0,_.fill)(b,2,65280,65377),(0,_.fill)(b,2,65504,65511);for(var v=0;v<I.length;++v)(0,_.fill)(b,0,I[v][0],I[v][1]+1)}}return S.prototype.wcwidth=function(v){return v<32?0:v<127?1:v<65536?b[v]:function(g,T){var R,k=0,E=T.length-1;if(g<T[0][0]||g>T[E][1])return!1;for(;E>=k;)if(g>T[R=k+E>>1][1])k=R+1;else{if(!(g<T[R][0]))return!0;E=R-1}return!1}(v,D)?0:v>=131072&&v<=196605||v>=196608&&v<=262141?2:1},S}();w.UnicodeV6=A},5981:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.WriteBuffer=void 0;var N="undefined"==typeof queueMicrotask?function(_){Promise.resolve().then(_)}:queueMicrotask,b=function(){function _(I){this._action=I,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return _.prototype.writeSync=function(I,D){if(void 0!==D&&this._syncCalls>D)this._syncCalls=0;else if(this._pendingData+=I.length,this._writeBuffer.push(I),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var A;for(this._isSyncWriting=!0;A=this._writeBuffer.shift();){this._action(A);var S=this._callbacks.shift();S&&S()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},_.prototype.write=function(I,D){var A=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return A._innerWrite()})),this._pendingData+=I.length,this._writeBuffer.push(I),this._callbacks.push(D)},_.prototype._innerWrite=function(I,D){var A=this;void 0===I&&(I=0),void 0===D&&(D=!0);for(var S=I||Date.now();this._writeBuffer.length>this._bufferOffset;){var v=this._writeBuffer[this._bufferOffset],g=this._action(v,D);if(g)return void g.catch(function(R){return N(function(){throw R}),Promise.resolve(!1)}).then(function(R){return Date.now()-S>=12?setTimeout(function(){return A._innerWrite(0,R)}):A._innerWrite(S,R)});var T=this._callbacks[this._bufferOffset];if(T&&T(),this._bufferOffset++,this._pendingData-=v.length,Date.now()-S>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return A._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0)},_}();w.WriteBuffer=b},5770:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.PAYLOAD_LIMIT=void 0,w.PAYLOAD_LIMIT=1e7},6351:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.DcsHandler=w.DcsParser=void 0;var b=N(482),_=N(8742),I=N(5770),D=[],A=function(){function g(){this._handlers=Object.create(null),this._active=D,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return g.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=D},g.prototype.registerHandler=function(T,R){void 0===this._handlers[T]&&(this._handlers[T]=[]);var k=this._handlers[T];return k.push(R),{dispose:function(){var x=k.indexOf(R);-1!==x&&k.splice(x,1)}}},g.prototype.clearHandler=function(T){this._handlers[T]&&delete this._handlers[T]},g.prototype.setHandlerFallback=function(T){this._handlerFb=T},g.prototype.reset=function(){if(this._active.length)for(var T=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;T>=0;--T)this._active[T].unhook(!1);this._stack.paused=!1,this._active=D,this._ident=0},g.prototype.hook=function(T,R){if(this.reset(),this._ident=T,this._active=this._handlers[T]||D,this._active.length)for(var k=this._active.length-1;k>=0;k--)this._active[k].hook(R);else this._handlerFb(this._ident,"HOOK",R)},g.prototype.put=function(T,R,k){if(this._active.length)for(var E=this._active.length-1;E>=0;E--)this._active[E].put(T,R,k);else this._handlerFb(this._ident,"PUT",(0,b.utf32ToString)(T,R,k))},g.prototype.unhook=function(T,R){if(void 0===R&&(R=!0),this._active.length){var k=!1,E=this._active.length-1,x=!1;if(this._stack.paused&&(E=this._stack.loopPosition-1,k=R,x=this._stack.fallThrough,this._stack.paused=!1),!x&&!1===k){for(;E>=0&&!0!==(k=this._active[E].unhook(T));E--)if(k instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=E,this._stack.fallThrough=!1,k;E--}for(;E>=0;E--)if((k=this._active[E].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=E,this._stack.fallThrough=!0,k}else this._handlerFb(this._ident,"UNHOOK",T);this._active=D,this._ident=0},g}();w.DcsParser=A;var S=new _.Params;S.addParam(0);var v=function(){function g(T){this._handler=T,this._data="",this._params=S,this._hitLimit=!1}return g.prototype.hook=function(T){this._params=T.length>1||T.params[0]?T.clone():S,this._data="",this._hitLimit=!1},g.prototype.put=function(T,R,k){this._hitLimit||(this._data+=(0,b.utf32ToString)(T,R,k),this._data.length>I.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},g.prototype.unhook=function(T){var R=this,k=!1;if(this._hitLimit)k=!1;else if(T&&(k=this._handler(this._data,this._params))instanceof Promise)return k.then(function(E){return R._params=S,R._data="",R._hitLimit=!1,E});return this._params=S,this._data="",this._hitLimit=!1,k},g}();w.DcsHandler=v},2015:function(Z,w,N){var b,_=this&&this.__extends||(b=function(E,x){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,F){O.__proto__=F}||function(O,F){for(var z in F)Object.prototype.hasOwnProperty.call(F,z)&&(O[z]=F[z])})(E,x)},function(k,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function x(){this.constructor=k}b(k,E),k.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)});Object.defineProperty(w,"__esModule",{value:!0}),w.EscapeSequenceParser=w.VT500_TRANSITION_TABLE=w.TransitionTable=void 0;var I=N(844),D=N(8273),A=N(8742),S=N(6242),v=N(6351),g=function(){function k(E){this.table=new Uint8Array(E)}return k.prototype.setDefault=function(E,x){(0,D.fill)(this.table,E<<4|x)},k.prototype.add=function(E,x,O,F){this.table[x<<8|E]=O<<4|F},k.prototype.addMany=function(E,x,O,F){for(var z=0;z<E.length;z++)this.table[x<<8|E[z]]=O<<4|F},k}();w.TransitionTable=g;var T=160;w.VT500_TRANSITION_TABLE=function(){var k=new g(4095),E=Array.apply(null,Array(256)).map(function(j,J){return J}),x=function(J,ee){return E.slice(J,ee)},O=x(32,127),F=x(0,24);F.push(25),F.push.apply(F,x(28,32));var z,K=x(0,14);for(z in k.setDefault(1,0),k.addMany(O,0,2,0),K)k.addMany([24,26,153,154],z,3,0),k.addMany(x(128,144),z,3,0),k.addMany(x(144,152),z,3,0),k.add(156,z,0,0),k.add(27,z,11,1),k.add(157,z,4,8),k.addMany([152,158,159],z,0,7),k.add(155,z,11,3),k.add(144,z,11,9);return k.addMany(F,0,3,0),k.addMany(F,1,3,1),k.add(127,1,0,1),k.addMany(F,8,0,8),k.addMany(F,3,3,3),k.add(127,3,0,3),k.addMany(F,4,3,4),k.add(127,4,0,4),k.addMany(F,6,3,6),k.addMany(F,5,3,5),k.add(127,5,0,5),k.addMany(F,2,3,2),k.add(127,2,0,2),k.add(93,1,4,8),k.addMany(O,8,5,8),k.add(127,8,5,8),k.addMany([156,27,24,26,7],8,6,0),k.addMany(x(28,32),8,0,8),k.addMany([88,94,95],1,0,7),k.addMany(O,7,0,7),k.addMany(F,7,0,7),k.add(156,7,0,0),k.add(127,7,0,7),k.add(91,1,11,3),k.addMany(x(64,127),3,7,0),k.addMany(x(48,60),3,8,4),k.addMany([60,61,62,63],3,9,4),k.addMany(x(48,60),4,8,4),k.addMany(x(64,127),4,7,0),k.addMany([60,61,62,63],4,0,6),k.addMany(x(32,64),6,0,6),k.add(127,6,0,6),k.addMany(x(64,127),6,0,0),k.addMany(x(32,48),3,9,5),k.addMany(x(32,48),5,9,5),k.addMany(x(48,64),5,0,6),k.addMany(x(64,127),5,7,0),k.addMany(x(32,48),4,9,5),k.addMany(x(32,48),1,9,2),k.addMany(x(32,48),2,9,2),k.addMany(x(48,127),2,10,0),k.addMany(x(48,80),1,10,0),k.addMany(x(81,88),1,10,0),k.addMany([89,90,92],1,10,0),k.addMany(x(96,127),1,10,0),k.add(80,1,11,9),k.addMany(F,9,0,9),k.add(127,9,0,9),k.addMany(x(28,32),9,0,9),k.addMany(x(32,48),9,9,12),k.addMany(x(48,60),9,8,10),k.addMany([60,61,62,63],9,9,10),k.addMany(F,11,0,11),k.addMany(x(32,128),11,0,11),k.addMany(x(28,32),11,0,11),k.addMany(F,10,0,10),k.add(127,10,0,10),k.addMany(x(28,32),10,0,10),k.addMany(x(48,60),10,8,10),k.addMany([60,61,62,63],10,0,11),k.addMany(x(32,48),10,9,12),k.addMany(F,12,0,12),k.add(127,12,0,12),k.addMany(x(28,32),12,0,12),k.addMany(x(32,48),12,9,12),k.addMany(x(48,64),12,0,11),k.addMany(x(64,127),12,12,13),k.addMany(x(64,127),10,12,13),k.addMany(x(64,127),9,12,13),k.addMany(F,13,13,13),k.addMany(O,13,13,13),k.add(127,13,0,13),k.addMany([27,156,24,26],13,14,0),k.add(T,0,2,0),k.add(T,8,5,8),k.add(T,6,0,6),k.add(T,11,0,11),k.add(T,13,13,13),k}();var R=function(k){function E(x){void 0===x&&(x=w.VT500_TRANSITION_TABLE);var O=k.call(this)||this;return O._transitions=x,O._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},O.initialState=0,O.currentState=O.initialState,O._params=new A.Params,O._params.addParam(0),O._collect=0,O.precedingCodepoint=0,O._printHandlerFb=function(F,z,K){},O._executeHandlerFb=function(F){},O._csiHandlerFb=function(F,z){},O._escHandlerFb=function(F){},O._errorHandlerFb=function(F){return F},O._printHandler=O._printHandlerFb,O._executeHandlers=Object.create(null),O._csiHandlers=Object.create(null),O._escHandlers=Object.create(null),O._oscParser=new S.OscParser,O._dcsParser=new v.DcsParser,O._errorHandler=O._errorHandlerFb,O.registerEscHandler({final:"\\"},function(){return!0}),O}return _(E,k),E.prototype._identifier=function(x,O){void 0===O&&(O=[64,126]);var F=0;if(x.prefix){if(x.prefix.length>1)throw new Error("only one byte as prefix supported");if((F=x.prefix.charCodeAt(0))&&60>F||F>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(x.intermediates){if(x.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var z=0;z<x.intermediates.length;++z){var K=x.intermediates.charCodeAt(z);if(32>K||K>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");F<<=8,F|=K}}if(1!==x.final.length)throw new Error("final must be a single byte");var j=x.final.charCodeAt(0);if(O[0]>j||j>O[1])throw new Error("final must be in range "+O[0]+" .. "+O[1]);return(F<<=8)|j},E.prototype.identToString=function(x){for(var O=[];x;)O.push(String.fromCharCode(255&x)),x>>=8;return O.reverse().join("")},E.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},E.prototype.setPrintHandler=function(x){this._printHandler=x},E.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},E.prototype.registerEscHandler=function(x,O){var F=this._identifier(x,[48,126]);void 0===this._escHandlers[F]&&(this._escHandlers[F]=[]);var z=this._escHandlers[F];return z.push(O),{dispose:function(){var j=z.indexOf(O);-1!==j&&z.splice(j,1)}}},E.prototype.clearEscHandler=function(x){this._escHandlers[this._identifier(x,[48,126])]&&delete this._escHandlers[this._identifier(x,[48,126])]},E.prototype.setEscHandlerFallback=function(x){this._escHandlerFb=x},E.prototype.setExecuteHandler=function(x,O){this._executeHandlers[x.charCodeAt(0)]=O},E.prototype.clearExecuteHandler=function(x){this._executeHandlers[x.charCodeAt(0)]&&delete this._executeHandlers[x.charCodeAt(0)]},E.prototype.setExecuteHandlerFallback=function(x){this._executeHandlerFb=x},E.prototype.registerCsiHandler=function(x,O){var F=this._identifier(x);void 0===this._csiHandlers[F]&&(this._csiHandlers[F]=[]);var z=this._csiHandlers[F];return z.push(O),{dispose:function(){var j=z.indexOf(O);-1!==j&&z.splice(j,1)}}},E.prototype.clearCsiHandler=function(x){this._csiHandlers[this._identifier(x)]&&delete this._csiHandlers[this._identifier(x)]},E.prototype.setCsiHandlerFallback=function(x){this._csiHandlerFb=x},E.prototype.registerDcsHandler=function(x,O){return this._dcsParser.registerHandler(this._identifier(x),O)},E.prototype.clearDcsHandler=function(x){this._dcsParser.clearHandler(this._identifier(x))},E.prototype.setDcsHandlerFallback=function(x){this._dcsParser.setHandlerFallback(x)},E.prototype.registerOscHandler=function(x,O){return this._oscParser.registerHandler(x,O)},E.prototype.clearOscHandler=function(x){this._oscParser.clearHandler(x)},E.prototype.setOscHandlerFallback=function(x){this._oscParser.setHandlerFallback(x)},E.prototype.setErrorHandler=function(x){this._errorHandler=x},E.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},E.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])},E.prototype._preserveStack=function(x,O,F,z,K){this._parseStack.state=x,this._parseStack.handlers=O,this._parseStack.handlerPos=F,this._parseStack.transition=z,this._parseStack.chunkPos=K},E.prototype.parse=function(x,O,F){var z,K=0,j=0,J=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,J=this._parseStack.chunkPos+1;else{if(void 0===F||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var ee=this._parseStack.handlers,$=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===F&&$>-1)for(;$>=0&&!0!==(z=ee[$](this._params));$--)if(z instanceof Promise)return this._parseStack.handlerPos=$,z;this._parseStack.handlers=[];break;case 4:if(!1===F&&$>-1)for(;$>=0&&!0!==(z=ee[$]());$--)if(z instanceof Promise)return this._parseStack.handlerPos=$,z;this._parseStack.handlers=[];break;case 6:if(z=this._dcsParser.unhook(24!==(K=x[this._parseStack.chunkPos])&&26!==K,F))return z;27===K&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(z=this._oscParser.end(24!==(K=x[this._parseStack.chunkPos])&&26!==K,F))return z;27===K&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,J=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var ae=J;ae<O;++ae){switch((j=this._transitions.table[this.currentState<<8|((K=x[ae])<160?K:T)])>>4){case 2:for(var se=ae+1;;++se){if(se>=O||(K=x[se])<32||K>126&&K<T){this._printHandler(x,ae,se),ae=se-1;break}if(++se>=O||(K=x[se])<32||K>126&&K<T){this._printHandler(x,ae,se),ae=se-1;break}if(++se>=O||(K=x[se])<32||K>126&&K<T){this._printHandler(x,ae,se),ae=se-1;break}if(++se>=O||(K=x[se])<32||K>126&&K<T){this._printHandler(x,ae,se),ae=se-1;break}}break;case 3:this._executeHandlers[K]?this._executeHandlers[K]():this._executeHandlerFb(K),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:ae,code:K,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var ce=(ee=this._csiHandlers[this._collect<<8|K])?ee.length-1:-1;ce>=0&&!0!==(z=ee[ce](this._params));ce--)if(z instanceof Promise)return this._preserveStack(3,ee,ce,j,ae),z;ce<0&&this._csiHandlerFb(this._collect<<8|K,this._params),this.precedingCodepoint=0;break;case 8:do{switch(K){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(K-48)}}while(++ae<O&&(K=x[ae])>47&&K<60);ae--;break;case 9:this._collect<<=8,this._collect|=K;break;case 10:for(var le=this._escHandlers[this._collect<<8|K],oe=le?le.length-1:-1;oe>=0&&!0!==(z=le[oe]());oe--)if(z instanceof Promise)return this._preserveStack(4,le,oe,j,ae),z;oe<0&&this._escHandlerFb(this._collect<<8|K),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|K,this._params);break;case 13:for(var Ae=ae+1;;++Ae)if(Ae>=O||24===(K=x[Ae])||26===K||27===K||K>127&&K<T){this._dcsParser.put(x,ae,Ae),ae=Ae-1;break}break;case 14:if(z=this._dcsParser.unhook(24!==K&&26!==K))return this._preserveStack(6,[],0,j,ae),z;27===K&&(j|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(var be=ae+1;;be++)if(be>=O||(K=x[be])<32||K>127&&K<T){this._oscParser.put(x,ae,be),ae=be-1;break}break;case 6:if(z=this._oscParser.end(24!==K&&26!==K))return this._preserveStack(5,[],0,j,ae),z;27===K&&(j|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&j}},E}(I.Disposable);w.EscapeSequenceParser=R},6242:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.OscHandler=w.OscParser=void 0;var b=N(5770),_=N(482),I=[],D=function(){function S(){this._state=0,this._active=I,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return S.prototype.registerHandler=function(v,g){void 0===this._handlers[v]&&(this._handlers[v]=[]);var T=this._handlers[v];return T.push(g),{dispose:function(){var k=T.indexOf(g);-1!==k&&T.splice(k,1)}}},S.prototype.clearHandler=function(v){this._handlers[v]&&delete this._handlers[v]},S.prototype.setHandlerFallback=function(v){this._handlerFb=v},S.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=I},S.prototype.reset=function(){if(2===this._state)for(var v=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;v>=0;--v)this._active[v].end(!1);this._stack.paused=!1,this._active=I,this._id=-1,this._state=0},S.prototype._start=function(){if(this._active=this._handlers[this._id]||I,this._active.length)for(var v=this._active.length-1;v>=0;v--)this._active[v].start();else this._handlerFb(this._id,"START")},S.prototype._put=function(v,g,T){if(this._active.length)for(var R=this._active.length-1;R>=0;R--)this._active[R].put(v,g,T);else this._handlerFb(this._id,"PUT",(0,_.utf32ToString)(v,g,T))},S.prototype.start=function(){this.reset(),this._state=1},S.prototype.put=function(v,g,T){if(3!==this._state){if(1===this._state)for(;g<T;){var R=v[g++];if(59===R){this._state=2,this._start();break}if(R<48||57<R)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+R-48}2===this._state&&T-g>0&&this._put(v,g,T)}},S.prototype.end=function(v,g){if(void 0===g&&(g=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var T=!1,R=this._active.length-1,k=!1;if(this._stack.paused&&(R=this._stack.loopPosition-1,T=g,k=this._stack.fallThrough,this._stack.paused=!1),!k&&!1===T){for(;R>=0&&!0!==(T=this._active[R].end(v));R--)if(T instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=R,this._stack.fallThrough=!1,T;R--}for(;R>=0;R--)if((T=this._active[R].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=R,this._stack.fallThrough=!0,T}else this._handlerFb(this._id,"END",v);this._active=I,this._id=-1,this._state=0}},S}();w.OscParser=D;var A=function(){function S(v){this._handler=v,this._data="",this._hitLimit=!1}return S.prototype.start=function(){this._data="",this._hitLimit=!1},S.prototype.put=function(v,g,T){this._hitLimit||(this._data+=(0,_.utf32ToString)(v,g,T),this._data.length>b.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},S.prototype.end=function(v){var g=this,T=!1;if(this._hitLimit)T=!1;else if(v&&(T=this._handler(this._data))instanceof Promise)return T.then(function(R){return g._data="",g._hitLimit=!1,R});return this._data="",this._hitLimit=!1,T},S}();w.OscHandler=A},8742:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.Params=void 0;var N=2147483647,b=function(){function _(I,D){if(void 0===I&&(I=32),void 0===D&&(D=32),this.maxLength=I,this.maxSubParamsLength=D,D>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(I),this.length=0,this._subParams=new Int32Array(D),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(I),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return _.fromArray=function(I){var D=new _;if(!I.length)return D;for(var A=I[0]instanceof Array?1:0;A<I.length;++A){var S=I[A];if(S instanceof Array)for(var v=0;v<S.length;++v)D.addSubParam(S[v]);else D.addParam(S)}return D},_.prototype.clone=function(){var I=new _(this.maxLength,this.maxSubParamsLength);return I.params.set(this.params),I.length=this.length,I._subParams.set(this._subParams),I._subParamsLength=this._subParamsLength,I._subParamsIdx.set(this._subParamsIdx),I._rejectDigits=this._rejectDigits,I._rejectSubDigits=this._rejectSubDigits,I._digitIsSub=this._digitIsSub,I},_.prototype.toArray=function(){for(var I=[],D=0;D<this.length;++D){I.push(this.params[D]);var A=this._subParamsIdx[D]>>8,S=255&this._subParamsIdx[D];S-A>0&&I.push(Array.prototype.slice.call(this._subParams,A,S))}return I},_.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},_.prototype.addParam=function(I){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(I<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=I>N?N:I}},_.prototype.addSubParam=function(I){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(I<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=I>N?N:I,this._subParamsIdx[this.length-1]++}},_.prototype.hasSubParams=function(I){return(255&this._subParamsIdx[I])-(this._subParamsIdx[I]>>8)>0},_.prototype.getSubParams=function(I){var D=this._subParamsIdx[I]>>8,A=255&this._subParamsIdx[I];return A-D>0?this._subParams.subarray(D,A):null},_.prototype.getSubParamsAll=function(){for(var I={},D=0;D<this.length;++D){var A=this._subParamsIdx[D]>>8,S=255&this._subParamsIdx[D];S-A>0&&(I[D]=this._subParams.slice(A,S))}return I},_.prototype.addDigit=function(I){var D;if(!(this._rejectDigits||!(D=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var A=this._digitIsSub?this._subParams:this.params,S=A[D-1];A[D-1]=~S?Math.min(10*S+I,N):I}},_}();w.Params=b},5741:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.AddonManager=void 0;var N=function(){function b(){this._addons=[]}return b.prototype.dispose=function(){for(var _=this._addons.length-1;_>=0;_--)this._addons[_].instance.dispose()},b.prototype.loadAddon=function(_,I){var D=this,A={instance:I,dispose:I.dispose,isDisposed:!1};this._addons.push(A),I.dispose=function(){return D._wrappedAddonDispose(A)},I.activate(_)},b.prototype._wrappedAddonDispose=function(_){if(!_.isDisposed){for(var I=-1,D=0;D<this._addons.length;D++)if(this._addons[D]===_){I=D;break}if(-1===I)throw new Error("Could not dispose an addon that has not been loaded");_.isDisposed=!0,_.dispose.apply(_.instance),this._addons.splice(I,1)}},b}();w.AddonManager=N},8771:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.BufferApiView=void 0;var b=N(3785),_=N(511),I=function(){function D(A,S){this._buffer=A,this.type=S}return D.prototype.init=function(A){return this._buffer=A,this},Object.defineProperty(D.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),D.prototype.getLine=function(A){var S=this._buffer.lines.get(A);if(S)return new b.BufferLineApiView(S)},D.prototype.getNullCell=function(){return new _.CellData},D}();w.BufferApiView=I},3785:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.BufferLineApiView=void 0;var b=N(511),_=function(){function I(D){this._line=D}return Object.defineProperty(I.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),I.prototype.getCell=function(D,A){if(!(D<0||D>=this._line.length))return A?(this._line.loadCell(D,A),A):this._line.loadCell(D,new b.CellData)},I.prototype.translateToString=function(D,A,S){return this._line.translateToString(D,A,S)},I}();w.BufferLineApiView=_},8285:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.BufferNamespaceApi=void 0;var b=N(8771),_=N(8460),I=function(){function D(A){var S=this;this._core=A,this._onBufferChange=new _.EventEmitter,this._normal=new b.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new b.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return S._onBufferChange.fire(S.active)})}return Object.defineProperty(D.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),D}();w.BufferNamespaceApi=I},7975:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.ParserApi=void 0;var N=function(){function b(_){this._core=_}return b.prototype.registerCsiHandler=function(_,I){return this._core.registerCsiHandler(_,function(D){return I(D.toArray())})},b.prototype.addCsiHandler=function(_,I){return this.registerCsiHandler(_,I)},b.prototype.registerDcsHandler=function(_,I){return this._core.registerDcsHandler(_,function(D,A){return I(D,A.toArray())})},b.prototype.addDcsHandler=function(_,I){return this.registerDcsHandler(_,I)},b.prototype.registerEscHandler=function(_,I){return this._core.registerEscHandler(_,I)},b.prototype.addEscHandler=function(_,I){return this.registerEscHandler(_,I)},b.prototype.registerOscHandler=function(_,I){return this._core.registerOscHandler(_,I)},b.prototype.addOscHandler=function(_,I){return this.registerOscHandler(_,I)},b}();w.ParserApi=N},7090:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.UnicodeApi=void 0;var N=function(){function b(_){this._core=_}return b.prototype.register=function(_){this._core.unicodeService.register(_)},Object.defineProperty(b.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(I){this._core.unicodeService.activeVersion=I},enumerable:!1,configurable:!0}),b}();w.UnicodeApi=N},744:function(Z,w,N){var b,_=this&&this.__extends||(b=function(k,E){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var F in O)Object.prototype.hasOwnProperty.call(O,F)&&(x[F]=O[F])})(k,E)},function(R,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function E(){this.constructor=R}b(R,k),R.prototype=null===k?Object.create(k):(E.prototype=k.prototype,new E)}),I=this&&this.__decorate||function(R,k,E,x){var O,F=arguments.length,z=F<3?k:null===x?x=Object.getOwnPropertyDescriptor(k,E):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(R,k,E,x);else for(var K=R.length-1;K>=0;K--)(O=R[K])&&(z=(F<3?O(z):F>3?O(k,E,z):O(k,E))||z);return F>3&&z&&Object.defineProperty(k,E,z),z},D=this&&this.__param||function(R,k){return function(E,x){k(E,x,R)}};Object.defineProperty(w,"__esModule",{value:!0}),w.BufferService=w.MINIMUM_ROWS=w.MINIMUM_COLS=void 0;var A=N(2585),S=N(5295),v=N(8460),g=N(844);w.MINIMUM_COLS=2,w.MINIMUM_ROWS=1;var T=function(R){function k(E){var x=R.call(this)||this;return x._optionsService=E,x.isUserScrolling=!1,x._onResize=new v.EventEmitter,x._onScroll=new v.EventEmitter,x.cols=Math.max(E.options.cols||0,w.MINIMUM_COLS),x.rows=Math.max(E.options.rows||0,w.MINIMUM_ROWS),x.buffers=new S.BufferSet(E,x),x}return _(k,R),Object.defineProperty(k.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),k.prototype.dispose=function(){R.prototype.dispose.call(this),this.buffers.dispose()},k.prototype.resize=function(E,x){this.cols=E,this.rows=x,this.buffers.resize(E,x),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:E,rows:x})},k.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},k.prototype.scroll=function(E,x){void 0===x&&(x=!1);var O,F=this.buffer;(O=this._cachedBlankLine)&&O.length===this.cols&&O.getFg(0)===E.fg&&O.getBg(0)===E.bg||(O=F.getBlankLine(E,x),this._cachedBlankLine=O),O.isWrapped=x;var z=F.ybase+F.scrollTop,K=F.ybase+F.scrollBottom;if(0===F.scrollTop){var j=F.lines.isFull;K===F.lines.length-1?j?F.lines.recycle().copyFrom(O):F.lines.push(O.clone()):F.lines.splice(K+1,0,O.clone()),j?this.isUserScrolling&&(F.ydisp=Math.max(F.ydisp-1,0)):(F.ybase++,this.isUserScrolling||F.ydisp++)}else F.lines.shiftElements(z+1,K-z+1-1,-1),F.lines.set(K,O.clone());this.isUserScrolling||(F.ydisp=F.ybase),this._onScroll.fire(F.ydisp)},k.prototype.scrollLines=function(E,x,O){var F=this.buffer;if(E<0){if(0===F.ydisp)return;this.isUserScrolling=!0}else E+F.ydisp>=F.ybase&&(this.isUserScrolling=!1);var z=F.ydisp;F.ydisp=Math.max(Math.min(F.ydisp+E,F.ybase),0),z!==F.ydisp&&(x||this._onScroll.fire(F.ydisp))},k.prototype.scrollPages=function(E){this.scrollLines(E*(this.rows-1))},k.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},k.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},k.prototype.scrollToLine=function(E){var x=E-this.buffer.ydisp;0!==x&&this.scrollLines(x)},I([D(0,A.IOptionsService)],k)}(g.Disposable);w.BufferService=T},7994:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.CharsetService=void 0;var N=function(){function b(){this.glevel=0,this._charsets=[]}return b.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},b.prototype.setgLevel=function(_){this.glevel=_,this.charset=this._charsets[_]},b.prototype.setgCharset=function(_,I){this._charsets[_]=I,this.glevel===_&&(this.charset=I)},b}();w.CharsetService=N},1753:function(Z,w,N){var b=this&&this.__decorate||function(R,k,E,x){var O,F=arguments.length,z=F<3?k:null===x?x=Object.getOwnPropertyDescriptor(k,E):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(R,k,E,x);else for(var K=R.length-1;K>=0;K--)(O=R[K])&&(z=(F<3?O(z):F>3?O(k,E,z):O(k,E))||z);return F>3&&z&&Object.defineProperty(k,E,z),z},_=this&&this.__param||function(R,k){return function(E,x){k(E,x,R)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CoreMouseService=void 0;var I=N(2585),D=N(8460),A={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(k){return 4!==k.button&&1===k.action&&(k.ctrl=!1,k.alt=!1,k.shift=!1,!0)}},VT200:{events:19,restrict:function(k){return 32!==k.action}},DRAG:{events:23,restrict:function(k){return 32!==k.action||3!==k.button}},ANY:{events:31,restrict:function(k){return!0}}};function S(R,k){var E=(R.ctrl?16:0)|(R.shift?4:0)|(R.alt?8:0);return 4===R.button?(E|=64,E|=R.action):(E|=3&R.button,4&R.button&&(E|=64),8&R.button&&(E|=128),32===R.action?E|=32:0!==R.action||k||(E|=3)),E}var v=String.fromCharCode,g={DEFAULT:function(k){var E=[S(k,!1)+32,k.col+32,k.row+32];return E[0]>255||E[1]>255||E[2]>255?"":"\x1b[M"+v(E[0])+v(E[1])+v(E[2])},SGR:function(k){var E=0===k.action&&4!==k.button?"m":"M";return"\x1b[<"+S(k,!0)+";"+k.col+";"+k.row+E}},T=function(){function R(k,E){this._bufferService=k,this._coreService=E,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new D.EventEmitter,this._lastEvent=null;for(var x=0,O=Object.keys(A);x<O.length;x++){var F=O[x];this.addProtocol(F,A[F])}for(var z=0,K=Object.keys(g);z<K.length;z++){var j=K[z];this.addEncoding(j,g[j])}this.reset()}return R.prototype.addProtocol=function(k,E){this._protocols[k]=E},R.prototype.addEncoding=function(k,E){this._encodings[k]=E},Object.defineProperty(R.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(E){if(!this._protocols[E])throw new Error('unknown protocol "'+E+'"');this._activeProtocol=E,this._onProtocolChange.fire(this._protocols[E].events)},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(E){if(!this._encodings[E])throw new Error('unknown encoding "'+E+'"');this._activeEncoding=E},enumerable:!1,configurable:!0}),R.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(R.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),R.prototype.triggerMouseEvent=function(k){if(k.col<0||k.col>=this._bufferService.cols||k.row<0||k.row>=this._bufferService.rows||4===k.button&&32===k.action||3===k.button&&32!==k.action||4!==k.button&&(2===k.action||3===k.action)||(k.col++,k.row++,32===k.action&&this._lastEvent&&this._compareEvents(this._lastEvent,k))||!this._protocols[this._activeProtocol].restrict(k))return!1;var E=this._encodings[this._activeEncoding](k);return E&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(E):this._coreService.triggerDataEvent(E,!0)),this._lastEvent=k,!0},R.prototype.explainEvents=function(k){return{down:!!(1&k),up:!!(2&k),drag:!!(4&k),move:!!(8&k),wheel:!!(16&k)}},R.prototype._compareEvents=function(k,E){return k.col===E.col&&k.row===E.row&&k.button===E.button&&k.action===E.action&&k.ctrl===E.ctrl&&k.alt===E.alt&&k.shift===E.shift},b([_(0,I.IBufferService),_(1,I.ICoreService)],R)}();w.CoreMouseService=T},6975:function(Z,w,N){var b,_=this&&this.__extends||(b=function(x,O){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,z){F.__proto__=z}||function(F,z){for(var K in z)Object.prototype.hasOwnProperty.call(z,K)&&(F[K]=z[K])})(x,O)},function(E,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function O(){this.constructor=E}b(E,x),E.prototype=null===x?Object.create(x):(O.prototype=x.prototype,new O)}),I=this&&this.__decorate||function(E,x,O,F){var z,K=arguments.length,j=K<3?x:null===F?F=Object.getOwnPropertyDescriptor(x,O):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(E,x,O,F);else for(var J=E.length-1;J>=0;J--)(z=E[J])&&(j=(K<3?z(j):K>3?z(x,O,j):z(x,O))||j);return K>3&&j&&Object.defineProperty(x,O,j),j},D=this&&this.__param||function(E,x){return function(O,F){x(O,F,E)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CoreService=void 0;var A=N(2585),S=N(8460),v=N(1439),g=N(844),T=Object.freeze({insertMode:!1}),R=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),k=function(E){function x(O,F,z,K){var j=E.call(this)||this;return j._bufferService=F,j._logService=z,j._optionsService=K,j.isCursorInitialized=!1,j.isCursorHidden=!1,j._onData=j.register(new S.EventEmitter),j._onUserInput=j.register(new S.EventEmitter),j._onBinary=j.register(new S.EventEmitter),j._scrollToBottom=O,j.register({dispose:function(){return j._scrollToBottom=void 0}}),j.modes=(0,v.clone)(T),j.decPrivateModes=(0,v.clone)(R),j}return _(x,E),Object.defineProperty(x.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),x.prototype.reset=function(){this.modes=(0,v.clone)(T),this.decPrivateModes=(0,v.clone)(R)},x.prototype.triggerDataEvent=function(O,F){if(void 0===F&&(F=!1),!this._optionsService.options.disableStdin){var z=this._bufferService.buffer;z.ybase!==z.ydisp&&this._scrollToBottom(),F&&this._onUserInput.fire(),this._logService.debug('sending data "'+O+'"',function(){return O.split("").map(function(K){return K.charCodeAt(0)})}),this._onData.fire(O)}},x.prototype.triggerBinaryEvent=function(O){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+O+'"',function(){return O.split("").map(function(F){return F.charCodeAt(0)})}),this._onBinary.fire(O))},I([D(1,A.IBufferService),D(2,A.ILogService),D(3,A.IOptionsService)],x)}(g.Disposable);w.CoreService=k},3730:function(Z,w,N){var b=this&&this.__decorate||function(A,S,v,g){var T,R=arguments.length,k=R<3?S:null===g?g=Object.getOwnPropertyDescriptor(S,v):g;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)k=Reflect.decorate(A,S,v,g);else for(var E=A.length-1;E>=0;E--)(T=A[E])&&(k=(R<3?T(k):R>3?T(S,v,k):T(S,v))||k);return R>3&&k&&Object.defineProperty(S,v,k),k},_=this&&this.__param||function(A,S){return function(v,g){S(v,g,A)}};Object.defineProperty(w,"__esModule",{value:!0}),w.DirtyRowService=void 0;var I=N(2585),D=function(){function A(S){this._bufferService=S,this.clearRange()}return Object.defineProperty(A.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),A.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},A.prototype.markDirty=function(S){S<this._start?this._start=S:S>this._end&&(this._end=S)},A.prototype.markRangeDirty=function(S,v){if(S>v){var g=S;S=v,v=g}S<this._start&&(this._start=S),v>this._end&&(this._end=v)},A.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},b([_(0,I.IBufferService)],A)}();w.DirtyRowService=D},4348:function(Z,w,N){var b=this&&this.__spreadArray||function(S,v,g){if(g||2===arguments.length)for(var T,R=0,k=v.length;R<k;R++)!T&&R in v||(T||(T=Array.prototype.slice.call(v,0,R)),T[R]=v[R]);return S.concat(T||Array.prototype.slice.call(v))};Object.defineProperty(w,"__esModule",{value:!0}),w.InstantiationService=w.ServiceCollection=void 0;var _=N(2585),I=N(8343),D=function(){function S(){for(var v=[],g=0;g<arguments.length;g++)v[g]=arguments[g];this._entries=new Map;for(var T=0,R=v;T<R.length;T++){var k=R[T];this.set(k[0],k[1])}}return S.prototype.set=function(v,g){var T=this._entries.get(v);return this._entries.set(v,g),T},S.prototype.forEach=function(v){this._entries.forEach(function(g,T){return v(T,g)})},S.prototype.has=function(v){return this._entries.has(v)},S.prototype.get=function(v){return this._entries.get(v)},S}();w.ServiceCollection=D;var A=function(){function S(){this._services=new D,this._services.set(_.IInstantiationService,this)}return S.prototype.setService=function(v,g){this._services.set(v,g)},S.prototype.getService=function(v){return this._services.get(v)},S.prototype.createInstance=function(v){for(var g=[],T=1;T<arguments.length;T++)g[T-1]=arguments[T];for(var R=(0,I.getServiceDependencies)(v).sort(function(K,j){return K.index-j.index}),k=[],E=0,x=R;E<x.length;E++){var O=x[E],F=this._services.get(O.id);if(!F)throw new Error("[createInstance] "+v.name+" depends on UNKNOWN service "+O.id+".");k.push(F)}var z=R.length>0?R[0].index:g.length;if(g.length!==z)throw new Error("[createInstance] First service dependency of "+v.name+" at position "+(z+1)+" conflicts with "+g.length+" static arguments");return new(v.bind.apply(v,b([void 0],b(b([],g,!0),k,!0),!1)))},S}();w.InstantiationService=A},7866:function(Z,w,N){var b=this&&this.__decorate||function(v,g,T,R){var k,E=arguments.length,x=E<3?g:null===R?R=Object.getOwnPropertyDescriptor(g,T):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(v,g,T,R);else for(var O=v.length-1;O>=0;O--)(k=v[O])&&(x=(E<3?k(x):E>3?k(g,T,x):k(g,T))||x);return E>3&&x&&Object.defineProperty(g,T,x),x},_=this&&this.__param||function(v,g){return function(T,R){g(T,R,v)}},I=this&&this.__spreadArray||function(v,g,T){if(T||2===arguments.length)for(var R,k=0,E=g.length;k<E;k++)!R&&k in g||(R||(R=Array.prototype.slice.call(g,0,k)),R[k]=g[k]);return v.concat(R||Array.prototype.slice.call(g))};Object.defineProperty(w,"__esModule",{value:!0}),w.LogService=void 0;var D=N(2585),A={debug:D.LogLevelEnum.DEBUG,info:D.LogLevelEnum.INFO,warn:D.LogLevelEnum.WARN,error:D.LogLevelEnum.ERROR,off:D.LogLevelEnum.OFF},S=function(){function v(g){var T=this;this._optionsService=g,this.logLevel=D.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(function(R){"logLevel"===R&&T._updateLogLevel()})}return v.prototype._updateLogLevel=function(){this.logLevel=A[this._optionsService.options.logLevel]},v.prototype._evalLazyOptionalParams=function(g){for(var T=0;T<g.length;T++)"function"==typeof g[T]&&(g[T]=g[T]())},v.prototype._log=function(g,T,R){this._evalLazyOptionalParams(R),g.call.apply(g,I([console,"xterm.js: "+T],R,!1))},v.prototype.debug=function(g){for(var T=[],R=1;R<arguments.length;R++)T[R-1]=arguments[R];this.logLevel<=D.LogLevelEnum.DEBUG&&this._log(console.log,g,T)},v.prototype.info=function(g){for(var T=[],R=1;R<arguments.length;R++)T[R-1]=arguments[R];this.logLevel<=D.LogLevelEnum.INFO&&this._log(console.info,g,T)},v.prototype.warn=function(g){for(var T=[],R=1;R<arguments.length;R++)T[R-1]=arguments[R];this.logLevel<=D.LogLevelEnum.WARN&&this._log(console.warn,g,T)},v.prototype.error=function(g){for(var T=[],R=1;R<arguments.length;R++)T[R-1]=arguments[R];this.logLevel<=D.LogLevelEnum.ERROR&&this._log(console.error,g,T)},b([_(0,D.IOptionsService)],v)}();w.LogService=S},7302:function(Z,w,N){var b=this&&this.__assign||function(){return(b=Object.assign||function(v){for(var g,T=1,R=arguments.length;T<R;T++)for(var k in g=arguments[T])Object.prototype.hasOwnProperty.call(g,k)&&(v[k]=g[k]);return v}).apply(this,arguments)};Object.defineProperty(w,"__esModule",{value:!0}),w.OptionsService=w.DEFAULT_OPTIONS=w.DEFAULT_BELL_SOUND=void 0;var _=N(8460),I=N(6114);w.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",w.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,bellSound:w.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:I.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1};var D=["normal","bold","100","200","300","400","500","600","700","800","900"],A=["cols","rows"],S=function(){function v(g){for(var T in this._onOptionChange=new _.EventEmitter,this._options=b({},w.DEFAULT_OPTIONS),g)if(T in this._options)try{this._options[T]=this._sanitizeAndValidateOption(T,g[T])}catch(k){console.error(k)}this.options=this._setupOptions(this._options,!1),this.publicOptions=this._setupOptions(this._options,!0)}return Object.defineProperty(v.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),v.prototype._setupOptions=function(g,T){var R=this,k=b({},g),E=function(F){Object.defineProperty(k,F,{get:function(){if(!(F in w.DEFAULT_OPTIONS))throw new Error('No option with key "'+F+'"');return R._options[F]},set:function(K){if(!(F in w.DEFAULT_OPTIONS))throw new Error('No option with key "'+F+'"');if(T&&A.includes(F))throw new Error('Option "'+F+'" can only be set in the constructor');K=R._sanitizeAndValidateOption(F,K),R._options[F]!==K&&(R._options[F]=K,R._onOptionChange.fire(F))}})};for(var x in k)E(x);return k},v.prototype.setOption=function(g,T){this.publicOptions[g]=T},v.prototype._sanitizeAndValidateOption=function(g,T){switch(g){case"bellStyle":case"cursorStyle":case"rendererType":case"wordSeparator":T||(T=w.DEFAULT_OPTIONS[g]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof T&&1<=T&&T<=1e3)break;T=D.includes(T)?T:w.DEFAULT_OPTIONS[g];break;case"cursorWidth":T=Math.floor(T);case"lineHeight":case"tabStopWidth":if(T<1)throw new Error(g+" cannot be less than 1, value: "+T);break;case"minimumContrastRatio":T=Math.max(1,Math.min(21,Math.round(10*T)/10));break;case"scrollback":if((T=Math.min(T,4294967295))<0)throw new Error(g+" cannot be less than 0, value: "+T);break;case"fastScrollSensitivity":case"scrollSensitivity":if(T<=0)throw new Error(g+" cannot be less than or equal to 0, value: "+T);case"rows":case"cols":if(!T&&0!==T)throw new Error(g+" must be numeric, value: "+T)}return T},v.prototype.getOption=function(g){return this.publicOptions[g]},v}();w.OptionsService=S},8343:function(Z,w){function N(b,_,I){_.di$target===_?_.di$dependencies.push({id:b,index:I}):(_.di$dependencies=[{id:b,index:I}],_.di$target=_)}Object.defineProperty(w,"__esModule",{value:!0}),w.createDecorator=w.getServiceDependencies=w.serviceRegistry=void 0,w.serviceRegistry=new Map,w.getServiceDependencies=function(b){return b.di$dependencies||[]},w.createDecorator=function(b){if(w.serviceRegistry.has(b))return w.serviceRegistry.get(b);var _=function I(D,A,S){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");N(I,D,S)};return _.toString=function(){return b},w.serviceRegistry.set(b,_),_}},2585:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.IUnicodeService=w.LogLevelEnum=w.IOptionsService=w.ILogService=w.IInstantiationService=w.IDirtyRowService=w.ICharsetService=w.ICoreService=w.ICoreMouseService=w.IBufferService=void 0;var b,_=N(8343);w.IBufferService=(0,_.createDecorator)("BufferService"),w.ICoreMouseService=(0,_.createDecorator)("CoreMouseService"),w.ICoreService=(0,_.createDecorator)("CoreService"),w.ICharsetService=(0,_.createDecorator)("CharsetService"),w.IDirtyRowService=(0,_.createDecorator)("DirtyRowService"),w.IInstantiationService=(0,_.createDecorator)("InstantiationService"),w.ILogService=(0,_.createDecorator)("LogService"),w.IOptionsService=(0,_.createDecorator)("OptionsService"),(b=w.LogLevelEnum||(w.LogLevelEnum={}))[b.DEBUG=0]="DEBUG",b[b.INFO=1]="INFO",b[b.WARN=2]="WARN",b[b.ERROR=3]="ERROR",b[b.OFF=4]="OFF",w.IUnicodeService=(0,_.createDecorator)("UnicodeService")},1480:function(Z,w,N){Object.defineProperty(w,"__esModule",{value:!0}),w.UnicodeService=void 0;var b=N(8460),_=N(225),I=function(){function D(){this._providers=Object.create(null),this._active="",this._onChange=new b.EventEmitter;var A=new _.UnicodeV6;this.register(A),this._active=A.version,this._activeProvider=A}return Object.defineProperty(D.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"activeVersion",{get:function(){return this._active},set:function(S){if(!this._providers[S])throw new Error('unknown Unicode version "'+S+'"');this._active=S,this._activeProvider=this._providers[S],this._onChange.fire(S)},enumerable:!1,configurable:!0}),D.prototype.register=function(A){this._providers[A.version]=A},D.prototype.wcwidth=function(A){return this._activeProvider.wcwidth(A)},D.prototype.getStringCellWidth=function(A){for(var S=0,v=A.length,g=0;g<v;++g){var T=A.charCodeAt(g);if(55296<=T&&T<=56319){if(++g>=v)return S+this.wcwidth(T);var R=A.charCodeAt(g);56320<=R&&R<=57343?T=1024*(T-55296)+R-56320+65536:S+=this.wcwidth(R)}S+=this.wcwidth(T)}return S},D}();w.UnicodeService=I}},f={};function B(V){var Z=f[V];if(void 0!==Z)return Z.exports;var w=f[V]={exports:{}};return q[V].call(w.exports,w,w.exports,B),w.exports}var U={};return function(){var V=U;Object.defineProperty(V,"__esModule",{value:!0}),V.Terminal=void 0;var Z=B(3236),w=B(9042),N=B(7975),b=B(7090),_=B(5741),I=B(8285),D=function(){function A(S){this._core=new Z.Terminal(S),this._addonManager=new _.AddonManager}return A.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(A.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new N.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"unicode",{get:function(){return this._checkProposedApi(),new b.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new I.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"modes",{get:function(){var v=this._core.coreService.decPrivateModes,g="none";switch(this._core.coreMouseService.activeProtocol){case"X10":g="x10";break;case"VT200":g="vt200";break;case"DRAG":g="drag";break;case"ANY":g="any"}return{applicationCursorKeysMode:v.applicationCursorKeys,applicationKeypadMode:v.applicationKeypad,bracketedPasteMode:v.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:g,originMode:v.origin,reverseWraparoundMode:v.reverseWraparound,sendFocusMode:v.sendFocus,wraparoundMode:v.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"options",{get:function(){return this._core.options},enumerable:!1,configurable:!0}),A.prototype.blur=function(){this._core.blur()},A.prototype.focus=function(){this._core.focus()},A.prototype.resize=function(S,v){this._verifyIntegers(S,v),this._core.resize(S,v)},A.prototype.open=function(S){this._core.open(S)},A.prototype.attachCustomKeyEventHandler=function(S){this._core.attachCustomKeyEventHandler(S)},A.prototype.registerLinkMatcher=function(S,v,g){return this._checkProposedApi(),this._core.registerLinkMatcher(S,v,g)},A.prototype.deregisterLinkMatcher=function(S){this._checkProposedApi(),this._core.deregisterLinkMatcher(S)},A.prototype.registerLinkProvider=function(S){return this._checkProposedApi(),this._core.registerLinkProvider(S)},A.prototype.registerCharacterJoiner=function(S){return this._checkProposedApi(),this._core.registerCharacterJoiner(S)},A.prototype.deregisterCharacterJoiner=function(S){this._checkProposedApi(),this._core.deregisterCharacterJoiner(S)},A.prototype.registerMarker=function(S){return this._checkProposedApi(),this._verifyIntegers(S),this._core.addMarker(S)},A.prototype.addMarker=function(S){return this.registerMarker(S)},A.prototype.hasSelection=function(){return this._core.hasSelection()},A.prototype.select=function(S,v,g){this._verifyIntegers(S,v,g),this._core.select(S,v,g)},A.prototype.getSelection=function(){return this._core.getSelection()},A.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},A.prototype.clearSelection=function(){this._core.clearSelection()},A.prototype.selectAll=function(){this._core.selectAll()},A.prototype.selectLines=function(S,v){this._verifyIntegers(S,v),this._core.selectLines(S,v)},A.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},A.prototype.scrollLines=function(S){this._verifyIntegers(S),this._core.scrollLines(S)},A.prototype.scrollPages=function(S){this._verifyIntegers(S),this._core.scrollPages(S)},A.prototype.scrollToTop=function(){this._core.scrollToTop()},A.prototype.scrollToBottom=function(){this._core.scrollToBottom()},A.prototype.scrollToLine=function(S){this._verifyIntegers(S),this._core.scrollToLine(S)},A.prototype.clear=function(){this._core.clear()},A.prototype.write=function(S,v){this._core.write(S,v)},A.prototype.writeUtf8=function(S,v){this._core.write(S,v)},A.prototype.writeln=function(S,v){this._core.write(S),this._core.write("\r\n",v)},A.prototype.paste=function(S){this._core.paste(S)},A.prototype.getOption=function(S){return this._core.optionsService.getOption(S)},A.prototype.setOption=function(S,v){this._core.optionsService.setOption(S,v)},A.prototype.refresh=function(S,v){this._verifyIntegers(S,v),this._core.refresh(S,v)},A.prototype.reset=function(){this._core.reset()},A.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},A.prototype.loadAddon=function(S){return this._addonManager.loadAddon(this,S)},Object.defineProperty(A,"strings",{get:function(){return w},enumerable:!1,configurable:!0}),A.prototype._verifyIntegers=function(){for(var S=[],v=0;v<arguments.length;v++)S[v]=arguments[v];for(var g=0,T=S;g<T.length;g++){var R=T[g];if(R===1/0||isNaN(R)||R%1!=0)throw new Error("This API only accepts integers")}},A}();V.Terminal=D}(),U}()},18419:function(ue,q,f){"use strict";f.d(q,{o:function(){return V}});var B=f(90838),U=f(68707),V=function(){function Z(){this.data=[],this.dataChange=new B.X([]),this.itemUpdated=new U.xQ}return Z.prototype.getItems=function(){return this.data},Z.prototype.add=function(w){this.findIndex(w)>=0?this.update(w):(this.data.push(w),this.dataChange.next(this.data))},Z.prototype.set=function(w){var N=this;w.forEach(function(_){var I=N.findIndex(_);if(I>=0){var D=Object.assign(N.data[I],_);N.data[I]=D}else N.data.push(_)}),this.data.filter(function(_){return 0===w.filter(function(I){return N.getItemKey(I)===N.getItemKey(_)}).length}).forEach(function(_){return N.remove(_)}),this.dataChange.next(this.data)},Z.prototype.get=function(w){var N=this,b=this.data.findIndex(function(_){return N.getItemKey(_)===w});if(b>=0)return this.data[b]},Z.prototype.update=function(w){var N=this.findIndex(w);if(N>=0){var b=Object.assign(this.data[N],w);this.data[N]=b,this.dataChange.next(this.data),this.itemUpdated.next(b)}},Z.prototype.remove=function(w){var N=this.findIndex(w);N>=0&&(this.data.splice(N,1),this.dataChange.next(this.data))},Object.defineProperty(Z.prototype,"changes",{get:function(){return this.dataChange},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"itemChanged",{get:function(){return this.itemUpdated},enumerable:!1,configurable:!0}),Z.prototype.clear=function(){this.data=[],this.dataChange.next(this.data)},Z.prototype.findIndex=function(w){var N=this;return this.data.findIndex(function(b){return N.getItemKey(b)===N.getItemKey(w)})},Z}()},3941:function(ue,q,f){"use strict";f.d(q,{F:function(){return Z}});var B=f(61855),U=f(18419),V=f(38999),Z=function(w){function N(){return null!==w&&w.apply(this,arguments)||this}return(0,B.ZT)(N,w),N.prototype.getItemKey=function(b){return b.link_id},N.\u0275fac=function(){var b;return function(I){return(b||(b=V.n5z(N)))(I||N)}}(),N.\u0275prov=V.Yz7({token:N,factory:N.\u0275fac}),N}(U.o)},96852:function(ue,q,f){"use strict";f.d(q,{G:function(){return Z}});var B=f(61855),U=f(18419),V=f(38999),Z=function(w){function N(){return null!==w&&w.apply(this,arguments)||this}return(0,B.ZT)(N,w),N.prototype.getItemKey=function(b){return b.node_id},N.\u0275fac=function(){var b;return function(I){return(b||(b=V.n5z(N)))(I||N)}}(),N.\u0275prov=V.Yz7({token:N,factory:N.\u0275fac}),N}(U.o)},36889:function(ue,q,f){"use strict";f.d(q,{X:function(){return V}});var B=f(38999),U=f(96153),V=function(){function Z(w){this.httpServer=w}return Z.prototype.getComputes=function(w){return this.httpServer.get(w,"/computes")},Z.prototype.getUploadPath=function(w,N,b){return w.protocol+"//"+w.host+":"+w.port+"/v2/"+N+"/images/"+b},Z.prototype.getStatistics=function(w){return this.httpServer.get(w,"/statistics")},Z.\u0275fac=function(N){return new(N||Z)(B.LFG(U.wh))},Z.\u0275prov=B.Yz7({token:Z,factory:Z.\u0275fac}),Z}()},96153:function(ue,q,f){"use strict";f.d(q,{gc:function(){return b},wh:function(){return _}});var B=f(61855),U=f(38999),V=f(11363),Z=f(13426),w=f(75472),N=function(I){function D(A){return I.call(this,A)||this}return(0,B.ZT)(D,I),D.fromError=function(A,S){var v=new D(A);return v.originalError=S,v},D}(Error),b=function(){function I(){}return I.prototype.handleError=function(D){var A=D;return"HttpErrorResponse"===D.name&&0===D.status&&(A=N.fromError("Server is unreachable",D)),(0,V._)(A)},I.\u0275prov=U.Yz7({token:I,factory:I.\u0275fac=function(A){return new(A||I)}}),I}(),_=function(){function I(D,A){this.http=D,this.errorHandler=A,this.requestsNotificationEmitter=new U.vpe}return I.prototype.get=function(D,A,S){S=this.getJsonOptions(S);var v=this.getOptionsForServer(D,A,S);return this.requestsNotificationEmitter.emit("GET "+v.url),this.http.get(v.url,v.options).pipe((0,Z.K)(this.errorHandler.handleError))},I.prototype.getText=function(D,A,S){S=this.getTextOptions(S);var v=this.getOptionsForServer(D,A,S);return this.requestsNotificationEmitter.emit("GET "+v.url),this.http.get(v.url,v.options).pipe((0,Z.K)(this.errorHandler.handleError))},I.prototype.post=function(D,A,S,v){v=this.getJsonOptions(v);var g=this.getOptionsForServer(D,A,v);return this.requestsNotificationEmitter.emit("POST "+g.url),this.http.post(g.url,S,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},I.prototype.put=function(D,A,S,v){v=this.getJsonOptions(v);var g=this.getOptionsForServer(D,A,v);return this.requestsNotificationEmitter.emit("PUT "+g.url),this.http.put(g.url,S,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},I.prototype.delete=function(D,A,S){S=this.getJsonOptions(S);var v=this.getOptionsForServer(D,A,S);return this.requestsNotificationEmitter.emit("DELETE "+v.url),this.http.delete(v.url,v.options).pipe((0,Z.K)(this.errorHandler.handleError))},I.prototype.patch=function(D,A,S,v){v=this.getJsonOptions(v);var g=this.getOptionsForServer(D,A,v);return this.http.patch(g.url,S,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},I.prototype.head=function(D,A,S){S=this.getJsonOptions(S);var v=this.getOptionsForServer(D,A,S);return this.http.head(v.url,v.options).pipe((0,Z.K)(this.errorHandler.handleError))},I.prototype.options=function(D,A,S){S=this.getJsonOptions(S);var v=this.getOptionsForServer(D,A,S);return this.http.options(v.url,v.options).pipe((0,Z.K)(this.errorHandler.handleError))},I.prototype.getJsonOptions=function(D){return D||{responseType:"json"}},I.prototype.getTextOptions=function(D){return D||{responseType:"text"}},I.prototype.getOptionsForServer=function(D,A,S){if(D.host&&D.port?(D.protocol||(D.protocol=location.protocol),A=D.protocol+"//"+D.host+":"+D.port+"/v2"+A):A="/v2"+A,S.headers||(S.headers={}),"basic"===D.authorization){var v=btoa(D.login+":"+D.password);S.headers.Authorization="Basic "+v}return{url:A,options:S}},I.\u0275fac=function(A){return new(A||I)(U.LFG(w.eN),U.LFG(b))},I.\u0275prov=U.Yz7({token:I,factory:I.\u0275fac}),I}()},14200:function(ue,q,f){"use strict";f.d(q,{Y:function(){return N}});var B=f(68707),U=f(38999),V=f(96153),Z=f(10503),w=f(2094),N=function(){function b(_,I,D){this.httpServer=_,this.settingsService=I,this.recentlyOpenedProjectService=D,this.projectListSubject=new B.xQ}return b.prototype.projectListUpdated=function(){this.projectListSubject.next(!0)},b.prototype.get=function(_,I){return this.httpServer.get(_,"/projects/"+I)},b.prototype.open=function(_,I){return this.httpServer.post(_,"/projects/"+I+"/open",{})},b.prototype.close=function(_,I){return this.recentlyOpenedProjectService.removeData(),this.httpServer.post(_,"/projects/"+I+"/close",{})},b.prototype.list=function(_){return this.httpServer.get(_,"/projects")},b.prototype.nodes=function(_,I){return this.httpServer.get(_,"/projects/"+I+"/nodes")},b.prototype.links=function(_,I){return this.httpServer.get(_,"/projects/"+I+"/links")},b.prototype.drawings=function(_,I){return this.httpServer.get(_,"/projects/"+I+"/drawings")},b.prototype.add=function(_,I,D){return this.httpServer.post(_,"/projects",{name:I,project_id:D})},b.prototype.update=function(_,I){return this.httpServer.put(_,"/projects/"+I.project_id,{auto_close:I.auto_close,auto_open:I.auto_open,auto_start:I.auto_start,drawing_grid_size:I.drawing_grid_size,grid_size:I.grid_size,name:I.name,scene_width:I.scene_width,scene_height:I.scene_height,show_interface_labels:I.show_interface_labels})},b.prototype.delete=function(_,I){return this.httpServer.delete(_,"/projects/"+I)},b.prototype.getUploadPath=function(_,I,D){return _.protocol+"//"+_.host+":"+_.port+"/v2/projects/"+I+"/import?name="+D},b.prototype.getExportPath=function(_,I){return _.protocol+"//"+_.host+":"+_.port+"/v2/projects/"+I.project_id+"/export"},b.prototype.export=function(_,I){return this.httpServer.get(_,"/projects/"+I+"/export")},b.prototype.getStatistics=function(_,I){return this.httpServer.get(_,"/projects/"+I+"/stats")},b.prototype.duplicate=function(_,I,D){return this.httpServer.post(_,"/projects/"+I+"/duplicate",{name:D})},b.prototype.isReadOnly=function(_){return!!_.readonly&&_.readonly},b.\u0275fac=function(I){return new(I||b)(U.LFG(V.wh),U.LFG(Z.g),U.LFG(w.p))},b.\u0275prov=U.Yz7({token:b,factory:b.\u0275fac}),b}()},2094:function(ue,q,f){"use strict";f.d(q,{p:function(){return U}});var B=f(38999),U=function(){function V(){}return V.prototype.setServerId=function(Z){this.serverId=Z},V.prototype.setProjectId=function(Z){this.projectId=Z},V.prototype.setServerIdProjectList=function(Z){this.serverIdProjectList=Z},V.prototype.getServerId=function(){return this.serverId},V.prototype.getProjectId=function(){return this.projectId},V.prototype.getServerIdProjectList=function(){return this.serverIdProjectList},V.prototype.removeData=function(){this.serverId="",this.projectId=""},V.\u0275prov=B.Yz7({token:V,factory:V.\u0275fac=function(w){return new(w||V)}}),V}()},10503:function(ue,q,f){"use strict";f.d(q,{g:function(){return U}});var B=f(38999),U=function(){function V(){this.settings={crash_reports:!0,console_command:void 0,anonymous_statistics:!0},this.reportsSettings="crash_reports",this.consoleSettings="console_command",this.statisticsSettings="statistics_command",this.getItem(this.reportsSettings)&&(this.settings.crash_reports="true"===this.getItem(this.reportsSettings)),this.getItem(this.consoleSettings)&&(this.settings.console_command=this.getItem(this.consoleSettings)),this.getItem(this.statisticsSettings)&&(this.settings.anonymous_statistics="true"===this.getItem(this.statisticsSettings))}return V.prototype.setReportsSettings=function(Z){this.settings.crash_reports=Z,this.removeItem(this.reportsSettings),this.setItem(this.reportsSettings,Z?"true":"false")},V.prototype.setStatisticsSettings=function(Z){this.settings.anonymous_statistics=Z,this.removeItem(this.statisticsSettings),this.setItem(this.statisticsSettings,Z?"true":"false")},V.prototype.getReportsSettings=function(){return"true"===this.getItem(this.reportsSettings)},V.prototype.getStatisticsSettings=function(){return"true"===this.getItem(this.statisticsSettings)},V.prototype.setConsoleSettings=function(Z){this.settings.console_command=Z,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,Z)},V.prototype.getConsoleSettings=function(){return this.getItem(this.consoleSettings)},V.prototype.removeItem=function(Z){localStorage.removeItem(Z)},V.prototype.setItem=function(Z,w){localStorage.setItem(Z,w)},V.prototype.getItem=function(Z){return localStorage.getItem(Z)},V.prototype.getAll=function(){return this.settings},V.prototype.setAll=function(Z){this.settings=Z,this.setConsoleSettings(Z.console_command),this.setReportsSettings(Z.crash_reports),this.setStatisticsSettings(Z.anonymous_statistics)},V.\u0275prov=B.Yz7({token:V,factory:V.\u0275fac=function(w){return new(w||V)},providedIn:"root"}),V}()},15132:function(ue,q,f){"use strict";f.d(q,{f:function(){return V}});var B=f(38999),U=f(90838),V=function(){function Z(){this._darkMode$=new U.X(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new B.vpe,this.savedTheme="dark",localStorage.getItem("theme")||localStorage.setItem("theme","dark"),this.savedTheme=localStorage.getItem("theme")}return Z.prototype.getActualTheme=function(){return this.savedTheme},Z.prototype.setDarkMode=function(w){w?(this.savedTheme="dark",this.themeChanged.emit("dark-theme"),localStorage.setItem("theme","dark")):(this.savedTheme="light",this.themeChanged.emit("light-theme"),localStorage.setItem("theme","light"))},Z.\u0275prov=B.Yz7({token:Z,factory:Z.\u0275fac=function(N){return new(N||Z)},providedIn:"root"}),Z}()},79130:function(ue,q,f){"use strict";var B={};f.r(B),f.d(B,{active:function(){return SY},arc:function(){return jte},area:function(){return gH},areaRadial:function(){return CH},ascending:function(){return Af},axisBottom:function(){return hR},axisLeft:function(){return Mk},axisRight:function(){return fR},axisTop:function(){return kk},bisect:function(){return Of},bisectLeft:function(){return QC},bisectRight:function(){return $3},bisector:function(){return Df},brush:function(){return PY},brushSelection:function(){return AY},brushX:function(){return DY},brushY:function(){return OY},chord:function(){return RY},clientPoint:function(){return Zf},cluster:function(){return GK},color:function(){return Bs},contourDensity:function(){return sJ},contours:function(){return A8},create:function(){return as},creator:function(){return __},cross:function(){return eR},csvFormat:function(){return vJ},csvFormatRows:function(){return gJ},csvParse:function(){return hJ},csvParseRows:function(){return mJ},cubehelix:function(){return W},curveBasis:function(){return une},curveBasisClosed:function(){return cne},curveBasisOpen:function(){return dne},curveBundle:function(){return pne},curveCardinal:function(){return fne},curveCardinalClosed:function(){return hne},curveCardinalOpen:function(){return mne},curveCatmullRom:function(){return vne},curveCatmullRomClosed:function(){return gne},curveCatmullRomOpen:function(){return _ne},curveLinear:function(){return AA},curveLinearClosed:function(){return yne},curveMonotoneX:function(){return bne},curveMonotoneY:function(){return Cne},curveNatural:function(){return Sne},curveStep:function(){return Tne},curveStepAfter:function(){return wne},curveStepBefore:function(){return xne},customEvent:function(){return Rf},descending:function(){return A4},deviation:function(){return tR},dispatch:function(){return bm},drag:function(){return Vf},dragDisable:function(){return wm},dragEnable:function(){return A_},dsvFormat:function(){return ZN},easeBack:function(){return B8},easeBackIn:function(){return qJ},easeBackInOut:function(){return B8},easeBackOut:function(){return jJ},easeBounce:function(){return P1},easeBounceIn:function(){return HJ},easeBounceInOut:function(){return VJ},easeBounceOut:function(){return P1},easeCircle:function(){return F8},easeCircleIn:function(){return OJ},easeCircleInOut:function(){return F8},easeCircleOut:function(){return PJ},easeCubic:function(){return bN},easeCubicIn:function(){return gY},easeCubicInOut:function(){return bN},easeCubicOut:function(){return _Y},easeElastic:function(){return U8},easeElasticIn:function(){return zJ},easeElasticInOut:function(){return WJ},easeElasticOut:function(){return U8},easeExp:function(){return L8},easeExpIn:function(){return AJ},easeExpInOut:function(){return L8},easeExpOut:function(){return DJ},easeLinear:function(){return SJ},easePoly:function(){return I8},easePolyIn:function(){return wJ},easePolyInOut:function(){return I8},easePolyOut:function(){return EJ},easeQuad:function(){return P8},easeQuadIn:function(){return TJ},easeQuadInOut:function(){return P8},easeQuadOut:function(){return xJ},easeSin:function(){return Z8},easeSinIn:function(){return kJ},easeSinInOut:function(){return Z8},easeSinOut:function(){return MJ},entries:function(){return JY},event:function(){return On},extent:function(){return KC},forceCenter:function(){return GJ},forceCollide:function(){return pQ},forceLink:function(){return hQ},forceManyBody:function(){return bQ},forceRadial:function(){return CQ},forceSimulation:function(){return yQ},forceX:function(){return SQ},forceY:function(){return TQ},format:function(){return EM},formatDefaultLocale:function(){return Q8},formatLocale:function(){return J8},formatPrefix:function(){return jN},formatSpecifier:function(){return I1},geoAlbers:function(){return p9},geoAlbersUsa:function(){return kK},geoArea:function(){return PQ},geoAzimuthalEqualArea:function(){return MK},geoAzimuthalEqualAreaRaw:function(){return M6},geoAzimuthalEquidistant:function(){return AK},geoAzimuthalEquidistantRaw:function(){return A6},geoBounds:function(){return ZQ},geoCentroid:function(){return VQ},geoCircle:function(){return qQ},geoClipAntimeridian:function(){return s6},geoClipCircle:function(){return R7},geoClipExtent:function(){return QQ},geoClipRectangle:function(){return JM},geoConicConformal:function(){return OK},geoConicConformalRaw:function(){return m9},geoConicEqualArea:function(){return aA},geoConicEqualAreaRaw:function(){return d9},geoConicEquidistant:function(){return IK},geoConicEquidistantRaw:function(){return v9},geoContains:function(){return rK},geoDistance:function(){return B1},geoEquirectangular:function(){return PK},geoEquirectangularRaw:function(){return Y1},geoGnomonic:function(){return RK},geoGnomonicRaw:function(){return D6},geoGraticule:function(){return j7},geoGraticule10:function(){return iK},geoIdentity:function(){return NK},geoInterpolate:function(){return oK},geoLength:function(){return N7},geoMercator:function(){return DK},geoMercatorRaw:function(){return G1},geoNaturalEarth1:function(){return ZK},geoNaturalEarth1Raw:function(){return O6},geoOrthographic:function(){return LK},geoOrthographicRaw:function(){return P6},geoPath:function(){return gK},geoProjection:function(){return fp},geoProjectionMutator:function(){return E6},geoRotation:function(){return E7},geoStereographic:function(){return FK},geoStereographicRaw:function(){return I6},geoStream:function(){return nc},geoTransform:function(){return _K},geoTransverseMercator:function(){return BK},geoTransverseMercatorRaw:function(){return R6},hcl:function(){return S1},hierarchy:function(){return N6},histogram:function(){return bk},hsl:function(){return Dm},interpolate:function(){return sl},interpolateArray:function(){return Di},interpolateBasis:function(){return Pe},interpolateBasisClosed:function(){return Xe},interpolateBlues:function(){return ste},interpolateBrBG:function(){return Uee},interpolateBuGn:function(){return Jee},interpolateBuPu:function(){return Qee},interpolateCool:function(){return mte},interpolateCubehelix:function(){return _G},interpolateCubehelixDefault:function(){return fte},interpolateCubehelixLong:function(){return iM},interpolateDate:function(){return _o},interpolateGnBu:function(){return Kee},interpolateGreens:function(){return lte},interpolateGreys:function(){return ute},interpolateHcl:function(){return vG},interpolateHclLong:function(){return gG},interpolateHsl:function(){return fG},interpolateHslLong:function(){return hG},interpolateInferno:function(){return yte},interpolateLab:function(){return mG},interpolateMagma:function(){return _te},interpolateNumber:function(){return Ni},interpolateObject:function(){return la},interpolateOrRd:function(){return Xee},interpolateOranges:function(){return pte},interpolatePRGn:function(){return Hee},interpolatePiYG:function(){return Vee},interpolatePlasma:function(){return bte},interpolatePuBu:function(){return ete},interpolatePuBuGn:function(){return $ee},interpolatePuOr:function(){return qee},interpolatePuRd:function(){return tte},interpolatePurples:function(){return cte},interpolateRainbow:function(){return vte},interpolateRdBu:function(){return jee},interpolateRdGy:function(){return zee},interpolateRdPu:function(){return nte},interpolateRdYlBu:function(){return Wee},interpolateRdYlGn:function(){return Gee},interpolateReds:function(){return dte},interpolateRgb:function(){return _n},interpolateRgbBasis:function(){return Lr},interpolateRgbBasisClosed:function(){return ei},interpolateRound:function(){return lp},interpolateSpectral:function(){return Yee},interpolateString:function(){return jl},interpolateTransformCss:function(){return x1},interpolateTransformSvg:function(){return rM},interpolateViridis:function(){return gte},interpolateWarm:function(){return hte},interpolateYlGn:function(){return ite},interpolateYlGnBu:function(){return rte},interpolateYlOrBr:function(){return ote},interpolateYlOrRd:function(){return ate},interpolateZoom:function(){return t8},interrupt:function(){return Bm},interval:function(){return Nne},isoFormat:function(){return See},isoParse:function(){return wee},keys:function(){return GY},lab:function(){return C1},line:function(){return DA},lineRadial:function(){return bH},linkHorizontal:function(){return $te},linkRadial:function(){return tne},linkVertical:function(){return ene},local:function(){return xm},map:function(){return Hf},matcher:function(){return i1},max:function(){return e1},mean:function(){return oR},median:function(){return aR},merge:function(){return mm},min:function(){return t1},mouse:function(){return Fs},namespace:function(){return If},namespaces:function(){return g_},nest:function(){return qY},now:function(){return P_},pack:function(){return _X},packEnclose:function(){return _9},packSiblings:function(){return mX},pairs:function(){return M4},partition:function(){return yX},path:function(){return tc},permute:function(){return Sk},pie:function(){return Gte},pointRadial:function(){return pS},polygonArea:function(){return RX},polygonCentroid:function(){return NX},polygonContains:function(){return BX},polygonHull:function(){return FX},polygonLength:function(){return UX},precisionFixed:function(){return K8},precisionPrefix:function(){return X8},precisionRound:function(){return $8},quadtree:function(){return TM},quantile:function(){return Pf},quantize:function(){return yG},radialArea:function(){return CH},radialLine:function(){return bH},randomBates:function(){return qX},randomExponential:function(){return jX},randomIrwinHall:function(){return N9},randomLogNormal:function(){return VX},randomNormal:function(){return R9},randomUniform:function(){return HX},range:function(){return is},rgb:function(){return Am},ribbon:function(){return VY},scaleBand:function(){return q6},scaleIdentity:function(){return H9},scaleImplicit:function(){return H6},scaleLinear:function(){return U9},scaleLog:function(){return W9},scaleOrdinal:function(){return V6},scalePoint:function(){return zX},scalePow:function(){return W6},scaleQuantile:function(){return G9},scaleQuantize:function(){return Y9},scaleSequential:function(){return UU},scaleSqrt:function(){return e$},scaleThreshold:function(){return J9},scaleTime:function(){return Aee},scaleUtc:function(){return Dee},scan:function(){return n1},schemeAccent:function(){return Pee},schemeBlues:function(){return lH},schemeBrBG:function(){return HU},schemeBuGn:function(){return QU},schemeBuPu:function(){return KU},schemeCategory10:function(){return Oee},schemeDark2:function(){return Iee},schemeGnBu:function(){return XU},schemeGreens:function(){return uH},schemeGreys:function(){return cH},schemeOrRd:function(){return $U},schemeOranges:function(){return fH},schemePRGn:function(){return VU},schemePaired:function(){return Ree},schemePastel1:function(){return Nee},schemePastel2:function(){return Zee},schemePiYG:function(){return qU},schemePuBu:function(){return tH},schemePuBuGn:function(){return eH},schemePuOr:function(){return jU},schemePuRd:function(){return nH},schemePurples:function(){return dH},schemeRdBu:function(){return zU},schemeRdGy:function(){return WU},schemeRdPu:function(){return rH},schemeRdYlBu:function(){return GU},schemeRdYlGn:function(){return YU},schemeReds:function(){return pH},schemeSet1:function(){return Lee},schemeSet2:function(){return Fee},schemeSet3:function(){return Bee},schemeSpectral:function(){return JU},schemeYlGn:function(){return oH},schemeYlGnBu:function(){return iH},schemeYlOrBr:function(){return aH},schemeYlOrRd:function(){return sH},select:function(){return ni},selectAll:function(){return m1},selection:function(){return Hl},selector:function(){return Cm},selectorAll:function(){return Dk},set:function(){return WY},shuffle:function(){return sR},stack:function(){return kne},stackOffsetDiverging:function(){return Ane},stackOffsetExpand:function(){return Mne},stackOffsetNone:function(){return K_},stackOffsetSilhouette:function(){return Dne},stackOffsetWiggle:function(){return One},stackOrderAscending:function(){return jH},stackOrderDescending:function(){return Pne},stackOrderInsideOut:function(){return Ine},stackOrderNone:function(){return X_},stackOrderReverse:function(){return Rne},stratify:function(){return TX},style:function(){return op},sum:function(){return Bl},symbol:function(){return lne},symbolCircle:function(){return sZ},symbolCross:function(){return SH},symbolDiamond:function(){return xH},symbolSquare:function(){return kH},symbolStar:function(){return EH},symbolTriangle:function(){return MH},symbolWye:function(){return AH},symbols:function(){return sne},thresholdFreedmanDiaconis:function(){return iR},thresholdScott:function(){return Ck},thresholdSturges:function(){return hm},tickIncrement:function(){return fm},tickStep:function(){return ip},ticks:function(){return pm},timeDay:function(){return CA},timeDays:function(){return r$},timeFormat:function(){return K6},timeFormatDefaultLocale:function(){return LU},timeFormatLocale:function(){return wU},timeFriday:function(){return lU},timeFridays:function(){return l$},timeHour:function(){return iU},timeHours:function(){return n$},timeInterval:function(){return Ba},timeMillisecond:function(){return gA},timeMilliseconds:function(){return Q9},timeMinute:function(){return nU},timeMinutes:function(){return t$},timeMonday:function(){return $1},timeMondays:function(){return i$},timeMonth:function(){return pU},timeMonths:function(){return c$},timeParse:function(){return ZU},timeSaturday:function(){return uU},timeSaturdays:function(){return u$},timeSecond:function(){return bA},timeSeconds:function(){return eU},timeSunday:function(){return X1},timeSundays:function(){return cU},timeThursday:function(){return eS},timeThursdays:function(){return s$},timeTuesday:function(){return aU},timeTuesdays:function(){return o$},timeWednesday:function(){return sU},timeWednesdays:function(){return a$},timeWeek:function(){return X1},timeWeeks:function(){return cU},timeYear:function(){return Qm},timeYears:function(){return d$},timeout:function(){return hN},timer:function(){return lM},timerFlush:function(){return s8},touch:function(){return M_},touches:function(){return $R},transition:function(){return pM},transpose:function(){return Tk},tree:function(){return AX},treemap:function(){return DX},treemapBinary:function(){return OX},treemapDice:function(){return Q1},treemapResquarify:function(){return IX},treemapSlice:function(){return fA},treemapSliceDice:function(){return PX},treemapSquarify:function(){return P9},tsvFormat:function(){return bJ},tsvFormatRows:function(){return CJ},tsvParse:function(){return _J},tsvParseRows:function(){return yJ},utcDay:function(){return SA},utcDays:function(){return h$},utcFormat:function(){return xA},utcFriday:function(){return bU},utcFridays:function(){return y$},utcHour:function(){return vU},utcHours:function(){return f$},utcMillisecond:function(){return gA},utcMilliseconds:function(){return Q9},utcMinute:function(){return hU},utcMinutes:function(){return p$},utcMonday:function(){return nS},utcMondays:function(){return m$},utcMonth:function(){return xU},utcMonths:function(){return C$},utcParse:function(){return X6},utcSaturday:function(){return CU},utcSaturdays:function(){return b$},utcSecond:function(){return bA},utcSeconds:function(){return eU},utcSunday:function(){return tS},utcSundays:function(){return SU},utcThursday:function(){return rS},utcThursdays:function(){return _$},utcTuesday:function(){return _U},utcTuesdays:function(){return v$},utcWednesday:function(){return yU},utcWednesdays:function(){return g$},utcWeek:function(){return tS},utcWeeks:function(){return SU},utcYear:function(){return Xm},utcYears:function(){return S$},values:function(){return YY},variance:function(){return _k},voronoi:function(){return ere},window:function(){return l1},zip:function(){return lR},zoom:function(){return nV},zoomIdentity:function(){return BA},zoomTransform:function(){return eV}});var E,U=f(29176),V=f(42515),b=(f(28318),f(99890),f(99740),f(71955)),_=f(36683),I=f(13920),D=f(89200),A=f(10509),S=f(97154),v=f(62467),g=f(18967),T=f(14105);f(26552);"undefined"!=typeof window&&window,"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self;"undefined"!=typeof global&&global,"_nghost-".concat("%COMP%"),"_ngcontent-".concat("%COMP%");var Gb=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff";"[^".concat(Gb,"]"),"[".concat(Gb,"]{2,}"),(0,V.Z)(E={},4,4),(0,V.Z)(E,1,1),(0,V.Z)(E,2,2),(0,V.Z)(E,0,0),(0,V.Z)(E,3,3),Object.keys({useClass:null}),Object.keys({useFactory:null}),Object.keys({useValue:null}),Object.keys({useExisting:null});var e=f(38999),kt=f(40098),Sa=f(28722),Xr=f(15427),Mn=f(78081),Ai=f(6517),Pn=f(68707),rs=f(5051),SE=f(57434),TE=f(58172),aa=f(89797),go=f(55371),Zr=f(44213),ra=f(57682),Er=f(85639),$i=f(48359),Ra=f(59371),Zs=f(34487),Na=f(8392);function CC(n,r,t){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o?n.setProperty(i,o,(null==t?void 0:t.has(i))?"important":""):n.removeProperty(i)}return n}function bf(n,r){var t=r?"":"none";CC(n.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function xE(n,r,t){CC(n.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},t)}function Jg(n,r){return r&&"none"!=r?n+" "+r:n}function h3(n){var r=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*r}function SC(n,r){return n.getPropertyValue(r).split(",").map(function(i){return i.trim()})}function TC(n){var r=n.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}function xC(n,r,t){return t>=n.top&&t<=n.bottom&&r>=n.left&&r<=n.right}function tm(n,r,t){n.top+=r,n.bottom=n.top+n.height,n.left+=t,n.right=n.left+n.width}function EE(n,r,t,i){var C=n.width*r,P=n.height*r;return i>n.top-P&&i<n.bottom+P&&t>n.left-C&&t<n.right+C}var wC=function(){function n(r,t){(0,g.Z)(this,n),this._document=r,this._viewportRuler=t,this.positions=new Map}return(0,T.Z)(n,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(t){var i=this;this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),t.forEach(function(o){i.positions.set(o,{scrollPosition:{top:o.scrollTop,left:o.scrollLeft},clientRect:TC(o)})})}},{key:"handleScroll",value:function(t){var i=(0,Xr.sA)(t),o=this.positions.get(i);if(!o)return null;var u,p,a=i===this._document?i.documentElement:i,s=o.scrollPosition;if(i===this._document){var m=this._viewportRuler.getViewportScrollPosition();u=m.top,p=m.left}else u=i.scrollTop,p=i.scrollLeft;var C=s.top-u,P=s.left-p;return this.positions.forEach(function(L,G){L.clientRect&&i!==G&&a.contains(G)&&tm(L.clientRect,C,P)}),s.top=u,s.left=p,{top:C,left:P}}}]),n}();function kE(n){var r=n.cloneNode(!0),t=r.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();r.removeAttribute("id");for(var o=0;o<t.length;o++)t[o].removeAttribute("id");return"canvas"===i?v3(n,r):("input"===i||"select"===i||"textarea"===i)&&m3(n,r),ME("canvas",n,r,v3),ME("input, textarea, select",n,r,m3),r}function ME(n,r,t,i){var o=r.querySelectorAll(n);if(o.length)for(var a=t.querySelectorAll(n),s=0;s<o.length;s++)i(o[s],a[s])}var s4=0;function m3(n,r){"file"!==r.type&&(r.value=n.value),"radio"===r.type&&r.name&&(r.name="mat-clone-".concat(r.name,"-").concat(s4++))}function v3(n,r){var t=r.getContext("2d");if(t)try{t.drawImage(n,0,0)}catch(i){}}var Qg=(0,Xr.i$)({passive:!0}),AE=(0,Xr.i$)({passive:!1}),EC=new Set(["position"]),_3=function(){function n(r,t,i,o,a,s){var u=this;(0,g.Z)(this,n),this._config=t,this._document=i,this._ngZone=o,this._viewportRuler=a,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new Pn.xQ,this._pointerMoveSubscription=rs.w.EMPTY,this._pointerUpSubscription=rs.w.EMPTY,this._scrollSubscription=rs.w.EMPTY,this._resizeSubscription=rs.w.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Pn.xQ,this.started=new Pn.xQ,this.released=new Pn.xQ,this.ended=new Pn.xQ,this.entered=new Pn.xQ,this.exited=new Pn.xQ,this.dropped=new Pn.xQ,this.moved=this._moveEvents,this._pointerDown=function(p){if(u.beforeStarted.next(),u._handles.length){var m=u._handles.find(function(C){var P=(0,Xr.sA)(p);return!!P&&(P===C||C.contains(P))});m&&!u._disabledHandles.has(m)&&!u.disabled&&u._initializeDragSequence(m,p)}else u.disabled||u._initializeDragSequence(u._rootElement,p)},this._pointerMove=function(p){var m=u._getPointerPositionOnPage(p);if(u._hasStartedDragging){u._boundaryElement&&(!u._previewRect||!u._previewRect.width&&!u._previewRect.height)&&(u._previewRect=(u._preview||u._rootElement).getBoundingClientRect()),p.preventDefault();var te=u._getConstrainedPointerPosition(m);if(u._hasMoved=!0,u._lastKnownPointerPosition=m,u._updatePointerDirectionDelta(te),u._dropContainer)u._updateActiveDropContainer(te,m);else{var de=u._activeTransform;if(de.x=te.x-u._pickupPositionOnPage.x+u._passiveTransform.x,de.y=te.y-u._pickupPositionOnPage.y+u._passiveTransform.y,u._applyRootElementTransform(de.x,de.y),"undefined"!=typeof SVGElement&&u._rootElement instanceof SVGElement){var Me="translate(".concat(de.x," ").concat(de.y,")");u._rootElement.setAttribute("transform",Me)}}u._moveEvents.observers.length&&u._ngZone.run(function(){u._moveEvents.next({source:u,pointerPosition:te,event:p,distance:u._getDragDistance(te),delta:u._pointerDirectionDelta})})}else if(Math.abs(m.x-u._pickupPositionOnPage.x)+Math.abs(m.y-u._pickupPositionOnPage.y)>=u._config.dragStartThreshold){var G=Date.now()>=u._dragStartTime+u._getDragStartDelay(p),Y=u._dropContainer;if(!G)return void u._endDragSequence(p);(!Y||!Y.isDragging()&&!Y.isReceiving())&&(p.preventDefault(),u._hasStartedDragging=!0,u._ngZone.run(function(){return u._startDragSequence(p)}))}},this._pointerUp=function(p){u._endDragSequence(p)},this.withRootElement(r).withParent(t.parentDragRef||null),this._parentPositions=new wC(i,a),s.registerDragItem(this)}return(0,T.Z)(n,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var i=(0,Mn.Ig)(t);i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(function(o){return bf(o,i)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){var i=this;this._handles=t.map(function(a){return(0,Mn.fI)(a)}),this._handles.forEach(function(a){return bf(a,i.disabled)}),this._toggleNativeDragInteractions();var o=new Set;return this._disabledHandles.forEach(function(a){i._handles.indexOf(a)>-1&&o.add(a)}),this._disabledHandles=o,this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var i=this,o=(0,Mn.fI)(t);return o!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){o.addEventListener("mousedown",i._pointerDown,AE),o.addEventListener("touchstart",i._pointerDown,Qg)}),this._initialTransform=void 0,this._rootElement=o),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(t){var i=this;return this._boundaryElement=t?(0,Mn.fI)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return i._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(t){return this._parentDragRef=t,this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&nm(this._rootElement),nm(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),bf(t,!0))}},{key:"enableHandle",value:function(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),bf(t,this.disabled))}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"withPreviewContainer",value:function(t){return this._previewContainer=t,this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&nm(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&nm(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var i=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){i._cleanupDragArtifacts(t),i._cleanupCachedDimensions(),i._dragDropRegistry.stopDragging(i)});else{this._passiveTransform.x=this._activeTransform.x;var o=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){i.ended.next({source:i,distance:i._getDragDistance(o),dropPoint:o})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(t){Kd(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var i=this._dropContainer;if(i){var o=this._rootElement,a=o.parentNode,s=this._placeholder=this._createPlaceholderElement(),u=this._anchor=this._anchor||this._document.createComment(""),p=this._getShadowRoot();a.insertBefore(u,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),xE(o,!1,EC),this._document.body.appendChild(a.replaceChild(s,o)),this._getPreviewInsertionPoint(a,p).appendChild(this._preview),this.started.next({source:this}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(t,i){var o=this;this._parentDragRef&&i.stopPropagation();var a=this.isDragging(),s=Kd(i),u=!s&&0!==i.button,p=this._rootElement,m=(0,Xr.sA)(i),C=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),P=s?(0,Ai.yG)(i):(0,Ai.X6)(i);if(m&&m.draggable&&"mousedown"===i.type&&i.preventDefault(),!(a||u||C||P)){this._handles.length&&(this._rootElementTapHighlight=p.style.webkitTapHighlightColor||"",p.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(Y){return o._updateOnScroll(Y)}),this._boundaryElement&&(this._boundaryRect=TC(this._boundaryElement));var L=this._previewTemplate;this._pickupPositionInElement=L&&L.template&&!L.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,i);var G=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(i);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:G.x,y:G.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,i)}}},{key:"_cleanupDragArtifacts",value:function(t){var i=this;xE(this._rootElement,!0,EC),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var o=i._dropContainer,a=o.getItemIndex(i),s=i._getPointerPositionOnPage(t),u=i._getDragDistance(s),p=o._isOverContainer(s.x,s.y);i.ended.next({source:i,distance:u,dropPoint:s}),i.dropped.next({item:i,currentIndex:a,previousIndex:i._initialIndex,container:o,previousContainer:i._initialContainer,isPointerOverContainer:p,distance:u,dropPoint:s}),o.drop(i,a,i._initialIndex,i._initialContainer,p,u,s),i._dropContainer=i._initialContainer})}},{key:"_updateActiveDropContainer",value:function(t,i){var o=this,a=t.x,s=t.y,u=i.x,p=i.y,m=this._initialContainer._getSiblingContainerFromPosition(this,a,s);!m&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,s)&&(m=this._initialContainer),m&&m!==this._dropContainer&&this._ngZone.run(function(){o.exited.next({item:o,container:o._dropContainer}),o._dropContainer.exit(o),o._dropContainer=m,o._dropContainer.enter(o,a,s,m===o._initialContainer&&m.sortingDisabled?o._initialIndex:void 0),o.entered.next({item:o,container:m,currentIndex:m.getItemIndex(o)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(u,p),this._dropContainer._sortItem(this,a,s,this._pointerDirectionDelta),this._applyPreviewTransform(a-this._pickupPositionInElement.x,s-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var a,t=this._previewTemplate,i=this.previewClass,o=t?t.template:null;if(o&&t){var s=t.matchSize?this._rootElement.getBoundingClientRect():null,u=t.viewContainer.createEmbeddedView(o,t.context);u.detectChanges(),a=OE(u,this._document),this._previewRef=u,t.matchSize?Xd(a,s):a.style.transform=Kg(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var p=this._rootElement;Xd(a=kE(p),p.getBoundingClientRect()),this._initialTransform&&(a.style.transform=this._initialTransform)}return CC(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},EC),bf(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(m){return a.classList.add(m)}):a.classList.add(i)),a}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);var o=function(n){var r=getComputedStyle(n),t=SC(r,"transition-property"),i=t.find(function(u){return"transform"===u||"all"===u});if(!i)return 0;var o=t.indexOf(i),a=SC(r,"transition-duration"),s=SC(r,"transition-delay");return h3(a[o])+h3(s[o])}(this._preview);return 0===o?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(a){var s=function p(m){var C;(!m||(0,Xr.sA)(m)===t._preview&&"transform"===m.propertyName)&&(null===(C=t._preview)||void 0===C||C.removeEventListener("transitionend",p),a(),clearTimeout(u))},u=setTimeout(s,1.5*o);t._preview.addEventListener("transitionend",s)})})}},{key:"_createPlaceholderElement",value:function(){var o,t=this._placeholderTemplate,i=t?t.template:null;return i?(this._placeholderRef=t.viewContainer.createEmbeddedView(i,t.context),this._placeholderRef.detectChanges(),o=OE(this._placeholderRef,this._document)):o=kE(this._rootElement),o.classList.add("cdk-drag-placeholder"),o}},{key:"_getPointerPositionInElement",value:function(t,i){var o=this._rootElement.getBoundingClientRect(),a=t===this._rootElement?null:t,s=a?a.getBoundingClientRect():o,u=Kd(i)?i.targetTouches[0]:i,p=this._getViewportScrollPosition();return{x:s.left-o.left+(u.pageX-s.left-p.left),y:s.top-o.top+(u.pageY-s.top-p.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var i=this._getViewportScrollPosition(),o=Kd(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,a=o.pageX-i.left,s=o.pageY-i.top;if(this._ownerSVGElement){var u=this._ownerSVGElement.getScreenCTM();if(u){var p=this._ownerSVGElement.createSVGPoint();return p.x=a,p.y=s,p.matrixTransform(u.inverse())}}return{x:a,y:s}}},{key:"_getConstrainedPointerPosition",value:function(t){var i=this._dropContainer?this._dropContainer.lockAxis:null,o=this.constrainPosition?this.constrainPosition(t,this):t,a=o.x,s=o.y;if("x"===this.lockAxis||"x"===i?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===i)&&(a=this._pickupPositionOnPage.x),this._boundaryRect){var u=this._pickupPositionInElement,p=u.x,m=u.y,C=this._boundaryRect,P=this._previewRect,L=C.top+m,G=C.bottom-(P.height-m);a=DE(a,C.left+p,C.right-(P.width-p)),s=DE(s,L,G)}return{x:a,y:s}}},{key:"_updatePointerDirectionDelta",value:function(t){var i=t.x,o=t.y,a=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,u=Math.abs(i-s.x),p=Math.abs(o-s.y);return u>this._config.pointerDirectionChangeThreshold&&(a.x=i>s.x?1:-1,s.x=i),p>this._config.pointerDirectionChangeThreshold&&(a.y=o>s.y?1:-1,s.y=o),a}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,bf(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,AE),t.removeEventListener("touchstart",this._pointerDown,Qg)}},{key:"_applyRootElementTransform",value:function(t,i){var o=Kg(t,i);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform&&"none"!=this._rootElement.style.transform?this._rootElement.style.transform:""),this._rootElement.style.transform=Jg(o,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(t,i){var o,a=(null===(o=this._previewTemplate)||void 0===o?void 0:o.template)?void 0:this._initialTransform,s=Kg(t,i);this._preview.style.transform=Jg(s,a)}},{key:"_getDragDistance",value:function(t){var i=this._pickupPositionOnPage;return i?{x:t.x-i.x,y:t.y-i.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,i=t.x,o=t.y;if(!(0===i&&0===o||this.isDragging())&&this._boundaryElement){var a=this._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(!(0===a.width&&0===a.height||0===s.width&&0===s.height)){var u=a.left-s.left,p=s.right-a.right,m=a.top-s.top,C=s.bottom-a.bottom;a.width>s.width?(u>0&&(i+=u),p>0&&(i-=p)):i=0,a.height>s.height?(m>0&&(o+=m),C>0&&(o-=C)):o=0,(i!==this._passiveTransform.x||o!==this._passiveTransform.y)&&this.setFreeDragPosition({y:o,x:i})}}}},{key:"_getDragStartDelay",value:function(t){var i=this.dragStartDelay;return"number"==typeof i?i:Kd(t)?i.touch:i?i.mouse:0}},{key:"_updateOnScroll",value:function(t){var i=this._parentPositions.handleScroll(t);if(i){var o=(0,Xr.sA)(t);this._boundaryRect&&(o===this._document||o!==this._boundaryElement&&o.contains(this._boundaryElement))&&tm(this._boundaryRect,i.top,i.left),this._pickupPositionOnPage.x+=i.left,this._pickupPositionOnPage.y+=i.top,this._dropContainer||(this._activeTransform.x-=i.left,this._activeTransform.y-=i.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,Xr.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(t,i){var o=this._previewContainer||"global";if("parent"===o)return t;if("global"===o){var a=this._document;return i||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return(0,Mn.fI)(o)}}]),n}();function Kg(n,r){return"translate3d(".concat(Math.round(n),"px, ").concat(Math.round(r),"px, 0)")}function DE(n,r,t){return Math.max(r,Math.min(t,n))}function nm(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function Kd(n){return"t"===n.type[0]}function OE(n,r){var t=n.rootNodes;if(1===t.length&&t[0].nodeType===r.ELEMENT_NODE)return t[0];var i=r.createElement("div");return t.forEach(function(o){return i.appendChild(o)}),i}function Xd(n,r){n.style.width="".concat(r.width,"px"),n.style.height="".concat(r.height,"px"),n.style.transform=Kg(r.left,r.top)}function $d(n,r){return Math.max(0,Math.min(r,n))}var IE=function(){function n(r,t,i,o,a){var s=this;(0,g.Z)(this,n),this._dragDropRegistry=t,this._ngZone=o,this._viewportRuler=a,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new Pn.xQ,this.entered=new Pn.xQ,this.exited=new Pn.xQ,this.dropped=new Pn.xQ,this.sorted=new Pn.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=rs.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Pn.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){s._stopScrolling(),(0,SE.F)(0,TE.Z).pipe((0,Zr.R)(s._stopScrollTimers)).subscribe(function(){var u=s._scrollNode,p=s.autoScrollStep;1===s._verticalScrollDirection?RE(u,-p):2===s._verticalScrollDirection&&RE(u,p),1===s._horizontalScrollDirection?NE(u,-p):2===s._horizontalScrollDirection&&NE(u,p)})},this.element=(0,Mn.fI)(r),this._document=i,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new wC(i,a)}return(0,T.Z)(n,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(t,i,o,a){var s;this._draggingStarted(),null==a?-1===(s=this.sortingDisabled?this._draggables.indexOf(t):-1)&&(s=this._getItemIndexFromPointerPosition(t,i,o)):s=a;var u=this._activeDraggables,p=u.indexOf(t),m=t.getPlaceholderElement(),C=u[s];if(C===t&&(C=u[s+1]),p>-1&&u.splice(p,1),C&&!this._dragDropRegistry.isDragging(C)){var P=C.getRootElement();P.parentElement.insertBefore(m,P),u.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(i,o)){var L=u[0].getRootElement();L.parentNode.insertBefore(m,L),u.unshift(t)}else(0,Mn.fI)(this.element).appendChild(m),u.push(t);m.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,i,o,a,s,u,p){this._reset(),this.dropped.next({item:t,currentIndex:i,previousIndex:o,container:this,previousContainer:a,isPointerOverContainer:s,distance:u,dropPoint:p})}},{key:"withItems",value:function(t){var i=this,o=this._draggables;return this._draggables=t,t.forEach(function(s){return s._withDropContainer(i)}),this.isDragging()&&(o.filter(function(s){return s.isDragging()}).every(function(s){return-1===t.indexOf(s)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var i=(0,Mn.fI)(this.element);return this._scrollableElements=-1===t.indexOf(i)?[i].concat((0,v.Z)(t)):t.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(t){return this._isDragging?Xg("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(o){return o.drag===t}):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,i,o,a){if(!this.sortingDisabled&&this._clientRect&&EE(this._clientRect,.05,i,o)){var s=this._itemPositions,u=this._getItemIndexFromPointerPosition(t,i,o,a);if(!(-1===u&&s.length>0)){var p="horizontal"===this._orientation,m=Xg(s,function(Me){return Me.drag===t}),C=s[u],L=C.clientRect,G=m>u?1:-1,Y=this._getItemOffsetPx(s[m].clientRect,L,G),te=this._getSiblingOffsetPx(m,s,G),de=s.slice();(function(n,r,t){var i=$d(r,n.length-1),o=$d(t,n.length-1);if(i!==o){for(var a=n[i],s=o<i?-1:1,u=i;u!==o;u+=s)n[u]=n[u+s];n[o]=a}})(s,m,u),this.sorted.next({previousIndex:m,currentIndex:u,container:this,item:t}),s.forEach(function(Me,st){if(de[st]!==Me){var tt=Me.drag===t,at=tt?Y:te,pt=tt?t.getPlaceholderElement():Me.drag.getRootElement();Me.offset+=at,p?(pt.style.transform=Jg("translate3d(".concat(Math.round(Me.offset),"px, 0, 0)"),Me.initialTransform),tm(Me.clientRect,0,at)):(pt.style.transform=Jg("translate3d(0, ".concat(Math.round(Me.offset),"px, 0)"),Me.initialTransform),tm(Me.clientRect,at,0))}}),this._previousSwap.overlaps=xC(L,i,o),this._previousSwap.drag=C.drag,this._previousSwap.delta=p?a.x:a.y}}}},{key:"_startScrollingIfNecessary",value:function(t,i){var o=this;if(!this.autoScrollDisabled){var a,s=0,u=0;if(this._parentPositions.positions.forEach(function(L,G){if(G!==o._document&&L.clientRect&&!a&&EE(L.clientRect,.05,t,i)){var Y=function(n,r,t,i){var o=ZE(r,i),a=MC(r,t),s=0,u=0;if(o){var p=n.scrollTop;1===o?p>0&&(s=1):n.scrollHeight-p>n.clientHeight&&(s=2)}if(a){var m=n.scrollLeft;1===a?m>0&&(u=1):n.scrollWidth-m>n.clientWidth&&(u=2)}return[s,u]}(G,L.clientRect,t,i),te=(0,b.Z)(Y,2);u=te[1],((s=te[0])||u)&&(a=G)}}),!s&&!u){var p=this._viewportRuler.getViewportSize(),m=p.width,C=p.height,P={width:m,height:C,top:0,right:m,bottom:C,left:0};s=ZE(P,i),u=MC(P,t),a=window}a&&(s!==this._verticalScrollDirection||u!==this._horizontalScrollDirection||a!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=u,this._scrollNode=a,(s||u)&&a?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var t=(0,Mn.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var t=(0,Mn.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(i){var o=i.getVisibleElement();return{drag:i,offset:0,initialTransform:o.style.transform||"",clientRect:TC(o)}}).sort(function(i,o){return t?i.clientRect.left-o.clientRect.left:i.clientRect.top-o.clientRect.top})}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var i=(0,Mn.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(o){var a,s=o.getRootElement();if(s){var u=null===(a=t._itemPositions.find(function(p){return p.drag===o}))||void 0===a?void 0:a.initialTransform;s.style.transform=u||""}}),this._siblings.forEach(function(o){return o._stopReceiving(t)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,i,o){var a="horizontal"===this._orientation,s=i[t].clientRect,u=i[t+-1*o],p=s[a?"width":"height"]*o;if(u){var m=a?"left":"top",C=a?"right":"bottom";-1===o?p-=u.clientRect[m]-s[C]:p+=s[m]-u.clientRect[C]}return p}},{key:"_getItemOffsetPx",value:function(t,i,o){var a="horizontal"===this._orientation,s=a?i.left-t.left:i.top-t.top;return-1===o&&(s+=a?i.width-t.width:i.height-t.height),s}},{key:"_shouldEnterAsFirstChild",value:function(t,i){if(!this._activeDraggables.length)return!1;var o=this._itemPositions,a="horizontal"===this._orientation;if(o[0].drag!==this._activeDraggables[0]){var u=o[o.length-1].clientRect;return a?t>=u.right:i>=u.bottom}var p=o[0].clientRect;return a?t<=p.left:i<=p.top}},{key:"_getItemIndexFromPointerPosition",value:function(t,i,o,a){var s=this,u="horizontal"===this._orientation,p=Xg(this._itemPositions,function(m,C,P){var L=m.drag,G=m.clientRect;return L===t?P.length<2:(!a||L!==s._previousSwap.drag||!s._previousSwap.overlaps||(u?a.x:a.y)!==s._previousSwap.delta)&&(u?i>=Math.floor(G.left)&&i<Math.floor(G.right):o>=Math.floor(G.top)&&o<Math.floor(G.bottom))});return-1!==p&&this.sortPredicate(p,t,this)?p:-1}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(t,i){return null!=this._clientRect&&xC(this._clientRect,t,i)}},{key:"_getSiblingContainerFromPosition",value:function(t,i,o){return this._siblings.find(function(a){return a._canReceive(t,i,o)})}},{key:"_canReceive",value:function(t,i,o){if(!this._clientRect||!xC(this._clientRect,i,o)||!this.enterPredicate(t,this))return!1;var a=this._getShadowRoot().elementFromPoint(i,o);if(!a)return!1;var s=(0,Mn.fI)(this.element);return a===s||s.contains(a)}},{key:"_startReceiving",value:function(t,i){var o=this,a=this._activeSiblings;!a.has(t)&&i.every(function(s){return o.enterPredicate(s,o)||o._draggables.indexOf(s)>-1})&&(a.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(i){if(t.isDragging()){var o=t._parentPositions.handleScroll(i);o&&(t._itemPositions.forEach(function(a){tm(a.clientRect,o.top,o.left)}),t._itemPositions.forEach(function(a){var s=a.drag;t._dragDropRegistry.isDragging(s)&&s._sortFromLastPointerPosition()}))}else t.isReceiving()&&t._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var t=(0,Xr.kV)((0,Mn.fI)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var t=this,i=this._activeDraggables.filter(function(o){return o.isDragging()});this._siblings.forEach(function(o){return o._startReceiving(t,i)})}}]),n}();function Xg(n,r){for(var t=0;t<n.length;t++)if(r(n[t],t,n))return t;return-1}function RE(n,r){n===window?n.scrollBy(0,r):n.scrollTop+=r}function NE(n,r){n===window?n.scrollBy(r,0):n.scrollLeft+=r}function ZE(n,r){var t=n.top,i=n.bottom,a=.05*n.height;return r>=t-a&&r<=t+a?1:r>=i-a&&r<=i+a?2:0}function MC(n,r){var t=n.left,i=n.right,a=.05*n.width;return r>=t-a&&r<=t+a?1:r>=i-a&&r<=i+a?2:0}var AC=(0,Xr.i$)({passive:!1,capture:!0}),LE=function(){var n=function(){function r(t,i){var o=this;(0,g.Z)(this,r),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(a){return a.isDragging()},this.pointerMove=new Pn.xQ,this.pointerUp=new Pn.xQ,this.scroll=new Pn.xQ,this._preventDefaultWhileDragging=function(a){o._activeDragInstances.length>0&&a.preventDefault()},this._persistentTouchmoveListener=function(a){o._activeDragInstances.length>0&&(o._activeDragInstances.some(o._draggingPredicate)&&a.preventDefault(),o.pointerMove.next(a))},this._document=i}return(0,T.Z)(r,[{key:"registerDropContainer",value:function(i){this._dropInstances.has(i)||this._dropInstances.add(i)}},{key:"registerDragItem",value:function(i){var o=this;this._dragInstances.add(i),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){o._document.addEventListener("touchmove",o._persistentTouchmoveListener,AC)})}},{key:"removeDropContainer",value:function(i){this._dropInstances.delete(i)}},{key:"removeDragItem",value:function(i){this._dragInstances.delete(i),this.stopDragging(i),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,AC)}},{key:"startDragging",value:function(i,o){var a=this;if(!(this._activeDragInstances.indexOf(i)>-1)&&(this._activeDragInstances.push(i),1===this._activeDragInstances.length)){var s=o.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:function(p){return a.pointerUp.next(p)},options:!0}).set("scroll",{handler:function(p){return a.scroll.next(p)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:AC}),s||this._globalListeners.set("mousemove",{handler:function(p){return a.pointerMove.next(p)},options:AC}),this._ngZone.runOutsideAngular(function(){a._globalListeners.forEach(function(u,p){a._document.addEventListener(p,u.handler,u.options)})})}}},{key:"stopDragging",value:function(i){var o=this._activeDragInstances.indexOf(i);o>-1&&(this._activeDragInstances.splice(o,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(i){return this._activeDragInstances.indexOf(i)>-1}},{key:"scrolled",value:function(i){var o=this,a=[this.scroll];return i&&i!==this._document&&a.push(new aa.y(function(s){return o._ngZone.runOutsideAngular(function(){var p=function(C){o._activeDragInstances.length&&s.next(C)};return i.addEventListener("scroll",p,!0),function(){i.removeEventListener("scroll",p,!0)}})})),go.T.apply(void 0,a)}},{key:"ngOnDestroy",value:function(){var i=this;this._dragInstances.forEach(function(o){return i.removeDragItem(o)}),this._dropInstances.forEach(function(o){return i.removeDropContainer(o)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var i=this;this._globalListeners.forEach(function(o,a){i._document.removeEventListener(a,o.handler,o.options)}),this._globalListeners.clear()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.R0b),e.LFG(kt.K0))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(e.R0b),e.LFG(kt.K0))},token:n,providedIn:"root"}),n}(),C3={dragStartThreshold:5,pointerDirectionChangeThreshold:5},qc=function(){var n=function(){function r(t,i,o,a){(0,g.Z)(this,r),this._document=t,this._ngZone=i,this._viewportRuler=o,this._dragDropRegistry=a}return(0,T.Z)(r,[{key:"createDrag",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C3;return new _3(i,o,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(i){return new IE(i,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(kt.K0),e.LFG(e.R0b),e.LFG(Sa.rL),e.LFG(LE))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(kt.K0),e.LFG(e.R0b),e.LFG(Sa.rL),e.LFG(LE))},token:n,providedIn:"root"}),n}(),VE=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[qc],imports:[Sa.ZD]}),n}(),so=f(93889),Gi=f(37429),Ya=f(61493),eo=f(90838),n_=f(17504),rr=f(43161),qE=[[["caption"]],[["colgroup"],["col"]]],jE=["caption","colgroup, col"];function DC(n){return function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){var o;(0,g.Z)(this,i);for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return(o=t.call.apply(t,[this].concat(s)))._sticky=!1,o._hasStickyChanged=!1,o}return(0,T.Z)(i,[{key:"sticky",get:function(){return this._sticky},set:function(a){var s=this._sticky;this._sticky=(0,Mn.Ig)(a),this._hasStickyChanged=s!==this._sticky}},{key:"hasStickyChanged",value:function(){var a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}}]),i}(n)}var yu=new e.OlP("CDK_TABLE"),Sf=function(){var n=function r(t){(0,g.Z)(this,r),this.template=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n}(),jc=function(){var n=function r(t){(0,g.Z)(this,r),this.template=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n}(),Ls=function(){var n=function r(t){(0,g.Z)(this,r),this.template=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n}(),OC=DC(function n(){(0,g.Z)(this,n)}),Qu=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o){var a;return(0,g.Z)(this,i),(a=t.call(this))._table=o,a._stickyEnd=!1,a}return(0,T.Z)(i,[{key:"name",get:function(){return this._name},set:function(a){this._setNameInput(a)}},{key:"stickyEnd",get:function(){return this._stickyEnd},set:function(a){var s=this._stickyEnd;this._stickyEnd=(0,Mn.Ig)(a),this._hasStickyChanged=s!==this._stickyEnd}},{key:"_updateColumnCssClassName",value:function(){this._columnCssClassName=["cdk-column-".concat(this.cssClassFriendlyName)]}},{key:"_setNameInput",value:function(a){a&&(this._name=a,this.cssClassFriendlyName=a.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}]),i}(OC);return n.\u0275fac=function(t){return new(t||n)(e.Y36(yu,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,Sf,5),e.Suo(o,jc,5),e.Suo(o,Ls,5)),2&t&&(e.iGM(a=e.CRH())&&(i.cell=a.first),e.iGM(a=e.CRH())&&(i.headerCell=a.first),e.iGM(a=e.CRH())&&(i.footerCell=a.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),e.qOj]}),n}(),PC=function n(r,t){(0,g.Z)(this,n);var a,i=t.nativeElement.classList,o=(0,_.Z)(r._columnCssClassName);try{for(o.s();!(a=o.n()).done;)i.add(a.value)}catch(u){o.e(u)}finally{o.f()}},zE=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a){return(0,g.Z)(this,i),t.call(this,o,a)}return i}(PC);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Qu),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),n}(),IC=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a){var s,u;if((0,g.Z)(this,i),s=t.call(this,o,a),1===(null===(u=o._table)||void 0===u?void 0:u._elementRef.nativeElement.nodeType)){var p=o._table._elementRef.nativeElement.getAttribute("role");a.nativeElement.setAttribute("role","grid"===p||"treegrid"===p?"gridcell":"cell")}return s}return i}(PC);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Qu),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),n}(),RC=function n(){(0,g.Z)(this,n),this.tasks=[],this.endTasks=[]},NC=new e.OlP("_COALESCED_STYLE_SCHEDULER"),GE=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._ngZone=t,this._currentSchedule=null,this._destroyed=new Pn.xQ}return(0,T.Z)(r,[{key:"schedule",value:function(i){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(i)}},{key:"scheduleEnd",value:function(i){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(i)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_createScheduleIfNeeded",value:function(){var i=this;this._currentSchedule||(this._currentSchedule=new RC,this._getScheduleObservable().pipe((0,Zr.R)(this._destroyed)).subscribe(function(){for(;i._currentSchedule.tasks.length||i._currentSchedule.endTasks.length;){var o=i._currentSchedule;i._currentSchedule=new RC;var s,a=(0,_.Z)(o.tasks);try{for(a.s();!(s=a.n()).done;)(0,s.value)()}catch(P){a.e(P)}finally{a.f()}var m,p=(0,_.Z)(o.endTasks);try{for(p.s();!(m=p.n()).done;)(0,m.value)()}catch(P){p.e(P)}finally{p.f()}}i._currentSchedule=null}))}},{key:"_getScheduleObservable",value:function(){return this._ngZone.isStable?(0,Ya.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,$i.q)(1))}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.R0b))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),ZC=function(){var n=function(){function r(t,i){(0,g.Z)(this,r),this.template=t,this._differs=i}return(0,T.Z)(r,[{key:"ngOnChanges",value:function(i){if(!this._columnsDiffer){var o=i.columns&&i.columns.currentValue||[];this._columnsDiffer=this._differs.find(o).create(),this._columnsDiffer.diff(o)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(i){return this instanceof Tf?i.headerCell.template:this instanceof xf?i.footerCell.template:i.cell.template}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},n.\u0275dir=e.lG2({type:n,features:[e.TTD]}),n}(),O3=DC(function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(ZC)),Tf=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s){var u;return(0,g.Z)(this,i),(u=t.call(this,o,a))._table=s,u}return(0,T.Z)(i,[{key:"ngOnChanges",value:function(a){(0,I.Z)((0,D.Z)(i.prototype),"ngOnChanges",this).call(this,a)}}]),i}(O3);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(yu,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),n}(),YE=DC(function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(ZC)),xf=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s){var u;return(0,g.Z)(this,i),(u=t.call(this,o,a))._table=s,u}return(0,T.Z)(i,[{key:"ngOnChanges",value:function(a){(0,I.Z)((0,D.Z)(i.prototype),"ngOnChanges",this).call(this,a)}}]),i}(YE);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(yu,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),n}(),im=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s){var u;return(0,g.Z)(this,i),(u=t.call(this,o,a))._table=s,u}return i}(ZC);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(yu,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),n}(),bu=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._viewContainer=t,r.mostRecentCellOutlet=this}return(0,T.Z)(r,[{key:"ngOnDestroy",value:function(){r.mostRecentCellOutlet===this&&(r.mostRecentCellOutlet=null)}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n.mostRecentCellOutlet=null,n}(),FC=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&e.GkF(0,0)},directives:[bu],encapsulation:2}),n}(),i_=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&e.GkF(0,0)},directives:[bu],encapsulation:2}),n}(),o_=function(){var n=function r(t){(0,g.Z)(this,r),this.templateRef=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n}(),BC=["top","bottom","left","right"],JE=function(){function n(r,t,i,o){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],u=arguments.length>6?arguments[6]:void 0;(0,g.Z)(this,n),this._isNativeHtmlTable=r,this._stickCellCss=t,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=a,this._needsPositionStickyOnElement=s,this._positionListener=u,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(t,"-border-elem-top"),bottom:"".concat(t,"-border-elem-bottom"),left:"".concat(t,"-border-elem-left"),right:"".concat(t,"-border-elem-right")}}return(0,T.Z)(n,[{key:"clearStickyPositioning",value:function(t,i){var u,o=this,a=[],s=(0,_.Z)(t);try{for(s.s();!(u=s.n()).done;){var p=u.value;if(p.nodeType===p.ELEMENT_NODE){a.push(p);for(var m=0;m<p.children.length;m++)a.push(p.children[m])}}}catch(C){s.e(C)}finally{s.f()}this._coalescedStyleScheduler.schedule(function(){for(var C=0,P=a;C<P.length;C++)o._removeStickyStyle(P[C],i)})}},{key:"updateStickyColumns",value:function(t,i,o){var a=this,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(i.some(function(Y){return Y})||o.some(function(Y){return Y}))){var u=t[0],p=u.children.length,m=this._getCellWidths(u,s),C=this._getStickyStartColumnPositions(m,i),P=this._getStickyEndColumnPositions(m,o),L=i.lastIndexOf(!0),G=o.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var st,Y="rtl"===a.direction,te=Y?"right":"left",de=Y?"left":"right",Me=(0,_.Z)(t);try{for(Me.s();!(st=Me.n()).done;)for(var tt=st.value,at=0;at<p;at++){var pt=tt.children[at];i[at]&&a._addStickyStyle(pt,te,C[at],at===L),o[at]&&a._addStickyStyle(pt,de,P[at],at===G)}}catch(Je){Me.e(Je)}finally{Me.f()}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===L?[]:m.slice(0,L+1).map(function(Je,et){return i[et]?Je:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===G?[]:m.slice(G).map(function(Je,et){return o[et+G]?Je:null}).reverse()}))})}else this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}},{key:"stickRows",value:function(t,i,o){var a=this;if(this._isBrowser){for(var s="bottom"===o?t.slice().reverse():t,u="bottom"===o?i.slice().reverse():i,p=[],m=[],C=[],P=0,L=0;P<s.length;P++)if(u[P]){p[P]=L;var G=s[P];C[P]=this._isNativeHtmlTable?Array.from(G.children):[G];var Y=G.getBoundingClientRect().height;L+=Y,m[P]=Y}var te=u.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(function(){for(var de,Me,st=0;st<s.length;st++)if(u[st]){var Je,tt=p[st],at=st===te,pt=(0,_.Z)(C[st]);try{for(pt.s();!(Je=pt.n()).done;)a._addStickyStyle(Je.value,o,tt,at)}catch(It){pt.e(It)}finally{pt.f()}}"top"===o?null===(de=a._positionListener)||void 0===de||de.stickyHeaderRowsUpdated({sizes:m,offsets:p,elements:C}):null===(Me=a._positionListener)||void 0===Me||Me.stickyFooterRowsUpdated({sizes:m,offsets:p,elements:C})})}}},{key:"updateStickyFooterContainer",value:function(t,i){var o=this;if(this._isNativeHtmlTable){var a=t.querySelector("tfoot");this._coalescedStyleScheduler.schedule(function(){i.some(function(s){return!s})?o._removeStickyStyle(a,["bottom"]):o._addStickyStyle(a,"bottom",0,!1)})}}},{key:"_removeStickyStyle",value:function(t,i){var a,o=(0,_.Z)(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;t.style[s]="",t.classList.remove(this._borderCellCss[s])}}catch(p){o.e(p)}finally{o.f()}BC.some(function(p){return-1===i.indexOf(p)&&t.style[p]})?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(t,i,o,a){t.classList.add(this._stickCellCss),a&&t.classList.add(this._borderCellCss[i]),t.style[i]="".concat(o,"px"),t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}},{key:"_getCalculatedZIndex",value:function(t){for(var i={top:100,bottom:10,left:1,right:1},o=0,a=0,s=BC;a<s.length;a++){var u=s[a];t.style[u]&&(o+=i[u])}return o?"".concat(o):""}},{key:"_getCellWidths",value:function(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!i&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var o=[],a=t.children,s=0;s<a.length;s++){var u=a[s];o.push(u.getBoundingClientRect().width)}return this._cachedCellWidths=o,o}},{key:"_getStickyStartColumnPositions",value:function(t,i){for(var o=[],a=0,s=0;s<t.length;s++)i[s]&&(o[s]=a,a+=t[s]);return o}},{key:"_getStickyEndColumnPositions",value:function(t,i){for(var o=[],a=0,s=t.length;s>0;s--)i[s]&&(o[s]=a,a+=t[s]);return o}}]),n}(),am=new e.OlP("CDK_SPL"),sm=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","rowOutlet",""]]}),n}(),s_=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n}(),l_=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n}(),wf=function(){var n=function r(t,i){(0,g.Z)(this,r),this.viewContainer=t,this.elementRef=i};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.s_b),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n}(),ep=function(){var n=function(){function r(t,i,o,a,s,u,p,m,C,P,L){(0,g.Z)(this,r),this._differs=t,this._changeDetectorRef=i,this._elementRef=o,this._dir=s,this._platform=p,this._viewRepeater=m,this._coalescedStyleScheduler=C,this._viewportRuler=P,this._stickyPositioningListener=L,this._onDestroy=new Pn.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new eo.X({start:0,end:Number.MAX_VALUE}),a||this._elementRef.nativeElement.setAttribute("role","table"),this._document=u,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return(0,T.Z)(r,[{key:"trackBy",get:function(){return this._trackByFn},set:function(i){this._trackByFn=i}},{key:"dataSource",get:function(){return this._dataSource},set:function(i){this._dataSource!==i&&this._switchDataSource(i)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(i){this._multiTemplateDataRows=(0,Mn.Ig)(i),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(i){this._fixedLayout=(0,Mn.Ig)(i),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var i=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(o,a){return i.trackBy?i.trackBy(a.dataIndex,a.data):a}),this._viewportRuler.change().pipe((0,Zr.R)(this._onDestroy)).subscribe(function(){i._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var o=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||o,this._forceRecalculateCellWidths=o,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,Gi.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var i=this;this._renderRows=this._getAllRenderRows();var o=this._dataDiffer.diff(this._renderRows);if(!o)return this._updateNoDataRow(),void this.contentChanged.next();var a=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(o,a,function(s,u,p){return i._getEmbeddedViewArgs(s.item,p)},function(s){return s.item.data},function(s){1===s.operation&&s.context&&i._renderCellTemplateForItem(s.record.item.rowDef,s.context)}),this._updateRowIndexContext(),o.forEachIdentityChange(function(s){a.get(s.currentIndex).context.$implicit=s.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(i){this._customColumnDefs.add(i)}},{key:"removeColumnDef",value:function(i){this._customColumnDefs.delete(i)}},{key:"addRowDef",value:function(i){this._customRowDefs.add(i)}},{key:"removeRowDef",value:function(i){this._customRowDefs.delete(i)}},{key:"addHeaderRowDef",value:function(i){this._customHeaderRowDefs.add(i),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(i){this._customHeaderRowDefs.delete(i),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(i){this._customFooterRowDefs.add(i),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(i){this._customFooterRowDefs.delete(i),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(i){this._customNoDataRow=i}},{key:"updateStickyHeaderRowStyles",value:function(){var i=this._getRenderedRows(this._headerRowOutlet),a=this._elementRef.nativeElement.querySelector("thead");a&&(a.style.display=i.length?"":"none");var s=this._headerRowDefs.map(function(u){return u.sticky});this._stickyStyler.clearStickyPositioning(i,["top"]),this._stickyStyler.stickRows(i,s,"top"),this._headerRowDefs.forEach(function(u){return u.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var i=this._getRenderedRows(this._footerRowOutlet),a=this._elementRef.nativeElement.querySelector("tfoot");a&&(a.style.display=i.length?"":"none");var s=this._footerRowDefs.map(function(u){return u.sticky});this._stickyStyler.clearStickyPositioning(i,["bottom"]),this._stickyStyler.stickRows(i,s,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,s),this._footerRowDefs.forEach(function(u){return u.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var i=this,o=this._getRenderedRows(this._headerRowOutlet),a=this._getRenderedRows(this._rowOutlet),s=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat((0,v.Z)(o),(0,v.Z)(a),(0,v.Z)(s)),["left","right"]),this._stickyColumnStylesNeedReset=!1),o.forEach(function(u,p){i._addStickyColumnStyles([u],i._headerRowDefs[p])}),this._rowDefs.forEach(function(u){for(var p=[],m=0;m<a.length;m++)i._renderRows[m].rowDef===u&&p.push(a[m]);i._addStickyColumnStyles(p,u)}),s.forEach(function(u,p){i._addStickyColumnStyles([u],i._footerRowDefs[p])}),Array.from(this._columnDefsByName.values()).forEach(function(u){return u.resetStickyChanged()})}},{key:"_getAllRenderRows",value:function(){var i=[],o=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var a=0;a<this._data.length;a++){var s=this._data[a],u=this._getRenderRowsForData(s,a,o.get(s));this._cachedRenderRowsMap.has(s)||this._cachedRenderRowsMap.set(s,new WeakMap);for(var p=0;p<u.length;p++){var m=u[p],C=this._cachedRenderRowsMap.get(m.data);C.has(m.rowDef)?C.get(m.rowDef).push(m):C.set(m.rowDef,[m]),i.push(m)}}return i}},{key:"_getRenderRowsForData",value:function(i,o,a){return this._getRowDefs(i,o).map(function(u){var p=a&&a.has(u)?a.get(u):[];if(p.length){var m=p.shift();return m.dataIndex=o,m}return{data:i,rowDef:u,dataIndex:o}})}},{key:"_cacheColumnDefs",value:function(){var i=this;this._columnDefsByName.clear(),Ef(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(a){i._columnDefsByName.has(a.name),i._columnDefsByName.set(a.name,a)})}},{key:"_cacheRowDefs",value:function(){this._headerRowDefs=Ef(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ef(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ef(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var i=this._rowDefs.filter(function(o){return!o.when});this._defaultRowDef=i[0]}},{key:"_renderUpdatedColumns",value:function(){var i=function(p,m){return p||!!m.getColumnsDiff()},o=this._rowDefs.reduce(i,!1);o&&this._forceRenderDataRows();var a=this._headerRowDefs.reduce(i,!1);a&&this._forceRenderHeaderRows();var s=this._footerRowDefs.reduce(i,!1);return s&&this._forceRenderFooterRows(),o||a||s}},{key:"_switchDataSource",value:function(i){this._data=[],(0,Gi.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),i||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=i}},{key:"_observeRenderChanges",value:function(){var o,i=this;this.dataSource&&((0,Gi.Z9)(this.dataSource)?o=this.dataSource.connect(this):(0,n_.b)(this.dataSource)?o=this.dataSource:Array.isArray(this.dataSource)&&(o=(0,rr.of)(this.dataSource)),this._renderChangeSubscription=o.pipe((0,Zr.R)(this._onDestroy)).subscribe(function(a){i._data=a||[],i.renderRows()}))}},{key:"_forceRenderHeaderRows",value:function(){var i=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(o,a){return i._renderRow(i._headerRowOutlet,o,a)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var i=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(o,a){return i._renderRow(i._footerRowOutlet,o,a)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(i,o){var a=this,s=Array.from(o.columns||[]).map(function(m){return a._columnDefsByName.get(m)}),u=s.map(function(m){return m.sticky}),p=s.map(function(m){return m.stickyEnd});this._stickyStyler.updateStickyColumns(i,u,p,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(i){for(var o=[],a=0;a<i.viewContainer.length;a++){var s=i.viewContainer.get(a);o.push(s.rootNodes[0])}return o}},{key:"_getRowDefs",value:function(i,o){if(1==this._rowDefs.length)return[this._rowDefs[0]];var a=[];if(this.multiTemplateDataRows)a=this._rowDefs.filter(function(u){return!u.when||u.when(o,i)});else{var s=this._rowDefs.find(function(u){return u.when&&u.when(o,i)})||this._defaultRowDef;s&&a.push(s)}return a}},{key:"_getEmbeddedViewArgs",value:function(i,o){return{templateRef:i.rowDef.template,context:{$implicit:i.data},index:o}}},{key:"_renderRow",value:function(i,o,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=i.viewContainer.createEmbeddedView(o.template,s,a);return this._renderCellTemplateForItem(o,s),u}},{key:"_renderCellTemplateForItem",value:function(i,o){var s,a=(0,_.Z)(this._getCellTemplates(i));try{for(a.s();!(s=a.n()).done;)bu.mostRecentCellOutlet&&bu.mostRecentCellOutlet._viewContainer.createEmbeddedView(s.value,o)}catch(p){a.e(p)}finally{a.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var i=this._rowOutlet.viewContainer,o=0,a=i.length;o<a;o++){var u=i.get(o).context;u.count=a,u.first=0===o,u.last=o===a-1,u.even=o%2==0,u.odd=!u.even,this.multiTemplateDataRows?(u.dataIndex=this._renderRows[o].dataIndex,u.renderIndex=o):u.index=this._renderRows[o].dataIndex}}},{key:"_getCellTemplates",value:function(i){var o=this;return i&&i.columns?Array.from(i.columns,function(a){var s=o._columnDefsByName.get(a);return i.extractCellTemplate(s)}):[]}},{key:"_applyNativeTableSections",value:function(){for(var i=this._document.createDocumentFragment(),a=0,s=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];a<s.length;a++){var u=s[a],p=this._document.createElement(u.tag);p.setAttribute("role","rowgroup");var C,m=(0,_.Z)(u.outlets);try{for(m.s();!(C=m.n()).done;)p.appendChild(C.value.elementRef.nativeElement)}catch(L){m.e(L)}finally{m.f()}i.appendChild(p)}this._elementRef.nativeElement.appendChild(i)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}},{key:"_checkStickyStates",value:function(){var i=function(a,s){return a||s.hasStickyChanged()};this._headerRowDefs.reduce(i,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(i,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(i,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}},{key:"_setupStickyStyler",value:function(){var i=this;this._stickyStyler=new JE(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,rr.of)()).pipe((0,Zr.R)(this._onDestroy)).subscribe(function(a){i._stickyStyler.direction=a,i.updateStickyColumnStyles()})}},{key:"_getOwnDefs",value:function(i){var o=this;return i.filter(function(a){return!a._table||a._table===o})}},{key:"_updateNoDataRow",value:function(){var i=this._customNoDataRow||this._noDataRow;if(i){var o=0===this._rowOutlet.viewContainer.length;if(o!==this._isShowingNoDataRow){var a=this._noDataRowOutlet.viewContainer;o?a.createEmbeddedView(i.templateRef):a.clear(),this._isShowingNoDataRow=o}}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(Na.Is,8),e.Y36(kt.K0),e.Y36(Xr.t4),e.Y36(Gi.k),e.Y36(NC),e.Y36(Sa.rL),e.Y36(am,12))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,o_,5),e.Suo(o,Qu,5),e.Suo(o,im,5),e.Suo(o,Tf,5),e.Suo(o,xf,5)),2&t&&(e.iGM(a=e.CRH())&&(i._noDataRow=a.first),e.iGM(a=e.CRH())&&(i._contentColumnDefs=a),e.iGM(a=e.CRH())&&(i._contentRowDefs=a),e.iGM(a=e.CRH())&&(i._contentHeaderRowDefs=a),e.iGM(a=e.CRH())&&(i._contentFooterRowDefs=a))},viewQuery:function(t,i){var o;1&t&&(e.Gf(sm,7),e.Gf(s_,7),e.Gf(l_,7),e.Gf(wf,7)),2&t&&(e.iGM(o=e.CRH())&&(i._rowOutlet=o.first),e.iGM(o=e.CRH())&&(i._headerRowOutlet=o.first),e.iGM(o=e.CRH())&&(i._footerRowOutlet=o.first),e.iGM(o=e.CRH())&&(i._noDataRowOutlet=o.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:yu,useExisting:n},{provide:Gi.k,useClass:Gi.yy},{provide:NC,useClass:GE},{provide:am,useValue:null}])],ngContentSelectors:jE,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){1&t&&(e.F$t(qE),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[s_,sm,wf,l_],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n}();function Ef(n,r){return n.concat(Array.from(r))}var QE=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Sa.Cl]]}),n}(),Ku=f(75472),re=f(19061),un=f(59412),zr=f(32819),tp=f(33090),mi=f(58780),u_=(f(12698),f(76161)),UC=f(57263),on=f(739),ys=f(38480),V3=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[kt.ez,un.BQ,Xr.ud,Sa.ZD],Sa.ZD,un.BQ]}),n}(),q3=f(82667),lm=f(81370),sa=f(35135),um=f(16338),sk=f(64397),b4=f(75398),j3=f(4363);function lk(n,r){return"function"==typeof(n=function(n,r){return void 0===n?void 0===r?n:r:n}(n,r))?function(){for(var i=arguments,o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=i[s];return!!n.apply(this,a)}:n?function(){return!0}:function(){return!1}}var uk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},ck=function(r){return null!=r&&"object"===(void 0===r?"undefined":uk(r))&&1===r.nodeType&&"object"===uk(r.style)&&"object"===uk(r.ownerDocument)};function dk(n,r){if(r=zC(r,!0),!ck(r))return-1;for(var t=0;t<n.length;t++)if(n[t]===r)return t;return-1}function jC(n,r){return-1!==dk(n,r)}function S4(n,r){for(var t=0;t<r.length;t++)jC(n,r[t])||n.push(r[t]);return r}function T4(n){for(var r=arguments,t=[],i=arguments.length-1;i-- >0;)t[i]=r[i+1];return S4(n,t=t.map(zC))}function x4(n){for(var r=arguments,t=[],i=arguments.length-1;i-- >0;)t[i]=r[i+1];return t.map(zC).reduce(function(o,a){var s=dk(n,a);return-1!==s?o.concat(n.splice(s,1)):o},[])}function zC(n,r){if("string"==typeof n)try{return document.querySelector(n)}catch(t){throw t}if(!ck(n)&&!r)throw new TypeError(n+" is not a DOM element.");return n}function pk(n){if(n===window)return function(){var n={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},n);var r={};return Object.defineProperties(r,n),r}();try{var r=n.getBoundingClientRect();return void 0===r.x&&(r.x=r.left,r.y=r.top),r}catch(t){throw new TypeError("Can't call getBoundingClientRect on "+n)}}var r,fk=void 0;"function"!=typeof Object.create?(r=function(){},fk=function(t,i){if(t!==Object(t)&&null!==t)throw TypeError("Argument must be an object, or null");r.prototype=t||{};var o=new r;return r.prototype=null,void 0!==i&&Object.defineProperties(o,i),null===t&&(o.__proto__=null),o}):fk=Object.create;var w4=fk,np=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function WC(n,r){r=r||{};for(var t=w4(n),i=0;i<np.length;i++)void 0!==r[np[i]]&&(t[np[i]]=r[np[i]]);return t}function cm(n,r){console.log("data ",r),n.data=r||{},n.dispatched="mousemove"}var Cu=["webkit","moz","ms","o"],kf=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=Cu.length;n<r&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[Cu[n]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var t=0;window.requestAnimationFrame=function(i){var o=(new Date).getTime(),a=Math.max(0,16-o-t),s=window.setTimeout(function(){return i(o+a)},a);return t=o+a,s}}return window.requestAnimationFrame.bind(window)}(),Mf=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=Cu.length;n<r&&!window.cancelAnimationFrame;++n)window.cancelAnimationFrame=window[Cu[n]+"CancelAnimationFrame"]||window[Cu[n]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){window.clearTimeout(t)}),window.cancelAnimationFrame.bind(window)}();function Y3(n,r){void 0===r&&(r={});var t=this,i=4,o=!1;if("object"!=typeof r.margin){var a=r.margin||-1;this.margin={left:a,right:a,top:a,bottom:a}}else this.margin=r.margin;this.scrollWhenOutside=r.scrollWhenOutside||!1;var s={},u=function(n,r){var t=lk((r=r||{}).allowUpdate,!0);return function(o){if(o=o||window.event,n.target=o.target||o.srcElement||o.originalTarget,n.element=this,n.type=o.type,t(o)){if(o.targetTouches)n.x=o.targetTouches[0].clientX,n.y=o.targetTouches[0].clientY,n.pageX=o.targetTouches[0].pageX,n.pageY=o.targetTouches[0].pageY,n.screenX=o.targetTouches[0].screenX,n.screenY=o.targetTouches[0].screenY;else{if(null===o.pageX&&null!==o.clientX){var a=o.target&&o.target.ownerDocument||document,s=a.documentElement,u=a.body;n.pageX=o.clientX+(s&&s.scrollLeft||u&&u.scrollLeft||0)-(s&&s.clientLeft||u&&u.clientLeft||0),n.pageY=o.clientY+(s&&s.scrollTop||u&&u.scrollTop||0)-(s&&s.clientTop||u&&u.clientTop||0)}else n.pageX=o.pageX,n.pageY=o.pageY;n.x=o.clientX,n.y=o.clientY,n.screenX=o.screenX,n.screenY=o.screenY}n.clientX=n.x,n.clientY=n.y}}}(s),p=function(n){var r={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};return{destroy:function(){r=null},dispatch:MouseEvent?function(s,u,p){var m=new MouseEvent("mousemove",WC(r,u));return cm(m,p),s.dispatchEvent(m)}:"function"==typeof document.createEvent?function(s,u,p){var m=WC(r,u),C=document.createEvent("MouseEvents");return C.initMouseEvent("mousemove",!0,!0,window,0,m.screenX,m.screenY,m.clientX,m.clientY,m.ctrlKey,m.altKey,m.shiftKey,m.metaKey,m.button,m.relatedTarget),cm(C,p),s.dispatchEvent(C)}:"function"==typeof document.createEventObject?function(s,u,p){var m=document.createEventObject(),C=WC(r,u);for(var P in C)m[P]=C[P];return cm(m,p),s.dispatchEvent(m)}:void 0}}(),m=!1;window.addEventListener("mousemove",u,!1),window.addEventListener("touchmove",u,!1),isNaN(r.maxSpeed)||(i=r.maxSpeed),"object"!=typeof i&&(i={left:i,right:i,top:i,bottom:i}),this.autoScroll=lk(r.autoScroll),this.syncMove=lk(r.syncMove,!1),this.destroy=function(Wt){window.removeEventListener("mousemove",u,!1),window.removeEventListener("touchmove",u,!1),window.removeEventListener("mousedown",te,!1),window.removeEventListener("touchstart",te,!1),window.removeEventListener("mouseup",de,!1),window.removeEventListener("touchend",de,!1),window.removeEventListener("pointerup",de,!1),window.removeEventListener("mouseleave",st,!1),window.removeEventListener("mousemove",pt,!1),window.removeEventListener("touchmove",pt,!1),window.removeEventListener("scroll",Y,!0),n=[],Wt&&Me()},this.add=function(){for(var Wt=[],ot=arguments.length;ot--;)Wt[ot]=arguments[ot];return T4.apply(void 0,[n].concat(Wt)),this},this.remove=function(){for(var Wt=[],ot=arguments.length;ot--;)Wt[ot]=arguments[ot];return x4.apply(void 0,[n].concat(Wt))};var P,Wt,C=null;"[object Array]"!==Object.prototype.toString.call(n)&&(n=[n]),Wt=n,n=[],Wt.forEach(function(ot){ot===window?C=window:t.add(ot)}),Object.defineProperties(this,{down:{get:function(){return m}},maxSpeed:{get:function(){return i}},point:{get:function(){return s}},scrolling:{get:function(){return o}}});var G,L=null;function Y(Wt){for(var ot=0;ot<n.length;ot++)if(n[ot]===Wt.target){o=!0;break}o&&kf(function(){return o=!1})}function te(){m=!0}function de(){m=!1,Me()}function Me(){Mf(G),Mf(P)}function st(){m=!1}function at(){for(var Wt=null,ot=0;ot<n.length;ot++)YC(s,n[ot])&&(Wt=n[ot]);return Wt}function pt(Wt){if(t.autoScroll()&&!Wt.dispatched){var ot=Wt.target,Dt=document.body;L&&!YC(s,L)&&(t.scrollWhenOutside||(L=null)),ot&&ot.parentNode===Dt?ot=at():(ot=function(Wt){if(!Wt)return null;if(L===Wt||jC(n,Wt))return Wt;for(;Wt=Wt.parentNode;)if(jC(n,Wt))return Wt;return null}(ot))||(ot=at()),ot&&ot!==L&&(L=ot),C&&(Mf(P),P=kf(Je)),L&&(Mf(G),G=kf(et))}}function Je(){It(C),Mf(P),P=kf(Je)}function et(){!L||(It(L),Mf(G),G=kf(et))}function It(Wt){var Dt,mn,ot=pk(Wt);Dt=s.x<ot.left+t.margin.left?Math.floor(Math.max(-1,(s.x-ot.left)/t.margin.left-1)*t.maxSpeed.left):s.x>ot.right-t.margin.right?Math.ceil(Math.min(1,(s.x-ot.right)/t.margin.right+1)*t.maxSpeed.right):0,mn=s.y<ot.top+t.margin.top?Math.floor(Math.max(-1,(s.y-ot.top)/t.margin.top-1)*t.maxSpeed.top):s.y>ot.bottom-t.margin.bottom?Math.ceil(Math.min(1,(s.y-ot.bottom)/t.margin.bottom+1)*t.maxSpeed.bottom):0,t.syncMove()&&p.dispatch(Wt,{pageX:s.pageX+Dt,pageY:s.pageY+mn,clientX:s.x+Dt,clientY:s.y+mn}),setTimeout(function(){mn&&function(Wt,ot){Wt===window?window.scrollTo(Wt.pageXOffset,Wt.pageYOffset+ot):Wt.scrollTop+=ot}(Wt,mn),Dt&&function(Wt,ot){Wt===window?window.scrollTo(Wt.pageXOffset+ot,Wt.pageYOffset):Wt.scrollLeft+=ot}(Wt,Dt)})}window.addEventListener("mousedown",te,!1),window.addEventListener("touchstart",te,!1),window.addEventListener("mouseup",de,!1),window.addEventListener("touchend",de,!1),window.addEventListener("pointerup",de,!1),window.addEventListener("mousemove",pt,!1),window.addEventListener("touchmove",pt,!1),window.addEventListener("mouseleave",st,!1),window.addEventListener("scroll",Y,!0)}function YC(n,r,t){return t?n.y>t.top&&n.y<t.bottom&&n.x>t.left&&n.x<t.right:function(n,r){var t=pk(r);return n.y>t.top&&n.y<t.bottom&&n.x>t.left&&n.x<t.right}(n,r)}var JC=function(){var n=function r(){(0,g.Z)(this,r),this.currentDrag=new Pn.xQ};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({factory:function(){return new n},token:n,providedIn:"root"}),n}(),J3=function(){var n=function r(t){(0,g.Z)(this,r),this.elementRef=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","mwlDraggableScrollContainer",""]]}),n}();var mk=function(){var n=function(){function r(t,i,o,a,s,u,p){(0,g.Z)(this,r),this.element=t,this.renderer=i,this.draggableHelper=o,this.zone=a,this.vcr=s,this.scrollContainer=u,this.document=p,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new e.vpe,this.dragStart=new e.vpe,this.ghostElementCreated=new e.vpe,this.dragging=new e.vpe,this.dragEnd=new e.vpe,this.pointerDown$=new Pn.xQ,this.pointerMove$=new Pn.xQ,this.pointerUp$=new Pn.xQ,this.eventListenerSubscriptions={},this.destroy$=new Pn.xQ,this.timeLongPress={timerBegin:0,timerEnd:0}}return(0,T.Z)(r,[{key:"ngOnInit",value:function(){var i=this;this.checkEventListeners();var o=this.pointerDown$.pipe((0,mi.h)(function(){return i.canDrag()}),(0,sa.zg)(function(a){a.event.stopPropagation&&!i.scrollContainer&&a.event.stopPropagation();var s=i.renderer.createElement("style");i.renderer.setAttribute(s,"type","text/css"),i.renderer.appendChild(s,i.renderer.createText("\n body * {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n ")),requestAnimationFrame(function(){i.document.head.appendChild(s)});var u=i.getScrollPosition(),p=new aa.y(function(te){return i.renderer.listen(i.scrollContainer?i.scrollContainer.elementRef.nativeElement:"window","scroll",function(Me){return te.next(Me)})}).pipe((0,ra.O)(u),(0,Er.U)(function(){return i.getScrollPosition()})),m=new Pn.xQ,C=new q3.t;i.zone.run(function(){i.dragPointerDown.next({x:0,y:0})});var P=(0,go.T)(i.pointerUp$,i.pointerDown$,C,i.destroy$).pipe((0,um.B)()),L=(0,lm.aj)([i.pointerMove$,p]).pipe((0,Er.U)(function(te){var de=(0,b.Z)(te,2),Me=de[0],st=de[1];return{currentDrag$:m,transformX:Me.clientX-a.clientX,transformY:Me.clientY-a.clientY,clientX:Me.clientX,clientY:Me.clientY,scrollLeft:st.left,scrollTop:st.top,target:Me.event.target}}),(0,Er.U)(function(te){return i.dragSnapGrid.x&&(te.transformX=Math.round(te.transformX/i.dragSnapGrid.x)*i.dragSnapGrid.x),i.dragSnapGrid.y&&(te.transformY=Math.round(te.transformY/i.dragSnapGrid.y)*i.dragSnapGrid.y),te}),(0,Er.U)(function(te){return i.dragAxis.x||(te.transformX=0),i.dragAxis.y||(te.transformY=0),te}),(0,Er.U)(function(te){var de=te.scrollLeft-u.left,Me=te.scrollTop-u.top;return Object.assign(Object.assign({},te),{x:te.transformX+de,y:te.transformY+Me})}),(0,mi.h)(function(te){return!i.validateDrag||i.validateDrag({x:te.x,y:te.y,transform:{x:te.transformX,y:te.transformY}})}),(0,Zr.R)(P),(0,um.B)()),G=L.pipe((0,$i.q)(1),(0,um.B)()),Y=L.pipe((0,sk.h)(1),(0,um.B)());return G.subscribe(function(te){var de=te.clientX,Me=te.clientY,st=te.x,tt=te.y;if(i.zone.run(function(){i.dragStart.next({cancelDrag$:C})}),i.scroller=function(n,r){return new Y3(n,r)}([i.scrollContainer?i.scrollContainer.elementRef.nativeElement:i.document.defaultView],Object.assign(Object.assign({},i.autoScroll),{autoScroll:function(){return!0}})),function(n,r,t){t&&t.split(" ").forEach(function(i){return n.addClass(r.nativeElement,i)})}(i.renderer,i.element,i.dragActiveClass),i.ghostDragEnabled){var at=i.element.nativeElement.getBoundingClientRect(),pt=i.element.nativeElement.cloneNode(!0);if(i.showOriginalElementWhileDragging||i.renderer.setStyle(i.element.nativeElement,"visibility","hidden"),i.ghostElementAppendTo?i.ghostElementAppendTo.appendChild(pt):i.element.nativeElement.parentNode.insertBefore(pt,i.element.nativeElement.nextSibling),i.ghostElement=pt,i.document.body.style.cursor=i.dragCursor,i.setElementStyles(pt,{position:"fixed",top:"".concat(at.top,"px"),left:"".concat(at.left,"px"),width:"".concat(at.width,"px"),height:"".concat(at.height,"px"),cursor:i.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),i.ghostElementTemplate){var Je=i.vcr.createEmbeddedView(i.ghostElementTemplate);pt.innerHTML="",Je.rootNodes.filter(function(et){return et instanceof Node}).forEach(function(et){pt.appendChild(et)}),Y.subscribe(function(){i.vcr.remove(i.vcr.indexOf(Je))})}i.zone.run(function(){i.ghostElementCreated.emit({clientX:de-st,clientY:Me-tt,element:pt})}),Y.subscribe(function(){pt.parentElement.removeChild(pt),i.ghostElement=null,i.renderer.setStyle(i.element.nativeElement,"visibility","")})}i.draggableHelper.currentDrag.next(m)}),Y.pipe((0,sa.zg)(function(te){var de=C.pipe((0,b4.Q)(),(0,$i.q)(1),(0,Er.U)(function(Me){return Object.assign(Object.assign({},te),{dragCancelled:Me>0})}));return C.complete(),de})).subscribe(function(te){var de=te.x,Me=te.y,st=te.dragCancelled;i.scroller.destroy(),i.zone.run(function(){i.dragEnd.next({x:de,y:Me,dragCancelled:st})}),function(n,r,t){t&&t.split(" ").forEach(function(i){return n.removeClass(r.nativeElement,i)})}(i.renderer,i.element,i.dragActiveClass),m.complete()}),(0,go.T)(P,Y).pipe((0,$i.q)(1)).subscribe(function(){requestAnimationFrame(function(){i.document.head.removeChild(s)})}),L}),(0,um.B)());(0,go.T)(o.pipe((0,$i.q)(1),(0,Er.U)(function(a){return[,a]})),o.pipe((0,j3.G)())).pipe((0,mi.h)(function(a){var s=(0,b.Z)(a,2),u=s[0],p=s[1];return!u||u.x!==p.x||u.y!==p.y}),(0,Er.U)(function(a){return(0,b.Z)(a,2)[1]})).subscribe(function(a){var s=a.x,u=a.y,p=a.currentDrag$,m=a.clientX,C=a.clientY,P=a.transformX,L=a.transformY,G=a.target;i.zone.run(function(){i.dragging.next({x:s,y:u})}),requestAnimationFrame(function(){if(i.ghostElement){var Y="translate3d(".concat(P,"px, ").concat(L,"px, 0px)");i.setElementStyles(i.ghostElement,{transform:Y,"-webkit-transform":Y,"-ms-transform":Y,"-moz-transform":Y,"-o-transform":Y})}}),p.next({clientX:m,clientY:C,dropData:i.dropData,target:G})})}},{key:"ngOnChanges",value:function(i){i.dragAxis&&this.checkEventListeners()}},{key:"ngOnDestroy",value:function(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}},{key:"checkEventListeners",value:function(){var i=this,o=this.canDrag(),a=Object.keys(this.eventListenerSubscriptions).length>0;o&&!a?this.zone.runOutsideAngular(function(){i.eventListenerSubscriptions.mousedown=i.renderer.listen(i.element.nativeElement,"mousedown",function(s){i.onMouseDown(s)}),i.eventListenerSubscriptions.mouseup=i.renderer.listen("document","mouseup",function(s){i.onMouseUp(s)}),i.eventListenerSubscriptions.touchstart=i.renderer.listen(i.element.nativeElement,"touchstart",function(s){i.onTouchStart(s)}),i.eventListenerSubscriptions.touchend=i.renderer.listen("document","touchend",function(s){i.onTouchEnd(s)}),i.eventListenerSubscriptions.touchcancel=i.renderer.listen("document","touchcancel",function(s){i.onTouchEnd(s)}),i.eventListenerSubscriptions.mouseenter=i.renderer.listen(i.element.nativeElement,"mouseenter",function(){i.onMouseEnter()}),i.eventListenerSubscriptions.mouseleave=i.renderer.listen(i.element.nativeElement,"mouseleave",function(){i.onMouseLeave()})}):!o&&a&&this.unsubscribeEventListeners()}},{key:"onMouseDown",value:function(i){var o=this;0===i.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",function(a){o.pointerMove$.next({event:a,clientX:a.clientX,clientY:a.clientY})})),this.pointerDown$.next({event:i,clientX:i.clientX,clientY:i.clientY}))}},{key:"onMouseUp",value:function(i){0===i.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:i,clientX:i.clientX,clientY:i.clientY}))}},{key:"onTouchStart",value:function(i){var a,s,u,o=this;if(this.touchStartLongPress&&(this.timeLongPress.timerBegin=Date.now(),s=!1,u=this.hasScrollbar(),a=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){var p=(0,tp.R)(this.document,"contextmenu").subscribe(function(C){C.preventDefault()}),m=(0,tp.R)(this.document,"touchmove",{passive:!1}).subscribe(function(C){o.touchStartLongPress&&!s&&u&&(s=o.shouldBeginDrag(i,C,a)),(!o.touchStartLongPress||!u||s)&&(C.preventDefault(),o.pointerMove$.next({event:C,clientX:C.targetTouches[0].clientX,clientY:C.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=function(){p.unsubscribe(),m.unsubscribe()}}this.pointerDown$.next({event:i,clientX:i.touches[0].clientX,clientY:i.touches[0].clientY})}},{key:"onTouchEnd",value:function(i){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,this.touchStartLongPress&&this.enableScroll()),this.pointerUp$.next({event:i,clientX:i.changedTouches[0].clientX,clientY:i.changedTouches[0].clientY})}},{key:"onMouseEnter",value:function(){this.setCursor(this.dragCursor)}},{key:"onMouseLeave",value:function(){this.setCursor("")}},{key:"canDrag",value:function(){return this.dragAxis.x||this.dragAxis.y}},{key:"setCursor",value:function(i){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",i)}},{key:"unsubscribeEventListeners",value:function(){var i=this;Object.keys(this.eventListenerSubscriptions).forEach(function(o){i.eventListenerSubscriptions[o](),delete i.eventListenerSubscriptions[o]})}},{key:"setElementStyles",value:function(i,o){var a=this;Object.keys(o).forEach(function(s){a.renderer.setStyle(i,s,o[s])})}},{key:"getScrollElement",value:function(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}},{key:"getScrollPosition",value:function(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}},{key:"shouldBeginDrag",value:function(i,o,a){var s=this.getScrollPosition(),u_top=Math.abs(s.top-a.top),u_left=Math.abs(s.left-a.left),p=Math.abs(o.targetTouches[0].clientX-i.touches[0].clientX)-u_left,m=Math.abs(o.targetTouches[0].clientY-i.touches[0].clientY)-u_top,P=this.touchStartLongPress;return(p+m>P.delta||u_top>0||u_left>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=P.delay&&(this.disableScroll(),!0)}},{key:"enableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}},{key:"disableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}},{key:"hasScrollbar",value:function(){var i=this.getScrollElement();return i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(JC),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(J3,8),e.Y36(kt.K0))},n.\u0275dir=e.lG2({type:n,selectors:[["","mwlDraggable",""]],inputs:{dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",dragCursor:"dragCursor",autoScroll:"autoScroll",dropData:"dropData",validateDrag:"validateDrag",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[e.TTD]}),n}(),k4=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}(),vk=f(39095);function Af(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function Df(n){return 1===n.length&&(n=function(n){return function(r,t){return Af(n(r),t)}}(n)),{left:function(t,i,o,a){for(null==o&&(o=0),null==a&&(a=t.length);o<a;){var s=o+a>>>1;n(t[s],i)<0?o=s+1:a=s}return o},right:function(t,i,o,a){for(null==o&&(o=0),null==a&&(a=t.length);o<a;){var s=o+a>>>1;n(t[s],i)>0?a=s:o=s+1}return o}}}var X3=Df(Af),$3=X3.right,QC=X3.left,Of=$3;function M4(n,r){null==r&&(r=gk);for(var t=0,i=n.length-1,o=n[0],a=new Array(i<0?0:i);t<i;)a[t]=r(o,o=n[++t]);return a}function gk(n,r){return[n,r]}function eR(n,r,t){var s,u,p,m,i=n.length,o=r.length,a=new Array(i*o);for(null==t&&(t=gk),s=p=0;s<i;++s)for(m=n[s],u=0;u<o;++u,++p)a[p]=t(m,r[u]);return a}function A4(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function Xu(n){return null===n?NaN:+n}function _k(n,r){var s,u,t=n.length,i=0,o=-1,a=0,p=0;if(null==r)for(;++o<t;)isNaN(s=Xu(n[o]))||(p+=(u=s-a)*(s-(a+=u/++i)));else for(;++o<t;)isNaN(s=Xu(r(n[o],o,n)))||(p+=(u=s-a)*(s-(a+=u/++i)));if(i>1)return p/(i-1)}function tR(n,r){var t=_k(n,r);return t&&Math.sqrt(t)}function KC(n,r){var o,a,s,t=n.length,i=-1;if(null==r){for(;++i<t;)if(null!=(o=n[i])&&o>=o)for(a=s=o;++i<t;)null!=(o=n[i])&&(a>o&&(a=o),s<o&&(s=o))}else for(;++i<t;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=s=o;++i<t;)null!=(o=r(n[i],i,n))&&(a>o&&(a=o),s<o&&(s=o));return[a,s]}var yk=Array.prototype,dm=yk.slice,nR=yk.map;function f_(n){return function(){return n}}function rR(n){return n}function is(n,r,t){n=+n,r=+r,t=(o=arguments.length)<2?(r=n,n=0,1):o<3?1:+t;for(var i=-1,o=0|Math.max(0,Math.ceil((r-n)/t)),a=new Array(o);++i<o;)a[i]=n+i*t;return a}var XC=Math.sqrt(50),il=Math.sqrt(10),$C=Math.sqrt(2);function pm(n,r,t){var i,a,s,u,o=-1;if(t=+t,(n=+n)==(r=+r)&&t>0)return[n];if((i=r<n)&&(a=n,n=r,r=a),0===(u=fm(n,r,t))||!isFinite(u))return[];if(u>0)for(n=Math.ceil(n/u),r=Math.floor(r/u),s=new Array(a=Math.ceil(r-n+1));++o<a;)s[o]=(n+o)*u;else for(n=Math.floor(n*u),r=Math.ceil(r*u),s=new Array(a=Math.ceil(n-r+1));++o<a;)s[o]=(n-o)/u;return i&&s.reverse(),s}function fm(n,r,t){var i=(r-n)/Math.max(0,t),o=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,o);return o>=0?(a>=XC?10:a>=il?5:a>=$C?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=XC?10:a>=il?5:a>=$C?2:1)}function ip(n,r,t){var i=Math.abs(r-n)/Math.max(0,t),o=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/o;return a>=XC?o*=10:a>=il?o*=5:a>=$C&&(o*=2),r<n?-o:o}function hm(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function bk(){var n=rR,r=KC,t=hm;function i(o){var a,u,s=o.length,p=new Array(s);for(a=0;a<s;++a)p[a]=n(o[a],a,o);var m=r(p),C=m[0],P=m[1],L=t(p,C,P);Array.isArray(L)||(L=ip(C,P,L),L=is(Math.ceil(C/L)*L,P,L));for(var G=L.length;L[0]<=C;)L.shift(),--G;for(;L[G-1]>P;)L.pop(),--G;var te,Y=new Array(G+1);for(a=0;a<=G;++a)(te=Y[a]=[]).x0=a>0?L[a-1]:C,te.x1=a<G?L[a]:P;for(a=0;a<s;++a)C<=(u=p[a])&&u<=P&&Y[Of(L,u,0,G)].push(o[a]);return Y}return i.value=function(o){return arguments.length?(n="function"==typeof o?o:f_(o),i):n},i.domain=function(o){return arguments.length?(r="function"==typeof o?o:f_([o[0],o[1]]),i):r},i.thresholds=function(o){return arguments.length?(t="function"==typeof o?o:Array.isArray(o)?f_(dm.call(o)):f_(o),i):t},i}function Pf(n,r,t){if(null==t&&(t=Xu),i=n.length){if((r=+r)<=0||i<2)return+t(n[0],0,n);if(r>=1)return+t(n[i-1],i-1,n);var i,o=(i-1)*r,a=Math.floor(o),s=+t(n[a],a,n);return s+(+t(n[a+1],a+1,n)-s)*(o-a)}}function iR(n,r,t){return n=nR.call(n,Xu).sort(Af),Math.ceil((t-r)/(2*(Pf(n,.75)-Pf(n,.25))*Math.pow(n.length,-1/3)))}function Ck(n,r,t){return Math.ceil((t-r)/(3.5*tR(n)*Math.pow(n.length,-1/3)))}function e1(n,r){var o,a,t=n.length,i=-1;if(null==r){for(;++i<t;)if(null!=(o=n[i])&&o>=o)for(a=o;++i<t;)null!=(o=n[i])&&o>a&&(a=o)}else for(;++i<t;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=o;++i<t;)null!=(o=r(n[i],i,n))&&o>a&&(a=o);return a}function oR(n,r){var a,t=n.length,i=t,o=-1,s=0;if(null==r)for(;++o<t;)isNaN(a=Xu(n[o]))?--i:s+=a;else for(;++o<t;)isNaN(a=Xu(r(n[o],o,n)))?--i:s+=a;if(i)return s/i}function aR(n,r){var o,t=n.length,i=-1,a=[];if(null==r)for(;++i<t;)isNaN(o=Xu(n[i]))||a.push(o);else for(;++i<t;)isNaN(o=Xu(r(n[i],i,n)))||a.push(o);return Pf(a.sort(Af),.5)}function mm(n){for(var t,a,s,r=n.length,i=-1,o=0;++i<r;)o+=n[i].length;for(a=new Array(o);--r>=0;)for(t=(s=n[r]).length;--t>=0;)a[--o]=s[t];return a}function t1(n,r){var o,a,t=n.length,i=-1;if(null==r){for(;++i<t;)if(null!=(o=n[i])&&o>=o)for(a=o;++i<t;)null!=(o=n[i])&&a>o&&(a=o)}else for(;++i<t;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=o;++i<t;)null!=(o=r(n[i],i,n))&&a>o&&(a=o);return a}function Sk(n,r){for(var t=r.length,i=new Array(t);t--;)i[t]=n[r[t]];return i}function n1(n,r){if(t=n.length){var t,a,i=0,o=0,s=n[o];for(null==r&&(r=Af);++i<t;)(r(a=n[i],s)<0||0!==r(s,s))&&(s=a,o=i);if(0===r(s,s))return o}}function sR(n,r,t){for(var o,a,i=(null==t?n.length:t)-(r=null==r?0:+r);i;)a=Math.random()*i--|0,o=n[i+r],n[i+r]=n[a+r],n[a+r]=o;return n}function Bl(n,r){var o,t=n.length,i=-1,a=0;if(null==r)for(;++i<t;)(o=+n[i])&&(a+=o);else for(;++i<t;)(o=+r(n[i],i,n))&&(a+=o);return a}function Tk(n){if(!(a=n.length))return[];for(var r=-1,t=t1(n,D4),i=new Array(t);++r<t;)for(var a,o=-1,s=i[r]=new Array(a);++o<a;)s[o]=n[o][r];return i}function D4(n){return n.length}function lR(){return Tk(arguments)}var xk=Array.prototype.slice;function uR(n){return n}function cR(n){return"translate("+(n+.5)+",0)"}function dR(n){return"translate(0,"+(n+.5)+")"}function Ek(n){return function(r){return+n(r)}}function pR(n){var r=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(r=Math.round(r)),function(t){return+n(t)+r}}function O4(){return!this.__axis}function gm(n,r){var t=[],i=null,o=null,a=6,s=6,u=3,p=1===n||4===n?-1:1,m=4===n||2===n?"x":"y",C=1===n||3===n?cR:dR;function P(L){var G=null==i?r.ticks?r.ticks.apply(r,t):r.domain():i,Y=null==o?r.tickFormat?r.tickFormat.apply(r,t):uR:o,te=Math.max(a,0)+u,de=r.range(),Me=+de[0]+.5,st=+de[de.length-1]+.5,tt=(r.bandwidth?pR:Ek)(r.copy()),at=L.selection?L.selection():L,pt=at.selectAll(".domain").data([null]),Je=at.selectAll(".tick").data(G,r).order(),et=Je.exit(),It=Je.enter().append("g").attr("class","tick"),Et=Je.select("line"),pn=Je.select("text");pt=pt.merge(pt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Je=Je.merge(It),Et=Et.merge(It.append("line").attr("stroke","currentColor").attr(m+"2",p*a)),pn=pn.merge(It.append("text").attr("fill","currentColor").attr(m,p*te).attr("dy",1===n?"0em":3===n?"0.71em":"0.32em")),L!==at&&(pt=pt.transition(L),Je=Je.transition(L),Et=Et.transition(L),pn=pn.transition(L),et=et.transition(L).attr("opacity",1e-6).attr("transform",function(Wt){return isFinite(Wt=tt(Wt))?C(Wt):this.getAttribute("transform")}),It.attr("opacity",1e-6).attr("transform",function(Wt){var ot=this.parentNode.__axis;return C(ot&&isFinite(ot=ot(Wt))?ot:tt(Wt))})),et.remove(),pt.attr("d",4===n||2==n?s?"M"+p*s+","+Me+"H0.5V"+st+"H"+p*s:"M0.5,"+Me+"V"+st:s?"M"+Me+","+p*s+"V0.5H"+st+"V"+p*s:"M"+Me+",0.5H"+st),Je.attr("opacity",1).attr("transform",function(Wt){return C(tt(Wt))}),Et.attr(m+"2",p*a),pn.attr(m,p*te).text(Y),at.filter(O4).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===n?"start":4===n?"end":"middle"),at.each(function(){this.__axis=tt})}return P.scale=function(L){return arguments.length?(r=L,P):r},P.ticks=function(){return t=xk.call(arguments),P},P.tickArguments=function(L){return arguments.length?(t=null==L?[]:xk.call(L),P):t.slice()},P.tickValues=function(L){return arguments.length?(i=null==L?null:xk.call(L),P):i&&i.slice()},P.tickFormat=function(L){return arguments.length?(o=L,P):o},P.tickSize=function(L){return arguments.length?(a=s=+L,P):a},P.tickSizeInner=function(L){return arguments.length?(a=+L,P):a},P.tickSizeOuter=function(L){return arguments.length?(s=+L,P):s},P.tickPadding=function(L){return arguments.length?(u=+L,P):u},P}function kk(n){return gm(1,n)}function fR(n){return gm(2,n)}function hR(n){return gm(3,n)}function Mk(n){return gm(4,n)}var _m={value:function(){}};function v_(){for(var i,n=0,r=arguments.length,t={};n<r;++n){if(!(i=arguments[n]+"")||i in t||/[\s.]/.test(i))throw new Error("illegal type: "+i);t[i]=[]}return new ym(t)}function ym(n){this._=n}function mR(n,r){return n.trim().split(/^|\s+/).map(function(t){var i="",o=t.indexOf(".");if(o>=0&&(i=t.slice(o+1),t=t.slice(0,o)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}function vR(n,r){for(var o,t=0,i=n.length;t<i;++t)if((o=n[t]).name===r)return o.value}function gR(n,r,t){for(var i=0,o=n.length;i<o;++i)if(n[i].name===r){n[i]=_m,n=n.slice(0,i).concat(n.slice(i+1));break}return null!=t&&n.push({name:r,value:t}),n}ym.prototype=v_.prototype={constructor:ym,on:function(r,t){var a,i=this._,o=mR(r+"",i),s=-1,u=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++s<u;)if(a=(r=o[s]).type)i[a]=gR(i[a],r.name,t);else if(null==t)for(a in i)i[a]=gR(i[a],r.name,null);return this}for(;++s<u;)if((a=(r=o[s]).type)&&(a=vR(i[a],r.name)))return a},copy:function(){var r={},t=this._;for(var i in t)r[i]=t[i].slice();return new ym(r)},call:function(r,t){if((a=arguments.length-2)>0)for(var a,s,i=new Array(a),o=0;o<a;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(o=0,a=(s=this._[r]).length;o<a;++o)s[o].value.apply(t,i)},apply:function(r,t,i){if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(var o=this._[r],a=0,s=o.length;a<s;++a)o[a].value.apply(t,i)}};var bm=v_,Ak="http://www.w3.org/1999/xhtml",g_={svg:"http://www.w3.org/2000/svg",xhtml:Ak,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function If(n){var r=n+="",t=r.indexOf(":");return t>=0&&"xmlns"!==(r=n.slice(0,t))&&(n=n.slice(t+1)),g_.hasOwnProperty(r)?{space:g_[r],local:n}:n}function _R(n){return function(){var r=this.ownerDocument,t=this.namespaceURI;return t===Ak&&r.documentElement.namespaceURI===Ak?r.createElement(n):r.createElementNS(t,n)}}function yR(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function __(n){var r=If(n);return(r.local?yR:_R)(r)}function bR(){}function Cm(n){return null==n?bR:function(){return this.querySelector(n)}}function SR(){return[]}function Dk(n){return null==n?SR:function(){return this.querySelectorAll(n)}}var y_=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var b_=document.documentElement;if(!b_.matches){var TR=b_.webkitMatchesSelector||b_.msMatchesSelector||b_.mozMatchesSelector||b_.oMatchesSelector;y_=function(r){return function(){return TR.call(this,r)}}}}var i1=y_;function C_(n){return new Array(n.length)}function S_(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function Ok(n,r,t,i,o,a){for(var u,s=0,p=r.length,m=a.length;s<m;++s)(u=r[s])?(u.__data__=a[s],i[s]=u):t[s]=new S_(n,a[s]);for(;s<p;++s)(u=r[s])&&(o[s]=u)}function o1(n,r,t,i,o,a,s){var u,p,G,m={},C=r.length,P=a.length,L=new Array(C);for(u=0;u<C;++u)(p=r[u])&&(L[u]=G="$"+s.call(p,p.__data__,u,r),G in m?o[u]=p:m[G]=p);for(u=0;u<P;++u)(p=m[G="$"+s.call(n,a[u],u,a)])?(i[u]=p,p.__data__=a[u],m[G]=null):t[u]=new S_(n,a[u]);for(u=0;u<C;++u)(p=r[u])&&m[L[u]]===p&&(o[u]=p)}function Z4(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function U4(n){return function(){this.removeAttribute(n)}}function H4(n){return function(){this.removeAttributeNS(n.space,n.local)}}function V4(n,r){return function(){this.setAttribute(n,r)}}function MR(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function AR(n,r){return function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(n):this.setAttribute(n,t)}}function DR(n,r){return function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,t)}}function l1(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function PR(n){return function(){this.style.removeProperty(n)}}function IR(n,r,t){return function(){this.style.setProperty(n,r,t)}}function RR(n,r,t){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,t)}}function op(n,r){return n.style.getPropertyValue(r)||l1(n).getComputedStyle(n,null).getPropertyValue(r)}function q4(n){return function(){delete this[n]}}function j4(n,r){return function(){this[n]=r}}function ZR(n,r){return function(){var t=r.apply(this,arguments);null==t?delete this[n]:this[n]=t}}function Ik(n){return n.trim().split(/^|\s+/)}function u1(n){return n.classList||new Rk(n)}function Rk(n){this._node=n,this._names=Ik(n.getAttribute("class")||"")}function ol(n,r){for(var t=u1(n),i=-1,o=r.length;++i<o;)t.add(r[i])}function Nk(n,r){for(var t=u1(n),i=-1,o=r.length;++i<o;)t.remove(r[i])}function FR(n){return function(){ol(this,n)}}function BR(n){return function(){Nk(this,n)}}function UR(n,r){return function(){(r.apply(this,arguments)?ol:Nk)(this,n)}}function HR(){this.textContent=""}function VR(n){return function(){this.textContent=n}}function qR(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function Zk(){this.innerHTML=""}function W4(n){return function(){this.innerHTML=n}}function jR(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function Y4(){this.nextSibling&&this.parentNode.appendChild(this)}function c1(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function GR(){return null}function YR(){var n=this.parentNode;n&&n.removeChild(this)}function QR(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Ul(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}S_.prototype={constructor:S_,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,t){return this._parent.insertBefore(r,t)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}},Rk.prototype={add:function(r){this._names.indexOf(r)<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var t=this._names.indexOf(r);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var Fk={},On=null;function Uk(n,r,t){return n=x_(n,r,t),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function x_(n,r,t){return function(i){var o=On;On=i;try{n.call(this,this.__data__,r,t)}finally{On=o}}}function d1(n){return n.trim().split(/^|\s+/).map(function(r){var t="",i=r.indexOf(".");return i>=0&&(t=r.slice(i+1),r=r.slice(0,i)),{type:r,name:t}})}function p1(n){return function(){var r=this.__on;if(r){for(var a,t=0,i=-1,o=r.length;t<o;++t)a=r[t],n.type&&a.type!==n.type||a.name!==n.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function w_(n,r,t){var i=Fk.hasOwnProperty(n.type)?Uk:x_;return function(o,a,s){var p,u=this.__on,m=i(r,a,s);if(u)for(var C=0,P=u.length;C<P;++C)if((p=u[C]).type===n.type&&p.name===n.name)return this.removeEventListener(p.type,p.listener,p.capture),this.addEventListener(p.type,p.listener=m,p.capture=t),void(p.value=r);this.addEventListener(n.type,m,t),p={type:n.type,name:n.name,value:r,listener:m,capture:t},u?u.push(p):this.__on=[p]}}function Rf(n,r,t,i){var o=On;n.sourceEvent=On,On=n;try{return r.apply(t,i)}finally{On=o}}function f1(n,r,t){var i=l1(n),o=i.CustomEvent;"function"==typeof o?o=new o(r,t):(o=i.document.createEvent("Event"),t?(o.initEvent(r,t.bubbles,t.cancelable),o.detail=t.detail):o.initEvent(r,!1,!1)),n.dispatchEvent(o)}function KR(n,r){return function(){return f1(this,n,r)}}function XR(n,r){return function(){return f1(this,n,r.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Fk={mouseenter:"mouseover",mouseleave:"mouseout"}));var h1=[null];function os(n,r){this._groups=n,this._parents=r}function Vk(){return new os([[document.documentElement]],h1)}os.prototype=Vk.prototype={constructor:os,select:function(n){"function"!=typeof n&&(n=Cm(n));for(var r=this._groups,t=r.length,i=new Array(t),o=0;o<t;++o)for(var p,m,a=r[o],s=a.length,u=i[o]=new Array(s),C=0;C<s;++C)(p=a[C])&&(m=n.call(p,p.__data__,C,a))&&("__data__"in p&&(m.__data__=p.__data__),u[C]=m);return new os(i,this._parents)},selectAll:function(n){"function"!=typeof n&&(n=Dk(n));for(var r=this._groups,t=r.length,i=[],o=[],a=0;a<t;++a)for(var p,s=r[a],u=s.length,m=0;m<u;++m)(p=s[m])&&(i.push(n.call(p,p.__data__,m,s)),o.push(p));return new os(i,o)},filter:function(n){"function"!=typeof n&&(n=i1(n));for(var r=this._groups,t=r.length,i=new Array(t),o=0;o<t;++o)for(var p,a=r[o],s=a.length,u=i[o]=[],m=0;m<s;++m)(p=a[m])&&n.call(p,p.__data__,m,a)&&u.push(p);return new os(i,this._parents)},data:function(n,r){if(!n)return G=new Array(this.size()),m=-1,this.each(function(Je){G[++m]=Je}),G;var t=r?o1:Ok,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function(n){return function(){return n}}(n));for(var a=o.length,s=new Array(a),u=new Array(a),p=new Array(a),m=0;m<a;++m){var C=i[m],P=o[m],L=P.length,G=n.call(C,C&&C.__data__,m,i),Y=G.length,te=u[m]=new Array(Y),de=s[m]=new Array(Y);t(C,P,te,de,p[m]=new Array(L),G,r);for(var at,pt,st=0,tt=0;st<Y;++st)if(at=te[st]){for(st>=tt&&(tt=st+1);!(pt=de[tt])&&++tt<Y;);at._next=pt||null}}return(s=new os(s,i))._enter=u,s._exit=p,s},enter:function(){return new os(this._enter||this._groups.map(C_),this._parents)},exit:function(){return new os(this._exit||this._groups.map(C_),this._parents)},merge:function(n){for(var r=this._groups,t=n._groups,i=r.length,a=Math.min(i,t.length),s=new Array(i),u=0;u<a;++u)for(var L,p=r[u],m=t[u],C=p.length,P=s[u]=new Array(C),G=0;G<C;++G)(L=p[G]||m[G])&&(P[G]=L);for(;u<i;++u)s[u]=r[u];return new os(s,this._parents)},order:function(){for(var n=this._groups,r=-1,t=n.length;++r<t;)for(var s,i=n[r],o=i.length-1,a=i[o];--o>=0;)(s=i[o])&&(a&&a!==s.nextSibling&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function(n){function r(P,L){return P&&L?n(P.__data__,L.__data__):!P-!L}n||(n=Z4);for(var t=this._groups,i=t.length,o=new Array(i),a=0;a<i;++a){for(var m,s=t[a],u=s.length,p=o[a]=new Array(u),C=0;C<u;++C)(m=s[C])&&(p[C]=m);p.sort(r)}return new os(o,this._parents).order()},call:function(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function(){for(var n=this._groups,r=0,t=n.length;r<t;++r)for(var i=n[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function(){var n=0;return this.each(function(){++n}),n},empty:function(){return!this.node()},each:function(n){for(var r=this._groups,t=0,i=r.length;t<i;++t)for(var u,o=r[t],a=0,s=o.length;a<s;++a)(u=o[a])&&n.call(u,u.__data__,a,o);return this},attr:function(n,r){var t=If(n);if(arguments.length<2){var i=this.node();return t.local?i.getAttributeNS(t.space,t.local):i.getAttribute(t)}return this.each((null==r?t.local?H4:U4:"function"==typeof r?t.local?DR:AR:t.local?MR:V4)(t,r))},style:function(n,r,t){return arguments.length>1?this.each((null==r?PR:"function"==typeof r?RR:IR)(n,r,null==t?"":t)):op(this.node(),n)},property:function(n,r){return arguments.length>1?this.each((null==r?q4:"function"==typeof r?ZR:j4)(n,r)):this.node()[n]},classed:function(n,r){var t=Ik(n+"");if(arguments.length<2){for(var i=u1(this.node()),o=-1,a=t.length;++o<a;)if(!i.contains(t[o]))return!1;return!0}return this.each(("function"==typeof r?UR:r?FR:BR)(t,r))},text:function(n){return arguments.length?this.each(null==n?HR:("function"==typeof n?qR:VR)(n)):this.node().textContent},html:function(n){return arguments.length?this.each(null==n?Zk:("function"==typeof n?jR:W4)(n)):this.node().innerHTML},raise:function(){return this.each(Y4)},lower:function(){return this.each(c1)},append:function(n){var r="function"==typeof n?n:__(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function(n,r){var t="function"==typeof n?n:__(n),i=null==r?GR:"function"==typeof r?r:Cm(r);return this.select(function(){return this.insertBefore(t.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(YR)},clone:function(n){return this.select(n?Ul:QR)},datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function(n,r,t){var o,s,i=d1(n+""),a=i.length;if(!(arguments.length<2)){for(u=r?w_:p1,null==t&&(t=!1),o=0;o<a;++o)this.each(u(i[o],r,t));return this}var u=this.node().__on;if(u)for(var C,p=0,m=u.length;p<m;++p)for(o=0,C=u[p];o<a;++o)if((s=i[o]).type===C.type&&s.name===C.name)return C.value},dispatch:function(n,r){return this.each(("function"==typeof r?XR:KR)(n,r))}};var Hl=Vk;function ni(n){return"string"==typeof n?new os([[document.querySelector(n)]],[document.documentElement]):new os([[n]],h1)}function as(n){return ni(__(n).call(document.documentElement))}var Tm=0;function xm(){return new k_}function k_(){this._="@"+(++Tm).toString(36)}function Nf(){for(var r,n=On;r=n.sourceEvent;)n=r;return n}function Zf(n,r){var t=n.ownerSVGElement||n;if(t.createSVGPoint){var i=t.createSVGPoint();return i.x=r.clientX,i.y=r.clientY,[(i=i.matrixTransform(n.getScreenCTM().inverse())).x,i.y]}var o=n.getBoundingClientRect();return[r.clientX-o.left-n.clientLeft,r.clientY-o.top-n.clientTop]}function Fs(n){var r=Nf();return r.changedTouches&&(r=r.changedTouches[0]),Zf(n,r)}function m1(n){return"string"==typeof n?new os([document.querySelectorAll(n)],[document.documentElement]):new os([null==n?[]:n],h1)}function M_(n,r,t){arguments.length<3&&(t=r,r=Nf().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===t)return Zf(n,a);return null}function $R(n,r){null==r&&(r=Nf().touches);for(var t=0,i=r?r.length:0,o=new Array(i);t<i;++t)o[t]=Zf(n,r[t]);return o}function v1(){On.stopImmediatePropagation()}function Lf(){On.preventDefault(),On.stopImmediatePropagation()}function wm(n){var r=n.document.documentElement,t=ni(n).on("dragstart.drag",Lf,!0);"onselectstart"in r?t.on("selectstart.drag",Lf,!0):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function A_(n,r){var t=n.document.documentElement,i=ni(n).on("dragstart.drag",null);r&&(i.on("click.drag",Lf,!0),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in t?i.on("selectstart.drag",null):(t.style.MozUserSelect=t.__noselect,delete t.__noselect)}function Ff(n,r,t){n.prototype=r.prototype=t,t.constructor=n}function Em(n,r){var t=Object.create(n.prototype);for(var i in r)t[i]=r[i];return t}function ss(){}k_.prototype=xm.prototype={constructor:k_,get:function(r){for(var t=this._;!(t in r);)if(!(r=r.parentNode))return;return r[t]},set:function(r,t){return r[this._]=t},remove:function(r){return this._ in r&&delete r[this._]},toString:function(){return this._}};var Wc=1/.7,Bf="\\s*([+-]?\\d+)\\s*",km="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Su="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",g1=/^#([0-9a-f]{3})$/,eN=/^#([0-9a-f]{6})$/,qk=new RegExp("^rgb\\("+[Bf,Bf,Bf]+"\\)$"),jk=new RegExp("^rgb\\("+[Su,Su,Su]+"\\)$"),tN=new RegExp("^rgba\\("+[Bf,Bf,Bf,km]+"\\)$"),nN=new RegExp("^rgba\\("+[Su,Su,Su,km]+"\\)$"),rN=new RegExp("^hsl\\("+[km,Su,Su]+"\\)$"),$u=new RegExp("^hsla\\("+[km,Su,Su,km]+"\\)$"),Uf={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Bs(n){var r;return n=(n+"").trim().toLowerCase(),(r=g1.exec(n))?new Za((r=parseInt(r[1],16))>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):(r=eN.exec(n))?Mm(parseInt(r[1],16)):(r=qk.exec(n))?new Za(r[1],r[2],r[3],1):(r=jk.exec(n))?new Za(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=tN.exec(n))?ap(r[1],r[2],r[3],r[4]):(r=nN.exec(n))?ap(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=rN.exec(n))?y1(r[1],r[2]/100,r[3]/100,1):(r=$u.exec(n))?y1(r[1],r[2]/100,r[3]/100,r[4]):Uf.hasOwnProperty(n)?Mm(Uf[n]):"transparent"===n?new Za(NaN,NaN,NaN,0):null}function Mm(n){return new Za(n>>16&255,n>>8&255,255&n,1)}function ap(n,r,t,i){return i<=0&&(n=r=t=NaN),new Za(n,r,t,i)}function _1(n){return n instanceof ss||(n=Bs(n)),n?new Za((n=n.rgb()).r,n.g,n.b,n.opacity):new Za}function Am(n,r,t,i){return 1===arguments.length?_1(n):new Za(n,r,t,null==i?1:i)}function Za(n,r,t,i){this.r=+n,this.g=+r,this.b=+t,this.opacity=+i}function y1(n,r,t,i){return i<=0?n=r=t=NaN:t<=0||t>=1?n=r=NaN:r<=0&&(n=NaN),new ql(n,r,t,i)}function zk(n){if(n instanceof ql)return new ql(n.h,n.s,n.l,n.opacity);if(n instanceof ss||(n=Bs(n)),!n)return new ql;if(n instanceof ql)return n;var r=(n=n.rgb()).r/255,t=n.g/255,i=n.b/255,o=Math.min(r,t,i),a=Math.max(r,t,i),s=NaN,u=a-o,p=(a+o)/2;return u?(s=r===a?(t-i)/u+6*(t<i):t===a?(i-r)/u+2:(r-t)/u+4,u/=p<.5?a+o:2-a-o,s*=60):u=p>0&&p<1?0:s,new ql(s,u,p,n.opacity)}function Dm(n,r,t,i){return 1===arguments.length?zk(n):new ql(n,r,t,null==i?1:i)}function ql(n,r,t,i){this.h=+n,this.s=+r,this.l=+t,this.opacity=+i}function Om(n,r,t){return 255*(n<60?r+(t-r)*n/60:n<180?t:n<240?r+(t-r)*(240-n)/60:r)}Ff(ss,Bs,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Ff(Za,Am,Em(ss,{brighter:function(r){return r=null==r?Wc:Math.pow(Wc,r),new Za(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Za(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===r?")":", "+r+")")}})),Ff(ql,Dm,Em(ss,{brighter:function(r){return r=null==r?Wc:Math.pow(Wc,r),new ql(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new ql(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),t=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*t,a=2*i-o;return new Za(Om(r>=240?r-240:r+120,a,o),Om(r,a,o),Om(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var iN=Math.PI/180,oN=180/Math.PI,aN=4/29,Pm=6/29,sN=3*Pm*Pm;function Yk(n){if(n instanceof Tu)return new Tu(n.l,n.a,n.b,n.opacity);if(n instanceof Yc){if(isNaN(n.h))return new Tu(n.l,0,0,n.opacity);var r=n.h*iN;return new Tu(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}n instanceof Za||(n=_1(n));var s,u,t=Xk(n.r),i=Xk(n.g),o=Xk(n.b),a=Jk((.2225045*t+.7168786*i+.0606169*o)/1);return t===i&&i===o?s=u=a:(s=Jk((.4360747*t+.3850649*i+.1430804*o)/.96422),u=Jk((.0139322*t+.0971045*i+.7141733*o)/.82521)),new Tu(116*a-16,500*(s-a),200*(a-u),n.opacity)}function C1(n,r,t,i){return 1===arguments.length?Yk(n):new Tu(n,r,t,null==i?1:i)}function Tu(n,r,t,i){this.l=+n,this.a=+r,this.b=+t,this.opacity=+i}function Jk(n){return n>.008856451679035631?Math.pow(n,1/3):n/sN+aN}function Qk(n){return n>Pm?n*n*n:sN*(n-aN)}function Kk(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function Xk(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function lN(n){if(n instanceof Yc)return new Yc(n.h,n.c,n.l,n.opacity);if(n instanceof Tu||(n=Yk(n)),0===n.a&&0===n.b)return new Yc(NaN,0,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*oN;return new Yc(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function S1(n,r,t,i){return 1===arguments.length?lN(n):new Yc(n,r,t,null==i?1:i)}function Yc(n,r,t,i){this.h=+n,this.c=+r,this.l=+t,this.opacity=+i}Ff(Tu,C1,Em(ss,{brighter:function(r){return new Tu(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new Tu(this.l-18*(null==r?1:r),this.a,this.b,this.opacity)},rgb:function(){var r=(this.l+16)/116,t=isNaN(this.a)?r:r+this.a/500,i=isNaN(this.b)?r:r-this.b/200;return new Za(Kk(3.1338561*(t=.96422*Qk(t))-1.6168667*(r=1*Qk(r))-.4906146*(i=.82521*Qk(i))),Kk(-.9787684*t+1.9161415*r+.033454*i),Kk(.0719453*t-.2289914*r+1.4052427*i),this.opacity)}})),Ff(Yc,S1,Em(ss,{brighter:function(r){return new Yc(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new Yc(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return Yk(this).rgb()}}));var $k=1.78277,l=-.29227,c=-.90649,d=1.97294,h=d*c,y=d*$k,M=$k*l- -.14861*c;function H(n){if(n instanceof X)return new X(n.h,n.s,n.l,n.opacity);n instanceof Za||(n=_1(n));var t=n.g/255,i=n.b/255,o=(M*i+h*(n.r/255)-y*t)/(M+h-y),a=i-o,s=(d*(t-o)-l*a)/c,u=Math.sqrt(s*s+a*a)/(d*o*(1-o)),p=u?Math.atan2(s,a)*oN-120:NaN;return new X(p<0?p+360:p,u,o,n.opacity)}function W(n,r,t,i){return 1===arguments.length?H(n):new X(n,r,t,null==i?1:i)}function X(n,r,t,i){this.h=+n,this.s=+r,this.l=+t,this.opacity=+i}function me(n,r,t,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*t+(1+3*n+3*a-3*s)*i+s*o)/6}function Pe(n){var r=n.length-1;return function(t){var i=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),o=n[i],a=n[i+1];return me((t-i/r)*r,i>0?n[i-1]:2*o-a,o,a,i<r-1?n[i+2]:2*a-o)}}function Xe(n){var r=n.length;return function(t){var i=Math.floor(((t%=1)<0?++t:t)*r);return me((t-i/r)*r,n[(i+r-1)%r],n[i%r],n[(i+1)%r],n[(i+2)%r])}}function Qe(n){return function(){return n}}function mt(n,r){return function(t){return n+t*r}}function zt(n,r){var t=r-n;return t?mt(n,t>180||t<-180?t-360*Math.round(t/360):t):Qe(isNaN(n)?r:n)}function En(n,r){var t=r-n;return t?mt(n,t):Qe(isNaN(n)?r:n)}Ff(X,W,Em(ss,{brighter:function(r){return r=null==r?Wc:Math.pow(Wc,r),new X(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new X(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*iN,t=+this.l,i=isNaN(this.s)?0:this.s*t*(1-t),o=Math.cos(r),a=Math.sin(r);return new Za(255*(t+i*(-.14861*o+$k*a)),255*(t+i*(l*o+c*a)),255*(t+i*(d*o)),this.opacity)}}));var _n=function n(r){var t=function(n){return 1==(n=+n)?En:function(r,t){return t-r?function(n,r,t){return n=Math.pow(n,t),r=Math.pow(r,t)-n,t=1/t,function(i){return Math.pow(n+i*r,t)}}(r,t,n):Qe(isNaN(r)?t:r)}}(r);function i(o,a){var s=t((o=Am(o)).r,(a=Am(a)).r),u=t(o.g,a.g),p=t(o.b,a.b),m=En(o.opacity,a.opacity);return function(C){return o.r=s(C),o.g=u(C),o.b=p(C),o.opacity=m(C),o+""}}return i.gamma=n,i}(1);function Kn(n){return function(r){var s,u,t=r.length,i=new Array(t),o=new Array(t),a=new Array(t);for(s=0;s<t;++s)u=Am(r[s]),i[s]=u.r||0,o[s]=u.g||0,a[s]=u.b||0;return i=n(i),o=n(o),a=n(a),u.opacity=1,function(p){return u.r=i(p),u.g=o(p),u.b=a(p),u+""}}}var Lr=Kn(Pe),ei=Kn(Xe);function Di(n,r){var s,t=r?r.length:0,i=n?Math.min(t,n.length):0,o=new Array(i),a=new Array(t);for(s=0;s<i;++s)o[s]=sl(n[s],r[s]);for(;s<t;++s)a[s]=r[s];return function(u){for(s=0;s<i;++s)a[s]=o[s](u);return a}}function _o(n,r){var t=new Date;return r-=n=+n,function(i){return t.setTime(n+r*i),t}}function Ni(n,r){return r-=n=+n,function(t){return n+r*t}}function la(n,r){var o,t={},i={};for(o in(null===n||"object"!=typeof n)&&(n={}),(null===r||"object"!=typeof r)&&(r={}),r)o in n?t[o]=sl(n[o],r[o]):i[o]=r[o];return function(a){for(o in t)i[o]=t[o](a);return i}}var al=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xu=new RegExp(al.source,"g");function jl(n,r){var i,o,a,t=al.lastIndex=xu.lastIndex=0,s=-1,u=[],p=[];for(n+="",r+="";(i=al.exec(n))&&(o=xu.exec(r));)(a=o.index)>t&&(a=r.slice(t,a),u[s]?u[s]+=a:u[++s]=a),(i=i[0])===(o=o[0])?u[s]?u[s]+=o:u[++s]=o:(u[++s]=null,p.push({i:s,x:Ni(i,o)})),t=xu.lastIndex;return t<r.length&&(a=r.slice(t),u[s]?u[s]+=a:u[++s]=a),u.length<2?p[0]?function(n){return function(r){return n(r)+""}}(p[0].x):function(n){return function(){return n}}(r):(r=p.length,function(m){for(var P,C=0;C<r;++C)u[(P=p[C]).i]=P.x(m);return u.join("")})}function sl(n,r){var i,t=typeof r;return null==r||"boolean"===t?Qe(r):("number"===t?Ni:"string"===t?(i=Bs(r))?(r=i,_n):jl:r instanceof Bs?_n:r instanceof Date?_o:Array.isArray(r)?Di:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?la:Ni)(n,r)}function lp(n,r){return r-=n=+n,function(t){return Math.round(n+r*t)}}var Rm,T1,tM,Nm,Im=180/Math.PI,D_={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function eM(n,r,t,i,o,a){var s,u,p;return(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s),(p=n*t+r*i)&&(t-=n*p,i-=r*p),(u=Math.sqrt(t*t+i*i))&&(t/=u,i/=u,p/=u),n*i<r*t&&(n=-n,r=-r,p=-p,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,n)*Im,skewX:Math.atan(p)*Im,scaleX:s,scaleY:u}}function nM(n,r,t,i){function o(m){return m.length?m.pop()+" ":""}return function(m,C){var P=[],L=[];return m=n(m),C=n(C),function(m,C,P,L,G,Y){if(m!==P||C!==L){var te=G.push("translate(",null,r,null,t);Y.push({i:te-4,x:Ni(m,P)},{i:te-2,x:Ni(C,L)})}else(P||L)&&G.push("translate("+P+r+L+t)}(m.translateX,m.translateY,C.translateX,C.translateY,P,L),function(m,C,P,L){m!==C?(m-C>180?C+=360:C-m>180&&(m+=360),L.push({i:P.push(o(P)+"rotate(",null,i)-2,x:Ni(m,C)})):C&&P.push(o(P)+"rotate("+C+i)}(m.rotate,C.rotate,P,L),function(m,C,P,L){m!==C?L.push({i:P.push(o(P)+"skewX(",null,i)-2,x:Ni(m,C)}):C&&P.push(o(P)+"skewX("+C+i)}(m.skewX,C.skewX,P,L),function(m,C,P,L,G,Y){if(m!==P||C!==L){var te=G.push(o(G)+"scale(",null,",",null,")");Y.push({i:te-4,x:Ni(m,P)},{i:te-2,x:Ni(C,L)})}else(1!==P||1!==L)&&G.push(o(G)+"scale("+P+","+L+")")}(m.scaleX,m.scaleY,C.scaleX,C.scaleY,P,L),m=C=null,function(G){for(var de,Y=-1,te=L.length;++Y<te;)P[(de=L[Y]).i]=de.x(G);return P.join("")}}}var x1=nM(function(n){return"none"===n?D_:(Rm||(Rm=document.createElement("DIV"),T1=document.documentElement,tM=document.defaultView),Rm.style.transform=n,n=tM.getComputedStyle(T1.appendChild(Rm),null).getPropertyValue("transform"),T1.removeChild(Rm),eM(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),rM=nM(function(n){return null!=n&&(Nm||(Nm=document.createElementNS("http://www.w3.org/2000/svg","g")),Nm.setAttribute("transform",n),n=Nm.transform.baseVal.consolidate())?eM((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):D_},", ",")",")"),Zm=Math.SQRT2;function e8(n){return((n=Math.exp(n))+1/n)/2}function t8(n,r){var P,L,t=n[0],i=n[1],o=n[2],u=r[2],p=r[0]-t,m=r[1]-i,C=p*p+m*m;if(C<1e-12)L=Math.log(u/o)/Zm,P=function(tt){return[t+tt*p,i+tt*m,o*Math.exp(Zm*tt*L)]};else{var G=Math.sqrt(C),Y=(u*u-o*o+4*C)/(2*o*2*G),te=(u*u-o*o-4*C)/(2*u*2*G),de=Math.log(Math.sqrt(Y*Y+1)-Y),Me=Math.log(Math.sqrt(te*te+1)-te);L=(Me-de)/Zm,P=function(tt){var at=tt*L,pt=e8(de),Je=o/(2*G)*(pt*function(n){return((n=Math.exp(2*n))-1)/(n+1)}(Zm*at+de)-function(n){return((n=Math.exp(n))-1/n)/2}(de));return[t+Je*p,i+Je*m,o*pt/e8(Zm*at+de)]}}return P.duration=1e3*L,P}function n8(n){return function(r,t){var i=n((r=Dm(r)).h,(t=Dm(t)).h),o=En(r.s,t.s),a=En(r.l,t.l),s=En(r.opacity,t.opacity);return function(u){return r.h=i(u),r.s=o(u),r.l=a(u),r.opacity=s(u),r+""}}}var fG=n8(zt),hG=n8(En);function mG(n,r){var t=En((n=C1(n)).l,(r=C1(r)).l),i=En(n.a,r.a),o=En(n.b,r.b),a=En(n.opacity,r.opacity);return function(s){return n.l=t(s),n.a=i(s),n.b=o(s),n.opacity=a(s),n+""}}function r8(n){return function(r,t){var i=n((r=S1(r)).h,(t=S1(t)).h),o=En(r.c,t.c),a=En(r.l,t.l),s=En(r.opacity,t.opacity);return function(u){return r.h=i(u),r.c=o(u),r.l=a(u),r.opacity=s(u),r+""}}}var vG=r8(zt),gG=r8(En);function i8(n){return function r(t){function i(o,a){var s=n((o=W(o)).h,(a=W(a)).h),u=En(o.s,a.s),p=En(o.l,a.l),m=En(o.opacity,a.opacity);return function(C){return o.h=s(C),o.s=u(C),o.l=p(Math.pow(C,t)),o.opacity=m(C),o+""}}return t=+t,i.gamma=r,i}(1)}var _G=i8(zt),iM=i8(En);function yG(n,r){for(var t=new Array(r),i=0;i<r;++i)t[i]=n(i/(r-1));return t}var oM,k1,O_=0,w1=0,E1=0,aM=0,Lm=0,sM=0,M1="object"==typeof performance&&performance.now?performance:Date,a8="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function P_(){return Lm||(a8(bG),Lm=M1.now()+sM)}function bG(){Lm=0}function A1(){this._call=this._time=this._next=null}function lM(n,r,t){var i=new A1;return i.restart(n,r,t),i}function s8(){P_(),++O_;for(var r,n=oM;n;)(r=Lm-n._time)>=0&&n._call.call(null,r),n=n._next;--O_}function l8(){Lm=(aM=M1.now())+sM,O_=w1=0;try{s8()}finally{O_=0,function(){for(var n,t,r=oM,i=1/0;r;)r._call?(i>r._time&&(i=r._time),n=r,r=r._next):(t=r._next,r._next=null,r=n?n._next=t:oM=t);k1=n,fN(i)}(),Lm=0}}function CG(){var n=M1.now(),r=n-aM;r>1e3&&(sM-=r,aM=n)}function fN(n){O_||(w1&&(w1=clearTimeout(w1)),n-Lm>24?(n<1/0&&(w1=setTimeout(l8,n-M1.now()-sM)),E1&&(E1=clearInterval(E1))):(E1||(aM=M1.now(),E1=setInterval(CG,1e3)),O_=1,a8(l8)))}function hN(n,r,t){var i=new A1;return i.restart(function(o){i.stop(),n(o+r)},r=null==r?0:+r,t),i}A1.prototype=lM.prototype={constructor:A1,restart:function(r,t,i){if("function"!=typeof r)throw new TypeError("callback is not a function");i=(null==i?P_():+i)+(null==t?0:+t),!this._next&&k1!==this&&(k1?k1._next=this:oM=this,k1=this),this._call=r,this._time=i,fN()},stop:function(){this._call&&(this._call=null,this._time=1/0,fN())}};var TG=bm("start","end","interrupt"),xG=[];function dM(n,r,t,i,o,a){var s=n.__transition;if(s){if(t in s)return}else n.__transition={};!function(n,r,t){var o,i=n.__transition;function s(m){var C,P,L,G;if(1!==t.state)return p();for(C in i)if((G=i[C]).name===t.name){if(3===G.state)return hN(s);4===G.state?(G.state=6,G.timer.stop(),G.on.call("interrupt",n,n.__data__,G.index,G.group),delete i[C]):+C<r&&(G.state=6,G.timer.stop(),delete i[C])}if(hN(function(){3===t.state&&(t.state=4,t.timer.restart(u,t.delay,t.time),u(m))}),t.state=2,t.on.call("start",n,n.__data__,t.index,t.group),2===t.state){for(t.state=3,o=new Array(L=t.tween.length),C=0,P=-1;C<L;++C)(G=t.tween[C].value.call(n,n.__data__,t.index,t.group))&&(o[++P]=G);o.length=P+1}}function u(m){for(var C=m<t.duration?t.ease.call(null,m/t.duration):(t.timer.restart(p),t.state=5,1),P=-1,L=o.length;++P<L;)o[P].call(null,C);5===t.state&&(t.on.call("end",n,n.__data__,t.index,t.group),p())}function p(){for(var m in t.state=6,t.timer.stop(),delete i[r],i)return;delete n.__transition}i[r]=t,t.timer=lM(function(m){t.state=1,t.timer.restart(s,t.delay,t.time),t.delay<=m&&s(m-t.delay)},0,t.time)}(n,t,{name:r,index:i,group:o,on:TG,tween:xG,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function _N(n,r){var t=ec(n,r);if(t.state>0)throw new Error("too late; already scheduled");return t}function Fm(n,r){var t=ec(n,r);if(t.state>2)throw new Error("too late; already started");return t}function ec(n,r){var t=n.__transition;if(!t||!(t=t[r]))throw new Error("transition not found");return t}function Bm(n,r){var i,o,s,t=n.__transition,a=!0;if(t){for(s in r=null==r?null:r+"",t)(i=t[s]).name===r?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),o&&i.on.call("interrupt",n,n.__data__,i.index,i.group),delete t[s]):a=!1;a&&delete n.__transition}}function kG(n,r){var t,i;return function(){var o=Fm(this,n),a=o.tween;if(a!==t)for(var s=0,u=(i=t=a).length;s<u;++s)if(i[s].name===r){(i=i.slice()).splice(s,1);break}o.tween=i}}function MG(n,r,t){var i,o;if("function"!=typeof t)throw new Error;return function(){var a=Fm(this,n),s=a.tween;if(s!==i){o=(i=s).slice();for(var u={name:r,value:t},p=0,m=o.length;p<m;++p)if(o[p].name===r){o[p]=u;break}p===m&&o.push(u)}a.tween=o}}function yN(n,r,t){var i=n._id;return n.each(function(){var o=Fm(this,i);(o.value||(o.value={}))[r]=t.apply(this,arguments)}),function(o){return ec(o,i).value[r]}}function d8(n,r){var t;return("number"==typeof r?Ni:r instanceof Bs?_n:(t=Bs(r))?(r=t,_n):jl)(n,r)}function DG(n){return function(){this.removeAttribute(n)}}function OG(n){return function(){this.removeAttributeNS(n.space,n.local)}}function PG(n,r,t){var i,o;return function(){var a=this.getAttribute(n);return a===t?null:a===i?o:o=r(i=a,t)}}function IG(n,r,t){var i,o;return function(){var a=this.getAttributeNS(n.space,n.local);return a===t?null:a===i?o:o=r(i=a,t)}}function RG(n,r,t){var i,o,a;return function(){var s,u=t(this);return null==u?void this.removeAttribute(n):(s=this.getAttribute(n))===u?null:s===i&&u===o?a:a=r(i=s,o=u)}}function NG(n,r,t){var i,o,a;return function(){var s,u=t(this);return null==u?void this.removeAttributeNS(n.space,n.local):(s=this.getAttributeNS(n.space,n.local))===u?null:s===i&&u===o?a:a=r(i=s,o=u)}}function LG(n,r){function t(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttributeNS(n.space,n.local,o(a))}}return t._value=r,t}function FG(n,r){function t(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttribute(n,o(a))}}return t._value=r,t}function UG(n,r){return function(){_N(this,n).delay=+r.apply(this,arguments)}}function HG(n,r){return r=+r,function(){_N(this,n).delay=r}}function qG(n,r){return function(){Fm(this,n).duration=+r.apply(this,arguments)}}function jG(n,r){return r=+r,function(){Fm(this,n).duration=r}}function WG(n,r){if("function"!=typeof r)throw new Error;return function(){Fm(this,n).ease=r}}function KG(n,r,t){var i,o,a=function(n){return(n+"").trim().split(/^|\s+/).every(function(r){var t=r.indexOf(".");return t>=0&&(r=r.slice(0,t)),!r||"start"===r})}(r)?_N:Fm;return function(){var s=a(this,n),u=s.on;u!==i&&(o=(i=u).copy()).on(r,t),s.on=o}}var rY=Hl.prototype.constructor;function cY(n,r,t){function i(){var o=this,a=r.apply(o,arguments);return a&&function(s){o.style.setProperty(n,a(s),t)}}return i._value=r,i}var vY=0;function Qc(n,r,t,i){this._groups=n,this._parents=r,this._name=t,this._id=i}function pM(n){return Hl().transition(n)}function p8(){return++vY}var I_=Hl.prototype;function gY(n){return n*n*n}function _Y(n){return--n*n*n+1}function bN(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}Qc.prototype=pM.prototype={constructor:Qc,select:function(n){var r=this._name,t=this._id;"function"!=typeof n&&(n=Cm(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var C,P,u=i[s],p=u.length,m=a[s]=new Array(p),L=0;L<p;++L)(C=u[L])&&(P=n.call(C,C.__data__,L,u))&&("__data__"in C&&(P.__data__=C.__data__),m[L]=P,dM(m[L],r,t,L,m,ec(C,t)));return new Qc(a,this._parents,r,t)},selectAll:function(n){var r=this._name,t=this._id;"function"!=typeof n&&(n=Dk(n));for(var i=this._groups,o=i.length,a=[],s=[],u=0;u<o;++u)for(var C,p=i[u],m=p.length,P=0;P<m;++P)if(C=p[P]){for(var G,L=n.call(C,C.__data__,P,p),Y=ec(C,t),te=0,de=L.length;te<de;++te)(G=L[te])&&dM(G,r,t,te,L,Y);a.push(L),s.push(C)}return new Qc(a,s,r,t)},filter:function(n){"function"!=typeof n&&(n=i1(n));for(var r=this._groups,t=r.length,i=new Array(t),o=0;o<t;++o)for(var p,a=r[o],s=a.length,u=i[o]=[],m=0;m<s;++m)(p=a[m])&&n.call(p,p.__data__,m,a)&&u.push(p);return new Qc(i,this._parents,this._name,this._id)},merge:function(n){if(n._id!==this._id)throw new Error;for(var r=this._groups,t=n._groups,i=r.length,a=Math.min(i,t.length),s=new Array(i),u=0;u<a;++u)for(var L,p=r[u],m=t[u],C=p.length,P=s[u]=new Array(C),G=0;G<C;++G)(L=p[G]||m[G])&&(P[G]=L);for(;u<i;++u)s[u]=r[u];return new Qc(s,this._parents,this._name,this._id)},selection:function(){return new rY(this._groups,this._parents)},transition:function(){for(var n=this._name,r=this._id,t=p8(),i=this._groups,o=i.length,a=0;a<o;++a)for(var p,s=i[a],u=s.length,m=0;m<u;++m)if(p=s[m]){var C=ec(p,r);dM(p,n,t,m,s,{time:C.time+C.delay+C.duration,delay:0,duration:C.duration,ease:C.ease})}return new Qc(i,this._parents,n,t)},call:I_.call,nodes:I_.nodes,node:I_.node,size:I_.size,empty:I_.empty,each:I_.each,on:function(n,r){var t=this._id;return arguments.length<2?ec(this.node(),t).on.on(n):this.each(KG(t,n,r))},attr:function(n,r){var t=If(n),i="transform"===t?rM:d8;return this.attrTween(n,"function"==typeof r?(t.local?NG:RG)(t,i,yN(this,"attr."+n,r)):null==r?(t.local?OG:DG)(t):(t.local?IG:PG)(t,i,r+""))},attrTween:function(n,r){var t="attr."+n;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(null==r)return this.tween(t,null);if("function"!=typeof r)throw new Error;var i=If(n);return this.tween(t,(i.local?LG:FG)(i,r))},style:function(n,r,t){var i="transform"==(n+="")?x1:d8;return null==r?this.styleTween(n,function(n,r){var t,i,o;return function(){var a=op(this,n),s=(this.style.removeProperty(n),op(this,n));return a===s?null:a===t&&s===i?o:o=r(t=a,i=s)}}(n,i)).on("end.style."+n,function(n){return function(){this.style.removeProperty(n)}}(n)):this.styleTween(n,"function"==typeof r?function(n,r,t){var i,o,a;return function(){var s=op(this,n),u=t(this);return null==u&&(this.style.removeProperty(n),u=op(this,n)),s===u?null:s===i&&u===o?a:a=r(i=s,o=u)}}(n,i,yN(this,"style."+n,r)):function(n,r,t){var i,o;return function(){var a=op(this,n);return a===t?null:a===i?o:o=r(i=a,t)}}(n,i,r+""),t)},styleTween:function(n,r,t){var i="style."+(n+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==r)return this.tween(i,null);if("function"!=typeof r)throw new Error;return this.tween(i,cY(n,r,null==t?"":t))},text:function(n){return this.tween("text","function"==typeof n?function(n){return function(){var r=n(this);this.textContent=null==r?"":r}}(yN(this,"text",n)):function(n){return function(){this.textContent=n}}(null==n?"":n+""))},remove:function(){return this.on("end.remove",(n=this._id,function(){var r=this.parentNode;for(var t in this.__transition)if(+t!==n)return;r&&r.removeChild(this)}));var n},tween:function(n,r){var t=this._id;if(n+="",arguments.length<2){for(var s,i=ec(this.node(),t).tween,o=0,a=i.length;o<a;++o)if((s=i[o]).name===n)return s.value;return null}return this.each((null==r?kG:MG)(t,n,r))},delay:function(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?UG:HG)(r,n)):ec(this.node(),r).delay},duration:function(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?qG:jG)(r,n)):ec(this.node(),r).duration},ease:function(n){var r=this._id;return arguments.length?this.each(WG(r,n)):ec(this.node(),r).ease}};var CN={time:null,delay:0,duration:250,ease:bN};function yY(n,r){for(var t;!(t=n.__transition)||!(t=t[r]);)if(!(n=n.parentNode))return CN.time=P_(),CN;return t}Hl.prototype.interrupt=function(n){return this.each(function(){Bm(this,n)})},Hl.prototype.transition=function(n){var r,t;n instanceof Qc?(r=n._id,n=n._name):(r=p8(),(t=CN).time=P_(),n=null==n?null:n+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var p,s=i[a],u=s.length,m=0;m<u;++m)(p=s[m])&&dM(p,n,r,m,s,t||yY(p,r));return new Qc(i,this._parents,n,r)};var CY=[null];function SY(n,r){var i,o,t=n.__transition;if(t)for(o in r=null==r?null:r+"",t)if((i=t[o]).state>1&&i.name===r)return new Qc([[n]],CY,r,+o);return null}function f8(n){return function(){return n}}function TY(n,r,t){this.target=n,this.type=r,this.selection=t}function h8(){On.stopImmediatePropagation()}function fM(){On.preventDefault(),On.stopImmediatePropagation()}var m8={name:"drag"},SN={name:"space"},R_={name:"handle"},N_={name:"center"},hM={name:"x",handles:["e","w"].map(D1),input:function(r,t){return r&&[[r[0],t[0][1]],[r[1],t[1][1]]]},output:function(r){return r&&[r[0][0],r[1][0]]}},mM={name:"y",handles:["n","s"].map(D1),input:function(r,t){return r&&[[t[0][0],r[0]],[t[1][0],r[1]]]},output:function(r){return r&&[r[0][1],r[1][1]]}},xY={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(D1),input:function(r){return r},output:function(r){return r}},up={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},v8={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},g8={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},wY={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},EY={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function D1(n){return{type:n}}function kY(){return!On.button}function MY(){var n=this.ownerSVGElement||this;return[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function TN(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function xN(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function AY(n){var r=n.__brush;return r?r.dim.output(r.selection):null}function DY(){return wN(hM)}function OY(){return wN(mM)}function PY(){return wN(xY)}function wN(n){var a,r=MY,t=kY,i=bm(s,"start","brush","end"),o=6;function s(L){var G=L.property("__brush",P).selectAll(".overlay").data([D1("overlay")]);G.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",up.overlay).merge(G).each(function(){var te=TN(this).extent;ni(this).attr("x",te[0][0]).attr("y",te[0][1]).attr("width",te[1][0]-te[0][0]).attr("height",te[1][1]-te[0][1])}),L.selectAll(".selection").data([D1("selection")]).enter().append("rect").attr("class","selection").attr("cursor",up.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var Y=L.selectAll(".handle").data(n.handles,function(te){return te.type});Y.exit().remove(),Y.enter().append("rect").attr("class",function(te){return"handle handle--"+te.type}).attr("cursor",function(te){return up[te.type]}),L.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",C)}function u(){var L=ni(this),G=TN(this).selection;G?(L.selectAll(".selection").style("display",null).attr("x",G[0][0]).attr("y",G[0][1]).attr("width",G[1][0]-G[0][0]).attr("height",G[1][1]-G[0][1]),L.selectAll(".handle").style("display",null).attr("x",function(Y){return"e"===Y.type[Y.type.length-1]?G[1][0]-o/2:G[0][0]-o/2}).attr("y",function(Y){return"s"===Y.type[0]?G[1][1]-o/2:G[0][1]-o/2}).attr("width",function(Y){return"n"===Y.type||"s"===Y.type?G[1][0]-G[0][0]+o:o}).attr("height",function(Y){return"e"===Y.type||"w"===Y.type?G[1][1]-G[0][1]+o:o})):L.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function p(L,G){return L.__brush.emitter||new m(L,G)}function m(L,G){this.that=L,this.args=G,this.state=L.__brush,this.active=0}function C(){if(On.touches){if(On.changedTouches.length<On.touches.length)return fM()}else if(a)return;if(t.apply(this,arguments)){var pt,Je,It,Et,Wt,ot,mn,dn,xn,Fn,er,jr,ir,L=this,G=On.target.__data__.type,Y="selection"===(On.metaKey?G="overlay":G)?m8:On.altKey?N_:R_,te=n===mM?null:wY[G],de=n===hM?null:EY[G],Me=TN(L),st=Me.extent,tt=Me.selection,at=st[0][0],et=st[0][1],pn=st[1][0],Dt=st[1][1],mr=te&&de&&On.shiftKey,Gr=Fs(L),ai=Gr,vr=p(L,arguments).beforestart();"overlay"===G?Me.selection=tt=[[pt=n===mM?at:Gr[0],It=n===hM?et:Gr[1]],[Wt=n===mM?pn:pt,mn=n===hM?Dt:It]]:(pt=tt[0][0],It=tt[0][1],Wt=tt[1][0],mn=tt[1][1]),Je=pt,Et=It,ot=Wt,dn=mn;var Bi=ni(L).attr("pointer-events","none"),Bo=Bi.selectAll(".overlay").attr("cursor",up[G]);if(On.touches)Bi.on("touchmove.brush",dr,!0).on("touchend.brush touchcancel.brush",qn,!0);else{var hr=ni(On.view).on("keydown.brush",Ko,!0).on("keyup.brush",wi,!0).on("mousemove.brush",dr,!0).on("mouseup.brush",qn,!0);wm(On.view)}h8(),Bm(L),u.call(L),vr.start()}function dr(){var Ci=Fs(L);mr&&!jr&&!ir&&(Math.abs(Ci[0]-ai[0])>Math.abs(Ci[1]-ai[1])?ir=!0:jr=!0),ai=Ci,er=!0,fM(),or()}function or(){var Ci;switch(xn=ai[0]-Gr[0],Fn=ai[1]-Gr[1],Y){case SN:case m8:te&&(xn=Math.max(at-pt,Math.min(pn-Wt,xn)),Je=pt+xn,ot=Wt+xn),de&&(Fn=Math.max(et-It,Math.min(Dt-mn,Fn)),Et=It+Fn,dn=mn+Fn);break;case R_:te<0?(xn=Math.max(at-pt,Math.min(pn-pt,xn)),Je=pt+xn,ot=Wt):te>0&&(xn=Math.max(at-Wt,Math.min(pn-Wt,xn)),Je=pt,ot=Wt+xn),de<0?(Fn=Math.max(et-It,Math.min(Dt-It,Fn)),Et=It+Fn,dn=mn):de>0&&(Fn=Math.max(et-mn,Math.min(Dt-mn,Fn)),Et=It,dn=mn+Fn);break;case N_:te&&(Je=Math.max(at,Math.min(pn,pt-xn*te)),ot=Math.max(at,Math.min(pn,Wt+xn*te))),de&&(Et=Math.max(et,Math.min(Dt,It-Fn*de)),dn=Math.max(et,Math.min(Dt,mn+Fn*de)))}ot<Je&&(te*=-1,Ci=pt,pt=Wt,Wt=Ci,Ci=Je,Je=ot,ot=Ci,G in v8&&Bo.attr("cursor",up[G=v8[G]])),dn<Et&&(de*=-1,Ci=It,It=mn,mn=Ci,Ci=Et,Et=dn,dn=Ci,G in g8&&Bo.attr("cursor",up[G=g8[G]])),Me.selection&&(tt=Me.selection),jr&&(Je=tt[0][0],ot=tt[1][0]),ir&&(Et=tt[0][1],dn=tt[1][1]),(tt[0][0]!==Je||tt[0][1]!==Et||tt[1][0]!==ot||tt[1][1]!==dn)&&(Me.selection=[[Je,Et],[ot,dn]],u.call(L),vr.brush())}function qn(){if(h8(),On.touches){if(On.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500),Bi.on("touchmove.brush touchend.brush touchcancel.brush",null)}else A_(On.view,er),hr.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Bi.attr("pointer-events","all"),Bo.attr("cursor",up.overlay),Me.selection&&(tt=Me.selection),xN(tt)&&(Me.selection=null,u.call(L)),vr.end()}function Ko(){switch(On.keyCode){case 16:mr=te&&de;break;case 18:Y===R_&&(te&&(Wt=ot-xn*te,pt=Je+xn*te),de&&(mn=dn-Fn*de,It=Et+Fn*de),Y=N_,or());break;case 32:(Y===R_||Y===N_)&&(te<0?Wt=ot-xn:te>0&&(pt=Je-xn),de<0?mn=dn-Fn:de>0&&(It=Et-Fn),Y=SN,Bo.attr("cursor",up.selection),or());break;default:return}fM()}function wi(){switch(On.keyCode){case 16:mr&&(jr=ir=mr=!1,or());break;case 18:Y===N_&&(te<0?Wt=ot:te>0&&(pt=Je),de<0?mn=dn:de>0&&(It=Et),Y=R_,or());break;case 32:Y===SN&&(On.altKey?(te&&(Wt=ot-xn*te,pt=Je+xn*te),de&&(mn=dn-Fn*de,It=Et+Fn*de),Y=N_):(te<0?Wt=ot:te>0&&(pt=Je),de<0?mn=dn:de>0&&(It=Et),Y=R_),Bo.attr("cursor",up[G]),or());break;default:return}fM()}}function P(){var L=this.__brush||{selection:null};return L.extent=r.apply(this,arguments),L.dim=n,L}return s.move=function(L,G){L.selection?L.on("start.brush",function(){p(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){p(this,arguments).end()}).tween("brush",function(){var Y=this,te=Y.__brush,de=p(Y,arguments),Me=te.selection,st=n.input("function"==typeof G?G.apply(this,arguments):G,te.extent),tt=sl(Me,st);function at(pt){te.selection=1===pt&&xN(st)?null:tt(pt),u.call(Y),de.brush()}return Me&&st?at:at(1)}):L.each(function(){var Y=this,te=arguments,de=Y.__brush,Me=n.input("function"==typeof G?G.apply(Y,te):G,de.extent),st=p(Y,te).beforestart();Bm(Y),de.selection=null==Me||xN(Me)?null:Me,u.call(Y),st.start().brush().end()})},m.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(G){Rf(new TY(s,G,n.output(this.state.selection)),i.apply,i,[G,this.that,this.args])}},s.extent=function(L){return arguments.length?(r="function"==typeof L?L:f8([[+L[0][0],+L[0][1]],[+L[1][0],+L[1][1]]]),s):r},s.filter=function(L){return arguments.length?(t="function"==typeof L?L:f8(!!L),s):t},s.handleSize=function(L){return arguments.length?(o=+L,s):o},s.on=function(){var L=i.on.apply(i,arguments);return L===i?s:L},s}var _8=Math.cos,y8=Math.sin,b8=Math.PI,vM=b8/2,C8=2*b8,S8=Math.max;function IY(n){return function(r,t){return n(r.source.value+r.target.value,t.source.value+t.target.value)}}function RY(){var n=0,r=null,t=null,i=null;function o(a){var G,Y,te,de,Me,st,s=a.length,u=[],p=is(s),m=[],C=[],P=C.groups=new Array(s),L=new Array(s*s);for(G=0,Me=-1;++Me<s;){for(Y=0,st=-1;++st<s;)Y+=a[Me][st];u.push(Y),m.push(is(s)),G+=Y}for(r&&p.sort(function(pn,Wt){return r(u[pn],u[Wt])}),t&&m.forEach(function(pn,Wt){pn.sort(function(ot,Dt){return t(a[Wt][ot],a[Wt][Dt])})}),de=(G=S8(0,C8-n*s)/G)?n:C8/s,Y=0,Me=-1;++Me<s;){for(te=Y,st=-1;++st<s;){var tt=p[Me],at=m[tt][st],pt=a[tt][at],Je=Y,et=Y+=pt*G;L[at*s+tt]={index:tt,subindex:at,startAngle:Je,endAngle:et,value:pt}}P[tt]={index:tt,startAngle:te,endAngle:Y,value:u[tt]},Y+=de}for(Me=-1;++Me<s;)for(st=Me-1;++st<s;){var It=L[st*s+Me],Et=L[Me*s+st];(It.value||Et.value)&&C.push(It.value<Et.value?{source:Et,target:It}:{source:It,target:Et})}return i?C.sort(i):C}return o.padAngle=function(a){return arguments.length?(n=S8(0,a),o):n},o.sortGroups=function(a){return arguments.length?(r=a,o):r},o.sortSubgroups=function(a){return arguments.length?(t=a,o):t},o.sortChords=function(a){return arguments.length?(null==a?i=null:(i=IY(a))._=a,o):i&&i._},o}var NY=Array.prototype.slice;function EN(n){return function(){return n}}var kN=Math.PI,MN=2*kN,Um=1e-6,ZY=MN-Um;function AN(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function T8(){return new AN}AN.prototype=T8.prototype={constructor:AN,moveTo:function(r,t){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(r,t){this._+="L"+(this._x1=+r)+","+(this._y1=+t)},quadraticCurveTo:function(r,t,i,o){this._+="Q"+ +r+","+ +t+","+(this._x1=+i)+","+(this._y1=+o)},bezierCurveTo:function(r,t,i,o,a,s){this._+="C"+ +r+","+ +t+","+ +i+","+ +o+","+(this._x1=+a)+","+(this._y1=+s)},arcTo:function(r,t,i,o,a){var s=this._x1,u=this._y1,p=(i=+i)-(r=+r),m=(o=+o)-(t=+t),C=s-r,P=u-t,L=C*C+P*P;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=r)+","+(this._y1=t);else if(L>Um)if(Math.abs(P*p-m*C)>Um&&a){var G=i-s,Y=o-u,te=p*p+m*m,de=G*G+Y*Y,Me=Math.sqrt(te),st=Math.sqrt(L),tt=a*Math.tan((kN-Math.acos((te+L-de)/(2*Me*st)))/2),at=tt/st,pt=tt/Me;Math.abs(at-1)>Um&&(this._+="L"+(r+at*C)+","+(t+at*P)),this._+="A"+a+","+a+",0,0,"+ +(P*G>C*Y)+","+(this._x1=r+pt*p)+","+(this._y1=t+pt*m)}else this._+="L"+(this._x1=r)+","+(this._y1=t)},arc:function(r,t,i,o,a,s){r=+r,t=+t,s=!!s;var u=(i=+i)*Math.cos(o),p=i*Math.sin(o),m=r+u,C=t+p,P=1^s,L=s?o-a:a-o;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+m+","+C:(Math.abs(this._x1-m)>Um||Math.abs(this._y1-C)>Um)&&(this._+="L"+m+","+C),i&&(L<0&&(L=L%MN+MN),L>ZY?this._+="A"+i+","+i+",0,1,"+P+","+(r-u)+","+(t-p)+"A"+i+","+i+",0,1,"+P+","+(this._x1=m)+","+(this._y1=C):L>Um&&(this._+="A"+i+","+i+",0,"+ +(L>=kN)+","+P+","+(this._x1=r+i*Math.cos(a))+","+(this._y1=t+i*Math.sin(a))))},rect:function(r,t,i,o){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+t)+"h"+ +i+"v"+ +o+"h"+-i+"Z"},toString:function(){return this._}};var tc=T8;function LY(n){return n.source}function FY(n){return n.target}function BY(n){return n.radius}function UY(n){return n.startAngle}function HY(n){return n.endAngle}function VY(){var n=LY,r=FY,t=BY,i=UY,o=HY,a=null;function s(){var u,p=NY.call(arguments),m=n.apply(this,p),C=r.apply(this,p),P=+t.apply(this,(p[0]=m,p)),L=i.apply(this,p)-vM,G=o.apply(this,p)-vM,Y=P*_8(L),te=P*y8(L),de=+t.apply(this,(p[0]=C,p)),Me=i.apply(this,p)-vM,st=o.apply(this,p)-vM;if(a||(a=u=tc()),a.moveTo(Y,te),a.arc(0,0,P,L,G),(L!==Me||G!==st)&&(a.quadraticCurveTo(0,0,de*_8(Me),de*y8(Me)),a.arc(0,0,de,Me,st)),a.quadraticCurveTo(0,0,Y,te),a.closePath(),u)return a=null,u+""||null}return s.radius=function(u){return arguments.length?(t="function"==typeof u?u:EN(+u),s):t},s.startAngle=function(u){return arguments.length?(i="function"==typeof u?u:EN(+u),s):i},s.endAngle=function(u){return arguments.length?(o="function"==typeof u?u:EN(+u),s):o},s.source=function(u){return arguments.length?(n=u,s):n},s.target=function(u){return arguments.length?(r=u,s):r},s.context=function(u){return arguments.length?(a=null==u?null:u,s):a},s}var wu="$";function gM(){}function x8(n,r){var t=new gM;if(n instanceof gM)n.each(function(u,p){t.set(p,u)});else if(Array.isArray(n)){var a,i=-1,o=n.length;if(null==r)for(;++i<o;)t.set(i,n[i]);else for(;++i<o;)t.set(r(a=n[i],i,n),a)}else if(n)for(var s in n)t.set(s,n[s]);return t}gM.prototype=x8.prototype={constructor:gM,has:function(r){return wu+r in this},get:function(r){return this[wu+r]},set:function(r,t){return this[wu+r]=t,this},remove:function(r){var t=wu+r;return t in this&&delete this[t]},clear:function(){for(var r in this)r[0]===wu&&delete this[r]},keys:function(){var r=[];for(var t in this)t[0]===wu&&r.push(t.slice(1));return r},values:function(){var r=[];for(var t in this)t[0]===wu&&r.push(this[t]);return r},entries:function(){var r=[];for(var t in this)t[0]===wu&&r.push({key:t.slice(1),value:this[t]});return r},size:function(){var r=0;for(var t in this)t[0]===wu&&++r;return r},empty:function(){for(var r in this)if(r[0]===wu)return!1;return!0},each:function(r){for(var t in this)t[0]===wu&&r(this[t],t.slice(1),this)}};var Hf=x8;function qY(){var t,i,o,n=[],r=[];function a(u,p,m,C){if(p>=n.length)return null!=t&&u.sort(t),null!=i?i(u):u;for(var Y,te,Me,P=-1,L=u.length,G=n[p++],de=Hf(),st=m();++P<L;)(Me=de.get(Y=G(te=u[P])+""))?Me.push(te):de.set(Y,[te]);return de.each(function(tt,at){C(st,at,a(tt,p,m,C))}),st}function s(u,p){if(++p>n.length)return u;var m,C=r[p-1];return null!=i&&p>=n.length?m=u.entries():(m=[],u.each(function(P,L){m.push({key:L,values:s(P,p)})})),null!=C?m.sort(function(P,L){return C(P.key,L.key)}):m}return o={object:function(p){return a(p,0,jY,zY)},map:function(p){return a(p,0,w8,E8)},entries:function(p){return s(a(p,0,w8,E8),0)},key:function(p){return n.push(p),o},sortKeys:function(p){return r[n.length-1]=p,o},sortValues:function(p){return t=p,o},rollup:function(p){return i=p,o}}}function jY(){return{}}function zY(n,r,t){n[r]=t}function w8(){return Hf()}function E8(n,r,t){n.set(r,t)}function _M(){}var Hm=Hf.prototype;function k8(n,r){var t=new _M;if(n instanceof _M)n.each(function(a){t.add(a)});else if(n){var i=-1,o=n.length;if(null==r)for(;++i<o;)t.add(n[i]);else for(;++i<o;)t.add(r(n[i],i,n))}return t}_M.prototype=k8.prototype={constructor:_M,has:Hm.has,add:function(r){return this[wu+(r+="")]=r,this},remove:Hm.remove,clear:Hm.clear,values:Hm.keys,size:Hm.size,empty:Hm.empty,each:Hm.each};var WY=k8;function GY(n){var r=[];for(var t in n)r.push(t);return r}function YY(n){var r=[];for(var t in n)r.push(n[t]);return r}function JY(n){var r=[];for(var t in n)r.push({key:t,value:n[t]});return r}var M8=Array.prototype.slice;function KY(n,r){return n-r}function Vm(n){return function(){return n}}function $Y(n,r){for(var o,t=-1,i=r.length;++t<i;)if(o=eJ(n,r[t]))return o;return 0}function eJ(n,r){for(var t=r[0],i=r[1],o=-1,a=0,s=n.length,u=s-1;a<s;u=a++){var p=n[a],m=p[0],C=p[1],P=n[u],L=P[0],G=P[1];if(tJ(p,P,r))return 0;C>i!=G>i&&t<(L-m)*(i-C)/(G-C)+m&&(o=-o)}return o}function tJ(n,r,t){var i;return function(n,r,t){return(r[0]-n[0])*(t[1]-n[1])==(t[0]-n[0])*(r[1]-n[1])}(n,r,t)&&function(n,r,t){return n<=r&&r<=t||t<=r&&r<=n}(n[i=+(n[0]===r[0])],t[i],r[i])}function iJ(){}var cp=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function A8(){var n=1,r=1,t=hm,i=p;function o(m){var C=t(m);if(Array.isArray(C))C=C.slice().sort(KY);else{var P=KC(m),L=P[0],G=P[1];C=ip(L,G,C),C=is(Math.floor(L/C)*C,Math.floor(G/C)*C,C)}return C.map(function(Y){return a(m,Y)})}function a(m,C){var P=[],L=[];return function(m,C,P){var Y,te,Me,st,tt,L=new Array,G=new Array;for(Y=te=-1,cp[(Me=m[0]>=C)<<1].forEach(at);++Y<n-1;)cp[Me|(Me=m[Y+1]>=C)<<1].forEach(at);for(cp[Me<<0].forEach(at);++te<r-1;){for(Y=-1,cp[(Me=m[te*n+n]>=C)<<1|(st=m[te*n]>=C)<<2].forEach(at);++Y<n-1;)tt=st,cp[Me|(Me=m[te*n+n+Y+1]>=C)<<1|(st=m[te*n+Y+1]>=C)<<2|tt<<3].forEach(at);cp[Me|st<<3].forEach(at)}for(Y=-1,cp[(st=m[te*n]>=C)<<2].forEach(at);++Y<n-1;)tt=st,cp[(st=m[te*n+Y+1]>=C)<<2|tt<<3].forEach(at);function at(pt){var pn,Wt,Je=[pt[0][0]+Y,pt[0][1]+te],et=[pt[1][0]+Y,pt[1][1]+te],It=u(Je),Et=u(et);(pn=G[It])?(Wt=L[Et])?(delete G[pn.end],delete L[Wt.start],pn===Wt?(pn.ring.push(et),P(pn.ring)):L[pn.start]=G[Wt.end]={start:pn.start,end:Wt.end,ring:pn.ring.concat(Wt.ring)}):(delete G[pn.end],pn.ring.push(et),G[pn.end=Et]=pn):(pn=L[Et])?(Wt=G[It])?(delete L[pn.start],delete G[Wt.end],pn===Wt?(pn.ring.push(et),P(pn.ring)):L[Wt.start]=G[pn.end]={start:Wt.start,end:pn.end,ring:Wt.ring.concat(pn.ring)}):(delete L[pn.start],pn.ring.unshift(Je),L[pn.start=It]=pn):L[It]=G[Et]={start:It,end:Et,ring:[Je,et]}}cp[st<<3].forEach(at)}(m,C,function(G){i(G,m,C),function(n){for(var r=0,t=n.length,i=n[t-1][1]*n[0][0]-n[t-1][0]*n[0][1];++r<t;)i+=n[r-1][1]*n[r][0]-n[r-1][0]*n[r][1];return i}(G)>0?P.push([G]):L.push(G)}),L.forEach(function(G){for(var de,Y=0,te=P.length;Y<te;++Y)if(-1!==$Y((de=P[Y])[0],G))return void de.push(G)}),{type:"MultiPolygon",value:C,coordinates:P}}function u(m){return 2*m[0]+m[1]*(n+1)*4}function p(m,C,P){m.forEach(function(L){var Me,G=L[0],Y=L[1],te=0|G,de=0|Y,st=C[de*n+te];G>0&&G<n&&te===G&&(L[0]=G+(P-(Me=C[de*n+te-1]))/(st-Me)-.5),Y>0&&Y<r&&de===Y&&(L[1]=Y+(P-(Me=C[(de-1)*n+te]))/(st-Me)-.5)})}return o.contour=a,o.size=function(m){if(!arguments.length)return[n,r];var C=Math.ceil(m[0]),P=Math.ceil(m[1]);if(!(C>0&&P>0))throw new Error("invalid size");return n=C,r=P,o},o.thresholds=function(m){return arguments.length?(t="function"==typeof m?m:Array.isArray(m)?Vm(M8.call(m)):Vm(m),o):t},o.smooth=function(m){return arguments.length?(i=m?p:iJ,o):i===p},o}function DN(n,r,t){for(var i=n.width,o=n.height,a=1+(t<<1),s=0;s<o;++s)for(var u=0,p=0;u<i+t;++u)u<i&&(p+=n.data[u+s*i]),u>=t&&(u>=a&&(p-=n.data[u-a+s*i]),r.data[u-t+s*i]=p/Math.min(u+1,i-1+a-u,a))}function ON(n,r,t){for(var i=n.width,o=n.height,a=1+(t<<1),s=0;s<i;++s)for(var u=0,p=0;u<o+t;++u)u<o&&(p+=n.data[s+u*i]),u>=t&&(u>=a&&(p-=n.data[s+(u-a)*i]),r.data[s+(u-t)*i]=p/Math.min(u+1,o-1+a-u,a))}function oJ(n){return n[0]}function aJ(n){return n[1]}function sJ(){var n=oJ,r=aJ,t=960,i=500,o=20,a=2,s=3*o,u=t+2*s>>a,p=i+2*s>>a,m=Vm(20);function C(de){var Me=new Float32Array(u*p),st=new Float32Array(u*p);de.forEach(function(pt,Je,et){var It=n(pt,Je,et)+s>>a,Et=r(pt,Je,et)+s>>a;It>=0&&It<u&&Et>=0&&Et<p&&++Me[It+Et*u]}),DN({width:u,height:p,data:Me},{width:u,height:p,data:st},o>>a),ON({width:u,height:p,data:st},{width:u,height:p,data:Me},o>>a),DN({width:u,height:p,data:Me},{width:u,height:p,data:st},o>>a),ON({width:u,height:p,data:st},{width:u,height:p,data:Me},o>>a),DN({width:u,height:p,data:Me},{width:u,height:p,data:st},o>>a),ON({width:u,height:p,data:st},{width:u,height:p,data:Me},o>>a);var tt=m(Me);if(!Array.isArray(tt)){var at=e1(Me);tt=ip(0,at,tt),(tt=is(0,Math.floor(at/tt)*tt,tt)).shift()}return A8().thresholds(tt).size([u,p])(Me).map(P)}function P(de){return de.value*=Math.pow(2,-2*a),de.coordinates.forEach(L),de}function L(de){de.forEach(G)}function G(de){de.forEach(Y)}function Y(de){de[0]=de[0]*Math.pow(2,a)-s,de[1]=de[1]*Math.pow(2,a)-s}function te(){return u=t+2*(s=3*o)>>a,p=i+2*s>>a,C}return C.x=function(de){return arguments.length?(n="function"==typeof de?de:Vm(+de),C):n},C.y=function(de){return arguments.length?(r="function"==typeof de?de:Vm(+de),C):r},C.size=function(de){if(!arguments.length)return[t,i];var Me=Math.ceil(de[0]),st=Math.ceil(de[1]);if(!(Me>=0||Me>=0))throw new Error("invalid size");return t=Me,i=st,te()},C.cellSize=function(de){if(!arguments.length)return 1<<a;if(!((de=+de)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(de)/Math.LN2),te()},C.thresholds=function(de){return arguments.length?(m="function"==typeof de?de:Array.isArray(de)?Vm(M8.call(de)):Vm(de),C):m},C.bandwidth=function(de){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((de=+de)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*de*de+1)-1)/2),te()},C}function yM(n){return function(){return n}}function PN(n,r,t,i,o,a,s,u,p,m){this.target=n,this.type=r,this.subject=t,this.identifier=i,this.active=o,this.x=a,this.y=s,this.dx=u,this.dy=p,this._=m}function lJ(){return!On.ctrlKey&&!On.button}function uJ(){return this.parentNode}function cJ(n){return null==n?{x:On.x,y:On.y}:n}function dJ(){return navigator.maxTouchPoints||"ontouchstart"in this}function Vf(){var u,p,m,C,n=lJ,r=uJ,t=cJ,i=dJ,o={},a=bm("start","drag","end"),s=0,P=0;function L(at){at.on("mousedown.drag",G).filter(i).on("touchstart.drag",de).on("touchmove.drag",Me).on("touchend.drag touchcancel.drag",st).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function G(){if(!C&&n.apply(this,arguments)){var at=tt("mouse",r.apply(this,arguments),Fs,this,arguments);!at||(ni(On.view).on("mousemove.drag",Y,!0).on("mouseup.drag",te,!0),wm(On.view),v1(),m=!1,u=On.clientX,p=On.clientY,at("start"))}}function Y(){if(Lf(),!m){var at=On.clientX-u,pt=On.clientY-p;m=at*at+pt*pt>P}o.mouse("drag")}function te(){ni(On.view).on("mousemove.drag mouseup.drag",null),A_(On.view,m),Lf(),o.mouse("end")}function de(){if(n.apply(this,arguments)){var et,It,at=On.changedTouches,pt=r.apply(this,arguments),Je=at.length;for(et=0;et<Je;++et)(It=tt(at[et].identifier,pt,M_,this,arguments))&&(v1(),It("start"))}}function Me(){var Je,et,at=On.changedTouches,pt=at.length;for(Je=0;Je<pt;++Je)(et=o[at[Je].identifier])&&(Lf(),et("drag"))}function st(){var Je,et,at=On.changedTouches,pt=at.length;for(C&&clearTimeout(C),C=setTimeout(function(){C=null},500),Je=0;Je<pt;++Je)(et=o[at[Je].identifier])&&(v1(),et("end"))}function tt(at,pt,Je,et,It){var pn,Wt,ot,Et=Je(pt,at),Dt=a.copy();if(Rf(new PN(L,"beforestart",pn,at,s,Et[0],Et[1],0,0,Dt),function(){return null!=(On.subject=pn=t.apply(et,It))&&(Wt=pn.x-Et[0]||0,ot=pn.y-Et[1]||0,!0)}))return function mn(dn){var Fn,xn=Et;switch(dn){case"start":o[at]=mn,Fn=s++;break;case"end":delete o[at],--s;case"drag":Et=Je(pt,at),Fn=s}Rf(new PN(L,dn,pn,at,Fn,Et[0]+Wt,Et[1]+ot,Et[0]-xn[0],Et[1]-xn[1],Dt),Dt.apply,Dt,[dn,et,It])}}return L.filter=function(at){return arguments.length?(n="function"==typeof at?at:yM(!!at),L):n},L.container=function(at){return arguments.length?(r="function"==typeof at?at:yM(at),L):r},L.subject=function(at){return arguments.length?(t="function"==typeof at?at:yM(at),L):t},L.touchable=function(at){return arguments.length?(i="function"==typeof at?at:yM(!!at),L):i},L.on=function(){var at=a.on.apply(a,arguments);return at===a?L:at},L.clickDistance=function(at){return arguments.length?(P=(at=+at)*at,L):Math.sqrt(P)},L}PN.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var D8={},IN={};function O8(n){return new Function("d","return {"+n.map(function(r,t){return JSON.stringify(r)+": d["+t+"]"}).join(",")+"}")}function ZN(n){var r=new RegExp('["'+n+"\n\r]"),t=n.charCodeAt(0);function o(m,C){var te,P=[],L=m.length,G=0,Y=0,de=L<=0,Me=!1;function st(){if(de)return IN;if(Me)return Me=!1,D8;var at,Je,pt=G;if(34===m.charCodeAt(pt)){for(;G++<L&&34!==m.charCodeAt(G)||34===m.charCodeAt(++G););return(at=G)>=L?de=!0:10===(Je=m.charCodeAt(G++))?Me=!0:13===Je&&(Me=!0,10===m.charCodeAt(G)&&++G),m.slice(pt+1,at-1).replace(/""/g,'"')}for(;G<L;){if(10===(Je=m.charCodeAt(at=G++)))Me=!0;else if(13===Je)Me=!0,10===m.charCodeAt(G)&&++G;else if(Je!==t)continue;return m.slice(pt,at)}return de=!0,m.slice(pt,L)}for(10===m.charCodeAt(L-1)&&--L,13===m.charCodeAt(L-1)&&--L;(te=st())!==IN;){for(var tt=[];te!==D8&&te!==IN;)tt.push(te),te=st();C&&null==(tt=C(tt,Y++))||P.push(tt)}return P}function u(m){return m.map(p).join(n)}function p(m){return null==m?"":r.test(m+="")?'"'+m.replace(/"/g,'""')+'"':m}return{parse:function(m,C){var P,L,G=o(m,function(Y,te){if(P)return P(Y,te-1);L=Y,P=C?function(n,r){var t=O8(n);return function(i,o){return r(t(i),o,n)}}(Y,C):O8(Y)});return G.columns=L||[],G},parseRows:o,format:function(m,C){return null==C&&(C=function(n){var r=Object.create(null),t=[];return n.forEach(function(i){for(var o in i)o in r||t.push(r[o]=o)}),t}(m)),[C.map(p).join(n)].concat(m.map(function(P){return C.map(function(L){return p(P[L])}).join(n)})).join("\n")},formatRows:function(m){return m.map(u).join("\n")}}}var bM=ZN(","),hJ=bM.parse,mJ=bM.parseRows,vJ=bM.format,gJ=bM.formatRows,CM=ZN("\t"),_J=CM.parse,yJ=CM.parseRows,bJ=CM.format,CJ=CM.formatRows;function SJ(n){return+n}function TJ(n){return n*n}function xJ(n){return n*(2-n)}function P8(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var wJ=function n(r){function t(i){return Math.pow(i,r)}return r=+r,t.exponent=n,t}(3),EJ=function n(r){function t(i){return 1-Math.pow(1-i,r)}return r=+r,t.exponent=n,t}(3),I8=function n(r){function t(i){return((i*=2)<=1?Math.pow(i,r):2-Math.pow(2-i,r))/2}return r=+r,t.exponent=n,t}(3),R8=Math.PI,N8=R8/2;function kJ(n){return 1==+n?1:1-Math.cos(n*N8)}function MJ(n){return Math.sin(n*N8)}function Z8(n){return(1-Math.cos(R8*n))/2}function qf(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function AJ(n){return qf(1-+n)}function DJ(n){return 1-qf(n)}function L8(n){return((n*=2)<=1?qf(1-n):2-qf(n-1))/2}function OJ(n){return 1-Math.sqrt(1-n*n)}function PJ(n){return Math.sqrt(1- --n*n)}function F8(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var SM=7.5625;function HJ(n){return 1-P1(1-n)}function P1(n){return(n=+n)<.36363636363636365?SM*n*n:n<.7272727272727273?SM*(n-=.5454545454545454)*n+.75:n<.9090909090909091?SM*(n-=.8181818181818182)*n+.9375:SM*(n-=.9545454545454546)*n+.984375}function VJ(n){return((n*=2)<=1?1-P1(1-n):P1(n-1)+1)/2}var BN=1.70158,qJ=function n(r){function t(i){return(i=+i)*i*(r*(i-1)+i)}return r=+r,t.overshoot=n,t}(BN),jJ=function n(r){function t(i){return--i*i*((i+1)*r+i)+1}return r=+r,t.overshoot=n,t}(BN),B8=function n(r){function t(i){return((i*=2)<1?i*i*((r+1)*i-r):(i-=2)*i*((r+1)*i+r)+2)/2}return r=+r,t.overshoot=n,t}(BN),Z_=2*Math.PI,zJ=function n(r,t){var i=Math.asin(1/(r=Math.max(1,r)))*(t/=Z_);function o(a){return r*qf(- --a)*Math.sin((i-a)/t)}return o.amplitude=function(a){return n(a,t*Z_)},o.period=function(a){return n(r,a)},o}(1,.3),U8=function n(r,t){var i=Math.asin(1/(r=Math.max(1,r)))*(t/=Z_);function o(a){return 1-r*qf(a=+a)*Math.sin((a+i)/t)}return o.amplitude=function(a){return n(a,t*Z_)},o.period=function(a){return n(r,a)},o}(1,.3),WJ=function n(r,t){var i=Math.asin(1/(r=Math.max(1,r)))*(t/=Z_);function o(a){return((a=2*a-1)<0?r*qf(-a)*Math.sin((i-a)/t):2-r*qf(a)*Math.sin((i+a)/t))/2}return o.amplitude=function(a){return n(a,t*Z_)},o.period=function(a){return n(r,a)},o}(1,.3);function GJ(n,r){var t;function i(){var o,s,a=t.length,u=0,p=0;for(o=0;o<a;++o)u+=(s=t[o]).x,p+=s.y;for(u=u/a-n,p=p/a-r,o=0;o<a;++o)(s=t[o]).x-=u,s.y-=p}return null==n&&(n=0),null==r&&(r=0),i.initialize=function(o){t=o},i.x=function(o){return arguments.length?(n=+o,i):n},i.y=function(o){return arguments.length?(r=+o,i):r},i}function La(n){return function(){return n}}function jf(){return 1e-6*(Math.random()-.5)}function H8(n,r,t,i){if(isNaN(r)||isNaN(t))return n;var o,P,L,G,Y,te,de,Me,st,a=n._root,s={data:i},u=n._x0,p=n._y0,m=n._x1,C=n._y1;if(!a)return n._root=s,n;for(;a.length;)if((te=r>=(P=(u+m)/2))?u=P:m=P,(de=t>=(L=(p+C)/2))?p=L:C=L,o=a,!(a=a[Me=de<<1|te]))return o[Me]=s,n;if(G=+n._x.call(null,a.data),Y=+n._y.call(null,a.data),r===G&&t===Y)return s.next=a,o?o[Me]=s:n._root=s,n;do{o=o?o[Me]=new Array(4):n._root=new Array(4),(te=r>=(P=(u+m)/2))?u=P:m=P,(de=t>=(L=(p+C)/2))?p=L:C=L}while((Me=de<<1|te)==(st=(Y>=L)<<1|G>=P));return o[st]=a,o[Me]=s,n}function Us(n,r,t,i,o){this.node=n,this.x0=r,this.y0=t,this.x1=i,this.y1=o}function aQ(n){return n[0]}function lQ(n){return n[1]}function TM(n,r,t){var i=new VN(null==r?aQ:r,null==t?lQ:t,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function VN(n,r,t,i,o,a){this._x=n,this._y=r,this._x0=t,this._y0=i,this._x1=o,this._y1=a,this._root=void 0}function V8(n){for(var r={data:n.data},t=r;n=n.next;)t=t.next={data:n.data};return r}var Hs=TM.prototype=VN.prototype;function cQ(n){return n.x+n.vx}function dQ(n){return n.y+n.vy}function pQ(n){var r,t,i=1,o=1;function a(){for(var p,C,P,L,G,Y,te,m=r.length,de=0;de<o;++de)for(C=TM(r,cQ,dQ).visitAfter(s),p=0;p<m;++p)te=(Y=t[(P=r[p]).index])*Y,L=P.x+P.vx,G=P.y+P.vy,C.visit(Me);function Me(st,tt,at,pt,Je){var et=st.data,It=st.r,Et=Y+It;if(!et)return tt>L+Et||pt<L-Et||at>G+Et||Je<G-Et;if(et.index>P.index){var pn=L-et.x-et.vx,Wt=G-et.y-et.vy,ot=pn*pn+Wt*Wt;ot<Et*Et&&(0===pn&&(ot+=(pn=jf())*pn),0===Wt&&(ot+=(Wt=jf())*Wt),ot=(Et-(ot=Math.sqrt(ot)))/ot*i,P.vx+=(pn*=ot)*(Et=(It*=It)/(te+It)),P.vy+=(Wt*=ot)*Et,et.vx-=pn*(Et=1-Et),et.vy-=Wt*Et)}}}function s(p){if(p.data)return p.r=t[p.data.index];for(var m=p.r=0;m<4;++m)p[m]&&p[m].r>p.r&&(p.r=p[m].r)}function u(){if(r){var p,C,m=r.length;for(t=new Array(m),p=0;p<m;++p)t[(C=r[p]).index]=+n(C,p,r)}}return"function"!=typeof n&&(n=La(null==n?1:+n)),a.initialize=function(p){r=p,u()},a.iterations=function(p){return arguments.length?(o=+p,a):o},a.strength=function(p){return arguments.length?(i=+p,a):i},a.radius=function(p){return arguments.length?(n="function"==typeof p?p:La(+p),u(),a):n},a}function fQ(n){return n.index}function q8(n,r){var t=n.get(r);if(!t)throw new Error("missing: "+r);return t}function hQ(n){var i,a,s,u,p,r=fQ,t=function(te){return 1/Math.min(u[te.source.index],u[te.target.index])},o=La(30),m=1;function P(te){for(var de=0,Me=n.length;de<m;++de)for(var tt,at,pt,Je,et,It,Et,st=0;st<Me;++st)Je=(pt=(tt=n[st]).target).x+pt.vx-(at=tt.source).x-at.vx||jf(),et=pt.y+pt.vy-at.y-at.vy||jf(),et*=It=((It=Math.sqrt(Je*Je+et*et))-a[st])/It*te*i[st],pt.vx-=(Je*=It)*(Et=p[st]),pt.vy-=et*Et,at.vx+=Je*(Et=1-Et),at.vy+=et*Et}function L(){if(s){var te,tt,de=s.length,Me=n.length,st=Hf(s,r);for(te=0,u=new Array(de);te<Me;++te)(tt=n[te]).index=te,"object"!=typeof tt.source&&(tt.source=q8(st,tt.source)),"object"!=typeof tt.target&&(tt.target=q8(st,tt.target)),u[tt.source.index]=(u[tt.source.index]||0)+1,u[tt.target.index]=(u[tt.target.index]||0)+1;for(te=0,p=new Array(Me);te<Me;++te)p[te]=u[(tt=n[te]).source.index]/(u[tt.source.index]+u[tt.target.index]);i=new Array(Me),G(),a=new Array(Me),Y()}}function G(){if(s)for(var te=0,de=n.length;te<de;++te)i[te]=+t(n[te],te,n)}function Y(){if(s)for(var te=0,de=n.length;te<de;++te)a[te]=+o(n[te],te,n)}return null==n&&(n=[]),P.initialize=function(te){s=te,L()},P.links=function(te){return arguments.length?(n=te,L(),P):n},P.id=function(te){return arguments.length?(r=te,P):r},P.iterations=function(te){return arguments.length?(m=+te,P):m},P.strength=function(te){return arguments.length?(t="function"==typeof te?te:La(+te),G(),P):t},P.distance=function(te){return arguments.length?(o="function"==typeof te?te:La(+te),Y(),P):o},P}function mQ(n){return n.x}function vQ(n){return n.y}Hs.copy=function(){var t,i,n=new VN(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=V8(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var o=0;o<4;++o)(i=r.source[o])&&(i.length?t.push({source:i,target:r.target[o]=new Array(4)}):r.target[o]=V8(i));return n},Hs.add=function(n){var r=+this._x.call(null,n),t=+this._y.call(null,n);return H8(this.cover(r,t),r,t,n)},Hs.addAll=function(n){var r,t,o,a,i=n.length,s=new Array(i),u=new Array(i),p=1/0,m=1/0,C=-1/0,P=-1/0;for(t=0;t<i;++t)isNaN(o=+this._x.call(null,r=n[t]))||isNaN(a=+this._y.call(null,r))||(s[t]=o,u[t]=a,o<p&&(p=o),o>C&&(C=o),a<m&&(m=a),a>P&&(P=a));if(p>C||m>P)return this;for(this.cover(p,m).cover(C,P),t=0;t<i;++t)H8(this,s[t],u[t],n[t]);return this},Hs.cover=function(n,r){if(isNaN(n=+n)||isNaN(r=+r))return this;var t=this._x0,i=this._y0,o=this._x1,a=this._y1;if(isNaN(t))o=(t=Math.floor(n))+1,a=(i=Math.floor(r))+1;else{for(var p,m,s=o-t,u=this._root;t>n||n>=o||i>r||r>=a;)switch(m=(r<i)<<1|n<t,p=new Array(4),p[m]=u,u=p,s*=2,m){case 0:o=t+s,a=i+s;break;case 1:t=o-s,a=i+s;break;case 2:o=t+s,i=a-s;break;case 3:t=o-s,i=a-s}this._root&&this._root.length&&(this._root=u)}return this._x0=t,this._y0=i,this._x1=o,this._y1=a,this},Hs.data=function(){var n=[];return this.visit(function(r){if(!r.length)do{n.push(r.data)}while(r=r.next)}),n},Hs.extent=function(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Hs.find=function(n,r,t){var i,s,u,p,m,Y,te,o=this._x0,a=this._y0,C=this._x1,P=this._y1,L=[],G=this._root;for(G&&L.push(new Us(G,o,a,C,P)),null==t?t=1/0:(o=n-t,a=r-t,C=n+t,P=r+t,t*=t);Y=L.pop();)if(!(!(G=Y.node)||(s=Y.x0)>C||(u=Y.y0)>P||(p=Y.x1)<o||(m=Y.y1)<a))if(G.length){var de=(s+p)/2,Me=(u+m)/2;L.push(new Us(G[3],de,Me,p,m),new Us(G[2],s,Me,de,m),new Us(G[1],de,u,p,Me),new Us(G[0],s,u,de,Me)),(te=(r>=Me)<<1|n>=de)&&(Y=L[L.length-1],L[L.length-1]=L[L.length-1-te],L[L.length-1-te]=Y)}else{var st=n-+this._x.call(null,G.data),tt=r-+this._y.call(null,G.data),at=st*st+tt*tt;if(at<t){var pt=Math.sqrt(t=at);o=n-pt,a=r-pt,C=n+pt,P=r+pt,i=G.data}}return i},Hs.remove=function(n){if(isNaN(C=+this._x.call(null,n))||isNaN(P=+this._y.call(null,n)))return this;var r,i,o,a,C,P,L,G,Y,te,de,Me,t=this._root,s=this._x0,u=this._y0,p=this._x1,m=this._y1;if(!t)return this;if(t.length)for(;;){if((Y=C>=(L=(s+p)/2))?s=L:p=L,(te=P>=(G=(u+m)/2))?u=G:m=G,r=t,!(t=t[de=te<<1|Y]))return this;if(!t.length)break;(r[de+1&3]||r[de+2&3]||r[de+3&3])&&(i=r,Me=de)}for(;t.data!==n;)if(o=t,!(t=t.next))return this;return(a=t.next)&&delete t.next,o?(a?o.next=a:delete o.next,this):r?(a?r[de]=a:delete r[de],(t=r[0]||r[1]||r[2]||r[3])&&t===(r[3]||r[2]||r[1]||r[0])&&!t.length&&(i?i[Me]=t:this._root=t),this):(this._root=a,this)},Hs.removeAll=function(n){for(var r=0,t=n.length;r<t;++r)this.remove(n[r]);return this},Hs.root=function(){return this._root},Hs.size=function(){var n=0;return this.visit(function(r){if(!r.length)do{++n}while(r=r.next)}),n},Hs.visit=function(n){var t,o,a,s,u,p,r=[],i=this._root;for(i&&r.push(new Us(i,this._x0,this._y0,this._x1,this._y1));t=r.pop();)if(!n(i=t.node,a=t.x0,s=t.y0,u=t.x1,p=t.y1)&&i.length){var m=(a+u)/2,C=(s+p)/2;(o=i[3])&&r.push(new Us(o,m,C,u,p)),(o=i[2])&&r.push(new Us(o,a,C,m,p)),(o=i[1])&&r.push(new Us(o,m,s,u,C)),(o=i[0])&&r.push(new Us(o,a,s,m,C))}return this},Hs.visitAfter=function(n){var i,r=[],t=[];for(this._root&&r.push(new Us(this._root,this._x0,this._y0,this._x1,this._y1));i=r.pop();){var o=i.node;if(o.length){var a,s=i.x0,u=i.y0,p=i.x1,m=i.y1,C=(s+p)/2,P=(u+m)/2;(a=o[0])&&r.push(new Us(a,s,u,C,P)),(a=o[1])&&r.push(new Us(a,C,u,p,P)),(a=o[2])&&r.push(new Us(a,s,P,C,m)),(a=o[3])&&r.push(new Us(a,C,P,p,m))}t.push(i)}for(;i=t.pop();)n(i.node,i.x0,i.y0,i.x1,i.y1);return this},Hs.x=function(n){return arguments.length?(this._x=n,this):this._x},Hs.y=function(n){return arguments.length?(this._y=n,this):this._y};var j8,_Q=Math.PI*(3-Math.sqrt(5));function yQ(n){var r,t=1,i=.001,o=1-Math.pow(i,1/300),a=0,s=.6,u=Hf(),p=lM(C),m=bm("tick","end");function C(){P(),m.call("tick",r),t<i&&(p.stop(),m.call("end",r))}function P(){var Y,de,te=n.length;for(t+=(a-t)*o,u.each(function(Me){Me(t)}),Y=0;Y<te;++Y)null==(de=n[Y]).fx?de.x+=de.vx*=s:(de.x=de.fx,de.vx=0),null==de.fy?de.y+=de.vy*=s:(de.y=de.fy,de.vy=0)}function L(){for(var de,Y=0,te=n.length;Y<te;++Y){if((de=n[Y]).index=Y,isNaN(de.x)||isNaN(de.y)){var Me=10*Math.sqrt(Y),st=Y*_Q;de.x=Me*Math.cos(st),de.y=Me*Math.sin(st)}(isNaN(de.vx)||isNaN(de.vy))&&(de.vx=de.vy=0)}}function G(Y){return Y.initialize&&Y.initialize(n),Y}return null==n&&(n=[]),L(),r={tick:P,restart:function(){return p.restart(C),r},stop:function(){return p.stop(),r},nodes:function(te){return arguments.length?(n=te,L(),u.each(G),r):n},alpha:function(te){return arguments.length?(t=+te,r):t},alphaMin:function(te){return arguments.length?(i=+te,r):i},alphaDecay:function(te){return arguments.length?(o=+te,r):+o},alphaTarget:function(te){return arguments.length?(a=+te,r):a},velocityDecay:function(te){return arguments.length?(s=1-te,r):1-s},force:function(te,de){return arguments.length>1?(null==de?u.remove(te):u.set(te,G(de)),r):u.get(te)},find:function(te,de,Me){var at,pt,Je,et,It,st=0,tt=n.length;for(null==Me?Me=1/0:Me*=Me,st=0;st<tt;++st)(Je=(at=te-(et=n[st]).x)*at+(pt=de-et.y)*pt)<Me&&(It=et,Me=Je);return It},on:function(te,de){return arguments.length>1?(m.on(te,de),r):m.on(te)}}}function bQ(){var n,r,t,o,i=La(-30),a=1,s=1/0,u=.81;function p(L){var G,Y=n.length,te=TM(n,mQ,vQ).visitAfter(C);for(t=L,G=0;G<Y;++G)r=n[G],te.visit(P)}function m(){if(n){var L,Y,G=n.length;for(o=new Array(G),L=0;L<G;++L)o[(Y=n[L]).index]=+i(Y,L,n)}}function C(L){var Y,te,Me,st,tt,G=0,de=0;if(L.length){for(Me=st=tt=0;tt<4;++tt)(Y=L[tt])&&(te=Math.abs(Y.value))&&(G+=Y.value,de+=te,Me+=te*Y.x,st+=te*Y.y);L.x=Me/de,L.y=st/de}else{(Y=L).x=Y.data.x,Y.y=Y.data.y;do{G+=o[Y.data.index]}while(Y=Y.next)}L.value=G}function P(L,G,Y,te){if(!L.value)return!0;var de=L.x-r.x,Me=L.y-r.y,st=te-G,tt=de*de+Me*Me;if(st*st/u<tt)return tt<s&&(0===de&&(tt+=(de=jf())*de),0===Me&&(tt+=(Me=jf())*Me),tt<a&&(tt=Math.sqrt(a*tt)),r.vx+=de*L.value*t/tt,r.vy+=Me*L.value*t/tt),!0;if(!(L.length||tt>=s)){(L.data!==r||L.next)&&(0===de&&(tt+=(de=jf())*de),0===Me&&(tt+=(Me=jf())*Me),tt<a&&(tt=Math.sqrt(a*tt)));do{L.data!==r&&(r.vx+=de*(st=o[L.data.index]*t/tt),r.vy+=Me*st)}while(L=L.next)}}return p.initialize=function(L){n=L,m()},p.strength=function(L){return arguments.length?(i="function"==typeof L?L:La(+L),m(),p):i},p.distanceMin=function(L){return arguments.length?(a=L*L,p):Math.sqrt(a)},p.distanceMax=function(L){return arguments.length?(s=L*L,p):Math.sqrt(s)},p.theta=function(L){return arguments.length?(u=L*L,p):Math.sqrt(u)},p}function CQ(n,r,t){var i,a,s,o=La(.1);function u(m){for(var C=0,P=i.length;C<P;++C){var L=i[C],G=L.x-r||1e-6,Y=L.y-t||1e-6,te=Math.sqrt(G*G+Y*Y),de=(s[C]-te)*a[C]*m/te;L.vx+=G*de,L.vy+=Y*de}}function p(){if(i){var m,C=i.length;for(a=new Array(C),s=new Array(C),m=0;m<C;++m)s[m]=+n(i[m],m,i),a[m]=isNaN(s[m])?0:+o(i[m],m,i)}}return"function"!=typeof n&&(n=La(+n)),null==r&&(r=0),null==t&&(t=0),u.initialize=function(m){i=m,p()},u.strength=function(m){return arguments.length?(o="function"==typeof m?m:La(+m),p(),u):o},u.radius=function(m){return arguments.length?(n="function"==typeof m?m:La(+m),p(),u):n},u.x=function(m){return arguments.length?(r=+m,u):r},u.y=function(m){return arguments.length?(t=+m,u):t},u}function SQ(n){var t,i,o,r=La(.1);function a(u){for(var C,p=0,m=t.length;p<m;++p)(C=t[p]).vx+=(o[p]-C.x)*i[p]*u}function s(){if(t){var u,p=t.length;for(i=new Array(p),o=new Array(p),u=0;u<p;++u)i[u]=isNaN(o[u]=+n(t[u],u,t))?0:+r(t[u],u,t)}}return"function"!=typeof n&&(n=La(null==n?0:+n)),a.initialize=function(u){t=u,s()},a.strength=function(u){return arguments.length?(r="function"==typeof u?u:La(+u),s(),a):r},a.x=function(u){return arguments.length?(n="function"==typeof u?u:La(+u),s(),a):n},a}function TQ(n){var t,i,o,r=La(.1);function a(u){for(var C,p=0,m=t.length;p<m;++p)(C=t[p]).vy+=(o[p]-C.y)*i[p]*u}function s(){if(t){var u,p=t.length;for(i=new Array(p),o=new Array(p),u=0;u<p;++u)i[u]=isNaN(o[u]=+n(t[u],u,t))?0:+r(t[u],u,t)}}return"function"!=typeof n&&(n=La(null==n?0:+n)),a.initialize=function(u){t=u,s()},a.strength=function(u){return arguments.length?(r="function"==typeof u?u:La(+u),s(),a):r},a.y=function(u){return arguments.length?(n="function"==typeof u?u:La(+u),s(),a):n},a}function xM(n,r){if((t=(n=r?n.toExponential(r-1):n.toExponential()).indexOf("e"))<0)return null;var t,i=n.slice(0,t);return[i.length>1?i[0]+i.slice(2):i,+n.slice(t+1)]}function L_(n){return(n=xM(Math.abs(n)))?n[1]:NaN}function z8(n,r){var t=xM(n,r);if(!t)return n+"";var i=t[0],o=t[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}var W8={"":function(n,r){e:for(var a,t=(n=n.toPrecision(r)).length,i=1,o=-1;i<t;++i)switch(n[i]){case".":o=a=i;break;case"0":0===o&&(o=i),a=i;break;case"e":break e;default:o>0&&(o=0)}return o>0?n.slice(0,o)+n.slice(a+1):n},"%":function(r,t){return(100*r).toFixed(t)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function(r){return Math.round(r).toString(10)},e:function(r,t){return r.toExponential(t)},f:function(r,t){return r.toFixed(t)},g:function(r,t){return r.toPrecision(t)},o:function(r){return Math.round(r).toString(8)},p:function(r,t){return z8(100*r,t)},r:z8,s:function(n,r){var t=xM(n,r);if(!t)return n+"";var i=t[0],o=t[1],a=o-(j8=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+xM(n,Math.max(0,r+a-1))[0]},X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}},MQ=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function I1(n){return new qN(n)}function qN(n){if(!(r=MQ.exec(n)))throw new Error("invalid format: "+n);var r,t=r[1]||" ",i=r[2]||">",o=r[3]||"-",a=r[4]||"",s=!!r[5],u=r[6]&&+r[6],p=!!r[7],m=r[8]&&+r[8].slice(1),C=r[9]||"";"n"===C?(p=!0,C="g"):W8[C]||(C=""),(s||"0"===t&&"="===i)&&(s=!0,t="0",i="="),this.fill=t,this.align=i,this.sign=o,this.symbol=a,this.zero=s,this.width=u,this.comma=p,this.precision=m,this.type=C}function G8(n){return n}I1.prototype=qN.prototype,qN.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var wM,EM,jN,Y8=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function J8(n){var r=n.grouping&&n.thousands?function(n,r){return function(t,i){for(var o=t.length,a=[],s=0,u=n[0],p=0;o>0&&u>0&&(p+u+1>i&&(u=Math.max(1,i-p)),a.push(t.substring(o-=u,o+u)),!((p+=u+1)>i));)u=n[s=(s+1)%n.length];return a.reverse().join(r)}}(n.grouping,n.thousands):G8,t=n.currency,i=n.decimal,o=n.numerals?function(n){return function(r){return r.replace(/[0-9]/g,function(t){return n[+t]})}}(n.numerals):G8,a=n.percent||"%";function s(p){var m=(p=I1(p)).fill,C=p.align,P=p.sign,L=p.symbol,G=p.zero,Y=p.width,te=p.comma,de=p.precision,Me=p.type,st="$"===L?t[0]:"#"===L&&/[boxX]/.test(Me)?"0"+Me.toLowerCase():"",tt="$"===L?t[1]:/[%p]/.test(Me)?a:"",at=W8[Me],pt=!Me||/[defgprs%]/.test(Me);function Je(et){var pn,Wt,ot,It=st,Et=tt;if("c"===Me)Et=at(et)+Et,et="";else{var Dt=(et=+et)<0;if(et=at(Math.abs(et),de),Dt&&0==+et&&(Dt=!1),It=(Dt?"("===P?P:"-":"-"===P||"("===P?"":P)+It,Et=("s"===Me?Y8[8+j8/3]:"")+Et+(Dt&&"("===P?")":""),pt)for(pn=-1,Wt=et.length;++pn<Wt;)if(48>(ot=et.charCodeAt(pn))||ot>57){Et=(46===ot?i+et.slice(pn+1):et.slice(pn))+Et,et=et.slice(0,pn);break}}te&&!G&&(et=r(et,1/0));var mn=It.length+et.length+Et.length,dn=mn<Y?new Array(Y-mn+1).join(m):"";switch(te&&G&&(et=r(dn+et,dn.length?Y-Et.length:1/0),dn=""),C){case"<":et=It+et+Et+dn;break;case"=":et=It+dn+et+Et;break;case"^":et=dn.slice(0,mn=dn.length>>1)+It+et+Et+dn.slice(mn);break;default:et=dn+It+et+Et}return o(et)}return de=null==de?Me?6:12:/[gprs]/.test(Me)?Math.max(1,Math.min(21,de)):Math.max(0,Math.min(20,de)),Je.toString=function(){return p+""},Je}return{format:s,formatPrefix:function(p,m){var C=s(((p=I1(p)).type="f",p)),P=3*Math.max(-8,Math.min(8,Math.floor(L_(m)/3))),L=Math.pow(10,-P),G=Y8[8+P/3];return function(Y){return C(L*Y)+G}}}}function Q8(n){return wM=J8(n),EM=wM.format,jN=wM.formatPrefix,wM}function K8(n){return Math.max(0,-L_(Math.abs(n)))}function X8(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(L_(r)/3)))-L_(Math.abs(n)))}function $8(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,L_(r)-L_(n))+1}function zf(){return new kM}function kM(){this.reset()}Q8({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),kM.prototype={constructor:kM,reset:function(){this.s=this.t=0},add:function(r){e7(MM,r,this.t),e7(this,MM.s,this.s),this.s?this.t+=MM.t:this.s=MM.t},valueOf:function(){return this.s}};var MM=new kM;function e7(n,r,t){var i=n.s=r+t,o=i-r;n.t=r-(i-o)+(t-o)}var Cr=1e-6,Oi=Math.PI,ia=Oi/2,AM=Oi/4,ll=2*Oi,wo=180/Oi,Ar=Oi/180,Vi=Math.abs,F_=Math.atan,Vs=Math.atan2,Sr=Math.cos,DM=Math.ceil,n7=Math.exp,OM=(Math,Math.log),zN=Math.pow,cr=Math.sin,R1=Math.sign||function(n){return n>0?1:n<0?-1:0},Fa=Math.sqrt,WN=Math.tan;function r7(n){return n>1?0:n<-1?Oi:Math.acos(n)}function zl(n){return n>1?ia:n<-1?-ia:Math.asin(n)}function i7(n){return(n=cr(n/2))*n}function Jo(){}function PM(n,r){n&&a7.hasOwnProperty(n.type)&&a7[n.type](n,r)}var o7={Feature:function(r,t){PM(r.geometry,t)},FeatureCollection:function(r,t){for(var i=r.features,o=-1,a=i.length;++o<a;)PM(i[o].geometry,t)}},a7={Sphere:function(r,t){t.sphere()},Point:function(r,t){t.point((r=r.coordinates)[0],r[1],r[2])},MultiPoint:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)t.point((r=i[o])[0],r[1],r[2])},LineString:function(r,t){GN(r.coordinates,t,0)},MultiLineString:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)GN(i[o],t,0)},Polygon:function(r,t){s7(r.coordinates,t)},MultiPolygon:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)s7(i[o],t)},GeometryCollection:function(r,t){for(var i=r.geometries,o=-1,a=i.length;++o<a;)PM(i[o],t)}};function GN(n,r,t){var a,i=-1,o=n.length-t;for(r.lineStart();++i<o;)r.point((a=n[i])[0],a[1],a[2]);r.lineEnd()}function s7(n,r){var t=-1,i=n.length;for(r.polygonStart();++t<i;)GN(n[t],r,1);r.polygonEnd()}function nc(n,r){n&&o7.hasOwnProperty(n.type)?o7[n.type](n,r):PM(n,r)}var l7,u7,YN,JN,QN,IM=zf(),RM=zf(),Kc={point:Jo,lineStart:Jo,lineEnd:Jo,polygonStart:function(){IM.reset(),Kc.lineStart=AQ,Kc.lineEnd=DQ},polygonEnd:function(){var r=+IM;RM.add(r<0?ll+r:r),this.lineStart=this.lineEnd=this.point=Jo},sphere:function(){RM.add(ll)}};function AQ(){Kc.point=OQ}function DQ(){c7(l7,u7)}function OQ(n,r){Kc.point=c7,l7=n,u7=r,YN=n*=Ar,JN=Sr(r=(r*=Ar)/2+AM),QN=cr(r)}function c7(n,r){var t=(n*=Ar)-YN,i=t>=0?1:-1,o=i*t,a=Sr(r=(r*=Ar)/2+AM),s=cr(r),u=QN*s,p=JN*a+u*Sr(o),m=u*i*cr(o);IM.add(Vs(m,p)),YN=n,JN=a,QN=s}function PQ(n){return RM.reset(),nc(n,Kc),2*RM}function NM(n){return[Vs(n[1],n[0]),zl(n[2])]}function qm(n){var r=n[0],t=n[1],i=Sr(t);return[i*Sr(r),i*cr(r),cr(t)]}function ZM(n,r){return n[0]*r[0]+n[1]*r[1]+n[2]*r[2]}function B_(n,r){return[n[1]*r[2]-n[2]*r[1],n[2]*r[0]-n[0]*r[2],n[0]*r[1]-n[1]*r[0]]}function KN(n,r){n[0]+=r[0],n[1]+=r[1],n[2]+=r[2]}function LM(n,r){return[n[0]*r,n[1]*r,n[2]*r]}function FM(n){var r=Fa(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=r,n[1]/=r,n[2]/=r}var oa,Wl,ua,Eu,jm,d7,p7,U_,Wf,dp,N1=zf(),pp={point:XN,lineStart:h7,lineEnd:m7,polygonStart:function(){pp.point=v7,pp.lineStart=IQ,pp.lineEnd=RQ,N1.reset(),Kc.polygonStart()},polygonEnd:function(){Kc.polygonEnd(),pp.point=XN,pp.lineStart=h7,pp.lineEnd=m7,IM<0?(oa=-(ua=180),Wl=-(Eu=90)):N1>Cr?Eu=90:N1<-Cr&&(Wl=-90),dp[0]=oa,dp[1]=ua}};function XN(n,r){Wf.push(dp=[oa=n,ua=n]),r<Wl&&(Wl=r),r>Eu&&(Eu=r)}function f7(n,r){var t=qm([n*Ar,r*Ar]);if(U_){var i=B_(U_,t),a=B_([i[1],-i[0],0],i);FM(a),a=NM(a);var m,s=n-jm,u=s>0?1:-1,p=a[0]*wo*u,C=Vi(s)>180;C^(u*jm<p&&p<u*n)?(m=a[1]*wo)>Eu&&(Eu=m):C^(u*jm<(p=(p+360)%360-180)&&p<u*n)?(m=-a[1]*wo)<Wl&&(Wl=m):(r<Wl&&(Wl=r),r>Eu&&(Eu=r)),C?n<jm?Gl(oa,n)>Gl(oa,ua)&&(ua=n):Gl(n,ua)>Gl(oa,ua)&&(oa=n):ua>=oa?(n<oa&&(oa=n),n>ua&&(ua=n)):n>jm?Gl(oa,n)>Gl(oa,ua)&&(ua=n):Gl(n,ua)>Gl(oa,ua)&&(oa=n)}else Wf.push(dp=[oa=n,ua=n]);r<Wl&&(Wl=r),r>Eu&&(Eu=r),U_=t,jm=n}function h7(){pp.point=f7}function m7(){dp[0]=oa,dp[1]=ua,pp.point=XN,U_=null}function v7(n,r){if(U_){var t=n-jm;N1.add(Vi(t)>180?t+(t>0?360:-360):t)}else d7=n,p7=r;Kc.point(n,r),f7(n,r)}function IQ(){Kc.lineStart()}function RQ(){v7(d7,p7),Kc.lineEnd(),Vi(N1)>Cr&&(oa=-(ua=180)),dp[0]=oa,dp[1]=ua,U_=null}function Gl(n,r){return(r-=n)<0?r+360:r}function NQ(n,r){return n[0]-r[0]}function g7(n,r){return n[0]<=n[1]?n[0]<=r&&r<=n[1]:r<n[0]||n[1]<r}function ZQ(n){var r,t,i,o,a,s,u;if(Eu=ua=-(oa=Wl=1/0),Wf=[],nc(n,pp),t=Wf.length){for(Wf.sort(NQ),r=1,a=[i=Wf[0]];r<t;++r)g7(i,(o=Wf[r])[0])||g7(i,o[1])?(Gl(i[0],o[1])>Gl(i[0],i[1])&&(i[1]=o[1]),Gl(o[0],i[1])>Gl(i[0],i[1])&&(i[0]=o[0])):a.push(i=o);for(s=-1/0,r=0,i=a[t=a.length-1];r<=t;i=o,++r)(u=Gl(i[1],(o=a[r])[0]))>s&&(s=u,oa=o[0],ua=i[1])}return Wf=dp=null,oa===1/0||Wl===1/0?[[NaN,NaN],[NaN,NaN]]:[[oa,Wl],[ua,Eu]]}var Z1,BM,UM,HM,VM,qM,jM,zM,$N,e6,t6,_7,y7,qs,js,zs,rc={sphere:Jo,point:n6,lineStart:b7,lineEnd:C7,polygonStart:function(){rc.lineStart=BQ,rc.lineEnd=UQ},polygonEnd:function(){rc.lineStart=b7,rc.lineEnd=C7}};function n6(n,r){n*=Ar;var t=Sr(r*=Ar);L1(t*Sr(n),t*cr(n),cr(r))}function L1(n,r,t){++Z1,UM+=(n-UM)/Z1,HM+=(r-HM)/Z1,VM+=(t-VM)/Z1}function b7(){rc.point=LQ}function LQ(n,r){n*=Ar;var t=Sr(r*=Ar);qs=t*Sr(n),js=t*cr(n),zs=cr(r),rc.point=FQ,L1(qs,js,zs)}function FQ(n,r){n*=Ar;var t=Sr(r*=Ar),i=t*Sr(n),o=t*cr(n),a=cr(r),s=Vs(Fa((s=js*a-zs*o)*s+(s=zs*i-qs*a)*s+(s=qs*o-js*i)*s),qs*i+js*o+zs*a);BM+=s,qM+=s*(qs+(qs=i)),jM+=s*(js+(js=o)),zM+=s*(zs+(zs=a)),L1(qs,js,zs)}function C7(){rc.point=n6}function BQ(){rc.point=HQ}function UQ(){S7(_7,y7),rc.point=n6}function HQ(n,r){_7=n,y7=r,n*=Ar,r*=Ar,rc.point=S7;var t=Sr(r);qs=t*Sr(n),js=t*cr(n),zs=cr(r),L1(qs,js,zs)}function S7(n,r){n*=Ar;var t=Sr(r*=Ar),i=t*Sr(n),o=t*cr(n),a=cr(r),s=js*a-zs*o,u=zs*i-qs*a,p=qs*o-js*i,m=Fa(s*s+u*u+p*p),C=zl(m),P=m&&-C/m;$N+=P*s,e6+=P*u,t6+=P*p,BM+=C,qM+=C*(qs+(qs=i)),jM+=C*(js+(js=o)),zM+=C*(zs+(zs=a)),L1(qs,js,zs)}function VQ(n){Z1=BM=UM=HM=VM=qM=jM=zM=$N=e6=t6=0,nc(n,rc);var r=$N,t=e6,i=t6,o=r*r+t*t+i*i;return o<1e-12&&(r=qM,t=jM,i=zM,BM<Cr&&(r=UM,t=HM,i=VM),(o=r*r+t*t+i*i)<1e-12)?[NaN,NaN]:[Vs(t,r)*wo,zl(i/Fa(o))*wo]}function H_(n){return function(){return n}}function r6(n,r){function t(i,o){return i=n(i,o),r(i[0],i[1])}return n.invert&&r.invert&&(t.invert=function(i,o){return(i=r.invert(i,o))&&n.invert(i[0],i[1])}),t}function i6(n,r){return[n>Oi?n-ll:n<-Oi?n+ll:n,r]}function o6(n,r,t){return(n%=ll)?r||t?r6(x7(n),w7(r,t)):x7(n):r||t?w7(r,t):i6}function T7(n){return function(r,t){return[(r+=n)>Oi?r-ll:r<-Oi?r+ll:r,t]}}function x7(n){var r=T7(n);return r.invert=T7(-n),r}function w7(n,r){var t=Sr(n),i=cr(n),o=Sr(r),a=cr(r);function s(u,p){var m=Sr(p),C=Sr(u)*m,P=cr(u)*m,L=cr(p),G=L*t+C*i;return[Vs(P*o-G*a,C*t-L*i),zl(G*o+P*a)]}return s.invert=function(u,p){var m=Sr(p),C=Sr(u)*m,P=cr(u)*m,L=cr(p),G=L*o-P*a;return[Vs(P*o+L*a,C*t+G*i),zl(G*t-C*i)]},s}function E7(n){function r(t){return(t=n(t[0]*Ar,t[1]*Ar))[0]*=wo,t[1]*=wo,t}return n=o6(n[0]*Ar,n[1]*Ar,n.length>2?n[2]*Ar:0),r.invert=function(t){return(t=n.invert(t[0]*Ar,t[1]*Ar))[0]*=wo,t[1]*=wo,t},r}function k7(n,r,t,i,o,a){if(t){var s=Sr(r),u=cr(r),p=i*t;null==o?(o=r+i*ll,a=r-p/2):(o=M7(s,o),a=M7(s,a),(i>0?o<a:o>a)&&(o+=i*ll));for(var m,C=o;i>0?C>a:C<a;C-=p)m=NM([s,-u*Sr(C),-u*cr(C)]),n.point(m[0],m[1])}}function M7(n,r){(r=qm(r))[0]-=n,FM(r);var t=r7(-r[1]);return((-r[2]<0?-t:t)+ll-Cr)%ll}function qQ(){var i,o,n=H_([0,0]),r=H_(90),t=H_(6),a={point:function(p,m){i.push(p=o(p,m)),p[0]*=wo,p[1]*=wo}};function u(){var p=n.apply(this,arguments),m=r.apply(this,arguments)*Ar,C=t.apply(this,arguments)*Ar;return i=[],o=o6(-p[0]*Ar,-p[1]*Ar,0).invert,k7(a,m,C,1),p={type:"Polygon",coordinates:[i]},i=o=null,p}return u.center=function(p){return arguments.length?(n="function"==typeof p?p:H_([+p[0],+p[1]]),u):n},u.radius=function(p){return arguments.length?(r="function"==typeof p?p:H_(+p),u):r},u.precision=function(p){return arguments.length?(t="function"==typeof p?p:H_(+p),u):t},u}function A7(){var r,n=[];return{point:function(i,o){r.push([i,o])},lineStart:function(){n.push(r=[])},lineEnd:Jo,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],r=null,i}}}function WM(n,r){return Vi(n[0]-r[0])<Cr&&Vi(n[1]-r[1])<Cr}function GM(n,r,t,i){this.x=n,this.z=r,this.o=t,this.e=i,this.v=!1,this.n=this.p=null}function D7(n,r,t,i,o){var u,p,a=[],s=[];if(n.forEach(function(Y){if(!((te=Y.length-1)<=0)){var te,st,de=Y[0],Me=Y[te];if(WM(de,Me)){for(o.lineStart(),u=0;u<te;++u)o.point((de=Y[u])[0],de[1]);return void o.lineEnd()}a.push(st=new GM(de,Y,null,!0)),s.push(st.o=new GM(de,null,st,!1)),a.push(st=new GM(Me,Y,null,!1)),s.push(st.o=new GM(Me,null,st,!0))}}),a.length){for(s.sort(r),O7(a),O7(s),u=0,p=s.length;u<p;++u)s[u].e=t=!t;for(var C,P,m=a[0];;){for(var L=m,G=!0;L.v;)if((L=L.n)===m)return;C=L.z,o.lineStart();do{if(L.v=L.o.v=!0,L.e){if(G)for(u=0,p=C.length;u<p;++u)o.point((P=C[u])[0],P[1]);else i(L.x,L.n.x,1,o);L=L.n}else{if(G)for(u=(C=L.p.z).length-1;u>=0;--u)o.point((P=C[u])[0],P[1]);else i(L.x,L.p.x,-1,o);L=L.p}C=(L=L.o).z,G=!G}while(!L.v);o.lineEnd()}}}function O7(n){if(r=n.length){for(var r,o,t=0,i=n[0];++t<r;)i.n=o=n[t],o.p=i,i=o;i.n=o=n[0],o.p=i}}i6.invert=i6;var a6=zf();function P7(n,r){var t=r[0],i=r[1],o=cr(i),a=[cr(t),-Sr(t),0],s=0,u=0;a6.reset(),1===o?i=ia+Cr:-1===o&&(i=-ia-Cr);for(var p=0,m=n.length;p<m;++p)if(P=(C=n[p]).length)for(var C,P,L=C[P-1],G=L[0],Y=L[1]/2+AM,te=cr(Y),de=Sr(Y),Me=0;Me<P;++Me,G=tt,te=pt,de=Je,L=st){var st=C[Me],tt=st[0],at=st[1]/2+AM,pt=cr(at),Je=Sr(at),et=tt-G,It=et>=0?1:-1,Et=It*et,pn=Et>Oi,Wt=te*pt;if(a6.add(Vs(Wt*It*cr(Et),de*Je+Wt*Sr(Et))),s+=pn?et+It*ll:et,pn^G>=t^tt>=t){var ot=B_(qm(L),qm(st));FM(ot);var Dt=B_(a,ot);FM(Dt);var mn=(pn^et>=0?-1:1)*zl(Dt[2]);(i>mn||i===mn&&(ot[0]||ot[1]))&&(u+=pn^et>=0?1:-1)}}return(s<-Cr||s<Cr&&a6<-Cr)^1&u}function I7(n,r,t,i){return function(o){var m,C,P,a=r(o),s=A7(),u=r(s),p=!1,L={point:G,lineStart:te,lineEnd:de,polygonStart:function(){L.point=Me,L.lineStart=st,L.lineEnd=tt,C=[],m=[]},polygonEnd:function(){L.point=G,L.lineStart=te,L.lineEnd=de,C=mm(C);var pt=P7(m,i);C.length?(p||(o.polygonStart(),p=!0),D7(C,zQ,pt,t,o)):pt&&(p||(o.polygonStart(),p=!0),o.lineStart(),t(null,null,1,o),o.lineEnd()),p&&(o.polygonEnd(),p=!1),C=m=null},sphere:function(){o.polygonStart(),o.lineStart(),t(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function G(at,pt){n(at,pt)&&o.point(at,pt)}function Y(at,pt){a.point(at,pt)}function te(){L.point=Y,a.lineStart()}function de(){L.point=G,a.lineEnd()}function Me(at,pt){P.push([at,pt]),u.point(at,pt)}function st(){u.lineStart(),P=[]}function tt(){Me(P[0][0],P[0][1]),u.lineEnd();var Je,It,Et,pn,at=u.clean(),pt=s.result(),et=pt.length;if(P.pop(),m.push(P),P=null,et){if(1&at){if((It=(Et=pt[0]).length-1)>0){for(p||(o.polygonStart(),p=!0),o.lineStart(),Je=0;Je<It;++Je)o.point((pn=Et[Je])[0],pn[1]);o.lineEnd()}return}et>1&&2&at&&pt.push(pt.pop().concat(pt.shift())),C.push(pt.filter(jQ))}}return L}}function jQ(n){return n.length>1}function zQ(n,r){return((n=n.x)[0]<0?n[1]-ia-Cr:ia-n[1])-((r=r.x)[0]<0?r[1]-ia-Cr:ia-r[1])}var s6=I7(function(){return!0},function(n){var o,r=NaN,t=NaN,i=NaN;return{lineStart:function(){n.lineStart(),o=1},point:function(s,u){var p=s>0?Oi:-Oi,m=Vi(s-r);Vi(m-Oi)<Cr?(n.point(r,t=(t+u)/2>0?ia:-ia),n.point(i,t),n.lineEnd(),n.lineStart(),n.point(p,t),n.point(s,t),o=0):i!==p&&m>=Oi&&(Vi(r-i)<Cr&&(r-=i*Cr),Vi(s-p)<Cr&&(s-=p*Cr),t=function(n,r,t,i){var o,a,s=cr(n-t);return Vi(s)>Cr?F_((cr(r)*(a=Sr(i))*cr(t)-cr(i)*(o=Sr(r))*cr(n))/(o*a*s)):(r+i)/2}(r,t,s,u),n.point(i,t),n.lineEnd(),n.lineStart(),n.point(p,t),o=0),n.point(r=s,t=u),i=p},lineEnd:function(){n.lineEnd(),r=t=NaN},clean:function(){return 2-o}}},function(n,r,t,i){var o;if(null==n)i.point(-Oi,o=t*ia),i.point(0,o),i.point(Oi,o),i.point(Oi,0),i.point(Oi,-o),i.point(0,-o),i.point(-Oi,-o),i.point(-Oi,0),i.point(-Oi,o);else if(Vi(n[0]-r[0])>Cr){var a=n[0]<r[0]?Oi:-Oi;i.point(-a,o=t*a/2),i.point(0,o),i.point(a,o)}else i.point(r[0],r[1])},[-Oi,-ia]);function R7(n){var r=Sr(n),t=6*Ar,i=r>0,o=Vi(r)>Cr;function s(C,P){return Sr(C)*Sr(P)>r}function p(C,P,L){var te=[1,0,0],de=B_(qm(C),qm(P)),Me=ZM(de,de),st=de[0],tt=Me-st*st;if(!tt)return!L&&C;var at=r*Me/tt,pt=-r*st/tt,Je=B_(te,de),et=LM(te,at);KN(et,LM(de,pt));var Et=Je,pn=ZM(et,Et),Wt=ZM(Et,Et),ot=pn*pn-Wt*(ZM(et,et)-1);if(!(ot<0)){var Dt=Fa(ot),mn=LM(Et,(-pn-Dt)/Wt);if(KN(mn,et),mn=NM(mn),!L)return mn;var mr,dn=C[0],xn=P[0],Fn=C[1],er=P[1];xn<dn&&(mr=dn,dn=xn,xn=mr);var jr=xn-dn,ir=Vi(jr-Oi)<Cr;if(!ir&&er<Fn&&(mr=Fn,Fn=er,er=mr),ir||jr<Cr?ir?Fn+er>0^mn[1]<(Vi(mn[0]-dn)<Cr?Fn:er):Fn<=mn[1]&&mn[1]<=er:jr>Oi^(dn<=mn[0]&&mn[0]<=xn)){var ai=LM(Et,(-pn+Dt)/Wt);return KN(ai,et),[mn,NM(ai)]}}}function m(C,P){var L=i?n:Oi-n,G=0;return C<-L?G|=1:C>L&&(G|=2),P<-L?G|=4:P>L&&(G|=8),G}return I7(s,function(C){var P,L,G,Y,te;return{lineStart:function(){Y=G=!1,te=1},point:function(Me,st){var at,tt=[Me,st],pt=s(Me,st),Je=i?pt?0:m(Me,st):pt?m(Me+(Me<0?Oi:-Oi),st):0;if(!P&&(Y=G=pt)&&C.lineStart(),pt!==G&&(!(at=p(P,tt))||WM(P,at)||WM(tt,at))&&(tt[0]+=Cr,tt[1]+=Cr,pt=s(tt[0],tt[1])),pt!==G)te=0,pt?(C.lineStart(),at=p(tt,P),C.point(at[0],at[1])):(at=p(P,tt),C.point(at[0],at[1]),C.lineEnd()),P=at;else if(o&&P&&i^pt){var et;!(Je&L)&&(et=p(tt,P,!0))&&(te=0,i?(C.lineStart(),C.point(et[0][0],et[0][1]),C.point(et[1][0],et[1][1]),C.lineEnd()):(C.point(et[1][0],et[1][1]),C.lineEnd(),C.lineStart(),C.point(et[0][0],et[0][1])))}pt&&(!P||!WM(P,tt))&&C.point(tt[0],tt[1]),P=tt,G=pt,L=Je},lineEnd:function(){G&&C.lineEnd(),P=null},clean:function(){return te|(Y&&G)<<1}}},function(C,P,L,G){k7(G,n,t,L,C,P)},i?[0,-n]:[-Oi,n-Oi])}var F1=1e9,YM=-F1;function JM(n,r,t,i){function o(m,C){return n<=m&&m<=t&&r<=C&&C<=i}function a(m,C,P,L){var G=0,Y=0;if(null==m||(G=s(m,P))!==(Y=s(C,P))||p(m,C)<0^P>0)do{L.point(0===G||3===G?n:t,G>1?i:r)}while((G=(G+P+4)%4)!==Y);else L.point(C[0],C[1])}function s(m,C){return Vi(m[0]-n)<Cr?C>0?0:3:Vi(m[0]-t)<Cr?C>0?2:1:Vi(m[1]-r)<Cr?C>0?1:0:C>0?3:2}function u(m,C){return p(m.x,C.x)}function p(m,C){var P=s(m,1),L=s(C,1);return P!==L?P-L:0===P?C[1]-m[1]:1===P?m[0]-C[0]:2===P?m[1]-C[1]:C[0]-m[0]}return function(m){var L,G,Y,te,de,Me,st,tt,at,pt,Je,C=m,P=A7(),et={point:It,lineStart:function(){et.point=mn,G&&G.push(Y=[]),pt=!0,at=!1,st=tt=NaN},lineEnd:function(){L&&(mn(te,de),Me&&at&&P.rejoin(),L.push(P.result())),et.point=It,at&&C.lineEnd()},polygonStart:function(){C=P,L=[],G=[],Je=!0},polygonEnd:function(){var dn=function(){for(var dn=0,xn=0,Fn=G.length;xn<Fn;++xn)for(var Gr,ai,er=G[xn],mr=1,jr=er.length,ir=er[0],vr=ir[0],Bi=ir[1];mr<jr;++mr)Gr=vr,ai=Bi,vr=(ir=er[mr])[0],Bi=ir[1],ai<=i?Bi>i&&(vr-Gr)*(i-ai)>(Bi-ai)*(n-Gr)&&++dn:Bi<=i&&(vr-Gr)*(i-ai)<(Bi-ai)*(n-Gr)&&--dn;return dn}(),xn=Je&&dn,Fn=(L=mm(L)).length;(xn||Fn)&&(m.polygonStart(),xn&&(m.lineStart(),a(null,null,1,m),m.lineEnd()),Fn&&D7(L,u,dn,a,m),m.polygonEnd()),C=m,L=G=Y=null}};function It(dn,xn){o(dn,xn)&&C.point(dn,xn)}function mn(dn,xn){var Fn=o(dn,xn);if(G&&Y.push([dn,xn]),pt)te=dn,de=xn,Me=Fn,pt=!1,Fn&&(C.lineStart(),C.point(dn,xn));else if(Fn&&at)C.point(dn,xn);else{var er=[st=Math.max(YM,Math.min(F1,st)),tt=Math.max(YM,Math.min(F1,tt))],mr=[dn=Math.max(YM,Math.min(F1,dn)),xn=Math.max(YM,Math.min(F1,xn))];!function(n,r,t,i,o,a){var Y,s=n[0],u=n[1],C=0,P=1,L=r[0]-s,G=r[1]-u;if(Y=t-s,L||!(Y>0)){if(Y/=L,L<0){if(Y<C)return;Y<P&&(P=Y)}else if(L>0){if(Y>P)return;Y>C&&(C=Y)}if(Y=o-s,L||!(Y<0)){if(Y/=L,L<0){if(Y>P)return;Y>C&&(C=Y)}else if(L>0){if(Y<C)return;Y<P&&(P=Y)}if(Y=i-u,G||!(Y>0)){if(Y/=G,G<0){if(Y<C)return;Y<P&&(P=Y)}else if(G>0){if(Y>P)return;Y>C&&(C=Y)}if(Y=a-u,G||!(Y<0)){if(Y/=G,G<0){if(Y>P)return;Y>C&&(C=Y)}else if(G>0){if(Y<C)return;Y<P&&(P=Y)}return C>0&&(n[0]=s+C*L,n[1]=u+C*G),P<1&&(r[0]=s+P*L,r[1]=u+P*G),!0}}}}}(er,mr,n,r,t,i)?Fn&&(C.lineStart(),C.point(dn,xn),Je=!1):(at||(C.lineStart(),C.point(er[0],er[1])),C.point(mr[0],mr[1]),Fn||C.lineEnd(),Je=!1)}st=dn,tt=xn,at=Fn}return et}}function QQ(){var o,a,s,n=0,r=0,t=960,i=500;return s={stream:function(p){return o&&a===p?o:o=JM(n,r,t,i)(a=p)},extent:function(p){return arguments.length?(n=+p[0][0],r=+p[0][1],t=+p[1][0],i=+p[1][1],o=a=null,s):[[n,r],[t,i]]}}}var u6,QM,KM,l6=zf(),V_={sphere:Jo,point:Jo,lineStart:function(){V_.point=$Q,V_.lineEnd=XQ},lineEnd:Jo,polygonStart:Jo,polygonEnd:Jo};function XQ(){V_.point=V_.lineEnd=Jo}function $Q(n,r){u6=n*=Ar,QM=cr(r*=Ar),KM=Sr(r),V_.point=eK}function eK(n,r){n*=Ar;var t=cr(r*=Ar),i=Sr(r),o=Vi(n-u6),a=Sr(o),u=i*cr(o),p=KM*t-QM*i*a,m=QM*t+KM*i*a;l6.add(Vs(Fa(u*u+p*p),m)),u6=n,QM=t,KM=i}function N7(n){return l6.reset(),nc(n,V_),+l6}var c6=[null,null],tK={type:"LineString",coordinates:c6};function B1(n,r){return c6[0]=n,c6[1]=r,N7(tK)}var Z7={Feature:function(r,t){return XM(r.geometry,t)},FeatureCollection:function(r,t){for(var i=r.features,o=-1,a=i.length;++o<a;)if(XM(i[o].geometry,t))return!0;return!1}},L7={Sphere:function(){return!0},Point:function(r,t){return F7(r.coordinates,t)},MultiPoint:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(F7(i[o],t))return!0;return!1},LineString:function(r,t){return B7(r.coordinates,t)},MultiLineString:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(B7(i[o],t))return!0;return!1},Polygon:function(r,t){return U7(r.coordinates,t)},MultiPolygon:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(U7(i[o],t))return!0;return!1},GeometryCollection:function(r,t){for(var i=r.geometries,o=-1,a=i.length;++o<a;)if(XM(i[o],t))return!0;return!1}};function XM(n,r){return!(!n||!L7.hasOwnProperty(n.type))&&L7[n.type](n,r)}function F7(n,r){return 0===B1(n,r)}function B7(n,r){var t=B1(n[0],n[1]);return B1(n[0],r)+B1(r,n[1])<=t+Cr}function U7(n,r){return!!P7(n.map(nK),H7(r))}function nK(n){return(n=n.map(H7)).pop(),n}function H7(n){return[n[0]*Ar,n[1]*Ar]}function rK(n,r){return(n&&Z7.hasOwnProperty(n.type)?Z7[n.type]:XM)(n,r)}function V7(n,r,t){var i=is(n,r-Cr,t).concat(r);return function(o){return i.map(function(a){return[o,a]})}}function q7(n,r,t){var i=is(n,r-Cr,t).concat(r);return function(o){return i.map(function(a){return[a,o]})}}function j7(){var n,r,t,i,o,a,s,u,L,G,Y,te,p=10,m=p,C=90,P=360,de=2.5;function Me(){return{type:"MultiLineString",coordinates:st()}}function st(){return is(DM(i/C)*C,t,C).map(Y).concat(is(DM(u/P)*P,s,P).map(te)).concat(is(DM(r/p)*p,n,p).filter(function(tt){return Vi(tt%C)>Cr}).map(L)).concat(is(DM(a/m)*m,o,m).filter(function(tt){return Vi(tt%P)>Cr}).map(G))}return Me.lines=function(){return st().map(function(tt){return{type:"LineString",coordinates:tt}})},Me.outline=function(){return{type:"Polygon",coordinates:[Y(i).concat(te(s).slice(1),Y(t).reverse().slice(1),te(u).reverse().slice(1))]}},Me.extent=function(tt){return arguments.length?Me.extentMajor(tt).extentMinor(tt):Me.extentMinor()},Me.extentMajor=function(tt){return arguments.length?(u=+tt[0][1],s=+tt[1][1],(i=+tt[0][0])>(t=+tt[1][0])&&(tt=i,i=t,t=tt),u>s&&(tt=u,u=s,s=tt),Me.precision(de)):[[i,u],[t,s]]},Me.extentMinor=function(tt){return arguments.length?(a=+tt[0][1],o=+tt[1][1],(r=+tt[0][0])>(n=+tt[1][0])&&(tt=r,r=n,n=tt),a>o&&(tt=a,a=o,o=tt),Me.precision(de)):[[r,a],[n,o]]},Me.step=function(tt){return arguments.length?Me.stepMajor(tt).stepMinor(tt):Me.stepMinor()},Me.stepMajor=function(tt){return arguments.length?(C=+tt[0],P=+tt[1],Me):[C,P]},Me.stepMinor=function(tt){return arguments.length?(p=+tt[0],m=+tt[1],Me):[p,m]},Me.precision=function(tt){return arguments.length?(de=+tt,L=V7(a,o,90),G=q7(r,n,de),Y=V7(u,s,90),te=q7(i,t,de),Me):de},Me.extentMajor([[-180,-90+Cr],[180,90-Cr]]).extentMinor([[-180,-80-Cr],[180,80+Cr]])}function iK(){return j7()()}function oK(n,r){var t=n[0]*Ar,i=n[1]*Ar,o=r[0]*Ar,a=r[1]*Ar,s=Sr(i),u=cr(i),p=Sr(a),m=cr(a),C=s*Sr(t),P=s*cr(t),L=p*Sr(o),G=p*cr(o),Y=2*zl(Fa(i7(a-i)+s*p*i7(o-t))),te=cr(Y),de=Y?function(Me){var st=cr(Me*=Y)/te,tt=cr(Y-Me)/te,at=tt*C+st*L,pt=tt*P+st*G,Je=tt*u+st*m;return[Vs(pt,at)*wo,Vs(Je,Fa(at*at+pt*pt))*wo]}:function(){return[t*wo,i*wo]};return de.distance=Y,de}function zm(n){return n}var z7,W7,f6,h6,d6=zf(),p6=zf(),Gf={point:Jo,lineStart:Jo,lineEnd:Jo,polygonStart:function(){Gf.lineStart=aK,Gf.lineEnd=lK},polygonEnd:function(){Gf.lineStart=Gf.lineEnd=Gf.point=Jo,d6.add(Vi(p6)),p6.reset()},result:function(){var r=d6/2;return d6.reset(),r}};function aK(){Gf.point=sK}function sK(n,r){Gf.point=G7,z7=f6=n,W7=h6=r}function G7(n,r){p6.add(h6*n-f6*r),f6=n,h6=r}function lK(){G7(z7,W7)}var J7,Q7,Xc,$c,Y7=Gf,q_=1/0,$M=q_,U1=-q_,eA=U1,tA={point:function(n,r){n<q_&&(q_=n),n>U1&&(U1=n),r<$M&&($M=r),r>eA&&(eA=r)},lineStart:Jo,lineEnd:Jo,polygonStart:Jo,polygonEnd:Jo,result:function(){var r=[[q_,$M],[U1,eA]];return U1=eA=-($M=q_=1/0),r}},m6=0,v6=0,H1=0,nA=0,rA=0,j_=0,g6=0,_6=0,V1=0,ic={point:Wm,lineStart:K7,lineEnd:X7,polygonStart:function(){ic.lineStart=fK,ic.lineEnd=hK},polygonEnd:function(){ic.point=Wm,ic.lineStart=K7,ic.lineEnd=X7},result:function(){var r=V1?[g6/V1,_6/V1]:j_?[nA/j_,rA/j_]:H1?[m6/H1,v6/H1]:[NaN,NaN];return m6=v6=H1=nA=rA=j_=g6=_6=V1=0,r}};function Wm(n,r){m6+=n,v6+=r,++H1}function K7(){ic.point=dK}function dK(n,r){ic.point=pK,Wm(Xc=n,$c=r)}function pK(n,r){var t=n-Xc,i=r-$c,o=Fa(t*t+i*i);nA+=o*(Xc+n)/2,rA+=o*($c+r)/2,j_+=o,Wm(Xc=n,$c=r)}function X7(){ic.point=Wm}function fK(){ic.point=mK}function hK(){$7(J7,Q7)}function mK(n,r){ic.point=$7,Wm(J7=Xc=n,Q7=$c=r)}function $7(n,r){var t=n-Xc,i=r-$c,o=Fa(t*t+i*i);nA+=o*(Xc+n)/2,rA+=o*($c+r)/2,j_+=o,g6+=(o=$c*n-Xc*r)*(Xc+n),_6+=o*($c+r),V1+=3*o,Wm(Xc=n,$c=r)}var e9=ic;function t9(n){this._context=n}t9.prototype={_radius:4.5,pointRadius:function(r){return this._radius=r,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(r,t){switch(this._point){case 0:this._context.moveTo(r,t),this._point=1;break;case 1:this._context.lineTo(r,t);break;default:this._context.moveTo(r+this._radius,t),this._context.arc(r,t,this._radius,0,ll)}},result:Jo};var b6,n9,r9,q1,j1,y6=zf(),iA={point:Jo,lineStart:function(){iA.point=vK},lineEnd:function(){b6&&i9(n9,r9),iA.point=Jo},polygonStart:function(){b6=!0},polygonEnd:function(){b6=null},result:function(){var r=+y6;return y6.reset(),r}};function vK(n,r){iA.point=i9,n9=q1=n,r9=j1=r}function i9(n,r){y6.add(Fa((q1-=n)*q1+(j1-=r)*j1)),q1=n,j1=r}var o9=iA;function a9(){this._string=[]}function s9(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function gK(n,r){var i,o,t=4.5;function a(s){return s&&("function"==typeof t&&o.pointRadius(+t.apply(this,arguments)),nc(s,i(o))),o.result()}return a.area=function(s){return nc(s,i(Y7)),Y7.result()},a.measure=function(s){return nc(s,i(o9)),o9.result()},a.bounds=function(s){return nc(s,i(tA)),tA.result()},a.centroid=function(s){return nc(s,i(e9)),e9.result()},a.projection=function(s){return arguments.length?(i=null==s?(n=null,zm):(n=s).stream,a):n},a.context=function(s){return arguments.length?(o=null==s?(r=null,new a9):new t9(r=s),"function"!=typeof t&&o.pointRadius(t),a):r},a.pointRadius=function(s){return arguments.length?(t="function"==typeof s?s:(o.pointRadius(+s),+s),a):t},a.projection(n).context(r)}function _K(n){return{stream:z1(n)}}function z1(n){return function(r){var t=new C6;for(var i in n)t[i]=n[i];return t.stream=r,t}}function C6(){}function S6(n,r,t){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=i&&n.clipExtent(null),nc(t,n.stream(tA)),r(tA.result()),null!=i&&n.clipExtent(i),n}function oA(n,r,t){return S6(n,function(i){var o=r[1][0]-r[0][0],a=r[1][1]-r[0][1],s=Math.min(o/(i[1][0]-i[0][0]),a/(i[1][1]-i[0][1])),u=+r[0][0]+(o-s*(i[1][0]+i[0][0]))/2,p=+r[0][1]+(a-s*(i[1][1]+i[0][1]))/2;n.scale(150*s).translate([u,p])},t)}function T6(n,r,t){return oA(n,[[0,0],r],t)}function x6(n,r,t){return S6(n,function(i){var o=+r,a=o/(i[1][0]-i[0][0]),s=(o-a*(i[1][0]+i[0][0]))/2,u=-a*i[0][1];n.scale(150*a).translate([s,u])},t)}function w6(n,r,t){return S6(n,function(i){var o=+r,a=o/(i[1][1]-i[0][1]),s=-a*i[0][0],u=(o-a*(i[1][1]+i[0][1]))/2;n.scale(150*a).translate([s,u])},t)}a9.prototype={_radius:4.5,_circle:s9(4.5),pointRadius:function(r){return(r=+r)!==this._radius&&(this._radius=r,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(r,t){switch(this._point){case 0:this._string.push("M",r,",",t),this._point=1;break;case 1:this._string.push("L",r,",",t);break;default:null==this._circle&&(this._circle=s9(this._radius)),this._string.push("M",r,",",t,this._circle)}},result:function(){if(this._string.length){var r=this._string.join("");return this._string=[],r}return null}},C6.prototype={constructor:C6,point:function(r,t){this.stream.point(r,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var yK=Sr(30*Ar);function u9(n,r){return+r?function(n,r){function t(i,o,a,s,u,p,m,C,P,L,G,Y,te,de){var Me=m-i,st=C-o,tt=Me*Me+st*st;if(tt>4*r&&te--){var at=s+L,pt=u+G,Je=p+Y,et=Fa(at*at+pt*pt+Je*Je),It=zl(Je/=et),Et=Vi(Vi(Je)-1)<Cr||Vi(a-P)<Cr?(a+P)/2:Vs(pt,at),pn=n(Et,It),Wt=pn[0],ot=pn[1],Dt=Wt-i,mn=ot-o,dn=st*Dt-Me*mn;(dn*dn/tt>r||Vi((Me*Dt+st*mn)/tt-.5)>.3||s*L+u*G+p*Y<yK)&&(t(i,o,a,s,u,p,Wt,ot,Et,at/=et,pt/=et,Je,te,de),de.point(Wt,ot),t(Wt,ot,Et,at,pt,Je,m,C,P,L,G,Y,te,de))}}return function(i){var o,a,s,u,p,m,C,P,L,G,Y,te,de={point:Me,lineStart:st,lineEnd:at,polygonStart:function(){i.polygonStart(),de.lineStart=pt},polygonEnd:function(){i.polygonEnd(),de.lineStart=st}};function Me(It,Et){It=n(It,Et),i.point(It[0],It[1])}function st(){P=NaN,de.point=tt,i.lineStart()}function tt(It,Et){var pn=qm([It,Et]),Wt=n(It,Et);t(P,L,C,G,Y,te,P=Wt[0],L=Wt[1],C=It,G=pn[0],Y=pn[1],te=pn[2],16,i),i.point(P,L)}function at(){de.point=Me,i.lineEnd()}function pt(){st(),de.point=Je,de.lineEnd=et}function Je(It,Et){tt(o=It,Et),a=P,s=L,u=G,p=Y,m=te,de.point=tt}function et(){t(P,L,C,G,Y,te,a,s,o,u,p,m,16,i),de.lineEnd=at,at()}return de}}(n,r):function(n){return z1({point:function(t,i){t=n(t,i),this.stream.point(t[0],t[1])}})}(n)}var SK=z1({point:function(r,t){this.stream.point(r*Ar,t*Ar)}});function xK(n,r,t){function i(o,a){return[r+n*o,t-n*a]}return i.invert=function(o,a){return[(o-r)/n,(t-a)/n]},i}function c9(n,r,t,i){var o=Sr(i),a=cr(i),s=o*n,u=a*n,p=o/n,m=a/n,C=(a*t-o*r)/n,P=(a*r+o*t)/n;function L(G,Y){return[s*G-u*Y+r,t-u*G-s*Y]}return L.invert=function(G,Y){return[p*G-m*Y+C,P-m*G-p*Y]},L}function fp(n){return E6(function(){return n})()}function E6(n){var r,C,te,de,Me,at,pt,Je,et,It,t=150,i=480,o=250,a=0,s=0,u=0,p=0,m=0,P=0,L=null,G=s6,Y=null,st=zm,tt=.5;function Et(Dt){return Je(Dt[0]*Ar,Dt[1]*Ar)}function pn(Dt){return(Dt=Je.invert(Dt[0],Dt[1]))&&[Dt[0]*wo,Dt[1]*wo]}function Wt(){var Dt=c9(t,0,0,P).apply(null,r(a,s)),mn=(P?c9:xK)(t,i-Dt[0],o-Dt[1],P);return C=o6(u,p,m),pt=r6(r,mn),Je=r6(C,pt),at=u9(pt,tt),ot()}function ot(){return et=It=null,Et}return Et.stream=function(Dt){return et&&It===Dt?et:et=SK(function(n){return z1({point:function(t,i){var o=n(t,i);return this.stream.point(o[0],o[1])}})}(C)(G(at(st(It=Dt)))))},Et.preclip=function(Dt){return arguments.length?(G=Dt,L=void 0,ot()):G},Et.postclip=function(Dt){return arguments.length?(st=Dt,Y=te=de=Me=null,ot()):st},Et.clipAngle=function(Dt){return arguments.length?(G=+Dt?R7(L=Dt*Ar):(L=null,s6),ot()):L*wo},Et.clipExtent=function(Dt){return arguments.length?(st=null==Dt?(Y=te=de=Me=null,zm):JM(Y=+Dt[0][0],te=+Dt[0][1],de=+Dt[1][0],Me=+Dt[1][1]),ot()):null==Y?null:[[Y,te],[de,Me]]},Et.scale=function(Dt){return arguments.length?(t=+Dt,Wt()):t},Et.translate=function(Dt){return arguments.length?(i=+Dt[0],o=+Dt[1],Wt()):[i,o]},Et.center=function(Dt){return arguments.length?(a=Dt[0]%360*Ar,s=Dt[1]%360*Ar,Wt()):[a*wo,s*wo]},Et.rotate=function(Dt){return arguments.length?(u=Dt[0]%360*Ar,p=Dt[1]%360*Ar,m=Dt.length>2?Dt[2]%360*Ar:0,Wt()):[u*wo,p*wo,m*wo]},Et.angle=function(Dt){return arguments.length?(P=Dt%360*Ar,Wt()):P*wo},Et.precision=function(Dt){return arguments.length?(at=u9(pt,tt=Dt*Dt),ot()):Fa(tt)},Et.fitExtent=function(Dt,mn){return oA(Et,Dt,mn)},Et.fitSize=function(Dt,mn){return T6(Et,Dt,mn)},Et.fitWidth=function(Dt,mn){return x6(Et,Dt,mn)},Et.fitHeight=function(Dt,mn){return w6(Et,Dt,mn)},function(){return r=n.apply(this,arguments),Et.invert=r.invert&&pn,Wt()}}function k6(n){var r=0,t=Oi/3,i=E6(n),o=i(r,t);return o.parallels=function(a){return arguments.length?i(r=a[0]*Ar,t=a[1]*Ar):[r*wo,t*wo]},o}function d9(n,r){var t=cr(n),i=(t+cr(r))/2;if(Vi(i)<Cr)return function(n){var r=Sr(n);function t(i,o){return[i*r,cr(o)/r]}return t.invert=function(i,o){return[i/r,zl(o*r)]},t}(n);var o=1+t*(2*i-t),a=Fa(o)/i;function s(u,p){var m=Fa(o-2*i*cr(p))/i;return[m*cr(u*=i),a-m*Sr(u)]}return s.invert=function(u,p){var m=a-p;return[Vs(u,Vi(m))/i*R1(m),zl((o-(u*u+m*m)*i*i)/(2*i))]},s}function aA(){return k6(d9).scale(155.424).center([0,33.6442])}function p9(){return aA().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function kK(){var n,r,i,a,u,p,t=p9(),o=aA().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=aA().rotate([157,0]).center([-3,19.9]).parallels([8,18]),m={point:function(G,Y){p=[G,Y]}};function C(L){var G=L[0],Y=L[1];return p=null,i.point(G,Y),p||(a.point(G,Y),p)||(u.point(G,Y),p)}function P(){return n=r=null,C}return C.invert=function(L){var G=t.scale(),Y=t.translate(),te=(L[0]-Y[0])/G,de=(L[1]-Y[1])/G;return(de>=.12&&de<.234&&te>=-.425&&te<-.214?o:de>=.166&&de<.234&&te>=-.214&&te<-.115?s:t).invert(L)},C.stream=function(L){return n&&r===L?n:n=function(n){var r=n.length;return{point:function(i,o){for(var a=-1;++a<r;)n[a].point(i,o)},sphere:function(){for(var i=-1;++i<r;)n[i].sphere()},lineStart:function(){for(var i=-1;++i<r;)n[i].lineStart()},lineEnd:function(){for(var i=-1;++i<r;)n[i].lineEnd()},polygonStart:function(){for(var i=-1;++i<r;)n[i].polygonStart()},polygonEnd:function(){for(var i=-1;++i<r;)n[i].polygonEnd()}}}([t.stream(r=L),o.stream(L),s.stream(L)])},C.precision=function(L){return arguments.length?(t.precision(L),o.precision(L),s.precision(L),P()):t.precision()},C.scale=function(L){return arguments.length?(t.scale(L),o.scale(.35*L),s.scale(L),C.translate(t.translate())):t.scale()},C.translate=function(L){if(!arguments.length)return t.translate();var G=t.scale(),Y=+L[0],te=+L[1];return i=t.translate(L).clipExtent([[Y-.455*G,te-.238*G],[Y+.455*G,te+.238*G]]).stream(m),a=o.translate([Y-.307*G,te+.201*G]).clipExtent([[Y-.425*G+Cr,te+.12*G+Cr],[Y-.214*G-Cr,te+.234*G-Cr]]).stream(m),u=s.translate([Y-.205*G,te+.212*G]).clipExtent([[Y-.214*G+Cr,te+.166*G+Cr],[Y-.115*G-Cr,te+.234*G-Cr]]).stream(m),P()},C.fitExtent=function(L,G){return oA(C,L,G)},C.fitSize=function(L,G){return T6(C,L,G)},C.fitWidth=function(L,G){return x6(C,L,G)},C.fitHeight=function(L,G){return w6(C,L,G)},C.scale(1070)}function f9(n){return function(r,t){var i=Sr(r),o=Sr(t),a=n(i*o);return[a*o*cr(r),a*cr(t)]}}function W1(n){return function(r,t){var i=Fa(r*r+t*t),o=n(i),a=cr(o),s=Sr(o);return[Vs(r*a,i*s),zl(i&&t*a/i)]}}var M6=f9(function(n){return Fa(2/(1+n))});function MK(){return fp(M6).scale(124.75).clipAngle(179.999)}M6.invert=W1(function(n){return 2*zl(n/2)});var A6=f9(function(n){return(n=r7(n))&&n/cr(n)});function AK(){return fp(A6).scale(79.4188).clipAngle(179.999)}function G1(n,r){return[n,OM(WN((ia+r)/2))]}function DK(){return h9(G1).scale(961/ll)}function h9(n){var u,p,m,r=fp(n),t=r.center,i=r.scale,o=r.translate,a=r.clipExtent,s=null;function C(){var P=Oi*i(),L=r(E7(r.rotate()).invert([0,0]));return a(null==s?[[L[0]-P,L[1]-P],[L[0]+P,L[1]+P]]:n===G1?[[Math.max(L[0]-P,s),u],[Math.min(L[0]+P,p),m]]:[[s,Math.max(L[1]-P,u)],[p,Math.min(L[1]+P,m)]])}return r.scale=function(P){return arguments.length?(i(P),C()):i()},r.translate=function(P){return arguments.length?(o(P),C()):o()},r.center=function(P){return arguments.length?(t(P),C()):t()},r.clipExtent=function(P){return arguments.length?(null==P?s=u=p=m=null:(s=+P[0][0],u=+P[0][1],p=+P[1][0],m=+P[1][1]),C()):null==s?null:[[s,u],[p,m]]},C()}function sA(n){return WN((ia+n)/2)}function m9(n,r){var t=Sr(n),i=n===r?cr(n):OM(t/Sr(r))/OM(sA(r)/sA(n)),o=t*zN(sA(n),i)/i;if(!i)return G1;function a(s,u){o>0?u<-ia+Cr&&(u=-ia+Cr):u>ia-Cr&&(u=ia-Cr);var p=o/zN(sA(u),i);return[p*cr(i*s),o-p*Sr(i*s)]}return a.invert=function(s,u){var p=o-u,m=R1(i)*Fa(s*s+p*p);return[Vs(s,Vi(p))/i*R1(p),2*F_(zN(o/m,1/i))-ia]},a}function OK(){return k6(m9).scale(109.5).parallels([30,30])}function Y1(n,r){return[n,r]}function PK(){return fp(Y1).scale(152.63)}function v9(n,r){var t=Sr(n),i=n===r?cr(n):(t-Sr(r))/(r-n),o=t/i+n;if(Vi(i)<Cr)return Y1;function a(s,u){var p=o-u,m=i*s;return[p*cr(m),o-p*Sr(m)]}return a.invert=function(s,u){var p=o-u;return[Vs(s,Vi(p))/i*R1(p),o-R1(i)*Fa(s*s+p*p)]},a}function IK(){return k6(v9).scale(131.154).center([0,13.9389])}function D6(n,r){var t=Sr(r),i=Sr(n)*t;return[t*cr(n)/i,cr(r)/i]}function RK(){return fp(D6).scale(144.049).clipAngle(60)}function lA(n,r,t,i){return 1===n&&1===r&&0===t&&0===i?zm:z1({point:function(a,s){this.stream.point(a*n+t,s*r+i)}})}function NK(){var u,p,m,P,L,G,n=1,r=0,t=0,i=1,o=1,a=zm,s=null,C=zm;function Y(){return P=L=null,G}return G={stream:function(de){return P&&L===de?P:P=a(C(L=de))},postclip:function(de){return arguments.length?(C=de,s=u=p=m=null,Y()):C},clipExtent:function(de){return arguments.length?(C=null==de?(s=u=p=m=null,zm):JM(s=+de[0][0],u=+de[0][1],p=+de[1][0],m=+de[1][1]),Y()):null==s?null:[[s,u],[p,m]]},scale:function(de){return arguments.length?(a=lA((n=+de)*i,n*o,r,t),Y()):n},translate:function(de){return arguments.length?(a=lA(n*i,n*o,r=+de[0],t=+de[1]),Y()):[r,t]},reflectX:function(de){return arguments.length?(a=lA(n*(i=de?-1:1),n*o,r,t),Y()):i<0},reflectY:function(de){return arguments.length?(a=lA(n*i,n*(o=de?-1:1),r,t),Y()):o<0},fitExtent:function(de,Me){return oA(G,de,Me)},fitSize:function(de,Me){return T6(G,de,Me)},fitWidth:function(de,Me){return x6(G,de,Me)},fitHeight:function(de,Me){return w6(G,de,Me)}}}function O6(n,r){var t=r*r,i=t*t;return[n*(.8707-.131979*t+i*(i*(.003971*t-.001529*i)-.013791)),r*(1.007226+t*(.015085+i*(.028874*t-.044475-.005916*i)))]}function ZK(){return fp(O6).scale(175.295)}function P6(n,r){return[Sr(r)*cr(n),cr(r)]}function LK(){return fp(P6).scale(249.5).clipAngle(90+Cr)}function I6(n,r){var t=Sr(r),i=1+Sr(n)*t;return[t*cr(n)/i,cr(r)/i]}function FK(){return fp(I6).scale(250).clipAngle(142)}function R6(n,r){return[OM(WN((ia+r)/2)),-n]}function BK(){var n=h9(R6),r=n.center,t=n.rotate;return n.center=function(i){return arguments.length?r([-i[1],i[0]]):[(i=r())[1],-i[0]]},n.rotate=function(i){return arguments.length?t([i[0],i[1],i.length>2?i[2]+90:90]):[(i=t())[0],i[1],i[2]-90]},t([0,0,90]).scale(159.155)}function UK(n,r){return n.parent===r.parent?1:2}function VK(n,r){return n+r.x}function jK(n,r){return Math.max(n,r.y)}function GK(){var n=UK,r=1,t=1,i=!1;function o(a){var s,u=0;a.eachAfter(function(L){var G=L.children;G?(L.x=function(n){return n.reduce(VK,0)/n.length}(G),L.y=function(n){return 1+n.reduce(jK,0)}(G)):(L.x=s?u+=n(L,s):0,L.y=0,s=L)});var p=function(n){for(var r;r=n.children;)n=r[0];return n}(a),m=function(n){for(var r;r=n.children;)n=r[r.length-1];return n}(a),C=p.x-n(p,m)/2,P=m.x+n(m,p)/2;return a.eachAfter(i?function(L){L.x=(L.x-a.x)*r,L.y=(a.y-L.y)*t}:function(L){L.x=(L.x-C)/(P-C)*r,L.y=(1-(a.y?L.y/a.y:1))*t})}return o.separation=function(a){return arguments.length?(n=a,o):n},o.size=function(a){return arguments.length?(i=!1,r=+a[0],t=+a[1],o):i?null:[r,t]},o.nodeSize=function(a){return arguments.length?(i=!0,r=+a[0],t=+a[1],o):i?[r,t]:null},o}function YK(n){var r=0,t=n.children,i=t&&t.length;if(i)for(;--i>=0;)r+=t[i].value;else r=1;n.value=r}function N6(n,r){var o,s,u,p,m,t=new z_(n),i=+n.value&&(t.value=n.value),a=[t];for(null==r&&(r=lX);o=a.pop();)if(i&&(o.value=+o.data.value),(u=r(o.data))&&(m=u.length))for(o.children=new Array(m),p=m-1;p>=0;--p)a.push(s=o.children[p]=new z_(u[p])),s.parent=o,s.depth=o.depth+1;return t.eachBefore(g9)}function lX(n){return n.children}function uX(n){n.data=n.data.data}function g9(n){var r=0;do{n.height=r}while((n=n.parent)&&n.height<++r)}function z_(n){this.data=n,this.depth=this.height=0,this.parent=null}A6.invert=W1(function(n){return n}),G1.invert=function(n,r){return[n,2*F_(n7(r))-ia]},Y1.invert=Y1,D6.invert=W1(F_),O6.invert=function(n,r){var o,t=r,i=25;do{var a=t*t,s=a*a;t-=o=(t*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-r)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(Vi(o)>Cr&&--i>0);return[n/(.8707+(a=t*t)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),t]},P6.invert=W1(zl),I6.invert=W1(function(n){return 2*F_(n)}),R6.invert=function(n,r){return[-r,2*F_(n7(n))-ia]},z_.prototype=N6.prototype={constructor:z_,count:function(){return this.eachAfter(YK)},each:function(n){var t,o,a,s,r=this,i=[r];do{for(t=i.reverse(),i=[];r=t.pop();)if(n(r),o=r.children)for(a=0,s=o.length;a<s;++a)i.push(o[a])}while(i.length);return this},eachAfter:function(n){for(var o,a,s,r=this,t=[r],i=[];r=t.pop();)if(i.push(r),o=r.children)for(a=0,s=o.length;a<s;++a)t.push(o[a]);for(;r=i.pop();)n(r);return this},eachBefore:function(n){for(var i,o,r=this,t=[r];r=t.pop();)if(n(r),i=r.children)for(o=i.length-1;o>=0;--o)t.push(i[o]);return this},sum:function(n){return this.eachAfter(function(r){for(var t=+n(r.data)||0,i=r.children,o=i&&i.length;--o>=0;)t+=i[o].value;r.value=t})},sort:function(n){return this.eachBefore(function(r){r.children&&r.children.sort(n)})},path:function(n){for(var r=this,t=function(n,r){if(n===r)return n;var t=n.ancestors(),i=r.ancestors(),o=null;for(n=t.pop(),r=i.pop();n===r;)o=n,n=t.pop(),r=i.pop();return o}(r,n),i=[r];r!==t;)i.push(r=r.parent);for(var o=i.length;n!==t;)i.splice(o,0,n),n=n.parent;return i},ancestors:function(){for(var n=this,r=[n];n=n.parent;)r.push(n);return r},descendants:function(){var n=[];return this.each(function(r){n.push(r)}),n},leaves:function(){var n=[];return this.eachBefore(function(r){r.children||n.push(r)}),n},links:function(){var n=this,r=[];return n.each(function(t){t!==n&&r.push({source:t.parent,target:t})}),r},copy:function(){return N6(this).eachBefore(uX)}};var cX=Array.prototype.slice;function _9(n){for(var o,a,r=0,t=(n=function(n){for(var t,i,r=n.length;r;)i=Math.random()*r--|0,t=n[r],n[r]=n[i],n[i]=t;return n}(cX.call(n))).length,i=[];r<t;)o=n[r],a&&y9(a,o)?++r:(a=fX(i=pX(i,o)),r=0);return a}function pX(n,r){var t,i;if(Z6(r,n))return[r];for(t=0;t<n.length;++t)if(uA(r,n[t])&&Z6(J1(n[t],r),n))return[n[t],r];for(t=0;t<n.length-1;++t)for(i=t+1;i<n.length;++i)if(uA(J1(n[t],n[i]),r)&&uA(J1(n[t],r),n[i])&&uA(J1(n[i],r),n[t])&&Z6(b9(n[t],n[i],r),n))return[n[t],n[i],r];throw new Error}function uA(n,r){var t=n.r-r.r,i=r.x-n.x,o=r.y-n.y;return t<0||t*t<i*i+o*o}function y9(n,r){var t=n.r-r.r+1e-6,i=r.x-n.x,o=r.y-n.y;return t>0&&t*t>i*i+o*o}function Z6(n,r){for(var t=0;t<r.length;++t)if(!y9(n,r[t]))return!1;return!0}function fX(n){switch(n.length){case 1:return function(n){return{x:n.x,y:n.y,r:n.r}}(n[0]);case 2:return J1(n[0],n[1]);case 3:return b9(n[0],n[1],n[2])}}function J1(n,r){var t=n.x,i=n.y,o=n.r,a=r.x,s=r.y,u=r.r,p=a-t,m=s-i,C=u-o,P=Math.sqrt(p*p+m*m);return{x:(t+a+p/P*C)/2,y:(i+s+m/P*C)/2,r:(P+o+u)/2}}function b9(n,r,t){var i=n.x,o=n.y,a=n.r,s=r.x,u=r.y,p=r.r,m=t.x,C=t.y,P=t.r,L=i-s,G=i-m,Y=o-u,te=o-C,de=p-a,Me=P-a,st=i*i+o*o-a*a,tt=st-s*s-u*u+p*p,at=st-m*m-C*C+P*P,pt=G*Y-L*te,Je=(Y*at-te*tt)/(2*pt)-i,et=(te*de-Y*Me)/pt,It=(G*tt-L*at)/(2*pt)-o,Et=(L*Me-G*de)/pt,pn=et*et+Et*Et-1,Wt=2*(a+Je*et+It*Et),ot=Je*Je+It*It-a*a,Dt=-(pn?(Wt+Math.sqrt(Wt*Wt-4*pn*ot))/(2*pn):ot/Wt);return{x:i+Je+et*Dt,y:o+It+Et*Dt,r:Dt}}function C9(n,r,t){var o,a,u,p,i=n.x-r.x,s=n.y-r.y,m=i*i+s*s;m?(a=r.r+t.r,p=n.r+t.r,(a*=a)>(p*=p)?(o=(m+p-a)/(2*m),u=Math.sqrt(Math.max(0,p/m-o*o)),t.x=n.x-o*i-u*s,t.y=n.y-o*s+u*i):(o=(m+a-p)/(2*m),u=Math.sqrt(Math.max(0,a/m-o*o)),t.x=r.x+o*i-u*s,t.y=r.y+o*s+u*i)):(t.x=r.x+t.r,t.y=r.y)}function S9(n,r){var t=n.r+r.r-1e-6,i=r.x-n.x,o=r.y-n.y;return t>0&&t*t>i*i+o*o}function T9(n){var r=n._,t=n.next._,i=r.r+t.r,o=(r.x*t.r+t.x*r.r)/i,a=(r.y*t.r+t.y*r.r)/i;return o*o+a*a}function cA(n){this._=n,this.next=null,this.previous=null}function x9(n){if(!(o=n.length))return 0;var r,t,i,o,a,s,u,p,m,C,P;if((r=n[0]).x=0,r.y=0,!(o>1))return r.r;if(r.x=-(t=n[1]).r,t.x=r.r,t.y=0,!(o>2))return r.r+t.r;C9(t,r,i=n[2]),r=new cA(r),t=new cA(t),i=new cA(i),r.next=i.previous=t,t.next=r.previous=i,i.next=t.previous=r;e:for(u=3;u<o;++u){C9(r._,t._,i=n[u]),i=new cA(i),p=t.next,m=r.previous,C=t._.r,P=r._.r;do{if(C<=P){if(S9(p._,i._)){r.next=t=p,t.previous=r,--u;continue e}C+=p._.r,p=p.next}else{if(S9(m._,i._)){(r=m).next=t,t.previous=r,--u;continue e}P+=m._.r,m=m.previous}}while(p!==m.next);for(i.previous=r,i.next=t,r.next=t.previous=t=i,a=T9(r);(i=i.next)!==t;)(s=T9(i))<a&&(r=i,a=s);t=r.next}for(r=[t._],i=t;(i=i.next)!==t;)r.push(i._);for(i=_9(r),u=0;u<o;++u)(r=n[u]).x-=i.x,r.y-=i.y;return i.r}function mX(n){return x9(n),n}function vX(n){return null==n?null:dA(n)}function dA(n){if("function"!=typeof n)throw new Error;return n}function Gm(){return 0}function W_(n){return function(){return n}}function gX(n){return Math.sqrt(n.value)}function _X(){var n=null,r=1,t=1,i=Gm;function o(a){return a.x=r/2,a.y=t/2,n?a.eachBefore(w9(n)).eachAfter(L6(i,.5)).eachBefore(E9(1)):a.eachBefore(w9(gX)).eachAfter(L6(Gm,1)).eachAfter(L6(i,a.r/Math.min(r,t))).eachBefore(E9(Math.min(r,t)/(2*a.r))),a}return o.radius=function(a){return arguments.length?(n=vX(a),o):n},o.size=function(a){return arguments.length?(r=+a[0],t=+a[1],o):[r,t]},o.padding=function(a){return arguments.length?(i="function"==typeof a?a:W_(+a),o):i},o}function w9(n){return function(r){r.children||(r.r=Math.max(0,+n(r)||0))}}function L6(n,r){return function(t){if(i=t.children){var i,o,u,a=i.length,s=n(t)*r||0;if(s)for(o=0;o<a;++o)i[o].r+=s;if(u=x9(i),s)for(o=0;o<a;++o)i[o].r-=s;t.r=u+s}}}function E9(n){return function(r){var t=r.parent;r.r*=n,t&&(r.x=t.x+n*r.x,r.y=t.y+n*r.y)}}function k9(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function Q1(n,r,t,i,o){for(var s,a=n.children,u=-1,p=a.length,m=n.value&&(i-r)/n.value;++u<p;)(s=a[u]).y0=t,s.y1=o,s.x0=r,s.x1=r+=s.value*m}function yX(){var n=1,r=1,t=0,i=!1;function o(s){var u=s.height+1;return s.x0=s.y0=t,s.x1=n,s.y1=r/u,s.eachBefore(function(s,u){return function(p){p.children&&Q1(p,p.x0,s*(p.depth+1)/u,p.x1,s*(p.depth+2)/u);var m=p.x0,C=p.y0,P=p.x1-t,L=p.y1-t;P<m&&(m=P=(m+P)/2),L<C&&(C=L=(C+L)/2),p.x0=m,p.y0=C,p.x1=P,p.y1=L}}(r,u)),i&&s.eachBefore(k9),s}return o.round=function(s){return arguments.length?(i=!!s,o):i},o.size=function(s){return arguments.length?(n=+s[0],r=+s[1],o):[n,r]},o.padding=function(s){return arguments.length?(t=+s,o):t},o}var bX={depth:-1},A9={};function CX(n){return n.id}function SX(n){return n.parentId}function TX(){var n=CX,r=SX;function t(i){var o,a,u,p,m,P,L,s=i.length,C=new Array(s),G={};for(a=0;a<s;++a)m=C[a]=new z_(o=i[a]),null!=(P=n(o,a,i))&&(P+="")&&(G[L="$"+(m.id=P)]=L in G?A9:m);for(a=0;a<s;++a)if(m=C[a],null!=(P=r(i[a],a,i))&&(P+="")){if(!(p=G["$"+P]))throw new Error("missing: "+P);if(p===A9)throw new Error("ambiguous: "+P);p.children?p.children.push(m):p.children=[m],m.parent=p}else{if(u)throw new Error("multiple roots");u=m}if(!u)throw new Error("no root");if(u.parent=bX,u.eachBefore(function(Y){Y.depth=Y.parent.depth+1,--s}).eachBefore(g9),u.parent=null,s>0)throw new Error("cycle");return u}return t.id=function(i){return arguments.length?(n=dA(i),t):n},t.parentId=function(i){return arguments.length?(r=dA(i),t):r},t}function xX(n,r){return n.parent===r.parent?1:2}function F6(n){var r=n.children;return r?r[0]:n.t}function B6(n){var r=n.children;return r?r[r.length-1]:n.t}function wX(n,r,t){var i=t/(r.i-n.i);r.c-=i,r.s+=t,n.c+=i,r.z+=t,r.m+=t}function kX(n,r,t){return n.a.parent===r.parent?n.a:t}function pA(n,r){this._=n,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=r}function AX(){var n=xX,r=1,t=1,i=null;function o(m){var C=function(n){for(var t,o,a,s,u,r=new pA(n,0),i=[r];t=i.pop();)if(a=t._.children)for(t.children=new Array(u=a.length),s=u-1;s>=0;--s)i.push(o=t.children[s]=new pA(a[s],s)),o.parent=t;return(r.parent=new pA(null,0)).children=[r],r}(m);if(C.eachAfter(a),C.parent.m=-C.z,C.eachBefore(s),i)m.eachBefore(p);else{var P=m,L=m,G=m;m.eachBefore(function(st){st.x<P.x&&(P=st),st.x>L.x&&(L=st),st.depth>G.depth&&(G=st)});var Y=P===L?1:n(P,L)/2,te=Y-P.x,de=r/(L.x+Y+te),Me=t/(G.depth||1);m.eachBefore(function(st){st.x=(st.x+te)*de,st.y=st.depth*Me})}return m}function a(m){var C=m.children,P=m.parent.children,L=m.i?P[m.i-1]:null;if(C){!function(n){for(var a,r=0,t=0,i=n.children,o=i.length;--o>=0;)(a=i[o]).z+=r,a.m+=r,r+=a.s+(t+=a.c)}(m);var G=(C[0].z+C[C.length-1].z)/2;L?(m.z=L.z+n(m._,L._),m.m=m.z-G):m.z=G}else L&&(m.z=L.z+n(m._,L._));m.parent.A=function(m,C,P){if(C){for(var at,L=m,G=m,Y=C,te=L.parent.children[0],de=L.m,Me=G.m,st=Y.m,tt=te.m;Y=B6(Y),L=F6(L),Y&&L;)te=F6(te),(G=B6(G)).a=m,(at=Y.z+st-L.z-de+n(Y._,L._))>0&&(wX(kX(Y,m,P),m,at),de+=at,Me+=at),st+=Y.m,de+=L.m,tt+=te.m,Me+=G.m;Y&&!B6(G)&&(G.t=Y,G.m+=st-Me),L&&!F6(te)&&(te.t=L,te.m+=de-tt,P=m)}return P}(m,L,m.parent.A||P[0])}function s(m){m._.x=m.z+m.parent.m,m.m+=m.parent.m}function p(m){m.x*=r,m.y=m.depth*t}return o.separation=function(m){return arguments.length?(n=m,o):n},o.size=function(m){return arguments.length?(i=!1,r=+m[0],t=+m[1],o):i?null:[r,t]},o.nodeSize=function(m){return arguments.length?(i=!0,r=+m[0],t=+m[1],o):i?[r,t]:null},o}function fA(n,r,t,i,o){for(var s,a=n.children,u=-1,p=a.length,m=n.value&&(o-t)/n.value;++u<p;)(s=a[u]).x0=r,s.x1=i,s.y0=t,s.y1=t+=s.value*m}pA.prototype=Object.create(z_.prototype);var D9=(1+Math.sqrt(5))/2;function O9(n,r,t,i,o,a){for(var p,m,G,Y,de,Me,st,tt,at,pt,Je,s=[],u=r.children,C=0,P=0,L=u.length,te=r.value;C<L;){G=o-t,Y=a-i;do{de=u[P++].value}while(!de&&P<L);for(Me=st=de,Je=de*de*(pt=Math.max(Y/G,G/Y)/(te*n)),at=Math.max(st/Je,Je/Me);P<L;++P){if(de+=m=u[P].value,m<Me&&(Me=m),m>st&&(st=m),Je=de*de*pt,(tt=Math.max(st/Je,Je/Me))>at){de-=m;break}at=tt}s.push(p={value:de,dice:G<Y,children:u.slice(C,P)}),p.dice?Q1(p,t,i,o,te?i+=Y*de/te:a):fA(p,t,i,te?t+=G*de/te:o,a),te-=de,C=P}return s}var P9=function n(r){function t(i,o,a,s,u){O9(r,i,o,a,s,u)}return t.ratio=function(i){return n((i=+i)>1?i:1)},t}(D9);function DX(){var n=P9,r=!1,t=1,i=1,o=[0],a=Gm,s=Gm,u=Gm,p=Gm,m=Gm;function C(L){return L.x0=L.y0=0,L.x1=t,L.y1=i,L.eachBefore(P),o=[0],r&&L.eachBefore(k9),L}function P(L){var G=o[L.depth],Y=L.x0+G,te=L.y0+G,de=L.x1-G,Me=L.y1-G;de<Y&&(Y=de=(Y+de)/2),Me<te&&(te=Me=(te+Me)/2),L.x0=Y,L.y0=te,L.x1=de,L.y1=Me,L.children&&(G=o[L.depth+1]=a(L)/2,Y+=m(L)-G,te+=s(L)-G,(de-=u(L)-G)<Y&&(Y=de=(Y+de)/2),(Me-=p(L)-G)<te&&(te=Me=(te+Me)/2),n(L,Y,te,de,Me))}return C.round=function(L){return arguments.length?(r=!!L,C):r},C.size=function(L){return arguments.length?(t=+L[0],i=+L[1],C):[t,i]},C.tile=function(L){return arguments.length?(n=dA(L),C):n},C.padding=function(L){return arguments.length?C.paddingInner(L).paddingOuter(L):C.paddingInner()},C.paddingInner=function(L){return arguments.length?(a="function"==typeof L?L:W_(+L),C):a},C.paddingOuter=function(L){return arguments.length?C.paddingTop(L).paddingRight(L).paddingBottom(L).paddingLeft(L):C.paddingTop()},C.paddingTop=function(L){return arguments.length?(s="function"==typeof L?L:W_(+L),C):s},C.paddingRight=function(L){return arguments.length?(u="function"==typeof L?L:W_(+L),C):u},C.paddingBottom=function(L){return arguments.length?(p="function"==typeof L?L:W_(+L),C):p},C.paddingLeft=function(L){return arguments.length?(m="function"==typeof L?L:W_(+L),C):m},C}function OX(n,r,t,i,o){var s,p,a=n.children,u=a.length,m=new Array(u+1);for(m[0]=p=s=0;s<u;++s)m[s+1]=p+=a[s].value;!function C(P,L,G,Y,te,de,Me){if(P>=L-1){var st=a[P];return st.x0=Y,st.y0=te,st.x1=de,void(st.y1=Me)}for(var tt=m[P],at=G/2+tt,pt=P+1,Je=L-1;pt<Je;){var et=pt+Je>>>1;m[et]<at?pt=et+1:Je=et}at-m[pt-1]<m[pt]-at&&P+1<pt&&--pt;var It=m[pt]-tt,Et=G-It;if(de-Y>Me-te){var pn=(Y*Et+de*It)/G;C(P,pt,It,Y,te,pn,Me),C(pt,L,Et,pn,te,de,Me)}else{var Wt=(te*Et+Me*It)/G;C(P,pt,It,Y,te,de,Wt),C(pt,L,Et,Y,Wt,de,Me)}}(0,u,n.value,r,t,i,o)}function PX(n,r,t,i,o){(1&n.depth?fA:Q1)(n,r,t,i,o)}var IX=function n(r){function t(i,o,a,s,u){if((p=i._squarify)&&p.ratio===r)for(var p,m,C,P,G,L=-1,Y=p.length,te=i.value;++L<Y;){for(C=(m=p[L]).children,P=m.value=0,G=C.length;P<G;++P)m.value+=C[P].value;m.dice?Q1(m,o,a,s,a+=(u-a)*m.value/te):fA(m,o,a,o+=(s-o)*m.value/te,u),te-=m.value}else i._squarify=p=O9(r,i,o,a,s,u),p.ratio=r}return t.ratio=function(i){return n((i=+i)>1?i:1)},t}(D9);function RX(n){for(var i,r=-1,t=n.length,o=n[t-1],a=0;++r<t;)a+=(i=o)[1]*(o=n[r])[0]-i[0]*o[1];return a/2}function NX(n){for(var a,u,r=-1,t=n.length,i=0,o=0,s=n[t-1],p=0;++r<t;)p+=u=(a=s)[0]*(s=n[r])[1]-s[0]*a[1],i+=(a[0]+s[0])*u,o+=(a[1]+s[1])*u;return[i/(p*=3),o/p]}function ZX(n,r,t){return(r[0]-n[0])*(t[1]-n[1])-(r[1]-n[1])*(t[0]-n[0])}function LX(n,r){return n[0]-r[0]||n[1]-r[1]}function I9(n){for(var r=n.length,t=[0,1],i=2,o=2;o<r;++o){for(;i>1&&ZX(n[t[i-2]],n[t[i-1]],n[o])<=0;)--i;t[i++]=o}return t.slice(0,i)}function FX(n){if((t=n.length)<3)return null;var r,t,i=new Array(t),o=new Array(t);for(r=0;r<t;++r)i[r]=[+n[r][0],+n[r][1],r];for(i.sort(LX),r=0;r<t;++r)o[r]=[i[r][0],-i[r][1]];var a=I9(i),s=I9(o),u=s[0]===a[0],p=s[s.length-1]===a[a.length-1],m=[];for(r=a.length-1;r>=0;--r)m.push(n[i[a[r]][2]]);for(r=+u;r<s.length-p;++r)m.push(n[i[s[r]][2]]);return m}function BX(n,r){for(var p,m,t=n.length,i=n[t-1],o=r[0],a=r[1],s=i[0],u=i[1],C=!1,P=0;P<t;++P)p=(i=n[P])[0],(m=i[1])>a!=u>a&&o<(s-p)*(a-m)/(u-m)+p&&(C=!C),s=p,u=m;return C}function UX(n){for(var o,a,r=-1,t=n.length,i=n[t-1],s=i[0],u=i[1],p=0;++r<t;)o=s,a=u,o-=s=(i=n[r])[0],a-=u=i[1],p+=Math.sqrt(o*o+a*a);return p}function G_(){return Math.random()}var HX=function n(r){function t(i,o){return i=null==i?0:+i,o=null==o?1:+o,1===arguments.length?(o=i,i=0):o-=i,function(){return r()*o+i}}return t.source=n,t}(G_),R9=function n(r){function t(i,o){var a,s;return i=null==i?0:+i,o=null==o?1:+o,function(){var u;if(null!=a)u=a,a=null;else do{a=2*r()-1,u=2*r()-1,s=a*a+u*u}while(!s||s>1);return i+o*u*Math.sqrt(-2*Math.log(s)/s)}}return t.source=n,t}(G_),VX=function n(r){function t(){var i=R9.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return t.source=n,t}(G_),N9=function n(r){function t(i){return function(){for(var o=0,a=0;a<i;++a)o+=r();return o}}return t.source=n,t}(G_),qX=function n(r){function t(i){var o=N9.source(r)(i);return function(){return o()/i}}return t.source=n,t}(G_),jX=function n(r){function t(i){return function(){return-Math.log(1-r())/i}}return t.source=n,t}(G_),Z9=Array.prototype,U6=Z9.map,Yf=Z9.slice,H6={name:"implicit"};function V6(n){var r=Hf(),t=[],i=H6;function o(a){var s=a+"",u=r.get(s);if(!u){if(i!==H6)return i;r.set(s,u=t.push(a))}return n[(u-1)%n.length]}return n=null==n?[]:Yf.call(n),o.domain=function(a){if(!arguments.length)return t.slice();t=[],r=Hf();for(var p,m,s=-1,u=a.length;++s<u;)r.has(m=(p=a[s])+"")||r.set(m,t.push(p));return o},o.range=function(a){return arguments.length?(n=Yf.call(a),o):n.slice()},o.unknown=function(a){return arguments.length?(i=a,o):i},o.copy=function(){return V6().domain(t).range(n).unknown(i)},o}function q6(){var o,a,n=V6().unknown(void 0),r=n.domain,t=n.range,i=[0,1],s=!1,u=0,p=0,m=.5;function C(){var P=r().length,L=i[1]<i[0],G=i[L-0],Y=i[1-L];o=(Y-G)/Math.max(1,P-u+2*p),s&&(o=Math.floor(o)),G+=(Y-G-o*(P-u))*m,a=o*(1-u),s&&(G=Math.round(G),a=Math.round(a));var te=is(P).map(function(de){return G+o*de});return t(L?te.reverse():te)}return delete n.unknown,n.domain=function(P){return arguments.length?(r(P),C()):r()},n.range=function(P){return arguments.length?(i=[+P[0],+P[1]],C()):i.slice()},n.rangeRound=function(P){return i=[+P[0],+P[1]],s=!0,C()},n.bandwidth=function(){return a},n.step=function(){return o},n.round=function(P){return arguments.length?(s=!!P,C()):s},n.padding=function(P){return arguments.length?(u=p=Math.max(0,Math.min(1,P)),C()):u},n.paddingInner=function(P){return arguments.length?(u=Math.max(0,Math.min(1,P)),C()):u},n.paddingOuter=function(P){return arguments.length?(p=Math.max(0,Math.min(1,P)),C()):p},n.align=function(P){return arguments.length?(m=Math.max(0,Math.min(1,P)),C()):m},n.copy=function(){return q6().domain(r()).range(i).round(s).paddingInner(u).paddingOuter(p).align(m)},C()}function L9(n){var r=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return L9(r())},n}function zX(){return L9(q6().paddingInner(1))}function j6(n){return function(){return n}}function F9(n){return+n}var B9=[0,1];function z6(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:j6(r)}function YX(n,r,t,i){var o=n[0],a=n[1],s=r[0],u=r[1];return a<o?(o=t(a,o),s=i(u,s)):(o=t(o,a),s=i(s,u)),function(p){return s(o(p))}}function JX(n,r,t,i){var o=Math.min(n.length,r.length)-1,a=new Array(o),s=new Array(o),u=-1;for(n[o]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++u<o;)a[u]=t(n[u],n[u+1]),s[u]=i(r[u],r[u+1]);return function(p){var m=Of(n,p,1,o)-1;return s[m](a[m](p))}}function hA(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp())}function mA(n,r){var s,u,p,t=B9,i=B9,o=sl,a=!1;function m(){return s=Math.min(t.length,i.length)>2?JX:YX,u=p=null,C}function C(P){return(u||(u=s(t,i,a?function(n){return function(r,t){var i=n(r=+r,t=+t);return function(o){return o<=r?0:o>=t?1:i(o)}}}(n):n,o)))(+P)}return C.invert=function(P){return(p||(p=s(i,t,z6,a?function(n){return function(r,t){var i=n(r=+r,t=+t);return function(o){return o<=0?r:o>=1?t:i(o)}}}(r):r)))(+P)},C.domain=function(P){return arguments.length?(t=U6.call(P,F9),m()):t.slice()},C.range=function(P){return arguments.length?(i=Yf.call(P),m()):i.slice()},C.rangeRound=function(P){return i=Yf.call(P),o=lp,m()},C.clamp=function(P){return arguments.length?(a=!!P,m()):a},C.interpolate=function(P){return arguments.length?(o=P,m()):o},m()}function K1(n){var r=n.domain;return n.ticks=function(t){var i=r();return pm(i[0],i[i.length-1],null==t?10:t)},n.tickFormat=function(t,i){return function(n,r,t){var s,i=n[0],o=n[n.length-1],a=ip(i,o,null==r?10:r);switch((t=I1(null==t?",f":t)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(o));return null==t.precision&&!isNaN(s=X8(a,u))&&(t.precision=s),jN(t,u);case"":case"e":case"g":case"p":case"r":null==t.precision&&!isNaN(s=$8(a,Math.max(Math.abs(i),Math.abs(o))))&&(t.precision=s-("e"===t.type));break;case"f":case"%":null==t.precision&&!isNaN(s=K8(a))&&(t.precision=s-2*("%"===t.type))}return EM(t)}(r(),t,i)},n.nice=function(t){null==t&&(t=10);var p,i=r(),o=0,a=i.length-1,s=i[o],u=i[a];return u<s&&(p=s,s=u,u=p,p=o,o=a,a=p),(p=fm(s,u,t))>0?p=fm(s=Math.floor(s/p)*p,u=Math.ceil(u/p)*p,t):p<0&&(p=fm(s=Math.ceil(s*p)/p,u=Math.floor(u*p)/p,t)),p>0?(i[o]=Math.floor(s/p)*p,i[a]=Math.ceil(u/p)*p,r(i)):p<0&&(i[o]=Math.ceil(s*p)/p,i[a]=Math.floor(u*p)/p,r(i)),n},n}function U9(){var n=mA(z6,Ni);return n.copy=function(){return hA(n,U9())},K1(n)}function H9(){var n=[0,1];function r(t){return+t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(n=U6.call(t,F9),r):n.slice()},r.copy=function(){return H9().domain(n)},K1(r)}function V9(n,r){var s,t=0,i=(n=n.slice()).length-1,o=n[t],a=n[i];return a<o&&(s=t,t=i,i=s,s=o,o=a,a=s),n[t]=r.floor(o),n[i]=r.ceil(a),n}function KX(n,r){return(r=Math.log(r/n))?function(t){return Math.log(t/n)/r}:j6(r)}function XX(n,r){return n<0?function(t){return-Math.pow(-r,t)*Math.pow(-n,1-t)}:function(t){return Math.pow(r,t)*Math.pow(n,1-t)}}function $X(n){return isFinite(n)?+("1e"+n):n<0?0:n}function q9(n){return 10===n?$X:n===Math.E?Math.exp:function(r){return Math.pow(n,r)}}function j9(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),function(r){return Math.log(r)/n})}function z9(n){return function(r){return-n(-r)}}function W9(){var n=mA(KX,XX).domain([1,10]),r=n.domain,t=10,i=j9(10),o=q9(10);function a(){return i=j9(t),o=q9(t),r()[0]<0&&(i=z9(i),o=z9(o)),n}return n.base=function(s){return arguments.length?(t=+s,a()):t},n.domain=function(s){return arguments.length?(r(s),a()):r()},n.ticks=function(s){var C,u=r(),p=u[0],m=u[u.length-1];(C=m<p)&&(P=p,p=m,m=P);var G,Y,te,P=i(p),L=i(m),de=null==s?10:+s,Me=[];if(!(t%1)&&L-P<de){if(P=Math.round(P)-1,L=Math.round(L)+1,p>0){for(;P<L;++P)for(Y=1,G=o(P);Y<t;++Y)if(!((te=G*Y)<p)){if(te>m)break;Me.push(te)}}else for(;P<L;++P)for(Y=t-1,G=o(P);Y>=1;--Y)if(!((te=G*Y)<p)){if(te>m)break;Me.push(te)}}else Me=pm(P,L,Math.min(L-P,de)).map(o);return C?Me.reverse():Me},n.tickFormat=function(s,u){if(null==u&&(u=10===t?".0e":","),"function"!=typeof u&&(u=EM(u)),s===1/0)return u;null==s&&(s=10);var p=Math.max(1,t*s/n.ticks().length);return function(m){var C=m/o(Math.round(i(m)));return C*t<t-.5&&(C*=t),C<=p?u(m):""}},n.nice=function(){return r(V9(r(),{floor:function(u){return o(Math.floor(i(u)))},ceil:function(u){return o(Math.ceil(i(u)))}}))},n.copy=function(){return hA(n,W9().base(t))},n}function Y_(n,r){return n<0?-Math.pow(-n,r):Math.pow(n,r)}function W6(){var n=1,r=mA(function(a,s){return(s=Y_(s,n)-(a=Y_(a,n)))?function(u){return(Y_(u,n)-a)/s}:j6(s)},function(a,s){return s=Y_(s,n)-(a=Y_(a,n)),function(u){return Y_(a+s*u,1/n)}}),t=r.domain;return r.exponent=function(a){return arguments.length?(n=+a,t(t())):n},r.copy=function(){return hA(r,W6().exponent(n))},K1(r)}function e$(){return W6().exponent(.5)}function G9(){var n=[],r=[],t=[];function i(){var a=0,s=Math.max(1,r.length);for(t=new Array(s-1);++a<s;)t[a-1]=Pf(n,a/s);return o}function o(a){if(!isNaN(a=+a))return r[Of(t,a)]}return o.invertExtent=function(a){var s=r.indexOf(a);return s<0?[NaN,NaN]:[s>0?t[s-1]:n[0],s<t.length?t[s]:n[n.length-1]]},o.domain=function(a){if(!arguments.length)return n.slice();n=[];for(var p,s=0,u=a.length;s<u;++s)null!=(p=a[s])&&!isNaN(p=+p)&&n.push(p);return n.sort(Af),i()},o.range=function(a){return arguments.length?(r=Yf.call(a),i()):r.slice()},o.quantiles=function(){return t.slice()},o.copy=function(){return G9().domain(n).range(r)},o}function Y9(){var n=0,r=1,t=1,i=[.5],o=[0,1];function a(u){if(u<=u)return o[Of(i,u,0,t)]}function s(){var u=-1;for(i=new Array(t);++u<t;)i[u]=((u+1)*r-(u-t)*n)/(t+1);return a}return a.domain=function(u){return arguments.length?(n=+u[0],r=+u[1],s()):[n,r]},a.range=function(u){return arguments.length?(t=(o=Yf.call(u)).length-1,s()):o.slice()},a.invertExtent=function(u){var p=o.indexOf(u);return p<0?[NaN,NaN]:p<1?[n,i[0]]:p>=t?[i[t-1],r]:[i[p-1],i[p]]},a.copy=function(){return Y9().domain([n,r]).range(o)},K1(a)}function J9(){var n=[.5],r=[0,1],t=1;function i(o){if(o<=o)return r[Of(n,o,0,t)]}return i.domain=function(o){return arguments.length?(n=Yf.call(o),t=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(o){return arguments.length?(r=Yf.call(o),t=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(o){var a=r.indexOf(o);return[n[a-1],n[a]]},i.copy=function(){return J9().domain(n).range(r)},i}var G6=new Date,Y6=new Date;function Ba(n,r,t,i){function o(a){return n(a=new Date(+a)),a}return o.floor=o,o.ceil=function(a){return n(a=new Date(a-1)),r(a,1),n(a),a},o.round=function(a){var s=o(a),u=o.ceil(a);return a-s<u-a?s:u},o.offset=function(a,s){return r(a=new Date(+a),null==s?1:Math.floor(s)),a},o.range=function(a,s,u){var m,p=[];if(a=o.ceil(a),u=null==u?1:Math.floor(u),!(a<s&&u>0))return p;do{p.push(m=new Date(+a)),r(a,u),n(a)}while(m<a&&a<s);return p},o.filter=function(a){return Ba(function(s){if(s>=s)for(;n(s),!a(s);)s.setTime(s-1)},function(s,u){if(s>=s)if(u<0)for(;++u<=0;)for(;r(s,-1),!a(s););else for(;--u>=0;)for(;r(s,1),!a(s););})},t&&(o.count=function(a,s){return G6.setTime(+a),Y6.setTime(+s),n(G6),n(Y6),Math.floor(t(G6,Y6))},o.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?o.filter(i?function(s){return i(s)%a==0}:function(s){return o.count(0,s)%a==0}):o:null}),o}var vA=Ba(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});vA.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Ba(function(r){r.setTime(Math.floor(r/n)*n)},function(r,t){r.setTime(+r+t*n)},function(r,t){return(t-r)/n}):vA:null};var gA=vA,Q9=vA.range,Ym=6e4,yA=36e5,X9=6048e5,$9=Ba(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+1e3*r)},function(n,r){return(r-n)/1e3},function(n){return n.getUTCSeconds()}),bA=$9,eU=$9.range,tU=Ba(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*Ym)},function(n,r){return(r-n)/Ym},function(n){return n.getMinutes()}),nU=tU,t$=tU.range,rU=Ba(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*Ym)},function(n,r){n.setTime(+n+r*yA)},function(n,r){return(r-n)/yA},function(n){return n.getHours()}),iU=rU,n$=rU.range,oU=Ba(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Ym)/864e5},function(n){return n.getDate()-1}),CA=oU,r$=oU.range;function Jm(n){return Ba(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,t){r.setDate(r.getDate()+7*t)},function(r,t){return(t-r-(t.getTimezoneOffset()-r.getTimezoneOffset())*Ym)/X9})}var X1=Jm(0),$1=Jm(1),aU=Jm(2),sU=Jm(3),eS=Jm(4),lU=Jm(5),uU=Jm(6),cU=X1.range,i$=$1.range,o$=aU.range,a$=sU.range,s$=eS.range,l$=lU.range,u$=uU.range,dU=Ba(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}),pU=dU,c$=dU.range,J6=Ba(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});J6.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ba(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,t){r.setFullYear(r.getFullYear()+t*n)}):null};var Qm=J6,d$=J6.range,fU=Ba(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Ym)},function(n,r){return(r-n)/Ym},function(n){return n.getUTCMinutes()}),hU=fU,p$=fU.range,mU=Ba(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*yA)},function(n,r){return(r-n)/yA},function(n){return n.getUTCHours()}),vU=mU,f$=mU.range,gU=Ba(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1}),SA=gU,h$=gU.range;function Km(n){return Ba(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,t){r.setUTCDate(r.getUTCDate()+7*t)},function(r,t){return(t-r)/X9})}var tS=Km(0),nS=Km(1),_U=Km(2),yU=Km(3),rS=Km(4),bU=Km(5),CU=Km(6),SU=tS.range,m$=nS.range,v$=_U.range,g$=yU.range,_$=rS.range,y$=bU.range,b$=CU.range,TU=Ba(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}),xU=TU,C$=TU.range,Q6=Ba(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});Q6.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ba(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,t){r.setUTCFullYear(r.getUTCFullYear()+t*n)}):null};var Xm=Q6,S$=Q6.range;function T$(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function TA(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function iS(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function wU(n){var r=n.dateTime,t=n.date,i=n.time,o=n.periods,a=n.days,s=n.shortDays,u=n.months,p=n.shortMonths,m=oS(o),C=aS(o),P=oS(a),L=aS(a),G=oS(s),Y=aS(s),te=oS(u),de=aS(u),Me=oS(p),st=aS(p),tt={a:function(hr){return s[hr.getDay()]},A:function(hr){return a[hr.getDay()]},b:function(hr){return p[hr.getMonth()]},B:function(hr){return u[hr.getMonth()]},c:null,d:AU,e:AU,f:G$,H:j$,I:z$,j:W$,L:DU,m:Y$,M:J$,p:function(hr){return o[+(hr.getHours()>=12)]},Q:RU,s:NU,S:Q$,u:K$,U:X$,V:$$,w:eee,W:tee,x:null,X:null,y:nee,Y:ree,Z:iee,"%":IU},at={a:function(hr){return s[hr.getUTCDay()]},A:function(hr){return a[hr.getUTCDay()]},b:function(hr){return p[hr.getUTCMonth()]},B:function(hr){return u[hr.getUTCMonth()]},c:null,d:OU,e:OU,f:lee,H:oee,I:aee,j:see,L:PU,m:uee,M:cee,p:function(hr){return o[+(hr.getUTCHours()>=12)]},Q:RU,s:NU,S:dee,u:pee,U:fee,V:hee,w:mee,W:vee,x:null,X:null,y:gee,Y:_ee,Z:yee,"%":IU},pt={a:function(hr,dr,or){var qn=G.exec(dr.slice(or));return qn?(hr.w=Y[qn[0].toLowerCase()],or+qn[0].length):-1},A:function(hr,dr,or){var qn=P.exec(dr.slice(or));return qn?(hr.w=L[qn[0].toLowerCase()],or+qn[0].length):-1},b:function(hr,dr,or){var qn=Me.exec(dr.slice(or));return qn?(hr.m=st[qn[0].toLowerCase()],or+qn[0].length):-1},B:function(hr,dr,or){var qn=te.exec(dr.slice(or));return qn?(hr.m=de[qn[0].toLowerCase()],or+qn[0].length):-1},c:function(hr,dr,or){return It(hr,r,dr,or)},d:kU,e:kU,f:U$,H:MU,I:MU,j:Z$,L:B$,m:N$,M:L$,p:function(hr,dr,or){var qn=m.exec(dr.slice(or));return qn?(hr.p=C[qn[0].toLowerCase()],or+qn[0].length):-1},Q:V$,s:q$,S:F$,u:M$,U:A$,V:D$,w:k$,W:O$,x:function(hr,dr,or){return It(hr,t,dr,or)},X:function(hr,dr,or){return It(hr,i,dr,or)},y:I$,Y:P$,Z:R$,"%":H$};function Je(hr,dr){return function(or){var ps,_l,_c,qn=[],Ko=-1,wi=0,Ci=hr.length;for(or instanceof Date||(or=new Date(+or));++Ko<Ci;)37===hr.charCodeAt(Ko)&&(qn.push(hr.slice(wi,Ko)),null!=(_l=EU[ps=hr.charAt(++Ko)])?ps=hr.charAt(++Ko):_l="e"===ps?" ":"0",(_c=dr[ps])&&(ps=_c(or,_l)),qn.push(ps),wi=Ko+1);return qn.push(hr.slice(wi,Ko)),qn.join("")}}function et(hr,dr){return function(or){var wi,Ci,qn=iS(1900);if(It(qn,hr,or+="",0)!=or.length)return null;if("Q"in qn)return new Date(qn.Q);if("p"in qn&&(qn.H=qn.H%12+12*qn.p),"V"in qn){if(qn.V<1||qn.V>53)return null;"w"in qn||(qn.w=1),"Z"in qn?(Ci=(wi=TA(iS(qn.y))).getUTCDay(),wi=Ci>4||0===Ci?nS.ceil(wi):nS(wi),wi=SA.offset(wi,7*(qn.V-1)),qn.y=wi.getUTCFullYear(),qn.m=wi.getUTCMonth(),qn.d=wi.getUTCDate()+(qn.w+6)%7):(Ci=(wi=dr(iS(qn.y))).getDay(),wi=Ci>4||0===Ci?$1.ceil(wi):$1(wi),wi=CA.offset(wi,7*(qn.V-1)),qn.y=wi.getFullYear(),qn.m=wi.getMonth(),qn.d=wi.getDate()+(qn.w+6)%7)}else("W"in qn||"U"in qn)&&("w"in qn||(qn.w="u"in qn?qn.u%7:"W"in qn?1:0),Ci="Z"in qn?TA(iS(qn.y)).getUTCDay():dr(iS(qn.y)).getDay(),qn.m=0,qn.d="W"in qn?(qn.w+6)%7+7*qn.W-(Ci+5)%7:qn.w+7*qn.U-(Ci+6)%7);return"Z"in qn?(qn.H+=qn.Z/100|0,qn.M+=qn.Z%100,TA(qn)):dr(qn)}}function It(hr,dr,or,qn){for(var ps,_l,Ko=0,wi=dr.length,Ci=or.length;Ko<wi;){if(qn>=Ci)return-1;if(37===(ps=dr.charCodeAt(Ko++))){if(ps=dr.charAt(Ko++),!(_l=pt[ps in EU?dr.charAt(Ko++):ps])||(qn=_l(hr,or,qn))<0)return-1}else if(ps!=or.charCodeAt(qn++))return-1}return qn}return tt.x=Je(t,tt),tt.X=Je(i,tt),tt.c=Je(r,tt),at.x=Je(t,at),at.X=Je(i,at),at.c=Je(r,at),{format:function(dr){var or=Je(dr+="",tt);return or.toString=function(){return dr},or},parse:function(dr){var or=et(dr+="",T$);return or.toString=function(){return dr},or},utcFormat:function(dr){var or=Je(dr+="",at);return or.toString=function(){return dr},or},utcParse:function(dr){var or=et(dr,TA);return or.toString=function(){return dr},or}}}var J_,K6,ZU,xA,X6,EU={"-":"",_:" ",0:"0"},ls=/^\s*\d+/,x$=/^%/,w$=/[\\^$*+?|[\]().{}]/g;function lo(n,r,t){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a<t?new Array(t-a+1).join(r)+o:o)}function E$(n){return n.replace(w$,"\\$&")}function oS(n){return new RegExp("^(?:"+n.map(E$).join("|")+")","i")}function aS(n){for(var r={},t=-1,i=n.length;++t<i;)r[n[t].toLowerCase()]=t;return r}function k$(n,r,t){var i=ls.exec(r.slice(t,t+1));return i?(n.w=+i[0],t+i[0].length):-1}function M$(n,r,t){var i=ls.exec(r.slice(t,t+1));return i?(n.u=+i[0],t+i[0].length):-1}function A$(n,r,t){var i=ls.exec(r.slice(t,t+2));return i?(n.U=+i[0],t+i[0].length):-1}function D$(n,r,t){var i=ls.exec(r.slice(t,t+2));return i?(n.V=+i[0],t+i[0].length):-1}function O$(n,r,t){var i=ls.exec(r.slice(t,t+2));return i?(n.W=+i[0],t+i[0].length):-1}function P$(n,r,t){var i=ls.exec(r.slice(t,t+4));return i?(n.y=+i[0],t+i[0].length):-1}function I$(n,r,t){var i=ls.exec(r.slice(t,t+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),t+i[0].length):-1}function R$(n,r,t){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(t,t+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),t+i[0].length):-1}function N$(n,r,t){var i=ls.exec(r.slice(t,t+2));return i?(n.m=i[0]-1,t+i[0].length):-1}function kU(n,r,t){var i=ls.exec(r.slice(t,t+2));return i?(n.d=+i[0],t+i[0].length):-1}function Z$(n,r,t){var i=ls.exec(r.slice(t,t+3));return i?(n.m=0,n.d=+i[0],t+i[0].length):-1}function MU(n,r,t){var i=ls.exec(r.slice(t,t+2));return i?(n.H=+i[0],t+i[0].length):-1}function L$(n,r,t){var i=ls.exec(r.slice(t,t+2));return i?(n.M=+i[0],t+i[0].length):-1}function F$(n,r,t){var i=ls.exec(r.slice(t,t+2));return i?(n.S=+i[0],t+i[0].length):-1}function B$(n,r,t){var i=ls.exec(r.slice(t,t+3));return i?(n.L=+i[0],t+i[0].length):-1}function U$(n,r,t){var i=ls.exec(r.slice(t,t+6));return i?(n.L=Math.floor(i[0]/1e3),t+i[0].length):-1}function H$(n,r,t){var i=x$.exec(r.slice(t,t+1));return i?t+i[0].length:-1}function V$(n,r,t){var i=ls.exec(r.slice(t));return i?(n.Q=+i[0],t+i[0].length):-1}function q$(n,r,t){var i=ls.exec(r.slice(t));return i?(n.Q=1e3*+i[0],t+i[0].length):-1}function AU(n,r){return lo(n.getDate(),r,2)}function j$(n,r){return lo(n.getHours(),r,2)}function z$(n,r){return lo(n.getHours()%12||12,r,2)}function W$(n,r){return lo(1+CA.count(Qm(n),n),r,3)}function DU(n,r){return lo(n.getMilliseconds(),r,3)}function G$(n,r){return DU(n,r)+"000"}function Y$(n,r){return lo(n.getMonth()+1,r,2)}function J$(n,r){return lo(n.getMinutes(),r,2)}function Q$(n,r){return lo(n.getSeconds(),r,2)}function K$(n){var r=n.getDay();return 0===r?7:r}function X$(n,r){return lo(X1.count(Qm(n),n),r,2)}function $$(n,r){var t=n.getDay();return n=t>=4||0===t?eS(n):eS.ceil(n),lo(eS.count(Qm(n),n)+(4===Qm(n).getDay()),r,2)}function eee(n){return n.getDay()}function tee(n,r){return lo($1.count(Qm(n),n),r,2)}function nee(n,r){return lo(n.getFullYear()%100,r,2)}function ree(n,r){return lo(n.getFullYear()%1e4,r,4)}function iee(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+lo(r/60|0,"0",2)+lo(r%60,"0",2)}function OU(n,r){return lo(n.getUTCDate(),r,2)}function oee(n,r){return lo(n.getUTCHours(),r,2)}function aee(n,r){return lo(n.getUTCHours()%12||12,r,2)}function see(n,r){return lo(1+SA.count(Xm(n),n),r,3)}function PU(n,r){return lo(n.getUTCMilliseconds(),r,3)}function lee(n,r){return PU(n,r)+"000"}function uee(n,r){return lo(n.getUTCMonth()+1,r,2)}function cee(n,r){return lo(n.getUTCMinutes(),r,2)}function dee(n,r){return lo(n.getUTCSeconds(),r,2)}function pee(n){var r=n.getUTCDay();return 0===r?7:r}function fee(n,r){return lo(tS.count(Xm(n),n),r,2)}function hee(n,r){var t=n.getUTCDay();return n=t>=4||0===t?rS(n):rS.ceil(n),lo(rS.count(Xm(n),n)+(4===Xm(n).getUTCDay()),r,2)}function mee(n){return n.getUTCDay()}function vee(n,r){return lo(nS.count(Xm(n),n),r,2)}function gee(n,r){return lo(n.getUTCFullYear()%100,r,2)}function _ee(n,r){return lo(n.getUTCFullYear()%1e4,r,4)}function yee(){return"+0000"}function IU(){return"%"}function RU(n){return+n}function NU(n){return Math.floor(+n/1e3)}function LU(n){return J_=wU(n),K6=J_.format,ZU=J_.parse,xA=J_.utcFormat,X6=J_.utcParse,J_}LU({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var FU="%Y-%m-%dT%H:%M:%S.%LZ",See=Date.prototype.toISOString?function(n){return n.toISOString()}:xA(FU),wee=+new Date("2000-01-01T00:00:00.000Z")?function(n){var r=new Date(n);return isNaN(r)?null:r}:X6(FU),lS=6e4,uS=60*lS,cS=24*uS,BU=30*cS,$6=365*cS;function kee(n){return new Date(n)}function Mee(n){return n instanceof Date?+n:+new Date(+n)}function eZ(n,r,t,i,o,a,s,u,p){var m=mA(z6,Ni),C=m.invert,P=m.domain,L=p(".%L"),G=p(":%S"),Y=p("%I:%M"),te=p("%I %p"),de=p("%a %d"),Me=p("%b %d"),st=p("%B"),tt=p("%Y"),at=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,lS],[a,5,5*lS],[a,15,15*lS],[a,30,30*lS],[o,1,uS],[o,3,3*uS],[o,6,6*uS],[o,12,12*uS],[i,1,cS],[i,2,2*cS],[t,1,6048e5],[r,1,BU],[r,3,3*BU],[n,1,$6]];function pt(et){return(s(et)<et?L:a(et)<et?G:o(et)<et?Y:i(et)<et?te:r(et)<et?t(et)<et?de:Me:n(et)<et?st:tt)(et)}function Je(et,It,Et,pn){if(null==et&&(et=10),"number"==typeof et){var Wt=Math.abs(Et-It)/et,ot=Df(function(Dt){return Dt[2]}).right(at,Wt);ot===at.length?(pn=ip(It/$6,Et/$6,et),et=n):ot?(pn=(ot=at[Wt/at[ot-1][2]<at[ot][2]/Wt?ot-1:ot])[1],et=ot[0]):(pn=Math.max(ip(It,Et,et),1),et=u)}return null==pn?et:et.every(pn)}return m.invert=function(et){return new Date(C(et))},m.domain=function(et){return arguments.length?P(U6.call(et,Mee)):P().map(kee)},m.ticks=function(et,It){var Dt,Et=P(),pn=Et[0],Wt=Et[Et.length-1],ot=Wt<pn;return ot&&(Dt=pn,pn=Wt,Wt=Dt),Dt=(Dt=Je(et,pn,Wt,It))?Dt.range(pn,Wt+1):[],ot?Dt.reverse():Dt},m.tickFormat=function(et,It){return null==It?pt:p(It)},m.nice=function(et,It){var Et=P();return(et=Je(et,Et[0],Et[Et.length-1],It))?P(V9(Et,et)):m},m.copy=function(){return hA(m,eZ(n,r,t,i,o,a,s,u,p))},m}function Aee(){return eZ(Qm,pU,X1,CA,iU,nU,bA,gA,K6).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function Dee(){return eZ(Xm,xU,tS,SA,vU,hU,bA,gA,xA).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function UU(n){var r=0,t=1,i=!1;function o(a){var s=(a-r)/(t-r);return n(i?Math.max(0,Math.min(1,s)):s)}return o.domain=function(a){return arguments.length?(r=+a[0],t=+a[1],o):[r,t]},o.clamp=function(a){return arguments.length?(i=!!a,o):i},o.interpolator=function(a){return arguments.length?(n=a,o):n},o.copy=function(){return UU(n).domain([r,t]).clamp(i)},K1(o)}function ri(n){for(var r=n.length/6|0,t=new Array(r),i=0;i<r;)t[i]="#"+n.slice(6*i,6*++i);return t}var Oee=ri("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Pee=ri("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Iee=ri("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Ree=ri("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Nee=ri("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Zee=ri("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Lee=ri("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Fee=ri("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Bee=ri("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function yo(n){return Lr(n[n.length-1])}var HU=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ri),Uee=yo(HU),VU=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ri),Hee=yo(VU),qU=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ri),Vee=yo(qU),jU=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ri),qee=yo(jU),zU=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ri),jee=yo(zU),WU=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ri),zee=yo(WU),GU=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ri),Wee=yo(GU),YU=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ri),Gee=yo(YU),JU=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ri),Yee=yo(JU),QU=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ri),Jee=yo(QU),KU=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ri),Qee=yo(KU),XU=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ri),Kee=yo(XU),$U=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ri),Xee=yo($U),eH=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ri),$ee=yo(eH),tH=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ri),ete=yo(tH),nH=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ri),tte=yo(nH),rH=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ri),nte=yo(rH),iH=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ri),rte=yo(iH),oH=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ri),ite=yo(oH),aH=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ri),ote=yo(aH),sH=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ri),ate=yo(sH),lH=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ri),ste=yo(lH),uH=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ri),lte=yo(uH),cH=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ri),ute=yo(cH),dH=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ri),cte=yo(dH),pH=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ri),dte=yo(pH),fH=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ri),pte=yo(fH),fte=iM(W(300,.5,0),W(-240,.5,1)),hte=iM(W(-100,.75,.35),W(80,1.5,.8)),mte=iM(W(260,.75,.35),W(80,1.5,.8)),wA=W();function vte(n){(n<0||n>1)&&(n-=Math.floor(n));var r=Math.abs(n-.5);return wA.h=360*n-100,wA.s=1.5-1.5*r,wA.l=.8-.9*r,wA+""}function EA(n){var r=n.length;return function(t){return n[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var gte=EA(ri("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),_te=EA(ri("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),yte=EA(ri("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),bte=EA(ri("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Cte(n,r){return n.each(function(){var t=r.apply(this,arguments),i=ni(this);for(var o in t)i.attr(o,t[o])})}function Ste(n,r){for(var t in r)n.attr(t,r[t]);return n}function xte(n,r,t){return n.each(function(){var i=r.apply(this,arguments),o=ni(this);for(var a in i)o.style(a,i[a],t)})}function wte(n,r,t){for(var i in r)n.style(i,r[i],t);return n}function kte(n,r){return n.each(function(){var t=r.apply(this,arguments),i=ni(this);for(var o in t)i.property(o,t[o])})}function Mte(n,r){for(var t in r)n.property(t,r[t]);return n}function Dte(n,r){return n.each(function(){var t=r.apply(this,arguments),i=ni(this).transition(n);for(var o in t)i.attr(o,t[o])})}function Ote(n,r){for(var t in r)n.attr(t,r[t]);return n}function Ite(n,r,t){return n.each(function(){var i=r.apply(this,arguments),o=ni(this).transition(n);for(var a in i)o.style(a,i[a],t)})}function Rte(n,r,t){for(var i in r)n.style(i,r[i],t);return n}function ci(n){return function(){return n}}Hl.prototype.attrs=function(n){return("function"==typeof n?Cte:Ste)(this,n)},Hl.prototype.styles=function(n,r){return("function"==typeof n?xte:wte)(this,n,null==r?"":r)},Hl.prototype.properties=function(n){return("function"==typeof n?kte:Mte)(this,n)},pM.prototype.attrs=function(n){return("function"==typeof n?Dte:Ote)(this,n)},pM.prototype.styles=function(n,r){return("function"==typeof n?Ite:Rte)(this,n,null==r?"":r)};var hH=Math.abs,bs=Math.atan2,$m=Math.cos,Zte=Math.max,tZ=Math.min,ed=Math.sin,Q_=Math.sqrt,us=1e-12,ev=Math.PI,kA=ev/2,hp=2*ev;function Lte(n){return n>1?0:n<-1?ev:Math.acos(n)}function mH(n){return n>=1?kA:n<=-1?-kA:Math.asin(n)}function Fte(n){return n.innerRadius}function Bte(n){return n.outerRadius}function Ute(n){return n.startAngle}function Hte(n){return n.endAngle}function Vte(n){return n&&n.padAngle}function qte(n,r,t,i,o,a,s,u){var p=t-n,m=i-r,C=s-o,P=u-a,L=P*p-C*m;if(!(L*L<us))return[n+(L=(C*(r-a)-P*(n-o))/L)*p,r+L*m]}function MA(n,r,t,i,o,a,s){var u=n-t,p=r-i,m=(s?a:-a)/Q_(u*u+p*p),C=m*p,P=-m*u,L=n+C,G=r+P,Y=t+C,te=i+P,de=(L+Y)/2,Me=(G+te)/2,st=Y-L,tt=te-G,at=st*st+tt*tt,pt=o-a,Je=L*te-Y*G,et=(tt<0?-1:1)*Q_(Zte(0,pt*pt*at-Je*Je)),It=(Je*tt-st*et)/at,Et=(-Je*st-tt*et)/at,pn=(Je*tt+st*et)/at,Wt=(-Je*st+tt*et)/at,ot=It-de,Dt=Et-Me,mn=pn-de,dn=Wt-Me;return ot*ot+Dt*Dt>mn*mn+dn*dn&&(It=pn,Et=Wt),{cx:It,cy:Et,x01:-C,y01:-P,x11:It*(o/pt-1),y11:Et*(o/pt-1)}}function jte(){var n=Fte,r=Bte,t=ci(0),i=null,o=Ute,a=Hte,s=Vte,u=null;function p(){var m,C,P=+n.apply(this,arguments),L=+r.apply(this,arguments),G=o.apply(this,arguments)-kA,Y=a.apply(this,arguments)-kA,te=hH(Y-G),de=Y>G;if(u||(u=m=tc()),L<P&&(C=L,L=P,P=C),L>us)if(te>hp-us)u.moveTo(L*$m(G),L*ed(G)),u.arc(0,0,L,G,Y,!de),P>us&&(u.moveTo(P*$m(Y),P*ed(Y)),u.arc(0,0,P,Y,G,de));else{var ot,Dt,Me=G,st=Y,tt=G,at=Y,pt=te,Je=te,et=s.apply(this,arguments)/2,It=et>us&&(i?+i.apply(this,arguments):Q_(P*P+L*L)),Et=tZ(hH(L-P)/2,+t.apply(this,arguments)),pn=Et,Wt=Et;if(It>us){var mn=mH(It/P*ed(et)),dn=mH(It/L*ed(et));(pt-=2*mn)>us?(tt+=mn*=de?1:-1,at-=mn):(pt=0,tt=at=(G+Y)/2),(Je-=2*dn)>us?(Me+=dn*=de?1:-1,st-=dn):(Je=0,Me=st=(G+Y)/2)}var xn=L*$m(Me),Fn=L*ed(Me),er=P*$m(at),mr=P*ed(at);if(Et>us){var vr,jr=L*$m(st),ir=L*ed(st),Gr=P*$m(tt),ai=P*ed(tt);if(te<=hp-us&&(vr=qte(xn,Fn,Gr,ai,jr,ir,er,mr))){var Bi=xn-vr[0],Bo=Fn-vr[1],hr=jr-vr[0],dr=ir-vr[1],or=1/ed(Lte((Bi*hr+Bo*dr)/(Q_(Bi*Bi+Bo*Bo)*Q_(hr*hr+dr*dr)))/2),qn=Q_(vr[0]*vr[0]+vr[1]*vr[1]);pn=tZ(Et,(P-qn)/(or-1)),Wt=tZ(Et,(L-qn)/(or+1))}}Je>us?Wt>us?(ot=MA(Gr,ai,xn,Fn,L,Wt,de),Dt=MA(jr,ir,er,mr,L,Wt,de),u.moveTo(ot.cx+ot.x01,ot.cy+ot.y01),Wt<Et?u.arc(ot.cx,ot.cy,Wt,bs(ot.y01,ot.x01),bs(Dt.y01,Dt.x01),!de):(u.arc(ot.cx,ot.cy,Wt,bs(ot.y01,ot.x01),bs(ot.y11,ot.x11),!de),u.arc(0,0,L,bs(ot.cy+ot.y11,ot.cx+ot.x11),bs(Dt.cy+Dt.y11,Dt.cx+Dt.x11),!de),u.arc(Dt.cx,Dt.cy,Wt,bs(Dt.y11,Dt.x11),bs(Dt.y01,Dt.x01),!de))):(u.moveTo(xn,Fn),u.arc(0,0,L,Me,st,!de)):u.moveTo(xn,Fn),P>us&&pt>us?pn>us?(ot=MA(er,mr,jr,ir,P,-pn,de),Dt=MA(xn,Fn,Gr,ai,P,-pn,de),u.lineTo(ot.cx+ot.x01,ot.cy+ot.y01),pn<Et?u.arc(ot.cx,ot.cy,pn,bs(ot.y01,ot.x01),bs(Dt.y01,Dt.x01),!de):(u.arc(ot.cx,ot.cy,pn,bs(ot.y01,ot.x01),bs(ot.y11,ot.x11),!de),u.arc(0,0,P,bs(ot.cy+ot.y11,ot.cx+ot.x11),bs(Dt.cy+Dt.y11,Dt.cx+Dt.x11),de),u.arc(Dt.cx,Dt.cy,pn,bs(Dt.y11,Dt.x11),bs(Dt.y01,Dt.x01),!de))):u.arc(0,0,P,at,tt,de):u.lineTo(er,mr)}else u.moveTo(0,0);if(u.closePath(),m)return u=null,m+""||null}return p.centroid=function(){var m=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,C=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-ev/2;return[$m(C)*m,ed(C)*m]},p.innerRadius=function(m){return arguments.length?(n="function"==typeof m?m:ci(+m),p):n},p.outerRadius=function(m){return arguments.length?(r="function"==typeof m?m:ci(+m),p):r},p.cornerRadius=function(m){return arguments.length?(t="function"==typeof m?m:ci(+m),p):t},p.padRadius=function(m){return arguments.length?(i=null==m?null:"function"==typeof m?m:ci(+m),p):i},p.startAngle=function(m){return arguments.length?(o="function"==typeof m?m:ci(+m),p):o},p.endAngle=function(m){return arguments.length?(a="function"==typeof m?m:ci(+m),p):a},p.padAngle=function(m){return arguments.length?(s="function"==typeof m?m:ci(+m),p):s},p.context=function(m){return arguments.length?(u=null==m?null:m,p):u},p}function vH(n){this._context=n}function AA(n){return new vH(n)}function nZ(n){return n[0]}function rZ(n){return n[1]}function DA(){var n=nZ,r=rZ,t=ci(!0),i=null,o=AA,a=null;function s(u){var p,C,L,m=u.length,P=!1;for(null==i&&(a=o(L=tc())),p=0;p<=m;++p)!(p<m&&t(C=u[p],p,u))===P&&((P=!P)?a.lineStart():a.lineEnd()),P&&a.point(+n(C,p,u),+r(C,p,u));if(L)return a=null,L+""||null}return s.x=function(u){return arguments.length?(n="function"==typeof u?u:ci(+u),s):n},s.y=function(u){return arguments.length?(r="function"==typeof u?u:ci(+u),s):r},s.defined=function(u){return arguments.length?(t="function"==typeof u?u:ci(!!u),s):t},s.curve=function(u){return arguments.length?(o=u,null!=i&&(a=o(i)),s):o},s.context=function(u){return arguments.length?(null==u?i=a=null:a=o(i=u),s):i},s}function gH(){var n=nZ,r=null,t=ci(0),i=rZ,o=ci(!0),a=null,s=AA,u=null;function p(C){var P,L,G,te,Me,Y=C.length,de=!1,st=new Array(Y),tt=new Array(Y);for(null==a&&(u=s(Me=tc())),P=0;P<=Y;++P){if(!(P<Y&&o(te=C[P],P,C))===de)if(de=!de)L=P,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),G=P-1;G>=L;--G)u.point(st[G],tt[G]);u.lineEnd(),u.areaEnd()}de&&(st[P]=+n(te,P,C),tt[P]=+t(te,P,C),u.point(r?+r(te,P,C):st[P],i?+i(te,P,C):tt[P]))}if(Me)return u=null,Me+""||null}function m(){return DA().defined(o).curve(s).context(a)}return p.x=function(C){return arguments.length?(n="function"==typeof C?C:ci(+C),r=null,p):n},p.x0=function(C){return arguments.length?(n="function"==typeof C?C:ci(+C),p):n},p.x1=function(C){return arguments.length?(r=null==C?null:"function"==typeof C?C:ci(+C),p):r},p.y=function(C){return arguments.length?(t="function"==typeof C?C:ci(+C),i=null,p):t},p.y0=function(C){return arguments.length?(t="function"==typeof C?C:ci(+C),p):t},p.y1=function(C){return arguments.length?(i=null==C?null:"function"==typeof C?C:ci(+C),p):i},p.lineX0=p.lineY0=function(){return m().x(n).y(t)},p.lineY1=function(){return m().x(n).y(i)},p.lineX1=function(){return m().x(r).y(t)},p.defined=function(C){return arguments.length?(o="function"==typeof C?C:ci(!!C),p):o},p.curve=function(C){return arguments.length?(s=C,null!=a&&(u=s(a)),p):s},p.context=function(C){return arguments.length?(null==C?a=u=null:u=s(a=C),p):a},p}function zte(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function Wte(n){return n}function Gte(){var n=Wte,r=zte,t=null,i=ci(0),o=ci(hp),a=ci(0);function s(u){var p,C,P,Me,at,m=u.length,L=0,G=new Array(m),Y=new Array(m),te=+i.apply(this,arguments),de=Math.min(hp,Math.max(-hp,o.apply(this,arguments)-te)),st=Math.min(Math.abs(de)/m,a.apply(this,arguments)),tt=st*(de<0?-1:1);for(p=0;p<m;++p)(at=Y[G[p]=p]=+n(u[p],p,u))>0&&(L+=at);for(null!=r?G.sort(function(pt,Je){return r(Y[pt],Y[Je])}):null!=t&&G.sort(function(pt,Je){return t(u[pt],u[Je])}),p=0,P=L?(de-m*tt)/L:0;p<m;++p,te=Me)Y[C=G[p]]={data:u[C],index:p,value:at=Y[C],startAngle:te,endAngle:Me=te+(at>0?at*P:0)+tt,padAngle:st};return Y}return s.value=function(u){return arguments.length?(n="function"==typeof u?u:ci(+u),s):n},s.sortValues=function(u){return arguments.length?(r=u,t=null,s):r},s.sort=function(u){return arguments.length?(t=u,r=null,s):t},s.startAngle=function(u){return arguments.length?(i="function"==typeof u?u:ci(+u),s):i},s.endAngle=function(u){return arguments.length?(o="function"==typeof u?u:ci(+u),s):o},s.padAngle=function(u){return arguments.length?(a="function"==typeof u?u:ci(+u),s):a},s}vH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;default:this._context.lineTo(r,t)}}};var _H=iZ(AA);function yH(n){this._curve=n}function iZ(n){function r(t){return new yH(n(t))}return r._curve=n,r}function dS(n){var r=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(t){return arguments.length?r(iZ(t)):r()._curve},n}function bH(){return dS(DA().curve(_H))}function CH(){var n=gH().curve(_H),r=n.curve,t=n.lineX0,i=n.lineX1,o=n.lineY0,a=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return dS(t())},delete n.lineX0,n.lineEndAngle=function(){return dS(i())},delete n.lineX1,n.lineInnerRadius=function(){return dS(o())},delete n.lineY0,n.lineOuterRadius=function(){return dS(a())},delete n.lineY1,n.curve=function(s){return arguments.length?r(iZ(s)):r()._curve},n}function pS(n,r){return[(r=+r)*Math.cos(n-=Math.PI/2),r*Math.sin(n)]}yH.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(r,t){this._curve.point(t*Math.sin(r),t*-Math.cos(r))}};var oZ=Array.prototype.slice;function Yte(n){return n.source}function Jte(n){return n.target}function aZ(n){var r=Yte,t=Jte,i=nZ,o=rZ,a=null;function s(){var u,p=oZ.call(arguments),m=r.apply(this,p),C=t.apply(this,p);if(a||(a=u=tc()),n(a,+i.apply(this,(p[0]=m,p)),+o.apply(this,p),+i.apply(this,(p[0]=C,p)),+o.apply(this,p)),u)return a=null,u+""||null}return s.source=function(u){return arguments.length?(r=u,s):r},s.target=function(u){return arguments.length?(t=u,s):t},s.x=function(u){return arguments.length?(i="function"==typeof u?u:ci(+u),s):i},s.y=function(u){return arguments.length?(o="function"==typeof u?u:ci(+u),s):o},s.context=function(u){return arguments.length?(a=null==u?null:u,s):a},s}function Qte(n,r,t,i,o){n.moveTo(r,t),n.bezierCurveTo(r=(r+i)/2,t,r,o,i,o)}function Kte(n,r,t,i,o){n.moveTo(r,t),n.bezierCurveTo(r,t=(t+o)/2,i,t,i,o)}function Xte(n,r,t,i,o){var a=pS(r,t),s=pS(r,t=(t+o)/2),u=pS(i,t),p=pS(i,o);n.moveTo(a[0],a[1]),n.bezierCurveTo(s[0],s[1],u[0],u[1],p[0],p[1])}function $te(){return aZ(Qte)}function ene(){return aZ(Kte)}function tne(){var n=aZ(Xte);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}var sZ={draw:function(r,t){var i=Math.sqrt(t/ev);r.moveTo(i,0),r.arc(0,0,i,0,hp)}},SH={draw:function(r,t){var i=Math.sqrt(t/5)/2;r.moveTo(-3*i,-i),r.lineTo(-i,-i),r.lineTo(-i,-3*i),r.lineTo(i,-3*i),r.lineTo(i,-i),r.lineTo(3*i,-i),r.lineTo(3*i,i),r.lineTo(i,i),r.lineTo(i,3*i),r.lineTo(-i,3*i),r.lineTo(-i,i),r.lineTo(-3*i,i),r.closePath()}},TH=Math.sqrt(1/3),nne=2*TH,xH={draw:function(r,t){var i=Math.sqrt(t/nne),o=i*TH;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},wH=Math.sin(ev/10)/Math.sin(7*ev/10),ine=Math.sin(hp/10)*wH,one=-Math.cos(hp/10)*wH,EH={draw:function(r,t){var i=Math.sqrt(.8908130915292852*t),o=ine*i,a=one*i;r.moveTo(0,-i),r.lineTo(o,a);for(var s=1;s<5;++s){var u=hp*s/5,p=Math.cos(u),m=Math.sin(u);r.lineTo(m*i,-p*i),r.lineTo(p*o-m*a,m*o+p*a)}r.closePath()}},kH={draw:function(r,t){var i=Math.sqrt(t),o=-i/2;r.rect(o,o,i,i)}},lZ=Math.sqrt(3),MH={draw:function(r,t){var i=-Math.sqrt(t/(3*lZ));r.moveTo(0,2*i),r.lineTo(-lZ*i,-i),r.lineTo(lZ*i,-i),r.closePath()}},ku=-.5,Mu=Math.sqrt(3)/2,uZ=1/Math.sqrt(12),ane=3*(uZ/2+1),AH={draw:function(r,t){var i=Math.sqrt(t/ane),o=i/2,a=i*uZ,s=o,u=i*uZ+i,p=-s,m=u;r.moveTo(o,a),r.lineTo(s,u),r.lineTo(p,m),r.lineTo(ku*o-Mu*a,Mu*o+ku*a),r.lineTo(ku*s-Mu*u,Mu*s+ku*u),r.lineTo(ku*p-Mu*m,Mu*p+ku*m),r.lineTo(ku*o+Mu*a,ku*a-Mu*o),r.lineTo(ku*s+Mu*u,ku*u-Mu*s),r.lineTo(ku*p+Mu*m,ku*m-Mu*p),r.closePath()}},sne=[sZ,SH,xH,kH,EH,MH,AH];function lne(){var n=ci(sZ),r=ci(64),t=null;function i(){var o;if(t||(t=o=tc()),n.apply(this,arguments).draw(t,+r.apply(this,arguments)),o)return t=null,o+""||null}return i.type=function(o){return arguments.length?(n="function"==typeof o?o:ci(o),i):n},i.size=function(o){return arguments.length?(r="function"==typeof o?o:ci(+o),i):r},i.context=function(o){return arguments.length?(t=null==o?null:o,i):t},i}function Jf(){}function OA(n,r,t){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+t)/6)}function PA(n){this._context=n}function une(n){return new PA(n)}function DH(n){this._context=n}function cne(n){return new DH(n)}function OH(n){this._context=n}function dne(n){return new OH(n)}function PH(n,r){this._basis=new PA(n),this._beta=r}PA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:OA(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:OA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},DH.prototype={areaStart:Jf,areaEnd:Jf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._x2=r,this._y2=t;break;case 1:this._point=2,this._x3=r,this._y3=t;break;case 2:this._point=3,this._x4=r,this._y4=t,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+t)/6);break;default:OA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},OH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+r)/6,o=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(i,o):this._context.moveTo(i,o);break;case 3:this._point=4;default:OA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},PH.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,t=this._y,i=r.length-1;if(i>0)for(var m,o=r[0],a=t[0],s=r[i]-o,u=t[i]-a,p=-1;++p<=i;)this._basis.point(this._beta*r[p]+(1-this._beta)*(o+(m=p/i)*s),this._beta*t[p]+(1-this._beta)*(a+m*u));this._x=this._y=null,this._basis.lineEnd()},point:function(r,t){this._x.push(+r),this._y.push(+t)}};var pne=function n(r){function t(i){return 1===r?new PA(i):new PH(i,r)}return t.beta=function(i){return n(+i)},t}(.85);function IA(n,r,t){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-r),n._y2+n._k*(n._y1-t),n._x2,n._y2)}function cZ(n,r){this._context=n,this._k=(1-r)/6}cZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:IA(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2,this._x1=r,this._y1=t;break;case 2:this._point=3;default:IA(this,r,t)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var fne=function n(r){function t(i){return new cZ(i,r)}return t.tension=function(i){return n(+i)},t}(0);function dZ(n,r){this._context=n,this._k=(1-r)/6}dZ.prototype={areaStart:Jf,areaEnd:Jf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._x3=r,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=t);break;case 2:this._point=3,this._x5=r,this._y5=t;break;default:IA(this,r,t)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var hne=function n(r){function t(i){return new dZ(i,r)}return t.tension=function(i){return n(+i)},t}(0);function pZ(n,r){this._context=n,this._k=(1-r)/6}pZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:IA(this,r,t)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var mne=function n(r){function t(i){return new pZ(i,r)}return t.tension=function(i){return n(+i)},t}(0);function fZ(n,r,t){var i=n._x1,o=n._y1,a=n._x2,s=n._y2;if(n._l01_a>us){var u=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,p=3*n._l01_a*(n._l01_a+n._l12_a);i=(i*u-n._x0*n._l12_2a+n._x2*n._l01_2a)/p,o=(o*u-n._y0*n._l12_2a+n._y2*n._l01_2a)/p}if(n._l23_a>us){var m=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,C=3*n._l23_a*(n._l23_a+n._l12_a);a=(a*m+n._x1*n._l23_2a-r*n._l12_2a)/C,s=(s*m+n._y1*n._l23_2a-t*n._l12_2a)/C}n._context.bezierCurveTo(i,o,a,s,n._x2,n._y2)}function IH(n,r){this._context=n,this._alpha=r}IH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3;default:fZ(this,r,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var vne=function n(r){function t(i){return r?new IH(i,r):new cZ(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function RH(n,r){this._context=n,this._alpha=r}RH.prototype={areaStart:Jf,areaEnd:Jf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=t);break;case 2:this._point=3,this._x5=r,this._y5=t;break;default:fZ(this,r,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var gne=function n(r){function t(i){return r?new RH(i,r):new dZ(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function NH(n,r){this._context=n,this._alpha=r}NH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){if(r=+r,t=+t,this._point){var i=this._x2-r,o=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:fZ(this,r,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var _ne=function n(r){function t(i){return r?new NH(i,r):new pZ(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function ZH(n){this._context=n}function yne(n){return new ZH(n)}function LH(n){return n<0?-1:1}function FH(n,r,t){var i=n._x1-n._x0,o=r-n._x1,a=(n._y1-n._y0)/(i||o<0&&-0),s=(t-n._y1)/(o||i<0&&-0),u=(a*o+s*i)/(i+o);return(LH(a)+LH(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}function BH(n,r){var t=n._x1-n._x0;return t?(3*(n._y1-n._y0)/t-r)/2:r}function hZ(n,r,t){var i=n._x0,a=n._x1,s=n._y1,u=(a-i)/3;n._context.bezierCurveTo(i+u,n._y0+u*r,a-u,s-u*t,a,s)}function RA(n){this._context=n}function UH(n){this._context=new HH(n)}function HH(n){this._context=n}function bne(n){return new RA(n)}function Cne(n){return new UH(n)}function VH(n){this._context=n}function qH(n){var r,i,t=n.length-1,o=new Array(t),a=new Array(t),s=new Array(t);for(o[0]=0,a[0]=2,s[0]=n[0]+2*n[1],r=1;r<t-1;++r)o[r]=1,a[r]=4,s[r]=4*n[r]+2*n[r+1];for(o[t-1]=2,a[t-1]=7,s[t-1]=8*n[t-1]+n[t],r=1;r<t;++r)a[r]-=i=o[r]/a[r-1],s[r]-=i*s[r-1];for(o[t-1]=s[t-1]/a[t-1],r=t-2;r>=0;--r)o[r]=(s[r]-o[r+1])/a[r];for(a[t-1]=(n[t]+o[t-1])/2,r=0;r<t-1;++r)a[r]=2*n[r+1]-o[r+1];return[o,a]}function Sne(n){return new VH(n)}function NA(n,r){this._context=n,this._t=r}function Tne(n){return new NA(n,.5)}function xne(n){return new NA(n,0)}function wne(n){return new NA(n,1)}function K_(n,r){if((s=n.length)>1)for(var i,o,s,t=1,a=n[r[0]],u=a.length;t<s;++t)for(o=a,a=n[r[t]],i=0;i<u;++i)a[i][1]+=a[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function X_(n){for(var r=n.length,t=new Array(r);--r>=0;)t[r]=r;return t}function Ene(n,r){return n[r]}function kne(){var n=ci([]),r=X_,t=K_,i=Ene;function o(a){var u,P,s=n.apply(this,arguments),p=a.length,m=s.length,C=new Array(m);for(u=0;u<m;++u){for(var te,L=s[u],G=C[u]=new Array(p),Y=0;Y<p;++Y)G[Y]=te=[0,+i(a[Y],L,Y,a)],te.data=a[Y];G.key=L}for(u=0,P=r(C);u<m;++u)C[P[u]].index=u;return t(C,P),C}return o.keys=function(a){return arguments.length?(n="function"==typeof a?a:ci(oZ.call(a)),o):n},o.value=function(a){return arguments.length?(i="function"==typeof a?a:ci(+a),o):i},o.order=function(a){return arguments.length?(r=null==a?X_:"function"==typeof a?a:ci(oZ.call(a)),o):r},o.offset=function(a){return arguments.length?(t=null==a?K_:a,o):t},o}function Mne(n,r){if((i=n.length)>0){for(var t,i,s,o=0,a=n[0].length;o<a;++o){for(s=t=0;t<i;++t)s+=n[t][o][1]||0;if(s)for(t=0;t<i;++t)n[t][o][1]/=s}K_(n,r)}}function Ane(n,r){if((p=n.length)>1)for(var t,o,a,s,u,p,i=0,m=n[r[0]].length;i<m;++i)for(s=u=0,t=0;t<p;++t)(a=(o=n[r[t]][i])[1]-o[0])>=0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=u,o[0]=u+=a):o[0]=s}function Dne(n,r){if((o=n.length)>0){for(var o,t=0,i=n[r[0]],a=i.length;t<a;++t){for(var s=0,u=0;s<o;++s)u+=n[s][t][1]||0;i[t][1]+=i[t][0]=-u/2}K_(n,r)}}function One(n,r){if((s=n.length)>0&&(a=(o=n[r[0]]).length)>0){for(var o,a,s,t=0,i=1;i<a;++i){for(var u=0,p=0,m=0;u<s;++u){for(var C=n[r[u]],P=C[i][1]||0,G=(P-(C[i-1][1]||0))/2,Y=0;Y<u;++Y){var te=n[r[Y]];G+=(te[i][1]||0)-(te[i-1][1]||0)}p+=P,m+=G*P}o[i-1][1]+=o[i-1][0]=t,p&&(t-=m/p)}o[i-1][1]+=o[i-1][0]=t,K_(n,r)}}function jH(n){var r=n.map(zH);return X_(n).sort(function(t,i){return r[t]-r[i]})}function zH(n){for(var o,r=0,t=-1,i=n.length;++t<i;)(o=+n[t][1])&&(r+=o);return r}function Pne(n){return jH(n).reverse()}function Ine(n){var t,i,r=n.length,o=n.map(zH),a=X_(n).sort(function(C,P){return o[P]-o[C]}),s=0,u=0,p=[],m=[];for(t=0;t<r;++t)i=a[t],s<u?(s+=o[i],p.push(i)):(u+=o[i],m.push(i));return m.reverse().concat(p)}function Rne(n){return X_(n).reverse()}function Nne(n,r,t){var i=new A1,o=r;return null==r?(i.restart(n,r,t),i):(r=+r,t=null==t?P_():+t,i.restart(function a(s){s+=o,i.restart(a,o+=r,t),n(s)},r,t),i)}function WH(n){return function(){return n}}function Zne(n){return n[0]}function Lne(n){return n[1]}function mZ(){this._=null}function ZA(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function fS(n,r){var t=r,i=r.R,o=t.U;o?o.L===t?o.L=i:o.R=i:n._=i,i.U=o,t.U=i,t.R=i.L,t.R&&(t.R.U=t),i.L=t}function hS(n,r){var t=r,i=r.L,o=t.U;o?o.L===t?o.L=i:o.R=i:n._=i,i.U=o,t.U=i,t.L=i.R,t.L&&(t.L.U=t),i.R=t}function GH(n){for(;n.L;)n=n.L;return n}ZH.prototype={areaStart:Jf,areaEnd:Jf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(r,t){r=+r,t=+t,this._point?this._context.lineTo(r,t):(this._point=1,this._context.moveTo(r,t))}},RA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:hZ(this,this._t0,BH(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,t){var i=NaN;if(t=+t,(r=+r)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;break;case 2:this._point=3,hZ(this,BH(this,i=FH(this,r,t)),i);break;default:hZ(this,this._t0,i=FH(this,r,t))}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t,this._t0=i}}},(UH.prototype=Object.create(RA.prototype)).point=function(n,r){RA.prototype.point.call(this,r,n)},HH.prototype={moveTo:function(r,t){this._context.moveTo(t,r)},closePath:function(){this._context.closePath()},lineTo:function(r,t){this._context.lineTo(t,r)},bezierCurveTo:function(r,t,i,o,a,s){this._context.bezierCurveTo(t,r,o,i,s,a)}},VH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var r=this._x,t=this._y,i=r.length;if(i)if(this._line?this._context.lineTo(r[0],t[0]):this._context.moveTo(r[0],t[0]),2===i)this._context.lineTo(r[1],t[1]);else for(var o=qH(r),a=qH(t),s=0,u=1;u<i;++s,++u)this._context.bezierCurveTo(o[0][s],a[0][s],o[1][s],a[1][s],r[u],t[u]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(r,t){this._x.push(+r),this._y.push(+t)}},NA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(r,t){switch(r=+r,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(r,t);else{var i=this._x*(1-this._t)+r*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,t)}}this._x=r,this._y=t}},mZ.prototype={constructor:mZ,insert:function(r,t){var i,o,a;if(r){if(t.P=r,t.N=r.N,r.N&&(r.N.P=t),r.N=t,r.R){for(r=r.R;r.L;)r=r.L;r.L=t}else r.R=t;i=r}else this._?(r=GH(this._),t.P=null,t.N=r,r.P=r.L=t,i=r):(t.P=t.N=null,this._=t,i=null);for(t.L=t.R=null,t.U=i,t.C=!0,r=t;i&&i.C;)i===(o=i.U).L?(a=o.R)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.R&&(fS(this,i),i=(r=i).U),i.C=!1,o.C=!0,hS(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(hS(this,i),i=(r=i).U),i.C=!1,o.C=!0,fS(this,o)),i=r.U;this._.C=!1},remove:function(r){r.N&&(r.N.P=r.P),r.P&&(r.P.N=r.N),r.N=r.P=null;var i,s,u,t=r.U,o=r.L,a=r.R;if(s=o?a?GH(a):o:a,t?t.L===r?t.L=s:t.R=s:this._=s,o&&a?(u=s.C,s.C=r.C,s.L=o,o.U=s,s!==a?(t=s.U,s.U=r.U,t.L=r=s.R,s.R=a,a.U=s):(s.U=t,t=s,r=s.R)):(u=r.C,r=s),r&&(r.U=t),!u){if(r&&r.C)return void(r.C=!1);do{if(r===this._)break;if(r===t.L){if((i=t.R).C&&(i.C=!1,t.C=!0,fS(this,t),i=t.R),i.L&&i.L.C||i.R&&i.R.C){(!i.R||!i.R.C)&&(i.L.C=!1,i.C=!0,hS(this,i),i=t.R),i.C=t.C,t.C=i.R.C=!1,fS(this,t),r=this._;break}}else if((i=t.L).C&&(i.C=!1,t.C=!0,hS(this,t),i=t.L),i.L&&i.L.C||i.R&&i.R.C){(!i.L||!i.L.C)&&(i.R.C=!1,i.C=!0,fS(this,i),i=t.L),i.C=t.C,t.C=i.L.C=!1,hS(this,t),r=this._;break}i.C=!0,r=t,t=t.U}while(!r.C);r&&(r.C=!1)}}};var YH=mZ;function mS(n,r,t,i){var o=[null,null],a=Cs.push(o)-1;return o.left=n,o.right=r,t&&LA(o,n,r,t),i&&LA(o,r,n,i),Yl[n.index].halfedges.push(a),Yl[r.index].halfedges.push(a),o}function vS(n,r,t){var i=[r,t];return i.left=n,i}function LA(n,r,t,i){n[0]||n[1]?n.left===t?n[1]=i:n[0]=i:(n[0]=i,n.left=r,n.right=t)}function Fne(n,r,t,i,o){var te,a=n[0],s=n[1],u=a[0],p=a[1],P=0,L=1,G=s[0]-u,Y=s[1]-p;if(te=r-u,G||!(te>0)){if(te/=G,G<0){if(te<P)return;te<L&&(L=te)}else if(G>0){if(te>L)return;te>P&&(P=te)}if(te=i-u,G||!(te<0)){if(te/=G,G<0){if(te>L)return;te>P&&(P=te)}else if(G>0){if(te<P)return;te<L&&(L=te)}if(te=t-p,Y||!(te>0)){if(te/=Y,Y<0){if(te<P)return;te<L&&(L=te)}else if(Y>0){if(te>L)return;te>P&&(P=te)}if(te=o-p,Y||!(te<0)){if(te/=Y,Y<0){if(te>L)return;te>P&&(P=te)}else if(Y>0){if(te<P)return;te<L&&(L=te)}return!(P>0)&&!(L<1)||(P>0&&(n[0]=[u+P*G,p+P*Y]),L<1&&(n[1]=[u+L*G,p+L*Y])),!0}}}}}function Bne(n,r,t,i,o){var a=n[1];if(a)return!0;var te,de,s=n[0],u=n.left,p=n.right,m=u[0],C=u[1],P=p[0],L=p[1],G=(m+P)/2;if(L===C){if(G<r||G>=i)return;if(m>P){if(s){if(s[1]>=o)return}else s=[G,t];a=[G,o]}else{if(s){if(s[1]<t)return}else s=[G,o];a=[G,t]}}else if(de=(C+L)/2-(te=(m-P)/(L-C))*G,te<-1||te>1)if(m>P){if(s){if(s[1]>=o)return}else s=[(t-de)/te,t];a=[(o-de)/te,o]}else{if(s){if(s[1]<t)return}else s=[(o-de)/te,o];a=[(t-de)/te,t]}else if(C<L){if(s){if(s[0]>=i)return}else s=[r,te*r+de];a=[i,te*i+de]}else{if(s){if(s[0]<r)return}else s=[i,te*i+de];a=[r,te*r+de]}return n[0]=s,n[1]=a,!0}function Vne(n,r){var t=n.site,i=r.left,o=r.right;return t===o&&(o=i,i=t),o?Math.atan2(o[1]-i[1],o[0]-i[0]):(t===i?(i=r[1],o=r[0]):(i=r[0],o=r[1]),Math.atan2(i[0]-o[0],o[1]-i[1]))}function JH(n,r){return r[+(r.left!==n.site)]}function qne(n,r){return r[+(r.left===n.site)]}var vZ,QH=[];function Wne(){ZA(this),this.x=this.y=this.arc=this.site=this.cy=null}function $_(n){var r=n.P,t=n.N;if(r&&t){var i=r.site,o=n.site,a=t.site;if(i!==a){var s=o[0],u=o[1],p=i[0]-s,m=i[1]-u,C=a[0]-s,P=a[1]-u,L=2*(p*P-m*C);if(!(L>=-Kne)){var G=p*p+m*m,Y=C*C+P*P,te=(P*G-m*Y)/L,de=(p*Y-C*G)/L,Me=QH.pop()||new Wne;Me.arc=n,Me.site=o,Me.x=te+s,Me.y=(Me.cy=de+u)+Math.sqrt(te*te+de*de),n.circle=Me;for(var st=null,tt=gS._;tt;)if(Me.y<tt.y||Me.y===tt.y&&Me.x<=tt.x){if(!tt.L){st=tt.P;break}tt=tt.L}else{if(!tt.R){st=tt;break}tt=tt.R}gS.insert(st,Me),st||(vZ=Me)}}}}function ey(n){var r=n.circle;r&&(r.P||(vZ=r.N),gS.remove(r),QH.push(r),ZA(r),n.circle=null)}var KH=[];function Gne(){ZA(this),this.edge=this.site=this.circle=null}function XH(n){var r=KH.pop()||new Gne;return r.site=n,r}function gZ(n){ey(n),ty.remove(n),KH.push(n),ZA(n)}function Yne(n){var r=n.circle,t=r.x,i=r.cy,o=[t,i],a=n.P,s=n.N,u=[n];gZ(n);for(var p=a;p.circle&&Math.abs(t-p.circle.x)<uo&&Math.abs(i-p.circle.cy)<uo;)a=p.P,u.unshift(p),gZ(p),p=a;u.unshift(p),ey(p);for(var m=s;m.circle&&Math.abs(t-m.circle.x)<uo&&Math.abs(i-m.circle.cy)<uo;)s=m.N,u.push(m),gZ(m),m=s;u.push(m),ey(m);var P,C=u.length;for(P=1;P<C;++P)LA((m=u[P]).edge,(p=u[P-1]).site,m.site,o);(m=u[C-1]).edge=mS((p=u[0]).site,m.site,null,o),$_(p),$_(m)}function Jne(n){for(var i,o,a,s,r=n[0],t=n[1],u=ty._;u;)if((a=$H(u,t)-r)>uo)u=u.L;else{if(!((s=r-Qne(u,t))>uo)){a>-uo?(i=u.P,o=u):s>-uo?(i=u,o=u.N):i=o=u;break}if(!u.R){i=u;break}u=u.R}!function(n){Yl[n.index]={site:n,halfedges:[]}}(n);var p=XH(n);if(ty.insert(i,p),i||o){if(i===o)return ey(i),o=XH(i.site),ty.insert(p,o),p.edge=o.edge=mS(i.site,p.site),$_(i),void $_(o);if(!o)return void(p.edge=mS(i.site,p.site));ey(i),ey(o);var m=i.site,C=m[0],P=m[1],L=n[0]-C,G=n[1]-P,Y=o.site,te=Y[0]-C,de=Y[1]-P,Me=2*(L*de-G*te),st=L*L+G*G,tt=te*te+de*de,at=[(de*st-G*tt)/Me+C,(L*tt-te*st)/Me+P];LA(o.edge,m,Y,at),p.edge=mS(m,n,null,at),o.edge=mS(n,Y,null,at),$_(i),$_(o)}}function $H(n,r){var t=n.site,i=t[0],o=t[1],a=o-r;if(!a)return i;var s=n.P;if(!s)return-1/0;var u=(t=s.site)[0],p=t[1],m=p-r;if(!m)return u;var C=u-i,P=1/a-1/m,L=C/m;return P?(-L+Math.sqrt(L*L-2*P*(C*C/(-2*m)-p+m/2+o-a/2)))/P+i:(i+u)/2}function Qne(n,r){var t=n.N;if(t)return $H(t,r);var i=n.site;return i[1]===r?i[0]:1/0}var ty,Yl,gS,Cs,uo=1e-6,Kne=1e-12;function Xne(n,r,t){return(n[0]-t[0])*(r[1]-n[1])-(n[0]-r[0])*(t[1]-n[1])}function $ne(n,r){return r[1]-n[1]||r[0]-n[0]}function _Z(n,r){var i,o,a,t=n.sort($ne).pop();for(Cs=[],Yl=new Array(n.length),ty=new YH,gS=new YH;;)if(a=vZ,t&&(!a||t[1]<a.y||t[1]===a.y&&t[0]<a.x))(t[0]!==i||t[1]!==o)&&(Jne(t),i=t[0],o=t[1]),t=n.pop();else{if(!a)break;Yne(a.arc)}if(function(){for(var t,i,o,a,n=0,r=Yl.length;n<r;++n)if((t=Yl[n])&&(a=(i=t.halfedges).length)){var s=new Array(a),u=new Array(a);for(o=0;o<a;++o)s[o]=o,u[o]=Vne(t,Cs[i[o]]);for(s.sort(function(p,m){return u[m]-u[p]}),o=0;o<a;++o)u[o]=i[s[o]];for(o=0;o<a;++o)i[o]=u[o]}}(),r){var s=+r[0][0],u=+r[0][1],p=+r[1][0],m=+r[1][1];(function(n,r,t,i){for(var a,o=Cs.length;o--;)Bne(a=Cs[o],n,r,t,i)&&Fne(a,n,r,t,i)&&(Math.abs(a[0][0]-a[1][0])>uo||Math.abs(a[0][1]-a[1][1])>uo)||delete Cs[o]})(s,u,p,m),function(n,r,t,i){var a,s,u,p,m,C,P,L,G,Y,te,de,o=Yl.length,Me=!0;for(a=0;a<o;++a)if(s=Yl[a]){for(u=s.site,p=(m=s.halfedges).length;p--;)Cs[m[p]]||m.splice(p,1);for(p=0,C=m.length;p<C;)te=(Y=qne(s,Cs[m[p]]))[0],de=Y[1],L=(P=JH(s,Cs[m[++p%C]]))[0],G=P[1],(Math.abs(te-L)>uo||Math.abs(de-G)>uo)&&(m.splice(p,0,Cs.push(vS(u,Y,Math.abs(te-n)<uo&&i-de>uo?[n,Math.abs(L-n)<uo?G:i]:Math.abs(de-i)<uo&&t-te>uo?[Math.abs(G-i)<uo?L:t,i]:Math.abs(te-t)<uo&&de-r>uo?[t,Math.abs(L-t)<uo?G:r]:Math.abs(de-r)<uo&&te-n>uo?[Math.abs(G-r)<uo?L:n,r]:null))-1),++C);C&&(Me=!1)}if(Me){var st,tt,at,pt=1/0;for(a=0,Me=null;a<o;++a)(s=Yl[a])&&(at=(st=(u=s.site)[0]-n)*st+(tt=u[1]-r)*tt)<pt&&(pt=at,Me=s);if(Me){var Je=[n,r],et=[n,i],It=[t,i],Et=[t,r];Me.halfedges.push(Cs.push(vS(u=Me.site,Je,et))-1,Cs.push(vS(u,et,It))-1,Cs.push(vS(u,It,Et))-1,Cs.push(vS(u,Et,Je))-1)}}for(a=0;a<o;++a)(s=Yl[a])&&(s.halfedges.length||delete Yl[a])}(s,u,p,m)}this.edges=Cs,this.cells=Yl,ty=gS=Cs=Yl=null}function ere(){var n=Zne,r=Lne,t=null;function i(o){return new _Z(o.map(function(a,s){var u=[Math.round(n(a,s,o)/uo)*uo,Math.round(r(a,s,o)/uo)*uo];return u.index=s,u.data=a,u}),t)}return i.polygons=function(o){return i(o).polygons()},i.links=function(o){return i(o).links()},i.triangles=function(o){return i(o).triangles()},i.x=function(o){return arguments.length?(n="function"==typeof o?o:WH(+o),i):n},i.y=function(o){return arguments.length?(r="function"==typeof o?o:WH(+o),i):r},i.extent=function(o){return arguments.length?(t=null==o?null:[[+o[0][0],+o[0][1]],[+o[1][0],+o[1][1]]],i):t&&[[t[0][0],t[0][1]],[t[1][0],t[1][1]]]},i.size=function(o){return arguments.length?(t=null==o?null:[[0,0],[+o[0],+o[1]]],i):t&&[t[1][0]-t[0][0],t[1][1]-t[0][1]]},i}function FA(n){return function(){return n}}function tre(n,r,t){this.target=n,this.type=r,this.transform=t}function mp(n,r,t){this.k=n,this.x=r,this.y=t}_Z.prototype={constructor:_Z,polygons:function(){var r=this.edges;return this.cells.map(function(t){var i=t.halfedges.map(function(o){return JH(t,r[o])});return i.data=t.site.data,i})},triangles:function(){var r=[],t=this.edges;return this.cells.forEach(function(i,o){if(p=(s=i.halfedges).length)for(var s,p,m,a=i.site,u=-1,C=t[s[p-1]],P=C.left===a?C.right:C.left;++u<p;)m=P,P=(C=t[s[u]]).left===a?C.right:C.left,m&&P&&o<m.index&&o<P.index&&Xne(a,m,P)<0&&r.push([a.data,m.data,P.data])}),r},links:function(){return this.edges.filter(function(r){return r.right}).map(function(r){return{source:r.left.data,target:r.right.data}})},find:function(r,t,i){for(var a,p,o=this,s=o._found||0,u=o.cells.length;!(p=o.cells[s]);)if(++s>=u)return null;var m=r-p.site[0],C=t-p.site[1],P=m*m+C*C;do{p=o.cells[a=s],s=null,p.halfedges.forEach(function(L){var G=o.edges[L],Y=G.left;if(Y!==p.site&&Y||(Y=G.right)){var te=r-Y[0],de=t-Y[1],Me=te*te+de*de;Me<P&&(P=Me,s=Y.index)}})}while(null!==s);return o._found=a,null==i||P<=i*i?p.site:null}},mp.prototype={constructor:mp,scale:function(r){return 1===r?this:new mp(this.k*r,this.x,this.y)},translate:function(r,t){return 0===r&0===t?this:new mp(this.k,this.x+this.k*r,this.y+this.k*t)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var BA=new mp(1,0,0);function eV(n){return n.__zoom||BA}function yZ(){On.stopImmediatePropagation()}function _S(){On.preventDefault(),On.stopImmediatePropagation()}function nre(){return!On.ctrlKey&&!On.button}function rre(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n).hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]:[[0,0],[n.clientWidth,n.clientHeight]]}function tV(){return this.__zoom||BA}function ire(){return-On.deltaY*(1===On.deltaMode?.05:On.deltaMode?1:.002)}function ore(){return navigator.maxTouchPoints||"ontouchstart"in this}function are(n,r,t){var i=n.invertX(r[0][0])-t[0][0],o=n.invertX(r[1][0])-t[1][0],a=n.invertY(r[0][1])-t[0][1],s=n.invertY(r[1][1])-t[1][1];return n.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function nV(){var C,P,n=nre,r=rre,t=are,i=ire,o=ore,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],u=250,p=t8,m=bm("start","zoom","end"),L=500,Y=0;function te(ot){ot.property("__zoom",tV).on("wheel.zoom",Je).on("mousedown.zoom",et).on("dblclick.zoom",It).filter(o).on("touchstart.zoom",Et).on("touchmove.zoom",pn).on("touchend.zoom touchcancel.zoom",Wt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function de(ot,Dt){return(Dt=Math.max(a[0],Math.min(a[1],Dt)))===ot.k?ot:new mp(Dt,ot.x,ot.y)}function Me(ot,Dt,mn){var dn=Dt[0]-mn[0]*ot.k,xn=Dt[1]-mn[1]*ot.k;return dn===ot.x&&xn===ot.y?ot:new mp(ot.k,dn,xn)}function st(ot){return[(+ot[0][0]+ +ot[1][0])/2,(+ot[0][1]+ +ot[1][1])/2]}function tt(ot,Dt,mn){ot.on("start.zoom",function(){at(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){at(this,arguments).end()}).tween("zoom",function(){var dn=this,xn=arguments,Fn=at(dn,xn),er=r.apply(dn,xn),mr=mn||st(er),jr=Math.max(er[1][0]-er[0][0],er[1][1]-er[0][1]),ir=dn.__zoom,Gr="function"==typeof Dt?Dt.apply(dn,xn):Dt,ai=p(ir.invert(mr).concat(jr/ir.k),Gr.invert(mr).concat(jr/Gr.k));return function(vr){if(1===vr)vr=Gr;else{var Bi=ai(vr),Bo=jr/Bi[2];vr=new mp(Bo,mr[0]-Bi[0]*Bo,mr[1]-Bi[1]*Bo)}Fn.zoom(null,vr)}})}function at(ot,Dt,mn){return!mn&&ot.__zooming||new pt(ot,Dt)}function pt(ot,Dt){this.that=ot,this.args=Dt,this.active=0,this.extent=r.apply(ot,Dt),this.taps=0}function Je(){if(n.apply(this,arguments)){var ot=at(this,arguments),Dt=this.__zoom,mn=Math.max(a[0],Math.min(a[1],Dt.k*Math.pow(2,i.apply(this,arguments)))),dn=Fs(this);Dt.k!==mn&&(ot.wheel?((ot.mouse[0][0]!==dn[0]||ot.mouse[0][1]!==dn[1])&&(ot.mouse[1]=Dt.invert(ot.mouse[0]=dn)),clearTimeout(ot.wheel)):(ot.mouse=[dn,Dt.invert(dn)],Bm(this),ot.start()),_S(),ot.wheel=setTimeout(xn,150),ot.zoom("mouse",t(Me(de(Dt,mn),ot.mouse[0],ot.mouse[1]),ot.extent,s)))}function xn(){ot.wheel=null,ot.end()}}function et(){if(!P&&n.apply(this,arguments)){var ot=at(this,arguments,!0),Dt=ni(On.view).on("mousemove.zoom",Fn,!0).on("mouseup.zoom",er,!0),mn=Fs(this),dn=On.clientX,xn=On.clientY;wm(On.view),yZ(),ot.mouse=[mn,this.__zoom.invert(mn)],Bm(this),ot.start()}function Fn(){if(_S(),!ot.moved){var mr=On.clientX-dn,jr=On.clientY-xn;ot.moved=mr*mr+jr*jr>Y}ot.zoom("mouse",t(Me(ot.that.__zoom,ot.mouse[0]=Fs(ot.that),ot.mouse[1]),ot.extent,s))}function er(){Dt.on("mousemove.zoom mouseup.zoom",null),A_(On.view,ot.moved),_S(),ot.end()}}function It(){if(n.apply(this,arguments)){var ot=this.__zoom,Dt=Fs(this),mn=ot.invert(Dt),dn=ot.k*(On.shiftKey?.5:2),xn=t(Me(de(ot,dn),Dt,mn),r.apply(this,arguments),s);_S(),u>0?ni(this).transition().duration(u).call(tt,xn,Dt):ni(this).call(te.transform,xn)}}function Et(){if(n.apply(this,arguments)){var dn,xn,Fn,er,ot=On.touches,Dt=ot.length,mn=at(this,arguments,On.changedTouches.length===Dt);for(yZ(),xn=0;xn<Dt;++xn)er=[er=M_(this,ot,(Fn=ot[xn]).identifier),this.__zoom.invert(er),Fn.identifier],mn.touch0?mn.touch1||(mn.touch1=er,mn.taps=0):(mn.touch0=er,dn=!0,mn.taps=1+!!C);C&&(C=clearTimeout(C)),dn&&(mn.taps<2&&(C=setTimeout(function(){C=null},L)),Bm(this),mn.start())}}function pn(){if(this.__zooming){var dn,xn,Fn,er,ot=at(this,arguments),Dt=On.changedTouches,mn=Dt.length;for(_S(),C&&(C=clearTimeout(C)),ot.taps=0,dn=0;dn<mn;++dn)Fn=M_(this,Dt,(xn=Dt[dn]).identifier),ot.touch0&&ot.touch0[2]===xn.identifier?ot.touch0[0]=Fn:ot.touch1&&ot.touch1[2]===xn.identifier&&(ot.touch1[0]=Fn);if(xn=ot.that.__zoom,ot.touch1){var mr=ot.touch0[0],jr=ot.touch0[1],ir=ot.touch1[0],Gr=ot.touch1[1],ai=(ai=ir[0]-mr[0])*ai+(ai=ir[1]-mr[1])*ai,vr=(vr=Gr[0]-jr[0])*vr+(vr=Gr[1]-jr[1])*vr;xn=de(xn,Math.sqrt(ai/vr)),Fn=[(mr[0]+ir[0])/2,(mr[1]+ir[1])/2],er=[(jr[0]+Gr[0])/2,(jr[1]+Gr[1])/2]}else{if(!ot.touch0)return;Fn=ot.touch0[0],er=ot.touch0[1]}ot.zoom("touch",t(Me(xn,Fn,er),ot.extent,s))}}function Wt(){if(this.__zooming){var dn,xn,ot=at(this,arguments),Dt=On.changedTouches,mn=Dt.length;for(yZ(),P&&clearTimeout(P),P=setTimeout(function(){P=null},L),dn=0;dn<mn;++dn)xn=Dt[dn],ot.touch0&&ot.touch0[2]===xn.identifier?delete ot.touch0:ot.touch1&&ot.touch1[2]===xn.identifier&&delete ot.touch1;if(ot.touch1&&!ot.touch0&&(ot.touch0=ot.touch1,delete ot.touch1),ot.touch0)ot.touch0[1]=this.__zoom.invert(ot.touch0[0]);else if(ot.end(),2===ot.taps){var Fn=ni(this).on("dblclick.zoom");Fn&&Fn.apply(this,arguments)}}}return te.transform=function(ot,Dt){var mn=ot.selection?ot.selection():ot;mn.property("__zoom",tV),ot!==mn?tt(ot,Dt):mn.interrupt().each(function(){at(this,arguments).start().zoom(null,"function"==typeof Dt?Dt.apply(this,arguments):Dt).end()})},te.scaleBy=function(ot,Dt){te.scaleTo(ot,function(){var mn=this.__zoom.k,dn="function"==typeof Dt?Dt.apply(this,arguments):Dt;return mn*dn})},te.scaleTo=function(ot,Dt){te.transform(ot,function(){var mn=r.apply(this,arguments),dn=this.__zoom,xn=st(mn),Fn=dn.invert(xn),er="function"==typeof Dt?Dt.apply(this,arguments):Dt;return t(Me(de(dn,er),xn,Fn),mn,s)})},te.translateBy=function(ot,Dt,mn){te.transform(ot,function(){return t(this.__zoom.translate("function"==typeof Dt?Dt.apply(this,arguments):Dt,"function"==typeof mn?mn.apply(this,arguments):mn),r.apply(this,arguments),s)})},te.translateTo=function(ot,Dt,mn){te.transform(ot,function(){var dn=r.apply(this,arguments),xn=this.__zoom,Fn=st(dn);return t(BA.translate(Fn[0],Fn[1]).scale(xn.k).translate("function"==typeof Dt?-Dt.apply(this,arguments):-Dt,"function"==typeof mn?-mn.apply(this,arguments):-mn),dn,s)})},pt.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Dt,mn){return this.mouse&&"mouse"!==Dt&&(this.mouse[1]=mn.invert(this.mouse[0])),this.touch0&&"touch"!==Dt&&(this.touch0[1]=mn.invert(this.touch0[0])),this.touch1&&"touch"!==Dt&&(this.touch1[1]=mn.invert(this.touch1[0])),this.that.__zoom=mn,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Dt){Rf(new tre(te,Dt,this.that.__zoom),m.apply,m,[Dt,this.that,this.args])}},te.wheelDelta=function(ot){return arguments.length?(i="function"==typeof ot?ot:FA(+ot),te):i},te.filter=function(ot){return arguments.length?(n="function"==typeof ot?ot:FA(!!ot),te):n},te.touchable=function(ot){return arguments.length?(o="function"==typeof ot?ot:FA(!!ot),te):o},te.extent=function(ot){return arguments.length?(r="function"==typeof ot?ot:FA([[+ot[0][0],+ot[0][1]],[+ot[1][0],+ot[1][1]]]),te):r},te.scaleExtent=function(ot){return arguments.length?(a[0]=+ot[0],a[1]=+ot[1],te):[a[0],a[1]]},te.translateExtent=function(ot){return arguments.length?(s[0][0]=+ot[0][0],s[1][0]=+ot[1][0],s[0][1]=+ot[0][1],s[1][1]=+ot[1][1],te):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},te.constrain=function(ot){return arguments.length?(t=ot,te):t},te.duration=function(ot){return arguments.length?(u=+ot,te):u},te.interpolate=function(ot){return arguments.length?(p=ot,te):p},te.on=function(){var ot=m.on.apply(m,arguments);return ot===m?te:ot},te.clickDistance=function(ot){return arguments.length?(Y=(ot=+ot)*ot,te):Math.sqrt(Y)},te}eV.prototype=mp.prototype;var sre=function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{key:"getD3",value:function(){return B}}]),n}(),yS=f(5041);function lre(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"linearGradient"),e._UZ(1,"stop",5),e._UZ(2,"stop",6),e.qZA()),2&n){var t=e.oxw(2);e.uIk("id",t.svg.outerLinearGradient.id),e.xp6(1),e.uIk("stop-color",t.svg.outerLinearGradient.colorStop1)("stop-opacity",1),e.xp6(1),e.uIk("stop-color",t.svg.outerLinearGradient.colorStop2)("stop-opacity",1)}}function ure(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"radialGradient"),e._UZ(1,"stop",5),e._UZ(2,"stop",6),e.qZA()),2&n){var t=e.oxw(2);e.uIk("id",t.svg.radialGradient.id),e.xp6(1),e.uIk("stop-color",t.svg.radialGradient.colorStop1)("stop-opacity",1),e.xp6(1),e.uIk("stop-color",t.svg.radialGradient.colorStop2)("stop-opacity",1)}}function cre(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle")),2&n){var t=e.oxw(3);e.uIk("cx",t.svg.backgroundCircle.cx)("cy",t.svg.backgroundCircle.cy)("r",t.svg.backgroundCircle.r)("fill",t.svg.backgroundCircle.fill)("fill-opacity",t.svg.backgroundCircle.fillOpacity)("stroke",t.svg.backgroundCircle.stroke)("stroke-width",t.svg.backgroundCircle.strokeWidth)}}function dre(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle")),2&n){var t=e.oxw(3);e.Q2q("fill","url(#",t.svg.radialGradient.id,")"),e.uIk("cx",t.svg.backgroundCircle.cx)("cy",t.svg.backgroundCircle.cy)("r",t.svg.backgroundCircle.r)("fill-opacity",t.svg.backgroundCircle.fillOpacity)("stroke",t.svg.backgroundCircle.stroke)("stroke-width",t.svg.backgroundCircle.strokeWidth)}}function pre(n,r){if(1&n&&(e.O4$(),e.ynx(0),e.YNc(1,cre,1,7,"circle",2),e.YNc(2,dre,1,7,"circle",2),e.BQk()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.options.backgroundGradient),e.xp6(1),e.Q6J("ngIf",t.options.backgroundGradient)}}function fre(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle")),2&n){var t=e.oxw(2);e.uIk("cx",t.svg.circle.cx)("cy",t.svg.circle.cy)("r",t.svg.circle.r)("fill",t.svg.circle.fill)("stroke",t.svg.circle.stroke)("stroke-width",t.svg.circle.strokeWidth)}}function hre(n,r){if(1&n&&(e.O4$(),e._UZ(0,"path")),2&n){var t=e.oxw(3);e.uIk("d",t.svg.path.d)("stroke",t.svg.path.stroke)("stroke-width",t.svg.path.strokeWidth)("stroke-linecap",t.svg.path.strokeLinecap)("fill",t.svg.path.fill)}}function mre(n,r){if(1&n&&(e.O4$(),e._UZ(0,"path")),2&n){var t=e.oxw(3);e.Q2q("stroke","url(#",t.svg.outerLinearGradient.id,")"),e.uIk("d",t.svg.path.d)("stroke-width",t.svg.path.strokeWidth)("stroke-linecap",t.svg.path.strokeLinecap)("fill",t.svg.path.fill)}}function vre(n,r){if(1&n&&(e.O4$(),e.ynx(0),e.YNc(1,hre,1,5,"path",2),e.YNc(2,mre,1,5,"path",2),e.BQk()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.options.outerStrokeGradient),e.xp6(1),e.Q6J("ngIf",t.options.outerStrokeGradient)}}function gre(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"tspan"),e._uU(1),e.qZA()),2&n){var t=r.$implicit,i=e.oxw(4);e.uIk("x",i.svg.title.x)("y",i.svg.title.y)("dy",t.dy)("font-size",i.svg.title.fontSize)("font-weight",i.svg.title.fontWeight)("fill",i.svg.title.color),e.xp6(1),e.Oqu(t.span)}}function _re(n,r){if(1&n&&(e.O4$(),e.ynx(0),e.YNc(1,gre,2,7,"tspan",8),e.BQk()),2&n){var t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.svg.title.tspans)}}function yre(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"tspan"),e._uU(1),e.qZA()),2&n){var t=e.oxw(3);e.uIk("font-size",t.svg.units.fontSize)("font-weight",t.svg.units.fontWeight)("fill",t.svg.units.color),e.xp6(1),e.Oqu(t.svg.units.text)}}function bre(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"tspan"),e._uU(1),e.qZA()),2&n){var t=r.$implicit,i=e.oxw(4);e.uIk("x",i.svg.subtitle.x)("y",i.svg.subtitle.y)("dy",t.dy)("font-size",i.svg.subtitle.fontSize)("font-weight",i.svg.subtitle.fontWeight)("fill",i.svg.subtitle.color),e.xp6(1),e.Oqu(t.span)}}function Cre(n,r){if(1&n&&(e.O4$(),e.ynx(0),e.YNc(1,bre,2,7,"tspan",8),e.BQk()),2&n){var t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.svg.subtitle.tspans)}}function Sre(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"text",7),e.YNc(1,_re,2,1,"ng-container",2),e.YNc(2,yre,2,4,"tspan",2),e.YNc(3,Cre,2,1,"ng-container",2),e.qZA()),2&n){var t=e.oxw(2);e.uIk("x",t.svg.circle.cx)("y",t.svg.circle.cy)("text-anchor",t.svg.title.textAnchor),e.xp6(1),e.Q6J("ngIf",t.options.showTitle),e.xp6(1),e.Q6J("ngIf",t.options.showUnits),e.xp6(1),e.Q6J("ngIf",t.options.showSubtitle)}}function Tre(n,r){if(1&n&&(e.O4$(),e._UZ(0,"image",9)),2&n){var t=e.oxw(2);e.uIk("height",t.svg.image.height)("width",t.svg.image.width)("href",t.svg.image.src,null,"xlink")("x",t.svg.image.x)("y",t.svg.image.y)}}function xre(n,r){if(1&n){var t=e.EpF();e.O4$(),e.TgZ(0,"svg",1),e.NdJ("click",function(a){return e.CHM(t),e.oxw().emitClickEvent(a)}),e.TgZ(1,"defs"),e.YNc(2,lre,3,5,"linearGradient",2),e.YNc(3,ure,3,5,"radialGradient",2),e.qZA(),e.YNc(4,pre,3,2,"ng-container",2),e.YNc(5,fre,1,6,"circle",2),e.YNc(6,vre,3,2,"ng-container",2),e.YNc(7,Sre,4,6,"text",3),e.YNc(8,Tre,1,5,"image",4),e.qZA()}if(2&n){var i=e.oxw();e.uIk("viewBox",i.svg.viewBox)("height",i.svg.height)("width",i.svg.width)("class",i.options.class),e.xp6(2),e.Q6J("ngIf",i.options.outerStrokeGradient),e.xp6(1),e.Q6J("ngIf",i.options.backgroundGradient),e.xp6(1),e.Q6J("ngIf",i.options.showBackground),e.xp6(1),e.Q6J("ngIf",i.options.showInnerStroke),e.xp6(1),e.Q6J("ngIf",0!=+i.options.percent||i.options.showZeroOuterStroke),e.xp6(1),e.Q6J("ngIf",!i.options.showImage&&(i.options.showTitle||i.options.showUnits||i.options.showSubtitle)),e.xp6(1),e.Q6J("ngIf",i.options.showImage)}}var n,UA=function n(){(0,g.Z)(this,n),this.class="",this.backgroundGradient=!1,this.backgroundColor="transparent",this.backgroundGradientStopColor="transparent",this.backgroundOpacity=1,this.backgroundStroke="transparent",this.backgroundStrokeWidth=0,this.backgroundPadding=5,this.percent=0,this.radius=90,this.space=4,this.toFixed=0,this.maxPercent=1e3,this.renderOnClick=!0,this.units="%",this.unitsFontSize="10",this.unitsFontWeight="normal",this.unitsColor="#444444",this.outerStrokeGradient=!1,this.outerStrokeWidth=8,this.outerStrokeColor="#78C000",this.outerStrokeGradientStopColor="transparent",this.outerStrokeLinecap="round",this.innerStrokeColor="#C7E596",this.innerStrokeWidth=4,this.titleFormat=void 0,this.title="auto",this.titleColor="#444444",this.titleFontSize="20",this.titleFontWeight="normal",this.subtitleFormat=void 0,this.subtitle="progress",this.subtitleColor="#A9A9A9",this.subtitleFontSize="10",this.subtitleFontWeight="normal",this.imageSrc=void 0,this.imageHeight=void 0,this.imageWidth=void 0,this.animation=!0,this.animateTitle=!0,this.animateSubtitle=!1,this.animationDuration=500,this.showTitle=!0,this.showSubtitle=!0,this.showUnits=!0,this.showImage=!1,this.showBackground=!0,this.showInnerStroke=!0,this.clockwise=!0,this.responsive=!1,this.startFromZero=!0,this.showZeroOuterStroke=!0,this.lazy=!1},wre=function(){var n=function(){function r(t,i,o){var a=this;(0,g.Z)(this,r),this.elRef=i,this.document=o,this.onClick=new e.vpe,this.svgElement=null,this.isInViewport=!1,this.onViewportChanged=new e.vpe,this._viewportChangedSubscriber=null,this.options=new UA,this.defaultOptions=new UA,this._lastPercent=0,this._gradientUUID=null,this.render=function(){a.applyOptions(),a.options.lazy?(null===a.svgElement&&a.draw(a._lastPercent),a.isInViewport&&(a.options.animation&&a.options.animationDuration>0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)):(a.options.animation&&a.options.animationDuration>0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)},this.polarToCartesian=function(s,u,p,m){var C=m*Math.PI/180;return{x:s+Math.sin(C)*p,y:u-Math.cos(C)*p}},this.draw=function(s){var u=(s=void 0===s?a.options.percent:Math.abs(s))>100?100:s,p=2*a.options.radius+2*a.options.outerStrokeWidth;a.options.showBackground&&(p+=2*a.options.backgroundStrokeWidth+a.max(0,2*a.options.backgroundPadding));var L,G,m={x:p/2,y:p/2},C={x:m.x,y:m.y-a.options.radius},P=a.polarToCartesian(m.x,m.y,a.options.radius,360*(a.options.clockwise?u:100-u)/100);if(100===u&&(P.x=P.x+(a.options.clockwise?-.01:.01)),u>50){var te=(0,b.Z)(a.options.clockwise?[1,1]:[1,0],2);L=te[0],G=te[1]}else{var Me=(0,b.Z)(a.options.clockwise?[0,1]:[0,0],2);L=Me[0],G=Me[1]}var st=a.options.animateTitle?s:a.options.percent,tt=st>a.options.maxPercent?"".concat(a.options.maxPercent.toFixed(a.options.toFixed),"+"):st.toFixed(a.options.toFixed),at=a.options.animateSubtitle?s:a.options.percent,pt={x:m.x,y:m.y,textAnchor:"middle",color:a.options.titleColor,fontSize:a.options.titleFontSize,fontWeight:a.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.titleFormat&&"Function"===a.options.titleFormat.constructor.name){var Je=a.options.titleFormat(st);Je instanceof Array?pt.texts=(0,v.Z)(Je):pt.texts.push(Je.toString())}else"auto"===a.options.title?pt.texts.push(tt):a.options.title instanceof Array?pt.texts=(0,v.Z)(a.options.title):pt.texts.push(a.options.title.toString());var et={x:m.x,y:m.y,textAnchor:"middle",color:a.options.subtitleColor,fontSize:a.options.subtitleFontSize,fontWeight:a.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.subtitleFormat&&"Function"===a.options.subtitleFormat.constructor.name){var It=a.options.subtitleFormat(at);It instanceof Array?et.texts=(0,v.Z)(It):et.texts.push(It.toString())}else a.options.subtitle instanceof Array?et.texts=(0,v.Z)(a.options.subtitle):et.texts.push(a.options.subtitle.toString());var Et={text:"".concat(a.options.units),fontSize:a.options.unitsFontSize,fontWeight:a.options.unitsFontWeight,color:a.options.unitsColor},pn=0,Wt=1;if(a.options.showTitle&&(pn+=pt.texts.length),a.options.showSubtitle&&(pn+=et.texts.length),a.options.showTitle){var Dt,ot=(0,_.Z)(pt.texts);try{for(ot.s();!(Dt=ot.n()).done;)pt.tspans.push({span:Dt.value,dy:a.getRelativeY(Wt,pn)}),Wt++}catch(er){ot.e(er)}finally{ot.f()}}if(a.options.showSubtitle){var xn,dn=(0,_.Z)(et.texts);try{for(dn.s();!(xn=dn.n()).done;)et.tspans.push({span:xn.value,dy:a.getRelativeY(Wt,pn)}),Wt++}catch(er){dn.e(er)}finally{dn.f()}}null===a._gradientUUID&&(a._gradientUUID=a.uuid()),a.svg={viewBox:"0 0 ".concat(p," ").concat(p),width:a.options.responsive?"100%":p,height:a.options.responsive?"100%":p,backgroundCircle:{cx:m.x,cy:m.y,r:a.options.radius+a.options.outerStrokeWidth/2+a.options.backgroundPadding,fill:a.options.backgroundColor,fillOpacity:a.options.backgroundOpacity,stroke:a.options.backgroundStroke,strokeWidth:a.options.backgroundStrokeWidth},path:{d:"M ".concat(C.x," ").concat(C.y,"\n A ").concat(a.options.radius," ").concat(a.options.radius," 0 ").concat(L," ").concat(G," ").concat(P.x," ").concat(P.y),stroke:a.options.outerStrokeColor,strokeWidth:a.options.outerStrokeWidth,strokeLinecap:a.options.outerStrokeLinecap,fill:"none"},circle:{cx:m.x,cy:m.y,r:a.options.radius-a.options.space-a.options.outerStrokeWidth/2-a.options.innerStrokeWidth/2,fill:"none",stroke:a.options.innerStrokeColor,strokeWidth:a.options.innerStrokeWidth},title:pt,units:Et,subtitle:et,image:{x:m.x-a.options.imageWidth/2,y:m.y-a.options.imageHeight/2,src:a.options.imageSrc,width:a.options.imageWidth,height:a.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+a._gradientUUID,colorStop1:a.options.outerStrokeColor,colorStop2:"transparent"===a.options.outerStrokeGradientStopColor?"#FFF":a.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+a._gradientUUID,colorStop1:a.options.backgroundColor,colorStop2:"transparent"===a.options.backgroundGradientStopColor?"#FFF":a.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(s,u){var m,C,P,L=a.options.startFromZero||s<0?0:s,G=u<0?0:a.min(u,a.options.maxPercent),Y=Math.abs(Math.round(G-L));return Y>=100?(m=100,C=a.options.animateTitle||a.options.animateSubtitle?Math.round(Y/m):1):(m=Y,C=1),(P=Math.round(a.options.animationDuration/m))<10&&(m=a.options.animationDuration/(P=10),C=!a.options.animateTitle&&!a.options.animateSubtitle&&Y>100?Math.round(100/m):Math.round(Y/m)),C<1&&(C=1),{times:m,step:C,interval:P}},this.animate=function(s,u){a._timerSubscription&&!a._timerSubscription.closed&&a._timerSubscription.unsubscribe();var p=a.options.startFromZero?0:s,m=u,C=a.getAnimationParameters(p,m),P=C.step,L=C.interval,G=p;a._timerSubscription=p<m?(0,yS.H)(0,L).subscribe(function(){(G+=P)<=m?!a.options.animateTitle&&!a.options.animateSubtitle&&G>=100?(a.draw(m),a._timerSubscription.unsubscribe()):a.draw(G):(a.draw(m),a._timerSubscription.unsubscribe())}):(0,yS.H)(0,L).subscribe(function(){(G-=P)>=m?!a.options.animateTitle&&!a.options.animateSubtitle&&m>=100?(a.draw(m),a._timerSubscription.unsubscribe()):a.draw(G):(a.draw(m),a._timerSubscription.unsubscribe())})},this.emitClickEvent=function(s){a.options.renderOnClick&&a.animate(0,a.options.percent),a.onClick.emit(s)},this.applyOptions=function(){for(var s=0,u=Object.keys(a.options);s<u.length;s++){var p=u[s];a.hasOwnProperty(p)&&void 0!==a[p]?a.options[p]=a[p]:a.templateOptions&&void 0!==a.templateOptions[p]&&(a.options[p]=a.templateOptions[p])}a.options.radius=Math.abs(+a.options.radius),a.options.space=+a.options.space,a.options.percent=+a.options.percent>0?+a.options.percent:0,a.options.maxPercent=Math.abs(+a.options.maxPercent),a.options.animationDuration=Math.abs(a.options.animationDuration),a.options.outerStrokeWidth=Math.abs(+a.options.outerStrokeWidth),a.options.innerStrokeWidth=Math.abs(+a.options.innerStrokeWidth),a.options.backgroundPadding=+a.options.backgroundPadding},this.getRelativeY=function(s,u){return(1*(s-u/2)-.18).toFixed(2)+"em"},this.min=function(s,u){return s<u?s:u},this.max=function(s,u){return s>u?s:u},this.uuid=function(){var s=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(p){var m=(s+16*Math.random())%16|0;return s=Math.floor(s/16),("x"==p?m:3&m|8).toString(16)})},this.findSvgElement=function(){if(null===this.svgElement){var s=this.elRef.nativeElement.getElementsByTagName("svg");s.length>0&&(this.svgElement=s[0])}},this.checkViewport=function(){a.findSvgElement();var s=a.isInViewport;a.isInViewport=a.isElementInViewport(a.svgElement),s!==a.isInViewport&&a.onViewportChanged.emit({oldValue:s,newValue:a.isInViewport})},this.onScroll=function(s){a.checkViewport()},this.loadEventsForLazyMode=function(){if(a.options.lazy){a.document.addEventListener("scroll",a.onScroll,!0),a.window.addEventListener("resize",a.onScroll,!0),null===a._viewportChangedSubscriber&&(a._viewportChangedSubscriber=a.onViewportChanged.subscribe(function(u){u.newValue&&a.render()}));var s=(0,yS.H)(0,50).subscribe(function(){null===a.svgElement?a.checkViewport():s.unsubscribe()})}},this.unloadEventsForLazyMode=function(){a.document.removeEventListener("scroll",a.onScroll,!0),a.window.removeEventListener("resize",a.onScroll,!0),null!==a._viewportChangedSubscriber&&(a._viewportChangedSubscriber.unsubscribe(),a._viewportChangedSubscriber=null)},this.document=o,this.window=this.document.defaultView,Object.assign(this.options,t),Object.assign(this.defaultOptions,t)}return(0,T.Z)(r,[{key:"isDrawing",value:function(){return this._timerSubscription&&!this._timerSubscription.closed}},{key:"isElementInViewport",value:function(i){if(null==i)return!1;var s,o=i.getBoundingClientRect(),a=i.parentNode;do{if(s=a.getBoundingClientRect(),o.top>=s.bottom||o.bottom<=s.top||o.left>=s.right||o.right<=s.left)return!1;a=a.parentNode}while(a!=this.document.body);return!(o.top>=(this.window.innerHeight||this.document.documentElement.clientHeight)||o.bottom<=0||o.left>=(this.window.innerWidth||this.document.documentElement.clientWidth)||o.right<=0)}},{key:"ngOnInit",value:function(){this.loadEventsForLazyMode()}},{key:"ngOnDestroy",value:function(){this.unloadEventsForLazyMode()}},{key:"ngOnChanges",value:function(i){this.render(),"lazy"in i&&(i.lazy.currentValue?this.loadEventsForLazyMode():this.unloadEventsForLazyMode())}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(UA),e.Y36(e.SBq),e.Y36(kt.K0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["circle-progress"]],inputs:{name:"name",class:"class",backgroundGradient:"backgroundGradient",backgroundColor:"backgroundColor",backgroundGradientStopColor:"backgroundGradientStopColor",backgroundOpacity:"backgroundOpacity",backgroundStroke:"backgroundStroke",backgroundStrokeWidth:"backgroundStrokeWidth",backgroundPadding:"backgroundPadding",radius:"radius",space:"space",percent:"percent",toFixed:"toFixed",maxPercent:"maxPercent",renderOnClick:"renderOnClick",units:"units",unitsFontSize:"unitsFontSize",unitsFontWeight:"unitsFontWeight",unitsColor:"unitsColor",outerStrokeGradient:"outerStrokeGradient",outerStrokeWidth:"outerStrokeWidth",outerStrokeColor:"outerStrokeColor",outerStrokeGradientStopColor:"outerStrokeGradientStopColor",outerStrokeLinecap:"outerStrokeLinecap",innerStrokeColor:"innerStrokeColor",innerStrokeWidth:"innerStrokeWidth",titleFormat:"titleFormat",title:"title",titleColor:"titleColor",titleFontSize:"titleFontSize",titleFontWeight:"titleFontWeight",subtitleFormat:"subtitleFormat",subtitle:"subtitle",subtitleColor:"subtitleColor",subtitleFontSize:"subtitleFontSize",subtitleFontWeight:"subtitleFontWeight",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",animation:"animation",animateTitle:"animateTitle",animateSubtitle:"animateSubtitle",animationDuration:"animationDuration",showTitle:"showTitle",showSubtitle:"showSubtitle",showUnits:"showUnits",showImage:"showImage",showBackground:"showBackground",showInnerStroke:"showInnerStroke",clockwise:"clockwise",responsive:"responsive",startFromZero:"startFromZero",showZeroOuterStroke:"showZeroOuterStroke",lazy:"lazy",templateOptions:["options","templateOptions"]},outputs:{onClick:"onClick"},features:[e.TTD],decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click"],[4,"ngIf"],["alignment-baseline","baseline",4,"ngIf"],["preserveAspectRatio","none",4,"ngIf"],["offset","5%"],["offset","95%"],["alignment-baseline","baseline"],[4,"ngFor","ngForOf"],["preserveAspectRatio","none"]],template:function(t,i){1&t&&e.YNc(0,xre,9,11,"svg",0),2&t&&e.Q6J("ngIf",i.svg)},directives:[kt.O5,kt.sg],encapsulation:2}),n}(),Ere=function(){var n=function(){function r(){(0,g.Z)(this,r)}return(0,T.Z)(r,null,[{key:"forRoot",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[{provide:UA,useValue:i}]}}}]),r}();return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[kt.ez]]}),n}(),bZ=function(){function n(r){(0,g.Z)(this,n),this.rawFile=r;var i=function(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}(r)?r.value:r;this["_createFrom"+("string"==typeof i?"FakePath":"Object")](i)}return(0,T.Z)(n,[{key:"_createFromFakePath",value:function(t){this.lastModifiedDate=void 0,this.size=void 0,this.type="like/"+t.slice(t.lastIndexOf(".")+1).toLowerCase(),this.name=t.slice(t.lastIndexOf("/")+t.lastIndexOf("\\")+2)}},{key:"_createFromObject",value:function(t){this.size=t.size,this.type=t.type,this.name=t.name}}]),n}(),Mre=function(){function n(r,t,i){(0,g.Z)(this,n),this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.index=void 0,this.uploader=r,this.some=t,this.options=i,this.file=new bZ(t),this._file=t,r.options&&(this.method=r.options.method||"POST",this.alias=r.options.itemAlias||"file"),this.url=r.options.url}return(0,T.Z)(n,[{key:"upload",value:function(){try{this.uploader.uploadItem(this)}catch(t){this.uploader._onCompleteItem(this,"",0,{}),this.uploader._onErrorItem(this,"",0,{})}}},{key:"cancel",value:function(){this.uploader.cancelItem(this)}},{key:"remove",value:function(){this.uploader.removeFromQueue(this)}},{key:"onBeforeUpload",value:function(){}},{key:"onBuildForm",value:function(t){return{form:t}}},{key:"onProgress",value:function(t){return{progress:t}}},{key:"onSuccess",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"onError",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"onCancel",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"onComplete",value:function(t,i,o){return{response:t,status:i,headers:o}}},{key:"_onBeforeUpload",value:function(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}},{key:"_onBuildForm",value:function(t){this.onBuildForm(t)}},{key:"_onProgress",value:function(t){this.progress=t,this.onProgress(t)}},{key:"_onSuccess",value:function(t,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=void 0,this.onSuccess(t,i,o)}},{key:"_onError",value:function(t,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=void 0,this.onError(t,i,o)}},{key:"_onCancel",value:function(t,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=void 0,this.onCancel(t,i,o)}},{key:"_onComplete",value:function(t,i,o){this.onComplete(t,i,o),this.uploader.options.removeAfterUpload&&this.remove()}},{key:"_prepareToUploading",value:function(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}]),n}(),Are=function(){var n=function(){function r(){(0,g.Z)(this,r)}return(0,T.Z)(r,null,[{key:"getMimeClass",value:function(i){var o="application";return-1!==this.mime_psd.indexOf(i.type)||i.type.match("image.*")?o="image":i.type.match("video.*")?o="video":i.type.match("audio.*")?o="audio":"application/pdf"===i.type?o="pdf":-1!==this.mime_compress.indexOf(i.type)?o="compress":-1!==this.mime_doc.indexOf(i.type)?o="doc":-1!==this.mime_xsl.indexOf(i.type)?o="xls":-1!==this.mime_ppt.indexOf(i.type)&&(o="ppt"),"application"===o&&(o=this.fileTypeDetection(i.name)),o}},{key:"fileTypeDetection",value:function(i){var o={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},a=i.split(".");if(a.length<2)return"application";var s=a[a.length-1].toLowerCase();return void 0===o[s]?"application":o[s]}}]),r}();return n.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"],n.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],n.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],n.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],n.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"],n}(),tv=function(){function n(r){(0,g.Z)(this,n),this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:function(i){return i._file},formatDataFunctionIsAsync:!1},this.setOptions(r),this.response=new e.vpe}return(0,T.Z)(n,[{key:"setOptions",value:function(t){this.options=Object.assign(this.options,t),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,this.options.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&this.options.filters.unshift({name:"fileSize",fn:this._fileSizeFilter}),this.options.allowedFileType&&this.options.filters.unshift({name:"fileType",fn:this._fileTypeFilter}),this.options.allowedMimeType&&this.options.filters.unshift({name:"mimeType",fn:this._mimeTypeFilter});for(var i=0;i<this.queue.length;i++)this.queue[i].url=this.options.url}},{key:"addToQueue",value:function(t,i,o){var p,a=this,s=[],u=(0,_.Z)(t);try{for(u.s();!(p=u.n()).done;)s.push(p.value)}catch(G){u.e(G)}finally{u.f()}var C=this._getFilters(o),P=this.queue.length,L=[];s.map(function(G){i||(i=a.options);var Y=new bZ(G);if(a._isValidFile(Y,C,i)){var te=new Mre(a,G,i);L.push(te),a.queue.push(te),a._onAfterAddingFile(te)}else a._onWhenAddingFileFailed(Y,C[a._failFilterIndex],i)}),this.queue.length!==P&&(this._onAfterAddingAll(L),this.progress=this._getTotalProgress()),this._render(),this.options.autoUpload&&this.uploadAll()}},{key:"removeFromQueue",value:function(t){var i=this.getIndexOfItem(t),o=this.queue[i];o.isUploading&&o.cancel(),this.queue.splice(i,1),this.progress=this._getTotalProgress()}},{key:"clearQueue",value:function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}},{key:"uploadItem",value:function(t){var i=this.getIndexOfItem(t),o=this.queue[i],a=this.options.isHTML5?"_xhrTransport":"_iframeTransport";o._prepareToUploading(),!this.isUploading&&(this.isUploading=!0,this[a](o))}},{key:"cancelItem",value:function(t){var i=this.getIndexOfItem(t),o=this.queue[i];o&&o.isUploading&&(this.options.isHTML5?o._xhr:o._form).abort()}},{key:"uploadAll",value:function(){var t=this.getNotUploadedItems().filter(function(i){return!i.isUploading});!t.length||(t.map(function(i){return i._prepareToUploading()}),t[0].upload())}},{key:"cancelAll",value:function(){this.getNotUploadedItems().map(function(i){return i.cancel()})}},{key:"isFile",value:function(t){return function(n){return File&&n instanceof File}(t)}},{key:"isFileLikeObject",value:function(t){return t instanceof bZ}},{key:"getIndexOfItem",value:function(t){return"number"==typeof t?t:this.queue.indexOf(t)}},{key:"getNotUploadedItems",value:function(){return this.queue.filter(function(t){return!t.isUploaded})}},{key:"getReadyItems",value:function(){return this.queue.filter(function(t){return t.isReady&&!t.isUploading}).sort(function(t,i){return t.index-i.index})}},{key:"destroy",value:function(){}},{key:"onAfterAddingAll",value:function(t){return{fileItems:t}}},{key:"onBuildItemForm",value:function(t,i){return{fileItem:t,form:i}}},{key:"onAfterAddingFile",value:function(t){return{fileItem:t}}},{key:"onWhenAddingFileFailed",value:function(t,i,o){return{item:t,filter:i,options:o}}},{key:"onBeforeUploadItem",value:function(t){return{fileItem:t}}},{key:"onProgressItem",value:function(t,i){return{fileItem:t,progress:i}}},{key:"onProgressAll",value:function(t){return{progress:t}}},{key:"onSuccessItem",value:function(t,i,o,a){return{item:t,response:i,status:o,headers:a}}},{key:"onErrorItem",value:function(t,i,o,a){return{item:t,response:i,status:o,headers:a}}},{key:"onCancelItem",value:function(t,i,o,a){return{item:t,response:i,status:o,headers:a}}},{key:"onCompleteItem",value:function(t,i,o,a){return{item:t,response:i,status:o,headers:a}}},{key:"onCompleteAll",value:function(){}},{key:"_mimeTypeFilter",value:function(t){return!(this.options.allowedMimeType&&-1===this.options.allowedMimeType.indexOf(t.type))}},{key:"_fileSizeFilter",value:function(t){return!(this.options.maxFileSize&&t.size>this.options.maxFileSize)}},{key:"_fileTypeFilter",value:function(t){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(Are.getMimeClass(t)))}},{key:"_onErrorItem",value:function(t,i,o,a){t._onError(i,o,a),this.onErrorItem(t,i,o,a)}},{key:"_onCompleteItem",value:function(t,i,o,a){t._onComplete(i,o,a),this.onCompleteItem(t,i,o,a);var s=this.getReadyItems()[0];this.isUploading=!1,s?s.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}},{key:"_headersGetter",value:function(t){return function(i){return i?t[i.toLowerCase()]||void 0:t}}},{key:"_xhrTransport",value:function(t){var s,i=this,o=this,a=t._xhr=new XMLHttpRequest;if(this._onBeforeUploadItem(t),"number"!=typeof t._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)s=this.options.formatDataFunction(t);else{s=new FormData,this._onBuildItemForm(t,s);var u=function(){return s.append(t.alias,t._file,t.file.name)};this.options.parametersBeforeFiles||u(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach(function(Y){var te=i.options.additionalParameter[Y];"string"==typeof te&&te.indexOf("{{file_name}}")>=0&&(te=te.replace("{{file_name}}",t.file.name)),s.append(Y,te)}),this.options.parametersBeforeFiles&&u()}if(a.upload.onprogress=function(Y){var te=Math.round(Y.lengthComputable?100*Y.loaded/Y.total:0);i._onProgressItem(t,te)},a.onload=function(){var Y=i._parseHeaders(a.getAllResponseHeaders()),te=i._transformResponse(a.response,Y),de=i._isSuccessCode(a.status)?"Success":"Error";i["_on"+de+"Item"](t,te,a.status,Y),i._onCompleteItem(t,te,a.status,Y)},a.onerror=function(){var Y=i._parseHeaders(a.getAllResponseHeaders()),te=i._transformResponse(a.response,Y);i._onErrorItem(t,te,a.status,Y),i._onCompleteItem(t,te,a.status,Y)},a.onabort=function(){var Y=i._parseHeaders(a.getAllResponseHeaders()),te=i._transformResponse(a.response,Y);i._onCancelItem(t,te,a.status,Y),i._onCompleteItem(t,te,a.status,Y)},a.open(t.method,t.url,!0),a.withCredentials=t.withCredentials,this.options.headers){var m,p=(0,_.Z)(this.options.headers);try{for(p.s();!(m=p.n()).done;){var C=m.value;a.setRequestHeader(C.name,C.value)}}catch(Y){p.e(Y)}finally{p.f()}}if(t.headers.length){var L,P=(0,_.Z)(t.headers);try{for(P.s();!(L=P.n()).done;){var G=L.value;a.setRequestHeader(G.name,G.value)}}catch(Y){P.e(Y)}finally{P.f()}}this.authToken&&a.setRequestHeader(this.authTokenHeader,this.authToken),a.onreadystatechange=function(){a.readyState==XMLHttpRequest.DONE&&o.response.emit(a.responseText)},this.options.formatDataFunctionIsAsync?s.then(function(Y){return a.send(JSON.stringify(Y))}):a.send(s),this._render()}},{key:"_getTotalProgress",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.options.removeAfterUpload)return t;var i=this.getNotUploadedItems().length,o=i?this.queue.length-i:this.queue.length,a=100/this.queue.length,s=t*a/100;return Math.round(o*a+s)}},{key:"_getFilters",value:function(t){if(!t)return this.options.filters;if(Array.isArray(t))return t;if("string"==typeof t){var i=t.match(/[^\s,]+/g);return this.options.filters.filter(function(o){return-1!==i.indexOf(o.name)})}return this.options.filters}},{key:"_render",value:function(){}},{key:"_queueLimitFilter",value:function(){return void 0===this.options.queueLimit||this.queue.length<this.options.queueLimit}},{key:"_isValidFile",value:function(t,i,o){var a=this;return this._failFilterIndex=-1,!i.length||i.every(function(s){return a._failFilterIndex++,s.fn.call(a,t,o)})}},{key:"_isSuccessCode",value:function(t){return t>=200&&t<300||304===t}},{key:"_transformResponse",value:function(t,i){return t}},{key:"_parseHeaders",value:function(t){var o,a,s,i={};return t&&t.split("\n").map(function(u){s=u.indexOf(":"),o=u.slice(0,s).trim().toLowerCase(),a=u.slice(s+1).trim(),o&&(i[o]=i[o]?i[o]+", "+a:a)}),i}},{key:"_onWhenAddingFileFailed",value:function(t,i,o){this.onWhenAddingFileFailed(t,i,o)}},{key:"_onAfterAddingFile",value:function(t){this.onAfterAddingFile(t)}},{key:"_onAfterAddingAll",value:function(t){this.onAfterAddingAll(t)}},{key:"_onBeforeUploadItem",value:function(t){t._onBeforeUpload(),this.onBeforeUploadItem(t)}},{key:"_onBuildItemForm",value:function(t,i){t._onBuildForm(i),this.onBuildItemForm(t,i)}},{key:"_onProgressItem",value:function(t,i){var o=this._getTotalProgress(i);this.progress=o,t._onProgress(i),this.onProgressItem(t,i),this.onProgressAll(o),this._render()}},{key:"_onSuccessItem",value:function(t,i,o,a){t._onSuccess(i,o,a),this.onSuccessItem(t,i,o,a)}},{key:"_onCancelItem",value:function(t,i,o,a){t._onCancel(i,o,a),this.onCancelItem(t,i,o,a)}}]),n}(),bS=function(){var n=function(){function r(t){(0,g.Z)(this,r),this.onFileSelected=new e.vpe,this.element=t}return(0,T.Z)(r,[{key:"getOptions",value:function(){return this.uploader.options}},{key:"getFilters",value:function(){return{}}},{key:"isEmptyAfterSelection",value:function(){return!!this.element.nativeElement.attributes.multiple}},{key:"onChange",value:function(){var i=this.element.nativeElement.files,o=this.getOptions(),a=this.getFilters();this.uploader.addToQueue(i,o,a),this.onFileSelected.emit(i),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","ng2FileSelect",""]],hostBindings:function(t,i){1&t&&e.NdJ("change",function(){return i.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}}),n}(),Ore=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[kt.ez]]}),n}(),CZ=function(){function n(){}return Object.defineProperty(n.prototype,"child_process",{get:function(){return this._child_process||(this._child_process=window.require?window.require("child_process"):null),this._child_process},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"childProcess",{get:function(){return this.child_process?this.child_process:null},enumerable:!0,configurable:!0}),n}(),Pre=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i])},function(r,t){function i(){this.constructor=r}n(r,t),r.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),Ire=function(n){function r(){return n.call(this)||this}return Pre(r,n),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=e.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(CZ),Rre=function(){function n(){}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[{provide:CZ,useClass:Ire}]}),n}(),cs=function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{key:"electron",get:function(){return this._electron?this._electron:window&&window.require?(this._electron=window.require("electron"),this._electron):null}},{key:"isElectronApp",get:function(){return!!window.navigator.userAgent.match(/Electron/)}},{key:"isMacOS",get:function(){return this.isElectronApp&&"darwin"===process.platform}},{key:"isWindows",get:function(){return this.isElectronApp&&"win32"===process.platform}},{key:"isLinux",get:function(){return this.isElectronApp&&"linux"===process.platform}},{key:"isX86",get:function(){return this.isElectronApp&&"ia32"===process.arch}},{key:"isX64",get:function(){return this.isElectronApp&&"x64"===process.arch}},{key:"isArm",get:function(){return this.isElectronApp&&"arm"===process.arch}},{key:"desktopCapturer",get:function(){return this.electron?this.electron.desktopCapturer:null}},{key:"ipcRenderer",get:function(){return this.electron?this.electron.ipcRenderer:null}},{key:"remote",get:function(){return this.electron?this.electron.remote:null}},{key:"webFrame",get:function(){return this.electron?this.electron.webFrame:null}},{key:"clipboard",get:function(){return this.electron?this.electron.clipboard:null}},{key:"crashReporter",get:function(){return this.electron?this.electron.crashReporter:null}},{key:"process",get:function(){return this.remote?this.remote.process:null}},{key:"nativeImage",get:function(){return this.electron?this.electron.nativeImage:null}},{key:"screen",get:function(){return this.electron?this.remote.screen:null}},{key:"shell",get:function(){return this.electron?this.electron.shell:null}}]),n}(),Nre=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.call(this)}return i}(cs);return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Zre=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[{provide:cs,useClass:Nre}]}),n}(),CS=f(88009),Lre=f(64646),rV=f(60131),SZ=f(4499),nv=f(93487),Fre=f(39887),iV=f(31927),Qf=f(13426),SS=f(38575),Bre=f(99583),ny=f(64233),Ure=f(26575),oV=f(59803),TZ=f(65890),vp=function n(r,t){(0,g.Z)(this,n),this.id=r,this.url=t},HA=function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,g.Z)(this,t),(a=r.call(this,i,o)).navigationTrigger=s,a.restoredState=u,a}return(0,T.Z)(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(vp),rv=function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(i,o,a){var s;return(0,g.Z)(this,t),(s=r.call(this,i,o)).urlAfterRedirects=a,s}return(0,T.Z)(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(vp),xZ=function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(i,o,a){var s;return(0,g.Z)(this,t),(s=r.call(this,i,o)).reason=a,s}return(0,T.Z)(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(vp),aV=function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(i,o,a){var s;return(0,g.Z)(this,t),(s=r.call(this,i,o)).error=a,s}return(0,T.Z)(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(vp),Hre=function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,T.Z)(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(vp),Vre=function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,T.Z)(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(vp),qre=function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(i,o,a,s,u){var p;return(0,g.Z)(this,t),(p=r.call(this,i,o)).urlAfterRedirects=a,p.state=s,p.shouldActivate=u,p}return(0,T.Z)(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(vp),jre=function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,T.Z)(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(vp),zre=function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(i,o,a,s){var u;return(0,g.Z)(this,t),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u}return(0,T.Z)(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(vp),sV=function(){function n(r){(0,g.Z)(this,n),this.route=r}return(0,T.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),n}(),lV=function(){function n(r){(0,g.Z)(this,n),this.route=r}return(0,T.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),n}(),Wre=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,T.Z)(n,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),Gre=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,T.Z)(n,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),Yre=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,T.Z)(n,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),Jre=function(){function n(r){(0,g.Z)(this,n),this.snapshot=r}return(0,T.Z)(n,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),n}(),uV=function(){function n(r,t,i){(0,g.Z)(this,n),this.routerEvent=r,this.position=t,this.anchor=i}return(0,T.Z)(n,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),n}(),di="primary",Qre=function(){function n(r){(0,g.Z)(this,n),this.params=r||{}}return(0,T.Z)(n,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var i=this.params[t];return Array.isArray(i)?i[0]:i}return null}},{key:"getAll",value:function(t){if(this.has(t)){var i=this.params[t];return Array.isArray(i)?i:[i]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),n}();function ry(n){return new Qre(n)}var cV="ngNavigationCancelingError";function wZ(n){var r=Error("NavigationCancelingError: "+n);return r[cV]=!0,r}function Xre(n,r,t){var i=t.path.split("/");if(i.length>n.length||"full"===t.pathMatch&&(r.hasChildren()||i.length<n.length))return null;for(var o={},a=0;a<i.length;a++){var s=i[a],u=n[a];if(s.startsWith(":"))o[s.substring(1)]=u;else if(s!==u.path)return null}return{consumed:n.slice(0,i.length),posParams:o}}function td(n,r){var t=n?Object.keys(n):void 0,i=r?Object.keys(r):void 0;if(!t||!i||t.length!=i.length)return!1;for(var o,a=0;a<t.length;a++)if(!dV(n[o=t[a]],r[o]))return!1;return!0}function dV(n,r){if(Array.isArray(n)&&Array.isArray(r)){if(n.length!==r.length)return!1;var t=(0,v.Z)(n).sort(),i=(0,v.Z)(r).sort();return t.every(function(o,a){return i[a]===o})}return n===r}function pV(n){return Array.prototype.concat.apply([],n)}function fV(n){return n.length>0?n[n.length-1]:null}function ds(n,r){for(var t in n)n.hasOwnProperty(t)&&r(n[t],t)}function nd(n){return(0,e.CqO)(n)?n:(0,e.QGY)(n)?(0,Ya.D)(Promise.resolve(n)):(0,rr.of)(n)}var tie={exact:function vV(n,r,t){if(!ov(n.segments,r.segments)||!VA(n.segments,r.segments,t)||n.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!n.children[i]||!vV(n.children[i],r.children[i],t))return!1;return!0},subset:gV},hV={exact:function(n,r){return td(n,r)},subset:function(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(function(t){return dV(n[t],r[t])})},ignored:function(){return!0}};function mV(n,r,t){return tie[t.paths](n.root,r.root,t.matrixParams)&&hV[t.queryParams](n.queryParams,r.queryParams)&&!("exact"===t.fragment&&n.fragment!==r.fragment)}function gV(n,r,t){return _V(n,r,r.segments,t)}function _V(n,r,t,i){if(n.segments.length>t.length){var o=n.segments.slice(0,t.length);return!(!ov(o,t)||r.hasChildren()||!VA(o,t,i))}if(n.segments.length===t.length){if(!ov(n.segments,t)||!VA(n.segments,t,i))return!1;for(var a in r.children)if(!n.children[a]||!gV(n.children[a],r.children[a],i))return!1;return!0}var s=t.slice(0,n.segments.length),u=t.slice(n.segments.length);return!!(ov(n.segments,s)&&VA(n.segments,s,i)&&n.children[di])&&_V(n.children[di],r,u,i)}function VA(n,r,t){return r.every(function(i,o){return hV[t](n[o].parameters,i.parameters)})}var iv=function(){function n(r,t,i){(0,g.Z)(this,n),this.root=r,this.queryParams=t,this.fragment=i}return(0,T.Z)(n,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ry(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return aie.serialize(this)}}]),n}(),_i=function(){function n(r,t){var i=this;(0,g.Z)(this,n),this.segments=r,this.children=t,this.parent=null,ds(t,function(o,a){return o.parent=i})}return(0,T.Z)(n,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return qA(this)}}]),n}(),TS=function(){function n(r,t){(0,g.Z)(this,n),this.path=r,this.parameters=t}return(0,T.Z)(n,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=ry(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return SV(this)}}]),n}();function ov(n,r){return n.length===r.length&&n.every(function(t,i){return t.path===r[i].path})}var EZ=function n(){(0,g.Z)(this,n)},yV=function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{key:"parse",value:function(t){var i=new mie(t);return new iv(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(t){var i="/".concat(xS(t.root,!0)),o=function(n){var r=Object.keys(n).map(function(t){var i=n[t];return Array.isArray(i)?i.map(function(o){return"".concat(jA(t),"=").concat(jA(o))}).join("&"):"".concat(jA(t),"=").concat(jA(i))}).filter(function(t){return!!t});return r.length?"?".concat(r.join("&")):""}(t.queryParams),a="string"==typeof t.fragment?"#".concat(function(n){return encodeURI(n)}(t.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),n}(),aie=new yV;function qA(n){return n.segments.map(function(r){return SV(r)}).join("/")}function xS(n,r){if(!n.hasChildren())return qA(n);if(r){var t=n.children[di]?xS(n.children[di],!1):"",i=[];return ds(n.children,function(a,s){s!==di&&i.push("".concat(s,":").concat(xS(a,!1)))}),i.length>0?"".concat(t,"(").concat(i.join("//"),")"):t}var o=function(n,r){var t=[];return ds(n.children,function(i,o){o===di&&(t=t.concat(r(i,o)))}),ds(n.children,function(i,o){o!==di&&(t=t.concat(r(i,o)))}),t}(n,function(a,s){return s===di?[xS(n.children[di],!1)]:["".concat(s,":").concat(xS(a,!1))]});return 1===Object.keys(n.children).length&&null!=n.children[di]?"".concat(qA(n),"/").concat(o[0]):"".concat(qA(n),"/(").concat(o.join("//"),")")}function bV(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jA(n){return bV(n).replace(/%3B/gi,";")}function kZ(n){return bV(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zA(n){return decodeURIComponent(n)}function CV(n){return zA(n.replace(/\+/g,"%20"))}function SV(n){return"".concat(kZ(n.path)).concat(function(n){return Object.keys(n).map(function(r){return";".concat(kZ(r),"=").concat(kZ(n[r]))}).join("")}(n.parameters))}var cie=/^[^\/()?;=#]+/;function WA(n){var r=n.match(cie);return r?r[0]:""}var die=/^[^=?&#]+/,fie=/^[^?&#]+/,mie=function(){function n(r){(0,g.Z)(this,n),this.url=r,this.remaining=r}return(0,T.Z)(n,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new _i([],{}):new _i([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value: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 i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));var o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(o[di]=new _i(t,i)),o}},{key:"parseSegment",value:function(){var t=WA(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new TS(zA(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var i=WA(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=WA(this.remaining);a&&this.capture(o=a)}t[zA(i)]=zA(o)}}},{key:"parseQueryParam",value:function(t){var i=function(n){var r=n.match(die);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function(n){var r=n.match(fie);return r?r[0]:""}(this.remaining);a&&this.capture(o=a)}var s=CV(i),u=CV(o);if(t.hasOwnProperty(s)){var p=t[s];Array.isArray(p)||(t[s]=p=[p]),p.push(u)}else t[s]=u}}},{key:"parseParens",value:function(t){var i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var o=WA(this.remaining),a=this.remaining[o.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var s=void 0;o.indexOf(":")>-1?(s=o.substr(0,o.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=di);var u=this.parseChildren();i[s]=1===Object.keys(u).length?u[di]:new _i([],u),this.consumeOptional("//")}return i}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),n}(),TV=function(){function n(r){(0,g.Z)(this,n),this._root=r}return(0,T.Z)(n,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}},{key:"children",value:function(t){var i=MZ(t,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(t){var i=MZ(t,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(t){var i=AZ(t,this._root);return i.length<2?[]:i[i.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==t})}},{key:"pathFromRoot",value:function(t){return AZ(t,this._root).map(function(i){return i.value})}}]),n}();function MZ(n,r){if(n===r.value)return r;var i,t=(0,_.Z)(r.children);try{for(t.s();!(i=t.n()).done;){var a=MZ(n,i.value);if(a)return a}}catch(s){t.e(s)}finally{t.f()}return null}function AZ(n,r){if(n===r.value)return[r];var i,t=(0,_.Z)(r.children);try{for(t.s();!(i=t.n()).done;){var a=AZ(n,i.value);if(a.length)return a.unshift(r),a}}catch(s){t.e(s)}finally{t.f()}return[]}var gp=function(){function n(r,t){(0,g.Z)(this,n),this.value=r,this.children=t}return(0,T.Z)(n,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),n}();function wS(n){var r={};return n&&n.children.forEach(function(t){return r[t.value.outlet]=t}),r}var xV=function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(i,o){var a;return(0,g.Z)(this,t),(a=r.call(this,i)).snapshot=o,DZ((0,CS.Z)(a),i),a}return(0,T.Z)(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(TV);function wV(n,r){var t=function(n,r){var s=new GA([],{},{},"",{},di,r,null,n.root,-1,{});return new kV("",new gp(s,[]))}(n,r),i=new eo.X([new TS("",{})]),o=new eo.X({}),a=new eo.X({}),s=new eo.X({}),u=new eo.X(""),p=new Dr(i,o,s,u,a,di,r,t.root);return p.snapshot=t.root,new xV(new gp(p,[]),t)}var Dr=function(){function n(r,t,i,o,a,s,u,p){(0,g.Z)(this,n),this.url=r,this.params=t,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=u,this._futureSnapshot=p}return(0,T.Z)(n,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,Er.U)(function(t){return ry(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Er.U)(function(t){return ry(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),n}();function EV(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=n.pathFromRoot,i=0;if("always"!==r)for(i=t.length-1;i>=1;){var o=t[i],a=t[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(a.component)break;i--}}return gie(t.slice(i))}function gie(n){return n.reduce(function(r,t){return{params:Object.assign(Object.assign({},r.params),t.params),data:Object.assign(Object.assign({},r.data),t.data),resolve:Object.assign(Object.assign({},r.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var GA=function(){function n(r,t,i,o,a,s,u,p,m,C,P){(0,g.Z)(this,n),this.url=r,this.params=t,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=u,this.routeConfig=p,this._urlSegment=m,this._lastPathIndex=C,this._resolve=P}return(0,T.Z)(n,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=ry(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ry(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(o){return o.toString()}).join("/"),i=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(i,"')")}}]),n}(),kV=function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(i,o){var a;return(0,g.Z)(this,t),(a=r.call(this,o)).url=i,DZ((0,CS.Z)(a),o),a}return(0,T.Z)(t,[{key:"toString",value:function(){return MV(this._root)}}]),t}(TV);function DZ(n,r){r.value._routerState=n,r.children.forEach(function(t){return DZ(n,t)})}function MV(n){var r=n.children.length>0?" { ".concat(n.children.map(MV).join(", ")," } "):"";return"".concat(n.value).concat(r)}function OZ(n){if(n.snapshot){var r=n.snapshot,t=n._futureSnapshot;n.snapshot=t,td(r.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),r.fragment!==t.fragment&&n.fragment.next(t.fragment),td(r.params,t.params)||n.params.next(t.params),function(n,r){if(n.length!==r.length)return!1;for(var t=0;t<n.length;++t)if(!td(n[t],r[t]))return!1;return!0}(r.url,t.url)||n.url.next(t.url),td(r.data,t.data)||n.data.next(t.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function PZ(n,r){return td(n.params,r.params)&&function(n,r){return ov(n,r)&&n.every(function(t,i){return td(t.parameters,r[i].parameters)})}(n.url,r.url)&&!(!n.parent!=!r.parent)&&(!n.parent||PZ(n.parent,r.parent))}function YA(n,r,t){if(t&&n.shouldReuseRoute(r.value,t.value.snapshot)){var i=t.value;i._futureSnapshot=r.value;var o=function(n,r,t){return r.children.map(function(i){var a,o=(0,_.Z)(t.children);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(n.shouldReuseRoute(i.value,s.value.snapshot))return YA(n,i,s)}}catch(u){o.e(u)}finally{o.f()}return YA(n,i)})}(n,r,t);return new gp(i,o)}if(n.shouldAttach(r.value)){var a=n.retrieve(r.value);if(null!==a){var s=a.route;return AV(r,s),s}}var u=function(n){return new Dr(new eo.X(n.url),new eo.X(n.params),new eo.X(n.queryParams),new eo.X(n.fragment),new eo.X(n.data),n.outlet,n.component,n)}(r.value),p=r.children.map(function(m){return YA(n,m)});return new gp(u,p)}function AV(n,r){if(n.value.routeConfig!==r.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(n.children.length!==r.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");r.value._futureSnapshot=n.value;for(var t=0;t<n.children.length;++t)AV(n.children[t],r.children[t])}function Cie(n,r,t,i,o){if(0===t.length)return IZ(r.root,r.root,r,i,o);var a=function(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new OV(!0,0,n);var r=0,t=!1,i=n.reduce(function(o,a,s){if("object"==typeof a&&null!=a){if(a.outlets){var u={};return ds(a.outlets,function(p,m){u[m]="string"==typeof p?p.split("/"):p}),[].concat((0,v.Z)(o),[{outlets:u}])}if(a.segmentPath)return[].concat((0,v.Z)(o),[a.segmentPath])}return"string"!=typeof a?[].concat((0,v.Z)(o),[a]):0===s?(a.split("/").forEach(function(p,m){0==m&&"."===p||(0==m&&""===p?t=!0:".."===p?r++:""!=p&&o.push(p))}),o):[].concat((0,v.Z)(o),[a])},[]);return new OV(t,r,i)}(t);if(a.toRoot())return IZ(r.root,new _i([],{}),r,i,o);var s=function(n,r,t){if(n.isAbsolute)return new RZ(r.root,!0,0);if(-1===t.snapshot._lastPathIndex){var i=t.snapshot._urlSegment;return new RZ(i,i===r.root,0)}var a=JA(n.commands[0])?0:1;return function(n,r,t){for(var i=n,o=r,a=t;a>o;){if(a-=o,!(i=i.parent))throw new Error("Invalid number of '../'");o=i.segments.length}return new RZ(i,!1,o-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+a,n.numberOfDoubleDots)}(a,r,n),u=s.processChildren?QA(s.segmentGroup,s.index,a.commands):PV(s.segmentGroup,s.index,a.commands);return IZ(s.segmentGroup,u,r,i,o)}function JA(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function ES(n){return"object"==typeof n&&null!=n&&n.outlets}function IZ(n,r,t,i,o){var a={};return i&&ds(i,function(s,u){a[u]=Array.isArray(s)?s.map(function(p){return"".concat(p)}):"".concat(s)}),new iv(t.root===n?r:DV(t.root,n,r),a,o)}function DV(n,r,t){var i={};return ds(n.children,function(o,a){i[a]=o===r?t:DV(o,r,t)}),new _i(n.segments,i)}var OV=function(){function n(r,t,i){if((0,g.Z)(this,n),this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=i,r&&i.length>0&&JA(i[0]))throw new Error("Root segment cannot have matrix parameters");var o=i.find(ES);if(o&&o!==fV(i))throw new Error("{outlets:{}} has to be the last command")}return(0,T.Z)(n,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),n}(),RZ=function n(r,t,i){(0,g.Z)(this,n),this.segmentGroup=r,this.processChildren=t,this.index=i};function PV(n,r,t){if(n||(n=new _i([],{})),0===n.segments.length&&n.hasChildren())return QA(n,r,t);var i=function(n,r,t){for(var i=0,o=r,a={match:!1,pathIndex:0,commandIndex:0};o<n.segments.length;){if(i>=t.length)return a;var s=n.segments[o],u=t[i];if(ES(u))break;var p="".concat(u),m=i<t.length-1?t[i+1]:null;if(o>0&&void 0===p)break;if(p&&m&&"object"==typeof m&&void 0===m.outlets){if(!RV(p,m,s))return a;i+=2}else{if(!RV(p,{},s))return a;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(n,r,t),o=t.slice(i.commandIndex);if(i.match&&i.pathIndex<n.segments.length){var a=new _i(n.segments.slice(0,i.pathIndex),{});return a.children[di]=new _i(n.segments.slice(i.pathIndex),n.children),QA(a,0,o)}return i.match&&0===o.length?new _i(n.segments,{}):i.match&&!n.hasChildren()?NZ(n,r,t):i.match?QA(n,0,o):NZ(n,r,t)}function QA(n,r,t){if(0===t.length)return new _i(n.segments,{});var i=function(n){return ES(n[0])?n[0].outlets:(0,V.Z)({},di,n)}(t),o={};return ds(i,function(a,s){"string"==typeof a&&(a=[a]),null!==a&&(o[s]=PV(n.children[s],r,a))}),ds(n.children,function(a,s){void 0===i[s]&&(o[s]=a)}),new _i(n.segments,o)}function NZ(n,r,t){for(var i=n.segments.slice(0,r),o=0;o<t.length;){var a=t[o];if(ES(a)){var s=kie(a.outlets);return new _i(i,s)}if(0===o&&JA(t[0]))i.push(new TS(n.segments[r].path,IV(t[0]))),o++;else{var p=ES(a)?a.outlets[di]:"".concat(a),m=o<t.length-1?t[o+1]:null;p&&m&&JA(m)?(i.push(new TS(p,IV(m))),o+=2):(i.push(new TS(p,{})),o++)}}return new _i(i,{})}function kie(n){var r={};return ds(n,function(t,i){"string"==typeof t&&(t=[t]),null!==t&&(r[i]=NZ(new _i([],{}),0,t))}),r}function IV(n){var r={};return ds(n,function(t,i){return r[i]="".concat(t)}),r}function RV(n,r,t){return n==t.path&&td(r,t.parameters)}var Aie=function(){function n(r,t,i,o){(0,g.Z)(this,n),this.routeReuseStrategy=r,this.futureState=t,this.currState=i,this.forwardEvent=o}return(0,T.Z)(n,[{key:"activate",value:function(t){var i=this.futureState._root,o=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,o,t),OZ(this.futureState.root),this.activateChildRoutes(i,o,t)}},{key:"deactivateChildRoutes",value:function(t,i,o){var a=this,s=wS(i);t.children.forEach(function(u){var p=u.value.outlet;a.deactivateRoutes(u,s[p],o),delete s[p]}),ds(s,function(u,p){a.deactivateRouteAndItsChildren(u,o)})}},{key:"deactivateRoutes",value:function(t,i,o){var a=t.value,s=i?i.value:null;if(a===s)if(a.component){var u=o.getContext(a.outlet);u&&this.deactivateChildRoutes(t,i,u.children)}else this.deactivateChildRoutes(t,i,o);else s&&this.deactivateRouteAndItsChildren(i,o)}},{key:"deactivateRouteAndItsChildren",value:function(t,i){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}},{key:"detachAndStoreRouteSubtree",value:function(t,i){var o=i.getContext(t.value.outlet);if(o&&o.outlet){var a=o.outlet.detach(),s=o.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:s})}}},{key:"deactivateRouteAndOutlet",value:function(t,i){for(var o=i.getContext(t.value.outlet),a=o&&t.value.component?o.children:i,s=wS(t),u=0,p=Object.keys(s);u<p.length;u++)this.deactivateRouteAndItsChildren(s[p[u]],a);o&&o.outlet&&(o.outlet.deactivate(),o.children.onOutletDeactivated(),o.attachRef=null,o.resolver=null,o.route=null)}},{key:"activateChildRoutes",value:function(t,i,o){var a=this,s=wS(i);t.children.forEach(function(u){a.activateRoutes(u,s[u.value.outlet],o),a.forwardEvent(new Jre(u.value.snapshot))}),t.children.length&&this.forwardEvent(new Gre(t.value.snapshot))}},{key:"activateRoutes",value:function(t,i,o){var a=t.value,s=i?i.value:null;if(OZ(a),a===s)if(a.component){var u=o.getOrCreateContext(a.outlet);this.activateChildRoutes(t,i,u.children)}else this.activateChildRoutes(t,i,o);else if(a.component){var p=o.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){var m=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),p.children.onOutletReAttached(m.contexts),p.attachRef=m.componentRef,p.route=m.route.value,p.outlet&&p.outlet.attach(m.componentRef,m.route.value),NV(m.route)}else{var C=function(n){for(var r=n.parent;r;r=r.parent){var t=r.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(a.snapshot),P=C?C.module.componentFactoryResolver:null;p.attachRef=null,p.route=a,p.resolver=P,p.outlet&&p.outlet.activateWith(a,P),this.activateChildRoutes(t,null,p.children)}}else this.activateChildRoutes(t,null,o)}}]),n}();function NV(n){OZ(n.value),n.children.forEach(NV)}var ZZ=function n(r,t){(0,g.Z)(this,n),this.routes=r,this.module=t};function Kf(n){return"function"==typeof n}function av(n){return n instanceof iv}var kS=Symbol("INITIAL_VALUE");function MS(){return(0,Zs.w)(function(n){return(0,lm.aj)(n.map(function(r){return r.pipe((0,$i.q)(1),(0,ra.O)(kS))})).pipe((0,iV.R)(function(r,t){var i=!1;return t.reduce(function(o,a,s){return o!==kS?o:(a===kS&&(i=!0),i||!1!==a&&s!==t.length-1&&!av(a)?o:a)},r)},kS),(0,mi.h)(function(r){return r!==kS}),(0,Er.U)(function(r){return av(r)?r:!0===r}),(0,$i.q)(1))})}var ZV=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,i){1&t&&e._UZ(0,"router-outlet")},directives:function(){return[o2]},encapsulation:2}),n}();function LV(n){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=0;t<n.length;t++){var i=n[t],o=Lie(r,i);Zie(i,o)}}function Zie(n,r){n.children&&LV(n.children,r)}function Lie(n,r){return r?n||r.path?n&&!r.path?"".concat(n,"/"):!n&&r.path?r.path:"".concat(n,"/").concat(r.path):"":n}function LZ(n){var r=n.children&&n.children.map(LZ),t=r?Object.assign(Object.assign({},n),{children:r}):Object.assign({},n);return!t.component&&(r||t.loadChildren)&&t.outlet&&t.outlet!==di&&(t.component=ZV),t}function Au(n){return n.outlet||di}function FV(n,r){var t=n.filter(function(i){return Au(i)===r});return t.push.apply(t,(0,v.Z)(n.filter(function(i){return Au(i)!==r}))),t}var BV={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function KA(n,r,t){var i;if(""===r.path)return"full"===r.pathMatch&&(n.hasChildren()||t.length>0)?Object.assign({},BV):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var a=(r.matcher||Xre)(t,n,r);if(!a)return Object.assign({},BV);var s={};ds(a.posParams,function(p,m){s[m]=p.path});var u=a.consumed.length>0?Object.assign(Object.assign({},s),a.consumed[a.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:a.consumed,lastChild:a.consumed.length,parameters:u,positionalParamSegments:null!==(i=a.posParams)&&void 0!==i?i:{}}}function XA(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&Uie(n,t,i)){var a=new _i(r,Bie(n,r,i,new _i(t,n.children)));return a._sourceSegment=n,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===t.length&&Hie(n,t,i)){var s=new _i(n.segments,Fie(n,r,t,i,n.children,o));return s._sourceSegment=n,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:t}}var u=new _i(n.segments,n.children);return u._sourceSegment=n,u._segmentIndexShift=r.length,{segmentGroup:u,slicedSegments:t}}function Fie(n,r,t,i,o,a){var p,s={},u=(0,_.Z)(i);try{for(u.s();!(p=u.n()).done;){var m=p.value;if($A(n,t,m)&&!o[Au(m)]){var C=new _i([],{});C._sourceSegment=n,C._segmentIndexShift="legacy"===a?n.segments.length:r.length,s[Au(m)]=C}}}catch(P){u.e(P)}finally{u.f()}return Object.assign(Object.assign({},o),s)}function Bie(n,r,t,i){var o={};o[di]=i,i._sourceSegment=n,i._segmentIndexShift=r.length;var s,a=(0,_.Z)(t);try{for(a.s();!(s=a.n()).done;){var u=s.value;if(""===u.path&&Au(u)!==di){var p=new _i([],{});p._sourceSegment=n,p._segmentIndexShift=r.length,o[Au(u)]=p}}}catch(m){a.e(m)}finally{a.f()}return o}function Uie(n,r,t){return t.some(function(i){return $A(n,r,i)&&Au(i)!==di})}function Hie(n,r,t){return t.some(function(i){return $A(n,r,i)})}function $A(n,r,t){return(!(n.hasChildren()||r.length>0)||"full"!==t.pathMatch)&&""===t.path}function UV(n,r,t,i){return!!(Au(n)===i||i!==di&&$A(r,t,n))&&("**"===n.path||KA(r,n,t).matched)}function HV(n,r,t){return 0===r.length&&!n.children[t]}var AS=function n(r){(0,g.Z)(this,n),this.segmentGroup=r||null},VV=function n(r){(0,g.Z)(this,n),this.urlTree=r};function e2(n){return new aa.y(function(r){return r.error(new AS(n))})}function qV(n){return new aa.y(function(r){return r.error(new VV(n))})}function Vie(n){return new aa.y(function(r){return r.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(n,"'")))})}var zie=function(){function n(r,t,i,o,a){(0,g.Z)(this,n),this.configLoader=t,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(e.h0i)}return(0,T.Z)(n,[{key:"apply",value:function(){var t=this,i=XA(this.urlTree.root,[],[],this.config).segmentGroup,o=new _i(i.segments,i.children);return this.expandSegmentGroup(this.ngModule,this.config,o,di).pipe((0,Er.U)(function(u){return t.createUrlTree(FZ(u),t.urlTree.queryParams,t.urlTree.fragment)})).pipe((0,Qf.K)(function(u){if(u instanceof VV)return t.allowRedirects=!1,t.match(u.urlTree);throw u instanceof AS?t.noMatchError(u):u}))}},{key:"match",value:function(t){var i=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,di).pipe((0,Er.U)(function(s){return i.createUrlTree(FZ(s),t.queryParams,t.fragment)})).pipe((0,Qf.K)(function(s){throw s instanceof AS?i.noMatchError(s):s}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,i,o){var a=t.segments.length>0?new _i([],(0,V.Z)({},di,t)):t;return new iv(a,i,o)}},{key:"expandSegmentGroup",value:function(t,i,o,a){return 0===o.segments.length&&o.hasChildren()?this.expandChildren(t,i,o).pipe((0,Er.U)(function(s){return new _i([],s)})):this.expandSegment(t,o,i,o.segments,a,!0)}},{key:"expandChildren",value:function(t,i,o){for(var a=this,s=[],u=0,p=Object.keys(o.children);u<p.length;u++){var m=p[u];"primary"===m?s.unshift(m):s.push(m)}return(0,Ya.D)(s).pipe((0,SS.b)(function(C){var P=o.children[C],L=FV(i,C);return a.expandSegmentGroup(t,L,P,C).pipe((0,Er.U)(function(G){return{segment:G,outlet:C}}))}),(0,iV.R)(function(C,P){return C[P.outlet]=P.segment,C},{}),(0,Bre.Z)())}},{key:"expandSegment",value:function(t,i,o,a,s,u){var p=this;return(0,Ya.D)(o).pipe((0,SS.b)(function(m){return p.expandSegmentAgainstRoute(t,i,o,m,a,s,u).pipe((0,Qf.K)(function(P){if(P instanceof AS)return(0,rr.of)(null);throw P}))}),(0,ny.P)(function(m){return!!m}),(0,Qf.K)(function(m,C){if(m instanceof Lre.K||"EmptyError"===m.name){if(HV(i,a,s))return(0,rr.of)(new _i([],{}));throw new AS(i)}throw m}))}},{key:"expandSegmentAgainstRoute",value:function(t,i,o,a,s,u,p){return UV(a,i,s,u)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(t,i,a,s,u):p&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,i,o,a,s,u):e2(i):e2(i)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,i,o,a,s,u){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,o,a,u):this.expandRegularSegmentAgainstRouteUsingRedirect(t,i,o,a,s,u)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,i,o,a){var s=this,u=this.applyRedirectCommands([],o.redirectTo,{});return o.redirectTo.startsWith("/")?qV(u):this.lineralizeSegments(o,u).pipe((0,sa.zg)(function(p){var m=new _i(p,{});return s.expandSegment(t,m,i,p,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,i,o,a,s,u){var p=this,m=KA(i,a,s),P=m.consumedSegments,L=m.lastChild,G=m.positionalParamSegments;if(!m.matched)return e2(i);var Y=this.applyRedirectCommands(P,a.redirectTo,G);return a.redirectTo.startsWith("/")?qV(Y):this.lineralizeSegments(a,Y).pipe((0,sa.zg)(function(te){return p.expandSegment(t,i,o,te.concat(s.slice(L)),u,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,i,o,a,s){var u=this;if("**"===o.path)return o.loadChildren?(o._loadedConfig?(0,rr.of)(o._loadedConfig):this.configLoader.load(t.injector,o)).pipe((0,Er.U)(function(te){return o._loadedConfig=te,new _i(a,{})})):(0,rr.of)(new _i(a,{}));var m=KA(i,o,a),P=m.consumedSegments,L=m.lastChild;if(!m.matched)return e2(i);var G=a.slice(L);return this.getChildConfig(t,o,a).pipe((0,sa.zg)(function(te){var de=te.module,Me=te.routes,st=XA(i,P,G,Me),tt=st.segmentGroup,at=st.slicedSegments,pt=new _i(tt.segments,tt.children);if(0===at.length&&pt.hasChildren())return u.expandChildren(de,Me,pt).pipe((0,Er.U)(function(Et){return new _i(P,Et)}));if(0===Me.length&&0===at.length)return(0,rr.of)(new _i(P,{}));var et=Au(o)===s;return u.expandSegment(de,pt,Me,at,et?di:s,!0).pipe((0,Er.U)(function(Et){return new _i(P.concat(Et.segments),Et.children)}))}))}},{key:"getChildConfig",value:function(t,i,o){var a=this;return i.children?(0,rr.of)(new ZZ(i.children,t)):i.loadChildren?void 0!==i._loadedConfig?(0,rr.of)(i._loadedConfig):this.runCanLoadGuards(t.injector,i,o).pipe((0,sa.zg)(function(s){return s?a.configLoader.load(t.injector,i).pipe((0,Er.U)(function(u){return i._loadedConfig=u,u})):function(n){return new aa.y(function(r){return r.error(wZ("Cannot load children because the guard of the route \"path: '".concat(n.path,"'\" returned false")))})}(i)})):(0,rr.of)(new ZZ([],t))}},{key:"runCanLoadGuards",value:function(t,i,o){var a=this,s=i.canLoad;if(!s||0===s.length)return(0,rr.of)(!0);var u=s.map(function(p){var C,m=t.get(p);if(function(n){return n&&Kf(n.canLoad)}(m))C=m.canLoad(i,o);else{if(!Kf(m))throw new Error("Invalid CanLoad guard");C=m(i,o)}return nd(C)});return(0,rr.of)(u).pipe(MS(),(0,Ra.b)(function(p){if(av(p)){var m=wZ('Redirecting to "'.concat(a.urlSerializer.serialize(p),'"'));throw m.url=p,m}}),(0,Er.U)(function(p){return!0===p}))}},{key:"lineralizeSegments",value:function(t,i){for(var o=[],a=i.root;;){if(o=o.concat(a.segments),0===a.numberOfChildren)return(0,rr.of)(o);if(a.numberOfChildren>1||!a.children[di])return Vie(t.redirectTo);a=a.children[di]}}},{key:"applyRedirectCommands",value:function(t,i,o){return this.applyRedirectCreatreUrlTree(i,this.urlSerializer.parse(i),t,o)}},{key:"applyRedirectCreatreUrlTree",value:function(t,i,o,a){var s=this.createSegmentGroup(t,i.root,o,a);return new iv(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}},{key:"createQueryParams",value:function(t,i){var o={};return ds(t,function(a,s){if("string"==typeof a&&a.startsWith(":")){var p=a.substring(1);o[s]=i[p]}else o[s]=a}),o}},{key:"createSegmentGroup",value:function(t,i,o,a){var s=this,u=this.createSegments(t,i.segments,o,a),p={};return ds(i.children,function(m,C){p[C]=s.createSegmentGroup(t,m,o,a)}),new _i(u,p)}},{key:"createSegments",value:function(t,i,o,a){var s=this;return i.map(function(u){return u.path.startsWith(":")?s.findPosParam(t,u,a):s.findOrReturn(u,o)})}},{key:"findPosParam",value:function(t,i,o){var a=o[i.path.substring(1)];if(!a)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(i.path,"'."));return a}},{key:"findOrReturn",value:function(t,i){var s,o=0,a=(0,_.Z)(i);try{for(a.s();!(s=a.n()).done;){var u=s.value;if(u.path===t.path)return i.splice(o),u;o++}}catch(p){a.e(p)}finally{a.f()}return t}}]),n}();function FZ(n){for(var r={},t=0,i=Object.keys(n.children);t<i.length;t++){var o=i[t],s=FZ(n.children[o]);(s.segments.length>0||s.hasChildren())&&(r[o]=s)}return function(n){if(1===n.numberOfChildren&&n.children[di]){var r=n.children[di];return new _i(n.segments.concat(r.segments),r.children)}return n}(new _i(n.segments,r))}var jV=function n(r){(0,g.Z)(this,n),this.path=r,this.route=this.path[this.path.length-1]},t2=function n(r,t){(0,g.Z)(this,n),this.component=r,this.route=t};function Yie(n,r,t){var i=n._root;return DS(i,r?r._root:null,t,[i.value])}function n2(n,r,t){var i=function(n){if(!n)return null;for(var r=n.parent;r;r=r.parent){var t=r.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(r);return(i?i.module.injector:t).get(n)}function DS(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=wS(r);return n.children.forEach(function(s){Kie(s,a[s.value.outlet],t,i.concat([s.value]),o),delete a[s.value.outlet]}),ds(a,function(s,u){return OS(s,t.getContext(u),o)}),o}function Kie(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=n.value,s=r?r.value:null,u=t?t.getContext(n.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var p=Xie(s,a,a.routeConfig.runGuardsAndResolvers);p?o.canActivateChecks.push(new jV(i)):(a.data=s.data,a._resolvedData=s._resolvedData),DS(n,r,a.component?u?u.children:null:t,i,o),p&&u&&u.outlet&&u.outlet.isActivated&&o.canDeactivateChecks.push(new t2(u.outlet.component,s))}else s&&OS(r,u,o),o.canActivateChecks.push(new jV(i)),DS(n,null,a.component?u?u.children:null:t,i,o);return o}function Xie(n,r,t){if("function"==typeof t)return t(n,r);switch(t){case"pathParamsChange":return!ov(n.url,r.url);case"pathParamsOrQueryParamsChange":return!ov(n.url,r.url)||!td(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!PZ(n,r)||!td(n.queryParams,r.queryParams);case"paramsChange":default:return!PZ(n,r)}}function OS(n,r,t){var i=wS(n),o=n.value;ds(i,function(a,s){OS(a,o.component?r?r.children.getContext(s):null:r,t)}),t.canDeactivateChecks.push(new t2(o.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,o))}var soe=function n(){(0,g.Z)(this,n)};function zV(n){return new aa.y(function(r){return r.error(n)})}var uoe=function(){function n(r,t,i,o,a,s){(0,g.Z)(this,n),this.rootComponentType=r,this.config=t,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=s}return(0,T.Z)(n,[{key:"recognize",value:function(){var t=XA(this.urlTree.root,[],[],this.config.filter(function(u){return void 0===u.redirectTo}),this.relativeLinkResolution).segmentGroup,i=this.processSegmentGroup(this.config,t,di);if(null===i)return null;var o=new GA([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},di,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new gp(o,i),s=new kV(this.url,a);return this.inheritParamsAndData(s._root),s}},{key:"inheritParamsAndData",value:function(t){var i=this,o=t.value,a=EV(o,this.paramsInheritanceStrategy);o.params=Object.freeze(a.params),o.data=Object.freeze(a.data),t.children.forEach(function(s){return i.inheritParamsAndData(s)})}},{key:"processSegmentGroup",value:function(t,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,i):this.processSegment(t,i,i.segments,o)}},{key:"processChildren",value:function(t,i){for(var o=[],a=0,s=Object.keys(i.children);a<s.length;a++){var u=s[a],p=i.children[u],m=FV(t,u),C=this.processSegmentGroup(m,p,u);if(null===C)return null;o.push.apply(o,(0,v.Z)(C))}var P=WV(o);return function(n){n.sort(function(r,t){return r.value.outlet===di?-1:t.value.outlet===di?1:r.value.outlet.localeCompare(t.value.outlet)})}(P),P}},{key:"processSegment",value:function(t,i,o,a){var u,s=(0,_.Z)(t);try{for(s.s();!(u=s.n()).done;){var m=this.processSegmentAgainstRoute(u.value,i,o,a);if(null!==m)return m}}catch(C){s.e(C)}finally{s.f()}return HV(i,o,a)?[]:null}},{key:"processSegmentAgainstRoute",value:function(t,i,o,a){if(t.redirectTo||!UV(t,i,o,a))return null;var s,u=[],p=[];if("**"===t.path){var m=o.length>0?fV(o).parameters:{};s=new GA(o,m,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,JV(t),Au(t),t.component,t,GV(i),YV(i)+o.length,QV(t))}else{var C=KA(i,t,o);if(!C.matched)return null;u=C.consumedSegments,p=o.slice(C.lastChild),s=new GA(u,C.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,JV(t),Au(t),t.component,t,GV(i),YV(i)+u.length,QV(t))}var P=function(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),L=XA(i,u,p,P.filter(function(st){return void 0===st.redirectTo}),this.relativeLinkResolution),G=L.segmentGroup,Y=L.slicedSegments;if(0===Y.length&&G.hasChildren()){var te=this.processChildren(P,G);return null===te?null:[new gp(s,te)]}if(0===P.length&&0===Y.length)return[new gp(s,[])];var de=Au(t)===a,Me=this.processSegment(P,G,Y,de?di:a);return null===Me?null:[new gp(s,Me)]}}]),n}();function WV(n){var o,r=[],t=new Set,i=(0,_.Z)(n);try{var a=function(){var L=o.value;if(!function(n){var r=n.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(L))return r.push(L),"continue";var Y,G=r.find(function(te){return L.value.routeConfig===te.value.routeConfig});void 0!==G?((Y=G.children).push.apply(Y,(0,v.Z)(L.children)),t.add(G)):r.push(L)};for(i.s();!(o=i.n()).done;)a()}catch(P){i.e(P)}finally{i.f()}var p,u=(0,_.Z)(t);try{for(u.s();!(p=u.n()).done;){var m=p.value,C=WV(m.children);r.push(new gp(m.value,C))}}catch(P){u.e(P)}finally{u.f()}return r.filter(function(P){return!t.has(P)})}function GV(n){for(var r=n;r._sourceSegment;)r=r._sourceSegment;return r}function YV(n){for(var r=n,t=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)t+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return t-1}function JV(n){return n.data||{}}function QV(n){return n.resolve||{}}function BZ(n){return(0,Zs.w)(function(r){var t=n(r);return t?(0,Ya.D)(t).pipe((0,Er.U)(function(){return r})):(0,rr.of)(r)})}var boe=function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,i){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,i){return t.routeConfig===i.routeConfig}}]),n}()),UZ=new e.OlP("ROUTES"),KV=function(){function n(r,t,i,o){(0,g.Z)(this,n),this.loader=r,this.compiler=t,this.onLoadStartListener=i,this.onLoadEndListener=o}return(0,T.Z)(n,[{key:"load",value:function(t,i){var o=this;if(i._loader$)return i._loader$;this.onLoadStartListener&&this.onLoadStartListener(i);var s=this.loadModuleFactory(i.loadChildren).pipe((0,Er.U)(function(u){o.onLoadEndListener&&o.onLoadEndListener(i);var p=u.create(t);return new ZZ(pV(p.injector.get(UZ,void 0,e.XFs.Self|e.XFs.Optional)).map(LZ),p)}),(0,Qf.K)(function(u){throw i._loader$=void 0,u}));return i._loader$=new Fre.c(s,function(){return new Pn.xQ}).pipe((0,Ure.x)()),i._loader$}},{key:"loadModuleFactory",value:function(t){var i=this;return"string"==typeof t?(0,Ya.D)(this.loader.load(t)):nd(t()).pipe((0,sa.zg)(function(o){return o instanceof e.YKP?(0,rr.of)(o):(0,Ya.D)(i.compiler.compileModuleAsync(o))}))}}]),n}(),Coe=function n(){(0,g.Z)(this,n),this.outlet=null,this.route=null,this.resolver=null,this.children=new iy,this.attachRef=null},iy=function(){function n(){(0,g.Z)(this,n),this.contexts=new Map}return(0,T.Z)(n,[{key:"onChildOutletCreated",value:function(t,i){var o=this.getOrCreateContext(t);o.outlet=i,this.contexts.set(t,o)}},{key:"onChildOutletDestroyed",value:function(t){var i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var i=this.getContext(t);return i||(i=new Coe,this.contexts.set(t,i)),i}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),n}(),Toe=function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,i){return t}}]),n}();function xoe(n){throw n}function woe(n,r,t){return r.parse("/")}function XV(n,r){return(0,rr.of)(null)}var Eoe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},koe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},xr=function(){var n=function(){function r(t,i,o,a,s,u,p,m){var C=this;(0,g.Z)(this,r),this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=o,this.location=a,this.config=m,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Pn.xQ,this.errorHandler=xoe,this.malformedUriErrorHandler=woe,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:XV,afterPreactivation:XV},this.urlHandlingStrategy=new Toe,this.routeReuseStrategy=new boe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(e.h0i),this.console=s.get(e.c2e);var G=s.get(e.R0b);this.isNgZoneEnabled=G instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(m),this.currentUrlTree=new iv(new _i([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new KV(u,p,function(te){return C.triggerEvent(new sV(te))},function(te){return C.triggerEvent(new lV(te))}),this.routerState=wV(this.currentUrlTree,this.rootComponentType),this.transitions=new eo.X({id:0,targetPageId: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(0,T.Z)(r,[{key:"browserPageId",get:function(){var i;return null===(i=this.location.getState())||void 0===i?void 0:i.\u0275routerPageId}},{key:"setupNavigations",value:function(i){var o=this,a=this.events;return i.pipe((0,mi.h)(function(s){return 0!==s.id}),(0,Er.U)(function(s){return Object.assign(Object.assign({},s),{extractedUrl:o.urlHandlingStrategy.extract(s.rawUrl)})}),(0,Zs.w)(function(s){var u=!1,p=!1;return(0,rr.of)(s).pipe((0,Ra.b)(function(m){o.currentNavigation={id:m.id,initialUrl:m.currentRawUrl,extractedUrl:m.extractedUrl,trigger:m.source,extras:m.extras,previousNavigation:o.lastSuccessfulNavigation?Object.assign(Object.assign({},o.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Zs.w)(function(m){var C=o.browserUrlTree.toString(),P=!o.navigated||m.extractedUrl.toString()!==C||C!==o.currentUrlTree.toString();if(("reload"===o.onSameUrlNavigation||P)&&o.urlHandlingStrategy.shouldProcessUrl(m.rawUrl))return r2(m.source)&&(o.browserUrlTree=m.extractedUrl),(0,rr.of)(m).pipe((0,Zs.w)(function(pt){var Je=o.transitions.getValue();return a.next(new HA(pt.id,o.serializeUrl(pt.extractedUrl),pt.source,pt.restoredState)),Je!==o.transitions.getValue()?nv.E:Promise.resolve(pt)}),function(n,r,t,i){return(0,Zs.w)(function(o){return function(n,r,t,i,o){return new zie(n,r,t,i,o).apply()}(n,r,t,o.extractedUrl,i).pipe((0,Er.U)(function(a){return Object.assign(Object.assign({},o),{urlAfterRedirects:a})}))})}(o.ngModule.injector,o.configLoader,o.urlSerializer,o.config),(0,Ra.b)(function(pt){o.currentNavigation=Object.assign(Object.assign({},o.currentNavigation),{finalUrl:pt.urlAfterRedirects})}),function(n,r,t,i,o){return(0,sa.zg)(function(a){return function(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var s=new uoe(n,r,t,i,o,a).recognize();return null===s?zV(new soe):(0,rr.of)(s)}catch(u){return zV(u)}}(n,r,a.urlAfterRedirects,t(a.urlAfterRedirects),i,o).pipe((0,Er.U)(function(s){return Object.assign(Object.assign({},a),{targetSnapshot:s})}))})}(o.rootComponentType,o.config,function(pt){return o.serializeUrl(pt)},o.paramsInheritanceStrategy,o.relativeLinkResolution),(0,Ra.b)(function(pt){"eager"===o.urlUpdateStrategy&&(pt.extras.skipLocationChange||o.setBrowserUrl(pt.urlAfterRedirects,pt),o.browserUrlTree=pt.urlAfterRedirects);var Je=new Hre(pt.id,o.serializeUrl(pt.extractedUrl),o.serializeUrl(pt.urlAfterRedirects),pt.targetSnapshot);a.next(Je)}));if(P&&o.rawUrlTree&&o.urlHandlingStrategy.shouldProcessUrl(o.rawUrlTree)){var te=m.extractedUrl,de=m.source,Me=m.restoredState,st=m.extras,tt=new HA(m.id,o.serializeUrl(te),de,Me);a.next(tt);var at=wV(te,o.rootComponentType).snapshot;return(0,rr.of)(Object.assign(Object.assign({},m),{targetSnapshot:at,urlAfterRedirects:te,extras:Object.assign(Object.assign({},st),{skipLocationChange:!1,replaceUrl:!1})}))}return o.rawUrlTree=m.rawUrl,o.browserUrlTree=m.urlAfterRedirects,m.resolve(null),nv.E}),BZ(function(m){var Y=m.extras;return o.hooks.beforePreactivation(m.targetSnapshot,{navigationId:m.id,appliedUrlTree:m.extractedUrl,rawUrlTree:m.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),(0,Ra.b)(function(m){var C=new Vre(m.id,o.serializeUrl(m.extractedUrl),o.serializeUrl(m.urlAfterRedirects),m.targetSnapshot);o.triggerEvent(C)}),(0,Er.U)(function(m){return Object.assign(Object.assign({},m),{guards:Yie(m.targetSnapshot,m.currentSnapshot,o.rootContexts)})}),function(n,r){return(0,sa.zg)(function(t){var i=t.targetSnapshot,o=t.currentSnapshot,a=t.guards,s=a.canActivateChecks,u=a.canDeactivateChecks;return 0===u.length&&0===s.length?(0,rr.of)(Object.assign(Object.assign({},t),{guardsResult:!0})):function(n,r,t,i){return(0,Ya.D)(n).pipe((0,sa.zg)(function(o){return function(n,r,t,i,o){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return(0,rr.of)(!0);var s=a.map(function(u){var m,p=n2(u,r,o);if(function(n){return n&&Kf(n.canDeactivate)}(p))m=nd(p.canDeactivate(n,r,t,i));else{if(!Kf(p))throw new Error("Invalid CanDeactivate guard");m=nd(p(n,r,t,i))}return m.pipe((0,ny.P)())});return(0,rr.of)(s).pipe(MS())}(o.component,o.route,t,r,i)}),(0,ny.P)(function(o){return!0!==o},!0))}(u,i,o,n).pipe((0,sa.zg)(function(p){return p&&function(n){return"boolean"==typeof n}(p)?function(n,r,t,i){return(0,Ya.D)(r).pipe((0,SS.b)(function(o){return(0,rV.z)(function(n,r){return null!==n&&r&&r(new Wre(n)),(0,rr.of)(!0)}(o.route.parent,i),function(n,r){return null!==n&&r&&r(new Yre(n)),(0,rr.of)(!0)}(o.route,i),function(n,r,t){var i=r[r.length-1],a=r.slice(0,r.length-1).reverse().map(function(s){return function(n){var r=n.routeConfig?n.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:n,guards:r}:null}(s)}).filter(function(s){return null!==s}).map(function(s){return(0,SZ.P)(function(){var u=s.guards.map(function(p){var C,m=n2(p,s.node,t);if(function(n){return n&&Kf(n.canActivateChild)}(m))C=nd(m.canActivateChild(i,n));else{if(!Kf(m))throw new Error("Invalid CanActivateChild guard");C=nd(m(i,n))}return C.pipe((0,ny.P)())});return(0,rr.of)(u).pipe(MS())})});return(0,rr.of)(a).pipe(MS())}(n,o.path,t),function(n,r,t){var i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return(0,rr.of)(!0);var o=i.map(function(a){return(0,SZ.P)(function(){var u,s=n2(a,r,t);if(function(n){return n&&Kf(n.canActivate)}(s))u=nd(s.canActivate(r,n));else{if(!Kf(s))throw new Error("Invalid CanActivate guard");u=nd(s(r,n))}return u.pipe((0,ny.P)())})});return(0,rr.of)(o).pipe(MS())}(n,o.route,t))}),(0,ny.P)(function(o){return!0!==o},!0))}(i,s,n,r):(0,rr.of)(p)}),(0,Er.U)(function(p){return Object.assign(Object.assign({},t),{guardsResult:p})}))})}(o.ngModule.injector,function(m){return o.triggerEvent(m)}),(0,Ra.b)(function(m){if(av(m.guardsResult)){var C=wZ('Redirecting to "'.concat(o.serializeUrl(m.guardsResult),'"'));throw C.url=m.guardsResult,C}var P=new qre(m.id,o.serializeUrl(m.extractedUrl),o.serializeUrl(m.urlAfterRedirects),m.targetSnapshot,!!m.guardsResult);o.triggerEvent(P)}),(0,mi.h)(function(m){return!!m.guardsResult||(o.restoreHistory(m),o.cancelNavigationTransition(m,""),!1)}),BZ(function(m){if(m.guards.canActivateChecks.length)return(0,rr.of)(m).pipe((0,Ra.b)(function(C){var P=new jre(C.id,o.serializeUrl(C.extractedUrl),o.serializeUrl(C.urlAfterRedirects),C.targetSnapshot);o.triggerEvent(P)}),(0,Zs.w)(function(C){var P=!1;return(0,rr.of)(C).pipe(function(n,r){return(0,sa.zg)(function(t){var i=t.targetSnapshot,o=t.guards.canActivateChecks;if(!o.length)return(0,rr.of)(t);var a=0;return(0,Ya.D)(o).pipe((0,SS.b)(function(s){return function(n,r,t,i){return function(n,r,t,i){var o=Object.keys(n);if(0===o.length)return(0,rr.of)({});var a={};return(0,Ya.D)(o).pipe((0,sa.zg)(function(s){return function(n,r,t,i){var o=n2(n,r,i);return nd(o.resolve?o.resolve(r,t):o(r,t))}(n[s],r,t,i).pipe((0,Ra.b)(function(u){a[s]=u}))}),(0,sk.h)(1),(0,sa.zg)(function(){return Object.keys(a).length===o.length?(0,rr.of)(a):nv.E}))}(n._resolve,n,r,i).pipe((0,Er.U)(function(a){return n._resolvedData=a,n.data=Object.assign(Object.assign({},n.data),EV(n,t).resolve),null}))}(s.route,i,n,r)}),(0,Ra.b)(function(){return a++}),(0,sk.h)(1),(0,sa.zg)(function(s){return a===o.length?(0,rr.of)(t):nv.E}))})}(o.paramsInheritanceStrategy,o.ngModule.injector),(0,Ra.b)({next:function(){return P=!0},complete:function(){P||(o.restoreHistory(C),o.cancelNavigationTransition(C,"At least one route resolver didn't emit any value."))}}))}),(0,Ra.b)(function(C){var P=new zre(C.id,o.serializeUrl(C.extractedUrl),o.serializeUrl(C.urlAfterRedirects),C.targetSnapshot);o.triggerEvent(P)}))}),BZ(function(m){var Y=m.extras;return o.hooks.afterPreactivation(m.targetSnapshot,{navigationId:m.id,appliedUrlTree:m.extractedUrl,rawUrlTree:m.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),(0,Er.U)(function(m){var C=function(n,r,t){var i=YA(n,r._root,t?t._root:void 0);return new xV(i,r)}(o.routeReuseStrategy,m.targetSnapshot,m.currentRouterState);return Object.assign(Object.assign({},m),{targetRouterState:C})}),(0,Ra.b)(function(m){o.currentUrlTree=m.urlAfterRedirects,o.rawUrlTree=o.urlHandlingStrategy.merge(m.urlAfterRedirects,m.rawUrl),o.routerState=m.targetRouterState,"deferred"===o.urlUpdateStrategy&&(m.extras.skipLocationChange||o.setBrowserUrl(o.rawUrlTree,m),o.browserUrlTree=m.urlAfterRedirects)}),function(r,t,i){return(0,Er.U)(function(o){return new Aie(t,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(o.rootContexts,o.routeReuseStrategy,function(m){return o.triggerEvent(m)}),(0,Ra.b)({next:function(){u=!0},complete:function(){u=!0}}),(0,oV.x)(function(){var m;if(!u&&!p){var C="Navigation ID ".concat(s.id," is not equal to the current navigation id ").concat(o.navigationId);"replace"===o.canceledNavigationResolution&&o.restoreHistory(s),o.cancelNavigationTransition(s,C)}(null===(m=o.currentNavigation)||void 0===m?void 0:m.id)===s.id&&(o.currentNavigation=null)}),(0,Qf.K)(function(m){if(p=!0,function(n){return n&&n[cV]}(m)){var C=av(m.url);C||(o.navigated=!0,o.restoreHistory(s,!0));var P=new xZ(s.id,o.serializeUrl(s.extractedUrl),m.message);a.next(P),C?setTimeout(function(){var G=o.urlHandlingStrategy.merge(m.url,o.rawUrlTree),Y={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===o.urlUpdateStrategy||r2(s.source)};o.scheduleNavigation(G,"imperative",null,Y,{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{o.restoreHistory(s,!0);var L=new aV(s.id,o.serializeUrl(s.extractedUrl),m);a.next(L);try{s.resolve(o.errorHandler(m))}catch(G){s.reject(G)}}return nv.E}))}))}},{key:"resetRootComponentType",value:function(i){this.rootComponentType=i,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var i=this.transitions.value;return i.urlAfterRedirects=this.browserUrlTree,i}},{key:"setTransition",value:function(i){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),i))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var i=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(o){var a=i.extractLocationChangeInfoFromEvent(o);i.shouldScheduleNavigation(i.lastLocationChangeInfo,a)&&setTimeout(function(){var s=a.source,u=a.state,p=a.urlTree,m={replaceUrl:!0};if(u){var C=Object.assign({},u);delete C.navigationId,delete C.\u0275routerPageId,0!==Object.keys(C).length&&(m.state=C)}i.scheduleNavigation(p,s,u,m)},0),i.lastLocationChangeInfo=a}))}},{key:"extractLocationChangeInfoFromEvent",value:function(i){var o;return{source:"popstate"===i.type?"popstate":"hashchange",urlTree:this.parseUrl(i.url),state:(null===(o=i.state)||void 0===o?void 0:o.navigationId)?i.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(i,o){if(!i)return!0;var a=o.urlTree.toString()===i.urlTree.toString();return!(o.transitionId===i.transitionId&&a&&("hashchange"===o.source&&"popstate"===i.source||"popstate"===o.source&&"hashchange"===i.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(i){this.events.next(i)}},{key:"resetConfig",value:function(i){LV(i),this.config=i.map(LZ),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.relativeTo,s=o.queryParams,u=o.fragment,p=o.queryParamsHandling,m=o.preserveFragment,C=a||this.routerState.root,P=m?this.currentUrlTree.fragment:u,L=null;switch(p){case"merge":L=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":L=this.currentUrlTree.queryParams;break;default:L=s||null}return null!==L&&(L=this.removeEmptyProps(L)),Cie(C,this.currentUrlTree,i,L,null!=P?P:null)}},{key:"navigateByUrl",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},a=av(i)?i:this.parseUrl(i),s=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,o)}},{key:"navigate",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return Moe(i),this.navigateByUrl(this.createUrlTree(i,o),o)}},{key:"serializeUrl",value:function(i){return this.urlSerializer.serialize(i)}},{key:"parseUrl",value:function(i){var o;try{o=this.urlSerializer.parse(i)}catch(a){o=this.malformedUriErrorHandler(a,this.urlSerializer,i)}return o}},{key:"isActive",value:function(i,o){var a;if(a=!0===o?Object.assign({},Eoe):!1===o?Object.assign({},koe):o,av(i))return mV(this.currentUrlTree,i,a);var s=this.parseUrl(i);return mV(this.currentUrlTree,s,a)}},{key:"removeEmptyProps",value:function(i){return Object.keys(i).reduce(function(o,a){var s=i[a];return null!=s&&(o[a]=s),o},{})}},{key:"processNavigations",value:function(){var i=this;this.navigations.subscribe(function(o){i.navigated=!0,i.lastSuccessfulId=o.id,i.currentPageId=o.targetPageId,i.events.next(new rv(o.id,i.serializeUrl(o.extractedUrl),i.serializeUrl(i.currentUrlTree))),i.lastSuccessfulNavigation=i.currentNavigation,o.resolve(!0)},function(o){i.console.warn("Unhandled Navigation Error: ".concat(o))})}},{key:"scheduleNavigation",value:function(i,o,a,s,u){var p,m;if(this.disposed)return Promise.resolve(!1);var te,de,Me,C=this.getTransition(),P=r2(o)&&C&&!r2(C.source),Y=(this.lastSuccessfulId===C.id||this.currentNavigation?C.rawUrl:C.urlAfterRedirects).toString()===i.toString();if(P&&Y)return Promise.resolve(!0);u?(te=u.resolve,de=u.reject,Me=u.promise):Me=new Promise(function(pt,Je){te=pt,de=Je});var tt,st=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),tt=a&&a.\u0275routerPageId?a.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(p=this.browserPageId)&&void 0!==p?p:0:(null!==(m=this.browserPageId)&&void 0!==m?m:0)+1):tt=0,this.setTransition({id:st,targetPageId:tt,source:o,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:i,extras:s,resolve:te,reject:de,promise:Me,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Me.catch(function(pt){return Promise.reject(pt)})}},{key:"setBrowserUrl",value:function(i,o){var a=this.urlSerializer.serialize(i),s=Object.assign(Object.assign({},o.extras.state),this.generateNgRouterState(o.id,o.targetPageId));this.location.isCurrentPathEqualTo(a)||o.extras.replaceUrl?this.location.replaceState(a,"",s):this.location.go(a,"",s)}},{key:"restoreHistory",value:function(i){var a,s,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var u=this.currentPageId-i.targetPageId,p="popstate"===i.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl);p&&0!==u?this.location.historyGo(u):this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===u&&(this.resetState(i),this.browserUrlTree=i.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(o&&this.resetState(i),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(i){this.routerState=i.currentRouterState,this.currentUrlTree=i.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(i,o){var a=new xZ(i.id,this.serializeUrl(i.extractedUrl),o);this.triggerEvent(a),i.resolve(!1)}},{key:"generateNgRouterState",value:function(i,o){return"computed"===this.canceledNavigationResolution?{navigationId:i,"\u0275routerPageId":o}:{navigationId:i}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.DyG),e.LFG(EZ),e.LFG(iy),e.LFG(kt.Ye),e.LFG(e.zs3),e.LFG(e.v3s),e.LFG(e.Sil),e.LFG(void 0))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function Moe(n){for(var r=0;r<n.length;r++){var t=n[r];if(null==t)throw new Error("The requested path contains ".concat(t," segment at index ").concat(r))}}function r2(n){return"imperative"!==n}var ca=function(){var n=function(){function r(t,i,o,a,s){(0,g.Z)(this,r),this.router=t,this.route=i,this.commands=[],this.onChanges=new Pn.xQ,null==o&&a.setAttribute(s.nativeElement,"tabindex","0")}return(0,T.Z)(r,[{key:"ngOnChanges",value:function(i){this.onChanges.next(this)}},{key:"routerLink",set:function(i){this.commands=null!=i?Array.isArray(i)?i:[i]:[]}},{key:"onClick",value:function(){var i={skipLocationChange:ay(this.skipLocationChange),replaceUrl:ay(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ay(this.preserveFragment)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(xr),e.Y36(Dr),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,i){1&t&&e.NdJ("click",function(){return i.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[e.TTD]}),n}(),oy=function(){var n=function(){function r(t,i,o){var a=this;(0,g.Z)(this,r),this.router=t,this.route=i,this.locationStrategy=o,this.commands=[],this.onChanges=new Pn.xQ,this.subscription=t.events.subscribe(function(s){s instanceof rv&&a.updateTargetUrlAndHref()})}return(0,T.Z)(r,[{key:"routerLink",set:function(i){this.commands=null!=i?Array.isArray(i)?i:[i]:[]}},{key:"ngOnChanges",value:function(i){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(i,o,a,s,u){if(0!==i||o||a||s||u||"string"==typeof this.target&&"_self"!=this.target)return!0;var p={skipLocationChange:ay(this.skipLocationChange),replaceUrl:ay(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,p),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ay(this.preserveFragment)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(xr),e.Y36(Dr),e.Y36(kt.S$))},n.\u0275dir=e.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,i){1&t&&e.NdJ("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&t&&(e.Ikx("href",i.href,e.LSH),e.uIk("target",i.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[e.TTD]}),n}();function ay(n){return""===n||!!n}var o2=function(){var n=function(){function r(t,i,o,a,s){(0,g.Z)(this,r),this.parentContexts=t,this.location=i,this.resolver=o,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.name=a||di,t.onChildOutletCreated(this.name,this)}return(0,T.Z)(r,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var i=this.parentContexts.getContext(this.name);i&&i.route&&(i.attachRef?this.attach(i.attachRef,i.route):this.activateWith(i.route,i.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var i=this.activated;return this.activated=null,this._activatedRoute=null,i}},{key:"attach",value:function(i,o){this.activated=i,this._activatedRoute=o,this.location.insert(i.hostView)}},{key:"deactivate",value:function(){if(this.activated){var i=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(i)}}},{key:"activateWith",value:function(i,o){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=i;var u=(o=o||this.resolver).resolveComponentFactory(i._futureSnapshot.routeConfig.component),p=this.parentContexts.getOrCreateContext(this.name).children,m=new Ooe(i,p,this.location.injector);this.activated=this.location.createComponent(u,this.location.length,m),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(iy),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},n.\u0275dir=e.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),n}(),Ooe=function(){function n(r,t,i){(0,g.Z)(this,n),this.route=r,this.childContexts=t,this.parent=i}return(0,T.Z)(n,[{key:"get",value:function(t,i){return t===Dr?this.route:t===iy?this.childContexts:this.parent.get(t,i)}}]),n}(),$V=function n(){(0,g.Z)(this,n)},Poe=function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{key:"preload",value:function(t,i){return i().pipe((0,Qf.K)(function(){return(0,rr.of)(null)}))}}]),n}(),eq=function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{key:"preload",value:function(t,i){return(0,rr.of)(null)}}]),n}(),tq=function(){var n=function(){function r(t,i,o,a,s){(0,g.Z)(this,r),this.router=t,this.injector=a,this.preloadingStrategy=s,this.loader=new KV(i,o,function(C){return t.triggerEvent(new sV(C))},function(C){return t.triggerEvent(new lV(C))})}return(0,T.Z)(r,[{key:"setUpPreloading",value:function(){var i=this;this.subscription=this.router.events.pipe((0,mi.h)(function(o){return o instanceof rv}),(0,SS.b)(function(){return i.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var i=this.injector.get(e.h0i);return this.processRoutes(i,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(i,o){var u,a=[],s=(0,_.Z)(o);try{for(s.s();!(u=s.n()).done;){var p=u.value;if(p.loadChildren&&!p.canLoad&&p._loadedConfig){var m=p._loadedConfig;a.push(this.processRoutes(m.module,m.routes))}else p.loadChildren&&!p.canLoad?a.push(this.preloadConfig(i,p)):p.children&&a.push(this.processRoutes(i,p.children))}}catch(C){s.e(C)}finally{s.f()}return(0,Ya.D)(a).pipe((0,TZ.J)(),(0,Er.U)(function(C){}))}},{key:"preloadConfig",value:function(i,o){var a=this;return this.preloadingStrategy.preload(o,function(){return(o._loadedConfig?(0,rr.of)(o._loadedConfig):a.loader.load(i.injector,o)).pipe((0,sa.zg)(function(u){return o._loadedConfig=u,a.processRoutes(u.module,u.routes)}))})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(xr),e.LFG(e.v3s),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG($V))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),HZ=function(){var n=function(){function r(t,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,g.Z)(this,r),this.router=t,this.viewportScroller=i,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}return(0,T.Z)(r,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var i=this;return this.router.events.subscribe(function(o){o instanceof HA?(i.store[i.lastId]=i.viewportScroller.getScrollPosition(),i.lastSource=o.navigationTrigger,i.restoredId=o.restoredState?o.restoredState.navigationId:0):o instanceof rv&&(i.lastId=o.id,i.scheduleScrollEvent(o,i.router.parseUrl(o.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var i=this;return this.router.events.subscribe(function(o){o instanceof uV&&(o.position?"top"===i.options.scrollPositionRestoration?i.viewportScroller.scrollToPosition([0,0]):"enabled"===i.options.scrollPositionRestoration&&i.viewportScroller.scrollToPosition(o.position):o.anchor&&"enabled"===i.options.anchorScrolling?i.viewportScroller.scrollToAnchor(o.anchor):"disabled"!==i.options.scrollPositionRestoration&&i.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(i,o){this.router.triggerEvent(new uV(i,"popstate"===this.lastSource?this.store[this.restoredId]:null,o))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(xr),e.LFG(kt.EM),e.LFG(void 0))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),sv=new e.OlP("ROUTER_CONFIGURATION"),nq=new e.OlP("ROUTER_FORROOT_GUARD"),Roe=[kt.Ye,{provide:EZ,useClass:yV},{provide:xr,useFactory:function(n,r,t,i,o,a,s){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},p=arguments.length>8?arguments[8]:void 0,m=arguments.length>9?arguments[9]:void 0,C=new xr(null,n,r,t,i,o,a,pV(s));return p&&(C.urlHandlingStrategy=p),m&&(C.routeReuseStrategy=m),Uoe(u,C),u.enableTracing&&C.events.subscribe(function(P){var L,G;null===(L=console.group)||void 0===L||L.call(console,"Router Event: ".concat(P.constructor.name)),console.log(P.toString()),console.log(P),null===(G=console.groupEnd)||void 0===G||G.call(console)}),C},deps:[EZ,iy,kt.Ye,e.zs3,e.v3s,e.Sil,UZ,sv,[function n(){(0,g.Z)(this,n)},new e.FiY],[function n(){(0,g.Z)(this,n)},new e.FiY]]},iy,{provide:Dr,useFactory:function(n){return n.routerState.root},deps:[xr]},{provide:e.v3s,useClass:e.EAV},tq,eq,Poe,{provide:sv,useValue:{enableTracing:!1}}];function Noe(){return new e.PXZ("Router",xr)}var rq=function(){var n=function(){function r(t,i){(0,g.Z)(this,r)}return(0,T.Z)(r,null,[{key:"forRoot",value:function(i,o){return{ngModule:r,providers:[Roe,iq(i),{provide:nq,useFactory:Foe,deps:[[xr,new e.FiY,new e.tp0]]},{provide:sv,useValue:o||{}},{provide:kt.S$,useFactory:Loe,deps:[kt.lw,[new e.tBr(kt.mr),new e.FiY],sv]},{provide:HZ,useFactory:Zoe,deps:[xr,kt.EM,sv]},{provide:$V,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:eq},{provide:e.PXZ,multi:!0,useFactory:Noe},[VZ,{provide:e.ip1,multi:!0,useFactory:Voe,deps:[VZ]},{provide:oq,useFactory:qoe,deps:[VZ]},{provide:e.tb,multi:!0,useExisting:oq}]]}}},{key:"forChild",value:function(i){return{ngModule:r,providers:[iq(i)]}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(nq,8),e.LFG(xr,8))},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}();function Zoe(n,r,t){return t.scrollOffset&&r.setOffset(t.scrollOffset),new HZ(n,r,t)}function Loe(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new kt.Do(n,r):new kt.b0(n,r)}function Foe(n){return"guarded"}function iq(n){return[{provide:e.deG,multi:!0,useValue:n},{provide:UZ,multi:!0,useValue:n}]}function Uoe(n,r){n.errorHandler&&(r.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(r.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(r.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(r.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(r.urlUpdateStrategy=n.urlUpdateStrategy)}var VZ=function(){var n=function(){function r(t){(0,g.Z)(this,r),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Pn.xQ}return(0,T.Z)(r,[{key:"appInitializer",value:function(){var i=this;return this.injector.get(kt.V_,Promise.resolve(null)).then(function(){if(i.destroyed)return Promise.resolve(!0);var a=null,s=new Promise(function(m){return a=m}),u=i.injector.get(xr),p=i.injector.get(sv);return"disabled"===p.initialNavigation?(u.setUpLocationChangeListener(),a(!0)):"enabled"===p.initialNavigation||"enabledBlocking"===p.initialNavigation?(u.hooks.afterPreactivation=function(){return i.initNavigation?(0,rr.of)(null):(i.initNavigation=!0,a(!0),i.resultOfPreactivationDone)},u.initialNavigation()):a(!0),s})}},{key:"bootstrapListener",value:function(i){var o=this.injector.get(sv),a=this.injector.get(tq),s=this.injector.get(HZ),u=this.injector.get(xr),p=this.injector.get(e.z2F);i===p.components[0]&&(("enabledNonBlocking"===o.initialNavigation||void 0===o.initialNavigation)&&u.initialNavigation(),a.setUpPreloading(),s.init(),u.resetRootComponentType(p.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.zs3))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function Voe(n){return n.appInitializer.bind(n)}function qoe(n){return n.bootstrapListener.bind(n)}var oq=new e.OlP("Router Initializer"),a2=function(){return function(){}}(),Qo=f(96153),Br=function(){function n(r){this.httpServer=r,this.serverIds=[],this.serviceInitialized=new Pn.xQ,this.serverIds=this.getServerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return n.prototype.getServerIds=function(){var r=localStorage.getItem("serverIds");return(null==r?void 0:r.length)>0?r.split(","):[]},n.prototype.updateServerIds=function(){localStorage.removeItem("serverIds"),localStorage.setItem("serverIds",this.serverIds.toString())},n.prototype.get=function(r){var t=JSON.parse(localStorage.getItem("server-"+r));return new Promise(function(o){o(t)})},n.prototype.create=function(r){return r.id=this.serverIds.length+1,localStorage.setItem("server-"+r.id,JSON.stringify(r)),this.serverIds.push("server-"+r.id),this.updateServerIds(),new Promise(function(i){i(r)})},n.prototype.update=function(r){return localStorage.removeItem("server-"+r.id),localStorage.setItem("server-"+r.id,JSON.stringify(r)),new Promise(function(i){i(r)})},n.prototype.findAll=function(){var r=this;return new Promise(function(i){var o=[];r.serverIds.forEach(function(a){var s=JSON.parse(localStorage.getItem(a));o.push(s)}),i(o)})},n.prototype.delete=function(r){return localStorage.removeItem("server-"+r.id),this.serverIds=this.serverIds.filter(function(i){return i!=="server-"+r.id}),this.updateServerIds(),new Promise(function(i){i(r.id)})},n.prototype.getServerUrl=function(r){return r.protocol+"//"+r.host+":"+r.port+"/"},n.prototype.checkServerVersion=function(r){return this.httpServer.get(r,"/version")},n.prototype.getLocalServer=function(r,t){var i=this;return new Promise(function(a,s){i.findAll().then(function(u){var p=u.find(function(C){return"bundled"===C.location});if(p)p.host=r,p.port=t,p.protocol=location.protocol,i.update(p).then(function(C){a(C)},s);else{var m=new a2;m.name="local",m.host=r,m.port=t,m.location="bundled",m.protocol=location.protocol,i.create(m).then(function(C){a(C)},s)}},s)})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),PS=function(){return function(r,t,i){void 0===i&&(i=!1),this.visible=r,this.error=t,this.clear=i}}(),Xf=function(){function n(){this.state=new eo.X(new PS(!1))}return n.prototype.setError=function(r){this.state.next(new PS(!1,r.error))},n.prototype.clear=function(){this.state.next(new PS(!1,null,!0))},n.prototype.activate=function(){this.state.next(new PS(!0))},n.prototype.deactivate=function(){this.state.next(new PS(!1))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function zoe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function Woe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function Goe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}function Yoe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw();e.Udp("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),e.uIk("r",t._getCircleRadius())}}var aq=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",Qoe=(0,un.pj)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}(),"primary"),sq=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),$oe=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p){var m;(0,g.Z)(this,i),(m=t.call(this,o))._document=s,m._diameter=100,m._value=0,m._fallbackAnimation=!1,m.mode="determinate";var C=i._diameters;return m._spinnerAnimationLabel=m._getSpinnerAnimationLabel(),C.has(s.head)||C.set(s.head,new Set([100])),m._fallbackAnimation=a.EDGE||a.TRIDENT,m._noopAnimations="NoopAnimations"===u&&!!p&&!p._forceAnimations,p&&(p.diameter&&(m.diameter=p.diameter),p.strokeWidth&&(m.strokeWidth=p.strokeWidth)),m}return(0,T.Z)(i,[{key:"diameter",get:function(){return this._diameter},set:function(a){this._diameter=(0,Mn.su)(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(a){this._strokeWidth=(0,Mn.su)(a)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(a){this._value=Math.max(0,Math.min(100,(0,Mn.su)(a)))}},{key:"ngOnInit",value:function(){var a=this._elementRef.nativeElement;this._styleRoot=(0,Xr.kV)(a)||this._document.head,this._attachStyleNode();var s="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");a.classList.add(s)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var a=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(a," ").concat(a)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var a=this._styleRoot,s=this._diameter,u=i._diameters,p=u.get(a);if(!p||!p.has(s)){var m=this._document.createElement("style");m.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),m.textContent=this._getAnimationText(),a.appendChild(m),p||(p=new Set,u.set(a,p)),p.add(s)}}},{key:"_getAnimationText",value:function(){var a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*a)).replace(/END_VALUE/g,"".concat(.2*a)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),i}(Qoe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(Xr.t4),e.Y36(kt.K0,8),e.Y36(ys.Qb,8),e.Y36(sq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,i){2&t&&(e.uIk("aria-valuemin","determinate"===i.mode?0:null)("aria-valuemax","determinate"===i.mode?100:null)("aria-valuenow","determinate"===i.mode?i.value:null)("mode",i.mode),e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.ekj("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,zoe,1,9,"circle",1),e.YNc(2,Woe,1,7,"circle",2),e.qZA()),2&t&&(e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===i.mode),e.uIk("viewBox",i._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[kt.RF,kt.n9],styles:[aq],encapsulation:2,changeDetection:0}),n._diameters=new WeakMap,n}(),lq=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p){var m;return(0,g.Z)(this,i),(m=t.call(this,o,a,s,u,p)).mode="indeterminate",m}return i}($oe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(Xr.t4),e.Y36(kt.K0,8),e.Y36(ys.Qb,8),e.Y36(sq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,i){2&t&&(e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.ekj("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color"},features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,Goe,1,9,"circle",1),e.YNc(2,Yoe,1,7,"circle",2),e.qZA()),2&t&&(e.Udp("width",i.diameter,"px")("height",i.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===i.mode),e.uIk("viewBox",i._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[kt.RF,kt.n9],styles:[aq],encapsulation:2,changeDetection:0}),n}(),eae=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.BQ,kt.ez],un.BQ]}),n}(),tae=f(11363),jZ=f(91925),nae=["*"];function uq(n){return Error('Unable to find icon with the name "'.concat(n,'"'))}function cq(n){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(n,'".'))}function dq(n){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(n,'".'))}var lv=function n(r,t,i){(0,g.Z)(this,n),this.url=r,this.svgText=t,this.options=i},IS=function(){var n=function(){function r(t,i,o,a){(0,g.Z)(this,r),this._httpClient=t,this._sanitizer=i,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=o}return(0,T.Z)(r,[{key:"addSvgIcon",value:function(i,o,a){return this.addSvgIconInNamespace("",i,o,a)}},{key:"addSvgIconLiteral",value:function(i,o,a){return this.addSvgIconLiteralInNamespace("",i,o,a)}},{key:"addSvgIconInNamespace",value:function(i,o,a,s){return this._addSvgIconConfig(i,o,new lv(a,null,s))}},{key:"addSvgIconResolver",value:function(i){return this._resolvers.push(i),this}},{key:"addSvgIconLiteralInNamespace",value:function(i,o,a,s){var u=this._sanitizer.sanitize(e.q3G.HTML,a);if(!u)throw dq(a);return this._addSvgIconConfig(i,o,new lv("",u,s))}},{key:"addSvgIconSet",value:function(i,o){return this.addSvgIconSetInNamespace("",i,o)}},{key:"addSvgIconSetLiteral",value:function(i,o){return this.addSvgIconSetLiteralInNamespace("",i,o)}},{key:"addSvgIconSetInNamespace",value:function(i,o,a){return this._addSvgIconSetConfig(i,new lv(o,null,a))}},{key:"addSvgIconSetLiteralInNamespace",value:function(i,o,a){var s=this._sanitizer.sanitize(e.q3G.HTML,o);if(!s)throw dq(o);return this._addSvgIconSetConfig(i,new lv("",s,a))}},{key:"registerFontClassAlias",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return this._fontCssClassesByAlias.set(i,o),this}},{key:"classNameForFontAlias",value:function(i){return this._fontCssClassesByAlias.get(i)||i}},{key:"setDefaultFontSetClass",value:function(i){return this._defaultFontSetClass=i,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(i){var o=this,a=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,i);if(!a)throw cq(i);var s=this._cachedIconsByUrl.get(a);return s?(0,rr.of)(s2(s)):this._loadSvgIconFromConfig(new lv(i,null)).pipe((0,Ra.b)(function(u){return o._cachedIconsByUrl.set(a,u)}),(0,Er.U)(function(u){return s2(u)}))}},{key:"getNamedSvgIcon",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=pq(o,i),s=this._svgIconConfigs.get(a);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(o,i))return this._svgIconConfigs.set(a,s),this._getSvgFromConfig(s);var u=this._iconSetConfigs.get(o);return u?this._getSvgFromIconSetConfigs(i,u):(0,tae._)(uq(a))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(i){return i.svgText?(0,rr.of)(s2(this._svgElementFromConfig(i))):this._loadSvgIconFromConfig(i).pipe((0,Er.U)(function(o){return s2(o)}))}},{key:"_getSvgFromIconSetConfigs",value:function(i,o){var a=this,s=this._extractIconWithNameFromAnySet(i,o);if(s)return(0,rr.of)(s);var u=o.filter(function(p){return!p.svgText}).map(function(p){return a._loadSvgIconSetFromConfig(p).pipe((0,Qf.K)(function(m){var C=a._sanitizer.sanitize(e.q3G.RESOURCE_URL,p.url),P="Loading icon set URL: ".concat(C," failed: ").concat(m.message);return a._errorHandler.handleError(new Error(P)),(0,rr.of)(null)}))});return(0,jZ.D)(u).pipe((0,Er.U)(function(){var p=a._extractIconWithNameFromAnySet(i,o);if(!p)throw uq(i);return p}))}},{key:"_extractIconWithNameFromAnySet",value:function(i,o){for(var a=o.length-1;a>=0;a--){var s=o[a];if(s.svgText&&s.svgText.indexOf(i)>-1){var u=this._svgElementFromConfig(s),p=this._extractSvgIconFromSet(u,i,s.options);if(p)return p}}return null}},{key:"_loadSvgIconFromConfig",value:function(i){var o=this;return this._fetchIcon(i).pipe((0,Ra.b)(function(a){return i.svgText=a}),(0,Er.U)(function(){return o._svgElementFromConfig(i)}))}},{key:"_loadSvgIconSetFromConfig",value:function(i){return i.svgText?(0,rr.of)(null):this._fetchIcon(i).pipe((0,Ra.b)(function(o){return i.svgText=o}))}},{key:"_extractSvgIconFromSet",value:function(i,o,a){var s=i.querySelector('[id="'.concat(o,'"]'));if(!s)return null;var u=s.cloneNode(!0);if(u.removeAttribute("id"),"svg"===u.nodeName.toLowerCase())return this._setSvgAttributes(u,a);if("symbol"===u.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(u),a);var p=this._svgElementFromString("<svg></svg>");return p.appendChild(u),this._setSvgAttributes(p,a)}},{key:"_svgElementFromString",value:function(i){var o=this._document.createElement("DIV");o.innerHTML=i;var a=o.querySelector("svg");if(!a)throw Error("<svg> tag not found");return a}},{key:"_toSvgElement",value:function(i){for(var o=this._svgElementFromString("<svg></svg>"),a=i.attributes,s=0;s<a.length;s++){var u=a[s],p=u.name;"id"!==p&&o.setAttribute(p,u.value)}for(var C=0;C<i.childNodes.length;C++)i.childNodes[C].nodeType===this._document.ELEMENT_NODE&&o.appendChild(i.childNodes[C].cloneNode(!0));return o}},{key:"_setSvgAttributes",value:function(i,o){return i.setAttribute("fit",""),i.setAttribute("height","100%"),i.setAttribute("width","100%"),i.setAttribute("preserveAspectRatio","xMidYMid meet"),i.setAttribute("focusable","false"),o&&o.viewBox&&i.setAttribute("viewBox",o.viewBox),i}},{key:"_fetchIcon",value:function(i){var a,o=this,s=i.url,u=i.options,p=null!==(a=null==u?void 0:u.withCredentials)&&void 0!==a&&a;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==s)throw Error('Cannot fetch icon from URL "'.concat(s,'".'));var m=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,s);if(!m)throw cq(s);var C=this._inProgressUrlFetches.get(m);if(C)return C;var P=this._httpClient.get(m,{responseType:"text",withCredentials:p}).pipe((0,oV.x)(function(){return o._inProgressUrlFetches.delete(m)}),(0,um.B)());return this._inProgressUrlFetches.set(m,P),P}},{key:"_addSvgIconConfig",value:function(i,o,a){return this._svgIconConfigs.set(pq(i,o),a),this}},{key:"_addSvgIconSetConfig",value:function(i,o){var a=this._iconSetConfigs.get(i);return a?a.push(o):this._iconSetConfigs.set(i,[o]),this}},{key:"_svgElementFromConfig",value:function(i){if(!i.svgElement){var o=this._svgElementFromString(i.svgText);this._setSvgAttributes(o,i.options),i.svgElement=o}return i.svgElement}},{key:"_getIconConfigFromResolvers",value:function(i,o){for(var a=0;a<this._resolvers.length;a++){var s=this._resolvers[a](o,i);if(s)return oae(s)?new lv(s.url,null,s.options):new lv(s,null)}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(Ku.eN,8),e.LFG(U.H7),e.LFG(kt.K0,8),e.LFG(e.qLn))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(Ku.eN,8),e.LFG(U.H7),e.LFG(kt.K0,8),e.LFG(e.qLn))},token:n,providedIn:"root"}),n}();function s2(n){return n.cloneNode(!0)}function pq(n,r){return n+":"+r}function oae(n){return!(!n.url||!n.options)}var sy,aae=(0,un.pj)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}()),sae=new e.OlP("mat-icon-location",{providedIn:"root",factory:function(){var n=(0,e.f3M)(kt.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}}),fq=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],cae=fq.map(function(r){return"[".concat(r,"]")}).join(", "),dae=/^url\(['"]?#(.*?)['"]?\)$/,sr=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p){var m;return(0,g.Z)(this,i),(m=t.call(this,o))._iconRegistry=a,m._location=u,m._errorHandler=p,m._inline=!1,m._currentIconFetch=rs.w.EMPTY,s||o.nativeElement.setAttribute("aria-hidden","true"),m}return(0,T.Z)(i,[{key:"inline",get:function(){return this._inline},set:function(a){this._inline=(0,Mn.Ig)(a)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(a){a!==this._svgIcon&&(a?this._updateSvgIcon(a):this._svgIcon&&this._clearSvgElement(),this._svgIcon=a)}},{key:"fontSet",get:function(){return this._fontSet},set:function(a){var s=this._cleanupFontValue(a);s!==this._fontSet&&(this._fontSet=s,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(a){var s=this._cleanupFontValue(a);s!==this._fontIcon&&(this._fontIcon=s,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(a){if(!a)return["",""];var s=a.split(":");switch(s.length){case 1:return["",s[0]];case 2:return s;default:throw Error('Invalid icon name: "'.concat(a,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var a=this._elementsWithExternalReferences;if(a&&a.size){var s=this._location.getPathname();s!==this._previousPath&&(this._previousPath=s,this._prependPathToReferences(s))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(a){this._clearSvgElement();for(var s=a.querySelectorAll("style"),u=0;u<s.length;u++)s[u].textContent+=" ";var p=this._location.getPathname();this._previousPath=p,this._cacheChildrenWithExternalReferences(a),this._prependPathToReferences(p),this._elementRef.nativeElement.appendChild(a)}},{key:"_clearSvgElement",value:function(){var a=this._elementRef.nativeElement,s=a.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();s--;){var u=a.childNodes[s];(1!==u.nodeType||"svg"===u.nodeName.toLowerCase())&&a.removeChild(u)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var a=this._elementRef.nativeElement,s=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();s!=this._previousFontSetClass&&(this._previousFontSetClass&&a.classList.remove(this._previousFontSetClass),s&&a.classList.add(s),this._previousFontSetClass=s),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&a.classList.remove(this._previousFontIconClass),this.fontIcon&&a.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(a){return"string"==typeof a?a.trim().split(" ")[0]:a}},{key:"_prependPathToReferences",value:function(a){var s=this._elementsWithExternalReferences;s&&s.forEach(function(u,p){u.forEach(function(m){p.setAttribute(m.name,"url('".concat(a,"#").concat(m.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(a){for(var s=a.querySelectorAll(cae),u=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,p=function(P){fq.forEach(function(L){var G=s[P],Y=G.getAttribute(L),te=Y?Y.match(dae):null;if(te){var de=u.get(G);de||u.set(G,de=[]),de.push({name:L,value:te[1]})}})},m=0;m<s.length;m++)p(m)}},{key:"_updateSvgIcon",value:function(a){var s=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),a){var u=this._splitIconName(a),p=(0,b.Z)(u,2),m=p[0],C=p[1];m&&(this._svgNamespace=m),C&&(this._svgName=C),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(C,m).pipe((0,$i.q)(1)).subscribe(function(P){return s._setSvgElement(P)},function(P){var L="Error retrieving icon ".concat(m,":").concat(C,"! ").concat(P.message);s._errorHandler.handleError(new Error(L))})}}}]),i}(aae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(IS),e.$8M("aria-hidden"),e.Y36(sae),e.Y36(e.qLn))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,i){2&t&&(e.uIk("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),e.ekj("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:nae,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n}(),zZ=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.BQ],un.BQ]}),n}(),hq=["mat-button",""],mq=["*"],vq=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",fae=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],hae=(0,un.pj)((0,un.Id)((0,un.Kr)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}()))),An=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s){var u;(0,g.Z)(this,i),(u=t.call(this,o))._focusMonitor=a,u._animationMode=s,u.isRoundButton=u._hasHostAttributes("mat-fab","mat-mini-fab"),u.isIconButton=u._hasHostAttributes("mat-icon-button");var m,p=(0,_.Z)(fae);try{for(p.s();!(m=p.n()).done;){var C=m.value;u._hasHostAttributes(C)&&u._getHostElement().classList.add(C)}}catch(P){p.e(P)}finally{p.f()}return o.nativeElement.classList.add("mat-button-base"),u.isRoundButton&&(u.color="accent"),u}return(0,T.Z)(i,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(a,s){a?this._focusMonitor.focusVia(this._getHostElement(),a,s):this._getHostElement().focus(s)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var a=this,s=arguments.length,u=new Array(s),p=0;p<s;p++)u[p]=arguments[p];return u.some(function(m){return a._getHostElement().hasAttribute(m)})}}]),i}(hae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(Ai.tE),e.Y36(ys.Qb,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,i){var o;1&t&&e.Gf(un.wG,5),2&t&&e.iGM(o=e.CRH())&&(i.ripple=o.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,i){2&t&&(e.uIk("disabled",i.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:hq,ngContentSelectors:mq,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,i){1&t&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&t&&(e.xp6(2),e.ekj("mat-button-ripple-round",i.isRoundButton||i.isIconButton),e.Q6J("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[un.wG],styles:[vq],encapsulation:2,changeDetection:0}),n}(),mae=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s){return(0,g.Z)(this,i),t.call(this,a,o,s)}return(0,T.Z)(i,[{key:"_haltDisabledEvents",value:function(a){this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}]),i}(An);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Ai.tE),e.Y36(e.SBq),e.Y36(ys.Qb,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,i){1&t&&e.NdJ("click",function(a){return i._haltDisabledEvents(a)}),2&t&&(e.uIk("tabindex",i.disabled?-1:i.tabIndex||0)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString()),e.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[e.qOj],attrs:hq,ngContentSelectors:mq,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,i){1&t&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&t&&(e.xp6(2),e.ekj("mat-button-ripple-round",i.isRoundButton||i.isIconButton),e.Q6J("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[un.wG],styles:[vq],encapsulation:2,changeDetection:0}),n}(),l2=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.si,un.BQ],un.BQ]}),n}(),vae=f(18756),gq=new Set,_q=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):_ae}return(0,T.Z)(r,[{key:"matchMedia",value:function(i){return(this._platform.WEBKIT||this._platform.BLINK)&&function(n){if(!gq.has(n))try{sy||((sy=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(sy)),sy.sheet&&(sy.sheet.insertRule("@media ".concat(n," {body{ }}"),0),gq.add(n))}catch(r){console.error(r)}}(i),this._matchMedia(i)}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(Xr.t4))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(Xr.t4))},token:n,providedIn:"root"}),n}();function _ae(n){return{matches:"all"===n||""===n,media:n,addListener:function(){},removeListener:function(){}}}var u2=function(){var n=function(){function r(t,i){(0,g.Z)(this,r),this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new Pn.xQ}return(0,T.Z)(r,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(i){var o=this;return yq((0,Mn.Eq)(i)).some(function(s){return o._registerQuery(s).mql.matches})}},{key:"observe",value:function(i){var o=this,s=yq((0,Mn.Eq)(i)).map(function(p){return o._registerQuery(p).observable}),u=(0,lm.aj)(s);return(u=(0,rV.z)(u.pipe((0,$i.q)(1)),u.pipe((0,vae.T)(1),(0,UC.b)(0)))).pipe((0,Er.U)(function(p){var m={matches:!1,breakpoints:{}};return p.forEach(function(C){var P=C.matches,L=C.query;m.matches=m.matches||P,m.breakpoints[L]=P}),m}))}},{key:"_registerQuery",value:function(i){var o=this;if(this._queries.has(i))return this._queries.get(i);var a=this._mediaMatcher.matchMedia(i),u={observable:new aa.y(function(p){var m=function(P){return o._zone.run(function(){return p.next(P)})};return a.addListener(m),function(){a.removeListener(m)}}).pipe((0,ra.O)(a),(0,Er.U)(function(p){return{query:i,matches:p.matches}}),(0,Zr.R)(this._destroySubject)),mql:a};return this._queries.set(i,u),u}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(_q),e.LFG(e.R0b))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(_q),e.LFG(e.R0b))},token:n,providedIn:"root"}),n}();function yq(n){return n.map(function(r){return r.split(",")}).reduce(function(r,t){return r.concat(t)}).map(function(r){return r.trim()})}var $f_Medium="(min-width: 960px) and (max-width: 1279.98px)",$f_Large="(min-width: 1280px) and (max-width: 1919.98px)",qi=f(80785),yae={tooltipState:(0,on.X$)("state",[(0,on.SB)("initial, void, hidden",(0,on.oB)({opacity:0,transform:"scale(0)"})),(0,on.SB)("visible",(0,on.oB)({transform:"scale(1)"})),(0,on.eR)("* => visible",(0,on.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,on.F4)([(0,on.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,on.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,on.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,on.eR)("* => hidden",(0,on.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,on.oB)({opacity:0})))])},bq="tooltip-panel",Cq=(0,Xr.i$)({passive:!0}),Sq=new e.OlP("mat-tooltip-scroll-strategy"),Tae={provide:Sq,deps:[so.aV],useFactory:function(n){return function(){return n.scrollStrategies.reposition({scrollThrottle:20})}}},xae=new e.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),Eae=function(){var n=function(){function r(t,i,o,a,s,u,p,m,C,P,L,G){var Y=this;(0,g.Z)(this,r),this._overlay=t,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=a,this._ngZone=s,this._platform=u,this._ariaDescriber=p,this._focusMonitor=m,this._dir=P,this._defaultOptions=L,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Pn.xQ,this._handleKeydown=function(te){Y._isTooltipVisible()&&te.keyCode===zr.hY&&!(0,zr.Vb)(te)&&(te.preventDefault(),te.stopPropagation(),Y._ngZone.run(function(){return Y.hide(0)}))},this._scrollStrategy=C,this._document=G,L&&(L.position&&(this.position=L.position),L.touchGestures&&(this.touchGestures=L.touchGestures)),P.change.pipe((0,Zr.R)(this._destroyed)).subscribe(function(){Y._overlayRef&&Y._updatePosition(Y._overlayRef)}),s.runOutsideAngular(function(){i.nativeElement.addEventListener("keydown",Y._handleKeydown)})}return(0,T.Z)(r,[{key:"position",get:function(){return this._position},set:function(i){var o;i!==this._position&&(this._position=i,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(o=this._tooltipInstance)||void 0===o||o.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(i){this._disabled=(0,Mn.Ig)(i),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(i){var o=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=i?String(i).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){o._ariaDescriber.describe(o._elementRef.nativeElement,o.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(i){this._tooltipClass=i,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var i=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Zr.R)(this._destroyed)).subscribe(function(o){o?"keyboard"===o&&i._ngZone.run(function(){return i.show()}):i._ngZone.run(function(){return i.hide(0)})})}},{key:"ngOnDestroy",value:function(){var i=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),i.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(o){var a=(0,b.Z)(o,2);i.removeEventListener(a[0],a[1],Cq)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(i,this.message,"tooltip"),this._focusMonitor.stopMonitoring(i)}},{key:"show",value:function(){var i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var a=this._createOverlay();this._detach(),this._portal=this._portal||new qi.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=a.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,Zr.R)(this._destroyed)).subscribe(function(){return i._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(o)}}},{key:"hide",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(i)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var i=this;if(this._overlayRef)return this._overlayRef;var o=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),a=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(o);return a.positionChanges.pipe((0,Zr.R)(this._destroyed)).subscribe(function(s){i._updateCurrentPositionClass(s.connectionPair),i._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&i._tooltipInstance.isVisible()&&i._ngZone.run(function(){return i.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:"".concat(this._cssClassPrefix,"-").concat(bq),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Zr.R)(this._destroyed)).subscribe(function(){return i._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,Zr.R)(this._destroyed)).subscribe(function(){var s;return null===(s=i._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(i){var o=i.getConfig().positionStrategy,a=this._getOrigin(),s=this._getOverlayPosition();o.withPositions([this._addOffset(Object.assign(Object.assign({},a.main),s.main)),this._addOffset(Object.assign(Object.assign({},a.fallback),s.fallback))])}},{key:"_addOffset",value:function(i){return i}},{key:"_getOrigin",value:function(){var a,i=!this._dir||"ltr"==this._dir.value,o=this.position;"above"==o||"below"==o?a={originX:"center",originY:"above"==o?"top":"bottom"}:"before"==o||"left"==o&&i||"right"==o&&!i?a={originX:"start",originY:"center"}:("after"==o||"right"==o&&i||"left"==o&&!i)&&(a={originX:"end",originY:"center"});var s=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:s.x,originY:s.y}}}},{key:"_getOverlayPosition",value:function(){var a,i=!this._dir||"ltr"==this._dir.value,o=this.position;"above"==o?a={overlayX:"center",overlayY:"bottom"}:"below"==o?a={overlayX:"center",overlayY:"top"}:"before"==o||"left"==o&&i||"right"==o&&!i?a={overlayX:"end",overlayY:"center"}:("after"==o||"right"==o&&i||"left"==o&&!i)&&(a={overlayX:"start",overlayY:"center"});var s=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:s.x,overlayY:s.y}}}},{key:"_updateTooltipMessage",value:function(){var i=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,$i.q)(1),(0,Zr.R)(this._destroyed)).subscribe(function(){i._tooltipInstance&&i._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(i){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=i,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(i,o){return"above"===this.position||"below"===this.position?"top"===o?o="bottom":"bottom"===o&&(o="top"):"end"===i?i="start":"start"===i&&(i="end"),{x:i,y:o}}},{key:"_updateCurrentPositionClass",value:function(i){var u,o=i.overlayY,a=i.originX;if((u="center"===o?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===o&&"top"===i.originY?"above":"below")!==this._currentPosition){var p=this._overlayRef;if(p){var m="".concat(this._cssClassPrefix,"-").concat(bq,"-");p.removePanelClass(m+this._currentPosition),p.addPanelClass(m+u)}this._currentPosition=u}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var i=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){i._setupPointerExitEventsIfNeeded(),i.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){i._setupPointerExitEventsIfNeeded(),clearTimeout(i._touchstartTimeout),i._touchstartTimeout=setTimeout(function(){return i.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var o,i=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var a=[];if(this._platformSupportsMouseEvents())a.push(["mouseleave",function(){return i.hide()}],["wheel",function(u){return i._wheelListener(u)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var s=function(){clearTimeout(i._touchstartTimeout),i.hide(i._defaultOptions.touchendHideDelay)};a.push(["touchend",s],["touchcancel",s])}this._addListeners(a),(o=this._passiveListeners).push.apply(o,a)}}},{key:"_addListeners",value:function(i){var o=this;i.forEach(function(a){var s=(0,b.Z)(a,2);o._elementRef.nativeElement.addEventListener(s[0],s[1],Cq)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(i){if(this._isTooltipVisible()){var o=this._document.elementFromPoint(i.clientX,i.clientY),a=this._elementRef.nativeElement;o!==a&&!a.contains(o)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var i=this.touchGestures;if("off"!==i){var o=this._elementRef.nativeElement,a=o.style;("on"===i||"INPUT"!==o.nodeName&&"TEXTAREA"!==o.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===i||!o.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(so.aV),e.Y36(e.SBq),e.Y36(Sa.mF),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36(Xr.t4),e.Y36(Ai.$s),e.Y36(Ai.tE),e.Y36(void 0),e.Y36(Na.Is),e.Y36(void 0),e.Y36(kt.K0))},n.\u0275dir=e.lG2({type:n,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n}(),Ja=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p,m,C,P,L,G,Y,te){var de;return(0,g.Z)(this,i),(de=t.call(this,o,a,s,u,p,m,C,P,L,G,Y,te))._tooltipComponent=Mae,de}return i}(Eae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(so.aV),e.Y36(e.SBq),e.Y36(Sa.mF),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36(Xr.t4),e.Y36(Ai.$s),e.Y36(Ai.tE),e.Y36(Sq),e.Y36(Na.Is,8),e.Y36(xae,8),e.Y36(kt.K0))},n.\u0275dir=e.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[e.qOj]}),n}(),kae=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Pn.xQ}return(0,T.Z)(r,[{key:"show",value:function(i){var o=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){o._visibility="visible",o._showTimeoutId=void 0,o._onShow(),o._markForCheck()},i)}},{key:"hide",value:function(i){var o=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){o._visibility="hidden",o._hideTimeoutId=void 0,o._markForCheck()},i)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(i){var o=i.toState;"hidden"===o&&!this.isVisible()&&this._onHide.next(),("visible"===o||"hidden"===o)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.sBO))},n.\u0275dir=e.lG2({type:n}),n}(),Mae=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a){var s;return(0,g.Z)(this,i),(s=t.call(this,o))._breakpointObserver=a,s._isHandset=s._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),s}return i}(kae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.sBO),e.Y36(u2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,i){2&t&&e.Udp("zoom","visible"===i._visibility?1:null)},features:[e.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,i){var o;1&t&&(e.TgZ(0,"div",0),e.NdJ("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),e.ALo(1,"async"),e._uU(2),e.qZA()),2&t&&(e.ekj("mat-tooltip-handset",null==(o=e.lcZ(1,5,i._isHandset))?null:o.matches),e.Q6J("ngClass",i.tooltipClass)("@state",i._visibility),e.xp6(2),e.Oqu(i.message))},directives:[kt.mk],pipes:[kt.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[yae.tooltipState]},changeDetection:0}),n}(),Tq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[Tae],imports:[[Ai.rt,kt.ez,so.U8,un.BQ],un.BQ,Sa.ZD]}),n}();function Aae(n,r){1&n&&(e.TgZ(0,"div",4),e._UZ(1,"mat-spinner",5),e.qZA())}function Dae(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"div",7),e.TgZ(2,"mat-icon"),e._uU(3,"error_outline"),e.qZA(),e.qZA(),e.TgZ(4,"div"),e._uU(5),e.qZA(),e.TgZ(6,"div"),e.TgZ(7,"button",8),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).refresh()}),e.TgZ(8,"mat-icon"),e._uU(9,"refresh"),e.qZA(),e.qZA(),e.TgZ(10,"button",9),e.TgZ(11,"mat-icon"),e._uU(12,"home"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(5),e.hij("Error occurred: ",i.error.message,"")}}function Oae(n,r){if(1&n&&(e.TgZ(0,"div",1),e.YNc(1,Aae,2,0,"div",2),e.YNc(2,Dae,13,1,"div",3),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.visible&&!t.error),e.xp6(1),e.Q6J("ngIf",t.error)}}var WZ=function(){function n(r,t){this.progressService=r,this.router=t,this.visible=!1}return n.prototype.ngOnInit=function(){var r=this;this.progressService.state.subscribe(function(t){r.visible=t.visible,t.error&&!r.error&&(r.error=t.error),t.clear&&(r.error=null)}),this.routerSubscription=this.router.events.subscribe(function(){r.progressService.clear()})},n.prototype.refresh=function(){this.router.navigateByUrl(this.router.url)},n.prototype.ngOnDestroy=function(){this.routerSubscription.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Xf),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-progress"]],decls:1,vars:1,consts:[["class","overlay",4,"ngIf"],[1,"overlay"],["class","loading-spinner",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],["color","primary"],[1,"error-state"],[1,"error-icon"],["mat-button","","matTooltip","Refresh page","matTooltipClass","custom-tooltip",3,"click"],["mat-button","","routerLink","/","matTooltip","Go to home","matTooltipClass","custom-tooltip"]],template:function(t,i){1&t&&e.YNc(0,Oae,3,2,"div",0),2&t&&e.Q6J("ngIf",i.visible||i.error)},directives:[kt.O5,lq,sr,An,Ja,ca],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);z-index:2000}.loading-spinner[_ngcontent-%COMP%], .error-state[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.error-state[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:center}.error-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px}"]}),n}(),Pae=function(){function n(r,t,i,o){this.router=r,this.serverService=t,this.progressService=i,this.document=o}return n.prototype.ngOnInit=function(){var r=this;this.progressService.activate(),setTimeout(function(){var t;t=parseInt(r.document.location.port,10)?parseInt(r.document.location.port,10):"https:"==r.document.location.protocol?443:80,r.serverService.getLocalServer(r.document.location.hostname,t).then(function(i){r.progressService.deactivate(),r.router.navigate(["/server",i.id,"projects"])})},100)},n.\u0275fac=function(t){return new(t||n)(e.Y36(xr),e.Y36(Br),e.Y36(Xf),e.Y36(kt.K0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-bundled-server-finder"]],decls:1,vars:0,template:function(t,i){1&t&&e._UZ(0,"app-progress")},directives:[WZ],styles:[""]}),n}(),Jn=f(61855),c2=function(){function n(){this.dataChange=new eo.X([])}return Object.defineProperty(n.prototype,"data",{get:function(){return this.dataChange.value},enumerable:!1,configurable:!0}),n.prototype.addServer=function(r){var t=this.data.slice();t.push(r),this.dataChange.next(t)},n.prototype.addServers=function(r){this.dataChange.next(r)},n.prototype.remove=function(r){var t=this.data.indexOf(r);t>=0&&(this.data.splice(t,1),this.dataChange.next(this.data.slice()))},n.prototype.find=function(r){return this.data.find(function(t){return t.name===r})},n.prototype.findIndex=function(r){return this.data.findIndex(function(t){return t.name===r})},n.prototype.update=function(r){var t=this.findIndex(r.name);t>=0&&(this.data[t]=r,this.dataChange.next(this.data.slice()))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function Iae(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"button",2),e.NdJ("click",function(){return e.CHM(t),e.oxw().action()}),e._uU(2),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Oqu(i.data.action)}}function Rae(n,r){}var xq=new e.OlP("MatSnackBarData"),d2=function n(){(0,g.Z)(this,n),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},Nae=Math.pow(2,31)-1,GZ=function(){function n(r,t){var i=this;(0,g.Z)(this,n),this._overlayRef=t,this._afterDismissed=new Pn.xQ,this._afterOpened=new Pn.xQ,this._onAction=new Pn.xQ,this._dismissedByAction=!1,this.containerInstance=r,this.onAction().subscribe(function(){return i.dismiss()}),r._onExit.subscribe(function(){return i._finishDismiss()})}return(0,T.Z)(n,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var i=this;this._durationTimeoutId=setTimeout(function(){return i.dismiss()},Math.min(t,Nae))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),n}(),Zae=function(){var n=function(){function r(t,i){(0,g.Z)(this,r),this.snackBarRef=t,this.data=i}return(0,T.Z)(r,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(GZ),e.Y36(xq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA(),e.YNc(2,Iae,3,1,"div",0)),2&t&&(e.xp6(1),e.Oqu(i.data.message),e.xp6(1),e.Q6J("ngIf",i.hasAction))},directives:[kt.O5,An],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),n}(),Lae={snackBarState:(0,on.X$)("state",[(0,on.SB)("void, hidden",(0,on.oB)({transform:"scale(0.8)",opacity:0})),(0,on.SB)("visible",(0,on.oB)({transform:"scale(1)",opacity:1})),(0,on.eR)("* => visible",(0,on.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,on.eR)("* => void, * => hidden",(0,on.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,on.oB)({opacity:0})))])},Fae=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p){var m;return(0,g.Z)(this,i),(m=t.call(this))._ngZone=o,m._elementRef=a,m._changeDetectorRef=s,m._platform=u,m.snackBarConfig=p,m._announceDelay=150,m._destroyed=!1,m._onAnnounce=new Pn.xQ,m._onExit=new Pn.xQ,m._onEnter=new Pn.xQ,m._animationState="void",m.attachDomPortal=function(C){return m._assertNotAttached(),m._applySnackBarClasses(),m._portalOutlet.attachDomPortal(C)},m._live="assertive"!==p.politeness||p.announcementMessage?"off"===p.politeness?"off":"polite":"assertive",m._platform.FIREFOX&&("polite"===m._live&&(m._role="status"),"assertive"===m._live&&(m._role="alert")),m}return(0,T.Z)(i,[{key:"attachComponentPortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(a)}},{key:"onAnimationEnd",value:function(a){var u=a.toState;if(("void"===u&&"void"!==a.fromState||"hidden"===u)&&this._completeExit(),"visible"===u){var p=this._onEnter;this._ngZone.run(function(){p.next(),p.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe((0,$i.q)(1)).subscribe(function(){a._onExit.next(),a._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var a=this._elementRef.nativeElement,s=this.snackBarConfig.panelClass;s&&(Array.isArray(s)?s.forEach(function(u){return a.classList.add(u)}):a.classList.add(s)),"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){var s=a._elementRef.nativeElement.querySelector("[aria-hidden]"),u=a._elementRef.nativeElement.querySelector("[aria-live]");if(s&&u){var p=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&s.contains(document.activeElement)&&(p=document.activeElement),s.removeAttribute("aria-hidden"),u.appendChild(s),null==p||p.focus(),a._onAnnounce.next(),a._onAnnounce.complete()}},a._announceDelay)})}}]),i}(qi.en);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Xr.t4),e.Y36(d2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["snack-bar-container"]],viewQuery:function(t,i){var o;1&t&&e.Gf(qi.Pl,7),2&t&&e.iGM(o=e.CRH())&&(i._portalOutlet=o.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,i){1&t&&e.WFA("@state.done",function(a){return i.onAnimationEnd(a)}),2&t&&e.d8E("@state",i._animationState)},features:[e.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Rae,0,0,"ng-template",1),e.qZA(),e._UZ(2,"div")),2&t&&(e.xp6(2),e.uIk("aria-live",i._live)("role",i._role))},directives:[qi.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[Lae.snackBarState]}}),n}(),wq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[so.U8,qi.eL,kt.ez,l2,un.BQ],un.BQ]}),n}(),Eq=new e.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new d2}}),Uae=function(){var n=function(){function r(t,i,o,a,s,u){(0,g.Z)(this,r),this._overlay=t,this._live=i,this._injector=o,this._breakpointObserver=a,this._parentSnackBar=s,this._defaultConfig=u,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=Zae,this.snackBarContainerComponent=Fae,this.handsetCssClass="mat-snack-bar-handset"}return(0,T.Z)(r,[{key:"_openedSnackBarRef",get:function(){var i=this._parentSnackBar;return i?i._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(i){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=i:this._snackBarRefAtThisLevel=i}},{key:"openFromComponent",value:function(i,o){return this._attach(i,o)}},{key:"openFromTemplate",value:function(i,o){return this._attach(i,o)}},{key:"open",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,s=Object.assign(Object.assign({},this._defaultConfig),a);return s.data={message:i,action:o},s.announcementMessage===i&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(i,o){var s=e.zs3.create({parent:o&&o.viewContainerRef&&o.viewContainerRef.injector||this._injector,providers:[{provide:d2,useValue:o}]}),u=new qi.C5(this.snackBarContainerComponent,o.viewContainerRef,s),p=i.attach(u);return p.instance.snackBarConfig=o,p.instance}},{key:"_attach",value:function(i,o){var a=this,s=Object.assign(Object.assign(Object.assign({},new d2),this._defaultConfig),o),u=this._createOverlay(s),p=this._attachSnackBarContainer(u,s),m=new GZ(p,u);if(i instanceof e.Rgc){var C=new qi.UE(i,null,{$implicit:s.data,snackBarRef:m});m.instance=p.attachTemplatePortal(C)}else{var P=this._createInjector(s,m),L=new qi.C5(i,void 0,P),G=p.attachComponentPortal(L);m.instance=G.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe((0,Zr.R)(u.detachments())).subscribe(function(Y){var te=u.overlayElement.classList;Y.matches?te.add(a.handsetCssClass):te.remove(a.handsetCssClass)}),s.announcementMessage&&p._onAnnounce.subscribe(function(){a._live.announce(s.announcementMessage,s.politeness)}),this._animateSnackBar(m,s),this._openedSnackBarRef=m,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(i,o){var a=this;i.afterDismissed().subscribe(function(){a._openedSnackBarRef==i&&(a._openedSnackBarRef=null),o.announcementMessage&&a._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){i.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):i.containerInstance.enter(),o.duration&&o.duration>0&&i.afterOpened().subscribe(function(){return i._dismissAfter(o.duration)})}},{key:"_createOverlay",value:function(i){var o=new so.X_;o.direction=i.direction;var a=this._overlay.position().global(),s="rtl"===i.direction,u="left"===i.horizontalPosition||"start"===i.horizontalPosition&&!s||"end"===i.horizontalPosition&&s,p=!u&&"center"!==i.horizontalPosition;return u?a.left("0"):p?a.right("0"):a.centerHorizontally(),"top"===i.verticalPosition?a.top("0"):a.bottom("0"),o.positionStrategy=a,this._overlay.create(o)}},{key:"_createInjector",value:function(i,o){return e.zs3.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:GZ,useValue:o},{provide:xq,useValue:i.data}]})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(so.aV),e.LFG(Ai.Kd),e.LFG(e.zs3),e.LFG(u2),e.LFG(n,12),e.LFG(Eq))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(so.aV),e.LFG(Ai.Kd),e.LFG(e.gxx),e.LFG(u2),e.LFG(n,12),e.LFG(Eq))},token:n,providedIn:wq}),n}(),Xn=function(){function n(r,t){this.snackbar=r,this.zone=t,this.snackBarConfigForSuccess={duration:4e3,panelClass:["snackabar-success"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForWarning={duration:4e3,panelClass:["snackabar-warning"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForError={duration:1e4,panelClass:["snackabar-error"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"}}return n.prototype.error=function(r){var t=this;this.zone.run(function(){t.snackbar.open(r,"Close",t.snackBarConfigForError)})},n.prototype.warning=function(r){var t=this;this.zone.run(function(){t.snackbar.open(r,"Close",t.snackBarConfigForWarning)})},n.prototype.success=function(r){var t=this;this.zone.run(function(){t.snackbar.open(r,"Close",t.snackBarConfigForSuccess)})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Uae),e.LFG(e.R0b))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Hae=["*",[["mat-card-footer"]]],Vae=["*","mat-card-footer"],YZ=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n}(),kq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n}(),Mq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),n}(),Gae=function(){var n=function r(){(0,g.Z)(this,r),this.align="start"};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("mat-card-actions-align-end","end"===i.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),n}(),yi=function(){var n=function r(t){(0,g.Z)(this,r),this._animationMode=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(ys.Qb,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:Vae,decls:2,vars:0,template:function(t,i){1&t&&(e.F$t(Hae),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),n}(),Yae=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.BQ],un.BQ]}),n}(),Hn=f(36410),Aq=(f(54562),(0,Xr.i$)({passive:!0})),Dq=function(){var n=function(){function r(t,i){(0,g.Z)(this,r),this._platform=t,this._ngZone=i,this._monitoredElements=new Map}return(0,T.Z)(r,[{key:"monitor",value:function(i){var o=this;if(!this._platform.isBrowser)return nv.E;var a=(0,Mn.fI)(i),s=this._monitoredElements.get(a);if(s)return s.subject;var u=new Pn.xQ,p="cdk-text-field-autofilled",m=function(P){"cdk-text-field-autofill-start"!==P.animationName||a.classList.contains(p)?"cdk-text-field-autofill-end"===P.animationName&&a.classList.contains(p)&&(a.classList.remove(p),o._ngZone.run(function(){return u.next({target:P.target,isAutofilled:!1})})):(a.classList.add(p),o._ngZone.run(function(){return u.next({target:P.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){a.addEventListener("animationstart",m,Aq),a.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(a,{subject:u,unlisten:function(){a.removeEventListener("animationstart",m,Aq)}}),u}},{key:"stopMonitoring",value:function(i){var o=(0,Mn.fI)(i),a=this._monitoredElements.get(o);a&&(a.unlisten(),a.subject.complete(),o.classList.remove("cdk-text-field-autofill-monitored"),o.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(o))}},{key:"ngOnDestroy",value:function(){var i=this;this._monitoredElements.forEach(function(o,a){return i.stopMonitoring(a)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(Xr.t4),e.LFG(e.R0b))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(Xr.t4),e.LFG(e.R0b))},token:n,providedIn:"root"}),n}(),Oq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Xr.ud]]}),n}(),Kae=new e.OlP("MAT_INPUT_VALUE_ACCESSOR"),Xae=["button","checkbox","file","hidden","image","radio","range","reset","submit"],$ae=0,ese=(0,un.FD)(function(){return function n(r,t,i,o){(0,g.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=t,this._parentFormGroup=i,this.ngControl=o}}()),lr=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p,m,C,P,L,G){var Y;(0,g.Z)(this,i),(Y=t.call(this,m,u,p,s))._elementRef=o,Y._platform=a,Y._autofillMonitor=P,Y._formField=G,Y._uid="mat-input-".concat($ae++),Y.focused=!1,Y.stateChanges=new Pn.xQ,Y.controlType="mat-input",Y.autofilled=!1,Y._disabled=!1,Y._required=!1,Y._type="text",Y._readonly=!1,Y._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(Me){return(0,Xr.qK)().has(Me)});var te=Y._elementRef.nativeElement,de=te.nodeName.toLowerCase();return Y._inputValueAccessor=C||te,Y._previousNativeValue=Y.value,Y.id=Y.id,a.IOS&&L.runOutsideAngular(function(){o.nativeElement.addEventListener("keyup",function(Me){var st=Me.target;!st.value&&0===st.selectionStart&&0===st.selectionEnd&&(st.setSelectionRange(1,1),st.setSelectionRange(0,0))})}),Y._isServer=!Y._platform.isBrowser,Y._isNativeSelect="select"===de,Y._isTextarea="textarea"===de,Y._isInFormField=!!G,Y._isNativeSelect&&(Y.controlType=te.multiple?"mat-native-select-multiple":"mat-native-select"),Y}return(0,T.Z)(i,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(a){this._disabled=(0,Mn.Ig)(a),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(a){this._id=a||this._uid}},{key:"required",get:function(){return this._required},set:function(a){this._required=(0,Mn.Ig)(a)}},{key:"type",get:function(){return this._type},set:function(a){this._type=a||"text",this._validateType(),!this._isTextarea&&(0,Xr.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(a){a!==this.value&&(this._inputValueAccessor.value=a,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(a){this._readonly=(0,Mn.Ig)(a)}},{key:"ngAfterViewInit",value:function(){var a=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(s){a.autofilled=s.isAutofilled,a.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(a){this._elementRef.nativeElement.focus(a)}},{key:"_focusChanged",value:function(a){a!==this.focused&&(this.focused=a,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var a,s,u=(null===(s=null===(a=this._formField)||void 0===a?void 0:a._hideControlPlaceholder)||void 0===s?void 0:s.call(a))?null:this.placeholder;if(u!==this._previousPlaceholder){var p=this._elementRef.nativeElement;this._previousPlaceholder=u,u?p.setAttribute("placeholder",u):p.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var a=this._elementRef.nativeElement.value;this._previousNativeValue!==a&&(this._previousNativeValue=a,this.stateChanges.next())}},{key:"_validateType",value:function(){Xae.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var a=this._elementRef.nativeElement,s=a.options[0];return this.focused||a.multiple||!this.empty||!!(a.selectedIndex>-1&&s&&s.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var a=this._elementRef.nativeElement;return this._isNativeSelect&&(a.multiple||a.size>1)}}]),i}(ese);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(Xr.t4),e.Y36(re.a5,10),e.Y36(re.F,8),e.Y36(re.sg,8),e.Y36(un.rD),e.Y36(Kae,10),e.Y36(Dq),e.Y36(e.R0b),e.Y36(Hn.G_,8))},n.\u0275dir=e.lG2({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(t,i){1&t&&e.NdJ("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&t&&(e.Ikx("disabled",i.disabled)("required",i.required),e.uIk("id",i.id)("data-placeholder",i.placeholder)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),e.ekj("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[e._Bn([{provide:Hn.Eo,useExisting:n}]),e.qOj,e.TTD]}),n}(),tse=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[un.rD],imports:[[Oq,Hn.lN,un.BQ],Oq,Hn.lN]}),n}(),pi=f(73044);function nse(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"You must enter a value"),e.qZA())}function rse(n,r){if(1&n&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function ise(n,r){if(1&n&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function ose(n,r){if(1&n&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function ase(n,r){if(1&n&&(e.TgZ(0,"mat-form-field"),e.TgZ(1,"mat-select",15),e.YNc(2,ose,2,2,"mat-option",10),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.authorizations)}}function sse(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",16),e.qZA())}function lse(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",17),e.qZA())}var use=function(){function n(r,t,i,o,a){this.serverService=r,this.serverDatabase=t,this.route=i,this.router=o,this.toasterService=a,this.serverOptionsVisibility=!1,this.authorizations=[{key:"none",name:"No authorization"},{key:"basic",name:"Basic authorization"}],this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[{key:"local",name:"Local"},{key:"remote",name:"Remote"}],this.serverForm=new re.cw({name:new re.NI("",[re.kI.required]),location:new re.NI(""),protocol:new re.NI("http:"),authorization:new re.NI("none"),login:new re.NI(""),password:new re.NI("")})}return n.prototype.ngOnInit=function(){return(0,Jn.mG)(this,void 0,void 0,function(){var r=this;return(0,Jn.Jh)(this,function(t){return this.serverService.isServiceInitialized&&this.getServers(),this.serverService.serviceInitialized.subscribe(function(i){return(0,Jn.mG)(r,void 0,void 0,function(){return(0,Jn.Jh)(this,function(o){return i&&this.getServers(),[2]})})}),[2]})})},n.prototype.getServers=function(){return(0,Jn.mG)(this,void 0,void 0,function(){var r,t,i=this;return(0,Jn.Jh)(this,function(o){switch(o.label){case 0:return this.serverIp=this.route.snapshot.paramMap.get("server_ip"),this.serverPort=+this.route.snapshot.paramMap.get("server_port"),this.projectId=this.route.snapshot.paramMap.get("project_id"),[4,this.serverService.findAll()];case 1:return r=o.sent(),(t=r.filter(function(a){return a.host===i.serverIp&&a.port===i.serverPort})[0])?this.router.navigate(["/server",t.id,"project",this.projectId]):this.serverOptionsVisibility=!0,[2]}})})},n.prototype.createServer=function(){var r=this;if(this.serverForm.get("name").hasError||this.serverForm.get("location").hasError||this.serverForm.get("protocol").hasError)if("basic"!==this.serverForm.get("authorization").value||this.serverForm.get("login").value||this.serverForm.get("password").value){var t=new a2;t.host=this.serverIp,t.port=this.serverPort,t.name=this.serverForm.get("name").value,t.location=this.serverForm.get("location").value,t.protocol=this.serverForm.get("protocol").value,t.authorization=this.serverForm.get("authorization").value,t.login=this.serverForm.get("login").value,t.password=this.serverForm.get("password").value,this.serverService.create(t).then(function(i){r.router.navigate(["/server",i.id,"project",r.projectId])})}else this.toasterService.error("Please use correct values");else this.toasterService.error("Please use correct values")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Br),e.Y36(c2),e.Y36(Dr),e.Y36(xr),e.Y36(Xn))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-direct-link"]],decls:23,vars:8,consts:[[1,"content",3,"hidden"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["placeholder","Location","formControlName","location"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Protocol","formControlName","protocol"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Authorization","formControlName","authorization"],["matInput","","tabindex","1","formControlName","login","placeholder","Login"],["matInput","","type","password","tabindex","1","formControlName","password","placeholder","Password"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Add new server"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"form",6),e.TgZ(8,"mat-form-field"),e._UZ(9,"input",7),e.YNc(10,nse,2,0,"mat-error",8),e.qZA(),e.TgZ(11,"mat-form-field"),e.TgZ(12,"mat-select",9),e.YNc(13,rse,2,2,"mat-option",10),e.qZA(),e.qZA(),e.TgZ(14,"mat-form-field"),e.TgZ(15,"mat-select",11),e.YNc(16,ise,2,2,"mat-option",10),e.qZA(),e.qZA(),e.YNc(17,ase,3,1,"mat-form-field",8),e.YNc(18,sse,2,0,"mat-form-field",8),e.YNc(19,lse,2,0,"mat-form-field",8),e.qZA(),e.qZA(),e.TgZ(20,"div",12),e.TgZ(21,"button",13),e.NdJ("click",function(){return i.createServer()}),e._uU(22,"Add server"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("hidden",!i.serverOptionsVisibility),e.xp6(7),e.Q6J("formGroup",i.serverForm),e.xp6(3),e.Q6J("ngIf",i.serverForm.get("name").hasError("required")),e.xp6(3),e.Q6J("ngForOf",i.locations),e.xp6(3),e.Q6J("ngForOf",i.protocols),e.xp6(1),e.Q6J("ngIf","remote"===i.serverForm.get("location").value),e.xp6(1),e.Q6J("ngIf","basic"===i.serverForm.get("authorization").value),e.xp6(1),e.Q6J("ngIf","basic"===i.serverForm.get("authorization").value))},directives:[yi,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,kt.O5,pi.gD,kt.sg,An,Hn.TO,un.ey],styles:["mat-form-field{width:100%}\n"],encapsulation:2}),n}(),cse=0,JZ=new e.OlP("CdkAccordion"),dse=function(){var n=function(){function r(){(0,g.Z)(this,r),this._stateChanges=new Pn.xQ,this._openCloseAllActions=new Pn.xQ,this.id="cdk-accordion-".concat(cse++),this._multi=!1}return(0,T.Z)(r,[{key:"multi",get:function(){return this._multi},set:function(i){this._multi=(0,Mn.Ig)(i)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(i){this._stateChanges.next(i)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),r}();return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:JZ,useExisting:n}]),e.TTD]}),n}(),pse=0,hse=function(){var n=function(){function r(t,i,o){var a=this;(0,g.Z)(this,r),this.accordion=t,this._changeDetectorRef=i,this._expansionDispatcher=o,this._openCloseAllSubscription=rs.w.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-".concat(pse++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=o.listen(function(s,u){a.accordion&&!a.accordion.multi&&a.accordion.id===u&&a.id!==s&&(a.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return(0,T.Z)(r,[{key:"expanded",get:function(){return this._expanded},set:function(i){i=(0,Mn.Ig)(i),this._expanded!==i&&(this._expanded=i,this.expandedChange.emit(i),i?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(i){this._disabled=(0,Mn.Ig)(i)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var i=this;return this.accordion._openCloseAllActions.subscribe(function(o){i.disabled||(i.expanded=o)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(JZ,12),e.Y36(e.sBO),e.Y36(Gi.A8))},n.\u0275dir=e.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:JZ,useValue:void 0}])]}),n}(),mse=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}(),vse=["body"];function gse(n,r){}var _se=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],yse=["mat-expansion-panel-header","*","mat-action-row"];function bse(n,r){if(1&n&&e._UZ(0,"span",2),2&n){var t=e.oxw();e.Q6J("@indicatorRotate",t._getExpandedState())}}var Cse=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Sse=["mat-panel-title","mat-panel-description","*"],QZ=new e.OlP("MAT_ACCORDION"),Pq="225ms cubic-bezier(0.4,0.0,0.2,1)",Iq={indicatorRotate:(0,on.X$)("indicatorRotate",[(0,on.SB)("collapsed, void",(0,on.oB)({transform:"rotate(0deg)"})),(0,on.SB)("expanded",(0,on.oB)({transform:"rotate(180deg)"})),(0,on.eR)("expanded <=> collapsed, void => collapsed",(0,on.jt)(Pq))]),bodyExpansion:(0,on.X$)("bodyExpansion",[(0,on.SB)("collapsed, void",(0,on.oB)({height:"0px",visibility:"hidden"})),(0,on.SB)("expanded",(0,on.oB)({height:"*",visibility:"visible"})),(0,on.eR)("expanded <=> collapsed, void => collapsed",(0,on.jt)(Pq))])},Tse=function(){var n=function r(t){(0,g.Z)(this,r),this._template=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n}(),xse=0,Rq=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),oc=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p,m,C){var P;return(0,g.Z)(this,i),(P=t.call(this,o,a,s))._viewContainerRef=u,P._animationMode=m,P._hideToggle=!1,P.afterExpand=new e.vpe,P.afterCollapse=new e.vpe,P._inputChanges=new Pn.xQ,P._headerId="mat-expansion-panel-header-".concat(xse++),P._bodyAnimationDone=new Pn.xQ,P.accordion=o,P._document=p,P._bodyAnimationDone.pipe((0,u_.x)(function(L,G){return L.fromState===G.fromState&&L.toState===G.toState})).subscribe(function(L){"void"!==L.fromState&&("expanded"===L.toState?P.afterExpand.emit():"collapsed"===L.toState&&P.afterCollapse.emit())}),C&&(P.hideToggle=C.hideToggle),P}return(0,T.Z)(i,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(a){this._hideToggle=(0,Mn.Ig)(a)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(a){this._togglePosition=a}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var a=this;this._lazyContent&&this.opened.pipe((0,ra.O)(null),(0,mi.h)(function(){return a.expanded&&!a._portal}),(0,$i.q)(1)).subscribe(function(){a._portal=new qi.UE(a._lazyContent._template,a._viewContainerRef)})}},{key:"ngOnChanges",value:function(a){this._inputChanges.next(a)}},{key:"ngOnDestroy",value:function(){(0,I.Z)((0,D.Z)(i.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var a=this._document.activeElement,s=this._body.nativeElement;return a===s||s.contains(a)}return!1}}]),i}(hse);return n.\u0275fac=function(t){return new(t||n)(e.Y36(QZ,12),e.Y36(e.sBO),e.Y36(Gi.A8),e.Y36(e.s_b),e.Y36(kt.K0),e.Y36(ys.Qb,8),e.Y36(Rq,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,Tse,5),2&t&&e.iGM(a=e.CRH())&&(i._lazyContent=a.first)},viewQuery:function(t,i){var o;1&t&&e.Gf(vse,5),2&t&&e.iGM(o=e.CRH())&&(i._body=o.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,i){2&t&&e.ekj("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:QZ,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:yse,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,i){1&t&&(e.F$t(_se),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(a){return i._bodyAnimationDone.next(a)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,gse,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("@bodyExpansion",i._getExpandedState())("id",i.id),e.uIk("aria-labelledby",i._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",i._portal))},directives:[qi.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Iq.bodyExpansion]},changeDetection:0}),n}(),kse=(0,un.sb)(function n(){(0,g.Z)(this,n)}),ac=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p,m,C){var P;(0,g.Z)(this,i),(P=t.call(this)).panel=o,P._element=a,P._focusMonitor=s,P._changeDetectorRef=u,P._animationMode=m,P._parentChangeSubscription=rs.w.EMPTY;var L=o.accordion?o.accordion._stateChanges.pipe((0,mi.h)(function(G){return!(!G.hideToggle&&!G.togglePosition)})):nv.E;return P.tabIndex=parseInt(C||"")||0,P._parentChangeSubscription=(0,go.T)(o.opened,o.closed,L,o._inputChanges.pipe((0,mi.h)(function(G){return!!(G.hideToggle||G.disabled||G.togglePosition)}))).subscribe(function(){return P._changeDetectorRef.markForCheck()}),o.closed.pipe((0,mi.h)(function(){return o._containsFocus()})).subscribe(function(){return s.focusVia(a,"program")}),p&&(P.expandedHeight=p.expandedHeight,P.collapsedHeight=p.collapsedHeight),P}return(0,T.Z)(i,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var a=this._isExpanded();return a&&this.expandedHeight?this.expandedHeight:!a&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(a){switch(a.keyCode){case zr.L_:case zr.K5:(0,zr.Vb)(a)||(a.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a))}}},{key:"focus",value:function(a,s){a?this._focusMonitor.focusVia(this._element,a,s):this._element.nativeElement.focus(s)}},{key:"ngAfterViewInit",value:function(){var a=this;this._focusMonitor.monitor(this._element).subscribe(function(s){s&&a.panel.accordion&&a.panel.accordion._handleHeaderFocus(a)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),i}(kse);return n.\u0275fac=function(t){return new(t||n)(e.Y36(oc,1),e.Y36(e.SBq),e.Y36(Ai.tE),e.Y36(e.sBO),e.Y36(Rq,8),e.Y36(ys.Qb,8),e.$8M("tabindex"))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,i){1&t&&e.NdJ("click",function(){return i._toggle()})("keydown",function(a){return i._keydown(a)}),2&t&&(e.uIk("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),e.Udp("height",i._getHeaderHeight()),e.ekj("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:Sse,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,i){1&t&&(e.F$t(Cse),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,bse,1,1,"span",1)),2&t&&(e.xp6(4),e.Q6J("ngIf",i._showToggle()))},directives:[kt.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[Iq.indicatorRotate]},changeDetection:0}),n}(),Mse=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),n}(),rd=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n}(),id=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments))._ownHeaders=new e.n_E,o._hideToggle=!1,o.displayMode="default",o.togglePosition="after",o}return(0,T.Z)(i,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(a){this._hideToggle=(0,Mn.Ig)(a)}},{key:"ngAfterContentInit",value:function(){var a=this;this._headers.changes.pipe((0,ra.O)(this._headers)).subscribe(function(s){a._ownHeaders.reset(s.filter(function(u){return u.panel.accordion===a})),a._ownHeaders.notifyOnChanges()}),this._keyManager=new Ai.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(a){this._keyManager.onKeydown(a)}},{key:"_handleHeaderFocus",value:function(a){this._keyManager.updateActiveItem(a)}},{key:"ngOnDestroy",value:function(){(0,I.Z)((0,D.Z)(i.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),i}(dse);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,ac,5),2&t&&e.iGM(a=e.CRH())&&(i._headers=a)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("mat-accordion-multi",i.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[e._Bn([{provide:QZ,useExisting:n}]),e.qOj]}),n}(),Ase=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[kt.ez,un.BQ,mse,qi.eL]]}),n}(),Nq=f(93386),KZ=["*"],XZ='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',Dse=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Ose=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Zq=(0,un.Id)((0,un.Kr)(function(){return function n(){(0,g.Z)(this,n)}}())),Zse=(0,un.Kr)(function(){return function n(){(0,g.Z)(this,n)}}()),Lq=new e.OlP("MatList"),Fq=new e.OlP("MatNavList"),Du=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments))._stateChanges=new Pn.xQ,o}return(0,T.Z)(i,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Zq);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[e._Bn([{provide:Fq,useExisting:n}]),e.qOj,e.TTD],ngContentSelectors:KZ,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[XZ],encapsulation:2,changeDetection:0}),n}(),$Z=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o){var a;return(0,g.Z)(this,i),(a=t.call(this))._elementRef=o,a._stateChanges=new Pn.xQ,"action-list"===a._getListType()&&o.nativeElement.classList.add("mat-action-list"),a}return(0,T.Z)(i,[{key:"_getListType",value:function(){var a=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===a?"list":"mat-action-list"===a?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Zq);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[e._Bn([{provide:Lq,useExisting:n}]),e.qOj,e.TTD],ngContentSelectors:KZ,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[XZ],encapsulation:2,changeDetection:0}),n}(),Bq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n}(),Uq=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n}(),Ss=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u){var p;(0,g.Z)(this,i),(p=t.call(this))._element=o,p._isInteractiveList=!1,p._destroyed=new Pn.xQ,p._disabled=!1,p._isInteractiveList=!!(s||u&&"action-list"===u._getListType()),p._list=s||u;var m=p._getHostElement();return"button"===m.nodeName.toLowerCase()&&!m.hasAttribute("type")&&m.setAttribute("type","button"),p._list&&p._list._stateChanges.pipe((0,Zr.R)(p._destroyed)).subscribe(function(){a.markForCheck()}),p}return(0,T.Z)(i,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(a){this._disabled=(0,Mn.Ig)(a)}},{key:"ngAfterContentInit",value:function(){(0,un.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),i}(Zse);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Fq,8),e.Y36(Lq,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,Bq,5),e.Suo(o,Uq,5),e.Suo(o,un.X2,5)),2&t&&(e.iGM(a=e.CRH())&&(i._avatar=a.first),e.iGM(a=e.CRH())&&(i._icon=a.first),e.iGM(a=e.CRH())&&(i._lines=a))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,i){2&t&&e.ekj("mat-list-item-disabled",i.disabled)("mat-list-item-avatar",i._avatar||i._icon)("mat-list-item-with-avatar",i._avatar||i._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[e.qOj],ngContentSelectors:Ose,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,i){1&t&&(e.F$t(Dse),e.TgZ(0,"div",0),e._UZ(1,"div",1),e.Hsn(2),e.TgZ(3,"div",2),e.Hsn(4,1),e.qZA(),e.Hsn(5,2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()))},directives:[un.wG],encapsulation:2,changeDetection:0}),n}(),Vse=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.uc,un.si,un.BQ,un.us,kt.ez],un.uc,un.BQ,un.us,Nq.t]}),n}(),qse=function(){function n(r){this.httpClient=r,this.thirdpartylicenses="",this.releasenotes=""}return n.prototype.ngOnInit=function(){var r=this;this.httpClient.get(window.location.href+"/3rdpartylicenses.txt",{responseType:"text"}).subscribe(function(t){r.thirdpartylicenses=t.replace(new RegExp("\n","g"),"<br />")},function(t){404===t.status&&(r.thirdpartylicenses="File not found")}),this.httpClient.get("ReleaseNotes.txt",{responseType:"text"}).subscribe(function(t){r.releasenotes=t.replace(new RegExp("\n","g"),"<br />")})},n.prototype.goToDocumentation=function(){window.location.href="https://docs.gns3.com/docs/"},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ku.eN))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-help"]],decls:38,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"innerHTML"],["mat-button","","color","primary",1,"full-width",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"h1"),e._uU(3,"Help"),e.qZA(),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"div",3),e.TgZ(6,"mat-accordion"),e.TgZ(7,"mat-expansion-panel"),e.TgZ(8,"mat-expansion-panel-header"),e.TgZ(9,"mat-panel-title"),e._uU(10," Useful shortcuts "),e.qZA(),e.qZA(),e.TgZ(11,"mat-list"),e.TgZ(12,"mat-list-item"),e._uU(13," ctrl + + to zoom in "),e.qZA(),e.TgZ(14,"mat-list-item"),e._uU(15," ctrl + - to zoom out "),e.qZA(),e.TgZ(16,"mat-list-item"),e._uU(17," ctrl + 0 to reset zoom "),e.qZA(),e.TgZ(18,"mat-list-item"),e._uU(19," ctrl + h to hide toolbar "),e.qZA(),e.TgZ(20,"mat-list-item"),e._uU(21," ctrl + a to select all items on map "),e.qZA(),e.TgZ(22,"mat-list-item"),e._uU(23," ctrl + shift + a to deselect all items on map "),e.qZA(),e.TgZ(24,"mat-list-item"),e._uU(25," ctrl + shift + s to go to preferences "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"mat-expansion-panel"),e.TgZ(27,"mat-expansion-panel-header"),e.TgZ(28,"mat-panel-title"),e._uU(29," Third party components "),e.qZA(),e.qZA(),e._UZ(30,"div",4),e.qZA(),e.TgZ(31,"mat-expansion-panel"),e.TgZ(32,"mat-expansion-panel-header"),e.TgZ(33,"mat-panel-title"),e._uU(34," Release notes "),e.qZA(),e.qZA(),e._UZ(35,"div",4),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"button",5),e.NdJ("click",function(){return i.goToDocumentation()}),e._uU(37,"Go to documentation"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(30),e.Q6J("innerHTML",i.thirdpartylicenses,e.oJD),e.xp6(5),e.Q6J("innerHTML",i.releasenotes,e.oJD))},directives:[id,oc,ac,rd,$Z,Ss,An],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-top:20px}"]}),n}(),Vq=function(){function n(r){this.electronService=r}return n.prototype.isWindows=function(){return"win32"===this.electronService.process.platform},n.prototype.isLinux=function(){return"linux"===this.electronService.process.platform},n.prototype.isDarwin=function(){return"darwin"===this.electronService.process.platform},n.\u0275fac=function(t){return new(t||n)(e.LFG(cs))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),qq=function(){function n(r){this.platformService=r}return n.prototype.get=function(){return this.platformService.isWindows()?this.getForWindows():this.platformService.isDarwin()?this.getForDarwin():this.getForLinux()},n.prototype.getForWindows=function(){var r=[{name:"Wireshark",locations:["C:\\Program Files\\Wireshark\\Wireshark.exe"],type:"web",resource:"https://1.na.dl.wireshark.org/win64/all-versions/Wireshark-win64-2.6.3.exe",binary:"Wireshark.exe",sudo:!0,installation_arguments:[],installed:!1,installer:!0}];return r},n.prototype.getForLinux=function(){return[]},n.prototype.getForDarwin=function(){return[]},n.\u0275fac=function(t){return new(t||n)(e.LFG(Vq))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),jq=function(){function n(r,t){this.electronService=r,this.externalSoftwareDefinition=t}return n.prototype.list=function(){var r=this.externalSoftwareDefinition.get(),t=this.electronService.remote.require("./installed-software.js").getInstalledSoftware(r);return r.map(function(i){return i.installed=t[i.name].length>0,i})},n.\u0275fac=function(t){return new(t||n)(e.LFG(cs),e.LFG(qq))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),jse=[[["caption"]],[["colgroup"],["col"]]],zse=["caption","colgroup, col"],Jl=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments)).stickyCssClass="mat-table-sticky",o.needsPositionStickyOnElement=!1,o}return i}(ep);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,i){2&t&&e.ekj("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:Gi.k,useClass:Gi.yy},{provide:ep,useExisting:n},{provide:yu,useExisting:n},{provide:NC,useClass:GE},{provide:am,useValue:null}]),e.qOj],ngContentSelectors:zse,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){1&t&&(e.F$t(jse),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[s_,sm,wf,l_],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),n}(),ul=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Sf);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:Sf,useExisting:n}]),e.qOj]}),n}(),cl=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(jc);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:jc,useExisting:n}]),e.qOj]}),n}(),dl=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return(0,T.Z)(i,[{key:"name",get:function(){return this._name},set:function(a){this._setNameInput(a)}},{key:"_updateColumnCssClassName",value:function(){(0,I.Z)((0,D.Z)(i.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),i}(Qu);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:Qu,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),e.qOj]}),n}(),pl=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(zE);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),n}(),fl=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(IC);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),n}(),Ql=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Tf);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:Tf,useExisting:n}]),e.qOj]}),n}(),Kl=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(im);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:im,useExisting:n}]),e.qOj]}),n}(),Xl=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(FC);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:FC,useExisting:n}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&e.GkF(0,0)},directives:[bu],encapsulation:2}),n}(),$l=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(i_);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:i_,useExisting:n}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&e.GkF(0,0)},directives:[bu],encapsulation:2}),n}(),tle=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[QE,un.BQ],un.BQ]}),n}(),nle=9007199254740991,zq=function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,g.Z)(this,t),(i=r.call(this))._renderData=new eo.X([]),i._filter=new eo.X(""),i._internalPageChanges=new Pn.xQ,i._renderChangesSubscription=null,i.sortingDataAccessor=function(a,s){var u=a[s];if((0,Mn.t6)(u)){var p=Number(u);return p<nle?p:u}return u},i.sortData=function(a,s){var u=s.active,p=s.direction;return u&&""!=p?a.sort(function(m,C){var P=i.sortingDataAccessor(m,u),L=i.sortingDataAccessor(C,u),G=typeof P,Y=typeof L;G!==Y&&("number"===G&&(P+=""),"number"===Y&&(L+=""));var te=0;return null!=P&&null!=L?P>L?te=1:P<L&&(te=-1):null!=P?te=1:null!=L&&(te=-1),te*("asc"==p?1:-1)}):a},i.filterPredicate=function(a,s){var u=Object.keys(a).reduce(function(m,C){return m+a[C]+"\u25ec"},"").toLowerCase(),p=s.trim().toLowerCase();return-1!=u.indexOf(p)},i._data=new eo.X(o),i._updateChangeSubscription(),i}return(0,T.Z)(t,[{key:"data",get:function(){return this._data.value},set:function(o){this._data.next(o),this._renderChangesSubscription||this._filterData(o)}},{key:"filter",get:function(){return this._filter.value},set:function(o){this._filter.next(o),this._renderChangesSubscription||this._filterData(this.data)}},{key:"sort",get:function(){return this._sort},set:function(o){this._sort=o,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(o){this._paginator=o,this._updateChangeSubscription()}},{key:"_updateChangeSubscription",value:function(){var a,o=this,s=this._sort?(0,go.T)(this._sort.sortChange,this._sort.initialized):(0,rr.of)(null),u=this._paginator?(0,go.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,rr.of)(null),m=(0,lm.aj)([this._data,this._filter]).pipe((0,Er.U)(function(L){var G=(0,b.Z)(L,1);return o._filterData(G[0])})),C=(0,lm.aj)([m,s]).pipe((0,Er.U)(function(L){var G=(0,b.Z)(L,1);return o._orderData(G[0])})),P=(0,lm.aj)([C,u]).pipe((0,Er.U)(function(L){var G=(0,b.Z)(L,1);return o._pageData(G[0])}));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=P.subscribe(function(L){return o._renderData.next(L)})}},{key:"_filterData",value:function(o){var a=this;return this.filteredData=null==this.filter||""===this.filter?o:o.filter(function(s){return a.filterPredicate(s,a.filter)}),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}},{key:"_orderData",value:function(o){return this.sort?this.sortData(o.slice(),this.sort):o}},{key:"_pageData",value:function(o){if(!this.paginator)return o;var a=this.paginator.pageIndex*this.paginator.pageSize;return o.slice(a,a+this.paginator.pageSize)}},{key:"_updatePaginator",value:function(o){var a=this;Promise.resolve().then(function(){var s=a.paginator;if(s&&(s.length=o,s.pageIndex>0)){var u=Math.ceil(s.length/s.pageSize)-1||0,p=Math.min(s.pageIndex,u);p!==s.pageIndex&&(s.pageIndex=p,a._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var o;null===(o=this._renderChangesSubscription)||void 0===o||o.unsubscribe(),this._renderChangesSubscription=null}}]),t}(Gi.o2)),sc=f(15132),ile=function(n,r){return{hidden:n,lightTheme:r}},ole=/<a href="(.*)">(.*)<\/a><br\/>(.*)<br\/>\s*<button><a .*>(.*)<\/a>\s*<\/button>/i,ale=function(){function n(r,t,i){this.httpClient=r,this.themeService=t,this.location=i,this.isVisible=!1,this.isLightThemeEnabled=!1,this.adUrl="https://try.solarwinds.com/gns3-free-toolset-giveaway?CMP=LEC-HAD-GNS3-SW_NA_X_NP_X_X_EN_STSGA_SW-ST-20200901_ST_OF1_TRY-NWSLTR",this.adBody="Network Config Generator makes it easy configure network devices, including VLANs without opening the CLI",this.buttonLabel="Check it out!"}return n.prototype.hide=function(){this.isVisible=!1},n.prototype.ngOnInit=function(){var r=this;this.location.path().includes("nodes")||(this.httpClient.get("https://servedbyadbutler.com/adserve/;ID=165803;size=0x0;setID=371476;type=json;").subscribe(function(t){var i,o;if(null===(o=null===(i=null==t?void 0:t.placements)||void 0===i?void 0:i.placement_1)||void 0===o?void 0:o.body)try{var a=t.placements.placement_1.body.replace(/(\r\n|\n|\r)/gm,""),s=ole.exec(a);r.adUrl=s[1].trim(),r.adBody=s[3].trim(),r.buttonLabel=s[4].trim()}catch(u){}r.isVisible=!0},function(t){}),this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.themeService.themeChanged.subscribe(function(){r.isLightThemeEnabled="light"===r.themeService.getActualTheme()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ku.eN),e.Y36(sc.f),e.Y36(kt.Ye))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-adbutler"]],decls:10,vars:8,consts:[[1,"ad",3,"ngClass"],[1,"adInnerContainer"],[1,"adBody"],["target","_blank",3,"href"],[1,"close-button",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span",2),e.TgZ(3,"a",3),e._uU(4),e.qZA(),e.qZA(),e.TgZ(5,"button"),e.TgZ(6,"a",3),e._uU(7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(8,"mat-icon",4),e.NdJ("click",function(){return i.hide()}),e._uU(9,"close"),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngClass",e.WLB(5,ile,!i.isVisible,i.isLightThemeEnabled)),e.xp6(3),e.Q6J("href",i.adUrl,e.LSH),e.xp6(1),e.Oqu(i.adBody),e.xp6(2),e.Q6J("href",i.adUrl,e.LSH),e.xp6(1),e.Oqu(i.buttonLabel))},directives:[kt.mk,sr],styles:[".ad[_ngcontent-%COMP%]{position:fixed;left:0;right:0;bottom:0;background-color:#a8ecff;padding-top:10px;padding-bottom:10px;font-size:12px;font-weight:bold;opacity:.8}.adInnerContainer[_ngcontent-%COMP%]{margin:auto;text-align:center}.adBody[_ngcontent-%COMP%]{padding-right:16px}.close-button[_ngcontent-%COMP%]{position:absolute;top:15px;right:15px;color:#000!important}.lightTheme[_ngcontent-%COMP%]{background-color:#ddf9ff}.hidden[_ngcontent-%COMP%]{visibility:hidden}button[_ngcontent-%COMP%]{background-color:#01d4ff;margin-top:2px;border:none;outline:none;color:#fff;font-weight:bold;font-size:11px;padding:5px 15px;border-radius:6px}button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}a[_ngcontent-%COMP%]{color:#122124}"]}),n}();function sle(n,r){if(1&n&&(e.ynx(0),e._uU(1),e.BQk()),2&n){var t=e.oxw();e.xp6(1),e.Oqu(t.buttonText)}}var lle=function(){function n(r){this.electronService=r,this.installedChanged=new e.vpe,this.disabled=!1,this.readyToInstall=!0}return n.prototype.ngOnInit=function(){var r=this;this.electronService.ipcRenderer.on(this.responseChannel,function(t,i){r.updateButton(),r.installedChanged.emit(i)})},n.prototype.ngOnDestroy=function(){this.electronService.ipcRenderer.removeAllListeners(this.responseChannel)},n.prototype.ngOnChanges=function(){this.updateButton()},n.prototype.install=function(){this.disabled=!0,this.buttonText="Installing",this.electronService.ipcRenderer.send("installed-software-install",this.software)},Object.defineProperty(n.prototype,"responseChannel",{get:function(){return"installed-software-installed-"+this.software.name},enumerable:!1,configurable:!0}),n.prototype.updateButton=function(){this.disabled=this.software.installed,this.buttonText=this.software.installed?"Installed":"Install"},n.\u0275fac=function(t){return new(t||n)(e.Y36(cs))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-install-software"]],inputs:{software:"software"},outputs:{installedChanged:"installedChanged"},features:[e.TTD],decls:2,vars:2,consts:[["mat-button","","color","primary",3,"disabled","click"],[4,"ngIf"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.install()}),e.YNc(1,sle,2,1,"ng-container",1),e.qZA()),2&t&&(e.Q6J("disabled",i.disabled),e.xp6(1),e.Q6J("ngIf",i.readyToInstall))},directives:[An,kt.O5],styles:[""]}),n}();function ule(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Name "),e.qZA())}function cle(n,r){if(1&n&&(e.ynx(0),e._uU(1),e.BQk()),2&n){var t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function dle(n,r){1&n&&(e.ynx(0),e._UZ(1,"app-adbutler",14),e.BQk())}function ple(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e.YNc(1,cle,2,1,"ng-container",13),e.YNc(2,dle,2,0,"ng-container",13),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Q6J("ngIf","adbutler"!==t.type),e.xp6(1),e.Q6J("ngIf","adbutler"===t.type)}}function fle(n,r){1&n&&e._UZ(0,"mat-header-cell")}function hle(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-install-software",17),e.NdJ("installedChanged",function(a){return e.CHM(t),e.oxw(2).onInstalled(a)}),e.qZA()}if(2&n){var i=e.oxw().$implicit;e.Q6J("software",i)}}function mle(n,r){if(1&n&&(e.TgZ(0,"mat-cell",15),e.YNc(1,hle,1,1,"app-install-software",16),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Q6J("ngIf","adbutler"!==t.type)}}function vle(n,r){1&n&&e._UZ(0,"mat-header-row")}function gle(n,r){1&n&&e._UZ(0,"mat-row")}var _le=function(){function n(r,t){this.installedSoftwareService=r,this.changeDetectorRef=t,this.displayedColumns=["name","actions"]}return n.prototype.ngOnInit=function(){this.dataSource=new yle(this.installedSoftwareService)},n.prototype.onInstalled=function(r){this.dataSource.refresh(),this.changeDetectorRef.detectChanges()},n.\u0275fac=function(t){return new(t||n)(e.Y36(jq),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-installed-software"]],decls:16,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[4,"ngIf"],["theme","dark"],[2,"text-align","right"],[3,"software","installedChanged",4,"ngIf"],[3,"software","installedChanged"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"h1"),e._uU(3,"Installed software"),e.qZA(),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"div",3),e.TgZ(6,"mat-table",4,5),e.ynx(8,6),e.YNc(9,ule,2,0,"mat-header-cell",7),e.YNc(10,ple,3,2,"mat-cell",8),e.BQk(),e.ynx(11,9),e.YNc(12,fle,1,0,"mat-header-cell",7),e.YNc(13,mle,2,1,"mat-cell",10),e.BQk(),e.YNc(14,vle,1,0,"mat-header-row",11),e.YNc(15,gle,1,0,"mat-row",12),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("dataSource",i.dataSource),e.xp6(8),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns))},directives:[Jl,dl,cl,ul,Ql,Kl,pl,fl,kt.O5,ale,lle,Xl,$l],styles:[""]}),n}(),yle=function(n){function r(t){var i=n.call(this)||this;return i.installedSoftwareService=t,i.installed=new eo.X([]),i}return(0,Jn.ZT)(r,n),r.prototype.connect=function(){return this.refresh(),this.installed},r.prototype.disconnect=function(){},r.prototype.refresh=function(){var t=this.installedSoftwareService.list();t.push({type:"adbutler"}),this.installed.next(t)},r}(Gi.o2),ble=function(){function n(){}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-page-not-found"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],["mat-button","","routerLink","/servers"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"br"),e.TgZ(3,"h1"),e._uU(4,"404 Page not found"),e.qZA(),e.TgZ(5,"button",2),e._uU(6,"Navigate to homepage"),e.qZA(),e.qZA(),e.qZA())},directives:[An,ca],styles:["div[_ngcontent-%COMP%]{text-align:center}"]}),n}(),Cle=function(){function n(r){this.route=r,this.serverId=""}return n.prototype.ngOnInit=function(){this.serverId=this.route.snapshot.paramMap.get("server_id")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-built-in-preferences"]],decls:16,vars:4,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],[3,"routerLink"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Built-in preferences"),e.qZA(),e.TgZ(5,"button",4),e._uU(6," Back "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",5),e.TgZ(8,"div",6),e.TgZ(9,"mat-nav-list"),e.TgZ(10,"mat-list-item",7),e._uU(11," Ethernet hubs "),e.qZA(),e.TgZ(12,"mat-list-item",7),e._uU(13," Ethernet switches "),e.qZA(),e.TgZ(14,"mat-list-item",7),e._uU(15," Cloud nodes "),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.MGl("routerLink","/server/",i.serverId,"/preferences"),e.xp6(5),e.MGl("routerLink","/server/",i.serverId,"/preferences/builtin/ethernet-hubs"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/builtin/ethernet-switches"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/builtin/cloud-nodes"))},directives:[An,ca,Du,Ss],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),Ta=f(49940),od=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),lc=function(){function n(){}return n.prototype.getTracengTemplate=function(){return{builtin:!1,category:"guest",compute_id:"local",console_type:"none",default_name_format:"TraceNG{0}",ip_address:"",name:"",symbol:":/symbols/classic/traceng.svg",template_id:"",template_type:"traceng"}},n.prototype.getQemuTemplate=function(){return(0,rr.of)({adapter_type:"e1000",adapters:4,bios_image:"",boot_priority:"c",builtin:!1,category:"guest",cdrom_image:"",compute_id:"local",console_auto_start:!1,console_type:"telnet",cpu_throttling:0,cpus:1,custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",hda_disk_image:"",hda_disk_interface:"ide",hdb_disk_image:"",hdb_disk_interface:"ide",hdc_disk_image:"",hdc_disk_interface:"ide",hdd_disk_image:"",hdd_disk_interface:"ide",initrd:"",kernel_command_line:"",kernel_image:"",legacy_networking:!1,linked_clone:!0,mac_address:"",name:"",on_close:"power_off",options:"-nographic",platform:"",port_name_format:"Ethernet{0}",port_segment_size:0,process_priority:"normal",qemu_path:"",ram:256,symbol:":/symbols/qemu_guest.svg",template_id:"",template_type:"qemu",usage:"",replicate_network_connection_state:!0,tpm:!1,uefi:!1})},n.prototype.getVpcsTemplate=function(){return(0,rr.of)({base_script_file:"vpcs_base_config.txt",builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"telnet",default_name_format:"PC{0}",name:"",symbol:":/symbols/vpcs_guest.svg",template_id:"",template_type:"vpcs"})},n.prototype.getVirtualBoxTemplate=function(){return(0,rr.of)({adapter_type:"Intel PRO/1000 MT Desktop (82540EM)",adapters:1,builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",headless:!1,linked_clone:!1,name:"",on_close:"power_off",port_name_format:"Ethernet{0}",port_segment_size:0,ram:0,symbol:":/symbols/vbox_guest.svg",template_id:"",template_type:"virtualbox",usage:"",use_any_adapter:!1,vmname:""})},n.prototype.getCloudNodeTemplate=function(){return(0,rr.of)({builtin:!1,category:"guest",compute_id:"local",default_name_format:"Cloud{0}",name:"",ports_mapping:[],remote_console_type:"none",symbol:":/symbols/cloud.svg",template_id:"",template_type:"cloud"})},n.prototype.getEthernetHubTemplate=function(){return(0,rr.of)({builtin:!1,category:"switch",compute_id:"local",default_name_format:"Hub{0}",name:"",ports_mapping:[],symbol:":/symbols/hub.svg",template_id:"",template_type:"ethernet_hub"})},n.prototype.getEthernetSwitchTemplate=function(){return(0,rr.of)({builtin:!1,category:"switch",compute_id:"local",console_type:"telnet",default_name_format:"Switch{0}",name:"",ports_mapping:[],symbol:":/symbols/ethernet_switch.svg",template_id:"",template_type:"ethernet_switch"})},n.prototype.getIosTemplate=function(){return(0,rr.of)({auto_delete_disks:!0,builtin:!1,category:"router",compute_id:"local",console_auto_start:!1,console_type:"telnet",default_name_format:"R{0}",disk0:0,disk1:0,exec_area:64,idlemax:500,idlepc:"",idlesleep:30,image:"",mac_addr:"",mmap:!0,name:"",nvram:128,platform:"",private_config:"",ram:128,sparsemem:!0,startup_config:"",symbol:":/symbols/router.svg",system_id:"FTX0945W0MY",template_id:"",template_type:"dynamips",usage:""})},n.prototype.getVmwareTemplate=function(){return(0,rr.of)({adapter_type:"e1000",adapters:1,builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",headless:!1,linked_clone:!1,name:"",on_close:"power_off",port_name_format:"Ethernet{0}",port_segment_size:0,symbol:":/symbols/vmware_guest.svg",template_id:"",template_type:"vmware",usage:"",use_any_adapter:!1,vmx_path:""})},n.prototype.getDockerTemplate=function(){return(0,rr.of)({adapters:1,builtin:!1,category:"guest",compute_id:"vm",console_auto_start:!1,console_http_path:"/",console_http_port:80,console_resolution:"1024x768",console_type:"telnet",custom_adapters:[],default_name_format:"{name}-{0}",environment:"",extra_hosts:"",image:"",name:"",start_command:"",symbol:":/symbols/docker_guest.svg",template_id:"",template_type:"docker",usage:""})},n.prototype.getIouTemplate=function(){return(0,rr.of)({builtin:!1,category:"switch",compute_id:"vm",console_auto_start:!1,console_type:"telnet",default_name_format:"IOU{0}",ethernet_adapters:1,l1_keepalives:!1,name:"",nvram:128,path:"",private_config:"",ram:256,serial_adapters:0,startup_config:"iou_l2_base_startup-config.txt",symbol:":/symbols/multilayer_switch.svg",template_id:"",template_type:"iou",usage:"",use_default_iou_values:!0})},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),uc=f(36889),Sle=["input"],Tle=function(r){return{enterDuration:r}},xle=["*"],wle=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),Wq=0,kle={provide:re.JU,useExisting:(0,e.Gpc)(function(){return hl}),multi:!0},Gq=function n(r,t){(0,g.Z)(this,n),this.source=r,this.value=t},Yq=new e.OlP("MatRadioGroup"),Jq=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._changeDetector=t,this._value=null,this._name="mat-radio-group-".concat(Wq++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new e.vpe}return(0,T.Z)(r,[{key:"name",get:function(){return this._name},set:function(i){this._name=i,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(i){this._labelPosition="before"===i?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(i){this._value!==i&&(this._value=i,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(i){this._selected=i,this.value=i?i.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(i){this._disabled=(0,Mn.Ig)(i),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(i){this._required=(0,Mn.Ig)(i),this._markRadiosForCheck()}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var i=this;this._radios&&this._radios.forEach(function(o){o.name=i.name,o._markForCheck()})}},{key:"_updateSelectedRadioFromValue",value:function(){var i=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(function(a){a.checked=i.value===a.value,a.checked&&(i._selected=a)}))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new Gq(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(i){return i._markForCheck()})}},{key:"writeValue",value:function(i){this.value=i,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(i){this._controlValueAccessorChangeFn=i}},{key:"registerOnTouched",value:function(i){this.onTouched=i}},{key:"setDisabledState",value:function(i){this.disabled=i,this._changeDetector.markForCheck()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.sBO))},n.\u0275dir=e.lG2({type:n,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),n}(),hl=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Jq);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-radio-group"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,ml,5),2&t&&e.iGM(a=e.CRH())&&(i._radios=a)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([kle,{provide:Yq,useExisting:n}]),e.qOj]}),n}(),Ale=(0,un.Kr)((0,un.sb)(function n(r){(0,g.Z)(this,n),this._elementRef=r})),Dle=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p,m,C,P){var L;return(0,g.Z)(this,i),(L=t.call(this,a))._changeDetector=s,L._focusMonitor=u,L._radioDispatcher=p,L._providerOverride=C,L._uniqueId="mat-radio-".concat(++Wq),L.id=L._uniqueId,L.change=new e.vpe,L._checked=!1,L._value=null,L._removeUniqueSelectionListener=function(){},L.radioGroup=o,L._noopAnimations="NoopAnimations"===m,P&&(L.tabIndex=(0,Mn.su)(P,0)),L._removeUniqueSelectionListener=p.listen(function(G,Y){G!==L.id&&Y===L.name&&(L.checked=!1)}),L}return(0,T.Z)(i,[{key:"checked",get:function(){return this._checked},set:function(a){var s=(0,Mn.Ig)(a);this._checked!==s&&(this._checked=s,s&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!s&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),s&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(a){this._value!==a&&(this._value=a,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===a),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(a){this._labelPosition=a}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(a){this._setDisabled((0,Mn.Ig)(a))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){this._required=(0,Mn.Ig)(a)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(a){this._color=a}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"focus",value:function(a,s){s?this._focusMonitor.focusVia(this._inputElement,s,a):this._inputElement.nativeElement.focus(a)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(s){!s&&a.radioGroup&&a.radioGroup._touch()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new Gq(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(a){a.stopPropagation()}},{key:"_onInputInteraction",value:function(a){if(a.stopPropagation(),!this.checked&&!this.disabled){var s=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),s&&this.radioGroup._emitChangeEvent())}}},{key:"_setDisabled",value:function(a){this._disabled!==a&&(this._disabled=a,this._changeDetector.markForCheck())}}]),i}(Ale);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Jq),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ai.tE),e.Y36(Gi.A8),e.Y36(String),e.Y36(void 0),e.Y36(String))},n.\u0275dir=e.lG2({type:n,viewQuery:function(t,i){var o;1&t&&e.Gf(Sle,5),2&t&&e.iGM(o=e.CRH())&&(i._inputElement=o.first)},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[e.qOj]}),n}(),ml=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p,m,C,P){return(0,g.Z)(this,i),t.call(this,o,a,s,u,p,m,C,P)}return i}(Dle);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Yq,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ai.tE),e.Y36(Gi.A8),e.Y36(ys.Qb,8),e.Y36(wle,8),e.$8M("tabindex"))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,i){1&t&&e.NdJ("focus",function(){return i._inputElement.nativeElement.focus()}),2&t&&(e.uIk("tabindex",null)("id",i.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",i.checked)("mat-radio-disabled",i.disabled)("_mat-animation-noopable",i._noopAnimations)("mat-primary","primary"===i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:xle,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,i){if(1&t&&(e.F$t(),e.TgZ(0,"label",0,1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(s){return i._onInputInteraction(s)})("click",function(s){return i._onInputClick(s)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA(),e.qZA(),e.TgZ(9,"span",9),e.TgZ(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA(),e.qZA()),2&t){var o=e.MAs(1);e.uIk("for",i.inputId),e.xp6(5),e.Q6J("id",i.inputId)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex)("required",i.required),e.uIk("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",o)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,Tle,i._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==i.labelPosition)}},directives:[un.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),n}(),Ole=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.si,un.BQ],un.BQ]}),n}(),Ple=function(){function n(r,t,i,o,a,s,u,p){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=u,this.computeService=p,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)})})},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","cloud-nodes"])},n.prototype.addTemplate=function(){var t,r=this;this.formGroup.invalid?this.toasterService.error("Fill all required fields"):(this.templateMocksService.getCloudNodeTemplate().subscribe(function(i){t=i}),t.template_id=(0,Ta.v4)(),t.name=this.formGroup.get("templateName").value,t.compute_id=this.isGns3VmChosen?"vm":"local",this.builtInTemplatesService.addTemplate(this.server,t).subscribe(function(i){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(od),e.Y36(xr),e.Y36(Xn),e.Y36(lc),e.Y36(re.qu),e.Y36(uc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-cloud-nodes-add-template"]],decls:20,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New cloud node template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"mat-radio-group",6),e.TgZ(8,"mat-radio-button",7),e.NdJ("click",function(){return i.setServerType("local")}),e._uU(9,"Run the cloud node locally"),e.qZA(),e.TgZ(10,"mat-radio-button",8),e.NdJ("click",function(){return i.setServerType("gns3 vm")}),e._uU(11,"Run the cloud node on the GNS3 VM"),e.qZA(),e.qZA(),e.TgZ(12,"form",9),e.TgZ(13,"mat-form-field",10),e._UZ(14,"input",11),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"button",13),e.NdJ("click",function(){return i.goBack()}),e._uU(17,"Cancel"),e.qZA(),e.TgZ(18,"button",14),e.NdJ("click",function(){return i.addTemplate()}),e._uU(19,"Add template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("formGroup",i.formGroup))},directives:[yi,hl,ml,re._Y,re.JL,re.sg,Hn.KE,re.Fj,lr,re.JJ,re.u,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),eh=function(){function n(){}return n.prototype.getCategoriesForCloudNodes=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.prototype.getConsoleTypesForCloudNodes=function(){return["telnet","vnc","spice","http","https","none"]},n.prototype.getCategoriesForEthernetHubs=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.prototype.getCategoriesForEthernetSwitches=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.prototype.getConsoleTypesForEthernetSwitches=function(){return["telnet","none"]},n.prototype.getPortTypesForEthernetSwitches=function(){return["access","dot1q","qinq"]},n.prototype.getEtherTypesForEthernetSwitches=function(){return["0x8100","0x88A8","0x9100","0x9200"]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Ile=f(61106),NS=function(){function n(r){this.httpServer=r,this.symbols=new eo.X([]),this.maximumSymbolSize=80}return n.prototype.getMaximumSymbolSize=function(){return this.maximumSymbolSize},n.prototype.get=function(r){return this.symbols.getValue().find(function(t){return t.symbol_id===r})},n.prototype.getDimensions=function(r,t){var i=encodeURI(t);return this.httpServer.get(r,"/symbols/"+i+"/dimensions")},n.prototype.scaleDimensionsForNode=function(r){var t=r.width>r.height?this.maximumSymbolSize/r.width:this.maximumSymbolSize/r.height;return{width:r.width*t,height:r.height*t}},n.prototype.getByFilename=function(r){return this.symbols.getValue().find(function(t){return t.filename===r})},n.prototype.add=function(r,t,i){return this.cache=null,this.httpServer.post(r,"/symbols/"+t+"/raw",i)},n.prototype.load=function(r){return this.httpServer.get(r,"/symbols")},n.prototype.list=function(r){return this.cache||(this.cache=this.load(r).pipe((0,Ile.d)(1))),this.cache},n.prototype.raw=function(r,t){var i=encodeURI(t);return this.httpServer.getText(r,"/symbols/"+i+"/raw")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Nle=function(){function n(){}return n.prototype.transform=function(r,t){return r?t?(t=t.toLowerCase(),r.filter(function(i){return i.filename.toLowerCase().includes(t)})):r:[]},n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"filenamefilter",type:n,pure:!0}),n}(),Zle=function(n){return{buttonSelected:n}},Lle=function(n){return{imageSelected:n}};function Fle(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",12),e.TgZ(1,"button",13),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw().setSelected(u.symbol_id)}),e._UZ(2,"img",14),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(3,Zle,o.isSelected===i.symbol_id)),e.xp6(1),e.Q6J("ngClass",e.VKq(5,Lle,o.isSelected===i.symbol_id))("src",o.getImageSourceForTemplate(i.symbol_id),e.LSH)}}var Ble=function(){return{standalone:!0}},Qq=function(){function n(r){this.symbolService=r,this.symbolChanged=new e.vpe,this.symbols=[],this.filteredSymbols=[],this.isSelected="",this.searchText=""}return n.prototype.ngOnInit=function(){this.isSelected=this.symbol,this.loadSymbols()},n.prototype.setFilter=function(r){this.filteredSymbols="all"===r?this.symbols:this.symbols.filter("builtin"===r?function(t){return t.builtin}:function(t){return!t.builtin})},n.prototype.setSelected=function(r){this.isSelected=r,this.symbolChanged.emit(this.isSelected)},n.prototype.loadSymbols=function(){var r=this;this.symbolService.list(this.server).subscribe(function(t){r.symbols=t,r.filteredSymbols=t})},n.prototype.uploadSymbolFile=function(r){this.readSymbolFile(r.target)},n.prototype.readSymbolFile=function(r){var t=this,i=r.files[0],o=r.files[0].name,a=new FileReader,s=new Image;a.onloadend=function(){var p=t.createSvgFileForImage(a.result,s);t.symbolService.add(t.server,o,p).subscribe(function(){t.loadSymbols()})},s.onload=function(){a.readAsDataURL(i)},s.src=window.URL.createObjectURL(i)},n.prototype.createSvgFileForImage=function(r,t){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'+t.height+'" \n width="'+t.width+'">\n<image height="'+t.height+'" width="'+t.width+'" xlink:href="'+r+'"/>\n</svg>'},n.prototype.getImageSourceForTemplate=function(r){return this.server.protocol+"//"+this.server.host+":"+this.server.port+"/v2/symbols/"+r+"/raw"},n.\u0275fac=function(t){return new(t||n)(e.Y36(NS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-symbols"]],inputs:{server:"server",symbol:"symbol"},outputs:{symbolChanged:"symbolChanged"},decls:20,vars:7,consts:[[1,"menu"],["aria-label","Select an option",1,"radio-selection"],["value","1","checked","",3,"click"],["value","2",3,"click"],["value","3",3,"click"],["type","file","accept",".svg, .bmp, .jpeg, .jpg, .gif, .png",1,"non-visible",3,"change"],["file",""],["mat-button","",3,"click"],[1,"example-full-width"],["matInput","","placeholder","Search by filename",3,"ngModel","ngModelOptions","ngModelChange"],[1,"wrapper"],["class","buttonWrapper",4,"ngFor","ngForOf"],[1,"buttonWrapper"],[1,"button",3,"ngClass","click"],["lazyimg","",1,"image",3,"ngClass","src"]],template:function(t,i){if(1&t){var o=e.EpF();e.TgZ(0,"div",0),e.TgZ(1,"mat-radio-group",1),e.TgZ(2,"mat-radio-button",2),e.NdJ("click",function(){return i.setFilter("all")}),e._uU(3,"All symbols"),e.qZA(),e.TgZ(4,"mat-radio-button",3),e.NdJ("click",function(){return i.setFilter("builtin")}),e._uU(5,"Built-in symbols"),e.qZA(),e.TgZ(6,"mat-radio-button",4),e.NdJ("click",function(){return i.setFilter("custom")}),e._uU(7,"Custom symbols"),e.qZA(),e.qZA(),e.TgZ(8,"input",5,6),e.NdJ("change",function(s){return i.uploadSymbolFile(s)}),e.qZA(),e.TgZ(10,"button",7),e.NdJ("click",function(){return e.CHM(o),e.MAs(9).click()}),e.TgZ(11,"mat-icon"),e._uU(12,"add"),e.qZA(),e._uU(13," Add symbol "),e.qZA(),e.qZA(),e.TgZ(14,"form"),e.TgZ(15,"mat-form-field",8),e.TgZ(16,"input",9),e.NdJ("ngModelChange",function(s){return i.searchText=s}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",10),e.YNc(18,Fle,3,7,"div",11),e.ALo(19,"filenamefilter"),e.qZA()}2&t&&(e.xp6(16),e.Q6J("ngModel",i.searchText)("ngModelOptions",e.DdM(6,Ble)),e.xp6(2),e.Q6J("ngForOf",e.xi3(19,3,i.filteredSymbols,i.searchText)))},directives:[hl,ml,An,sr,re._Y,re.JL,re.F,Hn.KE,lr,re.Fj,re.JJ,re.On,kt.sg,kt.mk],pipes:[Nle],styles:[".buttonWrapper[_ngcontent-%COMP%]{width:85px;height:85px;display:flex;align-items:center;margin-left:auto;margin-right:auto;outline:none}.menu[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.button[_ngcontent-%COMP%]{background:border-box;border-width:0px;outline:none}.buttonSelected[_ngcontent-%COMP%]{border-width:3px;background:#0097a7!important}.image[_ngcontent-%COMP%]{width:65px;height:65px;filter:invert(0);--webkit-filter: invert(0) !important}.imageSelected[_ngcontent-%COMP%]{margin-left:0}.wrapper[_ngcontent-%COMP%]{display:grid;grid-template-rows:auto;grid-template-columns:repeat(7,1fr);grid-row-gap:3em;grid-column-gap:1em}.radio-selection[_ngcontent-%COMP%]{width:90%}.mat-radio-button[_ngcontent-%COMP%] ~ .mat-radio-button[_ngcontent-%COMP%]{margin-left:16px}.non-visible[_ngcontent-%COMP%]{display:none}.example-full-width[_ngcontent-%COMP%]{width:100%}"]}),n}(),ad=function(){function n(){this.symbolChangedEmitter=new e.vpe,this.chosenSymbol=""}return n.prototype.symbolChanged=function(r){this.chosenSymbol=r},n.prototype.chooseSymbol=function(){this.symbolChangedEmitter.emit(this.chosenSymbol)},n.prototype.cancelChooseSymbol=function(){this.symbolChangedEmitter.emit(this.symbol)},n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-symbols-menu"]],inputs:{server:"server",symbol:"symbol"},outputs:{symbolChangedEmitter:"symbolChangedEmitter"},decls:11,vars:2,consts:[[1,"configurator"],[1,"default-header"],[1,"row"],[1,"col"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",1,"top-button",3,"click"],[1,"default-content"],[3,"server","symbol","symbolChanged"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Symbol selection"),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return i.cancelChooseSymbol()}),e._uU(6,"Cancel"),e.qZA(),e.TgZ(7,"button",5),e.NdJ("click",function(){return i.chooseSymbol()}),e._uU(8,"Choose symbol"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",6),e.TgZ(10,"app-symbols",7),e.NdJ("symbolChanged",function(a){return i.symbolChanged(a)}),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("server",i.server)("symbol",i.symbol))},directives:[An,Qq],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Ule(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Hle(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Vle(n,r){if(1&n&&(e.TgZ(0,"div",7),e.TgZ(1,"div",7),e._uU(2),e.qZA(),e._UZ(3,"br"),e._UZ(4,"br"),e.qZA()),2&n){var t=r.$implicit;e.xp6(2),e.Oqu(t.name)}}function qle(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function jle(n,r){if(1&n&&(e.TgZ(0,"div",7),e.TgZ(1,"div",7),e._uU(2),e.qZA(),e._UZ(3,"br"),e._UZ(4,"br"),e.qZA()),2&n){var t=r.$implicit;e.xp6(2),e.Oqu(t.name)}}function zle(n,r){1&n&&(e.TgZ(0,"th",42),e._uU(1,"Name"),e.qZA())}function Wle(n,r){if(1&n&&(e.TgZ(0,"td",43),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.name)}}function Gle(n,r){1&n&&(e.TgZ(0,"th",42),e._uU(1,"Local port"),e.qZA())}function Yle(n,r){if(1&n&&(e.TgZ(0,"td",43),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.rport)}}function Jle(n,r){1&n&&(e.TgZ(0,"th",42),e._uU(1,"Type"),e.qZA())}function Qle(n,r){if(1&n&&(e.TgZ(0,"td",43),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.rhost)}}function Kle(n,r){1&n&&(e.TgZ(0,"th",42),e._uU(1,"Remote port"),e.qZA())}function Xle(n,r){if(1&n&&(e.TgZ(0,"td",43),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.lport)}}function $le(n,r){1&n&&e._UZ(0,"tr",44)}function eue(n,r){1&n&&e._UZ(0,"tr",45)}function tue(n,r){if(1&n&&(e.TgZ(0,"table",33),e.ynx(1,34),e.YNc(2,zle,2,0,"th",35),e.YNc(3,Wle,2,1,"td",36),e.BQk(),e.ynx(4,37),e.YNc(5,Gle,2,0,"th",35),e.YNc(6,Yle,2,1,"td",36),e.BQk(),e.ynx(7,38),e.YNc(8,Jle,2,0,"th",35),e.YNc(9,Qle,2,1,"td",36),e.BQk(),e.ynx(10,39),e.YNc(11,Kle,2,0,"th",35),e.YNc(12,Xle,2,1,"td",36),e.BQk(),e.YNc(13,$le,1,0,"tr",40),e.YNc(14,eue,1,0,"tr",41),e.qZA()),2&n){var t=e.oxw(2);e.Q6J("dataSource",t.dataSourceUdp),e.xp6(13),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}function nue(n,r){1&n&&e._UZ(0,"br")}var rue=function(){return{standalone:!0}};function iue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General "),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",7),e.TgZ(7,"input",8),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",7),e.TgZ(9,"input",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(10,"mat-form-field",7),e.TgZ(11,"input",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(12,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(13,"Choose symbol"),e.qZA(),e._UZ(14,"br"),e._UZ(15,"br"),e.TgZ(16,"mat-form-field",7),e.TgZ(17,"mat-select",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.category=a}),e.YNc(18,Ule,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(19,"mat-form-field",14),e.TgZ(20,"mat-select",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.console_type=a}),e.YNc(21,Hle,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(22,"mat-form-field",7),e.TgZ(23,"input",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.remote_console_host=a}),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",7),e.TgZ(25,"input",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.remote_console_port=a}),e.qZA(),e.qZA(),e.TgZ(26,"mat-form-field",7),e.TgZ(27,"input",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().cloudNodeTemplate.remote_console_http_path=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(28,"mat-expansion-panel"),e.TgZ(29,"mat-expansion-panel-header"),e.TgZ(30,"mat-panel-title"),e._uU(31," Ethernet interfaces "),e.qZA(),e.qZA(),e.YNc(32,Vle,5,1,"div",19),e.TgZ(33,"mat-form-field",14),e.TgZ(34,"mat-select",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetInterface=a}),e.YNc(35,qle,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(36,"button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().onAddEthernetInterface()}),e._uU(37,"Add"),e.qZA(),e.qZA(),e.TgZ(38,"mat-expansion-panel"),e.TgZ(39,"mat-expansion-panel-header"),e.TgZ(40,"mat-panel-title"),e._uU(41," TAP interfaces "),e.qZA(),e.qZA(),e.YNc(42,jle,5,1,"div",19),e.TgZ(43,"mat-form-field",7),e.TgZ(44,"input",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().tapInterface=a}),e.qZA(),e.qZA(),e.TgZ(45,"button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().onAddTapInterface()}),e._uU(46,"Add"),e.qZA(),e.qZA(),e.TgZ(47,"mat-expansion-panel"),e.TgZ(48,"mat-expansion-panel-header"),e.TgZ(49,"mat-panel-title"),e._uU(50," UDP tunnels "),e.qZA(),e.qZA(),e.YNc(51,tue,15,3,"table",23),e.YNc(52,nue,1,0,"br",24),e.TgZ(53,"mat-form-field",7),e.TgZ(54,"input",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().newPort.name=a}),e.qZA(),e.qZA(),e.TgZ(55,"mat-form-field",7),e.TgZ(56,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().newPort.lport=a}),e.qZA(),e.qZA(),e.TgZ(57,"mat-form-field",7),e.TgZ(58,"input",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().newPort.rhost=a}),e.qZA(),e.qZA(),e.TgZ(59,"mat-form-field",7),e.TgZ(60,"input",28),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().newPort.rport=a}),e.qZA(),e.qZA(),e.TgZ(61,"button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().onAddUdpInterface()}),e._uU(62,"Add"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(63,"div",29),e.TgZ(64,"button",30),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(65,"Cancel"),e.qZA(),e.TgZ(66,"button",31),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(67,"Save"),e.qZA(),e._UZ(68,"br"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(7),e.Q6J("ngModel",i.cloudNodeTemplate.name),e.xp6(2),e.Q6J("ngModel",i.cloudNodeTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.cloudNodeTemplate.symbol),e.xp6(6),e.Q6J("ngModel",i.cloudNodeTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModel",i.cloudNodeTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(2),e.Q6J("ngModel",i.cloudNodeTemplate.remote_console_host),e.xp6(2),e.Q6J("ngModel",i.cloudNodeTemplate.remote_console_port),e.xp6(2),e.Q6J("ngModel",i.cloudNodeTemplate.remote_console_http_path),e.xp6(5),e.Q6J("ngForOf",i.portsMappingEthernet),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(22,rue))("ngModel",i.ethernetInterface),e.xp6(1),e.Q6J("ngForOf",i.ethernetInterfaces),e.xp6(7),e.Q6J("ngForOf",i.portsMappingTap),e.xp6(2),e.Q6J("ngModel",i.tapInterface),e.xp6(7),e.Q6J("ngIf",i.dataSourceUdp.length),e.xp6(1),e.Q6J("ngIf",i.dataSourceUdp.length),e.xp6(2),e.Q6J("ngModel",i.newPort.name),e.xp6(2),e.Q6J("ngModel",i.newPort.lport),e.xp6(2),e.Q6J("ngModel",i.newPort.rhost),e.xp6(2),e.Q6J("ngModel",i.newPort.rport)}}function oue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",46),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.cloudNodeTemplate.symbol)}}var aue=function(n){return{shadowed:n}},sue=function(){function n(r,t,i,o,a,s){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.toasterService=o,this.builtInTemplatesConfigurationService=a,this.router=s,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["name","lport","rhost","rport"],this.dataSourceUdp=[],this.newPort={name:"",port_number:0}}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.builtInTemplatesService.getTemplate(r.server,i).subscribe(function(a){r.cloudNodeTemplate=a,r.portsMappingEthernet=r.cloudNodeTemplate.ports_mapping.filter(function(s){return"ethernet"===s.type}),r.portsMappingTap=r.cloudNodeTemplate.ports_mapping.filter(function(s){return"tap"===s.type}),r.portsMappingUdp=r.cloudNodeTemplate.ports_mapping.filter(function(s){return"udp"===s.type}),r.dataSourceUdp=r.portsMappingUdp})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","cloud-nodes"])},n.prototype.getConfiguration=function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForCloudNodes(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()},n.prototype.onAddEthernetInterface=function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})},n.prototype.onAddTapInterface=function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})},n.prototype.onAddUdpInterface=function(){this.portsMappingUdp.push(this.newPort),this.dataSourceUdp=(0,Jn.ev)([],this.portsMappingUdp),this.newPort={name:"",port_number:0}},n.prototype.onSave=function(){var r=this;this.cloudNodeTemplate.ports_mapping=(0,Jn.ev)((0,Jn.ev)([],this.portsMappingEthernet),this.portsMappingTap),this.builtInTemplatesService.saveTemplate(this.server,this.cloudNodeTemplate).subscribe(function(t){r.toasterService.success("Changes saved")})},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.cloudNodeTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(od),e.Y36(Xn),e.Y36(eh),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-cloud-nodes-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[1,"form-field"],["matInput","","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console host",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console HTTP path",3,"ngModel","ngModelChange"],["class","form-field",4,"ngFor","ngForOf"],["placeholder","Ethernet interface",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["matInput","","type","text","placeholder","TAP interface",3,"ngModel","ngModelChange"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Remote port",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rport"],["matColumnDef","rhost"],["matColumnDef","lport"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Cloud configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,iue,69,23,"div",4),e.qZA(),e.YNc(6,oue,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,aue,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.cloudNodeTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.cloudNodeTemplate))},directives:[kt.mk,kt.O5,id,oc,ac,rd,Hn.KE,lr,re.Fj,re.JJ,re.On,An,pi.gD,kt.sg,re.wV,un.ey,Jl,dl,cl,ul,Ql,Kl,pl,fl,Xl,$l,ad],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function lue(n,r){}var eL=function n(){(0,g.Z)(this,n),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},uue={dialogContainer:(0,on.X$)("dialogContainer",[(0,on.SB)("void, exit",(0,on.oB)({opacity:0,transform:"scale(0.7)"})),(0,on.SB)("enter",(0,on.oB)({transform:"none"})),(0,on.eR)("* => enter",(0,on.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,on.oB)({transform:"none",opacity:1}))),(0,on.eR)("* => void, * => exit",(0,on.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,on.oB)({opacity:0})))])},cue=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p,m){var C;return(0,g.Z)(this,i),(C=t.call(this))._elementRef=o,C._focusTrapFactory=a,C._changeDetectorRef=s,C._config=p,C._focusMonitor=m,C._animationStateChanged=new e.vpe,C._elementFocusedBeforeDialogWasOpened=null,C._closeInteractionType=null,C.attachDomPortal=function(P){return C._portalOutlet.hasAttached(),C._portalOutlet.attachDomPortal(P)},C._ariaLabelledBy=p.ariaLabelledBy||null,C._document=u,C}return(0,T.Z)(i,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(a){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(a)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var a=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&a&&"function"==typeof a.focus){var s=(0,Xr.ht)(),u=this._elementRef.nativeElement;(!s||s===this._document.body||s===u||u.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(a,this._closeInteractionType),this._closeInteractionType=null):a.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,Xr.ht)())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var a=this._elementRef.nativeElement,s=(0,Xr.ht)();return a===s||a.contains(s)}}]),i}(qi.en);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(Ai.qV),e.Y36(e.sBO),e.Y36(kt.K0,8),e.Y36(eL),e.Y36(Ai.tE))},n.\u0275dir=e.lG2({type:n,viewQuery:function(t,i){var o;1&t&&e.Gf(qi.Pl,7),2&t&&e.iGM(o=e.CRH())&&(i._portalOutlet=o.first)},features:[e.qOj]}),n}(),due=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments))._state="enter",o}return(0,T.Z)(i,[{key:"_onAnimationDone",value:function(a){var s=a.toState,u=a.totalTime;"enter"===s?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:u})):"exit"===s&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:u}))}},{key:"_onAnimationStart",value:function(a){var s=a.toState,u=a.totalTime;"enter"===s?this._animationStateChanged.next({state:"opening",totalTime:u}):("exit"===s||"void"===s)&&this._animationStateChanged.next({state:"closing",totalTime:u})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),i}(cue);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,i){1&t&&e.WFA("@dialogContainer.start",function(a){return i._onAnimationStart(a)})("@dialogContainer.done",function(a){return i._onAnimationDone(a)}),2&t&&(e.Ikx("id",i._id),e.uIk("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),e.d8E("@dialogContainer",i._state))},features:[e.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){1&t&&e.YNc(0,lue,0,0,"ng-template",0)},directives:[qi.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[uue.dialogContainer]}}),n}(),pue=0,Ur=function(){function n(r,t){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(pue++);(0,g.Z)(this,n),this._overlayRef=r,this._containerInstance=t,this.id=o,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Pn.xQ,this._afterClosed=new Pn.xQ,this._beforeClosed=new Pn.xQ,this._state=0,t._id=o,t._animationStateChanged.pipe((0,mi.h)(function(a){return"opened"===a.state}),(0,$i.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),t._animationStateChanged.pipe((0,mi.h)(function(a){return"closed"===a.state}),(0,$i.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),r.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),r.keydownEvents().pipe((0,mi.h)(function(a){return a.keyCode===zr.hY&&!i.disableClose&&!(0,zr.Vb)(a)})).subscribe(function(a){a.preventDefault(),tL(i,"keyboard")}),r.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():tL(i,"mouse")})}return(0,T.Z)(n,[{key:"close",value:function(t){var i=this;this._result=t,this._containerInstance._animationStateChanged.pipe((0,mi.h)(function(o){return"closing"===o.state}),(0,$i.q)(1)).subscribe(function(o){i._beforeClosed.next(t),i._beforeClosed.complete(),i._overlayRef.detachBackdrop(),i._closeFallbackTimeout=setTimeout(function(){return i._finishDialogClose()},o.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var i=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?i.left(t.left):i.right(t.right):i.centerHorizontally(),t&&(t.top||t.bottom)?t.top?i.top(t.top):i.bottom(t.bottom):i.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:i}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),n}();function tL(n,r,t){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=r),n.close(t)}var sd=new e.OlP("MatDialogData"),fue=new e.OlP("mat-dialog-default-options"),Kq=new e.OlP("mat-dialog-scroll-strategy"),mue={provide:Kq,deps:[so.aV],useFactory:function(n){return function(){return n.scrollStrategies.block()}}},vue=function(){var n=function(){function r(t,i,o,a,s,u,p,m,C){var P=this;(0,g.Z)(this,r),this._overlay=t,this._injector=i,this._defaultOptions=o,this._parentDialog=a,this._overlayContainer=s,this._dialogRefConstructor=p,this._dialogContainerType=m,this._dialogDataToken=C,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pn.xQ,this._afterOpenedAtThisLevel=new Pn.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,SZ.P)(function(){return P.openDialogs.length?P._getAfterAllClosed():P._getAfterAllClosed().pipe((0,ra.O)(void 0))}),this._scrollStrategy=u}return(0,T.Z)(r,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(i,o){var a=this;(o=function(n,r){return Object.assign(Object.assign({},r),n)}(o,this._defaultOptions||new eL)).id&&this.getDialogById(o.id);var s=this._createOverlay(o),u=this._attachDialogContainer(s,o),p=this._attachDialogContent(i,u,s,o);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(p),p.afterClosed().subscribe(function(){return a._removeOpenDialog(p)}),this.afterOpened.next(p),u._initializeWithAttachedContent(),p}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(i){return this.openDialogs.find(function(o){return o.id===i})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(i){var o=this._getOverlayConfig(i);return this._overlay.create(o)}},{key:"_getOverlayConfig",value:function(i){var o=new so.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:i.scrollStrategy||this._scrollStrategy(),panelClass:i.panelClass,hasBackdrop:i.hasBackdrop,direction:i.direction,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,disposeOnNavigation:i.closeOnNavigation});return i.backdropClass&&(o.backdropClass=i.backdropClass),o}},{key:"_attachDialogContainer",value:function(i,o){var s=e.zs3.create({parent:o&&o.viewContainerRef&&o.viewContainerRef.injector||this._injector,providers:[{provide:eL,useValue:o}]}),u=new qi.C5(this._dialogContainerType,o.viewContainerRef,s,o.componentFactoryResolver);return i.attach(u).instance}},{key:"_attachDialogContent",value:function(i,o,a,s){var u=new this._dialogRefConstructor(a,o,s.id);if(i instanceof e.Rgc)o.attachTemplatePortal(new qi.UE(i,null,{$implicit:s.data,dialogRef:u}));else{var p=this._createInjector(s,u,o),m=o.attachComponentPortal(new qi.C5(i,s.viewContainerRef,p));u.componentInstance=m.instance}return u.updateSize(s.width,s.height).updatePosition(s.position),u}},{key:"_createInjector",value:function(i,o,a){var s=i&&i.viewContainerRef&&i.viewContainerRef.injector,u=[{provide:this._dialogContainerType,useValue:a},{provide:this._dialogDataToken,useValue:i.data},{provide:this._dialogRefConstructor,useValue:o}];return i.direction&&(!s||!s.get(Na.Is,null,e.XFs.Optional))&&u.push({provide:Na.Is,useValue:{value:i.direction,change:(0,rr.of)()}}),e.zs3.create({parent:s||this._injector,providers:u})}},{key:"_removeOpenDialog",value:function(i){var o=this.openDialogs.indexOf(i);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(a,s){a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var i=this._overlayContainer.getContainerElement();if(i.parentElement)for(var o=i.parentElement.children,a=o.length-1;a>-1;a--){var s=o[a];s!==i&&"SCRIPT"!==s.nodeName&&"STYLE"!==s.nodeName&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(i){for(var o=i.length;o--;)i[o].close()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(so.aV),e.Y36(e.zs3),e.Y36(void 0),e.Y36(void 0),e.Y36(so.Xj),e.Y36(void 0),e.Y36(e.DyG),e.Y36(e.DyG),e.Y36(e.OlP))},n.\u0275dir=e.lG2({type:n}),n}(),to=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p,m,C){return(0,g.Z)(this,i),t.call(this,o,a,u,m,C,p,Ur,due,sd)}return i}(vue);return n.\u0275fac=function(t){return new(t||n)(e.LFG(so.aV),e.LFG(e.zs3),e.LFG(kt.Ye,8),e.LFG(fue,8),e.LFG(Kq),e.LFG(n,12),e.LFG(so.Xj))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),_ue=0,ti=function(){var n=function(){function r(t,i,o){(0,g.Z)(this,r),this._dialogRef=t,this._elementRef=i,this._dialog=o,this.id="mat-dialog-title-".concat(_ue++)}return(0,T.Z)(r,[{key:"ngOnInit",value:function(){var i=this;this._dialogRef||(this._dialogRef=function(n,r){for(var t=n.nativeElement.parentElement;t&&!t.classList.contains("mat-dialog-container");)t=t.parentElement;return t?r.find(function(i){return i.id===t.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var o=i._dialogRef._containerInstance;o&&!o._ariaLabelledBy&&(o._ariaLabelledBy=i.id)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur,8),e.Y36(e.SBq),e.Y36(to))},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,i){2&t&&e.Ikx("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n}(),ly=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n}(),$r=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n}();var yue=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[to,mue],imports:[[so.U8,qi.eL,un.BQ],un.BQ]}),n}(),bue=function(){function n(r,t){this.dialogRef=r,this.data=t,this.templateName="",this.templateName=t.templateName}return n.prototype.ngOnInit=function(){},n.prototype.onNoClick=function(){this.dialogRef.close(!1)},n.prototype.onYesClick=function(){this.dialogRef.close(!0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(sd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-delete-confirmation-dialog"]],decls:11,vars:1,consts:[[1,"dialogcontainer"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"spacer"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"h1",1),e._uU(2,"Delete template"),e.qZA(),e.TgZ(3,"div",2),e._uU(4),e.qZA(),e._UZ(5,"div",3),e.TgZ(6,"div",4),e.TgZ(7,"button",5),e.NdJ("click",function(){return i.onNoClick()}),e._uU(8,"No"),e.qZA(),e.TgZ(9,"button",6),e.NdJ("click",function(){return i.onYesClick()}),e._uU(10," Yes "),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.hij("Are you sure you want to delete template ",i.templateName,"?"))},directives:[ti,ly,$r,An],styles:[".dialogcontainer[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.spacer[_ngcontent-%COMP%]{flex-grow:1}"]}),n}(),uy=(f(26918),function(){function n(r){this.httpServer=r,this.newTemplateCreated=new Pn.xQ}return n.prototype.list=function(r){return this.httpServer.get(r,"/templates")},n.prototype.deleteTemplate=function(r,t){return this.httpServer.delete(r,"/templates/"+t,{observe:"body"})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}()),xa=function(){function n(r,t,i){this.templateService=r,this.dialog=t,this.toasterService=i,this.deleteEvent=new e.vpe}return n.prototype.deleteItem=function(r,t){var i=this;this.dialog.open(bue,{width:"300px",height:"250px",data:{templateName:r},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(a){a&&i.templateService.deleteTemplate(i.server,t).subscribe(function(s){i.deleteEvent.emit(t),i.toasterService.success("Template "+r+" deleted.")})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(uy),e.Y36(to),e.Y36(Xn))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-delete-template"]],inputs:{server:"server"},outputs:{deleteEvent:"deleteEvent"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),ld=function(){function n(){this.emptyTemplatesListMessage="Empty templates list",this.textMessage&&(this.emptyTemplatesListMessage=this.textMessage)}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-empty-templates-list"]],inputs:{textMessage:"textMessage"},decls:4,vars:1,consts:[[1,"default-content"],[1,"matCard"],[1,"header"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-card",1),e.TgZ(2,"h6",2),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.hij(" ",i.emptyTemplatesListMessage," "))},directives:[yi],styles:[".header[_ngcontent-%COMP%]{text-align:center;color:#a9a9a9}"]}),n}(),$q=f(8285),ej=f(86004),Cue=["mat-menu-item",""];function Sue(n,r){1&n&&(e.O4$(),e.TgZ(0,"svg",2),e._UZ(1,"polygon",3),e.qZA())}var tj=["*"];function Tue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",0),e.NdJ("keydown",function(a){return e.CHM(t),e.oxw()._handleKeydown(a)})("click",function(){return e.CHM(t),e.oxw().closed.emit("click")})("@transformMenu.start",function(a){return e.CHM(t),e.oxw()._onAnimationStart(a)})("@transformMenu.done",function(a){return e.CHM(t),e.oxw()._onAnimationDone(a)}),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),e.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var p2={transformMenu:(0,on.X$)("transformMenu",[(0,on.SB)("void",(0,on.oB)({opacity:0,transform:"scale(0.8)"})),(0,on.eR)("void => enter",(0,on.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,on.oB)({opacity:1,transform:"scale(1)"}))),(0,on.eR)("* => void",(0,on.jt)("100ms 25ms linear",(0,on.oB)({opacity:0})))]),fadeInItems:(0,on.X$)("fadeInItems",[(0,on.SB)("showing",(0,on.oB)({opacity:1})),(0,on.eR)("void => *",[(0,on.oB)({opacity:0}),(0,on.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},nj=new e.OlP("MatMenuContent"),nL=new e.OlP("MAT_MENU_PANEL"),wue=(0,un.Kr)((0,un.Id)(function(){return function n(){(0,g.Z)(this,n)}}())),Nr=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p){var m;return(0,g.Z)(this,i),(m=t.call(this))._elementRef=o,m._focusMonitor=s,m._parentMenu=u,m._changeDetectorRef=p,m.role="menuitem",m._hovered=new Pn.xQ,m._focused=new Pn.xQ,m._highlighted=!1,m._triggersSubmenu=!1,u&&u.addItem&&u.addItem((0,CS.Z)(m)),m}return(0,T.Z)(i,[{key:"focus",value:function(a,s){this._focusMonitor&&a?this._focusMonitor.focusVia(this._getHostElement(),a,s):this._getHostElement().focus(s),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(a){this.disabled&&(a.preventDefault(),a.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var a,s,u=this._elementRef.nativeElement.cloneNode(!0),p=u.querySelectorAll("mat-icon, .material-icons"),m=0;m<p.length;m++){var C=p[m];null===(a=C.parentNode)||void 0===a||a.removeChild(C)}return(null===(s=u.textContent)||void 0===s?void 0:s.trim())||""}},{key:"_setHighlighted",value:function(a){var s;this._highlighted=a,null===(s=this._changeDetectorRef)||void 0===s||s.markForCheck()}}]),i}(wue);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(kt.K0),e.Y36(Ai.tE),e.Y36(nL,8),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,i){1&t&&e.NdJ("click",function(a){return i._checkDisabled(a)})("mouseenter",function(){return i._handleMouseEnter()}),2&t&&(e.uIk("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled.toString())("disabled",i.disabled||null),e.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",i._highlighted)("mat-menu-item-submenu-trigger",i._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[e.qOj],attrs:Cue,ngContentSelectors:tj,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,i){1&t&&(e.F$t(),e.Hsn(0),e._UZ(1,"div",0),e.YNc(2,Sue,2,0,"svg",1)),2&t&&(e.xp6(1),e.Q6J("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),e.xp6(1),e.Q6J("ngIf",i._triggersSubmenu))},directives:[un.wG,kt.O5],encapsulation:2,changeDetection:0}),n}(),rj=new e.OlP("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),kue=0,ZS=function(){var n=function(){function r(t,i,o){(0,g.Z)(this,r),this._elementRef=t,this._ngZone=i,this._defaultOptions=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new e.n_E,this._tabSubscription=rs.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Pn.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new e.vpe,this.close=this.closed,this.panelId="mat-menu-panel-".concat(kue++)}return(0,T.Z)(r,[{key:"xPosition",get:function(){return this._xPosition},set:function(i){this._xPosition=i,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(i){this._yPosition=i,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(i){this._overlapTrigger=(0,Mn.Ig)(i)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(i){this._hasBackdrop=(0,Mn.Ig)(i)}},{key:"panelClass",set:function(i){var o=this,a=this._previousPanelClass;a&&a.length&&a.split(" ").forEach(function(s){o._classList[s]=!1}),this._previousPanelClass=i,i&&i.length&&(i.split(" ").forEach(function(s){o._classList[s]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(i){this.panelClass=i}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var i=this;this._updateDirectDescendants(),this._keyManager=new Ai.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return i.closed.emit("tab")}),this._directDescendantItems.changes.pipe((0,ra.O)(this._directDescendantItems),(0,Zs.w)(function(o){return go.T.apply(void 0,(0,v.Z)(o.map(function(a){return a._focused})))})).subscribe(function(o){return i._keyManager.updateActiveItem(o)})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe((0,ra.O)(this._directDescendantItems),(0,Zs.w)(function(o){return go.T.apply(void 0,(0,v.Z)(o.map(function(a){return a._hovered})))}))}},{key:"addItem",value:function(i){}},{key:"removeItem",value:function(i){}},{key:"_handleKeydown",value:function(i){var o=i.keyCode,a=this._keyManager;switch(o){case zr.hY:(0,zr.Vb)(i)||(i.preventDefault(),this.closed.emit("keydown"));break;case zr.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case zr.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(o===zr.LH||o===zr.JH)&&a.setFocusOrigin("keyboard"),a.onKeydown(i)}}},{key:"focusFirstItem",value:function(){var i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe((0,$i.q)(1)).subscribe(function(){return i._focusFirstItem(o)}):this._focusFirstItem(o)}},{key:"_focusFirstItem",value:function(i){var o=this._keyManager;if(o.setFocusOrigin(i).setFirstItemActive(),!o.activeItem&&this._directDescendantItems.length)for(var a=this._directDescendantItems.first._getHostElement().parentElement;a;){if("menu"===a.getAttribute("role")){a.focus();break}a=a.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(i){var o=this,a=Math.min(this._baseElevation+i,24),s="".concat(this._elevationPrefix).concat(a),u=Object.keys(this._classList).find(function(p){return p.startsWith(o._elevationPrefix)});(!u||u===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[s]=!0,this._previousElevation=s)}},{key:"setPositionClasses",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,a=this._classList;a["mat-menu-before"]="before"===i,a["mat-menu-after"]="after"===i,a["mat-menu-above"]="above"===o,a["mat-menu-below"]="below"===o}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(i){this._animationDone.next(i),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(i){this._isAnimating=!0,"enter"===i.toState&&0===this._keyManager.activeItemIndex&&(i.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var i=this;this._allItems.changes.pipe((0,ra.O)(this._allItems)).subscribe(function(o){i._directDescendantItems.reset(o.filter(function(a){return a._parentMenu===i})),i._directDescendantItems.notifyOnChanges()})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(rj))},n.\u0275dir=e.lG2({type:n,contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,nj,5),e.Suo(o,Nr,5),e.Suo(o,Nr,4)),2&t&&(e.iGM(a=e.CRH())&&(i.lazyContent=a.first),e.iGM(a=e.CRH())&&(i._allItems=a),e.iGM(a=e.CRH())&&(i.items=a))},viewQuery:function(t,i){var o;1&t&&e.Gf(e.Rgc,5),2&t&&e.iGM(o=e.CRH())&&(i.templateRef=o.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),n}(),Ts=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s){var u;return(0,g.Z)(this,i),(u=t.call(this,o,a,s))._elevationPrefix="mat-elevation-z",u._baseElevation=4,u}return i}(ZS);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(rj))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,i){2&t&&e.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[e._Bn([{provide:nL,useExisting:n}]),e.qOj],ngContentSelectors:tj,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,i){1&t&&(e.F$t(),e.YNc(0,Tue,3,6,"ng-template"))},directives:[kt.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[p2.transformMenu,p2.fadeInItems]},changeDetection:0}),n}(),ij=new e.OlP("mat-menu-scroll-strategy"),Aue={provide:ij,deps:[so.aV],useFactory:function(n){return function(){return n.scrollStrategies.reposition()}}},aj=(0,Xr.i$)({passive:!0}),Due=function(){var n=function(){function r(t,i,o,a,s,u,p,m){var C=this;(0,g.Z)(this,r),this._overlay=t,this._element=i,this._viewContainerRef=o,this._menuItemInstance=u,this._dir=p,this._focusMonitor=m,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=rs.w.EMPTY,this._hoverSubscription=rs.w.EMPTY,this._menuCloseSubscription=rs.w.EMPTY,this._handleTouchStart=function(P){(0,Ai.yG)(P)||(C._openedBy="touch")},this._openedBy=void 0,this._ariaHaspopup=!0,this.restoreFocus=!0,this.menuOpened=new e.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new e.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=a,this._parentMaterialMenu=s instanceof ZS?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,aj),u&&(u._triggersSubmenu=this.triggersSubmenu())}return(0,T.Z)(r,[{key:"_ariaExpanded",get:function(){return this.menuOpen||null}},{key:"_ariaControl",get:function(){return this.menuOpen?this.menu.panelId:null}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(i){this.menu=i}},{key:"menu",get:function(){return this._menu},set:function(i){var o=this;i!==this._menu&&(this._menu=i,this._menuCloseSubscription.unsubscribe(),i&&(this._menuCloseSubscription=i.close.subscribe(function(a){o._destroyMenu(a),("click"===a||"tab"===a)&&o._parentMaterialMenu&&o._parentMaterialMenu.closed.emit(a)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,aj),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var i=this;if(!this._menuOpen){this._checkMenu();var o=this._createOverlay(),a=o.getConfig();this._setPosition(a.positionStrategy),a.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,o.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return i.closeMenu()}),this._initMenu(),this.menu instanceof ZS&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(i,o){this._focusMonitor&&i?this._focusMonitor.focusVia(this._element,i,o):this._element.nativeElement.focus(o)}},{key:"updatePosition",value:function(){var i;null===(i=this._overlayRef)||void 0===i||i.updatePosition()}},{key:"_destroyMenu",value:function(i){var o=this;if(this._overlayRef&&this.menuOpen){var a=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===i||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,a instanceof ZS?(a._resetAnimation(),a.lazyContent?a._animationDone.pipe((0,mi.h)(function(s){return"void"===s.toState}),(0,$i.q)(1),(0,Zr.R)(a.lazyContent._attached)).subscribe({next:function(){return a.lazyContent.detach()},complete:function(){return o._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),a.lazyContent&&a.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var i=0,o=this.menu.parentMenu;o;)i++,o=o.parentMenu;this.menu.setElevation(i)}}},{key:"_setIsMenuOpen",value:function(i){this._menuOpen=i,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(i)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var i=this._getOverlayConfig();this._subscribeToPositions(i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new so.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(i){var o=this;this.menu.setPositionClasses&&i.positionChanges.subscribe(function(a){o.menu.setPositionClasses("start"===a.connectionPair.overlayX?"after":"before","top"===a.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(i){var a=(0,b.Z)("before"===this.menu.xPosition?["end","start"]:["start","end"],2),s=a[0],u=a[1],m=(0,b.Z)("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),C=m[0],P=m[1],L=C,G=P,Y=s,te=u,de=0;this.triggersSubmenu()?(te=s="before"===this.menu.xPosition?"start":"end",u=Y="end"===s?"start":"end",de="bottom"===C?8:-8):this.menu.overlapTrigger||(L="top"===C?"bottom":"top",G="top"===P?"bottom":"top"),i.withPositions([{originX:s,originY:L,overlayX:Y,overlayY:C,offsetY:de},{originX:u,originY:L,overlayX:te,overlayY:C,offsetY:de},{originX:s,originY:G,overlayX:Y,overlayY:P,offsetY:-de},{originX:u,originY:G,overlayX:te,overlayY:P,offsetY:-de}])}},{key:"_menuClosingActions",value:function(){var i=this,o=this._overlayRef.backdropClick(),a=this._overlayRef.detachments(),s=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,rr.of)(),u=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,mi.h)(function(p){return p!==i._menuItemInstance}),(0,mi.h)(function(){return i._menuOpen})):(0,rr.of)();return(0,go.T)(o,s,u,a)}},{key:"_handleMousedown",value:function(i){(0,Ai.X6)(i)||(this._openedBy=0===i.button?"mouse":void 0,this.triggersSubmenu()&&i.preventDefault())}},{key:"_handleKeydown",value:function(i){var o=i.keyCode;(o===zr.K5||o===zr.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(o===zr.SV&&"ltr"===this.dir||o===zr.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(i){this.triggersSubmenu()?(i.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var i=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,mi.h)(function(o){return o===i._menuItemInstance&&!o.disabled}),(0,ej.g)(0,$q.E)).subscribe(function(){i._openedBy="mouse",i.menu instanceof ZS&&i.menu._isAnimating?i.menu._animationDone.pipe((0,$i.q)(1),(0,ej.g)(0,$q.E),(0,Zr.R)(i._parentMaterialMenu._hovered())).subscribe(function(){return i.openMenu()}):i.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new qi.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(so.aV),e.Y36(e.SBq),e.Y36(e.s_b),e.Y36(ij),e.Y36(nL,8),e.Y36(Nr,10),e.Y36(Na.Is,8),e.Y36(Ai.tE))},n.\u0275dir=e.lG2({type:n,hostVars:3,hostBindings:function(t,i){1&t&&e.NdJ("mousedown",function(a){return i._handleMousedown(a)})("keydown",function(a){return i._handleKeydown(a)})("click",function(a){return i._handleClick(a)}),2&t&&e.uIk("aria-haspopup",i._ariaHaspopup)("aria-expanded",i._ariaExpanded)("aria-controls",i._ariaControl)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n}(),Qa=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Due);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[e.qOj]}),n}(),sj=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[Aue],imports:[[kt.ez,un.BQ,un.si,so.U8],Sa.ZD,un.BQ]}),n}();function Oue(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/builtin")}}function Pue(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add cloud node template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/builtin/cloud-nodes/addtemplate")}}function Iue(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function Rue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function Nue(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,Rue,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.cloudNodesTemplates)}}function Zue(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,Nue,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var Lue=function(){function n(r,t,i){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.cloudNodesTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.builtInTemplatesService.getTemplates(this.server).subscribe(function(t){r.cloudNodesTemplates=t.filter(function(i){return"cloud"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(od))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-cloud-nodes-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(xa,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Cloud nodes templates"),e.qZA(),e.YNc(5,Oue,2,1,"button",4),e.YNc(6,Pue,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,Iue,1,0,"app-empty-templates-list",6),e.YNc(8,Zue,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.cloudNodesTemplates.length),e.xp6(1),e.Q6J("ngIf",i.cloudNodesTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[kt.O5,xa,An,ca,ld,Du,kt.sg,Ss,Qa,sr,Ts,Nr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),Fue=function(){function n(r,t,i,o,a,s,u,p){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=u,this.computeService=p,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new re.NI("",re.kI.required),numberOfPorts:new re.NI(8,re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)})})},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","ethernet-hubs"])},n.prototype.addTemplate=function(){var r=this;if(this.formGroup.invalid)this.toasterService.error("Fill all required fields");else{var t;this.templateMocksService.getEthernetHubTemplate().subscribe(function(o){t=o}),t.template_id=(0,Ta.v4)(),t.name=this.formGroup.get("templateName").value,t.compute_id=this.isGns3VmChosen?"vm":"local";for(var i=0;i<this.formGroup.get("numberOfPorts").value;i++)t.ports_mapping.push({name:"Ethernet"+i,port_number:i});this.builtInTemplatesService.addTemplate(this.server,t).subscribe(function(){r.goBack()})}},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(od),e.Y36(xr),e.Y36(Xn),e.Y36(lc),e.Y36(re.qu),e.Y36(uc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-hubs-add-template"]],decls:22,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],["formControlName","numberOfPorts","matInput","","type","number","placeholder","Number of ports"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New Ethernet hub template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"mat-radio-group",6),e.TgZ(8,"mat-radio-button",7),e.NdJ("click",function(){return i.setServerType("local")}),e._uU(9,"Run the Ethernet Hub locally"),e.qZA(),e.TgZ(10,"mat-radio-button",8),e.NdJ("click",function(){return i.setServerType("gns3 vm")}),e._uU(11,"Run the Ethernet Hub on the GNS3 VM"),e.qZA(),e.qZA(),e.TgZ(12,"form",9),e.TgZ(13,"mat-form-field",10),e._UZ(14,"input",11),e.qZA(),e.TgZ(15,"mat-form-field",10),e._UZ(16,"input",12),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",13),e.TgZ(18,"button",14),e.NdJ("click",function(){return i.goBack()}),e._uU(19,"Cancel"),e.qZA(),e.TgZ(20,"button",15),e.NdJ("click",function(){return i.addTemplate()}),e._uU(21,"Add template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("formGroup",i.formGroup))},directives:[yi,hl,ml,re._Y,re.JL,re.sg,Hn.KE,re.Fj,lr,re.JJ,re.u,re.wV,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Bue(n,r){if(1&n&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}var lj=function(){return{standalone:!0}};function Uue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"mat-card"),e.TgZ(2,"form",7),e.TgZ(3,"mat-form-field",8),e.TgZ(4,"input",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetHubTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(5,"mat-form-field",8),e.TgZ(6,"input",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetHubTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(7,"mat-form-field",8),e.TgZ(8,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetHubTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(9,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(10,"Choose symbol"),e.qZA(),e._UZ(11,"br"),e._UZ(12,"br"),e.TgZ(13,"mat-form-field",8),e.TgZ(14,"mat-select",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetHubTemplate.category=a}),e.YNc(15,Bue,2,2,"mat-option",14),e.qZA(),e.qZA(),e.TgZ(16,"mat-form-field",8),e.TgZ(17,"input",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().numberOfPorts=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",16),e.TgZ(19,"button",17),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(20,"Cancel"),e.qZA(),e.TgZ(21,"button",18),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(22,"Save"),e.qZA(),e._UZ(23,"br"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.ethernetHubTemplate.name),e.xp6(2),e.Q6J("ngModel",i.ethernetHubTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.ethernetHubTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(9,lj))("ngModel",i.ethernetHubTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModel",i.numberOfPorts)("ngModelOptions",e.DdM(10,lj))}}function Hue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",20),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.ethernetHubTemplate.symbol)}}var Vue=function(n){return{shadowed:n}},que=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.toasterService=o,this.formBuilder=a,this.builtInTemplatesConfigurationService=s,this.router=u,this.isSymbolSelectionOpened=!1,this.categories=[],this.inputForm=this.formBuilder.group({templateName:new re.NI("",re.kI.required),defaultName:new re.NI("",re.kI.required),symbol:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.categories=r.builtInTemplatesConfigurationService.getCategoriesForEthernetHubs(),r.builtInTemplatesService.getTemplate(r.server,i).subscribe(function(a){r.ethernetHubTemplate=a,r.numberOfPorts=r.ethernetHubTemplate.ports_mapping.length})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","ethernet-hubs"])},n.prototype.onSave=function(){var r=this;if(this.inputForm.invalid||!this.numberOfPorts)this.toasterService.error("Fill all required fields");else{this.ethernetHubTemplate.ports_mapping=[];for(var t=0;t<this.numberOfPorts;t++)this.ethernetHubTemplate.ports_mapping.push({name:"Ethernet"+t,port_number:t});this.builtInTemplatesService.saveTemplate(this.server,this.ethernetHubTemplate).subscribe(function(i){r.toasterService.success("Changes saved")})}},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.ethernetHubTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(od),e.Y36(Xn),e.Y36(re.qu),e.Y36(eh),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-hubs-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","Number of ports",3,"ngModel","ngModelOptions","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Ethernet hub settings"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,Uue,24,11,"div",4),e.qZA(),e.YNc(6,Hue,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,Vue,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.ethernetHubTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.ethernetHubTemplate))},directives:[kt.mk,kt.O5,yi,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,An,pi.gD,re.On,kt.sg,re.wV,un.ey,ad],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function jue(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/builtin")}}function zue(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add Ethernet hub template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/builtin/ethernet-hubs/addtemplate")}}function Wue(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function Gue(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function Yue(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,Gue,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.ethernetHubsTemplates)}}function Jue(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,Yue,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var Que=function(){function n(r,t,i){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.ethernetHubsTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.builtInTemplatesService.getTemplates(this.server).subscribe(function(t){r.ethernetHubsTemplates=t.filter(function(i){return"ethernet_hub"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(od))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-hubs-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(xa,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Ethernet hubs templates"),e.qZA(),e.YNc(5,jue,2,1,"button",4),e.YNc(6,zue,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,Wue,1,0,"app-empty-templates-list",6),e.YNc(8,Jue,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.ethernetHubsTemplates.length),e.xp6(1),e.Q6J("ngIf",i.ethernetHubsTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[kt.O5,xa,An,ca,ld,Du,kt.sg,Ss,Qa,sr,Ts,Nr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),Kue=function(){function n(r,t,i,o,a,s,u,p){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=u,this.computeService=p,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new re.NI("",re.kI.required),numberOfPorts:new re.NI(8,re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","ethernet-switches"])},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.addTemplate=function(){var r=this;if(this.formGroup.invalid)this.toasterService.error("Fill all required fields");else{var t;this.templateMocksService.getEthernetSwitchTemplate().subscribe(function(o){t=o}),t.template_id=(0,Ta.v4)(),t.name=this.formGroup.get("templateName").value,t.compute_id=this.isGns3VmChosen?"vm":"local";for(var i=0;i<this.formGroup.get("numberOfPorts").value;i++)t.ports_mapping.push({ethertype:"",name:"Ethernet"+i,port_number:i,type:"access",vlan:1});this.builtInTemplatesService.addTemplate(this.server,t).subscribe(function(o){r.goBack()})}},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(od),e.Y36(xr),e.Y36(Xn),e.Y36(lc),e.Y36(re.qu),e.Y36(uc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-switches-add-template"]],decls:22,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],["formControlName","numberOfPorts","matInput","","type","number","placeholder","Number of ports"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New Ethernet switch template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"mat-radio-group",6),e.TgZ(8,"mat-radio-button",7),e.NdJ("click",function(){return i.setServerType("local")}),e._uU(9,"Run the Ethernet switch locally"),e.qZA(),e.TgZ(10,"mat-radio-button",8),e.NdJ("click",function(){return i.setServerType("gns3 vm")}),e._uU(11,"Run the Ethernet switch on the GNS3 VM"),e.qZA(),e.qZA(),e.TgZ(12,"form",9),e.TgZ(13,"mat-form-field",10),e._UZ(14,"input",11),e.qZA(),e.TgZ(15,"mat-form-field",10),e._UZ(16,"input",12),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",13),e.TgZ(18,"button",14),e.NdJ("click",function(){return i.goBack()}),e._uU(19,"Cancel"),e.qZA(),e.TgZ(20,"button",15),e.NdJ("click",function(){return i.addTemplate()}),e._uU(21,"Add template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("formGroup",i.formGroup))},directives:[yi,hl,ml,re._Y,re.JL,re.sg,Hn.KE,re.Fj,lr,re.JJ,re.u,re.wV,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Xue(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Port number"),e.qZA())}function $ue(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.port_number)}}function ece(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"VLAN"),e.qZA())}function tce(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.vlan)}}function nce(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Type"),e.qZA())}function rce(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.type)}}function ice(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"EtherType"),e.qZA())}function oce(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.ethertype)}}function ace(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Actions"),e.qZA())}function sce(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"td",19),e.TgZ(1,"button",20),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw().delete(a)}),e.TgZ(2,"mat-icon",21),e._uU(3,"delete"),e.qZA(),e.qZA(),e.qZA()}}function lce(n,r){1&n&&e._UZ(0,"tr",22)}function uce(n,r){1&n&&e._UZ(0,"tr",23)}function cce(n,r){if(1&n&&(e.TgZ(0,"mat-option",24),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function dce(n,r){if(1&n&&(e.TgZ(0,"mat-option",24),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var uj=function(){return{standalone:!0}},f2=function(){function n(r){this.builtInTemplatesConfigurationService=r,this.ethernetPorts=[],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[],this.displayedColumns=["port_number","vlan","type","ethertype","action"]}return n.prototype.ngOnInit=function(){this.getConfiguration()},n.prototype.getConfiguration=function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()},n.prototype.onAdd=function(){this.ethernetPorts.push(this.newPort),this.newPort={name:"",port_number:0}},n.prototype.delete=function(r){this.ethernetPorts=this.ethernetPorts.filter(function(t){return t!==r})},n.\u0275fac=function(t){return new(t||n)(e.Y36(eh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ports"]],inputs:{ethernetPorts:"ethernetPorts"},decls:31,vars:13,consts:[["mat-table","",1,"table",3,"dataSource"],["matColumnDef","port_number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vlan"],["matColumnDef","type"],["matColumnDef","ethertype"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"form-field"],["matInput","","type","number","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","VLAN",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","EtherType",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"table",0),e.ynx(1,1),e.YNc(2,Xue,2,0,"th",2),e.YNc(3,$ue,2,1,"td",3),e.BQk(),e.ynx(4,4),e.YNc(5,ece,2,0,"th",2),e.YNc(6,tce,2,1,"td",3),e.BQk(),e.ynx(7,5),e.YNc(8,nce,2,0,"th",2),e.YNc(9,rce,2,1,"td",3),e.BQk(),e.ynx(10,6),e.YNc(11,ice,2,0,"th",2),e.YNc(12,oce,2,1,"td",3),e.BQk(),e.ynx(13,7),e.YNc(14,ace,2,0,"th",2),e.YNc(15,sce,4,0,"td",3),e.BQk(),e.YNc(16,lce,1,0,"tr",8),e.YNc(17,uce,1,0,"tr",9),e.qZA(),e._UZ(18,"br"),e.TgZ(19,"mat-form-field",10),e.TgZ(20,"input",11),e.NdJ("ngModelChange",function(a){return i.newPort.port_number=a}),e.qZA(),e.qZA(),e.TgZ(21,"mat-form-field",10),e.TgZ(22,"input",12),e.NdJ("ngModelChange",function(a){return i.newPort.vlan=a}),e.qZA(),e.qZA(),e.TgZ(23,"mat-form-field",13),e.TgZ(24,"mat-select",14),e.NdJ("ngModelChange",function(a){return i.newPort.type=a}),e.YNc(25,cce,2,2,"mat-option",15),e.qZA(),e.qZA(),e.TgZ(26,"mat-form-field",13),e.TgZ(27,"mat-select",16),e.NdJ("ngModelChange",function(a){return i.newPort.ethertype=a}),e.YNc(28,dce,2,2,"mat-option",15),e.qZA(),e.qZA(),e.TgZ(29,"button",17),e.NdJ("click",function(){return i.onAdd()}),e._uU(30,"Add"),e.qZA()),2&t&&(e.Q6J("dataSource",i.ethernetPorts),e.xp6(16),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(3),e.Q6J("ngModel",i.newPort.port_number),e.xp6(2),e.Q6J("ngModel",i.newPort.vlan),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(11,uj))("ngModel",i.newPort.type),e.xp6(1),e.Q6J("ngForOf",i.portTypes),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(12,uj))("ngModel",i.newPort.ethertype),e.xp6(1),e.Q6J("ngForOf",i.etherTypes))},directives:[Jl,dl,cl,ul,Ql,Kl,Hn.KE,lr,re.wV,re.Fj,re.JJ,re.On,pi.gD,kt.sg,An,pl,fl,Ja,sr,Xl,$l,un.ey],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function pce(n,r){if(1&n&&(e.TgZ(0,"mat-option",22),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function fce(n,r){if(1&n&&(e.TgZ(0,"mat-option",22),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var cj=function(){return{standalone:!0}};function hce(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General settings "),e.qZA(),e.qZA(),e.TgZ(6,"form",7),e.TgZ(7,"mat-form-field",8),e.TgZ(8,"input",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetSwitchTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",8),e.TgZ(10,"input",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetSwitchTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-form-field",8),e.TgZ(12,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetSwitchTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(13,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(14,"Choose symbol"),e.qZA(),e._UZ(15,"br"),e._UZ(16,"br"),e.TgZ(17,"mat-form-field",8),e.TgZ(18,"mat-select",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetSwitchTemplate.category=a}),e.YNc(19,pce,2,2,"mat-option",14),e.qZA(),e.qZA(),e.TgZ(20,"mat-form-field",15),e.TgZ(21,"mat-select",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetSwitchTemplate.console_type=a}),e.YNc(22,fce,2,2,"mat-option",14),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"mat-expansion-panel"),e.TgZ(24,"mat-expansion-panel-header"),e.TgZ(25,"mat-panel-title"),e._uU(26," Port settings "),e.qZA(),e.qZA(),e._UZ(27,"app-ports",17,18),e.qZA(),e.qZA(),e.TgZ(29,"div",19),e.TgZ(30,"button",20),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(31,"Cancel"),e.qZA(),e.TgZ(32,"button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(33,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(6),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.ethernetSwitchTemplate.name),e.xp6(2),e.Q6J("ngModel",i.ethernetSwitchTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.ethernetSwitchTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(11,cj))("ngModel",i.ethernetSwitchTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(12,cj))("ngModel",i.ethernetSwitchTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(5),e.Q6J("ethernetPorts",i.ethernetSwitchTemplate.ports_mapping)}}function mce(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",23),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.ethernetSwitchTemplate.symbol)}}var vce=function(n){return{shadowed:n}},gce=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.toasterService=o,this.formBuilder=a,this.builtInTemplatesConfigurationService=s,this.router=u,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.inputForm=this.formBuilder.group({templateName:new re.NI("",re.kI.required),defaultName:new re.NI("",re.kI.required),symbol:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.builtInTemplatesService.getTemplate(r.server,i).subscribe(function(a){r.ethernetSwitchTemplate=a})})},n.prototype.getConfiguration=function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForEthernetSwitches(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForEthernetSwitches()},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","builtin","ethernet-switches"])},n.prototype.onSave=function(){var r=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):(this.ethernetSwitchTemplate.ports_mapping=this.portsComponent.ethernetPorts,this.builtInTemplatesService.saveTemplate(this.server,this.ethernetSwitchTemplate).subscribe(function(t){r.toasterService.success("Changes saved")}))},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.ethernetSwitchTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(od),e.Y36(Xn),e.Y36(re.qu),e.Y36(eh),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-switches-template-details"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(f2,5),2&t)&&(e.iGM(o=e.CRH())&&(i.portsComponent=o.first))},decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ethernetPorts"],["ports",""],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Ethernet switch configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,hce,34,13,"div",4),e.qZA(),e.YNc(6,mce,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,vce,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.ethernetSwitchTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.ethernetSwitchTemplate))},directives:[kt.mk,kt.O5,id,oc,ac,rd,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,An,pi.gD,re.On,kt.sg,f2,un.ey,ad],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function _ce(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/builtin")}}function yce(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add Ethernet switch template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/builtin/ethernet-switches/addtemplate")}}function bce(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function Cce(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function Sce(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,Cce,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.ethernetSwitchesTemplates)}}function Tce(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,Sce,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var xce=function(){function n(r,t,i){this.route=r,this.serverService=t,this.builtInTemplatesService=i,this.ethernetSwitchesTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.builtInTemplatesService.getTemplates(this.server).subscribe(function(t){r.ethernetSwitchesTemplates=t.filter(function(i){return"ethernet_switch"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(od))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-switches-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(xa,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Ethernet switches templates"),e.qZA(),e.YNc(5,_ce,2,1,"button",4),e.YNc(6,yce,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,bce,1,0,"app-empty-templates-list",6),e.YNc(8,Tce,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.ethernetSwitchesTemplates.length),e.xp6(1),e.Q6J("ngIf",i.ethernetSwitchesTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[kt.O5,xa,An,ca,ld,Du,kt.sg,Ss,Qa,sr,Ts,Nr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),rL=function(){return function(){}}(),uv=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.getImages=function(r){return this.httpServer.get(r,"/compute/docker/images")},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),LS=function(){function n(){}return n.prototype.getConsoleTypes=function(){return["telnet","vnc","http","https","none"]},n.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.prototype.getConsoleResolutions=function(){return["2560x1440","1920x1080","1680x1050","1440x900","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function wce(n,r){1&n&&e.Hsn(0)}var Ece=["*"],dj=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._elementRef=t}return(0,T.Z)(r,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),n}(),pj=function(){var n=function r(t){(0,g.Z)(this,r),this.template=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkStepLabel",""]]}),n}(),kce=0,fj=new e.OlP("STEPPER_GLOBAL_OPTIONS"),iL=function(){var n=function(){function r(t,i){(0,g.Z)(this,r),this._stepper=t,this.interacted=!1,this.interactedStream=new e.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}return(0,T.Z)(r,[{key:"editable",get:function(){return this._editable},set:function(i){this._editable=(0,Mn.Ig)(i)}},{key:"optional",get:function(){return this._optional},set:function(i){this._optional=(0,Mn.Ig)(i)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(i){this._completedOverride=(0,Mn.Ig)(i)}},{key:"_getDefaultCompleted",value:function(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}},{key:"hasError",get:function(){return null==this._customError?this._getDefaultError():this._customError},set:function(i){this._customError=(0,Mn.Ig)(i)}},{key:"_getDefaultError",value:function(){return this.stepControl&&this.stepControl.invalid&&this.interacted}},{key:"select",value:function(){this._stepper.selected=this}},{key:"reset",value:function(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}},{key:"ngOnChanges",value:function(){this._stepper._stateChanged()}},{key:"_markAsInteracted",value:function(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}},{key:"_showError",value:function(){var i;return null!==(i=this._stepperOptions.showError)&&void 0!==i?i:null!=this._customError}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36((0,e.Gpc)(function(){return cy})),e.Y36(fj,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-step"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,pj,5),2&t&&e.iGM(a=e.CRH())&&(i.stepLabel=a.first)},viewQuery:function(t,i){var o;1&t&&e.Gf(e.Rgc,7),2&t&&e.iGM(o=e.CRH())&&(i.content=o.first)},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[e.TTD],ngContentSelectors:Ece,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.YNc(0,wce,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n}(),cy=function(){var n=function(){function r(t,i,o,a){(0,g.Z)(this,r),this._dir=t,this._changeDetectorRef=i,this._elementRef=o,this._destroyed=new Pn.xQ,this.steps=new e.n_E,this._sortedHeaders=new e.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new e.vpe,this._orientation="horizontal",this._groupId=kce++}return(0,T.Z)(r,[{key:"linear",get:function(){return this._linear},set:function(i){this._linear=(0,Mn.Ig)(i)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(i){var o,a=(0,Mn.su)(i);this.steps&&this._steps?(this._isValidIndex(i),null===(o=this.selected)||void 0===o||o._markAsInteracted(),this._selectedIndex!==a&&!this._anyControlsInvalidOrPending(a)&&(a>=this._selectedIndex||this.steps.toArray()[a].editable)&&this._updateSelectedItemIndex(i)):this._selectedIndex=a}},{key:"selected",get:function(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0},set:function(i){this.selectedIndex=i&&this.steps?this.steps.toArray().indexOf(i):-1}},{key:"orientation",get:function(){return this._orientation},set:function(i){this._orientation=i,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===i)}},{key:"ngAfterContentInit",value:function(){var i=this;this._steps.changes.pipe((0,ra.O)(this._steps),(0,Zr.R)(this._destroyed)).subscribe(function(o){i.steps.reset(o.filter(function(a){return a._stepper===i})),i.steps.notifyOnChanges()})}},{key:"ngAfterViewInit",value:function(){var i=this;this._stepHeader.changes.pipe((0,ra.O)(this._stepHeader),(0,Zr.R)(this._destroyed)).subscribe(function(o){i._sortedHeaders.reset(o.toArray().sort(function(a,s){return a._elementRef.nativeElement.compareDocumentPosition(s._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})),i._sortedHeaders.notifyOnChanges()}),this._keyManager=new Ai.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,rr.of)()).pipe((0,ra.O)(this._layoutDirection()),(0,Zr.R)(this._destroyed)).subscribe(function(o){return i._keyManager.withHorizontalOrientation(o)}),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(function(){i.selected||(i._selectedIndex=Math.max(i._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}},{key:"ngOnDestroy",value:function(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"next",value:function(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}},{key:"previous",value:function(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}},{key:"reset",value:function(){this._updateSelectedItemIndex(0),this.steps.forEach(function(i){return i.reset()}),this._stateChanged()}},{key:"_getStepLabelId",value:function(i){return"cdk-step-label-".concat(this._groupId,"-").concat(i)}},{key:"_getStepContentId",value:function(i){return"cdk-step-content-".concat(this._groupId,"-").concat(i)}},{key:"_stateChanged",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_getAnimationDirection",value:function(i){var o=i-this._selectedIndex;return o<0?"rtl"===this._layoutDirection()?"next":"previous":o>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}},{key:"_getIndicatorType",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",a=this.steps.toArray()[i],s=this._isCurrentStep(i);return a._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(a,s):this._getGuidelineLogic(a,s,o)}},{key:"_getDefaultIndicatorLogic",value:function(i,o){return i._showError()&&i.hasError&&!o?"error":!i.completed||o?"number":i.editable?"edit":"done"}},{key:"_getGuidelineLogic",value:function(i,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number";return i._showError()&&i.hasError&&!o?"error":i.completed&&!o?"done":i.completed&&o?a:i.editable&&o?"edit":a}},{key:"_isCurrentStep",value:function(i){return this._selectedIndex===i}},{key:"_getFocusIndex",value:function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}},{key:"_updateSelectedItemIndex",value:function(i){var o=this.steps.toArray();this.selectionChange.emit({selectedIndex:i,previouslySelectedIndex:this._selectedIndex,selectedStep:o[i],previouslySelectedStep:o[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(i):this._keyManager.updateActiveItem(i),this._selectedIndex=i,this._stateChanged()}},{key:"_onKeydown",value:function(i){var o=(0,zr.Vb)(i),a=i.keyCode,s=this._keyManager;null==s.activeItemIndex||o||a!==zr.L_&&a!==zr.K5?s.onKeydown(i):(this.selectedIndex=s.activeItemIndex,i.preventDefault())}},{key:"_anyControlsInvalidOrPending",value:function(i){return!!(this._linear&&i>=0)&&this.steps.toArray().slice(0,i).some(function(o){var a=o.stepControl;return(a?a.invalid||a.pending||!o.interacted:!o.completed)&&!o.optional&&!o._completedOverride})}},{key:"_layoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_containsFocus",value:function(){var i=this._elementRef.nativeElement,o=(0,Xr.ht)();return i===o||i.contains(o)}},{key:"_isValidIndex",value:function(i){return i>-1&&(!this.steps||i<this.steps.length)}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(Na.Is,8),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(kt.K0))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkStepper",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,iL,5),e.Suo(o,dj,5)),2&t&&(e.iGM(a=e.CRH())&&(i._steps=a),e.iGM(a=e.CRH())&&(i._stepHeader=a))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),n}(),Mce=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._stepper=t,this.type="submit"}return(0,T.Z)(r,[{key:"_handleClick",value:function(){this._stepper.next()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(cy))},n.\u0275dir=e.lG2({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,i){1&t&&e.NdJ("click",function(){return i._handleClick()}),2&t&&e.Ikx("type",i.type)},inputs:{type:"type"}}),n}(),Ace=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._stepper=t,this.type="button"}return(0,T.Z)(r,[{key:"_handleClick",value:function(){this._stepper.previous()}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(cy))},n.\u0275dir=e.lG2({type:n,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,i){1&t&&e.NdJ("click",function(){return i._handleClick()}),2&t&&e.Ikx("type",i.type)},inputs:{type:"type"}}),n}(),Dce=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Na.vT]]}),n}();function Oce(n,r){if(1&n&&e.GkF(0,8),2&n){var t=e.oxw();e.Q6J("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function Pce(n,r){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Oqu(t._getDefaultTextForState(t.state))}}function Ice(n,r){if(1&n&&(e.TgZ(0,"span",13),e._uU(1),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Oqu(t._intl.completedLabel)}}function Rce(n,r){if(1&n&&(e.TgZ(0,"span",13),e._uU(1),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Oqu(t._intl.editableLabel)}}function Nce(n,r){if(1&n&&(e.TgZ(0,"mat-icon"),e._uU(1),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Oqu(t._getDefaultTextForState(t.state))}}function Zce(n,r){if(1&n&&(e.ynx(0,9),e.YNc(1,Pce,2,1,"span",10),e.YNc(2,Ice,2,1,"span",11),e.YNc(3,Rce,2,1,"span",11),e.YNc(4,Nce,2,1,"mat-icon",12),e.BQk()),2&n){var t=e.oxw();e.Q6J("ngSwitch",t.state),e.xp6(1),e.Q6J("ngSwitchCase","number"),e.xp6(1),e.Q6J("ngIf","done"===t.state),e.xp6(1),e.Q6J("ngIf","edit"===t.state)}}function Lce(n,r){if(1&n&&(e.TgZ(0,"div",14),e.GkF(1,15),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",t._templateLabel().template)}}function Fce(n,r){if(1&n&&(e.TgZ(0,"div",14),e._uU(1),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Oqu(t.label)}}function Bce(n,r){if(1&n&&(e.TgZ(0,"div",16),e._uU(1),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Oqu(t._intl.optionalLabel)}}function Uce(n,r){if(1&n&&(e.TgZ(0,"div",17),e._uU(1),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function Hce(n,r){}function Vce(n,r){if(1&n&&(e.Hsn(0),e.YNc(1,Hce,0,0,"ng-template",0)),2&n){var t=e.oxw();e.xp6(1),e.Q6J("cdkPortalOutlet",t._portal)}}var qce=["*"];function jce(n,r){1&n&&e._UZ(0,"div",9)}var hj=function(r,t){return{step:r,i:t}};function zce(n,r){if(1&n&&(e.ynx(0),e.GkF(1,7),e.YNc(2,jce,1,0,"div",8),e.BQk()),2&n){var t=r.$implicit,i=r.index,o=r.last;e.oxw(2);var a=e.MAs(4);e.xp6(1),e.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",e.WLB(3,hj,t,i)),e.xp6(1),e.Q6J("ngIf",!o)}}function Wce(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",10),e.NdJ("@horizontalStepTransition.done",function(u){return e.CHM(t),e.oxw(2)._animationDone.next(u)}),e.GkF(1,11),e.qZA()}if(2&n){var i=r.$implicit,o=r.index,a=e.oxw(2);e.Q6J("@horizontalStepTransition",a._getAnimationDirection(o))("id",a._getStepContentId(o)),e.uIk("aria-labelledby",a._getStepLabelId(o))("aria-expanded",a.selectedIndex===o),e.xp6(1),e.Q6J("ngTemplateOutlet",i.content)}}function Gce(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"div",3),e.YNc(2,zce,3,6,"ng-container",4),e.qZA(),e.TgZ(3,"div",5),e.YNc(4,Wce,2,5,"div",6),e.qZA(),e.BQk()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.steps),e.xp6(2),e.Q6J("ngForOf",t.steps)}}function Yce(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",13),e.GkF(1,7),e.TgZ(2,"div",14),e.TgZ(3,"div",15),e.NdJ("@verticalStepTransition.done",function(m){return e.CHM(t),e.oxw(2)._animationDone.next(m)}),e.TgZ(4,"div",16),e.GkF(5,11),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=r.index,a=r.last,s=e.oxw(2),u=e.MAs(4);e.xp6(1),e.Q6J("ngTemplateOutlet",u)("ngTemplateOutletContext",e.WLB(9,hj,i,o)),e.xp6(1),e.ekj("mat-stepper-vertical-line",!a),e.xp6(1),e.Q6J("@verticalStepTransition",s._getAnimationDirection(o))("id",s._getStepContentId(o)),e.uIk("aria-labelledby",s._getStepLabelId(o))("aria-expanded",s.selectedIndex===o),e.xp6(2),e.Q6J("ngTemplateOutlet",i.content)}}function Jce(n,r){if(1&n&&(e.ynx(0),e.YNc(1,Yce,6,12,"div",12),e.BQk()),2&n){var t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.steps)}}function Qce(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-step-header",17),e.NdJ("click",function(){return e.CHM(t).step.select()})("keydown",function(u){return e.CHM(t),e.oxw()._onKeydown(u)}),e.qZA()}if(2&n){var i=r.step,o=r.i,a=e.oxw();e.ekj("mat-horizontal-stepper-header","horizontal"===a.orientation)("mat-vertical-stepper-header","vertical"===a.orientation),e.Q6J("tabIndex",a._getFocusIndex()===o?0:-1)("id",a._getStepLabelId(o))("index",o)("state",a._getIndicatorType(o,i.state))("label",i.stepLabel||i.label)("selected",a.selectedIndex===o)("active",a._stepIsNavigable(o,i))("optional",i.optional)("errorMessage",i.errorMessage)("iconOverrides",a._iconOverrides)("disableRipple",a.disableRipple||!a._stepIsNavigable(o,i))("color",i.color||a.color),e.uIk("aria-posinset",o+1)("aria-setsize",a.steps.length)("aria-controls",a._getStepContentId(o))("aria-selected",a.selectedIndex==o)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null)("aria-disabled",!a._stepIsNavigable(o,i)||null)}}var h2=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(pj);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["","matStepLabel",""]],features:[e.qOj]}),n}(),m2=function(){var n=function r(){(0,g.Z)(this,r),this.changes=new Pn.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({factory:function(){return new n},token:n,providedIn:"root"}),n}(),Xce={provide:m2,deps:[[new e.FiY,new e.tp0,m2]],useFactory:function(n){return n||new m2}},$ce=(0,un.pj)(function(n){(0,A.Z)(t,n);var r=(0,S.Z)(t);function t(i){return(0,g.Z)(this,t),r.call(this,i)}return t}(dj),"primary"),mj=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u){var p;return(0,g.Z)(this,i),(p=t.call(this,s))._intl=o,p._focusMonitor=a,p._intlSubscription=o.changes.subscribe(function(){return u.markForCheck()}),p}return(0,T.Z)(i,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(a,s){a?this._focusMonitor.focusVia(this._elementRef,a,s):this._elementRef.nativeElement.focus(s)}},{key:"_stringLabel",value:function(){return this.label instanceof h2?null:this.label}},{key:"_templateLabel",value:function(){return this.label instanceof h2?this.label:null}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_getIconContext",value:function(){return{index:this.index,active:this.active,optional:this.optional}}},{key:"_getDefaultTextForState",value:function(a){return"number"==a?"".concat(this.index+1):"edit"==a?"create":"error"==a?"warning":a}}]),i}($ce);return n.\u0275fac=function(t){return new(t||n)(e.Y36(m2),e.Y36(Ai.tE),e.Y36(e.SBq),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[e.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],[4,"ngSwitchDefault"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,i){1&t&&(e._UZ(0,"div",0),e.TgZ(1,"div"),e.TgZ(2,"div",1),e.YNc(3,Oce,1,2,"ng-container",2),e.YNc(4,Zce,5,4,"ng-container",3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.YNc(6,Lce,2,1,"div",5),e.YNc(7,Fce,2,1,"div",5),e.YNc(8,Bce,2,1,"div",6),e.YNc(9,Uce,2,1,"div",7),e.qZA()),2&t&&(e.Q6J("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disableRipple),e.xp6(1),e.Gre("mat-step-icon-state-",i.state," mat-step-icon"),e.ekj("mat-step-icon-selected",i.selected),e.xp6(1),e.Q6J("ngSwitch",!(!i.iconOverrides||!i.iconOverrides[i.state])),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(2),e.ekj("mat-step-label-active",i.active)("mat-step-label-selected",i.selected)("mat-step-label-error","error"==i.state),e.xp6(1),e.Q6J("ngIf",i._templateLabel()),e.xp6(1),e.Q6J("ngIf",i._stringLabel()),e.xp6(1),e.Q6J("ngIf",i.optional&&"error"!=i.state),e.xp6(1),e.Q6J("ngIf","error"==i.state))},directives:[un.wG,kt.RF,kt.n9,kt.ED,kt.O5,kt.tP,sr],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),n}(),vj={horizontalStepTransition:(0,on.X$)("horizontalStepTransition",[(0,on.SB)("previous",(0,on.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,on.SB)("current",(0,on.oB)({transform:"none",visibility:"inherit"})),(0,on.SB)("next",(0,on.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,on.eR)("* => *",(0,on.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,on.X$)("verticalStepTransition",[(0,on.SB)("previous",(0,on.oB)({height:"0px",visibility:"hidden"})),(0,on.SB)("next",(0,on.oB)({height:"0px",visibility:"hidden"})),(0,on.SB)("current",(0,on.oB)({height:"*",visibility:"inherit"})),(0,on.eR)("* <=> current",(0,on.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},ede=function(){var n=function r(t){(0,g.Z)(this,r),this.templateRef=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),n}(),tde=function(){var n=function r(t){(0,g.Z)(this,r),this._template=t};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["ng-template","matStepContent",""]]}),n}(),dy=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u){var p;return(0,g.Z)(this,i),(p=t.call(this,o,u))._errorStateMatcher=a,p._viewContainerRef=s,p._isSelected=rs.w.EMPTY,p}return(0,T.Z)(i,[{key:"ngAfterContentInit",value:function(){var a=this;this._isSelected=this._stepper.steps.changes.pipe((0,Zs.w)(function(){return a._stepper.selectionChange.pipe((0,Er.U)(function(s){return s.selectedStep===a}),(0,ra.O)(a._stepper.selected===a))})).subscribe(function(s){s&&a._lazyContent&&!a._portal&&(a._portal=new qi.UE(a._lazyContent._template,a._viewContainerRef))})}},{key:"ngOnDestroy",value:function(){this._isSelected.unsubscribe()}},{key:"isErrorState",value:function(a,s){return this._errorStateMatcher.isErrorState(a,s)||!!(a&&a.invalid&&this.interacted)}}]),i}(iL);return n.\u0275fac=function(t){return new(t||n)(e.Y36((0,e.Gpc)(function(){return py})),e.Y36(un.rD,4),e.Y36(e.s_b),e.Y36(fj,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-step"]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,h2,5),e.Suo(o,tde,5)),2&t&&(e.iGM(a=e.CRH())&&(i.stepLabel=a.first),e.iGM(a=e.CRH())&&(i._lazyContent=a.first))},inputs:{color:"color"},exportAs:["matStep"],features:[e._Bn([{provide:un.rD,useExisting:n},{provide:iL,useExisting:n}]),e.qOj],ngContentSelectors:qce,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,i){1&t&&(e.F$t(),e.YNc(0,Vce,2,1,"ng-template"))},directives:[qi.Pl],encapsulation:2,changeDetection:0}),n}(),gj=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(cy);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,features:[e.qOj]}),n}(),nde=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(gj);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-horizontal-stepper"]],features:[e.qOj]}),n}(),rde=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(gj);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["mat-vertical-stepper"]],features:[e.qOj]}),n}(),py=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u){var p;(0,g.Z)(this,i),(p=t.call(this,o,a,s,u)).steps=new e.n_E,p.animationDone=new e.vpe,p.labelPosition="end",p._iconOverrides={},p._animationDone=new Pn.xQ;var m=s.nativeElement.nodeName.toLowerCase();return p.orientation="mat-vertical-stepper"===m?"vertical":"horizontal",p}return(0,T.Z)(i,[{key:"ngAfterContentInit",value:function(){var a=this;(0,I.Z)((0,D.Z)(i.prototype),"ngAfterContentInit",this).call(this),this._icons.forEach(function(s){return a._iconOverrides[s.name]=s.templateRef}),this.steps.changes.pipe((0,Zr.R)(this._destroyed)).subscribe(function(){a._stateChanged()}),this._animationDone.pipe((0,u_.x)(function(s,u){return s.fromState===u.fromState&&s.toState===u.toState}),(0,Zr.R)(this._destroyed)).subscribe(function(s){"current"===s.toState&&a.animationDone.emit()})}},{key:"_stepIsNavigable",value:function(a,s){return s.completed||this.selectedIndex===a||!this.linear}}]),i}(cy);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Na.Is,8),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(kt.K0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,dy,5),e.Suo(o,ede,5)),2&t&&(e.iGM(a=e.CRH())&&(i._steps=a),e.iGM(a=e.CRH())&&(i._icons=a))},viewQuery:function(t,i){var o;1&t&&e.Gf(mj,5),2&t&&e.iGM(o=e.CRH())&&(i._stepHeader=o)},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(t,i){2&t&&(e.uIk("aria-orientation",i.orientation),e.ekj("mat-stepper-horizontal","horizontal"===i.orientation)("mat-stepper-vertical","vertical"===i.orientation)("mat-stepper-label-position-end","horizontal"===i.orientation&&"end"==i.labelPosition)("mat-stepper-label-position-bottom","horizontal"===i.orientation&&"bottom"==i.labelPosition))},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition",disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[e._Bn([{provide:cy,useExisting:n},{provide:nde,useExisting:n},{provide:rde,useExisting:n}]),e.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(t,i){1&t&&(e.ynx(0,0),e.YNc(1,Gce,5,2,"ng-container",1),e.YNc(2,Jce,2,1,"ng-container",1),e.BQk(),e.YNc(3,Qce,1,23,"ng-template",null,2,e.W1O)),2&t&&(e.Q6J("ngSwitch",i.orientation),e.xp6(1),e.Q6J("ngSwitchCase","horizontal"),e.xp6(1),e.Q6J("ngSwitchCase","vertical"))},directives:[kt.RF,kt.n9,kt.sg,kt.tP,kt.O5,mj],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[vj.horizontalStepTransition,vj.verticalStepTransition]},changeDetection:0}),n}(),ide=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Mce);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,i){2&t&&e.Ikx("type",i.type)},inputs:{type:"type"},features:[e.qOj]}),n}(),ode=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Ace);return n.\u0275fac=function(){var r;return function(i){return(r||(r=e.n5z(n)))(i||n)}}(),n.\u0275dir=e.lG2({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,i){2&t&&e.Ikx("type",i.type)},inputs:{type:"type"},features:[e.qOj]}),n}(),ade=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[Xce,un.rD],imports:[[un.BQ,kt.ez,qi.eL,l2,Dce,zZ,un.si],un.BQ]}),n}();function sde(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.image," ")}}var _j=function(){return{standalone:!0}};function lde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-select",31),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().selectedImage=a}),e.YNc(1,sde,2,2,"mat-option",25),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("ngModelOptions",e.DdM(3,_j))("ngModel",i.selectedImage),e.xp6(1),e.Q6J("ngForOf",i.dockerImages)}}function ude(n,r){1&n&&(e.TgZ(0,"div"),e.TgZ(1,"mat-form-field",17),e._UZ(2,"input",33),e.qZA(),e.qZA())}function cde(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var dde=function(){function n(r,t,i,o,a,s,u,p,m){this.route=r,this.serverService=t,this.dockerService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=u,this.configurationService=p,this.computeService=m,this.consoleTypes=[],this.isRemoteComputerChosen=!1,this.dockerImages=[],this.newImageSelected=!1,this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.dockerTemplate=new rL,this.virtualMachineForm=this.formBuilder.group({filename:new re.NI(null,re.kI.required)}),this.containerNameForm=this.formBuilder.group({templateName:new re.NI(null,re.kI.required)}),this.networkAdaptersForm=this.formBuilder.group({adapters:new re.NI("1",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.consoleTypes=r.configurationService.getConsoleTypes(),r.templateMocksService.getDockerTemplate().subscribe(function(o){r.dockerTemplate=o}),r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)}),r.dockerService.getImages(i).subscribe(function(o){r.dockerImages=o})})},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.setDiskImage=function(r){this.newImageSelected="newImage"===r},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","docker","templates"])},n.prototype.addTemplate=function(){var r=this;this.virtualMachineForm.invalid&&(this.newImageSelected||!this.selectedImage)||this.containerNameForm.invalid||this.networkAdaptersForm.invalid?this.toasterService.error("Fill all required fields"):(this.dockerTemplate.template_id=(0,Ta.v4)(),this.dockerTemplate.image=this.newImageSelected?this.virtualMachineForm.get("filename").value:this.selectedImage.image,this.dockerTemplate.name=this.containerNameForm.get("templateName").value,this.dockerTemplate.adapters=+this.networkAdaptersForm.get("adapters").value,this.dockerTemplate.compute_id=this.isGns3VmChosen?"vm":"local",this.dockerService.addTemplate(this.server,this.dockerTemplate).subscribe(function(t){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(uv),e.Y36(Xn),e.Y36(xr),e.Y36(re.qu),e.Y36(lc),e.Y36(LS),e.Y36(uc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-docker-template"]],decls:45,vars:19,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Server type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],["label","Docker Virtual Machine",3,"completed"],[3,"formGroup"],["value","2",1,"radio-button",3,"click"],["placeholder","Image list",3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],["label","Container name",3,"completed"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Container name",1,"templatename"],["label","Network adapters",3,"completed"],["matInput","","type","number","formControlName","adapters","placeholder","Adapters",1,"networkadapter"],["label","Start command",3,"completed"],["matInput","","type","text","placeholder","Start command",3,"ngModel","ngModelChange"],["label","Console type",3,"completed"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["label","Environment"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],["placeholder","Image list",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value"],["matInput","","type","text","formControlName","filename","placeholder","Image name",1,"filename"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New Docker container template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"mat-vertical-stepper",6),e.TgZ(8,"mat-step",7),e.TgZ(9,"mat-radio-group",8),e.TgZ(10,"mat-radio-button",9),e.NdJ("click",function(){return i.setServerType("local")}),e._uU(11,"Run this Docker container locally"),e.qZA(),e.TgZ(12,"mat-radio-button",10),e.NdJ("click",function(){return i.setServerType("gns3 vm")}),e._uU(13,"Run this Docker container on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"mat-step",11),e.TgZ(15,"form",12),e.TgZ(16,"mat-radio-group",8),e.TgZ(17,"mat-radio-button",9),e.NdJ("click",function(){return i.setDiskImage("existingImage")}),e._uU(18,"Existing image"),e.qZA(),e.TgZ(19,"mat-radio-button",13),e.NdJ("click",function(){return i.setDiskImage("newImage")}),e._uU(20,"New image"),e.qZA(),e.qZA(),e.YNc(21,lde,2,4,"mat-select",14),e.YNc(22,ude,3,0,"div",15),e.qZA(),e.qZA(),e.TgZ(23,"mat-step",16),e.TgZ(24,"form",12),e.TgZ(25,"mat-form-field",17),e._UZ(26,"input",18),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"mat-step",19),e.TgZ(28,"form",12),e.TgZ(29,"mat-form-field",17),e._UZ(30,"input",20),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"mat-step",21),e.TgZ(32,"mat-form-field",17),e.TgZ(33,"input",22),e.NdJ("ngModelChange",function(a){return i.dockerTemplate.start_command=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"mat-step",23),e.TgZ(35,"mat-select",24),e.NdJ("ngModelChange",function(a){return i.dockerTemplate.console_type=a}),e.YNc(36,cde,2,2,"mat-option",25),e.qZA(),e.qZA(),e.TgZ(37,"mat-step",26),e.TgZ(38,"mat-form-field",17),e.TgZ(39,"textarea",27),e.NdJ("ngModelChange",function(a){return i.dockerTemplate.environment=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(40,"div",28),e.TgZ(41,"button",29),e.NdJ("click",function(){return i.goBack()}),e._uU(42,"Cancel"),e.qZA(),e.TgZ(43,"button",30),e.NdJ("click",function(){return i.addTemplate()}),e._uU(44,"Add template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("linear",!0),e.xp6(1),e.Q6J("completed",i.isGns3VmChosen||i.isLocalComputerChosen),e.xp6(4),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("completed",i.selectedImage||i.virtualMachineForm.get("filename").value),e.xp6(1),e.Q6J("formGroup",i.virtualMachineForm),e.xp6(6),e.Q6J("ngIf",!i.newImageSelected),e.xp6(1),e.Q6J("ngIf",i.newImageSelected),e.xp6(1),e.Q6J("completed",i.containerNameForm.get("templateName").value),e.xp6(1),e.Q6J("formGroup",i.containerNameForm),e.xp6(3),e.Q6J("completed",i.networkAdaptersForm.get("adapters").value),e.xp6(1),e.Q6J("formGroup",i.networkAdaptersForm),e.xp6(3),e.Q6J("completed",i.dockerTemplate.start_command),e.xp6(2),e.Q6J("ngModel",i.dockerTemplate.start_command),e.xp6(1),e.Q6J("completed",i.dockerTemplate.console_type),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(18,_j))("ngModel",i.dockerTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(3),e.Q6J("ngModel",i.dockerTemplate.environment))},directives:[py,dy,hl,ml,re._Y,re.JL,re.sg,kt.O5,Hn.KE,lr,re.Fj,re.JJ,re.u,re.wV,re.On,pi.gD,kt.sg,An,un.ey],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),pde=function(){function n(r,t,i,o,a,s){this.route=r,this.serverService=t,this.dockerService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.dockerService.getTemplate(r.server,i).subscribe(function(a){r.dockerTemplate=a,r.templateName="Copy of "+r.dockerTemplate.name})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","docker","templates"])},n.prototype.addTemplate=function(){var r=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.dockerTemplate.template_id=(0,Ta.v4)(),this.dockerTemplate.name=this.templateName,this.dockerService.addTemplate(this.server,this.dockerTemplate).subscribe(function(t){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(uv),e.Y36(Xn),e.Y36(xr),e.Y36(re.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-copy-docker-template"]],decls:15,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Copy Docker container template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"form",6),e.TgZ(8,"mat-form-field",7),e.TgZ(9,"input",8),e.NdJ("ngModelChange",function(a){return i.templateName=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.TgZ(11,"button",10),e.NdJ("click",function(){return i.goBack()}),e._uU(12,"Cancel"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return i.addTemplate()}),e._uU(14,"Copy template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("formGroup",i.templateNameForm),e.xp6(2),e.Q6J("ngModel",i.templateName))},directives:[re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),yj=f(96798),fde=["input"],hde=function(r){return{enterDuration:r}},mde=["*"],vde=new e.OlP("mat-checkbox-default-options",{providedIn:"root",factory:bj});function bj(){return{color:"accent",clickAction:"check-indeterminate"}}var gde=0,Cj=bj(),_de={provide:re.JU,useExisting:(0,e.Gpc)(function(){return Zo}),multi:!0},yde=function n(){(0,g.Z)(this,n)},bde=(0,un.sb)((0,un.pj)((0,un.Kr)((0,un.Id)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}())))),Zo=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p,m,C){var P;return(0,g.Z)(this,i),(P=t.call(this,o))._changeDetectorRef=a,P._focusMonitor=s,P._ngZone=u,P._animationMode=m,P._options=C,P.ariaLabel="",P.ariaLabelledby=null,P._uniqueId="mat-checkbox-".concat(++gde),P.id=P._uniqueId,P.labelPosition="after",P.name=null,P.change=new e.vpe,P.indeterminateChange=new e.vpe,P._onTouched=function(){},P._currentAnimationClass="",P._currentCheckState=0,P._controlValueAccessorChangeFn=function(){},P._checked=!1,P._disabled=!1,P._indeterminate=!1,P._options=P._options||Cj,P.color=P.defaultColor=P._options.color||Cj.color,P.tabIndex=parseInt(p)||0,P}return(0,T.Z)(i,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(a){this._required=(0,Mn.Ig)(a)}},{key:"ngAfterViewInit",value:function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(s){s||Promise.resolve().then(function(){a._onTouched(),a._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(a){a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(a){var s=(0,Mn.Ig)(a);s!==this.disabled&&(this._disabled=s,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(a){var s=a!=this._indeterminate;this._indeterminate=(0,Mn.Ig)(a),s&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(a){this.checked=!!a}},{key:"registerOnChange",value:function(a){this._controlValueAccessorChangeFn=a}},{key:"registerOnTouched",value:function(a){this._onTouched=a}},{key:"setDisabledState",value:function(a){this.disabled=a}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(a){var s=this._currentCheckState,u=this._elementRef.nativeElement;if(s!==a&&(this._currentAnimationClass.length>0&&u.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(s,a),this._currentCheckState=a,this._currentAnimationClass.length>0)){u.classList.add(this._currentAnimationClass);var p=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){u.classList.remove(p)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var a=new yde;a.source=this,a.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(a),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(a){var u,s=this,p=null===(u=this._options)||void 0===u?void 0:u.clickAction;a.stopPropagation(),this.disabled||"noop"===p?!this.disabled&&"noop"===p&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==p&&Promise.resolve().then(function(){s._indeterminate=!1,s.indeterminateChange.emit(s._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(a,s){a?this._focusMonitor.focusVia(this._inputElement,a,s):this._inputElement.nativeElement.focus(s)}},{key:"_onInteractionEvent",value:function(a){a.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(a,s){if("NoopAnimations"===this._animationMode)return"";var u="";switch(a){case 0:if(1===s)u="unchecked-checked";else{if(3!=s)return"";u="unchecked-indeterminate"}break;case 2:u=1===s?"unchecked-checked":"unchecked-indeterminate";break;case 1:u=2===s?"checked-unchecked":"checked-indeterminate";break;case 3:u=1===s?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(u)}},{key:"_syncIndeterminate",value:function(a){var s=this._inputElement;s&&(s.nativeElement.indeterminate=a)}}]),i}(bde);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ai.tE),e.Y36(e.R0b),e.$8M("tabindex"),e.Y36(ys.Qb,8),e.Y36(vde,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-checkbox"]],viewQuery:function(t,i){var o;1&t&&(e.Gf(fde,5),e.Gf(un.wG,5)),2&t&&(e.iGM(o=e.CRH())&&(i._inputElement=o.first),e.iGM(o=e.CRH())&&(i.ripple=o.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,i){2&t&&(e.Ikx("id",i.id),e.uIk("tabindex",null),e.ekj("mat-checkbox-indeterminate",i.indeterminate)("mat-checkbox-checked",i.checked)("mat-checkbox-disabled",i.disabled)("mat-checkbox-label-before","before"==i.labelPosition)("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[e._Bn([_de]),e.qOj],ngContentSelectors:mde,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,i){if(1&t&&(e.F$t(),e.TgZ(0,"label",0,1),e.TgZ(2,"span",2),e.TgZ(3,"input",3,4),e.NdJ("change",function(u){return i._onInteractionEvent(u)})("click",function(u){return i._onInputClick(u)}),e.qZA(),e.TgZ(5,"span",5),e._UZ(6,"span",6),e.qZA(),e._UZ(7,"span",7),e.TgZ(8,"span",8),e.O4$(),e.TgZ(9,"svg",9),e._UZ(10,"path",10),e.qZA(),e.kcU(),e._UZ(11,"span",11),e.qZA(),e.qZA(),e.TgZ(12,"span",12,13),e.NdJ("cdkObserveContent",function(){return i._onLabelTextChange()}),e.TgZ(14,"span",14),e._uU(15,"\xa0"),e.qZA(),e.Hsn(16),e.qZA(),e.qZA()),2&t){var o=e.MAs(1),a=e.MAs(13);e.uIk("for",i.inputId),e.xp6(2),e.ekj("mat-checkbox-inner-container-no-side-margin",!a.textContent||!a.textContent.trim()),e.xp6(1),e.Q6J("id",i.inputId)("required",i.required)("checked",i.checked)("disabled",i.disabled)("tabIndex",i.tabIndex),e.uIk("value",i.value)("name",i.name)("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-checked",i._getAriaChecked())("aria-describedby",i.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",o)("matRippleDisabled",i._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",e.VKq(19,hde,"NoopAnimations"===i._animationMode?0:150))}},directives:[un.wG,yj.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),n}(),Sj=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}(),Tde=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.si,un.BQ,yj.Q8,Sj],un.BQ,Sj]}),n}();function xde(n,r){if(1&n&&(e.TgZ(0,"mat-option",27),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function wde(n,r){if(1&n&&(e.TgZ(0,"mat-option",27),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Ede(n,r){if(1&n&&(e.TgZ(0,"mat-option",27),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var cv=function(){return{standalone:!0}};function kde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General settings "),e.qZA(),e.qZA(),e.TgZ(6,"form",7),e.TgZ(7,"mat-form-field",8),e.TgZ(8,"input",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",8),e.TgZ(10,"input",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-form-field",8),e.TgZ(12,"mat-select",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.category=a}),e.YNc(13,xde,2,2,"mat-option",12),e.qZA(),e.qZA(),e.TgZ(14,"mat-form-field",8),e.TgZ(15,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(16,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(17,"Choose symbol"),e.qZA(),e._UZ(18,"br"),e._UZ(19,"br"),e.TgZ(20,"mat-form-field",8),e.TgZ(21,"input",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.start_command=a}),e.qZA(),e.qZA(),e.TgZ(22,"mat-form-field",8),e.TgZ(23,"input",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.adapters=a}),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",17),e.TgZ(25,"mat-select",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.console_type=a}),e.YNc(26,wde,2,2,"mat-option",12),e.qZA(),e.qZA(),e.TgZ(27,"mat-checkbox",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.console_auto_start=a}),e._uU(28," Auto start console "),e.qZA(),e.TgZ(29,"mat-form-field",17),e.TgZ(30,"mat-select",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.console_resolution=a}),e.YNc(31,Ede,2,2,"mat-option",12),e.qZA(),e.qZA(),e.TgZ(32,"mat-form-field",8),e.TgZ(33,"input",21),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.console_http_port=a}),e.qZA(),e.qZA(),e.TgZ(34,"mat-form-field",8),e.TgZ(35,"input",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.console_http_path=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(36,"h6"),e._uU(37,"Environment"),e.qZA(),e.TgZ(38,"mat-form-field",8),e.TgZ(39,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.environment=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(40,"mat-expansion-panel"),e.TgZ(41,"mat-expansion-panel-header"),e.TgZ(42,"mat-panel-title"),e._uU(43," Advanced "),e.qZA(),e.qZA(),e.TgZ(44,"h6"),e._uU(45,"Extra hosts"),e.qZA(),e.TgZ(46,"mat-form-field",8),e.TgZ(47,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.extra_hosts=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"mat-expansion-panel"),e.TgZ(49,"mat-expansion-panel-header"),e.TgZ(50,"mat-panel-title"),e._uU(51," Usage "),e.qZA(),e.qZA(),e.TgZ(52,"mat-form-field",8),e.TgZ(53,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().dockerTemplate.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"div",24),e.TgZ(55,"button",25),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(56,"Cancel"),e.qZA(),e.TgZ(57,"button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(58,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(6),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.dockerTemplate.name),e.xp6(2),e.Q6J("ngModel",i.dockerTemplate.default_name_format),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(25,cv))("ngModel",i.dockerTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModel",i.dockerTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(26,cv))("ngModel",i.dockerTemplate.start_command),e.xp6(2),e.Q6J("ngModel",i.dockerTemplate.adapters),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(27,cv))("ngModel",i.dockerTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(28,cv))("ngModel",i.dockerTemplate.console_auto_start),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(29,cv))("ngModel",i.dockerTemplate.console_resolution),e.xp6(1),e.Q6J("ngForOf",i.consoleResolutions),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(30,cv))("ngModel",i.dockerTemplate.console_http_port),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(31,cv))("ngModel",i.dockerTemplate.console_http_path),e.xp6(4),e.Q6J("ngModel",i.dockerTemplate.environment),e.xp6(8),e.Q6J("ngModel",i.dockerTemplate.extra_hosts),e.xp6(6),e.Q6J("ngModel",i.dockerTemplate.usage)}}function Mde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",28),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.dockerTemplate.symbol)}}var Ade=function(n){return{shadowed:n}},Dde=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.dockerService=i,this.toasterService=o,this.configurationService=a,this.formBuilder=s,this.router=u,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.consoleResolutions=[],this.categories=[],this.adapters=[],this.displayedColumns=["adapter_number","port_name"],this.generalSettingsForm=this.formBuilder.group({templateName:new re.NI("",re.kI.required),defaultName:new re.NI("",re.kI.required),adapter:new re.NI("",re.kI.required),symbol:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.dockerService.getTemplate(r.server,i).subscribe(function(a){r.dockerTemplate=a})})},n.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.categories=this.configurationService.getCategories(),this.consoleResolutions=this.configurationService.getConsoleResolutions()},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","docker","templates"])},n.prototype.onSave=function(){var r=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):this.dockerService.saveTemplate(this.server,this.dockerTemplate).subscribe(function(t){r.toasterService.success("Changes saved")})},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.dockerTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(uv),e.Y36(Xn),e.Y36(LS),e.Y36(re.qu),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-docker-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["formControlName","defaultName","matInput","","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","symbol","matInput","","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["matInput","","type","text","placeholder","Start command",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","adapter","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","VNC console resolution",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","number","placeholder","HTTP port in the container",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text","placeholder","HTTP path",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Docker image configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,kde,59,32,"div",4),e.qZA(),e.YNc(6,Mde,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,Ade,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.dockerTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.dockerTemplate))},directives:[kt.mk,kt.O5,id,oc,ac,rd,re._Y,re.JL,re.sg,Hn.KE,re.Fj,lr,re.JJ,re.u,pi.gD,re.On,kt.sg,An,re.wV,Zo,un.ey,ad],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Ode(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences")}}function Pde(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add Docker container template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/docker/addtemplate")}}function Ide(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function Rde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.TgZ(13,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).copyTemplate(u)}),e.TgZ(14,"mat-icon"),e._uU(15,"content_copy"),e.qZA(),e.TgZ(16,"span"),e._uU(17,"Copy"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function Nde(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,Rde,18,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.dockerTemplates)}}function Zde(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,Nde,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var Lde=function(){function n(r,t,i,o){this.route=r,this.serverService=t,this.dockerService=i,this.router=o,this.dockerTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.dockerService.getTemplates(this.server).subscribe(function(t){r.dockerTemplates=t.filter(function(i){return"docker"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.prototype.copyTemplate=function(r){this.router.navigate(["/server",this.server.id,"preferences","docker","templates",r.template_id,"copy"])},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(uv),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-docker-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(xa,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Docker container templates"),e.qZA(),e.YNc(5,Ode,2,1,"button",4),e.YNc(6,Pde,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,Ide,1,0,"app-empty-templates-list",6),e.YNc(8,Zde,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.dockerTemplates.length),e.xp6(1),e.Q6J("ngIf",i.dockerTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[kt.O5,xa,An,ca,ld,Du,kt.sg,Ss,Qa,sr,Ts,Nr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),oL=function(){return function(){}}(),dv=function(){function n(r){this.httpServer=r}return n.prototype.getImages=function(r){return this.httpServer.get(r,"/compute/dynamips/images")},n.prototype.getImagePath=function(r,t){return r.protocol+"//"+r.host+":"+r.port+"/v2/compute/dynamips/images/"+t},n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),v2=function(){function n(){this.c1700_wics=["WIC-1T","WIC-2T","WIC-1ENET"],this.c2600_wics=["WIC-1T","WIC-2T"],this.c3700_wics=["WIC-1T","WIC-2T"],this.c2600_nms=["NM-1FE-TX","NM-1E","NM-4E","NM-16ESW"],this.c3600_nms=["NM-1FE-TX","NM-1E","NM-4E","NM-16ESW","NM-4T"],this.c3700_nms=["NM-1FE-TX","NM-4T","NM-16ESW"],this.c7200_pas=["PA-A1","PA-FE-TX","PA-2FE-TX","PA-GE","PA-4T+","PA-8T","PA-4E","PA-8E","PA-POS-OC3"],this.c7200_io=["C7200-IO-FE","C7200-IO-2FE","C7200-IO-GE-E"]}return n.prototype.getConsoleTypes=function(){return["telnet","none"]},n.prototype.getDefaultRamSettings=function(){return{c1700:160,c2600:160,c2691:192,c3600:192,c3725:128,c3745:256,c7200:512}},n.prototype.getDefaultNvRamSettings=function(){return{c1700:128,c2600:128,c2691:256,c3600:192,c3620:192,c3640:192,c3660:192,c3725:256,c3745:256,c7200:512}},n.prototype.getAvailablePlatforms=function(){return["c1700","c2600","c2691","c3725","c3745","c3600","c7200"]},n.prototype.getPlatformsWithEtherSwitchRouterOption=function(){return{c1700:!1,c2600:!0,c2691:!0,c3725:!0,c3745:!0,c3600:!0,c7200:!1}},n.prototype.getPlatformsWithChassis=function(){return{c1700:!0,c2600:!0,c2691:!1,c3725:!1,c3745:!1,c3600:!0,c7200:!1}},n.prototype.getChassis=function(){return{c1700:["1720","1721","1750","1751","1760"],c2600:["2610","2611","2620","2621","2610XM","2611XM","2620XM","2621XM","2650XM","2651XM"],c3600:["3620","3640","3660"]}},n.prototype.getNetworkModules=function(){return{c1700:{0:this.c1700_wics,1:this.c1700_wics},c2600:{0:this.c2600_wics,1:this.c2600_wics,2:this.c2600_wics},c2691:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},c3725:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},c3745:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics}}},n.prototype.getNetworkAdapters=function(){return{1720:{0:["C1700-MB-1FE"]},1721:{0:["C1700-MB-1FE"]},1750:{0:["C1700-MB-1FE"]},1751:{0:["C1700-MB-1FE"],1:["C1700-MB-WIC1"]},1760:{0:["C1700-MB-1FE"],1:["C1700-MB-WIC1"]},2610:{0:["C2600-MB-1E"],1:this.c2600_nms},2611:{0:["C2600-MB-2E"],1:this.c2600_nms},2620:{0:["C2600-MB-1FE"],1:this.c2600_nms},2621:{0:["C2600-MB-2FE"],1:this.c2600_nms},"2610XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2611XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},"2620XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2621XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},"2650XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2651XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},3620:{0:this.c3600_nms,1:this.c3600_nms},3640:{0:this.c3600_nms,1:this.c3600_nms,2:this.c3600_nms,3:this.c3600_nms},3660:{0:["Leopard-2FE"],1:this.c3600_nms,2:this.c3600_nms,3:this.c3600_nms,4:this.c3600_nms,5:this.c3600_nms,6:this.c3600_nms}}},n.prototype.getNetworkAdaptersForPlatform=function(){var r={};return r.c2691={0:["GT96100-FE"],1:this.c3700_nms},r.c3725={0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms},r.c3745={0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms,3:this.c3700_nms,4:this.c3700_nms},r.c7200={0:this.c7200_io,1:this.c7200_pas,2:this.c7200_pas,3:this.c7200_pas,4:this.c7200_pas,5:this.c7200_pas,6:this.c7200_pas},{c2691:{0:["GT96100-FE"],1:this.c3700_nms},c3725:{0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms},c3745:{0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms,3:this.c3700_nms,4:this.c3700_nms},c7200:{0:this.c7200_io,1:this.c7200_pas,2:this.c7200_pas,3:this.c7200_pas,4:this.c7200_pas,5:this.c7200_pas,6:this.c7200_pas}}},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function Fde(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.filename),e.xp6(1),e.hij(" ",t.filename," ")}}function Bde(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Ude(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Hde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",17),e.TgZ(1,"mat-select",37),e.NdJ("selectionChange",function(a){return e.CHM(t),e.oxw(2).onChassisChosen(a)}),e.YNc(2,Ude,2,2,"mat-option",19),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",i.chassis[i.iosNameForm.get("platform").value])}}function Vde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-checkbox",38),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).isEtherSwitchRouter=a}),e._uU(1," This is an EtherSwitch router "),e.qZA()}if(2&n){var i=e.oxw(2);e.Q6J("ngModel",i.isEtherSwitchRouter)}}function qde(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var Tj=function(){return{standalone:!0}};function jde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-select",41),e.NdJ("ngModelChange",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).networkAdaptersForTemplate[u]=s}),e.YNc(1,qde,2,2,"mat-option",19),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.MGl("placeholder","Slot ",i,""),e.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",e.DdM(4,Tj)),e.xp6(1),e.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosNameForm.get("platform").value][i])}}function zde(n,r){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,jde,2,5,"mat-select",40),e.qZA()),2&n){var t=r.$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value]&&i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value][t])}}var Wde=function(){return[0,1,2,3,4,5,6,7]};function Gde(n,r){1&n&&(e.TgZ(0,"div"),e.YNc(1,zde,2,1,"div",39),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngForOf",e.DdM(1,Wde)))}function Yde(n,r){if(1&n&&(e.TgZ(0,"mat-option",36),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Jde(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-select",41),e.NdJ("ngModelChange",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).networkModulesForTemplate[u]=s}),e.YNc(1,Yde,2,2,"mat-option",19),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.MGl("placeholder","WIC ",i,""),e.Q6J("ngModel",o.networkModulesForTemplate[i])("ngModelOptions",e.DdM(4,Tj)),e.xp6(1),e.Q6J("ngForOf",o.networkModules[o.iosNameForm.get("platform").value][i])}}function Qde(n,r){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Jde,2,5,"mat-select",40),e.qZA()),2&n){var t=r.$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",i.networkModules[i.iosNameForm.get("platform").value]&&i.networkModules[i.iosNameForm.get("platform").value][t])}}var Kde=function(){return[0,1,2,3]};function Xde(n,r){1&n&&(e.TgZ(0,"div"),e.YNc(1,Qde,2,1,"div",39),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngForOf",e.DdM(1,Kde)))}function $de(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",5),e.TgZ(1,"div",6),e.TgZ(2,"mat-vertical-stepper",7),e.TgZ(3,"mat-step",8),e.TgZ(4,"mat-radio-group",9),e.TgZ(5,"mat-radio-button",10),e.NdJ("click",function(){return e.CHM(t),e.oxw().setServerType("local")}),e._uU(6,"Run this IOS router locally"),e.qZA(),e.TgZ(7,"mat-radio-button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().setServerType("gns3 vm")}),e._uU(8,"Run this IOS router on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"mat-step",12),e.TgZ(10,"input",13,14),e.NdJ("change",function(a){return e.CHM(t),e.oxw().addImage(a)}),e.qZA(),e.TgZ(12,"button",15),e.NdJ("click",function(){return e.CHM(t),e.MAs(11).click()}),e._uU(13,"Click to add image"),e.qZA(),e._uU(14," or create from existing one "),e.TgZ(15,"form",16),e.TgZ(16,"mat-form-field",17),e.TgZ(17,"mat-select",18),e.NdJ("selectionChange",function(a){return e.CHM(t),e.oxw().onImageChosen(a)}),e.YNc(18,Fde,2,2,"mat-option",19),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"mat-step",20),e.TgZ(20,"form",16),e.TgZ(21,"mat-form-field",17),e._UZ(22,"input",21),e.qZA(),e.TgZ(23,"mat-form-field",17),e.TgZ(24,"mat-select",22),e.NdJ("selectionChange",function(a){return e.CHM(t),e.oxw().onPlatformChosen(a)}),e.YNc(25,Bde,2,2,"mat-option",19),e.qZA(),e.qZA(),e.YNc(26,Hde,3,1,"mat-form-field",23),e.qZA(),e.YNc(27,Vde,2,1,"mat-checkbox",24),e.qZA(),e.TgZ(28,"mat-step",25),e.TgZ(29,"form",16),e.TgZ(30,"mat-form-field",17),e._UZ(31,"input",26),e.TgZ(32,"span",27),e._uU(33,"MB"),e.qZA(),e.qZA(),e.TgZ(34,"mat-label"),e.TgZ(35,"a",28),e._uU(36,"Check for minimum and maximum RAM requirement"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(37,"mat-step",29),e.YNc(38,Gde,2,2,"div",30),e.qZA(),e.TgZ(39,"mat-step",31),e.YNc(40,Xde,2,2,"div",30),e.qZA(),e.TgZ(41,"mat-step",32),e.TgZ(42,"mat-form-field",17),e.TgZ(43,"input",33),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.idlepc=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",34),e.TgZ(45,"button",35),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(46,"Cancel"),e.qZA(),e.TgZ(47,"button",15),e.NdJ("click",function(){return e.CHM(t),e.oxw().addTemplate()}),e._uU(48,"Add template"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("linear",!0),e.xp6(1),e.Q6J("completed",i.isGns3VmChosen||i.isLocalComputerChosen),e.xp6(4),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("completed",i.iosImageForm.get("imageName").value),e.xp6(1),e.Q6J("uploader",i.uploader),e.xp6(5),e.Q6J("formGroup",i.iosImageForm),e.xp6(3),e.Q6J("ngForOf",i.iosImages),e.xp6(1),e.Q6J("completed",i.iosNameForm.get("templateName").value&&i.iosNameForm.get("platform").value&&i.iosNameForm.get("chassis").value),e.xp6(1),e.Q6J("formGroup",i.iosNameForm),e.xp6(5),e.Q6J("ngForOf",i.platforms),e.xp6(1),e.Q6J("ngIf",i.chassis[i.iosNameForm.get("platform").value]),e.xp6(1),e.Q6J("ngIf",i.platformsWithEtherSwitchRouterOption[i.iosTemplate.platform]),e.xp6(1),e.Q6J("completed",i.iosMemoryForm.get("memory").value),e.xp6(1),e.Q6J("formGroup",i.iosMemoryForm),e.xp6(6),e.s9C("href",i.ciscoUrl,e.LSH),e.xp6(3),e.Q6J("ngIf",i.selectedPlatform),e.xp6(2),e.Q6J("ngIf",i.iosNameForm.get("platform").value),e.xp6(3),e.Q6J("ngModel",i.iosTemplate.idlepc)}}var epe=function(){function n(r,t,i,o,a,s,u,p,m){this.route=r,this.serverService=t,this.iosService=i,this.toasterService=o,this.formBuilder=a,this.router=s,this.templateMocksService=u,this.iosConfigurationService=p,this.computeService=m,this.isEtherSwitchRouter=!1,this.networkAdaptersForTemplate=[],this.networkModulesForTemplate=[],this.iosImages=[],this.platforms=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.ciscoUrl="https://cfn.cloudapps.cisco.com/ITDIT/CFN/jsp/SearchBySoftware.jsp",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.iosTemplate=new oL,this.iosImageForm=this.formBuilder.group({imageName:new re.NI(null,[re.kI.required])}),this.iosNameForm=this.formBuilder.group({templateName:new re.NI(null,[re.kI.required]),platform:new re.NI(null,[re.kI.required]),chassis:new re.NI(null,[re.kI.required])}),this.iosMemoryForm=this.formBuilder.group({memory:new re.NI(null,[re.kI.required])})}return n.prototype.ngOnInit=function(){var r=this;this.uploader=new tv({}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){r.toasterService.error("An error occured: "+o)},this.uploader.onSuccessItem=function(i,o,a,s){r.getImages(),r.toasterService.success("Image uploaded")};var t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getImages(),r.templateMocksService.getIosTemplate().subscribe(function(o){r.iosTemplate=o,r.networkModules=r.iosConfigurationService.getNetworkModules(),r.networkAdaptersForPlatform=r.iosConfigurationService.getNetworkAdaptersForPlatform(),r.networkAdapters=r.iosConfigurationService.getNetworkAdapters(),r.platforms=r.iosConfigurationService.getAvailablePlatforms(),r.platformsWithEtherSwitchRouterOption=r.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),r.platformsWithChassis=r.iosConfigurationService.getPlatformsWithChassis(),r.chassis=r.iosConfigurationService.getChassis(),r.defaultRam=r.iosConfigurationService.getDefaultRamSettings()}),r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)})})},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.getImages=function(){var r=this;this.iosService.getImages(this.server).subscribe(function(t){r.iosImages=t})},n.prototype.addImage=function(r){var t=r.target.files[0].name.split("-")[0];this.iosNameForm.controls.templateName.setValue(t);var o=this.iosService.getImagePath(this.server,r.target.files[0].name);this.uploader.queue.forEach(function(s){return s.url=o});var a=this.uploader.queue[0];a.options.disableMultipart=!0,this.uploader.uploadItem(a)},n.prototype.addTemplate=function(){var r=this;!this.iosImageForm.invalid&&!this.iosMemoryForm.invalid&&this.iosNameForm.get("templateName").value&&this.iosNameForm.get("platform").value?(this.iosTemplate.template_id=(0,Ta.v4)(),this.iosTemplate.image=this.iosImageForm.get("imageName").value,this.iosTemplate.name=this.iosNameForm.get("templateName").value,this.iosTemplate.platform=this.iosNameForm.get("platform").value,this.chassis[this.iosNameForm.get("platform").value]&&(this.iosTemplate.chassis=this.iosNameForm.get("chassis").value),this.iosTemplate.ram=this.iosMemoryForm.get("memory").value,this.isEtherSwitchRouter&&(this.iosTemplate.symbol=":/symbols/multilayer_switch.svg",this.iosTemplate.category="switch"),this.networkAdaptersForTemplate.length>0&&this.completeAdaptersData(),this.networkModulesForTemplate.length>0&&this.completeModulesData(),this.iosTemplate.compute_id=this.isGns3VmChosen?"vm":"local",this.iosService.addTemplate(this.server,this.iosTemplate).subscribe(function(t){r.goBack()})):this.toasterService.error("Fill all required fields")},n.prototype.completeAdaptersData=function(){if(this.chassis[this.iosTemplate.platform]){if(Object.keys(this.networkAdapters[this.iosTemplate.chassis]))for(var r=0;r<Object.keys(this.networkAdapters[this.iosTemplate.chassis]).length;r++)this.networkAdaptersForTemplate[r]||(this.networkAdaptersForTemplate[r]="")}else if(this.networkAdaptersForPlatform[this.iosNameForm.get("platform").value])for(r=0;r<Object.keys(this.networkAdaptersForPlatform[this.iosNameForm.get("platform").value]).length;r++)this.networkAdaptersForTemplate[r]||(this.networkAdaptersForTemplate[r]="");this.networkAdaptersForTemplate[0]&&(this.iosTemplate.slot0=this.networkAdaptersForTemplate[0]),this.networkAdaptersForTemplate[1]&&(this.iosTemplate.slot1=this.networkAdaptersForTemplate[1]),this.networkAdaptersForTemplate[2]&&(this.iosTemplate.slot2=this.networkAdaptersForTemplate[2]),this.networkAdaptersForTemplate[3]&&(this.iosTemplate.slot3=this.networkAdaptersForTemplate[3]),this.networkAdaptersForTemplate[4]&&(this.iosTemplate.slot4=this.networkAdaptersForTemplate[4]),this.networkAdaptersForTemplate[5]&&(this.iosTemplate.slot5=this.networkAdaptersForTemplate[5]),this.networkAdaptersForTemplate[6]&&(this.iosTemplate.slot6=this.networkAdaptersForTemplate[6]),this.networkAdaptersForTemplate[7]&&(this.iosTemplate.slot7=this.networkAdaptersForTemplate[7])},n.prototype.completeModulesData=function(){if(Object.keys(this.networkModules[this.iosTemplate.platform]))for(var r=0;r<Object.keys(this.networkModules[this.iosTemplate.platform]).length;r++)this.networkModulesForTemplate[r]||(this.networkModulesForTemplate[r]="");this.networkModulesForTemplate[0]&&(this.iosTemplate.wic0=this.networkModulesForTemplate[0]),this.networkModulesForTemplate[1]&&(this.iosTemplate.wic1=this.networkModulesForTemplate[1]),this.networkModulesForTemplate[2]&&(this.iosTemplate.wic2=this.networkModulesForTemplate[2])},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","dynamips","templates"])},n.prototype.onImageChosen=function(){var r=this.iosImageForm.get("imageName").value.split("-")[0];this.iosNameForm.controls.templateName.setValue(r),"c3620"===r||"c3640"===r||"c3660"===r?(this.iosNameForm.controls.platform.setValue("c3600"),this.selectedPlatform="c3600"):(this.iosNameForm.controls.platform.setValue(r),this.selectedPlatform=r),this.iosNameForm.controls.chassis.setValue("c1700"===r?"1720":"c2600"===r?"2610":""),this.iosMemoryForm.controls.memory.setValue(this.defaultRam[r])},n.prototype.onPlatformChosen=function(){this.iosTemplate.chassis="",this.networkAdaptersForTemplate=[],this.networkModulesForTemplate=[]},n.prototype.onChassisChosen=function(){this.networkAdaptersForTemplate=[]},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(dv),e.Y36(Xn),e.Y36(re.qu),e.Y36(xr),e.Y36(lc),e.Y36(v2),e.Y36(uc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-ios-template"]],decls:6,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Server type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],["label","IOS image",3,"completed"],["type","file","accept",".bin, .image","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",3,"click"],[3,"formGroup"],[1,"form-field"],["placeholder","Image","formControlName","imageName",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["label","Name and platform",3,"completed"],["matInput","","type","text","formControlName","templateName","placeholder","Name"],["placeholder","Platform","formControlName","platform",3,"selectionChange"],["class","form-field",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["label","Memory",3,"completed"],["matInput","","type","number","formControlName","memory","value","defaultRam[iosNameForm.get('platform').value]","placeholder","Default RAM"],["matSuffix",""],[3,"href"],["label","Network adapters"],[4,"ngIf"],["label","WIC modules"],["label","Idle-PC"],["matInput","","type","text","placeholder","Idle-PC",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],[3,"value"],["placeholder","Chassis","formControlName","chassis",3,"selectionChange"],[3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New IOS router template"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,$de,49,18,"div",4),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.iosTemplate))},directives:[kt.O5,py,dy,hl,ml,bS,An,re._Y,re.JL,re.sg,Hn.KE,pi.gD,re.JJ,re.u,kt.sg,lr,re.Fj,re.wV,Hn.R9,Hn.hX,re.On,un.ey,Zo],styles:[".non-visible[_ngcontent-%COMP%]{display:none}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),tpe=function(){function n(r,t,i,o,a,s){this.route=r,this.serverService=t,this.iosService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.formGroup=this.formBuilder.group({templateName:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.iosService.getTemplate(r.server,i).subscribe(function(a){r.iosTemplate=a,r.templateName="Copy of "+r.iosTemplate.name})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","dynamips","templates"])},n.prototype.addTemplate=function(){var r=this;this.formGroup.invalid?this.toasterService.error("Fill all required fields"):(this.iosTemplate.template_id=(0,Ta.v4)(),this.iosTemplate.name=this.templateName,this.iosService.addTemplate(this.server,this.iosTemplate).subscribe(function(t){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(dv),e.Y36(Xn),e.Y36(xr),e.Y36(re.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-copy-ios-template"]],decls:15,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Copy IOS router template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"form",6),e.TgZ(8,"mat-form-field",7),e.TgZ(9,"input",8),e.NdJ("ngModelChange",function(a){return i.templateName=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.TgZ(11,"button",10),e.NdJ("click",function(){return i.goBack()}),e._uU(12,"Cancel"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return i.addTemplate()}),e._uU(14,"Copy template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("formGroup",i.formGroup),e.xp6(2),e.Q6J("ngModel",i.templateName))},directives:[yi,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function npe(n,r){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function rpe(n,r){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function ipe(n,r){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var yp=function(){return{standalone:!0}};function ope(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-select",41),e.NdJ("ngModelChange",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).networkAdaptersForTemplate[u]=s}),e.YNc(1,ipe,2,2,"mat-option",14),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.MGl("placeholder","Slot ",i,""),e.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",e.DdM(4,yp)),e.xp6(1),e.Q6J("ngForOf",o.networkAdapters[o.iosTemplate.chassis][i])}}function ape(n,r){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,ope,2,5,"mat-select",40),e.qZA()),2&n){var t=r.$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",i.networkAdapters[i.iosTemplate.chassis][t])}}var xj=function(){return[0,1,2,3,4,5,6,7]};function spe(n,r){1&n&&(e.TgZ(0,"div"),e.YNc(1,ape,2,1,"div",39),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngForOf",e.DdM(1,xj)))}function lpe(n,r){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function upe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-select",41),e.NdJ("ngModelChange",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).networkAdaptersForTemplate[u]=s}),e.YNc(1,lpe,2,2,"mat-option",14),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.MGl("placeholder","Slot ",i,""),e.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",e.DdM(4,yp)),e.xp6(1),e.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosTemplate.platform][i])}}function cpe(n,r){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,upe,2,5,"mat-select",40),e.qZA()),2&n){var t=r.$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosTemplate.platform][t])}}function dpe(n,r){1&n&&(e.TgZ(0,"div"),e.YNc(1,cpe,2,1,"div",39),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngForOf",e.DdM(1,xj)))}function ppe(n,r){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function fpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"mat-select",42),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).iosTemplate.wic0=a}),e.YNc(2,ppe,2,2,"mat-option",14),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.iosTemplate.wic0)("ngModelOptions",e.DdM(3,yp)),e.xp6(1),e.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][0])}}function hpe(n,r){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function mpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"mat-select",43),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).iosTemplate.wic1=a}),e.YNc(2,hpe,2,2,"mat-option",14),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.iosTemplate.wic1)("ngModelOptions",e.DdM(3,yp)),e.xp6(1),e.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][1])}}function vpe(n,r){if(1&n&&(e.TgZ(0,"mat-option",38),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function gpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"mat-select",44),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).iosTemplate.wic2=a}),e.YNc(2,vpe,2,2,"mat-option",14),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.iosTemplate.wic2)("ngModelOptions",e.DdM(3,yp)),e.xp6(1),e.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][2])}}function _pe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General settings "),e.qZA(),e.qZA(),e.TgZ(6,"form",7),e.TgZ(7,"mat-form-field",8),e.TgZ(8,"input",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",8),e.TgZ(10,"input",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-label"),e._uU(12),e.qZA(),e._UZ(13,"br"),e._UZ(14,"br"),e.TgZ(15,"mat-label"),e._uU(16),e.qZA(),e._UZ(17,"br"),e._UZ(18,"br"),e.TgZ(19,"mat-form-field",8),e.TgZ(20,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(21,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(22,"Choose symbol"),e.qZA(),e._UZ(23,"br"),e._UZ(24,"br"),e.TgZ(25,"mat-form-field",8),e.TgZ(26,"mat-select",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.category=a}),e.YNc(27,npe,2,2,"mat-option",14),e.qZA(),e.qZA(),e.TgZ(28,"mat-form-field",8),e.TgZ(29,"input",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.image=a}),e.qZA(),e.qZA(),e.TgZ(30,"mat-form-field",8),e.TgZ(31,"input",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.startup_config=a}),e.qZA(),e.qZA(),e.TgZ(32,"mat-form-field",8),e.TgZ(33,"input",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.private_config=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"mat-form-field",18),e.TgZ(35,"mat-select",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.console_type=a}),e.YNc(36,rpe,2,2,"mat-option",14),e.qZA(),e.qZA(),e.TgZ(37,"mat-checkbox",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.console_auto_start=a}),e._uU(38," Auto start console "),e.qZA(),e.qZA(),e.TgZ(39,"mat-expansion-panel"),e.TgZ(40,"mat-expansion-panel-header"),e.TgZ(41,"mat-panel-title"),e._uU(42," Memories and disks "),e.qZA(),e.qZA(),e.TgZ(43,"form",7),e.TgZ(44,"mat-form-field",8),e.TgZ(45,"input",21),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.ram=a}),e.qZA(),e.TgZ(46,"span",22),e._uU(47,"MB"),e.qZA(),e.qZA(),e.TgZ(48,"mat-form-field",8),e.TgZ(49,"input",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.nvram=a}),e.qZA(),e.TgZ(50,"span",22),e._uU(51,"MB"),e.qZA(),e.qZA(),e.TgZ(52,"mat-form-field",8),e.TgZ(53,"input",24),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.iomem=a}),e.qZA(),e.qZA(),e.TgZ(54,"mat-form-field",8),e.TgZ(55,"input",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.disk0=a}),e.qZA(),e.qZA(),e.TgZ(56,"mat-form-field",8),e.TgZ(57,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.disk1=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"mat-checkbox",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.auto_delete_disks=a}),e._uU(59," Automatically delete NVRAM and disk files "),e.qZA(),e.qZA(),e.TgZ(60,"mat-expansion-panel"),e.TgZ(61,"mat-expansion-panel-header"),e.TgZ(62,"mat-panel-title"),e._uU(63," Slots "),e.qZA(),e.qZA(),e.TgZ(64,"h6"),e._uU(65,"Adapters"),e.qZA(),e.YNc(66,spe,2,2,"div",27),e.YNc(67,dpe,2,2,"div",27),e._UZ(68,"br"),e._UZ(69,"br"),e.TgZ(70,"h6"),e._uU(71,"WICs"),e.qZA(),e.YNc(72,fpe,3,4,"div",27),e.YNc(73,mpe,3,4,"div",27),e.YNc(74,gpe,3,4,"div",27),e.qZA(),e.TgZ(75,"mat-expansion-panel"),e.TgZ(76,"mat-expansion-panel-header"),e.TgZ(77,"mat-panel-title"),e._uU(78," Advanced "),e.qZA(),e.qZA(),e.TgZ(79,"form",7),e.TgZ(80,"mat-form-field",8),e.TgZ(81,"input",28),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.system_id=a}),e.qZA(),e.qZA(),e.TgZ(82,"mat-form-field",8),e.TgZ(83,"input",29),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.mac_addr=a}),e.qZA(),e.qZA(),e.TgZ(84,"mat-form-field",8),e.TgZ(85,"input",30),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.idlepc=a}),e.qZA(),e.qZA(),e.TgZ(86,"mat-form-field",8),e.TgZ(87,"input",31),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.idlemax=a}),e.qZA(),e.qZA(),e.TgZ(88,"mat-form-field",8),e.TgZ(89,"input",32),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.idlesleep=a}),e.qZA(),e.qZA(),e.TgZ(90,"mat-form-field",8),e.TgZ(91,"input",33),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.exec_area=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(92,"mat-checkbox",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.mmap=a}),e._uU(93," Enable mmap support "),e.qZA(),e._UZ(94,"br"),e._UZ(95,"br"),e.TgZ(96,"mat-checkbox",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.sparsemem=a}),e._uU(97," Enable sparse memory supoport "),e.qZA(),e.qZA(),e.TgZ(98,"mat-expansion-panel"),e.TgZ(99,"mat-expansion-panel-header"),e.TgZ(100,"mat-panel-title"),e._uU(101," Usage "),e.qZA(),e.qZA(),e.TgZ(102,"mat-form-field",8),e.TgZ(103,"textarea",34),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iosTemplate.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(104,"div",35),e.TgZ(105,"button",36),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(106,"Cancel"),e.qZA(),e.TgZ(107,"button",37),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(108,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(6),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.name),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.default_name_format),e.xp6(2),e.hij("Platform - ",i.iosTemplate.platform,""),e.xp6(4),e.hij("Chassis - ",i.iosTemplate.chassis,""),e.xp6(4),e.Q6J("ngModel",i.iosTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(40,yp))("ngModel",i.iosTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.image),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.startup_config),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(41,yp))("ngModel",i.iosTemplate.private_config),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModel",i.iosTemplate.console_auto_start),e.xp6(6),e.Q6J("formGroup",i.memoryForm),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.ram),e.xp6(4),e.Q6J("ngModel",i.iosTemplate.nvram),e.xp6(4),e.Q6J("ngModel",i.iosTemplate.iomem),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.disk0),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.disk1),e.xp6(1),e.Q6J("ngModel",i.iosTemplate.auto_delete_disks),e.xp6(8),e.Q6J("ngIf",i.iosTemplate.chassis&&i.chassis[i.iosTemplate.platform]),e.xp6(1),e.Q6J("ngIf",i.iosTemplate.platform&&!i.chassis[i.iosTemplate.platform]),e.xp6(5),e.Q6J("ngIf",i.iosTemplate.wic0||""===i.iosTemplate.wic0),e.xp6(1),e.Q6J("ngIf",i.iosTemplate.wic1||""===i.iosTemplate.wic1),e.xp6(1),e.Q6J("ngIf",i.iosTemplate.wic2||""===i.iosTemplate.wic2),e.xp6(5),e.Q6J("formGroup",i.advancedForm),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.system_id),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(42,yp))("ngModel",i.iosTemplate.mac_addr),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(43,yp))("ngModel",i.iosTemplate.idlepc),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.idlemax),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.idlesleep),e.xp6(2),e.Q6J("ngModel",i.iosTemplate.exec_area),e.xp6(1),e.Q6J("ngModel",i.iosTemplate.mmap),e.xp6(4),e.Q6J("ngModel",i.iosTemplate.sparsemem),e.xp6(7),e.Q6J("ngModel",i.iosTemplate.usage)}}function ype(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",45),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.iosTemplate.symbol)}}var bpe=function(n){return{shadowed:n}},Cpe=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.iosService=i,this.toasterService=o,this.formBuilder=a,this.iosConfigurationService=s,this.router=u,this.isSymbolSelectionOpened=!1,this.networkAdaptersForTemplate=[],this.platforms=[],this.consoleTypes=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.generalSettingsForm=this.formBuilder.group({templateName:new re.NI("",re.kI.required),defaultName:new re.NI("",re.kI.required),symbol:new re.NI("",re.kI.required),path:new re.NI("",re.kI.required),initialConfig:new re.NI("",re.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new re.NI("",re.kI.required),nvram:new re.NI("",re.kI.required),iomemory:new re.NI("",re.kI.required),disk0:new re.NI("",re.kI.required),disk1:new re.NI("",re.kI.required)}),this.advancedForm=this.formBuilder.group({systemId:new re.NI("",re.kI.required),idlemax:new re.NI("",re.kI.required),idlesleep:new re.NI("",re.kI.required),execarea:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.iosService.getTemplate(r.server,i).subscribe(function(a){r.iosTemplate=a,r.fillAdaptersData()})})},n.prototype.getConfiguration=function(){this.networkModules=this.iosConfigurationService.getNetworkModules(),this.networkAdaptersForPlatform=this.iosConfigurationService.getNetworkAdaptersForPlatform(),this.networkAdapters=this.iosConfigurationService.getNetworkAdapters(),this.platforms=this.iosConfigurationService.getAvailablePlatforms(),this.platformsWithEtherSwitchRouterOption=this.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),this.platformsWithChassis=this.iosConfigurationService.getPlatformsWithChassis(),this.chassis=this.iosConfigurationService.getChassis(),this.defaultRam=this.iosConfigurationService.getDefaultRamSettings(),this.consoleTypes=this.iosConfigurationService.getConsoleTypes()},n.prototype.fillAdaptersData=function(){this.iosTemplate.slot0&&(this.networkAdaptersForTemplate[0]=this.iosTemplate.slot0),this.iosTemplate.slot1&&(this.networkAdaptersForTemplate[1]=this.iosTemplate.slot1),this.iosTemplate.slot2&&(this.networkAdaptersForTemplate[2]=this.iosTemplate.slot2),this.iosTemplate.slot3&&(this.networkAdaptersForTemplate[3]=this.iosTemplate.slot3),this.iosTemplate.slot4&&(this.networkAdaptersForTemplate[4]=this.iosTemplate.slot4),this.iosTemplate.slot5&&(this.networkAdaptersForTemplate[5]=this.iosTemplate.slot5),this.iosTemplate.slot6&&(this.networkAdaptersForTemplate[6]=this.iosTemplate.slot6),this.iosTemplate.slot7&&(this.networkAdaptersForTemplate[7]=this.iosTemplate.slot7)},n.prototype.completeAdaptersData=function(){this.networkAdaptersForTemplate[0]&&(this.iosTemplate.slot0=this.networkAdaptersForTemplate[0]),this.networkAdaptersForTemplate[1]&&(this.iosTemplate.slot1=this.networkAdaptersForTemplate[1]),this.networkAdaptersForTemplate[2]&&(this.iosTemplate.slot2=this.networkAdaptersForTemplate[2]),this.networkAdaptersForTemplate[3]&&(this.iosTemplate.slot3=this.networkAdaptersForTemplate[3]),this.networkAdaptersForTemplate[4]&&(this.iosTemplate.slot4=this.networkAdaptersForTemplate[4]),this.networkAdaptersForTemplate[5]&&(this.iosTemplate.slot5=this.networkAdaptersForTemplate[5]),this.networkAdaptersForTemplate[6]&&(this.iosTemplate.slot6=this.networkAdaptersForTemplate[6]),this.networkAdaptersForTemplate[7]&&(this.iosTemplate.slot7=this.networkAdaptersForTemplate[7])},n.prototype.onSave=function(){var r=this;this.generalSettingsForm.invalid||this.memoryForm.invalid||this.advancedForm.invalid?this.toasterService.error("Fill all required fields"):(this.completeAdaptersData(),this.iosService.saveTemplate(this.server,this.iosTemplate).subscribe(function(t){r.toasterService.success("Changes saved")}))},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","dynamips","templates"])},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.iosTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(dv),e.Y36(Xn),e.Y36(re.qu),e.Y36(v2),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ios-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text","formControlName","path","placeholder","IOS image path",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","initialConfig","placeholder","Initial startup-config",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Initial private-config",3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","ram","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","formControlName","nvram","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","iomemory","placeholder","I/O memory",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","disk0","placeholder","PCMCIA disk0",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","disk1","placeholder","PCMCIA disk1",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","formControlName","systemId","type","text","placeholder","System ID",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Base MAC",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text","placeholder","Idle-PC",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","idlemax","type","number","placeholder","Idlemax",3,"ngModel","ngModelChange"],["matInput","","formControlName","idlesleep","type","number","placeholder","Idlesleep",3,"ngModel","ngModelChange"],["matInput","","formControlName","execarea","type","number","placeholder","Exec area",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 0",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 1",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 2",3,"ngModel","ngModelOptions","ngModelChange"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Dynamips IOS Router configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,_pe,109,44,"div",4),e.qZA(),e.YNc(6,ype,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,bpe,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.iosTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.iosTemplate))},directives:[kt.mk,kt.O5,id,oc,ac,rd,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,Hn.hX,An,pi.gD,re.On,kt.sg,Zo,re.wV,Hn.R9,un.ey,ad],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Spe(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences")}}function Tpe(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add IOS router template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/dynamips/templates/addtemplate")}}function xpe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function wpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.TgZ(13,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).copyTemplate(u)}),e.TgZ(14,"mat-icon"),e._uU(15,"content_copy"),e.qZA(),e.TgZ(16,"span"),e._uU(17,"Copy"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function Epe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,wpe,18,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.iosTemplates)}}function kpe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,Epe,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var Mpe=function(){function n(r,t,i,o){this.route=r,this.serverService=t,this.iosService=i,this.router=o,this.iosTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.iosService.getTemplates(this.server).subscribe(function(t){r.iosTemplates=t.filter(function(i){return"dynamips"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.prototype.copyTemplate=function(r){this.router.navigate(["/server",this.server.id,"preferences","dynamips","templates",r.template_id,"copy"])},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(dv),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ios-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(xa,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"IOS router templates"),e.qZA(),e.YNc(5,Spe,2,1,"button",4),e.YNc(6,Tpe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,xpe,1,0,"app-empty-templates-list",6),e.YNc(8,kpe,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.iosTemplates.length),e.xp6(1),e.Q6J("ngIf",i.iosTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[kt.O5,xa,An,ca,ld,Du,kt.sg,Ss,Qa,sr,Ts,Nr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),wj=function(){function n(r){this.httpServer=r}return n.prototype.getGns3vm=function(r){return this.httpServer.get(r,"/gns3vm")},n.prototype.updateGns3vm=function(r,t){return this.httpServer.put(r,"/gns3vm",t)},n.prototype.getGns3vmEngines=function(r){return this.httpServer.get(r,"/gns3vm/engines")},n.prototype.getVms=function(r,t){return this.httpServer.get(r,"/gns3vm/engines/"+t+"/vms")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function Ape(n,r){if(1&n&&(e.TgZ(0,"mat-option",18),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.engine_id),e.xp6(1),e.hij(" ",t.name," ")}}function Dpe(n,r){if(1&n&&(e.TgZ(0,"mat-option",18),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.vmname),e.xp6(1),e.hij(" ",t.vmname," ")}}var FS=function(){return{standalone:!0}};function Ope(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-checkbox",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).gns3vm.headless=a}),e._uU(1," Run the VM in headless mode "),e.qZA()}if(2&n){var i=e.oxw(2);e.Q6J("ngModelOptions",e.DdM(2,FS))("ngModel",i.gns3vm.headless)}}function Ppe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",21),e.TgZ(1,"input",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(3).port=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(3);e.xp6(1),e.Q6J("ngModelOptions",e.DdM(2,FS))("ngModel",i.port)}}function Ipe(n,r){if(1&n&&(e.TgZ(0,"form",19),e.YNc(1,Ppe,2,3,"mat-form-field",20),e.TgZ(2,"mat-form-field",21),e._UZ(3,"input",22),e.TgZ(4,"span",23),e._uU(5,"MB"),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",21),e._UZ(7,"input",24),e.qZA(),e.qZA()),2&n){var t=e.oxw(2);e.Q6J("formGroup",t.vmForm),e.xp6(1),e.Q6J("ngIf","virtualbox"===t.gns3vm.engine||"vmware"===t.gns3vm.engine)}}function Rpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-radio-group",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).gns3vm.when_exit=a}),e.TgZ(1,"mat-radio-button",27),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setCloseAction("keep")}),e._uU(2,"keep the GNS3 VM running"),e.qZA(),e.TgZ(3,"mat-radio-button",28),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setCloseAction("suspend")}),e._uU(4,"suspend the GNS3 VM"),e.qZA(),e.TgZ(5,"mat-radio-button",29),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setCloseAction("stop")}),e._uU(6,"stop the GNS3 VM"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.Q6J("ngModel",i.gns3vm.when_exit)}}function Npe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-card",9),e.TgZ(1,"mat-checkbox",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().gns3vm.enable=a}),e._uU(2," Enable the GNS3 VM "),e.qZA(),e.TgZ(3,"mat-form-field",11),e.TgZ(4,"mat-select",12),e.NdJ("selectionChange",function(a){return e.CHM(t),e.oxw().changeVmEngine(a)})("ngModelChange",function(a){return e.CHM(t),e.oxw().gns3vm.engine=a}),e.YNc(5,Ape,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",11),e.TgZ(7,"mat-select",14),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().gns3vm.vmname=a}),e.YNc(8,Dpe,2,2,"mat-option",13),e.qZA(),e.qZA(),e.YNc(9,Ope,2,3,"mat-checkbox",15),e.YNc(10,Ipe,8,2,"form",16),e.YNc(11,Rpe,7,1,"mat-radio-group",17),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModelOptions",e.DdM(11,FS))("ngModel",i.gns3vm.enable),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(12,FS))("ngModel",i.gns3vm.engine),e.xp6(1),e.Q6J("ngForOf",i.vmEngines),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(13,FS))("ngModel",i.gns3vm.vmname),e.xp6(1),e.Q6J("ngForOf",i.vms),e.xp6(1),e.Q6J("ngIf","virtualbox"===i.gns3vm.engine||"vmware"===i.gns3vm.engine),e.xp6(1),e.Q6J("ngIf","remote"!==i.gns3vm.engine),e.xp6(1),e.Q6J("ngIf","remote"!==i.gns3vm.engine)}}var Zpe=function(){function n(r,t,i,o,a,s){this.route=r,this.serverService=t,this.gns3vmService=i,this.router=o,this.formBuilder=a,this.toasterService=s,this.vms=[],this.vmForm=this.formBuilder.group({ram:new re.NI(null,[re.kI.required]),vcpus:new re.NI(null,[re.kI.required])})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.gns3vmService.getGns3vm(r.server).subscribe(function(o){r.gns3vm=o,r.vmForm.controls.ram.setValue(r.gns3vm.ram),r.vmForm.controls.vcpus.setValue(r.gns3vm.vcpus),r.gns3vm.port&&(r.port=r.gns3vm.port),r.gns3vmService.getGns3vmEngines(r.server).subscribe(function(a){r.vmEngines=a}),r.gns3vmService.getVms(r.server,r.gns3vm.engine).subscribe(function(a){r.vms=a})})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences"])},n.prototype.setCloseAction=function(r){this.gns3vm.when_exit=r},n.prototype.changeVmEngine=function(r){var t=this;this.gns3vmService.getVms(this.server,r.value).subscribe(function(i){t.vms=i},function(i){})},n.prototype.save=function(){var r=this;this.vmForm.valid&&this.gns3vm.vmname||"remote"===this.gns3vm.engine&&this.gns3vm.vmname?(this.gns3vm.ram=this.vmForm.get("ram").value,this.gns3vm.vcpus=this.vmForm.get("vcpus").value,this.port&&(this.gns3vm.port=this.port),this.gns3vmService.updateGns3vm(this.server,this.gns3vm).subscribe(function(){r.toasterService.success("GNS3 VM updated.")}),this.goBack()):this.toasterService.error("Fill all required fields with correct values.")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(wj),e.Y36(xr),e.Y36(re.qu),e.Y36(Xn))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-gns3vm"]],decls:12,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],["class","matCard",4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[1,"matCard"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Virtualization engine",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","VM name",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[3,"formGroup",4,"ngIf"],["aria-label","Actions when closing GNS3","class","radio-selection",3,"ngModel","ngModelChange",4,"ngIf"],[3,"value"],[3,"formGroup"],["class","form-field",4,"ngIf"],[1,"form-field"],["matInput","","formControlName","ram","type","number","placeholder","RAM"],["matSuffix",""],["matInput","","formControlName","vcpus","type","number","placeholder","vCPUs"],["matInput","","type","number","placeholder","Port",3,"ngModelOptions","ngModel","ngModelChange"],["aria-label","Actions when closing GNS3",1,"radio-selection",3,"ngModel","ngModelChange"],["value","keep",3,"click"],["value","suspend",3,"click"],["value","stop",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"GNS3 VM preferences"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.YNc(6,Npe,12,14,"mat-card",5),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.goBack()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.save()}),e._uU(11,"Save"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("ngIf",i.gns3vm))},directives:[kt.O5,An,yi,Zo,re.JJ,re.On,Hn.KE,pi.gD,kt.sg,un.ey,re._Y,re.JL,re.sg,lr,re.Fj,re.wV,re.u,Hn.R9,hl,ml],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.radio-selection[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),n}(),aL=function(){return function(){}}(),pv=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.getImages=function(r){return this.httpServer.get(r,"/compute/iou/images")},n.prototype.getImagePath=function(r,t){return r.protocol+"//"+r.host+":"+r.port+"/v2/compute/iou/images/"+t},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function Lpe(n,r){if(1&n&&(e.TgZ(0,"mat-option",24),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Fpe(n,r){if(1&n&&(e.TgZ(0,"mat-option",24),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.path),e.xp6(1),e.hij(" ",t.path," ")}}var Ej=function(){return{standalone:!0}};function Bpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",13),e.TgZ(1,"mat-select",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.path=a}),e.YNc(2,Fpe,2,2,"mat-option",18),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModel",i.iouTemplate.path)("ngModelOptions",e.DdM(3,Ej)),e.xp6(1),e.Q6J("ngForOf",i.iouImages)}}function Upe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"input",26,27),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadImageFile(a)}),e.qZA(),e.TgZ(3,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(2).click()}),e._uU(4,"Browse"),e.qZA(),e.TgZ(5,"mat-form-field",29),e._UZ(6,"input",30),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("uploader",i.uploader)}}var Hpe=function(){function n(r,t,i,o,a,s,u,p){this.route=r,this.serverService=t,this.iouService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=u,this.computeService=p,this.isRemoteComputerChosen=!1,this.newImageSelected=!1,this.types=["L2 image","L3 image"],this.iouImages=[],this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.iouTemplate=new aL,this.templateNameForm=this.formBuilder.group({templateName:new re.NI(null,re.kI.required)}),this.imageForm=this.formBuilder.group({imageName:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.uploader=new tv({}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){r.toasterService.error("An error occured: "+o)},this.uploader.onSuccessItem=function(i,o,a,s){r.getImages(),r.toasterService.success("Image uploaded")};var t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getImages(),r.templateMocksService.getIouTemplate().subscribe(function(o){r.iouTemplate=o}),r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)})})},n.prototype.getImages=function(){var r=this;this.iouService.getImages(this.server).subscribe(function(t){r.iouImages=t})},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.setDiskImage=function(r){this.newImageSelected="newImage"===r},n.prototype.uploadImageFile=function(r){var t=r.target.files[0].name;this.imageForm.controls.imageName.setValue(t);var i=this.iouService.getImagePath(this.server,t);this.uploader.queue.forEach(function(a){return a.url=i});var o=this.uploader.queue[0];o.options.disableMultipart=!0,this.uploader.uploadItem(o)},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","iou","templates"])},n.prototype.addTemplate=function(){var r=this;!this.templateNameForm.invalid&&(this.newImageSelected&&!this.imageForm.invalid||!this.newImageSelected&&this.iouTemplate.path)?(this.iouTemplate.template_id=(0,Ta.v4)(),this.iouTemplate.name=this.templateNameForm.get("templateName").value,this.newImageSelected&&(this.iouTemplate.path=this.imageForm.get("imageName").value),this.iouTemplate.compute_id=this.isGns3VmChosen?"vm":"local","L2 image"===this.selectedType?(this.iouTemplate.ethernet_adapters=4,this.iouTemplate.serial_adapters=0):"L3 image"===this.selectedType&&(this.iouTemplate.ethernet_adapters=2,this.iouTemplate.serial_adapters=2),this.iouService.addTemplate(this.server,this.iouTemplate).subscribe(function(t){r.goBack()})):this.toasterService.error("Fill all required fields")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(pv),e.Y36(Xn),e.Y36(xr),e.Y36(re.qu),e.Y36(lc),e.Y36(uc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-iou-template"]],decls:35,vars:12,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Server type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],["label","Name",3,"completed"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Name","type","text","formControlName","templateName"],["label","Image"],["value","2",1,"radio-button",3,"click"],["placeholder","Type",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["class","form-field",4,"ngIf"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","IOU image",3,"ngModel","ngModelOptions","ngModelChange"],["type","file","accept",".bin","ng2FileSelect","",1,"nonvisible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","imageName","placeholder","IOU image"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New IOU device template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"mat-vertical-stepper",6),e.TgZ(8,"mat-step",7),e.TgZ(9,"mat-radio-group",8),e.TgZ(10,"mat-radio-button",9),e.NdJ("click",function(){return i.setServerType("local")}),e._uU(11,"Run this IOU device locally"),e.qZA(),e.TgZ(12,"mat-radio-button",10),e.NdJ("click",function(){return i.setServerType("gns3 vm")}),e._uU(13,"Run this IOU device on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"mat-step",11),e.TgZ(15,"form",12),e.TgZ(16,"mat-form-field",13),e._UZ(17,"input",14),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"mat-step",15),e.TgZ(19,"form",12),e.TgZ(20,"mat-radio-group",8),e.TgZ(21,"mat-radio-button",9),e.NdJ("click",function(){return i.setDiskImage("existingImage")}),e._uU(22,"Existing image"),e.qZA(),e.TgZ(23,"mat-radio-button",16),e.NdJ("click",function(){return i.setDiskImage("newImage")}),e._uU(24,"New image"),e.qZA(),e.qZA(),e.TgZ(25,"mat-form-field",13),e.TgZ(26,"mat-select",17),e.NdJ("ngModelChange",function(a){return i.selectedType=a}),e.YNc(27,Lpe,2,2,"mat-option",18),e.qZA(),e.qZA(),e.YNc(28,Bpe,3,4,"mat-form-field",19),e.YNc(29,Upe,7,1,"div",20),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"div",21),e.TgZ(31,"button",22),e.NdJ("click",function(){return i.goBack()}),e._uU(32,"Cancel"),e.qZA(),e.TgZ(33,"button",23),e.NdJ("click",function(){return i.addTemplate()}),e._uU(34,"Add template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("linear",!0),e.xp6(1),e.Q6J("completed",i.isGns3VmChosen||i.isLocalComputerChosen),e.xp6(4),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("completed",i.templateNameForm.get("templateName").value),e.xp6(1),e.Q6J("formGroup",i.templateNameForm),e.xp6(4),e.Q6J("formGroup",i.imageForm),e.xp6(7),e.Q6J("ngModel",i.selectedType)("ngModelOptions",e.DdM(11,Ej)),e.xp6(1),e.Q6J("ngForOf",i.types),e.xp6(1),e.Q6J("ngIf",!i.newImageSelected),e.xp6(1),e.Q6J("ngIf",i.newImageSelected))},directives:[py,dy,hl,ml,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,pi.gD,re.On,kt.sg,kt.O5,An,un.ey,bS],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),Vpe=function(){function n(r,t,i,o,a,s){this.route=r,this.serverService=t,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.qemuService.getTemplate(r.server,i).subscribe(function(a){r.iouTemplate=a,r.templateName="Copy of "+r.iouTemplate.name})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","iou","templates"])},n.prototype.addTemplate=function(){var r=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.iouTemplate.template_id=(0,Ta.v4)(),this.iouTemplate.name=this.templateName,this.qemuService.addTemplate(this.server,this.iouTemplate).subscribe(function(t){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(pv),e.Y36(Xn),e.Y36(xr),e.Y36(re.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-copy-iou-template"]],decls:15,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Copy IOU device template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"form",6),e.TgZ(8,"mat-form-field",7),e.TgZ(9,"input",8),e.NdJ("ngModelChange",function(a){return i.templateName=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.TgZ(11,"button",10),e.NdJ("click",function(){return i.goBack()}),e._uU(12,"Cancel"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return i.addTemplate()}),e._uU(14,"Copy template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("formGroup",i.templateNameForm),e.xp6(2),e.Q6J("ngModel",i.templateName))},directives:[yi,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),sL=function(){function n(){}return n.prototype.getConsoleTypes=function(){return["telnet","none"]},n.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function qpe(n,r){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function jpe(n,r){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function zpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",2),e.TgZ(1,"input",32),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).iouTemplate.ram=a}),e.qZA(),e.TgZ(2,"span",33),e._uU(3,"MB"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.iouTemplate.ram)}}function Wpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",2),e.TgZ(1,"input",34),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).iouTemplate.nvram=a}),e.qZA(),e.TgZ(2,"span",33),e._uU(3,"KB"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.iouTemplate.nvram)}}var kj=function(){return{standalone:!0}};function Gpe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General settings "),e.qZA(),e.qZA(),e.TgZ(6,"form",7),e.TgZ(7,"mat-form-field",2),e.TgZ(8,"input",8),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",2),e.TgZ(10,"input",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-form-field",2),e.TgZ(12,"input",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(14,"Choose symbol"),e.qZA(),e._UZ(15,"br"),e._UZ(16,"br"),e.TgZ(17,"mat-form-field",2),e.TgZ(18,"mat-select",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.category=a}),e.YNc(19,qpe,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(20,"input",14,15),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadImageFile(a)}),e.qZA(),e.TgZ(22,"button",16),e.NdJ("click",function(){return e.CHM(t),e.MAs(21).click()}),e._uU(23,"Browse"),e.qZA(),e.TgZ(24,"mat-form-field",17),e.TgZ(25,"input",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.path=a}),e.qZA(),e.qZA(),e.TgZ(26,"mat-form-field",2),e.TgZ(27,"input",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.startup_config=a}),e.qZA(),e.qZA(),e.TgZ(28,"mat-form-field",2),e.TgZ(29,"input",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.private_config=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"mat-form-field",21),e.TgZ(31,"mat-select",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.console_type=a}),e.YNc(32,jpe,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(33,"mat-checkbox",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.console_auto_start=a}),e._uU(34," Auto start console "),e.qZA(),e._UZ(35,"br"),e.TgZ(36,"mat-checkbox",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.l1_keepalives=a}),e._uU(37," Enable layer 1 keepalive messages (non-functional) "),e.qZA(),e._UZ(38,"br"),e.TgZ(39,"mat-checkbox",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.use_default_iou_values=a}),e._uU(40," Use default IOU values for memories "),e.qZA(),e.YNc(41,zpe,4,1,"mat-form-field",24),e.YNc(42,Wpe,4,1,"mat-form-field",24),e.qZA(),e.TgZ(43,"mat-expansion-panel"),e.TgZ(44,"mat-expansion-panel-header"),e.TgZ(45,"mat-panel-title"),e._uU(46," Network "),e.qZA(),e.qZA(),e.TgZ(47,"form",7),e.TgZ(48,"mat-form-field",2),e.TgZ(49,"input",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.ethernet_adapters=a}),e.qZA(),e.qZA(),e.TgZ(50,"mat-form-field",2),e.TgZ(51,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.serial_adapters=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(52,"mat-expansion-panel"),e.TgZ(53,"mat-expansion-panel-header"),e.TgZ(54,"mat-panel-title"),e._uU(55," Usage "),e.qZA(),e.qZA(),e.TgZ(56,"mat-form-field",2),e.TgZ(57,"textarea",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().iouTemplate.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(58,"div",28),e.TgZ(59,"button",29),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(60,"Cancel"),e.qZA(),e.TgZ(61,"button",30),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(62,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(6),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.iouTemplate.name),e.xp6(2),e.Q6J("ngModel",i.iouTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.iouTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(22,kj))("ngModel",i.iouTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(6),e.Q6J("ngModel",i.iouTemplate.path),e.xp6(2),e.Q6J("ngModel",i.iouTemplate.startup_config),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(23,kj))("ngModel",i.iouTemplate.private_config),e.xp6(2),e.Q6J("ngModel",i.iouTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModel",i.iouTemplate.console_auto_start),e.xp6(3),e.Q6J("ngModel",i.iouTemplate.l1_keepalives),e.xp6(3),e.Q6J("ngModel",i.iouTemplate.use_default_iou_values),e.xp6(2),e.Q6J("ngIf",!i.iouTemplate.use_default_iou_values),e.xp6(1),e.Q6J("ngIf",!i.iouTemplate.use_default_iou_values),e.xp6(5),e.Q6J("formGroup",i.networkForm),e.xp6(2),e.Q6J("ngModel",i.iouTemplate.ethernet_adapters),e.xp6(2),e.Q6J("ngModel",i.iouTemplate.serial_adapters),e.xp6(6),e.Q6J("ngModel",i.iouTemplate.usage)}}function Ype(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",35),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.iouTemplate.symbol)}}var Jpe=function(n){return{shadowed:n}},Qpe=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.iouService=i,this.toasterService=o,this.configurationService=a,this.router=s,this.formBuilder=u,this.isSymbolSelectionOpened=!1,this.defaultSettings=!0,this.consoleTypes=[],this.consoleResolutions=[],this.categories=[],this.generalSettingsForm=this.formBuilder.group({templateName:new re.NI("",re.kI.required),defaultName:new re.NI("",re.kI.required),symbol:new re.NI("",re.kI.required),path:new re.NI("",re.kI.required),initialConfig:new re.NI("",re.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new re.NI("",re.kI.required),serialAdapters:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.iouService.getTemplate(r.server,i).subscribe(function(a){r.iouTemplate=a})})},n.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.categories=this.configurationService.getCategories()},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","iou","templates"])},n.prototype.onSave=function(){var r=this;this.generalSettingsForm.invalid||this.networkForm.invalid?this.toasterService.error("Fill all required fields"):this.iouService.saveTemplate(this.server,this.iouTemplate).subscribe(function(){r.toasterService.success("Changes saved")})},n.prototype.uploadImageFile=function(r){this.iouTemplate.path=r.target.files[0].name},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.iouTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(pv),e.Y36(Xn),e.Y36(sL),e.Y36(xr),e.Y36(re.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-iou-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"form-field"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],["matInput","","formControlName","templateName","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","formControlName","defaultName","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","formControlName","symbol","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["type","file","accept",".bin","ngDefaultControl","",1,"nonvisible",3,"change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","formControlName","path","type","text","placeholder","IOU image path",3,"ngModel","ngModelChange"],["matInput","","formControlName","initialConfig","type","text","placeholder","Startup config",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Private config",3,"ngModelOptions","ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["matInput","","formControlName","ethernetAdapters","type","number","placeholder","Ethernet adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","serialAdapters","type","number","placeholder","Serial adapters",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","type","number","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","NVRAM size",3,"ngModel","ngModelChange"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"IOU device configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,Gpe,63,24,"div",4),e.qZA(),e.YNc(6,Ype,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,Jpe,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.iouTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.iouTemplate))},directives:[kt.mk,kt.O5,id,oc,ac,rd,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,An,pi.gD,re.On,kt.sg,Zo,re.wV,un.ey,Hn.R9,ad],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Kpe(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences")}}function Xpe(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add IOU device template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/iou/addtemplate")}}function $pe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function efe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.TgZ(13,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).copyTemplate(u)}),e.TgZ(14,"mat-icon"),e._uU(15,"content_copy"),e.qZA(),e.TgZ(16,"span"),e._uU(17,"Copy"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function tfe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,efe,18,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.iouTemplates)}}function nfe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,tfe,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var rfe=function(){function n(r,t,i,o){this.route=r,this.serverService=t,this.iouService=i,this.router=o,this.iouTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.iouService.getTemplates(this.server).subscribe(function(t){r.iouTemplates=t.filter(function(i){return"iou"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.prototype.copyTemplate=function(r){this.router.navigate(["/server",this.server.id,"preferences","iou","templates",r.template_id,"copy"])},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(pv),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-iou-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(xa,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"IOU device templates"),e.qZA(),e.YNc(5,Kpe,2,1,"button",4),e.YNc(6,Xpe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,$pe,1,0,"app-empty-templates-list",6),e.YNc(8,nfe,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.iouTemplates.length),e.xp6(1),e.Q6J("ngIf",i.iouTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[kt.O5,xa,An,ca,ld,Du,kt.sg,Ss,Qa,sr,Ts,Nr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),ife=function(){function n(r){this.route=r,this.serverId=""}return n.prototype.ngOnInit=function(){this.serverId=this.route.snapshot.paramMap.get("server_id")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-preferences"]],decls:26,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],[3,"routerLink"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Preferences"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"mat-nav-list"),e.TgZ(8,"mat-list-item",6),e._uU(9," GNS3 VM "),e.qZA(),e.TgZ(10,"mat-list-item",6),e._uU(11," Built-in "),e.qZA(),e.TgZ(12,"mat-list-item",6),e._uU(13," Dynamips "),e.qZA(),e.TgZ(14,"mat-list-item",6),e._uU(15," IOS on Unix "),e.qZA(),e.TgZ(16,"mat-list-item",6),e._uU(17," VPCS "),e.qZA(),e.TgZ(18,"mat-list-item",6),e._uU(19," QEMU "),e.qZA(),e.TgZ(20,"mat-list-item",6),e._uU(21," VirtualBox "),e.qZA(),e.TgZ(22,"mat-list-item",6),e._uU(23," VMware "),e.qZA(),e.TgZ(24,"mat-list-item",6),e._uU(25," Docker "),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.MGl("routerLink","/server/",i.serverId,"/preferences/gns3vm"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/builtin"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/dynamips/templates"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/iou/templates"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/vpcs/templates"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/qemu/templates"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/virtualbox/templates"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/vmware/templates"),e.xp6(2),e.MGl("routerLink","/server/",i.serverId,"/preferences/docker/templates"))},directives:[Du,Ss,ca],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),lL=function(){return function(){}}(),bp=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.getImagePath=function(r,t){return r.protocol+"//"+r.host+":"+r.port+"/v2/compute/qemu/images/"+t},n.prototype.getBinaries=function(r){return this.httpServer.get(r,"/computes/local/qemu/binaries")},n.prototype.getImages=function(r){return this.httpServer.get(r,"/compute/qemu/images")},n.prototype.addImage=function(r,t){return this.httpServer.post(r,"/compute/qemu/img",t)},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),g2=function(){function n(){}return n.prototype.getConsoleTypes=function(){return["telnet","vnc","spice","spice+agent","none"]},n.prototype.getDiskInterfaces=function(){return["ide","sata","scsi","sd","mtd","floppy","pflash","virtio","nvme","none"]},n.prototype.getNetworkTypes=function(){return[{value:"e1000",name:"Intel Gigabit Ethernet"},{value:"e1000-82544gc",name:"Intel 82544GC Gigabit Ethernet"},{value:"e1000-82545em",name:"Intel 82545EM Gigabit Ethernet"},{value:"e1000e",name:"Intel PCIe Gigabit Ethernet"},{value:"i82550",name:"Intel i82550 Ethernet"},{value:"i82551",name:"Intel i82551 Ethernet"},{value:"i82557a",name:"Intel i82557A Ethernet"},{value:"i82557b",name:"Intel i82557B Ethernet"},{value:"i82557c",name:"Intel i82557C Ethernet"},{value:"i82558a",name:"Intel i82558A Ethernet"},{value:"i82558b",name:"Intel i82558B Ethernet"},{value:"i82559a",name:"Intel i82559A Ethernet"},{value:"i82559b",name:"Intel i82559B Ethernet"},{value:"i82559c",name:"Intel i82559C Ethernet"},{value:"i82559er",name:"Intel i82559ER Ethernet"},{value:"i82562",name:"Intel i82562 Ethernet"},{value:"i82801",name:"Intel i82801 Ethernet"},{value:"igb",name:"Intel 82576 Gigabit Ethernet"},{value:"ne2k_pci",name:"NE2000 Ethernet"},{value:"pcnet",name:"AMD PCNet Ethernet"},{value:"rocker",name:"Rocker L2 switch device"},{value:"rtl8139",name:"Realtek 8139 Ethernet"},{value:"virtio-net-pci",name:"Paravirtualized Network I/O"},{value:"vmxnet3",name:"VMWare Paravirtualized Ethernet v3"}]},n.prototype.getBootPriorities=function(){return[["HDD","c"],["CD/DVD-ROM","d"],["Network","n"],["HDD or Network","cn"],["HDD or CD/DVD-ROM","cd"]]},n.prototype.getOnCloseOptions=function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]},n.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.prototype.getPriorities=function(){return["realtime","very high","high","normal","low","very low"]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),ofe=["primaryValueBar"],afe=(0,un.pj)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}(),"primary"),sfe=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function(){var n=(0,e.f3M)(kt.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}}),ufe=0,Mj=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u){var p;(0,g.Z)(this,i),(p=t.call(this,o))._ngZone=a,p._animationMode=s,p._isNoopAnimation=!1,p._value=0,p._bufferValue=0,p.animationEnd=new e.vpe,p._animationEndSubscription=rs.w.EMPTY,p.mode="determinate",p.progressbarId="mat-progress-bar-".concat(ufe++);var m=u?u.getPathname().split("#")[0]:"";return p._rectangleFillValue="url('".concat(m,"#").concat(p.progressbarId,"')"),p._isNoopAnimation="NoopAnimations"===s,p}return(0,T.Z)(i,[{key:"value",get:function(){return this._value},set:function(a){this._value=Aj((0,Mn.su)(a)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(a){this._bufferValue=Aj(a||0)}},{key:"_primaryTransform",value:function(){return{transform:"scale3d(".concat(this.value/100,", 1, 1)")}}},{key:"_bufferTransform",value:function(){return"buffer"===this.mode?{transform:"scale3d(".concat(this.bufferValue/100,", 1, 1)")}:null}},{key:"ngAfterViewInit",value:function(){var a=this;this._ngZone.runOutsideAngular(function(){var s=a._primaryValueBar.nativeElement;a._animationEndSubscription=(0,tp.R)(s,"transitionend").pipe((0,mi.h)(function(u){return u.target===s})).subscribe(function(){("determinate"===a.mode||"buffer"===a.mode)&&a._ngZone.run(function(){return a.animationEnd.next({value:a.value})})})})}},{key:"ngOnDestroy",value:function(){this._animationEndSubscription.unsubscribe()}}]),i}(afe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(ys.Qb,8),e.Y36(sfe,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-progress-bar"]],viewQuery:function(t,i){var o;1&t&&e.Gf(ofe,5),2&t&&e.iGM(o=e.CRH())&&(i._primaryValueBar=o.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,i){2&t&&(e.uIk("aria-valuenow","indeterminate"===i.mode||"query"===i.mode?null:i.value)("mode",i.mode),e.ekj("_mat-animation-noopable",i._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.TgZ(2,"defs"),e.TgZ(3,"pattern",2),e._UZ(4,"circle",3),e.qZA(),e.qZA(),e._UZ(5,"rect",4),e.qZA(),e.kcU(),e._UZ(6,"div",5),e._UZ(7,"div",6,7),e._UZ(9,"div",8),e.qZA()),2&t&&(e.xp6(3),e.Q6J("id",i.progressbarId),e.xp6(2),e.uIk("fill",i._rectangleFillValue),e.xp6(1),e.Q6J("ngStyle",i._bufferTransform()),e.xp6(1),e.Q6J("ngStyle",i._primaryTransform()))},directives:[kt.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),n}();function Aj(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(r,Math.min(t,n))}var cfe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[kt.ez,un.BQ],un.BQ]}),n}();function dfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",29),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.path," ")}}function pfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",29),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function ffe(n,r){if(1&n&&(e.TgZ(0,"mat-option",29),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.filename," ")}}var uL=function(){return{standalone:!0}};function hfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-select",30),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().selectedImage=a}),e.YNc(1,ffe,2,2,"mat-option",17),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("ngModelOptions",e.DdM(3,uL))("ngModel",i.selectedImage),e.xp6(1),e.Q6J("ngForOf",i.qemuImages)}}function mfe(n,r){if(1&n&&(e.TgZ(0,"div"),e._UZ(1,"mat-progress-bar",36),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("value",t.uploadProgress)}}function vfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"input",31,32),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadImageFile(a)}),e.qZA(),e.TgZ(3,"button",33),e.NdJ("click",function(){return e.CHM(t),e.MAs(2).click()}),e._uU(4,"Browse"),e.qZA(),e.TgZ(5,"mat-form-field",34),e.TgZ(6,"input",35),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().chosenImage=a}),e.qZA(),e.qZA(),e.YNc(7,mfe,2,1,"div",25),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("uploader",i.uploader),e.xp6(5),e.Q6J("ngModel",i.chosenImage),e.xp6(1),e.Q6J("ngIf",i.uploadedFile)}}var gfe=function(){function n(r,t,i,o,a,s,u,p,m){this.route=r,this.serverService=t,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=u,this.configurationService=p,this.computeService=m,this.qemuBinaries=[],this.consoleTypes=[],this.newImageSelected=!1,this.qemuImages=[],this.chosenImage="",this.uploadedFile=!1,this.uploadProgress=0,this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.qemuTemplate=new lL,this.nameForm=this.formBuilder.group({templateName:new re.NI(null,re.kI.required)}),this.memoryForm=this.formBuilder.group({ramMemory:new re.NI("256",re.kI.required)}),this.diskForm=this.formBuilder.group({fileName:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.uploader=new tv({}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){r.toasterService.error("An error occured: "+o)},this.uploader.onSuccessItem=function(i,o,a,s){r.qemuService.getImages(r.server).subscribe(function(u){r.qemuImages=u}),r.toasterService.success("Image uploaded")},this.uploader.onProgressItem=function(i){r.uploadProgress=i.progress};var t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.templateMocksService.getQemuTemplate().subscribe(function(o){r.qemuTemplate=o}),r.qemuService.getBinaries(i).subscribe(function(o){r.qemuBinaries=o,r.qemuBinaries[0]&&(r.selectedBinary=r.qemuBinaries[0])}),r.qemuService.getImages(i).subscribe(function(o){r.qemuImages=o}),r.consoleTypes=r.configurationService.getConsoleTypes(),r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)})})},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.setDiskImage=function(r){this.newImageSelected="newImage"===r},n.prototype.uploadImageFile=function(r){this.uploadedFile=!0;var t=r.target.files[0].name;this.diskForm.controls.fileName.setValue(t);var i=this.qemuService.getImagePath(this.server,t);this.uploader.queue.forEach(function(a){return a.url=i});var o=this.uploader.queue[0];o.options&&(o.options.disableMultipart=!0),this.uploader.uploadItem(o)},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","qemu","templates"])},n.prototype.addTemplate=function(){var r=this;this.nameForm.invalid||this.memoryForm.invalid||!this.selectedImage&&!this.chosenImage?this.toasterService.error("Fill all required fields"):(this.qemuTemplate.ram=+this.memoryForm.get("ramMemory").value,this.qemuTemplate.qemu_path=this.selectedBinary.path,this.qemuTemplate.hda_disk_image=this.newImageSelected?this.diskForm.get("fileName").value:this.selectedImage.path,this.qemuTemplate.template_id=(0,Ta.v4)(),this.qemuTemplate.name=this.nameForm.get("templateName").value,this.qemuTemplate.compute_id=this.isGns3VmChosen?"vm":"local",this.qemuService.addTemplate(this.server,this.qemuTemplate).subscribe(function(t){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(bp),e.Y36(Xn),e.Y36(xr),e.Y36(re.qu),e.Y36(lc),e.Y36(g2),e.Y36(uc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-qemu-virtual-machine-template"]],decls:49,vars:19,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Server type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],["label","QEMU VM Name",3,"completed"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Please choose a descriptive name for your new QEMU virtual machine","ngDefaultContro",""],["label","QEMU binary and memory",3,"completed"],["placeholder","Qemu binary",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","RAM","formControlName","ramMemory","ngDefaultControl",""],["matSuffix",""],["label","Console type",3,"completed"],["placeholder","Console type",3,"ngModel","ngModelOptions","ngModelChange"],["label","Disk image"],["value","2",1,"radio-button",3,"click"],["placeholder","Disk image (hda)",3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Disk image (hda)",3,"ngModelOptions","ngModel","ngModelChange"],["type","file","accept",".qcow2","ng2FileSelect","",1,"nonvisible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","fileName","placeholder","Please enter name",3,"ngModel","ngModelChange"],["mode","determinate","aria-valuemin","0","aria-valuemax","100",3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New QEMU VM template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"mat-vertical-stepper",6),e.TgZ(8,"mat-step",7),e.TgZ(9,"mat-radio-group",8),e.TgZ(10,"mat-radio-button",9),e.NdJ("click",function(){return i.setServerType("local")}),e._uU(11,"Run this QEMU VM locally"),e.qZA(),e.TgZ(12,"mat-radio-button",10),e.NdJ("click",function(){return i.setServerType("gns3 vm")}),e._uU(13,"Run this QEMU VM on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"mat-step",11),e.TgZ(15,"form",12),e.TgZ(16,"mat-form-field",13),e._UZ(17,"input",14),e.qZA(),e._UZ(18,"br"),e.qZA(),e.qZA(),e.TgZ(19,"mat-step",15),e.TgZ(20,"form",12),e.TgZ(21,"mat-form-field",13),e.TgZ(22,"mat-select",16),e.NdJ("ngModelChange",function(a){return i.selectedBinary=a}),e.YNc(23,dfe,2,2,"mat-option",17),e.qZA(),e.qZA(),e._UZ(24,"br"),e.TgZ(25,"mat-form-field",13),e._UZ(26,"input",18),e.TgZ(27,"span",19),e._uU(28,"MB"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"mat-step",20),e.TgZ(30,"mat-form-field",13),e.TgZ(31,"mat-select",21),e.NdJ("ngModelChange",function(a){return i.qemuTemplate.console_type=a}),e.YNc(32,pfe,2,2,"mat-option",17),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"mat-step",22),e.TgZ(34,"form",12),e.TgZ(35,"mat-radio-group",8),e.TgZ(36,"mat-radio-button",9),e.NdJ("click",function(){return i.setDiskImage("existingImage")}),e._uU(37,"Existing image"),e.qZA(),e.TgZ(38,"mat-radio-button",23),e.NdJ("click",function(){return i.setDiskImage("newImage")}),e._uU(39,"New image"),e.qZA(),e.qZA(),e._UZ(40,"br"),e._UZ(41,"br"),e.YNc(42,hfe,2,4,"mat-select",24),e.YNc(43,vfe,8,3,"div",25),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",26),e.TgZ(45,"button",27),e.NdJ("click",function(){return i.goBack()}),e._uU(46,"Cancel"),e.qZA(),e.TgZ(47,"button",28),e.NdJ("click",function(){return i.addTemplate()}),e._uU(48,"Add template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("linear",!0),e.xp6(1),e.Q6J("completed",i.isGns3VmChosen||i.isLocalComputerChosen),e.xp6(4),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("completed",i.nameForm.get("templateName").value),e.xp6(1),e.Q6J("formGroup",i.nameForm),e.xp6(4),e.Q6J("completed",i.memoryForm.get("ramMemory").value&&i.selectedBinary),e.xp6(1),e.Q6J("formGroup",i.memoryForm),e.xp6(2),e.Q6J("ngModel",i.selectedBinary)("ngModelOptions",e.DdM(17,uL)),e.xp6(1),e.Q6J("ngForOf",i.qemuBinaries),e.xp6(6),e.Q6J("completed",i.qemuTemplate.console_type),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.console_type)("ngModelOptions",e.DdM(18,uL)),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(2),e.Q6J("formGroup",i.diskForm),e.xp6(8),e.Q6J("ngIf",!i.newImageSelected),e.xp6(1),e.Q6J("ngIf",i.newImageSelected))},directives:[py,dy,hl,ml,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,pi.gD,re.On,kt.sg,re.wV,Hn.R9,kt.O5,An,un.ey,bS,Mj],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),_fe=function(){function n(r,t,i,o,a,s){this.route=r,this.serverService=t,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.qemuBinaries=[],this.templateName="",this.nameForm=this.formBuilder.group({templateName:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.qemuService.getTemplate(r.server,i).subscribe(function(a){r.qemuTemplate=a,r.templateName="Copy of "+r.qemuTemplate.name})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","qemu","templates"])},n.prototype.addTemplate=function(){var r=this;this.nameForm.invalid?this.toasterService.error("Fill all required fields"):(this.qemuTemplate.template_id=(0,Ta.v4)(),this.qemuTemplate.name=this.templateName,this.qemuService.addTemplate(this.server,this.qemuTemplate).subscribe(function(t){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(bp),e.Y36(Xn),e.Y36(xr),e.Y36(re.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-copy-qemu-virtual-machine-template"]],decls:15,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Copy QEMU VM template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"form",6),e.TgZ(8,"mat-form-field",7),e.TgZ(9,"input",8),e.NdJ("ngModelChange",function(a){return i.templateName=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.TgZ(11,"button",10),e.NdJ("click",function(){return i.goBack()}),e._uU(12,"Cancel"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return i.addTemplate()}),e._uU(14,"Copy template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("formGroup",i.nameForm),e.xp6(2),e.Q6J("ngModel",i.templateName))},directives:[yi,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function yfe(n,r){1&n&&(e.TgZ(0,"th",10),e._uU(1,"Adapter number"),e.qZA())}function bfe(n,r){if(1&n&&(e.TgZ(0,"td",11),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij("Adapter ",t.adapter_number,"")}}function Cfe(n,r){1&n&&(e.TgZ(0,"th",10),e._uU(1,"Port name"),e.qZA())}function Sfe(n,r){if(1&n&&(e.TgZ(0,"td",11),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij("Ethernet ",t.adapter_number,"")}}function Tfe(n,r){1&n&&(e.TgZ(0,"th",10),e._uU(1,"Adapter type"),e.qZA())}function xfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",14),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.value),e.xp6(1),e.hij(" ",t.name," ")}}function wfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"td",11),e.TgZ(1,"mat-select",12),e.NdJ("ngModelChange",function(s){return e.CHM(t).$implicit.adapter_type=s}),e.YNc(2,xfe,2,2,"mat-option",13),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.oxw();e.xp6(1),e.Q6J("ngModel",i.adapter_type),e.xp6(1),e.Q6J("ngForOf",o.networkTypes)}}function Efe(n,r){1&n&&(e.TgZ(0,"th",10),e._uU(1,"Actions"),e.qZA())}function kfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"td",11),e.TgZ(1,"button",15),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw().delete(a)}),e.TgZ(2,"mat-icon",16),e._uU(3,"delete"),e.qZA(),e.qZA(),e.qZA()}}function Mfe(n,r){1&n&&e._UZ(0,"tr",17)}function Afe(n,r){1&n&&e._UZ(0,"tr",18)}var _2=function(){function n(){this.networkTypes=[],this.displayedColumns=[],this.adapters=[]}return n.prototype.onAdd=function(){this.adapters=this.adapters.concat([{adapter_number:this.adapters.length,adapter_type:this.networkTypes[0]}])},n.prototype.delete=function(r){this.adapters=this.adapters.filter(function(t){return t!==r})},n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-custom-adapters-table"]],inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns",adapters:"adapters"},decls:17,vars:3,consts:[["mat-table","",1,"table",3,"dataSource"],["matColumnDef","adapter_number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","port_name"],["matColumnDef","adapter_type"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-button","",1,"form-field",3,"click"],["mat-header-cell",""],["mat-cell",""],["placeholder","Type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mat-icon-button","","matTooltip","Delete adapter","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete adapter"],["mat-header-row",""],["mat-row",""]],template:function(t,i){1&t&&(e.TgZ(0,"table",0),e.ynx(1,1),e.YNc(2,yfe,2,0,"th",2),e.YNc(3,bfe,2,1,"td",3),e.BQk(),e.ynx(4,4),e.YNc(5,Cfe,2,0,"th",2),e.YNc(6,Sfe,2,1,"td",3),e.BQk(),e.ynx(7,5),e.YNc(8,Tfe,2,0,"th",2),e.YNc(9,wfe,3,2,"td",3),e.BQk(),e.ynx(10,6),e.YNc(11,Efe,2,0,"th",2),e.YNc(12,kfe,4,0,"td",3),e.BQk(),e.YNc(13,Mfe,1,0,"tr",7),e.YNc(14,Afe,1,0,"tr",8),e.qZA(),e.TgZ(15,"button",9),e.NdJ("click",function(){return i.onAdd()}),e._uU(16,"Add"),e.qZA()),2&t&&(e.Q6J("dataSource",i.adapters),e.xp6(13),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns))},directives:[Jl,dl,cl,ul,Ql,Kl,An,pl,fl,pi.gD,re.JJ,re.On,kt.sg,un.ey,Ja,sr,Xl,$l],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),Dfe=["customAdapters"],cL=function(){function n(){this.networkTypes=[],this.displayedColumns=[],this.closeConfiguratorEmitter=new e.vpe,this.saveConfigurationEmitter=new e.vpe}return n.prototype.cancelConfigureCustomAdapters=function(){this.closeConfiguratorEmitter.emit(!1)},n.prototype.configureCustomAdapters=function(){var r=this;this.adapters=[],this.customAdapters.adapters.forEach(function(t){r.adapters.push({adapter_number:t.adapter_number,adapter_type:t.adapter_type})}),this.saveConfigurationEmitter.emit(this.adapters)},n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-custom-adapters"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Dfe,5),2&t)&&(e.iGM(o=e.CRH())&&(i.customAdapters=o.first))},inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns"},outputs:{closeConfiguratorEmitter:"closeConfiguratorEmitter",saveConfigurationEmitter:"saveConfigurationEmitter"},decls:15,vars:3,consts:[[1,"configurator"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],[1,"buttons-bar"],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Custom adapters configuration"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"div",5),e._UZ(7,"app-custom-adapters-table",6,7),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"button",9),e.NdJ("click",function(){return i.cancelConfigureCustomAdapters()}),e._uU(11,"Cancel"),e.qZA(),e.TgZ(12,"button",10),e.NdJ("click",function(){return i.configureCustomAdapters()}),e._uU(13,"Apply"),e.qZA(),e._UZ(14,"br"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.adapters))},directives:[_2,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),Ofe=["customAdaptersConfigurator"];function Pfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Ife(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.path),e.xp6(1),e.hij(" ",t.path," ")}}function Rfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Nfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Zfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Lfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Ffe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Bfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Ufe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Hfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.value),e.xp6(1),e.AsE("",t.name," (",t.value,") ")}}function Vfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",10),e.TgZ(1,"input",55),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).qemuTemplate.cpu_throttling=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.qemuTemplate.cpu_throttling)}}function qfe(n,r){if(1&n&&(e.TgZ(0,"mat-option",54),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function jfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",8),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General settings "),e.qZA(),e.qZA(),e.TgZ(6,"form",9),e.TgZ(7,"mat-form-field",10),e.TgZ(8,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",10),e.TgZ(10,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-form-field",10),e.TgZ(12,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.symbol=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(14,"Choose symbol"),e.qZA(),e._UZ(15,"br"),e._UZ(16,"br"),e.TgZ(17,"mat-form-field",10),e.TgZ(18,"mat-select",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.category=a}),e.YNc(19,Pfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(20,"mat-form-field",10),e.TgZ(21,"input",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.ram=a}),e.qZA(),e.TgZ(22,"span",18),e._uU(23,"MB"),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",10),e.TgZ(25,"input",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.cpus=a}),e.qZA(),e.qZA(),e.TgZ(26,"mat-form-field",10),e.TgZ(27,"mat-select",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.qemu_path=a}),e.YNc(28,Ife,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(29,"mat-form-field",10),e.TgZ(30,"mat-select",21),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.boot_priority=a}),e.YNc(31,Rfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(32,"mat-form-field",10),e.TgZ(33,"mat-select",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.on_close=a}),e.YNc(34,Nfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(35,"mat-form-field",23),e.TgZ(36,"mat-select",24),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.console_type=a}),e.YNc(37,Zfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(38,"mat-checkbox",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.console_auto_start=a}),e._uU(39," Auto start console "),e.qZA(),e.qZA(),e.TgZ(40,"mat-expansion-panel"),e.TgZ(41,"mat-expansion-panel-header"),e.TgZ(42,"mat-panel-title"),e._uU(43," HDD "),e.qZA(),e.qZA(),e.TgZ(44,"mat-card"),e._UZ(45,"mat-card-title"),e.TgZ(46,"mat-card-subtitle"),e._uU(47," HDA (Primary Master) "),e.qZA(),e.TgZ(48,"mat-card-content"),e.TgZ(49,"mat-form-field",10),e.TgZ(50,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hda_disk_image=a}),e.qZA(),e.qZA(),e.TgZ(51,"mat-form-field",10),e.TgZ(52,"mat-select",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hda_disk_interface=a}),e.YNc(53,Lfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(54,"mat-card"),e._UZ(55,"mat-card-title"),e.TgZ(56,"mat-card-subtitle"),e._uU(57," HDB (Primary Slave) "),e.qZA(),e.TgZ(58,"mat-card-content"),e.TgZ(59,"mat-form-field",10),e.TgZ(60,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hdb_disk_image=a}),e.qZA(),e.qZA(),e.TgZ(61,"mat-form-field",10),e.TgZ(62,"mat-select",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hdb_disk_interface=a}),e.YNc(63,Ffe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"mat-card"),e._UZ(65,"mat-card-title"),e.TgZ(66,"mat-card-subtitle"),e._uU(67," HDC (Secondary Master) "),e.qZA(),e.TgZ(68,"mat-card-content"),e.TgZ(69,"mat-form-field",10),e.TgZ(70,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hdc_disk_image=a}),e.qZA(),e.qZA(),e.TgZ(71,"mat-form-field",10),e.TgZ(72,"mat-select",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hdc_disk_interface=a}),e.YNc(73,Bfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(74,"mat-card"),e._UZ(75,"mat-card-title"),e.TgZ(76,"mat-card-subtitle"),e._uU(77," HDD (Secondary Slave) "),e.qZA(),e.TgZ(78,"mat-card-content"),e.TgZ(79,"mat-form-field",10),e.TgZ(80,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hdd_disk_image=a}),e.qZA(),e.qZA(),e.TgZ(81,"mat-form-field",10),e.TgZ(82,"mat-select",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.hdd_disk_interface=a}),e.YNc(83,Ufe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(84,"mat-expansion-panel"),e.TgZ(85,"mat-expansion-panel-header"),e.TgZ(86,"mat-panel-title"),e._uU(87," CD/DVD "),e.qZA(),e.qZA(),e.TgZ(88,"div"),e.TgZ(89,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(92).click()}),e._uU(90,"Browse"),e.qZA(),e.TgZ(91,"input",29,30),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadCdromImageFile(a)}),e.qZA(),e.TgZ(93,"mat-form-field",31),e.TgZ(94,"input",32),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.cdrom_image=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(95,"mat-expansion-panel"),e.TgZ(96,"mat-expansion-panel-header"),e.TgZ(97,"mat-panel-title"),e._uU(98," Network "),e.qZA(),e.qZA(),e.TgZ(99,"mat-form-field",10),e.TgZ(100,"input",33),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.adapters=a}),e.qZA(),e.qZA(),e.TgZ(101,"mat-form-field",10),e.TgZ(102,"input",34),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.first_port_name=a}),e.qZA(),e.qZA(),e.TgZ(103,"mat-form-field",10),e.TgZ(104,"input",35),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.port_name_format=a}),e.qZA(),e.qZA(),e.TgZ(105,"mat-form-field",10),e.TgZ(106,"input",36),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.port_segment_size=a}),e.qZA(),e.qZA(),e.TgZ(107,"mat-form-field",10),e.TgZ(108,"input",37),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.mac_address=a}),e.qZA(),e.qZA(),e.TgZ(109,"mat-form-field",10),e.TgZ(110,"mat-select",38),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.adapter_type=a}),e.YNc(111,Hfe,2,3,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(112,"button",39),e.NdJ("click",function(){return e.CHM(t),e.oxw().setCustomAdaptersConfiguratorState(!0)}),e._uU(113," Configure custom adapters"),e.qZA(),e._UZ(114,"br"),e.TgZ(115,"mat-checkbox",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.legacy_networking=a}),e._uU(116," Use the legacy networking mode "),e.qZA(),e._UZ(117,"br"),e.TgZ(118,"mat-checkbox",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.replicate_network_connection_state=a}),e._uU(119," Replicate network connection state "),e.qZA(),e.qZA(),e.TgZ(120,"mat-expansion-panel"),e.TgZ(121,"mat-expansion-panel-header"),e.TgZ(122,"mat-panel-title"),e._uU(123," Advanced "),e.qZA(),e.qZA(),e.TgZ(124,"mat-card"),e._UZ(125,"mat-card-title"),e.TgZ(126,"mat-card-subtitle"),e._uU(127," Linux boot specific settings "),e.qZA(),e.TgZ(128,"mat-card-content"),e.TgZ(129,"div"),e.TgZ(130,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(133).click()}),e._uU(131,"Browse"),e.qZA(),e.TgZ(132,"input",29,40),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadInitrdFile(a)}),e.qZA(),e.TgZ(134,"mat-form-field",31),e.TgZ(135,"input",41),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.initrd=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(136,"div"),e.TgZ(137,"button",28),e.NdJ("click",function(){return e.CHM(t),e.oxw().filekerenelimage.click()}),e._uU(138," Browse "),e.qZA(),e.TgZ(139,"input",29,42),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadKernelImageFile(a)}),e.qZA(),e.TgZ(141,"mat-form-field",31),e.TgZ(142,"input",43),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.kernel_image=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(143,"mat-form-field",10),e.TgZ(144,"input",44),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.kernel_command_line=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(145,"mat-card"),e._UZ(146,"mat-card-title"),e.TgZ(147,"mat-card-subtitle"),e._uU(148," Bios "),e.qZA(),e.TgZ(149,"mat-card-content"),e.TgZ(150,"div"),e.TgZ(151,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(154).click()}),e._uU(152,"Browse"),e.qZA(),e.TgZ(153,"input",29,45),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadBiosFile(a)}),e.qZA(),e.TgZ(155,"mat-form-field",31),e.TgZ(156,"input",46),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.bios_image=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(157,"mat-card"),e._UZ(158,"mat-card-title"),e.TgZ(159,"mat-card-subtitle"),e._uU(160," Optimization "),e.qZA(),e.TgZ(161,"mat-card-content"),e.TgZ(162,"mat-checkbox",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().activateCpuThrottling=a}),e._uU(163," Activate CPU throttling "),e.qZA(),e.YNc(164,Vfe,2,1,"mat-form-field",47),e.TgZ(165,"mat-form-field",10),e.TgZ(166,"mat-select",48),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.process_priority=a}),e.YNc(167,qfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(168,"mat-card"),e._UZ(169,"mat-card-title"),e.TgZ(170,"mat-card-subtitle"),e._uU(171," Additional settings "),e.qZA(),e.TgZ(172,"mat-card-content"),e.TgZ(173,"mat-form-field",10),e.TgZ(174,"input",49),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.options=a}),e.qZA(),e.qZA(),e.TgZ(175,"mat-checkbox",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.linked_clone=a}),e._uU(176," Use as a linked base VM "),e.qZA(),e._UZ(177,"br"),e.TgZ(178,"mat-checkbox",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.tpm=a}),e._uU(179," Enable the Trusted Platform Module (TPM)"),e.qZA(),e._UZ(180,"br"),e.TgZ(181,"mat-checkbox",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.uefi=a}),e._uU(182," Enable the UEFI boot mode "),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(183,"mat-expansion-panel"),e.TgZ(184,"mat-expansion-panel-header"),e.TgZ(185,"mat-panel-title"),e._uU(186," Usage "),e.qZA(),e.qZA(),e.TgZ(187,"mat-form-field",10),e.TgZ(188,"textarea",50),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(189,"div",51),e.TgZ(190,"button",52),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(191,"Cancel"),e.qZA(),e.TgZ(192,"button",53),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(193,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(6),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.name),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.symbol),e.xp6(6),e.Q6J("ngModel",i.qemuTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.ram),e.xp6(4),e.Q6J("ngModel",i.qemuTemplate.cpus),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.qemu_path),e.xp6(1),e.Q6J("ngForOf",i.binaries),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.boot_priority),e.xp6(1),e.Q6J("ngForOf",i.bootPriorities),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.on_close),e.xp6(1),e.Q6J("ngForOf",i.onCloseOptions),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModel",i.qemuTemplate.console_auto_start),e.xp6(12),e.Q6J("ngModel",i.qemuTemplate.hda_disk_image),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.hda_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(7),e.Q6J("ngModel",i.qemuTemplate.hdb_disk_image),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.hdb_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(7),e.Q6J("ngModel",i.qemuTemplate.hdc_disk_image),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.hdc_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(7),e.Q6J("ngModel",i.qemuTemplate.hdd_disk_image),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.hdd_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(11),e.Q6J("ngModel",i.qemuTemplate.cdrom_image),e.xp6(6),e.Q6J("ngModel",i.qemuTemplate.adapters),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.first_port_name),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.port_name_format),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.port_segment_size),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.mac_address),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.adapter_type),e.xp6(1),e.Q6J("ngForOf",i.networkTypes),e.xp6(4),e.Q6J("ngModel",i.qemuTemplate.legacy_networking),e.xp6(3),e.Q6J("ngModel",i.qemuTemplate.replicate_network_connection_state),e.xp6(17),e.Q6J("ngModel",i.qemuTemplate.initrd),e.xp6(7),e.Q6J("ngModel",i.qemuTemplate.kernel_image),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.kernel_command_line),e.xp6(12),e.Q6J("ngModel",i.qemuTemplate.bios_image),e.xp6(6),e.Q6J("ngModel",i.activateCpuThrottling),e.xp6(2),e.Q6J("ngIf",i.activateCpuThrottling),e.xp6(2),e.Q6J("ngModel",i.qemuTemplate.process_priority),e.xp6(1),e.Q6J("ngForOf",i.priorities),e.xp6(7),e.Q6J("ngModel",i.qemuTemplate.options),e.xp6(1),e.Q6J("ngModel",i.qemuTemplate.linked_clone),e.xp6(3),e.Q6J("ngModel",i.qemuTemplate.tpm),e.xp6(3),e.Q6J("ngModel",i.qemuTemplate.uefi),e.xp6(7),e.Q6J("ngModel",i.qemuTemplate.usage)}}function zfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",56),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.qemuTemplate.symbol)}}var Wfe=function(n){return{shadowed:n}},Gfe=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.qemuService=i,this.toasterService=o,this.configurationService=a,this.formBuilder=s,this.router=u,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.diskInterfaces=[],this.networkTypes=[],this.bootPriorities=[],this.onCloseOptions=[],this.categories=[],this.priorities=[],this.binaries=[],this.activateCpuThrottling=!0,this.isConfiguratorOpened=!1,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.generalSettingsForm=this.formBuilder.group({templateName:new re.NI("",re.kI.required),defaultName:new re.NI("",re.kI.required),symbol:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.qemuService.getTemplate(r.server,i).subscribe(function(a){r.qemuTemplate=a,r.fillCustomAdapters(),r.qemuService.getBinaries(o).subscribe(function(s){r.binaries=s})})})},n.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.diskInterfaces=this.configurationService.getDiskInterfaces(),this.networkTypes=this.configurationService.getNetworkTypes(),this.bootPriorities=this.configurationService.getBootPriorities(),this.onCloseOptions=this.configurationService.getOnCloseOptions(),this.categories=this.configurationService.getCategories(),this.priorities=this.configurationService.getPriorities()},n.prototype.uploadCdromImageFile=function(r){this.qemuTemplate.cdrom_image=r.target.files[0].name},n.prototype.uploadInitrdFile=function(r){this.qemuTemplate.initrd=r.target.files[0].name},n.prototype.uploadKernelImageFile=function(r){this.qemuTemplate.kernel_image=r.target.files[0].name},n.prototype.uploadBiosFile=function(r){this.qemuTemplate.bios_image=r.target.files[0].name},n.prototype.setCustomAdaptersConfiguratorState=function(r){var t=this;this.isConfiguratorOpened=r,r&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.qemuTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.qemuTemplate.custom_adapters.forEach(function(i){t.customAdaptersConfigurator.adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}))},n.prototype.saveCustomAdapters=function(r){this.setCustomAdaptersConfiguratorState(!1),this.qemuTemplate.custom_adapters=r},n.prototype.fillCustomAdapters=function(){var r=this.qemuTemplate.custom_adapters?this.qemuTemplate.custom_adapters:[];this.qemuTemplate.custom_adapters=[];for(var t=0;t<this.qemuTemplate.adapters;t++)this.qemuTemplate.custom_adapters.push(r[t]?r[t]:{adapter_number:t,adapter_type:"e1000"})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","qemu","templates"])},n.prototype.onSave=function(){var r=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):(this.activateCpuThrottling||(this.qemuTemplate.cpu_throttling=0),this.fillCustomAdapters(),this.qemuService.saveTemplate(this.server,this.qemuTemplate).subscribe(function(t){r.toasterService.success("Changes saved")}))},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.qemuTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(bp),e.Y36(Xn),e.Y36(g2),e.Y36(re.qu),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-qemu-virtual-machine-template-details"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Ofe,5),2&t)&&(e.iGM(o=e.CRH())&&(i.customAdaptersConfigurator=o.first))},decls:9,vars:8,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","vCPUs",3,"ngModel","ngModelChange"],["placeholder","Qemu binary",3,"ngModel","ngModelChange"],["placeholder","Boot priority",3,"ngModel","ngModelChange"],["placeholder","On close",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","placeholder","Disk image",3,"ngModel","ngModelChange"],["placeholder","Disk interface",3,"ngModel","ngModelChange"],["mat-raised-button","","color","primary",1,"file-button",3,"click"],["type","file",1,"nonvisible",3,"change"],["filecdrom",""],[1,"file-name-form-field"],["matInput","","type","text","placeholder","Image",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Base MAC",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],["fileinitrd",""],["matInput","","type","text","placeholder","Initial RAM disk (initrd)",3,"ngModel","ngModelChange"],["filekernelimage",""],["matInput","","type","text","placeholder","Kernel image",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Kernel command line",3,"ngModel","ngModelChange"],["filebios",""],["matInput","","type","text","placeholder","Bios image",3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["placeholder","Process priority",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Options",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","type","number","placeholder","Perecentage of CPU allowed",3,"ngModel","ngModelChange"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"QEMU VM configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,jfe,194,52,"div",4),e.qZA(),e.TgZ(6,"app-custom-adapters",5,6),e.NdJ("closeConfiguratorEmitter",function(a){return i.setCustomAdaptersConfiguratorState(a)})("saveConfigurationEmitter",function(a){return i.saveCustomAdapters(a)}),e.qZA(),e.YNc(8,zfe,1,2,"app-symbols-menu",7)),2&t&&(e.Q6J("ngClass",e.VKq(6,Wfe,i.isConfiguratorOpened||i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.qemuTemplate),e.xp6(1),e.Q6J("hidden",!(i.isConfiguratorOpened&&i.qemuTemplate))("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns),e.xp6(2),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.qemuTemplate))},directives:[kt.mk,kt.O5,cL,id,oc,ac,rd,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,An,pi.gD,re.On,kt.sg,re.wV,Hn.R9,Zo,yi,kq,Mq,YZ,un.ey,ad],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Yfe(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences")}}function Jfe(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add QEMU VM template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/qemu/addtemplate")}}function Qfe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function Kfe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.TgZ(13,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).copyTemplate(u)}),e.TgZ(14,"mat-icon"),e._uU(15,"content_copy"),e.qZA(),e.TgZ(16,"span"),e._uU(17,"Copy"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function Xfe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,Kfe,18,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.qemuTemplates)}}function $fe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,Xfe,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var ehe=function(){function n(r,t,i,o){this.route=r,this.serverService=t,this.qemuService=i,this.router=o,this.qemuTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.qemuService.getTemplates(this.server).subscribe(function(t){r.qemuTemplates=t.filter(function(i){return"qemu"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.prototype.copyTemplate=function(r){this.router.navigate(["/server",this.server.id,"preferences","qemu","templates",r.template_id,"copy"])},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(bp),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-qemu-virtual-machines-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(xa,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"QEMU VM templates"),e.qZA(),e.YNc(5,Yfe,2,1,"button",4),e.YNc(6,Jfe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,Qfe,1,0,"app-empty-templates-list",6),e.YNc(8,$fe,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.qemuTemplates.length),e.xp6(1),e.Q6J("ngIf",i.qemuTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[kt.O5,xa,An,ca,ld,Du,kt.sg,Ss,Qa,sr,Ts,Nr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),y2=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.prototype.getVirtualMachines=function(r){return this.httpServer.get(r,"/compute/virtualbox/vms")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function the(n,r){if(1&n&&(e.TgZ(0,"mat-option",15),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.vmname," ")}}function nhe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",5),e.TgZ(1,"mat-card",6),e.TgZ(2,"form",7),e.TgZ(3,"mat-form-field",8),e.TgZ(4,"mat-select",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().selectedVM=a}),e.YNc(5,the,2,2,"mat-option",10),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"mat-checkbox",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.linked_clone=a}),e._uU(7," Use as a linked base VM (experimental) "),e.qZA(),e.qZA(),e.TgZ(8,"div",12),e.TgZ(9,"button",13),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(10,"Cancel"),e.qZA(),e.TgZ(11,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().addTemplate()}),e._uU(12,"Add template"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("formGroup",i.vmForm),e.xp6(2),e.Q6J("ngModel",i.selectedVM),e.xp6(1),e.Q6J("ngForOf",i.virtualMachines),e.xp6(1),e.Q6J("ngModel",i.virtualBoxTemplate.linked_clone)}}var rhe=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.virtualBoxService=i,this.toasterService=o,this.templateMocksService=a,this.router=s,this.formBuilder=u,this.vmForm=this.formBuilder.group({vm:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.virtualBoxService.getVirtualMachines(r.server).subscribe(function(o){r.virtualMachines=o,r.templateMocksService.getVirtualBoxTemplate().subscribe(function(a){r.virtualBoxTemplate=a})})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","virtualbox","templates"])},n.prototype.addTemplate=function(){var r=this;this.vmForm.invalid?this.toasterService.error("Fill all required fields"):(this.virtualBoxTemplate.name=this.selectedVM.vmname,this.virtualBoxTemplate.vmname=this.selectedVM.vmname,this.virtualBoxTemplate.ram=this.selectedVM.ram,this.virtualBoxTemplate.template_id=(0,Ta.v4)(),this.virtualBoxService.addTemplate(this.server,this.virtualBoxTemplate).subscribe(function(){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(y2),e.Y36(Xn),e.Y36(lc),e.Y36(xr),e.Y36(re.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-virtual-box-template"]],decls:6,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["placeholder","VM list","formControlName","vm",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New VirtualBox VM template"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,nhe,13,4,"div",4),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.virtualBoxTemplate))},directives:[kt.O5,yi,re._Y,re.JL,re.sg,Hn.KE,pi.gD,re.JJ,re.u,kt.sg,Zo,re.On,An,un.ey],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),dL=function(){function n(){}return n.prototype.getConsoleTypes=function(){return["telnet","none"]},n.prototype.getOnCloseoptions=function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]},n.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.prototype.getNetworkTypes=function(){return["PCnet-PCI II (Am79C970A)","PCNet-FAST III (Am79C973)","Intel PRO/1000 MT Desktop (82540EM)","Intel PRO/1000 T Server (82543GC)","Intel PRO/1000 MT Server (82545EM)","Paravirtualized Network (virtio-net)"]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),ihe=["customAdaptersConfigurator"];function ohe(n,r){if(1&n&&(e.TgZ(0,"mat-option",34),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function ahe(n,r){if(1&n&&(e.TgZ(0,"mat-option",34),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function she(n,r){if(1&n&&(e.TgZ(0,"mat-option",34),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function lhe(n,r){if(1&n&&(e.TgZ(0,"mat-option",34),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var fy=function(){return{standalone:!0}};function uhe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",8),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General settings "),e.qZA(),e.qZA(),e.TgZ(6,"form",9),e.TgZ(7,"mat-form-field",10),e.TgZ(8,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",10),e.TgZ(10,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-form-field",10),e.TgZ(12,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(13,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(14,"Choose symbol"),e.qZA(),e._UZ(15,"br"),e._UZ(16,"br"),e.TgZ(17,"mat-form-field",10),e.TgZ(18,"mat-select",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.category=a}),e.YNc(19,ohe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(20,"mat-form-field",17),e.TgZ(21,"mat-select",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.console_type=a}),e.YNc(22,ahe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(23,"mat-checkbox",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.console_auto_start=a}),e._uU(24," Auto start console "),e.qZA(),e.TgZ(25,"mat-form-field",10),e.TgZ(26,"input",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.ram=a}),e.qZA(),e.TgZ(27,"span",21),e._uU(28,"MB"),e.qZA(),e.qZA(),e.TgZ(29,"mat-form-field",10),e.TgZ(30,"mat-select",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.on_close=a}),e.YNc(31,she,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.TgZ(32,"mat-checkbox",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.headless=a}),e._uU(33," Start VM in headless mode "),e.qZA(),e._UZ(34,"br"),e.TgZ(35,"mat-checkbox",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.linked_clone=a}),e._uU(36," Use as a linked base VM (experimental) "),e.qZA(),e.qZA(),e.TgZ(37,"mat-expansion-panel"),e.TgZ(38,"mat-expansion-panel-header"),e.TgZ(39,"mat-panel-title"),e._uU(40," Network "),e.qZA(),e.qZA(),e.TgZ(41,"form",9),e.TgZ(42,"mat-form-field",10),e.TgZ(43,"input",24),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.adapters=a}),e.qZA(),e.qZA(),e.TgZ(44,"mat-form-field",10),e.TgZ(45,"input",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.first_port_name=a}),e.qZA(),e.qZA(),e.TgZ(46,"mat-form-field",10),e.TgZ(47,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.port_name_format=a}),e.qZA(),e.qZA(),e.TgZ(48,"mat-form-field",10),e.TgZ(49,"input",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.port_segment_size=a}),e.qZA(),e.qZA(),e.TgZ(50,"mat-form-field",10),e.TgZ(51,"mat-select",28),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.adapter_type=a}),e.YNc(52,lhe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.TgZ(53,"button",29),e.NdJ("click",function(){return e.CHM(t),e.oxw().setCustomAdaptersConfiguratorState(!0)}),e._uU(54," Configure custom adapters"),e.qZA(),e._UZ(55,"br"),e.TgZ(56,"mat-checkbox",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.use_any_adapter=a}),e._uU(57," Allow GNS3 to use any configured VirtualBox adapter "),e.qZA(),e.qZA(),e.TgZ(58,"mat-expansion-panel"),e.TgZ(59,"mat-expansion-panel-header"),e.TgZ(60,"mat-panel-title"),e._uU(61," Usage "),e.qZA(),e.qZA(),e.TgZ(62,"mat-form-field",10),e.TgZ(63,"textarea",30),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().virtualBoxTemplate.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(64,"div",31),e.TgZ(65,"button",32),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(66,"Cancel"),e.qZA(),e.TgZ(67,"button",33),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(68,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(6),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.virtualBoxTemplate.name),e.xp6(2),e.Q6J("ngModel",i.virtualBoxTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.virtualBoxTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(29,fy))("ngModel",i.virtualBoxTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(30,fy))("ngModel",i.virtualBoxTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(31,fy))("ngModel",i.virtualBoxTemplate.console_auto_start),e.xp6(3),e.Q6J("ngModel",i.virtualBoxTemplate.ram),e.xp6(4),e.Q6J("ngModelOptions",e.DdM(32,fy))("ngModel",i.virtualBoxTemplate.on_close),e.xp6(1),e.Q6J("ngForOf",i.onCloseOptions),e.xp6(1),e.Q6J("ngModel",i.virtualBoxTemplate.headless),e.xp6(3),e.Q6J("ngModel",i.virtualBoxTemplate.linked_clone),e.xp6(6),e.Q6J("formGroup",i.networkForm),e.xp6(2),e.Q6J("ngModel",i.virtualBoxTemplate.adapters),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(33,fy))("ngModel",i.virtualBoxTemplate.first_port_name),e.xp6(2),e.Q6J("ngModel",i.virtualBoxTemplate.port_name_format),e.xp6(2),e.Q6J("ngModel",i.virtualBoxTemplate.port_segment_size),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(34,fy))("ngModel",i.virtualBoxTemplate.adapter_type),e.xp6(1),e.Q6J("ngForOf",i.networkTypes),e.xp6(4),e.Q6J("ngModel",i.virtualBoxTemplate.use_any_adapter),e.xp6(7),e.Q6J("ngModel",i.virtualBoxTemplate.usage)}}function che(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",35),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.virtualBoxTemplate.symbol)}}var dhe=function(n){return{shadowed:n}},phe=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.virtualBoxService=i,this.toasterService=o,this.formBuilder=a,this.virtualBoxConfigurationService=s,this.router=u,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.onCloseOptions=[],this.categories=[],this.networkTypes=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.generalSettingsForm=this.formBuilder.group({templateName:new re.NI("",re.kI.required),defaultName:new re.NI("",re.kI.required),symbol:new re.NI("",re.kI.required),ram:new re.NI("",re.kI.required)}),this.networkForm=this.formBuilder.group({adapters:new re.NI("",re.kI.required),nameFormat:new re.NI("",re.kI.required),size:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.virtualBoxService.getTemplate(r.server,i).subscribe(function(a){r.virtualBoxTemplate=a,r.fillCustomAdapters()})})},n.prototype.getConfiguration=function(){this.consoleTypes=this.virtualBoxConfigurationService.getConsoleTypes(),this.onCloseOptions=this.virtualBoxConfigurationService.getOnCloseoptions(),this.categories=this.virtualBoxConfigurationService.getCategories(),this.networkTypes=this.virtualBoxConfigurationService.getNetworkTypes()},n.prototype.setCustomAdaptersConfiguratorState=function(r){var t=this;this.isConfiguratorOpened=r,r&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.virtualBoxTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.virtualBoxTemplate.custom_adapters.forEach(function(i){t.customAdaptersConfigurator.adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}))},n.prototype.saveCustomAdapters=function(r){this.setCustomAdaptersConfiguratorState(!1),this.virtualBoxTemplate.custom_adapters=r},n.prototype.fillCustomAdapters=function(){var r=this.virtualBoxTemplate.custom_adapters?this.virtualBoxTemplate.custom_adapters:[];this.virtualBoxTemplate.custom_adapters=[];for(var t=0;t<this.virtualBoxTemplate.adapters;t++)this.virtualBoxTemplate.custom_adapters.push(r[t]?r[t]:{adapter_number:t,adapter_type:"e1000"})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","virtualbox","templates"])},n.prototype.onSave=function(){var r=this;this.generalSettingsForm.invalid||this.networkForm.invalid?this.toasterService.error("Fill all required fields"):(this.fillCustomAdapters(),this.virtualBoxService.saveTemplate(this.server,this.virtualBoxTemplate).subscribe(function(t){r.toasterService.success("Changes saved")}))},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.virtualBoxTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(y2),e.Y36(Xn),e.Y36(re.qu),e.Y36(dL),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-virtual-box-template-details"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(ihe,5),2&t)&&(e.iGM(o=e.CRH())&&(i.customAdaptersConfigurator=o.first))},decls:9,vars:8,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","formControlName","defaultName","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","formControlName","symbol","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","ram","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["formControlName","adapters","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","nameFormat","matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["formControlName","size","matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"VirtualBox VM configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,uhe,69,35,"div",4),e.qZA(),e.TgZ(6,"app-custom-adapters",5,6),e.NdJ("closeConfiguratorEmitter",function(a){return i.setCustomAdaptersConfiguratorState(a)})("saveConfigurationEmitter",function(a){return i.saveCustomAdapters(a)}),e.qZA(),e.YNc(8,che,1,2,"app-symbols-menu",7)),2&t&&(e.Q6J("ngClass",e.VKq(6,dhe,i.isConfiguratorOpened||i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.virtualBoxTemplate),e.xp6(1),e.Q6J("hidden",!(i.isConfiguratorOpened&&i.virtualBoxTemplate))("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns),e.xp6(2),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.virtualBoxTemplate))},directives:[kt.mk,kt.O5,cL,id,oc,ac,rd,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,An,pi.gD,re.On,kt.sg,Zo,re.wV,Hn.R9,un.ey,ad],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function fhe(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences")}}function hhe(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add Virtual Box VM template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/virtualbox/addtemplate")}}function mhe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function vhe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function ghe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,vhe,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.virtualBoxTemplates)}}function _he(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,ghe,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var yhe=function(){function n(r,t,i){this.route=r,this.serverService=t,this.virtualBoxService=i,this.virtualBoxTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.virtualBoxService.getTemplates(this.server).subscribe(function(t){r.virtualBoxTemplates=t.filter(function(i){return"virtualbox"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(y2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-virtual-box-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(xa,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"VirtualBox VM templates"),e.qZA(),e.YNc(5,fhe,2,1,"button",4),e.YNc(6,hhe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,mhe,1,0,"app-empty-templates-list",6),e.YNc(8,_he,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.virtualBoxTemplates.length),e.xp6(1),e.Q6J("ngIf",i.virtualBoxTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[kt.O5,xa,An,ca,ld,Du,kt.sg,Ss,Qa,sr,Ts,Nr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),b2=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.prototype.getVirtualMachines=function(r){return this.httpServer.get(r,"/compute/vmware/vms")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function bhe(n,r){if(1&n&&(e.TgZ(0,"mat-option",15),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.vmname," ")}}var Che=function(){return{standalone:!0}};function She(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",5),e.TgZ(1,"mat-card",6),e.TgZ(2,"form",7),e.TgZ(3,"mat-form-field",8),e.TgZ(4,"mat-select",9),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().selectedVM=a}),e.YNc(5,bhe,2,2,"mat-option",10),e.qZA(),e.qZA(),e._UZ(6,"br"),e.TgZ(7,"mat-checkbox",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.linked_clone=a}),e._uU(8," Use as a linked base VM (experimental) "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",12),e.TgZ(10,"button",13),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(11,"Cancel"),e.qZA(),e.TgZ(12,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().addTemplate()}),e._uU(13,"Add template"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("formGroup",i.templateNameForm),e.xp6(2),e.Q6J("ngModel",i.selectedVM),e.xp6(1),e.Q6J("ngForOf",i.virtualMachines),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(5,Che))("ngModel",i.vmwareTemplate.linked_clone)}}var The=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.vmwareService=i,this.toasterService=o,this.templateMocksService=a,this.router=s,this.formBuilder=u,this.templateNameForm=this.formBuilder.group({templateName:new re.NI(null,[re.kI.required])})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.vmwareService.getVirtualMachines(r.server).subscribe(function(o){r.virtualMachines=o,r.templateMocksService.getVmwareTemplate().subscribe(function(a){r.vmwareTemplate=a})})})},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","vmware","templates"])},n.prototype.addTemplate=function(){var r=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.vmwareTemplate.name=this.selectedVM.vmname,this.vmwareTemplate.vmx_path=this.selectedVM.vmx_path,this.vmwareTemplate.template_id=(0,Ta.v4)(),this.vmwareService.addTemplate(this.server,this.vmwareTemplate).subscribe(function(){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(b2),e.Y36(Xn),e.Y36(lc),e.Y36(xr),e.Y36(re.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-vmware-template"]],decls:6,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["placeholder","VM list","formControlName","templateName",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New VMware VM template"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,She,14,6,"div",4),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.vmwareTemplate))},directives:[kt.O5,yi,re._Y,re.JL,re.sg,Hn.KE,pi.gD,re.JJ,re.u,kt.sg,Zo,re.On,An,un.ey],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),pL=function(){function n(){}return n.prototype.getConsoleTypes=function(){return["telnet","none"]},n.prototype.getOnCloseoptions=function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]},n.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.prototype.getNetworkTypes=function(){return["default","e1000","e1000e","flexible","vlance","vmxnet","vmxnet2","vmxnet3"]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),xhe=["customAdaptersConfigurator"];function whe(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Ehe(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function khe(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Mhe(n,r){if(1&n&&(e.TgZ(0,"mat-option",32),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var hy=function(){return{standalone:!0}};function Ahe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",8),e.TgZ(1,"mat-accordion"),e.TgZ(2,"mat-expansion-panel"),e.TgZ(3,"mat-expansion-panel-header"),e.TgZ(4,"mat-panel-title"),e._uU(5," General settings "),e.qZA(),e.qZA(),e.TgZ(6,"form",9),e.TgZ(7,"mat-form-field",10),e.TgZ(8,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",10),e.TgZ(10,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-form-field",10),e.TgZ(12,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(13,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(14,"Choose symbol"),e.qZA(),e._UZ(15,"br"),e._UZ(16,"br"),e.TgZ(17,"mat-form-field",10),e.TgZ(18,"mat-select",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.category=a}),e.YNc(19,whe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(20,"mat-form-field",17),e.TgZ(21,"mat-select",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.console_type=a}),e.YNc(22,Ehe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(23,"mat-checkbox",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.console_auto_start=a}),e._uU(24," Auto start console "),e.qZA(),e.TgZ(25,"mat-form-field",10),e.TgZ(26,"mat-select",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.on_close=a}),e.YNc(27,khe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(28,"mat-checkbox",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.headless=a}),e._uU(29," Start VM in headless mode "),e.qZA(),e._UZ(30,"br"),e._UZ(31,"br"),e.TgZ(32,"mat-checkbox",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.linked_clone=a}),e._uU(33," Use as a linked base VM (experimental) "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"mat-expansion-panel"),e.TgZ(35,"mat-expansion-panel-header"),e.TgZ(36,"mat-panel-title"),e._uU(37," Network "),e.qZA(),e.qZA(),e.TgZ(38,"mat-form-field",10),e.TgZ(39,"input",21),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.adapters=a}),e.qZA(),e.qZA(),e.TgZ(40,"mat-form-field",10),e.TgZ(41,"input",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.first_port_name=a}),e.qZA(),e.qZA(),e.TgZ(42,"mat-form-field",10),e.TgZ(43,"input",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.port_name_format=a}),e.qZA(),e.qZA(),e.TgZ(44,"mat-form-field",10),e.TgZ(45,"input",24),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.port_segment_size=a}),e.qZA(),e.qZA(),e.TgZ(46,"mat-form-field",10),e.TgZ(47,"mat-select",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.adapter_type=a}),e.YNc(48,Mhe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(49,"button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().setCustomAdaptersConfiguratorState(!0)}),e._uU(50," Configure custom adapters"),e.qZA(),e._UZ(51,"br"),e.TgZ(52,"mat-checkbox",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.use_any_adapter=a}),e._uU(53," Allow GNS3 to override non custom VMware adapter "),e.qZA(),e.qZA(),e.TgZ(54,"mat-expansion-panel"),e.TgZ(55,"mat-expansion-panel-header"),e.TgZ(56,"mat-panel-title"),e._uU(57," Usage "),e.qZA(),e.qZA(),e.TgZ(58,"mat-form-field",10),e.TgZ(59,"textarea",28),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vmwareTemplate.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(60,"div",29),e.TgZ(61,"button",30),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(62,"Cancel"),e.qZA(),e.TgZ(63,"button",31),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(64,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(6),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.vmwareTemplate.name),e.xp6(2),e.Q6J("ngModel",i.vmwareTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.vmwareTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(27,hy))("ngModel",i.vmwareTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(28,hy))("ngModel",i.vmwareTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(29,hy))("ngModel",i.vmwareTemplate.console_auto_start),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(30,hy))("ngModel",i.vmwareTemplate.on_close),e.xp6(1),e.Q6J("ngForOf",i.onCloseOptions),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(31,hy))("ngModel",i.vmwareTemplate.headless),e.xp6(4),e.Q6J("ngModelOptions",e.DdM(32,hy))("ngModel",i.vmwareTemplate.linked_clone),e.xp6(7),e.Q6J("ngModel",i.vmwareTemplate.adapters),e.xp6(2),e.Q6J("ngModel",i.vmwareTemplate.first_port_name),e.xp6(2),e.Q6J("ngModel",i.vmwareTemplate.port_name_format),e.xp6(2),e.Q6J("ngModel",i.vmwareTemplate.port_segment_size),e.xp6(2),e.Q6J("ngModel",i.vmwareTemplate.adapter_type),e.xp6(1),e.Q6J("ngForOf",i.networkTypes),e.xp6(4),e.Q6J("ngModel",i.vmwareTemplate.use_any_adapter),e.xp6(7),e.Q6J("ngModel",i.vmwareTemplate.usage)}}function Dhe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",33),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.vmwareTemplate.symbol)}}var Ohe=function(n){return{shadowed:n}},Phe=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.vmwareService=i,this.toasterService=o,this.formBuilder=a,this.vmwareConfigurationService=s,this.router=u,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.onCloseOptions=[],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({templateName:new re.NI("",re.kI.required),defaultName:new re.NI("",re.kI.required),symbol:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.vmwareService.getTemplate(r.server,i).subscribe(function(a){r.vmwareTemplate=a,r.fillCustomAdapters()})})},n.prototype.getConfiguration=function(){this.consoleTypes=this.vmwareConfigurationService.getConsoleTypes(),this.categories=this.vmwareConfigurationService.getCategories(),this.onCloseOptions=this.vmwareConfigurationService.getOnCloseoptions(),this.networkTypes=this.vmwareConfigurationService.getNetworkTypes()},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","vmware","templates"])},n.prototype.onSave=function(){var r=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):(this.fillCustomAdapters(),this.vmwareService.saveTemplate(this.server,this.vmwareTemplate).subscribe(function(t){r.toasterService.success("Changes saved")}))},n.prototype.setCustomAdaptersConfiguratorState=function(r){var t=this;this.isConfiguratorOpened=r,r&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.vmwareTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.vmwareTemplate.custom_adapters.forEach(function(i){t.customAdaptersConfigurator.adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}))},n.prototype.saveCustomAdapters=function(r){this.setCustomAdaptersConfiguratorState(!1),this.vmwareTemplate.custom_adapters=r},n.prototype.fillCustomAdapters=function(){var r=this.vmwareTemplate.custom_adapters?this.vmwareTemplate.custom_adapters:[];this.vmwareTemplate.custom_adapters=[];for(var t=0;t<this.vmwareTemplate.adapters;t++)this.vmwareTemplate.custom_adapters.push(r[t]?r[t]:{adapter_number:t,adapter_type:"e1000"})},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.vmwareTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(b2),e.Y36(Xn),e.Y36(re.qu),e.Y36(pL),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-vmware-template-details"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(xhe,5),2&t)&&(e.iGM(o=e.CRH())&&(i.customAdaptersConfigurator=o.first))},decls:9,vars:8,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],[3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"VMware VM configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,Ahe,65,33,"div",4),e.qZA(),e.TgZ(6,"app-custom-adapters",5,6),e.NdJ("closeConfiguratorEmitter",function(a){return i.setCustomAdaptersConfiguratorState(a)})("saveConfigurationEmitter",function(a){return i.saveCustomAdapters(a)}),e.qZA(),e.YNc(8,Dhe,1,2,"app-symbols-menu",7)),2&t&&(e.Q6J("ngClass",e.VKq(6,Ohe,i.isSymbolSelectionOpened||i.isConfiguratorOpened)),e.xp6(5),e.Q6J("ngIf",i.vmwareTemplate),e.xp6(1),e.Q6J("hidden",!(i.isConfiguratorOpened&&i.vmwareTemplate))("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns),e.xp6(2),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.vmwareTemplate))},directives:[kt.mk,kt.O5,cL,id,oc,ac,rd,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,An,pi.gD,re.On,kt.sg,Zo,re.wV,un.ey,ad],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Ihe(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences")}}function Rhe(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add VMware template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/vmware/addtemplate")}}function Nhe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function Zhe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function Lhe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,Zhe,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.vmwareTemplates)}}function Fhe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,Lhe,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var Bhe=function(){function n(r,t,i){this.route=r,this.serverService=t,this.vmwareService=i,this.vmwareTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.vmwareService.getTemplates(this.server).subscribe(function(t){r.vmwareTemplates=t.filter(function(i){return"vmware"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(b2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-vmware-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(xa,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"VMware VM templates"),e.qZA(),e.YNc(5,Ihe,2,1,"button",4),e.YNc(6,Rhe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,Nhe,1,0,"app-empty-templates-list",6),e.YNc(8,Fhe,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.vmwareTemplates.length),e.xp6(1),e.Q6J("ngIf",i.vmwareTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[kt.O5,xa,An,ca,ld,Du,kt.sg,Ss,Qa,sr,Ts,Nr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),C2=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Uhe=function(){function n(r,t,i,o,a,s,u,p){this.route=r,this.serverService=t,this.vpcsService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=u,this.computeService=p,this.templateName="",this.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.templateNameForm=this.formBuilder.group({templateName:new re.NI(null,[re.kI.required])})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.computeService.getComputes(i).subscribe(function(o){o.filter(function(a){return"vm"===a.compute_id}).length>0&&(r.isGns3VmAvailable=!0)})})},n.prototype.setServerType=function(r){"gns3 vm"===r&&this.isGns3VmAvailable?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","vpcs","templates"])},n.prototype.addTemplate=function(){var t,r=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.templateName=this.templateNameForm.get("templateName").value,this.templateMocksService.getVpcsTemplate().subscribe(function(i){t=i}),t.template_id=(0,Ta.v4)(),t.name=this.templateName,t.compute_id=this.isGns3VmChosen?"vm":"local",this.vpcsService.addTemplate(this.server,t).subscribe(function(){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(C2),e.Y36(xr),e.Y36(Xn),e.Y36(lc),e.Y36(re.qu),e.Y36(uc.X))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-vpcs-template"]],decls:20,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"disabled","click"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"New VPCS node template"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card",5),e.TgZ(7,"mat-radio-group",6),e.TgZ(8,"mat-radio-button",7),e.NdJ("click",function(){return i.setServerType("local")}),e._uU(9,"Run the VPCS node locally"),e.qZA(),e.TgZ(10,"mat-radio-button",8),e.NdJ("click",function(){return i.setServerType("gns3 vm")}),e._uU(11,"Run the VPCS node on the GNS3 VM"),e.qZA(),e.qZA(),e.TgZ(12,"form",9),e.TgZ(13,"mat-form-field",10),e._UZ(14,"input",11),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"button",13),e.NdJ("click",function(){return i.goBack()}),e._uU(17,"Cancel"),e.qZA(),e.TgZ(18,"button",14),e.NdJ("click",function(){return i.addTemplate()}),e._uU(19,"Add template"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(10),e.Q6J("disabled",!i.isGns3VmAvailable),e.xp6(2),e.Q6J("formGroup",i.templateNameForm))},directives:[yi,hl,ml,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,An],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),S2=function(){function n(){}return n.prototype.getConsoleTypes=function(){return["telnet","none"]},n.prototype.getCategories=function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function Hhe(n,r){if(1&n&&(e.TgZ(0,"mat-option",23),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Vhe(n,r){if(1&n&&(e.TgZ(0,"mat-option",23),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var fL=function(){return{standalone:!0}};function qhe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"mat-card",7),e.TgZ(2,"form",8),e.TgZ(3,"mat-form-field",9),e.TgZ(4,"input",10),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vpcsTemplate.name=a}),e.qZA(),e.qZA(),e.TgZ(5,"mat-form-field",9),e.TgZ(6,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vpcsTemplate.default_name_format=a}),e.qZA(),e.qZA(),e.TgZ(7,"mat-form-field",9),e.TgZ(8,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vpcsTemplate.base_script_file=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",9),e.TgZ(10,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vpcsTemplate.symbol=a}),e.qZA(),e.qZA(),e.TgZ(11,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().chooseSymbol()}),e._uU(12,"Choose symbol"),e.qZA(),e._UZ(13,"br"),e._UZ(14,"br"),e.TgZ(15,"mat-form-field",9),e.TgZ(16,"mat-select",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vpcsTemplate.category=a}),e.YNc(17,Hhe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(18,"mat-form-field",17),e.TgZ(19,"mat-select",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vpcsTemplate.console_type=a}),e.YNc(20,Vhe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.TgZ(21,"mat-checkbox",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().vpcsTemplate.console_auto_start=a}),e._uU(22," Auto start console "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"div",20),e.TgZ(24,"button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(25,"Cancel"),e.qZA(),e.TgZ(26,"button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(27,"Save"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.vpcsTemplate.name),e.xp6(2),e.Q6J("ngModel",i.vpcsTemplate.default_name_format),e.xp6(2),e.Q6J("ngModel",i.vpcsTemplate.base_script_file),e.xp6(2),e.Q6J("ngModel",i.vpcsTemplate.symbol),e.xp6(6),e.Q6J("ngModelOptions",e.DdM(13,fL))("ngModel",i.vpcsTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(14,fL))("ngModel",i.vpcsTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(15,fL))("ngModel",i.vpcsTemplate.console_auto_start)}}function jhe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-symbols-menu",24),e.NdJ("symbolChangedEmitter",function(a){return e.CHM(t),e.oxw().symbolChanged(a)}),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("server",i.server)("symbol",i.vpcsTemplate.symbol)}}var zhe=function(n){return{shadowed:n}},Whe=function(){function n(r,t,i,o,a,s,u){this.route=r,this.serverService=t,this.vpcsService=i,this.toasterService=o,this.formBuilder=a,this.vpcsConfigurationService=s,this.router=u,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({templateName:new re.NI("",re.kI.required),defaultName:new re.NI("",re.kI.required),scriptFile:new re.NI("",re.kI.required),symbol:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id"),i=this.route.snapshot.paramMap.get("template_id");this.serverService.get(parseInt(t,10)).then(function(o){r.server=o,r.getConfiguration(),r.vpcsService.getTemplate(r.server,i).subscribe(function(a){r.vpcsTemplate=a})})},n.prototype.getConfiguration=function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes(),this.categories=this.vpcsConfigurationService.getCategories()},n.prototype.goBack=function(){this.router.navigate(["/server",this.server.id,"preferences","vpcs","templates"])},n.prototype.onSave=function(){var r=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.vpcsService.saveTemplate(this.server,this.vpcsTemplate).subscribe(function(t){r.toasterService.success("Changes saved")})},n.prototype.chooseSymbol=function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened},n.prototype.symbolChanged=function(r){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.vpcsTemplate.symbol=r},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(C2),e.Y36(Xn),e.Y36(re.qu),e.Y36(S2),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-vpcs-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"server","symbol","symbolChangedEmitter",4,"ngIf"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","scriptFile","placeholder","Base script file",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"server","symbol","symbolChangedEmitter"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"VPCS device configuration"),e.qZA(),e.qZA(),e.qZA(),e.YNc(5,qhe,28,16,"div",4),e.qZA(),e.YNc(6,jhe,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,zhe,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.vpcsTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.vpcsTemplate))},directives:[kt.mk,kt.O5,yi,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,An,pi.gD,re.On,kt.sg,Zo,un.ey,ad],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Ghe(n,r){if(1&n&&(e.TgZ(0,"button",10),e._uU(1," Back "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences")}}function Yhe(n,r){if(1&n&&(e.TgZ(0,"button",11),e._uU(1," Add VPCS template "),e.qZA()),2&n){var t=e.oxw();e.MGl("routerLink","/server/",t.server.id,"/preferences/vpcs/addtemplate")}}function Jhe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function Qhe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",15),e.TgZ(1,"mat-list-item",16),e._uU(2),e.qZA(),e.TgZ(3,"button",17),e.TgZ(4,"mat-icon"),e._uU(5,"more_vert"),e.qZA(),e.qZA(),e.TgZ(6,"mat-menu",null,18),e.TgZ(8,"button",19),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).deleteTemplate(u)}),e.TgZ(9,"mat-icon"),e._uU(10,"delete"),e.qZA(),e.TgZ(11,"span"),e._uU(12,"Delete"),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.MAs(7);e.xp6(1),e.s9C("routerLink",i.template_id),e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("matMenuTriggerFor",o)}}function Khe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,Qhe,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.vpcsTemplates)}}function Xhe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,Khe,2,1,"mat-nav-list",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.server)}}var $he=function(){function n(r,t,i){this.route=r,this.serverService=t,this.vpcsService=i,this.vpcsTemplates=[]}return n.prototype.ngOnInit=function(){var r=this,t=this.route.snapshot.paramMap.get("server_id");this.serverService.get(parseInt(t,10)).then(function(i){r.server=i,r.getTemplates()})},n.prototype.getTemplates=function(){var r=this;this.vpcsService.getTemplates(this.server).subscribe(function(t){r.vpcsTemplates=t.filter(function(i){return"vpcs"===i.template_type&&!i.builtin})})},n.prototype.deleteTemplate=function(r){this.deleteComponent.deleteItem(r.name,r.template_id)},n.prototype.onDeleteEvent=function(){this.getTemplates()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(C2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-vpcs-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(xa,5),2&t)&&(e.iGM(o=e.CRH())&&(i.deleteComponent=o.first))},decls:11,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],["class","top-button","mat-raised-button","","color","primary",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"server","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"top-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"VPCS node templates"),e.qZA(),e.YNc(5,Ghe,2,1,"button",4),e.YNc(6,Yhe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,Jhe,1,0,"app-empty-templates-list",6),e.YNc(8,Xhe,3,1,"div",7),e.qZA(),e.TgZ(9,"app-delete-template",8,9),e.NdJ("deleteEvent",function(){return i.onDeleteEvent()}),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",i.server),e.xp6(1),e.Q6J("ngIf",!i.vpcsTemplates.length),e.xp6(1),e.Q6J("ngIf",i.vpcsTemplates.length),e.xp6(1),e.Q6J("server",i.server))},directives:[kt.O5,xa,An,ca,ld,Du,kt.sg,Ss,Qa,sr,Ts,Nr],styles:["",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),th=f(33931),T2=f(18419),x2=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Jn.ZT)(r,n),r.prototype.getItemKey=function(t){return t.id},r}(T2.o),hL=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Jn.ZT)(r,n),r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(x2),mL=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Jn.ZT)(r,n),r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(x2),vL=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Jn.ZT)(r,n),r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(x2),gL=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Jn.ZT)(r,n),r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(x2),fv=function(){return function(){}}(),my=function(){return function(){}}(),BS=function(){function n(){}return n.prototype.calculate=function(r,t){var i=document.createElement("text");i.innerText=r,i.setAttribute("fill","#00000"),i.setAttribute("fill-opacity","0"),i.setAttribute("style",t),document.documentElement.appendChild(i);var o=i.getBoundingClientRect();return document.documentElement.removeChild(i),{width:o.width,height:o.height}},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),US=f(59473),nh=function(){function n(){}return n.prototype.fix=function(r){var t=US.parse(r,{context:"declarationList"});return t.children.forEach(function(i){"font-size"===i.property&&i.value&&i.value.children&&i.value.children.forEach(function(o){if("Number"===o.type){var a=o.value.toString();a.indexOf("pt")>=0||a.indexOf("px")>=0||(o.value=a+"pt")}})}),US.generate(t)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),cc=function(){function n(){}return n.prototype.fix=function(r){return r.font_family===n.DEFAULT_FONT&&r.font_size===n.DEFAULT_SIZE&&(r.font_family=n.REPLACE_BY_FONT,r.font_size=n.REPLACE_BY_SIZE),r},n.prototype.fixStyles=function(r){var t=US.parse(r,{context:"declarationList"}),i=null,o=null,a=!0;if(t.children.forEach(function(m){"font-family"===m.property&&m.value&&m.value.children&&m.value.children.forEach(function(C){"Identifier"===C.type&&(i=C),"String"===C.type&&(i=C,a=!1)}),"font-size"===m.property&&m.value&&m.value.children&&m.value.children.forEach(function(C){"Dimension"===C.type&&(o=C)})}),o&&i){var u=o.value,p=this.fix({font_family:(a?i.name:i.value).split('"').join(""),font_size:parseInt(u,10)});a?i.name=p.font_family:i.value=p.font_family,o.value=p.font_size}return US.generate(t)},n.DEFAULT_FONT="TypeWriter",n.DEFAULT_SIZE=10,n.REPLACE_BY_FONT="Arial",n.REPLACE_BY_SIZE=12,n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),_L=function(){function n(r,t,i){this.fontBBoxCalculator=r,this.cssFixer=t,this.fontFixer=i}return n.prototype.convert=function(r,t){var i=new my;i.rotation=r.rotation,i.style=r.style,i.text=r.text,i.x=r.x,i.y=r.y,i.originalX=r.x,i.originalY=r.y,void 0!==t&&(i.id=t.node_id,i.nodeId=t.node_id);var o=this.cssFixer.fix(i.style),a=this.fontFixer.fixStyles(o),s=this.fontBBoxCalculator.calculate(i.text,a);return null!==i.x&&(i.x+=3),null!==i.y&&(i.y+=s.height),i},n.\u0275fac=function(t){return new(t||n)(e.LFG(BS),e.LFG(nh),e.LFG(cc))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),eme=function(){return function(){}}(),yL=function(){function n(){}return n.prototype.convert=function(r){var t=new eme;return t.adapterNumber=r.adapter_number,t.linkType=r.link_type,t.name=r.name,t.portNumber=r.port_number,t.shortName=r.short_name,t},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),bL=function(){function n(r,t,i,o,a){this.labelToMapLabel=r,this.portToMapPort=t,this.fontBBoxCalculator=i,this.cssFixer=o,this.fontFixer=a}return n.prototype.convert=function(r){var t=this,i=new fv;if(i.id=r.node_id,i.commandLine=r.command_line,i.computeId=r.compute_id,i.console=r.console,i.consoleHost=r.console_host,i.consoleType=r.console_type,i.firstPortName=r.first_port_name,i.height=r.height,i.label=this.labelToMapLabel?this.labelToMapLabel.convert(r.label,{node_id:r.node_id}):void 0,i.locked=r.locked,i.name=r.name,i.nodeDirectory=r.node_directory,i.nodeType=r.node_type,i.portNameFormat=r.port_name_format,i.portSegmentSize=r.port_segment_size,i.ports=r.ports?r.ports.map(function(u){return t.portToMapPort.convert(u)}):[],i.projectId=r.project_id,i.status=r.status,i.symbol=r.symbol,i.symbolUrl=r.symbol_url,i.usage=r.usage,i.width=r.width,i.x=r.x,i.y=r.y,i.z=r.z,void 0!==i.label){var o=this.cssFixer.fix(i.label.style),a=this.fontFixer.fixStyles(o),s=this.fontBBoxCalculator.calculate(i.label.text,a);(null===r.label.x||null===r.label.y)&&(i.label.x=r.width/2-s.width/2+3,i.label.y=-8)}return i},n.\u0275fac=function(t){return new(t||n)(e.LFG(_L),e.LFG(yL),e.LFG(BS),e.LFG(nh),e.LFG(cc))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Dj=function(){return function(){this.isSelected=!1,this.isMultiplied=!1}}(),HS=function(){return function(){}}(),Oj=function(){function n(r){this.labelToMapLabel=r}return n.prototype.convert=function(r,t){var i=new HS;return i.nodeId=r.node_id,i.adapterNumber=r.adapter_number,i.portNumber=r.port_number,i.label=this.labelToMapLabel.convert(r.label),void 0!==t&&(i.linkId=t.link_id,i.id=i.nodeId+"-"+i.linkId),i},n.\u0275fac=function(t){return new(t||n)(e.LFG(_L))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Pj=function(){function n(r){this.linkNodeToMapLinkNode=r}return n.prototype.convert=function(r){var t=this,i=new Dj;return i.id=r.link_id,i.captureFileName=r.capture_file_name,i.captureFilePath=r.capture_file_path,i.capturing=r.capturing,i.filters=r.filters,i.linkType=r.link_type,i.nodes=r.nodes.map(function(o){return t.linkNodeToMapLinkNode.convert(o,{link_id:r.link_id})}),i.projectId=r.project_id,i.suspend=r.suspend,i},n.\u0275fac=function(t){return new(t||n)(e.LFG(Oj))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Cp=function(){return function(){}}(),w2=function(){function n(){}return n.prototype.convert=function(r){var t=new Cp;return t.id=r.drawing_id,t.projectId=r.project_id,t.rotation=r.rotation,t.svg=r.svg,t.locked=r.locked,t.x=r.x,t.y=r.y,t.z=r.z,t},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),tme=function(){return function(){}}(),Ij=function(){function n(){}return n.prototype.convert=function(r){var t=new tme;return t.id=r.symbol_id,t.builtin=r.builtin,t.filename=r.filename,t.raw=r.raw,t},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),nme=function(){return function(r,t,i,o){void 0===t&&(t=[]),void 0===i&&(i=[]),void 0===o&&(o=[]),this.index=r,this.nodes=t,this.drawings=i,this.links=o}}(),E2=function(){function n(){this.layers={}}return n.prototype.getLayersList=function(){var r=this;return Object.keys(this.layers).sort(function(t,i){return Number(t)-Number(i)}).map(function(t){return r.layers[t]})},n.prototype.setNodes=function(r){var t=this;r.forEach(function(i){t.getLayerForKey(i.z.toString()).nodes.push(i)})},n.prototype.setDrawings=function(r){var t=this;r.forEach(function(i){t.getLayerForKey(i.z.toString()).drawings.push(i)})},n.prototype.setLinks=function(r){var t=this;r.filter(function(i){return i.source&&i.target}).forEach(function(i){var o=Math.min(i.source.z,i.target.z).toString();t.getLayerForKey(o).links.push(i)})},n.prototype.clear=function(){this.layers={}},n.prototype.getLayerForKey=function(r){return r in this.layers||(this.layers[r]=new nme,this.layers[r].index=Number(r)),this.layers[r]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),VS=function(){function n(){this.LINK_WIDTH=2}return n.prototype.linkTranslation=function(r,t,i){var s,u,a=i.y-t.y;if(0===a)s=0,u=r;else{var p=Math.atan((i.x-t.x)/a);s=-r*Math.cos(p),u=r*Math.sin(p)}return{dx:s,dy:u}},n.prototype.assignDataToLinks=function(r){var t=this,i={};r.forEach(function(o,a){var s=o.source.id,u=o.target.id,p=s<u?s+","+u:u+","+s,m=1;p in i?m=i[p].push(a):i[p]=[a],o.distance=m%2==0?m*t.LINK_WIDTH:(1-m)*t.LINK_WIDTH})},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),vy=function(){function n(r,t,i,o,a,s,u,p,m,C){this.mapNodesDataSource=r,this.mapLinksDataSource=t,this.mapDrawingsDataSource=i,this.mapSymbolsDataSource=o,this.nodeToMapNode=a,this.linkToMapLink=s,this.drawingToMapDrawing=u,this.symbolToMapSymbol=p,this.layersManager=m,this.multiLinkCalculator=C}return n.prototype.setNodes=function(r){var t=this;if(r){var i=r.map(function(o){return t.nodeToMapNode.convert(o)});this.mapNodesDataSource.set(i),this.assignDataToLinks(),this.onDataUpdate()}},n.prototype.setLinks=function(r){var t=this;if(r){var i=r.map(function(o){return t.linkToMapLink.convert(o)});this.mapLinksDataSource.set(i),this.assignDataToLinks(),this.onDataUpdate()}},n.prototype.setDrawings=function(r){var t=this;if(r){var i=r.map(function(o){return t.drawingToMapDrawing.convert(o)});this.mapDrawingsDataSource.set(i),this.onDataUpdate()}},n.prototype.setSymbols=function(r){var t=this;if(r){var i=r.map(function(o){return t.symbolToMapSymbol.convert(o)});this.mapSymbolsDataSource.set(i)}},n.prototype.getNodes=function(){return this.mapNodesDataSource.getItems()},n.prototype.getLinks=function(){return this.mapLinksDataSource.getItems()},n.prototype.getDrawings=function(){return this.mapDrawingsDataSource.getItems()},n.prototype.getSymbols=function(){return this.mapSymbolsDataSource.getItems()},n.prototype.onDataUpdate=function(){this.layersManager.clear(),this.layersManager.setNodes(this.getNodes()),this.layersManager.setLinks(this.getLinks()),this.layersManager.setDrawings(this.getDrawings())},n.prototype.assignDataToLinks=function(){var r={};this.getNodes().forEach(function(t){r[t.id]=t}),this.getLinks().forEach(function(t){var i=t.nodes[0].nodeId,o=t.nodes[1].nodeId;i in r&&(t.source=r[i]),o in r&&(t.target=r[o]),t.source&&t.target&&(t.x=t.source.x+.5*(t.target.x-t.source.x),t.y=t.source.y+.5*(t.target.y-t.source.y))}),this.multiLinkCalculator.assignDataToLinks(this.getLinks())},n.\u0275fac=function(t){return new(t||n)(e.LFG(hL),e.LFG(mL),e.LFG(vL),e.LFG(gL),e.LFG(bL),e.LFG(Pj),e.LFG(w2),e.LFG(Ij),e.LFG(E2),e.LFG(VS))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),k2=function(){return function(r,t){this.x=r,this.y=t}}(),Rj=function(){return function(r,t){this.width=r,this.height=t}}(),rme=function(){return function(r,t,i){this.x=r,this.y=t,this.k=i}}(),eu=function(){function n(){this.centerZeroZeroPoint=!0,this.size=new Rj(0,0),this.transformation=new rme(0,0,1)}return n.prototype.getZeroZeroTransformationPoint=function(){return this.centerZeroZeroPoint?new k2(this.size.width/2,this.size.height/2):new k2(0,0)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),qS=function(){function n(){this.changesDetected=new e.vpe,this.hasBeenDrawn=!1}return n.prototype.detectChanges=function(){this.changesDetected.emit(!0)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),CL=function(){function n(){}return n.prototype.getOptimalSize=function(r,t){var i=document.documentElement.clientWidth,o=document.documentElement.clientHeight;return r>i&&(i=r),t>o&&(o=t),new Rj(i,o)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),gy=function(){function n(){this.isReadOnly=!1}return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),SL=function(){return function(){}}(),ime=function(n){function r(t){var i=n.call(this)||this;return i.datum=t,i}return(0,Jn.ZT)(r,n),r}(SL),ome=function(n){function r(t){var i=n.call(this)||this;return i.datum=t,i}return(0,Jn.ZT)(r,n),r}(SL),ame=function(n){function r(t){var i=n.call(this)||this;return i.datum=t,i}return(0,Jn.ZT)(r,n),r}(SL),M2=function(){function n(){this.start=new e.vpe,this.drag=new e.vpe,this.end=new e.vpe}return n.prototype.call=function(r){r.call(this.behaviour())},n.prototype.behaviour=function(){var t,i,o,r=this;return Vf().on("start",function(a){i=On.sourceEvent.clientX,o=On.sourceEvent.clientY,(t=new ime(a)).dx=On.dx,t.dy=On.dy,t.x=On.x,t.y=On.y,r.start.emit(t)}).on("drag",function(a){var s=new ome(a);s.dx=On.sourceEvent.clientX-i,s.dy=On.sourceEvent.clientY-o,i=On.sourceEvent.clientX,o=On.sourceEvent.clientY,r.drag.emit(s)}).on("end",function(a){var s=new ame(a);s.dx=On.x-t.x,s.dy=On.y-t.y,r.end.emit(s)})},n}(),_y=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Jn.ZT)(r,n),r}(function(){return function(r,t,i){this.datum=r,this.dx=t,this.dy=i}}()),lme=function(){return function(r,t,i,o,a){this.datum=r,this.x=t,this.y=i,this.width=o,this.height=a}}(),ume=function(){return function(r,t){this.x=r,this.y=t}}(),cme=function(){return function(r,t,i){this.datum=r,this.x=t,this.y=i}}(),dme=function(){return function(r,t,i){this.savedText=r,this.x=t,this.y=i}}(),pme=function(){return function(r,t,i){this.textDrawingId=r,this.editedText=t,this.textElement=i}}(),fme=function(){return function(r,t){this.event=r,this.drawing=t}}(),hv=function(){return function(r,t){this.event=r,this.link=t}}(),hme=function(){return function(r,t){this.event=r,this.interfaceLabel=t}}(),mme=function(){return function(r,t){this.event=r,this.label=t}}(),dc=function(){function n(){this.selection={},this.selected=new e.vpe,this.unselected=new e.vpe}return n.prototype.setSelected=function(r){var t=this,i=this.convertToKeyDict(r),o=Object.keys(i).filter(function(s){return!t.isSelectedByKey(s)}).map(function(s){return i[s]}),a=Object.keys(this.selection).filter(function(s){return!(s in i)}).map(function(s){return t.selection[s]});this.selection=i,o.length>0&&this.selected.emit(o),a.length>0&&this.unselected.emit(a)},n.prototype.getSelected=function(){var r=this;return Object.keys(this.selection).map(function(t){return r.selection[t]})},n.prototype.isSelected=function(r){var t=this.getKey(r);return this.isSelectedByKey(t)},n.prototype.isSelectedByKey=function(r){return r in this.selection},n.prototype.getKey=function(r){return r.constructor.name+"-"+r.id},n.prototype.convertToKeyDict=function(r){var t=this,i={};return r.forEach(function(o){i[t.getKey(o)]=o}),i},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),jS=function(){function n(r,t,i,o){this.cssFixer=r,this.fontFixer=t,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new e.vpe,this.draggable=new M2,this.enabled=!0}return n.prototype.setEnabled=function(r){this.enabled=r},n.prototype.draw=function(r){var t=this,i=this,o=r.selectAll("g.link_node_position").data(function(C){return[[C.source,C.nodes[0]],[C.target,C.nodes[1]]]}),a=o.enter().append("g").classed("link_node_position",!0),s=o.merge(a);s.attr("transform",function(C){return"translate("+C[0].x+", "+C[0].y+")"});var u=s.selectAll("g.interface_label_container").data(function(C){return t.enabled?[C[1]]:[]}),p=u.enter().append("g").classed("interface_label_container",!0);p.append("rect").attr("class","interface_label_selection"),p.append("text").attr("class","interface_label noselect").attr("interface_label_id",function(C){return""+C.id});var m=u.merge(p).on("contextmenu",function(C,P){event.preventDefault(),i.onContextMenu.emit(new hme(event,C))});m.select("text.interface_label").text(function(C){return C.label.text}).attr("style",function(C){var P=t.cssFixer.fix(C.label.style);return t.fontFixer.fixStyles(P)}).attr("x",function(C){return C.label.x}).attr("y",function(C){return C.label.y}).attr("transform",function(C){return"rotate("+C.label.rotation+", "+C.label.x+", "+C.label.y+")"}),m.select("rect.interface_label_selection").attr("visibility",function(C){return t.selectionManager.isSelected(C)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(C){var P=ni(this),G=m.select('text[interface_label_id="'+C.id+'"]').node().getBBox();P.attr("width",G.width+4),P.attr("height",G.height+4),P.attr("x",G.x-2),P.attr("y",G.y-2),P.attr("transform","rotate("+C.label.rotation+", "+(G.x-2)+", "+(G.y-2)+")")}),u.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(m)},n.SURROUNDING_TEXT_BORDER=5,n.\u0275fac=function(t){return new(t||n)(e.LFG(nh),e.LFG(cc),e.LFG(dc),e.LFG(gy))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Nj=function(){return function(r,t,i,o){this.x=r,this.y=t,this.width=i,this.height=o}}(),TL=function(){function n(){this.selected=new Pn.xQ}return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),A2=function(){function n(r,t){this.context=r,this.selectionEventSource=t,this.rectangleSelected=new Pn.xQ,this.contextMenuOpened=new e.vpe,this.enabled=!1}return n.prototype.disableContextMenu=function(){},n.prototype.setEnabled=function(r){this.enabled=r,this.contextMenuOpened.emit(!0)},n.prototype.activate=function(r){var t=this;r.on("mousedown",function(){if(2==On.button)return r.on("contextmenu",function(){On.preventDefault()}),void t.contextMenuOpened.emit(On);var i=ni(window),o=this.parentElement,a=t.transformation(Fs(o));t.startSelection(a),r.selectAll(n.SELECTABLE_CLASS).classed("selected",!1),i.on("mousemove.selection",function(){var s=t.transformation(Fs(o));t.moveSelection(a,s)}).on("mouseup.selection",function(){var s=t.transformation(Fs(o));t.endSelection(a,s),i.on("mousemove.selection",null).on("mouseup.selection",null)})})},n.prototype.deactivate=function(r){r.on("mousedown",null)},n.prototype.draw=function(r,t){var i=r.select("g.canvas");if(!i.select("g.selection-line-tool").node()){var o=i.append("g");o.attr("class","selection-line-tool"),this.path=o.append("path"),this.path.attr("class","selection").attr("visibility","hidden")}var a=i.select("g.selection-line-tool"),s=a.attr("status");"activated"!==s&&this.enabled&&(this.activate(r),a.attr("activated")),"deactivated"!==s&&!this.enabled&&(this.deactivate(r),a.attr("deactivated"))},n.prototype.startSelection=function(r){this.path.attr("d",this.rect(r[0],r[1],0,0)).attr("visibility","visible")},n.prototype.moveSelection=function(r,t){var i=r[0]/this.context.transformation.k,o=r[1]/this.context.transformation.k;this.path.attr("d",this.rect(i,o,t[0]/this.context.transformation.k-i,t[1]/this.context.transformation.k-o)),this.selectedEvent(r,t)},n.prototype.endSelection=function(r,t){this.path.attr("visibility","hidden"),this.selectedEvent(r,t)},n.prototype.selectedEvent=function(r,t){var i=Math.min(r[0],t[0]),o=Math.min(r[1],t[1]),a=Math.abs(r[0]-t[0]),s=Math.abs(r[1]-t[1]);this.selectionEventSource.selected.next(new Nj(i,o,a,s))},n.prototype.rect=function(r,t,i,o){return"M"+[r,t]+" l"+[i,0]+" l"+[0,o]+" l"+[-i,0]+"z"},n.prototype.transformation=function(r){var t=this.context.getZeroZeroTransformationPoint();return[r[0]-t.x-this.context.transformation.x,r[1]-t.y-this.context.transformation.y]},n.SELECTABLE_CLASS=".selectable",n.\u0275fac=function(t){return new(t||n)(e.LFG(eu),e.LFG(TL))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),xL=function(){function n(r){this.context=r,this.enabled=!1,this.needsDeactivate=!1,this.needsActivate=!1,this.zoom=nV().scaleExtent([.5,8])}return n.prototype.setEnabled=function(r){this.enabled!=r&&(r?this.needsActivate=!0:this.needsDeactivate=!0),this.enabled=r},n.prototype.draw=function(r,t){this.needsActivate&&(this.activate(r),this.needsActivate=!1),this.needsDeactivate&&(this.deactivate(r),this.needsDeactivate=!1)},n.prototype.activate=function(r){var t=this;this.zoom.filter(function(){return"mousedown"===On.type}),this.zoom.on("zoom",function(){var o=r.select("g.canvas"),a=On;o.attr("transform",function(){return t.context.transformation.x=a.transform.x,t.context.transformation.y=a.transform.y,t.context.transformation.k=a.transform.k,"translate("+(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x)+", "+(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y)+") scale("+t.context.transformation.k+")"})}),r.call(this.zoom)},n.prototype.deactivate=function(r){r.on("mousedown.zoom",null),this.zoom.on("zoom",null)},n.\u0275fac=function(t){return new(t||n)(e.LFG(eu))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Zj=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Jn.ZT)(r,n),r}(function(){return function(r,t){this.event=r,this.node=t}}()),D2=function(){function n(r,t,i,o){this.cssFixer=r,this.fontFixer=t,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new e.vpe,this.draggable=new M2}return n.prototype.redrawLabel=function(r,t){this.drawLabel(this.selectLabel(r,t))},n.prototype.draw=function(r){var t=this,i=r.selectAll("g.label_container").data(function(s){return[s.label]}),o=i.enter().append("g").attr("class","label_container").attr("label_id",function(s){return s.id}),a=i.merge(o).on("contextmenu",function(s,u){event.preventDefault(),t.onContextMenu.emit(new mme(event,s))});this.drawLabel(a),i.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(i)},n.prototype.drawLabel=function(r){var t=this,i=r.selectAll("g.label_body").data(function(s){return[s]}),o=i.enter().append("g").attr("class","label_body");o.append("text").attr("class","label"),o.append("rect").attr("class","label_selection");var a=i.merge(o);a.select("text.label").attr("label_id",function(s){return s.id}).attr("style",function(s){var u=t.cssFixer.fix(s.style);return t.fontFixer.fixStyles(u)}).text(function(s){return s.text}).attr("x",function(s){return s.x}).attr("y",function(s){return s.y}).attr("transform",function(s){return"rotate("+s.rotation+", "+s.x+", "+s.y+")"}),a.select("rect.label_selection").attr("visibility",function(s){return t.selectionManager.isSelected(s)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(s){var u=ni(this),m=a.select('text[label_id="'+s.id+'"]').node().getBBox();u.attr("width",m.width+4),u.attr("height",m.height+4),u.attr("x",m.x-2),u.attr("y",m.y-2),u.attr("transform","rotate("+s.rotation+", "+s.x+", "+s.y+")")})},n.prototype.selectLabel=function(r,t){return r.selectAll('g.label_container[label_id="'+t.id+'"]')},n.NODE_LABEL_MARGIN=3,n.\u0275fac=function(t){return new(t||n)(e.LFG(nh),e.LFG(cc),e.LFG(dc),e.LFG(gy))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),mv=function(){function n(){this.dragged=new e.vpe,this.labelDragged=new e.vpe,this.clicked=new e.vpe}return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Ou=function(){function n(){this.symbolScalingSubject=new Pn.xQ,this.isScrollDisabled=new Pn.xQ,this.isMapLocked=new Pn.xQ,this.isTopologySummaryVisible=!0,this.isLogConsoleVisible=!1,this.isLayerNumberVisible=!1,this.logConsoleSubject=new Pn.xQ,this.mapRenderedEmitter=new e.vpe,this.showInterfaceLabels=!0,this.integrateLinkLabelsToLinks=!0,this.openConsolesInWidget=!1,this.isLayerNumberVisible="true"===localStorage.getItem("layersVisibility"),localStorage.getItem("integrateLinkLabelsToLinks")&&(this.integrateLinkLabelsToLinks="true"===localStorage.getItem("integrateLinkLabelsToLinks")),localStorage.getItem("openConsolesInWidget")&&(this.openConsolesInWidget="true"===localStorage.getItem("openConsolesInWidget")),localStorage.getItem("symbolScaling")?localStorage.getItem("symbolScaling"):localStorage.setItem("symbolScaling","true")}return n.prototype.getSymbolScaling=function(){return"true"===localStorage.getItem("symbolScaling")},n.prototype.setSymbolScaling=function(r){r?localStorage.setItem("symbolScaling","true"):localStorage.setItem("symbolScaling","false"),this.symbolScalingSubject.next(r)},n.prototype.changeMapLockValue=function(r){this.isMapLocked.next(r)},n.prototype.setConsoleContextMenuAction=function(r){localStorage.setItem("consoleContextMenu",r)},n.prototype.getConsoleContextManuAction=function(){return localStorage.getItem("consoleContextMenu")},n.prototype.toggleTopologySummary=function(r){this.isTopologySummaryVisible=r},n.prototype.toggleLogConsole=function(r){this.isLogConsoleVisible=r},n.prototype.toggleLayers=function(r){this.isLayerNumberVisible=r},n.prototype.toggleShowInterfaceLabels=function(r){this.showInterfaceLabels=r},n.prototype.toggleIntegrateInterfaceLabels=function(r){this.integrateLinkLabelsToLinks=r,localStorage.removeItem("integrateLinkLabelsToLinks"),r?localStorage.setItem("integrateLinkLabelsToLinks","true"):localStorage.setItem("integrateLinkLabelsToLinks","false")},n.prototype.toggleOpenConsolesInWidget=function(r){this.openConsolesInWidget=r,localStorage.removeItem("openConsolesInWidget"),r?localStorage.setItem("openConsolesInWidget","true"):localStorage.setItem("openConsolesInWidget","false")},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)},providedIn:"root"}),n}(),wL=function(){function n(r,t,i,o,a){this.graphDataManager=r,this.selectionManager=t,this.labelWidget=i,this.nodesEventSource=o,this.mapSettingsService=a,this.onContextMenu=new e.vpe,this.onContextConsoleMenu=new e.vpe,this.onNodeClicked=new e.vpe}return n.prototype.draw=function(r){var t=this,i=this,o=r.selectAll("g.node_body").data(function(u){return[u]}),a=o.enter().append("g").attr("class","node_body");a.append("image");var s=o.merge(a).classed("selected",function(u){return t.selectionManager.isSelected(u)}).on("click",function(u){t.nodesEventSource.clicked.emit(new cme(u,On.pageX,On.pageY))});s.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&s.append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",function(u){return u.width/2-13}).attr("y",function(u){return u.height/2-13}).attr("fill","red"),s.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&s.append("text").attr("class","layer_label").text(function(u){return u.z}).attr("x",function(u){return u.z>=100?u.width/2-13:u.z>=10?u.width/2-9:u.width/2-5}).attr("y",function(u){return u.height/2+5}).attr("style",function(){var u=[];return u.push('font-family: "Noto Sans"'),u.push("font-size: 11pt"),u.push("font-weight: bold"),u.join("; ")}).attr("fill","#ffffff"),s.select("image").on("contextmenu",function(u,p){On.preventDefault(),i.onContextMenu.emit(new Zj(On,u))}).on("dblclick",function(u,p){On.preventDefault(),i.onContextConsoleMenu.emit(new Zj(On,u))}).attr("xnode:href",function(u){return u.symbolUrl}).attr("width",function(u){return u.width?u.width:60}).attr("height",function(u){return u.height?u.height:60}).attr("x",function(u){return 0}).attr("y",function(u){return 0}).on("mouseover",function(u){ni(this).attr("class","over")}).on("mouseout",function(u){ni(this).attr("class","")}),s.attr("transform",function(u){return u.width?"translate("+u.x+","+u.y+")":"translate("+(u.x-30)+","+(u.y-30)+")"}),this.labelWidget.draw(s)},n.\u0275fac=function(t){return new(t||n)(e.LFG(vy),e.LFG(dc),e.LFG(D2),e.LFG(mv),e.LFG(Ou))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),O2=function(){function n(r,t){this.nodeWidget=r,this.mapSettings=t,this.draggable=new M2}return n.prototype.redrawNode=function(r,t){this.nodeWidget.draw(this.selectNode(r,t))},n.prototype.draw=function(r){var t=r.selectAll("g.node").data(function(a){return a.nodes?a.nodes:[]},function(a){return a.id}),i=t.enter().append("g").attr("class","node").attr("node_id",function(a){return a.id}),o=t.merge(i);this.nodeWidget.draw(o),t.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(o)},n.prototype.selectNode=function(r,t){return r.selectAll('g.node[node_id="'+t.id+'"]')},n.NODE_LABEL_MARGIN=3,n.\u0275fac=function(t){return new(t||n)(e.LFG(wL),e.LFG(gy))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),gme=function(){return function(){}}(),EL=function(){function n(){this.drawingLine=new gme,this.drawing=!1,this.data={}}return n.prototype.start=function(r,t,i){var o=this;this.drawing=!0,this.data=i,this.drawingLine.start=new k2(r,t),this.drawingLine.end=new k2(r,t),this.selection.on("mousemove",function(s,u){var m=Fs(o.selection.select("g.canvas").node());o.drawingLine.end.x=m[0],o.drawingLine.end.y=m[1],o.draw(null,null)}),this.draw(null,null)},n.prototype.isDrawing=function(){return this.drawing},n.prototype.stop=function(){return this.drawing=!1,this.selection.on("mousemove",null),this.draw(null,null),this.data},n.prototype.connect=function(r,t){this.selection=r},n.prototype.draw=function(r,t){var i=this.selection.select("g.canvas");i.select("g.drawing-line-tool").node()||i.append("g").attr("class","drawing-line-tool");var o=[];this.drawing&&(o=[[[this.drawingLine.start.x,this.drawingLine.start.y],[this.drawingLine.end.x,this.drawingLine.end.y]]]);var a=DA(),u=this.selection.select("g.drawing-line-tool").selectAll("path").data(o),p=u.enter().append("path");u.merge(p).attr("d",a).attr("stroke","#000").attr("stroke-width","2"),u.exit().remove()},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Lj=function(){return function(r,t,i,o){this.x=r,this.y=t,this.status=i,this.port=o}}(),Fj=function(){function n(r){this._mapSettingsService=r,this.mapSettingsService=r}return n.prototype.draw=function(r){var t=this,i=[];r.each(function(o){i.push(o)}),i.forEach(function(o){i.forEach(function(a){a.nodes[0].linkId!==o.nodes[0].linkId&&(o.nodes[0].nodeId===a.nodes[0].nodeId&&o.nodes[1].nodeId===a.nodes[1].nodeId||o.nodes[0].nodeId===a.nodes[1].nodeId&&o.nodes[1].nodeId===a.nodes[0].nodeId||o.nodes[1].nodeId===a.nodes[0].nodeId&&o.nodes[0].nodeId===a.nodes[1].nodeId)&&(o.isMultiplied=!0)})}),r.each(function(o){var a=ni(this),s=a.select("path"),u=[];if(s.node()){var p=s.node().getPointAtLength(80),m=s.node().getPointAtLength(s.node().getTotalLength()-80);if(s.node().getTotalLength()>220&&o.source&&o.target){var C=o.nodes.find(function(Et){return Et.nodeId===o.source.id}).label.text,P=o.nodes.find(function(Et){return Et.nodeId===o.target.id}).label.text;u=[new Lj(p.x,p.y,o.capturing&&o.suspend?"suspended":o.source.status,C),new Lj(m.x,m.y,o.capturing&&o.suspend?"suspended":o.target.status,P)]}}if(a.selectAll("circle.status_started").remove(),a.selectAll("circle.status_stopped").remove(),a.selectAll("circle.status_suspended").remove(),a.selectAll("rect.status_started").remove(),a.selectAll("text.status_started_label").remove(),a.selectAll("rect.status_stopped").remove(),a.selectAll("text.status_stopped_label").remove(),a.selectAll("rect.status_suspended").remove(),a.selectAll("text.status_suspended_label").remove(),t.mapSettingsService.showInterfaceLabels&&t.mapSettingsService.integrateLinkLabelsToLinks&&!o.isMultiplied){var G=(L=a.selectAll("rect.status_started").data(u.filter(function(Et){return"started"===Et.status}))).enter().append("rect");L.merge(G).attr("class","status_started").attr("width",function(Et){return 10*Et.port.length+5}).attr("height",20).attr("x",function(Et){return Et.x-30}).attr("y",function(Et){return Et.y-10}).attr("rx",8).attr("ry",8).style("fill","#c7ffdf").attr("stroke","#2ecc71").attr("stroke-width",2),L.exit().remove();var Y=a.selectAll("text.status_started_label").data(u.filter(function(Et){return"started"===Et.status})),te=Y.enter().append("text");Y.merge(te).attr("class","status_started_label").text(function(Et){return Et.port}).attr("x",function(Et){return Et.x-25}).attr("y",function(Et){return Et.y+5}).attr("fill","#0e9647"),Y.exit().remove();var Me=(de=a.selectAll("rect.status_stopped").data(u.filter(function(Et){return"stopped"===Et.status}))).enter().append("rect");de.merge(Me).attr("class","status_stopped").attr("width",function(Et){return 10*Et.port.length+5}).attr("height",20).attr("x",function(Et){return Et.x-30}).attr("y",function(Et){return Et.y-10}).attr("rx",8).attr("ry",8).style("fill","#ffe3e3").attr("stroke","red").attr("stroke-width",2),de.exit().remove();var st=a.selectAll("text.status_stopped_label").data(u.filter(function(Et){return"stopped"===Et.status})),tt=st.enter().append("text");st.merge(tt).attr("class","status_stopped_label").text(function(Et){return Et.port}).attr("x",function(Et){return Et.x-25}).attr("y",function(Et){return Et.y+5}).attr("fill","red"),st.exit().remove();var pt=(at=a.selectAll("rect.status_suspended").data(u.filter(function(Et){return"suspended"===Et.status}))).enter().append("rect");at.merge(pt).attr("class","status_suspended").attr("width",function(Et){return 10*Et.port.length+5}).attr("height",20).attr("x",function(Et){return Et.x-30}).attr("y",function(Et){return Et.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#fffbc3").attr("stroke-width",2),at.exit().remove();var Je=a.selectAll("text.status_suspended_label").data(u.filter(function(Et){return"suspended"===Et.status})),et=Je.enter().append("text");Je.merge(et).attr("class","status_suspended_label").text(function(Et){return Et.port}).attr("x",function(Et){return Et.x-25}).attr("y",function(Et){return Et.y+5}).attr("fill","#6b5633"),Je.exit().remove()}else{var L,de,at;G=(L=a.selectAll("circle.status_started").data(u.filter(function(dn){return"started"===dn.status}))).enter().append("circle"),L.merge(G).attr("class","status_started").attr("cx",function(dn){return dn.x}).attr("cy",function(dn){return dn.y}).attr("r",6).attr("text",function(dn){return dn.port}).attr("fill","#2ecc71"),L.exit().remove(),Me=(de=a.selectAll("rect.status_stopped").data(u.filter(function(dn){return"stopped"===dn.status}))).enter().append("rect"),de.merge(Me).attr("class","status_stopped").attr("x",function(dn){return dn.x-5}).attr("y",function(dn){return dn.y-5}).attr("width",10).attr("height",10).attr("fill","red"),de.exit().remove(),pt=(at=a.selectAll("circle.status_suspended").data(u.filter(function(dn){return"suspended"===dn.status}))).enter().append("circle"),at.merge(pt).attr("class","status_suspended").attr("cx",function(dn){return dn.x}).attr("cy",function(dn){return dn.y}).attr("r",6).attr("fill","#FFFF00"),at.exit().remove()}})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Ou))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),_me=function(){return function(r,t){this.source=r,this.target=t}}(),kL=function(){function n(){this.onContextMenu=new e.vpe}return n.prototype.linktoEthernetLink=function(r){return new _me([r.source.x+r.source.width/2,r.source.y+r.source.height/2],[r.target.x+r.target.width/2,r.target.y+r.target.height/2])},n.prototype.draw=function(r){var t=this,i=r.selectAll("path.ethernet_link").data(function(s){return"ethernet"===s.linkType?[t.linktoEthernetLink(s)]:[]}),o=i.enter().append("path").attr("class","ethernet_link").on("contextmenu",function(s){var p=event;t.onContextMenu.emit(new hv(p,s))});o.attr("stroke","#000").attr("stroke-width","2").on("contextmenu",function(s){var p=event;t.onContextMenu.emit(new hv(p,s))}),i.merge(o).attr("d",function(s){var u=tc();return u.moveTo(s.source[0],s.source[1]),u.lineTo(s.target[0],s.target[1]),u.toString()})},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),yme=function(){return function(r,t,i,o){this.source=r,this.source_angle=t,this.target_angle=i,this.target=o}}(),ML=function(){function n(){this.onContextMenu=new e.vpe}return n.prototype.linkToSerialLink=function(r){var t={x:r.source.x+r.source.width/2,y:r.source.y+r.source.height/2},i={x:r.target.x+r.target.width/2,y:r.target.y+r.target.height/2},o=i.x-t.x,a=i.y-t.y,s=Math.atan2(a,o),u=-Math.PI/4,p=[Math.cos(s+u),Math.sin(s+u)];return new yme([t.x,t.y],[t.x+o/2+15*p[0],t.y+a/2+15*p[1]],[i.x-o/2-15*p[0],i.y-a/2-15*p[1]],[i.x,i.y])},n.prototype.draw=function(r){var t=this,i=r.selectAll("path.serial_link").data(function(s){return"serial"===s.linkType?[t.linkToSerialLink(s)]:[]}),o=i.enter().append("path").attr("class","serial_link").on("contextmenu",function(s){var p=event;t.onContextMenu.emit(new hv(p,s))});o.attr("stroke","#B22222").attr("fill","none").attr("stroke-width","2"),i.merge(o).attr("d",function(s){var u=tc();return u.moveTo(s.source[0],s.source[1]),u.lineTo(s.source_angle[0],s.source_angle[1]),u.lineTo(s.target_angle[0],s.target_angle[1]),u.lineTo(s.target[0],s.target[1]),u.toString()})},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),AL=function(){function n(r,t,i,o,a,s){this.multiLinkCalculatorHelper=r,this.interfaceLabelWidget=t,this.interfaceStatusWidget=i,this.selectionManager=o,this.ethernetLinkWidget=a,this.serialLinkWidget=s,this.onContextMenu=new e.vpe}return n.prototype.draw=function(r){var t=this,i=r.selectAll("g.link_body").data(function(s){return[s]}),o=i.enter().append("g").attr("class","link_body"),a=i.merge(o).attr("transform",function(s){var u=t.multiLinkCalculatorHelper.linkTranslation(s.distance,s.source,s.target);return"translate ("+u.dx+", "+u.dy+")"});i.select(".capture-icon").remove(),i.filter(function(s){return s.capturing&&!s.suspend&&!(s.filters.bpf||s.filters.corrupt||s.filters.delay||s.filters.frequency_drop||s.filters.packet_loss)}).append("g").on("contextmenu",function(s){t.onContextMenu.emit(new hv(On,s))}).attr("class","capture-icon").attr("transform",function(s){return"translate ("+((s.source.x+s.target.x)/2+24)+", "+((s.source.y+s.target.y)/2+24)+") scale(0.5)"}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/inspect.svg"),i.select(".filter-capture-icon").remove(),i.filter(function(s){return s.capturing&&!s.suspend&&(s.filters.bpf||s.filters.corrupt||s.filters.delay||s.filters.frequency_drop||s.filters.packet_loss)}).append("g").on("contextmenu",function(s){t.onContextMenu.emit(new hv(On,s))}).attr("class","filter-capture-icon").attr("transform",function(s){return"translate ("+((s.source.x+s.target.x)/2+24)+", "+((s.source.y+s.target.y)/2+24)+") scale(0.5)"}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/filter-capture.svg"),i.select(".filter-icon").remove(),i.filter(function(s){return!s.capturing&&!s.suspend&&(s.filters.bpf||s.filters.corrupt||s.filters.delay||s.filters.frequency_drop||s.filters.packet_loss)}).append("g").on("contextmenu",function(s){t.onContextMenu.emit(new hv(On,s))}).attr("class","filter-icon").attr("width","48px").attr("height","48px").attr("transform",function(s){return"translate ("+((s.source.x+s.target.x)/2+24)+", "+((s.source.y+s.target.y)/2+24)+") scale(0.5)"}).attr("viewBox","0 0 20 20").append("image").attr("width","48px").attr("height","48px").attr("xlink:href","assets/resources/images/filter.svg"),i.select(".pause-icon").remove(),i.filter(function(s){return s.suspend}).append("g").on("contextmenu",function(s){t.onContextMenu.emit(new hv(On,s))}).attr("class","pause-icon").attr("transform",function(s){return"translate ("+((s.source.x+s.target.x)/2+24)+", "+((s.source.y+s.target.y)/2+24)+") scale(0.5)"}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/pause.svg"),this.serialLinkWidget.draw(a),this.ethernetLinkWidget.draw(a),a.select("path").classed("selected",function(s){return t.selectionManager.isSelected(s)}),this.interfaceLabelWidget.draw(a),this.interfaceStatusWidget.draw(a)},n.\u0275fac=function(t){return new(t||n)(e.LFG(VS),e.LFG(jS),e.LFG(Fj),e.LFG(dc),e.LFG(kL),e.LFG(ML))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),DL=function(){function n(r,t){this.multiLinkCalculatorHelper=r,this.linkWidget=t}return n.prototype.redrawLink=function(r,t){this.linkWidget.draw(this.selectLink(r,t))},n.prototype.draw=function(r){var t=this,i=r.selectAll("g.link").data(function(s){if(s.links){var u=s.links.filter(function(p){return p.target&&p.source});return t.multiLinkCalculatorHelper.assignDataToLinks(u),u}return[]},function(s){return s.id}),o=i.enter().append("g").attr("class","link").attr("link_id",function(s){return s.id}).attr("map-source",function(s){return s.source.id}).attr("map-target",function(s){return s.target.id}),a=i.merge(o);this.linkWidget.draw(a),i.exit().remove()},n.prototype.selectLink=function(r,t){return r.selectAll('g.link[link_id="'+t.id+'"]')},n.\u0275fac=function(t){return new(t||n)(e.LFG(VS),e.LFG(AL))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),bme=function(){return function(){}}(),Po=function(){return function(){}}(),Cme=function(){function n(){}return n.prototype.convert=function(r){var t=new Po,i=r.attributes.getNamedItem("fill");i&&(t.fill=i.value);var o=r.attributes.getNamedItem("fill-opacity");i&&(t.fill_opacity=parseFloat(o.value));var a=r.attributes.getNamedItem("stroke");a&&(t.stroke=a.value);var s=r.attributes.getNamedItem("stroke-width");a&&(t.stroke_width=parseInt(s.value,10));var u=r.attributes.getNamedItem("stroke-dasharray");u&&(t.stroke_dasharray=u.value);var p=r.attributes.getNamedItem("cx");p&&(t.cx=parseInt(p.value,10));var m=r.attributes.getNamedItem("cy");m&&(t.cy=parseInt(m.value,10));var C=r.attributes.getNamedItem("rx");C&&(t.rx=parseInt(C.value,10));var P=r.attributes.getNamedItem("ry");return P&&(t.ry=parseInt(P.value,10)),t},n}(),P2=function(){return function(){}}(),Sme=function(){function n(){}return n.prototype.convert=function(r){var t=new P2,i=r.attributes.getNamedItem("xlink:href");i&&(t.data=i.value);var o=r.attributes.getNamedItem("width");o&&(t.width=parseInt(o.value,10));var a=r.attributes.getNamedItem("height");return a&&(t.height=parseInt(a.value,10)),t},n}(),vv=function(){return function(){}}(),Tme=function(){function n(){}return n.prototype.convert=function(r){var t=new vv,i=r.attributes.getNamedItem("stroke");i&&(t.stroke=i.value);var o=r.attributes.getNamedItem("stroke-width");i&&(t.stroke_width=parseInt(o.value,10));var a=r.attributes.getNamedItem("stroke-dasharray");a&&(t.stroke_dasharray=a.value);var s=r.attributes.getNamedItem("x1");s&&(t.x1=parseInt(s.value,10));var u=r.attributes.getNamedItem("x2");u&&(t.x2=parseInt(u.value,10));var p=r.attributes.getNamedItem("y1");p&&(t.y1=parseInt(p.value,10));var m=r.attributes.getNamedItem("y2");return m&&(t.y2=parseInt(m.value,10)),t},n}(),pc=function(){return function(){}}(),xme=function(){function n(){}return n.prototype.convert=function(r){var t=new pc,i=r.attributes.getNamedItem("fill");i&&(t.fill=i.value);var o=r.attributes.getNamedItem("fill-opacity");i&&(t.fill_opacity=parseFloat(o.value));var a=r.attributes.getNamedItem("stroke");a&&(t.stroke=a.value);var s=r.attributes.getNamedItem("stroke-width");a&&(t.stroke_width=parseInt(s.value,10));var u=r.attributes.getNamedItem("stroke-dasharray");u&&(t.stroke_dasharray=u.value);var p=r.attributes.getNamedItem("width");p&&(t.width=parseInt(p.value,10));var m=r.attributes.getNamedItem("height");m&&(t.height=parseInt(m.value,10));var C=r.attributes.getNamedItem("rx");C&&(t.rx=parseInt(C.value,0));var P=r.attributes.getNamedItem("ry");return P&&(t.ry=parseInt(P.value,0)),t},n}(),gv=function(){return function(){}}(),wme=function(){function n(){}return n.prototype.convert=function(r){var t=new gv;t.text=r.textContent;var i=r.attributes.getNamedItem("fill");i&&(t.fill=i.value);var o=r.attributes.getNamedItem("fill-opacity");o&&(t.fill_opacity=parseFloat(o.value));var a=r.attributes.getNamedItem("font-family");a&&(t.font_family=a.value);var s=r.attributes.getNamedItem("font-size");s&&(t.font_size=+s.value);var u=r.attributes.getNamedItem("font-weight");u&&(t.font_weight=u.value);var p=r.attributes.getNamedItem("text-decoration");return p&&(t.text_decoration=p.value),t},n}(),zS=function(){function n(){this.parser=new DOMParser,this.elementParsers={text:new wme,image:new Sme,rect:new xme,line:new Tme,ellipse:new Cme}}return n.prototype.supportedTags=function(){return Object.keys(this.elementParsers)},n.prototype.convert=function(r){var i=this.parser.parseFromString(r,"text/xml").getElementsByTagName("svg");if(1!==i.length)throw new Error("Cannot locate svg element root in '"+r+"'");var o=i[0],a=null,s=null;for(var u in o.children){var p=(s=o.children[u]).nodeName;if(p in this.elementParsers){a=this.elementParsers[p];break}}if(null===a)throw new Error("Cannot find parser for '"+r+"'");var m=a.convert(s);return m.width=+o.getAttribute("width"),m.height=+o.getAttribute("height"),m},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Bj=function(){function n(r){this.fontFixer=r}return n.prototype.draw=function(r){var t=this,i=r.selectAll("text.text_element").data(function(m){return m.element&&m.element instanceof gv?[m.element]:[]}),o=i.enter().append("text").attr("class","text_element noselect"),a=i.merge(o);a.attr("style",function(m){var C=t.fontFixer.fix(m),P=[];return C.font_family&&P.push('font-family: "'+m.font_family+'"'),C.font_size&&P.push("font-size: "+m.font_size+"pt"),C.font_weight&&P.push("font-weight: "+m.font_weight),P.join("; ")}).attr("fill",function(m){return m.fill}).attr("text-decoration",function(m){return m.text_decoration});var s=a.selectAll("tspan").data(function(m){return m.text.split(/\r?\n/)}),u=s.enter().append("tspan");s.merge(u).text(function(m){return m}).attr("xml:space","preserve").attr("x",0).attr("dy",function(m,C){return 0===C?"0em":"1.4em"}),s.exit().remove(),a.attr("transform",function(){var m=ni(this).selectAll("tspan"),C=this.getBBox().height/m.size();return"translate("+n.MARGIN+", "+(C-n.MARGIN)+")"}),i.exit().remove()},n.MARGIN=4,n.\u0275fac=function(t){return new(t||n)(e.LFG(cc))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Uj=function(){function n(){}return n.prototype.draw=function(r){var t=r.selectAll("image.image_element").data(function(a){return a.element&&a.element instanceof P2?[a.element]:[]}),i=t.enter().append("image").attr("class","image_element noselect");t.merge(i).attr("xlink:href",function(a){return a.data}).attr("width",function(a){return a.width}).attr("height",function(a){return a.height}),t.exit().remove()},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),_v=function(){function n(){}return n.prototype.fix=function(r){return r in n.MAPPING?n.MAPPING[r]:r},n.MAPPING={"25, 25":"10, 2","5, 25":"4, 2","5, 25, 25":"5, 5, 1, 5","25, 25, 5, 25, 5":"5, 2, 5, 2, 5"},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Hj=function(){function n(r){this.qtDasharrayFixer=r}return n.prototype.draw=function(r){var t=this,i=r.selectAll("rect.rect_element").data(function(s){return s.element&&s.element instanceof pc?[s.element]:[]});i.enter().append("line").attr("class","top"),i.enter().append("line").attr("class","bottom"),i.enter().append("line").attr("class","right"),i.enter().append("line").attr("class","left");var o=i.enter().append("rect").attr("class","rect_element noselect");i.merge(o).attr("fill",function(s){return s.fill}).attr("fill-opacity",function(s){return s.fill_opacity}).attr("stroke",function(s){return s.stroke}).attr("stroke-width",function(s){return s.stroke_width}).attr("stroke-dasharray",function(s){return t.qtDasharrayFixer.fix(s.stroke_dasharray)}).attr("width",function(s){return s.width}).attr("height",function(s){return s.height}).attr("rx",function(s){return s.rx}).attr("ry",function(s){return s.ry}),i.exit().remove()},n.\u0275fac=function(t){return new(t||n)(e.LFG(_v))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Vj=function(){function n(r){this.qtDasharrayFixer=r}return n.prototype.draw=function(r){var t=this,i=r.selectAll("line.line_element").data(function(s){return s.element&&s.element instanceof vv?[s.element]:[]});i.enter().append("circle").attr("class","right"),i.enter().append("circle").attr("class","left");var o=i.enter().append("line").attr("class","line_element noselect");i.merge(o).attr("stroke",function(s){return s.stroke}).attr("stroke-width",function(s){return s.stroke_width}).attr("stroke-dasharray",function(s){return t.qtDasharrayFixer.fix(s.stroke_dasharray)}).attr("x1",function(s){return s.x1}).attr("x2",function(s){return s.x2}).attr("y1",function(s){return s.y1}).attr("y2",function(s){return s.y2}),i.exit().remove()},n.\u0275fac=function(t){return new(t||n)(e.LFG(_v))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),qj=function(){function n(r){this.qtDasharrayFixer=r}return n.prototype.draw=function(r){var t=this,i=r.selectAll("ellipse.ellipse_element").data(function(s){return s.element&&s.element instanceof Po?[s.element]:[]});i.enter().append("line").attr("class","top"),i.enter().append("line").attr("class","bottom"),i.enter().append("line").attr("class","right"),i.enter().append("line").attr("class","left");var o=i.enter().append("ellipse").attr("class","ellipse_element noselect");i.merge(o).attr("fill",function(s){return s.fill}).attr("fill-opacity",function(s){return s.fill_opacity}).attr("stroke",function(s){return s.stroke}).attr("stroke-width",function(s){return s.stroke_width}).attr("stroke-dasharray",function(s){return t.qtDasharrayFixer.fix(s.stroke_dasharray)}).attr("cx",function(s){return s.cx}).attr("cy",function(s){return s.cy}).attr("rx",function(s){return s.rx}).attr("ry",function(s){return s.ry}),i.exit().remove()},n.\u0275fac=function(t){return new(t||n)(e.LFG(_v))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),jj=function(){function n(r,t,i,o,a,s,u){this.textDrawingWidget=r,this.imageDrawingWidget=t,this.rectDrawingWidget=i,this.lineDrawingWidget=o,this.ellipseDrawingWidget=a,this.selectionManager=s,this.mapSettingsService=u,this.drawingWidgets=[],this.drawingWidgets=[this.textDrawingWidget,this.imageDrawingWidget,this.rectDrawingWidget,this.lineDrawingWidget,this.ellipseDrawingWidget]}return n.prototype.draw=function(r){var t=this,i=r.selectAll("g.drawing_body").data(function(s){return[s]}),o=i.enter().append("g").attr("class","drawing_body"),a=i.merge(o).attr("transform",function(s){return"translate("+s.x+","+s.y+") rotate("+s.rotation+")"});this.drawingWidgets.forEach(function(s){s.draw(a)}),a.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&a.filter(function(s){return s.element instanceof pc||s.element instanceof Po}).append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",function(s){return s.element?s.element.width/2-13:0}).attr("y",function(s){return s.element?s.element.height/2-13:0}).attr("fill","red"),a.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&a.filter(function(s){return s.element instanceof pc||s.element instanceof Po}).append("text").attr("class","layer_label").text(function(s){return s.z}).attr("x",function(s){return s.z>=100?s.element?s.element.width/2-13:0:s.z>=10?s.element?s.element.width/2-9:0:s.element.width/2-5}).attr("y",function(s){return s.element?s.element.height/2+5:0}).attr("style",function(){var s=[];return s.push('font-family: "Noto Sans"'),s.push("font-size: 11pt"),s.push("font-weight: bold"),s.join("; ")}).attr("fill","#ffffff"),a.select("line.top").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(s){return s.element instanceof Po?s.element.cx-s.element.width/10:"0"}).attr("x2",function(s){return s.element instanceof Po?s.element.cx+s.element.width/10:s.element.width}).attr("y1","0").attr("y2","0").attr("draggable","true").attr("cursor","ns-resize"),a.select("line.bottom").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(s){return s.element instanceof Po?s.element.cx-s.element.width/10:"0"}).attr("x2",function(s){return s.element instanceof Po?s.element.cx+s.element.width/10:s.element.width}).attr("y1",function(s){return s.element.height}).attr("y2",function(s){return s.element.height}).attr("draggable","true").attr("cursor","ns-resize"),a.select("line.right").attr("stroke","transparent").attr("stroke-width","8px").attr("x1","0").attr("x2","0").attr("y1",function(s){return s.element instanceof Po?s.element.cy-s.element.height/10:"0"}).attr("y2",function(s){return s.element instanceof Po?s.element.cy+s.element.height/10:s.element.height}).attr("draggable","true").attr("cursor","ew-resize"),a.select("line.left").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(s){return s.element.width}).attr("x2",function(s){return s.element.width}).attr("y1",function(s){return s.element instanceof Po?s.element.cy-s.element.height/10:"0"}).attr("y2",function(s){return s.element instanceof Po?s.element.cy+s.element.height/10:s.element.height}).attr("draggable","true").attr("cursor","ew-resize"),a.select("circle.left").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",function(s){return s.element.x1}).attr("cy",function(s){return s.element.y1}).attr("r",10).attr("cursor","move"),a.select("circle.right").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",function(s){return s.element.x2}).attr("cy",function(s){return s.element.y2}).attr("r",10).attr("cursor","move"),a.classed("drawing_selected",function(s){return t.selectionManager.isSelected(s)})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Bj),e.LFG(Uj),e.LFG(Hj),e.LFG(Vj),e.LFG(qj),e.LFG(dc),e.LFG(Ou))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),WS=function(){function n(r,t,i,o){this.drawingWidget=r,this.svgToDrawingConverter=t,this.context=i,this.mapSettings=o,this.draggable=new M2,this.draggingEnabled=!1,this.resizingFinished=new e.vpe,this.onContextMenu=new e.vpe,this.svgToDrawingConverter=new zS}return n.prototype.redrawDrawing=function(r,t){this.drawingWidget.draw(this.selectDrawing(r,t))},n.prototype.draw=function(r){var t=this,i=r.selectAll("g.drawing").data(function(Je){return Je.drawings.forEach(function(et){try{et.element=t.svgToDrawingConverter.convert(et.svg)}catch(It){}}),Je.drawings},function(Je){return Je.id}),o=i.enter().append("g").attr("class","drawing").attr("drawing_id",function(Je){return Je.id}).on("contextmenu",function(Je){On.preventDefault(),t.onContextMenu.emit(new fme(On,Je))}),a=i.merge(o);this.drawingWidget.draw(a),i.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(a);var s,u,p,m,G,Y,te,de,C=!1,P=Vf().on("start",function(Je){document.body.style.cursor="ns-resize",p=Je.y}).on("drag",function(Je){var et=On;C?(u=s-(et.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y)),s=et.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),Je.element.height+u<0?(C=!1,s=p,Je.element.height=Math.abs(Je.element.height+et.dy)):(Je.y=et.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),Je.element.height+=u,Je.element instanceof Po&&(Je.element.cy=Je.element.cy+u/2<0?1:Je.element.cy+=u/2,Je.element.ry=Je.element.ry+u/2<0?1:Je.element.ry+=u/2))):Je.element.height+et.dy<0?(C=!0,s=p,Je.element.height=Math.abs(Je.element.height+et.dy)):(Je.element.height+=et.dy,Je.element instanceof Po&&(Je.element.cy=Je.element.cy+et.dy/2<0?1:Je.element.cy+=et.dy/2,Je.element.ry=Je.element.ry+et.dy/2<0?1:Je.element.ry+=et.dy/2)),t.redrawDrawing(r,Je)}).on("end",function(Je){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Je))}),L=Vf().on("start",function(Je){s=On.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),m=s+Je.element.height,document.body.style.cursor="ns-resize"}).on("drag",function(Je){var et=On;C?Je.element.height+et.dy<0?(C=!1,s=m,Je.element.height=Math.abs(Je.element.height+et.dy)):(Je.element.height+=et.dy,Je.element instanceof Po&&(Je.element.cy=Je.element.cy+et.dy/2<0?1:Je.element.cy+=et.dy/2,Je.element.ry=Je.element.ry+et.dy/2<0?1:Je.element.ry+=et.dy/2)):(u=s-(et.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y)),s=et.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),Je.element.height+u<0?(s=m,C=!0,Je.element.height=Math.abs(Je.element.height+et.dy)):(Je.y=et.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),Je.element.height+=u,Je.element instanceof Po&&(Je.element.cy=Je.element.cy+u/2<0?1:Je.element.cy+=u/2,Je.element.ry=Je.element.ry+u/2<0?1:Je.element.ry+=u/2))),t.redrawDrawing(r,Je)}).on("end",function(Je){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Je))}),Me=!1,st=Vf().on("start",function(Je){G=On.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),de=G+Je.element.width,document.body.style.cursor="ew-resize"}).on("drag",function(Je){var et=On;Me?Je.element.width+et.dx<0?(G=de,Me=!1,Je.element.width=Math.abs(Je.element.width+et.dx)):(Je.element instanceof Po&&(Je.element.cx=Je.element.cx+et.dx/2<0?1:Je.element.cx+=et.dx/2,Je.element.rx=Je.element.rx+et.dx/2<0?1:Je.element.rx+=et.dx/2),Je.element.width=Je.element.width+et.dx<0?1:Je.element.width+=et.dx):(Y=G-(et.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x)),G=et.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),Je.element.width+Y<0?(G=de,Me=!0,Je.element.width=Math.abs(Je.element.width+et.dx)):(Je.x=et.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),Je.element.width+=Y,Je.element instanceof Po&&(Je.element.cx=Je.element.cx+Y/2<0?1:Je.element.cx+=Y/2,Je.element.rx=Je.element.rx+Y/2<0?1:Je.element.rx+=Y/2))),t.redrawDrawing(r,Je)}).on("end",function(Je){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Je))}),tt=Vf().on("start",function(Je){document.body.style.cursor="ew-resize",te=Je.x}).on("drag",function(Je){var et=On;Me?(Y=G-(et.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x)),G=et.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),Je.element.width+Y<0?(G=te,Me=!1,Je.element.width=Math.abs(Je.element.width+et.dx)):(Je.x=et.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),Je.element.width+=Y,Je.element instanceof Po&&(Je.element.cx=Je.element.cx+Y/2<0?1:Je.element.cx+=Y/2,Je.element.rx=Je.element.rx+Y/2<0?1:Je.element.rx+=Y/2))):Je.element.width+et.dx<0?(G=te,Me=!0,Je.element.width=Math.abs(Je.element.width+et.dx)):(Je.element instanceof Po&&(Je.element.cx=Je.element.cx+et.dx/2<0?1:Je.element.cx+=et.dx/2,Je.element.rx=Je.element.rx+et.dx/2<0?1:Je.element.rx+=et.dx/2),Je.element.width=Je.element.width+et.dx<0?1:Je.element.width+=et.dx),t.redrawDrawing(r,Je)}).on("end",function(Je){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Je))}),at=Vf().on("start",function(){document.body.style.cursor="move"}).on("drag",function(Je){var et=On;Je.element.width+=et.dx,Je.element.height+=et.dy,Je.element.x2+=et.dx,Je.element.y2+=et.dy,t.redrawDrawing(r,Je)}).on("end",function(Je){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Je))}),pt=Vf().on("start",function(){document.body.style.cursor="move"}).on("drag",function(Je){var et=On;Je.element.width+=et.dx,Je.element.height+=et.dy,Je.element.x1+=et.dx,Je.element.y1+=et.dy,t.redrawDrawing(r,Je)}).on("end",function(Je){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Je))});a.select("line.bottom").call(P),a.select("line.top").call(L),a.select("line.right").call(st),a.select("line.left").call(tt),a.select("circle.right").call(at),a.select("circle.left").call(pt)},n.prototype.createResizingEvent=function(r){var t=new bme;return t.x=r.x,t.y=r.y,t.width=r.element.width,t.height=r.element.height,t.datum=r,t},n.prototype.selectDrawing=function(r,t){return r.selectAll('g.drawing[drawing_id="'+t.id+'"]')},n.\u0275fac=function(t){return new(t||n)(e.LFG(jj),e.LFG(zS),e.LFG(eu),e.LFG(gy))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),zj=function(){function n(r,t,i){this.linksWidget=r,this.nodesWidget=t,this.drawingsWidget=i}return n.prototype.draw=function(r,t){var i=r.selectAll("g.layer").data(t,function(m){return m.index.toString()}),o=i.enter().append("g").attr("class","layer");o.append("g").attr("class","links"),o.append("g").attr("class","nodes"),o.append("g").attr("class","drawings");var a=i.merge(o);a.attr("data-index",function(m){return m.index});var s=a.select("g.links"),u=a.select("g.nodes"),p=a.select("g.drawings");i.exit().remove(),this.linksWidget.draw(s),this.nodesWidget.draw(u),this.drawingsWidget.draw(p)},n.\u0275fac=function(t){return new(t||n)(e.LFG(DL),e.LFG(O2),e.LFG(WS))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),OL=function(){function n(r,t,i,o,a,s){this.nodesWidget=r,this.drawingLineTool=t,this.selectionTool=i,this.movingTool=o,this.layersWidget=a,this.layersManager=s}return n.prototype.getNodesWidget=function(){return this.nodesWidget},n.prototype.getDrawingLineTool=function(){return this.drawingLineTool},n.prototype.getSelectionTool=function(){return this.selectionTool},n.prototype.connect=function(r,t){this.drawingLineTool.connect(r,t)},n.prototype.draw=function(r,t){r.attr("width",t.size.width).attr("height",t.size.height);var i=r.selectAll("g.canvas").data([t]),o=i.enter().append("g").attr("class","canvas");i.merge(o).attr("transform",function(a){return"translate("+(a.getZeroZeroTransformationPoint().x+a.transformation.x)+", "+(a.getZeroZeroTransformationPoint().y+a.transformation.y)+") scale("+a.transformation.k+")"}),this.layersWidget.draw(i,this.layersManager.getLayersList()),this.drawingLineTool.draw(r,t),this.selectionTool.draw(r,t),this.movingTool.draw(r,t)},n.prototype.disconnect=function(r){r.empty&&!r.empty()&&r.selectAll("*").remove()},n.\u0275fac=function(t){return new(t||n)(e.LFG(O2),e.LFG(EL),e.LFG(A2),e.LFG(xL),e.LFG(zj),e.LFG(E2))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),GS=function(){function n(){this.isSelectionToolActivated=new Pn.xQ,this.isMovingToolActivated=new Pn.xQ,this.isTextEditingToolActivated=new Pn.xQ,this.isTextAddingToolActivated=new Pn.xQ,this.isDrawLinkToolActivated=new Pn.xQ}return n.prototype.selectionToolActivation=function(r){this.isSelectionToolActivated.next(r)},n.prototype.movingToolActivation=function(r){this.isMovingToolActivated.next(r)},n.prototype.textEditingToolActivation=function(r){this.isTextEditingToolActivated.next(r)},n.prototype.textAddingToolActivation=function(r){this.isTextAddingToolActivated.next(r)},n.prototype.drawLinkToolActivation=function(r){this.isDrawLinkToolActivated.next(r)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),yy=function(){function n(r){this.context=r,this.scaleChangeEmitter=new e.vpe,this.currentScale=1}return n.prototype.getScale=function(){return this.currentScale},n.prototype.setScale=function(r){this.currentScale=r,this.context.transformation.k=this.currentScale,this.scaleChangeEmitter.emit(this.currentScale)},n.prototype.resetToDefault=function(){this.currentScale=1,this.context.transformation.k=this.currentScale,this.scaleChangeEmitter.emit(this.currentScale)},n.\u0275fac=function(t){return new(t||n)(e.LFG(eu))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),I2=function(){function n(){this.movingModeState=new e.vpe}return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Eme=function(){function n(r,t,i){this.element=r,this.movingEventSource=t,this.context=i,this.activated=!1}return n.prototype.ngOnInit=function(){var r=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe(function(t){r.activated=t,t||r.removelisteners()})},n.prototype.ngOnDestroy=function(){this.movingModeState.unsubscribe()},n.prototype.onMouseDown=function(r){var t=this;this.activated&&(this.mousemoveListener=function(i){ni(t.element.nativeElement).selectAll("g.canvas").data([t.context]).attr("transform",function(){return t.context.transformation.x=t.context.transformation.x+i.movementX,t.context.transformation.y=t.context.transformation.y+i.movementY,"translate("+(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x)+", "+(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y)+") scale("+t.context.transformation.k+")"})},this.mouseupListener=function(i){t.removelisteners()},this.element.nativeElement.addEventListener("mouseup",this.mouseupListener),this.element.nativeElement.addEventListener("mousemove",this.mousemoveListener))},n.prototype.removelisteners=function(){this.element.nativeElement.removeEventListener("mouseup",this.mouseupListener),this.element.nativeElement.removeEventListener("mousemove",this.mousemoveListener)},n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(I2),e.Y36(eu))},n.\u0275dir=e.lG2({type:n,selectors:[["","movingCanvas",""]],hostBindings:function(t,i){1&t&&e.NdJ("mousedown",function(a){return i.onMouseDown(a)})}}),n}(),kme=function(){function n(r,t,i,o){this.element=r,this.movingEventSource=t,this.context=i,this.mapsScaleService=o}return n.prototype.ngOnInit=function(){var r=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe(function(t){t?r.addListener():r.removeListener()})},n.prototype.ngOnDestroy=function(){this.movingModeState.unsubscribe()},n.prototype.addListener=function(){var r=this;this.wheelListener=function(t){t.stopPropagation(),t.preventDefault();var i=t.deltaY;i=0===t.deltaMode?i/100:i/3,ni(r.element.nativeElement).selectAll("g.canvas").data([r.context]).attr("transform",function(){r.context.transformation.k=r.context.transformation.k-i/10;var s=r.context.getZeroZeroTransformationPoint().x+r.context.transformation.x,u=r.context.getZeroZeroTransformationPoint().y+r.context.transformation.y,p=r.context.transformation.k;return r.mapsScaleService.setScale(p),"translate("+s+", "+u+") scale("+p+")"})},this.element.nativeElement.addEventListener("wheel",this.wheelListener,{passive:!1})},n.prototype.removeListener=function(){this.element.nativeElement.removeEventListener("wheel",this.wheelListener)},n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(I2),e.Y36(eu),e.Y36(yy))},n.\u0275dir=e.lG2({type:n,selectors:[["","zoomingCanvas",""]]}),n}(),fc=function(){function n(){this.dragged=new e.vpe,this.resized=new e.vpe,this.selected=new e.vpe,this.pointToAddSelected=new e.vpe,this.saved=new e.vpe,this.textAdded=new e.vpe,this.textEdited=new e.vpe,this.textSaved=new e.vpe}return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Mme=function(){function n(r,t){this.drawingsEventSource=r,this.context=t}return n.prototype.ngOnInit=function(){var r=this;this.drawingSelected=this.drawingsEventSource.selected.subscribe(function(t){""===t?r.deactivate():r.activate()})},n.prototype.activate=function(){var r=this;this.deactivate(),this.mapListener=function(i){var o=(i.pageX-(r.context.getZeroZeroTransformationPoint().x+r.context.transformation.x))/r.context.transformation.k,a=(i.pageY-(r.context.getZeroZeroTransformationPoint().y+r.context.transformation.y))/r.context.transformation.k;r.drawingsEventSource.pointToAddSelected.emit(new ume(o,a)),r.deactivate()},this.svg.addEventListener("click",this.mapListener)},n.prototype.deactivate=function(){this.svg.removeEventListener("click",this.mapListener)},n.prototype.ngOnDestroy=function(){this.drawingSelected.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(fc),e.Y36(eu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-drawing-adding"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),Ame=["*"],Dme=function(){function n(r,t){this.drawingsWidget=r,this.drawingsEventSource=t}return n.prototype.ngOnInit=function(){var r=this;this.resizingFinished=this.drawingsWidget.resizingFinished.subscribe(function(t){r.drawingsEventSource.resized.emit(new lme(t.datum,t.x,t.y,t.width,t.height))})},n.prototype.ngOnDestroy=function(){this.resizingFinished.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(WS),e.Y36(fc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-drawing-resizing"]],ngContentSelectors:Ame,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[""]}),n}(),Wj=function(){function n(){}return n.prototype.inRectangle=function(r,t,i){return r.x<=t&&t<r.x+r.width&&r.y<=i&&i<r.y+r.height},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Ome=function(){function n(r,t,i,o){this.selectionEventSource=r,this.graphDataManager=t,this.inRectangleHelper=i,this.selectionManager=o}return n.prototype.ngOnInit=function(){var r=this;this.onSelection=this.selectionEventSource.selected.subscribe(function(t){var i=r.graphDataManager.getNodes().filter(function(P){return r.inRectangleHelper.inRectangle(t,P.x,P.y)}),o=r.graphDataManager.getLinks().filter(function(P){return r.inRectangleHelper.inRectangle(t,P.x,P.y)}),a=r.graphDataManager.getDrawings().filter(function(P){return r.inRectangleHelper.inRectangle(t,P.x,P.y)}),s=r.graphDataManager.getNodes().filter(function(P){return void 0!==P.label&&r.inRectangleHelper.inRectangle(t,P.x+P.label.x,P.y+P.label.y)}).map(function(P){return P.label}),u=r.graphDataManager.getLinks().filter(function(P){return void 0!==P.source&&2==P.nodes.length&&void 0!==P.nodes[0].label&&r.inRectangleHelper.inRectangle(t,P.source.x+P.nodes[0].label.x,P.source.y+P.nodes[0].label.y)}).map(function(P){return P.nodes[0]}),p=r.graphDataManager.getLinks().filter(function(P){return void 0!==P.target&&2==P.nodes.length&&void 0!==P.nodes[1].label&&r.inRectangleHelper.inRectangle(t,P.target.x+P.nodes[1].label.x,P.target.y+P.nodes[1].label.y)}).map(function(P){return P.nodes[1]}),m=(0,Jn.ev)((0,Jn.ev)([],u),p),C=(0,Jn.ev)((0,Jn.ev)((0,Jn.ev)((0,Jn.ev)((0,Jn.ev)([],i),o),a),s),m);r.selectionManager.setSelected(C)})},n.prototype.ngOnDestroy=function(){this.onSelection.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(TL),e.Y36(vy),e.Y36(Wj),e.Y36(dc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-selection-control"]],decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),Pme=function(){function n(r,t){this.selectionManager=r,this.mapChangeDetectorRef=t}return n.prototype.ngOnInit=function(){var r=this;this.onSelected=this.selectionManager.selected.subscribe(function(){r.mapChangeDetectorRef.detectChanges()}),this.onUnselected=this.selectionManager.unselected.subscribe(function(){r.mapChangeDetectorRef.detectChanges()})},n.prototype.ngOnDestroy=function(){this.onSelected.unsubscribe(),this.onUnselected.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(dc),e.Y36(qS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-selection-select"]],decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),hc=function(){function n(r){this.httpServer=r}return n.prototype.createLink=function(r,t,i,o,a,s,u,p,m){return this.httpServer.post(r,"/projects/"+t.project_id+"/links",{nodes:[{node_id:t.node_id,port_number:i.port_number,adapter_number:i.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:i.short_name,x:s,y:u}},{node_id:o.node_id,port_number:a.port_number,adapter_number:a.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:a.short_name,x:p,y:m}}]})},n.prototype.getLink=function(r,t,i){return this.httpServer.get(r,"/projects/"+t+"/links/"+i)},n.prototype.deleteLink=function(r,t){return this.httpServer.delete(r,"/projects/"+t.project_id+"/links/"+t.link_id)},n.prototype.updateLink=function(r,t){return this.httpServer.put(r,"/projects/"+t.project_id+"/links/"+t.link_id,t)},n.prototype.getAvailableFilters=function(r,t){return this.httpServer.get(r,"/projects/"+t.project_id+"/links/"+t.link_id+"/available_filters")},n.prototype.updateNodes=function(r,t,i){var o=i.map(function(a){return{node_id:a.node_id,port_number:a.port_number,adapter_number:a.adapter_number,label:{rotation:a.label.rotation,style:a.label.style,text:a.label.text,x:a.label.x,y:a.label.y}}});return this.httpServer.put(r,"/projects/"+t.project_id+"/links/"+t.link_id,{nodes:o})},n.prototype.startCaptureOnLink=function(r,t,i){return this.httpServer.post(r,"/projects/"+t.project_id+"/links/"+t.link_id+"/start_capture",i)},n.prototype.stopCaptureOnLink=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/links/"+t.link_id+"/stop_capture",{})},n.prototype.streamPcap=function(r,t){return this.httpServer.get(r,"/projects/"+t.project_id+"/links/"+t.link_id+"/pcap")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),rh=f(3941),wa=f(96852),Ime=["temporaryTextElement"],Rme=function(){function n(r,t,i,o,a,s,u,p,m,C,P){this.drawingsEventSource=r,this.toolsService=t,this.context=i,this.renderer=o,this.mapScaleService=a,this.linkService=s,this.linksDataSource=u,this.nodesDataSource=p,this.selectionManager=m,this.fontFixer=C,this.ngZone=P,this.leftPosition="0px",this.topPosition="0px",this.innerText="",this.addingFinished=new e.vpe}return n.prototype.ngOnInit=function(){var r=this;this.textAddingSubscription=this.toolsService.isTextAddingToolActivated.subscribe(function(t){t?r.activateTextAdding():r.deactivateTextAdding()}),this.ngZone.runOutsideAngular(this.activateTextEditingForDrawings.bind(this)),this.ngZone.runOutsideAngular(this.activateTextEditingForNodeLabels.bind(this))},n.prototype.activateTextAdding=function(){var r=this;this.deactivateTextAdding(),this.mapListener=function(i){r.leftPosition=i.pageX.toString()+"px",r.topPosition=i.pageY.toString()+"px",r.renderer.setStyle(r.temporaryTextElement.nativeElement,"display","initial"),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"transform","scale("+r.mapScaleService.getScale()+")"),r.temporaryTextElement.nativeElement.focus(),document.documentElement.style.cursor="default",r.textListener=function(){r.drawingsEventSource.textAdded.emit(new dme(r.temporaryTextElement.nativeElement.innerText.replace(/\n$/,""),i.pageX,i.pageY)),r.deactivateTextAdding(),r.innerText="",r.temporaryTextElement.nativeElement.innerText="",r.temporaryTextElement.nativeElement.removeEventListener("focusout",r.textListener),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"display","none")},r.temporaryTextElement.nativeElement.addEventListener("focusout",r.textListener)},this.svg.addEventListener("click",this.mapListener)},n.prototype.deactivateTextAdding=function(){this.svg.removeEventListener("click",this.mapListener)},n.prototype.activateTextEditingForNodeLabels=function(){var r=this,t=ni(this.svg);t.selectAll("g.interface_label_container").select("text.interface_label").on("dblclick",function(i,o,a){r.selectionManager.setSelected([]),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"display","initial"),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"transform","scale("+r.mapScaleService.getScale()+")"),r.editedLink=i,ni(a[o]).attr("visibility","hidden"),ni(a[o]).classed("editingMode",!0),r.editedNode=r.nodesDataSource.get(i.nodeId),r.editedLink=i;var s=(i.label.originalX+r.editedNode.x-1)*r.context.transformation.k+r.context.getZeroZeroTransformationPoint().x+r.context.transformation.x,u=(i.label.originalY+r.editedNode.y+4)*r.context.transformation.k+r.context.getZeroZeroTransformationPoint().y+r.context.transformation.y;r.leftPosition=s.toString()+"px",r.topPosition=u.toString()+"px",r.temporaryTextElement.nativeElement.innerText=i.label.text;for(var p=[],m=0,C=i.label.style.split(";");m<C.length;m++){var P=C[m];p.push({property:P.split(": ")[0],value:P.split(": ")[1]})}var L={font_family:p.find(function(Y){return"font-family"===Y.property})?p.find(function(Y){return"font-family"===Y.property}).value:"TypeWriter",font_size:p.find(function(Y){return"font-size"===Y.property})?Number(p.find(function(Y){return"font-size"===Y.property}).value):10,font_weight:p.find(function(Y){return"font-weight"===Y.property})?p.find(function(Y){return"font-weight"===Y.property}).value:"normal"};L=r.fontFixer.fix(L),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"color",p.find(function(Y){return"fill"===Y.property})?p.find(function(Y){return"fill"===Y.property}).value:"#000000"),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"font-family",L.font_family),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"font-size",L.font_size+"pt"),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"font-weight",L.font_weight),r.textListener=function(){var Y=r.temporaryTextElement.nativeElement.innerText,te=r.linksDataSource.get(r.editedLink.linkId);te.nodes.find(function(de){return de.node_id===r.editedNode.node_id}).label.text=Y,r.linkService.updateLink(r.server,te).subscribe(function(de){t.selectAll("text.editingMode").attr("visibility","visible").classed("editingMode",!1),r.innerText="",r.temporaryTextElement.nativeElement.innerText="",r.temporaryTextElement.nativeElement.removeEventListener("focusout",r.textListener),r.clearStyle(),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"display","none")})},r.temporaryTextElement.nativeElement.addEventListener("focusout",r.textListener),r.temporaryTextElement.nativeElement.focus()})},n.prototype.activateTextEditingForDrawings=function(){var r=this,t=ni(this.svg);t.selectAll("text.text_element").on("dblclick",function(i,o,a){r.renderer.setStyle(r.temporaryTextElement.nativeElement,"display","initial"),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"transform","scale("+r.mapScaleService.getScale()+")"),r.editedElement=i,ni(a[o]).attr("visibility","hidden"),ni(a[o]).classed("editingMode",!0),r.editingDrawingId=a[o].parentElement.parentElement.getAttribute("drawing_id");var s=a[o].parentElement.getAttribute("transform").split(/\(|\)/),u=Number(s[1].split(/,/)[0])*r.context.transformation.k+r.context.getZeroZeroTransformationPoint().x+r.context.transformation.x,p=Number(s[1].split(/,/)[1])*r.context.transformation.k+r.context.getZeroZeroTransformationPoint().y+r.context.transformation.y;r.leftPosition=u.toString()+"px",r.topPosition=p.toString()+"px",r.temporaryTextElement.nativeElement.innerText=i.text,r.renderer.setStyle(r.temporaryTextElement.nativeElement,"color",i.fill),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"font-family",i.font_family),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"font-size",i.font_size+"pt"),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"font-weight",i.font_weight),r.textListener=function(){r.drawingsEventSource.textEdited.emit(new pme(r.editingDrawingId,r.temporaryTextElement.nativeElement.innerText.replace(/\n$/,""),r.editedElement)),t.selectAll("text.editingMode").attr("visibility","visible").classed("editingMode",!1),r.innerText="",r.temporaryTextElement.nativeElement.innerText="",r.temporaryTextElement.nativeElement.removeEventListener("focusout",r.textListener),r.clearStyle(),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"display","none")},r.temporaryTextElement.nativeElement.addEventListener("focusout",r.textListener),r.temporaryTextElement.nativeElement.focus()})},n.prototype.ngOnDestroy=function(){this.textAddingSubscription.unsubscribe()},n.prototype.clearStyle=function(){this.renderer.setStyle(this.temporaryTextElement.nativeElement,"color","#000000"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-family","Noto Sans"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-size","11pt"),this.renderer.setStyle(this.temporaryTextElement.nativeElement,"font-weight","bold")},n.\u0275fac=function(t){return new(t||n)(e.Y36(fc),e.Y36(GS),e.Y36(eu),e.Y36(e.Qsj),e.Y36(yy),e.Y36(hc),e.Y36(rh.F),e.Y36(wa.G),e.Y36(dc),e.Y36(cc),e.Y36(e.R0b))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-text-editor"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Ime,5),2&t)&&(e.iGM(o=e.CRH())&&(i.temporaryTextElement=o.first))},inputs:{svg:"svg",server:"server"},decls:3,vars:5,consts:[["id","temporaryElement","contenteditable","true",1,"temporaryElement"],["temporaryTextElement",""]],template:function(t,i){1&t&&(e.TgZ(0,"div",0,1),e._uU(2),e.qZA()),2&t&&(e.Udp("top",i.topPosition)("left",i.leftPosition),e.xp6(2),e.hij(" ",i.innerText,"\n"))},styles:['.temporaryElement[_ngcontent-%COMP%]{padding-left:4px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:absolute;z-index:99;font-family:"Noto Sans";font-size:11pt;font-weight:bold;color:#000}']}),n}(),YS=function(){function n(){this.created=new e.vpe,this.interfaceDragged=new e.vpe}return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Nme=function(){function n(r,t,i,o,a,s,u,p,m,C,P){this.nodesWidget=r,this.drawingsWidget=t,this.linksWidget=i,this.labelWidget=o,this.interfaceWidget=a,this.selectionManager=s,this.nodesEventSource=u,this.drawingsEventSource=p,this.graphDataManager=m,this.linksEventSource=C,this.mapSettingsService=P,this.isMapLocked=!1}return n.prototype.ngOnInit=function(){var r=this,t=ni(this.svg);this.mapSettingsSubscription=this.mapSettingsService.isMapLocked.subscribe(function(i){r.isMapLocked=i}),this.start=(0,go.T)(this.nodesWidget.draggable.start,this.drawingsWidget.draggable.start,this.labelWidget.draggable.start,this.interfaceWidget.draggable.start).subscribe(function(i){var o=r.selectionManager.getSelected();i.datum instanceof fv&&0===o.filter(function(a){return a instanceof fv&&a.id===i.datum.id}).length&&r.selectionManager.setSelected([i.datum]),i.datum instanceof Cp&&0===o.filter(function(a){return a instanceof Cp&&a.id===i.datum.id}).length&&r.selectionManager.setSelected([i.datum]),i.datum instanceof my&&0===o.filter(function(a){return a instanceof my&&a.id===i.datum.id}).length&&r.selectionManager.setSelected([i.datum]),i.datum instanceof HS&&0===o.filter(function(a){return a instanceof HS&&a.id===i.datum.id}).length&&r.selectionManager.setSelected([i.datum])}),this.drag=(0,go.T)(this.nodesWidget.draggable.drag,this.drawingsWidget.draggable.drag,this.labelWidget.draggable.drag,this.interfaceWidget.draggable.drag).subscribe(function(i){if(!r.isMapLocked){var o=r.selectionManager.getSelected(),a=o.filter(function(Y){return Y instanceof fv}),s=a.filter(function(Y){return Y.locked}),u=a.filter(function(Y){return!Y.locked});u.forEach(function(Y){Y.x+=i.dx,Y.y+=i.dy,r.nodesWidget.redrawNode(t,Y),r.graphDataManager.getLinks().filter(function(de){return void 0!==de.target&&de.target.id===Y.id||void 0!==de.source&&de.source.id===Y.id}).forEach(function(de){r.linksWidget.redrawLink(t,de)})}),o.filter(function(Y){return Y instanceof Cp}).filter(function(Y){return!Y.locked}).forEach(function(Y){Y.x+=i.dx,Y.y+=i.dy,r.drawingsWidget.redrawDrawing(t,Y)}),o.filter(function(Y){return Y instanceof my}).filter(function(Y){return 0===s.filter(function(te){return te.id===Y.nodeId}).length}).forEach(function(Y){if(!(u.filter(function(Me){return Me.id===Y.nodeId}).length>0)){var de=r.graphDataManager.getNodes().filter(function(Me){return Me.id===Y.nodeId})[0];de.label.x+=i.dx,de.label.y+=i.dy,r.labelWidget.redrawLabel(t,Y)}}),o.filter(function(Y){return Y instanceof HS}).filter(function(Y){return 0===s.filter(function(te){return te.id===Y.nodeId}).length}).forEach(function(Y){if(!(u.filter(function(Me){return Me.id===Y.nodeId}).length>0)){var de=r.graphDataManager.getLinks().filter(function(Me){return Me.nodes[0].id===Y.id||Me.nodes[1].id===Y.id})[0];de.nodes[0].id===Y.id&&(de.nodes[0].label.x+=i.dx,de.nodes[0].label.y+=i.dy),de.nodes[1].id===Y.id&&(de.nodes[1].label.x+=i.dx,de.nodes[1].label.y+=i.dy),r.linksWidget.redrawLink(t,de)}})}}),this.end=(0,go.T)(this.nodesWidget.draggable.end,this.drawingsWidget.draggable.end,this.labelWidget.draggable.end,this.interfaceWidget.draggable.end).subscribe(function(i){if(!r.isMapLocked){var o=r.selectionManager.getSelected(),a=o.filter(function(Y){return Y instanceof fv}),s=a.filter(function(Y){return Y.locked}),u=a.filter(function(Y){return!Y.locked});u.forEach(function(Y){r.nodesEventSource.dragged.emit(new _y(Y,i.dx,i.dy))}),o.filter(function(Y){return Y instanceof Cp}).filter(function(Y){return!Y.locked}).forEach(function(Y){r.drawingsEventSource.dragged.emit(new _y(Y,i.dx,i.dy))}),o.filter(function(Y){return Y instanceof my}).filter(function(Y){return 0===s.filter(function(te){return te.id===Y.nodeId}).length}).forEach(function(Y){u.filter(function(de){return de.id===Y.nodeId}).length>0||r.nodesEventSource.labelDragged.emit(new _y(Y,i.dx,i.dy))}),o.filter(function(Y){return Y instanceof HS}).filter(function(Y){return 0===s.filter(function(te){return te.id===Y.nodeId}).length}).forEach(function(Y){u.filter(function(de){return de.id===Y.nodeId}).length>0||r.linksEventSource.interfaceDragged.emit(new _y(Y,i.dx,i.dy))})}})},n.prototype.ngOnDestroy=function(){this.start.unsubscribe(),this.drag.unsubscribe(),this.end.unsubscribe(),this.mapSettingsSubscription.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(O2),e.Y36(WS),e.Y36(DL),e.Y36(D2),e.Y36(jS),e.Y36(dc),e.Y36(mv),e.Y36(fc),e.Y36(vy),e.Y36(YS),e.Y36(Ou))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-draggable-selection"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),Zme=["svg"],Lme=["textEditor"],Gj=function(){function n(r,t,i,o,a,s,u,p,m,C,P,L,G){this.graphDataManager=r,this.context=t,this.mapChangeDetectorRef=i,this.canvasSizeDetector=o,this.mapSettings=a,this.element=s,this.interfaceLabelWidget=u,this.selectionToolWidget=p,this.movingToolWidget=m,this.graphLayout=C,this.toolsService=P,this.mapScaleService=L,this.mapSettingsService=G,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.width=1500,this.height=600,this.subscriptions=[],this.settings={show_interface_labels:!0},this.gridVisibility=0,this.nodeGridX=0,this.nodeGridY=0,this.drawingGridX=0,this.drawingGridY=0,this.parentNativeElement=s.nativeElement}return Object.defineProperty(n.prototype,"showInterfaceLabels",{set:function(r){r&&!this.mapSettingsService.integrateLinkLabelsToLinks?(this.settings.show_interface_labels=!0,this.interfaceLabelWidget.setEnabled(!0)):(this.settings.show_interface_labels=!1,this.interfaceLabelWidget.setEnabled(!1)),this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"readonly",{set:function(r){this.mapSettings.isReadOnly=r},enumerable:!1,configurable:!0}),n.prototype.resize=function(r){if(r)this.svg.attr("height",window.innerHeight+window.scrollY-16);else{var t=window.innerHeight-16;this.svg.attr("height",this.height>t?this.height:t)}},n.prototype.ngOnChanges=function(r){(r.width&&!r.width.isFirstChange()||r.height&&!r.height.isFirstChange()||r.drawings&&!r.drawings.isFirstChange()||r.nodes&&!r.nodes.isFirstChange()||r.links&&!r.links.isFirstChange()||r.symbols&&!r.symbols.isFirstChange())&&this.svg.empty&&!this.svg.empty()&&(r.symbols&&this.onSymbolsChange(r.symbols),this.changeLayout())},n.prototype.ngOnInit=function(){var r=this;null!==this.parentNativeElement&&this.createGraph(this.parentNativeElement),this.context.size=this.getSize(),this.onChangesDetected=this.mapChangeDetectorRef.changesDetected.subscribe(function(){r.mapChangeDetectorRef.hasBeenDrawn&&r.redraw()}),this.subscriptions.push(this.mapScaleService.scaleChangeEmitter.subscribe(function(t){return r.redraw()})),this.subscriptions.push(this.toolsService.isMovingToolActivated.subscribe(function(t){r.mapChangeDetectorRef.detectChanges()})),this.subscriptions.push(this.toolsService.isSelectionToolActivated.subscribe(function(t){r.selectionToolWidget.setEnabled(t),r.mapChangeDetectorRef.detectChanges()})),this.subscriptions.push(this.toolsService.isDrawLinkToolActivated.subscribe(function(t){r.drawLinkTool=t})),this.gridVisibility="true"===localStorage.getItem("gridVisibility")?1:0,this.mapSettingsService.isScrollDisabled.subscribe(function(t){return r.resize(t)})},n.prototype.ngOnDestroy=function(){this.graphLayout.disconnect(this.svg),this.onChangesDetected.unsubscribe(),this.subscriptions.forEach(function(r){r.unsubscribe()})},n.prototype.applyMapSettingsChanges=function(){this.redraw()},n.prototype.createGraph=function(r){var t=ni(r);this.svg=t.select("svg"),this.graphLayout.connect(this.svg,this.context),this.graphLayout.draw(this.svg,this.context),this.mapChangeDetectorRef.hasBeenDrawn=!0},n.prototype.getSize=function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)},n.prototype.changeLayout=function(){null!=this.parentNativeElement&&(this.context.size=this.getSize()),this.redraw()},n.prototype.onSymbolsChange=function(r){this.graphDataManager.setSymbols(this.symbols)},n.prototype.redraw=function(){this.updateGrid(),this.graphDataManager.setNodes(this.nodes),this.graphDataManager.setLinks(this.links),this.graphDataManager.setDrawings(this.drawings),this.graphLayout.draw(this.svg,this.context),this.textEditor.activateTextEditingForDrawings(),this.textEditor.activateTextEditingForNodeLabels(),this.mapSettingsService.mapRenderedEmitter.emit(!0)},n.prototype.updateGrid=function(){this.project.grid_size&&this.project.grid_size>0&&(this.nodeGridX=this.project.scene_width/2-Math.floor(this.project.scene_width/2/this.project.grid_size)*this.project.grid_size),this.project.grid_size&&this.project.grid_size>0&&(this.nodeGridY=this.project.scene_height/2-Math.floor(this.project.scene_height/2/this.project.grid_size)*this.project.grid_size),this.project.drawing_grid_size&&this.project.drawing_grid_size>0&&(this.drawingGridX=this.project.scene_width/2-Math.floor(this.project.scene_width/2/this.project.drawing_grid_size)*this.project.drawing_grid_size),this.project.drawing_grid_size&&this.project.drawing_grid_size>0&&(this.drawingGridY=this.project.scene_height/2-Math.floor(this.project.scene_height/2/this.project.drawing_grid_size)*this.project.drawing_grid_size)},n.prototype.onResize=function(r){this.changeLayout()},n.\u0275fac=function(t){return new(t||n)(e.Y36(vy),e.Y36(eu),e.Y36(qS),e.Y36(CL),e.Y36(gy),e.Y36(e.SBq),e.Y36(jS),e.Y36(A2),e.Y36(xL),e.Y36(OL),e.Y36(GS),e.Y36(yy),e.Y36(Ou))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-d3-map"]],viewQuery:function(t,i){if(1&t&&(e.Gf(Zme,5),e.Gf(Lme,5)),2&t){var o=void 0;e.iGM(o=e.CRH())&&(i.svgRef=o.first),e.iGM(o=e.CRH())&&(i.textEditor=o.first)}},hostBindings:function(t,i){1&t&&e.NdJ("resize",function(a){return i.onResize(a)},!1,e.Jf7)},inputs:{nodes:"nodes",links:"links",drawings:"drawings",symbols:"symbols",project:"project",server:"server",width:"width",height:"height",showInterfaceLabels:["show-interface-labels","showInterfaceLabels"],readonly:"readonly"},features:[e.TTD],decls:19,vars:18,consts:[["id","map","preserveAspectRatio","none","movingCanvas","","zoomingCanvas","",1,"map"],["svg",""],["id","grayscale"],["id","feGrayscale","type","saturate","values","0"],["id","gridDrawing","patternUnits","userSpaceOnUse"],["fill","none","stroke","silver"],["id","gridNode","patternUnits","userSpaceOnUse"],["fill","none","stroke","DarkSlateGray"],["width","100%","height","100%","fill","url(#gridDrawing)"],["width","100%","height","100%","fill","url(#gridNode)"],[3,"svg"],[3,"server","svg"],["textEditor",""]],template:function(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"svg",0,1),e.TgZ(2,"filter",2),e._UZ(3,"feColorMatrix",3),e.qZA(),e.TgZ(4,"defs"),e.TgZ(5,"pattern",4),e._UZ(6,"path",5),e.qZA(),e.qZA(),e.TgZ(7,"defs"),e.TgZ(8,"pattern",6),e._UZ(9,"path",7),e.qZA(),e.qZA(),e._UZ(10,"rect",8),e._UZ(11,"rect",9),e.qZA(),e.kcU(),e._UZ(12,"app-drawing-adding",10),e._UZ(13,"app-drawing-resizing"),e._UZ(14,"app-selection-control"),e._UZ(15,"app-selection-select"),e._UZ(16,"app-text-editor",11,12),e._UZ(18,"app-draggable-selection",10)),2&t){var o=e.MAs(1);e.xp6(5),e.uIk("x",i.drawingGridX)("y",i.drawingGridY)("width",i.project.drawing_grid_size)("height",i.project.drawing_grid_size),e.xp6(1),e.zWS("d","M ",i.project.drawing_grid_size," 0 L 0 0 0 ",i.project.drawing_grid_size,""),e.uIk("stroke-width",i.gridVisibility),e.xp6(2),e.uIk("x",i.nodeGridX)("y",i.nodeGridY)("width",i.project.grid_size)("height",i.project.grid_size),e.xp6(1),e.zWS("d","M ",i.project.grid_size," 0 L 0 0 0 ",i.project.grid_size,""),e.uIk("stroke-width",i.gridVisibility),e.xp6(3),e.Q6J("svg",o),e.xp6(4),e.Q6J("server",i.server)("svg",o),e.xp6(2),e.Q6J("svg",o)}},directives:[Eme,kme,Mme,Dme,Ome,Pme,Rme,Nme],styles:["svg[_ngcontent-%COMP%]{display:block}"]}),n}(),Fme=function(n,r){return function(t){return(0,yS.H)(500).pipe((0,Zs.w)(function(){return r.list(n)}),(0,Er.U)(function(i){return i.find(function(o){return o.name===t.value})?{projectExist:!0}:null}))}};function Bme(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"button",2),e.NdJ("click",function(){return e.CHM(t),e.oxw().onNoClick()}),e._uU(2,"No"),e.qZA(),e.TgZ(3,"button",3),e.NdJ("click",function(){return e.CHM(t),e.oxw().onYesClick()}),e._uU(4," Yes "),e.qZA(),e.qZA()}}function Ume(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"button",4),e.NdJ("click",function(){return e.CHM(t),e.oxw().onNoClick()}),e._uU(2,"Ok"),e.qZA(),e.qZA()}}var Yj=function(){function n(r,t){this.dialogRef=r,this.data=t,this.existingProject=t.existingProject}return n.prototype.ngOnInit=function(){"opened"===this.existingProject.status?(this.confirmationMessage="Project "+this.existingProject.name+" is open. You can not overwrite it.",this.isOpen=!0):this.confirmationMessage="Project "+this.existingProject.name+" already exist, overwrite it?"},n.prototype.onNoClick=function(){this.dialogRef.close(!1)},n.prototype.onYesClick=function(){this.dialogRef.close(!0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(sd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-import-project-dialog"]],decls:4,vars:3,consts:[["mat-dialog-actions","",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"],["mat-button","","color","accent",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA(),e.YNc(2,Bme,5,0,"div",0),e.YNc(3,Ume,3,0,"div",0)),2&t&&(e.xp6(1),e.Oqu(i.confirmationMessage),e.xp6(1),e.Q6J("ngIf",!i.isOpen),e.xp6(1),e.Q6J("ngIf",i.isOpen))},directives:[kt.O5,$r,An],styles:[""]}),n}(),Sp=function(){function n(){}return n.prototype.get=function(r){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(r.value)?{invalidName:!0}:null},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),ud=f(14200);function Hme(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is required"),e.qZA())}function Vme(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is incorrect"),e.qZA())}function qme(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project with this name exists"),e.qZA())}var jme=function(n){return{"is-invalid":n}},Jj=function(){function n(r,t,i,o,a,s,u){this.dialogRef=r,this.router=t,this.dialog=i,this.projectService=o,this.toasterService=a,this.formBuilder=s,this.projectNameValidator=u,this.onAddProject=new e.vpe}return n.prototype.ngOnInit=function(){this.projectNameForm=this.formBuilder.group({projectName:new re.NI(null,[re.kI.required,this.projectNameValidator.get],[Fme(this.server,this.projectService)])})},Object.defineProperty(n.prototype,"form",{get:function(){return this.projectNameForm.controls},enumerable:!1,configurable:!0}),n.prototype.onAddClick=function(){var r=this;this.projectNameForm.invalid||this.projectService.list(this.server).subscribe(function(t){var i=r.projectNameForm.controls.projectName.value,o=t.find(function(a){return a.name===i});o?r.openConfirmationDialog(o):r.addProject()})},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.addProject=function(){var r=this;this.uuid=(0,Ta.v4)(),this.projectService.add(this.server,this.projectNameForm.controls.projectName.value,this.uuid).subscribe(function(t){r.dialogRef.close(),r.toasterService.success("Project "+t.name+" added"),r.router.navigate(["/server",r.server.id,"project",t.project_id])})},n.prototype.onKeyDown=function(r){"Enter"===r.key&&this.onAddClick()},n.prototype.openConfirmationDialog=function(r){var t=this;this.dialog.open(Yj,{width:"300px",height:"150px",data:{existingProject:r},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){o&&t.projectService.close(t.server,r.project_id).subscribe(function(){t.projectService.delete(t.server,r.project_id).subscribe(function(){t.addProject()})})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(xr),e.Y36(to),e.Y36(ud.Y),e.Y36(Xn),e.Y36(re.qu),e.Y36(Sp))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-blank-project-dialog"]],features:[e._Bn([Sp])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Create new project"),e.qZA(),e.TgZ(2,"form",1),e.TgZ(3,"mat-form-field",2),e.TgZ(4,"input",3),e.NdJ("keydown",function(a){return i.onKeyDown(a)}),e.qZA(),e.YNc(5,Hme,2,0,"mat-error",4),e.YNc(6,Vme,2,0,"mat-error",4),e.YNc(7,qme,2,0,"mat-error",4),e.qZA(),e.TgZ(8,"div",5),e.TgZ(9,"button",6),e.NdJ("click",function(){return i.onNoClick()}),e._uU(10,"Cancel"),e.qZA(),e.TgZ(11,"button",7),e.NdJ("click",function(){return i.onAddClick()}),e._uU(12," Add project "),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Q6J("formGroup",i.projectNameForm),e.xp6(2),e.Q6J("ngClass",e.VKq(5,jme,null==i.form.projectName?null:i.form.projectName.errors)),e.xp6(1),e.Q6J("ngIf",(null==i.form.projectName?null:i.form.projectName.touched)&&(null==i.form.projectName?null:i.form.projectName.errors)&&(null==i.form.projectName?null:i.form.projectName.errors.required)),e.xp6(1),e.Q6J("ngIf",(null==i.form.projectName?null:i.form.projectName.errors)&&(null==i.form.projectName?null:i.form.projectName.errors.invalidName)),e.xp6(1),e.Q6J("ngIf",(null==i.form.projectName?null:i.form.projectName.errors)&&(null==i.form.projectName?null:i.form.projectName.errors.projectExist)))},directives:[ti,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,kt.mk,kt.O5,$r,An,Hn.TO],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),n}();function zme(n,r){}var Wme=new e.OlP("MatBottomSheetData"),PL=function n(){(0,g.Z)(this,n),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0},Gme={bottomSheetState:(0,on.X$)("state",[(0,on.SB)("void, hidden",(0,on.oB)({transform:"translateY(100%)"})),(0,on.SB)("visible",(0,on.oB)({transform:"translateY(0%)"})),(0,on.eR)("visible => void, visible => hidden",(0,on.jt)("".concat(un.mZ.COMPLEX," ").concat(un.yN.ACCELERATION_CURVE))),(0,on.eR)("void => visible",(0,on.jt)("".concat(un.mZ.EXITING," ").concat(un.yN.DECELERATION_CURVE)))])},Yme=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p,m){var C;return(0,g.Z)(this,i),(C=t.call(this))._elementRef=o,C._changeDetectorRef=a,C._focusTrapFactory=s,C.bottomSheetConfig=m,C._animationState="void",C._animationStateChanged=new e.vpe,C._elementFocusedBeforeOpened=null,C.attachDomPortal=function(P){return C._validatePortalAttached(),C._setPanelClass(),C._savePreviouslyFocusedElement(),C._portalOutlet.attachDomPortal(P)},C._document=p,C._breakpointSubscription=u.observe([$f_Medium,$f_Large,"(min-width: 1920px)"]).subscribe(function(){C._toggleClass("mat-bottom-sheet-container-medium",u.isMatched($f_Medium)),C._toggleClass("mat-bottom-sheet-container-large",u.isMatched($f_Large)),C._toggleClass("mat-bottom-sheet-container-xlarge",u.isMatched("(min-width: 1920px)"))}),C}return(0,T.Z)(i,[{key:"attachComponentPortal",value:function(a){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(a)}},{key:"attachTemplatePortal",value:function(a){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(a)}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}},{key:"_onAnimationDone",value:function(a){"hidden"===a.toState?this._restoreFocus():"visible"===a.toState&&this._trapFocus(),this._animationStateChanged.emit(a)}},{key:"_onAnimationStart",value:function(a){this._animationStateChanged.emit(a)}},{key:"_toggleClass",value:function(a,s){var u=this._elementRef.nativeElement.classList;s?u.add(a):u.remove(a)}},{key:"_validatePortalAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_setPanelClass",value:function(){var a=this._elementRef.nativeElement,s=this.bottomSheetConfig.panelClass;Array.isArray(s)?s.forEach(function(u){return a.classList.add(u)}):s&&a.classList.add(s)}},{key:"_trapFocus",value:function(){var a=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(a)),this.bottomSheetConfig.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var s=(0,Xr.ht)();s!==a&&!a.contains(s)&&a.focus()}}},{key:"_restoreFocus",value:function(){var a=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&a&&"function"==typeof a.focus){var s=(0,Xr.ht)(),u=this._elementRef.nativeElement;(!s||s===this._document.body||s===u||u.contains(s))&&a.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var a=this;this._elementFocusedBeforeOpened=(0,Xr.ht)(),this._elementRef.nativeElement.focus&&Promise.resolve().then(function(){return a._elementRef.nativeElement.focus()})}}]),i}(qi.en);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ai.qV),e.Y36(u2),e.Y36(kt.K0,8),e.Y36(PL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(t,i){var o;1&t&&e.Gf(qi.Pl,7),2&t&&e.iGM(o=e.CRH())&&(i._portalOutlet=o.first)},hostAttrs:["tabindex","-1","role","dialog","aria-modal","true",1,"mat-bottom-sheet-container"],hostVars:2,hostBindings:function(t,i){1&t&&e.WFA("@state.start",function(a){return i._onAnimationStart(a)})("@state.done",function(a){return i._onAnimationDone(a)}),2&t&&(e.uIk("aria-label",null==i.bottomSheetConfig?null:i.bottomSheetConfig.ariaLabel),e.d8E("@state",i._animationState))},features:[e.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){1&t&&e.YNc(0,zme,0,0,"ng-template",0)},directives:[qi.Pl],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\n"],encapsulation:2,data:{animation:[Gme.bottomSheetState]}}),n}(),Qj=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[so.U8,un.BQ,qi.eL],un.BQ]}),n}(),R2=function(){function n(r,t){var i=this;(0,g.Z)(this,n),this._overlayRef=t,this._afterDismissed=new Pn.xQ,this._afterOpened=new Pn.xQ,this.containerInstance=r,this.disableClose=r.bottomSheetConfig.disableClose,r._animationStateChanged.pipe((0,mi.h)(function(o){return"done"===o.phaseName&&"visible"===o.toState}),(0,$i.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),r._animationStateChanged.pipe((0,mi.h)(function(o){return"done"===o.phaseName&&"hidden"===o.toState}),(0,$i.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),t.dispose()}),t.detachments().pipe((0,$i.q)(1)).subscribe(function(){i._afterDismissed.next(i._result),i._afterDismissed.complete()}),(0,go.T)(t.backdropClick(),t.keydownEvents().pipe((0,mi.h)(function(o){return o.keyCode===zr.hY}))).subscribe(function(o){!i.disableClose&&("keydown"!==o.type||!(0,zr.Vb)(o))&&(o.preventDefault(),i.dismiss())})}return(0,T.Z)(n,[{key:"dismiss",value:function(t){var i=this;this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe((0,mi.h)(function(o){return"start"===o.phaseName}),(0,$i.q)(1)).subscribe(function(o){i._closeFallbackTimeout=setTimeout(function(){i._overlayRef.dispose()},o.totalTime+100),i._overlayRef.detachBackdrop()}),this._result=t,this.containerInstance.exit())}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}}]),n}(),Kj=new e.OlP("mat-bottom-sheet-default-options"),JS=function(){var n=function(){function r(t,i,o,a){(0,g.Z)(this,r),this._overlay=t,this._injector=i,this._parentBottomSheet=o,this._defaultOptions=a,this._bottomSheetRefAtThisLevel=null}return(0,T.Z)(r,[{key:"_openedBottomSheetRef",get:function(){var i=this._parentBottomSheet;return i?i._openedBottomSheetRef:this._bottomSheetRefAtThisLevel},set:function(i){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=i:this._bottomSheetRefAtThisLevel=i}},{key:"open",value:function(i,o){var a=this,s=function(n,r){return Object.assign(Object.assign({},n),r)}(this._defaultOptions||new PL,o),u=this._createOverlay(s),p=this._attachContainer(u,s),m=new R2(p,u);if(i instanceof e.Rgc)p.attachTemplatePortal(new qi.UE(i,null,{$implicit:s.data,bottomSheetRef:m}));else{var C=new qi.C5(i,void 0,this._createInjector(s,m)),P=p.attachComponentPortal(C);m.instance=P.instance}return m.afterDismissed().subscribe(function(){a._openedBottomSheetRef==m&&(a._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(function(){return m.containerInstance.enter()}),this._openedBottomSheetRef.dismiss()):m.containerInstance.enter(),this._openedBottomSheetRef=m,m}},{key:"dismiss",value:function(i){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(i)}},{key:"ngOnDestroy",value:function(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}},{key:"_attachContainer",value:function(i,o){var s=e.zs3.create({parent:o&&o.viewContainerRef&&o.viewContainerRef.injector||this._injector,providers:[{provide:PL,useValue:o}]}),u=new qi.C5(Yme,o.viewContainerRef,s);return i.attach(u).instance}},{key:"_createOverlay",value:function(i){var o=new so.X_({direction:i.direction,hasBackdrop:i.hasBackdrop,disposeOnNavigation:i.closeOnNavigation,maxWidth:"100%",scrollStrategy:i.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return i.backdropClass&&(o.backdropClass=i.backdropClass),this._overlay.create(o)}},{key:"_createInjector",value:function(i,o){var a=i&&i.viewContainerRef&&i.viewContainerRef.injector,s=[{provide:R2,useValue:o},{provide:Wme,useValue:i.data}];return i.direction&&(!a||!a.get(Na.Is,null,e.XFs.Optional))&&s.push({provide:Na.Is,useValue:{value:i.direction,change:(0,rr.of)()}}),e.zs3.create({parent:a||this._injector,providers:s})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(so.aV),e.LFG(e.zs3),e.LFG(n,12),e.LFG(Kj,8))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(so.aV),e.LFG(e.gxx),e.LFG(n,12),e.LFG(Kj,8))},token:n,providedIn:Qj}),n}(),Qme=function(n){return{lightTheme:n}},ih=function(){function n(r,t){this.bottomSheetRef=r,this.themeService=t,this.message="",this.isLightThemeEnabled=!1}return n.prototype.ngOnInit=function(){this.isLightThemeEnabled="light"===this.themeService.getActualTheme()},n.prototype.onNoClick=function(){this.bottomSheetRef.dismiss(!1)},n.prototype.onYesClick=function(){this.bottomSheetRef.dismiss(!0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(R2),e.Y36(sc.f))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-confirmation-bottomsheet"]],decls:8,vars:4,consts:[[1,"dialogWrapper",3,"ngClass"],[1,"title"],["mat-button","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.TgZ(4,"button",2),e.NdJ("click",function(){return i.onNoClick()}),e._uU(5,"No"),e.qZA(),e.TgZ(6,"button",2),e.NdJ("click",function(){return i.onYesClick()}),e._uU(7,"Yes"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngClass",e.VKq(2,Qme,i.isLightThemeEnabled)),e.xp6(2),e.Oqu(i.message))},directives:[kt.mk,An],styles:[".dialogWrapper[_ngcontent-%COMP%]{background-color:#263238;padding:10px 20px;margin-bottom:-8px;display:flex;justify-content:space-between;align-items:center}.lightTheme[_ngcontent-%COMP%]{background-color:#fff!important}.title[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]}),n}(),N2=function(){function n(){}return n.prototype.get=function(r){return+r.value>=0?null:{negativeValue:!0}},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Eo=f(88802);function Kme(n,r){1&n&&(e.TgZ(0,"th",26),e._uU(1,"Name"),e.qZA())}function Xme(n,r){if(1&n&&(e.TgZ(0,"td",27),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.name)}}function $me(n,r){1&n&&(e.TgZ(0,"th",26),e._uU(1,"Value"),e.qZA())}function eve(n,r){if(1&n&&(e.TgZ(0,"td",27),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.value)}}function tve(n,r){1&n&&(e.TgZ(0,"th",26),e._uU(1,"Actions"),e.qZA())}function nve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"td",27),e.TgZ(1,"button",28),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw().deleteVariable(a)}),e.TgZ(2,"mat-icon",29),e._uU(3,"delete"),e.qZA(),e.qZA(),e.qZA()}}function rve(n,r){1&n&&e._UZ(0,"tr",30)}function ive(n,r){1&n&&e._UZ(0,"tr",31)}var Z2=function(){return{standalone:!0}},ove=function(){function n(r,t,i,o,a){this.dialogRef=r,this.formBuilder=t,this.projectService=i,this.toasterService=o,this.nonNegativeValidator=a,this.displayedColumns=["name","value","actions"],this.variables=[],this.formGroup=this.formBuilder.group({projectName:new re.NI("",[re.kI.required]),width:new re.NI("",[re.kI.required,a.get]),height:new re.NI("",[re.kI.required,a.get]),nodeGridSize:new re.NI("",[re.kI.required,a.get]),drawingGridSize:new re.NI("",[re.kI.required,a.get])}),this.variableFormGroup=this.formBuilder.group({name:new re.NI("",[re.kI.required]),value:new re.NI("",[re.kI.required])})}return n.prototype.ngOnInit=function(){var r=this;this.formGroup.controls.projectName.setValue(this.project.name),this.formGroup.controls.width.setValue(this.project.scene_width),this.formGroup.controls.height.setValue(this.project.scene_height),this.formGroup.controls.nodeGridSize.setValue(this.project.grid_size),this.formGroup.controls.drawingGridSize.setValue(this.project.drawing_grid_size),this.project.variables&&this.project.variables.forEach(function(t){return r.variables.push(t)}),this.auto_close=!this.project.auto_close},n.prototype.addVariable=function(){if(this.variableFormGroup.valid){var r={name:this.variableFormGroup.get("name").value,value:this.variableFormGroup.get("value").value};this.variables=this.variables.concat([r])}else this.toasterService.error("Fill all required fields with correct values.")},n.prototype.deleteVariable=function(r){this.variables=this.variables.filter(function(t){return t!==r})},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.onYesClick=function(){var r=this;this.formGroup.valid?(this.project.name=this.formGroup.get("projectName").value,this.project.scene_width=this.formGroup.get("width").value,this.project.scene_height=this.formGroup.get("height").value,this.project.drawing_grid_size=this.formGroup.get("drawingGridSize").value,this.project.grid_size=this.formGroup.get("nodeGridSize").value,this.project.variables=this.variables,this.project.auto_close=!this.auto_close,this.projectService.update(this.server,this.project).subscribe(function(t){r.toasterService.success("Project "+t.name+" updated."),r.onNoClick()})):this.toasterService.error("Fill all required fields with correct values.")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(re.qu),e.Y36(ud.Y),e.Y36(Xn),e.Y36(N2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-edit-project-dialog"]],decls:49,vars:17,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["label","General"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","projectName","placeholder","Project name","type","text"],["matInput","","formControlName","width","placeholder","Scene width (px)","type","number"],["matInput","","formControlName","height","placeholder","Scene height (px)","type","number"],["matInput","","formControlName","nodeGridSize","placeholder","Node grid size","type","number"],["matInput","","formControlName","drawingGridSize","placeholder","Drawing grid size","type","number"],[3,"ngModelOptions","ngModel","ngModelChange"],["label","Global variables"],["matInput","","formControlName","name","placeholder","Name","type","text"],["matInput","","formControlName","value","placeholder","Value","type","text"],["mat-button","","mat-raised-button","","color","primary",1,"form-field",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete variable","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete adapter"],["mat-header-row",""],["mat-row",""]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Edit project"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"mat-tab-group"),e.TgZ(4,"mat-tab",2),e.TgZ(5,"form",3),e.TgZ(6,"mat-form-field",4),e._UZ(7,"input",5),e.qZA(),e.TgZ(8,"mat-form-field",4),e._UZ(9,"input",6),e.qZA(),e.TgZ(10,"mat-form-field",4),e._UZ(11,"input",7),e.qZA(),e.TgZ(12,"mat-form-field",4),e._UZ(13,"input",8),e.qZA(),e.TgZ(14,"mat-form-field",4),e._UZ(15,"input",9),e.qZA(),e.qZA(),e.TgZ(16,"mat-checkbox",10),e.NdJ("ngModelChange",function(a){return i.project.auto_open=a}),e._uU(17," Open this project in the background when GNS3 server starts "),e.qZA(),e.TgZ(18,"mat-checkbox",10),e.NdJ("ngModelChange",function(a){return i.project.auto_start=a}),e._uU(19," Start all nodes when this project is opened "),e.qZA(),e.TgZ(20,"mat-checkbox",10),e.NdJ("ngModelChange",function(a){return i.auto_close=a}),e._uU(21," Leave this project running in the background after closing "),e.qZA(),e.TgZ(22,"mat-checkbox",10),e.NdJ("ngModelChange",function(a){return i.project.show_interface_labels=a}),e._uU(23," Show interface labels at start "),e.qZA(),e.qZA(),e.TgZ(24,"mat-tab",11),e.TgZ(25,"form",3),e.TgZ(26,"mat-form-field",4),e._UZ(27,"input",12),e.qZA(),e.TgZ(28,"mat-form-field",4),e._UZ(29,"input",13),e.qZA(),e.qZA(),e.TgZ(30,"button",14),e.NdJ("click",function(){return i.addVariable()}),e._uU(31," Add variable "),e.qZA(),e.TgZ(32,"table",15),e.ynx(33,16),e.YNc(34,Kme,2,0,"th",17),e.YNc(35,Xme,2,1,"td",18),e.BQk(),e.ynx(36,19),e.YNc(37,$me,2,0,"th",17),e.YNc(38,eve,2,1,"td",18),e.BQk(),e.ynx(39,20),e.YNc(40,tve,2,0,"th",17),e.YNc(41,nve,4,0,"td",18),e.BQk(),e.YNc(42,rve,1,0,"tr",21),e.YNc(43,ive,1,0,"tr",22),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(44,"div",23),e.TgZ(45,"button",24),e.NdJ("click",function(){return i.onNoClick()}),e._uU(46,"Cancel"),e.qZA(),e.TgZ(47,"button",25),e.NdJ("click",function(){return i.onYesClick()}),e._uU(48,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("formGroup",i.formGroup),e.xp6(11),e.Q6J("ngModelOptions",e.DdM(13,Z2))("ngModel",i.project.auto_open),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(14,Z2))("ngModel",i.project.auto_start),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(15,Z2))("ngModel",i.auto_close),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(16,Z2))("ngModel",i.project.show_interface_labels),e.xp6(3),e.Q6J("formGroup",i.variableFormGroup),e.xp6(7),e.Q6J("dataSource",i.variables),e.xp6(10),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns))},directives:[ti,Eo.SP,Eo.uX,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,re.wV,Zo,re.On,An,Jl,dl,cl,ul,Ql,Kl,$r,pl,fl,Ja,sr,Xl,$l],styles:[".form-field[_ngcontent-%COMP%]{width:100%}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}"]}),n}();function ave(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is required"),e.qZA())}function sve(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is incorrect"),e.qZA())}var lve=function(n){return{empty:n}},uve=function(n){return{"is-invalid":n}},cve=function(n){return{width:n}},Xj=function(){function n(r,t,i,o,a,s){this.dialog=r,this.dialogRef=t,this.data=i,this.formBuilder=o,this.projectService=a,this.projectNameValidator=s,this.isImportEnabled=!1,this.isFinishEnabled=!1,this.isDeleteVisible=!1,this.resultMessage="The project is being imported... Please wait",this.submitted=!1,this.isFirstStepCompleted=!1,this.onImportProject=new e.vpe,this.projectNameForm=this.formBuilder.group({projectName:new re.NI(null,[re.kI.required,s.get])})}return n.prototype.ngOnInit=function(){var r=this;this.uploader=new tv({}),this.uploader.onAfterAddingFile=function(t){t.withCredentials=!1},this.uploader.onErrorItem=function(t,i,o,a){var s=JSON.parse(i);r.resultMessage="An error occured: "+s.message,r.isFinishEnabled=!0},this.uploader.onCompleteItem=function(t,i,o,a){r.onImportProject.emit(r.uuid),r.resultMessage="Project was imported succesfully!",r.isFinishEnabled=!0}},Object.defineProperty(n.prototype,"form",{get:function(){return this.projectNameForm.controls},enumerable:!1,configurable:!0}),n.prototype.uploadProjectFile=function(r){this.projectNameForm.controls.projectName.setValue(r.target.files[0].name.split(".")[0]),this.isImportEnabled=!0,this.isDeleteVisible=!0},n.prototype.onImportClick=function(){var r=this;this.projectNameForm.invalid?this.submitted=!0:this.projectService.list(this.server).subscribe(function(t){var i=r.projectNameForm.controls.projectName.value,o=t.find(function(a){return a.name===i});o?r.openConfirmationDialog(o):r.importProject()})},n.prototype.importProject=function(){var r=this.prepareUploadPath();this.uploader.queue.forEach(function(i){return i.url=r}),this.isFirstStepCompleted=!0,this.uploader.uploadItem(this.uploader.queue[0])},n.prototype.openConfirmationDialog=function(r){var t=this;this.dialog.open(Yj,{width:"300px",height:"150px",data:{existingProject:r},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){o&&t.projectService.close(t.server,r.project_id).subscribe(function(){t.projectService.delete(t.server,r.project_id).subscribe(function(){t.importProject()})})})},n.prototype.onNoClick=function(){this.uploader.cancelAll(),this.dialogRef.close()},n.prototype.onFinishClick=function(){this.dialogRef.close()},n.prototype.onDeleteClick=function(){this.uploader.queue.pop(),this.isImportEnabled=!1,this.isDeleteVisible=!1,this.projectNameForm.controls.projectName.setValue("")},n.prototype.prepareUploadPath=function(){return this.uuid=(0,Ta.v4)(),this.projectService.getUploadPath(this.server,this.uuid,this.projectNameForm.controls.projectName.value)},n.\u0275fac=function(t){return new(t||n)(e.Y36(to),e.Y36(Ur),e.Y36(sd),e.Y36(re.qu),e.Y36(ud.Y),e.Y36(Sp))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-import-project-dialog"]],features:[e._Bn([Sp])],decls:29,vars:19,consts:[["mat-dialog-title",""],[3,"hidden"],[1,"file-name-form",3,"formGroup"],["type","file","accept",".gns3project, .gns3p","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary","matTooltip","Import your .gns3p or .gns3project file","matTooltipClass","custom-tooltip",1,"file-button",3,"click"],[1,"file-name-form-field",3,"ngClass"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass"],[4,"ngIf"],[1,"delete-button",3,"hidden"],["color","primary",1,"delete-icon",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[1,"progress"],["role","progressbar",1,"progress-bar",3,"ngStyle"],[1,"result-message-box"]],template:function(t,i){if(1&t){var o=e.EpF();e.TgZ(0,"h1",0),e._uU(1,"Import project"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"form",2),e.TgZ(4,"input",3,4),e.NdJ("change",function(s){return i.uploadProjectFile(s)}),e.qZA(),e.TgZ(6,"button",5),e.NdJ("click",function(){return e.CHM(o),e.MAs(5).click()}),e._uU(7," Choose file "),e.qZA(),e.TgZ(8,"mat-form-field",6),e._UZ(9,"input",7),e.YNc(10,ave,2,0,"mat-error",8),e.YNc(11,sve,2,0,"mat-error",8),e.qZA(),e.TgZ(12,"button",9),e.TgZ(13,"mat-icon",10),e.NdJ("click",function(){return i.onDeleteClick()}),e._uU(14,"clear"),e.qZA(),e.qZA(),e.TgZ(15,"div",11),e.TgZ(16,"button",12),e.NdJ("click",function(){return i.onNoClick()}),e._uU(17,"Cancel"),e.qZA(),e.TgZ(18,"button",13),e.NdJ("click",function(){return i.onImportClick()}),e._uU(19," Import "),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",1),e.TgZ(21,"div",14),e._UZ(22,"div",15),e.qZA(),e.TgZ(23,"div",16),e.TgZ(24,"span"),e._uU(25),e.qZA(),e.qZA(),e.TgZ(26,"div",11),e.TgZ(27,"button",13),e.NdJ("click",function(){return i.onNoClick()}),e._uU(28," Finish "),e.qZA(),e.qZA(),e.qZA()}2&t&&(e.xp6(2),e.Q6J("hidden",i.isFirstStepCompleted),e.xp6(1),e.Q6J("formGroup",i.projectNameForm),e.xp6(1),e.Q6J("uploader",i.uploader),e.xp6(4),e.Q6J("ngClass",e.VKq(13,lve,!i.isDeleteVisible)),e.xp6(1),e.Q6J("ngClass",e.VKq(15,uve,i.form.projectName.errors)),e.xp6(1),e.Q6J("ngIf",i.form.projectName.errors&&i.form.projectName.errors.required),e.xp6(1),e.Q6J("ngIf",i.form.projectName.errors&&i.form.projectName.errors.invalidName),e.xp6(1),e.Q6J("hidden",!i.isDeleteVisible),e.xp6(6),e.Q6J("disabled",!i.isImportEnabled),e.xp6(2),e.Q6J("hidden",!i.isFirstStepCompleted),e.xp6(2),e.Q6J("ngStyle",e.VKq(17,cve,i.uploader.progress+"%")),e.xp6(3),e.Oqu(i.resultMessage),e.xp6(2),e.Q6J("disabled",!i.isFinishEnabled))},directives:[ti,re._Y,re.JL,re.sg,bS,An,Ja,Hn.KE,kt.mk,lr,re.Fj,re.JJ,re.u,kt.O5,sr,$r,kt.PC,Hn.TO],styles:['.non-visible[_ngcontent-%COMP%]{display:none}.file-button[_ngcontent-%COMP%]{width:100%;margin-top:5px;margin-bottom:10px;padding:0}.file-name-form[_ngcontent-%COMP%]{float:right;width:100%}.file-name-form-field[_ngcontent-%COMP%]{width:90%}.empty[_ngcontent-%COMP%]{width:100%}.delete-button[_ngcontent-%COMP%]{background:transparent;border:none;outline:0;width:10%}.delete-icon[_ngcontent-%COMP%]{vertical-align:"middle"}.result-message-box[_ngcontent-%COMP%]{margin-top:10px;text-align:center}.progress-bar[_ngcontent-%COMP%]{background-color:#0097a7}']}),n}(),dve=function(n){return{lightTheme:n}},$j=function(){function n(r,t){this.bottomSheetRef=r,this.themeService=t,this.projectMessage="",this.isLightThemeEnabled=!1}return n.prototype.ngOnInit=function(){this.isLightThemeEnabled="light"===this.themeService.getActualTheme()},n.prototype.onNoClick=function(){this.bottomSheetRef.dismiss(!1)},n.prototype.onYesClick=function(){this.bottomSheetRef.dismiss(!0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(R2),e.Y36(sc.f))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-navigation-dialog"]],decls:8,vars:4,consts:[[1,"dialogWrapper",3,"ngClass"],[1,"title"],["mat-button","",3,"click"],["mat-button","",1,"confirmButton",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.TgZ(4,"button",2),e.NdJ("click",function(){return i.onNoClick()}),e._uU(5,"No"),e.qZA(),e.TgZ(6,"button",3),e.NdJ("click",function(){return i.onYesClick()}),e._uU(7,"Yes"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("ngClass",e.VKq(2,dve,i.isLightThemeEnabled)),e.xp6(2),e.hij("Do you want to navigate to ",i.projectMessage,"?"))},directives:[kt.mk,An],styles:[".dialogWrapper[_ngcontent-%COMP%]{background-color:#263238;padding:10px 20px;margin-bottom:-8px;display:flex;justify-content:space-between;align-items:center}.lightTheme[_ngcontent-%COMP%]{background-color:#fff!important}.title[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]}),n}();function pve(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is required"),e.qZA())}function fve(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is incorrect"),e.qZA())}var hve=function(n){return{"is-invalid":n}},mve=function(){function n(r,t,i,o,a,s){this.dialogRef=r,this.projectService=t,this.nodesDataSource=i,this.toasterService=o,this.formBuilder=a,this.projectNameValidator=s,this.onAddProject=new e.vpe,this.projectNameForm=this.formBuilder.group({projectName:new re.NI(null,[re.kI.required,s.get])})}return n.prototype.ngOnInit=function(){},Object.defineProperty(n.prototype,"form",{get:function(){return this.projectNameForm.controls},enumerable:!1,configurable:!0}),n.prototype.onAddClick=function(){var r=this;this.projectNameForm.invalid||this.projectService.list(this.server).subscribe(function(t){var i=r.projectNameForm.controls.projectName.value;t.find(function(a){return a.name===i})?r.toasterService.error("Project with this name already exists."):r.nodesDataSource.getItems().filter(function(a){return"started"===a.status&&"vpcs"===a.node_type||"started"===a.status&&"virtualbox"===a.node_type||"started"===a.status&&"vmware"===a.node_type}).length>0?r.toasterService.error("Please stop all nodes in order to save project."):r.addProject()})},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.addProject=function(){var r=this;this.projectService.duplicate(this.server,this.project.project_id,this.projectNameForm.controls.projectName.value).subscribe(function(t){r.dialogRef.close(),r.toasterService.success("Project "+t.name+" added")})},n.prototype.onKeyDown=function(r){"Enter"===r.key&&this.onAddClick()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(ud.Y),e.Y36(wa.G),e.Y36(Xn),e.Y36(re.qu),e.Y36(Sp))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-save-project-dialog"]],features:[e._Bn([Sp])],decls:12,vars:6,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Save project as"),e.qZA(),e.TgZ(2,"form",1),e.TgZ(3,"mat-form-field",2),e.TgZ(4,"input",3),e.NdJ("keydown",function(a){return i.onKeyDown(a)}),e.qZA(),e.YNc(5,pve,2,0,"mat-error",4),e.YNc(6,fve,2,0,"mat-error",4),e.qZA(),e.TgZ(7,"div",5),e.TgZ(8,"button",6),e.NdJ("click",function(){return i.onNoClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",7),e.NdJ("click",function(){return i.onAddClick()}),e._uU(11,"Save project"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Q6J("formGroup",i.projectNameForm),e.xp6(2),e.Q6J("ngClass",e.VKq(4,hve,null==i.form.projectName?null:i.form.projectName.errors)),e.xp6(1),e.Q6J("ngIf",(null==i.form.projectName?null:i.form.projectName.touched)&&(null==i.form.projectName?null:i.form.projectName.errors)&&(null==i.form.projectName?null:i.form.projectName.errors.required)),e.xp6(1),e.Q6J("ngIf",(null==i.form.projectName?null:i.form.projectName.touched)&&(null==i.form.projectName?null:i.form.projectName.errors)&&(null==i.form.projectName?null:i.form.projectName.errors.invalidName)))},directives:[ti,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,kt.mk,kt.O5,$r,An,Hn.TO],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),n}(),ez=function(){function n(){}return n.prototype.getInfoAboutNode=function(r,t){var i=[];return"cloud"===r.node_type?i.push("Cloud "+r.name+" is always on."):"nat"===r.node_type?i.push("NAT "+r.name+" is always on."):"ethernet-hub"===r.node_type?i.push("Ethernet hub "+r.name+" is always on."):"ethernet_switch"===r.node_type?i.push("Ethernet switch "+r.name+" is always on."):"frame_relay_switch"===r.node_type?i.push("Frame relay switch "+r.name+" is always on."):"atm_switch"===r.node_type?i.push("ATM switch "+r.name+" is always on."):"docker"===r.node_type?i.push("Docker "+r.name+" is "+r.status+"."):"dynamips"===r.node_type?i.push("Dynamips "+r.name+" is always on."):"traceng"===r.node_type?i.push("TraceNG "+r.name+" is always on."):"virtualbox"===r.node_type?i.push("VirtualBox VM "+r.name+" is "+r.status+"."):"vmware"===r.node_type?i.push("VMware VM "+r.name+" is "+r.status+"."):"qemu"===r.node_type?i.push("QEMU VM "+r.name+" is "+r.status+"."):"iou"===r.node_type?i.push("IOU "+r.name+" is always on."):"vpcs"===r.node_type&&i.push("Node "+r.name+" is "+r.status+"."),i.push("Running on server "+t.name+" with port "+t.port+"."),i.push("Server ID is "+t.id+"."),"none"!==r.console_type&&"null"!==r.console_type&&i.push("Console is on port "+r.console+" and type is "+r.console_type+"."),i.concat(this.getInfoAboutPorts(r.ports))},n.prototype.getInfoAboutPorts=function(r){var t="Ports: ";return r.forEach(function(i){t+="link_type: "+i.link_type+", \n name: "+i.name+"; "}),t=t.substring(0,t.length-2)},n.prototype.getCommandLine=function(r){return"cloud"===r.node_type||"nat"===r.node_type||"ethernet_hub"===r.node_type||"ethernet_switch"===r.node_type||"frame_relay_switch"===r.node_type||"atm_switch"===r.node_type||"dynamips"===r.node_type||"traceng"===r.node_type||"iou"===r.node_type?"Command line information is not supported for this type of node.":r.command_line?r.command_line:"Please start the node in order to get the command line information."},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function vve(n,r){if(1&n&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t," ")}}var gve=function(){function n(r,t){this.dialogRef=r,this.infoService=t,this.infoList=[],this.usage="",this.commandLine=""}return n.prototype.ngOnInit=function(){this.infoList=this.infoService.getInfoAboutNode(this.node,this.server),this.commandLine=this.infoService.getCommandLine(this.node),this.usage=this.node.usage?this.node.usage:"No usage information has been provided for this node."},n.prototype.onCloseClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(ez))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-info-dialog"]],inputs:{server:"server",node:"node"},decls:16,vars:4,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["animationDuration","0ms"],["label","General information"],[1,"textBox"],[4,"ngFor","ngForOf"],["label","Usage instructions"],["label","Command line"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"mat-tab-group",2),e.TgZ(4,"mat-tab",3),e.TgZ(5,"div",4),e.YNc(6,vve,2,1,"div",5),e.qZA(),e.qZA(),e.TgZ(7,"mat-tab",6),e.TgZ(8,"div",4),e._uU(9),e.qZA(),e.qZA(),e.TgZ(10,"mat-tab",7),e.TgZ(11,"div",4),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",8),e.TgZ(14,"button",9),e.NdJ("click",function(){return i.onCloseClick()}),e._uU(15,"Close"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Oqu(i.node.name),e.xp6(5),e.Q6J("ngForOf",i.infoList),e.xp6(3),e.hij(" ",i.usage," "),e.xp6(3),e.hij(" ",i.commandLine," "))},directives:[ti,Eo.SP,Eo.uX,kt.sg,$r,An],styles:[".textBox[_ngcontent-%COMP%]{margin-top:10px}"]}),n}(),_ve=function(){function n(r){this.dialog=r}return n.prototype.showNode=function(){var t=this.dialog.open(gve,{width:"600px",maxHeight:"600px",autoFocus:!1,disableClose:!0}).componentInstance;t.node=this.node,t.server=this.server},n.\u0275fac=function(t){return new(t||n)(e.Y36(to))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-show-node-action"]],inputs:{node:"node",server:"server"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.showNode()}),e.TgZ(1,"mat-icon"),e._uU(2,"info"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Show node information"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}(),Wr=function(){function n(r){this.httpServer=r}return n.prototype.getNodeById=function(r,t,i){return this.httpServer.get(r,"/projects/"+t+"/nodes/"+i)},n.prototype.start=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/start",{})},n.prototype.startAll=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/start",{})},n.prototype.stop=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/stop",{})},n.prototype.stopAll=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/stop",{})},n.prototype.suspend=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/suspend",{})},n.prototype.suspendAll=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/suspend",{})},n.prototype.reload=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/reload",{})},n.prototype.reloadAll=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/reload",{})},n.prototype.createFromTemplate=function(r,t,i,o,a,s){return this.httpServer.post(r,"/projects/"+t.project_id+"/templates/"+i.template_id,s?{x:Math.round(o),y:Math.round(a),compute_id:s}:{x:Math.round(o),y:Math.round(a),compute_id:"local"})},n.prototype.updatePosition=function(r,t,i,o,a){var s=Math.round(o),u=Math.round(a);return t.snap_to_grid&&(s=Math.round((s+i.width/2)/t.grid_size)*t.grid_size,u=Math.round((u+i.height/2)/t.grid_size)*t.grid_size,s=Math.round(s-i.width/2),u=Math.round(u-i.height/2)),this.httpServer.put(r,"/projects/"+i.project_id+"/nodes/"+i.node_id,{x:s,y:u})},n.prototype.updateLabel=function(r,t,i){return this.httpServer.put(r,"/projects/"+t.project_id+"/nodes/"+t.node_id,{label:{rotation:i.rotation,style:i.style,text:i.text,x:Math.round(i.x),y:Math.round(i.y)}})},n.prototype.updateSymbol=function(r,t,i){return this.httpServer.put(r,"/projects/"+t.project_id+"/nodes/"+t.node_id,{symbol:i})},n.prototype.update=function(r,t){return this.httpServer.put(r,"/projects/"+t.project_id+"/nodes/"+t.node_id,{x:Math.round(t.x),y:Math.round(t.y),z:t.z})},n.prototype.updateNode=function(r,t){return this.httpServer.put(r,"/projects/"+t.project_id+"/nodes/"+t.node_id,{console_type:t.console_type,console_auto_start:t.console_auto_start,locked:t.locked,name:t.name,properties:t.properties})},n.prototype.updateNodeWithCustomAdapters=function(r,t){return this.httpServer.put(r,"/projects/"+t.project_id+"/nodes/"+t.node_id,{console_type:t.console_type,console_auto_start:t.console_auto_start,custom_adapters:t.custom_adapters,name:t.name,properties:t.properties})},n.prototype.delete=function(r,t){return this.httpServer.delete(r,"/projects/"+t.project_id+"/nodes/"+t.node_id)},n.prototype.duplicate=function(r,t){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/duplicate",{x:t.x+10,y:t.y+10,z:t.z})},n.prototype.getNode=function(r,t){return this.httpServer.get(r,"/projects/"+t.project_id+"/nodes/"+t.node_id)},n.prototype.getDefaultCommand=function(){return'putty.exe -telnet %h %p -wt "%d" -gns3 5 -skin 4'},n.prototype.getNetworkConfiguration=function(r,t){return this.httpServer.get(r,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/files/etc/network/interfaces",{responseType:"text"})},n.prototype.saveNetworkConfiguration=function(r,t,i){return this.httpServer.post(r,"/projects/"+t.project_id+"/nodes/"+t.node_id+"/files/etc/network/interfaces",i)},n.prototype.getStartupConfiguration=function(r,t){var i="/projects/"+t.project_id+"/nodes/"+t.node_id;return"vpcs"===t.node_type?i+="/files/startup.vpc":"iou"===t.node_type?i+="/files/startup-config.cfg":"dynamips"===t.node_type&&(i+="/files/configs/i"+t.node_id+"_startup-config.cfg"),this.httpServer.get(r,i,{responseType:"text"})},n.prototype.getPrivateConfiguration=function(r,t){var i="/projects/"+t.project_id+"/nodes/"+t.node_id;return"iou"===t.node_type?i+="/files/private-config.cfg":"dynamips"===t.node_type&&(i+="/files/configs/i"+t.node_id+"_private-config.cfg"),this.httpServer.get(r,i,{responseType:"text"})},n.prototype.saveConfiguration=function(r,t,i){var o="/projects/"+t.project_id+"/nodes/"+t.node_id;return"vpcs"===t.node_type?o+="/files/startup.vpc":"iou"===t.node_type?o+="/files/startup-config.cfg":"dynamips"===t.node_type&&(o+="/files/configs/i"+t.node_id+"_startup-config.cfg"),this.httpServer.post(r,o,i)},n.prototype.savePrivateConfiguration=function(r,t,i){var o="/projects/"+t.project_id+"/nodes/"+t.node_id;return"iou"===t.node_type?o+="/files/private-config.cfg":"dynamips"===t.node_type&&(o+="/files/configs/i"+t.node_id+"_private-config.cfg"),this.httpServer.post(r,o,i)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function yve(n,r){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Port : VPI : VCI"),e.qZA())}function bve(n,r){if(1&n&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.portIn)}}function Cve(n,r){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Port : VPI : VCI"),e.qZA())}function Sve(n,r){if(1&n&&(e.TgZ(0,"td",28),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.portOut)}}function Tve(n,r){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Actions"),e.qZA())}function xve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"td",28),e.TgZ(1,"button",29),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw(2).delete(a)}),e.TgZ(2,"mat-icon",30),e._uU(3,"delete"),e.qZA(),e.qZA(),e.qZA()}}function wve(n,r){1&n&&e._UZ(0,"tr",31)}function Eve(n,r){1&n&&e._UZ(0,"tr",32)}function kve(n,r){if(1&n&&(e.TgZ(0,"table",19),e.ynx(1,20),e.YNc(2,yve,2,0,"th",21),e.YNc(3,bve,2,1,"td",22),e.BQk(),e.ynx(4,23),e.YNc(5,Cve,2,0,"th",21),e.YNc(6,Sve,2,1,"td",22),e.BQk(),e.ynx(7,24),e.YNc(8,Tve,2,0,"th",21),e.YNc(9,xve,4,0,"td",22),e.BQk(),e.YNc(10,wve,1,0,"tr",25),e.YNc(11,Eve,1,0,"tr",26),e.qZA()),2&n){var t=e.oxw();e.Q6J("dataSource",t.nodeMappingsDataSource),e.xp6(10),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}var Mve=function(){function n(r,t,i,o){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceVpi="",this.sourceVci="",this.destinationPort="",this.destinationVpi="",this.destinationVci="",this.useVpiOnly=!1,this.nameForm=this.formBuilder.group({name:new re.NI("",re.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new re.NI("",re.kI.required),sourceVci:new re.NI("",re.kI.required),destinationPort:new re.NI("",re.kI.required),destinationVci:new re.NI("",re.kI.required)}),this.abstractForm=this.formBuilder.group({sourceVpi:new re.NI("",re.kI.required),destinationVpi:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name;var i=t.properties.mappings;Object.keys(i).forEach(function(o){r.nodeMappings.set(o,i[o])}),r.nodeMappings.forEach(function(o,a){r.nodeMappingsDataSource.push({portIn:a,portOut:o})})})},n.prototype.delete=function(r){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter(function(t){return t!==r})},n.prototype.add=function(){var r;this.inputForm.valid?this.useVpiOnly?(r={portIn:this.sourcePort+":"+this.sourceVci,portOut:this.destinationPort+":"+this.destinationVci},this.nodeMappingsDataSource.filter(function(t){return t.portIn===r.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([r]),this.clearUserInput())):this.abstractForm.valid?(r={portIn:this.sourcePort+":"+this.sourceVpi+":"+this.sourceVci,portOut:this.destinationPort+":"+this.destinationVpi+":"+this.destinationVci},this.nodeMappingsDataSource.filter(function(t){return t.portIn===r.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([r]),this.clearUserInput())):this.toasterService.error("Fill all required fields."):this.toasterService.error("Fill all required fields.")},n.prototype.clearUserInput=function(){this.sourcePort="0",this.sourceVpi="0",this.sourceVci="0",this.destinationPort="0",this.destinationVpi="0",this.sourceVci="0"},n.prototype.strMapToObj=function(r){for(var t=Object.create(null),i=0,o=r;i<o.length;i++){var a=o[i];t[a[0]]=a[1]}return t},n.prototype.onSaveClick=function(){var r=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach(function(t){r.nodeMappings.set(t.portIn,t.portOut)}),this.node.properties.mappings=Array.from(this.nodeMappings).reduce(function(t,i){var o;return Object.assign(t,((o={})[i[0]]=i[1],o))},{}),this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-atm-switch"]],decls:39,vars:16,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceVci","placeholder","VCI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationVci","placeholder","VCI",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","portIn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","portOut"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.YNc(6,kve,12,3,"table",4),e._UZ(7,"br"),e.TgZ(8,"form",5),e.TgZ(9,"mat-form-field",6),e.TgZ(10,"input",7),e.NdJ("ngModelChange",function(a){return i.node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"mat-checkbox",8),e.NdJ("ngModelChange",function(a){return i.useVpiOnly=a}),e._uU(12," Use VPI only (VP tunnel) "),e.qZA(),e.TgZ(13,"form",5),e._uU(14," Source "),e.TgZ(15,"mat-form-field",6),e.TgZ(16,"input",9),e.NdJ("ngModelChange",function(a){return i.sourcePort=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"form",5),e.TgZ(18,"mat-form-field",6),e.TgZ(19,"input",10),e.NdJ("ngModelChange",function(a){return i.sourceVpi=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"form",5),e.TgZ(21,"mat-form-field",6),e.TgZ(22,"input",11),e.NdJ("ngModelChange",function(a){return i.sourceVci=a}),e.qZA(),e.qZA(),e._uU(23," Destination "),e.TgZ(24,"mat-form-field",6),e.TgZ(25,"input",12),e.NdJ("ngModelChange",function(a){return i.destinationPort=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"form",5),e.TgZ(27,"mat-form-field",6),e.TgZ(28,"input",13),e.NdJ("ngModelChange",function(a){return i.destinationVpi=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"form",5),e.TgZ(30,"mat-form-field",6),e.TgZ(31,"input",14),e.NdJ("ngModelChange",function(a){return i.destinationVci=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(32,"button",15),e.NdJ("click",function(){return i.add()}),e._uU(33,"Add"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",16),e.TgZ(35,"button",17),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(36,"Cancel"),e.qZA(),e.TgZ(37,"button",18),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(38,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.nodeMappingsDataSource.length),e.xp6(2),e.Q6J("formGroup",i.nameForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(1),e.Q6J("ngModel",i.useVpiOnly),e.xp6(2),e.Q6J("formGroup",i.inputForm),e.xp6(3),e.Q6J("ngModel",i.sourcePort),e.xp6(1),e.Q6J("formGroup",i.abstractForm),e.xp6(2),e.Q6J("ngModel",i.sourceVpi),e.xp6(1),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.sourceVci),e.xp6(3),e.Q6J("ngModel",i.destinationPort),e.xp6(1),e.Q6J("formGroup",i.abstractForm),e.xp6(2),e.Q6J("ngModel",i.destinationVpi),e.xp6(1),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.destinationVci))},directives:[ti,yi,kt.O5,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,Zo,re.On,re.wV,An,$r,Jl,dl,cl,ul,Ql,Kl,pl,fl,Ja,sr,Xl,$l],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}();function Ave(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Name"),e.qZA())}function Dve(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.name)}}function Ove(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Local port"),e.qZA())}function Pve(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.rport)}}function Ive(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Type"),e.qZA())}function Rve(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.rhost)}}function Nve(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Remote port"),e.qZA())}function Zve(n,r){if(1&n&&(e.TgZ(0,"td",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.lport)}}function Lve(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Actions"),e.qZA())}function Fve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"td",19),e.TgZ(1,"button",20),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw(2).delete(a)}),e.TgZ(2,"mat-icon",21),e._uU(3,"delete"),e.qZA(),e.qZA(),e.qZA()}}function Bve(n,r){1&n&&e._UZ(0,"tr",22)}function Uve(n,r){1&n&&e._UZ(0,"tr",23)}function Hve(n,r){if(1&n&&(e.TgZ(0,"table",8),e.ynx(1,9),e.YNc(2,Ave,2,0,"th",10),e.YNc(3,Dve,2,1,"td",11),e.BQk(),e.ynx(4,12),e.YNc(5,Ove,2,0,"th",10),e.YNc(6,Pve,2,1,"td",11),e.BQk(),e.ynx(7,13),e.YNc(8,Ive,2,0,"th",10),e.YNc(9,Rve,2,1,"td",11),e.BQk(),e.ynx(10,14),e.YNc(11,Nve,2,0,"th",10),e.YNc(12,Zve,2,1,"td",11),e.BQk(),e.ynx(13,15),e.YNc(14,Lve,2,0,"th",10),e.YNc(15,Fve,4,0,"td",11),e.BQk(),e.YNc(16,Bve,1,0,"tr",16),e.YNc(17,Uve,1,0,"tr",17),e.qZA()),2&n){var t=e.oxw();e.Q6J("dataSource",t.dataSourceUdp),e.xp6(16),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}function Vve(n,r){1&n&&e._UZ(0,"br")}var qve=function(){function n(r){this.builtInTemplatesConfigurationService=r,this.dataSourceUdp=[],this.displayedColumns=["name","lport","rhost","rport","action"],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[]}return n.prototype.ngOnInit=function(){this.getConfiguration()},n.prototype.getConfiguration=function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()},n.prototype.onAddUdpInterface=function(){this.dataSourceUdp=this.dataSourceUdp.concat([this.newPort]),this.newPort={name:"",port_number:0}},n.prototype.delete=function(r){this.dataSourceUdp=this.dataSourceUdp.filter(function(t){return t!==r})},n.\u0275fac=function(t){return new(t||n)(e.Y36(eh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-udp-tunnels"]],inputs:{dataSourceUdp:"dataSourceUdp"},decls:12,vars:6,consts:[["class","table","mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],[1,"form-field"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Remote port",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rport"],["matColumnDef","rhost"],["matColumnDef","lport"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(t,i){1&t&&(e.YNc(0,Hve,18,3,"table",0),e.YNc(1,Vve,1,0,"br",1),e.TgZ(2,"mat-form-field",2),e.TgZ(3,"input",3),e.NdJ("ngModelChange",function(a){return i.newPort.name=a}),e.qZA(),e.qZA(),e.TgZ(4,"mat-form-field",2),e.TgZ(5,"input",4),e.NdJ("ngModelChange",function(a){return i.newPort.lport=a}),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",2),e.TgZ(7,"input",5),e.NdJ("ngModelChange",function(a){return i.newPort.rhost=a}),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",2),e.TgZ(9,"input",6),e.NdJ("ngModelChange",function(a){return i.newPort.rport=a}),e.qZA(),e.qZA(),e.TgZ(10,"button",7),e.NdJ("click",function(){return i.onAddUdpInterface()}),e._uU(11,"Add"),e.qZA()),2&t&&(e.Q6J("ngIf",i.dataSourceUdp.length),e.xp6(1),e.Q6J("ngIf",i.dataSourceUdp.length),e.xp6(2),e.Q6J("ngModel",i.newPort.name),e.xp6(2),e.Q6J("ngModel",i.newPort.lport),e.xp6(2),e.Q6J("ngModel",i.newPort.rhost),e.xp6(2),e.Q6J("ngModel",i.newPort.rport))},directives:[kt.O5,Hn.KE,lr,re.Fj,re.JJ,re.On,re.wV,An,Jl,dl,cl,ul,Ql,Kl,pl,fl,Ja,sr,Xl,$l],styles:[".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),jve=["udpTunnels"];function zve(n,r){if(1&n&&(e.TgZ(0,"div",16),e.TgZ(1,"div",16),e._uU(2),e.qZA(),e._UZ(3,"br"),e._UZ(4,"br"),e.qZA()),2&n){var t=r.$implicit;e.xp6(2),e.Oqu(t.name)}}function Wve(n,r){if(1&n&&(e.TgZ(0,"mat-option",28),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Gve(n,r){if(1&n&&(e.TgZ(0,"div",16),e.TgZ(1,"div",16),e._uU(2),e.qZA(),e._UZ(3,"br"),e._UZ(4,"br"),e.qZA()),2&n){var t=r.$implicit;e.xp6(2),e.Oqu(t.name)}}function Yve(n,r){if(1&n&&(e.TgZ(0,"mat-option",28),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var Jve=function(){return{standalone:!0}};function Qve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e.YNc(2,zve,5,1,"div",10),e.TgZ(3,"mat-form-field",11),e.TgZ(4,"mat-select",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().ethernetInterface=a}),e.YNc(5,Wve,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(6,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().onAddEthernetInterface()}),e._uU(7,"Add"),e.qZA(),e.qZA(),e.TgZ(8,"mat-tab",15),e.YNc(9,Gve,5,1,"div",10),e.TgZ(10,"mat-form-field",16),e.TgZ(11,"input",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().tapInterface=a}),e.qZA(),e.qZA(),e.TgZ(12,"button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().onAddTapInterface()}),e._uU(13,"Add"),e.qZA(),e.qZA(),e.TgZ(14,"mat-tab",18),e._UZ(15,"app-udp-tunnels",19,20),e.qZA(),e.TgZ(17,"mat-tab",21),e.TgZ(18,"form",22),e.TgZ(19,"mat-form-field",16),e.TgZ(20,"input",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(21,"mat-form-field",11),e.TgZ(22,"mat-select",24),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(23,Yve,2,2,"mat-option",13),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field",16),e.TgZ(25,"input",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.remote_console_host=a}),e.qZA(),e.qZA(),e.TgZ(26,"mat-form-field",16),e.TgZ(27,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.remote_console_port=a}),e.qZA(),e.qZA(),e.TgZ(28,"mat-form-field",16),e.TgZ(29,"input",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.remote_console_http_path=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("ngForOf",i.portsMappingEthernet),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(14,Jve))("ngModel",i.ethernetInterface),e.xp6(1),e.Q6J("ngForOf",i.ethernetInterfaces),e.xp6(4),e.Q6J("ngForOf",i.portsMappingTap),e.xp6(2),e.Q6J("ngModel",i.tapInterface),e.xp6(4),e.Q6J("dataSourceUdp",i.portsMappingUdp),e.xp6(3),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(2),e.Q6J("ngModel",i.node.properties.remote_console_host),e.xp6(2),e.Q6J("ngModel",i.node.properties.remote_console_port),e.xp6(2),e.Q6J("ngModel",i.node.properties.remote_console_http_path)}}var Kve=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.builtInTemplatesConfigurationService=a,this.consoleTypes=[],this.binaries=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.generalSettingsForm=this.formBuilder.group({name:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration(),r.portsMappingEthernet=r.node.properties.ports_mapping.filter(function(i){return"ethernet"===i.type}),r.portsMappingTap=r.node.properties.ports_mapping.filter(function(i){return"tap"===i.type}),r.portsMappingUdp=r.node.properties.ports_mapping.filter(function(i){return"udp"===i.type})})},n.prototype.getConfiguration=function(){this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()},n.prototype.onAddEthernetInterface=function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})},n.prototype.onAddTapInterface=function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid?(this.portsMappingUdp=this.udpTunnels.dataSourceUdp,this.node.properties.ports_mapping=this.portsMappingUdp.concat(this.portsMappingEthernet).concat(this.portsMappingTap),this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu),e.Y36(eh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-cloud"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(jve,5),2&t)&&(e.iGM(o=e.CRH())&&(i.udpTunnels=o.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Ethernet interfaces"],["class","form-field",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Ethernet interface",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-button","",1,"form-field",3,"click"],["label","TAP interfaces"],[1,"form-field"],["matInput","","type","text","placeholder","TAP interface",3,"ngModel","ngModelChange"],["label","UDP tunnels"],[3,"dataSourceUdp"],["udpTunnels",""],["label","Miscellaneous"],[3,"formGroup"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["placeholder","Console type",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console host",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console HTTP path",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.YNc(6,Qve,30,15,"mat-tab-group",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(11,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.name))},directives:[ti,yi,kt.O5,$r,An,Eo.SP,Eo.uX,kt.sg,Hn.KE,pi.gD,re.JJ,re.On,lr,re.Fj,qve,re._Y,re.JL,re.sg,re.u,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}();function Xve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-list-item"),e.TgZ(1,"div",6),e.TgZ(2,"span",7),e._uU(3),e.qZA(),e.TgZ(4,"span",7),e.TgZ(5,"input",9),e.NdJ("ngModelChange",function(a){return e.CHM(t).$implicit.port_name=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit;e.xp6(3),e.hij(" Adapter ",i.adapter_number," "),e.xp6(2),e.Q6J("ngModel",i.port_name)}}function $ve(n,r){if(1&n&&(e.TgZ(0,"div",5),e.TgZ(1,"div",6),e.TgZ(2,"span",7),e._uU(3," Adapter number "),e.qZA(),e.TgZ(4,"span",7),e._uU(5," Port name "),e.qZA(),e.qZA(),e.TgZ(6,"div"),e.TgZ(7,"mat-list"),e.YNc(8,Xve,6,2,"mat-list-item",8),e.qZA(),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(8),e.Q6J("ngForOf",t.adapters)}}var ege=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.dockerConfigurationService=a,this.displayedColumns=["adapter_number","port_name"],this.adapters=[]}return n.prototype.ngOnInit=function(){var r=this;this.node.custom_adapters?this.adapters=this.node.custom_adapters:this.node.ports.forEach(function(i){r.adapters.push({adapter_number:0,port_name:""})})},n.prototype.onSaveClick=function(){var r=this;this.node.custom_adapters=this.adapters,this.nodeService.updateNodeWithCustomAdapters(this.server,this.node).subscribe(function(){r.onCancelClick(),r.toasterService.success("Configuration saved for node "+r.node.name)})},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu),e.Y36(LS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configure-custom-adapters"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],[1,"header"],[1,"column"],[4,"ngFor","ngForOf"],["matInput","","type","text","placeholder","Edit port name",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.YNc(2,$ve,9,1,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"button",3),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(5,"Cancel"),e.qZA(),e.TgZ(6,"button",4),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(7,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configure custom adapters for node ",i.node.name,""),e.xp6(1),e.Q6J("ngIf",i.node))},directives:[ti,kt.O5,$r,An,$Z,kt.sg,Ss,lr,re.Fj,re.JJ,re.On],styles:["th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.column[_ngcontent-%COMP%]{width:50%}"]}),n}();function tge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",5),e.TgZ(1,"textarea",6),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().configuration=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModel",i.configuration)}}var nge=function(){function n(r,t,i){this.dialogRef=r,this.nodeService=t,this.toasterService=i}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNetworkConfiguration(this.server,this.node).subscribe(function(t){r.configuration=t})},n.prototype.onSaveClick=function(){var r=this;this.nodeService.saveNetworkConfiguration(this.server,this.node,this.configuration).subscribe(function(t){r.onCancelClick(),r.toasterService.success("Configuration for node "+r.node.name+" saved.")})},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-edit-network-configuration"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],["matInput","","type","text",1,"textArea",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.YNc(2,tge,2,1,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"button",3),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(5,"Cancel"),e.qZA(),e.TgZ(6,"button",4),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(7,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Edit network configuration for node ",i.node.name,""),e.xp6(1),e.Q6J("ngIf",i.node))},directives:[ti,kt.O5,$r,An,lr,re.Fj,re.JJ,re.On],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}"]}),n}();function rge(n,r){if(1&n&&(e.TgZ(0,"mat-option",26),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function ige(n,r){if(1&n&&(e.TgZ(0,"mat-option",26),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var IL=function(){return{standalone:!0}};function oge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e._UZ(2,"br"),e.TgZ(3,"form",10),e.TgZ(4,"mat-form-field",11),e.TgZ(5,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",11),e.TgZ(7,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.start_command=a}),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",11),e.TgZ(9,"input",14),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.adapters=a}),e.qZA(),e.qZA(),e.TgZ(10,"button",15),e.NdJ("click",function(){return e.CHM(t),e.oxw().configureCustomAdapters()}),e._uU(11," Configure custom adapters "),e.qZA(),e.TgZ(12,"mat-form-field",16),e.TgZ(13,"mat-select",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(14,rge,2,2,"mat-option",18),e.qZA(),e.qZA(),e.TgZ(15,"mat-checkbox",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_auto_start=a}),e._uU(16," Auto start console "),e.qZA(),e.TgZ(17,"mat-form-field",11),e.TgZ(18,"mat-select",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.console_resolution=a}),e.YNc(19,ige,2,2,"mat-option",18),e.qZA(),e.qZA(),e.TgZ(20,"mat-form-field",11),e.TgZ(21,"input",21),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.console_http_port=a}),e.qZA(),e.qZA(),e.TgZ(22,"mat-form-field",11),e.TgZ(23,"input",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.console_http_path=a}),e.qZA(),e.qZA(),e.TgZ(24,"button",15),e.NdJ("click",function(){return e.CHM(t),e.oxw().editNetworkConfiguration()}),e._uU(25," Edit network configuration "),e.qZA(),e.qZA(),e.TgZ(26,"h6"),e._uU(27,"Environment"),e.qZA(),e.TgZ(28,"mat-form-field",11),e.TgZ(29,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.environment=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"mat-tab",24),e.TgZ(31,"h6"),e._uU(32,"Extra hosts"),e.qZA(),e.TgZ(33,"mat-form-field",11),e.TgZ(34,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.extra_hosts=a}),e.qZA(),e.qZA(),e._UZ(35,"br"),e.TgZ(36,"h6"),e._uU(37,"Additional directories"),e.qZA(),e.TgZ(38,"mat-form-field",11),e.TgZ(39,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().additionalDirectories=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(40,"mat-tab",25),e.TgZ(41,"mat-form-field",11),e.TgZ(42,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModel",i.node.properties.start_command),e.xp6(2),e.Q6J("ngModel",i.node.properties.adapters),e.xp6(4),e.Q6J("ngModelOptions",e.DdM(18,IL))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(19,IL))("ngModel",i.node.console_auto_start),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(20,IL))("ngModel",i.node.properties.console_resolution),e.xp6(1),e.Q6J("ngForOf",i.consoleResolutions),e.xp6(2),e.Q6J("ngModel",i.node.properties.console_http_port),e.xp6(2),e.Q6J("ngModel",i.node.properties.console_http_path),e.xp6(6),e.Q6J("ngModel",i.node.properties.environment),e.xp6(5),e.Q6J("ngModel",i.node.properties.extra_hosts),e.xp6(5),e.Q6J("ngModel",i.additionalDirectories),e.xp6(3),e.Q6J("ngModel",i.node.properties.usage)}}var age=function(){function n(r,t,i,o,a,s){this.dialogReference=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.dockerConfigurationService=a,this.dialog=s,this.consoleTypes=[],this.consoleResolutions=["2560x1440","1920x1080","1680x1050","1440x900","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.additionalDirectories="",this.generalSettingsForm=this.formBuilder.group({name:new re.NI("",re.kI.required),adapter:new re.NI("",re.kI.required),startCommand:new re.NI(""),consoleHttpPort:new re.NI("",re.kI.required),consoleHttpPath:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){if(r.node=t,r.name=t.name,r.getConfiguration(),r.node.properties.extra_volumes&&r.node.properties.extra_volumes.length>0){for(var i=0;i<r.node.properties.extra_volumes.length-1;i++)r.additionalDirectories=r.additionalDirectories+r.node.properties.extra_volumes[i]+"\n";r.additionalDirectories=r.additionalDirectories+r.node.properties.extra_volumes[r.node.properties.extra_volumes.length-1]}})},n.prototype.getConfiguration=function(){this.consoleTypes=this.dockerConfigurationService.getConsoleTypes()},n.prototype.configureCustomAdapters=function(){this.dialogRef=this.dialog.open(ege,this.conf);var r=this.dialogRef.componentInstance;r.server=this.server,r.node=this.node},n.prototype.editNetworkConfiguration=function(){this.dialogRef=this.dialog.open(nge,this.conf);var r=this.dialogRef.componentInstance;r.server=this.server,r.node=this.node},n.prototype.onSaveClick=function(){for(var r=this,t=this.additionalDirectories.split("\n").filter(function(s){return""!=s}),i=0,o=t;i<o.length;i++){var a=o[i];if(console.log(a),!a.startsWith("/"))return void this.toasterService.error("Wrong format for additional directories.")}this.generalSettingsForm.valid?(this.node.properties.extra_volumes=t,this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogReference.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu),e.Y36(LS),e.Y36(to))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-docker"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","formControlName","startCommand","type","text","placeholder","Start command",3,"ngModel","ngModelChange"],["formControlName","adapter","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","VNC console resolution",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","consoleHttpPort","matInput","","type","number","placeholder","HTTP port in the container",3,"ngModel","ngModelChange"],["matInput","","formControlName","consoleHttpPath","type","text","placeholder","HTTP path",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],["label","Advanced"],["label","Usage"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.YNc(6,oge,43,21,"mat-tab-group",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(11,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.name))},directives:[ti,yi,kt.O5,$r,An,Eo.SP,Eo.uX,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,re.wV,pi.gD,re.On,kt.sg,Zo,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}();function sge(n,r){if(1&n&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function lge(n,r){if(1&n&&e._UZ(0,"app-ports",17,18),2&n){var t=e.oxw(2);e.Q6J("ethernetPorts",t.node.properties.ports_mapping)}}var uge=function(){return{standalone:!0}};function cge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",7),e.TgZ(1,"mat-card",8),e.TgZ(2,"form",9),e.TgZ(3,"mat-form-field",10),e.TgZ(4,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.TgZ(5,"mat-form-field",12),e.TgZ(6,"mat-select",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(7,sge,2,2,"mat-option",14),e.qZA(),e.qZA(),e.qZA(),e.YNc(8,lge,2,1,"app-ports",15),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(6,uge))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngIf",i.node.properties)}}var dge=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.ethernetSwitchesConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=r.node.name,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.ethernetSwitchesConfigurationService.getConsoleTypesForEthernetSwitches()},n.prototype.onSaveClick=function(){var r=this;this.inputForm.valid?(this.node.properties.ports_mapping=this.portsComponent.ethernetPorts,this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu),e.Y36(eh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-ethernet-switch"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(f2,5),2&t)&&(e.iGM(o=e.CRH())&&(i.portsComponent=o.first))},decls:10,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],["class","default-content",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ethernetPorts",4,"ngIf"],[3,"value"],[3,"ethernetPorts"],["ports",""]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.YNc(4,cge,9,7,"div",3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(7,"Cancel"),e.qZA(),e.TgZ(8,"button",6),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(9,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(3),e.Q6J("ngIf",i.node))},directives:[ti,kt.O5,$r,An,yi,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,pi.gD,re.On,kt.sg,un.ey,f2],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}(),pge=function(){return{standalone:!0}},fge=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.vpcsConfigurationService=a,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({name:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=r.node.name,r.numberOfPorts=r.node.ports.length,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes(),this.categories=this.vpcsConfigurationService.getCategories()},n.prototype.onSaveClick=function(){var r=this;if(this.inputForm.valid){this.node.properties.ports_mapping=[];for(var t=0;t<this.numberOfPorts;t++)this.node.properties.ports_mapping.push({name:"Ethernet"+t,port_number:t});this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})}else this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu),e.Y36(S2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-ethernet-hub"]],decls:16,vars:6,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Number of ports",3,"ngModel","ngModelOptions","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.TgZ(6,"form",5),e.TgZ(7,"mat-form-field",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(a){return i.node.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",6),e.TgZ(10,"input",8),e.NdJ("ngModelChange",function(a){return i.numberOfPorts=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",9),e.TgZ(12,"button",10),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(13,"Cancel"),e.qZA(),e.TgZ(14,"button",11),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(15,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModel",i.numberOfPorts)("ngModelOptions",e.DdM(5,pge)))},directives:[ti,yi,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,re.wV,re.On,$r,An],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}();function hge(n,r){if(1&n&&(e.TgZ(0,"mat-option",23),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function mge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e._UZ(2,"br"),e.TgZ(3,"form",10),e.TgZ(4,"mat-form-field",11),e.TgZ(5,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",13),e.TgZ(7,"mat-select",14),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(8,hge,2,2,"mat-option",15),e.qZA(),e.qZA(),e.TgZ(9,"mat-checkbox",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_auto_start=a}),e._uU(10," Auto start console "),e.qZA(),e._UZ(11,"br"),e.qZA(),e.TgZ(12,"mat-tab",17),e._UZ(13,"br"),e.TgZ(14,"form",10),e.TgZ(15,"mat-form-field",11),e.TgZ(16,"input",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.ram=a}),e.qZA(),e.TgZ(17,"span",19),e._uU(18,"MB"),e.qZA(),e.qZA(),e.TgZ(19,"mat-form-field",11),e.TgZ(20,"input",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.nvram=a}),e.qZA(),e.TgZ(21,"span",19),e._uU(22,"MB"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"mat-tab",21),e.TgZ(24,"mat-form-field",11),e.TgZ(25,"textarea",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModel",i.node.console_auto_start),e.xp6(5),e.Q6J("formGroup",i.memoryForm),e.xp6(2),e.Q6J("ngModel",i.node.properties.ram),e.xp6(4),e.Q6J("ngModel",i.node.properties.nvram),e.xp6(5),e.Q6J("ngModel",i.node.properties.usage)}}var vge=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new re.NI("",re.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new re.NI("",re.kI.required),nvram:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes()},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid&&this.memoryForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu),e.Y36(v2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-ios"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["label","Memories and disks"],["matInput","","type","number","formControlName","ram","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","formControlName","nvram","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.YNc(6,mge,26,9,"mat-tab-group",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(11,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.name))},directives:[ti,yi,kt.O5,$r,An,Eo.SP,Eo.uX,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,pi.gD,re.On,kt.sg,Zo,re.wV,Hn.R9,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}();function gge(n,r){if(1&n&&(e.TgZ(0,"mat-option",23),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function _ge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",11),e.TgZ(1,"input",24),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).node.properties.ram=a}),e.qZA(),e.TgZ(2,"span",25),e._uU(3,"MB"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.node.properties.ram)}}function yge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",11),e.TgZ(1,"input",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).node.properties.nvram=a}),e.qZA(),e.TgZ(2,"span",25),e._uU(3,"KB"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.node.properties.nvram)}}function bge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e._UZ(2,"br"),e.TgZ(3,"form",10),e.TgZ(4,"mat-form-field",11),e.TgZ(5,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",13),e.TgZ(7,"mat-select",14),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(8,gge,2,2,"mat-option",15),e.qZA(),e.qZA(),e.TgZ(9,"mat-checkbox",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_auto_start=a}),e._uU(10," Auto start console "),e.qZA(),e._UZ(11,"br"),e.TgZ(12,"mat-checkbox",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.use_default_iou_values=a}),e._uU(13," Use default IOU values for memories "),e.qZA(),e.YNc(14,_ge,4,1,"mat-form-field",17),e.YNc(15,yge,4,1,"mat-form-field",17),e.qZA(),e.TgZ(16,"mat-tab",18),e._UZ(17,"br"),e.TgZ(18,"form",10),e.TgZ(19,"mat-form-field",11),e.TgZ(20,"input",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.ethernet_adapters=a}),e.qZA(),e.qZA(),e.TgZ(21,"mat-form-field",11),e.TgZ(22,"input",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.serial_adapters=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"mat-tab",21),e.TgZ(24,"mat-form-field",11),e.TgZ(25,"textarea",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModel",i.node.console_auto_start),e.xp6(3),e.Q6J("ngModel",i.node.properties.use_default_iou_values),e.xp6(2),e.Q6J("ngIf",!i.node.properties.use_default_iou_values),e.xp6(1),e.Q6J("ngIf",!i.node.properties.use_default_iou_values),e.xp6(3),e.Q6J("formGroup",i.networkForm),e.xp6(2),e.Q6J("ngModel",i.node.properties.ethernet_adapters),e.xp6(2),e.Q6J("ngModel",i.node.properties.serial_adapters),e.xp6(3),e.Q6J("ngModel",i.node.properties.usage)}}var Cge=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new re.NI("",re.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new re.NI("",re.kI.required),serialAdapters:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.configurationService.getConsoleTypes()},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid&&this.networkForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu),e.Y36(sL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-iou"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["label","Network"],["matInput","","formControlName","ethernetAdapters","type","number","placeholder","Ethernet adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","serialAdapters","type","number","placeholder","Serial adapters",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"],["matInput","","type","number","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","NVRAM size",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.YNc(6,bge,26,12,"mat-tab-group",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(11,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.name))},directives:[ti,yi,kt.O5,$r,An,Eo.SP,Eo.uX,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,pi.gD,re.On,kt.sg,Zo,re.wV,un.ey,Hn.R9],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}(),Sge=function(){function n(r,t,i,o){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.generalSettingsForm=this.formBuilder.group({name:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name})},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-nat"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.TgZ(6,"form",5),e.TgZ(7,"mat-form-field",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(a){return i.node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"button",9),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(11,"Cancel"),e.qZA(),e.TgZ(12,"button",10),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(13,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name))},directives:[ti,yi,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,$r,An],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}();function Tge(n,r){if(1&n&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function xge(n,r){if(1&n&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function wge(n,r){if(1&n&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.value),e.xp6(1),e.hij(" ",t.name," ")}}function Ege(n,r){if(1&n&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function kge(n,r){if(1&n&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.value),e.xp6(1),e.hij(" ",t.name," ")}}function Mge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e._uU(1," Size options "),e.TgZ(2,"mat-form-field",6),e.TgZ(3,"mat-select",8),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuImg.preallocation=a}),e.YNc(4,xge,2,2,"mat-option",9),e.qZA(),e.qZA(),e.TgZ(5,"mat-form-field",6),e.TgZ(6,"mat-select",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuImg.cluster_size=a}),e.YNc(7,wge,2,2,"mat-option",9),e.qZA(),e.qZA(),e._uU(8," Refcounts "),e.TgZ(9,"mat-form-field",6),e.TgZ(10,"mat-select",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuImg.lazy_refcounts=a}),e.YNc(11,Ege,2,2,"mat-option",9),e.qZA(),e.qZA(),e.TgZ(12,"mat-form-field",6),e.TgZ(13,"mat-select",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuImg.refcount_bits=a}),e.YNc(14,kge,2,2,"mat-option",9),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("ngModel",i.qemuImg.preallocation),e.xp6(1),e.Q6J("ngForOf",i.preallocationsOptions),e.xp6(2),e.Q6J("ngModel",i.qemuImg.cluster_size),e.xp6(1),e.Q6J("ngForOf",i.clusterSizeOptions),e.xp6(3),e.Q6J("ngModel",i.qemuImg.lazy_refcounts),e.xp6(1),e.Q6J("ngForOf",i.lazyRefcountsOptions),e.xp6(2),e.Q6J("ngModel",i.qemuImg.refcount_bits),e.xp6(1),e.Q6J("ngForOf",i.clusterSizeOptions)}}function Age(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"mat-radio-group",20),e.TgZ(2,"mat-radio-button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSubformat("dynamic")}),e._uU(3,"Dynamic"),e.qZA(),e.TgZ(4,"mat-radio-button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSubformat("fixed")}),e._uU(5,"Fixed"),e.qZA(),e.qZA(),e.qZA()}}function Dge(n,r){if(1&n&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Oge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e._uU(1," Adapter type"),e._UZ(2,"br"),e.TgZ(3,"mat-radio-group",23),e.TgZ(4,"mat-radio-button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().setAdapterType("ide")}),e._uU(5,"IDE"),e.qZA(),e.TgZ(6,"mat-radio-button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().setAdapterType("lsilogic")}),e._uU(7,"LSI Logic"),e.qZA(),e.TgZ(8,"mat-radio-button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().setAdapterType("buslogic")}),e._uU(9,"BusLogic"),e.qZA(),e.TgZ(10,"mat-radio-button",25),e.NdJ("click",function(){return e.CHM(t),e.oxw().setAdapterType("legacyESX")}),e._uU(11,"Legacy (ESX)"),e.qZA(),e.qZA(),e._UZ(12,"br"),e._UZ(13,"br"),e._uU(14," Image file sizing mode"),e._UZ(15,"br"),e.TgZ(16,"mat-radio-group",20),e.TgZ(17,"mat-radio-button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSubformat("streamOptimized")}),e._uU(18,"Stream optimized"),e.qZA(),e.TgZ(19,"mat-radio-button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSubformat("twoGbMaxExtentSparse")}),e._uU(20,"Split every 2GB (sparse)"),e.qZA(),e.TgZ(21,"mat-radio-button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSubformat("twoGbMaxExtentFlat")}),e._uU(22,"Split every 2GB (flat)"),e.qZA(),e.TgZ(23,"mat-radio-button",25),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSubformat("monolithicSparse")}),e._uU(24,"Monolithic sparse"),e.qZA(),e.TgZ(25,"mat-radio-button",26),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSubformat("monolithicFlat")}),e._uU(26,"Monolithic flat"),e.qZA(),e.qZA(),e._UZ(27,"br"),e._UZ(28,"br"),e.TgZ(29,"mat-select",27),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuImg.zeroed_grain=a}),e.YNc(30,Dge,2,2,"mat-option",9),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(29),e.Q6J("ngModel",i.qemuImg.zeroed_grain),e.xp6(1),e.Q6J("ngForOf",i.zeroedGrainOptions)}}var Pge=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.qemuService=a,this.formatOptions=["qcow2","qcow","vhd","vdi","vmdk","raw"],this.preallocationsOptions=["off","metadata","falloc","full"],this.clusterSizeOptions=[{name:"512",value:512},{name:"1k",value:1024},{name:"2k",value:2048},{name:"4k",value:4096},{name:"8k",value:8192},{name:"16k",value:16384},{name:"32k",value:32768},{name:"64k",value:65536},{name:"128k",value:131072},{name:"256k",value:262144},{name:"512k",value:524288},{name:"1024k",value:1048576},{name:"2048k",value:2097152}],this.lazyRefcountsOptions=["off","on"],this.refcountBitsOptions=[1,2,4,8,16,32,64],this.zeroedGrainOptions=["on","off"],this.inputForm=this.formBuilder.group({qemu_img:new re.NI("",re.kI.required),path:new re.NI("",re.kI.required),size:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){this.qemuImg={}},n.prototype.setSubformat=function(r){this.qemuImg.subformat=r},n.prototype.onSaveClick=function(){var r=this;this.inputForm.valid&&this.qemuImg.format?this.qemuService.addImage(this.server,this.qemuImg).subscribe(function(){r.dialogRef.close()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu),e.Y36(bp))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-qemu-image-creator"]],decls:25,vars:10,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","qemu_img","placeholder","Qemu image path",3,"ngModel","ngModelChange"],["placeholder","Image format",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["matInput","","type","text","formControlName","path","placeholder","File location",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","size","placeholder","Disk size",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Cluster size",3,"ngModel","ngModelChange"],["placeholder","Lazy refcounts",3,"ngModel","ngModelChange"],["placeholder","Refcount entry size",3,"ngModel","ngModelChange"],["aria-label","Image file sizing mode",1,"radio-selection"],["value","1","checked","",3,"click"],["value","2",3,"click"],["aria-label","Adapter type",1,"radio-selection"],["value","3",3,"click"],["value","4",3,"click"],["value","5",3,"click"],["placeholder","Zeroed grain",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Qemu image configurator"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.TgZ(6,"form",5),e.TgZ(7,"mat-form-field",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(a){return i.qemuImg.qemu_img=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",6),e.TgZ(10,"mat-select",8),e.NdJ("ngModelChange",function(a){return i.qemuImg.format=a}),e.YNc(11,Tge,2,2,"mat-option",9),e.qZA(),e.qZA(),e.YNc(12,Mge,15,8,"div",10),e.YNc(13,Age,6,0,"div",10),e.YNc(14,Oge,31,2,"div",10),e.TgZ(15,"form",5),e.TgZ(16,"mat-form-field",6),e.TgZ(17,"input",11),e.NdJ("ngModelChange",function(a){return i.qemuImg.path=a}),e.qZA(),e.qZA(),e.TgZ(18,"mat-form-field",6),e.TgZ(19,"input",12),e.NdJ("ngModelChange",function(a){return i.qemuImg.size=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",13),e.TgZ(21,"button",14),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(22,"Cancel"),e.qZA(),e.TgZ(23,"button",15),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(24,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.qemuImg.qemu_img),e.xp6(2),e.Q6J("ngModel",i.qemuImg.format),e.xp6(1),e.Q6J("ngForOf",i.formatOptions),e.xp6(1),e.Q6J("ngIf","qcow2"===i.qemuImg.format),e.xp6(1),e.Q6J("ngIf","vhd"===i.qemuImg.format||"vdi"===i.qemuImg.format),e.xp6(1),e.Q6J("ngIf","vmdk"===i.qemuImg.format),e.xp6(1),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.qemuImg.path),e.xp6(2),e.Q6J("ngModel",i.qemuImg.size))},directives:[ti,yi,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,pi.gD,re.On,kt.sg,kt.O5,re.wV,$r,An,un.ey,hl,ml],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}(),Ige=["customAdapters"];function Rge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.path),e.xp6(1),e.hij(" ",t.path," ")}}function Nge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Zge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}function Lge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Fge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.filename),e.xp6(1),e.hij(" ",t.filename," ")}}function Bge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Uge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.filename),e.xp6(1),e.hij(" ",t.filename," ")}}function Hge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Vge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.filename),e.xp6(1),e.hij(" ",t.filename," ")}}function qge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function jge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.filename),e.xp6(1),e.hij(" ",t.filename," ")}}function zge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Wge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",11),e.TgZ(1,"input",50),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).node.properties.cpu_throttling=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.node.properties.cpu_throttling)}}function Gge(n,r){if(1&n&&(e.TgZ(0,"mat-option",49),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Yge(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e._UZ(2,"br"),e.TgZ(3,"form",10),e.TgZ(4,"mat-form-field",11),e.TgZ(5,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",11),e.TgZ(7,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.ram=a}),e.qZA(),e.TgZ(8,"span",14),e._uU(9,"MB"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"mat-form-field",11),e.TgZ(11,"input",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.cpus=a}),e.qZA(),e.qZA(),e.TgZ(12,"mat-form-field",11),e.TgZ(13,"mat-select",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.qemu_path=a}),e.YNc(14,Rge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(15,"mat-form-field",11),e.TgZ(16,"mat-select",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.boot_priority=a}),e.YNc(17,Nge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(18,"mat-form-field",11),e.TgZ(19,"mat-select",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.on_close=a}),e.YNc(20,Zge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(21,"mat-form-field",20),e.TgZ(22,"mat-select",21),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(23,Lge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.TgZ(24,"mat-checkbox",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.console_auto_start=a}),e._uU(25," Auto start console "),e.qZA(),e.qZA(),e.TgZ(26,"mat-tab",23),e.TgZ(27,"mat-card"),e.TgZ(28,"button",24),e.NdJ("click",function(){return e.CHM(t),e.oxw().openQemuImageCreator()}),e._uU(29," Create Qemu image "),e.qZA(),e._UZ(30,"mat-card-title"),e.TgZ(31,"mat-card-subtitle"),e._uU(32," HDA (Primary Master) "),e.qZA(),e.TgZ(33,"mat-card-content"),e.TgZ(34,"mat-select",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hda_disk_image=a}),e.YNc(35,Fge,2,2,"mat-option",17),e.qZA(),e.TgZ(36,"mat-form-field",11),e.TgZ(37,"mat-select",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hda_disk_interface=a}),e.YNc(38,Bge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(39,"mat-card"),e._UZ(40,"mat-card-title"),e.TgZ(41,"mat-card-subtitle"),e._uU(42," HDB (Primary Slave) "),e.qZA(),e.TgZ(43,"mat-card-content"),e.TgZ(44,"mat-select",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hdb_disk_image=a}),e.YNc(45,Uge,2,2,"mat-option",17),e.qZA(),e.TgZ(46,"mat-form-field",11),e.TgZ(47,"mat-select",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hdb_disk_interface=a}),e.YNc(48,Hge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(49,"mat-card"),e._UZ(50,"mat-card-title"),e.TgZ(51,"mat-card-subtitle"),e._uU(52," HDC (Secondary Master) "),e.qZA(),e.TgZ(53,"mat-card-content"),e.TgZ(54,"mat-select",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hdc_disk_image=a}),e.YNc(55,Vge,2,2,"mat-option",17),e.qZA(),e.TgZ(56,"mat-form-field",11),e.TgZ(57,"mat-select",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hdc_disk_interface=a}),e.YNc(58,qge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"mat-card"),e._UZ(60,"mat-card-title"),e.TgZ(61,"mat-card-subtitle"),e._uU(62," HDD (Secondary Slave) "),e.qZA(),e.TgZ(63,"mat-card-content"),e.TgZ(64,"mat-select",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hdd_disk_image=a}),e.YNc(65,jge,2,2,"mat-option",17),e.qZA(),e.TgZ(66,"mat-form-field",11),e.TgZ(67,"mat-select",26),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.hdd_disk_interface=a}),e.YNc(68,zge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(69,"mat-tab",27),e.TgZ(70,"div"),e.TgZ(71,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(74).click()}),e._uU(72,"Browse"),e.qZA(),e.TgZ(73,"input",29,30),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadCdromImageFile(a)}),e.qZA(),e.TgZ(75,"mat-form-field",31),e.TgZ(76,"input",32),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.cdrom_image=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(77,"mat-tab",33),e._UZ(78,"br"),e.TgZ(79,"mat-checkbox",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.legacy_networking=a}),e._uU(80," Use the legacy networking mode "),e.qZA(),e._UZ(81,"br"),e.TgZ(82,"mat-checkbox",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.replicate_network_connection_state=a}),e._uU(83," Replicate network connection state "),e.qZA(),e._UZ(84,"app-custom-adapters-table",34,35),e.qZA(),e.TgZ(86,"mat-tab",36),e.TgZ(87,"mat-card"),e._UZ(88,"mat-card-title"),e.TgZ(89,"mat-card-subtitle"),e._uU(90," Linux boot specific settings "),e.qZA(),e.TgZ(91,"mat-card-content"),e.TgZ(92,"div"),e.TgZ(93,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(96).click()}),e._uU(94," Browse "),e.qZA(),e.TgZ(95,"input",29,37),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadInitrdFile(a)}),e.qZA(),e.TgZ(97,"mat-form-field",31),e.TgZ(98,"input",38),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.initrd=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(99,"div"),e.TgZ(100,"button",28),e.NdJ("click",function(){return e.CHM(t),e.oxw().filekerenelimage.click()}),e._uU(101," Browse "),e.qZA(),e.TgZ(102,"input",29,39),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadKernelImageFile(a)}),e.qZA(),e.TgZ(104,"mat-form-field",31),e.TgZ(105,"input",40),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.kernel_image=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(106,"mat-form-field",11),e.TgZ(107,"input",41),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.kernel_command_line=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(108,"mat-card"),e._UZ(109,"mat-card-title"),e.TgZ(110,"mat-card-subtitle"),e._uU(111," Bios "),e.qZA(),e.TgZ(112,"mat-card-content"),e.TgZ(113,"div"),e.TgZ(114,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(117).click()}),e._uU(115," Browse "),e.qZA(),e.TgZ(116,"input",29,42),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadBiosFile(a)}),e.qZA(),e.TgZ(118,"mat-form-field",31),e.TgZ(119,"input",43),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.bios_image=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(120,"mat-card"),e._UZ(121,"mat-card-title"),e.TgZ(122,"mat-card-subtitle"),e._uU(123," Optimization "),e.qZA(),e.TgZ(124,"mat-card-content"),e.TgZ(125,"mat-checkbox",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().activateCpuThrottling=a}),e._uU(126," Activate CPU throttling "),e.qZA(),e.YNc(127,Wge,2,1,"mat-form-field",44),e.TgZ(128,"mat-form-field",11),e.TgZ(129,"mat-select",45),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.process_priority=a}),e.YNc(130,Gge,2,2,"mat-option",17),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(131,"mat-card"),e._UZ(132,"mat-card-title"),e.TgZ(133,"mat-card-subtitle"),e._uU(134," Additional settings "),e.qZA(),e.TgZ(135,"mat-card-content"),e.TgZ(136,"mat-form-field",11),e.TgZ(137,"input",46),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.options=a}),e.qZA(),e.qZA(),e._UZ(138,"br"),e.TgZ(139,"mat-checkbox",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.tpm=a}),e._uU(140," Enable the Trusted Platform Module (TPM) "),e.qZA(),e._UZ(141,"br"),e.TgZ(142,"mat-checkbox",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.uefi=a}),e._uU(143," Enable the UEFI boot mode "),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(144,"mat-tab",47),e.TgZ(145,"mat-form-field",11),e.TgZ(146,"textarea",48),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModel",i.node.properties.ram),e.xp6(4),e.Q6J("ngModel",i.node.properties.cpus),e.xp6(2),e.Q6J("ngModel",i.node.properties.qemu_path),e.xp6(1),e.Q6J("ngForOf",i.binaries),e.xp6(2),e.Q6J("ngModel",i.node.properties.boot_priority),e.xp6(1),e.Q6J("ngForOf",i.bootPriorities),e.xp6(2),e.Q6J("ngModel",i.node.properties.on_close),e.xp6(1),e.Q6J("ngForOf",i.onCloseOptions),e.xp6(2),e.Q6J("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModel",i.node.properties.console_auto_start),e.xp6(10),e.Q6J("ngModel",i.node.properties.hda_disk_image),e.xp6(1),e.Q6J("ngForOf",i.qemuImages),e.xp6(2),e.Q6J("ngModel",i.node.properties.hda_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(6),e.Q6J("ngModel",i.node.properties.hdb_disk_image),e.xp6(1),e.Q6J("ngForOf",i.qemuImages),e.xp6(2),e.Q6J("ngModel",i.node.properties.hdb_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(6),e.Q6J("ngModel",i.node.properties.hdc_disk_image),e.xp6(1),e.Q6J("ngForOf",i.qemuImages),e.xp6(2),e.Q6J("ngModel",i.node.properties.hdc_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(6),e.Q6J("ngModel",i.node.properties.hdd_disk_image),e.xp6(1),e.Q6J("ngForOf",i.qemuImages),e.xp6(2),e.Q6J("ngModel",i.node.properties.hdd_disk_interface),e.xp6(1),e.Q6J("ngForOf",i.diskInterfaces),e.xp6(8),e.Q6J("ngModel",i.node.properties.cdrom_image),e.xp6(3),e.Q6J("ngModel",i.node.properties.legacy_networking),e.xp6(3),e.Q6J("ngModel",i.node.properties.replicate_network_connection_state),e.xp6(2),e.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),e.xp6(14),e.Q6J("ngModel",i.node.properties.initrd),e.xp6(7),e.Q6J("ngModel",i.node.properties.kernel_image),e.xp6(2),e.Q6J("ngModel",i.node.properties.kernel_command_line),e.xp6(12),e.Q6J("ngModel",i.node.properties.bios_image),e.xp6(6),e.Q6J("ngModel",i.activateCpuThrottling),e.xp6(2),e.Q6J("ngIf",i.activateCpuThrottling),e.xp6(2),e.Q6J("ngModel",i.node.properties.process_priority),e.xp6(1),e.Q6J("ngForOf",i.priorities),e.xp6(7),e.Q6J("ngModel",i.node.properties.options),e.xp6(2),e.Q6J("ngModel",i.node.properties.tpm),e.xp6(3),e.Q6J("ngModel",i.node.properties.uefi),e.xp6(4),e.Q6J("ngModel",i.node.properties.usage)}}var Jge=function(){function n(r,t,i,o,a,s,u){this.dialog=r,this.dialogRef=t,this.nodeService=i,this.toasterService=o,this.formBuilder=a,this.qemuService=s,this.qemuConfigurationService=u,this.consoleTypes=[],this.binaries=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.qemuImages=[],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new re.NI("",re.kI.required),ram:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration()}),this.qemuService.getBinaries(this.server).subscribe(function(t){r.binaries=t}),this.qemuService.getImages(this.server).subscribe(function(t){r.qemuImages=t})},n.prototype.openQemuImageCreator=function(){this.dialogRefQemuImageCreator=this.dialog.open(Pge,this.conf),this.dialogRefQemuImageCreator.componentInstance.server=this.server},n.prototype.uploadCdromImageFile=function(r){this.node.properties.cdrom_image=r.target.files[0].name},n.prototype.uploadInitrdFile=function(r){this.node.properties.initrd=r.target.files[0].name},n.prototype.uploadKernelImageFile=function(r){this.node.properties.kernel_image=r.target.files[0].name},n.prototype.uploadBiosFile=function(r){this.node.properties.bios_image=r.target.files[0].name},n.prototype.getConfiguration=function(){var r=this;this.consoleTypes=this.qemuConfigurationService.getConsoleTypes(),this.onCloseOptions=this.qemuConfigurationService.getOnCloseOptions(),this.qemuConfigurationService.getNetworkTypes().forEach(function(t){r.networkTypes.push(t)}),this.bootPriorities=this.qemuConfigurationService.getBootPriorities(),this.diskInterfaces=this.qemuConfigurationService.getDiskInterfaces()},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(t){r.node.custom_adapters.push({adapter_number:t.adapter_number,adapter_type:t.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(to),e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu),e.Y36(bp),e.Y36(g2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-qemu"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Ige,5),2&t)&&(e.iGM(o=e.CRH())&&(i.customAdapters=o.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","ram","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","vCPUs",3,"ngModel","ngModelChange"],["placeholder","Qemu binary",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Boot priority",3,"ngModel","ngModelChange"],["placeholder","On close",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","HDD"],["mat-raised-button","","color","primary",1,"create-button",3,"click"],["placeholder","Disk image",3,"ngModel","ngModelChange"],["placeholder","Disk interface",3,"ngModel","ngModelChange"],["label","CD/DVD"],["mat-raised-button","","color","primary",1,"file-button",3,"click"],["type","file",1,"nonvisible",3,"change"],["filecdrom",""],[1,"file-name-form-field"],["matInput","","type","text","placeholder","Image",3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Advanced"],["fileinitrd",""],["matInput","","type","text","placeholder","Initial RAM disk (initrd)",3,"ngModel","ngModelChange"],["filekernelimage",""],["matInput","","type","text","placeholder","Kernel image",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Kernel command line",3,"ngModel","ngModelChange"],["filebios",""],["matInput","","type","text","placeholder","Bios image",3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["placeholder","Process priority",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Options",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"],["matInput","","type","number","placeholder","Perecentage of CPU allowed",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.YNc(6,Yge,147,47,"mat-tab-group",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(11,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.name))},directives:[ti,yi,kt.O5,$r,An,Eo.SP,Eo.uX,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,re.wV,Hn.R9,re.On,pi.gD,kt.sg,Zo,kq,Mq,YZ,_2,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}();function Qge(n,r){1&n&&(e.TgZ(0,"th",24),e._uU(1,"Port : DLCI"),e.qZA())}function Kge(n,r){if(1&n&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.portIn)}}function Xge(n,r){1&n&&(e.TgZ(0,"th",24),e._uU(1,"Port : DLCI"),e.qZA())}function $ge(n,r){if(1&n&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Oqu(t.portOut)}}function e_e(n,r){1&n&&(e.TgZ(0,"th",24),e._uU(1,"Actions"),e.qZA())}function t_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"td",25),e.TgZ(1,"button",26),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw(2).delete(a)}),e.TgZ(2,"mat-icon",27),e._uU(3,"delete"),e.qZA(),e.qZA(),e.qZA()}}function n_e(n,r){1&n&&e._UZ(0,"tr",28)}function r_e(n,r){1&n&&e._UZ(0,"tr",29)}function i_e(n,r){if(1&n&&(e.TgZ(0,"table",16),e.ynx(1,17),e.YNc(2,Qge,2,0,"th",18),e.YNc(3,Kge,2,1,"td",19),e.BQk(),e.ynx(4,20),e.YNc(5,Xge,2,0,"th",18),e.YNc(6,$ge,2,1,"td",19),e.BQk(),e.ynx(7,21),e.YNc(8,e_e,2,0,"th",18),e.YNc(9,t_e,4,0,"td",19),e.BQk(),e.YNc(10,n_e,1,0,"tr",22),e.YNc(11,r_e,1,0,"tr",23),e.qZA()),2&n){var t=e.oxw();e.Q6J("dataSource",t.nodeMappingsDataSource),e.xp6(10),e.Q6J("matHeaderRowDef",t.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",t.displayedColumns)}}var o_e=function(){function n(r,t,i,o){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceDlci="",this.destinationPort="",this.destinationDlci="",this.nameForm=this.formBuilder.group({name:new re.NI("",re.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new re.NI("",re.kI.required),sourceDlci:new re.NI("",re.kI.required),destinationPort:new re.NI("",re.kI.required),destinationDlci:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name;var i=t.properties.mappings;Object.keys(i).forEach(function(o){r.nodeMappings.set(o,i[o])}),r.nodeMappings.forEach(function(o,a){r.nodeMappingsDataSource.push({portIn:a,portOut:o})})})},n.prototype.delete=function(r){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter(function(t){return t!==r})},n.prototype.add=function(){if(this.inputForm.valid){var r={portIn:this.sourcePort+":"+this.sourceDlci,portOut:this.destinationPort+":"+this.destinationDlci};this.nodeMappingsDataSource.filter(function(t){return t.portIn===r.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([r]),this.clearUserInput())}else this.toasterService.error("Fill all required fields.")},n.prototype.clearUserInput=function(){this.sourcePort="0",this.sourceDlci="0",this.destinationPort="0",this.destinationDlci="0"},n.prototype.strMapToObj=function(r){for(var t=Object.create(null),i=0,o=r;i<o.length;i++){var a=o[i];t[a[0]]=a[1]}return t},n.prototype.onSaveClick=function(){var r=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach(function(t){r.nodeMappings.set(t.portIn,t.portOut)}),this.node.properties.mappings=Array.from(this.nodeMappings).reduce(function(t,i){var o;return Object.assign(t,((o={})[i[0]]=i[1],o))},{}),this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-switch"]],decls:29,vars:9,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceDlci","placeholder","DLCI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationDlci","placeholder","DLCI",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["mat-table","",1,"table",3,"dataSource"],["matColumnDef","portIn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","portOut"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card"),e.YNc(6,i_e,12,3,"table",4),e._UZ(7,"br"),e.TgZ(8,"form",5),e.TgZ(9,"mat-form-field",6),e.TgZ(10,"input",7),e.NdJ("ngModelChange",function(a){return i.node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"form",5),e._uU(12," Source "),e.TgZ(13,"mat-form-field",6),e.TgZ(14,"input",8),e.NdJ("ngModelChange",function(a){return i.sourcePort=a}),e.qZA(),e.qZA(),e.TgZ(15,"mat-form-field",6),e.TgZ(16,"input",9),e.NdJ("ngModelChange",function(a){return i.sourceDlci=a}),e.qZA(),e.qZA(),e._uU(17," Destination "),e.TgZ(18,"mat-form-field",6),e.TgZ(19,"input",10),e.NdJ("ngModelChange",function(a){return i.destinationPort=a}),e.qZA(),e.qZA(),e.TgZ(20,"mat-form-field",6),e.TgZ(21,"input",11),e.NdJ("ngModelChange",function(a){return i.destinationDlci=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"button",12),e.NdJ("click",function(){return i.add()}),e._uU(23,"Add"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",13),e.TgZ(25,"button",14),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(26,"Cancel"),e.qZA(),e.TgZ(27,"button",15),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(28,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.nodeMappingsDataSource.length),e.xp6(2),e.Q6J("formGroup",i.nameForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(1),e.Q6J("formGroup",i.inputForm),e.xp6(3),e.Q6J("ngModel",i.sourcePort),e.xp6(2),e.Q6J("ngModel",i.sourceDlci),e.xp6(3),e.Q6J("ngModel",i.destinationPort),e.xp6(2),e.Q6J("ngModel",i.destinationDlci))},directives:[ti,yi,kt.O5,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,re.wV,An,$r,Jl,dl,cl,ul,Ql,Kl,pl,fl,Ja,sr,Xl,$l],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}",".listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]}),n}(),a_e=function(){function n(r,t,i,o){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.generalSettingsForm=this.formBuilder.group({name:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name})},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-traceng"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.TgZ(6,"form",5),e.TgZ(7,"mat-form-field",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(a){return i.node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"button",9),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(11,"Cancel"),e.qZA(),e.TgZ(12,"button",10),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(13,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name))},directives:[ti,yi,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,$r,An],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}(),s_e=["customAdapters"];function l_e(n,r){if(1&n&&(e.TgZ(0,"mat-option",26),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function u_e(n,r){if(1&n&&(e.TgZ(0,"mat-option",26),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}var RL=function(){return{standalone:!0}};function c_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e._UZ(2,"br"),e.TgZ(3,"form",10),e.TgZ(4,"mat-form-field",11),e.TgZ(5,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",13),e.TgZ(7,"mat-select",14),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(8,l_e,2,2,"mat-option",15),e.qZA(),e.qZA(),e.TgZ(9,"mat-checkbox",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_auto_start=a}),e._uU(10," Auto start console "),e.qZA(),e.TgZ(11,"mat-form-field",11),e.TgZ(12,"input",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.ram=a}),e.qZA(),e.TgZ(13,"span",18),e._uU(14,"MB"),e.qZA(),e.qZA(),e.TgZ(15,"mat-form-field",11),e.TgZ(16,"mat-select",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.on_close=a}),e.YNc(17,u_e,2,2,"mat-option",15),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"mat-checkbox",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.headless=a}),e._uU(19," Start VM in headless mode "),e.qZA(),e.qZA(),e.TgZ(20,"mat-tab",21),e._UZ(21,"br"),e.TgZ(22,"mat-checkbox",20),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.use_any_adapter=a}),e._uU(23," Allow GNS3 to use any configured VirtualBox adapter "),e.qZA(),e._UZ(24,"app-custom-adapters-table",22,23),e.qZA(),e.TgZ(26,"mat-tab",24),e.TgZ(27,"mat-form-field",11),e.TgZ(28,"textarea",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(17,RL))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(18,RL))("ngModel",i.node.console_auto_start),e.xp6(3),e.Q6J("ngModel",i.node.properties.ram),e.xp6(4),e.Q6J("ngModelOptions",e.DdM(19,RL))("ngModel",i.node.properties.on_close),e.xp6(1),e.Q6J("ngForOf",i.onCloseOptions),e.xp6(1),e.Q6J("ngModel",i.node.properties.headless),e.xp6(4),e.Q6J("ngModel",i.node.properties.use_any_adapter),e.xp6(2),e.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),e.xp6(4),e.Q6J("ngModel",i.node.properties.usage)}}var d_e=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.virtualBoxConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new re.NI("",re.kI.required),ram:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.virtualBoxConfigurationService.getConsoleTypes(),this.onCloseOptions=this.virtualBoxConfigurationService.getOnCloseoptions(),this.networkTypes=this.virtualBoxConfigurationService.getNetworkTypes()},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(t){r.node.custom_adapters.push({adapter_number:t.adapter_number,adapter_type:t.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu),e.Y36(dL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-virtualbox"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(s_e,5),2&t)&&(e.iGM(o=e.CRH())&&(i.customAdapters=o.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","ram","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.YNc(6,c_e,29,20,"mat-tab-group",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(11,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.name))},directives:[ti,yi,kt.O5,$r,An,Eo.SP,Eo.uX,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,pi.gD,re.On,kt.sg,Zo,re.wV,Hn.R9,_2,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}(),p_e=["customAdapters"];function f_e(n,r){if(1&n&&(e.TgZ(0,"mat-option",24),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function h_e(n,r){if(1&n&&(e.TgZ(0,"mat-option",24),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}var NL=function(){return{standalone:!0}};function m_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e._UZ(2,"br"),e.TgZ(3,"form",10),e.TgZ(4,"mat-form-field",11),e.TgZ(5,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.name=a}),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",13),e.TgZ(7,"mat-select",14),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_type=a}),e.YNc(8,f_e,2,2,"mat-option",15),e.qZA(),e.qZA(),e.TgZ(9,"mat-checkbox",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.console_auto_start=a}),e._uU(10," Auto start console "),e.qZA(),e.TgZ(11,"mat-form-field",11),e.TgZ(12,"mat-select",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.on_close=a}),e.YNc(13,h_e,2,2,"mat-option",15),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"mat-checkbox",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.headless=a}),e._uU(15," Start VM in headless mode "),e.qZA(),e._UZ(16,"br"),e.TgZ(17,"mat-checkbox",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.linked_clone=a}),e._uU(18," Use a linked base VM (experimental) "),e.qZA(),e.qZA(),e.TgZ(19,"mat-tab",19),e._UZ(20,"br"),e.TgZ(21,"mat-checkbox",18),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.use_any_adapter=a}),e._uU(22," Allow GNS3 to override non custom VMware adapter "),e.qZA(),e._UZ(23,"app-custom-adapters-table",20,21),e.qZA(),e.TgZ(25,"mat-tab",22),e.TgZ(26,"mat-form-field",11),e.TgZ(27,"textarea",23),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.usage=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("formGroup",i.generalSettingsForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(17,NL))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(18,NL))("ngModel",i.node.console_auto_start),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(19,NL))("ngModel",i.node.properties.on_close),e.xp6(1),e.Q6J("ngForOf",i.onCloseOptions),e.xp6(1),e.Q6J("ngModel",i.node.properties.headless),e.xp6(3),e.Q6J("ngModel",i.node.properties.linked_clone),e.xp6(4),e.Q6J("ngModel",i.node.properties.use_any_adapter),e.xp6(2),e.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),e.xp6(4),e.Q6J("ngModel",i.node.properties.usage)}}var v_e=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.vmwareConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.vmwareConfigurationService.getConsoleTypes(),this.onCloseOptions=this.vmwareConfigurationService.getOnCloseoptions(),this.networkTypes=this.vmwareConfigurationService.getNetworkTypes()},n.prototype.onSaveClick=function(){var r=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(t){r.node.custom_adapters.push({adapter_number:t.adapter_number,adapter_type:t.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()})):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu),e.Y36(pL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-vmware"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(p_e,5),2&t)&&(e.iGM(o=e.CRH())&&(i.customAdapters=o.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.YNc(6,m_e,28,20,"mat-tab-group",5),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"div",6),e.TgZ(8,"button",7),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(9,"Cancel"),e.qZA(),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(11,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("ngIf",i.name))},directives:[ti,yi,kt.O5,$r,An,Eo.SP,Eo.uX,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,pi.gD,re.On,kt.sg,Zo,_2,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}();function g_e(n,r){if(1&n&&(e.TgZ(0,"mat-option",15),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}var tz=function(){return{standalone:!0}},__e=function(){function n(r,t,i,o,a){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.vpcsConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=t.name,r.getConfiguration()})},n.prototype.getConfiguration=function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes()},n.prototype.onSaveClick=function(){var r=this;this.inputForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu),e.Y36(S2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-vpcs"]],decls:19,vars:10,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.TgZ(6,"form",5),e.TgZ(7,"mat-form-field",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(a){return i.node.name=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",8),e.TgZ(10,"mat-select",9),e.NdJ("ngModelChange",function(a){return i.node.console_type=a}),e.YNc(11,g_e,2,2,"mat-option",10),e.qZA(),e.qZA(),e.TgZ(12,"mat-checkbox",11),e.NdJ("ngModelChange",function(a){return i.node.console_auto_start=a}),e._uU(13," Auto start console "),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",12),e.TgZ(15,"button",13),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(16,"Cancel"),e.qZA(),e.TgZ(17,"button",14),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(18,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configurator for node ",i.name,""),e.xp6(5),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.node.name),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(8,tz))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(9,tz))("ngModel",i.node.console_auto_start))},directives:[ti,yi,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,pi.gD,re.On,kt.sg,Zo,$r,An,un.ey],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.configButton[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}(),y_e=function(){function n(r){this.dialog=r,this.conf={autoFocus:!1,width:"800px",disableClose:!0}}return n.prototype.configureNode=function(){"vpcs"===this.node.node_type?this.dialogRef=this.dialog.open(__e,this.conf):"ethernet_hub"===this.node.node_type?this.dialogRef=this.dialog.open(fge,this.conf):"ethernet_switch"===this.node.node_type?this.dialogRef=this.dialog.open(dge,this.conf):"cloud"===this.node.node_type?this.dialogRef=this.dialog.open(Kve,this.conf):"dynamips"===this.node.node_type?this.dialogRef=this.dialog.open(vge,this.conf):"iou"===this.node.node_type?this.dialogRef=this.dialog.open(Cge,this.conf):"qemu"===this.node.node_type?this.dialogRef=this.dialog.open(Jge,this.conf):"virtualbox"===this.node.node_type?this.dialogRef=this.dialog.open(d_e,this.conf):"vmware"===this.node.node_type?this.dialogRef=this.dialog.open(v_e,this.conf):"docker"===this.node.node_type?this.dialogRef=this.dialog.open(age,this.conf):"nat"===this.node.node_type?this.dialogRef=this.dialog.open(Sge,this.conf):"frame_relay_switch"===this.node.node_type?this.dialogRef=this.dialog.open(o_e,this.conf):"atm_switch"===this.node.node_type?this.dialogRef=this.dialog.open(Mve,this.conf):"traceng"===this.node.node_type&&(this.dialogRef=this.dialog.open(a_e,this.conf));var r=this.dialogRef.componentInstance;r.server=this.server,r.node=this.node},n.\u0275fac=function(t){return new(t||n)(e.Y36(to))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-config-node-action"]],inputs:{server:"server",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.configureNode()}),e.TgZ(1,"mat-icon"),e._uU(2,"settings_applications"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Configure"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}();function b_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().startNodes()}),e.TgZ(1,"mat-icon"),e._uU(2,"play_arrow"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Start"),e.qZA(),e.qZA()}}var C_e=function(){function n(r,t){this.nodeService=r,this.toasterService=t}return n.prototype.ngOnInit=function(){},n.prototype.ngOnChanges=function(r){var t=this;r.nodes&&(this.isNodeWithStoppedStatus=!1,this.nodes.forEach(function(i){("stopped"===i.status||"suspended"===i.status)&&(t.isNodeWithStoppedStatus=!0)}))},n.prototype.startNodes=function(){var r=this;this.nodes.forEach(function(t){r.nodeService.start(r.server,t).subscribe(function(i){},function(i){r.toasterService.error(i.error.message)})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Wr),e.Y36(Xn))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-start-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[e.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,b_e,5,0,"button",0),2&t&&e.Q6J("ngIf",i.isNodeWithStoppedStatus)},directives:[kt.O5,Nr,sr],encapsulation:2}),n}();function S_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().suspendNodes()}),e.TgZ(1,"mat-icon"),e._uU(2,"pause"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Suspend"),e.qZA(),e.qZA()}}var T_e=function(){function n(r){this.nodeService=r}return n.prototype.ngOnInit=function(){},n.prototype.ngOnChanges=function(r){var t=this;r.nodes&&(this.isNodeWithStartedStatus=!1,this.nodes.forEach(function(i){"started"===i.status&&(t.isNodeWithStartedStatus=!0)}))},n.prototype.suspendNodes=function(){var r=this;this.nodes.forEach(function(t){r.nodeService.suspend(r.server,t).subscribe(function(i){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Wr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-suspend-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[e.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,S_e,5,0,"button",0),2&t&&e.Q6J("ngIf",i.isNodeWithStartedStatus)},directives:[kt.O5,Nr,sr],encapsulation:2}),n}();function x_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().stopNodes()}),e.TgZ(1,"mat-icon"),e._uU(2,"stop"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Stop"),e.qZA(),e.qZA()}}var w_e=function(){function n(r){this.nodeService=r}return n.prototype.ngOnInit=function(){},n.prototype.ngOnChanges=function(r){var t=this;r.nodes&&(this.isNodeWithStartedStatus=!1,this.nodes.forEach(function(i){"started"===i.status&&(t.isNodeWithStartedStatus=!0)}))},n.prototype.stopNodes=function(){var r=this;this.nodes.forEach(function(t){r.nodeService.stop(r.server,t).subscribe(function(i){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Wr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-stop-node-action"]],inputs:{server:"server",nodes:"nodes"},features:[e.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,x_e,5,0,"button",0),2&t&&e.Q6J("ngIf",i.isNodeWithStartedStatus)},directives:[kt.O5,Nr,sr],encapsulation:2}),n}();function E_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().reloadNodes()}),e.TgZ(1,"mat-icon"),e._uU(2,"refresh"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Reload"),e.qZA(),e.qZA()}}var k_e=function(){function n(r){this.nodeService=r,this.filteredNodes=[]}return n.prototype.ngOnInit=function(){var r=this;this.nodes.forEach(function(t){("vpcs"===t.node_type||"qemu"===t.node_type||"virtualbox"===t.node_type||"vmware"===t.node_type)&&r.filteredNodes.push(t)})},n.prototype.reloadNodes=function(){var r=this;this.filteredNodes.forEach(function(t){r.nodeService.reload(r.server,t).subscribe(function(i){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Wr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-reload-node-action"]],inputs:{server:"server",nodes:"nodes"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,E_e,5,0,"button",0),2&t&&e.Q6J("ngIf",i.filteredNodes.length>0)},directives:[kt.O5,Nr,sr],encapsulation:2}),n}(),cd=function(){function n(r,t,i){this.router=r,this.toasterService=t,this.mapSettingsService=i,this.nodeConsoleTrigger=new e.vpe,this.closeNodeConsoleTrigger=new Pn.xQ,this.consoleResized=new Pn.xQ,this.openConsoles=0,this.defaultConsoleWidth=720,this.defaultConsoleHeight=408,this.defaultNumberOfColumns=80,this.defaultNumberOfRows=24}return n.prototype.getNumberOfColumns=function(){return this.lastNumberOfColumns},n.prototype.getNumberOfRows=function(){return this.lastNumberOfRows},n.prototype.setNumberOfColumns=function(r){this.lastNumberOfColumns=r},n.prototype.setNumberOfRows=function(r){this.lastNumberOfRows=r},n.prototype.openConsoleForNode=function(r){this.nodeConsoleTrigger.emit(r)},n.prototype.closeConsoleForNode=function(r){this.closeNodeConsoleTrigger.next(r)},n.prototype.resizeTerminal=function(r){this.consoleResized.next(r)},n.prototype.getLineWidth=function(){return this.defaultConsoleWidth/this.defaultNumberOfColumns},n.prototype.getLineHeight=function(){return this.defaultConsoleHeight/this.defaultNumberOfRows},n.prototype.getUrl=function(r,t){var i="ws";return"https:"===r.protocol&&(i="wss"),i+"://"+r.host+":"+r.port+"/v2/projects/"+t.project_id+"/nodes/"+t.node_id+"/console/ws"},n.prototype.openConsolesForAllNodesInWidget=function(r){var t=this,i="Please start the following nodes if you want to open consoles for them: ",o=0;r.forEach(function(a){"none"!==a.console_type&&("started"===a.status?(t.mapSettingsService.logConsoleSubject.next(!0),setTimeout(function(){t.openConsoleForNode(a)},500)):(o++,i+=a.name+" "))}),o>0&&this.toasterService.error(i)},n.prototype.openConsolesForAllNodesInNewTabs=function(r){var t=this,i="Please start the following nodes if you want to open consoles in tabs for them: ",o=0;r.forEach(function(a){if("telnet"===a.console_type)if("started"===a.status){var s=t.router.url.split("/");window.open("/static/web-ui/"+s[1]+"/"+s[2]+"/"+s[3]+"/"+s[4]+"/nodes/"+a.node_id)}else o++,i+=a.name+" "}),o>0&&this.toasterService.error(i)},n.\u0275fac=function(t){return new(t||n)(e.LFG(xr),e.LFG(Xn),e.LFG(Ou))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),M_e=function(){function n(r){this.nodeConsoleService=r}return n.prototype.ngOnInit=function(){},n.prototype.openConsole=function(){this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodes)},n.\u0275fac=function(t){return new(t||n)(e.Y36(cd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-http-console-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.openConsole()}),e.TgZ(1,"mat-icon"),e._uU(2,"http"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Web console"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}(),A_e=function(){function n(r){this.nodeConsoleService=r}return n.prototype.ngOnInit=function(){},n.prototype.openConsole=function(){this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodes)},n.\u0275fac=function(t){return new(t||n)(e.Y36(cd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-http-console-new-tab-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.openConsole()}),e.TgZ(1,"mat-icon"),e._uU(2,"http"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Web console in new tab"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}(),Tp=f(10503),D_e=function(){function n(r,t,i,o,a){this.electronService=r,this.serverService=t,this.settingsService=i,this.toasterService=o,this.nodeService=a}return n.prototype.ngOnInit=function(){},n.prototype.console=function(){return(0,Jn.mG)(this,void 0,void 0,function(){var r,i,o,a,s;return(0,Jn.Jh)(this,function(u){switch(u.label){case 0:if(r=this.settingsService.getConsoleSettings()?this.settingsService.getConsoleSettings():this.nodeService.getDefaultCommand(),0===this.nodes.filter(function(p){return"started"===p.status&&"none"!==p.console_type}).length)return this.toasterService.error("Device needs to be started in order to console to it."),[2];i=0,o=this.nodes,u.label=1;case 1:return i<o.length?"started"!==(a=o[i]).status&&"none"!==a.console_type?[3,3]:(s={command:r,type:a.console_type,host:a.console_host,port:a.console,name:a.name,project_id:a.project_id,node_id:a.node_id,server_url:this.serverService.getServerUrl(this.server)},[4,this.openConsole(s)]):[3,4];case 2:u.sent(),u.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},n.prototype.openConsole=function(r){return(0,Jn.mG)(this,void 0,void 0,function(){return(0,Jn.Jh)(this,function(t){switch(t.label){case 0:return[4,this.electronService.remote.require("./console-executor.js").openConsole(r)];case 1:return[2,t.sent()]}})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(cs),e.Y36(Br),e.Y36(Tp.g),e.Y36(Xn),e.Y36(Wr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-console-device-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.console()}),e.TgZ(1,"mat-icon"),e._uU(2,"web_asset"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Console"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}(),nz=f(9047),by={UKNOWN:"Unknown"},ZL={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:by.UKNOWN},L2={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},Cy={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},oh={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:by.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},rz=[oh.PS4,oh.CHROME_BOOK,oh.MAC,oh.DELL,oh.ASUS,oh.UNKNOWN],O_e={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:by.UKNOWN},P_e={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:by.UKNOWN.toLowerCase()},iz={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},R_e=Object.assign(Object.assign(Object.assign(Object.assign({},L2),Cy),iz),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}}),LL={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},FL={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},oz=function(r,t){return r[t]=LL[t],r},N_e=Object.keys(LL).reduce(oz,{}),az=function(r,t){return r[ZL[t]]=FL[t],r},sz=Object.keys(FL).reduce(az,{}),dd=Object.freeze({__proto__:null,GENERAL:by,BROWSERS:ZL,MOBILES_RE:L2,TABLETS_RE:Cy,DEVICES:oh,DESKTOP_DEVICES:rz,OS:O_e,OS_VERSIONS:P_e,OS_RE:iz,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:R_e,OS_VERSIONS_RE_MAP:LL,BROWSER_VERSIONS_RE_MAP:FL,OS_VERSIONS_RE:N_e,BROWSER_VERSIONS_RE:sz,"\u02750":oz,"\u02751":az}),Z_e=function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{key:"test",value:function(t,i){var o=this;return"string"==typeof i&&(i=new RegExp(i)),i instanceof RegExp?i.test(t):i&&Array.isArray(i.and)?i.and.every(function(a){return o.test(t,a)}):i&&Array.isArray(i.or)?i.or.some(function(a){return o.test(t,a)}):!(!i||!i.not||this.test(t,i.not))}},{key:"exec",value:function(t,i){var o=this;return"string"==typeof i&&(i=new RegExp(i)),i instanceof RegExp?i.exec(t):i&&Array.isArray(i)?i.reduce(function(a,s){return a||o.exec(t,s)},null):null}}]),n}(),F2=function(n){return n.Mobile="mobile",n.Tablet="tablet",n.Desktop="desktop",n.Unknown="unknown",n}({}),lz=function(n){return n.Portrait="portrait",n.Landscape="landscape",n}({}),BL="iPad",uz=function(){var n=function(){function r(t){(0,g.Z)(this,r),this.platformId=t,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new Z_e,this.deviceType="",this.orientation="",(0,kt.NF)(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return(0,T.Z)(r,[{key:"setDeviceInfo",value:function(){var i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;o!==this.userAgent&&(this.userAgent=o);var a=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(a.forEach(function(p){i[p.prop]=Object.keys(dd[p.const]).reduce(function(m,C){return"device"===dd[p.const][C]&&(0,kt.NF)(i.platformId)&&(i.reTree.test(i.userAgent,Cy[BL])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(m[dd[p.const][C]]=BL,Object):(m[dd[p.const][C]]=i.reTree.test(o,dd["".concat(p.const,"_RE")][C]),m)},{})}),a.forEach(function(p){i[p.prop]=Object.keys(dd[p.const]).map(function(m){return dd[p.const][m]}).reduce(function(m,C){return"device"===p.prop&&m===dd[p.const].ANDROID?i[p.prop][C]?C:m:m===dd[p.const].UNKNOWN&&i[p.prop][C]?C:m},dd[p.const].UNKNOWN)}),this.browser_version="0",this.browser!==ZL.UNKNOWN){var s=sz[this.browser],u=this.reTree.exec(o,s);u&&(this.browser_version=u[1])}this.orientation="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?lz.Landscape:lz.Portrait:by.UKNOWN,this.deviceType=this.isTablet()?F2.Tablet:this.isMobile(this.userAgent)?F2.Mobile:this.isDesktop(this.userAgent)?F2.Desktop:F2.Unknown}},{key:"getDeviceInfo",value:function(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}},{key:"isMobile",value:function(){var i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if(this.isTablet(o))return!1;var a=Object.keys(L2).find(function(s){return i.reTree.test(o,L2[s])});return!!a}},{key:"isTablet",value:function(){var i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if((0,kt.NF)(this.platformId)&&(this.reTree.test(this.userAgent,Cy[BL])||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))return!0;var a=Object.keys(Cy).find(function(s){return!!i.reTree.test(o,Cy[s])});return!!a}},{key:"isDesktop",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return(this.device!==oh.UNKNOWN||!this.isMobile(i)&&!this.isTablet(i))&&rz.indexOf(this.device)>-1}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.Lbi))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(e.Lbi))},token:n,providedIn:"root"}),n}(),QS=function(){function n(r,t){this.toasterService=r,this.deviceService=t}return n.prototype.createHiddenIframe=function(r,t){var i=document.createElement("iframe");return i.src=t,i.id="hiddenIframe",i.style.display="none",r.appendChild(i),i},n.prototype.openUriUsingFirefox=function(r){var t=document.querySelector("#hiddenIframe");t||(t=this.createHiddenIframe(document.body,"about:blank"));try{t.contentWindow.location.href=r}catch(i){"NS_ERROR_UNKNOWN_PROTOCOL"===i.name&&this.toasterService.error("Protocol handler does not exist")}},n.prototype.open=function(r){var t=this.deviceService.getDeviceInfo();console.log("Launching external protocol handler with "+t.browser+": "+r),"Firefox"===t.browser?this.openUriUsingFirefox(r):location.assign(r)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Xn),e.LFG(uz))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function L_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",0),e.NdJ("click",function(){e.CHM(t);var o=e.oxw();return o.openConsole(o.auxiliary=!0)}),e.TgZ(1,"mat-icon"),e._uU(2,"web_asset"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Auxiliary console"),e.qZA(),e.qZA()}}var F_e=function(){function n(r,t,i){this.toasterService=r,this.nodeService=t,this.protocolHandlerService=i}return n.prototype.openConsole=function(r){var t=this;void 0===r&&(r=!1),this.nodeService.getNode(this.server,this.node).subscribe(function(i){t.node=i,t.startConsole(r)})},n.prototype.startConsole=function(r){if("started"!==this.node.status)this.toasterService.error("This node must be started before a console can be opened");else{("0.0.0.0"===this.node.console_host||"0:0:0:0:0:0:0:0"===this.node.console_host||"::"===this.node.console_host)&&(this.node.console_host=this.server.host);try{var t,i=this.node.console_host;if(nz.IPv6.isValid(i)&&(i="["+i+"]"),"telnet"===this.node.console_type){var o;if(!0===r){if(void 0===(o=this.node.properties.aux))return void this.toasterService.error("Auxiliary console port is not set.")}else o=this.node.console;t="gns3+telnet://"+i+":"+o+"?name="+this.node.name+"&project_id="+this.node.project_id+"&node_id="+this.node.node_id}else if("vnc"===this.node.console_type)t="gns3+vnc://"+i+":"+this.node.console+"?name="+this.node.name+"&project_id="+this.node.project_id+"&node_id="+this.node.node_id;else{if(!this.node.console_type.startsWith("spice"))return this.node.console_type.startsWith("http")?(t=this.node.console_type+"://"+i+":"+this.node.console,window.open(t)):void this.toasterService.error("Supported console types are: telnet, vnc, spice and spice+agent.");t="gns3+spice://"+i+":"+this.node.console+"?name="+this.node.name+"&project_id="+this.node.project_id+"&node_id="+this.node.node_id}this.protocolHandlerService.open(t)}catch(a){this.toasterService.error(a)}}},n.\u0275fac=function(t){return new(t||n)(e.Y36(Xn),e.Y36(Wr),e.Y36(QS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-console-device-action-browser"]],inputs:{server:"server",node:"node"},decls:6,vars:1,consts:[["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.openConsole()}),e.TgZ(1,"mat-icon"),e._uU(2,"web_asset"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Console"),e.qZA(),e.qZA(),e.YNc(5,L_e,5,0,"button",1)),2&t&&(e.xp6(5),e.Q6J("ngIf","docker"===i.node.node_type||"dynamips"===i.node.node_type||"qemu"===i.node.node_type))},directives:[Nr,sr,kt.O5],encapsulation:2}),n}(),B_e=function(){function n(r){this.electronService=r}return n.prototype.ngOnInit=function(){},n.prototype.open=function(){this.electronService.shell.openPath(this.node.node_directory)},n.\u0275fac=function(t){return new(t||n)(e.Y36(cs))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-open-file-explorer-action"]],inputs:{server:"server",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.open()}),e.TgZ(1,"mat-icon"),e._uU(2,"tab"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Open file explorer"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}(),U_e=function(){function n(r,t,i,o){this.dialogRef=r,this.nodeService=t,this.toasterService=i,this.formBuilder=o,this.inputForm=this.formBuilder.group({name:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.name=r.node.name})},n.prototype.onSaveClick=function(){var r=this;this.inputForm.valid?this.nodeService.updateNode(this.server,this.node).subscribe(function(){r.toasterService.success("Node "+r.node.name+" updated."),r.onCancelClick()}):this.toasterService.error("Fill all required fields.")},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn),e.Y36(re.qu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-change-hostname-dialog-component"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div",3),e.TgZ(5,"mat-card",4),e.TgZ(6,"form",5),e.TgZ(7,"mat-form-field",6),e.TgZ(8,"input",7),e.NdJ("ngModelChange",function(a){return i.node.name=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",8),e.TgZ(10,"button",9),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(11,"Cancel"),e.qZA(),e.TgZ(12,"button",10),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(13,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Change hostname for node ",i.name,""),e.xp6(5),e.Q6J("formGroup",i.inputForm),e.xp6(2),e.Q6J("ngModel",i.node.name))},directives:[ti,yi,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,$r,An],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),n}(),H_e=function(){function n(r){this.dialog=r}return n.prototype.ngOnInit=function(){},n.prototype.changeHostname=function(){var t=this.dialog.open(U_e,{autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.node=this.node},n.\u0275fac=function(t){return new(t||n)(e.Y36(to))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-change-hostname-action"]],inputs:{server:"server",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.changeHostname()}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Change hostname"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}(),V_e=function(){function n(r,t){this.dialogRef=r,this.nodeService=t}return n.prototype.ngOnInit=function(){this.symbol=this.node.symbol},n.prototype.symbolChanged=function(r){this.symbol=r},n.prototype.onCloseClick=function(){this.dialogRef.close()},n.prototype.onSelectClick=function(){var r=this;this.nodeService.updateSymbol(this.server,this.node,this.symbol).subscribe(function(){r.onCloseClick()})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-change-symbol-dialog"]],inputs:{server:"server",node:"node"},decls:10,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"symbolsWrapper"],[3,"server","symbol","symbolChanged"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"app-symbols",3),e.NdJ("symbolChanged",function(a){return i.symbolChanged(a)}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return i.onCloseClick()}),e._uU(7,"Cancel"),e.qZA(),e.TgZ(8,"button",6),e.NdJ("click",function(){return i.onSelectClick()}),e._uU(9,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Change symbol for node: ",i.node.name,""),e.xp6(3),e.Q6J("server",i.server)("symbol",i.symbol))},directives:[ti,Qq,$r,An],styles:[".symbolsWrapper[_ngcontent-%COMP%]{height:350px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]}),n}(),q_e=function(){function n(r){this.dialog=r}return n.prototype.ngOnInit=function(){},n.prototype.changeSymbol=function(){var t=this.dialog.open(V_e,{width:"1000px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.node=this.node},n.\u0275fac=function(t){return new(t||n)(e.Y36(to))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-change-symbol-action"]],inputs:{server:"server",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.changeSymbol()}),e.TgZ(1,"mat-icon"),e._uU(2,"find_replace"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Change symbol"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}(),xs=function(){function n(r,t){this.httpServer=r,this.svgToDrawingConverter=t}return n.prototype.add=function(r,t,i,o,a){return this.httpServer.post(r,"/projects/"+t+"/drawings",{svg:a,x:Math.round(i),y:Math.round(o),z:1})},n.prototype.duplicate=function(r,t,i){return this.httpServer.post(r,"/projects/"+t+"/drawings",{svg:i.svg,rotation:i.rotation,x:i.x+10,y:i.y+10,z:i.z})},n.prototype.updatePosition=function(r,t,i,o,a){var s=Math.round(o),u=Math.round(a);return t.snap_to_grid&&(i.element=this.svgToDrawingConverter.convert(i.svg),s=Math.round((s+i.element.width/2)/t.drawing_grid_size)*t.drawing_grid_size,u=Math.round((u+i.element.width/2)/t.drawing_grid_size)*t.drawing_grid_size,s=Math.round(s-i.element.width/2),u=Math.round(u-i.element.height/2)),this.httpServer.put(r,"/projects/"+i.project_id+"/drawings/"+i.drawing_id,{x:s,y:u})},n.prototype.updateSizeAndPosition=function(r,t,i,o,a){return this.httpServer.put(r,"/projects/"+t.project_id+"/drawings/"+t.drawing_id,{svg:a,x:Math.round(i),y:Math.round(o)})},n.prototype.updateText=function(r,t,i){return this.httpServer.put(r,"/projects/"+t.project_id+"/drawings/"+t.drawing_id,{svg:i,x:Math.round(t.x),y:Math.round(t.y),z:t.z})},n.prototype.update=function(r,t){return this.httpServer.put(r,"/projects/"+t.project_id+"/drawings/"+t.drawing_id,{locked:t.locked,svg:t.svg,rotation:t.rotation,x:Math.round(t.x),y:Math.round(t.y),z:t.z})},n.prototype.delete=function(r,t){return this.httpServer.delete(r,"/projects/"+t.project_id+"/drawings/"+t.drawing_id)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh),e.LFG(zS))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),ws=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Jn.ZT)(r,n),r.prototype.getItemKey=function(t){return t.drawing_id},r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(T2.o),j_e=function(){function n(r,t,i,o,a){this.nodeService=r,this.nodesDataSource=t,this.drawingService=i,this.drawingsDataSource=o,this.toasterService=a}return n.prototype.duplicate=function(){for(var r=this,t="",i=0,o=this.nodes;i<o.length;i++){var a=o[i];"stopped"===a.status?this.nodeService.duplicate(this.server,a).subscribe(function(m){r.nodesDataSource.add(m)}):t+=a.name+", "}for(var s=0,u=this.drawings;s<u.length;s++){var p=u[s];this.drawingService.duplicate(this.server,p.project_id,p).subscribe(function(m){r.drawingsDataSource.add(m)})}t.length>0&&(t=t.substring(0,t.length-2),this.toasterService.error("Cannot duplicate node data for nodes: "+t))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Wr),e.Y36(wa.G),e.Y36(xs),e.Y36(ws),e.Y36(Xn))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-duplicate-action"]],inputs:{server:"server",project:"project",drawings:"drawings",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.duplicate()}),e.TgZ(1,"mat-icon"),e._uU(2,"filter_none"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Duplicate"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}(),yv=function(){function n(){}return n.prototype.convert=function(r){var t="";if(r.element instanceof pc)t='<rect fill="'+r.element.fill+'" fill-opacity="'+r.element.fill_opacity+'" height="'+r.element.height+'" width="'+r.element.width+'" stroke="'+r.element.stroke+'" stroke-width="'+r.element.stroke_width+'" rx="'+r.element.rx+'" ry="'+r.element.ry+'" />';else if(r.element instanceof Po)t='<ellipse fill="'+r.element.fill+'" fill-opacity="'+r.element.fill_opacity+'" cx="'+r.element.cx+'" cy="'+r.element.cy+'" rx="'+r.element.rx+'" ry="'+r.element.ry+'" stroke="'+r.element.stroke+'" stroke-width="'+r.element.stroke_width+'" />';else if(r.element instanceof vv)t='<line stroke="'+r.element.stroke+'" stroke-width="'+r.element.stroke_width+'" x1="'+r.element.x1+'" x2="'+r.element.x2+'" y1="'+r.element.y1+'" y2="'+r.element.y2+'" />';else{if(!(r.element instanceof gv))return"";t='<text fill="'+r.element.fill+'" fill-opacity="1.0" font-family="'+r.element.font_family+'" font-size="'+r.element.font_size+'" font-weight="'+r.element.font_weight+'">'+r.element.text+"</text>"}return'<svg height="'+r.element.height+'" width="'+r.element.width+'">'+t+"</svg>"},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),UL=function(){function n(){}return n.prototype.get=function(r){return+r.value>-360&&+r.value<=360?null:{negativeValue:!0}},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Sy=function(){return{standalone:!0}};function z_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",4),e.TgZ(1,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().element.fill=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModelOptions",e.DdM(2,Sy))("ngModel",i.element.fill)}}function W_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",4),e.TgZ(1,"input",12),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().element.stroke_dasharray=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModelOptions",e.DdM(2,Sy))("ngModel",i.element.stroke_dasharray)}}function G_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",4),e.TgZ(1,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().element.width=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModelOptions",e.DdM(2,Sy))("ngModel",i.element.width)}}function Y_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",4),e.TgZ(1,"input",14),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().element.height=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModelOptions",e.DdM(2,Sy))("ngModel",i.element.height)}}function J_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",4),e.TgZ(1,"input",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().element.rx=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModelOptions",e.DdM(2,Sy))("ngModel",i.element.rx)}}var Q_e=function(){function n(r,t,i,o,a,s,u,p,m){this.dialogRef=r,this.drawingToMapDrawingConverter=t,this.mapDrawingToSvgConverter=i,this.drawingService=o,this.drawingsDataSource=a,this.formBuilder=s,this.toasterService=u,this.nonNegativeValidator=p,this.rotationValidator=m,this.formGroup=this.formBuilder.group({borderWidth:new re.NI("",[re.kI.required,p.get]),rotation:new re.NI("",[re.kI.required,m.get])})}return n.prototype.ngOnInit=function(){this.element=new K_e,this.drawing.element instanceof pc||this.drawing.element instanceof Po?(this.element.fill=this.drawing.element.fill,this.element.width=this.drawing.element.width,this.element.height=this.drawing.element.height,this.element.stroke=this.drawing.element.stroke,this.element.stroke_dasharray=this.drawing.element.stroke_dasharray,this.element.stroke_width=this.drawing.element.stroke_width):this.drawing.element instanceof vv&&(this.element.stroke=this.drawing.element.stroke,this.element.stroke_dasharray=this.drawing.element.stroke_dasharray,this.element.stroke_width=this.drawing.element.stroke_width),this.drawing.element instanceof pc&&(this.element.rx=this.drawing.element.rx,this.element.ry=this.drawing.element.ry),void 0===this.element.stroke_width&&(this.element.stroke_width=0),this.formGroup.controls.borderWidth.setValue(this.element.stroke_width),this.formGroup.controls.rotation.setValue(this.drawing.rotation)},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.onYesClick=function(){var r=this;if(this.formGroup.valid){this.element.stroke_width=this.formGroup.get("borderWidth").value,this.drawing.rotation=this.formGroup.get("rotation").value,this.drawing.element instanceof pc||this.drawing.element instanceof Po?(this.drawing.element.fill=this.element.fill,this.drawing.element.width=this.element.width,this.drawing.element.height=this.element.height,this.drawing.element.stroke=this.element.stroke,this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=this.element.stroke_width):this.drawing.element instanceof vv&&(this.drawing.element.stroke=this.element.stroke,this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=this.element.stroke_width),this.drawing.element instanceof pc&&(this.drawing.element.rx=this.element.rx,this.drawing.element.ry=this.element.rx);var t=this.drawingToMapDrawingConverter.convert(this.drawing);t.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(t),this.drawingService.update(this.server,this.drawing).subscribe(function(i){r.drawingsDataSource.update(i),r.dialogRef.close()})}else this.toasterService.error("Entered data is incorrect")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(w2),e.Y36(yv),e.Y36(xs),e.Y36(ws),e.Y36(re.qu),e.Y36(Xn),e.Y36(N2),e.Y36(UL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-style-editor"]],decls:20,vars:9,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],["class","form-field",4,"ngIf"],[1,"form-field"],["matInput","","placeholder","Border color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","borderWidth","placeholder","Border width","type","number","min","0","max","100"],["matInput","","formControlName","rotation","placeholder","Rotation","type","number"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["matInput","","placeholder","Fill color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Border style","type","text",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Width","min","0","type","number",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Height","min","0","type","number",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Corner radius","type","number","min","0","max","100",3,"ngModelOptions","ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Style editor"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"form",2),e.YNc(4,z_e,2,3,"mat-form-field",3),e.TgZ(5,"mat-form-field",4),e.TgZ(6,"input",5),e.NdJ("ngModelChange",function(a){return i.element.stroke=a}),e.qZA(),e.qZA(),e.TgZ(7,"mat-form-field",4),e._UZ(8,"input",6),e.qZA(),e.YNc(9,W_e,2,3,"mat-form-field",3),e.YNc(10,G_e,2,3,"mat-form-field",3),e.YNc(11,Y_e,2,3,"mat-form-field",3),e.YNc(12,J_e,2,3,"mat-form-field",3),e.TgZ(13,"mat-form-field",4),e._UZ(14,"input",7),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",8),e.TgZ(16,"button",9),e.NdJ("click",function(){return i.onNoClick()}),e._uU(17,"Cancel"),e.qZA(),e.TgZ(18,"button",10),e.NdJ("click",function(){return i.onYesClick()}),e._uU(19,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("formGroup",i.formGroup),e.xp6(1),e.Q6J("ngIf",void 0!==i.element.fill),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(8,Sy))("ngModel",i.element.stroke),e.xp6(3),e.Q6J("ngIf",i.element.stroke_dasharray),e.xp6(1),e.Q6J("ngIf",void 0!==i.element.width),e.xp6(1),e.Q6J("ngIf",void 0!==i.element.height),e.xp6(1),e.Q6J("ngIf",void 0!==i.element.rx))},directives:[ti,re._Y,re.JL,re.sg,kt.O5,Hn.KE,lr,re.Fj,re.JJ,re.On,re.wV,re.qQ,re.Fd,re.u,$r,An],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]}),n}(),K_e=function(){return function(){}}();function X_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().editStyle()}),e.TgZ(1,"mat-icon"),e._uU(2,"style"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Edit style"),e.qZA(),e.qZA()}}var $_e=function(){function n(r){this.dialog=r,this.isImageDrawing=!1}return n.prototype.ngOnChanges=function(){this.isImageDrawing=this.drawing.element instanceof P2},n.prototype.editStyle=function(){var t=this.dialog.open(Q_e,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project,t.drawing=this.drawing},n.\u0275fac=function(t){return new(t||n)(e.Y36(to))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-edit-style-action"]],inputs:{server:"server",project:"project",drawing:"drawing"},features:[e.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,X_e,5,0,"button",0),2&t&&e.Q6J("ngIf",!i.isImageDrawing)},directives:[kt.O5,Nr,sr],encapsulation:2}),n}(),eye=["textArea"],tye=function(){function n(r,t,i,o,a,s,u,p,m,C,P,L,G,Y){this.dialogRef=r,this.drawingToMapDrawingConverter=t,this.mapDrawingToSvgConverter=i,this.drawingService=o,this.drawingsDataSource=a,this.renderer=s,this.nodeService=u,this.nodesDataSource=p,this.linkService=m,this.linksDataSource=C,this.formBuilder=P,this.toasterService=L,this.rotationValidator=G,this.fontFixer=Y}return n.prototype.ngOnInit=function(){var r=this;this.formGroup=this.formBuilder.group({rotation:new re.NI("",[re.kI.required,this.rotationValidator.get])}),this.label&&this.node?(this.isTextEditable=!1,this.rotation=this.label.rotation.toString(),this.element=this.getTextElementFromLabel()):this.linkNode&&this.link?(this.isTextEditable=!0,this.label=this.link.nodes.find(function(i){return i.node_id===r.linkNode.node_id}).label,this.rotation=this.label.rotation.toString(),this.element=this.getTextElementFromLabel()):this.drawing&&(this.isTextEditable=!0,this.rotation=this.drawing.rotation.toString(),this.element=this.drawing.element);var t={font_family:this.element.font_family,font_size:this.element.font_size,font_weight:this.element.font_weight};t=this.fontFixer.fix(t),this.formGroup.controls.rotation.setValue(this.rotation),this.renderer.setStyle(this.textArea.nativeElement,"color",this.element.fill),this.renderer.setStyle(this.textArea.nativeElement,"font-family",t.font_family),this.renderer.setStyle(this.textArea.nativeElement,"font-size",t.font_size+"pt"),this.renderer.setStyle(this.textArea.nativeElement,"font-weight",t.font_weight)},n.prototype.getTextElementFromLabel=function(){for(var r=[],t=new gv,i=0,o=this.label.style.split(";");i<o.length;i++){var a=o[i];r.push({property:a.split(": ")[0],value:a.split(": ")[1]})}return t.text=this.label.text?this.label.text:"",t.font_family=r.find(function(s){return"font-family"===s.property})?r.find(function(s){return"font-family"===s.property}).value:"TypeWriter",t.font_size=r.find(function(s){return"font-size"===s.property})?+r.find(function(s){return"font-size"===s.property}).value:10,t.font_weight=r.find(function(s){return"font-weight"===s.property})?r.find(function(s){return"font-weight"===s.property}).value:"normal",t.fill=r.find(function(s){return"fill"===s.property})?r.find(function(s){return"fill"===s.property}).value:"#000000",t.fill_opacity=r.find(function(s){return"fill-opacity"===s.property})?+r.find(function(s){return"fill-opacity"===s.property}).value:1,t},n.prototype.getStyleFromTextElement=function(){return"font-family: "+this.element.font_family+";font-size: "+this.element.font_size+";font-weight: "+this.element.font_weight+";fill: "+this.element.fill+";fill-opacity: "+this.element.fill_opacity+";"},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.onYesClick=function(){var r=this;if(this.formGroup.valid){if(this.rotation=this.formGroup.get("rotation").value,this.label&&this.node)this.node.label.style=this.getStyleFromTextElement(),this.node.label.rotation=+this.rotation,this.nodeService.updateLabel(this.server,this.node,this.node.label).subscribe(function(i){r.nodesDataSource.update(i),r.dialogRef.close()});else if(this.linkNode&&this.link)this.label.style=this.getStyleFromTextElement(),this.label.rotation=+this.rotation,this.label.text=this.element.text,this.linkService.updateLink(this.server,this.link).subscribe(function(i){r.linksDataSource.update(i),r.dialogRef.close()});else if(this.drawing){this.drawing.rotation=+this.rotation,this.drawing.element=this.element;var t=this.drawingToMapDrawingConverter.convert(this.drawing);t.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(t),this.drawingService.update(this.server,this.drawing).subscribe(function(i){r.drawingsDataSource.update(i),r.dialogRef.close()})}}else this.toasterService.error("Entered data is incorrect")},n.prototype.changeTextColor=function(r){this.renderer.setStyle(this.textArea.nativeElement,"color",r)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(w2),e.Y36(yv),e.Y36(xs),e.Y36(ws),e.Y36(e.Qsj),e.Y36(Wr),e.Y36(wa.G),e.Y36(hc),e.Y36(rh.F),e.Y36(re.qu),e.Y36(Xn),e.Y36(UL),e.Y36(cc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-text-editor"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(eye,7),2&t)&&(e.iGM(o=e.CRH())&&(i.textArea=o.first))},decls:15,vars:4,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"form-field"],["matInput","","placeholder","Fill color","type","color",3,"ngModel","ngModelChange"],[3,"formGroup"],["formControlName","rotation","matInput","","placeholder","Rotation","type","text"],["id","textArea",1,"text",3,"ngModel","readonly","ngModelChange"],["textArea",""],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Text editor"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"mat-form-field",2),e.TgZ(4,"input",3),e.NdJ("ngModelChange",function(a){return i.changeTextColor(a)})("ngModelChange",function(a){return i.element.fill=a}),e.qZA(),e.qZA(),e.TgZ(5,"form",4),e.TgZ(6,"mat-form-field",2),e._UZ(7,"input",5),e.qZA(),e.qZA(),e.TgZ(8,"textarea",6,7),e.NdJ("ngModelChange",function(a){return i.element.text=a}),e.qZA(),e.qZA(),e.TgZ(10,"div",8),e.TgZ(11,"button",9),e.NdJ("click",function(){return i.onNoClick()}),e._uU(12,"Cancel"),e.qZA(),e.TgZ(13,"button",10),e.NdJ("click",function(){return i.onYesClick()}),e._uU(14,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",i.element.fill),e.xp6(1),e.Q6J("formGroup",i.formGroup),e.xp6(3),e.Q6J("ngModel",i.element.text)("readonly",!i.isTextEditable))},directives:[ti,Hn.KE,lr,re.Fj,re.JJ,re.On,re._Y,re.JL,re.sg,re.u,$r,An],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.text[_ngcontent-%COMP%]{width:100%;height:150px}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]}),n}(),nye=function(){function n(r){this.dialog=r}return n.prototype.ngOnInit=function(){},n.prototype.editText=function(){var t=this.dialog.open(tye,{width:"300px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project,t.drawing=this.drawing,t.node=this.node,t.label=this.label,t.link=this.link,t.linkNode=this.linkNode},n.\u0275fac=function(t){return new(t||n)(e.Y36(to))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-edit-text-action"]],inputs:{server:"server",project:"project",drawing:"drawing",node:"node",label:"label",link:"link",linkNode:"linkNode"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.editText()}),e.TgZ(1,"mat-icon"),e._uU(2,"text_format"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Edit text"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}();function rye(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",6),e.TgZ(1,"textarea",7,8),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().config=a}),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModel",i.config)}}function iye(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e.TgZ(2,"textarea",10,8),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().config=a}),e.qZA(),e.qZA(),e.TgZ(4,"mat-tab",11),e.TgZ(5,"textarea",10,8),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().privateConfig=a}),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("ngModel",i.config),e.xp6(3),e.Q6J("ngModel",i.privateConfig)}}var oye=function(){function n(r,t,i){this.dialogRef=r,this.nodeService=t,this.toasterService=i}return n.prototype.ngOnInit=function(){var r=this;this.nodeService.getStartupConfiguration(this.server,this.node).subscribe(function(t){r.config=t}),("iou"===this.node.node_type||"dynamips"===this.node.node_type)&&this.nodeService.getPrivateConfiguration(this.server,this.node).subscribe(function(t){r.privateConfig=t})},n.prototype.onSaveClick=function(){var r=this;this.nodeService.saveConfiguration(this.server,this.node,this.config).subscribe(function(t){"iou"===r.node.node_type||"dynamips"===r.node.node_type?r.nodeService.savePrivateConfiguration(r.server,r.node,r.privateConfig).subscribe(function(i){r.dialogRef.close(),r.toasterService.success("Configuration for node "+r.node.name+" saved.")}):(r.dialogRef.close(),r.toasterService.success("Configuration for node "+r.node.name+" saved."))})},n.prototype.onCancelClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Wr),e.Y36(Xn))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-config-editor"]],decls:9,vars:3,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],["id","textArea",1,"textArea",3,"ngModel","ngModelChange"],["textArea",""],["label","Startup config"],["id","textArea",1,"textAreaTab",3,"ngModel","ngModelChange"],["label","Private config"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.YNc(2,rye,3,1,"div",1),e.YNc(3,iye,7,2,"mat-tab-group",2),e.TgZ(4,"div",3),e.TgZ(5,"button",4),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(6,"Cancel"),e.qZA(),e.TgZ(7,"button",5),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(8,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.hij("Configuration for node ",i.node.name,""),e.xp6(1),e.Q6J("ngIf","vpcs"===i.node.node_type),e.xp6(1),e.Q6J("ngIf","iou"===i.node.node_type||"dynamips"===i.node.node_type))},directives:[ti,kt.O5,$r,An,re.Fj,re.JJ,re.On,Eo.SP,Eo.uX],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}.textAreaTab[_ngcontent-%COMP%]{width:100%;height:300px}"]}),n}();function aye(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().editConfig()}),e.TgZ(1,"mat-icon"),e._uU(2,"settings"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Edit config"),e.qZA(),e.qZA()}}var sye=function(){function n(r){this.dialog=r}return n.prototype.editConfig=function(){var t=this.dialog.open(oye,{width:"600px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project,t.node=this.node},n.\u0275fac=function(t){return new(t||n)(e.Y36(to))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-edit-config-action"]],inputs:{server:"server",project:"project",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,aye,5,0,"button",0),2&t&&e.Q6J("ngIf","vpcs"===i.node.node_type||"iou"===i.node.node_type||"dynamips"===i.node.node_type)},directives:[kt.O5,Nr,sr],encapsulation:2}),n}(),cz=function(){function n(r){this.dialogRef=r}return n.prototype.close=function(r){this.dialogRef.close(r)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-config-dialog"]],decls:10,vars:0,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"container"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Choose configuration file"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"div",2),e.TgZ(4,"div"),e.TgZ(5,"button",3),e.NdJ("click",function(){return i.close("startup-config")}),e._uU(6,"startup configuration"),e.qZA(),e.qZA(),e.TgZ(7,"div"),e.TgZ(8,"button",3),e.NdJ("click",function(){return i.close("private-config")}),e._uU(9,"private configuration"),e.qZA(),e.qZA(),e.qZA(),e.qZA())},directives:[ti,An],styles:[".container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}"]}),n}();function lye(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().exportConfig()}),e.TgZ(1,"mat-icon"),e._uU(2,"call_made"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Export config"),e.qZA(),e.qZA()}}var uye=function(){function n(r,t){this.nodeService=r,this.dialog=t}return n.prototype.exportConfig=function(){var r=this;"vpcs"===this.node.node_type?this.nodeService.getStartupConfiguration(this.server,this.node).subscribe(function(o){r.downloadByHtmlTag(o)}):this.dialog.open(cz,{width:"500px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){"startup-config"===o?r.nodeService.getStartupConfiguration(r.server,r.node).subscribe(function(a){r.downloadByHtmlTag(a)}):"private-config"===o&&r.nodeService.getPrivateConfiguration(r.server,r.node).subscribe(function(a){r.downloadByHtmlTag(a)})})},n.prototype.downloadByHtmlTag=function(r){var t=document.createElement("a");t.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(r)),"vpcs"===this.node.node_type?t.setAttribute("download",this.node.name+"_startup.vpc"):("iou"===this.node.node_type||"dynamips"===this.node.node_type)&&t.setAttribute("download",this.node.name+"_startup.cfg");var o=new MouseEvent("click");t.dispatchEvent(o)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Wr),e.Y36(to))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-export-config-action"]],inputs:{server:"server",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,lye,5,0,"button",0),2&t&&e.Q6J("ngIf","vpcs"===i.node.node_type||"dynamips"===i.node.node_type||"iou"===i.node.node_type)},directives:[kt.O5,Nr,sr],encapsulation:2}),n}(),cye=["fileInput"],dye=function(){function n(r,t,i){this.nodeService=r,this.toasterService=t,this.dialog=i}return n.prototype.triggerClick=function(){var r=this;"vpcs"!==this.node.node_type?this.dialog.open(cz,{width:"500px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){r.configType=o,r.fileInput.nativeElement.click()}):(this.configType="startup-config",this.fileInput.nativeElement.click())},n.prototype.importConfig=function(r){var t=this,i=r.target.files[0],o=new FileReader;o.onload=function(a){var s=o.result;"string"!=typeof s&&(s=s.toString()),"startup-config"===t.configType?t.nodeService.saveConfiguration(t.server,t.node,s).subscribe(function(){t.toasterService.success("Configuration for node "+t.node.name+" imported.")}):"private-config"===t.configType&&t.nodeService.savePrivateConfiguration(t.server,t.node,s).subscribe(function(){t.toasterService.success("Configuration for node "+t.node.name+" imported.")})},o.readAsText(i)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Wr),e.Y36(Xn),e.Y36(to))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-import-config-action"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(cye,5),2&t)&&(e.iGM(o=e.CRH())&&(i.fileInput=o.first))},inputs:{server:"server",node:"node"},decls:7,vars:0,consts:[["type","file","accept",".txt, .vpc",1,"non-visible",3,"change"],["fileInput",""],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"input",0,1),e.NdJ("change",function(a){return i.importConfig(a)}),e.qZA(),e.TgZ(2,"button",2),e.NdJ("click",function(){return i.triggerClick()}),e.TgZ(3,"mat-icon"),e._uU(4,"call_received"),e.qZA(),e.TgZ(5,"span"),e._uU(6,"Import config"),e.qZA(),e.qZA())},directives:[Nr,sr],styles:[".non-visible[_ngcontent-%COMP%]{display:none}"]}),n}(),pye=function(){function n(r,t,i,o){this.nodesDataSource=r,this.drawingsDataSource=t,this.nodeService=i,this.drawingService=o}return n.prototype.ngOnInit=function(){},n.prototype.moveLayerUp=function(){var r=this;this.nodes.forEach(function(t){t.z++,r.nodesDataSource.update(t),r.nodeService.update(r.server,t).subscribe(function(i){})}),this.drawings.forEach(function(t){t.z++,r.drawingsDataSource.update(t),r.drawingService.update(r.server,t).subscribe(function(i){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(wa.G),e.Y36(ws),e.Y36(Wr),e.Y36(xs))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-move-layer-up-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.moveLayerUp()}),e.TgZ(1,"mat-icon"),e._uU(2,"keyboard_arrow_up"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Move layer up"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}(),fye=function(){function n(r,t,i,o){this.nodesDataSource=r,this.drawingsDataSource=t,this.nodeService=i,this.drawingService=o}return n.prototype.ngOnInit=function(){},n.prototype.moveLayerDown=function(){var r=this;this.nodes.forEach(function(t){t.z--,r.nodesDataSource.update(t),r.nodeService.update(r.server,t).subscribe(function(i){})}),this.drawings.forEach(function(t){t.z--,r.drawingsDataSource.update(t),r.drawingService.update(r.server,t).subscribe(function(i){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(wa.G),e.Y36(ws),e.Y36(Wr),e.Y36(xs))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-move-layer-down-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.moveLayerDown()}),e.TgZ(1,"mat-icon"),e._uU(2,"keyboard_arrow_down"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Move layer down"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}(),hye=function(){function n(r,t,i,o){this.nodesDataSource=r,this.drawingsDataSource=t,this.nodeService=i,this.drawingService=o}return n.prototype.ngOnInit=function(){},n.prototype.bringToFront=function(){var r=this,t=Math.max.apply(Math,this.nodes.map(function(a){return a.z})),i=Math.max.apply(Math,this.drawings.map(function(a){return a.z})),o=Math.max(t,i);o<100&&o++,this.nodes.forEach(function(a){a.z=o,r.nodesDataSource.update(a),r.nodeService.update(r.server,a).subscribe(function(s){})}),this.drawings.forEach(function(a){a.z=o,r.drawingsDataSource.update(a),r.drawingService.update(r.server,a).subscribe(function(s){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(wa.G),e.Y36(ws),e.Y36(Wr),e.Y36(xs))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-bring-to-front-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.bringToFront()}),e.TgZ(1,"mat-icon"),e._uU(2,"vertical_align_top"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Bring to front"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}(),HL=function(){function n(r){this.protocolHandlerService=r}return n.prototype.startCapture=function(r,t,i,o){var a="gns3+pcap://"+r.host+":"+r.port+"?protocol="+r.protocol.slice(0,-1)+"&project_id="+t.project_id+"&link_id="+i.link_id+"&project="+t.name+"&name="+o;this.protocolHandlerService.open(a)},n.\u0275fac=function(t){return new(t||n)(e.LFG(QS))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function mye(n,r){if(1&n&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t[1]),e.xp6(1),e.hij(" ",t[0]," ")}}var vye=function(){return{standalone:!0}},gye=function(){function n(r,t,i,o,a,s){this.dialogRef=r,this.linkService=t,this.formBuilder=i,this.toasterService=o,this.nodesDataSource=a,this.packetCaptureService=s,this.linkTypes=[],this.inputForm=this.formBuilder.group({linkType:new re.NI("",re.kI.required),fileName:new re.NI("",re.kI.required)})}return n.prototype.ngOnInit=function(){this.linkTypes="ethernet"===this.link.link_type?[["Ethernet","DLT_EN10MB"]]:[["Cisco HDLC","DLT_C_HDLC"],["Cisco PPP","DLT_PPP_SERIAL"],["Frame Relay","DLT_FRELAY"],["ATM","DLT_ATM_RFC1483"]];var r=this.nodesDataSource.get(this.link.nodes[0].node_id),t=this.nodesDataSource.get(this.link.nodes[1].node_id);this.inputForm.controls.fileName.setValue((r.name+"_"+r.ports[this.link.nodes[0].port_number].name+"_to_"+t.name+"_"+t.ports[this.link.nodes[1].port_number].name).replace(new RegExp("[^0-9A-Za-z_-]","g"),""))},n.prototype.onYesClick=function(){var r=this,t=!1;if(this.link.nodes.forEach(function(o){"started"===r.nodesDataSource.get(o.node_id).status&&(t=!0)}),t)if(this.inputForm.invalid)this.toasterService.error("Fill all required fields");else{var i={capture_file_name:this.inputForm.get("fileName").value,data_link_type:this.inputForm.get("linkType").value};this.startProgram&&this.packetCaptureService.startCapture(this.server,this.project,this.link,i.capture_file_name),this.linkService.startCaptureOnLink(this.server,this.link,i).subscribe(function(){r.dialogRef.close()})}else this.toasterService.error("Cannot capture because there is no running device on this link")},n.prototype.onNoClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(hc),e.Y36(re.qu),e.Y36(Xn),e.Y36(wa.G),e.Y36(HL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-start-capture"]],decls:16,vars:5,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"input-field"],["placeholder","Link type","formControlName","linkType","ngDefaultControl",""],[3,"value",4,"ngFor","ngForOf"],["placeholder","File name","formControlName","fileName","matInput","","type","text"],[3,"ngModelOptions","ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Packet capture"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"form",2),e.TgZ(4,"mat-form-field",3),e.TgZ(5,"mat-select",4),e.YNc(6,mye,2,2,"mat-option",5),e.qZA(),e.qZA(),e.TgZ(7,"mat-form-field",3),e._UZ(8,"input",6),e.qZA(),e.TgZ(9,"mat-checkbox",7),e.NdJ("ngModelChange",function(a){return i.startProgram=a}),e._uU(10," Start the capture visualization program "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"div",8),e.TgZ(12,"button",9),e.NdJ("click",function(){return i.onNoClick()}),e._uU(13,"Cancel"),e.qZA(),e.TgZ(14,"button",10),e.NdJ("click",function(){return i.onYesClick()}),e._uU(15,"Ok"),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("formGroup",i.inputForm),e.xp6(3),e.Q6J("ngForOf",i.linkTypes),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(4,vye))("ngModel",i.startProgram))},directives:[ti,re._Y,re.JL,re.sg,Hn.KE,pi.gD,re.JJ,re.u,re.Fj,kt.sg,lr,Zo,re.On,$r,An,un.ey],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]}),n}();function _ye(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().startCapture()}),e.TgZ(1,"mat-icon"),e._uU(2,"loupe"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Start capture"),e.qZA(),e.qZA()}}var yye=function(){function n(r){this.dialog=r}return n.prototype.startCapture=function(){var t=this.dialog.open(gye,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project,t.link=this.link},n.\u0275fac=function(t){return new(t||n)(e.Y36(to))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-start-capture-action"]],inputs:{server:"server",project:"project",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,_ye,5,0,"button",0),2&t&&e.Q6J("ngIf",!i.link.capturing)},directives:[kt.O5,Nr,sr],encapsulation:2}),n}();function bye(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().stopCapture()}),e.TgZ(1,"mat-icon"),e._uU(2,"pause_circle_filled"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Stop capture"),e.qZA(),e.qZA()}}var Cye=function(){function n(r){this.linkService=r}return n.prototype.stopCapture=function(){this.linkService.stopCaptureOnLink(this.server,this.link).subscribe(function(){})},n.\u0275fac=function(t){return new(t||n)(e.Y36(hc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-stop-capture-action"]],inputs:{server:"server",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,bye,5,0,"button",0),2&t&&e.Q6J("ngIf",i.link.capturing)},directives:[kt.O5,Nr,sr],encapsulation:2}),n}();function Sye(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().startCapture()}),e.TgZ(1,"mat-icon"),e._uU(2,"search"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Start Wireshark"),e.qZA(),e.qZA()}}var Tye=function(){function n(r){this.packetCaptureService=r}return n.prototype.startCapture=function(){var r=this.link.capture_file_name.split(".");this.packetCaptureService.startCapture(this.server,this.project,this.link,r[0])},n.\u0275fac=function(t){return new(t||n)(e.Y36(HL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-start-capture-on-started-link-action"]],inputs:{server:"server",project:"project",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,Sye,5,0,"button",0),2&t&&e.Q6J("ngIf",i.link.capturing)},directives:[kt.O5,Nr,sr],encapsulation:2}),n}();function xye(n,r){if(1&n&&(e.TgZ(0,"div",5),e.TgZ(1,"h6"),e._uU(2),e.qZA(),e.TgZ(3,"span",6),e._uU(4),e.qZA(),e.qZA()),2&n){var t=r.$implicit;e.xp6(2),e.hij(" ",t.name," "),e.xp6(2),e.hij(" ",t.description," ")}}var wye=function(){function n(r){this.dialogRef=r}return n.prototype.onCloseClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-help-dialog"]],inputs:{title:"title",messages:"messages"},decls:7,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["class","message",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],[1,"message"],[1,"description"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.YNc(3,xye,5,2,"div",2),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"button",4),e.NdJ("click",function(){return i.onCloseClick()}),e._uU(6,"Close"),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Oqu(i.title),e.xp6(2),e.Q6J("ngForOf",i.messages))},directives:[ti,kt.sg,$r,An],styles:[".message[_ngcontent-%COMP%]{margin-bottom:10px}.description[_ngcontent-%COMP%]{color:#b0bec5}"]}),n}();function Eye(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e.TgZ(2,"mat-form-field",10),e.TgZ(3,"input",11),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().filters.frequency_drop[0]=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(4,"mat-tab",12),e.TgZ(5,"mat-form-field",10),e.TgZ(6,"input",13),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().filters.packet_loss[0]=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(7,"mat-tab",14),e.TgZ(8,"mat-form-field",10),e.TgZ(9,"input",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().filters.delay[0]=a}),e.qZA(),e.qZA(),e.TgZ(10,"mat-form-field",10),e.TgZ(11,"input",16),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().filters.delay[1]=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"mat-tab",17),e.TgZ(13,"mat-form-field",10),e.TgZ(14,"input",15),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().filters.corrupt[0]=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"mat-tab",18),e.TgZ(16,"mat-form-field",10),e.TgZ(17,"textarea",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().filters.bpf[0]=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(3),e.Q6J("ngModel",i.filters.frequency_drop[0]),e.xp6(3),e.Q6J("ngModel",i.filters.packet_loss[0]),e.xp6(3),e.Q6J("ngModel",i.filters.delay[0]),e.xp6(2),e.Q6J("ngModel",i.filters.delay[1]),e.xp6(3),e.Q6J("ngModel",i.filters.corrupt[0]),e.xp6(3),e.Q6J("ngModel",i.filters.bpf[0])}}var kye=function(){function n(r,t,i){this.dialogRef=r,this.linkService=t,this.dialog=i}return n.prototype.ngOnInit=function(){var r=this;this.linkService.getLink(this.server,this.link.project_id,this.link.link_id).subscribe(function(t){r.link=t,r.filters={bpf:[],corrupt:[0],delay:[0,0],frequency_drop:[0],packet_loss:[0]},r.link.filters&&(r.filters.bpf=r.link.filters.bpf?r.link.filters.bpf:[],r.filters.corrupt=r.link.filters.corrupt?r.link.filters.corrupt:[0],r.filters.delay=r.link.filters.delay?r.link.filters.delay:[0,0],r.filters.frequency_drop=r.link.filters.frequency_drop?r.link.filters.frequency_drop:[0],r.filters.packet_loss=r.link.filters.packet_loss?r.link.filters.packet_loss:[0])}),this.linkService.getAvailableFilters(this.server,this.link).subscribe(function(t){r.availableFilters=t})},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.onResetClick=function(){var r=this;this.link.filters={bpf:[],corrupt:[0],delay:[0,0],frequency_drop:[0],packet_loss:[0]},this.linkService.updateLink(this.server,this.link).subscribe(function(t){r.dialogRef.close()})},n.prototype.onYesClick=function(){var r=this;this.link.filters=this.filters,this.linkService.updateLink(this.server,this.link).subscribe(function(t){r.dialogRef.close()})},n.prototype.onHelpClick=function(){var t=this.dialog.open(wye,{width:"500px",autoFocus:!1,disableClose:!0}).componentInstance;t.title="Help for filters";var i=[];this.availableFilters.forEach(function(o){i.push({name:o.name,description:o.description})}),t.messages=i},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(hc),e.Y36(to))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-packet-filters"]],decls:16,vars:1,consts:[["mat-dialog-title",""],[1,"content"],[4,"ngIf"],[1,"bottom-bar"],[1,"spacer"],["mat-dialog-actions","","layout","row",1,"dialog-actions"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"divider"],["label","Frequency drop"],[1,"input-field"],["matInput","","placeholder","Frequency","type","number",3,"ngModel","ngModelChange"],["label","Packet loss"],["matInput","","placeholder","Chance","type","number",3,"ngModel","ngModelChange"],["label","Delay"],["matInput","","placeholder","Latency","type","number",3,"ngModel","ngModelChange"],["matInput","","placeholder","Jitter","type","number",3,"ngModel","ngModelChange"],["label","Corrupt"],["label","Berkeley Packet Filter (BPF)"],["matInput","","type","text",3,"ngModel","ngModelChange"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Packet filters"),e.qZA(),e.TgZ(2,"div",1),e.YNc(3,Eye,18,6,"mat-tab-group",2),e.qZA(),e.TgZ(4,"div",3),e._UZ(5,"div",4),e.TgZ(6,"div",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return i.onNoClick()}),e._uU(8,"Cancel"),e.qZA(),e.TgZ(9,"button",6),e.NdJ("click",function(){return i.onResetClick()}),e._uU(10,"Reset"),e.qZA(),e.TgZ(11,"button",7),e.NdJ("click",function(){return i.onYesClick()}),e._uU(12,"Apply"),e.qZA(),e._UZ(13,"div",8),e.TgZ(14,"button",6),e.NdJ("click",function(){return i.onHelpClick()}),e._uU(15,"Help"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngIf",i.filters))},directives:[ti,kt.O5,$r,An,Eo.SP,Eo.uX,Hn.KE,lr,re.wV,re.Fj,re.JJ,re.On],styles:[".spacer[_ngcontent-%COMP%]{flex-grow:1}.content[_ngcontent-%COMP%]{height:260px}.item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-field[_ngcontent-%COMP%]{width:100%;margin-top:10px}.divider[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;flex:1 1 auto}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}"]}),n}(),Mye=function(){function n(r){this.dialog=r}return n.prototype.openPacketFilters=function(){var t=this.dialog.open(kye,{width:"900px",height:"400px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project,t.link=this.link},n.\u0275fac=function(t){return new(t||n)(e.Y36(to))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-packet-filters-action"]],inputs:{server:"server",project:"project",link:"link"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.openPacketFilters()}),e.TgZ(1,"mat-icon"),e._uU(2,"filter_list"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Packet filters"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}();function Aye(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().resumeLink()}),e.TgZ(1,"mat-icon"),e._uU(2,"play_arrow"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Resume"),e.qZA(),e.qZA()}}var Dye=function(){function n(r){this.linkService=r}return n.prototype.resumeLink=function(){this.link.suspend=!1,this.linkService.updateLink(this.server,this.link).subscribe(function(){})},n.\u0275fac=function(t){return new(t||n)(e.Y36(hc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-resume-link-action"]],inputs:{server:"server",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,Aye,5,0,"button",0),2&t&&e.Q6J("ngIf",i.link.suspend)},directives:[kt.O5,Nr,sr],encapsulation:2}),n}();function Oye(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().suspendLink()}),e.TgZ(1,"mat-icon"),e._uU(2,"pause"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Suspend"),e.qZA(),e.qZA()}}var Pye=function(){function n(r){this.linkService=r}return n.prototype.suspendLink=function(){this.link.suspend=!0,this.linkService.updateLink(this.server,this.link).subscribe(function(){})},n.\u0275fac=function(t){return new(t||n)(e.Y36(hc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-suspend-link-action"]],inputs:{server:"server",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&e.YNc(0,Oye,5,0,"button",0),2&t&&e.Q6J("ngIf",!i.link.suspend)},directives:[kt.O5,Nr,sr],encapsulation:2}),n}(),Iye=function(){function n(r,t,i,o){this.nodesDataSource=r,this.drawingsDataSource=t,this.nodeService=i,this.drawingService=o}return n.prototype.ngOnChanges=function(){this.command=1===this.nodes.length&&0===this.drawings.length?this.nodes[0].locked?"Unlock item":"Lock item":0===this.nodes.length&&1===this.drawings.length?this.drawings[0].locked?"Unlock item":"Lock item":"Lock/unlock items"},n.prototype.lock=function(){var r=this;this.nodes.forEach(function(t){t.locked=!t.locked,r.nodeService.updateNode(r.server,t).subscribe(function(i){r.nodesDataSource.update(i)})}),this.drawings.forEach(function(t){t.locked=!t.locked,r.drawingService.update(r.server,t).subscribe(function(i){r.drawingsDataSource.update(i)})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(wa.G),e.Y36(ws),e.Y36(Wr),e.Y36(xs))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-lock-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings"},features:[e.TTD],decls:5,vars:1,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.lock()}),e.TgZ(1,"mat-icon"),e._uU(2,"lock"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Oqu(i.command))},directives:[Nr,sr],encapsulation:2}),n}(),Rye=function(){function n(r,t,i,o,a,s,u){this.nodesDataSource=r,this.drawingsDataSource=t,this.linksDataSource=i,this.nodeService=o,this.drawingService=a,this.linkService=s,this.bottomSheet=u}return n.prototype.ngOnInit=function(){},n.prototype.confirmDelete=function(){var r=this;this.bottomSheet.open(ih);var t=this.bottomSheet._openedBottomSheetRef;t.instance.message="Do you want to delete all selected objects?",t.afterDismissed().subscribe(function(o){o&&r.delete()})},n.prototype.delete=function(){var r=this;this.nodes.forEach(function(t){r.nodesDataSource.remove(t),r.nodeService.delete(r.server,t).subscribe(function(i){})}),this.drawings.forEach(function(t){r.drawingsDataSource.remove(t),r.drawingService.delete(r.server,t).subscribe(function(i){})}),this.links.forEach(function(t){r.linksDataSource.remove(t),r.linkService.deleteLink(r.server,t).subscribe(function(){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(wa.G),e.Y36(ws),e.Y36(rh.F),e.Y36(Wr),e.Y36(xs),e.Y36(hc),e.Y36(JS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-delete-action"]],inputs:{server:"server",nodes:"nodes",drawings:"drawings",links:"links"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.confirmDelete()}),e.TgZ(1,"mat-icon"),e._uU(2,"delete"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Delete"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}(),Nye=function(){function n(r,t){this.nodesDataSource=r,this.nodeService=t}return n.prototype.ngOnInit=function(){},n.prototype.alignHorizontally=function(){var r=this,t=0;this.nodes.forEach(function(i){t+=i.y}),t/=this.nodes.length,this.nodes.forEach(function(i){i.y=t,r.nodesDataSource.update(i),r.nodeService.update(r.server,i).subscribe(function(o){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(wa.G),e.Y36(Wr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-align-horizontally-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.alignHorizontally()}),e.TgZ(1,"mat-icon"),e._uU(2,"more_horiz"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Align horizontally"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}(),Zye=function(){function n(r,t){this.nodesDataSource=r,this.nodeService=t}return n.prototype.ngOnInit=function(){},n.prototype.alignVertically=function(){var r=this,t=0;this.nodes.forEach(function(i){t+=i.x}),t/=this.nodes.length,this.nodes.forEach(function(i){i.x=t,r.nodesDataSource.update(i),r.nodeService.update(r.server,i).subscribe(function(o){})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(wa.G),e.Y36(Wr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-align-vertically-action"]],inputs:{server:"server",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.alignVertically()}),e.TgZ(1,"mat-icon"),e._uU(2,"more_vert"),e.qZA(),e.TgZ(3,"span"),e._uU(4,"Align vertically"),e.qZA(),e.qZA())},directives:[Nr,sr],encapsulation:2}),n}();function Lye(n,r){if(1&n&&e._UZ(0,"app-show-node-action",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function Fye(n,r){if(1&n&&e._UZ(0,"app-config-node-action",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function Bye(n,r){if(1&n&&e._UZ(0,"app-start-node-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function Uye(n,r){if(1&n&&e._UZ(0,"app-suspend-node-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function Hye(n,r){if(1&n&&e._UZ(0,"app-stop-node-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function Vye(n,r){if(1&n&&e._UZ(0,"app-reload-node-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function qye(n,r){if(1&n&&e._UZ(0,"app-http-console-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function jye(n,r){if(1&n&&e._UZ(0,"app-http-console-new-tab-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function zye(n,r){if(1&n&&e._UZ(0,"app-console-device-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function Wye(n,r){if(1&n&&e._UZ(0,"app-console-device-action-browser",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function Gye(n,r){if(1&n&&e._UZ(0,"app-open-file-explorer-action",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function Yye(n,r){if(1&n&&e._UZ(0,"app-change-hostname-action",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function Jye(n,r){if(1&n&&e._UZ(0,"app-change-symbol-action",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function Qye(n,r){if(1&n&&e._UZ(0,"app-duplicate-action",16),2&n){var t=e.oxw();e.Q6J("server",t.server)("project",t.project)("nodes",t.nodes)("drawings",t.drawings)}}function Kye(n,r){if(1&n&&e._UZ(0,"app-edit-style-action",17),2&n){var t=e.oxw();e.Q6J("server",t.server)("project",t.project)("drawing",t.drawings[0])}}function Xye(n,r){if(1&n&&e._UZ(0,"app-edit-text-action",18),2&n){var t=e.oxw();e.Q6J("server",t.server)("project",t.project)("drawing",t.drawings[0])("node",t.nodes[0])("label",t.labels[0])("link",t.links[0])("linkNode",t.linkNodes[0])}}function $ye(n,r){if(1&n&&e._UZ(0,"app-edit-config-action",19),2&n){var t=e.oxw();e.Q6J("server",t.server)("project",t.project)("node",t.nodes[0])}}function ebe(n,r){if(1&n&&e._UZ(0,"app-export-config-action",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function tbe(n,r){if(1&n&&e._UZ(0,"app-import-config-action",14),2&n){var t=e.oxw();e.Q6J("server",t.server)("node",t.nodes[0])}}function nbe(n,r){if(1&n&&e._UZ(0,"app-move-layer-up-action",20),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)("drawings",t.drawings)}}function rbe(n,r){if(1&n&&e._UZ(0,"app-move-layer-down-action",20),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)("drawings",t.drawings)}}function ibe(n,r){if(1&n&&e._UZ(0,"app-bring-to-front-action",20),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)("drawings",t.drawings)}}function obe(n,r){if(1&n&&e._UZ(0,"app-start-capture-action",21),2&n){var t=e.oxw();e.Q6J("server",t.server)("project",t.project)("link",t.links[0])}}function abe(n,r){if(1&n&&e._UZ(0,"app-stop-capture-action",22),2&n){var t=e.oxw();e.Q6J("server",t.server)("link",t.links[0])}}function sbe(n,r){if(1&n&&e._UZ(0,"app-start-capture-on-started-link-action",21),2&n){var t=e.oxw();e.Q6J("server",t.server)("project",t.project)("link",t.links[0])}}function lbe(n,r){if(1&n&&e._UZ(0,"app-packet-filters-action",21),2&n){var t=e.oxw();e.Q6J("server",t.server)("project",t.project)("link",t.links[0])}}function ube(n,r){if(1&n&&e._UZ(0,"app-resume-link-action",22),2&n){var t=e.oxw();e.Q6J("server",t.server)("link",t.links[0])}}function cbe(n,r){if(1&n&&e._UZ(0,"app-suspend-link-action",22),2&n){var t=e.oxw();e.Q6J("server",t.server)("link",t.links[0])}}function dbe(n,r){if(1&n&&e._UZ(0,"app-lock-action",20),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)("drawings",t.drawings)}}function pbe(n,r){if(1&n&&e._UZ(0,"app-delete-action",23),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)("drawings",t.drawings)("links",t.links)}}function fbe(n,r){if(1&n&&e._UZ(0,"app-align-horizontally-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}function hbe(n,r){if(1&n&&e._UZ(0,"app-align-vertically-action",15),2&n){var t=e.oxw();e.Q6J("server",t.server)("nodes",t.nodes)}}var dz=function(){function n(r,t,i,o){this.sanitizer=r,this.changeDetector=t,this.electronService=i,this.projectService=o,this.drawings=[],this.nodes=[],this.labels=[],this.links=[],this.linkNodes=[],this.hasTextCapabilities=!1,this.isElectronApp=!1,this.isBundledServer=!1}return n.prototype.ngOnInit=function(){this.setPosition(0,0),this.isElectronApp=this.electronService.isElectronApp,this.isBundledServer="bundled"===this.server.location},n.prototype.setPosition=function(r,t){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(r+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(t+"px"),this.changeDetector.detectChanges()},n.prototype.openMenuForDrawing=function(r,t,i){this.resetCapabilities(),this.hasTextCapabilities=r.element instanceof gv,this.drawings=[r],this.setPosition(t,i),this.contextMenu.openMenu()},n.prototype.openMenuForNode=function(r,t,i){this.resetCapabilities(),this.nodes=[r],this.setPosition(t,i),this.contextMenu.openMenu()},n.prototype.openMenuForLabel=function(r,t,i,o){this.resetCapabilities(),this.labels=[r],this.nodes=[t],this.setPosition(i,o),this.contextMenu.openMenu()},n.prototype.openMenuForInterfaceLabel=function(r,t,i,o){this.resetCapabilities(),this.linkNodes=[r],this.links=[t],this.setPosition(i,o),this.contextMenu.openMenu()},n.prototype.openMenuForListOfElements=function(r,t,i,o,a,s){this.resetCapabilities(),this.drawings=r,this.nodes=t,this.labels=i,this.links=o,this.setPosition(a,s),this.contextMenu.openMenu()},n.prototype.resetCapabilities=function(){this.drawings=[],this.nodes=[],this.labels=[],this.linkNodes=[],this.links=[],this.hasTextCapabilities=!1},n.\u0275fac=function(t){return new(t||n)(e.Y36(U.H7),e.Y36(e.sBO),e.Y36(cs),e.Y36(ud.Y))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-context-menu"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Qa,5),2&t)&&(e.iGM(o=e.CRH())&&(i.contextMenu=o.first))},inputs:{project:"project",server:"server"},decls:36,vars:37,consts:[[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["contextMenu","matMenu"],[3,"server","node",4,"ngIf"],[3,"server","nodes",4,"ngIf"],[3,"server","project","nodes","drawings",4,"ngIf"],[3,"server","project","drawing",4,"ngIf"],[3,"server","project","drawing","node","label","link","linkNode",4,"ngIf"],[3,"server","project","node",4,"ngIf"],[3,"server","nodes","drawings",4,"ngIf"],[3,"server","project","link",4,"ngIf"],[3,"server","link",4,"ngIf"],[3,"server","nodes","drawings","links",4,"ngIf"],[3,"server","node"],[3,"server","nodes"],[3,"server","project","nodes","drawings"],[3,"server","project","drawing"],[3,"server","project","drawing","node","label","link","linkNode"],[3,"server","project","node"],[3,"server","nodes","drawings"],[3,"server","project","link"],[3,"server","link"],[3,"server","nodes","drawings","links"]],template:function(t,i){if(1&t&&(e.TgZ(0,"div",0),e._UZ(1,"span",1),e.TgZ(2,"mat-menu",2,3),e.YNc(4,Lye,1,2,"app-show-node-action",4),e.YNc(5,Fye,1,2,"app-config-node-action",4),e.YNc(6,Bye,1,2,"app-start-node-action",5),e.YNc(7,Uye,1,2,"app-suspend-node-action",5),e.YNc(8,Hye,1,2,"app-stop-node-action",5),e.YNc(9,Vye,1,2,"app-reload-node-action",5),e.YNc(10,qye,1,2,"app-http-console-action",5),e.YNc(11,jye,1,2,"app-http-console-new-tab-action",5),e.YNc(12,zye,1,2,"app-console-device-action",5),e.YNc(13,Wye,1,2,"app-console-device-action-browser",4),e.YNc(14,Gye,1,2,"app-open-file-explorer-action",4),e.YNc(15,Yye,1,2,"app-change-hostname-action",4),e.YNc(16,Jye,1,2,"app-change-symbol-action",4),e.YNc(17,Qye,1,4,"app-duplicate-action",6),e.YNc(18,Kye,1,3,"app-edit-style-action",7),e.YNc(19,Xye,1,7,"app-edit-text-action",8),e.YNc(20,$ye,1,3,"app-edit-config-action",9),e.YNc(21,ebe,1,2,"app-export-config-action",4),e.YNc(22,tbe,1,2,"app-import-config-action",4),e.YNc(23,nbe,1,3,"app-move-layer-up-action",10),e.YNc(24,rbe,1,3,"app-move-layer-down-action",10),e.YNc(25,ibe,1,3,"app-bring-to-front-action",10),e.YNc(26,obe,1,3,"app-start-capture-action",11),e.YNc(27,abe,1,2,"app-stop-capture-action",12),e.YNc(28,sbe,1,3,"app-start-capture-on-started-link-action",11),e.YNc(29,lbe,1,3,"app-packet-filters-action",11),e.YNc(30,ube,1,2,"app-resume-link-action",12),e.YNc(31,cbe,1,2,"app-suspend-link-action",12),e.YNc(32,dbe,1,3,"app-lock-action",10),e.YNc(33,pbe,1,4,"app-delete-action",13),e.YNc(34,fbe,1,2,"app-align-horizontally-action",5),e.YNc(35,hbe,1,2,"app-align-vertically-action",5),e.qZA(),e.qZA()),2&t){var o=e.MAs(3);e.Udp("left",i.leftPosition)("top",i.topPosition),e.xp6(1),e.Q6J("matMenuTriggerFor",o),e.xp6(3),e.Q6J("ngIf",1===i.nodes.length),e.xp6(1),e.Q6J("ngIf",1===i.nodes.length),e.xp6(1),e.Q6J("ngIf",i.nodes.length),e.xp6(1),e.Q6J("ngIf",i.nodes.length),e.xp6(1),e.Q6J("ngIf",i.nodes.length),e.xp6(1),e.Q6J("ngIf",i.nodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&i.nodes.length>0),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&i.nodes.length>0),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&i.nodes.length&&i.isElectronApp),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&1===i.nodes.length&&!i.isElectronApp),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&1===i.nodes.length&&i.isElectronApp),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&1===i.nodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&1===i.nodes.length),e.xp6(1),e.Q6J("ngIf",i.drawings.length>0||i.nodes.length>0),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&1===i.drawings.length&&!i.hasTextCapabilities),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&(1===i.drawings.length&&i.hasTextCapabilities&&0===i.labels.length&&0===i.linkNodes.length||1===i.labels.length&&0===i.linkNodes.length&&0===i.drawings.length||1===i.linkNodes.length&&0===i.labels.length&&0===i.drawings.length)),e.xp6(1),e.Q6J("ngIf",1===i.nodes.length&&"vpcs"===i.nodes[0].node_type),e.xp6(1),e.Q6J("ngIf",1===i.nodes.length&&("vpcs"===i.nodes[0].node_type||"iou"===i.nodes[0].node_type||"dynamips"===i.nodes[0].node_type)),e.xp6(1),e.Q6J("ngIf",1===i.nodes.length&&("vpcs"===i.nodes[0].node_type||"iou"===i.nodes[0].node_type||"dynamips"===i.nodes[0].node_type)),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&(i.drawings.length||i.nodes.length)),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&(i.drawings.length||i.nodes.length)),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&(i.drawings.length||i.nodes.length)),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&0===i.drawings.length&&0===i.nodes.length&&1===i.links.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&0===i.drawings.length&&0===i.nodes.length&&1===i.links.length&&0===i.linkNodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&0===i.drawings.length&&0===i.nodes.length&&1===i.links.length&&0===i.linkNodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&0===i.drawings.length&&0===i.nodes.length&&1===i.links.length&&0===i.linkNodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&0===i.drawings.length&&0===i.nodes.length&&1===i.links.length&&0===i.linkNodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&0===i.drawings.length&&0===i.nodes.length&&1===i.links.length&&0===i.linkNodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&(i.drawings.length>0||i.nodes.length>0)),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&(i.drawings.length>0||i.nodes.length>0||i.links.length>0)&&0===i.linkNodes.length),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&i.nodes.length>1),e.xp6(1),e.Q6J("ngIf",!i.projectService.isReadOnly(i.project)&&i.nodes.length>1)}},directives:[Qa,Ts,kt.O5,_ve,y_e,C_e,T_e,w_e,k_e,M_e,A_e,D_e,F_e,B_e,H_e,q_e,j_e,$_e,nye,sye,uye,dye,pye,fye,hye,yye,Cye,Tye,Mye,Dye,Pye,Iye,Rye,Nye,Zye],styles:[".context-menu[_ngcontent-%COMP%]{position:absolute;min-height:0px}.mat-menu-panel[_ngcontent-%COMP%] ng-trigger[_ngcontent-%COMP%] ng-trigger-transformMenu[_ngcontent-%COMP%] ng-tns-c7-5[_ngcontent-%COMP%] context-menu-items[_ngcontent-%COMP%] mat-menu-after[_ngcontent-%COMP%] mat-menu-below[_ngcontent-%COMP%] ng-star-inserted[_ngcontent-%COMP%] mat-elevation-z4[_ngcontent-%COMP%]{min-height:0px!important}"]}),n}();function mbe(n,r){if(1&n&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function vbe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",16),e.TgZ(1,"mat-select",17),e.NdJ("selectionChange",function(a){return e.CHM(t),e.oxw(2)._changePageSize(a.value)}),e.YNc(2,mbe,2,2,"mat-option",18),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.Q6J("appearance",i._formFieldAppearance)("color",i.color),e.xp6(1),e.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),e.xp6(1),e.Q6J("ngForOf",i._displayedPageSizeOptions)}}function gbe(n,r){if(1&n&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Oqu(t.pageSize)}}function _be(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,vbe,3,6,"mat-form-field",14),e.YNc(4,gbe,2,1,"div",15),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.hij(" ",t._intl.itemsPerPageLabel," "),e.xp6(1),e.Q6J("ngIf",t._displayedPageSizeOptions.length>1),e.xp6(1),e.Q6J("ngIf",t._displayedPageSizeOptions.length<=1)}}function ybe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){return e.CHM(t),e.oxw().firstPage()}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",22),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),e.uIk("aria-label",i._intl.firstPageLabel)}}function bbe(n,r){if(1&n){var t=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"button",23),e.NdJ("click",function(){return e.CHM(t),e.oxw().lastPage()}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",24),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),e.uIk("aria-label",i._intl.lastPageLabel)}}var KS=function(){var n=function r(){(0,g.Z)(this,r),this.changes=new Pn.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,i,o){if(0==o||0==i)return"0 of ".concat(o);var a=t*i,s=a<(o=Math.max(o,0))?Math.min(a+i,o):a+i;return"".concat(a+1," \u2013 ").concat(s," of ").concat(o)}};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({factory:function(){return new n},token:n,providedIn:"root"}),n}(),Sbe={provide:KS,deps:[[new e.FiY,new e.tp0,KS]],useFactory:function(n){return n||new KS}},xbe=new e.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),wbe=(0,un.Id)((0,un.dB)(function(){return function n(){(0,g.Z)(this,n)}}())),Ebe=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s){var u;if((0,g.Z)(this,i),(u=t.call(this))._intl=o,u._changeDetectorRef=a,u._pageIndex=0,u._length=0,u._pageSizeOptions=[],u._hidePageSize=!1,u._showFirstLastButtons=!1,u.page=new e.vpe,u._intlChanges=o.changes.subscribe(function(){return u._changeDetectorRef.markForCheck()}),s){var p=s.pageSize,m=s.pageSizeOptions,C=s.hidePageSize,P=s.showFirstLastButtons;null!=p&&(u._pageSize=p),null!=m&&(u._pageSizeOptions=m),null!=C&&(u._hidePageSize=C),null!=P&&(u._showFirstLastButtons=P)}return u}return(0,T.Z)(i,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(a){this._pageIndex=Math.max((0,Mn.su)(a),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(a){this._length=(0,Mn.su)(a),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(a){this._pageSize=Math.max((0,Mn.su)(a),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(a){this._pageSizeOptions=(a||[]).map(function(s){return(0,Mn.su)(s)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(a){this._hidePageSize=(0,Mn.Ig)(a)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(a){this._showFirstLastButtons=(0,Mn.Ig)(a)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var a=this.pageIndex;this.pageIndex++,this._emitPageEvent(a)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var a=this.pageIndex;this.pageIndex--,this._emitPageEvent(a)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var a=this.pageIndex;this.pageIndex=0,this._emitPageEvent(a)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var a=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(a)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var a=this.getNumberOfPages()-1;return this.pageIndex<a&&0!=this.pageSize}},{key:"getNumberOfPages",value:function(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}},{key:"_changePageSize",value:function(a){var u=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/a)||0,this.pageSize=a,this._emitPageEvent(u)}},{key:"_nextButtonsDisabled",value:function(){return this.disabled||!this.hasNextPage()}},{key:"_previousButtonsDisabled",value:function(){return this.disabled||!this.hasPreviousPage()}},{key:"_updateDisplayedPageSizeOptions",value:function(){!this._initialized||(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(a,s){return a-s}),this._changeDetectorRef.markForCheck())}},{key:"_emitPageEvent",value:function(a){this.page.emit({previousPageIndex:a,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}]),i}(wbe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(KS),e.Y36(e.sBO),e.Y36(void 0))},n.\u0275dir=e.lG2({type:n,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[e.qOj]}),n}(),pz=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s){var u;return(0,g.Z)(this,i),u=t.call(this,o,a,s),s&&null!=s.formFieldAppearance&&(u._formFieldAppearance=s.formFieldAppearance),u}return i}(Ebe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(KS),e.Y36(e.sBO),e.Y36(xbe,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[e.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.YNc(2,_be,5,3,"div",2),e.TgZ(3,"div",3),e.TgZ(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,ybe,3,5,"button",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return i.previousPage()}),e.O4$(),e.TgZ(8,"svg",7),e._UZ(9,"path",8),e.qZA(),e.qZA(),e.kcU(),e.TgZ(10,"button",9),e.NdJ("click",function(){return i.nextPage()}),e.O4$(),e.TgZ(11,"svg",7),e._UZ(12,"path",10),e.qZA(),e.qZA(),e.YNc(13,bbe,3,5,"button",11),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Q6J("ngIf",!i.hidePageSize),e.xp6(3),e.hij(" ",i._intl.getRangeLabel(i.pageIndex,i.pageSize,i.length)," "),e.xp6(1),e.Q6J("ngIf",i.showFirstLastButtons),e.xp6(1),e.Q6J("matTooltip",i._intl.previousPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),e.uIk("aria-label",i._intl.previousPageLabel),e.xp6(3),e.Q6J("matTooltip",i._intl.nextPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),e.uIk("aria-label",i._intl.nextPageLabel),e.xp6(3),e.Q6J("ngIf",i.showFirstLastButtons))},directives:[kt.O5,An,Ja,Hn.KE,pi.gD,kt.sg,un.ey],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),n}(),kbe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[Sbe],imports:[[kt.ez,l2,pi.LD,Tq,un.BQ]]}),n}(),Mbe=f(52402),fz=function(){function n(r){this.dialogRef=r}return n.prototype.ngOnInit=function(){},n.prototype.onNoClick=function(){this.dialogRef.close(!1)},n.prototype.onYesClick=function(){this.dialogRef.close(!0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-information-dialog"]],decls:7,vars:1,consts:[["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA(),e.TgZ(2,"div",0),e.TgZ(3,"button",1),e.NdJ("click",function(){return i.onNoClick()}),e._uU(4,"No"),e.qZA(),e.TgZ(5,"button",2),e.NdJ("click",function(){return i.onYesClick()}),e._uU(6," Yes "),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Oqu(i.confirmationMessage))},directives:[$r,An],styles:[""]}),n}();function Abe(n,r){if(1&n&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.hij("Adapters: ",t.appliance.qemu.adapters,"")}}function Dbe(n,r){if(1&n&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.hij("Console type: ",t.appliance.qemu.console_type,"")}}var Obe=function(){function n(r,t){this.dialogRef=r,this.data=t}return n.prototype.onNoClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(sd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["appliance-info-dialog"]],decls:15,vars:6,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"h1",1),e._uU(2),e.qZA(),e.qZA(),e.TgZ(3,"div",2),e.TgZ(4,"div"),e._uU(5),e.qZA(),e.TgZ(6,"div"),e._uU(7),e.qZA(),e.TgZ(8,"div"),e._uU(9),e.qZA(),e.YNc(10,Abe,2,1,"div",3),e.YNc(11,Dbe,2,1,"div",3),e.qZA(),e.TgZ(12,"div",4),e.TgZ(13,"button",5),e.NdJ("click",function(){return i.onNoClick()}),e._uU(14,"Close"),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Oqu(i.appliance.name),e.xp6(3),e.hij("Vendor: ",i.appliance.vendor_name,""),e.xp6(2),e.hij("Status: ",i.appliance.status,""),e.xp6(2),e.hij("Maintainer: ",i.appliance.maintainer,""),e.xp6(1),e.Q6J("ngIf",i.appliance.qemu),e.xp6(1),e.Q6J("ngIf",i.appliance.qemu))},directives:[ti,ly,kt.O5,$r,An],encapsulation:2}),n}(),Pbe=function(n,r){return function(t){return(0,yS.H)(500).pipe((0,Zs.w)(function(){return r.list(n)}),(0,Er.U)(function(i){return i.find(function(o){return o.name===t.value})?{templateExist:!0}:null}))}};function Ibe(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Template name is required"),e.qZA())}function Rbe(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Template name is incorrect"),e.qZA())}function Nbe(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Template with this name exists"),e.qZA())}var Zbe=function(n){return{"is-invalid":n}},B2=function(){function n(r,t,i,o,a,s,u,p){this.dialogRef=r,this.router=t,this.dialog=i,this.toasterService=o,this.formBuilder=a,this.templateNameValidator=s,this.templateService=u,this.data=p}return n.prototype.ngOnInit=function(){var r=this;this.templateNameForm=this.formBuilder.group({templateName:new re.NI(this.data.name,[re.kI.required,this.templateNameValidator.get],[Pbe(this.server,this.templateService)])}),setTimeout(function(){r.templateNameForm.controls.templateName.markAsTouched()},100)},Object.defineProperty(n.prototype,"form",{get:function(){return this.templateNameForm.controls},enumerable:!1,configurable:!0}),n.prototype.onAddClick=function(){var r=this;this.templateNameForm.invalid?this.toasterService.error("Please enter correct name for new template"):this.templateService.list(this.server).subscribe(function(t){var i=r.templateNameForm.controls.templateName.value;t.find(function(a){return a.name===i})?r.toasterService.error("Template with this name exists"):r.dialogRef.close(r.templateNameForm.controls.templateName.value)})},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.onKeyDown=function(r){"Enter"===r.key&&this.onAddClick()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(xr),e.Y36(to),e.Y36(Xn),e.Y36(re.qu),e.Y36(Sp),e.Y36(uy),e.Y36(sd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-template-name-dialog"]],features:[e._Bn([Sp])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Please enter name for the new template"),e.qZA(),e.TgZ(2,"form",1),e.TgZ(3,"mat-form-field",2),e.TgZ(4,"input",3),e.NdJ("keydown",function(a){return i.onKeyDown(a)}),e.qZA(),e.YNc(5,Ibe,2,0,"mat-error",4),e.YNc(6,Rbe,2,0,"mat-error",4),e.YNc(7,Nbe,2,0,"mat-error",4),e.qZA(),e.TgZ(8,"div",5),e.TgZ(9,"button",6),e.NdJ("click",function(){return i.onNoClick()}),e._uU(10,"Cancel"),e.qZA(),e.TgZ(11,"button",7),e.NdJ("click",function(){return i.onAddClick()}),e._uU(12," Add template "),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Q6J("formGroup",i.templateNameForm),e.xp6(2),e.Q6J("ngClass",e.VKq(5,Zbe,null==i.form.templateName?null:i.form.templateName.errors)),e.xp6(1),e.Q6J("ngIf",(null==i.form.templateName?null:i.form.templateName.touched)&&(null==i.form.templateName?null:i.form.templateName.errors)&&(null==i.form.templateName?null:i.form.templateName.errors.required)),e.xp6(1),e.Q6J("ngIf",(null==i.form.templateName?null:i.form.templateName.errors)&&(null==i.form.templateName?null:i.form.templateName.errors.invalidName)),e.xp6(1),e.Q6J("ngIf",(null==i.form.templateName?null:i.form.templateName.errors)&&(null==i.form.templateName?null:i.form.templateName.errors.templateExist)))},directives:[ti,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,kt.mk,kt.O5,$r,An,Hn.TO],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),n}(),hz=function(){function n(r){this.httpServer=r}return n.prototype.getAppliances=function(r){return this.httpServer.get(r,"/appliances")},n.prototype.getAppliance=function(r,t){return this.httpServer.get(r,t)},n.prototype.getUploadPath=function(r,t,i){return r.protocol+"//"+r.host+":"+r.port+"/v2/compute/"+t+"/images/"+i},n.prototype.updateAppliances=function(r){return this.httpServer.get(r,"/appliances?update=yes")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Lbe=["mat-sort-header",""];function Fbe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(t),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(t),e.oxw()._disableViewStateAnimation=!1}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6),e._UZ(4,"div",7),e._UZ(5,"div",8),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",i._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",i._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",i._getArrowDirectionState())}}var Bbe=["*"],Ube=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),Hbe=(0,un.dB)((0,un.Id)(function(){return function n(){(0,g.Z)(this,n)}}())),XS=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o){var a;return(0,g.Z)(this,i),(a=t.call(this))._defaultOptions=o,a.sortables=new Map,a._stateChanges=new Pn.xQ,a.start="asc",a._direction="",a.sortChange=new e.vpe,a}return(0,T.Z)(i,[{key:"direction",get:function(){return this._direction},set:function(a){this._direction=a}},{key:"disableClear",get:function(){return this._disableClear},set:function(a){this._disableClear=(0,Mn.Ig)(a)}},{key:"register",value:function(a){this.sortables.set(a.id,a)}},{key:"deregister",value:function(a){this.sortables.delete(a.id)}},{key:"sort",value:function(a){this.active!=a.id?(this.active=a.id,this.direction=a.start?a.start:this.start):this.direction=this.getNextSortDirection(a),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(a){var s,u,p;if(!a)return"";var m=null!==(u=null!==(s=null==a?void 0:a.disableClear)&&void 0!==s?s:this.disableClear)&&void 0!==u?u:!!(null===(p=this._defaultOptions)||void 0===p?void 0:p.disableClear),C=function(n,r){var t=["asc","desc"];return"desc"==n&&t.reverse(),r||t.push(""),t}(a.start||this.start,m),P=C.indexOf(this.direction)+1;return P>=C.length&&(P=0),C[P]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Hbe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Ube,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),n}(),ah=un.mZ.ENTERING+" "+un.yN.STANDARD_CURVE,Ty={indicator:(0,on.X$)("indicator",[(0,on.SB)("active-asc, asc",(0,on.oB)({transform:"translateY(0px)"})),(0,on.SB)("active-desc, desc",(0,on.oB)({transform:"translateY(10px)"})),(0,on.eR)("active-asc <=> active-desc",(0,on.jt)(ah))]),leftPointer:(0,on.X$)("leftPointer",[(0,on.SB)("active-asc, asc",(0,on.oB)({transform:"rotate(-45deg)"})),(0,on.SB)("active-desc, desc",(0,on.oB)({transform:"rotate(45deg)"})),(0,on.eR)("active-asc <=> active-desc",(0,on.jt)(ah))]),rightPointer:(0,on.X$)("rightPointer",[(0,on.SB)("active-asc, asc",(0,on.oB)({transform:"rotate(45deg)"})),(0,on.SB)("active-desc, desc",(0,on.oB)({transform:"rotate(-45deg)"})),(0,on.eR)("active-asc <=> active-desc",(0,on.jt)(ah))]),arrowOpacity:(0,on.X$)("arrowOpacity",[(0,on.SB)("desc-to-active, asc-to-active, active",(0,on.oB)({opacity:1})),(0,on.SB)("desc-to-hint, asc-to-hint, hint",(0,on.oB)({opacity:.54})),(0,on.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,on.oB)({opacity:0})),(0,on.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,on.jt)("0ms")),(0,on.eR)("* <=> *",(0,on.jt)(ah))]),arrowPosition:(0,on.X$)("arrowPosition",[(0,on.eR)("* => desc-to-hint, * => desc-to-active",(0,on.jt)(ah,(0,on.F4)([(0,on.oB)({transform:"translateY(-25%)"}),(0,on.oB)({transform:"translateY(0)"})]))),(0,on.eR)("* => hint-to-desc, * => active-to-desc",(0,on.jt)(ah,(0,on.F4)([(0,on.oB)({transform:"translateY(0)"}),(0,on.oB)({transform:"translateY(25%)"})]))),(0,on.eR)("* => asc-to-hint, * => asc-to-active",(0,on.jt)(ah,(0,on.F4)([(0,on.oB)({transform:"translateY(25%)"}),(0,on.oB)({transform:"translateY(0)"})]))),(0,on.eR)("* => hint-to-asc, * => active-to-asc",(0,on.jt)(ah,(0,on.F4)([(0,on.oB)({transform:"translateY(0)"}),(0,on.oB)({transform:"translateY(-25%)"})]))),(0,on.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,on.oB)({transform:"translateY(0)"})),(0,on.SB)("hint-to-desc, active-to-desc, desc",(0,on.oB)({transform:"translateY(-25%)"})),(0,on.SB)("hint-to-asc, active-to-asc, asc",(0,on.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,on.X$)("allowChildren",[(0,on.eR)("* <=> *",[(0,on.IO)("@*",(0,on.pV)(),{optional:!0})])])},U2=function(){var n=function r(){(0,g.Z)(this,r),this.changes=new Pn.xQ};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({factory:function(){return new n},token:n,providedIn:"root"}),n}(),jbe={provide:U2,deps:[[new e.FiY,new e.tp0,U2]],useFactory:function(n){return n||new U2}},zbe=(0,un.Id)(function(){return function n(){(0,g.Z)(this,n)}}()),mz=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p,m,C){var P;return(0,g.Z)(this,i),(P=t.call(this))._intl=o,P._changeDetectorRef=a,P._sort=s,P._columnDef=u,P._focusMonitor=p,P._elementRef=m,P._ariaDescriber=C,P._showIndicatorHint=!1,P._viewState={},P._arrowDirection="",P._disableViewStateAnimation=!1,P.arrowPosition="after",P._sortActionDescription="Sort",P._handleStateChanges(),P}return(0,T.Z)(i,[{key:"sortActionDescription",get:function(){return this._sortActionDescription},set:function(a){this._updateSortActionDescription(a)}},{key:"disableClear",get:function(){return this._disableClear},set:function(a){this._disableClear=(0,Mn.Ig)(a)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}},{key:"ngAfterViewInit",value:function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(s){var u=!!s;u!==a._showIndicatorHint&&(a._setIndicatorHintVisible(u),a._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(a){this._isDisabled()&&a||(this._showIndicatorHint=a,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(a){this._viewState=a||{},this._disableViewStateAnimation&&(this._viewState={toState:a.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(a){!this._isDisabled()&&(a.keyCode===zr.L_||a.keyCode===zr.K5)&&(a.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var a=this._viewState.fromState;return(a?"".concat(a,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_updateSortActionDescription",value:function(a){var s,u;this._sortButton&&(null===(s=this._ariaDescriber)||void 0===s||s.removeDescription(this._sortButton,this._sortActionDescription),null===(u=this._ariaDescriber)||void 0===u||u.describe(this._sortButton,a)),this._sortActionDescription=a}},{key:"_handleStateChanges",value:function(){var a=this;this._rerenderSubscription=(0,go.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){a._isSorted()&&(a._updateArrowDirection(),("hint"===a._viewState.toState||"active"===a._viewState.toState)&&(a._disableViewStateAnimation=!0),a._setAnimationTransitionState({fromState:a._arrowDirection,toState:"active"}),a._showIndicatorHint=!1),!a._isSorted()&&a._viewState&&"active"===a._viewState.toState&&(a._disableViewStateAnimation=!1,a._setAnimationTransitionState({fromState:"active",toState:a._arrowDirection})),a._changeDetectorRef.markForCheck()})}}]),i}(zbe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(U2),e.Y36(e.sBO),e.Y36(XS,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(Ai.tE),e.Y36(e.SBq),e.Y36(Ai.$s,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,i){1&t&&e.NdJ("click",function(){return i._handleClick()})("keydown",function(a){return i._handleKeydown(a)})("mouseenter",function(){return i._setIndicatorHintVisible(!0)})("mouseleave",function(){return i._setIndicatorHintVisible(!1)}),2&t&&(e.uIk("aria-sort",i._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",i._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",sortActionDescription:"sortActionDescription",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[e.qOj],attrs:Lbe,ngContentSelectors:Bbe,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,i){1&t&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,Fbe,6,6,"div",2),e.qZA()),2&t&&(e.ekj("mat-sort-header-sorted",i._isSorted())("mat-sort-header-position-before","before"==i.arrowPosition),e.uIk("tabindex",i._isDisabled()?null:0),e.xp6(3),e.Q6J("ngIf",i._renderArrow()))},directives:[kt.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[Ty.indicator,Ty.leftPointer,Ty.rightPointer,Ty.arrowOpacity,Ty.arrowPosition,Ty.allowChildren]},changeDetection:0}),n}(),Wbe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[jbe],imports:[[kt.ez,un.BQ]]}),n}(),Gbe=function(){function n(){}return n.prototype.transform=function(r,t){return r?t?(t=t.toLowerCase(),r.filteredData.filter(function(i){return i.name.toLowerCase().includes(t)})):r:[]},n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"datasourcefilter",type:n,pure:!0}),n}(),Ybe=["stepper"];function Jbe(n,r){1&n&&e._uU(0,"Please select how you want to create new template")}function Qbe(n,r){if(1&n&&e._uU(0),2&n){var t=e.oxw();e.Oqu(t.actionTitle)}}function Kbe(n,r){if(1&n&&(e.TgZ(0,"mat-option",33),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Xbe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Name "),e.qZA())}function $be(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function e0e(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Emulator "),e.qZA())}function t0e(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.emulator," ")}}function n0e(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Vendor "),e.qZA())}function r0e(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.vendor_name," ")}}function i0e(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Actions "),e.qZA())}function o0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-cell",34),e.TgZ(1,"button",35),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw().install(a)}),e.TgZ(2,"mat-icon",36),e._uU(3,"archive"),e.qZA(),e.qZA(),e.TgZ(4,"button",37),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw().showInfo(a)}),e.TgZ(5,"mat-icon",38),e._uU(6,"info"),e.qZA(),e.qZA(),e.qZA()}}function a0e(n,r){1&n&&e._UZ(0,"mat-header-row")}function s0e(n,r){1&n&&e._UZ(0,"mat-row")}function l0e(n,r){if(1&n&&e._uU(0),2&n){var t=e.oxw(2);e.Oqu(t.secondActionTitle)}}function u0e(n,r){if(1&n&&(e.TgZ(0,"mat-option",33),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.path," ")}}function c0e(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",52),e._uU(2,"check"),e.qZA(),e.qZA())}function d0e(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",53),e._uU(2,"close"),e.qZA(),e.qZA())}function p0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",48),e.TgZ(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.YNc(4,c0e,3,0,"span",32),e.YNc(5,d0e,3,0,"span",32),e.TgZ(6,"input",49,50),e.NdJ("change",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).importImage(s,u.images.bios_image)}),e.qZA(),e.TgZ(8,"button",51),e.NdJ("click",function(){return e.CHM(t),e.MAs(7).click()}),e._uU(9,"Import"),e.qZA(),e.TgZ(10,"button",51),e.NdJ("click",function(){e.CHM(t);var s=e.oxw().$implicit;return e.oxw(3).downloadImageFromVersion(s.images.bios_image)}),e._uU(11," Download "),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.xp6(2),e.hij(" ",i.images.bios_image," "),e.xp6(2),e.Q6J("ngIf",o.checkImageFromVersion(i.images.bios_image)),e.xp6(1),e.Q6J("ngIf",!o.checkImageFromVersion(i.images.bios_image)),e.xp6(1),e.Q6J("uploader",o.uploaderImage)}}function f0e(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",52),e._uU(2,"check"),e.qZA(),e.qZA())}function h0e(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",53),e._uU(2,"close"),e.qZA(),e.qZA())}function m0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",48),e.TgZ(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.YNc(4,f0e,3,0,"span",32),e.YNc(5,h0e,3,0,"span",32),e.TgZ(6,"input",49,54),e.NdJ("change",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).importImage(s,u.images.hda_disk_image)}),e.qZA(),e.TgZ(8,"button",51),e.NdJ("click",function(){return e.CHM(t),e.MAs(7).click()}),e._uU(9,"Import"),e.qZA(),e.TgZ(10,"button",51),e.NdJ("click",function(){e.CHM(t);var s=e.oxw().$implicit;return e.oxw(3).downloadImageFromVersion(s.images.hda_disk_image)}),e._uU(11," Download "),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.xp6(2),e.hij(" ",i.images.hda_disk_image," "),e.xp6(2),e.Q6J("ngIf",o.checkImageFromVersion(i.images.hda_disk_image)),e.xp6(1),e.Q6J("ngIf",!o.checkImageFromVersion(i.images.hda_disk_image)),e.xp6(1),e.Q6J("uploader",o.uploaderImage)}}function v0e(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",52),e._uU(2,"check"),e.qZA(),e.qZA())}function g0e(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",53),e._uU(2,"close"),e.qZA(),e.qZA())}function _0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",48),e.TgZ(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.YNc(4,v0e,3,0,"span",32),e.YNc(5,g0e,3,0,"span",32),e.TgZ(6,"input",49,55),e.NdJ("change",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).importImage(s,u.images.hdb_disk_image)}),e.qZA(),e.TgZ(8,"button",51),e.NdJ("click",function(){return e.CHM(t),e.MAs(7).click()}),e._uU(9,"Import"),e.qZA(),e.TgZ(10,"button",51),e.NdJ("click",function(){e.CHM(t);var s=e.oxw().$implicit;return e.oxw(3).downloadImageFromVersion(s.images.hdb_disk_image)}),e._uU(11," Download "),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.xp6(2),e.hij(" ",i.images.hdb_disk_image," "),e.xp6(2),e.Q6J("ngIf",o.checkImageFromVersion(i.images.hdb_disk_image)),e.xp6(1),e.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdb_disk_image)),e.xp6(1),e.Q6J("uploader",o.uploaderImage)}}function y0e(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",52),e._uU(2,"check"),e.qZA(),e.qZA())}function b0e(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",53),e._uU(2,"close"),e.qZA(),e.qZA())}function C0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",48),e.TgZ(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.YNc(4,y0e,3,0,"span",32),e.YNc(5,b0e,3,0,"span",32),e.TgZ(6,"input",49,56),e.NdJ("change",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).importImage(s,u.images.hdc_disk_image)}),e.qZA(),e.TgZ(8,"button",51),e.NdJ("click",function(){return e.CHM(t),e.MAs(7).click()}),e._uU(9,"Import"),e.qZA(),e.TgZ(10,"button",51),e.NdJ("click",function(){e.CHM(t);var s=e.oxw().$implicit;return e.oxw(3).downloadImageFromVersion(s.images.hdc_disk_image)}),e._uU(11," Download "),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.xp6(2),e.hij(" ",i.images.hdb_disk_image," "),e.xp6(2),e.Q6J("ngIf",o.checkImageFromVersion(i.images.hdc_disk_image)),e.xp6(1),e.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdc_disk_image)),e.xp6(1),e.Q6J("uploader",o.uploaderImage)}}function S0e(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",52),e._uU(2,"check"),e.qZA(),e.qZA())}function T0e(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",53),e._uU(2,"close"),e.qZA(),e.qZA())}function x0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",48),e.TgZ(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.YNc(4,S0e,3,0,"span",32),e.YNc(5,T0e,3,0,"span",32),e.TgZ(6,"input",49,57),e.NdJ("change",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).importImage(s,u.images.hdd_disk_image)}),e.qZA(),e.TgZ(8,"button",51),e.NdJ("click",function(){return e.CHM(t),e.MAs(7).click()}),e._uU(9,"Import"),e.qZA(),e.TgZ(10,"button",51),e.NdJ("click",function(){e.CHM(t);var s=e.oxw().$implicit;return e.oxw(3).downloadImageFromVersion(s.images.hdd_disk_image)}),e._uU(11," Download "),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.xp6(2),e.hij(" ",i.images.hdd_disk_image," "),e.xp6(2),e.Q6J("ngIf",o.checkImageFromVersion(i.images.hdd_disk_image)),e.xp6(1),e.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdd_disk_image)),e.xp6(1),e.Q6J("uploader",o.uploaderImage)}}function w0e(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",52),e._uU(2,"check"),e.qZA(),e.qZA())}function E0e(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",53),e._uU(2,"close"),e.qZA(),e.qZA())}function k0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",48),e.TgZ(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.YNc(4,w0e,3,0,"span",32),e.YNc(5,E0e,3,0,"span",32),e.TgZ(6,"input",49,58),e.NdJ("change",function(s){e.CHM(t);var u=e.oxw().$implicit;return e.oxw(3).importImage(s,u.images.cdrom_image)}),e.qZA(),e.TgZ(8,"button",51),e.NdJ("click",function(){return e.CHM(t),e.MAs(7).click()}),e._uU(9,"Import"),e.qZA(),e.TgZ(10,"button",51),e.NdJ("click",function(){e.CHM(t);var s=e.oxw().$implicit;return e.oxw(3).downloadImageFromVersion(s.images.cdrom_image)}),e._uU(11," Download "),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw(3);e.xp6(2),e.hij(" ",i.images.cdrom_image," "),e.xp6(2),e.Q6J("ngIf",o.checkImageFromVersion(i.images.cdrom_image)),e.xp6(1),e.Q6J("ngIf",!o.checkImageFromVersion(i.images.cdrom_image)),e.xp6(1),e.Q6J("uploader",o.uploaderImage)}}function M0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"div",45),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.TgZ(4,"div"),e.TgZ(5,"button",46),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).createQemuTemplateFromVersion(u)}),e._uU(6," Create "),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,p0e,12,4,"div",47),e.YNc(8,m0e,12,4,"div",47),e.YNc(9,_0e,12,4,"div",47),e.YNc(10,C0e,12,4,"div",47),e.YNc(11,x0e,12,4,"div",47),e.YNc(12,k0e,12,4,"div",47),e.qZA()}if(2&n){var i=r.$implicit,o=e.oxw(3);e.xp6(3),e.AsE("",o.applianceToInstall.name," version ",i.name,""),e.xp6(4),e.Q6J("ngIf",i.images.bios_image),e.xp6(1),e.Q6J("ngIf",i.images.hda_disk_image),e.xp6(1),e.Q6J("ngIf",i.images.hdb_disk_image),e.xp6(1),e.Q6J("ngIf",i.images.hdc_disk_image),e.xp6(1),e.Q6J("ngIf",i.images.hdd_disk_image),e.xp6(1),e.Q6J("ngIf",i.images.cdrom_image)}}var vz=function(){return{standalone:!0}};function A0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"div"),e._uU(2," Server type"),e._UZ(3,"br"),e.TgZ(4,"mat-radio-group",4),e.TgZ(5,"mat-radio-button",39),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("local")}),e._uU(6,"Install the appliance locally"),e.qZA(),e.TgZ(7,"mat-radio-button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("gns3 vm")}),e._uU(8,"Install the appliance on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div"),e._uU(10," Qemu binary"),e._UZ(11,"br"),e.TgZ(12,"mat-select",41),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw(2).selectedBinary=a}),e.YNc(13,u0e,2,2,"mat-option",14),e.qZA(),e.qZA(),e.TgZ(14,"div"),e._uU(15," Install required files "),e.TgZ(16,"button",42),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).refreshImages()}),e.TgZ(17,"mat-icon",43),e._uU(18,"refresh"),e.qZA(),e.qZA(),e._UZ(19,"br"),e.TgZ(20,"div"),e.YNc(21,M0e,13,8,"div",44),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(5),e.Q6J("disabled",!i.isLinuxPlatform)("checked",!i.isGns3VmChosen),e.xp6(2),e.Q6J("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen),e.xp6(5),e.Q6J("ngModel",i.selectedBinary)("ngModelOptions",e.DdM(8,vz)),e.xp6(1),e.Q6J("ngForOf",i.qemuBinaries),e.xp6(8),e.Q6J("ngForOf",i.applianceToInstall.versions)}}function D0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"div"),e._uU(2," Server type"),e._UZ(3,"br"),e.TgZ(4,"mat-radio-group",4),e.TgZ(5,"mat-radio-button",39),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("local")}),e._uU(6,"Install the appliance locally"),e.qZA(),e.TgZ(7,"mat-radio-button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("gns3 vm")}),e._uU(8,"Install the appliance on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"button",29),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).createDockerTemplate()}),e._uU(10," Create docker template "),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(5),e.Q6J("disabled",!i.isLinuxPlatform)("checked",!i.isGns3VmChosen),e.xp6(2),e.Q6J("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen)}}function O0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-list-item"),e.TgZ(1,"div",45),e.TgZ(2,"div"),e._uU(3),e.qZA(),e.TgZ(4,"div"),e.TgZ(5,"input",49,54),e.NdJ("change",function(s){var p=e.CHM(t).$implicit;return e.oxw(3).importImage(s,p.filename)}),e.qZA(),e.TgZ(7,"button",51),e.NdJ("click",function(){return e.CHM(t),e.MAs(6).click()}),e._uU(8,"Import"),e.qZA(),e.TgZ(9,"button",46),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).createIosTemplate(u)}),e._uU(10," Create "),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.oxw(3);e.xp6(3),e.hij(" ",i.filename," "),e.xp6(2),e.Q6J("uploader",o.uploaderImage)}}function P0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"div"),e._uU(2," Server type"),e._UZ(3,"br"),e.TgZ(4,"mat-radio-group",4),e.TgZ(5,"mat-radio-button",59),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("local")}),e._uU(6,"Install the appliance locally"),e.qZA(),e.TgZ(7,"mat-radio-button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("gns3 vm")}),e._uU(8,"Install the appliance on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div"),e._uU(10," Install required files "),e.TgZ(11,"button",42),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).refreshImages()}),e.TgZ(12,"mat-icon",43),e._uU(13,"refresh"),e.qZA(),e.qZA(),e._UZ(14,"br"),e.TgZ(15,"mat-list"),e.YNc(16,O0e,11,2,"mat-list-item",44),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(5),e.Q6J("checked",!i.isGns3VmChosen),e.xp6(2),e.Q6J("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen),e.xp6(9),e.Q6J("ngForOf",i.applianceToInstall.images)}}function I0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-list-item"),e.TgZ(1,"div",45),e.TgZ(2,"div"),e._uU(3),e.qZA(),e.TgZ(4,"div"),e.TgZ(5,"input",49,54),e.NdJ("change",function(){var u=e.CHM(t).$implicit,p=e.oxw(3);return p.importImage(p.$,u.filename)}),e.qZA(),e.TgZ(7,"button",51),e.NdJ("click",function(){return e.CHM(t),e.MAs(6).click()}),e._uU(8,"Import"),e.qZA(),e.TgZ(9,"button",46),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw(3).createIouTemplate(u)}),e._uU(10," Create "),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.oxw(3);e.xp6(3),e.hij(" ",i.filename," "),e.xp6(2),e.Q6J("uploader",o.uploaderImage)}}function R0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"div"),e._uU(2," Server type"),e._UZ(3,"br"),e.TgZ(4,"mat-radio-group",4),e.TgZ(5,"mat-radio-button",39),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("local")}),e._uU(6,"Install the appliance locally"),e.qZA(),e.TgZ(7,"mat-radio-button",40),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).setServerType("gns3 vm")}),e._uU(8,"Install the appliance on the GNS3 VM"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div"),e._uU(10," Install required files "),e.TgZ(11,"button",42),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).refreshImages()}),e.TgZ(12,"mat-icon",43),e._uU(13,"refresh"),e.qZA(),e.qZA(),e._UZ(14,"br"),e.TgZ(15,"mat-list"),e.YNc(16,I0e,11,2,"mat-list-item",44),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(5),e.Q6J("disabled",!i.isLinuxPlatform)("checked",!i.isGns3VmChosen),e.xp6(2),e.Q6J("disabled",!i.isGns3VmAvailable)("checked",i.isGns3VmChosen),e.xp6(9),e.Q6J("ngForOf",i.applianceToInstall.images)}}function N0e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-step"),e.YNc(1,l0e,1,1,"ng-template",3),e.TgZ(2,"mat-card",9),e._uU(3," Please configure GNS3 VM to install selected appliance "),e.qZA(),e.TgZ(4,"mat-card",9),e.YNc(5,A0e,22,9,"div",32),e.YNc(6,D0e,11,4,"div",32),e.YNc(7,P0e,17,4,"div",32),e.YNc(8,R0e,17,5,"div",32),e.qZA(),e.TgZ(9,"div"),e.TgZ(10,"button",30),e._uU(11,"Back"),e.qZA(),e.TgZ(12,"button",8),e.NdJ("click",function(){return e.CHM(t),e.oxw().onCloseClick()}),e._uU(13,"Cancel"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("hidden",!(!i.isLinuxPlatform&&!i.isGns3VmAvailable&&!i.applianceToInstall.dynamips)),e.xp6(2),e.Q6J("hidden",!(i.isLinuxPlatform||i.isGns3VmAvailable||i.applianceToInstall.dynamips)),e.xp6(1),e.Q6J("ngIf",i.applianceToInstall.qemu),e.xp6(1),e.Q6J("ngIf",i.applianceToInstall.docker),e.xp6(1),e.Q6J("ngIf",i.applianceToInstall.dynamips),e.xp6(1),e.Q6J("ngIf",i.applianceToInstall.iou)}}var Z0e=function(){return[5,10,20,50,100]},gz=function(){function n(r,t,i,o,a,s,u,p,m,C,P,L,G){this.dialogRef=r,this.applianceService=t,this.changeDetector=i,this.toasterService=o,this.qemuService=a,this.dockerService=s,this.iosService=u,this.iouService=p,this.templateService=m,this.dialog=C,this.computeService=P,this.changeDetectorRef=L,this.progressService=G,this.action="install",this.actionTitle="Install appliance from server",this.secondActionTitle="Appliance settings",this.searchText="",this.allAppliances=[],this.appliances=[],this.isGns3VmAvailable=!1,this.isLinuxPlatform=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!1,this.qemuBinaries=[],this.categories=["all categories","router","multilayer_switch","guest","firewall"],this.category="all categories",this.displayedColumns=["name","emulator","vendor","actions"],this.qemuImages=[],this.iosImages=[],this.iouImages=[],this.templates=[]}return n.prototype.ngOnInit=function(){var r=this;this.templateService.list(this.server).subscribe(function(t){r.templates=t}),this.computeService.getComputes(this.server).subscribe(function(t){t.forEach(function(i){"vm"===i.compute_id&&(r.isGns3VmAvailable=!0,r.isGns3VmChosen=!0),"linux"===i.capabilities.platform&&(r.isLinuxPlatform=!0)})}),this.qemuService.getImages(this.server).subscribe(function(t){r.qemuImages=t}),this.iosService.getImages(this.server).subscribe(function(t){r.iosImages=t}),this.iouService.getImages(this.server).subscribe(function(t){r.iouImages=t}),this.applianceService.getAppliances(this.server).subscribe(function(t){r.appliances=t,r.appliances.forEach(function(i){i.docker&&(i.emulator="Docker"),i.dynamips&&(i.emulator="Dynamips"),i.iou&&(i.emulator="Iou"),i.qemu&&(i.emulator="Qemu")}),r.allAppliances=t,r.dataSource=new zq(r.allAppliances),r.dataSource.paginator=r.paginator}),this.qemuService.getBinaries(this.server).subscribe(function(t){r.qemuBinaries=t}),this.uploader=new tv({}),this.uploader.onAfterAddingFile=function(t){t.withCredentials=!1},this.uploader.onErrorItem=function(t,i,o,a){r.toasterService.error("An error has occured")},this.uploader.onSuccessItem=function(t,i,o,a){r.toasterService.success("Appliance imported succesfully"),r.getAppliance(t.url)},this.uploaderImage=new tv({}),this.uploaderImage.onAfterAddingFile=function(t){t.withCredentials=!1},this.uploaderImage.onErrorItem=function(t,i,o,a){r.toasterService.error("An error has occured"),r.progressService.deactivate(),r.uploaderImage.clearQueue()},this.uploaderImage.onSuccessItem=function(t,i,o,a){r.toasterService.success("Image imported succesfully"),r.refreshImages(),r.progressService.deactivate(),r.uploaderImage.clearQueue()}},n.prototype.updateAppliances=function(){var r=this;this.progressService.activate(),this.applianceService.updateAppliances(this.server).subscribe(function(t){r.appliances=t,r.progressService.deactivate(),r.toasterService.success("Appliances are up-to-date.")},function(t){r.progressService.deactivate(),r.toasterService.error("Appliances were not updated correctly.")})},n.prototype.refreshImages=function(){var r=this;this.qemuService.getImages(this.server).subscribe(function(t){r.qemuImages=t}),this.iosService.getImages(this.server).subscribe(function(t){r.iosImages=t}),this.iouService.getImages(this.server).subscribe(function(t){r.iouImages=t})},n.prototype.getAppliance=function(r){var t=this,i=r.split("/v2");this.applianceService.getAppliance(this.server,i[i.length-1]).subscribe(function(a){t.applianceToInstall=a,setTimeout(function(){t.stepper.next()},100)})},n.prototype.addAppliance=function(r){var u,t=this,o=(r.target.files[0].name.split("-"),r.target.files[0].name),a=r.target.files[0],s=new FileReader;s.onloadend=function(){var p=JSON.parse(s.result);p.docker&&(u="docker"),p.dynamips&&(u="dynamips"),p.iou&&(u="iou"),p.qemu&&(u="qemu");var m=t.applianceService.getUploadPath(t.server,u,o);t.uploader.queue.forEach(function(P){return P.url=m});var C=t.uploader.queue[0];C.options.disableMultipart=!0,t.uploader.uploadItem(C)},s.readAsText(a)},n.prototype.filterAppliances=function(r){var t=this,i=this.allAppliances.filter(function(o){return o.name.toLowerCase().includes(t.searchText.toLowerCase())});this.appliances="all categories"!==this.category&&this.category?i.filter(function(o){return o.category===t.category}):i,this.dataSource=new zq(this.appliances),this.dataSource.paginator=this.paginator},n.prototype.setAction=function(r){this.action=r,"install"===r?this.actionTitle="Install appliance from server":"import"===r&&(this.actionTitle="Import an appliance file")},n.prototype.setServerType=function(r){"gns3 vm"===r?(this.isGns3VmChosen=!0,this.isLocalComputerChosen=!1):(this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0)},n.prototype.sortData=function(r){if(r.active&&""!==r.direction){var t=this.appliances.slice();this.appliances=t.sort(function(i,o){var a="asc"===r.direction;return"name"===r.active?VL(i.name,o.name,a):"emulator"===r.active?VL(i.emulator,o.emulator,a):"vendor"===r.active?VL(i.vendor_name,o.vendor_name,a):0})}},n.prototype.onCloseClick=function(){this.dialogRef.close()},n.prototype.install=function(r){var t=this;this.applianceToInstall=r,setTimeout(function(){t.stepper.next(),t.applianceToInstall.qemu&&setTimeout(function(){if(t.qemuBinaries.length)if("x86_64"===t.applianceToInstall.qemu.arch)(i=t.qemuBinaries.filter(function(o){return o.path.endsWith("qemu-system-x86_64")})).length&&(t.selectedBinary=i[0]);else if("i386"===t.applianceToInstall.qemu.arch)(i=t.qemuBinaries.filter(function(a){return a.path.endsWith("qemu-system-i386")})).length&&(t.selectedBinary=i[0]);else if("arm"===t.applianceToInstall.qemu.arch){var i;(i=t.qemuBinaries.filter(function(a){return a.path.endsWith("qemu-system-arm")})).length&&(t.selectedBinary=i[0])}else t.selectedBinary=t.qemuBinaries[0]},100)},100)},n.prototype.showInfo=function(r){this.dialog.open(Obe,{width:"250px",data:{appliance:r}}).componentInstance.appliance=r},n.prototype.importImage=function(r,t){var i=this;this.progressService.activate(),this.computeChecksumMd5(r.target.files[0],!1).then(function(o){var a=i.applianceToInstall.images.filter(function(u){return u.filename===t})[0];if(a.md5sum!==o){i.progressService.deactivate();var s=i.dialog.open(fz,{width:"400px",height:"200px",autoFocus:!1,disableClose:!0});s.componentInstance.confirmationMessage="This is not the correct file.\n The MD5 sum is "+o+" and should be "+a.md5sum+". Do you want to accept it at your own risks?",s.afterClosed().subscribe(function(u){u?i.importImageFile(r):i.uploaderImage.clearQueue()})}else i.importImageFile(r)})},n.prototype.importImageFile=function(r){var u,t=this,o=(r.target.files[0].name.split("-"),r.target.files[0].name),s=new FileReader;s.onloadend=function(){t.applianceToInstall.qemu&&(u="qemu"),t.applianceToInstall.dynamips&&(u="dynamips"),t.applianceToInstall.iou&&(u="iou");var p=t.applianceService.getUploadPath(t.server,u,o);t.uploaderImage.queue.forEach(function(C){return C.url=p});var m=t.uploaderImage.queue[0];m.options.disableMultipart=!0,t.uploaderImage.uploadItem(m),t.progressService.activate()},s.onloadend(void 0)},n.prototype.checkImageFromVersion=function(r){var t=this.applianceToInstall.images.filter(function(i){return i.filename===r})[0];if(this.applianceToInstall.qemu){if(this.qemuImages.filter(function(i){return i.md5sum===t.md5sum}).length>0)return!0}else if(this.applianceToInstall.dynamips){if(this.iosImages.filter(function(i){return i.md5sum===t.md5sum}).length>0)return!0}else if(this.applianceToInstall.iou&&this.iouImages.filter(function(i){return i.md5sum===t.md5sum}).length>0)return!0;return!1},n.prototype.checkImages=function(r){return r.images.hdb_disk_image?!(!this.checkImageFromVersion(r.images.hda_disk_image)||!this.checkImageFromVersion(r.images.hdb_disk_image)):!!this.checkImageFromVersion(r.images.hda_disk_image)},n.prototype.openConfirmationDialog=function(r,t){var i=this.dialog.open(fz,{width:"400px",height:"200px",autoFocus:!1,disableClose:!0});i.componentInstance.confirmationMessage=r,i.afterClosed().subscribe(function(o){o&&window.open(t)})},n.prototype.downloadImage=function(r){r.direct_download_url?r.compression?this.openConfirmationDialog("The file is compressed with "+r.compression+", it must be uncompressed first.",r.direct_download_url):window.open(r.direct_download_url):this.openConfirmationDialog("Download will redirect you where the required file can be downloaded, you may have to be registered with the vendor in order to download the file.",r.download_url)},n.prototype.downloadImageFromVersion=function(r){var t=this;this.applianceToInstall.images.forEach(function(i){i.filename===r&&t.downloadImage(i)})},n.prototype.getCategory=function(){return"multilayer_switch"===this.applianceToInstall.category?"switch":this.applianceToInstall.category},n.prototype.createIouTemplate=function(r){var t=this,i=new aL;i.nvram=this.applianceToInstall.iou.nvram,i.ram=this.applianceToInstall.iou.ram,i.ethernet_adapters=this.applianceToInstall.iou.ethernet_adapters,i.serial_adapters=this.applianceToInstall.iou.serial_adapters,i.startup_config=this.applianceToInstall.iou.startup_config,i.builtin=this.applianceToInstall.builtin,i.category=this.getCategory(),i.default_name_format=this.applianceToInstall.default_name_format,i.symbol=this.applianceToInstall.symbol,i.compute_id=this.isGns3VmChosen?"vm":"local",i.template_id=(0,Ta.v4)(),i.path=r.filename,i.template_type="iou";var o=this.dialog.open(B2,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});o.componentInstance.server=this.server,o.afterClosed().subscribe(function(a){if(!a)return!1;i.name=a,t.iouService.addTemplate(t.server,i).subscribe(function(s){t.templateService.newTemplateCreated.next(s),t.toasterService.success("Template added"),t.dialogRef.close()})})},n.prototype.createIosTemplate=function(r){var t=this,i=new oL;i.chassis=this.applianceToInstall.dynamips.chassis,i.nvram=this.applianceToInstall.dynamips.nvram,i.platform=this.applianceToInstall.dynamips.platform,i.ram=this.applianceToInstall.dynamips.ram,i.startup_config=this.applianceToInstall.dynamips.startup_config,i.slot0=this.applianceToInstall.dynamips.slot0,i.slot1=this.applianceToInstall.dynamips.slot1,i.slot2=this.applianceToInstall.dynamips.slot2,i.slot3=this.applianceToInstall.dynamips.slot3,i.slot4=this.applianceToInstall.dynamips.slot4,i.slot5=this.applianceToInstall.dynamips.slot5,i.slot6=this.applianceToInstall.dynamips.slot6,i.slot7=this.applianceToInstall.dynamips.slot7,i.builtin=this.applianceToInstall.builtin,i.category=this.getCategory(),i.default_name_format=this.applianceToInstall.default_name_format,i.symbol=this.applianceToInstall.symbol,i.compute_id=this.isGns3VmChosen?"vm":"local",i.template_id=(0,Ta.v4)(),i.image=r.filename,i.template_type="dynamips";var o=this.dialog.open(B2,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});o.componentInstance.server=this.server,o.afterClosed().subscribe(function(a){if(!a)return!1;i.name=a,t.iosService.addTemplate(t.server,i).subscribe(function(s){t.templateService.newTemplateCreated.next(s),t.toasterService.success("Template added"),t.dialogRef.close()})})},n.prototype.createDockerTemplate=function(){var r=this,t=new rL;t.adapters=this.applianceToInstall.docker.adapters,t.console_type=this.applianceToInstall.docker.console_type,t.builtin=this.applianceToInstall.builtin,t.category=this.getCategory(),t.default_name_format=this.applianceToInstall.default_name_format,t.symbol=this.applianceToInstall.symbol,t.compute_id=this.isGns3VmChosen?"vm":"local",t.template_id=(0,Ta.v4)(),t.image=this.applianceToInstall.docker.image,t.template_type="docker";var i=this.dialog.open(B2,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});i.componentInstance.server=this.server,i.afterClosed().subscribe(function(o){if(!o)return!1;t.name=o,r.dockerService.addTemplate(r.server,t).subscribe(function(a){r.templateService.newTemplateCreated.next(a),r.toasterService.success("Template added"),r.dialogRef.close()})})},n.prototype.createQemuTemplateFromVersion=function(r){var t=this;if(this.checkImages(r))if(this.selectedBinary){var i=new lL;i.ram=this.applianceToInstall.qemu.ram,i.adapters=this.applianceToInstall.qemu.adapters,i.adapter_type=this.applianceToInstall.qemu.adapter_type,i.boot_priority=this.applianceToInstall.qemu.boot_priority,i.console_type=this.applianceToInstall.qemu.console_type,i.hda_disk_interface=this.applianceToInstall.qemu.hda_disk_interface,i.hdb_disk_interface=this.applianceToInstall.qemu.hdb_disk_interface,i.hdc_disk_interface=this.applianceToInstall.qemu.hdc_disk_interface,i.hdd_disk_interface=this.applianceToInstall.qemu.hdd_disk_interface,i.builtin=this.applianceToInstall.builtin,i.category=this.getCategory(),i.first_port_name=this.applianceToInstall.first_port_name,i.port_name_format=this.applianceToInstall.port_name_format,i.port_segment_size=this.applianceToInstall.port_segment_size,i.default_name_format=this.applianceToInstall.default_name_format,i.symbol=this.applianceToInstall.symbol,i.qemu_path=this.selectedBinary.path,i.compute_id=this.isGns3VmChosen?"vm":"local",i.template_id=(0,Ta.v4)(),i.hda_disk_image=r.images.hda_disk_image,i.hdb_disk_image=r.images.hdb_disk_image,i.hdc_disk_image=r.images.hdc_disk_image,i.hdd_disk_image=r.images.hdd_disk_image,i.cdrom_image=r.images.cdrom_image,i.template_type="qemu",i.usage=this.applianceToInstall.usage;var o=this.dialog.open(B2,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});o.componentInstance.server=this.server,o.afterClosed().subscribe(function(a){if(!a)return!1;i.name=a,t.qemuService.addTemplate(t.server,i).subscribe(function(s){t.templateService.newTemplateCreated.next(s),t.toasterService.success("Template added"),t.dialogRef.close()})})}else this.toasterService.error("Please select QEMU binary first");else this.toasterService.error("Please install required images first")},n.prototype.computeChecksumMd5=function(r,t){return void 0===t&&(t=!1),new Promise(function(i,o){var a=2097152,s=new Mbe.ArrayBuffer,u=new FileReader,p=0;function m(C){var P=Math.min(r.size,C+a);u.readAsArrayBuffer(r.slice(C,P))}u.onerror=function(){o("MD5 computation failed - error reading the file")},u.onload=function(C){s.append(C.target.result),(p+=a)<r.size?m(p):i(s.end(t))},m(0)})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(hz),e.Y36(e.sBO),e.Y36(Xn),e.Y36(bp),e.Y36(uv),e.Y36(dv),e.Y36(pv),e.Y36(uy),e.Y36(to),e.Y36(uc.X),e.Y36(e.sBO),e.Y36(Xf))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-new-template-dialog"]],viewQuery:function(t,i){if(1&t&&(e.Gf(pz,7),e.Gf(Ybe,7)),2&t){var o=void 0;e.iGM(o=e.CRH())&&(i.paginator=o.first),e.iGM(o=e.CRH())&&(i.stepper=o.first)}},inputs:{server:"server",project:"project"},decls:56,vars:19,consts:[["mat-dialog-title",""],[3,"linear"],["stepper",""],["matStepLabel",""],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"click"],["mat-button","","matStepperNext",""],["mat-button","",3,"click"],[3,"hidden"],[1,"tableHeader"],[1,"filter-field"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange"],["placeholder","Category",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matSort","","multiTemplateDataRows","",1,"mat-table",3,"dataSource","matSortChange"],["table",""],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","emulator"],["matColumnDef","vendor"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["type","file","accept",".gns3appliance, .gns3a","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"create-button",3,"click"],["mat-button","","matStepperPrevious",""],["mat-button","",3,"hidden","click"],[4,"ngIf"],[3,"value"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Install","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Install"],["mat-icon-button","","matTooltip","Show info","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Show info"],["value","1",1,"radio-button",3,"disabled","checked","click"],["value","2",1,"radio-button",3,"disabled","checked","click"],["placeholder","Qemu binary",1,"selection-group",3,"ngModel","ngModelOptions","ngModelChange"],["mat-icon-button","","matTooltip","Refresh list of images","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Refresh list of images"],[4,"ngFor","ngForOf"],[1,"list-item"],["mat-raised-button","","color","primary",1,"button",3,"click"],["class","list-item-inside",4,"ngIf"],[1,"list-item-inside"],["type","file","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["fileBios",""],["mat-raised-button","",1,"button",3,"click"],["matTooltip","Ready to install","matTooltipClass","custom-tooltip"],["matTooltip","Missing","matTooltipClass","custom-tooltip"],["file2",""],["file3",""],["file4",""],["file5",""],["file6",""],["value","1",1,"radio-button",3,"checked","click"]],template:function(t,i){if(1&t){var o=e.EpF();e.TgZ(0,"h1",0),e._uU(1,"Add new template"),e.qZA(),e.TgZ(2,"mat-horizontal-stepper",1,2),e.TgZ(4,"mat-step"),e.YNc(5,Jbe,1,0,"ng-template",3),e.TgZ(6,"mat-radio-group",4),e.TgZ(7,"mat-radio-button",5),e.NdJ("click",function(){return i.setAction("install")}),e._uU(8,"Install new appliance from the GNS server"),e.qZA(),e._UZ(9,"br"),e.TgZ(10,"mat-radio-button",6),e.NdJ("click",function(){return i.setAction("import")}),e._uU(11,"Import an appliance file"),e.qZA(),e.qZA(),e.TgZ(12,"div"),e.TgZ(13,"button",7),e._uU(14,"Next"),e.qZA(),e.TgZ(15,"button",8),e.NdJ("click",function(){return i.onCloseClick()}),e._uU(16,"Cancel"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"mat-step"),e.YNc(18,Qbe,1,1,"ng-template",3),e.TgZ(19,"mat-card",9),e.TgZ(20,"div",10),e.TgZ(21,"mat-form-field",11),e.TgZ(22,"input",12),e.NdJ("ngModelChange",function(s){return i.searchText=s}),e.qZA(),e.qZA(),e.TgZ(23,"mat-select",13),e.NdJ("selectionChange",function(s){return i.filterAppliances(s)})("ngModelChange",function(s){return i.category=s}),e.YNc(24,Kbe,2,2,"mat-option",14),e.qZA(),e.qZA(),e.TgZ(25,"mat-table",15,16),e.NdJ("matSortChange",function(s){return i.sortData(s)}),e.ALo(27,"datasourcefilter"),e.ynx(28,17),e.YNc(29,Xbe,2,0,"mat-header-cell",18),e.YNc(30,$be,2,1,"mat-cell",19),e.BQk(),e.ynx(31,20),e.YNc(32,e0e,2,0,"mat-header-cell",18),e.YNc(33,t0e,2,1,"mat-cell",19),e.BQk(),e.ynx(34,21),e.YNc(35,n0e,2,0,"mat-header-cell",18),e.YNc(36,r0e,2,1,"mat-cell",19),e.BQk(),e.ynx(37,22),e.YNc(38,i0e,2,0,"mat-header-cell",18),e.YNc(39,o0e,7,0,"mat-cell",23),e.BQk(),e.YNc(40,a0e,1,0,"mat-header-row",24),e.YNc(41,s0e,1,0,"mat-row",25),e.qZA(),e._UZ(42,"mat-paginator",26),e.qZA(),e.TgZ(43,"mat-card",9),e.TgZ(44,"input",27,28),e.NdJ("change",function(s){return i.addAppliance(s)}),e.qZA(),e.TgZ(46,"button",29),e.NdJ("click",function(){return e.CHM(o),e.MAs(45).click()}),e._uU(47," Click to import appliance "),e.qZA(),e.qZA(),e.TgZ(48,"div"),e.TgZ(49,"button",30),e._uU(50,"Back"),e.qZA(),e.TgZ(51,"button",31),e.NdJ("click",function(){return i.updateAppliances()}),e._uU(52," Update from online registry "),e.qZA(),e.TgZ(53,"button",8),e.NdJ("click",function(){return i.onCloseClick()}),e._uU(54,"Cancel"),e.qZA(),e.qZA(),e.qZA(),e.YNc(55,N0e,14,6,"mat-step",32),e.qZA()}2&t&&(e.xp6(2),e.Q6J("linear",!1),e.xp6(17),e.Q6J("hidden","install"!==i.action),e.xp6(3),e.Q6J("ngModel",i.searchText),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(17,vz))("ngModel",i.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(1),e.Q6J("dataSource",e.xi3(27,14,i.dataSource,i.searchText)),e.xp6(15),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(1),e.Q6J("pageSizeOptions",e.DdM(18,Z0e)),e.xp6(1),e.Q6J("hidden","install"===i.action),e.xp6(1),e.Q6J("uploader",i.uploader),e.xp6(7),e.Q6J("hidden","install"!==i.action),e.xp6(4),e.Q6J("ngIf",i.applianceToInstall))},directives:[ti,py,dy,h2,hl,ml,An,ide,yi,Hn.KE,lr,re.Fj,re.JJ,re.On,pi.gD,kt.sg,Jl,XS,dl,cl,ul,Ql,Kl,pz,bS,ode,kt.O5,un.ey,pl,fl,Ja,sr,Xl,$l,$Z,Ss],pipes:[Gbe],styles:[".radio-button[_ngcontent-%COMP%]{margin-bottom:30px}.tableHeader[_ngcontent-%COMP%]{width:100%}.filter-field[_ngcontent-%COMP%]{width:100%}.example-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:500px;min-width:300px}.mat-table[_ngcontent-%COMP%]{overflow:auto;max-height:500px}.element-row[_ngcontent-%COMP%]{position:relative}.element-row[_ngcontent-%COMP%]:not(.expanded){cursor:pointer}.element-row[_ngcontent-%COMP%]:not(.expanded):hover{background:#f5f5f5}.element-row.expanded[_ngcontent-%COMP%]{border-bottom-color:transparent}.list-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;margin-bottom:15px}.list-item-inside[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;padding-left:30px;margin-bottom:15px}.button[_ngcontent-%COMP%]{margin-left:10px}.create-button[_ngcontent-%COMP%]{width:100%;margin-top:10px;margin-bottom:10px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.selection-group[_ngcontent-%COMP%]{padding-bottom:20px}"],data:{animation:[(0,on.X$)("detailExpand",[(0,on.SB)("collapsed",(0,on.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,on.SB)("expanded",(0,on.oB)({height:"*",visibility:"visible"})),(0,on.eR)("expanded <=> collapsed",(0,on.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n}();function VL(n,r,t){return((n=n.toLowerCase())<(r=r.toLowerCase())?-1:1)*(t?1:-1)}var L0e=f(56205),F0e='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',bv_xmlns="http://www.w3.org/2000/xmlns/",bv_xlink="http://www.w3.org/1999/xlink",bv_svg="http://www.w3.org/2000/svg",_z="untitled";function U0e(){var n=document.createElementNS(bv_svg,"svg");document.body.appendChild(n),n.style.all="initial";var r=getComputedStyle(n);return document.body.removeChild(n),n=null,r}function V0e(n,r){function t(s){for(var p,m,u=getComputedStyle(s),C="",P=0,L=u.length;P<L;P++)(m=u.getPropertyValue(p=u[P]))!==r.getPropertyValue(p)&&(C+="".concat(p,":").concat(m,";"));s.setAttribute("style",C)}for(var o=(u=void 0,(u=[]).push(s=n),function p(m){if(m&&m.hasChildNodes())for(var C=m.firstChild;C;)1===C.nodeType&&"SCRIPT"!==C.nodeName&&(u.push(C),p(C)),C=C.nextSibling}(s),u),a=o.length;a--;)t(o[a]);var s,u}function q0e(n){var r=document.createElement("style");r.innerHTML=Array.from(document.styleSheets).filter(function(t){return!t.href||t.href.startsWith(document.location.origin)}).map(function(t){return Array.from(t.cssRules).map(function(i){return i.cssText}).join(" ")}).join(" "),n.prepend(r)}function W0e(n,r,t){var i=document.createElement("a");document.body.appendChild(i),i.setAttribute("class","svg-crowbar"),i.setAttribute("download",n),i.setAttribute("href",r),i.style.display="none",i.click(),setTimeout(function(){t&&t(),document.body.removeChild(i)},10)}var K0e=function(r,t,i){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_z,t=URL.createObjectURL(new Blob([n.source],{type:"text/xml"}));W0e("".concat(r,".svg"),t,function(){return URL.revokeObjectURL(t)})}(function(n){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).css,i=void 0===t?"inline":t;if(!(n instanceof SVGElement))throw new Error("SVG element is required");n.setAttribute("version","1.1"),n.removeAttribute("xmlns"),n.removeAttribute("xlink"),n.hasAttributeNS(bv_xmlns,"xmlns")||n.setAttributeNS(bv_xmlns,"xmlns",bv_svg),n.hasAttributeNS(bv_xmlns,"xmlns:xlink")||n.setAttributeNS(bv_xmlns,"xmlns:xlink",bv_xlink),"inline"===i?V0e(n,U0e()):"internal"===i&&q0e(n);var o=(new XMLSerializer).serializeToString(n),a=n.getBoundingClientRect();return{top:a.top,left:a.left,width:a.width,height:a.height,class:n.getAttribute("class"),id:n.getAttribute("id"),name:n.getAttribute("name"),childElementCount:n.childElementCount,source:F0e+o}}(r,i),t||function(n){if(!(n instanceof SVGElement))throw new Error("SVG Element is required");return n.getAttribute("id")||n.getAttribute("class")||document.title.replace(/[^a-z0-9]/gi,"-").toLowerCase()||_z}(r))};function X0e(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Name for screenshot is required"),e.qZA())}function $0e(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Entered name is incorrect"),e.qZA())}var eCe=function(n){return{"is-invalid":n}},tCe=function(){function n(r,t,i,o,a){this.dialogRef=r,this.toasterService=t,this.formBuilder=i,this.electronService=o,this.deviceService=a,this.filetype="svg",this.nameForm=this.formBuilder.group({screenshotName:new re.NI("screenshot-"+Date.now(),[re.kI.required])}),this.isPngAvailable=this.electronService.isWindows||"Windows"===this.deviceService.getDeviceInfo().os}return n.prototype.ngOnInit=function(){},Object.defineProperty(n.prototype,"form",{get:function(){return this.nameForm.controls},enumerable:!1,configurable:!0}),n.prototype.onAddClick=function(){if(!this.nameForm.invalid){var r={name:this.nameForm.get("screenshotName").value,filetype:this.filetype};this.dialogRef.close(r)}},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.onKeyDown=function(r){"Enter"===r.key&&this.onAddClick()},n.prototype.setFiletype=function(r){this.isPngAvailable&&(this.filetype=r)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(Xn),e.Y36(re.qu),e.Y36(cs),e.Y36(uz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-screenshot-dialog"]],decls:17,vars:7,consts:[["mat-dialog-title",""],["aria-label","Sorting",1,"radio-group"],["value","1","checked","",3,"click"],["value","2",3,"disabled","click"],[1,"name-form",3,"formGroup"],[1,"name-form"],["matInput","","type","text","formControlName","screenshotName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Take a screenshot"),e.qZA(),e.TgZ(2,"mat-radio-group",1),e.TgZ(3,"mat-radio-button",2),e.NdJ("click",function(){return i.setFiletype("svg")}),e._uU(4,"SVG"),e.qZA(),e.TgZ(5,"mat-radio-button",3),e.NdJ("click",function(){return i.setFiletype("png")}),e._uU(6,"PNG"),e.qZA(),e.qZA(),e.TgZ(7,"form",4),e.TgZ(8,"mat-form-field",5),e.TgZ(9,"input",6),e.NdJ("keydown",function(a){return i.onKeyDown(a)}),e.qZA(),e.YNc(10,X0e,2,0,"mat-error",7),e.YNc(11,$0e,2,0,"mat-error",7),e.qZA(),e.TgZ(12,"div",8),e.TgZ(13,"button",9),e.NdJ("click",function(){return i.onNoClick()}),e._uU(14,"Cancel"),e.qZA(),e.TgZ(15,"button",10),e.NdJ("click",function(){return i.onAddClick()}),e._uU(16,"Take a screenshot"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(5),e.Q6J("disabled",!i.isPngAvailable),e.xp6(2),e.Q6J("formGroup",i.nameForm),e.xp6(2),e.Q6J("ngClass",e.VKq(5,eCe,null==i.form.acreenshotName?null:i.form.acreenshotName.errors)),e.xp6(1),e.Q6J("ngIf",(null==i.form.screenshotName?null:i.form.screenshotName.touched)&&(null==i.form.screenshotName?null:i.form.screenshotName.errors)&&(null==i.form.screenshotName?null:i.form.screenshotName.errors.required)),e.xp6(1),e.Q6J("ngIf",(null==i.form.screenshotName?null:i.form.screenshotName.touched)&&(null==i.form.screenshotName?null:i.form.screenshotName.errors)&&(null==i.form.acreenshotName?null:i.form.acreenshotName.errors.invalidName)))},directives:[ti,hl,ml,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,kt.mk,kt.O5,$r,An,Hn.TO],styles:[".name-form[_ngcontent-%COMP%]{width:100%}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),n}(),yz=function(){function n(){}return n.prototype.getDrawingElement=function(){var r=new gv;return r.height=100,r.width=100,r.fill="#000000",r.fill_opacity=0,r.font_family="Noto Sans",r.font_size=11,r.font_weight="bold",r},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),bz=function(){function n(){}return n.prototype.getDrawingElement=function(){var r=new Po;return r.fill="#ffffff",r.fill_opacity=1,r.stroke="#000000",r.stroke_width=2,r.cx=100,r.cy=100,r.rx=100,r.ry=100,r.width=200,r.height=200,r},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Cz=function(){function n(){}return n.prototype.getDrawingElement=function(){var r=new pc;return r.fill="#ffffff",r.fill_opacity=1,r.stroke="#000000",r.stroke_width=2,r.width=200,r.height=100,r.rx=0,r.ry=0,r},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),Sz=function(){function n(){}return n.prototype.getDrawingElement=function(){var r=new vv;return r.stroke="#000000",r.stroke_width=2,r.x1=0,r.x2=200,r.y1=0,r.y2=0,r.width=100,r.height=0,r},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),qL=function(){function n(r,t,i,o){this.textElementFactory=r,this.ellipseElementFactory=t,this.rectangleElementFactory=i,this.lineElementFactory=o,this.availableFactories={text:this.textElementFactory,ellipse:this.ellipseElementFactory,rectangle:this.rectangleElementFactory,line:this.lineElementFactory}}return n.prototype.getDrawingMock=function(r){this.factory=this.availableFactories[r];var t=new Cp;return t.element=this.factory.getDrawingElement(),t},n.\u0275fac=function(t){return new(t||n)(e.LFG(yz),e.LFG(bz),e.LFG(Cz),e.LFG(Sz))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),nCe=function(){function n(r,t,i,o,a){this.drawingService=r,this.drawingsDataSource=t,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.drawingSaved=new e.vpe}return n.prototype.ngOnInit=function(){var r=this;this.pointToAddSelected=this.drawingsEventSource.pointToAddSelected.subscribe(function(t){return r.onDrawingSaved(t)})},n.prototype.ngOnChanges=function(r){r.selectedDrawing&&!r.selectedDrawing.isFirstChange()&&(this.selectedDrawing=r.selectedDrawing.currentValue,"text"!==this.selectedDrawing&&this.drawingsEventSource.selected.emit(this.selectedDrawing))},n.prototype.onDrawingSaved=function(r){var t=this,i=this.drawingsFactory.getDrawingMock(this.selectedDrawing),o=this.mapDrawingToSvgConverter.convert(i);this.drawingService.add(this.server,this.project.project_id,r.x,r.y,o).subscribe(function(a){t.drawingsDataSource.add(a),t.drawingSaved.emit(!0)})},n.prototype.ngOnDestroy=function(){this.pointToAddSelected.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(xs),e.Y36(ws),e.Y36(fc),e.Y36(qL),e.Y36(yv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-drawing-added"]],inputs:{server:"server",project:"project",selectedDrawing:"selectedDrawing"},outputs:{drawingSaved:"drawingSaved"},features:[e.TTD],decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),Tz=function(n){return{selected:n}};function rCe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().addDrawing("line")}),e.O4$(),e.TgZ(1,"svg",13),e._UZ(2,"line",14),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("ngClass",e.VKq(1,Tz,i.drawTools.isLineChosen))}}function iCe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){return e.CHM(t),e.oxw().addDrawing("line")}),e.O4$(),e.TgZ(1,"svg",13),e._UZ(2,"line",15),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(2),e.Q6J("ngClass",e.VKq(1,Tz,i.drawTools.isLineChosen))}}var oCe=function(n,r){return{unmarkedLight:n,marked:r}},aCe=function(n){return{unmarkedLight:n}},xz=function(){function n(r,t,i,o,a,s){this.toolsService=r,this.mapSettingsService=t,this.drawingService=i,this.symbolService=o,this.dialog=a,this.themeService=s,this.drawTools={isRectangleChosen:!1,isEllipseChosen:!1,isLineChosen:!1,isTextChosen:!1},this.isLocked=!1,this.isLightThemeEnabled=!1}return n.prototype.ngOnInit=function(){this.isLightThemeEnabled="light"===this.themeService.getActualTheme()},n.prototype.getCssClassForIcon=function(r){return"text"===r?{unmarkedLight:!this.drawTools.isTextChosen&&this.isLightThemeEnabled,marked:this.drawTools.isTextChosen}:"rectangle"===r?{unmarkedLight:!this.drawTools.isRectangleChosen&&this.isLightThemeEnabled,marked:this.drawTools.isRectangleChosen}:{unmarkedLight:!this.drawTools.isEllipseChosen&&this.isLightThemeEnabled,marked:this.drawTools.isEllipseChosen}},n.prototype.takeScreenshot=function(){var r=this;this.dialog.open(tCe,{width:"400px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(i){i&&r.saveImage(i)})},n.prototype.saveImage=function(r){return(0,Jn.mG)(this,void 0,void 0,function(){var t,i,o,a,s,u,p,m;return(0,Jn.Jh)(this,function(L){switch(L.label){case 0:if("png"!==r.filetype)return[3,4];t=document.getElementsByTagName("svg")[0].outerHTML.split("image"),i=1,L.label=1;case 1:return i<t.length?(o=t[i].split('"'),a=o[1].split("/"),[4,this.symbolService.raw(this.server,a[7]).toPromise()]):[3,3];case 2:return s=L.sent(),u=s.split("--\x3e"),t[i]=u[1].substring(2),i+=2,[3,1];case 3:return p=t.join(),(m=document.createElement("div")).innerHTML=p,L0e.saveSvgAsPng(m.firstChild,r.name+".png"),[3,5];case 4:ni("svg").attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg").node(),K0e(ni("svg").node(),""+r.name),L.label=5;case 5:return[2]}})})},n.prototype.addDrawing=function(r){switch(document.documentElement.style.cursor="rectangle"===r&&this.drawTools.isRectangleChosen||"ellipse"===r&&this.drawTools.isEllipseChosen||"line"===r&&this.drawTools.isLineChosen||"text"===r&&this.drawTools.isTextChosen?"default":"crosshair",r){case"rectangle":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!this.drawTools.isRectangleChosen,this.drawTools.isLineChosen=!1;break;case"ellipse":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!this.drawTools.isEllipseChosen,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1;break;case"line":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!this.drawTools.isLineChosen;break;case"text":this.drawTools.isTextChosen=!this.drawTools.isTextChosen,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1,this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)}this.selectedDrawing=this.selectedDrawing===r?"":r},n.prototype.onDrawingSaved=function(){this.resetDrawToolChoice()},n.prototype.resetDrawToolChoice=function(){document.documentElement.style.cursor="default",this.drawTools.isRectangleChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isLineChosen=!1,this.drawTools.isTextChosen=!1,this.selectedDrawing="",this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)},n.prototype.changeLockValue=function(){this.isLocked=!this.isLocked,this.mapSettingsService.changeMapLockValue(this.isLocked)},n.prototype.uploadImageFile=function(r){this.readImageFile(r.target)},n.prototype.readImageFile=function(r){var t=this,i=r.files[0],o=new FileReader,a=new Image;o.onloadend=function(){var u=t.createSvgFileForImage(o.result,a);t.drawingService.add(t.server,t.project.project_id,-a.width/2,-a.height/2,u).subscribe(function(){})},a.onload=function(){o.readAsDataURL(i)},a.src=window.URL.createObjectURL(i)},n.prototype.createSvgFileForImage=function(r,t){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'+t.height+'" \n width="'+t.width+'">\n<image height="'+t.height+'" width="'+t.width+'" xlink:href="'+r+'"/>\n</svg>'},n.prototype.ngOnDestroy=function(){},n.\u0275fac=function(t){return new(t||n)(e.Y36(GS),e.Y36(Ou),e.Y36(xs),e.Y36(NS),e.Y36(to),e.Y36(sc.f))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-project-map-menu"]],inputs:{project:"project",server:"server"},decls:24,vars:15,consts:[["matTooltip","Add a note","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],[3,"ngClass"],["type","file","accept",".svg, .bmp, .jpeg, .jpg, .gif, .png",1,"non-visible",3,"change"],["file",""],["matTooltip","Insert a picture","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw a rectangle","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw an ellipse","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw a line","matTooltipClass","custom-tooltip","mat-icon-button","","class","menu-button",3,"click",4,"ngIf"],["matTooltip","Lock or unlock all items","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Take a screenshot","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],[3,"server","project","selectedDrawing","drawingSaved"],["id","crowbar-workspace"],["matTooltip","Draw a line","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["height","40","width","40"],["x1","30","y1","10","x2","10","y2","30",2,"stroke","white","stroke-width","2",3,"ngClass"],["x1","30","y1","10","x2","10","y2","30",2,"stroke","black","stroke-width","2",3,"ngClass"]],template:function(t,i){if(1&t){var o=e.EpF();e.TgZ(0,"button",0),e.NdJ("click",function(){return i.addDrawing("text")}),e.TgZ(1,"mat-icon",1),e._uU(2,"create"),e.qZA(),e.qZA(),e.TgZ(3,"input",2,3),e.NdJ("change",function(s){return i.uploadImageFile(s)}),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return e.CHM(o),e.MAs(4).click()}),e.TgZ(6,"mat-icon"),e._uU(7,"image"),e.qZA(),e.qZA(),e.TgZ(8,"button",5),e.NdJ("click",function(){return i.addDrawing("rectangle")}),e.TgZ(9,"mat-icon",1),e._uU(10,"crop_3_2"),e.qZA(),e.qZA(),e.TgZ(11,"button",6),e.NdJ("click",function(){return i.addDrawing("ellipse")}),e.TgZ(12,"mat-icon",1),e._uU(13,"panorama_fish_eye"),e.qZA(),e.qZA(),e.YNc(14,rCe,3,3,"button",7),e.YNc(15,iCe,3,3,"button",7),e.TgZ(16,"button",8),e.NdJ("click",function(){return i.changeLockValue()}),e.TgZ(17,"mat-icon",1),e._uU(18,"lock"),e.qZA(),e.qZA(),e.TgZ(19,"button",9),e.NdJ("click",function(){return i.takeScreenshot()}),e.TgZ(20,"mat-icon",1),e._uU(21,"photo_camera"),e.qZA(),e.qZA(),e.TgZ(22,"app-drawing-added",10),e.NdJ("drawingSaved",function(){return i.onDrawingSaved()}),e.qZA(),e._UZ(23,"div",11)}2&t&&(e.xp6(1),e.Q6J("ngClass",i.getCssClassForIcon("text")),e.xp6(8),e.Q6J("ngClass",i.getCssClassForIcon("rectangle")),e.xp6(3),e.Q6J("ngClass",i.getCssClassForIcon("ellipse")),e.xp6(2),e.Q6J("ngIf",!i.isLightThemeEnabled),e.xp6(1),e.Q6J("ngIf",i.isLightThemeEnabled),e.xp6(2),e.Q6J("ngClass",e.WLB(10,oCe,!i.isLocked&&i.isLightThemeEnabled,i.isLocked)),e.xp6(3),e.Q6J("ngClass",e.VKq(13,aCe,!i.isLocked&&i.isLightThemeEnabled)),e.xp6(2),e.Q6J("server",i.server)("project",i.project)("selectedDrawing",i.selectedDrawing))},directives:[An,Ja,sr,kt.mk,kt.O5,nCe],styles:[".non-visible[_ngcontent-%COMP%]{display:none}.unmarked[_ngcontent-%COMP%]{color:#fff!important}.unmarkedLight[_ngcontent-%COMP%]{color:#000!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0}),n}(),jL=function(){function n(r,t,i){this.nodesDataSource=r,this.linksDataSource=t,this.drawingsDataSource=i,this.nodeNotificationEmitter=new e.vpe,this.linkNotificationEmitter=new e.vpe,this.drawingNotificationEmitter=new e.vpe,this.infoNotificationEmitter=new e.vpe,this.warningNotificationEmitter=new e.vpe,this.errorNotificationEmitter=new e.vpe}return n.prototype.handleMessage=function(r){"node.updated"===r.action&&(this.nodesDataSource.update(r.event),this.nodeNotificationEmitter.emit(r)),"node.created"===r.action&&(this.nodesDataSource.add(r.event),this.nodeNotificationEmitter.emit(r)),"node.deleted"===r.action&&(this.nodesDataSource.remove(r.event),this.nodeNotificationEmitter.emit(r)),"link.created"===r.action&&(this.linksDataSource.add(r.event),this.linkNotificationEmitter.emit(r)),"link.updated"===r.action&&(this.linksDataSource.update(r.event),this.linkNotificationEmitter.emit(r)),"link.deleted"===r.action&&(this.linksDataSource.remove(r.event),this.linkNotificationEmitter.emit(r)),"drawing.created"===r.action&&(this.drawingsDataSource.add(r.event),this.drawingNotificationEmitter.emit(r)),"drawing.updated"===r.action&&(this.drawingsDataSource.update(r.event),this.drawingNotificationEmitter.emit(r)),"drawing.deleted"===r.action&&(this.drawingsDataSource.remove(r.event),this.drawingNotificationEmitter.emit(r)),"log.error"===r.action&&this.errorNotificationEmitter.emit(r.event.message),"log.warning"===r.action&&this.warningNotificationEmitter.emit(r.event.message),"log.info"===r.action&&this.infoNotificationEmitter.emit(r.event.message)},n.\u0275fac=function(t){return new(t||n)(e.LFG(wa.G),e.LFG(rh.F),e.LFG(ws))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),sCe=function(){return function(){}}(),lCe=function(){return function(){}}(),$S=function(){function n(r,t,i){this.fontBBoxCalculator=r,this.cssFixer=t,this.fontFixer=i}return n.prototype.convert=function(r){var t=this.cssFixer.fix(r.style),i=this.fontFixer.fixStyles(t),o=this.fontBBoxCalculator.calculate(r.text,i),a=new lCe;return a.rotation=r.rotation,a.style=r.style,a.text=r.text,a.x=r.x,a.y=r.y,null!==a.x&&(a.x-=3),null!==a.y&&(a.y-=o.height),a},n.\u0275fac=function(t){return new(t||n)(e.LFG(BS),e.LFG(nh),e.LFG(cc))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),uCe=function(){return function(){}}(),zL=function(){function n(){}return n.prototype.convert=function(r){var t=new uCe;return t.adapter_number=r.adapterNumber,t.link_type=r.linkType,t.name=r.name,t.port_number=r.portNumber,t.short_name=r.shortName,t},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),V2=function(){function n(r,t){this.mapLabelToLabel=r,this.mapPortToPort=t}return n.prototype.convert=function(r){var t=this,i=new sCe;return i.node_id=r.id,i.command_line=r.commandLine,i.compute_id=r.computeId,i.console=r.console,i.console_host=r.consoleHost,i.console_type=r.consoleType,i.first_port_name=r.firstPortName,i.height=r.height,i.label=r.label?this.mapLabelToLabel.convert(r.label):void 0,i.locked=r.locked,i.name=r.name,i.node_directory=r.nodeDirectory,i.node_type=r.nodeType,i.port_name_format=r.portNameFormat,i.port_segment_size=r.portSegmentSize,i.ports=r.ports?r.ports.map(function(o){return t.mapPortToPort.convert(o)}):[],i.project_id=r.projectId,i.status=r.status,i.symbol=r.symbol,i.symbol_url=r.symbolUrl,i.usage=r.usage,i.width=r.width,i.x=r.x,i.y=r.y,i.z=r.z,i},n.\u0275fac=function(t){return new(t||n)(e.LFG($S),e.LFG(zL))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),cCe=function(){return function(){}}(),wz=function(){function n(){}return n.prototype.convert=function(r){var t=new cCe;return t.drawing_id=r.id,t.project_id=r.projectId,t.rotation=r.rotation,t.svg=r.svg,t.locked=r.locked,t.x=r.x,t.y=r.y,t.z=r.z,t.element=r.element,t},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),dCe=function(){return function(){}}(),pCe=function(){return function(){}}(),WL=function(){function n(r){this.mapLabelToLabel=r}return n.prototype.convert=function(r){var t=new pCe;return t.node_id=r.nodeId,t.adapter_number=r.adapterNumber,t.port_number=r.portNumber,t.label=this.mapLabelToLabel.convert(r.label),t},n.\u0275fac=function(t){return new(t||n)(e.LFG($S))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Ez=function(){function n(r){this.mapLinkNodeToMapLinkNode=r}return n.prototype.convert=function(r){var t=this,i=new dCe;return i.link_id=r.id,i.capture_file_name=r.captureFileName,i.capture_file_path=r.captureFilePath,i.capturing=r.capturing,i.filters=r.filters,i.link_type=r.linkType,i.nodes=r.nodes.map(function(o){return t.mapLinkNodeToMapLinkNode.convert(o)}),i.project_id=r.projectId,i.suspend=r.suspend,i},n.\u0275fac=function(t){return new(t||n)(e.LFG(WL))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),q2=f(2094),kz=function(){function n(r){this.fontBBCalculator=r,this.MARGIN_BETWEEN_NODE_AND_LABEL=8}return n.prototype.fix=function(r){r.label.style="font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;";var t=this.fontBBCalculator.calculate(r.label.text,r.label.style);return r.label.x=r.width/2-t.width/2,r.label.y=-t.height-this.MARGIN_BETWEEN_NODE_AND_LABEL,r},n.\u0275fac=function(t){return new(t||n)(e.LFG(BS))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Mz=function(){function n(){}return n.prototype.notificationsPath=function(r){var t="ws";return"https:"===r.protocol&&(t="wss"),t+"://"+r.host+":"+r.port+"/v2/notifications/ws"},n.prototype.projectNotificationsPath=function(r,t){var i="ws";return"https:"===r.protocol&&(i="wss"),i+"://"+r.host+":"+r.port+"/v2/projects/"+t+"/notifications/ws"},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),fCe=function(){function n(r,t,i,o,a,s,u,p){this.nodeService=r,this.nodeConsoleService=t,this.nodesDataSource=i,this.toasterService=o,this.serverService=a,this.settingsService=s,this.mapSettingsService=u,this.electronService=p}return n.prototype.startConsoleForAllNodes=function(){return(0,Jn.mG)(this,void 0,void 0,function(){var r,t,i,o,a,s;return(0,Jn.Jh)(this,function(u){switch(u.label){case 0:if(!this.electronService.isElectronApp)return[3,5];r=this.settingsService.getConsoleSettings()?this.settingsService.getConsoleSettings():this.nodeService.getDefaultCommand(),t=this.nodesDataSource.getItems(),i=0,o=t,u.label=1;case 1:return i<o.length?(s={command:r,type:(a=o[i]).console_type,host:a.console_host,port:a.console,name:a.name,project_id:a.project_id,node_id:a.node_id,server_url:this.serverService.getServerUrl(this.server)},[4,this.electronService.remote.require("./console-executor.js").openConsole(s)]):[3,4];case 2:u.sent(),u.label=3;case 3:return i++,[3,1];case 4:return[3,6];case 5:this.mapSettingsService.openConsolesInWidget?this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodesDataSource.getItems()):this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodesDataSource.getItems()),u.label=6;case 6:return[2]}})})},n.prototype.startNodes=function(){var r=this;this.nodeService.startAll(this.server,this.project).subscribe(function(){r.toasterService.success("All nodes successfully started")})},n.prototype.stopNodes=function(){var r=this;this.nodeService.stopAll(this.server,this.project).subscribe(function(){r.toasterService.success("All nodes successfully stopped")})},n.prototype.suspendNodes=function(){var r=this;this.nodeService.suspendAll(this.server,this.project).subscribe(function(){r.toasterService.success("All nodes successfully suspended")})},n.prototype.reloadNodes=function(){var r=this;this.nodeService.reloadAll(this.server,this.project).subscribe(function(){r.toasterService.success("All nodes successfully reloaded")})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Wr),e.Y36(cd),e.Y36(wa.G),e.Y36(Xn),e.Y36(Br),e.Y36(Tp.g),e.Y36(Ou),e.Y36(cs))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-nodes-menu"]],inputs:{project:"project",server:"server"},decls:16,vars:0,consts:[[1,"menu-button-group"],["matTooltip","Console connect to all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Start/Resume all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Suspend all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Stop all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Reload all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"button",1),e.NdJ("click",function(){return i.startConsoleForAllNodes()}),e.TgZ(2,"mat-icon"),e._uU(3,"web_asset"),e.qZA(),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return i.startNodes()}),e.TgZ(5,"mat-icon"),e._uU(6,"play_arrow"),e.qZA(),e.qZA(),e.TgZ(7,"button",3),e.NdJ("click",function(){return i.suspendNodes()}),e.TgZ(8,"mat-icon"),e._uU(9,"pause"),e.qZA(),e.qZA(),e.TgZ(10,"button",4),e.NdJ("click",function(){return i.stopNodes()}),e.TgZ(11,"mat-icon"),e._uU(12,"stop"),e.qZA(),e.qZA(),e.TgZ(13,"button",5),e.NdJ("click",function(){return i.reloadNodes()}),e.TgZ(14,"mat-icon"),e._uU(15,"replay"),e.qZA(),e.qZA(),e.qZA())},directives:[An,Ja,sr],styles:[".menu-button[_ngcontent-%COMP%]{margin:0 5px!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0}),n}(),hCe=function(){function n(r,t,i,o,a){this.toasterService=r,this.dockerService=t,this.qemuService=i,this.iouService=o,this.iosService=a}return n.prototype.ngOnInit=function(){var r=this;this.uploader=new tv({}),this.uploader.onAfterAddingFile=function(t){t.withCredentials=!1},this.uploader.onErrorItem=function(t,i,o,a){r.toasterService.error("An error has occured")},this.uploader.onCompleteItem=function(t,i,o,a){"qemu"===r.template.template_type?r.qemuService.addTemplate(r.server,r.template).subscribe(function(){return r.onUploadComplete()}):"iou"===r.template.template_type?r.iouService.addTemplate(r.server,r.template).subscribe(function(){return r.onUploadComplete()}):"dynamips"===r.template.template_type?r.iosService.addTemplate(r.server,r.template).subscribe(function(){return r.onUploadComplete()}):"docker"===r.template.template_type&&r.dockerService.addTemplate(r.server,r.template).subscribe(function(){return r.onUploadComplete()})}},n.prototype.onUploadComplete=function(){this.toasterService.success("Appliance imported successfully"),this.uploader.queue=[]},n.prototype.uploadAppliance=function(r){var s,t=this,i=r.target.files[0],o=i.name,a=new FileReader;a.onloadend=function(){var u=JSON.parse(a.result);if(u.qemu)(s=new lL).template_type="qemu",s.adapter_type=u.qemu.adapter_type,s.adapters=u.qemu.adapters,s.ram=u.qemu.ram,s.options=u.qemu.options,s.console_type=u.qemu.console_type;else if(u.iou)(s=new aL).template_type="iou",s.console_type=u.iou.console_type,s.console_auto_start=u.iou.console_auto_start,s.ethernet_adapters=u.iou.ethernet_adapters,s.l1_keepalives=u.iou.l1_keepalives,s.use_default_iou_values=u.iou.use_default_iou_values,s.nvram=u.iou.nvram,s.ram=u.iou.ram,s.serial_adapters=u.iou.serial_adapters;else if(u.dynamips)(s=new oL).template_type="dynamips",s.platform=u.dynamips.platform,s.ram=u.dynamips.ram,s.nvram=u.dynamips.nvram,s.startup_config=u.dynamips.startup_config,s.wic0=u.dynamips.wic0,s.wic1=u.dynamips.wic1,s.wic2=u.dynamips.wic2,s.slot0=u.dynamips.slot0,s.slot1=u.dynamips.slot1,s.slot2=u.dynamips.slot2,s.slot3=u.dynamips.slot3,s.slot4=u.dynamips.slot4,s.slot5=u.dynamips.slot5,s.slot6=u.dynamips.slot6,s.slot7=u.dynamips.slot7;else{if(!u.docker)return void t.toasterService.error("Template type not supported");(s=new rL).template_type="docker",s.adapters=u.docker.adapters,s.console_type=u.docker.console_type,s.image=u.docker.image}s.name=u.name,s.category=u.category,s.builtin=!1,s.default_name_format="{name}-{0}",s.compute_id="vm",s.symbol="guest"===s.category?":/symbols/computer.svg":":/symbols/"+s.category+"_guest.svg",t.template=s;var m=t.getUploadPath(t.server,s.template_type,o);t.uploader.queue.forEach(function(P){return P.url=m}),t.uploader.uploadItem(t.uploader.queue[0])},a.readAsText(i)},n.prototype.getUploadPath=function(r,t,i){return r.protocol+"//"+r.host+":"+r.port+"/v2/"+t+"/images/"+i},n.\u0275fac=function(t){return new(t||n)(e.Y36(Xn),e.Y36(uv),e.Y36(bp),e.Y36(pv),e.Y36(dv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-import-appliance"]],inputs:{project:"project",server:"server"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),mCe=function(){function n(r,t,i){this.drawingService=r,this.drawingsDataSource=t,this.drawingsEventSource=i}return n.prototype.ngOnInit=function(){var r=this;this.drawingDragged=this.drawingsEventSource.dragged.subscribe(function(t){return r.onDrawingDragged(t)})},n.prototype.onDrawingDragged=function(r){var t=this,i=this.drawingsDataSource.get(r.datum.id);i.x+=r.dx,i.y+=r.dy,this.drawingService.updatePosition(this.server,this.project,i,i.x,i.y).subscribe(function(o){t.drawingsDataSource.update(o)})},n.prototype.ngOnDestroy=function(){this.drawingDragged.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(xs),e.Y36(ws),e.Y36(fc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-drawing-dragged"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),vCe=function(){function n(r,t,i,o){this.drawingService=r,this.drawingsDataSource=t,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return n.prototype.ngOnInit=function(){var r=this;this.drawingResized=this.drawingsEventSource.resized.subscribe(function(t){return r.onDrawingResized(t)})},n.prototype.onDrawingResized=function(r){var t=this,i=this.drawingsDataSource.get(r.datum.id),o=this.mapDrawingToSvgConverter.convert(r.datum);this.drawingService.updateSizeAndPosition(this.server,i,r.x,r.y,o).subscribe(function(a){t.drawingsDataSource.update(a)})},n.prototype.ngOnDestroy=function(){this.drawingResized.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(xs),e.Y36(ws),e.Y36(fc),e.Y36(yv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-drawing-resized"]],inputs:{server:"server"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),gCe=function(){function n(r,t,i){this.linkService=r,this.linksDataSource=t,this.linksEventSource=i}return n.prototype.ngOnInit=function(){var r=this;this.interfaceDragged=this.linksEventSource.interfaceDragged.subscribe(function(t){return r.onInterfaceLabelDragged(t)})},n.prototype.onInterfaceLabelDragged=function(r){var t=this,i=this.linksDataSource.get(r.datum.linkId);i.nodes[0].node_id===r.datum.nodeId&&(i.nodes[0].label.x+=r.dx,i.nodes[0].label.y+=r.dy),i.nodes[1].node_id===r.datum.nodeId&&(i.nodes[1].label.x+=r.dx,i.nodes[1].label.y+=r.dy),this.linkService.updateNodes(this.server,i,i.nodes).subscribe(function(o){t.linksDataSource.update(o)})},n.prototype.ngOnDestroy=function(){this.interfaceDragged.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(hc),e.Y36(rh.F),e.Y36(YS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-interface-label-dragged"]],inputs:{server:"server"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),_Ce=function(){function n(r,t,i,o,a,s){this.projectService=r,this.linkService=t,this.linksDataSource=i,this.linksEventSource=o,this.mapNodeToNode=a,this.mapPortToPort=s}return n.prototype.ngOnInit=function(){var r=this;this.linkCreated=this.linksEventSource.created.subscribe(function(t){return r.onLinkCreated(t)})},n.prototype.onLinkCreated=function(r){var t=this,i=Math.abs(r.sourceNode.x-r.targetNode.x),o=Math.abs(r.sourceNode.y-r.targetNode.y),a=Math.sqrt(Math.pow(i,2)+Math.pow(o,2)),s=o/a,u=45/a*i,p=45/a*o,m=0,C=0,P=0,L=0;r.sourceNode.x<=r.targetNode.x&&r.sourceNode.y<=r.targetNode.y?(m=Math.floor(r.sourceNode.width/2)+Math.round(u)+5,C=Math.floor(r.sourceNode.height/2)+Math.round(p)+5,P=Math.floor(r.targetNode.width/2)-Math.round(u)-5-Math.round(20*s),L=Math.floor(r.targetNode.height/2)-Math.round(p)+5-Math.round(20*s)):r.sourceNode.x>r.targetNode.x&&r.sourceNode.y<r.targetNode.y?(m=Math.floor(r.sourceNode.width/2)-Math.round(u)-5-Math.round(20*s),C=Math.floor(r.sourceNode.height/2)+Math.round(p)+5-Math.round(20*s),P=Math.floor(r.targetNode.width/2)+Math.round(u)+5,L=Math.floor(r.targetNode.height/2)-Math.round(p)-5):r.sourceNode.x<r.targetNode.x&&r.sourceNode.y>r.targetNode.y?(m=Math.floor(r.sourceNode.width/2)+Math.round(u)+5-Math.round(20*s),C=Math.floor(r.sourceNode.height/2)-Math.round(p)-5-Math.round(20*s),P=Math.floor(r.targetNode.width/2)-Math.round(u)-5,L=Math.floor(r.targetNode.height/2)+Math.round(p)+5):r.sourceNode.x>=r.targetNode.x&&r.sourceNode.y>=r.targetNode.y&&(m=Math.floor(r.sourceNode.width/2)-Math.round(u)-5-Math.round(20*s),C=Math.floor(r.sourceNode.height/2)-Math.round(p)+5-Math.round(20*s),P=Math.floor(r.targetNode.width/2)+Math.round(u)+5,L=Math.floor(r.targetNode.height/2)+Math.round(p)+5);var G=this.mapNodeToNode.convert(r.sourceNode),Y=this.mapPortToPort.convert(r.sourcePort),te=this.mapNodeToNode.convert(r.targetNode),de=this.mapPortToPort.convert(r.targetPort);this.linkService.createLink(this.server,G,Y,te,de,m,C,P,L).subscribe(function(){t.projectService.links(t.server,t.project.project_id).subscribe(function(Me){t.linksDataSource.set(Me)})})},n.prototype.ngOnDestroy=function(){this.linkCreated.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(ud.Y),e.Y36(hc),e.Y36(rh.F),e.Y36(YS),e.Y36(V2),e.Y36(zL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-link-created"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),yCe=function(){function n(r,t,i){this.nodesDataSource=r,this.nodeService=t,this.nodesEventSource=i}return n.prototype.ngOnInit=function(){var r=this;this.nodeDragged=this.nodesEventSource.dragged.subscribe(function(t){return r.onNodeDragged(t)})},n.prototype.onNodeDragged=function(r){var t=this,i=this.nodesDataSource.get(r.datum.id);i.x+=r.dx,i.y+=r.dy,this.nodeService.updatePosition(this.server,this.project,i,i.x,i.y).subscribe(function(o){t.nodesDataSource.update(o)})},n.prototype.ngOnDestroy=function(){this.nodeDragged.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(wa.G),e.Y36(Wr),e.Y36(mv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-node-dragged"]],inputs:{server:"server",project:"project"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),bCe=function(){function n(r,t,i,o){this.nodesDataSource=r,this.nodeService=t,this.nodesEventSource=i,this.mapLabelToLabel=o}return n.prototype.ngOnInit=function(){var r=this;this.nodeLabelDragged=this.nodesEventSource.labelDragged.subscribe(function(t){return r.onNodeLabelDragged(t)})},n.prototype.onNodeLabelDragged=function(r){var t=this,i=this.nodesDataSource.get(r.datum.nodeId),o=r.datum;o.x+=r.dx,o.y+=r.dy;var a=this.mapLabelToLabel.convert(o);i.label=a,this.nodeService.updateLabel(this.server,i,i.label).subscribe(function(s){t.nodesDataSource.update(s)})},n.prototype.ngOnDestroy=function(){this.nodeLabelDragged.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(wa.G),e.Y36(Wr),e.Y36(mv),e.Y36($S))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-node-label-dragged"]],inputs:{server:"server"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),CCe=function(){function n(r,t,i,o,a,s){this.drawingService=r,this.drawingsDataSource=t,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.context=s,this.drawingSaved=new e.vpe}return n.prototype.ngOnInit=function(){var r=this;this.textAdded=this.drawingsEventSource.textAdded.subscribe(function(t){return r.onTextAdded(t)})},n.prototype.onTextAdded=function(r){var t=this,i=this.drawingsFactory.getDrawingMock("text");i.element.text=r.savedText;var o=this.mapDrawingToSvgConverter.convert(i);this.drawingService.add(this.server,this.project.project_id,(r.x-(this.context.getZeroZeroTransformationPoint().x+this.context.transformation.x))/this.context.transformation.k,(r.y-(this.context.getZeroZeroTransformationPoint().y+this.context.transformation.y))/this.context.transformation.k,o).subscribe(function(a){t.drawingsDataSource.add(a),t.drawingSaved.emit(!0)})},n.prototype.ngOnDestroy=function(){this.textAdded.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(xs),e.Y36(ws),e.Y36(fc),e.Y36(qL),e.Y36(yv),e.Y36(eu))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-text-added"]],inputs:{server:"server",project:"project"},outputs:{drawingSaved:"drawingSaved"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),SCe=function(){function n(r,t,i,o){this.drawingService=r,this.drawingsDataSource=t,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return n.prototype.ngOnInit=function(){var r=this;this.textEdited=this.drawingsEventSource.textEdited.subscribe(function(t){return r.onTextEdited(t)})},n.prototype.onTextEdited=function(r){var t=this,i=new Cp;i.element=r.textElement,i.element.text=r.editedText;var o=this.mapDrawingToSvgConverter.convert(i),a=this.drawingsDataSource.get(r.textDrawingId);this.drawingService.updateText(this.server,a,o).subscribe(function(s){t.drawingsDataSource.update(s),t.drawingsEventSource.textSaved.emit(!0)})},n.prototype.ngOnDestroy=function(){this.textEdited.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(xs),e.Y36(ws),e.Y36(fc),e.Y36(yv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-text-edited"]],inputs:{server:"server"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),TCe=["app-selection",""];function xCe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"path",2)),2&n){var t=e.oxw();e.uIk("d",t.d)}}var wCe=function(){function n(r){this.ref=r,this.started=!1,this.visible=!1,this.rectangleSelected=new e.vpe}return n.prototype.ngOnInit=function(){},n.prototype.ngAfterViewInit=function(){var r=this,t=aa.y.fromEvent(this.svg,"mousedown").do(function(p){return p.preventDefault()});t.subscribe(function(p){p.target===r.svg&&(r.started=!0,r.startX=p.clientX+window.scrollX,r.startY=p.clientY+window.scrollY,r.width=0,r.height=0,r.visible=!0,r.ref.detectChanges())});var i=aa.y.fromEvent(document,"mouseup").do(function(p){p.preventDefault()}),o=aa.y.fromEvent(document,"mousemove").do(function(p){return p.stopPropagation()}),a=aa.y.fromEvent(document,"scroll").startWith({}),s=aa.y.combineLatest(o,a),u=t.mergeMap(function(p){return s.map(function(m){return m[0]}).do(function(m){!r.started||(r.visible=!0,r.width=m.clientX-r.startX+window.scrollX,r.height=m.clientY-r.startY+window.scrollY,r.ref.detectChanges(),r.selectedEvent([r.startX,r.startY],[r.width,r.height]))}).skipUntil(i.take(1).do(function(m){!r.started||(r.visible=!1,r.started=!1,r.width=m.clientX-r.startX+window.scrollX,r.height=m.clientY-r.startY+window.scrollY,r.ref.detectChanges(),r.selectedEvent([r.startX,r.startY],[r.width,r.height]))})).take(1)});this.draggable=u.subscribe(function(p){})},n.prototype.ngOnDestroy=function(){this.draggable.unsubscribe()},Object.defineProperty(n.prototype,"d",{get:function(){return this.rect(this.startX,this.startY,this.width,this.height)},enumerable:!1,configurable:!0}),n.prototype.rect=function(r,t,i,o){return"M"+[r,t]+" l"+[i,0]+" l"+[0,o]+" l"+[-i,0]+"z"},n.prototype.selectedEvent=function(r,t){var i=Math.min(r[0],t[0]),o=Math.min(r[1],t[1]),a=Math.abs(r[0]-t[0]),s=Math.abs(r[1]-t[1]);this.rectangleSelected.emit(new Nj(i,o,a,s))},n.\u0275fac=function(t){return new(t||n)(e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-selection",""]],inputs:{svg:["app-selection","svg"]},outputs:{rectangleSelected:"selected"},attrs:TCe,decls:2,vars:1,consts:[[1,"selection-line-tool"],["class","selection",4,"ngIf"],[1,"selection"]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"g",0),e.YNc(1,xCe,1,1,"path",1),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",i.visible))},directives:[kt.O5],styles:[""]}),n}(),ECe=function(){function n(){}return n.prototype.d=function(r){var t=[[r.source.x+r.source.width/2,r.source.y+r.source.height/2],[r.target.x+r.target.width/2,r.target.y+r.target.height/2]],i=tc();return i.moveTo(t[0][0],t[0][1]),i.lineTo(t[1][0],t[1][1]),i.toString()},n}(),kCe=function(){function n(){}return n.prototype.linkToPoints=function(r){var t={x:r.source.x+r.source.width/2,y:r.source.y+r.source.height/2},i={x:r.target.x+r.target.width/2,y:r.target.y+r.target.height/2},o=i.x-t.x,a=i.y-t.y,s=Math.atan2(a,o),u=-Math.PI/4,p=[Math.cos(s+u),Math.sin(s+u)];return[[t.x,t.y],[t.x+o/2+15*p[0],t.y+a/2+15*p[1]],[i.x-o/2-15*p[0],i.y-a/2-15*p[1]],[i.x,i.y]]},n.prototype.d=function(r){var t=this.linkToPoints(r),i=tc();return i.moveTo(t[0][0],t[0][1]),i.lineTo(t[1][0],t[1][1]),i.lineTo(t[2][0],t[2][1]),i.lineTo(t[3][0],t[3][1]),i.toString()},n}(),MCe=["app-status",""];function ACe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"circle",3)),2&n){var t=e.oxw(2);e.uIk("cx",t.point.x)("cy",t.point.y)}}function DCe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"rect",4)),2&n){var t=e.oxw(2);e.uIk("x",t.point.x-5)("y",t.point.y-5)}}function OCe(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,ACe,1,2,"circle",1),e.YNc(2,DCe,1,2,"rect",2),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Q6J("ngIf","started"==t.status),e.xp6(1),e.Q6J("ngIf","stopped"==t.status)}}var PCe=function(){function n(r,t){this.element=r,this.ref=t,this.data={status:"",path:null,direction:null,d:null}}return Object.defineProperty(n.prototype,"status",{get:function(){return this.data.status},set:function(r){this.data.status=r,this.ref.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return this.data.path},set:function(r){this.data.path=r,this.ref.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"direction",{get:function(){return this.data.direction},set:function(r){this.data.direction=r,this.ref.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"d",{set:function(r){this.data.d!==r&&(this.data.d=r,this.ref.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sourceStatusPoint",{get:function(){return this.path?this.path.nativeElement.getPointAtLength(45):null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"targetStatusPoint",{get:function(){return this.path?this.path.nativeElement.getPointAtLength(this.path.nativeElement.getTotalLength()-45):null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"point",{get:function(){return"source"===this.direction?this.sourceStatusPoint:this.targetStatusPoint},enumerable:!1,configurable:!0}),n.STOPPED_STATUS_RECT_WIDTH=10,n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-status",""]],inputs:{status:["app-status","status"],path:"path",direction:"direction",d:"d"},attrs:MCe,decls:1,vars:1,consts:[[4,"ngIf"],["class","status_started","r","6","fill","#2ecc71",4,"ngIf"],["class","status_stopped","width","10","height","10","r","6","fill","red",4,"ngIf"],["r","6","fill","#2ecc71",1,"status_started"],["width","10","height","10","r","6","fill","red",1,"status_stopped"]],template:function(t,i){1&t&&e.YNc(0,OCe,3,2,"g",0),2&t&&e.Q6J("ngIf",i.status&&i.point&&i.direction)},directives:[kt.O5],styles:[""]}),n}(),ICe=["textSvg"],RCe=["app-interface-label",""],NCe=function(){function n(r,t,i,o){this.elementRef=r,this.ref=t,this.sanitizer=i,this.cssFixer=o,this.label={x:0,y:0,text:"",style:"",rotation:0},this.borderSize=5,this.textWidth=0,this.textHeight=0}return n.prototype.ngOnInit=function(){},Object.defineProperty(n.prototype,"x",{set:function(r){this.label.x=r,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"y",{set:function(r){this.label.y=r,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return this.label.text},set:function(r){this.label.text=r,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"style",{set:function(r){this.label.style=this.cssFixer.fix(r),this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rotation",{set:function(r){this.label.rotation=r,this.ref.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sanitizedStyle",{get:function(){return this.sanitizer.bypassSecurityTrustStyle(this.label.style)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rectX",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rectY",{get:function(){return-this.textRef.nativeElement.getBBox().height-this.borderSize},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rectWidth",{get:function(){return this.textRef.nativeElement.getBBox().width+2*this.borderSize},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rectHeight",{get:function(){return this.textRef.nativeElement.getBBox().height+this.borderSize},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"transform",{get:function(){var r=this.elementRef.nativeElement.getBBox(),t=this.label.x,i=this.label.y+r.height;return"translate("+t+", "+i+") rotate("+this.label.rotation+", "+t+", "+i+")"},enumerable:!1,configurable:!0}),n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(U.H7),e.Y36(nh))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-interface-label",""]],viewQuery:function(t,i){var o;(1&t&&e.Gf(ICe,5),2&t)&&(e.iGM(o=e.CRH())&&(i.textRef=o.first))},inputs:{ignore:["app-interface-label","ignore"],x:"x",y:"y",text:"text",style:"style",rotation:"rotation"},attrs:RCe,decls:5,vars:9,consts:[["width","100","height","100",1,"text_container"],["stroke-dasharray","3,3","stroke-width","0.5","fill","none","stroke","black"],[1,"interface_label"],["textSvg",""]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"g",0),e._UZ(1,"rect",1),e.TgZ(2,"text",2,3),e._uU(4),e.qZA(),e.qZA()),2&t&&(e.uIk("transform",i.transform),e.xp6(1),e.uIk("x",i.rectX)("y",i.rectY)("width",i.rectWidth)("height",i.rectHeight),e.xp6(1),e.uIk("style",i.sanitizedStyle,e.Ckj)("x",i.borderSize)("y",-i.borderSize),e.xp6(2),e.hij(" ",i.text," "))},styles:[""]}),n}(),ZCe=["path"],LCe=["app-link",""];function FCe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"path",5,6)),2&n){var t=e.oxw();e.uIk("d",t.d)}}function BCe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"path",7,6)),2&n){var t=e.oxw();e.uIk("d",t.d)}}function UCe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",8)),2&n){var t=e.oxw();e.Akn(t.link.nodes[0].label.style),e.Q6J("x",t.link.source.x+t.link.nodes[0].label.x)("y",t.link.source.y+t.link.nodes[0].label.y)("text",t.link.nodes[0].label.text)("rotation",t.link.nodes[0].label.rotation)}}function HCe(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",8)),2&n){var t=e.oxw();e.Akn(t.link.nodes[1].label.style),e.Q6J("x",t.link.target.x+t.link.nodes[1].label.x)("y",t.link.target.y+t.link.nodes[1].label.y)("text",t.link.nodes[1].label.text)("rotation",t.link.nodes[1].label.rotation)}}var VCe=function(){function n(r,t){this.multiLinkCalculatorHelper=r,this.ref=t,this.ethernetLinkStrategy=new ECe,this.serialLinkStrategy=new kCe}return n.prototype.ngOnInit=function(){this.ref.detectChanges()},n.prototype.ngOnDestroy=function(){},Object.defineProperty(n.prototype,"strategy",{get:function(){return"serial"===this.link.linkType?this.serialLinkStrategy:this.ethernetLinkStrategy},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"transform",{get:function(){var r=this.multiLinkCalculatorHelper.linkTranslation(this.link.distance,this.link.source,this.link.target);return"translate ("+r.dx+", "+r.dy+")"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"d",{get:function(){return this.strategy.d(this.link)},enumerable:!1,configurable:!0}),n.\u0275fac=function(t){return new(t||n)(e.Y36(VS),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-link",""]],viewQuery:function(t,i){var o;(1&t&&e.Gf(ZCe,5),2&t)&&(e.iGM(o=e.CRH())&&(i.path=o.first))},inputs:{link:["app-link","link"],nodeChanged:["node-changed","nodeChanged"],showInterfaceLabels:["show-interface-labels","showInterfaceLabels"]},attrs:LCe,decls:7,vars:16,consts:[[1,"link"],["class","ethernet_link","stroke","#000","stroke-width","2",4,"ngIf"],["class","serial_link","stroke","#B22222","fill","none","stroke-width","2",4,"ngIf"],[3,"app-status","direction","path","d"],[3,"app-interface-label","x","y","text","style","rotation",4,"ngIf"],["stroke","#000","stroke-width","2",1,"ethernet_link"],["path",""],["stroke","#B22222","fill","none","stroke-width","2",1,"serial_link"],[3,"app-interface-label","x","y","text","rotation"]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"g",0),e.YNc(1,FCe,2,1,"path",1),e.YNc(2,BCe,2,1,"path",2),e._UZ(3,"g",3),e._UZ(4,"g",3),e.YNc(5,UCe,1,6,"g",4),e.YNc(6,HCe,1,6,"g",4),e.qZA()),2&t&&(e.uIk("link_id",i.link.id)("map-source",i.link.source.id)("map-target",i.link.target.id)("transform",i.transform),e.xp6(1),e.Q6J("ngIf","ethernet"==i.link.linkType),e.xp6(1),e.Q6J("ngIf","serial"==i.link.linkType),e.xp6(1),e.Q6J("app-status",i.link.source.status)("direction","source")("path",i.path)("d",i.d),e.xp6(1),e.Q6J("app-status",i.link.target.status)("direction","target")("path",i.path)("d",i.d),e.xp6(1),e.Q6J("ngIf",i.showInterfaceLabels),e.xp6(1),e.Q6J("ngIf",i.showInterfaceLabels))},directives:[kt.O5,PCe,NCe],styles:[""]}),n}(),qCe=["app-draggable",""],jCe=["*"],Az=function(){return function(r,t,i,o){this.x=r,this.y=t,this.dx=i,this.dy=o}}(),Dz=function(){function n(r){this.elementRef=r,this.dragging=new e.vpe,this.dragged=new e.vpe}return n.prototype.ngOnInit=function(){},n.prototype.ngAfterViewInit=function(){var r=this,t=aa.y.fromEvent(this.elementRef.nativeElement,"mousedown").do(function(p){return p.preventDefault()});t.subscribe(function(p){r.posX=r.item.x,r.posY=r.item.y,r.startX=p.clientX,r.startY=p.clientY});var i=aa.y.fromEvent(document,"mouseup").do(function(p){p.preventDefault()}),o=aa.y.fromEvent(document,"mousemove").do(function(p){return p.stopPropagation()}),a=aa.y.fromEvent(document,"scroll").startWith({}),s=aa.y.combineLatest(o,a),u=t.mergeMap(function(p){return s.map(function(m){return m[0]}).do(function(m){var C=r.startX-m.clientX,P=r.startY-m.clientY;r.item.x=Math.round(r.posX-C),r.item.y=Math.round(r.posY-P),r.dragging.emit(new Az(r.item.x,r.item.y,-C,-P))}).skipUntil(i.take(1).do(function(m){var C=r.startX-m.clientX,P=r.startY-m.clientY;r.item.x=Math.round(r.posX-C),r.item.y=Math.round(r.posY-P),r.dragged.emit(new Az(r.item.x,r.item.y,-C,-P))})).take(1)});this.draggable=u.subscribe(function(p){})},n.prototype.ngOnDestroy=function(){this.draggable.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-draggable",""]],inputs:{item:["app-draggable","item"]},outputs:{dragging:"dragging",dragged:"dragged"},attrs:qCe,ngContentSelectors:jCe,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[""]}),n}(),zCe=["label"],WCe=["image"],GCe=["app-node",""],YCe=function(){function n(r,t,i,o,a,s){this.cssFixer=r,this.fontFixer=t,this.sanitizer=i,this.element=o,this.cd=a,this.nodesEventSource=s,this.labelHeight=0}return n.prototype.ngOnInit=function(){},n.prototype.ngOnDestroy=function(){},n.prototype.ngOnChanges=function(r){this.cd.detectChanges()},n.prototype.ngAfterViewInit=function(){this.labelHeight=this.getLabelHeight(),this.cd.detectChanges()},n.prototype.OnDragging=function(r){this.node.x=r.x,this.node.y=r.y,this.cd.detectChanges()},n.prototype.OnDragged=function(r){this.cd.detectChanges(),this.nodesEventSource.dragged.emit(new _y(this.node,r.dx,r.dy))},Object.defineProperty(n.prototype,"symbol",{get:function(){var r=this,t=this.symbols.find(function(i){return i.symbol_id===r.node.symbol});return t?"data:image/svg+xml;base64,"+btoa(t.raw):"data:image/svg+xml;base64,none"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"label_style",{get:function(){var r=this.cssFixer.fix(this.node.label.style);return r=this.fontFixer.fixStyles(r),this.sanitizer.bypassSecurityTrustStyle(r)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"label_x",{get:function(){return null===this.node.label.x?-this.label.nativeElement.getBBox().width/2:this.node.label.x+n.NODE_LABEL_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"label_y",{get:function(){return this.labelHeight=this.getLabelHeight(),null===this.node.label.x?-this.node.height/2-this.labelHeight:this.node.label.y+this.labelHeight-n.NODE_LABEL_MARGIN},enumerable:!1,configurable:!0}),n.prototype.getLabelHeight=function(){return this.label.nativeElement.getBBox().height},n.NODE_LABEL_MARGIN=3,n.\u0275fac=function(t){return new(t||n)(e.Y36(nh),e.Y36(cc),e.Y36(U.H7),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(mv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-node",""]],viewQuery:function(t,i){if(1&t&&(e.Gf(zCe,5),e.Gf(WCe,5)),2&t){var o=void 0;e.iGM(o=e.CRH())&&(i.label=o.first),e.iGM(o=e.CRH())&&(i.imageRef=o.first)}},inputs:{node:["app-node","node"],symbols:"symbols",nodeChanged:["node-changed","nodeChanged"]},features:[e.TTD],attrs:GCe,decls:6,vars:11,consts:[[1,"node"],[3,"app-draggable","dragging","dragged"],["image",""],[1,"label"],["label",""]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"g",0),e.TgZ(1,"image",1,2),e.NdJ("dragging",function(a){return i.OnDragging(a)})("dragged",function(a){return i.OnDragged(a)}),e.qZA(),e.TgZ(3,"text",3,4),e._uU(5),e.qZA(),e.qZA()),2&t&&(e.uIk("transform","translate("+i.node.x+","+i.node.y+")"),e.xp6(1),e.Q6J("app-draggable",i.node),e.uIk("width",i.node.width)("height",i.node.height)("x",0)("y",0)("href",i.symbol,null,"xlink"),e.xp6(2),e.uIk("style",i.label_style,e.Ckj)("x",i.label_x)("y",i.label_y),e.xp6(2),e.hij(" ",i.node.label.text," "))},directives:[Dz],styles:[""],changeDetection:0}),n}(),JCe=["app-ellipse",""],QCe=function(){function n(r){this.qtDasharrayFixer=r}return n.prototype.ngOnInit=function(){},Object.defineProperty(n.prototype,"fill_opacity",{get:function(){return isFinite(this.ellipse.fill_opacity)?this.ellipse.fill_opacity:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"stroke_width",{get:function(){return isFinite(this.ellipse.stroke_width)?this.ellipse.stroke_width:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"stroke_dasharray",{get:function(){return this.ellipse.stroke_dasharray?this.qtDasharrayFixer.fix(this.ellipse.stroke_dasharray):null},enumerable:!1,configurable:!0}),n.\u0275fac=function(t){return new(t||n)(e.Y36(_v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-ellipse",""]],inputs:{ellipse:["app-ellipse","ellipse"]},attrs:JCe,decls:1,vars:9,consts:[[1,"ellipse_element","noselect"]],template:function(t,i){1&t&&(e.O4$(),e._UZ(0,"ellipse",0)),2&t&&e.uIk("fill",i.ellipse.fill)("fill-opacity",i.fill_opacity)("stroke",i.ellipse.stroke)("stroke-width",i.stroke_width)("stroke-dasharray",i.stroke_dasharray)("cx",i.ellipse.cx)("cy",i.ellipse.cy)("rx",i.ellipse.rx)("ry",i.ellipse.ry)},styles:[""]}),n}(),KCe=["app-image",""],XCe=function(){function n(){}return n.prototype.ngOnInit=function(){},n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-image",""]],inputs:{image:["app-image","image"]},attrs:KCe,decls:1,vars:3,consts:[[1,"image_element","noselect"]],template:function(t,i){1&t&&(e.O4$(),e._UZ(0,"image",0)),2&t&&e.uIk("href",i.image.data,null,"xlink")("width",i.image.width)("height",i.image.height)},styles:[""]}),n}(),$Ce=["app-line",""],e1e=function(){function n(r){this.qtDasharrayFixer=r}return n.prototype.ngOnInit=function(){},Object.defineProperty(n.prototype,"stroke_width",{get:function(){return isFinite(this.line.stroke_width)?this.line.stroke_width:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"stroke_dasharray",{get:function(){return this.line.stroke_dasharray?this.qtDasharrayFixer.fix(this.line.stroke_dasharray):null},enumerable:!1,configurable:!0}),n.\u0275fac=function(t){return new(t||n)(e.Y36(_v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-line",""]],inputs:{line:["app-line","line"]},attrs:$Ce,decls:1,vars:7,consts:[[1,"line_element","noselect"]],template:function(t,i){1&t&&(e.O4$(),e._UZ(0,"line",0)),2&t&&e.uIk("stroke",i.line.stroke)("stroke-width",i.stroke_width)("stroke-dasharray",i.stroke_dasharray)("x1",i.line.x1)("x2",i.line.x2)("y1",i.line.y1)("y2",i.line.y2)},styles:[""]}),n}(),t1e=["app-rect",""],n1e=function(){function n(r){this.qtDasharrayFixer=r}return n.prototype.ngOnInit=function(){},Object.defineProperty(n.prototype,"fill_opacity",{get:function(){return isFinite(this.rect.fill_opacity)?this.rect.fill_opacity:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"stroke_width",{get:function(){return isFinite(this.rect.stroke_width)?this.rect.stroke_width:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"stroke_dasharray",{get:function(){return this.rect.stroke_dasharray?this.qtDasharrayFixer.fix(this.rect.stroke_dasharray):null},enumerable:!1,configurable:!0}),n.\u0275fac=function(t){return new(t||n)(e.Y36(_v))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-rect",""]],inputs:{rect:["app-rect","rect"]},attrs:t1e,decls:1,vars:9,consts:[[1,"rect_element","noselect"]],template:function(t,i){1&t&&(e.O4$(),e._UZ(0,"rect",0)),2&t&&e.uIk("fill",i.rect.fill)("fill-opacity",i.fill_opacity)("stroke",i.rect.stroke)("stroke-width",i.stroke_width)("stroke-dasharray",i.stroke_dasharray)("width",i.rect.width)("height",i.rect.height)("rx",i.rect.rx)("ry",i.rect.ry)},styles:[""]}),n}(),r1e=["text"],i1e=["app-text",""];function o1e(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"tspan",3),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.uIk("dy",0==r.index?"0em":"1.4em"),e.xp6(1),e.hij(" ",t," ")}}var a1e=function(){function n(r,t){this.fontFixer=r,this.sanitizer=t,this.lines=[],this.transformation=""}return n.prototype.ngOnInit=function(){this.lines=this.getLines(this.text.text)},n.prototype.ngDoCheck=function(){this.transformation=this.calculateTransformation()},Object.defineProperty(n.prototype,"style",{get:function(){var r=this.fontFixer.fix(this.text),t=[];return r.font_family&&t.push('font-family: "'+this.text.font_family+'"'),r.font_size&&t.push("font-size: "+this.text.font_size+"pt"),r.font_weight&&t.push("font-weight: "+this.text.font_weight),this.sanitizer.bypassSecurityTrustStyle(t.join("; "))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"textDecoration",{get:function(){return this.text.text_decoration},enumerable:!1,configurable:!0}),n.prototype.calculateTransformation=function(){var r=this.textRef.nativeElement.getElementsByTagName("tspan");if(r.length>0){var t=this.textRef.nativeElement.getBBox().height/r.length;return"translate("+n.MARGIN+", "+(t-n.MARGIN)+")"}return""},n.prototype.getLines=function(r){return r.split(/\r?\n/)},n.MARGIN=4,n.\u0275fac=function(t){return new(t||n)(e.Y36(cc),e.Y36(U.H7))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-text",""]],viewQuery:function(t,i){var o;(1&t&&e.Gf(r1e,5),2&t)&&(e.iGM(o=e.CRH())&&(i.textRef=o.first))},inputs:{text:["app-text","text"]},attrs:i1e,decls:3,vars:5,consts:[[1,"text_element","noselect"],["text",""],[0,"xml","space","preserve","x","0",4,"ngFor","ngForOf"],[0,"xml","space","preserve","x","0"]],template:function(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"text",0,1),e.YNc(2,o1e,2,2,"tspan",2),e.qZA()),2&t){var o=e.MAs(1);e.uIk("style",i.style,e.Ckj)("text-decoration",i.textDecoration)("fill",o.fill)("transform",i.transformation),e.xp6(2),e.Q6J("ngForOf",i.lines)}},directives:[kt.sg],styles:[""]}),n}(),s1e=["app-drawing",""];function l1e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",6)),2&n){var t=e.oxw();e.Q6J("app-ellipse",t.drawing.element)}}function u1e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",7)),2&n){var t=e.oxw();e.Q6J("app-image",t.drawing.element)}}function c1e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",8)),2&n){var t=e.oxw();e.Q6J("app-line",t.drawing.element)}}function d1e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",9)),2&n){var t=e.oxw();e.Q6J("app-rect",t.drawing.element)}}function p1e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",10)),2&n){var t=e.oxw();e.Q6J("app-text",t.drawing.element)}}var f1e=function(){function n(r,t,i){this.svgToDrawingConverter=r,this.drawingsEventSource=t,this.cd=i}return n.prototype.ngOnInit=function(){try{this.drawing.element=this.svgToDrawingConverter.convert(this.drawing.svg)}catch(r){}},n.prototype.OnDragging=function(r){this.drawing.x=r.x,this.drawing.y=r.y,this.cd.detectChanges()},n.prototype.OnDragged=function(r){this.cd.detectChanges(),this.drawingsEventSource.dragged.emit(new _y(this.drawing,r.dx,r.dy))},n.prototype.is=function(r,t){return!!r&&("ellipse"===t?r instanceof Po:"image"===t?r instanceof P2:"line"===t?r instanceof vv:"rect"===t?r instanceof pc:"text"===t&&r instanceof gv)},Object.defineProperty(n.prototype,"transformation",{get:function(){return"translate("+this.drawing.x+","+this.drawing.y+") rotate("+this.drawing.rotation+")"},enumerable:!1,configurable:!0}),n.\u0275fac=function(t){return new(t||n)(e.Y36(zS),e.Y36(fc),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-drawing",""]],inputs:{drawing:["app-drawing","drawing"]},attrs:s1e,decls:6,vars:7,consts:[[1,"drawing",3,"app-draggable","dragging","dragged"],[3,"app-ellipse",4,"ngIf"],[3,"app-image",4,"ngIf"],[3,"app-line",4,"ngIf"],[3,"app-rect",4,"ngIf"],[3,"app-text",4,"ngIf"],[3,"app-ellipse"],[3,"app-image"],[3,"app-line"],[3,"app-rect"],[3,"app-text"]],template:function(t,i){1&t&&(e.O4$(),e.TgZ(0,"g",0),e.NdJ("dragging",function(a){return i.OnDragging(a)})("dragged",function(a){return i.OnDragged(a)}),e.YNc(1,l1e,1,1,"g",1),e.YNc(2,u1e,1,1,"g",2),e.YNc(3,c1e,1,1,"g",3),e.YNc(4,d1e,1,1,"g",4),e.YNc(5,p1e,1,1,"g",5),e.qZA()),2&t&&(e.Q6J("app-draggable",i.drawing),e.uIk("transform",i.transformation),e.xp6(1),e.Q6J("ngIf",i.is(i.drawing.element,"ellipse")),e.xp6(1),e.Q6J("ngIf",i.is(i.drawing.element,"image")),e.xp6(1),e.Q6J("ngIf",i.is(i.drawing.element,"line")),e.xp6(1),e.Q6J("ngIf",i.is(i.drawing.element,"rect")),e.xp6(1),e.Q6J("ngIf",i.is(i.drawing.element,"text")))},directives:[Dz,kt.O5,QCe,XCe,e1e,n1e,a1e],styles:[""]}),n}(),h1e=["svg"];function m1e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",12)),2&n){var t=r.$implicit,i=e.oxw(2);e.Q6J("app-link",t)("show-interface-labels",i.settings.show_interface_labels)}}function v1e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"g",13)),2&n){var t=r.$implicit,i=e.oxw(2);e.Q6J("app-node",t)("symbols",i.symbols)}}function g1e(n,r){1&n&&(e.O4$(),e._UZ(0,"g",14)),2&n&&e.Q6J("app-drawing",r.$implicit)}function _1e(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"g"),e.TgZ(1,"g",6),e.YNc(2,m1e,1,2,"g",7),e.qZA(),e.TgZ(3,"g",8),e.YNc(4,v1e,1,2,"g",9),e.qZA(),e.TgZ(5,"g",10),e.YNc(6,g1e,1,1,"g",11),e.qZA(),e.qZA()),2&n){var t=r.$implicit;e.xp6(2),e.Q6J("ngForOf",t.links),e.xp6(2),e.Q6J("ngForOf",t.nodes),e.xp6(2),e.Q6J("ngForOf",t.drawings)}}var y1e=function(){function n(r,t,i,o,a,s,u){this.graphDataManager=r,this.context=t,this.mapChangeDetectorRef=i,this.canvasSizeDetector=o,this.changeDetectorRef=a,this.layersManger=s,this.graphLayout=u,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.width=1500,this.height=600,this.settings={show_interface_labels:!0}}return Object.defineProperty(n.prototype,"showInterfaceLabels",{set:function(r){this.settings.show_interface_labels=r,this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"movingTool",{set:function(r){this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectionTool",{set:function(r){this.mapChangeDetectorRef.detectChanges()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"readonly",{set:function(r){},enumerable:!1,configurable:!0}),n.prototype.ngOnChanges=function(r){},n.prototype.ngOnInit=function(){var r=this;this.changesDetected=this.mapChangeDetectorRef.changesDetected.subscribe(function(){r.graphDataManager.setNodes(r.nodes),r.graphDataManager.setLinks(r.links),r.graphDataManager.setDrawings(r.drawings),r.graphDataManager.setSymbols(r.symbols),r.changeDetectorRef.detectChanges()})},n.prototype.ngOnDestroy=function(){this.changesDetected.unsubscribe()},n.prototype.getSize=function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)},Object.defineProperty(n.prototype,"layers",{get:function(){return this.layersManger.getLayersList()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"transform",{get:function(){var r=new eu;return r.size=this.getSize(),"translate("+(r.getZeroZeroTransformationPoint().x+r.transformation.x)+", "+(r.getZeroZeroTransformationPoint().y+r.transformation.y)+") scale("+r.transformation.k+")"},enumerable:!1,configurable:!0}),n.prototype.onResize=function(r){},n.\u0275fac=function(t){return new(t||n)(e.Y36(vy),e.Y36(eu),e.Y36(qS),e.Y36(CL),e.Y36(e.sBO),e.Y36(E2),e.Y36(OL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-experimental-map"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(h1e,5),2&t)&&(e.iGM(o=e.CRH())&&(i.svg=o.first))},hostBindings:function(t,i){1&t&&e.NdJ("resize",function(a){return i.onResize(a)},!1,e.Jf7)},inputs:{nodes:"nodes",links:"links",drawings:"drawings",symbols:"symbols",width:"width",height:"height",showInterfaceLabels:["show-interface-labels","showInterfaceLabels"],movingTool:["moving-tool","movingTool"],selectionTool:["selection-tool","selectionTool"],drawLinkTool:["draw-link-tool","drawLinkTool"],readonly:"readonly"},features:[e.TTD],decls:7,vars:5,consts:[["preserveAspectRatio","none",1,"map"],["svg",""],[4,"ngFor","ngForOf"],[3,"app-selection"],["id","grayscale"],["id","feGrayscale","type","saturate","values","0"],[1,"links"],[3,"app-link","show-interface-labels",4,"ngFor","ngForOf"],[1,"nodes"],[3,"app-node","symbols",4,"ngFor","ngForOf"],[1,"drawings"],[3,"app-drawing",4,"ngFor","ngForOf"],[3,"app-link","show-interface-labels"],[3,"app-node","symbols"],[3,"app-drawing"]],template:function(t,i){if(1&t&&(e.O4$(),e.TgZ(0,"svg",0,1),e.TgZ(2,"g"),e.YNc(3,_1e,7,3,"g",2),e.qZA(),e._UZ(4,"g",3),e.TgZ(5,"filter",4),e._UZ(6,"feColorMatrix",5),e.qZA(),e.qZA()),2&t){var o=e.MAs(1);e.uIk("width",i.width)("height",i.height),e.xp6(2),e.uIk("transform",i.transform),e.xp6(1),e.Q6J("ngForOf",i.layers),e.xp6(1),e.Q6J("app-selection",o)}},directives:[kt.sg,wCe,VCe,YCe,f1e],styles:["svg[_ngcontent-%COMP%]{display:block}"],changeDetection:0}),n}(),b1e=function(){function n(){}return n.prototype.transform=function(r,t){return r?t?(t=t.toLowerCase(),r.filter(function(i){return i.name.toLowerCase().includes(t)})):r:[]},n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"templatefilter",type:n,pure:!0}),n}();function C1e(n,r){if(1&n&&(e.TgZ(0,"mat-option",18),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function S1e(n,r){if(1&n&&(e.TgZ(0,"mat-option",18),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t.name," ")}}function T1e(n,r){if(1&n&&(e.TgZ(0,"mat-option",18),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function x1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-select",19),e.NdJ("valueChange",function(a){return e.CHM(t),e.oxw().selectedTemplate.compute_id=a}),e.YNc(1,T1e,2,2,"mat-option",8),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("value",i.selectedTemplate.compute_id),e.xp6(1),e.Q6J("ngForOf",i.nodeServers)}}var GL=function(){return{standalone:!0}},w1e=function(){function n(r,t,i,o,a,s){this.dialogRef=r,this.templateService=t,this.formBuilder=i,this.data=o,this.toasterService=a,this.nonNegativeValidator=s,this.templateTypes=["cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","traceng","virtualbox","vmware","iou","qemu"],this.searchText="",this.nodeServers=["local","vm"],this.server=o.server,this.project=o.project,this.configurationForm=this.formBuilder.group({numberOfNodes:new re.NI(1,[re.kI.required,s.get])}),this.positionForm=this.formBuilder.group({top:new re.NI(0,re.kI.required),left:new re.NI(0,re.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.templateService.list(this.server).subscribe(function(t){r.filteredTemplates=t,r.templates=t})},n.prototype.onNoClick=function(){this.dialogRef.close()},n.prototype.filterTemplates=function(r){var t=this,i=this.templates.filter(function(o){return o.name.toLowerCase().includes(t.searchText.toLowerCase())});this.filteredTemplates=i.filter(function(o){return o.template_type===r.value.toString()})},n.prototype.chooseTemplate=function(r){this.selectedTemplate=r.value,("cloud"===this.selectedTemplate.template_type||"ethernet_hub"===this.selectedTemplate.template_type||"ethernet_switch"===this.selectedTemplate.template_type)&&(this.selectedTemplate.compute_id="local")},n.prototype.onAddClick=function(){if(this.selectedTemplate&&0!==this.filteredTemplates.length)if(this.positionForm.valid&&this.configurationForm.valid&&this.selectedTemplate.compute_id){var r=this.positionForm.get("left").value,t=this.positionForm.get("top").value;if(r>this.project.scene_width/2||r<-this.project.scene_width/2||t>this.project.scene_height/2||t<-this.project.scene_height)this.toasterService.error("Please set correct position values.");else{var i={template:this.selectedTemplate,server:this.selectedTemplate.compute_id,numberOfNodes:this.configurationForm.get("numberOfNodes").value,x:r,y:t};this.dialogRef.close(i)}}else this.toasterService.error("Please fill all required fields.");else this.toasterService.error("Please firstly choose template.")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(uy),e.Y36(re.qu),e.Y36(sd),e.Y36(Xn),e.Y36(N2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-template-list-dialog"]],decls:40,vars:18,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-button","","color","accent",1,"top-button",3,"routerLink","click"],["mat-dialog-content","",1,"content"],["floatPlaceholder","never",1,"form-field"],["matInput","","placeholder","Search by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"form-field"],["placeholder","Filter templates by type",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Choose template",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"formGroup"],["type","number","matInput","","formControlName","numberOfNodes","placeholder","Enter number of nodes (default value is 1)"],["placeholder","Choose server for node",3,"value","valueChange",4,"ngIf"],["matInput","","type","number","formControlName","left"],["matInput","","type","number","formControlName","top"],["mat-dialog-actions","","align","end"],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"addButton",3,"click"],[3,"value"],["placeholder","Choose server for node",3,"value","valueChange"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"h1",1),e._uU(2,"Insert New Node"),e.qZA(),e.TgZ(3,"button",2),e.NdJ("click",function(){return i.onNoClick()}),e._uU(4," Go to template preferences "),e.qZA(),e.qZA(),e.TgZ(5,"div",3),e.TgZ(6,"div",0),e.TgZ(7,"h6"),e._uU(8,"Template"),e.qZA(),e.qZA(),e.TgZ(9,"mat-form-field",4),e.TgZ(10,"input",5),e.NdJ("ngModelChange",function(a){return i.searchText=a}),e.qZA(),e.qZA(),e.TgZ(11,"mat-form-field",6),e.TgZ(12,"mat-select",7),e.NdJ("selectionChange",function(a){return i.filterTemplates(a)})("ngModelChange",function(a){return i.selectedType=a}),e.YNc(13,C1e,2,2,"mat-option",8),e.qZA(),e.qZA(),e.TgZ(14,"mat-form-field",6),e.TgZ(15,"mat-select",9),e.NdJ("selectionChange",function(a){return i.chooseTemplate(a)})("ngModelChange",function(a){return i.selectedTemplate=a}),e.YNc(16,S1e,2,2,"mat-option",8),e.ALo(17,"templatefilter"),e.qZA(),e.qZA(),e.TgZ(18,"div",0),e.TgZ(19,"h6"),e._uU(20,"Configuration"),e.qZA(),e.qZA(),e.TgZ(21,"form",10),e.TgZ(22,"mat-form-field",6),e._UZ(23,"input",11),e.qZA(),e.qZA(),e.YNc(24,x1e,2,2,"mat-select",12),e.TgZ(25,"div",0),e.TgZ(26,"h6"),e._uU(27,"Position"),e.qZA(),e.qZA(),e.TgZ(28,"form",10),e._uU(29," Left:\xa0 "),e.TgZ(30,"mat-form-field"),e._UZ(31,"input",13),e.qZA(),e._uU(32," Top:\xa0 "),e.TgZ(33,"mat-form-field"),e._UZ(34,"input",14),e.qZA(),e.qZA(),e.qZA(),e.TgZ(35,"div",15),e.TgZ(36,"button",16),e.NdJ("click",function(){return i.onNoClick()}),e._uU(37,"Close"),e.qZA(),e.TgZ(38,"button",17),e.NdJ("click",function(){return i.onAddClick()}),e._uU(39," Add "),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.MGl("routerLink","/server/",i.server.id,"/preferences"),e.xp6(7),e.Q6J("ngModel",i.searchText)("ngModelOptions",e.DdM(15,GL)),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(16,GL))("ngModel",i.selectedType),e.xp6(1),e.Q6J("ngForOf",i.templateTypes),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(17,GL))("ngModel",i.selectedTemplate),e.xp6(1),e.Q6J("ngForOf",e.xi3(17,12,i.filteredTemplates,i.searchText)),e.xp6(5),e.Q6J("formGroup",i.configurationForm),e.xp6(3),e.Q6J("ngIf",i.selectedTemplate),e.xp6(4),e.Q6J("formGroup",i.positionForm))},directives:[ti,An,ca,ly,Hn.KE,lr,re.Fj,re.JJ,re.On,pi.gD,kt.sg,re._Y,re.JL,re.sg,re.wV,re.u,kt.O5,$r,un.ey],pipes:[b1e],styles:[".header[_ngcontent-%COMP%]{min-height:64px;display:flex;align-items:baseline;padding:8px 24px 0;font-size:20px;justify-content:space-between}.mat-table[_ngcontent-%COMP%]{height:200px;overflow:scroll}.mat-form-field[_ngcontent-%COMP%]{font-size:16px;flex-grow:1}.form-field[_ngcontent-%COMP%]{width:100%}div[_ngcontent-%COMP%]{scrollbar-color:darkgrey #263238;scrollbar-width:thin}h6[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px;color:#0097a7}mat-table[_ngcontent-%COMP%]{scrollbar-color:darkgrey #263238;scrollbar-width:thin}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.filterBox[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.title-container[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between}"]}),n}();function E1e(n,r){if(1&n&&(e.TgZ(0,"mat-option",15),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function k1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"span",18),e.TgZ(1,"div",19),e.NdJ("dragStart",function(s){return e.CHM(t),e.oxw(3).dragStart(s)})("dragEnd",function(s){e.CHM(t);var u=e.oxw(2).index,p=e.oxw();return p.dragEnd(s,p.filteredTemplates[u+1])}),e._UZ(2,"img",20),e.qZA(),e.TgZ(3,"div",21),e._uU(4),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2).index,o=e.oxw();e.xp6(2),e.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+1]),e.LSH),e.xp6(2),e.Oqu(o.filteredTemplates[i+1].name)}}function M1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"span",18),e.TgZ(1,"div",19),e.NdJ("dragStart",function(s){return e.CHM(t),e.oxw(3).dragStart(s)})("dragEnd",function(s){e.CHM(t);var u=e.oxw(2).index,p=e.oxw();return p.dragEnd(s,p.filteredTemplates[u+2])}),e._UZ(2,"img",20),e.qZA(),e.TgZ(3,"div",21),e._uU(4),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2).index,o=e.oxw();e.xp6(2),e.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+2]),e.LSH),e.xp6(2),e.Oqu(o.filteredTemplates[i+2].name)}}function A1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"span",18),e.TgZ(1,"div",19),e.NdJ("dragStart",function(s){return e.CHM(t),e.oxw(3).dragStart(s)})("dragEnd",function(s){e.CHM(t);var u=e.oxw(2).index,p=e.oxw();return p.dragEnd(s,p.filteredTemplates[u+3])}),e._UZ(2,"img",20),e.qZA(),e.TgZ(3,"div",21),e._uU(4),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2).index,o=e.oxw();e.xp6(2),e.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+3]),e.LSH),e.xp6(2),e.Oqu(o.filteredTemplates[i+3].name)}}function D1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"span",17),e.TgZ(1,"span",18),e.TgZ(2,"div",19),e.NdJ("dragStart",function(s){return e.CHM(t),e.oxw(2).dragStart(s)})("dragEnd",function(s){e.CHM(t);var u=e.oxw().index,p=e.oxw();return p.dragEnd(s,p.filteredTemplates[u])}),e._UZ(3,"img",20),e.qZA(),e.TgZ(4,"div",21),e._uU(5),e.qZA(),e.qZA(),e.YNc(6,k1e,5,2,"span",22),e.YNc(7,M1e,5,2,"span",22),e.YNc(8,A1e,5,2,"span",22),e.qZA()}if(2&n){var i=e.oxw().index,o=e.oxw();e.xp6(3),e.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i]),e.LSH),e.xp6(2),e.Oqu(o.filteredTemplates[i].name),e.xp6(1),e.Q6J("ngIf",o.filteredTemplates[i+1]),e.xp6(1),e.Q6J("ngIf",o.filteredTemplates[i+2]),e.xp6(1),e.Q6J("ngIf",o.filteredTemplates[i+3])}}function O1e(n,r){if(1&n&&(e.TgZ(0,"mat-list-item"),e.YNc(1,D1e,9,5,"span",16),e.qZA()),2&n){var t=r.index;e.xp6(1),e.Q6J("ngIf",t%4==0)}}var Oz=function(){return{standalone:!0}},P1e=function(){function n(r,t,i,o){this.dialog=r,this.templateService=t,this.scaleService=i,this.symbolService=o,this.onNodeCreation=new e.vpe,this.templates=[],this.filteredTemplates=[],this.searchText="",this.templateTypes=["all","cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","traceng","virtualbox","vmware","iou","qemu"]}return n.prototype.ngOnInit=function(){var r=this;this.subscription=this.templateService.newTemplateCreated.subscribe(function(t){r.templates.push(t)}),this.templateService.list(this.server).subscribe(function(t){r.filteredTemplates=t,r.sortTemplates(),r.templates=t}),this.symbolService.list(this.server)},n.prototype.sortTemplates=function(){this.filteredTemplates=this.filteredTemplates.sort(function(r,t){return r.name<t.name?-1:1})},n.prototype.filterTemplates=function(r){var t=this,i=this.templates.filter(function(o){return o.name.toLowerCase().includes(t.searchText.toLowerCase())});this.filteredTemplates="all"!==this.selectedType&&this.selectedType?i.filter(function(o){return o.template_type===t.selectedType}):i,this.sortTemplates()},n.prototype.dragStart=function(r){var t=event.target.getBoundingClientRect();this.startX=event.clientX,this.startY=event.clientY,this.movementY=t.top-event.clientY,this.movementX=t.left-event.clientX},n.prototype.dragEnd=function(r,t){var i=this;this.symbolService.raw(this.server,t.symbol.substring(1)).subscribe(function(o){var a=+o.split('width="')[1].split('"')[0]?+o.split('width="')[1].split('"')[0]:0,s=i.scaleService.getScale(),u={template:t,server:"local",numberOfNodes:1,x:(i.startX+r.x-i.project.scene_width/2-a/2)*s+window.scrollX,y:(i.startY+r.y-i.project.scene_height/2)*s+window.scrollY};i.onNodeCreation.emit(u)})},n.prototype.openDialog=function(){var r=this;this.dialog.open(w1e,{width:"600px",data:{server:this.server,project:this.project},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(i){null!==i&&r.onNodeCreation.emit(i)})},n.prototype.addNewTemplate=function(){var t=this.dialog.open(gz,{width:"1000px",maxHeight:"700px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project},n.prototype.getImageSourceForTemplate=function(r){return this.server.protocol+"//"+this.server.host+":"+this.server.port+"/v2/symbols/"+r.symbol+"/raw"},n.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(to),e.Y36(uy),e.Y36(yy),e.Y36(NS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-template"]],inputs:{server:"server",project:"project"},outputs:{onNodeCreation:"onNodeCreation"},decls:28,vars:9,consts:[["matTooltip","Add a node","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button","add-menu-button",3,"matMenuTriggerFor"],["mainMenu","matMenu"],[1,"templateMenu"],[1,"templateMenuHeader"],["mat-menu-item","",3,"click"],[1,"templateFilterBar"],["floatPlaceholder","never",1,"form-field",3,"click"],["matInput","","placeholder","Filter by name","search","search",3,"ngModel","ngModelOptions","keyup","ngModelChange"],["matSuffix","",1,"searchIcon"],[1,"form-field",3,"click"],["placeholder","Filter by type",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"menu"],[1,"templateList"],[4,"ngFor","ngForOf"],[3,"value"],["class","templateRow",4,"ngIf"],[1,"templateRow"],[1,"templateIcon"],["mwlDraggable","",1,"iconContainer",3,"dragStart","dragEnd"],[1,"image",3,"src"],[1,"templateText"],["class","templateIcon",4,"ngIf"]],template:function(t,i){if(1&t&&(e.TgZ(0,"button",0),e.TgZ(1,"mat-icon"),e._uU(2,"add"),e.qZA(),e.qZA(),e.TgZ(3,"mat-menu",null,1),e.TgZ(5,"div",2),e.TgZ(6,"div",3),e.TgZ(7,"button",4),e.NdJ("click",function(){return i.openDialog()}),e.TgZ(8,"mat-icon"),e._uU(9,"add_to_queue"),e.qZA(),e.TgZ(10,"span"),e._uU(11," Insert New Node... "),e.qZA(),e.qZA(),e.TgZ(12,"button",4),e.NdJ("click",function(){return i.addNewTemplate()}),e.TgZ(13,"mat-icon"),e._uU(14,"library_add"),e.qZA(),e.TgZ(15,"span"),e._uU(16," New Template... "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",5),e.TgZ(18,"mat-form-field",6),e.NdJ("click",function(s){return s.stopPropagation()}),e.TgZ(19,"input",7),e.NdJ("keyup",function(s){return i.filterTemplates(s)})("ngModelChange",function(s){return i.searchText=s}),e.qZA(),e.TgZ(20,"mat-icon",8),e._uU(21,"search"),e.qZA(),e.qZA(),e.TgZ(22,"mat-form-field",9),e.NdJ("click",function(s){return s.stopPropagation()}),e.TgZ(23,"mat-select",10),e.NdJ("selectionChange",function(s){return i.filterTemplates(s)})("ngModelChange",function(s){return i.selectedType=s}),e.YNc(24,E1e,2,2,"mat-option",11),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",12),e.TgZ(26,"div",13),e.YNc(27,O1e,2,1,"mat-list-item",14),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){var o=e.MAs(4);e.Q6J("matMenuTriggerFor",o),e.xp6(19),e.Q6J("ngModel",i.searchText)("ngModelOptions",e.DdM(7,Oz)),e.xp6(4),e.Q6J("ngModelOptions",e.DdM(8,Oz))("ngModel",i.selectedType),e.xp6(1),e.Q6J("ngForOf",i.templateTypes),e.xp6(3),e.Q6J("ngForOf",i.filteredTemplates)}},directives:[An,Ja,Qa,sr,Ts,Nr,Hn.KE,lr,re.Fj,re.JJ,re.On,Hn.R9,pi.gD,kt.sg,un.ey,Ss,kt.O5,mk],styles:[".mat-menu-panel{max-width:400px;max-height:640px;border-radius:8px}.menu[_ngcontent-%COMP%]{width:100%;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin;font-size:12px}.templateMenuHeader[_ngcontent-%COMP%]{border-bottom:1px solid rgba(255,255,255,.05)}.templateFilterBar[_ngcontent-%COMP%]{padding:10px 2%;background-color:rgba(0,0,0,.2);margin-bottom:10px}.templateFilterBar[_ngcontent-%COMP%] > .form-field[_ngcontent-%COMP%]{font-size:12px}.templateFilterBar[_ngcontent-%COMP%] .searchIcon[_ngcontent-%COMP%]{position:relative;top:5px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.form-field[_ngcontent-%COMP%]{width:44%;margin-left:3%;margin-right:3%}.image[_ngcontent-%COMP%]{display:inline-block;width:55px;height:55px;filter:invert(0);--webkit-filter: invert(0) !important}.templateList[_ngcontent-%COMP%]{width:100%;padding:10px}.templateRow[_ngcontent-%COMP%]{display:flex;margin-bottom:10px}.templateText[_ngcontent-%COMP%]{word-wrap:break-word}.templateIcon[_ngcontent-%COMP%]{width:90px!important;padding:2px 5px;text-align:center;margin:3px}.templateIcon[_ngcontent-%COMP%] > .iconContainer[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:70px;height:70px;margin-bottom:10px;border-radius:50%;cursor:move}.templateIcon[_ngcontent-%COMP%] > .iconContainer[_ngcontent-%COMP%]:hover{background-color:rgba(237,246,231,.08)}"]}),n}(),YL=function(){function n(r,t){this.dialogRef=r,this.data=t}return n.prototype.onCancelClick=function(){this.dialogRef.close(n.CANCELLED)},n.prototype.ngOnInit=function(){},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(sd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-progress-dialog"]],decls:7,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["color","primary","mode","determinate",3,"value"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Operation in progress"),e.qZA(),e.TgZ(2,"div",1),e._UZ(3,"mat-progress-bar",2),e.qZA(),e.TgZ(4,"div",3),e.TgZ(5,"button",4),e.NdJ("click",function(){return i.onCancelClick()}),e._uU(6,"Cancel"),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("value",i.value))},directives:[ti,ly,Mj,$r,An],styles:[""]}),n}(),I1e=function(){return function(){}}(),j2=function(){function n(r){this.httpServer=r}return n.prototype.create=function(r,t,i){return this.httpServer.post(r,"/projects/"+t+"/snapshots",i)},n.prototype.delete=function(r,t,i){return this.httpServer.delete(r,"/projects/"+t+"/snapshots/"+i)},n.prototype.list=function(r,t){return this.httpServer.get(r,"/projects/"+t+"/snapshots")},n.prototype.restore=function(r,t,i){return this.httpServer.post(r,"/projects/"+t+"/snapshots/"+i+"/restore",{})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),R1e=function(){function n(r,t,i,o,a,s){var u=this;this.dialogRef=r,this.formBuilder=t,this.toasterService=i,this.snapshotService=o,this.nodesDataSource=a,this.data=s,this.snapshot=new I1e,this.snapshots=[],this.server=s.server,this.project=s.project,this.inputForm=this.formBuilder.group({snapshotName:new re.NI("",re.kI.required)}),this.snapshotService.list(this.server,this.project.project_id).subscribe(function(p){p.forEach(function(m){u.snapshots.push(m.name)})}),this.nodesDataSource.getItems().forEach(function(p){"stopped"!==p.status&&!u.isAlwaysRunningNode(p.node_type)&&(u.isInRunningState=!0)})}return n.prototype.isAlwaysRunningNode=function(r){return!["qemu","docker","dynamips","vpcs","vmware","virtualbox","iou","traceng"].includes(r)},n.prototype.onAddClick=function(){this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.snapshots.includes(this.inputForm.get("snapshotName").value)?this.toasterService.error("Snapshot with this name already exists"):this.isInRunningState?this.toasterService.error("Project must be stopped in order to export it"):(this.snapshot.name=this.inputForm.get("snapshotName").value,this.dialogRef.close(this.snapshot))},n.prototype.onNoClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(re.qu),e.Y36(Xn),e.Y36(j2),e.Y36(wa.G),e.Y36(sd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-create-snapshot-dialog"]],decls:14,vars:3,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-button","","color","accent",1,"top-button",3,"routerLink","click"],["mat-dialog-content",""],[3,"formGroup"],[1,"name-input"],["matInput","","tabindex","1","formControlName","snapshotName","placeholder","Name"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"h1",1),e._uU(2,"Create snapshot"),e.qZA(),e.TgZ(3,"button",2),e.NdJ("click",function(){return i.onNoClick()}),e._uU(4," Go to snapshots "),e.qZA(),e.qZA(),e.TgZ(5,"div",3),e.TgZ(6,"form",4),e.TgZ(7,"mat-form-field",5),e._UZ(8,"input",6),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",7),e.TgZ(10,"button",8),e.NdJ("click",function(){return i.onNoClick()}),e._uU(11,"Cancel"),e.qZA(),e.TgZ(12,"button",9),e.NdJ("click",function(){return i.onAddClick()}),e._uU(13,"Add"),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.hYB("routerLink","/server/",i.server.id,"/project/",i.project.project_id,"/snapshots"),e.xp6(3),e.Q6J("formGroup",i.inputForm))},directives:[ti,An,ca,ly,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,$r],styles:[".title-container[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between}.name-input[_ngcontent-%COMP%]{width:100%}.top-button[_ngcontent-%COMP%]{outline:none;box-shadow:none!important;background:transparent!important}button[_ngcontent-%COMP%]:focus{outline:0!important;border:0!important;box-shadow:none!important}"]}),n}(),JL=function(){function n(r){this.dialog=r}return n.prototype.open=function(){return this.dialog.open(YL,{width:"250px",autoFocus:!1,disableClose:!0})},n.\u0275fac=function(t){return new(t||n)(e.LFG(to))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),N1e=function(){function n(r,t,i,o){this.dialog=r,this.snapshotService=t,this.progressDialogService=i,this.toaster=o}return n.prototype.ngOnInit=function(){},n.prototype.createSnapshotModal=function(){var r=this;this.dialog.open(R1e,{width:"450px",data:{server:this.server,project:this.project},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(i){if(i){var o=r.snapshotService.create(r.server,r.project.project_id,i),a=r.progressDialogService.open(),s=o.subscribe(function(u){r.toaster.success("Snapshot '"+i.name+"' has been created."),a.close()});a.afterClosed().subscribe(function(u){u===YL.CANCELLED&&s.unsubscribe()})}})},n.\u0275fac=function(t){return new(t||n)(e.Y36(to),e.Y36(j2),e.Y36(JL),e.Y36(Xn))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-snapshot-menu-item"]],inputs:{project:"project",server:"server"},decls:3,vars:0,consts:[["matTooltip","Manage snapshots","matTooltipClass","custom-tooltip","mat-icon-button","",1,"snapshot-button","menu-button",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return i.createSnapshotModal()}),e.TgZ(1,"mat-icon"),e._uU(2,"filter_none"),e.qZA(),e.qZA())},directives:[An,Ja,sr],styles:[""]}),n}(),Z1e=function(){return function(r,t,i,o){this.sourceNode=r,this.sourcePort=t,this.targetNode=i,this.targetPort=o}}();function L1e(n,r){1&n&&(e.O4$(),e.TgZ(0,"svg",9),e._UZ(1,"rect",10),e.qZA())}function F1e(n,r){1&n&&(e.O4$(),e.TgZ(0,"svg",9),e._UZ(1,"rect",11),e.qZA())}function B1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",6),e.NdJ("click",function(){var s=e.CHM(t).$implicit;return e.oxw(2).chooseInterface(s)}),e.YNc(1,L1e,2,0,"svg",7),e.YNc(2,F1e,2,0,"svg",7),e.TgZ(3,"span",8),e._uU(4),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit;e.Q6J("disabled",!i.available),e.xp6(1),e.Q6J("ngIf",i.available),e.xp6(1),e.Q6J("ngIf",!i.available),e.xp6(2),e.Oqu(i.name)}}function U1e(n,r){if(1&n&&(e.TgZ(0,"div",1),e._UZ(1,"span",2),e.TgZ(2,"mat-menu",3,4),e.YNc(4,B1e,5,4,"button",5),e.qZA(),e.qZA()),2&n){var t=e.MAs(3),i=e.oxw();e.Udp("left",i.leftPosition)("top",i.topPosition),e.xp6(1),e.Q6J("matMenuTriggerFor",t),e.xp6(1),e.Udp("min-height",0),e.xp6(2),e.Q6J("ngForOf",i.ports)}}var Pz=function(){function n(r,t){this.sanitizer=r,this.changeDetector=t,this.onChooseInterface=new e.vpe}return n.prototype.ngOnInit=function(){this.setPosition(0,0)},n.prototype.setPosition=function(r,t){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(r+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(t+"px"),this.changeDetector.detectChanges()},n.prototype.open=function(r,t,i){this.node=r,this.filterNodePorts(),this.setPosition(t,i),this.contextMenu.openMenu()},n.prototype.filterNodePorts=function(){var r=this,t=[];this.links.forEach(function(i){i.nodes.forEach(function(o){o.node_id===r.node.node_id&&t.push(o)})}),this.ports=[],this.node.ports.forEach(function(i){var o=t.filter(function(a){return a.adapter_number===i.adapter_number});i.available=0===o.length||0===o.filter(function(a){return a.port_number===i.port_number}).length,r.ports.push(i)})},n.prototype.chooseInterface=function(r){this.onChooseInterface.emit({node:this.node,port:r})},n.\u0275fac=function(t){return new(t||n)(e.Y36(U.H7),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-node-select-interface"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Qa,5),2&t)&&(e.iGM(o=e.CRH())&&(i.contextMenu=o.first))},inputs:{links:"links"},outputs:{onChooseInterface:"onChooseInterface"},decls:1,vars:1,consts:[["class","context-menu",3,"left","top",4,"ngIf"],[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["selectInterfaceMenu","matMenu"],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"disabled","click"],["width","10","height","10",4,"ngIf"],[1,"port"],["width","10","height","10"],["x","0","y","0","width","10","height","10","fill","green",1,"status"],["x","0","y","0","width","10","height","10","fill","red",1,"status"]],template:function(t,i){1&t&&e.YNc(0,U1e,5,8,"div",0),2&t&&e.Q6J("ngIf",i.node)},directives:[kt.O5,Qa,Ts,kt.sg,Nr],styles:[".context-menu[_ngcontent-%COMP%]{position:absolute}.context-menu-items[_ngcontent-%COMP%]{min-height:0px!important}.status[_ngcontent-%COMP%]{margin-right:10px}.port[_ngcontent-%COMP%]{margin-left:10px}"]}),n}(),H1e=function(){function n(r,t,i,o,a,s){this.drawingLineTool=r,this.nodesEventSource=t,this.linksEventSource=i,this.mapNodeToNode=o,this.nodeToMapNode=a,this.portToMapPort=s}return n.prototype.ngOnInit=function(){var r=this;this.nodeClicked$=this.nodesEventSource.clicked.subscribe(function(t){var i=r.mapNodeToNode.convert(t.datum);r.nodeSelectInterfaceMenu.open(i,t.y,t.x)})},n.prototype.ngOnDestroy=function(){this.drawingLineTool.isDrawing()&&this.drawingLineTool.stop(),this.nodeClicked$.unsubscribe()},n.prototype.onChooseInterface=function(r){var t=this.nodeToMapNode.convert(r.node),i=this.portToMapPort.convert(r.port);if(this.drawingLineTool.isDrawing()){var o=this.drawingLineTool.stop();this.linksEventSource.created.emit(new Z1e(o.node,o.port,t,i))}else this.drawingLineTool.start(t.x+t.width/2,t.y+t.height/2,{node:t,port:i})},n.\u0275fac=function(t){return new(t||n)(e.Y36(EL),e.Y36(mv),e.Y36(YS),e.Y36(V2),e.Y36(bL),e.Y36(yL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-draw-link-tool"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Pz,5),2&t)&&(e.iGM(o=e.CRH())&&(i.nodeSelectInterfaceMenu=o.first))},inputs:{links:"links"},decls:1,vars:1,consts:[[3,"links","onChooseInterface"]],template:function(t,i){1&t&&(e.TgZ(0,"app-node-select-interface",0),e.NdJ("onChooseInterface",function(a){return i.onChooseInterface(a)}),e.qZA()),2&t&&e.Q6J("links",i.links)},directives:[Pz],styles:[""]}),n}(),Iz=f(4147).i8,Rz=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Jn.ZT)(r,n),r.prototype.getItemKey=function(t){return t},r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(T2.o),V1e=["console"];function q1e(n,r){if(1&n&&(e.TgZ(0,"span",12),e._uU(1),e._UZ(2,"br"),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.message," ")}}var z2=function(n){return{lightTheme:n}},j1e=function(){function n(r,t,i,o,a,s,u,p,m,C){this.projectWebServiceHandler=r,this.nodeService=t,this.nodesDataSource=i,this.protocolHandlerService=o,this.logEventsDataSource=a,this.httpService=s,this.themeService=u,this.cd=p,this.nodeConsoleService=m,this.changeDetectorRef=C,this.version=Iz,this.command="",this.filters=["all","errors","warnings","info","map updates","server requests"],this.selectedFilter="all",this.filteredEvents=[],this.regexStart=/^start (.*?)$/,this.regexStop=/^stop (.*?)$/,this.regexSuspend=/^suspend (.*?)$/,this.regexReload=/^reload (.*?)$/,this.regexShow=/^show (.*?)$/,this.regexConsole=/^console (.*?)$/,this.style={},this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1,this.selected=new re.NI(0)}return n.prototype.ngOnInit=function(){var r=this;this.nodeConsoleService.consoleResized.subscribe(function(t){r.style={bottom:"20px",left:"20px",width:t.width+"px",height:t.height-70+"px"},r.changeDetectorRef.detectChanges()}),this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.style={bottom:"20px",left:"20px",width:"720px",height:"340px"},this.nodeSubscription=this.projectWebServiceHandler.nodeNotificationEmitter.subscribe(function(t){var o,i=t.event;o=i.label?"Event received: "+t.action+" - "+r.printNode(i)+".":"Event received: "+t.action+" - "+i.name+".",r.showMessage({type:"map update",message:o})}),this.linkSubscription=this.projectWebServiceHandler.linkNotificationEmitter.subscribe(function(t){var o="Event received: "+t.action+" - "+r.printLink(t.event)+".";r.showMessage({type:"map update",message:o})}),this.drawingSubscription=this.projectWebServiceHandler.drawingNotificationEmitter.subscribe(function(t){var o="Event received: "+t.action+" - "+r.printDrawing(t.event)+".";r.showMessage({type:"map update",message:o})}),this.serverRequestsSubscription=this.httpService.requestsNotificationEmitter.subscribe(function(t){r.showMessage({type:"server request",message:t})}),this.errorSubscription=this.projectWebServiceHandler.errorNotificationEmitter.subscribe(function(t){r.showMessage({type:"error",message:t})}),this.warningSubscription=this.projectWebServiceHandler.warningNotificationEmitter.subscribe(function(t){r.showMessage({type:"warning",message:t})}),this.infoSubscription=this.projectWebServiceHandler.infoNotificationEmitter.subscribe(function(t){r.showMessage({type:"info",message:t})})},n.prototype.ngAfterViewInit=function(){this.console.nativeElement&&(this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight)},n.prototype.ngOnDestroy=function(){this.nodeSubscription.unsubscribe(),this.linkSubscription.unsubscribe(),this.drawingSubscription.unsubscribe(),this.serverRequestsSubscription.unsubscribe(),this.errorSubscription.unsubscribe(),this.warningSubscription.unsubscribe(),this.infoSubscription.unsubscribe()},n.prototype.applyFilter=function(r){this.selectedFilter=r,this.filteredEvents=this.getFilteredEvents(),this.cd.detectChanges()},n.prototype.onKeyDown=function(r){"Enter"===r.key&&this.handleCommand()},n.prototype.handleCommand=function(){var r=this;if("help"===this.command||""===this.command)this.showCommand("Available commands: help, version, console {node name}, start all, start {node name}, stop all, stop {node name}, suspend all, suspend {node name}, reload all, reload {node name}, show {node name}.");else if("version"===this.command)this.showCommand("Current version: "+this.version);else if("start all"===this.command)this.showCommand("Starting all nodes..."),this.nodeService.startAll(this.server,this.project).subscribe(function(){r.showCommand("All nodes started.")});else if("stop all"===this.command)this.showCommand("Stopping all nodes..."),this.nodeService.stopAll(this.server,this.project).subscribe(function(){r.showCommand("All nodes stopped.")});else if("suspend all"===this.command)this.showCommand("Suspending all nodes..."),this.nodeService.suspendAll(this.server,this.project).subscribe(function(){r.showCommand("All nodes suspended.")});else if("reload all"===this.command)this.showCommand("Reloading all nodes..."),this.nodeService.reloadAll(this.server,this.project).subscribe(function(){r.showCommand("All nodes reloaded.")});else if(this.regexStart.test(this.command)||this.regexStop.test(this.command)||this.regexSuspend.test(this.command)||this.regexReload.test(this.command)||this.regexShow.test(this.command)||this.regexConsole.test(this.command)){var t=this.command.split(/[ ,]+/),i=this.nodesDataSource.getItems().find(function(a){return a.name.valueOf()===t[1].valueOf()});if(i)if(this.regexStart.test(this.command))this.showCommand("Starting node "+t[1]+"..."),this.nodeService.start(this.server,i).subscribe(function(){return r.showCommand("Node "+i.name+" started.")});else if(this.regexStop.test(this.command))this.showCommand("Stopping node "+t[1]+"..."),this.nodeService.stop(this.server,i).subscribe(function(){return r.showCommand("Node "+i.name+" stopped.")});else if(this.regexSuspend.test(this.command))this.showCommand("Suspending node "+t[1]+"..."),this.nodeService.suspend(this.server,i).subscribe(function(){return r.showCommand("Node "+i.name+" suspended.")});else if(this.regexReload.test(this.command))this.showCommand("Reloading node "+t[1]+"..."),this.nodeService.reload(this.server,i).subscribe(function(){return r.showCommand("Node "+i.name+" reloaded.")});else if(this.regexConsole.test(this.command))if("started"===i.status){this.showCommand("Launching console for node "+t[1]+"...");var o=i.console_host;nz.IPv6.isValid(o)&&(o="["+o+"]"),"telnet"===i.console_type?this.protocolHandlerService.open("gns3+telnet://"+o+":"+i.console+"?name="+i.name+"&project_id="+i.project_id+"&node_id="+i.node_id):"vnc"===i.console_type?this.protocolHandlerService.open("gns3+vnc://"+o+":"+i.console+"?name="+i.name+"&project_id="+i.project_id+"&node_id="+i.node_id):i.console_type.startsWith("spice")?this.protocolHandlerService.open("gns3+spice://"+o+":"+i.console+"?name="+i.name+"&project_id="+i.project_id+"&node_id="+i.node_id):i.console_type.startsWith("http")?window.open(i.console_type+"://"+o+":"+i.console):this.showCommand("Supported console types are: telnet, vnc, spice and spice+agent")}else this.showCommand("This node must be started before a console can be opened.");else this.regexShow.test(this.command)&&(this.showCommand("Information about node "+i.name+":"),this.showCommand(this.printNode(i)));else this.showCommand("Node with "+t[1]+" name was not found.")}else this.showCommand("Unknown syntax: "+this.command);this.command="",this.cd.detectChanges()},n.prototype.clearConsole=function(){this.filteredEvents=[],this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight},n.prototype.showCommand=function(r){this.showMessage({type:"command",message:r})},n.prototype.showMessage=function(r){var t=this;this.logEventsDataSource.add(r),this.filteredEvents=this.getFilteredEvents(),this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight,setTimeout(function(){t.console.nativeElement.scrollTop=t.console.nativeElement.scrollHeight},100),this.cd.detectChanges()},n.prototype.getFilteredEvents=function(){return"server requests"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(r){return"server request"===r.type}):"errors"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(r){return"error"===r.type}):"warnings"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(r){return"warning"===r.type}):"info"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(r){return"info"===r.type}):"map updates"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(r){return"map update"===r.type||"command"===r.type}):this.logEventsDataSource.getItems()},n.prototype.printNode=function(r){return"command_line: "+r.command_line+",\n compute_id: "+r.compute_id+",\n console: "+r.console+",\n console_host: "+r.console_host+",\n console_type: "+r.console_type+",\n first_port_name: "+r.first_port_name+",\n height: "+r.height+",\n label: "+r.label.text+",\n name: "+r.name+",\n node_directory: "+r.node_directory+",\n node_id: "+r.node_id+",\n node_type: "+r.node_type+",\n port_name_format: "+r.port_name_format+",\n port_segment_size: "+r.port_segment_size+", "+this.printPorts(r.ports)+"project_id: "+r.project_id+",\n status: "+r.status+",\n symbol: "+r.symbol+",\n symbol_url: "+r.symbol_url+",\n width: "+r.width+",\n x: "+r.x+",\n y: "+r.y+",\n z: "+r.z},n.prototype.printPorts=function(r){var t="ports: ";return r.forEach(function(i){t=t+"adapter_number: "+i.adapter_number+",\n link_type: "+i.link_type+",\n name: "+i.name+",\n port_number: "+i.port_number+",\n short_name: "+i.short_name+", "}),t},n.prototype.printLink=function(r){return"capture_file_name: "+r.capture_file_name+",\n capture_file_path: "+r.capture_file_path+",\n capturing: "+r.capturing+",\n link_id: "+r.link_id+",\n link_type: "+r.link_type+",\n project_id: "+r.project_id+",\n suspend: "+r.suspend+", "},n.prototype.printDrawing=function(r){return"drawing_id: "+r.drawing_id+",\n project_id: "+r.project_id+",\n rotation: "+r.rotation+",\n x: "+r.x+",\n y: "+r.y+",\n z: "+r.z},n.\u0275fac=function(t){return new(t||n)(e.Y36(jL),e.Y36(Wr),e.Y36(wa.G),e.Y36(QS),e.Y36(Rz),e.Y36(Qo.wh),e.Y36(sc.f),e.Y36(e.sBO),e.Y36(cd),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-log-console"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(V1e,5),2&t)&&(e.iGM(o=e.CRH())&&(i.console=o.first))},inputs:{server:"server",project:"project"},decls:25,vars:16,consts:[[1,"consoleHeader"],[1,"consoleFiltering"],[1,"filterButton",3,"ngClass","matMenuTriggerFor"],["xPosition","after"],["filterMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"console",3,"ngClass","ngStyle"],["console",""],["class","console-item",4,"ngFor","ngForOf"],[1,"consoleInput",3,"ngClass"],[1,"inputIcon"],["autofocus","","type","text",1,"commandLine",3,"ngClass","ngModel","keydown","ngModelChange"],[1,"console-item"]],template:function(t,i){if(1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"button",2),e._uU(3," Apply filter "),e.qZA(),e.TgZ(4,"mat-menu",3,4),e.TgZ(6,"button",5),e.NdJ("click",function(){return i.applyFilter("all")}),e._uU(7,"all"),e.qZA(),e.TgZ(8,"button",5),e.NdJ("click",function(){return i.applyFilter("errors")}),e._uU(9,"errors"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return i.applyFilter("warnings")}),e._uU(11,"warnings"),e.qZA(),e.TgZ(12,"button",5),e.NdJ("click",function(){return i.applyFilter("info")}),e._uU(13,"info"),e.qZA(),e.TgZ(14,"button",5),e.NdJ("click",function(){return i.applyFilter("map updates")}),e._uU(15,"map updates"),e.qZA(),e.TgZ(16,"button",5),e.NdJ("click",function(){return i.applyFilter("server requests")}),e._uU(17,"server requests"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"div",6,7),e.YNc(20,q1e,3,1,"span",8),e.qZA(),e.TgZ(21,"div",9),e.TgZ(22,"mat-icon",10),e._uU(23,"keyboard_arrow_right"),e.qZA(),e.TgZ(24,"input",11),e.NdJ("keydown",function(s){return i.onKeyDown(s)})("ngModelChange",function(s){return i.command=s}),e.qZA(),e.qZA()),2&t){var o=e.MAs(5);e.xp6(2),e.Q6J("ngClass",e.VKq(8,z2,i.isLightThemeEnabled))("matMenuTriggerFor",o),e.xp6(16),e.Q6J("ngClass",e.VKq(10,z2,i.isLightThemeEnabled))("ngStyle",i.style),e.xp6(2),e.Q6J("ngForOf",i.filteredEvents),e.xp6(1),e.Q6J("ngClass",e.VKq(12,z2,i.isLightThemeEnabled)),e.xp6(3),e.Q6J("ngClass",e.VKq(14,z2,i.isLightThemeEnabled))("ngModel",i.command)}},directives:[kt.mk,Qa,Ts,Nr,kt.PC,kt.sg,sr,re.Fj,re.JJ,re.On],styles:[".consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px rgba(0,0,0,.2),0 6px 20px rgba(0,0,0,.19);position:fixed;bottom:20px;left:20px;height:180px;width:600px;background:#263238;color:#fff;overflow:hidden;font-size:12px}.lightTheme[_ngcontent-%COMP%]{background:white!important;color:#000}.filterButton[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;margin-top:0;outline:none;color:#dbd5d5;font-weight:bold;padding:0}.consoleFiltering[_ngcontent-%COMP%]{display:flex}.consoleHeader[_ngcontent-%COMP%]{width:100%;height:40px;font-size:12px;overflow:hidden;display:flex;padding:2px;justify-content:space-between}.console[_ngcontent-%COMP%]{width:596px;height:120px;overflow-y:scroll;padding:2px;color:#dbd5d5;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.consoleInput[_ngcontent-%COMP%]{width:100%;height:30px;padding:2px;display:flex}.commandLine[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:none}.inputIcon[_ngcontent-%COMP%]{margin-top:2px}mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}input[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.closeButton[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0}),n}(),Nz=f(20039),Zz=f(3397),Lz=f(97916),z1e=["terminal"],W1e=function(){function n(r,t){this.consoleService=r,this.themeService=t,this.term=new Nz.Terminal,this.fitAddon=new Lz.FitAddon,this.isLightThemeEnabled=!1,this.copiedText=""}return n.prototype.ngOnInit=function(){var r=this;this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.consoleService.consoleResized.subscribe(function(t){var i=Math.floor(t.width/9),o=Math.floor(t.height/17);r.consoleService.setNumberOfColumns(i),r.consoleService.setNumberOfRows(o),r.term.resize(i,o)}),this.consoleService.getNumberOfColumns()&&this.consoleService.getNumberOfRows()&&this.term.resize(this.consoleService.getNumberOfColumns(),this.consoleService.getNumberOfRows())},n.prototype.ngAfterViewInit=function(){var r=this;this.term.open(this.terminal.nativeElement),this.isLightThemeEnabled&&this.term.setOption("theme",{background:"white",foreground:"black",cursor:"black"});var t=new WebSocket(this.consoleService.getUrl(this.server,this.node));t.onerror=function(o){r.term.write("Connection lost")},t.onclose=function(o){r.consoleService.closeConsoleForNode(r.node)};var i=new Zz.AttachAddon(t);this.term.loadAddon(i),this.term.setOption("cursorBlink",!0),this.term.loadAddon(this.fitAddon),this.fitAddon.activate(this.term),this.term.focus(),this.term.attachCustomKeyEventHandler(function(o){return!(("KeyC"===o.code||"KeyV"===o.code)&&o.ctrlKey&&o.shiftKey)})},n.\u0275fac=function(t){return new(t||n)(e.Y36(cd),e.Y36(sc.f))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-web-console"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(z1e,5),2&t)&&(e.iGM(o=e.CRH())&&(i.terminal=o.first))},inputs:{server:"server",project:"project",node:"node"},decls:2,vars:0,consts:[["id","terminal",1,"lightTheme"],["terminal",""]],template:function(t,i){1&t&&e._UZ(0,"div",0,1)},styles:[".xterm{position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm{cursor:text}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}\n",".lightTheme{background:white!important;color:#000!important}\n"],encapsulation:2}),n}();function G1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",10),e.NdJ("mousemove",function(o){return e.CHM(t),e.oxw().dragWidget(o)},!1,e.evT)("mouseup",function(){return e.CHM(t),e.oxw().toggleDragging(!1)},!1,e.evT),e.qZA()}}function Y1e(n,r){1&n&&(e.TgZ(0,"div",11),e._uU(1,"GNS3 console"),e.qZA())}var eT=function(n){return{lightThemeConsoleHeader:n}};function J1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",11),e._uU(1),e.qZA(),e.TgZ(2,"button",7),e.NdJ("click",function(){e.CHM(t);var s=e.oxw().index;return e.oxw().removeTab(s)}),e.TgZ(3,"mat-icon"),e._uU(4,"close"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw().$implicit,o=e.oxw();e.xp6(1),e.Oqu(i.name),e.xp6(1),e.Q6J("ngClass",e.VKq(2,eT,o.isLightThemeEnabled))}}function Q1e(n,r){if(1&n&&(e.TgZ(0,"mat-tab",12),e.YNc(1,J1e,5,4,"ng-template",4),e.qZA()),2&n){var t=e.oxw();e.Q6J("label",t.tab)}}function K1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(t),e.oxw().minimize(!0)}),e.TgZ(1,"mat-icon"),e._uU(2,"remove"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("ngClass",e.VKq(1,eT,i.isLightThemeEnabled))}}function X1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(t),e.oxw().minimize(!1)}),e.TgZ(1,"mat-icon"),e._uU(2,"web_asset"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("ngClass",e.VKq(1,eT,i.isLightThemeEnabled))}}function $1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",13),e.NdJ("mouseover",function(s){return e.CHM(t),e.oxw().disableScroll(s)})("mouseout",function(s){return e.CHM(t),e.oxw().enableScroll(s)}),e._UZ(1,"app-web-console",14),e.qZA()}if(2&n){var i=r.index,o=e.oxw();e.Q6J("hidden",o.isMinimized),e.xp6(1),e.Q6J("hidden",o.selected.value!==i+1)("server",o.server)("node",o.nodes[i])}}var eSe=function(n){return{lightTheme:n}},tSe=function(){return{right:!0,left:!0,bottom:!0,top:!0}},nSe=function(){function n(r,t,i){this.consoleService=r,this.themeService=t,this.mapSettingsService=i,this.closeConsole=new e.vpe,this.filters=["all","errors","warnings","info","map updates","server requests"],this.selectedFilter="all",this.style={},this.styleInside={height:"120px"},this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1,this.isMinimized=!1,this.resizedWidth=720,this.resizedHeight=480,this.nodes=[],this.selected=new re.NI(0)}return n.prototype.ngOnInit=function(){var r=this;this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.style={bottom:"20px",left:"80px",width:"720px",height:"460px"},this.consoleService.nodeConsoleTrigger.subscribe(function(t){r.addTab(t,!0)}),this.consoleService.closeNodeConsoleTrigger.subscribe(function(t){var i=r.nodes.findIndex(function(o){return o.node_id===t.node_id});r.removeTab(i)})},n.prototype.minimize=function(r){this.isMinimized=r,this.style=r?{bottom:"20px",left:"20px",width:this.resizedWidth+"px",height:"56px"}:{bottom:"20px",left:"80px",width:this.resizedWidth+"px",height:this.resizedHeight+"px"}},n.prototype.addTab=function(r,t){this.minimize(!1),this.nodes.push(r),t&&this.selected.setValue(this.nodes.length),this.consoleService.openConsoles++},n.prototype.removeTab=function(r){this.nodes.splice(r,1),this.consoleService.openConsoles--},n.prototype.toggleDragging=function(r){this.isDraggingEnabled=r},n.prototype.dragWidget=function(r){var t=Number(r.movementX),i=Number(r.movementY),o=Number(this.style.width.split("px")[0]),a=Number(this.style.height.split("px")[0]),s=Number(this.style.left.split("px")[0])+t;if(this.style.top){var u=Number(this.style.top.split("px")[0])+i;this.style={position:"fixed",left:s+"px",top:u+"px",width:o+"px",height:a+"px"}}else{var p=Number(this.style.bottom.split("px")[0])-i;this.style={position:"fixed",left:s+"px",bottom:p+"px",width:o+"px",height:a+"px"}}},n.prototype.validate=function(r){return!(r.rectangle.width&&r.rectangle.height&&(r.rectangle.width<500||r.rectangle.height<100))},n.prototype.onResizeEnd=function(r){this.style={position:"fixed",left:r.rectangle.left+"px",top:r.rectangle.top+"px",width:r.rectangle.width+"px",height:r.rectangle.height+"px"},this.styleInside={height:r.rectangle.height-60+"px",width:r.rectangle.width+"px"},this.consoleService.consoleResized.next({width:r.rectangle.width,height:r.rectangle.height-53}),this.resizedWidth=r.rectangle.width,this.resizedHeight=r.rectangle.height},n.prototype.close=function(){this.closeConsole.emit(!1)},n.prototype.enableScroll=function(r){this.mapSettingsService.isScrollDisabled.next(!1)},n.prototype.disableScroll=function(r){this.mapSettingsService.isScrollDisabled.next(!0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(cd),e.Y36(sc.f),e.Y36(Ou))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-console-wrapper"]],inputs:{server:"server",project:"project"},outputs:{closeConsole:"closeConsole"},decls:14,vars:23,consts:[[3,"mousemove","mouseup",4,"ngIf"],["mwlResizable","",1,"consoleWrapper",3,"ngClass","ngStyle","validateResize","resizeEdges","enableGhostResize","mousedown","resizeStart","resizeEnd"],[1,"consoleHeader",3,"ngClass"],[1,"tabs",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[3,"label",4,"ngFor","ngForOf"],["style","color: white","mat-icon-button","",3,"ngClass","click",4,"ngIf"],["mat-icon-button","",2,"color","white",3,"ngClass","click"],[3,"hidden","server","project"],["class","xterm-console",3,"hidden","mouseover","mouseout",4,"ngFor","ngForOf"],[3,"mousemove","mouseup"],[1,"col",2,"margin-left","20px"],[3,"label"],[1,"xterm-console",3,"hidden","mouseover","mouseout"],[3,"hidden","server","node"]],template:function(t,i){1&t&&(e.YNc(0,G1e,1,0,"div",0),e.TgZ(1,"div",1),e.NdJ("mousedown",function(){return i.toggleDragging(!0)})("resizeStart",function(){return i.toggleDragging(!1)})("resizeEnd",function(a){return i.onResizeEnd(a)}),e.TgZ(2,"div",2),e.TgZ(3,"mat-tab-group",3),e.NdJ("selectedIndexChange",function(a){return i.selected.setValue(a)}),e.TgZ(4,"mat-tab"),e.YNc(5,Y1e,2,0,"ng-template",4),e.qZA(),e.YNc(6,Q1e,2,1,"mat-tab",5),e.qZA(),e.YNc(7,K1e,3,3,"button",6),e.YNc(8,X1e,3,3,"button",6),e.TgZ(9,"button",7),e.NdJ("click",function(){return i.close()}),e.TgZ(10,"mat-icon"),e._uU(11,"close"),e.qZA(),e.qZA(),e.qZA(),e._UZ(12,"app-log-console",8),e.YNc(13,$1e,2,4,"div",9),e.qZA()),2&t&&(e.Q6J("ngIf",i.isDraggingEnabled),e.xp6(1),e.Q6J("ngClass",e.VKq(16,eSe,i.isLightThemeEnabled))("ngStyle",i.style)("validateResize",i.validate)("resizeEdges",e.DdM(18,tSe))("enableGhostResize",!0),e.xp6(1),e.Q6J("ngClass",e.VKq(19,eT,i.isLightThemeEnabled)),e.xp6(1),e.Q6J("selectedIndex",i.selected.value),e.xp6(3),e.Q6J("ngForOf",i.nodes),e.xp6(1),e.Q6J("ngIf",!i.isMinimized),e.xp6(1),e.Q6J("ngIf",i.isMinimized),e.xp6(1),e.Q6J("ngClass",e.VKq(21,eT,i.isLightThemeEnabled)),e.xp6(3),e.Q6J("hidden",0!==i.selected.value||i.isMinimized)("server",i.server)("project",i.project),e.xp6(1),e.Q6J("ngForOf",i.nodes))},directives:[kt.O5,vk.E$,kt.mk,kt.PC,Eo.SP,Eo.uX,Eo.uD,kt.sg,An,sr,j1e,W1e],styles:["@media screen and (max-width: 700px){.consoleWrapper[_ngcontent-%COMP%]{visibility:hidden}}.consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px rgba(0,0,0,.2),0 6px 20px rgba(0,0,0,.19);position:fixed;bottom:40px;left:80px;height:180px;width:600px;background:#000000!important;color:#fff;overflow:hidden;font-size:12px;border-radius:8px}.lightTheme[_ngcontent-%COMP%]{background:white!important;color:#000}.filterButton[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;margin-top:0;outline:none;color:#dbd5d5;font-weight:bold;padding:0}.consoleFiltering[_ngcontent-%COMP%]{display:flex}.consoleHeader[_ngcontent-%COMP%]{width:100%;font-size:12px;overflow:hidden;display:flex;padding:2px;justify-content:space-between;background:#263238!important}.lightThemeConsoleHeader[_ngcontent-%COMP%]{background:white!important;color:#000!important}[_nghost-%COMP%] .mat-tab-label{height:3rem!important;min-width:8rem!important}[_nghost-%COMP%] .mat-tab-label.mat-tab-label-active{border-bottom:2px solid #0097a7;box-sizing:border-box;font-weight:1200}[_nghost-%COMP%] .mat-ink-bar{display:none!important}.tabs[_ngcontent-%COMP%]{width:80%}.console[_ngcontent-%COMP%]{width:596px;height:120px;overflow-y:scroll;padding:2px;color:#dbd5d5;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.xterm-console[_ngcontent-%COMP%]{background:black}.consoleInput[_ngcontent-%COMP%]{width:100%;height:30px;padding:2px;display:flex}.commandLine[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:none}.inputIcon[_ngcontent-%COMP%]{margin-top:2px}mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}input[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.closeButton[_ngcontent-%COMP%]{cursor:pointer}"]}),n}(),rSe=["topologySummaryContainer"];function iSe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-d3-map",39),e.NdJ("nodeDragged",function(a){return e.CHM(t),e.oxw(2).onNodeDragged(a)})("drawingDragged",function(a){return e.CHM(t),e.oxw(2).onDrawingDragged(a)})("onLinkCreated",function(a){return e.CHM(t),e.oxw(2).onLinkCreated(a)})("onDrawingResized",function(a){return e.CHM(t),e.oxw(2).onDrawingResized(a)}),e.qZA()}if(2&n){var i=e.oxw(2);e.Q6J("server",i.server)("project",i.project)("symbols",i.symbols)("nodes",i.nodes)("links",i.links)("drawings",i.drawings)("width",i.project.scene_width)("height",i.project.scene_height)("show-interface-labels",i.isInterfaceLabelVisible)("readonly",i.inReadOnlyMode)}}function oSe(n,r){if(1&n&&e._UZ(0,"app-experimental-map",40),2&n){var t=e.oxw(2);e.Q6J("symbols",t.symbols)("nodes",t.nodes)("links",t.links)("drawings",t.drawings)("width",t.project.scene_width)("height",t.project.scene_height)("show-interface-labels",t.isInterfaceLabelVisible)("selection-tool",t.tools.selection)("moving-tool",t.tools.moving)("draw-link-tool",t.tools.draw_link)("readonly",t.inReadOnlyMode)}}function aSe(n,r){1&n&&e._UZ(0,"mat-icon",41)}function sSe(n,r){1&n&&e._UZ(0,"mat-icon",42)}var W2=function(n){return{lightTheme:n}},lSe=function(n){return{selected:n}};function uSe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",43),e.TgZ(1,"app-template",44),e.NdJ("onNodeCreation",function(a){return e.CHM(t),e.oxw(2).onNodeCreation(a)}),e.qZA(),e.TgZ(2,"button",45),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).toggleDrawLineMode()}),e.TgZ(3,"mat-icon"),e._uU(4,"timeline"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.Q6J("ngClass",e.VKq(5,W2,i.isLightThemeEnabled)),e.xp6(1),e.Q6J("server",i.server)("project",i.project),e.xp6(1),e.Q6J("ngClass",e.VKq(7,lSe,i.tools.draw_link))("color",i.tools.draw_link?"primary":"basic")}}function cSe(n,r){if(1&n&&(e.TgZ(0,"div",27),e._UZ(1,"app-snapshot-menu-item",12),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("server",t.server)("project",t.project)}}function dSe(n,r){if(1&n&&e._UZ(0,"app-draw-link-tool",46),2&n){var t=e.oxw(2);e.Q6J("links",t.links)}}function pSe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-console-wrapper",47),e.NdJ("closeConsole",function(a){return e.CHM(t),e.oxw(2).toggleShowConsole(a)}),e.qZA()}if(2&n){var i=e.oxw(2);e.Q6J("server",i.server)("project",i.project)}}var fSe=function(n,r){return{unmarkedLight:n,marked:r}},hSe=function(n){return["/server",n,"projects"]},mSe=function(){return["/servers"]},vSe=function(n){return{visible:n}};function gSe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",2),e.YNc(1,iSe,1,10,"app-d3-map",3),e.YNc(2,oSe,1,11,"app-experimental-map",4),e.TgZ(3,"div",5),e.TgZ(4,"button",6),e.YNc(5,aSe,1,0,"mat-icon",7),e.YNc(6,sSe,1,0,"mat-icon",8),e.qZA(),e.TgZ(7,"div",9),e.YNc(8,uSe,5,9,"div",10),e.TgZ(9,"div",11),e._UZ(10,"app-nodes-menu",12),e._UZ(11,"app-context-menu",13),e.qZA(),e.qZA(),e.TgZ(12,"div"),e.TgZ(13,"button",14),e.TgZ(14,"mat-icon"),e._uU(15,"view_module"),e.qZA(),e.qZA(),e.TgZ(16,"button",15),e.NdJ("click",function(){e.CHM(t);var p=e.oxw();return p.toggleShowTopologySummary(!p.isTopologySummaryVisible)}),e.TgZ(17,"mat-icon"),e._uU(18,"toc"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"mat-menu",16,17),e.TgZ(21,"button",18),e.TgZ(22,"mat-icon"),e._uU(23,"insert_drive_file"),e.qZA(),e.TgZ(24,"span"),e._uU(25,"Project settings"),e.qZA(),e.qZA(),e.TgZ(26,"button",19),e.TgZ(27,"mat-icon"),e._uU(28,"work"),e.qZA(),e.TgZ(29,"span"),e._uU(30,"Projects"),e.qZA(),e.qZA(),e.TgZ(31,"button",19),e.TgZ(32,"mat-icon"),e._uU(33,"developer_board"),e.qZA(),e.TgZ(34,"span"),e._uU(35,"Servers"),e.qZA(),e.qZA(),e.TgZ(36,"button",19),e.TgZ(37,"mat-icon"),e._uU(38,"data_usage"),e.qZA(),e.TgZ(39,"span"),e._uU(40,"System Status"),e.qZA(),e.qZA(),e.TgZ(41,"button",20),e.TgZ(42,"mat-icon"),e._uU(43,"settings"),e.qZA(),e.TgZ(44,"span"),e._uU(45,"Settings"),e.qZA(),e.qZA(),e._UZ(46,"app-import-appliance",12),e.qZA(),e.TgZ(47,"mat-menu",16,21),e.TgZ(49,"div"),e.TgZ(50,"button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().addNewProject()}),e.TgZ(51,"mat-icon"),e._uU(52,"add"),e.qZA(),e.TgZ(53,"span"),e._uU(54,"Add new blank project"),e.qZA(),e.qZA(),e.TgZ(55,"button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().saveProject()}),e.TgZ(56,"mat-icon"),e._uU(57,"save"),e.qZA(),e.TgZ(58,"span"),e._uU(59,"Save project as"),e.qZA(),e.qZA(),e.TgZ(60,"button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().editProject()}),e.TgZ(61,"mat-icon"),e._uU(62,"edit"),e.qZA(),e.TgZ(63,"span"),e._uU(64,"Edit project"),e.qZA(),e.qZA(),e.TgZ(65,"button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().exportProject()}),e.TgZ(66,"mat-icon"),e._uU(67,"call_made"),e.qZA(),e.TgZ(68,"span"),e._uU(69,"Export portable project"),e.qZA(),e.qZA(),e.TgZ(70,"button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().importProject()}),e.TgZ(71,"mat-icon"),e._uU(72,"call_received"),e.qZA(),e.TgZ(73,"span"),e._uU(74,"Import portable project"),e.qZA(),e.qZA(),e.TgZ(75,"button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().closeProject()}),e.TgZ(76,"mat-icon"),e._uU(77,"close"),e.qZA(),e.TgZ(78,"span"),e._uU(79,"Close project"),e.qZA(),e.qZA(),e.TgZ(80,"button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().deleteProject()}),e.TgZ(81,"mat-icon"),e._uU(82,"delete"),e.qZA(),e.TgZ(83,"span"),e._uU(84,"Delete project"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(85,"mat-menu",16,23),e.TgZ(87,"div",24),e.TgZ(88,"mat-checkbox",25),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleShowInterfaceLabels(p.checked)}),e._uU(89," Show interface labels "),e.qZA(),e._UZ(90,"br"),e.TgZ(91,"mat-checkbox",25),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleShowConsole(p.checked)}),e._uU(92," Show console "),e.qZA(),e._UZ(93,"br"),e.TgZ(94,"mat-checkbox",25),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleShowTopologySummary(p.checked)}),e._uU(95," Show topology/servers summary "),e.qZA(),e._UZ(96,"br"),e.TgZ(97,"mat-checkbox",25),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleNotifications(p.checked)}),e._uU(98," Show notifications "),e.qZA(),e._UZ(99,"br"),e.TgZ(100,"mat-checkbox",25),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleLayers(p.checked)}),e._uU(101," Show layers "),e.qZA(),e._UZ(102,"br"),e.TgZ(103,"mat-checkbox",25),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleGrid(p.checked)}),e._uU(104," Show grid "),e.qZA(),e._UZ(105,"br"),e.TgZ(106,"mat-checkbox",25),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleSnapToGrid(p.checked)}),e._uU(107," Snap to grid "),e.qZA(),e._UZ(108,"br"),e.TgZ(109,"mat-checkbox",25),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleSymbolScaling(p.checked)}),e._uU(110," Scale symbols "),e.qZA(),e._UZ(111,"br"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(112,"div",26),e.TgZ(113,"div",27),e.TgZ(114,"button",28),e.NdJ("click",function(){return e.CHM(t),e.oxw().toggleMovingMode()}),e.TgZ(115,"mat-icon"),e._uU(116,"near_me"),e.qZA(),e.qZA(),e.TgZ(117,"button",29),e.NdJ("click",function(){return e.CHM(t),e.oxw().toggleMovingMode()}),e.TgZ(118,"mat-icon"),e._uU(119,"zoom_out_map"),e.qZA(),e.qZA(),e.TgZ(120,"button",30),e.NdJ("click",function(){return e.CHM(t),e.oxw().zoomIn()}),e.TgZ(121,"mat-icon"),e._uU(122,"zoom_in"),e.qZA(),e.qZA(),e.TgZ(123,"button",31),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetZoom()}),e.TgZ(124,"mat-icon"),e._uU(125,"adjust"),e.qZA(),e.qZA(),e.TgZ(126,"button",32),e.NdJ("click",function(){return e.CHM(t),e.oxw().zoomOut()}),e.TgZ(127,"mat-icon"),e._uU(128,"zoom_out"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(129,"div",27),e._UZ(130,"app-project-map-menu",12),e.qZA(),e.YNc(131,cSe,2,2,"div",33),e.qZA(),e._UZ(132,"app-progress"),e.YNc(133,dSe,1,1,"app-draw-link-tool",34),e._UZ(134,"app-drawing-dragged",12),e._UZ(135,"app-drawing-resized",35),e._UZ(136,"app-interface-label-dragged",35),e._UZ(137,"app-link-created",12),e._UZ(138,"app-node-dragged",12),e._UZ(139,"app-node-label-dragged",35),e.TgZ(140,"app-text-added",36),e.NdJ("drawingSaved",function(){return e.CHM(t),e.oxw().onDrawingSaved()}),e.qZA(),e._UZ(141,"app-text-edited",35),e.TgZ(142,"div",37),e.YNc(143,pSe,1,2,"app-console-wrapper",38),e.qZA(),e.qZA()}if(2&n){var i=e.MAs(20),o=e.MAs(48),a=e.MAs(86),s=e.oxw();e.Q6J("ngClass",e.VKq(52,W2,s.isLightThemeEnabled)),e.xp6(1),e.Q6J("ngIf",!s.settings.angular_map),e.xp6(1),e.Q6J("ngIf",s.settings.angular_map),e.xp6(1),e.Q6J("ngClass",e.VKq(54,W2,s.isLightThemeEnabled)),e.xp6(1),e.Q6J("matMenuTriggerFor",i),e.xp6(1),e.Q6J("ngIf",!s.isLightThemeEnabled),e.xp6(1),e.Q6J("ngIf",s.isLightThemeEnabled),e.xp6(2),e.Q6J("ngIf",!s.readonly),e.xp6(2),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("project",s.project)("server",s.server),e.xp6(2),e.Q6J("matMenuTriggerFor",a),e.xp6(3),e.Q6J("ngClass",e.WLB(56,fSe,!s.isTopologySummaryVisible&&s.isLightThemeEnabled,s.isTopologySummaryVisible)),e.xp6(3),e.Q6J("overlapTrigger",!1),e.xp6(2),e.Q6J("matMenuTriggerFor",o),e.xp6(5),e.Q6J("routerLink",e.VKq(59,hSe,s.server.id)),e.xp6(5),e.Q6J("routerLink",e.DdM(61,mSe)),e.xp6(5),e.MGl("routerLink","/server/",s.server.id,"/systemstatus"),e.xp6(10),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("overlapTrigger",!1),e.xp6(38),e.Q6J("overlapTrigger",!1),e.xp6(3),e.Q6J("ngModel",s.isInterfaceLabelVisible),e.xp6(3),e.Q6J("ngModel",s.isConsoleVisible),e.xp6(3),e.Q6J("ngModel",s.isTopologySummaryVisible),e.xp6(3),e.Q6J("ngModel",s.notificationsVisibility),e.xp6(3),e.Q6J("ngModel",s.layersVisibility),e.xp6(3),e.Q6J("ngModel",s.gridVisibility),e.xp6(3),e.Q6J("ngModel",s.project.snap_to_grid),e.xp6(3),e.Q6J("ngModel",s.symbolScaling),e.xp6(3),e.Q6J("ngClass",e.VKq(62,W2,s.isLightThemeEnabled)),e.xp6(2),e.Q6J("color",s.tools.moving?"basic":"primary"),e.xp6(3),e.Q6J("color",s.tools.moving?"primary":"basic"),e.xp6(13),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("ngIf",!s.readonly),e.xp6(2),e.Q6J("ngIf",s.tools.draw_link),e.xp6(1),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("server",s.server),e.xp6(1),e.Q6J("server",s.server),e.xp6(1),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("server",s.server),e.xp6(1),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("server",s.server),e.xp6(1),e.Q6J("ngClass",e.VKq(64,vSe,!s.isConsoleVisible)),e.xp6(1),e.Q6J("ngIf",s.project)}}function _Se(n,r){}var ySe=function(){function n(r,t,i,o,a,s,u,p,m,C,P,L,G,Y,te,de,Me,st,tt,at,pt,Je,et,It,Et,pn,Wt,ot,Dt,mn,dn,xn,Fn,er,mr,jr,ir,Gr,ai,vr,Bi,Bo,hr,dr,or,qn,Ko,wi,Ci){this.route=r,this.serverService=t,this.projectService=i,this.nodeService=o,this.drawingService=a,this.progressService=s,this.projectWebServiceHandler=u,this.mapChangeDetectorRef=p,this.nodeWidget=m,this.drawingsWidget=C,this.linkWidget=P,this.labelWidget=L,this.interfaceLabelWidget=G,this.mapNodeToNode=Y,this.mapDrawingToDrawing=te,this.mapLabelToLabel=de,this.mapLinkToLink=Me,this.mapLinkNodeToLinkNode=st,this.nodesDataSource=tt,this.linksDataSource=at,this.drawingsDataSource=pt,this.settingsService=Je,this.toolsService=et,this.selectionManager=It,this.selectionTool=Et,this.recentlyOpenedProjectService=pn,this.movingEventSource=Wt,this.mapScaleService=ot,this.nodeCreatedLabelStylesFixer=Dt,this.toasterService=mn,this.dialog=dn,this.router=xn,this.mapNodesDataSource=Fn,this.mapLinksDataSource=er,this.mapDrawingsDataSource=mr,this.mapSymbolsDataSource=jr,this.mapSettingsService=ir,this.ethernetLinkWidget=Gr,this.serialLinkWidget=ai,this.bottomSheet=vr,this.notificationService=Bi,this.themeService=Bo,this.title=hr,this.nodeConsoleService=dr,this.symbolService=or,this.protocolHandlerService=qn,this.cd=Ko,this.cfr=wi,this.injector=Ci,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.isProjectMapMenuVisible=!1,this.isConsoleVisible=!0,this.isTopologySummaryVisible=!0,this.isInterfaceLabelVisible=!1,this.notificationsVisibility=!1,this.layersVisibility=!1,this.gridVisibility=!1,this.toolbarVisibility=!0,this.symbolScaling=!0,this.tools={selection:!0,moving:!1,draw_link:!1,text_editing:!0},this.inReadOnlyMode=!1,this.scrollX=0,this.scrollY=0,this.scrollEnabled=!1,this.isLightThemeEnabled=!1,this.projectMapSubscription=new rs.w}return n.prototype.ngOnInit=function(){var r=this;this.getSettings(),this.progressService.activate(),this.serverService.isServiceInitialized?this.getData():this.projectMapSubscription.add(this.serverService.serviceInitialized.subscribe(function(t){t&&r.getData()})),this.addSubscriptions(),this.addKeyboardListeners(),this.themeService.themeChanged.subscribe(function(t){r.isLightThemeEnabled="light"===r.themeService.getActualTheme()})},n.prototype.getSettings=function(){var r=this;this.isLightThemeEnabled="light"===this.themeService.getActualTheme(),this.cd.detectChanges(),this.settings=this.settingsService.getAll(),this.symbolScaling=this.mapSettingsService.getSymbolScaling(),this.isConsoleVisible=this.mapSettingsService.isLogConsoleVisible,this.mapSettingsService.logConsoleSubject.subscribe(function(t){return r.isConsoleVisible=t}),this.notificationsVisibility="true"===localStorage.getItem("notificationsVisibility"),this.layersVisibility="true"===localStorage.getItem("layersVisibility"),this.gridVisibility="true"===localStorage.getItem("gridVisibility")},n.prototype.lazyLoadTopologySummary=function(){return(0,Jn.mG)(this,void 0,void 0,function(){var r,t;return(0,Jn.Jh)(this,function(i){switch(i.label){case 0:return this.isTopologySummaryVisible?[4,f.e(26).then(f.bind(f,91026))]:[3,2];case 1:return r=i.sent().TopologySummaryComponent,t=this.cfr.resolveComponentFactory(r),this.instance=this.topologySummaryContainer.createComponent(t,null,this.injector),this.instance.instance.server=this.server,this.instance.instance.project=this.project,[3,3];case 2:this.instance&&this.instance.instance&&(this.instance.instance.ngOnDestroy(),this.instance.destroy()),i.label=3;case 3:return[2]}})})},n.prototype.addSubscriptions=function(){var r=this;this.projectMapSubscription.add(this.mapSettingsService.mapRenderedEmitter.subscribe(function(t){r.scrollEnabled&&r.centerCanvas()})),this.projectMapSubscription.add(this.drawingsDataSource.changes.subscribe(function(t){r.drawings=t,r.mapChangeDetectorRef.detectChanges()})),this.projectMapSubscription.add(this.nodesDataSource.changes.subscribe(function(t){!r.server||(t.forEach(function(i){return(0,Jn.mG)(r,void 0,void 0,function(){return(0,Jn.Jh)(this,function(o){return i.symbol_url=this.server.protocol+"//"+this.server.host+":"+this.server.port+"/v2/symbols/"+i.symbol+"/raw",[2]})})}),r.nodes=t,r.mapSettingsService.getSymbolScaling()&&r.applyScalingOfNodeSymbols(),r.mapChangeDetectorRef.detectChanges())})),this.projectMapSubscription.add(this.linksDataSource.changes.subscribe(function(t){r.links=t,r.mapChangeDetectorRef.detectChanges()})),this.projectMapSubscription.add(this.projectWebServiceHandler.errorNotificationEmitter.subscribe(function(t){r.showMessage({type:"error",message:t})})),this.projectMapSubscription.add(this.projectWebServiceHandler.warningNotificationEmitter.subscribe(function(t){r.showMessage({type:"warning",message:t})})),this.projectMapSubscription.add(this.mapSettingsService.symbolScalingSubject.subscribe(function(t){t&&r.applyScalingOfNodeSymbols()}))},n.prototype.applyScalingOfNodeSymbols=function(){var r=this;this.nodesDataSource.getItems().forEach(function(t){if(t.height>r.symbolService.getMaximumSymbolSize()){var i=r.symbolService.scaleDimensionsForNode(t);t.width=i.width,t.height=i.height}})},n.prototype.getData=function(){var r=this,t=this.route.paramMap.subscribe(function(i){var o=parseInt(i.get("server_id"),10);(0,Ya.D)(r.serverService.get(o)).pipe((0,sa.zg)(function(a){return a||r.router.navigate(["/servers"]),r.server=a,r.projectService.get(a,i.get("project_id")).pipe((0,Er.U)(function(s){return s}))}),(0,sa.zg)(function(a){return r.project=a,a||r.router.navigate(["/servers"]),r.projectService.open(r.server,r.project.project_id),r.title.setTitle(r.project.name),r.isInterfaceLabelVisible=r.mapSettingsService.showInterfaceLabels,r.toggleShowTopologySummary(r.mapSettingsService.isTopologySummaryVisible),r.recentlyOpenedProjectService.setServerId(r.server.id.toString()),"opened"===r.project.status?new aa.y(function(s){s.next(r.project)}):r.projectService.open(r.server,r.project.project_id)})).subscribe(function(a){r.onProjectLoad(a)},function(a){r.progressService.setError(a)},function(){r.progressService.deactivate()})});this.projectMapSubscription.add(t)},n.prototype.addKeyboardListeners=function(){var r=this;th.bind("ctrl++",function(t){t.preventDefault(),r.zoomIn()}),th.bind("ctrl+-",function(t){t.preventDefault(),r.zoomOut()}),th.bind("ctrl+0",function(t){t.preventDefault(),r.resetZoom()}),th.bind("ctrl+a",function(t){t.preventDefault();var i=r.mapNodesDataSource.getItems(),o=r.mapDrawingsDataSource.getItems(),a=r.mapLinksDataSource.getItems(),s=r.mapSymbolsDataSource.getItems();r.selectionManager.setSelected(i.concat(o).concat(a).concat(s))}),th.bind("ctrl+h",function(t){t.preventDefault(),r.toolbarVisibility=!r.toolbarVisibility}),th.bind("ctrl+shift+a",function(t){t.preventDefault(),r.selectionManager.setSelected([])}),th.bind("ctrl+shift+s",function(t){t.preventDefault(),r.router.navigate(["/server",r.server.id,"preferences"])}),th.bind("del",function(t){t.preventDefault(),r.deleteItems()})},n.prototype.deleteItems=function(){var r=this;this.bottomSheet.open(ih);var t=this.bottomSheet._openedBottomSheetRef;t.instance.message="Do you want to delete all selected objects?",t.afterDismissed().subscribe(function(o){if(o){var a=r.selectionManager.getSelected();a.filter(function(s){return s instanceof fv}).forEach(function(s){var u=r.mapNodeToNode.convert(s);r.nodeService.delete(r.server,u).subscribe(function(p){r.toasterService.success("Node has been deleted")})}),a.filter(function(s){return s instanceof Cp}).forEach(function(s){var u=r.mapDrawingToDrawing.convert(s);r.drawingService.delete(r.server,u).subscribe(function(p){r.toasterService.success("Drawing has been deleted")})})}})},n.prototype.onProjectLoad=function(r){var t=this;this.readonly=this.projectService.isReadOnly(r),this.recentlyOpenedProjectService.setProjectId(this.project.project_id);var i=this.projectService.nodes(this.server,r.project_id).pipe((0,sa.zg)(function(o){return t.nodesDataSource.set(o),t.projectService.links(t.server,r.project_id)}),(0,sa.zg)(function(o){return t.linksDataSource.set(o),t.projectService.drawings(t.server,r.project_id)})).subscribe(function(o){t.drawingsDataSource.set(o),t.setUpMapCallbacks(),t.setUpProjectWS(r),t.progressService.deactivate()});this.projectMapSubscription.add(i)},n.prototype.setUpProjectWS=function(r){var t=this;this.projectws=new WebSocket(this.notificationService.projectNotificationsPath(this.server,r.project_id)),this.projectws.onmessage=function(i){t.projectWebServiceHandler.handleMessage(JSON.parse(i.data))},this.projectws.onerror=function(i){t.toasterService.error("Connection to host lost. Error: "+i.data)}},n.prototype.setUpWS=function(){this.ws=new WebSocket(this.notificationService.notificationsPath(this.server))},n.prototype.setUpMapCallbacks=function(){var r=this;this.readonly||this.toolsService.selectionToolActivation(!0);var t=this.linkWidget.onContextMenu.subscribe(function(C){var P=r.mapLinkToLink.convert(C.link);r.contextMenu.openMenuForListOfElements([],[],[],[P],C.event.pageY,C.event.pageX)}),i=this.ethernetLinkWidget.onContextMenu.subscribe(function(C){var P=r.mapLinkToLink.convert(C.link);r.contextMenu.openMenuForListOfElements([],[],[],[P],C.event.pageY,C.event.pageX)}),o=this.serialLinkWidget.onContextMenu.subscribe(function(C){var P=r.mapLinkToLink.convert(C.link);r.contextMenu.openMenuForListOfElements([],[],[],[P],C.event.pageY,C.event.pageX)}),a=this.nodeWidget.onContextMenu.subscribe(function(C){var P=r.mapNodeToNode.convert(C.node);r.contextMenu.openMenuForNode(P,C.event.pageY,C.event.pageX)}),s=this.drawingsWidget.onContextMenu.subscribe(function(C){var P=r.mapDrawingToDrawing.convert(C.drawing);r.contextMenu.openMenuForDrawing(P,C.event.pageY,C.event.pageX)}),u=this.labelWidget.onContextMenu.subscribe(function(C){var P=r.mapLabelToLabel.convert(C.label),L=r.nodes.find(function(G){return G.node_id===C.label.nodeId});r.contextMenu.openMenuForLabel(P,L,C.event.screenY-60,C.event.screenX)}),p=this.interfaceLabelWidget.onContextMenu.subscribe(function(C){var P=r.mapLinkNodeToLinkNode.convert(C.interfaceLabel),L=r.links.find(function(G){return G.link_id===C.interfaceLabel.linkId});r.contextMenu.openMenuForInterfaceLabel(P,L,C.event.pageY,C.event.pageX)}),m=this.selectionTool.contextMenuOpened.subscribe(function(C){var P=r.selectionManager.getSelected();if(!(P.length<2)&&C instanceof MouseEvent){var L=[],G=[],Y=[],te=[];P.forEach(function(de){de instanceof Cp?L.push(r.mapDrawingToDrawing.convert(de)):de instanceof fv?G.push(r.mapNodeToNode.convert(de)):de instanceof my?Y.push(r.mapLabelToLabel.convert(de)):de instanceof Dj&&te.push(r.mapLinkToLink.convert(de))}),r.contextMenu.openMenuForListOfElements(L,G,Y,te,C.pageY,C.pageX)}});this.projectMapSubscription.add(t),this.projectMapSubscription.add(i),this.projectMapSubscription.add(o),this.projectMapSubscription.add(a),this.projectMapSubscription.add(s),this.projectMapSubscription.add(m),this.projectMapSubscription.add(u),this.projectMapSubscription.add(p),this.mapChangeDetectorRef.detectChanges()},n.prototype.onNodeCreation=function(r){var t=this;!r||(r.x=r.x/this.mapScaleService.getScale(),r.y=r.y/this.mapScaleService.getScale(),this.progressService.activate(),this.nodeService.createFromTemplate(this.server,this.project,r.template,r.x,r.y,r.server).subscribe(function(i){t.projectService.nodes(t.server,t.project.project_id).subscribe(function(o){o.filter(function(a){return null===a.label.style}).forEach(function(a){var s=t.nodeCreatedLabelStylesFixer.fix(a);t.nodeService.updateLabel(t.server,a,s.label).subscribe()}),t.nodesDataSource.set(o),r.numberOfNodes--,r.numberOfNodes>0?(r.x=r.x+50<t.project.scene_width/2?r.x+50:r.x,r.y=r.y+50<t.project.scene_height/2?r.y+50:r.y,t.onNodeCreation(r)):t.progressService.deactivate()})},function(i){t.toasterService.error(i.error.message),t.progressService.deactivate()}))},n.prototype.fitInView=function(){if(this.drawings.forEach(function(et){var It=et.svg.split('"'),Et=parseInt(It[1],10),pn=parseInt(It[3],10);et.element={width:pn,height:Et}}),0!==this.nodes.length||0!==this.drawings.length){var r,t,i,o,a=[];this.nodes.forEach(function(et){var It=new bSe;It.node=et,It.top=et.y,It.left=et.x,It.bottom=et.y+et.height,It.right=et.x+et.width,et.y+et.label.y<It.top&&(It.top=et.y+et.label.y),et.x+et.label.x<It.left&&(It.left=et.x+et.label.x),et.y+et.label.y>It.bottom&&(It.bottom=et.y+et.label.y),et.x+et.label.x>It.right&&(It.right=et.x+et.label.x),a.push(It)});var s=a.sort(function(et,It){return et.left-It.left})[0],u=a.sort(function(et,It){return et.right-It.right})[a.length-1],p=a.sort(function(et,It){return et.top-It.top})[0],m=a.sort(function(et,It){return et.bottom-It.bottom})[a.length-1],C=[];this.drawings.forEach(function(et){var It=new CSe;It.drawing=et,It.top=et.y,It.left=et.x,It.bottom=et.y+et.element.height,It.right=et.x+et.element.width,C.push(It)});var P=C.sort(function(et,It){return et.left-It.left})[0],L=C.sort(function(et,It){return et.right-It.right})[C.length-1],G=C.sort(function(et,It){return et.top-It.top})[0],Y=C.sort(function(et,It){return et.bottom-It.bottom})[C.length-1];P&&s?(r=s.left<P.left?s.left:P.left,t=u.right>L.right?u.right:L.right,i=p.top<G.top?p.top:G.top,o=m.bottom>Y.bottom?m.bottom:Y.bottom):s&&!P?(r=s.left,t=u.right,i=p.top,o=m.bottom):P&&!s?(r=P.left,t=L.right,i=G.top,o=Y.bottom):(r=0,t=0,i=0,o=0),r-=20,t+=20,i-=20,o+=20;var de=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Me=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,st=t-r,tt=o-i,pt=tt/Me,Je=1/Math.max(st/de,pt);Je!==this.mapScaleService.currentScale?(this.mapScaleService.setScale(Je),this.project.scene_width=this.project.scene_width*Je,this.project.scene_height=this.project.scene_height*Je,pt<st?(this.scrollX=r*Je-(de-st*Je)/2+this.project.scene_width/2,this.scrollY=i*Je+this.project.scene_height/2):(this.scrollX=r*Je+this.project.scene_width/2,this.scrollY=i*Je-(Me-tt*Je)/2+this.project.scene_height/2)):(this.scrollX=r*Je+this.project.scene_width/2,this.scrollY=i*Je+this.project.scene_height/2),this.scrollEnabled=!0}},n.prototype.centerCanvas=function(){window.scrollTo(this.scrollX,this.scrollY),this.scrollEnabled=!1},n.prototype.centerView=function(){if(this.project){var r=this.project.scene_width-document.documentElement.clientWidth>0?(this.project.scene_width-document.documentElement.clientWidth)/2:0,t=this.project.scene_height-document.documentElement.clientHeight>0?(this.project.scene_height-document.documentElement.clientHeight)/2:0;window.scrollTo(r,t)}else this.toasterService.error("Please wait until all components are loaded.")},n.prototype.onDrawingSaved=function(){this.projectMapMenuComponent.resetDrawToolChoice()},Object.defineProperty(n.prototype,"readonly",{get:function(){return this.inReadOnlyMode},set:function(r){this.inReadOnlyMode=r,r?(this.tools.selection=!1,this.toolsService.selectionToolActivation(!1)):(this.tools.selection=!0,this.toolsService.selectionToolActivation(!0))},enumerable:!1,configurable:!0}),n.prototype.toggleSymbolScaling=function(r){this.symbolScaling=r,this.mapSettingsService.setSymbolScaling(r)},n.prototype.toggleMovingMode=function(){this.tools.moving=!this.tools.moving,this.movingEventSource.movingModeState.emit(this.tools.moving),this.readonly||(this.tools.selection=!this.tools.moving,this.toolsService.selectionToolActivation(this.tools.selection))},n.prototype.toggleDrawLineMode=function(){this.tools.draw_link=!this.tools.draw_link,this.toolsService.drawLinkToolActivation(this.tools.draw_link)},n.prototype.toggleShowInterfaceLabels=function(r){this.isInterfaceLabelVisible=r,this.mapSettingsService.toggleShowInterfaceLabels(this.isInterfaceLabelVisible),this.mapSettingsService.mapRenderedEmitter.emit(!0)},n.prototype.toggleShowConsole=function(r){this.isConsoleVisible=r,this.mapSettingsService.toggleLogConsole(this.isConsoleVisible)},n.prototype.toggleShowTopologySummary=function(r){this.isTopologySummaryVisible=r,this.mapSettingsService.toggleTopologySummary(this.isTopologySummaryVisible),this.lazyLoadTopologySummary()},n.prototype.toggleNotifications=function(r){this.notificationsVisibility=r,this.notificationsVisibility?localStorage.setItem("notificationsVisibility","true"):localStorage.removeItem("notificationsVisibility")},n.prototype.toggleLayers=function(r){this.layersVisibility=r,this.mapSettingsService.toggleLayers(r),this.layersVisibility?localStorage.setItem("layersVisibility","true"):localStorage.removeItem("layersVisibility"),this.mapChild.applyMapSettingsChanges()},n.prototype.toggleGrid=function(r){this.gridVisibility=r,this.gridVisibility?localStorage.setItem("gridVisibility","true"):localStorage.removeItem("gridVisibility"),this.mapChild.gridVisibility=this.gridVisibility?1:0},n.prototype.toggleSnapToGrid=function(r){this.project.snap_to_grid=r},n.prototype.showMessage=function(r){this.notificationsVisibility&&("error"===r.type&&this.toasterService.error(r.message),"warning"===r.type&&this.toasterService.warning(r.message))},n.prototype.hideMenu=function(){this.projectMapMenuComponent.resetDrawToolChoice(),this.isProjectMapMenuVisible=!1},n.prototype.showMenu=function(){this.isProjectMapMenuVisible=!0},n.prototype.zoomIn=function(){this.mapScaleService.setScale(this.mapScaleService.getScale()+.1)},n.prototype.zoomOut=function(){var r=this.mapScaleService.getScale();r-.1>0&&this.mapScaleService.setScale(r-.1)},n.prototype.resetZoom=function(){this.mapScaleService.resetToDefault()},n.prototype.addNewProject=function(){this.dialog.open(Jj,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.server=this.server},n.prototype.saveProject=function(){var t=this.dialog.open(mve,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project},n.prototype.editProject=function(){var t=this.dialog.open(ove,{width:"600px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project},n.prototype.importProject=function(){var r=this,t="",i=this.dialog.open(Xj,{width:"400px",autoFocus:!1,disableClose:!0});i.componentInstance.server=this.server;var a=i.componentInstance.onImportProject.subscribe(function(s){t=s});i.afterClosed().subscribe(function(){if(a.unsubscribe(),t){r.bottomSheet.open($j);var s=r.bottomSheet._openedBottomSheetRef;s.instance.projectMessage="imported project",s.afterDismissed().subscribe(function(p){p&&r.projectService.open(r.server,t).subscribe(function(){r.router.navigate(["/server",r.server.id,"project",t])})})}})},n.prototype.exportProject=function(){this.nodes.filter(function(r){return"virtualbox"===r.node_type}).length>0?this.toasterService.error("Map with VirtualBox machines cannot be exported."):this.nodes.filter(function(r){return"started"===r.status&&"vpcs"===r.node_type||"started"===r.status&&"virtualbox"===r.node_type||"started"===r.status&&"vmware"===r.node_type}).length>0?this.toasterService.error("Project with running nodes cannot be exported."):this.protocolHandlerService.open(this.projectService.getExportPath(this.server,this.project))},n.prototype.uploadImageFile=function(r){this.readImageFile(r.target)},n.prototype.readImageFile=function(r){var t=this,i=r.files[0],o=new FileReader,a=new Image;o.onloadend=function(){t.drawingService.add(t.server,t.project.project_id,-a.width/2,-a.height/2,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"\n height="'+a.height+'" width="'+a.width+'">\n<image height="'+a.height+'" width="'+a.width+'"\n xlink:href="'+o.result+'"/>\n</svg>').subscribe(function(){})},a.onload=function(){o.readAsDataURL(i)},a.src=window.URL.createObjectURL(i)},n.prototype.closeProject=function(){var r=this;this.bottomSheet.open(ih);var t=this.bottomSheet._openedBottomSheetRef;t.instance.message="Do you want to close the project?",t.afterDismissed().subscribe(function(o){o&&r.projectService.close(r.server,r.project.project_id).subscribe(function(){r.router.navigate(["/server",r.server.id,"projects"])})})},n.prototype.deleteProject=function(){var r=this;this.bottomSheet.open(ih);var t=this.bottomSheet._openedBottomSheetRef;t.instance.message="Do you want to delete the project?",t.afterDismissed().subscribe(function(o){o&&r.projectService.delete(r.server,r.project.project_id).subscribe(function(){r.router.navigate(["/server",r.server.id,"projects"])})})},n.prototype.addNewTemplate=function(){var t=this.dialog.open(gz,{width:"1000px",maxHeight:"700px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project},n.prototype.ngOnDestroy=function(){this.nodeConsoleService.openConsoles=0,this.title.setTitle("GNS3 Web UI"),this.drawingsDataSource.clear(),this.nodesDataSource.clear(),this.linksDataSource.clear(),this.projectws&&this.projectws.OPEN&&this.projectws.close(),this.ws&&this.ws.OPEN&&this.ws.close(),this.projectMapSubscription.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Br),e.Y36(ud.Y),e.Y36(Wr),e.Y36(xs),e.Y36(Xf),e.Y36(jL),e.Y36(qS),e.Y36(wL),e.Y36(WS),e.Y36(AL),e.Y36(D2),e.Y36(jS),e.Y36(V2),e.Y36(wz),e.Y36($S),e.Y36(Ez),e.Y36(WL),e.Y36(wa.G),e.Y36(rh.F),e.Y36(ws),e.Y36(Tp.g),e.Y36(GS),e.Y36(dc),e.Y36(A2),e.Y36(q2.p),e.Y36(I2),e.Y36(yy),e.Y36(kz),e.Y36(Xn),e.Y36(to),e.Y36(xr),e.Y36(hL),e.Y36(mL),e.Y36(vL),e.Y36(gL),e.Y36(Ou),e.Y36(kL),e.Y36(ML),e.Y36(JS),e.Y36(Mz),e.Y36(sc.f),e.Y36(U.Dx),e.Y36(cd),e.Y36(NS),e.Y36(QS),e.Y36(e.sBO),e.Y36(e._Vd),e.Y36(e.zs3))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-project-map"]],viewQuery:function(t,i){if(1&t&&(e.Gf(dz,5),e.Gf(Gj,5),e.Gf(xz,5),e.Gf(rSe,5,e.s_b)),2&t){var o=void 0;e.iGM(o=e.CRH())&&(i.contextMenu=o.first),e.iGM(o=e.CRH())&&(i.mapChild=o.first),e.iGM(o=e.CRH())&&(i.projectMapMenuComponent=o.first),e.iGM(o=e.CRH())&&(i.topologySummaryContainer=o.first)}},decls:3,vars:1,consts:[["class","project-map",3,"ngClass",4,"ngIf"],["topologySummaryContainer",""],[1,"project-map",3,"ngClass"],[3,"server","project","symbols","nodes","links","drawings","width","height","show-interface-labels","readonly","nodeDragged","drawingDragged","onLinkCreated","onDrawingResized",4,"ngIf"],[3,"symbols","nodes","links","drawings","width","height","show-interface-labels","selection-tool","moving-tool","draw-link-tool","readonly",4,"ngIf"],["id","project-titlebar",3,"ngClass"],["matTooltip","Open menu","matTooltipClass","custom-tooltip","mat-icon-button","",1,"gns3-button","menu-button",3,"matMenuTriggerFor"],["svgIcon","gns3",4,"ngIf"],["svgIcon","gns3black",4,"ngIf"],[1,"project-titlebar-controls"],["class","menu-button-group primary-controls",3,"ngClass",4,"ngIf"],[1,"menu-button-group"],[3,"server","project"],[3,"project","server"],["matTooltip","Project Map Settings","matTooltipClass","custom-tooltip","mat-icon-button","",1,"map-settings-button",3,"matMenuTriggerFor"],["matTooltip","Toggle topology/servers summary","matTooltipClass","custom-tooltip","mat-icon-button","",3,"ngClass","click"],[3,"overlapTrigger"],["mainMenu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","","routerLink","/settings"],["projectMenu","matMenu"],["mat-menu-item","",3,"click"],["viewMenu","matMenu"],[1,"options-item"],[3,"ngModel","change"],["id","project-toolbar",3,"ngClass"],[1,"section"],["matTooltip","Selection mode","matTooltipClass","custom-tooltip","mat-icon-button","",1,"selection-button","menu-button",3,"color","click"],["matTooltip","Pan workspace","matTooltipClass","custom-tooltip","mat-icon-button","",1,"pan-button","menu-button",3,"color","click"],["matTooltip","Zoom in","matTooltipClass","custom-tooltip","mat-icon-button","",1,"zoom-button",3,"click"],["matTooltip","Reset zoom","matTooltipClass","custom-tooltip","mat-icon-button","",1,"reset-zoom-button",3,"click"],["matTooltip","Zoom out","matTooltipClass","custom-tooltip","mat-icon-button","",1,"zoom-button",3,"click"],["class","section",4,"ngIf"],[3,"links",4,"ngIf"],[3,"server"],[3,"server","project","drawingSaved"],[3,"ngClass"],[3,"server","project","closeConsole",4,"ngIf"],[3,"server","project","symbols","nodes","links","drawings","width","height","show-interface-labels","readonly","nodeDragged","drawingDragged","onLinkCreated","onDrawingResized"],[3,"symbols","nodes","links","drawings","width","height","show-interface-labels","selection-tool","moving-tool","draw-link-tool","readonly"],["svgIcon","gns3"],["svgIcon","gns3black"],[1,"menu-button-group","primary-controls",3,"ngClass"],[3,"server","project","onNodeCreation"],["matTooltip","Add a link","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"ngClass","color","click"],[3,"links"],[3,"server","project","closeConsole"]],template:function(t,i){1&t&&(e.YNc(0,gSe,144,66,"div",0),e.YNc(1,_Se,0,0,"ng-template",null,1,e.W1O)),2&t&&e.Q6J("ngIf",i.project)},directives:[kt.O5,kt.mk,An,Ja,Qa,fCe,dz,sr,Ts,Nr,ca,hCe,Zo,re.JJ,re.On,xz,WZ,mCe,vCe,gCe,_Ce,yCe,bCe,CCe,SCe,Gj,y1e,P1e,N1e,H1e,nSe],styles:[".wrapper{height:600px}app-root,app-project-map,.project-map,app-map{width:auto}g.node:hover{background-color:#0097a7}.project-map{background-color:#e8ecef}#project-titlebar{position:fixed;top:0px;left:0px;right:0px;height:60px;padding:0 20px;background-color:#20313b;display:flex;justify-content:space-between;align-items:center;box-shadow:3px 3px 10px rgba(0,0,0,.2);z-index:2}#project-titlebar .gns3-button{position:relative;top:-2px}#project-titlebar .gns3-button mat-icon{width:30px!important;height:30px!important}#project-titlebar .primary-controls{border-right:1px solid rgba(255,255,255,.3);padding-right:15px;margin-right:15px}#project-titlebar .primary-controls.lightTheme{border-right:1px solid black}#project-titlebar .menu-button-group{display:flex;align-items:center;height:24px}#project-titlebar .menu-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;margin:0 8px;border-radius:18px;background:none;font-size:20px}#project-titlebar .add-menu-button mat-icon{font-size:28px!important}#project-titlebar .map-settings-button mat-icon{font-size:22px!important}#project-titlebar .selected{background:rgba(0,151,167,.1)}#project-titlebar .selected mat-icon{color:#0097a7!important}#project-titlebar .project-titlebar-controls{display:flex;align-items:center}#project-titlebar.lightTheme{background-color:#fff!important}#project-titlebar.lightTheme .selected mat-icon{color:#0097a7!important}#project-toolbar{position:fixed;top:60px;left:0px;width:50px;margin:20px;background-color:#20313b;border-radius:6px;box-shadow:1px 1px 10px rgba(0,0,0,.2);z-index:2}#project-toolbar mat-icon{font-size:20px}#project-toolbar .menu-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0}#project-toolbar .zoom-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0;color:#fff}#project-toolbar .zoom-button mat-icon{font-size:24px!important}#project-toolbar .reset-zoom-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0;color:#fff}#project-toolbar .reset-zoom-button mat-icon{font-size:18px!important}#project-toolbar .selection-button{margin-bottom:0!important}#project-toolbar .snapshot-button mat-icon{font-size:16px}#project-toolbar .section{display:flex;flex-direction:column;justify-content:center;align-items:center;border-top:1px solid rgba(255,255,255,.3);padding:5px 0}#project-toolbar .section:first-child{border:none}#project-toolbar.lightTheme{background-color:rgba(244,248,252,.95)!important}#project-toolbar.lightTheme .zoom-button{opacity:.7;color:#000}#project-toolbar.lightTheme .reset-zoom-button{opacity:.7;color:#000}#project-toolbar.lightTheme .section{border-top:1px solid rgba(0,0,0,.1)}#project-toolbar.lightTheme .section:first-child{border:none}img{filter:invert(1)}.lightTheme{color:#000!important}.darkTheme{color:#fff!important}#show-menu-wrapper{position:fixed;background:transparent;top:0px;left:92px;background:#263238;height:72px;padding-top:16px}#show-menu-wrapper .arrow-button{outline:0!important}.shadowed{box-shadow:0 4px 8px -4px rgba(0,0,0,.2),0 6px 20px -20px rgba(0,0,0,.19)}.non-visible{display:none}#menu-wrapper{position:fixed;background:transparent;top:0px;left:92px;right:0px;background:#263238;height:72px;padding-top:16px;padding-bottom:16px;transition:35s;width:0;overflow:hidden;transition:.15s;box-shadow:0 4px 8px rgba(0,0,0,.2),0 6px 20px rgba(0,0,0,.19);display:flex}#menu-wrapper .menu-button{outline:0!important;transition:.5s;margin-bottom:16px;width:40px;margin-right:12px!important;margin-left:12px!important;background:transparent;padding:0;border:none;background-color:transparent}#menu-wrapper .arrow-button{outline:0!important;transition:.5s;margin-bottom:16px}.extended{width:830px!important;height:100%;overflow:hidden}mat-divider.divider{height:40px;margin-left:1px;margin-right:7px;width:10px;color:gray}@-moz-document url-prefix(){.mat-drawer-content{display:inline!important}}.shadow{box-shadow:0 4px 8px rgba(0,0,0,.2),0 6px 20px rgba(0,0,0,.19)}.mat-drawer-backdrop.mat-drawer-shown{background-color:transparent}.project-toolbar .mat-toolbar-multiple-rows{width:auto!important}.loading-spinner{position:absolute;top:50%;width:100px;margin-left:-50px;margin-top:-50px;left:50%}line.selected{stroke:#0097a7!important}svg.map image:hover,svg.map image.chosen,g.selected{-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%);filter:gray;filter:url(#grayscale)}path.selected{stroke:#8b0000}.selected>.interface_label_border{stroke:#000;fill:none}.selection-line-tool .selection{fill:#7ccbe1;stroke:#66aec2;fill-opacity:.3;stroke-opacity:.7;stroke-width:1;stroke-dasharray:5,5}g.node text,.noselect{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.project-toolbar button{outline:0;border:none;-moz-outline-style:none}.options-item{padding-left:15px;padding-right:15px}.context-menu-items .mat-menu-item{line-height:24px!important;height:24px!important;font-size:13px!important;padding:0 6px;outline:none!important}.context-menu-items .mat-menu-item .mat-icon{margin-right:3px}.context-menu-items .mat-menu-item:focus{background:none}.visible{display:none}mat-menu-panel{min-height:0px}.unmarked{color:#fff!important}.unmarkedLight{color:#000!important}.marked{color:#0097a7!important}\n"],encapsulation:2}),n}(),bSe=function(){return function(){}}(),CSe=function(){return function(){}}(),SSe=function(){function n(r){this.dialogRef=r,this.message="Do you want to configure GNS3 VM?"}return n.prototype.ngOnInit=function(){},n.prototype.onNoClick=function(){this.dialogRef.close(!1)},n.prototype.onYesClick=function(){this.dialogRef.close(!0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configure-gns3-vm-dialog"]],decls:7,vars:1,consts:[[1,"message"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"span",0),e._uU(1),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"button",2),e.NdJ("click",function(){return i.onNoClick()}),e._uU(4,"No"),e.qZA(),e.TgZ(5,"button",3),e.NdJ("click",function(){return i.onYesClick()}),e._uU(6," Yes "),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Oqu(i.message))},directives:[$r,An],styles:[""]}),n}(),TSe=function(){function n(r,t){this.dialogRef=r,this.projectService=t}return n.prototype.ngOnInit=function(){this.name=this.project.name},n.prototype.onCloseClick=function(){this.dialogRef.close()},n.prototype.onSaveClick=function(){var r=this;this.projectService.duplicate(this.server,this.project.project_id,this.name).subscribe(function(){r.dialogRef.close()})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(ud.Y))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-choose-name-dialog"]],inputs:{server:"server",project:"project"},decls:10,vars:1,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"form-field"],["matInput","","placeholder","Project name","type","text",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Please choose name for exporting project"),e.qZA(),e.TgZ(2,"div",1),e.TgZ(3,"mat-form-field",2),e.TgZ(4,"input",3),e.NdJ("ngModelChange",function(a){return i.name=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"button",5),e.NdJ("click",function(){return i.onCloseClick()}),e._uU(7,"Cancel"),e.qZA(),e.TgZ(8,"button",6),e.NdJ("click",function(){return i.onSaveClick()}),e._uU(9,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngModel",i.name))},directives:[ti,Hn.KE,lr,re.Fj,re.JJ,re.On,$r,An],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),n}();function xSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell",21),e._uU(1," Name "),e.qZA())}var wSe=function(n,r){return["/server",n,"project",r]};function ESe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e.TgZ(1,"a",22),e._uU(2),e.qZA(),e.qZA()),2&n){var t=r.$implicit,i=e.oxw();e.xp6(1),e.Q6J("routerLink",e.WLB(2,wSe,i.server.id,t.project_id)),e.xp6(1),e.Oqu(t.name)}}function kSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Actions "),e.qZA())}function MSe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",28),e.NdJ("click",function(){e.CHM(t);var o=e.oxw().$implicit;return e.oxw().open(o)}),e.TgZ(1,"mat-icon",29),e._uU(2,"play_arrow"),e.qZA(),e.qZA()}}function ASe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",30),e.NdJ("click",function(){e.CHM(t);var o=e.oxw().$implicit;return e.oxw().close(o)}),e.TgZ(1,"mat-icon",31),e._uU(2,"pause"),e.qZA(),e.qZA()}}function DSe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",32),e.NdJ("click",function(){e.CHM(t);var o=e.oxw().$implicit;return e.oxw().duplicate(o)}),e.TgZ(1,"mat-icon",33),e._uU(2,"filter_2"),e.qZA(),e.qZA()}}function OSe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){e.CHM(t);var o=e.oxw().$implicit;return e.oxw().delete(o)}),e.TgZ(1,"mat-icon",35),e._uU(2,"delete"),e.qZA(),e.qZA()}}function PSe(n,r){if(1&n&&(e.TgZ(0,"mat-cell",23),e.YNc(1,MSe,3,0,"button",24),e.YNc(2,ASe,3,0,"button",25),e.YNc(3,DSe,3,0,"button",26),e.YNc(4,OSe,3,0,"button",27),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Q6J("ngIf","closed"==t.status),e.xp6(1),e.Q6J("ngIf","opened"==t.status),e.xp6(1),e.Q6J("ngIf","closed"==t.status),e.xp6(1),e.Q6J("ngIf","closed"==t.status)}}function ISe(n,r){1&n&&e._UZ(0,"mat-header-row")}function RSe(n,r){1&n&&e._UZ(0,"mat-row")}var NSe=function(){return{standalone:!0}},Fz=function(){function n(r,t,i,o,a,s,u,p,m,C){this.route=r,this.projectService=t,this.settingsService=i,this.progressService=o,this.dialog=a,this.router=s,this.bottomSheet=u,this.toasterService=p,this.electronService=m,this.recentlyOpenedProjectService=C,this.projectDatabase=new ZSe,this.displayedColumns=["name","actions"],this.searchText=""}return n.prototype.ngOnInit=function(){var r=this;this.server=this.route.snapshot.data.server,this.server||this.router.navigate(["/servers"]),this.recentlyOpenedProjectService.setServerIdProjectList(this.server.id.toString()),this.refresh(),this.sort.sort({id:"name",start:"asc"}),this.dataSource=new LSe(this.projectDatabase,this.sort),this.settings=this.settingsService.getAll(),this.projectService.projectListSubject.subscribe(function(){return r.refresh()});var t=localStorage.getItem("gns3vmConfig");this.electronService.isElectronApp&&"configured"!==t&&this.dialog.open(SSe,{width:"350px",height:"120px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){o&&(localStorage.setItem("gns3vmConfig","configured"),r.router.navigate(["/server",r.server.id,"preferences","gns3vm"]))})},n.prototype.goToPreferences=function(){var r=this;this.router.navigate(["/server",this.server.id,"preferences"]).catch(function(t){return r.toasterService.error("Cannot navigate to the preferences")})},n.prototype.goToSystemStatus=function(){var r=this;this.router.navigate(["/server",this.server.id,"systemstatus"]).catch(function(t){return r.toasterService.error("Cannot navigate to the system status")})},n.prototype.refresh=function(){var r=this;this.projectService.list(this.server).subscribe(function(t){r.projectDatabase.addProjects(t)},function(t){r.progressService.setError(t)})},n.prototype.delete=function(r){var t=this;this.bottomSheet.open(ih);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to delete the project?",i.afterDismissed().subscribe(function(a){a&&t.projectService.delete(t.server,r.project_id).subscribe(function(){t.refresh()})})},n.prototype.open=function(r){var t=this;this.progressService.activate(),this.projectService.open(this.server,r.project_id).subscribe(function(){t.refresh()},function(){t.refresh(),t.progressService.deactivate(),t.toasterService.error("Project was deleted.")},function(){t.progressService.deactivate()})},n.prototype.close=function(r){var t=this;this.bottomSheet.open(ih);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to close the project?",i.afterDismissed().subscribe(function(a){a&&t.projectService.close(t.server,r.project_id).subscribe(function(){t.refresh(),t.progressService.deactivate()})})},n.prototype.duplicate=function(r){var t=this,i=this.dialog.open(TSe,{width:"400px",autoFocus:!1,disableClose:!0}),o=i.componentInstance;o.server=this.server,o.project=r,i.afterClosed().subscribe(function(){t.refresh()})},n.prototype.addBlankProject=function(){this.dialog.open(Jj,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.server=this.server},n.prototype.importProject=function(){var r=this,t="",i=this.dialog.open(Xj,{width:"400px",autoFocus:!1,disableClose:!0});i.componentInstance.server=this.server;var a=i.componentInstance.onImportProject.subscribe(function(s){t=s});i.afterClosed().subscribe(function(){if(r.refresh(),a.unsubscribe(),t){r.bottomSheet.open($j);var s=r.bottomSheet._openedBottomSheetRef;s.instance.projectMessage="imported project",s.afterDismissed().subscribe(function(p){p&&r.projectService.open(r.server,t).subscribe(function(){r.router.navigate(["/server",r.server.id,"project",t])})})}})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(ud.Y),e.Y36(Tp.g),e.Y36(Xf),e.Y36(to),e.Y36(xr),e.Y36(JS),e.Y36(Xn),e.Y36(cs),e.Y36(q2.p))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-projects"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(XS,7),2&t)&&(e.iGM(o=e.CRH())&&(i.sort=o.first))},decls:29,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","",1,"add-button",3,"click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],["mat-raised-button","","color","primary",1,"import-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","actions"],[4,"matHeaderCellDef"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[1,"table-link",3,"routerLink"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Open project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Close project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Duplicate project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Delete project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Open project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Open project"],["mat-icon-button","","matTooltip","Close project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Close project"],["mat-icon-button","","matTooltip","Duplicate project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Duplicate project"],["mat-icon-button","","matTooltip","Delete project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete project"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Projects"),e.qZA(),e.TgZ(5,"button",4),e.NdJ("click",function(){return i.goToSystemStatus()}),e._uU(6,"Go to system status"),e.qZA(),e.TgZ(7,"button",4),e.NdJ("click",function(){return i.goToPreferences()}),e._uU(8,"Go to preferences"),e.qZA(),e.TgZ(9,"button",5),e.NdJ("click",function(){return i.addBlankProject()}),e._uU(10," Add blank project "),e.qZA(),e.TgZ(11,"button",6),e.NdJ("click",function(){return i.importProject()}),e._uU(12," Import project "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"form"),e.TgZ(14,"mat-form-field",7),e.TgZ(15,"input",8),e.NdJ("ngModelChange",function(a){return i.searchText=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(16,"div",9),e.TgZ(17,"div",10),e.TgZ(18,"mat-table",11,12),e.ALo(20,"projectsfilter"),e.ynx(21,13),e.YNc(22,xSe,2,0,"mat-header-cell",14),e.YNc(23,ESe,3,5,"mat-cell",15),e.BQk(),e.ynx(24,16),e.YNc(25,kSe,2,0,"mat-header-cell",17),e.YNc(26,PSe,5,4,"mat-cell",18),e.BQk(),e.YNc(27,ISe,1,0,"mat-header-row",19),e.YNc(28,RSe,1,0,"mat-row",20),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(15),e.Q6J("ngModel",i.searchText)("ngModelOptions",e.DdM(8,NSe)),e.xp6(3),e.Q6J("dataSource",e.xi3(20,5,i.dataSource,i.searchText)),e.xp6(9),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns))},styles:[".import-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.row[_ngcontent-%COMP%]{display:flex}"]}),n}(),ZSe=function(){function n(){this.dataChange=new eo.X([])}return Object.defineProperty(n.prototype,"data",{get:function(){return this.dataChange.value},enumerable:!1,configurable:!0}),n.prototype.addProjects=function(r){this.dataChange.next(r)},n.prototype.remove=function(r){var t=this.data.indexOf(r);t>=0&&(this.data.splice(t,1),this.dataChange.next(this.data.slice()))},n}(),LSe=function(n){function r(t,i){var o=n.call(this)||this;return o.projectDatabase=t,o.sort=i,o}return(0,Jn.ZT)(r,n),r.prototype.connect=function(){var t=this;return go.T.apply(void 0,[this.projectDatabase.dataChange,this.sort.sortChange]).pipe((0,Er.U)(function(){return t.sort.active&&""!==t.sort.direction?t.projectDatabase.data.sort(function(o,a){var s=o[t.sort.active],u=a[t.sort.active];return((isNaN(+s)?s:+s)<(isNaN(+u)?u:+u)?-1:1)*("asc"===t.sort.direction?1:-1)}):t.projectDatabase.data}))},r.prototype.disconnect=function(){},r}(Gi.o2);function FSe(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"You must enter a value"),e.qZA())}function BSe(n,r){if(1&n&&(e.TgZ(0,"mat-option",13),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function USe(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",14),e.qZA())}function HSe(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",15),e.qZA())}function VSe(n,r){if(1&n&&(e.TgZ(0,"mat-option",13),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function qSe(n,r){if(1&n&&(e.TgZ(0,"mat-option",13),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t.key),e.xp6(1),e.hij(" ",t.name," ")}}function jSe(n,r){if(1&n&&(e.TgZ(0,"mat-form-field"),e.TgZ(1,"mat-select",16),e.YNc(2,qSe,2,2,"mat-option",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.authorizations)}}function zSe(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",17),e.qZA())}function WSe(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",18),e.qZA())}var GSe=function(){function n(r,t,i,o,a){this.dialogRef=r,this.electronService=t,this.serverService=i,this.toasterService=o,this.data=a,this.authorizations=[{key:"none",name:"No authorization"},{key:"basic",name:"Basic authorization"}],this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[],this.serverForm=new re.cw({name:new re.NI("",[re.kI.required]),location:new re.NI(""),path:new re.NI(""),ubridge_path:new re.NI(""),host:new re.NI("",[re.kI.required]),port:new re.NI("",[re.kI.required,re.kI.min(1)]),protocol:new re.NI("http:"),authorization:new re.NI("none"),login:new re.NI(""),password:new re.NI("")})}return n.prototype.getLocations=function(){return(0,Jn.mG)(this,void 0,void 0,function(){var r,t;return(0,Jn.Jh)(this,function(i){switch(i.label){case 0:return[4,this.numberOfLocalServers()];case 1:return r=i.sent(),t=[],this.electronService.isElectronApp&&0===r&&t.push({key:"local",name:"Local"}),t.push({key:"remote",name:"Remote"}),[2,t]}})})},n.prototype.getDefaultLocation=function(){return(0,Jn.mG)(this,void 0,void 0,function(){var r;return(0,Jn.Jh)(this,function(t){switch(t.label){case 0:return[4,this.numberOfLocalServers()];case 1:return r=t.sent(),this.electronService.isElectronApp&&0===r?[2,"local"]:[2,"remote"]}})})},n.prototype.numberOfLocalServers=function(){return(0,Jn.mG)(this,void 0,void 0,function(){return(0,Jn.Jh)(this,function(t){switch(t.label){case 0:return[4,this.serverService.findAll()];case 1:return[2,t.sent().filter(function(i){return"local"===i.location}).length]}})})},n.prototype.getDefaultHost=function(){return"127.0.0.1"},n.prototype.getDefaultPort=function(){return 3080},n.prototype.getDefaultLocalServerPath=function(){return(0,Jn.mG)(this,void 0,void 0,function(){return(0,Jn.Jh)(this,function(r){switch(r.label){case 0:return this.electronService.isElectronApp?[4,this.electronService.remote.require("./local-server.js").getLocalServerPath()]:[3,2];case 1:return[2,r.sent()];case 2:return[2]}})})},n.prototype.getDefaultUbridgePath=function(){return(0,Jn.mG)(this,void 0,void 0,function(){return(0,Jn.Jh)(this,function(r){switch(r.label){case 0:return this.electronService.isElectronApp?[4,this.electronService.remote.require("./local-server.js").getUbridgePath()]:[3,2];case 1:return[2,r.sent()];case 2:return[2]}})})},n.prototype.ngOnInit=function(){return(0,Jn.mG)(this,void 0,void 0,function(){var r,t,i,o,a=this;return(0,Jn.Jh)(this,function(s){switch(s.label){case 0:return r=this,[4,this.getLocations()];case 1:return r.locations=s.sent(),[4,this.getDefaultLocalServerPath()];case 2:return t=s.sent(),[4,this.getDefaultUbridgePath()];case 3:return i=s.sent(),this.serverForm.get("location").valueChanges.subscribe(function(u){var p=a.serverForm.get("path"),m=a.serverForm.get("ubridge_path");"local"===u?(p.setValue(t),p.setValidators([re.kI.required]),m.setValue(i),m.setValidators([re.kI.required])):(p.setValue(""),p.clearValidators(),m.setValue(""),m.clearValidators()),[p,m].forEach(function(C){C.updateValueAndValidity({onlySelf:!0})})}),this.serverForm.get("authorization").valueChanges.subscribe(function(u){var p=a.serverForm.get("login"),m=a.serverForm.get("password");"none"===u?(p.clearValidators(),m.clearValidators()):(p.setValidators([re.kI.required]),m.setValidators([re.kI.required])),[p,m].forEach(function(C){C.updateValueAndValidity({onlySelf:!0})})}),[4,this.getDefaultLocation()];case 4:return o=s.sent(),this.serverForm.get("location").setValue(o),this.serverForm.get("host").setValue(this.getDefaultHost()),this.serverForm.get("port").setValue(this.getDefaultPort()),this.serverForm.get("authorization").setValue("none"),[2]}})})},n.prototype.onAddClick=function(){var r=this;if(this.serverForm.valid){var t=Object.assign({},this.serverForm.value);this.serverService.checkServerVersion(t).subscribe(function(i){i.version.split(".")[1]>=2&&i.version.split(".")[0]>=2?(r.dialogRef.close(t),r.toasterService.success("Server "+t.name+" added.")):(r.dialogRef.close(),r.toasterService.error("Server version is not supported."))},function(i){r.toasterService.error("Cannot connect to the server: "+i)})}},n.prototype.onNoClick=function(){this.dialogRef.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Ur),e.Y36(cs),e.Y36(Br),e.Y36(Xn),e.Y36(sd))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-server-dialog"]],decls:27,vars:9,consts:[["mat-dialog-title",""],[3,"formGroup"],["mat-dialog-content",""],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["placeholder","Location","formControlName","location"],[3,"value",4,"ngFor","ngForOf"],["matInput","","tabindex","1","formControlName","host","placeholder","Host"],["matInput","","tabindex","1","formControlName","port","placeholder","Port"],["placeholder","Protocol","formControlName","protocol"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","tabindex","1","formControlName","path","placeholder","Local server path"],["matInput","","tabindex","1","formControlName","ubridge_path","placeholder","Ubridge path"],["placeholder","Authorization","formControlName","authorization"],["matInput","","tabindex","1","formControlName","login","placeholder","Login"],["matInput","","type","password","tabindex","1","formControlName","password","placeholder","Password"]],template:function(t,i){1&t&&(e.TgZ(0,"h1",0),e._uU(1,"Add server"),e.qZA(),e.TgZ(2,"form",1),e.TgZ(3,"div",2),e.TgZ(4,"mat-form-field"),e._UZ(5,"input",3),e.YNc(6,FSe,2,0,"mat-error",4),e.qZA(),e.TgZ(7,"mat-form-field"),e.TgZ(8,"mat-select",5),e.YNc(9,BSe,2,2,"mat-option",6),e.qZA(),e.qZA(),e.YNc(10,USe,2,0,"mat-form-field",4),e.YNc(11,HSe,2,0,"mat-form-field",4),e.TgZ(12,"mat-form-field"),e._UZ(13,"input",7),e.qZA(),e.TgZ(14,"mat-form-field"),e._UZ(15,"input",8),e.qZA(),e.TgZ(16,"mat-form-field"),e.TgZ(17,"mat-select",9),e.YNc(18,VSe,2,2,"mat-option",6),e.qZA(),e.qZA(),e.YNc(19,jSe,3,1,"mat-form-field",4),e.YNc(20,zSe,2,0,"mat-form-field",4),e.YNc(21,WSe,2,0,"mat-form-field",4),e.qZA(),e.TgZ(22,"div",10),e.TgZ(23,"button",11),e.NdJ("click",function(){return i.onNoClick()}),e._uU(24,"Cancel"),e.qZA(),e.TgZ(25,"button",12),e.NdJ("click",function(){return i.onAddClick()}),e._uU(26,"Add"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Q6J("formGroup",i.serverForm),e.xp6(4),e.Q6J("ngIf",i.serverForm.get("name").hasError("required")),e.xp6(3),e.Q6J("ngForOf",i.locations),e.xp6(1),e.Q6J("ngIf","local"===i.serverForm.get("location").value),e.xp6(1),e.Q6J("ngIf","local"===i.serverForm.get("location").value),e.xp6(7),e.Q6J("ngForOf",i.protocols),e.xp6(1),e.Q6J("ngIf","remote"===i.serverForm.get("location").value),e.xp6(1),e.Q6J("ngIf","basic"===i.serverForm.get("authorization").value),e.xp6(1),e.Q6J("ngIf","basic"===i.serverForm.get("authorization").value))},directives:[ti,re._Y,re.JL,re.sg,ly,Hn.KE,lr,re.Fj,re.JJ,re.u,kt.O5,pi.gD,kt.sg,$r,An,Hn.TO,un.ey],encapsulation:2}),n}(),QL=function(){function n(r){var t=this;this.electronService=r,this.serverStatusChanged=new Pn.xQ,this.electronService.isElectronApp&&this.electronService.ipcRenderer.on(this.statusChannel,function(i,o){t.serverStatusChanged.next(o)})}return Object.defineProperty(n.prototype,"statusChannel",{get:function(){return"local-server-status-events"},enumerable:!1,configurable:!0}),n.prototype.start=function(r){return(0,Jn.mG)(this,void 0,void 0,function(){return(0,Jn.Jh)(this,function(i){switch(i.label){case 0:return this.serverStatusChanged.next({serverName:r.name,status:"starting",message:""}),[4,this.electronService.remote.require("./local-server.js").startLocalServer(r)];case 1:return[2,i.sent()]}})})},n.prototype.stop=function(r){return(0,Jn.mG)(this,void 0,void 0,function(){return(0,Jn.Jh)(this,function(t){switch(t.label){case 0:return[4,this.electronService.remote.require("./local-server.js").stopLocalServer(r)];case 1:return[2,t.sent()]}})})},n.prototype.stopAll=function(){return(0,Jn.mG)(this,void 0,void 0,function(){return(0,Jn.Jh)(this,function(r){switch(r.label){case 0:return[4,this.electronService.remote.require("./local-server.js").stopAllLocalServers()];case 1:return[2,r.sent()]}})})},n.prototype.getRunningServers=function(){return this.electronService.isElectronApp?this.electronService.remote.require("./local-server.js").getRunningServers():[]},n.prototype.ngOnDestroy=function(){this.electronService.isElectronApp&&this.electronService.ipcRenderer.removeAllListeners(this.statusChannel)},n.\u0275fac=function(t){return new(t||n)(e.LFG(cs))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),KL=f(53628),Bz=function(){function n(r){this.httpServer=r}return n.prototype.get=function(r){return this.httpServer.get(r,"/version")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function YSe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-card",2),e.TgZ(1,"mat-card-content",3),e._uU(2," We've discovered GNS3 server on "),e.TgZ(3,"b"),e._uU(4),e.qZA(),e._uU(5,", would you like to add to the list? "),e.qZA(),e.TgZ(6,"mat-card-actions",4),e.TgZ(7,"button",5),e.NdJ("click",function(){e.CHM(t);var a=e.oxw();return a.ignore(a.discoveredServer)}),e._uU(8,"NO"),e.qZA(),e.TgZ(9,"button",6),e.NdJ("click",function(){e.CHM(t);var a=e.oxw();return a.accept(a.discoveredServer)}),e._uU(10,"YES"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=e.oxw();e.xp6(4),e.AsE("",i.discoveredServer.host,":",i.discoveredServer.port,"")}}function JSe(n,r){1&n&&e._UZ(0,"mat-divider")}var QSe=function(){function n(r,t,i,o){this.versionService=r,this.serverService=t,this.serverDatabase=i,this.route=o,this.defaultServers=[{host:"127.0.0.1",port:3080}]}return n.prototype.ngOnInit=function(){var r=this;this.serverService.isServiceInitialized&&this.discoverFirstServer(),this.serverService.serviceInitialized.subscribe(function(t){return(0,Jn.mG)(r,void 0,void 0,function(){return(0,Jn.Jh)(this,function(i){return t&&this.discoverFirstServer(),[2]})})})},n.prototype.discoverFirstServer=function(){return(0,Jn.mG)(this,void 0,void 0,function(){var r;return(0,Jn.Jh)(this,function(i){switch(i.label){case 0:return[4,this.discoverServers()];case 1:return r=i.sent(),[4,this.serverService.findAll()];case 2:return i.sent().forEach(function(o){r=r.filter(function(a){return!(a.host==o.host&&a.port==o.port)})}),r.length>0&&(this.discoveredServer=r.shift()),[2]}})})},n.prototype.discoverServers=function(){return(0,Jn.mG)(this,void 0,void 0,function(){var r,t=this;return(0,Jn.Jh)(this,function(i){return r=[],this.defaultServers.forEach(function(o){return(0,Jn.mG)(t,void 0,void 0,function(){var a;return(0,Jn.Jh)(this,function(u){switch(u.label){case 0:return(a=new a2).host=o.host,a.port=o.port,[4,this.versionService.get(a).toPromise().catch(function(p){return null})];case 1:return u.sent()&&r.push(a),[2]}})})}),[2,r]})})},n.prototype.discoverFirstAvailableServer=function(){var r=this;(0,jZ.D)([(0,Ya.D)(this.serverService.findAll()).pipe((0,Er.U)(function(t){return t})),this.discovery()]).subscribe(function(t){var o=t[1];t[0].forEach(function(a){o=o.filter(function(s){return!(s.host==a.host&&s.port==a.port)})}),o.length>0&&(r.discoveredServer=o.shift())},function(t){})},n.prototype.discovery=function(){var r=this,t=[];return this.defaultServers.forEach(function(i){t.push(r.isServerAvailable(i.host,i.port).catch(function(o){return KL.Observable.of(null)}))}),new KL.Observable(function(i){(0,jZ.D)(t).subscribe(function(o){i.next(o.filter(function(a){return null!=a})),i.complete()})})},n.prototype.isServerAvailable=function(r,t){var i=new a2;return i.host=r,i.port=t,this.versionService.get(i).flatMap(function(o){return KL.Observable.of(i)})},n.prototype.ignore=function(r){this.discoveredServer=null},n.prototype.accept=function(r){var t=this;null==r.name&&(r.name=r.host),r.location="remote",r.protocol=location.protocol,this.serverService.create(r).then(function(i){t.serverDatabase.addServer(i),t.discoveredServer=null})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Bz),e.Y36(Br),e.Y36(c2),e.Y36(Dr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-server-discovery"]],decls:2,vars:2,consts:[["class","info",4,"ngIf"],[4,"ngIf"],[1,"info"],["align","center"],["align","right"],["mat-button","","color","accent",3,"click"],["mat-button","",3,"click"]],template:function(t,i){1&t&&(e.YNc(0,YSe,11,2,"mat-card",0),e.YNc(1,JSe,1,0,"mat-divider",1)),2&t&&(e.Q6J("ngIf",i.discoveredServer),e.xp6(1),e.Q6J("ngIf",i.discoveredServer))},directives:[kt.O5,yi,YZ,Gae,An,Nq.d],styles:[""]}),n}();function KSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," ID "),e.qZA())}function XSe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.id," ")}}function $Se(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Name "),e.qZA())}var eTe=function(n){return["/server",n,"projects"]};function tTe(n,r){if(1&n&&(e.TgZ(0,"a",22),e._uU(1),e.qZA()),2&n){var t=e.oxw().$implicit;e.Q6J("routerLink",e.VKq(2,eTe,t.id)),e.xp6(1),e.Oqu(t.name)}}function nTe(n,r){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){var t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.name)}}function rTe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e.YNc(1,tTe,2,4,"a",20),e.YNc(2,nTe,2,1,"span",21),e.qZA()),2&n){var t=r.$implicit,i=e.oxw();e.xp6(1),e.Q6J("ngIf","running"===i.getServerStatus(t)||"remote"===t.location||"bundled"===t.location),e.xp6(1),e.Q6J("ngIf","running"!=i.getServerStatus(t)&&"remote"!==t.location&&"bundled"!==t.location)}}function iTe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Location "),e.qZA())}function oTe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.location," ")}}function aTe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Host "),e.qZA())}function sTe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.host," ")}}function lTe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Port "),e.qZA())}function uTe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.port," ")}}function cTe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Actions "),e.qZA())}function dTe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",30),e.NdJ("click",function(){e.CHM(t);var o=e.oxw().$implicit;return e.oxw().openProjects(o)}),e.TgZ(1,"mat-icon",31),e._uU(2,"arrow_forward"),e.qZA(),e.qZA()}}function pTe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",32),e.NdJ("click",function(){e.CHM(t);var o=e.oxw().$implicit;return e.oxw().startServer(o)}),e.TgZ(1,"mat-icon",33),e._uU(2,"play_arrow"),e.qZA(),e.qZA()}}function fTe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){e.CHM(t);var o=e.oxw().$implicit;return e.oxw().stopServer(o)}),e.TgZ(1,"mat-icon",35),e._uU(2,"stop"),e.qZA(),e.qZA()}}function hTe(n,r){1&n&&e._UZ(0,"mat-spinner",36),2&n&&e.Q6J("diameter",24)}function mTe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-cell",23),e.YNc(1,dTe,3,0,"button",24),e.YNc(2,pTe,3,0,"button",25),e.YNc(3,fTe,3,0,"button",26),e.YNc(4,hTe,1,1,"mat-spinner",27),e.TgZ(5,"button",28),e.NdJ("click",function(){var u=e.CHM(t).$implicit;return e.oxw().deleteServer(u)}),e.TgZ(6,"mat-icon",29),e._uU(7,"delete"),e.qZA(),e.qZA(),e.qZA()}if(2&n){var i=r.$implicit,o=e.oxw();e.xp6(1),e.Q6J("ngIf","running"===o.getServerStatus(i)||"remote"===i.location||"bundled"===i.location),e.xp6(1),e.Q6J("ngIf","local"===i.location&&"stopped"===o.getServerStatus(i)),e.xp6(1),e.Q6J("ngIf","local"===i.location&&"running"===o.getServerStatus(i)),e.xp6(1),e.Q6J("ngIf","local"===i.location&&"starting"===o.getServerStatus(i))}}function vTe(n,r){1&n&&e._UZ(0,"mat-header-row")}function gTe(n,r){1&n&&e._UZ(0,"mat-row")}function _Te(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",37),e.NdJ("click",function(){return e.CHM(t),e.oxw().startLocalServer()}),e._uU(1," Start local server "),e.qZA()}}var yTe=function(){function n(r,t,i,o,a,s,u,p,m,C){this.dialog=r,this.serverService=t,this.serverDatabase=i,this.serverManagement=o,this.changeDetector=a,this.electronService=s,this.childProcessService=u,this.bottomSheet=p,this.route=m,this.router=C,this.displayedColumns=["id","name","location","ip","port","actions"],this.isElectronApp=!1}return n.prototype.getServers=function(){var r=this,t=this.serverManagement.getRunningServers();this.serverService.findAll().then(function(i){i.forEach(function(o){t.findIndex(function(s){return o.name===s})>=0&&(o.status="running")}),i.forEach(function(o){r.serverService.checkServerVersion(o).subscribe(function(a){a.version.split(".")[1]>=2&&a.version.split(".")[0]>=2&&(o.protocol||(o.protocol=location.protocol),r.serverDatabase.find(o.name)||r.serverDatabase.addServer(o))},function(a){})})})},n.prototype.ngOnInit=function(){var r=this;this.isElectronApp=this.electronService.isElectronApp,this.serverService.isServiceInitialized&&this.getServers(),this.serverService.serviceInitialized.subscribe(function(t){return(0,Jn.mG)(r,void 0,void 0,function(){return(0,Jn.Jh)(this,function(i){return t&&this.getServers(),[2]})})}),this.dataSource=new bTe(this.serverDatabase),this.serverStatusSubscription=this.serverManagement.serverStatusChanged.subscribe(function(t){var i=r.serverDatabase.find(t.serverName);!i||("starting"===t.status&&(i.status="starting"),"stopped"===t.status&&(i.status="stopped"),"errored"===t.status&&(i.status="stopped"),"started"===t.status&&(i.status="running"),r.serverDatabase.update(i),r.changeDetector.detectChanges())})},n.prototype.ngOnDestroy=function(){this.serverStatusSubscription.unsubscribe()},n.prototype.startLocalServer=function(){var r=this.serverDatabase.data.find(function(t){return"bundled"===t.location||"local"});this.startServer(r)},n.prototype.openProjects=function(r){this.router.navigate(["/server",r.id,"projects"])},n.prototype.createModal=function(){var r=this;this.dialog.open(GSe,{width:"350px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(i){i&&r.serverService.create(i).then(function(o){r.serverDatabase.addServer(o)})})},n.prototype.getServerStatus=function(r){if("local"===r.location)return void 0===r.status?"stopped":r.status},n.prototype.deleteServer=function(r){var t=this;this.bottomSheet.open(ih);var i=this.bottomSheet._openedBottomSheetRef;i.instance.message="Do you want to delete the server?",i.afterDismissed().subscribe(function(a){a&&t.serverService.delete(r).then(function(){t.serverDatabase.remove(r)})})},n.prototype.startServer=function(r){return(0,Jn.mG)(this,void 0,void 0,function(){return(0,Jn.Jh)(this,function(t){switch(t.label){case 0:return[4,this.serverManagement.start(r)];case 1:return t.sent(),[2]}})})},n.prototype.stopServer=function(r){return(0,Jn.mG)(this,void 0,void 0,function(){return(0,Jn.Jh)(this,function(t){switch(t.label){case 0:return[4,this.serverManagement.stop(r)];case 1:return t.sent(),[2]}})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(to),e.Y36(Br),e.Y36(c2),e.Y36(QL),e.Y36(e.sBO),e.Y36(cs),e.Y36(CZ),e.Y36(JS),e.Y36(Dr),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-server-list"]],decls:33,vars:4,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","id"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","location"],["matColumnDef","ip"],["matColumnDef","port"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"buttons-bar"],["mat-raised-button","","class","button",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",1,"button",3,"click"],["class","table-link",3,"routerLink",4,"ngIf"],[4,"ngIf"],[1,"table-link",3,"routerLink"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Go to projects","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Start server","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Stop server","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],[3,"diameter",4,"ngIf"],["mat-icon-button","","matTooltip","Remove server","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Remove server"],["mat-icon-button","","matTooltip","Go to projects","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Go to projects"],["mat-icon-button","","matTooltip","Start server","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Start server"],["mat-icon-button","","matTooltip","Stop server","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Stop server"],[3,"diameter"],["mat-raised-button","",1,"button",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"h1"),e._uU(3,"Servers"),e.qZA(),e.qZA(),e.TgZ(4,"div",2),e._UZ(5,"app-server-discovery"),e.TgZ(6,"div",3),e.TgZ(7,"mat-table",4,5),e.ynx(9,6),e.YNc(10,KSe,2,0,"mat-header-cell",7),e.YNc(11,XSe,2,1,"mat-cell",8),e.BQk(),e.ynx(12,9),e.YNc(13,$Se,2,0,"mat-header-cell",7),e.YNc(14,rTe,3,2,"mat-cell",8),e.BQk(),e.ynx(15,10),e.YNc(16,iTe,2,0,"mat-header-cell",7),e.YNc(17,oTe,2,1,"mat-cell",8),e.BQk(),e.ynx(18,11),e.YNc(19,aTe,2,0,"mat-header-cell",7),e.YNc(20,sTe,2,1,"mat-cell",8),e.BQk(),e.ynx(21,12),e.YNc(22,lTe,2,0,"mat-header-cell",7),e.YNc(23,uTe,2,1,"mat-cell",8),e.BQk(),e.ynx(24,13),e.YNc(25,cTe,2,0,"mat-header-cell",7),e.YNc(26,mTe,8,4,"mat-cell",14),e.BQk(),e.YNc(27,vTe,1,0,"mat-header-row",15),e.YNc(28,gTe,1,0,"mat-row",16),e.qZA(),e.qZA(),e.TgZ(29,"div",17),e.YNc(30,_Te,2,0,"button",18),e.TgZ(31,"button",19),e.NdJ("click",function(){return i.createModal()}),e._uU(32,"Add server"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("dataSource",i.dataSource),e.xp6(20),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(2),e.Q6J("ngIf",i.isElectronApp))},directives:[QSe,Jl,dl,cl,ul,Ql,Kl,kt.O5,An,pl,fl,oy,Ja,sr,lq,Xl,$l],styles:[".buttons-bar[_ngcontent-%COMP%]{padding-top:0}.button[_ngcontent-%COMP%]{margin:20px!important}"]}),n}(),bTe=function(n){function r(t){var i=n.call(this)||this;return i.serverDatabase=t,i}return(0,Jn.ZT)(r,n),r.prototype.connect=function(){var t=this;return(0,go.T)(this.serverDatabase.dataChange).pipe((0,Er.U)(function(){return t.serverDatabase.data}))},r.prototype.disconnect=function(){},r}(Gi.o2),Uz=function(){function n(r){this.electronService=r}return n.prototype.get=function(){if(this.electronService.isElectronApp){if(this.electronService.isLinux)return'xfce4-terminal --tab -T "%d" -e "telnet %h %p"';if(this.electronService.isWindows)return'putty.exe -telnet %h %p -loghost "%d"'}},n.\u0275fac=function(t){return new(t||n)(e.LFG(cs))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),XL=function(){function n(r,t){this.defaultConsoleService=r,this.settingsService=t}return Object.defineProperty(n.prototype,"command",{get:function(){var r=this.settingsService.getConsoleSettings();return void 0===r?this.defaultConsoleService.get():r},set:function(r){this.settingsService.setConsoleSettings(r)},enumerable:!1,configurable:!0}),n.\u0275fac=function(t){return new(t||n)(e.LFG(Uz),e.LFG(Tp.g))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),CTe=function(){function n(r,t,i){this.router=r,this.consoleService=t,this.toasterService=i,this.consoleForm=new re.cw({command:new re.NI("")})}return n.prototype.ngOnInit=function(){this.consoleForm.get("command").setValue(this.consoleService.command)},n.prototype.goBack=function(){this.router.navigate(["/settings"])},n.prototype.save=function(){this.consoleService.command=this.consoleForm.value.command,this.toasterService.success("Console command has been updated."),this.goBack()},n.\u0275fac=function(t){return new(t||n)(e.Y36(xr),e.Y36(XL),e.Y36(Xn))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-console"]],decls:30,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[3,"formGroup"],[1,"form-field","full-width-field"],["matInput","","formControlName","command","placeholder","Command"],[1,"help"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Console settings"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card"),e.TgZ(7,"form",5),e.TgZ(8,"mat-form-field",6),e._UZ(9,"textarea",7),e.qZA(),e.TgZ(10,"div",8),e._uU(11," The following variables are replaced by GNS3:"),e._UZ(12,"br"),e._uU(13," %h: console IP or hostname"),e._UZ(14,"br"),e._uU(15," %p: console port"),e._UZ(16,"br"),e._uU(17," %s: path of the serial connection"),e._UZ(18,"br"),e._uU(19," %d: title of the console"),e._UZ(20,"br"),e._uU(21," %i: Project UUID"),e._UZ(22,"br"),e._uU(23," %c: server URL (http://user:password@server:port) "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(24,"div",9),e.TgZ(25,"button",10),e.NdJ("click",function(){return i.goBack()}),e._uU(26,"Cancel"),e.qZA(),e.TgZ(27,"button",11),e.NdJ("click",function(){return i.save()}),e._uU(28,"Save"),e.qZA(),e._UZ(29,"br"),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("formGroup",i.consoleForm))},directives:[yi,re._Y,re.JL,re.sg,Hn.KE,lr,re.Fj,re.JJ,re.u,An],styles:[".help[_ngcontent-%COMP%]{font-size:14px}"]}),n}(),Hz=function(){function n(r){this.httpClient=r}return n.prototype.getLatestVersion=function(){return this.httpClient.get("http://update.gns3.net/")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Ku.eN))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),STe=function(){function n(r,t,i,o,a,s){this.settingsService=r,this.toaster=t,this.consoleService=i,this.themeService=o,this.mapSettingsService=a,this.updatesService=s}return n.prototype.ngOnInit=function(){this.settings=this.settingsService.getAll(),this.consoleCommand=this.consoleService.command,this.integrateLinksLabelsToLinks=this.mapSettingsService.integrateLinkLabelsToLinks,this.openConsolesInWidget=this.mapSettingsService.openConsolesInWidget},n.prototype.save=function(){this.settingsService.setAll(this.settings),this.toaster.success("Settings have been saved."),this.mapSettingsService.toggleIntegrateInterfaceLabels(this.integrateLinksLabelsToLinks),this.mapSettingsService.toggleOpenConsolesInWidget(this.openConsolesInWidget)},n.prototype.setDarkMode=function(r){this.themeService.setDarkMode(r)},n.prototype.checkForUpdates=function(){window.open("https://gns3.com/software")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Tp.g),e.Y36(Xn),e.Y36(XL),e.Y36(sc.f),e.Y36(Ou),e.Y36(Hz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-settings"]],decls:60,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"expanded"],[3,"ngModel","ngModelChange"],[1,"full-width-field"],["matInput","","placeholder","console","readonly","true",3,"value"],["mat-icon-button","","matSuffix","","routerLink","/settings/console"],[1,"theme-panel"],["mat-raised-button","",3,"click"],["mat-raised-button","",1,"fullWidth",3,"click"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"h1"),e._uU(3,"Settings"),e.qZA(),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"div",3),e.TgZ(6,"mat-accordion"),e.TgZ(7,"mat-expansion-panel",4),e.TgZ(8,"mat-expansion-panel-header"),e.TgZ(9,"mat-panel-title"),e._uU(10," Local settings "),e.qZA(),e.TgZ(11,"mat-panel-description"),e._uU(12," Customize your local settings "),e.qZA(),e.qZA(),e.TgZ(13,"div"),e.TgZ(14,"mat-checkbox",5),e.NdJ("ngModelChange",function(a){return i.settings.crash_reports=a}),e._uU(15,"Send anonymous crash reports"),e.qZA(),e._UZ(16,"br"),e.TgZ(17,"mat-checkbox",5),e.NdJ("ngModelChange",function(a){return i.settings.anonymous_statistics=a}),e._uU(18,"Send anonymous usage statistics"),e.qZA(),e._UZ(19,"br"),e.TgZ(20,"mat-checkbox",5),e.NdJ("ngModelChange",function(a){return i.integrateLinksLabelsToLinks=a}),e._uU(21,"Integrate link labels to links"),e.qZA(),e._UZ(22,"br"),e.TgZ(23,"mat-checkbox",5),e.NdJ("ngModelChange",function(a){return i.openConsolesInWidget=a}),e._uU(24,"Open consoles in the widget instead of in new tabs after clicking start consoles for all nodes"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"mat-expansion-panel",4),e.TgZ(26,"mat-expansion-panel-header"),e.TgZ(27,"mat-panel-title"),e._uU(28," Console settings "),e.qZA(),e.TgZ(29,"mat-panel-description"),e._uU(30," Customize console settings "),e.qZA(),e.qZA(),e.TgZ(31,"div"),e.TgZ(32,"mat-form-field",6),e._UZ(33,"input",7),e.TgZ(34,"a",8),e.TgZ(35,"mat-icon"),e._uU(36,"mode_edit"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(37,"mat-expansion-panel",4),e.TgZ(38,"mat-expansion-panel-header"),e.TgZ(39,"mat-panel-title"),e._uU(40," Theme settings "),e.qZA(),e.TgZ(41,"mat-panel-description"),e._uU(42," Customize theme settings "),e.qZA(),e.qZA(),e.TgZ(43,"div",9),e.TgZ(44,"button",10),e.NdJ("click",function(){return i.setDarkMode(!1)}),e._uU(45,"Switch to light theme"),e.qZA(),e.TgZ(46,"button",10),e.NdJ("click",function(){return i.setDarkMode(!0)}),e._uU(47,"Switch to dark theme"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(48,"mat-expansion-panel",4),e.TgZ(49,"mat-expansion-panel-header"),e.TgZ(50,"mat-panel-title"),e._uU(51," Updates "),e.qZA(),e.TgZ(52,"mat-panel-description"),e._uU(53," Check for updates "),e.qZA(),e.qZA(),e.TgZ(54,"div",9),e.TgZ(55,"button",11),e.NdJ("click",function(){return i.checkForUpdates()}),e._uU(56,"Check for updates"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(57,"div",12),e.TgZ(58,"button",13),e.NdJ("click",function(){return i.save()}),e._uU(59,"Save settings"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(7),e.Q6J("expanded",!0),e.xp6(7),e.Q6J("ngModel",i.settings.crash_reports),e.xp6(3),e.Q6J("ngModel",i.settings.anonymous_statistics),e.xp6(3),e.Q6J("ngModel",i.integrateLinksLabelsToLinks),e.xp6(3),e.Q6J("ngModel",i.openConsolesInWidget),e.xp6(2),e.Q6J("expanded",!1),e.xp6(8),e.Q6J("value",i.consoleCommand),e.xp6(4),e.Q6J("expanded",!1),e.xp6(11),e.Q6J("expanded",!1))},directives:[id,oc,ac,rd,Mse,Zo,re.JJ,re.On,Hn.KE,lr,mae,oy,Hn.R9,sr,An],styles:[".theme-panel[_ngcontent-%COMP%]{justify-content:space-between;display:flex;padding:10px}.fullWidth[_ngcontent-%COMP%]{width:100%}"]}),n}(),TTe=function(){function n(){}return n.prototype.transform=function(r,t){return r?t?(t=t.toLowerCase(),r.filter(function(i){return i.name.toLowerCase().includes(t)})):r:[]},n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"namefilter",type:n,pure:!0}),n}(),xTe=function(){function n(){}return n.prototype.transform=function(r){var t=new Date(1e3*+r),i=t.getHours(),o="0"+t.getMinutes(),a="0"+t.getSeconds(),s=t.getFullYear(),u=t.getMonth()+1,p=t.getDate();return i+":"+o.substr(-2)+":"+a.substr(-2)+" "+p+"/"+u+"/"+s},n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"datefilter",type:n,pure:!0}),n}();function wTe(n,r){1&n&&(e.TgZ(0,"mat-header-cell",18),e._uU(1," Name "),e.qZA())}function ETe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function kTe(n,r){1&n&&(e.TgZ(0,"mat-header-cell",18),e._uU(1," Date "),e.qZA())}function MTe(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e._uU(1),e.ALo(2,"datefilter"),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,t.created_at)," ")}}function ATe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Actions "),e.qZA())}function DTe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-cell",19),e.TgZ(1,"button",20),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw().restoreSnapshot(a)}),e.TgZ(2,"mat-icon",21),e._uU(3,"restore"),e.qZA(),e.qZA(),e.TgZ(4,"button",22),e.NdJ("click",function(){var a=e.CHM(t).$implicit;return e.oxw().deleteSnapshot(a)}),e.TgZ(5,"mat-icon",23),e._uU(6,"delete"),e.qZA(),e.qZA(),e.qZA()}}function OTe(n,r){1&n&&e._UZ(0,"mat-header-row")}function PTe(n,r){1&n&&e._UZ(0,"mat-row")}var ITe=function(){function n(r,t,i,o){this.route=r,this.snapshotService=t,this.progressDialogService=i,this.toaster=o,this.displayedColumns=["name","creationDate","actions"]}return n.prototype.ngOnInit=function(){this.projectId=this.route.snapshot.paramMap.get("project_id"),this.server=this.route.snapshot.data.server,this.getSnapshots()},n.prototype.getSnapshots=function(){var r=this;this.snapshotService.list(this.server,this.projectId).subscribe(function(t){r.snapshots=t})},n.prototype.restoreSnapshot=function(r){var t=this,i=this.snapshotService.restore(this.server,this.projectId,r.snapshot_id.toString()),o=this.progressDialogService.open(),a=i.subscribe(function(s){t.toaster.success("Snapshot "+r.name+" has been restored."),o.close()});o.afterClosed().subscribe(function(s){s===YL.CANCELLED&&a.unsubscribe()})},n.prototype.deleteSnapshot=function(r){var t=this;this.snapshotService.delete(this.server,this.projectId,r.snapshot_id.toString()).subscribe(function(){t.getSnapshots(),t.toaster.success("Snapshot "+r.name+" has been deleted.")})},n.prototype.sortData=function(r){if(r.active&&""!==r.direction){var t=this.snapshots.slice();this.snapshots=t.sort(function(i,o){var a="asc"===r.direction;return"name"===r.active?function(n,r,t){return((n=n.toLowerCase())<(r=r.toLowerCase())?-1:1)*(t?1:-1)}(i.name,o.name,a):"creationDate"===r.active?function(n,r,t){return(n<r?-1:1)*(t?1:-1)}(+i.created_at,+o.created_at,!a):0})}},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(j2),e.Y36(JL),e.Y36(Xn))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-list-of-snapshots"]],decls:23,vars:7,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"filter-field"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange"],["matSort","",1,"mat-table",3,"dataSource","matSortChange"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","creationDate"],["matColumnDef","actions"],[4,"matHeaderCellDef"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[2,"text-align","right"],["mat-icon-button","","matTooltip","Restore snapshot","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Restore snapshot"],["mat-icon-button","","matTooltip","Delete snapshot","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete snapshot"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"Snapshots"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.TgZ(6,"mat-card"),e.TgZ(7,"mat-form-field",5),e.TgZ(8,"input",6),e.NdJ("ngModelChange",function(a){return i.searchText=a}),e.qZA(),e.qZA(),e.TgZ(9,"mat-table",7,8),e.NdJ("matSortChange",function(a){return i.sortData(a)}),e.ALo(11,"namefilter"),e.ynx(12,9),e.YNc(13,wTe,2,0,"mat-header-cell",10),e.YNc(14,ETe,2,1,"mat-cell",11),e.BQk(),e.ynx(15,12),e.YNc(16,kTe,2,0,"mat-header-cell",10),e.YNc(17,MTe,3,3,"mat-cell",11),e.BQk(),e.ynx(18,13),e.YNc(19,ATe,2,0,"mat-header-cell",14),e.YNc(20,DTe,7,0,"mat-cell",15),e.BQk(),e.YNc(21,OTe,1,0,"mat-header-row",16),e.YNc(22,PTe,1,0,"mat-row",17),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("ngModel",i.searchText),e.xp6(1),e.Q6J("dataSource",e.xi3(11,4,i.snapshots,i.searchText)),e.xp6(12),e.Q6J("matHeaderRowDef",i.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns))},directives:[yi,Hn.KE,lr,re.Fj,re.JJ,re.On,Jl,XS,dl,cl,ul,Ql,Kl,pl,mz,fl,An,Ja,sr,Xl,$l],pipes:[TTe,xTe],styles:[".filter-field[_ngcontent-%COMP%]{width:100%}.mat-table[_ngcontent-%COMP%]{margin:-16px!important}"]}),n}(),ZTe=["*"],Vz=new e.OlP("MatChipRemove"),qz=new e.OlP("MatChipAvatar"),jz=new e.OlP("MatChipTrailingIcon"),FTe=(0,un.sb)((0,un.pj)((0,un.Kr)(function n(r){(0,g.Z)(this,n),this._elementRef=r}),"primary"),-1),G2=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p,m,C,P){var L;return(0,g.Z)(this,i),(L=t.call(this,o))._ngZone=a,L._changeDetectorRef=p,L._hasFocus=!1,L.chipListSelectable=!0,L._chipListMultiple=!1,L._chipListDisabled=!1,L._selected=!1,L._selectable=!0,L._disabled=!1,L._removable=!0,L._onFocus=new Pn.xQ,L._onBlur=new Pn.xQ,L.selectionChange=new e.vpe,L.destroyed=new e.vpe,L.removed=new e.vpe,L._addHostClassName(),L._chipRippleTarget=m.createElement("div"),L._chipRippleTarget.classList.add("mat-chip-ripple"),L._elementRef.nativeElement.appendChild(L._chipRippleTarget),L._chipRipple=new un.IR((0,CS.Z)(L),a,L._chipRippleTarget,s),L._chipRipple.setupTriggerEvents(o),L.rippleConfig=u||{},L._animationsDisabled="NoopAnimations"===C,L.tabIndex=null!=P&&parseInt(P)||-1,L}return(0,T.Z)(i,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(a){var s=(0,Mn.Ig)(a);s!==this._selected&&(this._selected=s,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(a){this._value=a}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(a){this._selectable=(0,Mn.Ig)(a)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(a){this._disabled=(0,Mn.Ig)(a)}},{key:"removable",get:function(){return this._removable},set:function(a){this._removable=(0,Mn.Ig)(a)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var a="mat-basic-chip",s=this._elementRef.nativeElement;s.hasAttribute(a)||s.tagName.toLowerCase()===a?s.classList.add(a):s.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(a),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(a){this.disabled?a.preventDefault():a.stopPropagation()}},{key:"_handleKeydown",value:function(a){if(!this.disabled)switch(a.keyCode){case zr.yY:case zr.ZH:this.remove(),a.preventDefault();break;case zr.L_:this.selectable&&this.toggleSelected(!0),a.preventDefault()}}},{key:"_blur",value:function(){var a=this;this._ngZone.onStable.pipe((0,$i.q)(1)).subscribe(function(){a._ngZone.run(function(){a._hasFocus=!1,a._onBlur.next({chip:a})})})}},{key:"_dispatchSelectionChange",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:a,selected:this._selected})}}]),i}(FTe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(Xr.t4),e.Y36(un.Y2,8),e.Y36(e.sBO),e.Y36(kt.K0),e.Y36(ys.Qb,8),e.$8M("tabindex"))},n.\u0275dir=e.lG2({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,qz,5),e.Suo(o,jz,5),e.Suo(o,Vz,5)),2&t&&(e.iGM(a=e.CRH())&&(i.avatar=a.first),e.iGM(a=e.CRH())&&(i.trailingIcon=a.first),e.iGM(a=e.CRH())&&(i.removeIcon=a.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,i){1&t&&e.NdJ("click",function(a){return i._handleClick(a)})("keydown",function(a){return i._handleKeydown(a)})("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&t&&(e.uIk("tabindex",i.disabled?null:i.tabIndex)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString())("aria-selected",i.ariaSelected),e.ekj("mat-chip-selected",i.selected)("mat-chip-with-avatar",i.avatar)("mat-chip-with-trailing-icon",i.trailingIcon||i.removeIcon)("mat-chip-disabled",i.disabled)("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[e.qOj]}),n}(),zz=new e.OlP("mat-chips-default-options"),VTe=(0,un.FD)(function(){return function n(r,t,i,o){(0,g.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=t,this._parentFormGroup=i,this.ngControl=o}}()),qTe=0,jTe=function n(r,t){(0,g.Z)(this,n),this.source=r,this.value=t},Wz=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s,u,p,m,C){var P;return(0,g.Z)(this,i),(P=t.call(this,m,u,p,C))._elementRef=o,P._changeDetectorRef=a,P._dir=s,P.controlType="mat-chip-list",P._lastDestroyedChipIndex=null,P._destroyed=new Pn.xQ,P._uid="mat-chip-list-".concat(qTe++),P._tabIndex=0,P._userTabIndex=null,P._onTouched=function(){},P._onChange=function(){},P._multiple=!1,P._compareWith=function(L,G){return L===G},P._required=!1,P._disabled=!1,P.ariaOrientation="horizontal",P._selectable=!0,P.change=new e.vpe,P.valueChange=new e.vpe,P.ngControl&&(P.ngControl.valueAccessor=(0,CS.Z)(P)),P}return(0,T.Z)(i,[{key:"selected",get:function(){var a,s;return this.multiple?(null===(a=this._selectionModel)||void 0===a?void 0:a.selected)||[]:null===(s=this._selectionModel)||void 0===s?void 0:s.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(a){this._multiple=(0,Mn.Ig)(a),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(a){this._compareWith=a,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(a){this.writeValue(a),this._value=a}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(a){this._required=(0,Mn.Ig)(a),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(a){this._placeholder=a,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(a){this._disabled=(0,Mn.Ig)(a),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(a){var s=this;this._selectable=(0,Mn.Ig)(a),this.chips&&this.chips.forEach(function(u){return u.chipListSelectable=s._selectable})}},{key:"tabIndex",set:function(a){this._userTabIndex=a,this._tabIndex=a}},{key:"chipSelectionChanges",get:function(){return go.T.apply(void 0,(0,v.Z)(this.chips.map(function(a){return a.selectionChange})))}},{key:"chipFocusChanges",get:function(){return go.T.apply(void 0,(0,v.Z)(this.chips.map(function(a){return a._onFocus})))}},{key:"chipBlurChanges",get:function(){return go.T.apply(void 0,(0,v.Z)(this.chips.map(function(a){return a._onBlur})))}},{key:"chipRemoveChanges",get:function(){return go.T.apply(void 0,(0,v.Z)(this.chips.map(function(a){return a.destroyed})))}},{key:"ngAfterContentInit",value:function(){var a=this;this._keyManager=new Ai.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,Zr.R)(this._destroyed)).subscribe(function(s){return a._keyManager.withHorizontalOrientation(s)}),this._keyManager.tabOut.pipe((0,Zr.R)(this._destroyed)).subscribe(function(){a._allowFocusEscape()}),this.chips.changes.pipe((0,ra.O)(null),(0,Zr.R)(this._destroyed)).subscribe(function(){a.disabled&&Promise.resolve().then(function(){a._syncChipsState()}),a._resetChips(),a._initializeSelection(),a._updateTabIndex(),a._updateFocusForDestroyedChips(),a.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new Gi.Ov(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(a){this._chipInput=a,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",a.id)}},{key:"setDescribedByIds",value:function(a){this._ariaDescribedby=a.join(" ")}},{key:"writeValue",value:function(a){this.chips&&this._setSelectionByValue(a,!1)}},{key:"registerOnChange",value:function(a){this._onChange=a}},{key:"registerOnTouched",value:function(a){this._onTouched=a}},{key:"setDisabledState",value:function(a){this.disabled=a,this.stateChanges.next()}},{key:"onContainerClick",value:function(a){this._originatesFromChip(a)||this.focus()}},{key:"focus",value:function(a){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(a),this.stateChanges.next()))}},{key:"_focusInput",value:function(a){this._chipInput&&this._chipInput.focus(a)}},{key:"_keydown",value:function(a){var s=a.target;s&&s.classList.contains("mat-chip")&&(this._keyManager.onKeydown(a),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var a=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(a)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(a){return a>=0&&a<this.chips.length}},{key:"_setSelectionByValue",value:function(a){var s=this,u=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(m){return m.deselect()}),Array.isArray(a))a.forEach(function(m){return s._selectValue(m,u)}),this._sortValues();else{var p=this._selectValue(a,u);p&&u&&this._keyManager.setActiveItem(p)}}},{key:"_selectValue",value:function(a){var s=this,u=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],p=this.chips.find(function(m){return null!=m.value&&s._compareWith(m.value,a)});return p&&(u?p.selectViaInteraction():p.select(),this._selectionModel.select(p)),p}},{key:"_initializeSelection",value:function(){var a=this;Promise.resolve().then(function(){(a.ngControl||a._value)&&(a._setSelectionByValue(a.ngControl?a.ngControl.value:a._value,!1),a.stateChanges.next())})}},{key:"_clearSelection",value:function(a){this._selectionModel.clear(),this.chips.forEach(function(s){s!==a&&s.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var a=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(s){s.selected&&a._selectionModel.select(s)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(a){var s;s=Array.isArray(this.selected)?this.selected.map(function(u){return u.value}):this.selected?this.selected.value:a,this._value=s,this.change.emit(new jTe(this,s)),this.valueChange.emit(s),this._onChange(s),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var a=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){a.focused||a._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var a=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){a._tabIndex=a._userTabIndex||0,a._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var a=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(s){s.source.selected?a._selectionModel.select(s.source):a._selectionModel.deselect(s.source),a.multiple||a.chips.forEach(function(u){!a._selectionModel.isSelected(u)&&u.selected&&u.deselect()}),s.isUserInput&&a._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var a=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(s){var u=a.chips.toArray().indexOf(s.chip);a._isValidIndex(u)&&a._keyManager.updateActiveItem(u),a.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){a._blur(),a.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var a=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(s){var u=s.chip,p=a.chips.toArray().indexOf(s.chip);a._isValidIndex(p)&&u._hasFocus&&(a._lastDestroyedChipIndex=p)})}},{key:"_originatesFromChip",value:function(a){for(var s=a.target;s&&s!==this._elementRef.nativeElement;){if(s.classList.contains("mat-chip"))return!0;s=s.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(a){return a._hasFocus})}},{key:"_syncChipsState",value:function(){var a=this;this.chips&&this.chips.forEach(function(s){s._chipListDisabled=a._disabled,s._chipListMultiple=a.multiple})}}]),i}(VTe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Na.Is,8),e.Y36(re.F,8),e.Y36(re.sg,8),e.Y36(un.rD),e.Y36(re.a5,10))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-chip-list"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,G2,5),2&t&&e.iGM(a=e.CRH())&&(i.chips=a)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,i){1&t&&e.NdJ("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(a){return i._keydown(a)}),2&t&&(e.Ikx("id",i._uid),e.uIk("tabindex",i.disabled?null:i._tabIndex)("aria-describedby",i._ariaDescribedby||null)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-multiselectable",i.multiple)("role",i.role)("aria-orientation",i.ariaOrientation),e.ekj("mat-chip-list-disabled",i.disabled)("mat-chip-list-invalid",i.errorState)("mat-chip-list-required",i.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[e._Bn([{provide:Hn.Eo,useExisting:n}]),e.qOj],ngContentSelectors:ZTe,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,i){1&t&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),n}(),GTe={separatorKeyCodes:[zr.K5]},YTe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[un.rD,{provide:zz,useValue:GTe}],imports:[[un.BQ]]}),n}(),JTe=function(){return["Load average","(last 1 minute)"]},QTe=function(){return["Load average","(last 5 minutes)"]},KTe=function(){return["Load average","(last 15 minutes)"]},XTe=function(){function n(){}return n.prototype.ngOnInit=function(){},n.prototype.formatBytes=function(r,t){if(void 0===t&&(t=2),0===r)return"0 Bytes";var o=t<0?0:t,s=Math.floor(Math.log(r)/Math.log(1024));return parseFloat((r/Math.pow(1024,s)).toFixed(o))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][s]},n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-status-chart"]],inputs:{computeStatistics:"computeStatistics"},decls:30,vars:114,consts:[[1,"wrapper"],[3,"percent","radius","outerStrokeWidth","innerStrokeWidth","outerStrokeColor","innerStrokeColor","animation","animationDuration","unitsColor","unitsFontSize","titleColor","titleFontSize","subtitle","subtitleColor","subtitleFontSize"],[1,"chips-wrapper"],["color","primary","selected",""]],template:function(t,i){1&t&&(e.TgZ(0,"mat-card"),e.TgZ(1,"div",0),e._UZ(2,"circle-progress",1),e._UZ(3,"circle-progress",1),e._UZ(4,"circle-progress",1),e._UZ(5,"circle-progress",1),e.qZA(),e.TgZ(6,"div",0),e._UZ(7,"circle-progress",1),e._UZ(8,"circle-progress",1),e._UZ(9,"circle-progress",1),e.qZA(),e.TgZ(10,"div",2),e.TgZ(11,"mat-chip-list"),e.TgZ(12,"mat-chip",3),e._uU(13),e.qZA(),e.qZA(),e.TgZ(14,"mat-chip-list"),e.TgZ(15,"mat-chip",3),e._uU(16),e.qZA(),e.qZA(),e.TgZ(17,"mat-chip-list"),e.TgZ(18,"mat-chip",3),e._uU(19),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"div",2),e.TgZ(21,"mat-chip-list"),e.TgZ(22,"mat-chip",3),e._uU(23),e.qZA(),e.qZA(),e.TgZ(24,"mat-chip-list"),e.TgZ(25,"mat-chip",3),e._uU(26),e.qZA(),e.qZA(),e.TgZ(27,"mat-chip-list"),e.TgZ(28,"mat-chip",3),e._uU(29),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(2),e.Q6J("percent",i.computeStatistics.statistics.cpu_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","CPU usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),e.xp6(1),e.Q6J("percent",i.computeStatistics.statistics.disk_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","Disk usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),e.xp6(1),e.Q6J("percent",i.computeStatistics.statistics.memory_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","Memory usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),e.xp6(1),e.Q6J("percent",i.computeStatistics.statistics.swap_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","SWAP usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),e.xp6(2),e.Q6J("percent",i.computeStatistics.statistics.load_average_percent[0])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",e.DdM(111,JTe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),e.xp6(1),e.Q6J("percent",i.computeStatistics.statistics.load_average_percent[1])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",e.DdM(112,QTe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),e.xp6(1),e.Q6J("percent",i.computeStatistics.statistics.load_average_percent[2])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",e.DdM(113,KTe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),e.xp6(4),e.hij("Memory total: ",i.formatBytes(i.computeStatistics.statistics.memory_total),""),e.xp6(3),e.hij("Memory used: ",i.formatBytes(i.computeStatistics.statistics.memory_used),""),e.xp6(3),e.hij("Memory free: ",i.formatBytes(i.computeStatistics.statistics.memory_free),""),e.xp6(4),e.hij("Swap total: ",i.formatBytes(i.computeStatistics.statistics.swap_total),""),e.xp6(3),e.hij("Swap used: ",i.formatBytes(i.computeStatistics.statistics.swap_used),""),e.xp6(3),e.hij("Swap free: ",i.formatBytes(i.computeStatistics.statistics.swap_free),""))},directives:[yi,wre,Wz,G2],styles:[".wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;max-height:250px!important}.chips-wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;margin-bottom:10px}"]}),n}();function $Te(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Statistics not loaded"),e.qZA())}function exe(n,r){if(1&n&&(e.TgZ(0,"div"),e._uU(1),e._UZ(2,"app-status-chart",2),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.hij(" ",t.compute_name," "),e.xp6(1),e.Q6J("computeStatistics",t)}}var txe=function(){function n(r,t,i,o){this.route=r,this.computeService=t,this.serverService=i,this.toasterService=o,this.serverId="",this.computeStatistics=[]}return n.prototype.ngOnInit=function(){this.serverId=this.route.snapshot.paramMap.get("server_id"),this.getStatistics()},n.prototype.getStatistics=function(){var r=this;this.serverService.get(Number(this.serverId)).then(function(t){r.computeService.getStatistics(t).subscribe(function(i){r.computeStatistics=i,setTimeout(function(){r.getStatistics()},2e4)})})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(uc.X),e.Y36(Br),e.Y36(Xn))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-status-info"]],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"computeStatistics"]],template:function(t,i){1&t&&(e.YNc(0,$Te,2,0,"div",0),e.YNc(1,exe,3,2,"div",1)),2&t&&(e.Q6J("ngIf",!i.computeStatistics.length),e.xp6(1),e.Q6J("ngForOf",i.computeStatistics))},directives:[kt.O5,kt.sg,XTe],styles:[""]}),n}(),nxe=function(){function n(r){this.route=r,this.serverId=""}return n.prototype.ngOnInit=function(){this.serverId=this.route.snapshot.paramMap.get("server_id")},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-system-status"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"h1",3),e._uU(4,"System status"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e._UZ(6,"app-status-info"),e.qZA(),e.qZA())},directives:[txe],styles:[""]}),n}(),rxe=["terminal"],Gz=function(){function n(r,t,i,o,a){this.consoleService=r,this.serverService=t,this.route=i,this.title=o,this.nodeService=a,this.subscriptions=new rs.w,this.term=new Nz.Terminal,this.fitAddon=new Lz.FitAddon}return n.prototype.ngOnInit=function(){var r=this;this.serverService.isServiceInitialized?this.getData():this.subscriptions.add(this.serverService.serviceInitialized.subscribe(function(t){t&&r.getData()}))},n.prototype.getData=function(){var r=this;this.serverId=this.route.snapshot.paramMap.get("server_id"),this.projectId=this.route.snapshot.paramMap.get("project_id"),this.nodeId=this.route.snapshot.paramMap.get("node_id"),this.consoleService.consoleResized.subscribe(function(t){r.fitAddon.fit()}),this.serverService.get(+this.serverId).then(function(t){r.server=t,r.nodeService.getNodeById(r.server,r.projectId,r.nodeId).subscribe(function(i){r.node=i,r.title.setTitle(r.node.name),r.openTerminal()})})},n.prototype.openTerminal=function(){var r=this;setTimeout(function(){r.term.open(r.terminal.nativeElement);var t=new WebSocket(r.consoleService.getUrl(r.server,r.node));t.onerror=function(s){r.term.write("Connection lost\r\n")},t.onclose=function(s){r.term.write("Connection closed\r\n")};var i=new Zz.AttachAddon(t);r.term.loadAddon(i),r.term.setOption("cursorBlink",!0),r.term.loadAddon(r.fitAddon),r.fitAddon.activate(r.term),r.fitAddon.fit(),r.term.focus(),r.term.attachCustomKeyEventHandler(function(s){return!(("KeyC"===s.code||"KeyV"===s.code)&&s.ctrlKey&&s.shiftKey)});var o=Math.round(window.innerWidth/r.consoleService.getLineWidth()),a=Math.round(window.innerHeight/r.consoleService.getLineHeight());r.term.resize(o,a)},0)},n.\u0275fac=function(t){return new(t||n)(e.Y36(cd),e.Y36(Br),e.Y36(Dr),e.Y36(U.Dx),e.Y36(Wr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-web-console-full-window"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(rxe,5),2&t)&&(e.iGM(o=e.CRH())&&(i.terminal=o.first))},decls:2,vars:0,consts:[["id","terminal",2,"width","100%","height","100%"],["terminal",""]],template:function(t,i){1&t&&e._UZ(0,"div",0,1)},styles:[".xterm{position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm{cursor:text}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}\n"],encapsulation:2}),n}(),Yz=function(){function n(r,t){this.consoleService=r,this.bottomSheet=t}return n.prototype.canDeactivate=function(){if(this.consoleService.openConsoles>0){this.bottomSheet.open(ih);var r=this.bottomSheet._openedBottomSheetRef;return r.instance.message="Exiting the project will close open consoles, do you want to continue?",r.afterDismissed()}return!0},n.\u0275fac=function(t){return new(t||n)(e.LFG(cd),e.LFG(JS))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),ixe=["*",[["mat-toolbar-row"]]],oxe=["*","mat-toolbar-row"],axe=(0,un.pj)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}()),sxe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=e.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n}(),lxe=function(){var n=function(r){(0,A.Z)(i,r);var t=(0,S.Z)(i);function i(o,a,s){var u;return(0,g.Z)(this,i),(u=t.call(this,o))._platform=a,u._document=s,u}return(0,T.Z)(i,[{key:"ngAfterViewInit",value:function(){var a=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return a._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),i}(axe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(Xr.t4),e.Y36(kt.K0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,sxe,5),2&t&&e.iGM(a=e.CRH())&&(i._toolbarRows=a)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,i){2&t&&e.ekj("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:oxe,decls:2,vars:0,template:function(t,i){1&t&&(e.F$t(ixe),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n}(),uxe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.BQ],un.BQ]}),n}();function cxe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){return e.CHM(t),e.oxw().listProjects()}),e._uU(1," Projects "),e.qZA()}}function dxe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){return e.CHM(t),e.oxw().backToProject()}),e._uU(1," Back to project "),e.qZA()}}var pxe=function(){function n(r,t,i,o,a,s){this.electronService=r,this.recentlyOpenedProjectService=t,this.serverManagement=i,this.toasterService=o,this.progressService=a,this.router=s,this.isInstalledSoftwareAvailable=!1,this.uiVersion=Iz,this.currentYear=(new Date).getFullYear(),this.shouldStopServersOnClosing=!0}return n.prototype.ngOnInit=function(){var r=this;this.recentlyOpenedServerId=this.recentlyOpenedProjectService.getServerId(),this.recentlyOpenedProjectId=this.recentlyOpenedProjectService.getProjectId(),this.serverIdProjectList=this.recentlyOpenedProjectService.getServerIdProjectList(),this.isInstalledSoftwareAvailable=this.electronService.isElectronApp,this.serverStatusSubscription=this.serverManagement.serverStatusChanged.subscribe(function(t){"errored"===t.status&&(console.error(t.message),r.toasterService.error(t.message)),"stderr"===t.status&&(console.error(t.message),r.toasterService.error(t.message))}),this.shouldStopServersOnClosing=this.electronService.isElectronApp},n.prototype.listProjects=function(){var r=this;this.router.navigate(["/server",this.serverIdProjectList,"projects"]).catch(function(t){return r.toasterService.error("Cannot list projects")})},n.prototype.backToProject=function(){var r=this;this.router.navigate(["/server",this.recentlyOpenedServerId,"project",this.recentlyOpenedProjectId]).catch(function(t){return r.toasterService.error("Cannot navigate to the last opened project")})},n.prototype.onBeforeUnload=function(r){return(0,Jn.mG)(this,void 0,void 0,function(){return(0,Jn.Jh)(this,function(t){switch(t.label){case 0:return this.shouldStopServersOnClosing?(r.preventDefault(),r.returnValue=!1,this.progressService.activate(),[4,this.serverManagement.stopAll()]):[2];case 1:return t.sent(),this.shouldStopServersOnClosing=!1,this.progressService.deactivate(),window.close(),[2,!1]}})})},n.prototype.ngOnDestroy=function(){this.serverStatusSubscription.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(cs),e.Y36(q2.p),e.Y36(QL),e.Y36(Xn),e.Y36(Xf),e.Y36(xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-default-layout"]],hostBindings:function(t,i){1&t&&e.NdJ("beforeunload",function(a){return i.onBeforeUnload(a)},!1,e.Jf7)},decls:34,vars:6,consts:[["color","primary"],["mat-icon-button",""],["svgIcon","gns3"],["mat-button","","routerLink","/servers"],["mat-button","",3,"click",4,"ngIf"],[1,"fill-space"],["mat-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","","routerLink","/settings"],["mat-menu-item","","routerLink","/installed-software",3,"disabled"],["mat-menu-item","","routerLink","/help"],[1,"mat-app-background"],[1,"footer","mat-app-background"],["mat-button","",3,"click"]],template:function(t,i){if(1&t&&(e.TgZ(0,"header"),e.TgZ(1,"mat-toolbar",0),e.TgZ(2,"button",1),e._UZ(3,"mat-icon",2),e.qZA(),e.TgZ(4,"button",3),e._uU(5,"Servers"),e.qZA(),e.YNc(6,cxe,2,0,"button",4),e.YNc(7,dxe,2,0,"button",4),e._UZ(8,"span",5),e.TgZ(9,"button",6),e.TgZ(10,"mat-icon"),e._uU(11,"more_vert"),e.qZA(),e.qZA(),e.TgZ(12,"mat-menu",null,7),e.TgZ(14,"button",8),e.TgZ(15,"mat-icon"),e._uU(16,"settings"),e.qZA(),e.TgZ(17,"span"),e._uU(18,"Settings"),e.qZA(),e.qZA(),e.TgZ(19,"button",9),e.TgZ(20,"mat-icon"),e._uU(21,"cloud_download"),e.qZA(),e.TgZ(22,"span"),e._uU(23,"Installed software"),e.qZA(),e.qZA(),e.TgZ(24,"button",10),e.TgZ(25,"mat-icon"),e._uU(26,"help"),e.qZA(),e.TgZ(27,"span"),e._uU(28,"Help"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(29,"main",11),e._UZ(30,"router-outlet"),e.qZA(),e._UZ(31,"app-progress"),e.TgZ(32,"footer",12),e._uU(33),e.qZA()),2&t){var o=e.MAs(13);e.xp6(6),e.Q6J("ngIf",!i.recentlyOpenedProjectId&&i.serverIdProjectList),e.xp6(1),e.Q6J("ngIf",i.recentlyOpenedProjectId&&i.recentlyOpenedServerId),e.xp6(2),e.Q6J("matMenuTriggerFor",o),e.xp6(10),e.Q6J("disabled",!i.isInstalledSoftwareAvailable),e.xp6(14),e.AsE("GNS3 Web-UI \xa92018-",i.currentYear," v",i.uiVersion,"")}},directives:[lxe,An,sr,ca,kt.O5,Qa,Ts,Nr,o2,WZ],styles:["html,body{height:100%}app-root,app-default-layout{height:100%}app-default-layout{display:flex;flex-direction:column;height:100vh}.footer{padding:20px;margin:auto 0 0}.default-content{margin:0 auto;max-width:940px;padding-top:20px;padding-bottom:20px}header{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px rgba(0,0,0,.14),0 1px 18px rgba(0,0,0,.12);z-index:10}.default-header h1{font-weight:300;margin:0;font-size:20px;padding:28px 8px}.default-header{margin:0 auto;max-width:940px}.buttons-bar{padding-top:10px;text-align:right}.fill-space{flex:1 1 auto}.container>*{width:100%}.container{padding:0%}.mat-dialog-content>*{width:100%}\n"],encapsulation:2}),n}(),$L=function(){function n(r){this.serverService=r}return n.prototype.resolve=function(r){return this.serverService.get(parseInt(r.params.server_id))},n.\u0275fac=function(t){return new(t||n)(e.LFG(Br))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),fxe=[{path:"",component:pxe,children:[{path:"",redirectTo:"servers",pathMatch:"full"},{path:"servers",component:yTe},{path:"bundled",component:Pae},{path:"server/:server_id/projects",component:Fz,resolve:{server:$L}},{path:"help",component:qse},{path:"settings",component:STe},{path:"settings/console",component:CTe},{path:"installed-software",component:_le},{path:"server/:server_id/systemstatus",component:nxe},{path:"server/:server_ip/:server_port/project/:project_id",component:use},{path:"server/:server_id/project/:project_id/snapshots",component:ITe,resolve:{server:$L}},{path:"server/:server_id/preferences",component:ife},{path:"server/:server_id/preferences/gns3vm",component:Zpe},{path:"server/:server_id/preferences/builtin",component:Cle},{path:"server/:server_id/preferences/builtin/ethernet-hubs",component:Que},{path:"server/:server_id/preferences/builtin/ethernet-hubs/addtemplate",component:Fue},{path:"server/:server_id/preferences/builtin/ethernet-hubs/:template_id",component:que},{path:"server/:server_id/preferences/builtin/ethernet-switches",component:xce},{path:"server/:server_id/preferences/builtin/ethernet-switches/addtemplate",component:Kue},{path:"server/:server_id/preferences/builtin/ethernet-switches/:template_id",component:gce},{path:"server/:server_id/preferences/builtin/cloud-nodes",component:Lue},{path:"server/:server_id/preferences/builtin/cloud-nodes/addtemplate",component:Ple},{path:"server/:server_id/preferences/builtin/cloud-nodes/:template_id",component:sue},{path:"server/:server_id/preferences/dynamips/templates",component:Mpe},{path:"server/:server_id/preferences/dynamips/templates/addtemplate",component:epe},{path:"server/:server_id/preferences/dynamips/templates/:template_id",component:Cpe},{path:"server/:server_id/preferences/dynamips/templates/:template_id/copy",component:tpe},{path:"server/:server_id/preferences/qemu/templates",component:ehe},{path:"server/:server_id/preferences/qemu/templates/:template_id/copy",component:_fe},{path:"server/:server_id/preferences/qemu/templates/:template_id",component:Gfe},{path:"server/:server_id/preferences/qemu/addtemplate",component:gfe},{path:"server/:server_id/preferences/vpcs/templates",component:$he},{path:"server/:server_id/preferences/vpcs/templates/:template_id",component:Whe},{path:"server/:server_id/preferences/vpcs/addtemplate",component:Uhe},{path:"server/:server_id/preferences/virtualbox/templates",component:yhe},{path:"server/:server_id/preferences/virtualbox/templates/:template_id",component:phe},{path:"server/:server_id/preferences/virtualbox/addtemplate",component:rhe},{path:"server/:server_id/preferences/vmware/templates",component:Bhe},{path:"server/:server_id/preferences/vmware/templates/:template_id",component:Phe},{path:"server/:server_id/preferences/vmware/addtemplate",component:The},{path:"server/:server_id/preferences/docker/templates",component:Lde},{path:"server/:server_id/preferences/docker/templates/:template_id",component:Dde},{path:"server/:server_id/preferences/docker/templates/:template_id/copy",component:pde},{path:"server/:server_id/preferences/docker/addtemplate",component:dde},{path:"server/:server_id/preferences/iou/templates",component:rfe},{path:"server/:server_id/preferences/iou/templates/:template_id",component:Qpe},{path:"server/:server_id/preferences/iou/templates/:template_id/copy",component:Vpe},{path:"server/:server_id/preferences/iou/addtemplate",component:Hpe}]},{path:"server/:server_id/project/:project_id",component:ySe,canDeactivate:[Yz]},{path:"server/:server_id/project/:project_id/nodes/:node_id",component:Gz},{path:"static/web-ui/server/:server_id/project/:project_id/nodes/:node_id",component:Gz},{path:"**",component:ble}],hxe=function(){function n(){}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[rq.forRoot(fxe,{anchorScrolling:"enabled",enableTracing:!1,scrollPositionRestoration:"enabled"})],rq]}),n}(),mxe=function(n,r){return{dark:n,light:r}},vxe=function(){function n(r,t,i,o,a,s,u,p){var m=this;this.overlayContainer=r,this.settingsService=o,this.electronService=a,this.themeService=s,this.router=u,this.progressService=p,this.darkThemeEnabled=!1,t.addSvgIcon("gns3",i.bypassSecurityTrustResourceUrl("./assets/gns3_icon.svg")),t.addSvgIcon("gns3black",i.bypassSecurityTrustResourceUrl("./assets/gns3_icon_black.svg")),u.events.subscribe(function(C){m.checkEvent(C)})}return n.prototype.ngOnInit=function(){var r=this;this.applyTheme(this.themeService.savedTheme+"-theme"),this.themeService.themeChanged.subscribe(function(t){r.applyTheme(t)})},n.prototype.applyTheme=function(r){this.darkThemeEnabled="dark-theme"===r,this.overlayContainer.getContainerElement().classList.add(r),this.componentCssClass=r},n.prototype.checkEvent=function(r){r instanceof HA?this.progressService.activate():(r instanceof rv||r instanceof xZ||r instanceof aV)&&this.progressService.deactivate()},n.\u0275fac=function(t){return new(t||n)(e.Y36(so.Xj),e.Y36(IS),e.Y36(U.H7),e.Y36(Tp.g),e.Y36(cs),e.Y36(sc.f),e.Y36(xr),e.Y36(Xf))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-root"]],hostVars:2,hostBindings:function(t,i){2&t&&e.Tol(i.componentCssClass)},decls:2,vars:4,consts:[[3,"ngClass"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"router-outlet"),e.qZA()),2&t&&e.Q6J("ngClass",e.WLB(1,mxe,i.darkThemeEnabled,!i.darkThemeEnabled))},directives:[kt.mk,o2],styles:["mat-menu-panel[_ngcontent-%COMP%]{min-height:0px}.dark[_ngcontent-%COMP%]{background:#263238!important}.light[_ngcontent-%COMP%]{background:white!important}"]}),n}(),gxe=function(){return function(){}}(),_xe=function(){function n(){}return n.prototype.convert=function(r){var t=new gxe;return t.symbol_id=r.id,t.builtin=r.builtin,t.filename=r.filename,t.raw=r.raw,t},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),yxe=function(){function n(){}return n.prototype.convert=function(r){var t={font_family:void 0,font_size:void 0,font_weight:void 0};return US.parse(r,{context:"declarationList"}).children.forEach(function(o){"font-size"===o.property&&o.value&&o.value.children&&o.value.children.forEach(function(a){"Dimension"===a.type&&(t.font_size=parseInt(a.value))}),"font-family"===o.property&&o.value&&o.value.children&&o.value.children.forEach(function(a){"Identifier"===a.type&&(t.font_family=a.name)}),"font-weight"===o.property&&o.value&&o.value.children&&o.value.children.forEach(function(a){"Identifier"===a.type&&(t.font_weight=a.name)})}),t},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),bxe=[OL,DL,O2,wL,D2,WS,EL,A2,xL,zj,AL,Fj,jS,qj,Uj,Vj,Hj,Bj,jj],Cxe=function(){function n(){}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:(0,Jn.ev)([nh,cc,qL,yz,bz,Cz,Sz,VS,zS,_v,E2,qS,CL,eu,fc,mv,YS,I2,yv,w2,_L,Pj,Oj,wz,$S,WL,Ez,V2,zL,_xe,bL,yL,Ij,vy,hL,mL,vL,gL,TL,gy,BS,yxe,kL,ML],bxe),imports:[[kt.ez,sj,zZ]]}),n}(),Sxe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Jn.ZT)(r,n),r.prototype.getItemKey=function(t){return t.symbol_id},r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(T2.o),e5=function(n,r){return(e5=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])})(n,r)};function tT(n,r){function t(){this.constructor=n}e5(n,r),n.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}var xp,Jz,Zn=function(){return(Zn=Object.assign||function(r){for(var t,i=1,o=arguments.length;i<o;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a]);return r}).apply(this,arguments)};function Cv(n){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&n[r],i=0;if(t)return t.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function nT(n,r){var t="function"==typeof Symbol&&n[Symbol.iterator];if(!t)return n;var o,s,i=t.call(n),a=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(s)throw s.error}}return a}function Lo(){for(var n=[],r=0;r<arguments.length;r++)n=n.concat(nT(arguments[r]));return n}!function(n){n.Ok="ok",n.Exited="exited",n.Crashed="crashed",n.Abnormal="abnormal"}(xp||(xp={})),function(n){n.Ok="ok",n.Errored="errored",n.Crashed="crashed"}(Jz||(Jz={}));var da=f(95665);function xy(){var n=(0,da.R)(),r=n.crypto||n.msCrypto;if(void 0!==r&&r.getRandomValues){var t=new Uint16Array(8);r.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;var i=function(a){for(var s=a.toString(16);s.length<4;)s="0"+s;return s};return i(t[0])+i(t[1])+i(t[2])+i(t[3])+i(t[4])+i(t[5])+i(t[6])+i(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(o){var a=16*Math.random()|0;return("x"===o?a:3&a|8).toString(16)})}function t5(n){if(!n)return{};var r=n.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return r?{host:r[4],path:r[5],protocol:r[2],relative:r[5]+(r[6]||"")+(r[8]||"")}:{}}function Sv(n){if(n.message)return n.message;if(n.exception&&n.exception.values&&n.exception.values[0]){var r=n.exception.values[0];return r.type&&r.value?r.type+": "+r.value:r.type||r.value||n.event_id||"<unknown>"}return n.event_id||"<unknown>"}function n5(n,r,t){n.exception=n.exception||{},n.exception.values=n.exception.values||[],n.exception.values[0]=n.exception.values[0]||{},n.exception.values[0].value=n.exception.values[0].value||r||"",n.exception.values[0].type=n.exception.values[0].type||t||"Error"}function wy(n,r){var t;if(n.exception&&n.exception.values){var i=n.exception.values[0],a=i.mechanism;if(i.mechanism=Zn(Zn(Zn({},{type:"generic",handled:!0}),a),r),r&&"data"in r){var s=Zn(Zn({},null===(t=a)||void 0===t?void 0:t.data),r.data);i.mechanism.data=s}}}function Kz(n){var r;if(null===(r=n)||void 0===r?void 0:r.__sentry_captured__)return!0;try{Object.defineProperty(n,"__sentry_captured__",{value:!0})}catch(t){}return!1}var Ey=f(46354),Tv=(0,da.R)(),r5="Sentry Logger ";function J2(n){var r=(0,da.R)();if(!("console"in r))return n();var i=r.console,o={};["debug","info","warn","error","log","assert"].forEach(function(s){s in r.console&&i[s].__sentry_original__&&(o[s]=i[s],i[s]=i[s].__sentry_original__)});var a=n();return Object.keys(o).forEach(function(s){i[s]=o[s]}),a}var Exe=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];!this._enabled||J2(function(){Tv.console.log(r5+"[Log]: "+r.join(" "))})},n.prototype.warn=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];!this._enabled||J2(function(){Tv.console.warn(r5+"[Warn]: "+r.join(" "))})},n.prototype.error=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];!this._enabled||J2(function(){Tv.console.error(r5+"[Error]: "+r.join(" "))})},n}();Tv.__SENTRY__=Tv.__SENTRY__||{};var wp,bi=Tv.__SENTRY__.logger||(Tv.__SENTRY__.logger=new Exe),kxe=f(4839);function Xz(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return sh(n,Error)}}function $z(n){return"[object ErrorEvent]"===Object.prototype.toString.call(n)}function eW(n){return"[object DOMError]"===Object.prototype.toString.call(n)}function ky(n){return"[object String]"===Object.prototype.toString.call(n)}function Q2(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function My(n){return"[object Object]"===Object.prototype.toString.call(n)}function i5(n){return"undefined"!=typeof Event&&sh(n,Event)}function tW(n){return"undefined"!=typeof Element&&sh(n,Element)}function o5(n){return Boolean(n&&n.then&&"function"==typeof n.then)}function sh(n,r){try{return n instanceof r}catch(t){return!1}}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(wp||(wp={}));var vl=function(){function n(r){var t=this;this._state=wp.PENDING,this._handlers=[],this._resolve=function(i){t._setResult(wp.RESOLVED,i)},this._reject=function(i){t._setResult(wp.REJECTED,i)},this._setResult=function(i,o){if(t._state===wp.PENDING){if(o5(o))return void o.then(t._resolve,t._reject);t._state=i,t._value=o,t._executeHandlers()}},this._attachHandler=function(i){t._handlers=t._handlers.concat(i),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==wp.PENDING){var i=t._handlers.slice();t._handlers=[],i.forEach(function(o){o.done||(t._state===wp.RESOLVED&&o.onfulfilled&&o.onfulfilled(t._value),t._state===wp.REJECTED&&o.onrejected&&o.onrejected(t._value),o.done=!0)})}};try{r(this._resolve,this._reject)}catch(i){this._reject(i)}}return n.resolve=function(r){return new n(function(t){t(r)})},n.reject=function(r){return new n(function(t,i){i(r)})},n.all=function(r){return new n(function(t,i){if(Array.isArray(r))if(0!==r.length){var o=r.length,a=[];r.forEach(function(s,u){n.resolve(s).then(function(p){a[u]=p,0==(o-=1)&&t(a)}).then(null,i)})}else t([]);else i(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(r,t){var i=this;return new n(function(o,a){i._attachHandler({done:!1,onfulfilled:function(u){if(r)try{return void o(r(u))}catch(p){return void a(p)}else o(u)},onrejected:function(u){if(t)try{return void o(t(u))}catch(p){return void a(p)}else a(u)}})})},n.prototype.catch=function(r){return this.then(function(t){return t},r)},n.prototype.finally=function(r){var t=this;return new n(function(i,o){var a,s;return t.then(function(u){s=!1,a=u,r&&r()},function(u){s=!0,a=u,r&&r()}).then(function(){s?o(a):i(a)})})},n.prototype.toString=function(){return"[object SyncPromise]"},n}(),K2=function(){function n(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return n.clone=function(r){var t=new n;return r&&(t._breadcrumbs=Lo(r._breadcrumbs),t._tags=Zn({},r._tags),t._extra=Zn({},r._extra),t._contexts=Zn({},r._contexts),t._user=r._user,t._level=r._level,t._span=r._span,t._session=r._session,t._transactionName=r._transactionName,t._fingerprint=r._fingerprint,t._eventProcessors=Lo(r._eventProcessors),t._requestSession=r._requestSession),t},n.prototype.addScopeListener=function(r){this._scopeListeners.push(r)},n.prototype.addEventProcessor=function(r){return this._eventProcessors.push(r),this},n.prototype.setUser=function(r){return this._user=r||{},this._session&&this._session.update({user:r}),this._notifyScopeListeners(),this},n.prototype.getUser=function(){return this._user},n.prototype.getRequestSession=function(){return this._requestSession},n.prototype.setRequestSession=function(r){return this._requestSession=r,this},n.prototype.setTags=function(r){return this._tags=Zn(Zn({},this._tags),r),this._notifyScopeListeners(),this},n.prototype.setTag=function(r,t){var i;return this._tags=Zn(Zn({},this._tags),((i={})[r]=t,i)),this._notifyScopeListeners(),this},n.prototype.setExtras=function(r){return this._extra=Zn(Zn({},this._extra),r),this._notifyScopeListeners(),this},n.prototype.setExtra=function(r,t){var i;return this._extra=Zn(Zn({},this._extra),((i={})[r]=t,i)),this._notifyScopeListeners(),this},n.prototype.setFingerprint=function(r){return this._fingerprint=r,this._notifyScopeListeners(),this},n.prototype.setLevel=function(r){return this._level=r,this._notifyScopeListeners(),this},n.prototype.setTransactionName=function(r){return this._transactionName=r,this._notifyScopeListeners(),this},n.prototype.setTransaction=function(r){return this.setTransactionName(r)},n.prototype.setContext=function(r,t){var i;return null===t?delete this._contexts[r]:this._contexts=Zn(Zn({},this._contexts),((i={})[r]=t,i)),this._notifyScopeListeners(),this},n.prototype.setSpan=function(r){return this._span=r,this._notifyScopeListeners(),this},n.prototype.getSpan=function(){return this._span},n.prototype.getTransaction=function(){var r,t,i,o,a=this.getSpan();return(null===(r=a)||void 0===r?void 0:r.transaction)?null===(t=a)||void 0===t?void 0:t.transaction:(null===(o=null===(i=a)||void 0===i?void 0:i.spanRecorder)||void 0===o?void 0:o.spans[0])?a.spanRecorder.spans[0]:void 0},n.prototype.setSession=function(r){return r?this._session=r:delete this._session,this._notifyScopeListeners(),this},n.prototype.getSession=function(){return this._session},n.prototype.update=function(r){if(!r)return this;if("function"==typeof r){var t=r(this);return t instanceof n?t:this}return r instanceof n?(this._tags=Zn(Zn({},this._tags),r._tags),this._extra=Zn(Zn({},this._extra),r._extra),this._contexts=Zn(Zn({},this._contexts),r._contexts),r._user&&Object.keys(r._user).length&&(this._user=r._user),r._level&&(this._level=r._level),r._fingerprint&&(this._fingerprint=r._fingerprint),r._requestSession&&(this._requestSession=r._requestSession)):My(r)&&(r=r,this._tags=Zn(Zn({},this._tags),r.tags),this._extra=Zn(Zn({},this._extra),r.extra),this._contexts=Zn(Zn({},this._contexts),r.contexts),r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession)),this},n.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},n.prototype.addBreadcrumb=function(r,t){var i="number"==typeof t?Math.min(t,100):100;if(i<=0)return this;var o=Zn({timestamp:(0,Ey.yW)()},r);return this._breadcrumbs=Lo(this._breadcrumbs,[o]).slice(-i),this._notifyScopeListeners(),this},n.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},n.prototype.applyToEvent=function(r,t){var i;if(this._extra&&Object.keys(this._extra).length&&(r.extra=Zn(Zn({},this._extra),r.extra)),this._tags&&Object.keys(this._tags).length&&(r.tags=Zn(Zn({},this._tags),r.tags)),this._user&&Object.keys(this._user).length&&(r.user=Zn(Zn({},this._user),r.user)),this._contexts&&Object.keys(this._contexts).length&&(r.contexts=Zn(Zn({},this._contexts),r.contexts)),this._level&&(r.level=this._level),this._transactionName&&(r.transaction=this._transactionName),this._span){r.contexts=Zn({trace:this._span.getTraceContext()},r.contexts);var o=null===(i=this._span.transaction)||void 0===i?void 0:i.name;o&&(r.tags=Zn({transaction:o},r.tags))}return this._applyFingerprint(r),r.breadcrumbs=Lo(r.breadcrumbs||[],this._breadcrumbs),r.breadcrumbs=r.breadcrumbs.length>0?r.breadcrumbs:void 0,this._notifyEventProcessors(Lo(rW(),this._eventProcessors),r,t)},n.prototype._notifyEventProcessors=function(r,t,i,o){var a=this;return void 0===o&&(o=0),new vl(function(s,u){var p=r[o];if(null===t||"function"!=typeof p)s(t);else{var m=p(Zn({},t),i);o5(m)?m.then(function(C){return a._notifyEventProcessors(r,C,i,o+1).then(s)}).then(null,u):a._notifyEventProcessors(r,m,i,o+1).then(s).then(null,u)}})},n.prototype._notifyScopeListeners=function(){var r=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(t){t(r)}),this._notifyingListeners=!1)},n.prototype._applyFingerprint=function(r){r.fingerprint=r.fingerprint?Array.isArray(r.fingerprint)?r.fingerprint:[r.fingerprint]:[],this._fingerprint&&(r.fingerprint=r.fingerprint.concat(this._fingerprint)),r.fingerprint&&!r.fingerprint.length&&delete r.fingerprint},n}();function rW(){var n=(0,da.R)();return n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.globalEventProcessors=n.__SENTRY__.globalEventProcessors||[],n.__SENTRY__.globalEventProcessors}function X2(n){rW().push(n)}function $2(n,r){try{for(var t=n,a=[],s=0,u=0,m=" > ".length,C=void 0;t&&s++<5&&!("html"===(C=Oxe(t,r))||s>1&&u+a.length*m+C.length>=80);)a.push(C),u+=C.length,t=t.parentNode;return a.reverse().join(" > ")}catch(P){return"<unknown>"}}function Oxe(n,r){var t,i,s,u,p,m,C,o=n,a=[];if(!o||!o.tagName)return"";a.push(o.tagName.toLowerCase());var P=(null===(t=r)||void 0===t?void 0:t.length)?r.filter(function(G){return o.getAttribute(G)}).map(function(G){return[G,o.getAttribute(G)]}):null;if(null===(i=P)||void 0===i?void 0:i.length)P.forEach(function(G){a.push("["+G[0]+'="'+G[1]+'"]')});else if(o.id&&a.push("#"+o.id),(s=o.className)&&ky(s))for(u=s.split(/\s+/),C=0;C<u.length;C++)a.push("."+u[C]);var L=["type","name","title","alt"];for(C=0;C<L.length;C++)(m=o.getAttribute(p=L[C]))&&a.push("["+p+'="'+m+'"]');return a.join("")}var Ixe=function(){function n(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return n.prototype.memoize=function(r){if(this._hasWeakSet)return!!this._inner.has(r)||(this._inner.add(r),!1);for(var t=0;t<this._inner.length;t++)if(this._inner[t]===r)return!0;return this._inner.push(r),!1},n.prototype.unmemoize=function(r){if(this._hasWeakSet)this._inner.delete(r);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===r){this._inner.splice(t,1);break}},n}(),a5="<anonymous>";function lh(n){try{return n&&"function"==typeof n&&n.name||a5}catch(r){return a5}}function rT(n,r){return void 0===r&&(r=0),"string"!=typeof n||0===r||n.length<=r?n:n.substr(0,r)+"..."}function iW(n,r){if(!Array.isArray(n))return"";for(var t=[],i=0;i<n.length;i++){var o=n[i];try{t.push(String(o))}catch(a){t.push("[value cannot be serialized]")}}return t.join(r)}function s5(n,r){return!!ky(n)&&(function(n){return"[object RegExp]"===Object.prototype.toString.call(n)}(r)?r.test(n):"string"==typeof r&&-1!==n.indexOf(r))}function Es(n,r,t){if(r in n){var i=n[r],o=t(i);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:i}})}catch(a){}n[r]=o}}function oW(n){if(Xz(n)){var r=n,t={message:r.message,name:r.name,stack:r.stack};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t}if(i5(n)){var o=n,a={};a.type=o.type;try{a.target=tW(o.target)?$2(o.target):Object.prototype.toString.call(o.target)}catch(u){a.target="<unknown>"}try{a.currentTarget=tW(o.currentTarget)?$2(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(u){a.currentTarget="<unknown>"}for(var s in"undefined"!=typeof CustomEvent&&sh(n,CustomEvent)&&(a.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,s)&&(a[s]=o[s]);return a}return n}function aW(n,r,t){void 0===r&&(r=3),void 0===t&&(t=102400);var i=Ay(n,r);return function(n){return function(n){return~-encodeURI(n).split(/%..|./).length}(JSON.stringify(n))}(i)>t?aW(n,r-1,t):i}function sW(n,r){return"domain"===r&&n&&"object"==typeof n&&n._events?"[Domain]":"domainEmitter"===r?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":function(n){return My(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}(n)?"[SyntheticEvent]":"number"==typeof n&&n!=n?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+lh(n)+"]":"symbol"==typeof n?"["+String(n)+"]":"bigint"==typeof n?"[BigInt: "+String(n)+"]":n}function lW(n,r,t,i){if(void 0===t&&(t=1/0),void 0===i&&(i=new Ixe),0===t)return function(n){var r=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===r)return"[Object]";if("[object Array]"===r)return"[Array]";var t=sW(n);return Q2(t)?t:r}(r);if(null!=r&&"function"==typeof r.toJSON)return r.toJSON();var o=sW(r,n);if(Q2(o))return o;var a=oW(r),s=Array.isArray(r)?[]:{};if(i.memoize(r))return"[Circular ~]";for(var u in a)!Object.prototype.hasOwnProperty.call(a,u)||(s[u]=lW(u,a[u],t-1,i));return i.unmemoize(r),s}function Ay(n,r){try{return JSON.parse(JSON.stringify(n,function(t,i){return lW(t,i,r)}))}catch(t){return"**non-serializable**"}}function Fxe(n,r){void 0===r&&(r=40);var t=Object.keys(oW(n));if(t.sort(),!t.length)return"[object has no keys]";if(t[0].length>=r)return rT(t[0],r);for(var i=t.length;i>0;i--){var o=t.slice(0,i).join(", ");if(!(o.length>r))return i===t.length?o:rT(o,r)}return""}function eD(n){var r,t;if(My(n)){var i=n,o={};try{for(var a=Cv(Object.keys(i)),s=a.next();!s.done;s=a.next()){var u=s.value;void 0!==i[u]&&(o[u]=eD(i[u]))}}catch(p){r={error:p}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}return o}return Array.isArray(n)?n.map(eD):n}var Bxe=function(){function n(r){this.errors=0,this.sid=xy(),this.duration=0,this.status=xp.Ok,this.init=!0,this.ignoreDuration=!1;var t=(0,Ey.ph)();this.timestamp=t,this.started=t,r&&this.update(r)}return n.prototype.update=function(r){if(void 0===r&&(r={}),r.user&&(!this.ipAddress&&r.user.ip_address&&(this.ipAddress=r.user.ip_address),!this.did&&!r.did&&(this.did=r.user.id||r.user.email||r.user.username)),this.timestamp=r.timestamp||(0,Ey.ph)(),r.ignoreDuration&&(this.ignoreDuration=r.ignoreDuration),r.sid&&(this.sid=32===r.sid.length?r.sid:xy()),void 0!==r.init&&(this.init=r.init),!this.did&&r.did&&(this.did=""+r.did),"number"==typeof r.started&&(this.started=r.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof r.duration)this.duration=r.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}r.release&&(this.release=r.release),r.environment&&(this.environment=r.environment),!this.ipAddress&&r.ipAddress&&(this.ipAddress=r.ipAddress),!this.userAgent&&r.userAgent&&(this.userAgent=r.userAgent),"number"==typeof r.errors&&(this.errors=r.errors),r.status&&(this.status=r.status)},n.prototype.close=function(r){r?this.update({status:r}):this.status===xp.Ok?this.update({status:xp.Exited}):this.update()},n.prototype.toJSON=function(){return eD({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:eD({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},n}(),u5=function(){function n(r,t,i){void 0===t&&(t=new K2),void 0===i&&(i=4),this._version=i,this._stack=[{}],this.getStackTop().scope=t,r&&this.bindClient(r)}return n.prototype.isOlderThan=function(r){return this._version<r},n.prototype.bindClient=function(r){this.getStackTop().client=r,r&&r.setupIntegrations&&r.setupIntegrations()},n.prototype.pushScope=function(){var r=K2.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:r}),r},n.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},n.prototype.withScope=function(r){var t=this.pushScope();try{r(t)}finally{this.popScope()}},n.prototype.getClient=function(){return this.getStackTop().client},n.prototype.getScope=function(){return this.getStackTop().scope},n.prototype.getStack=function(){return this._stack},n.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},n.prototype.captureException=function(r,t){var i=this._lastEventId=xy(),o=t;if(!t){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(s){a=s}o={originalException:r,syntheticException:a}}return this._invokeClient("captureException",r,Zn(Zn({},o),{event_id:i})),i},n.prototype.captureMessage=function(r,t,i){var o=this._lastEventId=xy(),a=i;if(!i){var s=void 0;try{throw new Error(r)}catch(u){s=u}a={originalException:r,syntheticException:s}}return this._invokeClient("captureMessage",r,t,Zn(Zn({},a),{event_id:o})),o},n.prototype.captureEvent=function(r,t){var i=xy();return"transaction"!==r.type&&(this._lastEventId=i),this._invokeClient("captureEvent",r,Zn(Zn({},t),{event_id:i})),i},n.prototype.lastEventId=function(){return this._lastEventId},n.prototype.addBreadcrumb=function(r,t){var i=this.getStackTop(),o=i.scope,a=i.client;if(o&&a){var s=a.getOptions&&a.getOptions()||{},u=s.beforeBreadcrumb,p=void 0===u?null:u,m=s.maxBreadcrumbs,C=void 0===m?100:m;if(!(C<=0)){var P=(0,Ey.yW)(),L=Zn({timestamp:P},r),G=p?J2(function(){return p(L,t)}):L;null!==G&&o.addBreadcrumb(G,C)}}},n.prototype.setUser=function(r){var t=this.getScope();t&&t.setUser(r)},n.prototype.setTags=function(r){var t=this.getScope();t&&t.setTags(r)},n.prototype.setExtras=function(r){var t=this.getScope();t&&t.setExtras(r)},n.prototype.setTag=function(r,t){var i=this.getScope();i&&i.setTag(r,t)},n.prototype.setExtra=function(r,t){var i=this.getScope();i&&i.setExtra(r,t)},n.prototype.setContext=function(r,t){var i=this.getScope();i&&i.setContext(r,t)},n.prototype.configureScope=function(r){var t=this.getStackTop(),i=t.scope;i&&t.client&&r(i)},n.prototype.run=function(r){var t=uW(this);try{r(this)}finally{uW(t)}},n.prototype.getIntegration=function(r){var t=this.getClient();if(!t)return null;try{return t.getIntegration(r)}catch(i){return bi.warn("Cannot retrieve integration "+r.id+" from the current Hub"),null}},n.prototype.startSpan=function(r){return this._callExtensionMethod("startSpan",r)},n.prototype.startTransaction=function(r,t){return this._callExtensionMethod("startTransaction",r,t)},n.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},n.prototype.captureSession=function(r){if(void 0===r&&(r=!1),r)return this.endSession();this._sendSessionUpdate()},n.prototype.endSession=function(){var r,t,i,o,a;null===(i=null===(t=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===t?void 0:t.getSession())||void 0===i||i.close(),this._sendSessionUpdate(),null===(a=null===(o=this.getStackTop())||void 0===o?void 0:o.scope)||void 0===a||a.setSession()},n.prototype.startSession=function(r){var t=this.getStackTop(),i=t.scope,o=t.client,a=o&&o.getOptions()||{},s=a.release,u=a.environment,m=((0,da.R)().navigator||{}).userAgent,C=new Bxe(Zn(Zn(Zn({release:s,environment:u},i&&{user:i.getUser()}),m&&{userAgent:m}),r));if(i){var P=i.getSession&&i.getSession();P&&P.status===xp.Ok&&P.update({status:xp.Exited}),this.endSession(),i.setSession(C)}return C},n.prototype._sendSessionUpdate=function(){var r=this.getStackTop(),t=r.scope,i=r.client;if(t){var o=t.getSession&&t.getSession();o&&i&&i.captureSession&&i.captureSession(o)}},n.prototype._invokeClient=function(r){for(var t,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var a=this.getStackTop(),s=a.scope,u=a.client;u&&u[r]&&(t=u)[r].apply(t,Lo(i,[s]))},n.prototype._callExtensionMethod=function(r){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var o=iT(),a=o.__SENTRY__;if(a&&a.extensions&&"function"==typeof a.extensions[r])return a.extensions[r].apply(this,t);bi.warn("Extension method "+r+" couldn't be found, doing nothing.")},n}();function iT(){var n=(0,da.R)();return n.__SENTRY__=n.__SENTRY__||{extensions:{},hub:void 0},n}function uW(n){var r=iT(),t=uh(r);return c5(r,n),t}function ks(){var n=iT();return(!cW(n)||uh(n).isOlderThan(4))&&c5(n,new u5),(0,kxe.KV)()?function(n){var r,t,i;try{var o=null===(i=null===(t=null===(r=iT().__SENTRY__)||void 0===r?void 0:r.extensions)||void 0===t?void 0:t.domain)||void 0===i?void 0:i.active;if(!o)return uh(n);if(!cW(o)||uh(o).isOlderThan(4)){var a=uh(n).getStackTop();c5(o,new u5(a.client,K2.clone(a.scope)))}return uh(o)}catch(s){return uh(n)}}(n):uh(n)}function cW(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function uh(n){return n&&n.__SENTRY__&&n.__SENTRY__.hub||(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=new u5),n.__SENTRY__.hub}function c5(n,r){return!!n&&(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=r,!0)}function gl(n){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];var i=ks();if(i&&i[n])return i[n].apply(i,Lo(r));throw new Error("No hub defined or "+n+" was not found on the hub, please open a bug report.")}function dW(n,r){var t;try{throw new Error("Sentry syntheticException")}catch(i){t=i}return gl("captureException",n,{captureContext:r,originalException:n,syntheticException:t})}function Vxe(n){gl("withScope",n)}var pW,jxe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],zxe=function(){function n(r){void 0===r&&(r={}),this._options=r,this.name=n.id}return n.prototype.setupOnce=function(){X2(function(r){var t=ks();if(!t)return r;var i=t.getIntegration(n);if(i){var o=t.getClient(),a=o?o.getOptions():{},s="function"==typeof i._mergeOptions?i._mergeOptions(a):{};return"function"!=typeof i._shouldDropEvent?r:i._shouldDropEvent(r,s)?null:r}return r})},n.prototype._shouldDropEvent=function(r,t){return this._isSentryError(r,t)?(bi.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Sv(r)),!0):this._isIgnoredError(r,t)?(bi.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Sv(r)),!0):this._isDeniedUrl(r,t)?(bi.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Sv(r)+".\nUrl: "+this._getEventFilterUrl(r)),!0):!this._isAllowedUrl(r,t)&&(bi.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Sv(r)+".\nUrl: "+this._getEventFilterUrl(r)),!0)},n.prototype._isSentryError=function(r,t){if(!t.ignoreInternal)return!1;try{return r&&r.exception&&r.exception.values&&r.exception.values[0]&&"SentryError"===r.exception.values[0].type||!1}catch(i){return!1}},n.prototype._isIgnoredError=function(r,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(r).some(function(i){return t.ignoreErrors.some(function(o){return s5(i,o)})})},n.prototype._isDeniedUrl=function(r,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var i=this._getEventFilterUrl(r);return!!i&&t.denyUrls.some(function(o){return s5(i,o)})},n.prototype._isAllowedUrl=function(r,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var i=this._getEventFilterUrl(r);return!i||t.allowUrls.some(function(o){return s5(i,o)})},n.prototype._mergeOptions=function(r){return void 0===r&&(r={}),{allowUrls:Lo(this._options.whitelistUrls||[],this._options.allowUrls||[],r.whitelistUrls||[],r.allowUrls||[]),denyUrls:Lo(this._options.blacklistUrls||[],this._options.denyUrls||[],r.blacklistUrls||[],r.denyUrls||[]),ignoreErrors:Lo(this._options.ignoreErrors||[],r.ignoreErrors||[],jxe),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},n.prototype._getPossibleEventMessages=function(r){if(r.message)return[r.message];if(r.exception)try{var t=r.exception.values&&r.exception.values[0]||{},i=t.type,a=t.value,s=void 0===a?"":a;return[""+s,(void 0===i?"":i)+": "+s]}catch(u){return bi.error("Cannot extract message for event "+Sv(r)),[]}return[]},n.prototype._getLastValidUrl=function(r){void 0===r&&(r=[]);for(var t,i,o=r.length-1;o>=0;o--){var a=r[o];if("<anonymous>"!==(null===(t=a)||void 0===t?void 0:t.filename)&&"[native code]"!==(null===(i=a)||void 0===i?void 0:i.filename))return a.filename||null}return null},n.prototype._getEventFilterUrl=function(r){try{return r.stacktrace?this._getLastValidUrl(r.stacktrace.frames):r.exception?this._getLastValidUrl(r.exception.values&&r.exception.values[0].stacktrace&&r.exception.values[0].stacktrace.frames):null}catch(o){return bi.error("Cannot extract url for event "+Sv(r)),null}},n.id="InboundFilters",n}(),Wxe=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){pW=Function.prototype.toString,Function.prototype.toString=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var i=this.__sentry_original__||this;return pW.apply(i,r)}},n.id="FunctionToString",n}();function tD(){if(!("fetch"in(0,da.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}function d5(n){return n&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function Yxe(){if(!tD())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(n){return!1}}var nD,rD,iD,Fo=(0,da.R)(),oT={},fW={};function ch(n){!n||"string"!=typeof n.type||"function"!=typeof n.callback||(oT[n.type]=oT[n.type]||[],oT[n.type].push(n.callback),function(n){if(!fW[n])switch(fW[n]=!0,n){case"console":"console"in Fo&&["debug","info","warn","error","log","assert"].forEach(function(n){n in Fo.console&&Es(Fo.console,n,function(r){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];mc("console",{args:t,level:n}),r&&Function.prototype.apply.call(r,Fo.console,t)}})});break;case"dom":!function(){if("document"in Fo){var n=mc.bind(null,"dom"),r=hW(n,!0);Fo.document.addEventListener("click",r,!1),Fo.document.addEventListener("keypress",r,!1),["EventTarget","Node"].forEach(function(t){var i=Fo[t]&&Fo[t].prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(Es(i,"addEventListener",function(o){return function(a,s,u){if("click"===a||"keypress"==a)try{var m=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},C=m[a]=m[a]||{refCount:0};if(!C.handler){var P=hW(n);C.handler=P,o.call(this,a,P,u)}C.refCount+=1}catch(L){}return o.call(this,a,s,u)}}),Es(i,"removeEventListener",function(o){return function(a,s,u){if("click"===a||"keypress"==a)try{var m=this.__sentry_instrumentation_handlers__||{},C=m[a];C&&(C.refCount-=1,C.refCount<=0&&(o.call(this,a,C.handler,u),C.handler=void 0,delete m[a]),0===Object.keys(m).length&&delete this.__sentry_instrumentation_handlers__)}catch(P){}return o.call(this,a,s,u)}}))})}}();break;case"xhr":!function(){if("XMLHttpRequest"in Fo){var n=[],r=[],t=XMLHttpRequest.prototype;Es(t,"open",function(i){return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=this,u=o[1];s.__sentry_xhr__={method:ky(o[0])?o[0].toUpperCase():o[0],url:o[1]},ky(u)&&"POST"===s.__sentry_xhr__.method&&u.match(/sentry_key/)&&(s.__sentry_own_request__=!0);var p=function(){if(4===s.readyState){try{s.__sentry_xhr__&&(s.__sentry_xhr__.status_code=s.status)}catch(L){}try{var C=n.indexOf(s);if(-1!==C){n.splice(C);var P=r.splice(C)[0];s.__sentry_xhr__&&void 0!==P[0]&&(s.__sentry_xhr__.body=P[0])}}catch(L){}mc("xhr",{args:o,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:s})}};return"onreadystatechange"in s&&"function"==typeof s.onreadystatechange?Es(s,"onreadystatechange",function(m){return function(){for(var C=[],P=0;P<arguments.length;P++)C[P]=arguments[P];return p(),m.apply(s,C)}}):s.addEventListener("readystatechange",p),i.apply(s,o)}}),Es(t,"send",function(i){return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return n.push(this),r.push(o),mc("xhr",{args:o,startTimestamp:Date.now(),xhr:this}),i.apply(this,o)}})}}();break;case"fetch":!function(){if(!tD())return!1;var n=(0,da.R)();if(d5(n.fetch))return!0;var r=!1,t=n.document;if(t&&"function"==typeof t.createElement)try{var i=t.createElement("iframe");i.hidden=!0,t.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(r=d5(i.contentWindow.fetch)),t.head.removeChild(i)}catch(o){bi.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return r}()||Es(Fo,"fetch",function(n){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var i={args:r,fetchData:{method:$xe(r),url:ewe(r)},startTimestamp:Date.now()};return mc("fetch",Zn({},i)),n.apply(Fo,r).then(function(o){return mc("fetch",Zn(Zn({},i),{endTimestamp:Date.now(),response:o})),o},function(o){throw mc("fetch",Zn(Zn({},i),{endTimestamp:Date.now(),error:o})),o})}});break;case"history":!function(){if(function(){var n=(0,da.R)(),r=n.chrome;return!(r&&r.app&&r.app.runtime||!("history"in n)||!n.history.pushState||!n.history.replaceState)}()){var n=Fo.onpopstate;Fo.onpopstate=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var o=Fo.location.href,a=nD;if(nD=o,mc("history",{from:a,to:o}),n)try{return n.apply(this,t)}catch(s){}},Es(Fo.history,"pushState",r),Es(Fo.history,"replaceState",r)}function r(t){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=i.length>2?i[2]:void 0;if(a){var s=nD,u=String(a);nD=u,mc("history",{from:s,to:u})}return t.apply(this,i)}}}();break;case"error":p5=Fo.onerror,Fo.onerror=function(n,r,t,i,o){return mc("error",{column:i,error:o,line:t,msg:n,url:r}),!!p5&&p5.apply(this,arguments)};break;case"unhandledrejection":f5=Fo.onunhandledrejection,Fo.onunhandledrejection=function(n){return mc("unhandledrejection",n),!f5||f5.apply(this,arguments)};break;default:bi.warn("unknown instrumentation type:",n)}}(n.type))}function mc(n,r){var t,i;if(n&&oT[n])try{for(var o=Cv(oT[n]||[]),a=o.next();!a.done;a=o.next()){var s=a.value;try{s(r)}catch(u){bi.error("Error while triggering instrumentation handler.\nType: "+n+"\nName: "+lh(s)+"\nError: "+u)}}}catch(u){t={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}}function $xe(n){return void 0===n&&(n=[]),"Request"in Fo&&sh(n[0],Request)&&n[0].method?String(n[0].method).toUpperCase():n[1]&&n[1].method?String(n[1].method).toUpperCase():"GET"}function ewe(n){return void 0===n&&(n=[]),"string"==typeof n[0]?n[0]:"Request"in Fo&&sh(n[0],Request)?n[0].url:String(n[0])}function hW(n,r){return void 0===r&&(r=!1),function(t){if(t&&iD!==t&&!function(n){if("keypress"!==n.type)return!1;try{var r=n.target;if(!r||!r.tagName)return!0;if("INPUT"===r.tagName||"TEXTAREA"===r.tagName||r.isContentEditable)return!1}catch(t){}return!0}(t)){var i="keypress"===t.type?"input":t.type;(void 0===rD||function(n,r){if(!n||n.type!==r.type)return!0;try{if(n.target!==r.target)return!0}catch(t){}return!1}(iD,t))&&(n({event:t,name:i,global:r}),iD=t),clearTimeout(rD),rD=Fo.setTimeout(function(){rD=void 0},1e3)}}}var vc,p5=null,f5=null;!function(n){n.BeforeSend="before_send",n.EventProcessor="event_processor",n.NetworkError="network_error",n.QueueOverflow="queue_overflow",n.RateLimitBackoff="ratelimit_backoff",n.SampleRate="sample_rate"}(vc||(vc={}));var uwe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,r){return n.__proto__=r,n}:function(n,r){for(var t in r)Object.prototype.hasOwnProperty.call(n,t)||(n[t]=r[t]);return n}),Ea=function(n){function r(t){var i=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=i.prototype.constructor.name,uwe(o,i.prototype),o}return tT(r,n),r}(Error),pwe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,aT="Invalid Dsn",vW=function(){function n(r){"string"==typeof r?this._fromString(r):this._fromComponents(r),this._validate()}return n.prototype.toString=function(r){void 0===r&&(r=!1);var t=this,o=t.path,a=t.pass,s=t.port;return t.protocol+"://"+t.publicKey+(r&&a?":"+a:"")+"@"+t.host+(s?":"+s:"")+"/"+(o&&o+"/")+t.projectId},n.prototype._fromString=function(r){var t=pwe.exec(r);if(!t)throw new Ea(aT);var i=nT(t.slice(1),6),o=i[0],a=i[1],s=i[2],u=void 0===s?"":s,p=i[3],m=i[4],C=void 0===m?"":m,L="",G=i[5],Y=G.split("/");if(Y.length>1&&(L=Y.slice(0,-1).join("/"),G=Y.pop()),G){var te=G.match(/^\d+/);te&&(G=te[0])}this._fromComponents({host:p,pass:u,path:L,projectId:G,port:C,protocol:o,publicKey:a})},n.prototype._fromComponents=function(r){"user"in r&&!("publicKey"in r)&&(r.publicKey=r.user),this.user=r.publicKey||"",this.protocol=r.protocol,this.publicKey=r.publicKey||"",this.pass=r.pass||"",this.host=r.host,this.port=r.port||"",this.path=r.path||"",this.projectId=r.projectId},n.prototype._validate=function(){var r=this;if(["protocol","publicKey","host","projectId"].forEach(function(t){if(!r[t])throw new Ea(aT+": "+t+" missing")}),!this.projectId.match(/^\d+$/))throw new Ea(aT+": Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new Ea(aT+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new Ea(aT+": Invalid port "+this.port)},n}(),gW=[];function _W(n){return n.reduce(function(r,t){return r.every(function(i){return t.name!==i.name})&&r.push(t),r},[])}var xv,yW="Not capturing exception because it's already been captured.",vwe=function(){function n(r,t){this._integrations={},this._numProcessing=0,this._backend=new r(t),this._options=t,t.dsn&&(this._dsn=new vW(t.dsn))}return n.prototype.captureException=function(r,t,i){var o=this;if(!Kz(r)){var a=t&&t.event_id;return this._process(this._getBackend().eventFromException(r,t).then(function(s){return o._captureEvent(s,t,i)}).then(function(s){a=s})),a}bi.log(yW)},n.prototype.captureMessage=function(r,t,i,o){var a=this,s=i&&i.event_id,u=Q2(r)?this._getBackend().eventFromMessage(String(r),t,i):this._getBackend().eventFromException(r,i);return this._process(u.then(function(p){return a._captureEvent(p,i,o)}).then(function(p){s=p})),s},n.prototype.captureEvent=function(r,t,i){var o;if(!(null===(o=t)||void 0===o?void 0:o.originalException)||!Kz(t.originalException)){var a=t&&t.event_id;return this._process(this._captureEvent(r,t,i).then(function(s){a=s})),a}bi.log(yW)},n.prototype.captureSession=function(r){this._isEnabled()?"string"!=typeof r.release?bi.warn("Discarded session because of missing or non-string release"):(this._sendSession(r),r.update({init:!1})):bi.warn("SDK not enabled, will not capture session.")},n.prototype.getDsn=function(){return this._dsn},n.prototype.getOptions=function(){return this._options},n.prototype.getTransport=function(){return this._getBackend().getTransport()},n.prototype.flush=function(r){var t=this;return this._isClientDoneProcessing(r).then(function(i){return t.getTransport().close(r).then(function(o){return i&&o})})},n.prototype.close=function(r){var t=this;return this.flush(r).then(function(i){return t.getOptions().enabled=!1,i})},n.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=function(n){var r={};return function(n){var r=n.defaultIntegrations&&Lo(n.defaultIntegrations)||[],t=n.integrations,i=Lo(_W(r));Array.isArray(t)?i=Lo(i.filter(function(s){return t.every(function(u){return u.name!==s.name})}),_W(t)):"function"==typeof t&&(i=t(i),i=Array.isArray(i)?i:[i]);var o=i.map(function(s){return s.name}),a="Debug";return-1!==o.indexOf(a)&&i.push.apply(i,Lo(i.splice(o.indexOf(a),1))),i}(n).forEach(function(t){r[t.name]=t,function(n){-1===gW.indexOf(n.name)&&(n.setupOnce(X2,ks),gW.push(n.name),bi.log("Integration installed: "+n.name))}(t)}),Object.defineProperty(r,"initialized",{value:!0}),r}(this._options))},n.prototype.getIntegration=function(r){try{return this._integrations[r.id]||null}catch(t){return bi.warn("Cannot retrieve integration "+r.id+" from the current Client"),null}},n.prototype._updateSessionFromEvent=function(r,t){var i,o,a=!1,s=!1,u=t.exception&&t.exception.values;if(u){s=!0;try{for(var p=Cv(u),m=p.next();!m.done;m=p.next()){var P=m.value.mechanism;if(P&&!1===P.handled){a=!0;break}}}catch(Y){i={error:Y}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}var L=r.status===xp.Ok;(L&&0===r.errors||L&&a)&&(r.update(Zn(Zn({},a&&{status:xp.Crashed}),{errors:r.errors||Number(s||a)})),this.captureSession(r))},n.prototype._sendSession=function(r){this._getBackend().sendSession(r)},n.prototype._isClientDoneProcessing=function(r){var t=this;return new vl(function(i){var o=0,s=setInterval(function(){0==t._numProcessing?(clearInterval(s),i(!0)):(o+=1,r&&o>=r&&(clearInterval(s),i(!1)))},1)})},n.prototype._getBackend=function(){return this._backend},n.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},n.prototype._prepareEvent=function(r,t,i){var o=this,a=this.getOptions().normalizeDepth,s=void 0===a?3:a,u=Zn(Zn({},r),{event_id:r.event_id||(i&&i.event_id?i.event_id:xy()),timestamp:r.timestamp||(0,Ey.yW)()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var p=t;i&&i.captureContext&&(p=K2.clone(p).update(i.captureContext));var m=vl.resolve(u);return p&&(m=p.applyToEvent(u,i)),m.then(function(C){return"number"==typeof s&&s>0?o._normalizeEvent(C,s):C})},n.prototype._normalizeEvent=function(r,t){if(!r)return null;var i=Zn(Zn(Zn(Zn(Zn({},r),r.breadcrumbs&&{breadcrumbs:r.breadcrumbs.map(function(s){return Zn(Zn({},s),s.data&&{data:Ay(s.data,t)})})}),r.user&&{user:Ay(r.user,t)}),r.contexts&&{contexts:Ay(r.contexts,t)}),r.extra&&{extra:Ay(r.extra,t)});r.contexts&&r.contexts.trace&&(i.contexts.trace=r.contexts.trace);var o=this.getOptions()._experiments;return(void 0===o?{}:o).ensureNoCircularStructures?Ay(i):i},n.prototype._applyClientOptions=function(r){var t=this.getOptions(),o=t.release,a=t.dist,s=t.maxValueLength,u=void 0===s?250:s;"environment"in r||(r.environment="environment"in t?t.environment:"production"),void 0===r.release&&void 0!==o&&(r.release=o),void 0===r.dist&&void 0!==a&&(r.dist=a),r.message&&(r.message=rT(r.message,u));var p=r.exception&&r.exception.values&&r.exception.values[0];p&&p.value&&(p.value=rT(p.value,u));var m=r.request;m&&m.url&&(m.url=rT(m.url,u))},n.prototype._applyIntegrationsMetadata=function(r){var t=Object.keys(this._integrations);t.length>0&&(r.sdk=r.sdk||{},r.sdk.integrations=Lo(r.sdk.integrations||[],t))},n.prototype._sendEvent=function(r){this._getBackend().sendEvent(r)},n.prototype._captureEvent=function(r,t,i){return this._processEvent(r,t,i).then(function(o){return o.event_id},function(o){bi.error(o)})},n.prototype._processEvent=function(r,t,i){var a,s,o=this,u=this.getOptions(),p=u.beforeSend,m=u.sampleRate,C=this.getTransport();if(!this._isEnabled())return vl.reject(new Ea("SDK not enabled, will not capture event."));var P="transaction"===r.type;return!P&&"number"==typeof m&&Math.random()>m?(null===(s=(a=C).recordLostEvent)||void 0===s||s.call(a,vc.SampleRate,"event"),vl.reject(new Ea("Discarding event because it's not included in the random sample (sampling rate = "+m+")"))):this._prepareEvent(r,i,t).then(function(L){var G,Y;if(null===L)throw null===(Y=(G=C).recordLostEvent)||void 0===Y||Y.call(G,vc.EventProcessor,r.type||"event"),new Ea("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||P||!p)return L;var de=p(L,t);return o._ensureBeforeSendRv(de)}).then(function(L){var G,Y;if(null===L)throw null===(Y=(G=C).recordLostEvent)||void 0===Y||Y.call(G,vc.BeforeSend,r.type||"event"),new Ea("`beforeSend` returned `null`, will not send event.");var te=i&&i.getSession&&i.getSession();return!P&&te&&o._updateSessionFromEvent(te,L),o._sendEvent(L),L}).then(null,function(L){throw L instanceof Ea?L:(o.captureException(L,{data:{__sentry__:!0},originalException:L}),new Ea("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+L))})},n.prototype._process=function(r){var t=this;this._numProcessing+=1,r.then(function(i){return t._numProcessing-=1,i},function(i){return t._numProcessing-=1,i})},n.prototype._ensureBeforeSendRv=function(r){var t="`beforeSend` method has to return `null` or a valid event.";if(o5(r))return r.then(function(i){if(!My(i)&&null!==i)throw new Ea(t);return i},function(i){throw new Ea("beforeSend rejected with "+i)});if(!My(r)&&null!==r)throw new Ea(t);return r},n}();(function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"})(xv||(xv={})),function(n){n.fromHttpCode=function(t){return t>=200&&t<300?n.Success:429===t?n.RateLimit:t>=400&&t<500?n.Invalid:t>=500?n.Failed:n.Unknown}}(xv||(xv={}));var pd,gwe=function(){function n(){}return n.prototype.sendEvent=function(r){return vl.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:xv.Skipped})},n.prototype.close=function(r){return vl.resolve(!0)},n}(),_we=function(){function n(r){this._options=r,this._options.dsn||bi.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return n.prototype.eventFromException=function(r,t){throw new Ea("Backend has to implement `eventFromException` method")},n.prototype.eventFromMessage=function(r,t,i){throw new Ea("Backend has to implement `eventFromMessage` method")},n.prototype.sendEvent=function(r){this._transport.sendEvent(r).then(null,function(t){bi.error("Error while sending event: "+t)})},n.prototype.sendSession=function(r){this._transport.sendSession?this._transport.sendSession(r).then(null,function(t){bi.error("Error while sending session: "+t)}):bi.warn("Dropping session because custom transport doesn't implement sendSession")},n.prototype.getTransport=function(){return this._transport},n.prototype._setupTransport=function(){return new gwe},n}();(function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"})(pd||(pd={})),function(n){n.fromString=function(t){switch(t){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(pd||(pd={}));var ywe=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,bwe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Cwe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Swe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Twe=/\((\S*)(?::(\d+))(?::(\d+))\)/,xwe=/Minified React error #\d+;/i;function sT(n){var r=null,t=0;n&&("number"==typeof n.framesToPop?t=n.framesToPop:xwe.test(n.message)&&(t=1));try{if(r=function(n){if(!n||!n.stacktrace)return null;for(var s,t=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=n.stacktrace.split("\n"),a=[],u=0;u<o.length;u+=2){var p=null;(s=t.exec(o[u]))?p={url:s[2],func:s[3],args:[],line:+s[1],column:null}:(s=i.exec(o[u]))&&(p={url:s[6],func:s[3]||s[4],args:s[5]?s[5].split(","):[],line:+s[1],column:+s[2]}),p&&(!p.func&&p.line&&(p.func="?"),a.push(p))}return a.length?{message:h5(n),name:n.name,stack:a}:null}(n))return CW(r,t)}catch(i){}try{if(r=function(n){var r,t;if(!n||!n.stack)return null;for(var s,u,p,i=[],o=n.stack.split("\n"),m=0;m<o.length;++m){if(u=ywe.exec(o[m])){var C=u[2]&&0===u[2].indexOf("native");u[2]&&0===u[2].indexOf("eval")&&(s=Twe.exec(u[2]))&&(u[2]=s[1],u[3]=s[2],u[4]=s[3]);var P=u[2]&&0===u[2].indexOf("address at ")?u[2].substr("address at ".length):u[2];p={url:P=(r=nT(bW(u[1]||"?",P),2))[1],func:r[0],args:C?[u[2]]:[],line:u[3]?+u[3]:null,column:u[4]?+u[4]:null}}else if(u=Cwe.exec(o[m]))p={url:u[2],func:u[1]||"?",args:[],line:+u[3],column:u[4]?+u[4]:null};else{if(!(u=bwe.exec(o[m])))continue;u[3]&&u[3].indexOf(" > eval")>-1&&(s=Swe.exec(u[3]))?(u[1]=u[1]||"eval",u[3]=s[1],u[4]=s[2],u[5]=""):0===m&&!u[5]&&void 0!==n.columnNumber&&(i[0].column=n.columnNumber+1),p={url:P=(t=nT(bW(u[1]||"?",P=u[3]),2))[1],func:t[0],args:u[2]?u[2].split(","):[],line:u[4]?+u[4]:null,column:u[5]?+u[5]:null}}!p.func&&p.line&&(p.func="?"),i.push(p)}return i.length?{message:h5(n),name:n.name,stack:i}:null}(n))return CW(r,t)}catch(i){}return{message:h5(n),name:n&&n.name,stack:[],failed:!0}}var bW=function(r,t){var i=-1!==r.indexOf("safari-extension"),o=-1!==r.indexOf("safari-web-extension");return i||o?[-1!==r.indexOf("@")?r.split("@")[0]:"?",i?"safari-extension:"+t:"safari-web-extension:"+t]:[r,t]};function CW(n,r){try{return Zn(Zn({},n),{stack:n.stack.slice(r)})}catch(t){return n}}function h5(n){var r=n&&n.message;return r?r.error&&"string"==typeof r.error.message?r.error.message:r:"No error message"}function SW(n){var r=m5(n.stack),t={type:n.name,value:n.message};return r&&r.length&&(t.stacktrace={frames:r}),void 0===t.type&&""===t.value&&(t.value="Unrecoverable error caught"),t}function TW(n){return{exception:{values:[SW(n)]}}}function m5(n){if(!n||!n.length)return[];var r=n,t=r[0].func||"",i=r[r.length-1].func||"";return(-1!==t.indexOf("captureMessage")||-1!==t.indexOf("captureException"))&&(r=r.slice(1)),-1!==i.indexOf("sentryWrapped")&&(r=r.slice(0,-1)),r.slice(0,50).map(function(o){return{colno:null===o.column?void 0:o.column,filename:o.url||r[0].url,function:o.func||"?",in_app:!0,lineno:null===o.line?void 0:o.line}}).reverse()}function v5(n,r,t){var i;if(void 0===t&&(t={}),$z(n)&&n.error)return TW(sT(n=n.error));if(eW(n)||function(n){return"[object DOMException]"===Object.prototype.toString.call(n)}(n)){var a=n,s=a.name||(eW(a)?"DOMError":"DOMException"),u=a.message?s+": "+a.message:s;return n5(i=g5(u,r,t),u),"code"in a&&(i.tags=Zn(Zn({},i.tags),{"DOMException.code":""+a.code})),i}return Xz(n)?i=TW(sT(n)):My(n)||i5(n)?(wy(i=function(n,r,t){var i={exception:{values:[{type:i5(n)?n.constructor.name:t?"UnhandledRejection":"Error",value:"Non-Error "+(t?"promise rejection":"exception")+" captured with keys: "+Fxe(n)}]},extra:{__serialized__:aW(n)}};if(r){var a=m5(sT(r).stack);i.stacktrace={frames:a}}return i}(n,r,t.rejection),{synthetic:!0}),i):(n5(i=g5(n,r,t),""+n,void 0),wy(i,{synthetic:!0}),i)}function g5(n,r,t){void 0===t&&(t={});var i={message:n};if(t.attachStacktrace&&r){var a=m5(sT(r).stack);i.stacktrace={frames:a}}return i}function xW(n){if(n.metadata&&n.metadata.sdk){var r=n.metadata.sdk;return{name:r.name,version:r.version}}}function Owe(n,r){return r&&(n.sdk=n.sdk||{},n.sdk.name=n.sdk.name||r.name,n.sdk.version=n.sdk.version||r.version,n.sdk.integrations=Lo(n.sdk.integrations||[],r.integrations||[]),n.sdk.packages=Lo(n.sdk.packages||[],r.packages||[])),n}function wW(n,r){var t=xW(r),o="aggregates"in n?"sessions":"session";return{body:JSON.stringify(Zn(Zn({sent_at:(new Date).toISOString()},t&&{sdk:t}),r.forceEnvelope()&&{dsn:r.getDsn().toString()}))+"\n"+JSON.stringify({type:o})+"\n"+JSON.stringify(n),type:o,url:r.getEnvelopeEndpointWithUrlEncodedAuth()}}function EW(n,r){var t=xW(r),i=n.type||"event",o="transaction"===i||r.forceEnvelope(),a=n.debug_meta||{},s=a.transactionSampling,u=function(n,r){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&r.indexOf(i)<0&&(t[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(n);o<i.length;o++)r.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(n,i[o])&&(t[i[o]]=n[i[o]])}return t}(a,["transactionSampling"]),p=s||{},m=p.method,C=p.rate;0===Object.keys(u).length?delete n.debug_meta:n.debug_meta=u;var P={body:JSON.stringify(t?Owe(n,r.metadata.sdk):n),type:i,url:o?r.getEnvelopeEndpointWithUrlEncodedAuth():r.getStoreEndpointWithUrlEncodedAuth()};if(o){var L=JSON.stringify(Zn(Zn({event_id:n.event_id,sent_at:(new Date).toISOString()},t&&{sdk:t}),r.forceEnvelope()&&{dsn:r.getDsn().toString()})),G=JSON.stringify({type:i,sample_rates:[{id:m,rate:C}]});P.body=L+"\n"+G+"\n"+P.body}return P}var oD,MW=function(){function n(r,t,i){void 0===t&&(t={}),this.dsn=r,this._dsnObject=new vW(r),this.metadata=t,this._tunnel=i}return n.prototype.getDsn=function(){return this._dsnObject},n.prototype.forceEnvelope=function(){return!!this._tunnel},n.prototype.getBaseApiEndpoint=function(){var r=this.getDsn();return(r.protocol?r.protocol+":":"")+"//"+r.host+(r.port?":"+r.port:"")+(r.path?"/"+r.path:"")+"/api/"},n.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},n.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},n.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},n.prototype.getStoreEndpointPath=function(){var r=this.getDsn();return(r.path?"/"+r.path:"")+"/api/"+r.projectId+"/store/"},n.prototype.getRequestHeaders=function(r,t){var i=this.getDsn(),o=["Sentry sentry_version=7"];return o.push("sentry_client="+r+"/"+t),o.push("sentry_key="+i.publicKey),i.pass&&o.push("sentry_secret="+i.pass),{"Content-Type":"application/json","X-Sentry-Auth":o.join(", ")}},n.prototype.getReportDialogEndpoint=function(r){void 0===r&&(r={});var t=this.getDsn(),i=this.getBaseApiEndpoint()+"embed/error-page/",o=[];for(var a in o.push("dsn="+t.toString()),r)if("dsn"!==a)if("user"===a){if(!r.user)continue;r.user.name&&o.push("name="+encodeURIComponent(r.user.name)),r.user.email&&o.push("email="+encodeURIComponent(r.user.email))}else o.push(encodeURIComponent(a)+"="+encodeURIComponent(r[a]));return o.length?i+"?"+o.join("&"):i},n.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},n.prototype._getIngestEndpoint=function(r){return this._tunnel?this._tunnel:""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+r+"/"},n.prototype._encodedAuth=function(){return function(n){return Object.keys(n).map(function(r){return encodeURIComponent(r)+"="+encodeURIComponent(n[r])}).join("&")}({sentry_key:this.getDsn().publicKey,sentry_version:"7"})},n}(),Pwe=function(){function n(r){this._limit=r,this._buffer=[]}return n.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},n.prototype.add=function(r){var t=this;if(!this.isReady())return vl.reject(new Ea("Not adding Promise due to buffer limit reached."));var i=r();return-1===this._buffer.indexOf(i)&&this._buffer.push(i),i.then(function(){return t.remove(i)}).then(null,function(){return t.remove(i).then(null,function(){})}),i},n.prototype.remove=function(r){return this._buffer.splice(this._buffer.indexOf(r),1)[0]},n.prototype.length=function(){return this._buffer.length},n.prototype.drain=function(r){var t=this;return new vl(function(i){var o=setTimeout(function(){r&&r>0&&i(!1)},r);vl.all(t._buffer).then(function(){clearTimeout(o),i(!0)}).then(null,function(){i(!0)})})},n}(),gc=(0,da.R)();function AW(){var n,r;if(oD)return oD;if(d5(gc.fetch))return oD=gc.fetch.bind(gc);var t=gc.document,i=gc.fetch;if("function"==typeof(null===(n=t)||void 0===n?void 0:n.createElement))try{var o=t.createElement("iframe");o.hidden=!0,t.head.appendChild(o),(null===(r=o.contentWindow)||void 0===r?void 0:r.fetch)&&(i=o.contentWindow.fetch),t.head.removeChild(o)}catch(a){bi.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",a)}return oD=i.bind(gc)}var DW={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},_5=(0,da.R)(),OW=function(){function n(r){var t=this;this.options=r,this._buffer=new Pwe(30),this._rateLimits={},this._outcomes={},this._api=new MW(r.dsn,r._metadata,r.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth(),this.options.sendClientReports&&_5.document&&_5.document.addEventListener("visibilitychange",function(){"hidden"===_5.document.visibilityState&&t._flushOutcomes()})}return n.prototype.sendEvent=function(r){throw new Ea("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(r){return this._buffer.drain(r)},n.prototype.recordLostEvent=function(r,t){var i;if(this.options.sendClientReports){var o=DW[t]+":"+r;bi.log("Adding outcome: "+o),this._outcomes[o]=(null!=(i=this._outcomes[o])?i:0)+1}},n.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var r=this._outcomes;if(this._outcomes={},!Object.keys(r).length)return void bi.log("No outcomes to flush");bi.log("Flushing outcomes:\n"+JSON.stringify(r,null,2));var t=this._api.getEnvelopeEndpointWithUrlEncodedAuth(),s=JSON.stringify(Zn({},this.options.tunnel&&{dsn:this._api.getDsn().toString()}))+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:(0,Ey.yW)(),discarded_events:Object.keys(r).map(function(u){var p=nT(u.split(":"),2);return{reason:p[1],category:p[0],quantity:r[u]}})});try{!function(n,r){"[object Navigator]"===Object.prototype.toString.call(gc&&gc.navigator)&&"function"==typeof gc.navigator.sendBeacon?gc.navigator.sendBeacon.bind(gc.navigator)(n,r):tD()&&function(n){n.then(null,function(r){console.error(r)})}(AW()(n,{body:r,method:"POST",credentials:"omit",keepalive:!0}))}(t,s)}catch(u){bi.error(u)}}},n.prototype._handleResponse=function(r){var t=r.requestType,i=r.response,o=r.headers,a=r.resolve,s=r.reject,u=xv.fromHttpCode(i.status);this._handleRateLimit(o)&&bi.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),u!==xv.Success?s(i):a({status:u})},n.prototype._disabledUntil=function(r){return this._rateLimits[DW[r]]||this._rateLimits.all},n.prototype._isRateLimited=function(r){return this._disabledUntil(r)>new Date(Date.now())},n.prototype._handleRateLimit=function(r){var t,i,o,a,s=Date.now(),u=r["x-sentry-rate-limits"],p=r["retry-after"];if(u){try{for(var m=Cv(u.trim().split(",")),C=m.next();!C.done;C=m.next()){var L=C.value.split(":",2),G=parseInt(L[0],10),Y=1e3*(isNaN(G)?60:G);try{for(var te=(o=void 0,Cv(L[1].split(";"))),de=te.next();!de.done;de=te.next())this._rateLimits[de.value||"all"]=new Date(s+Y)}catch(st){o={error:st}}finally{try{de&&!de.done&&(a=te.return)&&a.call(te)}finally{if(o)throw o.error}}}}catch(st){t={error:st}}finally{try{C&&!C.done&&(i=m.return)&&i.call(m)}finally{if(t)throw t.error}}return!0}return!!p&&(this._rateLimits.all=new Date(s+function(n,r){if(!r)return 6e4;var t=parseInt(""+r,10);if(!isNaN(t))return 1e3*t;var i=Date.parse(""+r);return isNaN(i)?6e4:i-n}(s,p)),!0)},n}(),Nwe=function(n){function r(t,i){void 0===i&&(i=AW());var o=n.call(this,t)||this;return o._fetch=i,o}return tT(r,n),r.prototype.sendEvent=function(t){return this._sendRequest(EW(t,this._api),t)},r.prototype.sendSession=function(t){return this._sendRequest(wW(t,this._api),t)},r.prototype._sendRequest=function(t,i){var o=this;if(this._isRateLimited(t.type))return this.recordLostEvent(vc.RateLimitBackoff,t.type),Promise.reject({event:i,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var a={body:t.body,method:"POST",referrerPolicy:Yxe()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(a,this.options.fetchParameters),void 0!==this.options.headers&&(a.headers=this.options.headers),this._buffer.add(function(){return new vl(function(s,u){o._fetch(t.url,a).then(function(p){var m={"x-sentry-rate-limits":p.headers.get("X-Sentry-Rate-Limits"),"retry-after":p.headers.get("Retry-After")};o._handleResponse({requestType:t.type,response:p,headers:m,resolve:s,reject:u})}).catch(u)})}).then(void 0,function(s){throw o.recordLostEvent(s instanceof Ea?vc.QueueOverflow:vc.NetworkError,t.type),s})},r}(OW),Zwe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return tT(r,n),r.prototype.sendEvent=function(t){return this._sendRequest(EW(t,this._api),t)},r.prototype.sendSession=function(t){return this._sendRequest(wW(t,this._api),t)},r.prototype._sendRequest=function(t,i){var o=this;return this._isRateLimited(t.type)?(this.recordLostEvent(vc.RateLimitBackoff,t.type),Promise.reject({event:i,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429})):this._buffer.add(function(){return new vl(function(a,s){var u=new XMLHttpRequest;for(var p in u.onreadystatechange=function(){if(4===u.readyState){var m={"x-sentry-rate-limits":u.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":u.getResponseHeader("Retry-After")};o._handleResponse({requestType:t.type,response:u,headers:m,resolve:a,reject:s})}},u.open("POST",t.url),o.options.headers)Object.prototype.hasOwnProperty.call(o.options.headers,p)&&u.setRequestHeader(p,o.options.headers[p]);u.send(t.body)})}).then(void 0,function(a){throw o.recordLostEvent(a instanceof Ea?vc.QueueOverflow:vc.NetworkError,t.type),a})},r}(OW),Lwe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return tT(r,n),r.prototype.eventFromException=function(t,i){return function(n,r,t){var o=v5(r,t&&t.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return wy(o),o.level=pd.Error,t&&t.event_id&&(o.event_id=t.event_id),vl.resolve(o)}(this._options,t,i)},r.prototype.eventFromMessage=function(t,i,o){return void 0===i&&(i=pd.Info),function(n,r,t,i){void 0===t&&(t=pd.Info);var a=g5(r,i&&i.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return a.level=t,i&&i.event_id&&(a.event_id=i.event_id),vl.resolve(a)}(this._options,t,i,o)},r.prototype._setupTransport=function(){if(!this._options.dsn)return n.prototype._setupTransport.call(this);var t=Zn(Zn({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):tD()?new Nwe(t):new Zwe(t)},r}(_we),aD=(0,da.R)(),y5=0;function PW(){return y5>0}function Fwe(){y5+=1,setTimeout(function(){y5-=1})}function Oy(n,r,t){if(void 0===r&&(r={}),"function"!=typeof n)return n;try{if(n.__sentry__)return n;if(n.__sentry_wrapped__)return n.__sentry_wrapped__}catch(s){return n}var i=function(){var u=Array.prototype.slice.call(arguments);try{t&&"function"==typeof t&&t.apply(this,arguments);var p=u.map(function(m){return Oy(m,r)});return n.handleEvent?n.handleEvent.apply(this,p):n.apply(this,p)}catch(m){throw Fwe(),Vxe(function(C){C.addEventProcessor(function(P){var L=Zn({},P);return r.mechanism&&(n5(L,void 0,void 0),wy(L,r.mechanism)),L.extra=Zn(Zn({},L.extra),{arguments:u}),L}),dW(m)}),m}};try{for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])}catch(s){}n.prototype=n.prototype||{},i.prototype=n.prototype,Object.defineProperty(n,"__sentry_wrapped__",{enumerable:!1,value:i}),Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:n}});try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return n.name}})}catch(s){}return i}var IW=function(){function n(r){this.name=n.id,this._options=Zn({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},r)}return n.prototype.addSentryBreadcrumb=function(r){!this._options.sentry||ks().addBreadcrumb({category:"sentry."+("transaction"===r.type?"transaction":"event"),event_id:r.event_id,level:r.level,message:Sv(r)},{event:r})},n.prototype.setupOnce=function(){var r=this;this._options.console&&ch({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._consoleBreadcrumb.apply(r,Lo(i))},type:"console"}),this._options.dom&&ch({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._domBreadcrumb.apply(r,Lo(i))},type:"dom"}),this._options.xhr&&ch({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._xhrBreadcrumb.apply(r,Lo(i))},type:"xhr"}),this._options.fetch&&ch({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._fetchBreadcrumb.apply(r,Lo(i))},type:"fetch"}),this._options.history&&ch({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._historyBreadcrumb.apply(r,Lo(i))},type:"history"})},n.prototype._consoleBreadcrumb=function(r){var t={category:"console",data:{arguments:r.args,logger:"console"},level:pd.fromString(r.level),message:iW(r.args," ")};if("assert"===r.level){if(!1!==r.args[0])return;t.message="Assertion failed: "+(iW(r.args.slice(1)," ")||"console.assert"),t.data.arguments=r.args.slice(1)}ks().addBreadcrumb(t,{input:r.args,level:r.level})},n.prototype._domBreadcrumb=function(r){var t,i="object"==typeof this._options.dom?this._options.dom.serializeAttribute:void 0;"string"==typeof i&&(i=[i]);try{t=$2(r.event.target?r.event.target:r.event,i)}catch(o){t="<unknown>"}0!==t.length&&ks().addBreadcrumb({category:"ui."+r.name,message:t},{event:r.event,name:r.name,global:r.global})},n.prototype._xhrBreadcrumb=function(r){if(r.endTimestamp){if(r.xhr.__sentry_own_request__)return;var t=r.xhr.__sentry_xhr__||{},i=t.method,o=t.url,a=t.status_code,s=t.body;ks().addBreadcrumb({category:"xhr",data:{method:i,url:o,status_code:a},type:"http"},{xhr:r.xhr,input:s})}},n.prototype._fetchBreadcrumb=function(r){!r.endTimestamp||r.fetchData.url.match(/sentry_key/)&&"POST"===r.fetchData.method||(r.error?ks().addBreadcrumb({category:"fetch",data:r.fetchData,level:pd.Error,type:"http"},{data:r.error,input:r.args}):ks().addBreadcrumb({category:"fetch",data:Zn(Zn({},r.fetchData),{status_code:r.response.status}),type:"http"},{input:r.args,response:r.response}))},n.prototype._historyBreadcrumb=function(r){var t=(0,da.R)(),i=r.from,o=r.to,a=t5(t.location.href),s=t5(i),u=t5(o);s.path||(s=a),a.protocol===u.protocol&&a.host===u.host&&(o=u.relative),a.protocol===s.protocol&&a.host===s.host&&(i=s.relative),ks().addBreadcrumb({category:"navigation",data:{from:i,to:o}})},n.id="Breadcrumbs",n}(),Uwe=function(n){function r(t){return void 0===t&&(t={}),t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.14.1"}],version:"6.14.1"},n.call(this,Lwe,t)||this}return tT(r,n),r.prototype.showReportDialog=function(t){if(void 0===t&&(t={}),(0,da.R)().document){if(!this._isEnabled())return void bi.error("Trying to call showReportDialog with Sentry Client disabled");!function(n){if(void 0===n&&(n={}),aD.document){if(!n.eventId)return void bi.error("Missing eventId option in showReportDialog call");if(!n.dsn)return void bi.error("Missing dsn option in showReportDialog call");var r=aD.document.createElement("script");r.async=!0,r.src=new MW(n.dsn).getReportDialogEndpoint(n),n.onLoad&&(r.onload=n.onLoad);var t=aD.document.head||aD.document.body;t&&t.appendChild(r)}}(Zn(Zn({},t),{dsn:t.dsn||this.getDsn()}))}},r.prototype._prepareEvent=function(t,i,o){return t.platform=t.platform||"javascript",n.prototype._prepareEvent.call(this,t,i,o)},r.prototype._sendEvent=function(t){var i=this.getIntegration(IW);i&&i.addSentryBreadcrumb(t),n.prototype._sendEvent.call(this,t)},r}(vwe),Hwe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Vwe=function(){function n(r){this.name=n.id,this._options=Zn({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},r)}return n.prototype.setupOnce=function(){var r=(0,da.R)();this._options.setTimeout&&Es(r,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Es(r,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Es(r,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in r&&Es(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Hwe).forEach(this._wrapEventTarget.bind(this))},n.prototype._wrapTimeFunction=function(r){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var o=t[0];return t[0]=Oy(o,{mechanism:{data:{function:lh(r)},handled:!0,type:"instrument"}}),r.apply(this,t)}},n.prototype._wrapRAF=function(r){return function(t){return r.call(this,Oy(t,{mechanism:{data:{function:"requestAnimationFrame",handler:lh(r)},handled:!0,type:"instrument"}}))}},n.prototype._wrapEventTarget=function(r){var t=(0,da.R)(),i=t[r]&&t[r].prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(Es(i,"addEventListener",function(o){return function(a,s,u){try{"function"==typeof s.handleEvent&&(s.handleEvent=Oy(s.handleEvent.bind(s),{mechanism:{data:{function:"handleEvent",handler:lh(s),target:r},handled:!0,type:"instrument"}}))}catch(p){}return o.call(this,a,Oy(s,{mechanism:{data:{function:"addEventListener",handler:lh(s),target:r},handled:!0,type:"instrument"}}),u)}}),Es(i,"removeEventListener",function(o){return function(a,s,u){var p,m=s;try{var C=null===(p=m)||void 0===p?void 0:p.__sentry_wrapped__;C&&o.call(this,a,C,u)}catch(P){}return o.call(this,a,m,u)}}))},n.prototype._wrapXHR=function(r){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var o=this,a=["onload","onerror","onprogress","onreadystatechange"];return a.forEach(function(s){s in o&&"function"==typeof o[s]&&Es(o,s,function(u){var p={mechanism:{data:{function:s,handler:lh(u)},handled:!0,type:"instrument"}};return u.__sentry_original__&&(p.mechanism.data.handler=lh(u.__sentry_original__)),Oy(u,p)})}),r.apply(this,t)}},n.id="TryCatch",n}(),qwe=function(){function n(r){this.name=n.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=Zn({onerror:!0,onunhandledrejection:!0},r)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(bi.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(bi.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},n.prototype._installGlobalOnErrorHandler=function(){var r=this;this._onErrorHandlerInstalled||(ch({callback:function(i){var o=i.error,a=ks(),s=a.getIntegration(n),u=o&&!0===o.__sentry_own_request__;if(s&&!PW()&&!u){var p=a.getClient(),m=void 0===o&&ky(i.msg)?r._eventFromIncompleteOnError(i.msg,i.url,i.line,i.column):r._enhanceEventWithInitialFrame(v5(o||i.msg,void 0,{attachStacktrace:p&&p.getOptions().attachStacktrace,rejection:!1}),i.url,i.line,i.column);wy(m,{handled:!1,type:"onerror"}),a.captureEvent(m,{originalException:o})}},type:"error"}),this._onErrorHandlerInstalled=!0)},n.prototype._installGlobalOnUnhandledRejectionHandler=function(){var r=this;this._onUnhandledRejectionHandlerInstalled||(ch({callback:function(i){var o=i;try{"reason"in i?o=i.reason:"detail"in i&&"reason"in i.detail&&(o=i.detail.reason)}catch(C){}var a=ks(),s=a.getIntegration(n),u=o&&!0===o.__sentry_own_request__;if(!s||PW()||u)return!0;var p=a.getClient(),m=Q2(o)?r._eventFromRejectionWithPrimitive(o):v5(o,void 0,{attachStacktrace:p&&p.getOptions().attachStacktrace,rejection:!0});m.level=pd.Error,wy(m,{handled:!1,type:"onunhandledrejection"}),a.captureEvent(m,{originalException:o})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},n.prototype._eventFromIncompleteOnError=function(r,t,i,o){var u,s=$z(r)?r.message:r,p=s.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return p&&(u=p[1],s=p[2]),this._enhanceEventWithInitialFrame({exception:{values:[{type:u||"Error",value:s}]}},t,i,o)},n.prototype._eventFromRejectionWithPrimitive=function(r){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(r)}]}}},n.prototype._enhanceEventWithInitialFrame=function(r,t,i,o){r.exception=r.exception||{},r.exception.values=r.exception.values||[],r.exception.values[0]=r.exception.values[0]||{},r.exception.values[0].stacktrace=r.exception.values[0].stacktrace||{},r.exception.values[0].stacktrace.frames=r.exception.values[0].stacktrace.frames||[];var a=isNaN(parseInt(o,10))?void 0:o,s=isNaN(parseInt(i,10))?void 0:i,u=ky(t)&&t.length>0?t:function(){var n=(0,da.R)();try{return n.document.location.href}catch(r){return""}}();return 0===r.exception.values[0].stacktrace.frames.length&&r.exception.values[0].stacktrace.frames.push({colno:a,filename:u,function:"?",in_app:!0,lineno:s}),r},n.id="GlobalHandlers",n}(),Wwe=function(){function n(r){void 0===r&&(r={}),this.name=n.id,this._key=r.key||"cause",this._limit=r.limit||5}return n.prototype.setupOnce=function(){X2(function(r,t){var i=ks().getIntegration(n);if(i){var o=i._handler&&i._handler.bind(i);return"function"==typeof o?o(r,t):r}return r})},n.prototype._handler=function(r,t){if(!(r.exception&&r.exception.values&&t&&sh(t.originalException,Error)))return r;var i=this._walkErrorTree(t.originalException,this._key);return r.exception.values=Lo(i,r.exception.values),r},n.prototype._walkErrorTree=function(r,t,i){if(void 0===i&&(i=[]),!sh(r[t],Error)||i.length+1>=this._limit)return i;var a=SW(sT(r[t]));return this._walkErrorTree(r[t],t,Lo([a],i))},n.id="LinkedErrors",n}(),Gwe=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(r,t){r(function(i){var o=t().getIntegration(n);if(o){try{if(o._shouldDropEvent(i,o._previousEvent))return bi.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(a){return o._previousEvent=i}return o._previousEvent=i}return i})},n.prototype._shouldDropEvent=function(r,t){return!(!t||!this._isSameMessageEvent(r,t)&&!this._isSameExceptionEvent(r,t))},n.prototype._isSameMessageEvent=function(r,t){var i=r.message,o=t.message;return!(!i&&!o||i&&!o||!i&&o||i!==o||!this._isSameFingerprint(r,t)||!this._isSameStacktrace(r,t))},n.prototype._getFramesFromEvent=function(r){var t=r.exception;if(t)try{return t.values[0].stacktrace.frames}catch(i){return}else if(r.stacktrace)return r.stacktrace.frames},n.prototype._isSameStacktrace=function(r,t){var i=this._getFramesFromEvent(r),o=this._getFramesFromEvent(t);if(!i&&!o)return!0;if(i&&!o||!i&&o||(o=o).length!==(i=i).length)return!1;for(var a=0;a<o.length;a++){var s=o[a],u=i[a];if(s.filename!==u.filename||s.lineno!==u.lineno||s.colno!==u.colno||s.function!==u.function)return!1}return!0},n.prototype._getExceptionFromEvent=function(r){return r.exception&&r.exception.values&&r.exception.values[0]},n.prototype._isSameExceptionEvent=function(r,t){var i=this._getExceptionFromEvent(t),o=this._getExceptionFromEvent(r);return!!(i&&o&&i.type===o.type&&i.value===o.value&&this._isSameFingerprint(r,t)&&this._isSameStacktrace(r,t))},n.prototype._isSameFingerprint=function(r,t){var i=r.fingerprint,o=t.fingerprint;if(!i&&!o)return!0;if(i&&!o||!i&&o)return!1;i=i,o=o;try{return i.join("")===o.join("")}catch(a){return!1}},n.id="Dedupe",n}(),Py=(0,da.R)(),Ywe=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){X2(function(r){var t,i,o;if(ks().getIntegration(n)){if(!Py.navigator&&!Py.location&&!Py.document)return r;var a=(null===(t=r.request)||void 0===t?void 0:t.url)||(null===(i=Py.location)||void 0===i?void 0:i.href),s=(Py.document||{}).referrer,u=(Py.navigator||{}).userAgent,p=Zn(Zn(Zn({},null===(o=r.request)||void 0===o?void 0:o.headers),s&&{Referer:s}),u&&{"User-Agent":u}),m=Zn(Zn({},a&&{url:a}),{headers:p});return Zn(Zn({},r),{request:m})}return r})},n.id="UserAgent",n}(),Jwe=[new zxe,new Wxe,new Vwe,new IW,new qwe,new Wwe,new Gwe,new Ywe];!function(n){if(void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=Jwe),void 0===n.release){var r=(0,da.R)();r.SENTRY_RELEASE&&r.SENTRY_RELEASE.id&&(n.release=r.SENTRY_RELEASE.id)}void 0===n.autoSessionTracking&&(n.autoSessionTracking=!0),void 0===n.sendClientReports&&(n.sendClientReports=!0),function(n,r){var t;!0===r.debug&&bi.enable();var i=ks();null===(t=i.getScope())||void 0===t||t.update(r.initialScope);var o=new n(r);i.bindClient(o)}(Uwe,n),n.autoSessionTracking&&function(){if(void 0!==(0,da.R)().document){var t=ks();"function"!=typeof t.startSession||"function"!=typeof t.captureSession||(t.startSession({ignoreDuration:!0}),t.captureSession(),ch({callback:function(o){var a=o.from;void 0===a||a===o.to||(t.startSession({ignoreDuration:!0}),t.captureSession())},type:"history"}))}else bi.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}({dsn:"https://d8be3a98530f49eb90968ff396db326c@o19455.ingest.sentry.io/842726"});var eEe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Jn.ZT)(r,n),r.prototype.handleError=function(t){if(t.error&&t.error.status&&!(400===t.error.status||403===t.error.status||404===t.error.status||409===t.error.status)&&n.prototype.handleError.call(this,t),t){var i=this.injector.get(Xn);t.error&&t.error.message?i.error(t.error.message):t.message?i.error(t.message):t.error&&i.error(t.error)}},r.\u0275fac=function(){var t;return function(o){return(t||(t=e.n5z(r)))(o||r)}}(),r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r}(function(){function n(r){this.injector=r}return n.prototype.extractError=function(r){return r&&r.ngOriginalError&&(r=r.ngOriginalError),"string"==typeof r||r instanceof Error?r:r instanceof Ku.UA?r.error instanceof Error?r.error:r.error instanceof ErrorEvent?r.error.message:"string"==typeof r.error?"Server returned code "+r.status+' with body "'+r.error+'"':r.message:null},n.prototype.handleError=function(r){var t=this.extractError(r)||"Handled unknown error";dW(t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(e.zs3))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}()),tEe=function(){function n(){}return n.prototype.transform=function(r,t){return r?t?(t=t.toLowerCase(),r.projectDatabase.data.filter(function(i){return i.filename.toLowerCase().includes(t)})):r:[]},n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"projectsfilter",type:n,pure:!0}),n}(),pEe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[un.uc,un.BQ],un.uc,un.BQ]}),n}(),gEe=function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}(),EEe=[kbe,l2,sj,Yae,uxe,zZ,Hn.lN,tse,tle,yue,cfe,eae,wq,Tde,Vse,Ase,Wbe,pi.LD,Tq,ade,Ole,pEe,Eo.Nh,function(){var n=function r(){(0,g.Z)(this,r)};return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[gEe,un.BQ],un.BQ]}),n}(),Qj,YTe],FW=function(){function n(r,t){r.events.subscribe(function(i){t.getStatisticsSettings()&&i instanceof rv&&(gtag("set","page",i.url),gtag("send","pageview"))})}return n.\u0275fac=function(t){return new(t||n)(e.LFG(xr),e.LFG(Tp.g))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),kEe=function(){function n(r){this.httpServer=r}return n.prototype.get=function(r){return this.httpServer.get(r,"/settings")},n.prototype.update=function(r,t){return this.httpServer.post(r,"/settings",t)},n.prototype.getSettingsForQemu=function(r){return this.httpServer.get(r,"/settings/qemu")},n.prototype.updateSettingsForQemu=function(r,t){return this.httpServer.put(r,"/settings/qemu",{enable_hardware_acceleration:t.enable_hardware_acceleration,require_hardware_acceleration:t.require_hardware_acceleration})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),MEe=function(){function n(r){this.httpServer=r}return n.prototype.getTemplates=function(r){return this.httpServer.get(r,"/templates")},n.prototype.getTemplate=function(r,t){return this.httpServer.get(r,"/templates/"+t)},n.prototype.addTemplate=function(r,t){return this.httpServer.post(r,"/templates",t)},n.prototype.saveTemplate=function(r,t){return this.httpServer.put(r,"/templates/"+t.template_id,t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(Qo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),AEe=function(){function n(r){this._googleAnalyticsService=r}return n.\u0275fac=function(t){return new(t||n)(e.LFG(FW))},n.\u0275mod=e.oAB({type:n,bootstrap:[vxe]}),n.\u0275inj=e.cJS({providers:[Tp.g,{provide:e.qLn,useClass:eEe},sre,Bz,ud.Y,NS,Br,uy,Wr,hc,xs,Qo.wh,j2,JL,Xn,Xf,jL,rh.F,wa.G,Sxe,Rz,dc,Wj,ws,Qo.gc,c2,Sp,GS,kEe,bp,C2,lc,y2,od,dv,jq,qq,Vq,v2,g2,dL,S2,eh,b2,pL,uv,LS,pv,sL,q2.p,QL,yy,XL,Uz,kz,N2,UL,Ou,ez,uc.X,MEe,HL,QS,Mz,wj,sc.f,FW,cd,$L,Yz,U.Dx,hz,Hz],imports:[[U.b2,Ku.JF,hxe,re.u5,re.UX,ys.PW,QE,Cxe,Zre,Ore,V3,vk.ym,k4,VE,Rre,EEe,Ere.forRoot(),so.U8]]}),n}();e.B6R(Fz,[An,re._Y,re.JL,re.F,Hn.KE,lr,re.Fj,re.JJ,re.On,Jl,XS,dl,cl,pl,mz,ul,fl,oy,kt.O5,Ja,sr,Ql,Xl,Kl,$l],[tEe]),(0,e.G48)(),U.q6().bootstrapModule(AEe).then(function(n){var r=n.injector.get(e.z2F);(0,U.HJ)(r.components[0])}).catch(function(n){return console.log(n)})},50988:function(ue,q,f){"use strict";function B(U,V){(null==V||V>U.length)&&(V=U.length);for(var Z=0,w=new Array(V);Z<V;Z++)w[Z]=U[Z];return w}f.d(q,{Z:function(){return B}})},10061:function(ue,q,f){"use strict";function B(U){if(Array.isArray(U))return U}f.d(q,{Z:function(){return B}})},88009:function(ue,q,f){"use strict";function B(U){if(void 0===U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}f.d(q,{Z:function(){return B}})},18967:function(ue,q,f){"use strict";function B(U,V){if(!(U instanceof V))throw new TypeError("Cannot call a class as a function")}f.d(q,{Z:function(){return B}})},99740:function(ue,q,f){"use strict";f.d(q,{Z:function(){return V}});var B=f(35470),U=f(1854);function V(Z,w,N){return(V=(0,U.Z)()?Reflect.construct:function(_,I,D){var A=[null];A.push.apply(A,I);var v=new(Function.bind.apply(_,A));return D&&(0,B.Z)(v,D.prototype),v}).apply(null,arguments)}},14105:function(ue,q,f){"use strict";function B(V,Z){for(var w=0;w<Z.length;w++){var N=Z[w];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(V,N.key,N)}}function U(V,Z,w){return Z&&B(V.prototype,Z),w&&B(V,w),V}f.d(q,{Z:function(){return U}})},36683:function(ue,q,f){"use strict";f.d(q,{Z:function(){return U}});var B=f(9087);function U(V,Z){var w="undefined"!=typeof Symbol&&V[Symbol.iterator]||V["@@iterator"];if(!w){if(Array.isArray(V)||(w=(0,B.Z)(V))||Z&&V&&"number"==typeof V.length){w&&(V=w);var N=0,b=function(){};return{s:b,n:function(){return N>=V.length?{done:!0}:{done:!1,value:V[N++]}},e:function(S){throw S},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var D,_=!0,I=!1;return{s:function(){w=w.call(V)},n:function(){var S=w.next();return _=S.done,S},e:function(S){I=!0,D=S},f:function(){try{!_&&null!=w.return&&w.return()}finally{if(I)throw D}}}}},97154:function(ue,q,f){"use strict";f.d(q,{Z:function(){return Z}});var B=f(89200),U=f(1854),V=f(28318);function Z(w){var N=(0,U.Z)();return function(){var I,_=(0,B.Z)(w);if(N){var D=(0,B.Z)(this).constructor;I=Reflect.construct(_,arguments,D)}else I=_.apply(this,arguments);return(0,V.Z)(this,I)}}},42515:function(ue,q,f){"use strict";function B(U,V,Z){return V in U?Object.defineProperty(U,V,{value:Z,enumerable:!0,configurable:!0,writable:!0}):U[V]=Z,U}f.d(q,{Z:function(){return B}})},13920:function(ue,q,f){"use strict";f.d(q,{Z:function(){return V}});var B=f(89200);function V(Z,w,N){return(V="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(_,I,D){var A=function(Z,w){for(;!Object.prototype.hasOwnProperty.call(Z,w)&&null!==(Z=(0,B.Z)(Z)););return Z}(_,I);if(A){var S=Object.getOwnPropertyDescriptor(A,I);return S.get?S.get.call(D):S.value}})(Z,w,N||Z)}},89200:function(ue,q,f){"use strict";function B(U){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)})(U)}f.d(q,{Z:function(){return B}})},10509:function(ue,q,f){"use strict";f.d(q,{Z:function(){return U}});var B=f(35470);function U(V,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(Z&&Z.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Z&&(0,B.Z)(V,Z)}},1854:function(ue,q,f){"use strict";function B(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(U){return!1}}f.d(q,{Z:function(){return B}})},16373:function(ue,q,f){"use strict";function B(U){if("undefined"!=typeof Symbol&&null!=U[Symbol.iterator]||null!=U["@@iterator"])return Array.from(U)}f.d(q,{Z:function(){return B}})},12486:function(ue,q,f){"use strict";function B(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}f.d(q,{Z:function(){return B}})},28318:function(ue,q,f){"use strict";function B(Z){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(Z)}f.d(q,{Z:function(){return V}});var U=f(88009);function V(Z,w){return!w||"object"!==B(w)&&"function"!=typeof w?(0,U.Z)(Z):w}},35470:function(ue,q,f){"use strict";function B(U,V){return(B=Object.setPrototypeOf||function(w,N){return w.__proto__=N,w})(U,V)}f.d(q,{Z:function(){return B}})},71955:function(ue,q,f){"use strict";f.d(q,{Z:function(){return w}});var B=f(10061),V=f(9087),Z=f(12486);function w(N,b){return(0,B.Z)(N)||function(N,b){var _=null==N?null:"undefined"!=typeof Symbol&&N[Symbol.iterator]||N["@@iterator"];if(null!=_){var S,v,I=[],D=!0,A=!1;try{for(_=_.call(N);!(D=(S=_.next()).done)&&(I.push(S.value),!b||I.length!==b);D=!0);}catch(g){A=!0,v=g}finally{try{!D&&null!=_.return&&_.return()}finally{if(A)throw v}}return I}}(N,b)||(0,V.Z)(N,b)||(0,Z.Z)()}},99890:function(ue,q,f){"use strict";f.d(q,{Z:function(){return w}});var B=f(10061),U=f(16373),V=f(9087),Z=f(12486);function w(N){return(0,B.Z)(N)||(0,U.Z)(N)||(0,V.Z)(N)||(0,Z.Z)()}},62467:function(ue,q,f){"use strict";f.d(q,{Z:function(){return N}});var B=f(50988),V=f(16373),Z=f(9087);function N(b){return function(b){if(Array.isArray(b))return(0,B.Z)(b)}(b)||(0,V.Z)(b)||(0,Z.Z)(b)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},9087:function(ue,q,f){"use strict";f.d(q,{Z:function(){return U}});var B=f(50988);function U(V,Z){if(V){if("string"==typeof V)return(0,B.Z)(V,Z);var w=Object.prototype.toString.call(V).slice(8,-1);if("Object"===w&&V.constructor&&(w=V.constructor.name),"Map"===w||"Set"===w)return Array.from(V);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return(0,B.Z)(V,Z)}}},44900:function(ue){"use strict";ue.exports=JSON.parse('{"atrules":{"charset":{"prelude":"<string>"},"font-face":{"descriptors":{"unicode-range":{"comment":"replaces <unicode-range>, an old production name","syntax":"<urange>#"}}}},"properties":{"-moz-background-clip":{"comment":"deprecated syntax in old Firefox, https://developer.mozilla.org/en/docs/Web/CSS/background-clip","syntax":"padding | border"},"-moz-border-radius-bottomleft":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius","syntax":"<\'border-bottom-left-radius\'>"},"-moz-border-radius-bottomright":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius","syntax":"<\'border-bottom-right-radius\'>"},"-moz-border-radius-topleft":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius","syntax":"<\'border-top-left-radius\'>"},"-moz-border-radius-topright":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius","syntax":"<\'border-bottom-right-radius\'>"},"-moz-control-character-visibility":{"comment":"firefox specific keywords, https://bugzilla.mozilla.org/show_bug.cgi?id=947588","syntax":"visible | hidden"},"-moz-osx-font-smoothing":{"comment":"misssed old syntax https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth","syntax":"auto | grayscale"},"-moz-user-select":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/user-select","syntax":"none | text | all | -moz-none"},"-ms-flex-align":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align","syntax":"start | end | center | baseline | stretch"},"-ms-flex-item-align":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align","syntax":"auto | start | end | center | baseline | stretch"},"-ms-flex-line-pack":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-line-pack","syntax":"start | end | center | justify | distribute | stretch"},"-ms-flex-negative":{"comment":"misssed old syntax implemented in IE; TODO: find references for comfirmation","syntax":"<\'flex-shrink\'>"},"-ms-flex-pack":{"comment":"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-pack","syntax":"start | end | center | justify | distribute"},"-ms-flex-order":{"comment":"misssed old syntax implemented in IE; https://msdn.microsoft.com/en-us/library/jj127303(v=vs.85).aspx","syntax":"<integer>"},"-ms-flex-positive":{"comment":"misssed old syntax implemented in IE; TODO: find references for comfirmation","syntax":"<\'flex-grow\'>"},"-ms-flex-preferred-size":{"comment":"misssed old syntax implemented in IE; TODO: find references for comfirmation","syntax":"<\'flex-basis\'>"},"-ms-interpolation-mode":{"comment":"https://msdn.microsoft.com/en-us/library/ff521095(v=vs.85).aspx","syntax":"nearest-neighbor | bicubic"},"-ms-grid-column-align":{"comment":"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466338.aspx","syntax":"start | end | center | stretch"},"-ms-grid-row-align":{"comment":"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466348.aspx","syntax":"start | end | center | stretch"},"-ms-hyphenate-limit-last":{"comment":"misssed old syntax implemented in IE; https://www.w3.org/TR/css-text-4/#hyphenate-line-limits","syntax":"none | always | column | page | spread"},"-webkit-appearance":{"comment":"webkit specific keywords","references":["http://css-infos.net/property/-webkit-appearance"],"syntax":"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button"},"-webkit-background-clip":{"comment":"https://developer.mozilla.org/en/docs/Web/CSS/background-clip","syntax":"[ <box> | border | padding | content | text ]#"},"-webkit-column-break-after":{"comment":"added, http://help.dottoro.com/lcrthhhv.php","syntax":"always | auto | avoid"},"-webkit-column-break-before":{"comment":"added, http://help.dottoro.com/lcxquvkf.php","syntax":"always | auto | avoid"},"-webkit-column-break-inside":{"comment":"added, http://help.dottoro.com/lclhnthl.php","syntax":"always | auto | avoid"},"-webkit-font-smoothing":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth","syntax":"auto | none | antialiased | subpixel-antialiased"},"-webkit-mask-box-image":{"comment":"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image","syntax":"[ <url> | <gradient> | none ] [ <length-percentage>{4} <-webkit-mask-box-repeat>{2} ]?"},"-webkit-print-color-adjust":{"comment":"missed","references":["https://developer.mozilla.org/en/docs/Web/CSS/-webkit-print-color-adjust"],"syntax":"economy | exact"},"-webkit-text-security":{"comment":"missed; http://help.dottoro.com/lcbkewgt.php","syntax":"none | circle | disc | square"},"-webkit-user-drag":{"comment":"missed; http://help.dottoro.com/lcbixvwm.php","syntax":"none | element | auto"},"-webkit-user-select":{"comment":"auto is supported by old webkit, https://developer.mozilla.org/en-US/docs/Web/CSS/user-select","syntax":"auto | none | text | all"},"alignment-baseline":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#AlignmentBaselineProperty"],"syntax":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical"},"baseline-shift":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#BaselineShiftProperty"],"syntax":"baseline | sub | super | <svg-length>"},"behavior":{"comment":"added old IE property https://msdn.microsoft.com/en-us/library/ms530723(v=vs.85).aspx","syntax":"<url>+"},"clip-rule":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/masking.html#ClipRuleProperty"],"syntax":"nonzero | evenodd"},"cue":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<\'cue-before\'> <\'cue-after\'>?"},"cue-after":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<url> <decibel>? | none"},"cue-before":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<url> <decibel>? | none"},"cursor":{"comment":"added legacy keywords: hand, -webkit-grab. -webkit-grabbing, -webkit-zoom-in, -webkit-zoom-out, -moz-grab, -moz-grabbing, -moz-zoom-in, -moz-zoom-out","references":["https://www.sitepoint.com/css3-cursor-styles/"],"syntax":"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing | hand | -webkit-grab | -webkit-grabbing | -webkit-zoom-in | -webkit-zoom-out | -moz-grab | -moz-grabbing | -moz-zoom-in | -moz-zoom-out ] ]"},"display":{"comment":"extended with -ms-flexbox","syntax":"| <-non-standard-display>"},"position":{"comment":"extended with -webkit-sticky","syntax":"| -webkit-sticky"},"dominant-baseline":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#DominantBaselineProperty"],"syntax":"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge"},"image-rendering":{"comment":"extended with <-non-standard-image-rendering>, added SVG keywords optimizeSpeed and optimizeQuality","references":["https://developer.mozilla.org/en/docs/Web/CSS/image-rendering","https://www.w3.org/TR/SVG/painting.html#ImageRenderingProperty"],"syntax":"| optimizeSpeed | optimizeQuality | <-non-standard-image-rendering>"},"fill":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#FillProperty"],"syntax":"<paint>"},"fill-opacity":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#FillProperty"],"syntax":"<number-zero-one>"},"fill-rule":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#FillProperty"],"syntax":"nonzero | evenodd"},"filter":{"comment":"extend with IE legacy syntaxes","syntax":"| <-ms-filter-function-list>"},"glyph-orientation-horizontal":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#GlyphOrientationHorizontalProperty"],"syntax":"<angle>"},"glyph-orientation-vertical":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#GlyphOrientationVerticalProperty"],"syntax":"<angle>"},"kerning":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#KerningProperty"],"syntax":"auto | <svg-length>"},"letter-spacing":{"comment":"fix syntax <length> -> <length-percentage>","references":["https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/letter-spacing"],"syntax":"normal | <length-percentage>"},"marker":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | <url>"},"marker-end":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | <url>"},"marker-mid":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | <url>"},"marker-start":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],"syntax":"none | <url>"},"max-width":{"comment":"fix auto -> none (https://github.com/mdn/data/pull/431); extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/max-width","syntax":"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},"width":{"comment":"per spec fit-content should be a function, however browsers are supporting it as a keyword (https://github.com/csstree/stylelint-validator/issues/29)","syntax":"| fit-content | -moz-fit-content | -webkit-fit-content"},"min-width":{"comment":"extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width","syntax":"auto | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},"overflow":{"comment":"extend by vendor keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow","syntax":"| <-non-standard-overflow>"},"pause":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<\'pause-before\'> <\'pause-after\'>?"},"pause-after":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<time> | none | x-weak | weak | medium | strong | x-strong"},"pause-before":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<time> | none | x-weak | weak | medium | strong | x-strong"},"rest":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<\'rest-before\'> <\'rest-after\'>?"},"rest-after":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<time> | none | x-weak | weak | medium | strong | x-strong"},"rest-before":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<time> | none | x-weak | weak | medium | strong | x-strong"},"shape-rendering":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#ShapeRenderingPropert"],"syntax":"auto | optimizeSpeed | crispEdges | geometricPrecision"},"src":{"comment":"added @font-face\'s src property https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src","syntax":"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#"},"speak":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"auto | none | normal"},"speak-as":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"normal | spell-out || digits || [ literal-punctuation | no-punctuation ]"},"stroke":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<paint>"},"stroke-dasharray":{"comment":"added SVG property; a list of comma and/or white space separated <length>s and <percentage>s","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"none | [ <svg-length>+ ]#"},"stroke-dashoffset":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<svg-length>"},"stroke-linecap":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"butt | round | square"},"stroke-linejoin":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"miter | round | bevel"},"stroke-miterlimit":{"comment":"added SVG property (<miterlimit> = <number-one-or-greater>) ","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<number-one-or-greater>"},"stroke-opacity":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<number-zero-one>"},"stroke-width":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],"syntax":"<svg-length>"},"text-anchor":{"comment":"added SVG property","references":["https://www.w3.org/TR/SVG/text.html#TextAlignmentProperties"],"syntax":"start | middle | end"},"unicode-bidi":{"comment":"added prefixed keywords https://developer.mozilla.org/en-US/docs/Web/CSS/unicode-bidi","syntax":"| -moz-isolate | -moz-isolate-override | -moz-plaintext | -webkit-isolate | -webkit-isolate-override | -webkit-plaintext"},"unicode-range":{"comment":"added missed property https://developer.mozilla.org/en-US/docs/Web/CSS/%40font-face/unicode-range","syntax":"<urange>#"},"voice-balance":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<number> | left | center | right | leftwards | rightwards"},"voice-duration":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"auto | <time>"},"voice-family":{"comment":"<name> -> <family-name>, https://www.w3.org/TR/css3-speech/#property-index","syntax":"[ [ <family-name> | <generic-voice> ] , ]* [ <family-name> | <generic-voice> ] | preserve"},"voice-pitch":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-range":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-rate":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"[ normal | x-slow | slow | medium | fast | x-fast ] || <percentage>"},"voice-stress":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"normal | strong | moderate | none | reduced"},"voice-volume":{"comment":"https://www.w3.org/TR/css3-speech/#property-index","syntax":"silent | [ [ x-soft | soft | medium | loud | x-loud ] || <decibel> ]"},"writing-mode":{"comment":"extend with SVG keywords","syntax":"| <svg-writing-mode>"}},"syntaxes":{"-legacy-gradient":{"comment":"added collection of legacy gradient syntaxes","syntax":"<-webkit-gradient()> | <-legacy-linear-gradient> | <-legacy-repeating-linear-gradient> | <-legacy-radial-gradient> | <-legacy-repeating-radial-gradient>"},"-legacy-linear-gradient":{"comment":"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient","syntax":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-repeating-linear-gradient":{"comment":"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient","syntax":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-linear-gradient-arguments":{"comment":"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient","syntax":"[ <angle> | <side-or-corner> ]? , <color-stop-list>"},"-legacy-radial-gradient":{"comment":"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients","syntax":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-repeating-radial-gradient":{"comment":"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients","syntax":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-radial-gradient-arguments":{"comment":"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients","syntax":"[ <position> , ]? [ [ [ <-legacy-radial-gradient-shape> || <-legacy-radial-gradient-size> ] | [ <length> | <percentage> ]{2} ] , ]? <color-stop-list>"},"-legacy-radial-gradient-size":{"comment":"before a standard it contains 2 extra keywords (`contain` and `cover`) https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltsize","syntax":"closest-side | closest-corner | farthest-side | farthest-corner | contain | cover"},"-legacy-radial-gradient-shape":{"comment":"define to double sure it doesn\'t extends in future https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltshape","syntax":"circle | ellipse"},"-non-standard-font":{"comment":"non standard fonts","references":["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],"syntax":"-apple-system-body | -apple-system-headline | -apple-system-subheadline | -apple-system-caption1 | -apple-system-caption2 | -apple-system-footnote | -apple-system-short-body | -apple-system-short-headline | -apple-system-short-subheadline | -apple-system-short-caption1 | -apple-system-short-footnote | -apple-system-tall-body"},"-non-standard-color":{"comment":"non standard colors","references":["http://cssdot.ru/%D0%A1%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D1%87%D0%BD%D0%B8%D0%BA_CSS/color-i305.html","https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Mozilla_Color_Preference_Extensions"],"syntax":"-moz-ButtonDefault | -moz-ButtonHoverFace | -moz-ButtonHoverText | -moz-CellHighlight | -moz-CellHighlightText | -moz-Combobox | -moz-ComboboxText | -moz-Dialog | -moz-DialogText | -moz-dragtargetzone | -moz-EvenTreeRow | -moz-Field | -moz-FieldText | -moz-html-CellHighlight | -moz-html-CellHighlightText | -moz-mac-accentdarkestshadow | -moz-mac-accentdarkshadow | -moz-mac-accentface | -moz-mac-accentlightesthighlight | -moz-mac-accentlightshadow | -moz-mac-accentregularhighlight | -moz-mac-accentregularshadow | -moz-mac-chrome-active | -moz-mac-chrome-inactive | -moz-mac-focusring | -moz-mac-menuselect | -moz-mac-menushadow | -moz-mac-menutextselect | -moz-MenuHover | -moz-MenuHoverText | -moz-MenuBarText | -moz-MenuBarHoverText | -moz-nativehyperlinktext | -moz-OddTreeRow | -moz-win-communicationstext | -moz-win-mediatext | -moz-activehyperlinktext | -moz-default-background-color | -moz-default-color | -moz-hyperlinktext | -moz-visitedhyperlinktext | -webkit-activelink | -webkit-focus-ring-color | -webkit-link | -webkit-text"},"-non-standard-image-rendering":{"comment":"non-standard keywords http://phrogz.net/tmp/canvas_image_zoom.html","syntax":"optimize-contrast | -moz-crisp-edges | -o-crisp-edges | -webkit-optimize-contrast"},"-non-standard-overflow":{"comment":"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow","syntax":"-moz-scrollbars-none | -moz-scrollbars-horizontal | -moz-scrollbars-vertical | -moz-hidden-unscrollable"},"-non-standard-width":{"comment":"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width","syntax":"fill-available | min-intrinsic | intrinsic | -moz-available | -moz-fit-content | -moz-min-content | -moz-max-content | -webkit-min-content | -webkit-max-content"},"-webkit-gradient()":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/ - TODO: simplify when after match algorithm improvement ( [, point, radius | , point] -> [, radius]? , point )","syntax":"-webkit-gradient( <-webkit-gradient-type>, <-webkit-gradient-point> [, <-webkit-gradient-point> | , <-webkit-gradient-radius>, <-webkit-gradient-point> ] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )"},"-webkit-gradient-color-stop":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/","syntax":"from( <color> ) | color-stop( [ <number-zero-one> | <percentage> ] , <color> ) | to( <color> )"},"-webkit-gradient-point":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/","syntax":"[ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]"},"-webkit-gradient-radius":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/","syntax":"<length> | <percentage>"},"-webkit-gradient-type":{"comment":"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/","syntax":"linear | radial"},"-webkit-mask-box-repeat":{"comment":"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image","syntax":"repeat | stretch | round"},"-webkit-mask-clip-style":{"comment":"missed; there is no enough information about `-webkit-mask-clip` property, but looks like all those keywords are working","syntax":"border | border-box | padding | padding-box | content | content-box | text"},"-ms-filter-function-list":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter","syntax":"<-ms-filter-function>+"},"-ms-filter-function":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter","syntax":"<-ms-filter-function-progid> | <-ms-filter-function-legacy>"},"-ms-filter-function-progid":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter","syntax":"\'progid:\' [ <ident-token> \'.\' ]* [ <ident-token> | <function-token> <any-value>? ) ]"},"-ms-filter-function-legacy":{"comment":"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter","syntax":"<ident-token> | <function-token> <any-value>? )"},"-ms-filter":{"syntax":"<string>"},"age":{"comment":"https://www.w3.org/TR/css3-speech/#voice-family","syntax":"child | young | old"},"attr-name":{"syntax":"<wq-name>"},"attr-fallback":{"syntax":"<any-value>"},"border-radius":{"comment":"missed, https://drafts.csswg.org/css-backgrounds-3/#the-border-radius","syntax":"<length-percentage>{1,2}"},"bottom":{"comment":"missed; not sure we should add it, but no others except `shape` is using it so it\'s ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect","syntax":"<length> | auto"},"content-list":{"comment":"missed -> https://drafts.csswg.org/css-content/#typedef-content-list (document-url, <target> and leader() is omitted util stabilization)","syntax":"[ <string> | contents | <image> | <quote> | <target> | <leader()> | <attr()> | counter( <ident>, <\'list-style-type\'>? ) ]+"},"element()":{"comment":"https://drafts.csswg.org/css-gcpm/#element-syntax & https://drafts.csswg.org/css-images-4/#element-notation","syntax":"element( <custom-ident> , [ first | start | last | first-except ]? ) | element( <id-selector> )"},"generic-voice":{"comment":"https://www.w3.org/TR/css3-speech/#voice-family","syntax":"[ <age>? <gender> <integer>? ]"},"gender":{"comment":"https://www.w3.org/TR/css3-speech/#voice-family","syntax":"male | female | neutral"},"generic-family":{"comment":"added -apple-system","references":["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],"syntax":"| -apple-system"},"gradient":{"comment":"added legacy syntaxes support","syntax":"| <-legacy-gradient>"},"left":{"comment":"missed; not sure we should add it, but no others except `shape` is using it so it\'s ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect","syntax":"<length> | auto"},"mask-image":{"comment":"missed; https://drafts.fxtf.org/css-masking-1/#the-mask-image","syntax":"<mask-reference>#"},"name-repeat":{"comment":"missed, and looks like obsolete, keep it as is since other property syntaxes should be changed too; https://www.w3.org/TR/2015/WD-css-grid-1-20150917/#typedef-name-repeat","syntax":"repeat( [ <positive-integer> | auto-fill ], <line-names>+)"},"named-color":{"comment":"added non standard color names","syntax":"| <-non-standard-color>"},"paint":{"comment":"used by SVG https://www.w3.org/TR/SVG/painting.html#SpecifyingPaint","syntax":"none | <color> | <url> [ none | <color> ]? | context-fill | context-stroke"},"page-size":{"comment":"https://www.w3.org/TR/css-page-3/#typedef-page-size-page-size","syntax":"A5 | A4 | A3 | B5 | B4 | JIS-B5 | JIS-B4 | letter | legal | ledger"},"ratio":{"comment":"missed, https://drafts.csswg.org/mediaqueries-4/#typedef-ratio","syntax":"<integer> / <integer>"},"right":{"comment":"missed; not sure we should add it, but no others except `shape` is using it so it\'s ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect","syntax":"<length> | auto"},"shape":{"comment":"missed spaces in function body and add backwards compatible syntax","syntax":"rect( <top>, <right>, <bottom>, <left> ) | rect( <top> <right> <bottom> <left> )"},"svg-length":{"comment":"All coordinates and lengths in SVG can be specified with or without a unit identifier","references":["https://www.w3.org/TR/SVG11/coords.html#Units"],"syntax":"<percentage> | <length> | <number>"},"svg-writing-mode":{"comment":"SVG specific keywords (deprecated for CSS)","references":["https://developer.mozilla.org/en/docs/Web/CSS/writing-mode","https://www.w3.org/TR/SVG/text.html#WritingModeProperty"],"syntax":"lr-tb | rl-tb | tb-rl | lr | rl | tb"},"top":{"comment":"missed; not sure we should add it, but no others except `shape` is using it so it\'s ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect","syntax":"<length> | auto"},"track-group":{"comment":"used by old grid-columns and grid-rows syntax v0","syntax":"\'(\' [ <string>* <track-minmax> <string>* ]+ \')\' [ \'[\' <positive-integer> \']\' ]? | <track-minmax>"},"track-list-v0":{"comment":"used by old grid-columns and grid-rows syntax v0","syntax":"[ <string>* <track-group> <string>* ]+ | none"},"track-minmax":{"comment":"used by old grid-columns and grid-rows syntax v0","syntax":"minmax( <track-breadth> , <track-breadth> ) | auto | <track-breadth> | fit-content"},"x":{"comment":"missed; not sure we should add it, but no others except `cursor` is using it so it\'s ok for now; https://drafts.csswg.org/css-ui-3/#cursor","syntax":"<number>"},"y":{"comment":"missed; not sure we should add it, but no others except `cursor` is using so it\'s ok for now; https://drafts.csswg.org/css-ui-3/#cursor","syntax":"<number>"},"declaration":{"comment":"missed, restored by https://drafts.csswg.org/css-syntax","syntax":"<ident-token> : <declaration-value>? [ \'!\' important ]?"},"declaration-list":{"comment":"missed, restored by https://drafts.csswg.org/css-syntax","syntax":"[ <declaration>? \';\' ]* <declaration>?"},"url":{"comment":"https://drafts.csswg.org/css-values-4/#urls","syntax":"url( <string> <url-modifier>* ) | <url-token>"},"url-modifier":{"comment":"https://drafts.csswg.org/css-values-4/#typedef-url-modifier","syntax":"<ident> | <function-token> <any-value> )"},"number-zero-one":{"syntax":"<number [0,1]>"},"number-one-or-greater":{"syntax":"<number [1,\u221e]>"},"positive-integer":{"syntax":"<integer [0,\u221e]>"},"-non-standard-display":{"syntax":"-ms-inline-flexbox | -ms-grid | -ms-inline-grid | -webkit-flex | -webkit-inline-flex | -webkit-box | -webkit-inline-box | -moz-inline-stack | -moz-box | -moz-inline-box"}}}')},37151:function(ue){"use strict";ue.exports={version:"1.1.3"}},94518:function(ue){"use strict";ue.exports=JSON.parse('{"@charset":{"syntax":"@charset \\"<charset>\\";","groups":["CSS Charsets"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@charset"},"@counter-style":{"syntax":"@counter-style <counter-style-name> {\\n [ system: <counter-system>; ] ||\\n [ symbols: <counter-symbols>; ] ||\\n [ additive-symbols: <additive-symbols>; ] ||\\n [ negative: <negative-symbol>; ] ||\\n [ prefix: <prefix>; ] ||\\n [ suffix: <suffix>; ] ||\\n [ range: <range>; ] ||\\n [ pad: <padding>; ] ||\\n [ speak-as: <speak-as>; ] ||\\n [ fallback: <counter-style-name>; ]\\n}","interfaces":["CSSCounterStyleRule"],"groups":["CSS Counter Styles"],"descriptors":{"additive-symbols":{"syntax":"[ <integer> && <symbol> ]#","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"fallback":{"syntax":"<counter-style-name>","media":"all","initial":"decimal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"negative":{"syntax":"<symbol> <symbol>?","media":"all","initial":"\\"-\\" hyphen-minus","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"pad":{"syntax":"<integer> && <symbol>","media":"all","initial":"0 \\"\\"","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"prefix":{"syntax":"<symbol>","media":"all","initial":"\\"\\"","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"range":{"syntax":"[ [ <integer> | infinite ]{2} ]# | auto","media":"all","initial":"auto","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"speak-as":{"syntax":"auto | bullets | numbers | words | spell-out | <counter-style-name>","media":"all","initial":"auto","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"suffix":{"syntax":"<symbol>","media":"all","initial":"\\". \\"","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"symbols":{"syntax":"<symbol>+","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"system":{"syntax":"cyclic | numeric | alphabetic | symbolic | additive | [ fixed <integer>? ] | [ extends <counter-style-name> ]","media":"all","initial":"symbolic","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@counter-style"},"@document":{"syntax":"@document [ <url> | url-prefix(<string>) | domain(<string>) | media-document(<string>) | regexp(<string>) ]# {\\n <group-rule-body>\\n}","interfaces":["CSSGroupingRule","CSSConditionRule"],"groups":["CSS Conditional Rules"],"status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@document"},"@font-face":{"syntax":"@font-face {\\n [ font-family: <family-name>; ] ||\\n [ src: <src>; ] ||\\n [ unicode-range: <unicode-range>; ] ||\\n [ font-variant: <font-variant>; ] ||\\n [ font-feature-settings: <font-feature-settings>; ] ||\\n [ font-variation-settings: <font-variation-settings>; ] ||\\n [ font-stretch: <font-stretch>; ] ||\\n [ font-weight: <font-weight>; ] ||\\n [ font-style: <font-style>; ]\\n}","interfaces":["CSSFontFaceRule"],"groups":["CSS Fonts"],"descriptors":{"font-display":{"syntax":"[ auto | block | swap | fallback | optional ]","media":"visual","percentages":"no","initial":"auto","computed":"asSpecified","order":"uniqueOrder","status":"experimental"},"font-family":{"syntax":"<family-name>","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-feature-settings":{"syntax":"normal | <feature-tag-value>#","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"font-variation-settings":{"syntax":"normal | [ <string> <number> ]#","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"font-stretch":{"syntax":"<font-stretch-absolute>{1,2}","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-style":{"syntax":"normal | italic | oblique <angle>{0,2}","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-weight":{"syntax":"<font-weight-absolute>{1,2}","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"font-variant":{"syntax":"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic(<feature-value-name>) || historical-forms || styleset(<feature-value-name>#) || character-variant(<feature-value-name>#) || swash(<feature-value-name>) || ornaments(<feature-value-name>) || annotation(<feature-value-name>) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]","media":"all","initial":"normal","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"src":{"syntax":"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"unicode-range":{"syntax":"<unicode-range>#","media":"all","initial":"U+0-10FFFF","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@font-face"},"@font-feature-values":{"syntax":"@font-feature-values <family-name># {\\n <feature-value-block-list>\\n}","interfaces":["CSSFontFeatureValuesRule"],"groups":["CSS Fonts"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"},"@import":{"syntax":"@import [ <string> | <url> ] [ <media-query-list> ]?;","groups":["Media Queries"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@import"},"@keyframes":{"syntax":"@keyframes <keyframes-name> {\\n <keyframe-block-list>\\n}","interfaces":["CSSKeyframeRule","CSSKeyframesRule"],"groups":["CSS Animations"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@keyframes"},"@media":{"syntax":"@media <media-query-list> {\\n <group-rule-body>\\n}","interfaces":["CSSGroupingRule","CSSConditionRule","CSSMediaRule","CSSCustomMediaRule"],"groups":["CSS Conditional Rules","Media Queries"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@media"},"@namespace":{"syntax":"@namespace <namespace-prefix>? [ <string> | <url> ];","groups":["CSS Namespaces"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@namespace"},"@page":{"syntax":"@page <page-selector-list> {\\n <page-body>\\n}","interfaces":["CSSPageRule"],"groups":["CSS Pages"],"descriptors":{"bleed":{"syntax":"auto | <length>","media":["visual","paged"],"initial":"auto","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"marks":{"syntax":"none | [ crop || cross ]","media":["visual","paged"],"initial":"none","percentages":"no","computed":"asSpecified","order":"orderOfAppearance","status":"standard"},"size":{"syntax":"<length>{1,2} | auto | [ <page-size> || [ portrait | landscape ] ]","media":["visual","paged"],"initial":"auto","percentages":"no","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"orderOfAppearance","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@page"},"@property":{"syntax":"@property <custom-property-name> {\\n <declaration-list>\\n}","interfaces":["CSS","CSSPropertyRule"],"groups":["CSS Houdini"],"descriptors":{"syntax":{"syntax":"<string>","media":"all","percentages":"no","initial":"n/a (required)","computed":"asSpecified","order":"uniqueOrder","status":"experimental"},"inherits":{"syntax":"true | false","media":"all","percentages":"no","initial":"auto","computed":"asSpecified","order":"uniqueOrder","status":"experimental"},"initial-value":{"syntax":"<string>","media":"all","initial":"n/a (required)","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"experimental"}},"status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@property"},"@supports":{"syntax":"@supports <supports-condition> {\\n <group-rule-body>\\n}","interfaces":["CSSGroupingRule","CSSConditionRule","CSSSupportsRule"],"groups":["CSS Conditional Rules"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@supports"},"@viewport":{"syntax":"@viewport {\\n <group-rule-body>\\n}","interfaces":["CSSViewportRule"],"groups":["CSS Device Adaptation"],"descriptors":{"height":{"syntax":"<viewport-length>{1,2}","media":["visual","continuous"],"initial":["min-height","max-height"],"percentages":["min-height","max-height"],"computed":["min-height","max-height"],"order":"orderOfAppearance","status":"standard"},"max-height":{"syntax":"<viewport-length>","media":["visual","continuous"],"initial":"auto","percentages":"referToHeightOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"max-width":{"syntax":"<viewport-length>","media":["visual","continuous"],"initial":"auto","percentages":"referToWidthOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"max-zoom":{"syntax":"auto | <number> | <percentage>","media":["visual","continuous"],"initial":"auto","percentages":"the zoom factor itself","computed":"autoNonNegativeOrPercentage","order":"uniqueOrder","status":"standard"},"min-height":{"syntax":"<viewport-length>","media":["visual","continuous"],"initial":"auto","percentages":"referToHeightOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"min-width":{"syntax":"<viewport-length>","media":["visual","continuous"],"initial":"auto","percentages":"referToWidthOfInitialViewport","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard"},"min-zoom":{"syntax":"auto | <number> | <percentage>","media":["visual","continuous"],"initial":"auto","percentages":"the zoom factor itself","computed":"autoNonNegativeOrPercentage","order":"uniqueOrder","status":"standard"},"orientation":{"syntax":"auto | portrait | landscape","media":["visual","continuous"],"initial":"auto","percentages":"referToSizeOfBoundingBox","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"user-zoom":{"syntax":"zoom | fixed","media":["visual","continuous"],"initial":"zoom","percentages":"referToSizeOfBoundingBox","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"viewport-fit":{"syntax":"auto | contain | cover","media":["visual","continuous"],"initial":"auto","percentages":"no","computed":"asSpecified","order":"uniqueOrder","status":"standard"},"width":{"syntax":"<viewport-length>{1,2}","media":["visual","continuous"],"initial":["min-width","max-width"],"percentages":["min-width","max-width"],"computed":["min-width","max-width"],"order":"orderOfAppearance","status":"standard"},"zoom":{"syntax":"auto | <number> | <percentage>","media":["visual","continuous"],"initial":"auto","percentages":"the zoom factor itself","computed":"autoNonNegativeOrPercentage","order":"uniqueOrder","status":"standard"}},"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/@viewport"}}')},23050:function(ue){"use strict";ue.exports=JSON.parse('{"--*":{"syntax":"<declaration-value>","media":"all","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Variables"],"initial":"seeProse","appliesto":"allElements","computed":"asSpecifiedWithVarsSubstituted","order":"perGrammar","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/--*"},"-ms-accelerator":{"syntax":"false | true","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"false","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-accelerator"},"-ms-block-progression":{"syntax":"tb | rl | bt | lr","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"tb","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-block-progression"},"-ms-content-zoom-chaining":{"syntax":"none | chained","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-chaining"},"-ms-content-zooming":{"syntax":"none | zoom","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"zoomForTheTopLevelNoneForTheRest","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zooming"},"-ms-content-zoom-limit":{"syntax":"<\'-ms-content-zoom-limit-min\'> <\'-ms-content-zoom-limit-max\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],"groups":["Microsoft Extensions"],"initial":["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-content-zoom-limit-max","-ms-content-zoom-limit-min"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit"},"-ms-content-zoom-limit-max":{"syntax":"<percentage>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"maxZoomFactor","groups":["Microsoft Extensions"],"initial":"400%","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit-max"},"-ms-content-zoom-limit-min":{"syntax":"<percentage>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"minZoomFactor","groups":["Microsoft Extensions"],"initial":"100%","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-limit-min"},"-ms-content-zoom-snap":{"syntax":"<\'-ms-content-zoom-snap-type\'> || <\'-ms-content-zoom-snap-points\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-content-zoom-snap-type","-ms-content-zoom-snap-points"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-content-zoom-snap-type","-ms-content-zoom-snap-points"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap"},"-ms-content-zoom-snap-points":{"syntax":"snapInterval( <percentage>, <percentage> ) | snapList( <percentage># )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"snapInterval(0%, 100%)","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap-points"},"-ms-content-zoom-snap-type":{"syntax":"none | proximity | mandatory","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-content-zoom-snap-type"},"-ms-filter":{"syntax":"<string>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"\\"\\"","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-filter"},"-ms-flow-from":{"syntax":"[ none | <custom-ident> ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-flow-from"},"-ms-flow-into":{"syntax":"[ none | <custom-ident> ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"iframeElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-flow-into"},"-ms-grid-columns":{"syntax":"none | <track-list> | <auto-track-list>","media":"visual","inherited":false,"animationType":"simpleListOfLpcDifferenceLpc","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-grid-columns"},"-ms-grid-rows":{"syntax":"none | <track-list> | <auto-track-list>","media":"visual","inherited":false,"animationType":"simpleListOfLpcDifferenceLpc","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-grid-rows"},"-ms-high-contrast-adjust":{"syntax":"auto | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-high-contrast-adjust"},"-ms-hyphenate-limit-chars":{"syntax":"auto | <integer>{1,3}","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-chars"},"-ms-hyphenate-limit-lines":{"syntax":"no-limit | <integer>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"no-limit","appliesto":"blockContainerElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-lines"},"-ms-hyphenate-limit-zone":{"syntax":"<percentage> | <length>","media":"visual","inherited":true,"animationType":"discrete","percentages":"referToLineBoxWidth","groups":["Microsoft Extensions"],"initial":"0","appliesto":"blockContainerElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-hyphenate-limit-zone"},"-ms-ime-align":{"syntax":"auto | after","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-ime-align"},"-ms-overflow-style":{"syntax":"auto | none | scrollbar | -ms-autohiding-scrollbar","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-overflow-style"},"-ms-scrollbar-3dlight-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"dependsOnUserAgent","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-3dlight-color"},"-ms-scrollbar-arrow-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ButtonText","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-arrow-color"},"-ms-scrollbar-base-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"dependsOnUserAgent","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-base-color"},"-ms-scrollbar-darkshadow-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDDarkShadow","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-darkshadow-color"},"-ms-scrollbar-face-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDFace","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-face-color"},"-ms-scrollbar-highlight-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDHighlight","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-highlight-color"},"-ms-scrollbar-shadow-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"ThreeDDarkShadow","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-shadow-color"},"-ms-scrollbar-track-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"Scrollbar","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scrollbar-track-color"},"-ms-scroll-chaining":{"syntax":"chained | none","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"chained","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-chaining"},"-ms-scroll-limit":{"syntax":"<\'-ms-scroll-limit-x-min\'> <\'-ms-scroll-limit-y-min\'> <\'-ms-scroll-limit-x-max\'> <\'-ms-scroll-limit-y-max\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-scroll-limit-x-min","-ms-scroll-limit-y-min","-ms-scroll-limit-x-max","-ms-scroll-limit-y-max"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-scroll-limit-x-min","-ms-scroll-limit-y-min","-ms-scroll-limit-x-max","-ms-scroll-limit-y-max"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit"},"-ms-scroll-limit-x-max":{"syntax":"auto | <length>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-x-max"},"-ms-scroll-limit-x-min":{"syntax":"<length>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"0","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-x-min"},"-ms-scroll-limit-y-max":{"syntax":"auto | <length>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-y-max"},"-ms-scroll-limit-y-min":{"syntax":"<length>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"0","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-limit-y-min"},"-ms-scroll-rails":{"syntax":"none | railed","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"railed","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-rails"},"-ms-scroll-snap-points-x":{"syntax":"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"snapInterval(0px, 100%)","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-points-x"},"-ms-scroll-snap-points-y":{"syntax":"snapInterval( <length-percentage>, <length-percentage> ) | snapList( <length-percentage># )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"snapInterval(0px, 100%)","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-points-y"},"-ms-scroll-snap-type":{"syntax":"none | proximity | mandatory","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-type"},"-ms-scroll-snap-x":{"syntax":"<\'-ms-scroll-snap-type\'> <\'-ms-scroll-snap-points-x\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-scroll-snap-type","-ms-scroll-snap-points-x"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-scroll-snap-type","-ms-scroll-snap-points-x"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-x"},"-ms-scroll-snap-y":{"syntax":"<\'-ms-scroll-snap-type\'> <\'-ms-scroll-snap-points-y\'>","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":["-ms-scroll-snap-type","-ms-scroll-snap-points-y"],"appliesto":"nonReplacedBlockAndInlineBlockElements","computed":["-ms-scroll-snap-type","-ms-scroll-snap-points-y"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-snap-y"},"-ms-scroll-translation":{"syntax":"none | vertical-to-horizontal","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-scroll-translation"},"-ms-text-autospace":{"syntax":"none | ideograph-alpha | ideograph-numeric | ideograph-parenthesis | ideograph-space","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-text-autospace"},"-ms-touch-select":{"syntax":"grippers | none","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"grippers","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-touch-select"},"-ms-user-select":{"syntax":"none | element | text","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"text","appliesto":"nonReplacedElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-user-select"},"-ms-wrap-flow":{"syntax":"auto | both | start | end | maximum | clear","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"auto","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-flow"},"-ms-wrap-margin":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"0","appliesto":"exclusionElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-margin"},"-ms-wrap-through":{"syntax":"wrap | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Microsoft Extensions"],"initial":"wrap","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-ms-wrap-through"},"-moz-appearance":{"syntax":"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"noneButOverriddenInUserAgentCSS","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/appearance"},"-moz-binding":{"syntax":"<url> | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElementsExceptGeneratedContentOrPseudoElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-binding"},"-moz-border-bottom-colors":{"syntax":"<color>+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-bottom-colors"},"-moz-border-left-colors":{"syntax":"<color>+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-left-colors"},"-moz-border-right-colors":{"syntax":"<color>+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-right-colors"},"-moz-border-top-colors":{"syntax":"<color>+ | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-border-top-colors"},"-moz-context-properties":{"syntax":"none | [ fill | fill-opacity | stroke | stroke-opacity ]#","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElementsThatCanReferenceImages","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-context-properties"},"-moz-float-edge":{"syntax":"border-box | content-box | margin-box | padding-box","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"content-box","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-float-edge"},"-moz-force-broken-image-icon":{"syntax":"<integer [0,1]>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"0","appliesto":"images","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon"},"-moz-image-region":{"syntax":"<shape> | auto","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"auto","appliesto":"xulImageElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-image-region"},"-moz-orient":{"syntax":"inline | block | horizontal | vertical","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"inline","appliesto":"anyElementEffectOnProgressAndMeter","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-orient"},"-moz-outline-radius":{"syntax":"<outline-radius>{1,4} [ / <outline-radius>{1,4} ]?","media":"visual","inherited":false,"animationType":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"percentages":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"groups":["Mozilla Extensions"],"initial":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"appliesto":"allElements","computed":["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius"},"-moz-outline-radius-bottomleft":{"syntax":"<outline-radius>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomleft"},"-moz-outline-radius-bottomright":{"syntax":"<outline-radius>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-bottomright"},"-moz-outline-radius-topleft":{"syntax":"<outline-radius>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topleft"},"-moz-outline-radius-topright":{"syntax":"<outline-radius>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["Mozilla Extensions"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-outline-radius-topright"},"-moz-stack-sizing":{"syntax":"ignore | stretch-to-fit","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"stretch-to-fit","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-stack-sizing"},"-moz-text-blink":{"syntax":"none | blink","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-text-blink"},"-moz-user-focus":{"syntax":"ignore | normal | select-after | select-before | select-menu | select-same | select-all | none","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-user-focus"},"-moz-user-input":{"syntax":"auto | none | enabled | disabled","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-user-input"},"-moz-user-modify":{"syntax":"read-only | read-write | write-only","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"read-only","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-user-modify"},"-moz-window-dragging":{"syntax":"drag | no-drag","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"drag","appliesto":"allElementsCreatingNativeWindows","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-window-dragging"},"-moz-window-shadow":{"syntax":"default | menu | tooltip | sheet | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"default","appliesto":"allElementsCreatingNativeWindows","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-moz-window-shadow"},"-webkit-appearance":{"syntax":"none | button | button-bevel | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"noneButOverriddenInUserAgentCSS","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/appearance"},"-webkit-border-before":{"syntax":"<\'border-width\'> || <\'border-style\'> || <\'color\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":["-webkit-border-before-width"],"groups":["WebKit Extensions"],"initial":["border-width","border-style","color"],"appliesto":"allElements","computed":["border-width","border-style","color"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-border-before"},"-webkit-border-before-color":{"syntax":"<\'color\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"nonstandard"},"-webkit-border-before-style":{"syntax":"<\'border-style\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard"},"-webkit-border-before-width":{"syntax":"<\'border-width\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["WebKit Extensions"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"nonstandard"},"-webkit-box-reflect":{"syntax":"[ above | below | right | left ]? <length>? <image>?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-box-reflect"},"-webkit-line-clamp":{"syntax":"none | <integer>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["WebKit Extensions","CSS Overflow"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp"},"-webkit-mask":{"syntax":"[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <box> | border | padding | content | text ] || [ <box> | border | padding | content ] ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":["-webkit-mask-image","-webkit-mask-repeat","-webkit-mask-attachment","-webkit-mask-position","-webkit-mask-origin","-webkit-mask-clip"],"appliesto":"allElements","computed":["-webkit-mask-image","-webkit-mask-repeat","-webkit-mask-attachment","-webkit-mask-position","-webkit-mask-origin","-webkit-mask-clip"],"order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask"},"-webkit-mask-attachment":{"syntax":"<attachment>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"scroll","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-attachment"},"-webkit-mask-clip":{"syntax":"[ <box> | border | padding | content | text ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"border","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-clip"},"-webkit-mask-composite":{"syntax":"<composite-style>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"source-over","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-composite"},"-webkit-mask-image":{"syntax":"<mask-reference>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"none","appliesto":"allElements","computed":"absoluteURIOrNone","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-image"},"-webkit-mask-origin":{"syntax":"[ <box> | border | padding | content ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"padding","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-origin"},"-webkit-mask-position":{"syntax":"<position>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfElement","groups":["WebKit Extensions"],"initial":"0% 0%","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-position"},"-webkit-mask-position-x":{"syntax":"[ <length-percentage> | left | center | right ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfElement","groups":["WebKit Extensions"],"initial":"0%","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-x"},"-webkit-mask-position-y":{"syntax":"[ <length-percentage> | top | center | bottom ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfElement","groups":["WebKit Extensions"],"initial":"0%","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-position-y"},"-webkit-mask-repeat":{"syntax":"<repeat-style>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"repeat","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-repeat"},"-webkit-mask-repeat-x":{"syntax":"repeat | no-repeat | space | round","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"repeat","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-x"},"-webkit-mask-repeat-y":{"syntax":"repeat | no-repeat | space | round","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"repeat","appliesto":"allElements","computed":"absoluteLengthOrPercentage","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-mask-repeat-y"},"-webkit-mask-size":{"syntax":"<bg-size>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"relativeToBackgroundPositioningArea","groups":["WebKit Extensions"],"initial":"auto auto","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-size"},"-webkit-overflow-scrolling":{"syntax":"auto | touch","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"auto","appliesto":"scrollingBoxes","computed":"asSpecified","order":"orderOfAppearance","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-overflow-scrolling"},"-webkit-tap-highlight-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"black","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-tap-highlight-color"},"-webkit-text-fill-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"color","percentages":"no","groups":["WebKit Extensions"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color"},"-webkit-text-stroke":{"syntax":"<length> || <color>","media":"visual","inherited":true,"animationType":["-webkit-text-stroke-width","-webkit-text-stroke-color"],"percentages":"no","groups":["WebKit Extensions"],"initial":["-webkit-text-stroke-width","-webkit-text-stroke-color"],"appliesto":"allElements","computed":["-webkit-text-stroke-width","-webkit-text-stroke-color"],"order":"canonicalOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke"},"-webkit-text-stroke-color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"color","percentages":"no","groups":["WebKit Extensions"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color"},"-webkit-text-stroke-width":{"syntax":"<length>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"0","appliesto":"allElements","computed":"absoluteLength","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width"},"-webkit-touch-callout":{"syntax":"default | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"default","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/-webkit-touch-callout"},"-webkit-user-modify":{"syntax":"read-only | read-write | read-write-plaintext-only","media":"interactive","inherited":true,"animationType":"discrete","percentages":"no","groups":["WebKit Extensions"],"initial":"read-only","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard"},"align-content":{"syntax":"normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"multilineFlexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-content"},"align-items":{"syntax":"normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-items"},"align-self":{"syntax":"auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"auto","appliesto":"flexItemsGridItemsAndAbsolutelyPositionedBoxes","computed":"autoOnAbsolutelyPositionedElementsValueOfAlignItemsOnParent","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-self"},"align-tracks":{"syntax":"[ normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position> ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"normal","appliesto":"gridContainersWithMasonryLayoutInTheirBlockAxis","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/align-tracks"},"all":{"syntax":"initial | inherit | unset | revert","media":"noPracticalMedia","inherited":false,"animationType":"eachOfShorthandPropertiesExceptUnicodeBiDiAndDirection","percentages":"no","groups":["CSS Miscellaneous"],"initial":"noPracticalInitialValue","appliesto":"allElements","computed":"asSpecifiedAppliesToEachProperty","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/all"},"animation":{"syntax":"<single-animation>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":["animation-name","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state"],"appliesto":"allElementsAndPseudos","computed":["animation-name","animation-duration","animation-timing-function","animation-delay","animation-direction","animation-iteration-count","animation-fill-mode","animation-play-state"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation"},"animation-delay":{"syntax":"<time>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"0s","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-delay"},"animation-direction":{"syntax":"<single-animation-direction>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"normal","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-direction"},"animation-duration":{"syntax":"<time>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"0s","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-duration"},"animation-fill-mode":{"syntax":"<single-animation-fill-mode>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"none","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode"},"animation-iteration-count":{"syntax":"<single-animation-iteration-count>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"1","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count"},"animation-name":{"syntax":"[ none | <keyframes-name> ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"none","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-name"},"animation-play-state":{"syntax":"<single-animation-play-state>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"running","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-play-state"},"animation-timing-function":{"syntax":"<timing-function>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Animations"],"initial":"ease","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/animation-timing-function"},"appearance":{"syntax":"none | auto | textfield | menulist-button | <compat-auto>","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/appearance"},"aspect-ratio":{"syntax":"auto | <ratio>","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElementsExceptInlineBoxesAndInternalRubyOrTableBoxes","computed":"asSpecified","order":"perGrammar","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/aspect-ratio"},"azimuth":{"syntax":"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards","media":"aural","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Speech"],"initial":"center","appliesto":"allElements","computed":"normalizedAngle","order":"orderOfAppearance","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/azimuth"},"backdrop-filter":{"syntax":"none | <filter-function-list>","media":"visual","inherited":false,"animationType":"filterList","percentages":"no","groups":["Filter Effects"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/backdrop-filter"},"backface-visibility":{"syntax":"visible | hidden","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transforms"],"initial":"visible","appliesto":"transformableElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/backface-visibility"},"background":{"syntax":"[ <bg-layer> , ]* <final-bg-layer>","media":"visual","inherited":false,"animationType":["background-color","background-image","background-clip","background-position","background-size","background-repeat","background-attachment"],"percentages":["background-position","background-size"],"groups":["CSS Backgrounds and Borders"],"initial":["background-image","background-position","background-size","background-repeat","background-origin","background-clip","background-attachment","background-color"],"appliesto":"allElements","computed":["background-image","background-position","background-size","background-repeat","background-origin","background-clip","background-attachment","background-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background"},"background-attachment":{"syntax":"<attachment>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"scroll","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-attachment"},"background-blend-mode":{"syntax":"<blend-mode>#","media":"none","inherited":false,"animationType":"discrete","percentages":"no","groups":["Compositing and Blending"],"initial":"normal","appliesto":"allElementsSVGContainerGraphicsAndGraphicsReferencingElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-blend-mode"},"background-clip":{"syntax":"<box>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"border-box","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-clip"},"background-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"transparent","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-color"},"background-image":{"syntax":"<bg-image>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecifiedURLsAbsolute","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-image"},"background-origin":{"syntax":"<box>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"padding-box","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-origin"},"background-position":{"syntax":"<bg-position>#","media":"visual","inherited":false,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"referToSizeOfBackgroundPositioningAreaMinusBackgroundImageSize","groups":["CSS Backgrounds and Borders"],"initial":"0% 0%","appliesto":"allElements","computed":"listEachItemTwoKeywordsOriginOffsets","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-position"},"background-position-x":{"syntax":"[ center | [ [ left | right | x-start | x-end ]? <length-percentage>? ]! ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToWidthOfBackgroundPositioningAreaMinusBackgroundImageHeight","groups":["CSS Backgrounds and Borders"],"initial":"left","appliesto":"allElements","computed":"listEachItemConsistingOfAbsoluteLengthPercentageAndOrigin","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-position-x"},"background-position-y":{"syntax":"[ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToHeightOfBackgroundPositioningAreaMinusBackgroundImageHeight","groups":["CSS Backgrounds and Borders"],"initial":"top","appliesto":"allElements","computed":"listEachItemConsistingOfAbsoluteLengthPercentageAndOrigin","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-position-y"},"background-repeat":{"syntax":"<repeat-style>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"repeat","appliesto":"allElements","computed":"listEachItemHasTwoKeywordsOnePerDimension","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-repeat"},"background-size":{"syntax":"<bg-size>#","media":"visual","inherited":false,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"relativeToBackgroundPositioningArea","groups":["CSS Backgrounds and Borders"],"initial":"auto auto","appliesto":"allElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/background-size"},"block-overflow":{"syntax":"clip | ellipsis | <string>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"clip","appliesto":"blockContainers","computed":"asSpecified","order":"perGrammar","status":"experimental"},"block-size":{"syntax":"<\'width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"blockSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"sameAsWidthAndHeight","computed":"sameAsWidthAndHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/block-size"},"border":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-color","border-style","border-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-width","border-style","border-color"],"appliesto":"allElements","computed":["border-width","border-style","border-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border"},"border-block":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":["border-top-width","border-top-style","border-top-color"],"appliesto":"allElements","computed":["border-top-width","border-top-style","border-top-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block"},"border-block-color":{"syntax":"<\'border-top-color\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-color"},"border-block-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-style"},"border-block-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-width"},"border-block-end":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":["border-block-end-color","border-block-end-style","border-block-end-width"],"percentages":"no","groups":["CSS Logical Properties"],"initial":["border-top-width","border-top-style","border-top-color"],"appliesto":"allElements","computed":["border-top-width","border-top-style","border-top-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-end"},"border-block-end-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-end-color"},"border-block-end-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-end-style"},"border-block-end-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-end-width"},"border-block-start":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":["border-block-start-color","border-block-start-style","border-block-start-width"],"percentages":"no","groups":["CSS Logical Properties"],"initial":["border-width","border-style","color"],"appliesto":"allElements","computed":["border-width","border-style","border-block-start-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-start"},"border-block-start-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-start-color"},"border-block-start-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-start-style"},"border-block-start-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-block-start-width"},"border-bottom":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-bottom-color","border-bottom-style","border-bottom-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-bottom-width","border-bottom-style","border-bottom-color"],"appliesto":"allElements","computed":["border-bottom-width","border-bottom-style","border-bottom-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom"},"border-bottom-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-color"},"border-bottom-left-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius"},"border-bottom-right-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius"},"border-bottom-style":{"syntax":"<line-style>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-style"},"border-bottom-width":{"syntax":"<line-width>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthOr0IfBorderBottomStyleNoneOrHidden","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-bottom-width"},"border-collapse":{"syntax":"collapse | separate","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"separate","appliesto":"tableElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-collapse"},"border-color":{"syntax":"<color>{1,4}","media":"visual","inherited":false,"animationType":["border-bottom-color","border-left-color","border-right-color","border-top-color"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-top-color","border-right-color","border-bottom-color","border-left-color"],"appliesto":"allElements","computed":["border-bottom-color","border-left-color","border-right-color","border-top-color"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-color"},"border-end-end-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius"},"border-end-start-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius"},"border-image":{"syntax":"<\'border-image-source\'> || <\'border-image-slice\'> [ / <\'border-image-width\'> | / <\'border-image-width\'>? / <\'border-image-outset\'> ]? || <\'border-image-repeat\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":["border-image-slice","border-image-width"],"groups":["CSS Backgrounds and Borders"],"initial":["border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"],"appliesto":"allElementsExceptTableElementsWhenCollapse","computed":["border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image"},"border-image-outset":{"syntax":"[ <length> | <number> ]{1,4}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-outset"},"border-image-repeat":{"syntax":"[ stretch | repeat | round | space ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"stretch","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-repeat"},"border-image-slice":{"syntax":"<number-percentage>{1,4} && fill?","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"referToSizeOfBorderImage","groups":["CSS Backgrounds and Borders"],"initial":"100%","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"oneToFourPercentagesOrAbsoluteLengthsPlusFill","order":"percentagesOrLengthsFollowedByFill","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-slice"},"border-image-source":{"syntax":"none | <image>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"noneOrImageWithAbsoluteURI","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-source"},"border-image-width":{"syntax":"[ <length-percentage> | <number> | auto ]{1,4}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"referToWidthOrHeightOfBorderImageArea","groups":["CSS Backgrounds and Borders"],"initial":"1","appliesto":"allElementsExceptTableElementsWhenCollapse","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-image-width"},"border-inline":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":["border-top-width","border-top-style","border-top-color"],"appliesto":"allElements","computed":["border-top-width","border-top-style","border-top-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline"},"border-inline-end":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":["border-inline-end-color","border-inline-end-style","border-inline-end-width"],"percentages":"no","groups":["CSS Logical Properties"],"initial":["border-width","border-style","color"],"appliesto":"allElements","computed":["border-width","border-style","border-inline-end-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-end"},"border-inline-color":{"syntax":"<\'border-top-color\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-color"},"border-inline-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-style"},"border-inline-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-width"},"border-inline-end-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color"},"border-inline-end-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style"},"border-inline-end-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width"},"border-inline-start":{"syntax":"<\'border-top-width\'> || <\'border-top-style\'> || <\'color\'>","media":"visual","inherited":false,"animationType":["border-inline-start-color","border-inline-start-style","border-inline-start-width"],"percentages":"no","groups":["CSS Logical Properties"],"initial":["border-width","border-style","color"],"appliesto":"allElements","computed":["border-width","border-style","border-inline-start-color"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-start"},"border-inline-start-color":{"syntax":"<\'border-top-color\'>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Logical Properties"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color"},"border-inline-start-style":{"syntax":"<\'border-top-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Logical Properties"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style"},"border-inline-start-width":{"syntax":"<\'border-top-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthZeroIfBorderStyleNoneOrHidden","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width"},"border-left":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-left-color","border-left-style","border-left-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-left-width","border-left-style","border-left-color"],"appliesto":"allElements","computed":["border-left-width","border-left-style","border-left-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-left"},"border-left-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-left-color"},"border-left-style":{"syntax":"<line-style>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-left-style"},"border-left-width":{"syntax":"<line-width>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthOr0IfBorderLeftStyleNoneOrHidden","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-left-width"},"border-radius":{"syntax":"<length-percentage>{1,4} [ / <length-percentage>{1,4} ]?","media":"visual","inherited":false,"animationType":["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],"percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],"appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-radius"},"border-right":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-right-color","border-right-style","border-right-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-right-width","border-right-style","border-right-color"],"appliesto":"allElements","computed":["border-right-width","border-right-style","border-right-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-right"},"border-right-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-right-color"},"border-right-style":{"syntax":"<line-style>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-right-style"},"border-right-width":{"syntax":"<line-width>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthOr0IfBorderRightStyleNoneOrHidden","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-right-width"},"border-spacing":{"syntax":"<length> <length>?","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"0","appliesto":"tableElements","computed":"twoAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-spacing"},"border-start-end-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius"},"border-start-start-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius"},"border-style":{"syntax":"<line-style>{1,4}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-top-style","border-right-style","border-bottom-style","border-left-style"],"appliesto":"allElements","computed":["border-bottom-style","border-left-style","border-right-style","border-top-style"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-style"},"border-top":{"syntax":"<line-width> || <line-style> || <color>","media":"visual","inherited":false,"animationType":["border-top-color","border-top-style","border-top-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-top-width","border-top-style","border-top-color"],"appliesto":"allElements","computed":["border-top-width","border-top-style","border-top-color"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top"},"border-top-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-color"},"border-top-left-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius"},"border-top-right-radius":{"syntax":"<length-percentage>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfBorderBox","groups":["CSS Backgrounds and Borders"],"initial":"0","appliesto":"allElementsUAsNotRequiredWhenCollapse","computed":"twoAbsoluteLengthOrPercentages","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius"},"border-top-style":{"syntax":"<line-style>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-style"},"border-top-width":{"syntax":"<line-width>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"medium","appliesto":"allElements","computed":"absoluteLengthOr0IfBorderTopStyleNoneOrHidden","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-top-width"},"border-width":{"syntax":"<line-width>{1,4}","media":"visual","inherited":false,"animationType":["border-bottom-width","border-left-width","border-right-width","border-top-width"],"percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":["border-top-width","border-right-width","border-bottom-width","border-left-width"],"appliesto":"allElements","computed":["border-bottom-width","border-left-width","border-right-width","border-top-width"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/border-width"},"bottom":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToContainingBlockHeight","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/bottom"},"box-align":{"syntax":"start | center | end | baseline | stretch","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"stretch","appliesto":"elementsWithDisplayBoxOrInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-align"},"box-decoration-break":{"syntax":"slice | clone","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"slice","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-decoration-break"},"box-direction":{"syntax":"normal | reverse | inherit","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"normal","appliesto":"elementsWithDisplayBoxOrInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-direction"},"box-flex":{"syntax":"<number>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"0","appliesto":"directChildrenOfElementsWithDisplayMozBoxMozInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-flex"},"box-flex-group":{"syntax":"<integer>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"1","appliesto":"inFlowChildrenOfBoxElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-flex-group"},"box-lines":{"syntax":"single | multiple","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"single","appliesto":"boxElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-lines"},"box-ordinal-group":{"syntax":"<integer>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"1","appliesto":"childrenOfBoxElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group"},"box-orient":{"syntax":"horizontal | vertical | inline-axis | block-axis | inherit","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"inlineAxisHorizontalInXUL","appliesto":"elementsWithDisplayBoxOrInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-orient"},"box-pack":{"syntax":"start | center | end | justify","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions","WebKit Extensions"],"initial":"start","appliesto":"elementsWithDisplayMozBoxMozInlineBox","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-pack"},"box-shadow":{"syntax":"none | <shadow>#","media":"visual","inherited":false,"animationType":"shadowList","percentages":"no","groups":["CSS Backgrounds and Borders"],"initial":"none","appliesto":"allElements","computed":"absoluteLengthsSpecifiedColorAsSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-shadow"},"box-sizing":{"syntax":"content-box | border-box","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"content-box","appliesto":"allElementsAcceptingWidthOrHeight","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/box-sizing"},"break-after":{"syntax":"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"auto","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/break-after"},"break-before":{"syntax":"auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"auto","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/break-before"},"break-inside":{"syntax":"auto | avoid | avoid-page | avoid-column | avoid-region","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"auto","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/break-inside"},"caption-side":{"syntax":"top | bottom | block-start | block-end | inline-start | inline-end","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"top","appliesto":"tableCaptionElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/caption-side"},"caret-color":{"syntax":"auto | <color>","media":"interactive","inherited":true,"animationType":"color","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElements","computed":"asAutoOrColor","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/caret-color"},"clear":{"syntax":"none | left | right | both | inline-start | inline-end","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Positioning"],"initial":"none","appliesto":"blockLevelElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/clear"},"clip":{"syntax":"<shape> | auto","media":"visual","inherited":false,"animationType":"rectangle","percentages":"no","groups":["CSS Masking"],"initial":"auto","appliesto":"absolutelyPositionedElements","computed":"autoOrRectangle","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/clip"},"clip-path":{"syntax":"<clip-source> | [ <basic-shape> || <geometry-box> ] | none","media":"visual","inherited":false,"animationType":"basicShapeOtherwiseNo","percentages":"referToReferenceBoxWhenSpecifiedOtherwiseBorderBox","groups":["CSS Masking"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedURLsAbsolute","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/clip-path"},"color":{"syntax":"<color>","media":"visual","inherited":true,"animationType":"color","percentages":"no","groups":["CSS Color"],"initial":"variesFromBrowserToBrowser","appliesto":"allElements","computed":"translucentValuesRGBAOtherwiseRGB","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/color"},"color-adjust":{"syntax":"economy | exact","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Color"],"initial":"economy","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/color-adjust"},"column-count":{"syntax":"<integer> | auto","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Columns"],"initial":"auto","appliesto":"blockContainersExceptTableWrappers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-count"},"column-fill":{"syntax":"auto | balance | balance-all","media":"visualInContinuousMediaNoEffectInOverflowColumns","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Columns"],"initial":"balance","appliesto":"multicolElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-fill"},"column-gap":{"syntax":"normal | <length-percentage>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfContentArea","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"multiColumnElementsFlexContainersGridContainers","computed":"asSpecifiedWithLengthsAbsoluteAndNormalComputingToZeroExceptMultiColumn","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-gap"},"column-rule":{"syntax":"<\'column-rule-width\'> || <\'column-rule-style\'> || <\'column-rule-color\'>","media":"visual","inherited":false,"animationType":["column-rule-color","column-rule-style","column-rule-width"],"percentages":"no","groups":["CSS Columns"],"initial":["column-rule-width","column-rule-style","column-rule-color"],"appliesto":"multicolElements","computed":["column-rule-color","column-rule-style","column-rule-width"],"order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-rule"},"column-rule-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Columns"],"initial":"currentcolor","appliesto":"multicolElements","computed":"computedColor","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-rule-color"},"column-rule-style":{"syntax":"<\'border-style\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Columns"],"initial":"none","appliesto":"multicolElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-rule-style"},"column-rule-width":{"syntax":"<\'border-width\'>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Columns"],"initial":"medium","appliesto":"multicolElements","computed":"absoluteLength0IfColumnRuleStyleNoneOrHidden","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-rule-width"},"column-span":{"syntax":"none | all","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Columns"],"initial":"none","appliesto":"inFlowBlockLevelElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-span"},"column-width":{"syntax":"<length> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Columns"],"initial":"auto","appliesto":"blockContainersExceptTableWrappers","computed":"absoluteLengthZeroOrLarger","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-width"},"columns":{"syntax":"<\'column-width\'> || <\'column-count\'>","media":"visual","inherited":false,"animationType":["column-width","column-count"],"percentages":"no","groups":["CSS Columns"],"initial":["column-width","column-count"],"appliesto":"blockContainersExceptTableWrappers","computed":["column-width","column-count"],"order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/columns"},"contain":{"syntax":"none | strict | content | [ size || layout || style || paint ]","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Containment"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/contain"},"content":{"syntax":"normal | none | [ <content-replacement> | <content-list> ] [/ <string> ]?","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Generated Content"],"initial":"normal","appliesto":"beforeAndAfterPseudos","computed":"normalOnElementsForPseudosNoneAbsoluteURIStringOrAsSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/content"},"counter-increment":{"syntax":"[ <custom-ident> <integer>? ]+ | none","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Counter Styles"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/counter-increment"},"counter-reset":{"syntax":"[ <custom-ident> <integer>? ]+ | none","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Counter Styles"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/counter-reset"},"counter-set":{"syntax":"[ <custom-ident> <integer>? ]+ | none","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Counter Styles"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/counter-set"},"cursor":{"syntax":"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing ] ]","media":["visual","interactive"],"inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElements","computed":"asSpecifiedURLsAbsolute","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/cursor"},"direction":{"syntax":"ltr | rtl","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Writing Modes"],"initial":"ltr","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/direction"},"display":{"syntax":"[ <display-outside> || <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Display"],"initial":"inline","appliesto":"allElements","computed":"asSpecifiedExceptPositionedFloatingAndRootElementsKeywordMaybeDifferent","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/display"},"empty-cells":{"syntax":"show | hide","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"show","appliesto":"tableCellElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/empty-cells"},"filter":{"syntax":"none | <filter-function-list>","media":"visual","inherited":false,"animationType":"filterList","percentages":"no","groups":["Filter Effects"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/filter"},"flex":{"syntax":"none | [ <\'flex-grow\'> <\'flex-shrink\'>? || <\'flex-basis\'> ]","media":"visual","inherited":false,"animationType":["flex-grow","flex-shrink","flex-basis"],"percentages":"no","groups":["CSS Flexible Box Layout"],"initial":["flex-grow","flex-shrink","flex-basis"],"appliesto":"flexItemsAndInFlowPseudos","computed":["flex-grow","flex-shrink","flex-basis"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex"},"flex-basis":{"syntax":"content | <\'width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToFlexContainersInnerMainSize","groups":["CSS Flexible Box Layout"],"initial":"auto","appliesto":"flexItemsAndInFlowPseudos","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"lengthOrPercentageBeforeKeywordIfBothPresent","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-basis"},"flex-direction":{"syntax":"row | row-reverse | column | column-reverse","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"row","appliesto":"flexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-direction"},"flex-flow":{"syntax":"<\'flex-direction\'> || <\'flex-wrap\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":["flex-direction","flex-wrap"],"appliesto":"flexContainers","computed":["flex-direction","flex-wrap"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-flow"},"flex-grow":{"syntax":"<number>","media":"visual","inherited":false,"animationType":"number","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"0","appliesto":"flexItemsAndInFlowPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-grow"},"flex-shrink":{"syntax":"<number>","media":"visual","inherited":false,"animationType":"number","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"1","appliesto":"flexItemsAndInFlowPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-shrink"},"flex-wrap":{"syntax":"nowrap | wrap | wrap-reverse","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"nowrap","appliesto":"flexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/flex-wrap"},"float":{"syntax":"left | right | none | inline-start | inline-end","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Positioning"],"initial":"none","appliesto":"allElementsNoEffectIfDisplayNone","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/float"},"font":{"syntax":"[ [ <\'font-style\'> || <font-variant-css21> || <\'font-weight\'> || <\'font-stretch\'> ]? <\'font-size\'> [ / <\'line-height\'> ]? <\'font-family\'> ] | caption | icon | menu | message-box | small-caption | status-bar","media":"visual","inherited":true,"animationType":["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],"percentages":["font-size","line-height"],"groups":["CSS Fonts"],"initial":["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],"appliesto":"allElements","computed":["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font"},"font-family":{"syntax":"[ <family-name> | <generic-family> ]#","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"dependsOnUserAgent","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-family"},"font-feature-settings":{"syntax":"normal | <feature-tag-value>#","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-feature-settings"},"font-kerning":{"syntax":"auto | normal | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-kerning"},"font-language-override":{"syntax":"normal | <string>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-language-override"},"font-optical-sizing":{"syntax":"auto | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing"},"font-variation-settings":{"syntax":"normal | [ <string> <number> ]#","media":"visual","inherited":true,"animationType":"transform","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variation-settings"},"font-size":{"syntax":"<absolute-size> | <relative-size> | <length-percentage>","media":"visual","inherited":true,"animationType":"length","percentages":"referToParentElementsFontSize","groups":["CSS Fonts"],"initial":"medium","appliesto":"allElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-size"},"font-size-adjust":{"syntax":"none | <number>","media":"visual","inherited":true,"animationType":"number","percentages":"no","groups":["CSS Fonts"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-size-adjust"},"font-smooth":{"syntax":"auto | never | always | <absolute-size> | <length>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-smooth"},"font-stretch":{"syntax":"<font-stretch-absolute>","media":"visual","inherited":true,"animationType":"fontStretch","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-stretch"},"font-style":{"syntax":"normal | italic | oblique <angle>?","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-style"},"font-synthesis":{"syntax":"none | [ weight || style ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"weight style","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-synthesis"},"font-variant":{"syntax":"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant"},"font-variant-alternates":{"syntax":"normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates"},"font-variant-caps":{"syntax":"normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-caps"},"font-variant-east-asian":{"syntax":"normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian"},"font-variant-ligatures":{"syntax":"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures"},"font-variant-numeric":{"syntax":"normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric"},"font-variant-position":{"syntax":"normal | sub | super","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-variant-position"},"font-weight":{"syntax":"<font-weight-absolute> | bolder | lighter","media":"visual","inherited":true,"animationType":"fontWeight","percentages":"no","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"keywordOrNumericalValueBolderLighterTransformedToRealValue","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/font-weight"},"gap":{"syntax":"<\'row-gap\'> <\'column-gap\'>?","media":"visual","inherited":false,"animationType":["row-gap","column-gap"],"percentages":"no","groups":["CSS Box Alignment"],"initial":["row-gap","column-gap"],"appliesto":"multiColumnElementsFlexContainersGridContainers","computed":["row-gap","column-gap"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/gap"},"grid":{"syntax":"<\'grid-template\'> | <\'grid-template-rows\'> / [ auto-flow && dense? ] <\'grid-auto-columns\'>? | [ auto-flow && dense? ] <\'grid-auto-rows\'>? / <\'grid-template-columns\'>","media":"visual","inherited":false,"animationType":"discrete","percentages":["grid-template-rows","grid-template-columns","grid-auto-rows","grid-auto-columns"],"groups":["CSS Grid Layout"],"initial":["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","grid-column-gap","grid-row-gap","column-gap","row-gap"],"appliesto":"gridContainers","computed":["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","grid-column-gap","grid-row-gap","column-gap","row-gap"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid"},"grid-area":{"syntax":"<grid-line> [ / <grid-line> ]{0,3}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":["grid-row-start","grid-column-start","grid-row-end","grid-column-end"],"appliesto":"gridItemsAndBoxesWithinGridContainer","computed":["grid-row-start","grid-column-start","grid-row-end","grid-column-end"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-area"},"grid-auto-columns":{"syntax":"<track-size>+","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridContainers","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns"},"grid-auto-flow":{"syntax":"[ row | column ] || dense","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"row","appliesto":"gridContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow"},"grid-auto-rows":{"syntax":"<track-size>+","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridContainers","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows"},"grid-column":{"syntax":"<grid-line> [ / <grid-line> ]?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":["grid-column-start","grid-column-end"],"appliesto":"gridItemsAndBoxesWithinGridContainer","computed":["grid-column-start","grid-column-end"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-column"},"grid-column-end":{"syntax":"<grid-line>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridItemsAndBoxesWithinGridContainer","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-column-end"},"grid-column-gap":{"syntax":"<length-percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"0","appliesto":"gridContainers","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/column-gap"},"grid-column-start":{"syntax":"<grid-line>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridItemsAndBoxesWithinGridContainer","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-column-start"},"grid-gap":{"syntax":"<\'grid-row-gap\'> <\'grid-column-gap\'>?","media":"visual","inherited":false,"animationType":["grid-row-gap","grid-column-gap"],"percentages":"no","groups":["CSS Grid Layout"],"initial":["grid-row-gap","grid-column-gap"],"appliesto":"gridContainers","computed":["grid-row-gap","grid-column-gap"],"order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/gap"},"grid-row":{"syntax":"<grid-line> [ / <grid-line> ]?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":["grid-row-start","grid-row-end"],"appliesto":"gridItemsAndBoxesWithinGridContainer","computed":["grid-row-start","grid-row-end"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-row"},"grid-row-end":{"syntax":"<grid-line>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridItemsAndBoxesWithinGridContainer","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-row-end"},"grid-row-gap":{"syntax":"<length-percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"0","appliesto":"gridContainers","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/row-gap"},"grid-row-start":{"syntax":"<grid-line>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"auto","appliesto":"gridItemsAndBoxesWithinGridContainer","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-row-start"},"grid-template":{"syntax":"none | [ <\'grid-template-rows\'> / <\'grid-template-columns\'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?","media":"visual","inherited":false,"animationType":"discrete","percentages":["grid-template-columns","grid-template-rows"],"groups":["CSS Grid Layout"],"initial":["grid-template-columns","grid-template-rows","grid-template-areas"],"appliesto":"gridContainers","computed":["grid-template-columns","grid-template-rows","grid-template-areas"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-template"},"grid-template-areas":{"syntax":"none | <string>+","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-template-areas"},"grid-template-columns":{"syntax":"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?","media":"visual","inherited":false,"animationType":"simpleListOfLpcDifferenceLpc","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-template-columns"},"grid-template-rows":{"syntax":"none | <track-list> | <auto-track-list> | subgrid <line-name-list>?","media":"visual","inherited":false,"animationType":"simpleListOfLpcDifferenceLpc","percentages":"referToDimensionOfContentArea","groups":["CSS Grid Layout"],"initial":"none","appliesto":"gridContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/grid-template-rows"},"hanging-punctuation":{"syntax":"none | [ first || [ force-end | allow-end ] || last ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/hanging-punctuation"},"height":{"syntax":"auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"regardingHeightOfGeneratedBoxContainingBlockPercentagesRelativeToContainingBlock","groups":["CSS Box Model"],"initial":"auto","appliesto":"allElementsButNonReplacedAndTableColumns","computed":"percentageAutoOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/height"},"hyphens":{"syntax":"none | manual | auto","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"manual","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/hyphens"},"image-orientation":{"syntax":"from-image | <angle> | [ <angle>? flip ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Images"],"initial":"from-image","appliesto":"allElements","computed":"angleRoundedToNextQuarter","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/image-orientation"},"image-rendering":{"syntax":"auto | crisp-edges | pixelated","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Images"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/image-rendering"},"image-resolution":{"syntax":"[ from-image || <resolution> ] && snap?","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Images"],"initial":"1dppx","appliesto":"allElements","computed":"asSpecifiedWithExceptionOfResolution","order":"uniqueOrder","status":"experimental"},"ime-mode":{"syntax":"auto | normal | active | inactive | disabled","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"textFields","computed":"asSpecified","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/ime-mode"},"initial-letter":{"syntax":"normal | [ <number> <integer>? ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Inline"],"initial":"normal","appliesto":"firstLetterPseudoElementsAndInlineLevelFirstChildren","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/initial-letter"},"initial-letter-align":{"syntax":"[ auto | alphabetic | hanging | ideographic ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Inline"],"initial":"auto","appliesto":"firstLetterPseudoElementsAndInlineLevelFirstChildren","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/initial-letter-align"},"inline-size":{"syntax":"<\'width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"inlineSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"sameAsWidthAndHeight","computed":"sameAsWidthAndHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inline-size"},"inset":{"syntax":"<\'top\'>{1,4}","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalHeightOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset"},"inset-block":{"syntax":"<\'top\'>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalHeightOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-block"},"inset-block-end":{"syntax":"<\'top\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalHeightOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-block-end"},"inset-block-start":{"syntax":"<\'top\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalHeightOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-block-start"},"inset-inline":{"syntax":"<\'top\'>{1,2}","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-inline"},"inset-inline-end":{"syntax":"<\'top\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-inline-end"},"inset-inline-start":{"syntax":"<\'top\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"auto","appliesto":"positionedElements","computed":"sameAsBoxOffsets","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/inset-inline-start"},"isolation":{"syntax":"auto | isolate","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Compositing and Blending"],"initial":"auto","appliesto":"allElementsSVGContainerGraphicsAndGraphicsReferencingElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/isolation"},"justify-content":{"syntax":"normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"flexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/justify-content"},"justify-items":{"syntax":"normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"legacy","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/justify-items"},"justify-self":{"syntax":"auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"auto","appliesto":"blockLevelBoxesAndAbsolutelyPositionedBoxesAndGridItems","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/justify-self"},"justify-tracks":{"syntax":"[ normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ] ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"normal","appliesto":"gridContainersWithMasonryLayoutInTheirInlineAxis","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/justify-tracks"},"left":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/left"},"letter-spacing":{"syntax":"normal | <length>","media":"visual","inherited":true,"animationType":"length","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"allElements","computed":"optimumValueOfAbsoluteLengthOrNormal","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/letter-spacing"},"line-break":{"syntax":"auto | loose | normal | strict | anywhere","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/line-break"},"line-clamp":{"syntax":"none | <integer>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Overflow"],"initial":"none","appliesto":"blockContainersExceptMultiColumnContainers","computed":"asSpecified","order":"perGrammar","status":"experimental"},"line-height":{"syntax":"normal | <number> | <length> | <percentage>","media":"visual","inherited":true,"animationType":"numberOrLength","percentages":"referToElementFontSize","groups":["CSS Fonts"],"initial":"normal","appliesto":"allElements","computed":"absoluteLengthOrAsSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/line-height"},"line-height-step":{"syntax":"<length>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fonts"],"initial":"0","appliesto":"blockContainers","computed":"absoluteLength","order":"perGrammar","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/line-height-step"},"list-style":{"syntax":"<\'list-style-type\'> || <\'list-style-position\'> || <\'list-style-image\'>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Lists and Counters"],"initial":["list-style-type","list-style-position","list-style-image"],"appliesto":"listItems","computed":["list-style-image","list-style-position","list-style-type"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/list-style"},"list-style-image":{"syntax":"<url> | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Lists and Counters"],"initial":"none","appliesto":"listItems","computed":"noneOrImageWithAbsoluteURI","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/list-style-image"},"list-style-position":{"syntax":"inside | outside","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Lists and Counters"],"initial":"outside","appliesto":"listItems","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/list-style-position"},"list-style-type":{"syntax":"<counter-style> | <string> | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Lists and Counters"],"initial":"disc","appliesto":"listItems","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/list-style-type"},"margin":{"syntax":"[ <length> | <percentage> | auto ]{1,4}","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":["margin-bottom","margin-left","margin-right","margin-top"],"appliesto":"allElementsExceptTableDisplayTypes","computed":["margin-bottom","margin-left","margin-right","margin-top"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin"},"margin-block":{"syntax":"<\'margin-left\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-block"},"margin-block-end":{"syntax":"<\'margin-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-block-end"},"margin-block-start":{"syntax":"<\'margin-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-block-start"},"margin-bottom":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-bottom"},"margin-inline":{"syntax":"<\'margin-left\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-inline"},"margin-inline-end":{"syntax":"<\'margin-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-inline-end"},"margin-inline-start":{"syntax":"<\'margin-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"dependsOnLayoutModel","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsMargin","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-inline-start"},"margin-left":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-left"},"margin-right":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-right"},"margin-top":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-top"},"margin-trim":{"syntax":"none | in-flow | all","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"none","appliesto":"blockContainersAndMultiColumnContainers","computed":"asSpecified","order":"perGrammar","alsoAppliesTo":["::first-letter","::first-line"],"status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/margin-trim"},"mask":{"syntax":"<mask-layer>#","media":"visual","inherited":false,"animationType":["mask-image","mask-mode","mask-repeat","mask-position","mask-clip","mask-origin","mask-size","mask-composite"],"percentages":["mask-position"],"groups":["CSS Masking"],"initial":["mask-image","mask-mode","mask-repeat","mask-position","mask-clip","mask-origin","mask-size","mask-composite"],"appliesto":"allElementsSVGContainerElements","computed":["mask-image","mask-mode","mask-repeat","mask-position","mask-clip","mask-origin","mask-size","mask-composite"],"order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask"},"mask-border":{"syntax":"<\'mask-border-source\'> || <\'mask-border-slice\'> [ / <\'mask-border-width\'>? [ / <\'mask-border-outset\'> ]? ]? || <\'mask-border-repeat\'> || <\'mask-border-mode\'>","media":"visual","inherited":false,"animationType":["mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width"],"percentages":["mask-border-slice","mask-border-width"],"groups":["CSS Masking"],"initial":["mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width"],"appliesto":"allElementsSVGContainerElements","computed":["mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width"],"order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border"},"mask-border-mode":{"syntax":"luminance | alpha","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"alpha","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-mode"},"mask-border-outset":{"syntax":"[ <length> | <number> ]{1,4}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"0","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-outset"},"mask-border-repeat":{"syntax":"[ stretch | repeat | round | space ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"stretch","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat"},"mask-border-slice":{"syntax":"<number-percentage>{1,4} fill?","media":"visual","inherited":false,"animationType":"discrete","percentages":"referToSizeOfMaskBorderImage","groups":["CSS Masking"],"initial":"0","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-slice"},"mask-border-source":{"syntax":"none | <image>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedURLsAbsolute","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-source"},"mask-border-width":{"syntax":"[ <length-percentage> | <number> | auto ]{1,4}","media":"visual","inherited":false,"animationType":"discrete","percentages":"relativeToMaskBorderImageArea","groups":["CSS Masking"],"initial":"auto","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-border-width"},"mask-clip":{"syntax":"[ <geometry-box> | no-clip ]#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"border-box","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-clip"},"mask-composite":{"syntax":"<compositing-operator>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"add","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-composite"},"mask-image":{"syntax":"<mask-reference>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"none","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedURLsAbsolute","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-image"},"mask-mode":{"syntax":"<masking-mode>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"match-source","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-mode"},"mask-origin":{"syntax":"<geometry-box>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"border-box","appliesto":"allElementsSVGContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-origin"},"mask-position":{"syntax":"<position>#","media":"visual","inherited":false,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"referToSizeOfMaskPaintingArea","groups":["CSS Masking"],"initial":"center","appliesto":"allElementsSVGContainerElements","computed":"consistsOfTwoKeywordsForOriginAndOffsets","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-position"},"mask-repeat":{"syntax":"<repeat-style>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"no-repeat","appliesto":"allElementsSVGContainerElements","computed":"consistsOfTwoDimensionKeywords","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-repeat"},"mask-size":{"syntax":"<bg-size>#","media":"visual","inherited":false,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"no","groups":["CSS Masking"],"initial":"auto","appliesto":"allElementsSVGContainerElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-size"},"mask-type":{"syntax":"luminance | alpha","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Masking"],"initial":"luminance","appliesto":"maskElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mask-type"},"masonry-auto-flow":{"syntax":"[ pack | next ] || [ definite-first | ordered ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Grid Layout"],"initial":"pack","appliesto":"gridContainersWithMasonryLayout","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/masonry-auto-flow"},"math-style":{"syntax":"normal | compact","media":"visual","inherited":true,"animationType":"notAnimatable","percentages":"no","groups":["MathML"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/math-style"},"max-block-size":{"syntax":"<\'max-width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"blockSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsWidthAndHeight","computed":"sameAsMaxWidthAndMaxHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/max-block-size"},"max-height":{"syntax":"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"regardingHeightOfGeneratedBoxContainingBlockPercentagesNone","groups":["CSS Box Model"],"initial":"none","appliesto":"allElementsButNonReplacedAndTableColumns","computed":"percentageAsSpecifiedAbsoluteLengthOrNone","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/max-height"},"max-inline-size":{"syntax":"<\'max-width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"inlineSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsWidthAndHeight","computed":"sameAsMaxWidthAndMaxHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/max-inline-size"},"max-lines":{"syntax":"none | <integer>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Overflow"],"initial":"none","appliesto":"blockContainersExceptMultiColumnContainers","computed":"asSpecified","order":"perGrammar","status":"experimental"},"max-width":{"syntax":"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"none","appliesto":"allElementsButNonReplacedAndTableRows","computed":"percentageAsSpecifiedAbsoluteLengthOrNone","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/max-width"},"min-block-size":{"syntax":"<\'min-width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"blockSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsWidthAndHeight","computed":"sameAsMinWidthAndMinHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/min-block-size"},"min-height":{"syntax":"auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"regardingHeightOfGeneratedBoxContainingBlockPercentages0","groups":["CSS Box Model"],"initial":"auto","appliesto":"allElementsButNonReplacedAndTableColumns","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/min-height"},"min-inline-size":{"syntax":"<\'min-width\'>","media":"visual","inherited":false,"animationType":"lpc","percentages":"inlineSizeOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"sameAsWidthAndHeight","computed":"sameAsMinWidthAndMinHeight","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/min-inline-size"},"min-width":{"syntax":"auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"auto","appliesto":"allElementsButNonReplacedAndTableRows","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/min-width"},"mix-blend-mode":{"syntax":"<blend-mode>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Compositing and Blending"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode"},"object-fit":{"syntax":"fill | contain | cover | none | scale-down","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Images"],"initial":"fill","appliesto":"replacedElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/object-fit"},"object-position":{"syntax":"<position>","media":"visual","inherited":true,"animationType":"repeatableListOfSimpleListOfLpc","percentages":"referToWidthAndHeightOfElement","groups":["CSS Images"],"initial":"50% 50%","appliesto":"replacedElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/object-position"},"offset":{"syntax":"[ <\'offset-position\'>? [ <\'offset-path\'> [ <\'offset-distance\'> || <\'offset-rotate\'> ]? ]? ]! [ / <\'offset-anchor\'> ]?","media":"visual","inherited":false,"animationType":["offset-position","offset-path","offset-distance","offset-anchor","offset-rotate"],"percentages":["offset-position","offset-distance","offset-anchor"],"groups":["CSS Motion Path"],"initial":["offset-position","offset-path","offset-distance","offset-anchor","offset-rotate"],"appliesto":"transformableElements","computed":["offset-position","offset-path","offset-distance","offset-anchor","offset-rotate"],"order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/offset"},"offset-anchor":{"syntax":"auto | <position>","media":"visual","inherited":false,"animationType":"position","percentages":"relativeToWidthAndHeight","groups":["CSS Motion Path"],"initial":"auto","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"perGrammar","status":"standard"},"offset-distance":{"syntax":"<length-percentage>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToTotalPathLength","groups":["CSS Motion Path"],"initial":"0","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/offset-distance"},"offset-path":{"syntax":"none | ray( [ <angle> && <size> && contain? ] ) | <path()> | <url> | [ <basic-shape> || <geometry-box> ]","media":"visual","inherited":false,"animationType":"angleOrBasicShapeOrPath","percentages":"no","groups":["CSS Motion Path"],"initial":"none","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/offset-path"},"offset-position":{"syntax":"auto | <position>","media":"visual","inherited":false,"animationType":"position","percentages":"referToSizeOfContainingBlock","groups":["CSS Motion Path"],"initial":"auto","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"perGrammar","status":"experimental"},"offset-rotate":{"syntax":"[ auto | reverse ] || <angle>","media":"visual","inherited":false,"animationType":"angleOrBasicShapeOrPath","percentages":"no","groups":["CSS Motion Path"],"initial":"auto","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/offset-rotate"},"opacity":{"syntax":"<alpha-value>","media":"visual","inherited":false,"animationType":"number","percentages":"no","groups":["CSS Color"],"initial":"1.0","appliesto":"allElements","computed":"specifiedValueClipped0To1","order":"uniqueOrder","alsoAppliesTo":["::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/opacity"},"order":{"syntax":"<integer>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Flexible Box Layout"],"initial":"0","appliesto":"flexItemsGridItemsAbsolutelyPositionedContainerChildren","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/order"},"orphans":{"syntax":"<integer>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"2","appliesto":"blockContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/orphans"},"outline":{"syntax":"[ <\'outline-color\'> || <\'outline-style\'> || <\'outline-width\'> ]","media":["visual","interactive"],"inherited":false,"animationType":["outline-color","outline-width","outline-style"],"percentages":"no","groups":["CSS Basic User Interface"],"initial":["outline-color","outline-style","outline-width"],"appliesto":"allElements","computed":["outline-color","outline-width","outline-style"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline"},"outline-color":{"syntax":"<color> | invert","media":["visual","interactive"],"inherited":false,"animationType":"color","percentages":"no","groups":["CSS Basic User Interface"],"initial":"invertOrCurrentColor","appliesto":"allElements","computed":"invertForTranslucentColorRGBAOtherwiseRGB","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline-color"},"outline-offset":{"syntax":"<length>","media":["visual","interactive"],"inherited":false,"animationType":"length","percentages":"no","groups":["CSS Basic User Interface"],"initial":"0","appliesto":"allElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline-offset"},"outline-style":{"syntax":"auto | <\'border-style\'>","media":["visual","interactive"],"inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline-style"},"outline-width":{"syntax":"<line-width>","media":["visual","interactive"],"inherited":false,"animationType":"length","percentages":"no","groups":["CSS Basic User Interface"],"initial":"medium","appliesto":"allElements","computed":"absoluteLength0ForNone","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/outline-width"},"overflow":{"syntax":"[ visible | hidden | clip | scroll | auto ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"visible","appliesto":"blockContainersFlexContainersGridContainers","computed":["overflow-x","overflow-y"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow"},"overflow-anchor":{"syntax":"auto | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Anchoring"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard"},"overflow-block":{"syntax":"visible | hidden | clip | scroll | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"auto","appliesto":"blockContainersFlexContainersGridContainers","computed":"asSpecifiedButVisibleOrClipReplacedToAutoOrHiddenIfOtherValueDifferent","order":"perGrammar","status":"standard"},"overflow-clip-box":{"syntax":"padding-box | content-box","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Mozilla Extensions"],"initial":"padding-box","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Mozilla/CSS/overflow-clip-box"},"overflow-inline":{"syntax":"visible | hidden | clip | scroll | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"auto","appliesto":"blockContainersFlexContainersGridContainers","computed":"asSpecifiedButVisibleOrClipReplacedToAutoOrHiddenIfOtherValueDifferent","order":"perGrammar","status":"standard"},"overflow-wrap":{"syntax":"normal | break-word | anywhere","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"nonReplacedInlineElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"},"overflow-x":{"syntax":"visible | hidden | clip | scroll | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"visible","appliesto":"blockContainersFlexContainersGridContainers","computed":"asSpecifiedButVisibleOrClipReplacedToAutoOrHiddenIfOtherValueDifferent","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow-x"},"overflow-y":{"syntax":"visible | hidden | clip | scroll | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"visible","appliesto":"blockContainersFlexContainersGridContainers","computed":"asSpecifiedButVisibleOrClipReplacedToAutoOrHiddenIfOtherValueDifferent","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow-y"},"overscroll-behavior":{"syntax":"[ contain | none | auto ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior"},"overscroll-behavior-block":{"syntax":"contain | none | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block"},"overscroll-behavior-inline":{"syntax":"contain | none | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline"},"overscroll-behavior-x":{"syntax":"contain | none | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x"},"overscroll-behavior-y":{"syntax":"contain | none | auto","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Model"],"initial":"auto","appliesto":"nonReplacedBlockAndInlineBlockElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y"},"padding":{"syntax":"[ <length> | <percentage> ]{1,4}","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":["padding-bottom","padding-left","padding-right","padding-top"],"appliesto":"allElementsExceptInternalTableDisplayTypes","computed":["padding-bottom","padding-left","padding-right","padding-top"],"order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding"},"padding-block":{"syntax":"<\'padding-left\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-block"},"padding-block-end":{"syntax":"<\'padding-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-block-end"},"padding-block-start":{"syntax":"<\'padding-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-block-start"},"padding-bottom":{"syntax":"<length> | <percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptInternalTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-bottom"},"padding-inline":{"syntax":"<\'padding-left\'>{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-inline"},"padding-inline-end":{"syntax":"<\'padding-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-inline-end"},"padding-inline-start":{"syntax":"<\'padding-left\'>","media":"visual","inherited":false,"animationType":"length","percentages":"logicalWidthOfContainingBlock","groups":["CSS Logical Properties"],"initial":"0","appliesto":"allElements","computed":"asLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-inline-start"},"padding-left":{"syntax":"<length> | <percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptInternalTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-left"},"padding-right":{"syntax":"<length> | <percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptInternalTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-right"},"padding-top":{"syntax":"<length> | <percentage>","media":"visual","inherited":false,"animationType":"length","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"0","appliesto":"allElementsExceptInternalTableDisplayTypes","computed":"percentageAsSpecifiedOrAbsoluteLength","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/padding-top"},"page-break-after":{"syntax":"auto | always | avoid | left | right | recto | verso","media":["visual","paged"],"inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Pages"],"initial":"auto","appliesto":"blockElementsInNormalFlow","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/page-break-after"},"page-break-before":{"syntax":"auto | always | avoid | left | right | recto | verso","media":["visual","paged"],"inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Pages"],"initial":"auto","appliesto":"blockElementsInNormalFlow","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/page-break-before"},"page-break-inside":{"syntax":"auto | avoid","media":["visual","paged"],"inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Pages"],"initial":"auto","appliesto":"blockElementsInNormalFlow","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/page-break-inside"},"paint-order":{"syntax":"normal | [ fill || stroke || markers ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"textElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/paint-order"},"perspective":{"syntax":"none | <length>","media":"visual","inherited":false,"animationType":"length","percentages":"no","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"absoluteLengthOrNone","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/perspective"},"perspective-origin":{"syntax":"<position>","media":"visual","inherited":false,"animationType":"simpleListOfLpc","percentages":"referToSizeOfBoundingBox","groups":["CSS Transforms"],"initial":"50% 50%","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"oneOrTwoValuesLengthAbsoluteKeywordsPercentages","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/perspective-origin"},"place-content":{"syntax":"<\'align-content\'> <\'justify-content\'>?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"multilineFlexContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/place-content"},"place-items":{"syntax":"<\'align-items\'> <\'justify-items\'>?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":["align-items","justify-items"],"appliesto":"allElements","computed":["align-items","justify-items"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/place-items"},"place-self":{"syntax":"<\'align-self\'> <\'justify-self\'>?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Box Alignment"],"initial":["align-self","justify-self"],"appliesto":"blockLevelBoxesAndAbsolutelyPositionedBoxesAndGridItems","computed":["align-self","justify-self"],"order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/place-self"},"pointer-events":{"syntax":"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["Pointer Events"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/pointer-events"},"position":{"syntax":"static | relative | absolute | sticky | fixed","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Positioning"],"initial":"static","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/position"},"quotes":{"syntax":"none | auto | [ <string> <string> ]+","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Generated Content"],"initial":"dependsOnUserAgent","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/quotes"},"resize":{"syntax":"none | both | horizontal | vertical | block | inline","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"none","appliesto":"elementsWithOverflowNotVisibleAndReplacedElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/resize"},"right":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/right"},"rotate":{"syntax":"none | <angle> | [ x | y | z | <number>{3} ] && <angle>","media":"visual","inherited":false,"animationType":"transform","percentages":"no","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/rotate"},"row-gap":{"syntax":"normal | <length-percentage>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToDimensionOfContentArea","groups":["CSS Box Alignment"],"initial":"normal","appliesto":"multiColumnElementsFlexContainersGridContainers","computed":"asSpecifiedWithLengthsAbsoluteAndNormalComputingToZeroExceptMultiColumn","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/row-gap"},"ruby-align":{"syntax":"start | center | space-between | space-around","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Ruby"],"initial":"space-around","appliesto":"rubyBasesAnnotationsBaseAnnotationContainers","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/ruby-align"},"ruby-merge":{"syntax":"separate | collapse | auto","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Ruby"],"initial":"separate","appliesto":"rubyAnnotationsContainers","computed":"asSpecified","order":"uniqueOrder","status":"experimental"},"ruby-position":{"syntax":"over | under | inter-character","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Ruby"],"initial":"over","appliesto":"rubyAnnotationsContainers","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/ruby-position"},"scale":{"syntax":"none | <number>{1,3}","media":"visual","inherited":false,"animationType":"transform","percentages":"no","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scale"},"scrollbar-color":{"syntax":"auto | dark | light | <color>{2}","media":"visual","inherited":true,"animationType":"color","percentages":"no","groups":["CSS Scrollbars"],"initial":"auto","appliesto":"scrollingBoxes","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scrollbar-color"},"scrollbar-gutter":{"syntax":"auto | [ stable | always ] && both? && force?","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Overflow"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter"},"scrollbar-width":{"syntax":"auto | thin | none","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scrollbars"],"initial":"auto","appliesto":"scrollingBoxes","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scrollbar-width"},"scroll-behavior":{"syntax":"auto | smooth","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSSOM View"],"initial":"auto","appliesto":"scrollingBoxes","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-behavior"},"scroll-margin":{"syntax":"<length>{1,4}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin"},"scroll-margin-block":{"syntax":"<length>{1,2}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block"},"scroll-margin-block-start":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start"},"scroll-margin-block-end":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end"},"scroll-margin-bottom":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom"},"scroll-margin-inline":{"syntax":"<length>{1,2}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline"},"scroll-margin-inline-start":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start"},"scroll-margin-inline-end":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end"},"scroll-margin-left":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left"},"scroll-margin-right":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right"},"scroll-margin-top":{"syntax":"<length>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"no","groups":["CSS Scroll Snap"],"initial":"0","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top"},"scroll-padding":{"syntax":"[ auto | <length-percentage> ]{1,4}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding"},"scroll-padding-block":{"syntax":"[ auto | <length-percentage> ]{1,2}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block"},"scroll-padding-block-start":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start"},"scroll-padding-block-end":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end"},"scroll-padding-bottom":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom"},"scroll-padding-inline":{"syntax":"[ auto | <length-percentage> ]{1,2}","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline"},"scroll-padding-inline-start":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start"},"scroll-padding-inline-end":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end"},"scroll-padding-left":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left"},"scroll-padding-right":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right"},"scroll-padding-top":{"syntax":"auto | <length-percentage>","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"relativeToTheScrollContainersScrollport","groups":["CSS Scroll Snap"],"initial":"auto","appliesto":"scrollContainers","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top"},"scroll-snap-align":{"syntax":"[ none | start | end | center ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align"},"scroll-snap-coordinate":{"syntax":"none | <position>#","media":"interactive","inherited":false,"animationType":"position","percentages":"referToBorderBox","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"allElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-coordinate"},"scroll-snap-destination":{"syntax":"<position>","media":"interactive","inherited":false,"animationType":"position","percentages":"relativeToScrollContainerPaddingBoxAxis","groups":["CSS Scroll Snap"],"initial":"0px 0px","appliesto":"scrollContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-destination"},"scroll-snap-points-x":{"syntax":"none | repeat( <length-percentage> )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"relativeToScrollContainerPaddingBoxAxis","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"scrollContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-x"},"scroll-snap-points-y":{"syntax":"none | repeat( <length-percentage> )","media":"interactive","inherited":false,"animationType":"discrete","percentages":"relativeToScrollContainerPaddingBoxAxis","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"scrollContainers","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-points-y"},"scroll-snap-stop":{"syntax":"normal | always","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop"},"scroll-snap-type":{"syntax":"none | [ x | y | block | inline | both ] [ mandatory | proximity ]?","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type"},"scroll-snap-type-x":{"syntax":"none | mandatory | proximity","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"scrollContainers","computed":"asSpecified","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-x"},"scroll-snap-type-y":{"syntax":"none | mandatory | proximity","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Scroll Snap"],"initial":"none","appliesto":"scrollContainers","computed":"asSpecified","order":"uniqueOrder","status":"obsolete","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type-y"},"shape-image-threshold":{"syntax":"<alpha-value>","media":"visual","inherited":false,"animationType":"number","percentages":"no","groups":["CSS Shapes"],"initial":"0.0","appliesto":"floats","computed":"specifiedValueNumberClipped0To1","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold"},"shape-margin":{"syntax":"<length-percentage>","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Shapes"],"initial":"0","appliesto":"floats","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/shape-margin"},"shape-outside":{"syntax":"none | <shape-box> || <basic-shape> | <image>","media":"visual","inherited":false,"animationType":"basicShapeOtherwiseNo","percentages":"no","groups":["CSS Shapes"],"initial":"none","appliesto":"floats","computed":"asDefinedForBasicShapeWithAbsoluteURIOtherwiseAsSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/shape-outside"},"tab-size":{"syntax":"<integer> | <length>","media":"visual","inherited":true,"animationType":"length","percentages":"no","groups":["CSS Text"],"initial":"8","appliesto":"blockContainers","computed":"specifiedIntegerOrAbsoluteLength","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/tab-size"},"table-layout":{"syntax":"auto | fixed","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Table"],"initial":"auto","appliesto":"tableElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/table-layout"},"text-align":{"syntax":"start | end | left | right | center | justify | match-parent","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"startOrNamelessValueIfLTRRightIfRTL","appliesto":"blockContainers","computed":"asSpecifiedExceptMatchParent","order":"orderOfAppearance","alsoAppliesTo":["::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-align"},"text-align-last":{"syntax":"auto | start | end | left | right | center | justify","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"auto","appliesto":"blockContainers","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-align-last"},"text-combine-upright":{"syntax":"none | all | [ digits <integer>? ]","media":"visual","inherited":true,"animationType":"notAnimatable","percentages":"no","groups":["CSS Writing Modes"],"initial":"none","appliesto":"nonReplacedInlineElements","computed":"keywordPlusIntegerIfDigits","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-combine-upright"},"text-decoration":{"syntax":"<\'text-decoration-line\'> || <\'text-decoration-style\'> || <\'text-decoration-color\'> || <\'text-decoration-thickness\'>","media":"visual","inherited":false,"animationType":["text-decoration-color","text-decoration-style","text-decoration-line","text-decoration-thickness"],"percentages":"no","groups":["CSS Text Decoration"],"initial":["text-decoration-color","text-decoration-style","text-decoration-line"],"appliesto":"allElements","computed":["text-decoration-line","text-decoration-style","text-decoration-color","text-decoration-thickness"],"order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration"},"text-decoration-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Text Decoration"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-color"},"text-decoration-line":{"syntax":"none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-line"},"text-decoration-skip":{"syntax":"none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"objects","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip"},"text-decoration-skip-ink":{"syntax":"auto | all | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink"},"text-decoration-style":{"syntax":"solid | double | dotted | dashed | wavy","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"solid","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-style"},"text-decoration-thickness":{"syntax":"auto | from-font | <length> | <percentage> ","media":"visual","inherited":false,"animationType":"byComputedValueType","percentages":"referToElementFontSize","groups":["CSS Text Decoration"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness"},"text-emphasis":{"syntax":"<\'text-emphasis-style\'> || <\'text-emphasis-color\'>","media":"visual","inherited":false,"animationType":["text-emphasis-color","text-emphasis-style"],"percentages":"no","groups":["CSS Text Decoration"],"initial":["text-emphasis-style","text-emphasis-color"],"appliesto":"allElements","computed":["text-emphasis-style","text-emphasis-color"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-emphasis"},"text-emphasis-color":{"syntax":"<color>","media":"visual","inherited":false,"animationType":"color","percentages":"no","groups":["CSS Text Decoration"],"initial":"currentcolor","appliesto":"allElements","computed":"computedColor","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color"},"text-emphasis-position":{"syntax":"[ over | under ] && [ right | left ]","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"over right","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position"},"text-emphasis-style":{"syntax":"none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style"},"text-indent":{"syntax":"<length-percentage> && hanging? && each-line?","media":"visual","inherited":true,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Text"],"initial":"0","appliesto":"blockContainers","computed":"percentageOrAbsoluteLengthPlusKeywords","order":"lengthOrPercentageBeforeKeywords","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-indent"},"text-justify":{"syntax":"auto | inter-character | inter-word | none","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"auto","appliesto":"inlineLevelAndTableCellElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-justify"},"text-orientation":{"syntax":"mixed | upright | sideways","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Writing Modes"],"initial":"mixed","appliesto":"allElementsExceptTableRowGroupsRowsColumnGroupsAndColumns","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-orientation"},"text-overflow":{"syntax":"[ clip | ellipsis | <string> ]{1,2}","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"clip","appliesto":"blockContainerElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-overflow"},"text-rendering":{"syntax":"auto | optimizeSpeed | optimizeLegibility | geometricPrecision","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Miscellaneous"],"initial":"auto","appliesto":"textElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-rendering"},"text-shadow":{"syntax":"none | <shadow-t>#","media":"visual","inherited":true,"animationType":"shadowList","percentages":"no","groups":["CSS Text Decoration"],"initial":"none","appliesto":"allElements","computed":"colorPlusThreeAbsoluteLengths","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-shadow"},"text-size-adjust":{"syntax":"none | auto | <percentage>","media":"visual","inherited":true,"animationType":"discrete","percentages":"referToSizeOfFont","groups":["CSS Text"],"initial":"autoForSmartphoneBrowsersSupportingInflation","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"experimental","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-size-adjust"},"text-transform":{"syntax":"none | capitalize | uppercase | lowercase | full-width | full-size-kana","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"none","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-transform"},"text-underline-offset":{"syntax":"auto | <length> | <percentage> ","media":"visual","inherited":true,"animationType":"byComputedValueType","percentages":"referToElementFontSize","groups":["CSS Text Decoration"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-underline-offset"},"text-underline-position":{"syntax":"auto | from-font | [ under || [ left | right ] ]","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text Decoration"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/text-underline-position"},"top":{"syntax":"<length> | <percentage> | auto","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToContainingBlockHeight","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"lengthAbsolutePercentageAsSpecifiedOtherwiseAuto","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/top"},"touch-action":{"syntax":"auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["Pointer Events"],"initial":"auto","appliesto":"allElementsExceptNonReplacedInlineElementsTableRowsColumnsRowColumnGroups","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/touch-action"},"transform":{"syntax":"none | <transform-list>","media":"visual","inherited":false,"animationType":"transform","percentages":"referToSizeOfBoundingBox","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transform"},"transform-box":{"syntax":"content-box | border-box | fill-box | stroke-box | view-box","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transforms"],"initial":"view-box","appliesto":"transformableElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transform-box"},"transform-origin":{"syntax":"[ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?","media":"visual","inherited":false,"animationType":"simpleListOfLpc","percentages":"referToSizeOfBoundingBox","groups":["CSS Transforms"],"initial":"50% 50% 0","appliesto":"transformableElements","computed":"forLengthAbsoluteValueOtherwisePercentage","order":"oneOrTwoValuesLengthAbsoluteKeywordsPercentages","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transform-origin"},"transform-style":{"syntax":"flat | preserve-3d","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transforms"],"initial":"flat","appliesto":"transformableElements","computed":"asSpecified","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transform-style"},"transition":{"syntax":"<single-transition>#","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":["transition-delay","transition-duration","transition-property","transition-timing-function"],"appliesto":"allElementsAndPseudos","computed":["transition-delay","transition-duration","transition-property","transition-timing-function"],"order":"orderOfAppearance","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition"},"transition-delay":{"syntax":"<time>#","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":"0s","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition-delay"},"transition-duration":{"syntax":"<time>#","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":"0s","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition-duration"},"transition-property":{"syntax":"none | <single-transition-property>#","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":"all","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition-property"},"transition-timing-function":{"syntax":"<timing-function>#","media":"interactive","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Transitions"],"initial":"ease","appliesto":"allElementsAndPseudos","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/transition-timing-function"},"translate":{"syntax":"none | <length-percentage> [ <length-percentage> <length>? ]?","media":"visual","inherited":false,"animationType":"transform","percentages":"referToSizeOfBoundingBox","groups":["CSS Transforms"],"initial":"none","appliesto":"transformableElements","computed":"asSpecifiedRelativeToAbsoluteLengths","order":"perGrammar","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/translate"},"unicode-bidi":{"syntax":"normal | embed | isolate | bidi-override | isolate-override | plaintext","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Writing Modes"],"initial":"normal","appliesto":"allElementsSomeValuesNoEffectOnNonInlineElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/unicode-bidi"},"user-select":{"syntax":"auto | text | none | contain | all","media":"visual","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Basic User Interface"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/user-select"},"vertical-align":{"syntax":"baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>","media":"visual","inherited":false,"animationType":"length","percentages":"referToLineHeight","groups":["CSS Table"],"initial":"baseline","appliesto":"inlineLevelAndTableCellElements","computed":"absoluteLengthOrKeyword","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/vertical-align"},"visibility":{"syntax":"visible | hidden | collapse","media":"visual","inherited":true,"animationType":"visibility","percentages":"no","groups":["CSS Box Model"],"initial":"visible","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/visibility"},"white-space":{"syntax":"normal | pre | nowrap | pre-wrap | pre-line | break-spaces","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/white-space"},"widows":{"syntax":"<integer>","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Fragmentation"],"initial":"2","appliesto":"blockContainerElements","computed":"asSpecified","order":"perGrammar","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/widows"},"width":{"syntax":"auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)","media":"visual","inherited":false,"animationType":"lpc","percentages":"referToWidthOfContainingBlock","groups":["CSS Box Model"],"initial":"auto","appliesto":"allElementsButNonReplacedAndTableRows","computed":"percentageAutoOrAbsoluteLength","order":"lengthOrPercentageBeforeKeywordIfBothPresent","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/width"},"will-change":{"syntax":"auto | <animateable-feature>#","media":"all","inherited":false,"animationType":"discrete","percentages":"no","groups":["CSS Will Change"],"initial":"auto","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/will-change"},"word-break":{"syntax":"normal | break-all | keep-all | break-word","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/word-break"},"word-spacing":{"syntax":"normal | <length-percentage>","media":"visual","inherited":true,"animationType":"length","percentages":"referToWidthOfAffectedGlyph","groups":["CSS Text"],"initial":"normal","appliesto":"allElements","computed":"optimumMinAndMaxValueOfAbsoluteLengthPercentageOrNormal","order":"uniqueOrder","alsoAppliesTo":["::first-letter","::first-line","::placeholder"],"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/word-spacing"},"word-wrap":{"syntax":"normal | break-word","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Text"],"initial":"normal","appliesto":"nonReplacedInlineElements","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/overflow-wrap"},"writing-mode":{"syntax":"horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr","media":"visual","inherited":true,"animationType":"discrete","percentages":"no","groups":["CSS Writing Modes"],"initial":"horizontal-tb","appliesto":"allElementsExceptTableRowColumnGroupsTableRowsColumns","computed":"asSpecified","order":"uniqueOrder","status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/writing-mode"},"z-index":{"syntax":"auto | <integer>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["CSS Positioning"],"initial":"auto","appliesto":"positionedElements","computed":"asSpecified","order":"uniqueOrder","stacking":true,"status":"standard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/z-index"},"zoom":{"syntax":"normal | reset | <number> | <percentage>","media":"visual","inherited":false,"animationType":"integer","percentages":"no","groups":["Microsoft Extensions"],"initial":"normal","appliesto":"allElements","computed":"asSpecified","order":"uniqueOrder","status":"nonstandard","mdn_url":"https://developer.mozilla.org/docs/Web/CSS/zoom"}}')},99262:function(ue){"use strict";ue.exports=JSON.parse('{"absolute-size":{"syntax":"xx-small | x-small | small | medium | large | x-large | xx-large | xxx-large"},"alpha-value":{"syntax":"<number> | <percentage>"},"angle-percentage":{"syntax":"<angle> | <percentage>"},"angular-color-hint":{"syntax":"<angle-percentage>"},"angular-color-stop":{"syntax":"<color> && <color-stop-angle>?"},"angular-color-stop-list":{"syntax":"[ <angular-color-stop> [, <angular-color-hint>]? ]# , <angular-color-stop>"},"animateable-feature":{"syntax":"scroll-position | contents | <custom-ident>"},"attachment":{"syntax":"scroll | fixed | local"},"attr()":{"syntax":"attr( <attr-name> <type-or-unit>? [, <attr-fallback> ]? )"},"attr-matcher":{"syntax":"[ \'~\' | \'|\' | \'^\' | \'$\' | \'*\' ]? \'=\'"},"attr-modifier":{"syntax":"i | s"},"attribute-selector":{"syntax":"\'[\' <wq-name> \']\' | \'[\' <wq-name> <attr-matcher> [ <string-token> | <ident-token> ] <attr-modifier>? \']\'"},"auto-repeat":{"syntax":"repeat( [ auto-fill | auto-fit ] , [ <line-names>? <fixed-size> ]+ <line-names>? )"},"auto-track-list":{"syntax":"[ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>? <auto-repeat>\\n[ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>?"},"baseline-position":{"syntax":"[ first | last ]? baseline"},"basic-shape":{"syntax":"<inset()> | <circle()> | <ellipse()> | <polygon()> | <path()>"},"bg-image":{"syntax":"none | <image>"},"bg-layer":{"syntax":"<bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box> || <box>"},"bg-position":{"syntax":"[ [ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] | [ center | [ left | right ] <length-percentage>? ] && [ center | [ top | bottom ] <length-percentage>? ] ]"},"bg-size":{"syntax":"[ <length-percentage> | auto ]{1,2} | cover | contain"},"blur()":{"syntax":"blur( <length> )"},"blend-mode":{"syntax":"normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity"},"box":{"syntax":"border-box | padding-box | content-box"},"brightness()":{"syntax":"brightness( <number-percentage> )"},"calc()":{"syntax":"calc( <calc-sum> )"},"calc-sum":{"syntax":"<calc-product> [ [ \'+\' | \'-\' ] <calc-product> ]*"},"calc-product":{"syntax":"<calc-value> [ \'*\' <calc-value> | \'/\' <number> ]*"},"calc-value":{"syntax":"<number> | <dimension> | <percentage> | ( <calc-sum> )"},"cf-final-image":{"syntax":"<image> | <color>"},"cf-mixing-image":{"syntax":"<percentage>? && <image>"},"circle()":{"syntax":"circle( [ <shape-radius> ]? [ at <position> ]? )"},"clamp()":{"syntax":"clamp( <calc-sum>#{3} )"},"class-selector":{"syntax":"\'.\' <ident-token>"},"clip-source":{"syntax":"<url>"},"color":{"syntax":"<rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>"},"color-stop":{"syntax":"<color-stop-length> | <color-stop-angle>"},"color-stop-angle":{"syntax":"<angle-percentage>{1,2}"},"color-stop-length":{"syntax":"<length-percentage>{1,2}"},"color-stop-list":{"syntax":"[ <linear-color-stop> [, <linear-color-hint>]? ]# , <linear-color-stop>"},"combinator":{"syntax":"\'>\' | \'+\' | \'~\' | [ \'||\' ]"},"common-lig-values":{"syntax":"[ common-ligatures | no-common-ligatures ]"},"compat-auto":{"syntax":"searchfield | textarea | push-button | slider-horizontal | checkbox | radio | square-button | menulist | listbox | meter | progress-bar | button"},"composite-style":{"syntax":"clear | copy | source-over | source-in | source-out | source-atop | destination-over | destination-in | destination-out | destination-atop | xor"},"compositing-operator":{"syntax":"add | subtract | intersect | exclude"},"compound-selector":{"syntax":"[ <type-selector>? <subclass-selector>* [ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!"},"compound-selector-list":{"syntax":"<compound-selector>#"},"complex-selector":{"syntax":"<compound-selector> [ <combinator>? <compound-selector> ]*"},"complex-selector-list":{"syntax":"<complex-selector>#"},"conic-gradient()":{"syntax":"conic-gradient( [ from <angle> ]? [ at <position> ]?, <angular-color-stop-list> )"},"contextual-alt-values":{"syntax":"[ contextual | no-contextual ]"},"content-distribution":{"syntax":"space-between | space-around | space-evenly | stretch"},"content-list":{"syntax":"[ <string> | contents | <image> | <quote> | <target> | <leader()> ]+"},"content-position":{"syntax":"center | start | end | flex-start | flex-end"},"content-replacement":{"syntax":"<image>"},"contrast()":{"syntax":"contrast( [ <number-percentage> ] )"},"counter()":{"syntax":"counter( <custom-ident>, <counter-style>? )"},"counter-style":{"syntax":"<counter-style-name> | symbols()"},"counter-style-name":{"syntax":"<custom-ident>"},"counters()":{"syntax":"counters( <custom-ident>, <string>, <counter-style>? )"},"cross-fade()":{"syntax":"cross-fade( <cf-mixing-image> , <cf-final-image>? )"},"cubic-bezier-timing-function":{"syntax":"ease | ease-in | ease-out | ease-in-out | cubic-bezier(<number [0,1]>, <number>, <number [0,1]>, <number>)"},"deprecated-system-color":{"syntax":"ActiveBorder | ActiveCaption | AppWorkspace | Background | ButtonFace | ButtonHighlight | ButtonShadow | ButtonText | CaptionText | GrayText | Highlight | HighlightText | InactiveBorder | InactiveCaption | InactiveCaptionText | InfoBackground | InfoText | Menu | MenuText | Scrollbar | ThreeDDarkShadow | ThreeDFace | ThreeDHighlight | ThreeDLightShadow | ThreeDShadow | Window | WindowFrame | WindowText"},"discretionary-lig-values":{"syntax":"[ discretionary-ligatures | no-discretionary-ligatures ]"},"display-box":{"syntax":"contents | none"},"display-inside":{"syntax":"flow | flow-root | table | flex | grid | ruby"},"display-internal":{"syntax":"table-row-group | table-header-group | table-footer-group | table-row | table-cell | table-column-group | table-column | table-caption | ruby-base | ruby-text | ruby-base-container | ruby-text-container"},"display-legacy":{"syntax":"inline-block | inline-list-item | inline-table | inline-flex | inline-grid"},"display-listitem":{"syntax":"<display-outside>? && [ flow | flow-root ]? && list-item"},"display-outside":{"syntax":"block | inline | run-in"},"drop-shadow()":{"syntax":"drop-shadow( <length>{2,3} <color>? )"},"east-asian-variant-values":{"syntax":"[ jis78 | jis83 | jis90 | jis04 | simplified | traditional ]"},"east-asian-width-values":{"syntax":"[ full-width | proportional-width ]"},"element()":{"syntax":"element( <id-selector> )"},"ellipse()":{"syntax":"ellipse( [ <shape-radius>{2} ]? [ at <position> ]? )"},"ending-shape":{"syntax":"circle | ellipse"},"env()":{"syntax":"env( <custom-ident> , <declaration-value>? )"},"explicit-track-list":{"syntax":"[ <line-names>? <track-size> ]+ <line-names>?"},"family-name":{"syntax":"<string> | <custom-ident>+"},"feature-tag-value":{"syntax":"<string> [ <integer> | on | off ]?"},"feature-type":{"syntax":"@stylistic | @historical-forms | @styleset | @character-variant | @swash | @ornaments | @annotation"},"feature-value-block":{"syntax":"<feature-type> \'{\' <feature-value-declaration-list> \'}\'"},"feature-value-block-list":{"syntax":"<feature-value-block>+"},"feature-value-declaration":{"syntax":"<custom-ident>: <integer>+;"},"feature-value-declaration-list":{"syntax":"<feature-value-declaration>"},"feature-value-name":{"syntax":"<custom-ident>"},"fill-rule":{"syntax":"nonzero | evenodd"},"filter-function":{"syntax":"<blur()> | <brightness()> | <contrast()> | <drop-shadow()> | <grayscale()> | <hue-rotate()> | <invert()> | <opacity()> | <saturate()> | <sepia()>"},"filter-function-list":{"syntax":"[ <filter-function> | <url> ]+"},"final-bg-layer":{"syntax":"<\'background-color\'> || <bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box> || <box>"},"fit-content()":{"syntax":"fit-content( [ <length> | <percentage> ] )"},"fixed-breadth":{"syntax":"<length-percentage>"},"fixed-repeat":{"syntax":"repeat( [ <positive-integer> ] , [ <line-names>? <fixed-size> ]+ <line-names>? )"},"fixed-size":{"syntax":"<fixed-breadth> | minmax( <fixed-breadth> , <track-breadth> ) | minmax( <inflexible-breadth> , <fixed-breadth> )"},"font-stretch-absolute":{"syntax":"normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | <percentage>"},"font-variant-css21":{"syntax":"[ normal | small-caps ]"},"font-weight-absolute":{"syntax":"normal | bold | <number [1,1000]>"},"frequency-percentage":{"syntax":"<frequency> | <percentage>"},"general-enclosed":{"syntax":"[ <function-token> <any-value> ) ] | ( <ident> <any-value> )"},"generic-family":{"syntax":"serif | sans-serif | cursive | fantasy | monospace"},"generic-name":{"syntax":"serif | sans-serif | cursive | fantasy | monospace"},"geometry-box":{"syntax":"<shape-box> | fill-box | stroke-box | view-box"},"gradient":{"syntax":"<linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>"},"grayscale()":{"syntax":"grayscale( <number-percentage> )"},"grid-line":{"syntax":"auto | <custom-ident> | [ <integer> && <custom-ident>? ] | [ span && [ <integer> || <custom-ident> ] ]"},"historical-lig-values":{"syntax":"[ historical-ligatures | no-historical-ligatures ]"},"hsl()":{"syntax":"hsl( <hue> <percentage> <percentage> [ / <alpha-value> ]? ) | hsl( <hue>, <percentage>, <percentage>, <alpha-value>? )"},"hsla()":{"syntax":"hsla( <hue> <percentage> <percentage> [ / <alpha-value> ]? ) | hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )"},"hue":{"syntax":"<number> | <angle>"},"hue-rotate()":{"syntax":"hue-rotate( <angle> )"},"id-selector":{"syntax":"<hash-token>"},"image":{"syntax":"<url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>"},"image()":{"syntax":"image( <image-tags>? [ <image-src>? , <color>? ]! )"},"image-set()":{"syntax":"image-set( <image-set-option># )"},"image-set-option":{"syntax":"[ <image> | <string> ] <resolution>"},"image-src":{"syntax":"<url> | <string>"},"image-tags":{"syntax":"ltr | rtl"},"inflexible-breadth":{"syntax":"<length> | <percentage> | min-content | max-content | auto"},"inset()":{"syntax":"inset( <length-percentage>{1,4} [ round <\'border-radius\'> ]? )"},"invert()":{"syntax":"invert( <number-percentage> )"},"keyframes-name":{"syntax":"<custom-ident> | <string>"},"keyframe-block":{"syntax":"<keyframe-selector># {\\n <declaration-list>\\n}"},"keyframe-block-list":{"syntax":"<keyframe-block>+"},"keyframe-selector":{"syntax":"from | to | <percentage>"},"leader()":{"syntax":"leader( <leader-type> )"},"leader-type":{"syntax":"dotted | solid | space | <string>"},"length-percentage":{"syntax":"<length> | <percentage>"},"line-names":{"syntax":"\'[\' <custom-ident>* \']\'"},"line-name-list":{"syntax":"[ <line-names> | <name-repeat> ]+"},"line-style":{"syntax":"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset"},"line-width":{"syntax":"<length> | thin | medium | thick"},"linear-color-hint":{"syntax":"<length-percentage>"},"linear-color-stop":{"syntax":"<color> <color-stop-length>?"},"linear-gradient()":{"syntax":"linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"mask-layer":{"syntax":"<mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode>"},"mask-position":{"syntax":"[ <length-percentage> | left | center | right ] [ <length-percentage> | top | center | bottom ]?"},"mask-reference":{"syntax":"none | <image> | <mask-source>"},"mask-source":{"syntax":"<url>"},"masking-mode":{"syntax":"alpha | luminance | match-source"},"matrix()":{"syntax":"matrix( <number>#{6} )"},"matrix3d()":{"syntax":"matrix3d( <number>#{16} )"},"max()":{"syntax":"max( <calc-sum># )"},"media-and":{"syntax":"<media-in-parens> [ and <media-in-parens> ]+"},"media-condition":{"syntax":"<media-not> | <media-and> | <media-or> | <media-in-parens>"},"media-condition-without-or":{"syntax":"<media-not> | <media-and> | <media-in-parens>"},"media-feature":{"syntax":"( [ <mf-plain> | <mf-boolean> | <mf-range> ] )"},"media-in-parens":{"syntax":"( <media-condition> ) | <media-feature> | <general-enclosed>"},"media-not":{"syntax":"not <media-in-parens>"},"media-or":{"syntax":"<media-in-parens> [ or <media-in-parens> ]+"},"media-query":{"syntax":"<media-condition> | [ not | only ]? <media-type> [ and <media-condition-without-or> ]?"},"media-query-list":{"syntax":"<media-query>#"},"media-type":{"syntax":"<ident>"},"mf-boolean":{"syntax":"<mf-name>"},"mf-name":{"syntax":"<ident>"},"mf-plain":{"syntax":"<mf-name> : <mf-value>"},"mf-range":{"syntax":"<mf-name> [ \'<\' | \'>\' ]? \'=\'? <mf-value>\\n| <mf-value> [ \'<\' | \'>\' ]? \'=\'? <mf-name>\\n| <mf-value> \'<\' \'=\'? <mf-name> \'<\' \'=\'? <mf-value>\\n| <mf-value> \'>\' \'=\'? <mf-name> \'>\' \'=\'? <mf-value>"},"mf-value":{"syntax":"<number> | <dimension> | <ident> | <ratio>"},"min()":{"syntax":"min( <calc-sum># )"},"minmax()":{"syntax":"minmax( [ <length> | <percentage> | min-content | max-content | auto ] , [ <length> | <percentage> | <flex> | min-content | max-content | auto ] )"},"named-color":{"syntax":"transparent | aliceblue | antiquewhite | aqua | aquamarine | azure | beige | bisque | black | blanchedalmond | blue | blueviolet | brown | burlywood | cadetblue | chartreuse | chocolate | coral | cornflowerblue | cornsilk | crimson | cyan | darkblue | darkcyan | darkgoldenrod | darkgray | darkgreen | darkgrey | darkkhaki | darkmagenta | darkolivegreen | darkorange | darkorchid | darkred | darksalmon | darkseagreen | darkslateblue | darkslategray | darkslategrey | darkturquoise | darkviolet | deeppink | deepskyblue | dimgray | dimgrey | dodgerblue | firebrick | floralwhite | forestgreen | fuchsia | gainsboro | ghostwhite | gold | goldenrod | gray | green | greenyellow | grey | honeydew | hotpink | indianred | indigo | ivory | khaki | lavender | lavenderblush | lawngreen | lemonchiffon | lightblue | lightcoral | lightcyan | lightgoldenrodyellow | lightgray | lightgreen | lightgrey | lightpink | lightsalmon | lightseagreen | lightskyblue | lightslategray | lightslategrey | lightsteelblue | lightyellow | lime | limegreen | linen | magenta | maroon | mediumaquamarine | mediumblue | mediumorchid | mediumpurple | mediumseagreen | mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | midnightblue | mintcream | mistyrose | moccasin | navajowhite | navy | oldlace | olive | olivedrab | orange | orangered | orchid | palegoldenrod | palegreen | paleturquoise | palevioletred | papayawhip | peachpuff | peru | pink | plum | powderblue | purple | rebeccapurple | red | rosybrown | royalblue | saddlebrown | salmon | sandybrown | seagreen | seashell | sienna | silver | skyblue | slateblue | slategray | slategrey | snow | springgreen | steelblue | tan | teal | thistle | tomato | turquoise | violet | wheat | white | whitesmoke | yellow | yellowgreen"},"namespace-prefix":{"syntax":"<ident>"},"ns-prefix":{"syntax":"[ <ident-token> | \'*\' ]? \'|\'"},"number-percentage":{"syntax":"<number> | <percentage>"},"numeric-figure-values":{"syntax":"[ lining-nums | oldstyle-nums ]"},"numeric-fraction-values":{"syntax":"[ diagonal-fractions | stacked-fractions ]"},"numeric-spacing-values":{"syntax":"[ proportional-nums | tabular-nums ]"},"nth":{"syntax":"<an-plus-b> | even | odd"},"opacity()":{"syntax":"opacity( [ <number-percentage> ] )"},"overflow-position":{"syntax":"unsafe | safe"},"outline-radius":{"syntax":"<length> | <percentage>"},"page-body":{"syntax":"<declaration>? [ ; <page-body> ]? | <page-margin-box> <page-body>"},"page-margin-box":{"syntax":"<page-margin-box-type> \'{\' <declaration-list> \'}\'"},"page-margin-box-type":{"syntax":"@top-left-corner | @top-left | @top-center | @top-right | @top-right-corner | @bottom-left-corner | @bottom-left | @bottom-center | @bottom-right | @bottom-right-corner | @left-top | @left-middle | @left-bottom | @right-top | @right-middle | @right-bottom"},"page-selector-list":{"syntax":"[ <page-selector># ]?"},"page-selector":{"syntax":"<pseudo-page>+ | <ident> <pseudo-page>*"},"path()":{"syntax":"path( [ <fill-rule>, ]? <string> )"},"paint()":{"syntax":"paint( <ident>, <declaration-value>? )"},"perspective()":{"syntax":"perspective( <length> )"},"polygon()":{"syntax":"polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )"},"position":{"syntax":"[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]"},"pseudo-class-selector":{"syntax":"\':\' <ident-token> | \':\' <function-token> <any-value> \')\'"},"pseudo-element-selector":{"syntax":"\':\' <pseudo-class-selector>"},"pseudo-page":{"syntax":": [ left | right | first | blank ]"},"quote":{"syntax":"open-quote | close-quote | no-open-quote | no-close-quote"},"radial-gradient()":{"syntax":"radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"relative-selector":{"syntax":"<combinator>? <complex-selector>"},"relative-selector-list":{"syntax":"<relative-selector>#"},"relative-size":{"syntax":"larger | smaller"},"repeat-style":{"syntax":"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}"},"repeating-linear-gradient()":{"syntax":"repeating-linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"repeating-radial-gradient()":{"syntax":"repeating-radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"rgb()":{"syntax":"rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )"},"rgba()":{"syntax":"rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? )"},"rotate()":{"syntax":"rotate( [ <angle> | <zero> ] )"},"rotate3d()":{"syntax":"rotate3d( <number> , <number> , <number> , [ <angle> | <zero> ] )"},"rotateX()":{"syntax":"rotateX( [ <angle> | <zero> ] )"},"rotateY()":{"syntax":"rotateY( [ <angle> | <zero> ] )"},"rotateZ()":{"syntax":"rotateZ( [ <angle> | <zero> ] )"},"saturate()":{"syntax":"saturate( <number-percentage> )"},"scale()":{"syntax":"scale( <number> , <number>? )"},"scale3d()":{"syntax":"scale3d( <number> , <number> , <number> )"},"scaleX()":{"syntax":"scaleX( <number> )"},"scaleY()":{"syntax":"scaleY( <number> )"},"scaleZ()":{"syntax":"scaleZ( <number> )"},"self-position":{"syntax":"center | start | end | self-start | self-end | flex-start | flex-end"},"shape-radius":{"syntax":"<length-percentage> | closest-side | farthest-side"},"skew()":{"syntax":"skew( [ <angle> | <zero> ] , [ <angle> | <zero> ]? )"},"skewX()":{"syntax":"skewX( [ <angle> | <zero> ] )"},"skewY()":{"syntax":"skewY( [ <angle> | <zero> ] )"},"sepia()":{"syntax":"sepia( <number-percentage> )"},"shadow":{"syntax":"inset? && <length>{2,4} && <color>?"},"shadow-t":{"syntax":"[ <length>{2,3} && <color>? ]"},"shape":{"syntax":"rect(<top>, <right>, <bottom>, <left>)"},"shape-box":{"syntax":"<box> | margin-box"},"side-or-corner":{"syntax":"[ left | right ] || [ top | bottom ]"},"single-animation":{"syntax":"<time> || <timing-function> || <time> || <single-animation-iteration-count> || <single-animation-direction> || <single-animation-fill-mode> || <single-animation-play-state> || [ none | <keyframes-name> ]"},"single-animation-direction":{"syntax":"normal | reverse | alternate | alternate-reverse"},"single-animation-fill-mode":{"syntax":"none | forwards | backwards | both"},"single-animation-iteration-count":{"syntax":"infinite | <number>"},"single-animation-play-state":{"syntax":"running | paused"},"single-transition":{"syntax":"[ none | <single-transition-property> ] || <time> || <timing-function> || <time>"},"single-transition-property":{"syntax":"all | <custom-ident>"},"size":{"syntax":"closest-side | farthest-side | closest-corner | farthest-corner | <length> | <length-percentage>{2}"},"step-position":{"syntax":"jump-start | jump-end | jump-none | jump-both | start | end"},"step-timing-function":{"syntax":"step-start | step-end | steps(<integer>[, <step-position>]?)"},"subclass-selector":{"syntax":"<id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector>"},"supports-condition":{"syntax":"not <supports-in-parens> | <supports-in-parens> [ and <supports-in-parens> ]* | <supports-in-parens> [ or <supports-in-parens> ]*"},"supports-in-parens":{"syntax":"( <supports-condition> ) | <supports-feature> | <general-enclosed>"},"supports-feature":{"syntax":"<supports-decl> | <supports-selector-fn>"},"supports-decl":{"syntax":"( <declaration> )"},"supports-selector-fn":{"syntax":"selector( <complex-selector> )"},"symbol":{"syntax":"<string> | <image> | <custom-ident>"},"target":{"syntax":"<target-counter()> | <target-counters()> | <target-text()>"},"target-counter()":{"syntax":"target-counter( [ <string> | <url> ] , <custom-ident> , <counter-style>? )"},"target-counters()":{"syntax":"target-counters( [ <string> | <url> ] , <custom-ident> , <string> , <counter-style>? )"},"target-text()":{"syntax":"target-text( [ <string> | <url> ] , [ content | before | after | first-letter ]? )"},"time-percentage":{"syntax":"<time> | <percentage>"},"timing-function":{"syntax":"linear | <cubic-bezier-timing-function> | <step-timing-function>"},"track-breadth":{"syntax":"<length-percentage> | <flex> | min-content | max-content | auto"},"track-list":{"syntax":"[ <line-names>? [ <track-size> | <track-repeat> ] ]+ <line-names>?"},"track-repeat":{"syntax":"repeat( [ <positive-integer> ] , [ <line-names>? <track-size> ]+ <line-names>? )"},"track-size":{"syntax":"<track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) | fit-content( [ <length> | <percentage> ] )"},"transform-function":{"syntax":"<matrix()> | <translate()> | <translateX()> | <translateY()> | <scale()> | <scaleX()> | <scaleY()> | <rotate()> | <skew()> | <skewX()> | <skewY()> | <matrix3d()> | <translate3d()> | <translateZ()> | <scale3d()> | <scaleZ()> | <rotate3d()> | <rotateX()> | <rotateY()> | <rotateZ()> | <perspective()>"},"transform-list":{"syntax":"<transform-function>+"},"translate()":{"syntax":"translate( <length-percentage> , <length-percentage>? )"},"translate3d()":{"syntax":"translate3d( <length-percentage> , <length-percentage> , <length> )"},"translateX()":{"syntax":"translateX( <length-percentage> )"},"translateY()":{"syntax":"translateY( <length-percentage> )"},"translateZ()":{"syntax":"translateZ( <length> )"},"type-or-unit":{"syntax":"string | color | url | integer | number | length | angle | time | frequency | cap | ch | em | ex | ic | lh | rlh | rem | vb | vi | vw | vh | vmin | vmax | mm | Q | cm | in | pt | pc | px | deg | grad | rad | turn | ms | s | Hz | kHz | %"},"type-selector":{"syntax":"<wq-name> | <ns-prefix>? \'*\'"},"var()":{"syntax":"var( <custom-property-name> , <declaration-value>? )"},"viewport-length":{"syntax":"auto | <length-percentage>"},"wq-name":{"syntax":"<ns-prefix>? <ident-token>"}}')},4147:function(ue){"use strict";ue.exports={i8:"2.2.49"}}},function(ue){ue(ue.s=79130)}]); |