You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gns3-server/gns3server/static/web-ui/main.2508108fae5a3eec0c74.js

1 line
3.2 MiB

(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{98255:function(le){function q(f){return Promise.resolve().then(function(){var U=new Error("Cannot find module '"+f+"'");throw U.code="MODULE_NOT_FOUND",U})}q.keys=function(){return[]},q.resolve=q,q.id=98255,le.exports=q},82908:function(le){le.exports=function(f,U){(null==U||U>f.length)&&(U=f.length);for(var B=0,V=new Array(U);B<U;B++)V[B]=f[B];return V},le.exports.default=le.exports,le.exports.__esModule=!0},36457:function(le){le.exports=function(f){if(Array.isArray(f))return f},le.exports.default=le.exports,le.exports.__esModule=!0},35036:function(le){le.exports=function(f,U){var B=null==f?null:"undefined"!=typeof Symbol&&f[Symbol.iterator]||f["@@iterator"];if(null!=B){var R,C,V=[],Z=!0,w=!1;try{for(B=B.call(f);!(Z=(R=B.next()).done)&&(V.push(R.value),!U||V.length!==U);Z=!0);}catch(_){w=!0,C=_}finally{try{!Z&&null!=B.return&&B.return()}finally{if(w)throw C}}return V}},le.exports.default=le.exports,le.exports.__esModule=!0},13969:function(le){le.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.")},le.exports.default=le.exports,le.exports.__esModule=!0},6326:function(le,q,f){var U=f(36457),B=f(35036),V=f(54850),Z=f(13969);le.exports=function(R,C){return U(R)||B(R,C)||V(R,C)||Z()},le.exports.default=le.exports,le.exports.__esModule=!0},54850:function(le,q,f){var U=f(82908);le.exports=function(V,Z){if(V){if("string"==typeof V)return U(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 U(V,Z)}},le.exports.default=le.exports,le.exports.__esModule=!0},26552:function(le,q,f){le.exports=f(55590)},61855:function(le,q,f){"use strict";f.d(q,{ZT:function(){return B},mG:function(){return _},Jh:function(){return N},ev:function(){return M}});var U=function(ie,se){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,de){ue.__proto__=de}||function(ue,de){for(var oe in de)Object.prototype.hasOwnProperty.call(de,oe)&&(ue[oe]=de[oe])})(ie,se)};function B(ie,se){if("function"!=typeof se&&null!==se)throw new TypeError("Class extends value "+String(se)+" is not a constructor or null");function ue(){this.constructor=ie}U(ie,se),ie.prototype=null===se?Object.create(se):(ue.prototype=se.prototype,new ue)}function _(ie,se,ue,de){return new(ue||(ue=Promise))(function($,ye){function ve(gt){try{Ne(de.next(gt))}catch(_t){ye(_t)}}function et(gt){try{Ne(de.throw(gt))}catch(_t){ye(_t)}}function Ne(gt){gt.done?$(gt.value):function($){return $ instanceof ue?$:new ue(function(ye){ye($)})}(gt.value).then(ve,et)}Ne((de=de.apply(ie,se||[])).next())})}function N(ie,se){var de,oe,$,ye,ue={label:0,sent:function(){if(1&$[0])throw $[1];return $[1]},trys:[],ops:[]};return ye={next:ve(0),throw:ve(1),return:ve(2)},"function"==typeof Symbol&&(ye[Symbol.iterator]=function(){return this}),ye;function ve(Ne){return function(gt){return function(Ne){if(de)throw new TypeError("Generator is already executing.");for(;ue;)try{if(de=1,oe&&($=2&Ne[0]?oe.return:Ne[0]?oe.throw||(($=oe.return)&&$.call(oe),0):oe.next)&&!($=$.call(oe,Ne[1])).done)return $;switch(oe=0,$&&(Ne=[2&Ne[0],$.value]),Ne[0]){case 0:case 1:$=Ne;break;case 4:return ue.label++,{value:Ne[1],done:!1};case 5:ue.label++,oe=Ne[1],Ne=[0];continue;case 7:Ne=ue.ops.pop(),ue.trys.pop();continue;default:if(!($=($=ue.trys).length>0&&$[$.length-1])&&(6===Ne[0]||2===Ne[0])){ue=0;continue}if(3===Ne[0]&&(!$||Ne[1]>$[0]&&Ne[1]<$[3])){ue.label=Ne[1];break}if(6===Ne[0]&&ue.label<$[1]){ue.label=$[1],$=Ne;break}if($&&ue.label<$[2]){ue.label=$[2],ue.ops.push(Ne);break}$[2]&&ue.ops.pop(),ue.trys.pop();continue}Ne=se.call(ie,ue)}catch(gt){Ne=[6,gt],oe=0}finally{de=$=0}if(5&Ne[0])throw Ne[1];return{value:Ne[0]?Ne[1]:void 0,done:!0}}([Ne,gt])}}}function M(ie,se,ue){if(ue||2===arguments.length)for(var $,de=0,oe=se.length;de<oe;de++)($||!(de in se))&&($||($=Array.prototype.slice.call(se,0,de)),$[de]=se[de]);return ie.concat($||Array.prototype.slice.call(se))}},739:function(le,q,f){"use strict";f.d(q,{l3:function(){return w},_j:function(){return V},LC:function(){return Z},ZN:function(){return A},jt:function(){return C},pV:function(){return T},F4:function(){return P},IO:function(){return E},vP:function(){return N},SB:function(){return O},oB:function(){return D},eR:function(){return y},X$:function(){return R},ZE:function(){return L},k1:function(){return j}});var U=f(14105),B=f(18967),V=function K(){(0,B.Z)(this,K)},Z=function K(){(0,B.Z)(this,K)},w="*";function R(K,z){return{type:7,name:K,definitions:z,options:{}}}function C(K){var z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:z,timings:K}}function N(K){var z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:K,options:z}}function D(K){return{type:6,styles:K,offset:null}}function O(K,z,Q){return{type:0,name:K,styles:z,options:Q}}function P(K){return{type:5,steps:K}}function y(K,z){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:K,animation:z,options:Q}}function T(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:K}}function E(K,z){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:K,animation:z,options:Q}}function S(K){Promise.resolve(null).then(K)}var A=function(){function K(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,B.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=z+Q}return(0,U.Z)(K,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{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:"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 Q=this;S(function(){return Q._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(Q){return Q()}),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(Q){return Q()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(Q){this._position=this.totalTime?Q*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(Q){var ae="start"==Q?this._onStartFns:this._onDoneFns;ae.forEach(function(ie){return ie()}),ae.length=0}}]),K}(),L=function(){function K(z){var Q=this;(0,B.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=z;var ae=0,ie=0,se=0,ue=this.players.length;0==ue?S(function(){return Q._onFinish()}):this.players.forEach(function(de){de.onDone(function(){++ae==ue&&Q._onFinish()}),de.onDestroy(function(){++ie==ue&&Q._onDestroy()}),de.onStart(function(){++se==ue&&Q._onStart()})}),this.totalTime=this.players.reduce(function(de,oe){return Math.max(de,oe.totalTime)},0)}return(0,U.Z)(K,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(Q){return Q.init()})}},{key:"onStart",value:function(Q){this._onStartFns.push(Q)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[])}},{key:"onDone",value:function(Q){this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(Q){return Q.play()})}},{key:"pause",value:function(){this.players.forEach(function(Q){return Q.pause()})}},{key:"restart",value:function(){this.players.forEach(function(Q){return Q.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(Q){return Q.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(Q){return Q.destroy()}),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(Q){return Q.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(Q){var ae=Q*this.totalTime;this.players.forEach(function(ie){var se=ie.totalTime?Math.min(1,ae/ie.totalTime):1;ie.setPosition(se)})}},{key:"getPosition",value:function(){var Q=this.players.reduce(function(ae,ie){return null===ae||ie.totalTime>ae.totalTime?ie:ae},null);return null!=Q?Q.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(Q){Q.beforeDestroy&&Q.beforeDestroy()})}},{key:"triggerCallback",value:function(Q){var ae="start"==Q?this._onStartFns:this._onDoneFns;ae.forEach(function(ie){return ie()}),ae.length=0}}]),K}(),j="!"},6517:function(le,q,f){"use strict";f.d(q,{rt:function(){return at},s1:function(){return Se},$s:function(){return Ne},kH:function(){return Vt},Em:function(){return Oe},tE:function(){return ir},qV:function(){return Hn},qm:function(){return Ue},Kd:function(){return Nn},X6:function(){return he},yG:function(){return Ge}});var U=f(27235),B=f(20901),V=f(89200),Z=f(10509),w=f(97154),R=f(18967),C=f(14105),_=f(40098),N=f(65508),D=f(68707),O=f(5051),P=f(90838),y=f(43161),g=f(32819),T=f(59371),M=f(57263),E=f(58780),x=f(85639),S=f(48359),A=f(18756),L=f(76161),j=f(44213),K=f(78081),z=f(15427),Q=f(96798);function ue(Ce,Fe){return(Ce.getAttribute(Fe)||"").match(/\S+/g)||[]}var de="cdk-describedby-message-container",oe="cdk-describedby-message",$="cdk-describedby-host",ye=0,ve=new Map,et=null,Ne=function(){var Ce=function(){function Fe(Ae){(0,R.Z)(this,Fe),this._document=Ae}return(0,C.Z)(Fe,[{key:"describe",value:function(Le,ze,Nt){if(this._canBeDescribed(Le,ze)){var mn=gt(ze,Nt);"string"!=typeof ze?(_t(ze),ve.set(mn,{messageElement:ze,referenceCount:0})):ve.has(mn)||this._createMessageElement(ze,Nt),this._isElementDescribedByMessage(Le,mn)||this._addMessageReference(Le,mn)}}},{key:"removeDescription",value:function(Le,ze,Nt){if(ze&&this._isElementNode(Le)){var mn=gt(ze,Nt);if(this._isElementDescribedByMessage(Le,mn)&&this._removeMessageReference(Le,mn),"string"==typeof ze){var Xn=ve.get(mn);Xn&&0===Xn.referenceCount&&this._deleteMessageElement(mn)}et&&0===et.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var Le=this._document.querySelectorAll("[".concat($,"]")),ze=0;ze<Le.length;ze++)this._removeCdkDescribedByReferenceIds(Le[ze]),Le[ze].removeAttribute($);et&&this._deleteMessagesContainer(),ve.clear()}},{key:"_createMessageElement",value:function(Le,ze){var Nt=this._document.createElement("div");_t(Nt),Nt.textContent=Le,ze&&Nt.setAttribute("role",ze),this._createMessagesContainer(),et.appendChild(Nt),ve.set(gt(Le,ze),{messageElement:Nt,referenceCount:0})}},{key:"_deleteMessageElement",value:function(Le){var ze=ve.get(Le),Nt=ze&&ze.messageElement;et&&Nt&&et.removeChild(Nt),ve.delete(Le)}},{key:"_createMessagesContainer",value:function(){if(!et){var Le=this._document.getElementById(de);Le&&Le.parentNode&&Le.parentNode.removeChild(Le),(et=this._document.createElement("div")).id=de,et.style.visibility="hidden",et.classList.add("cdk-visually-hidden"),this._document.body.appendChild(et)}}},{key:"_deleteMessagesContainer",value:function(){et&&et.parentNode&&(et.parentNode.removeChild(et),et=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(Le){var ze=ue(Le,"aria-describedby").filter(function(Nt){return 0!=Nt.indexOf(oe)});Le.setAttribute("aria-describedby",ze.join(" "))}},{key:"_addMessageReference",value:function(Le,ze){var Nt=ve.get(ze);(function(Ce,Fe,Ae){var Le=ue(Ce,Fe);Le.some(function(ze){return ze.trim()==Ae.trim()})||(Le.push(Ae.trim()),Ce.setAttribute(Fe,Le.join(" ")))})(Le,"aria-describedby",Nt.messageElement.id),Le.setAttribute($,""),Nt.referenceCount++}},{key:"_removeMessageReference",value:function(Le,ze){var Nt=ve.get(ze);Nt.referenceCount--,function(Ce,Fe,Ae){var ze=ue(Ce,Fe).filter(function(Nt){return Nt!=Ae.trim()});ze.length?Ce.setAttribute(Fe,ze.join(" ")):Ce.removeAttribute(Fe)}(Le,"aria-describedby",Nt.messageElement.id),Le.removeAttribute($)}},{key:"_isElementDescribedByMessage",value:function(Le,ze){var Nt=ue(Le,"aria-describedby"),mn=ve.get(ze),Xn=mn&&mn.messageElement.id;return!!Xn&&-1!=Nt.indexOf(Xn)}},{key:"_canBeDescribed",value:function(Le,ze){if(!this._isElementNode(Le))return!1;if(ze&&"object"==typeof ze)return!0;var Nt=null==ze?"":"".concat(ze).trim(),mn=Le.getAttribute("aria-label");return!(!Nt||mn&&mn.trim()===Nt)}},{key:"_isElementNode",value:function(Le){return Le.nodeType===this._document.ELEMENT_NODE}}]),Fe}();return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.LFG(_.K0))},Ce.\u0275prov=N.Yz7({factory:function(){return new Ce(N.LFG(_.K0))},token:Ce,providedIn:"root"}),Ce}();function gt(Ce,Fe){return"string"==typeof Ce?"".concat(Fe||"","/").concat(Ce):Ce}function _t(Ce){Ce.id||(Ce.id="".concat(oe,"-").concat(ye++))}var Rt=function(){function Ce(Fe){var Ae=this;(0,R.Z)(this,Ce),this._items=Fe,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new D.xQ,this._typeaheadSubscription=O.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,Fe instanceof N.n_E&&Fe.changes.subscribe(function(Le){if(Ae._activeItem){var Nt=Le.toArray().indexOf(Ae._activeItem);Nt>-1&&Nt!==Ae._activeItemIndex&&(Ae._activeItemIndex=Nt)}})}return(0,C.Z)(Ce,[{key:"skipPredicate",value:function(Ae){return this._skipPredicateFn=Ae,this}},{key:"withWrap",value:function(){var Ae=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=Ae,this}},{key:"withVerticalOrientation",value:function(){var Ae=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=Ae,this}},{key:"withHorizontalOrientation",value:function(Ae){return this._horizontal=Ae,this}},{key:"withAllowedModifierKeys",value:function(Ae){return this._allowedModifierKeys=Ae,this}},{key:"withTypeAhead",value:function(){var Ae=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 Ae._pressedLetters.push(ze)}),(0,M.b)(Le),(0,E.h)(function(){return Ae._pressedLetters.length>0}),(0,x.U)(function(){return Ae._pressedLetters.join("")})).subscribe(function(ze){for(var Nt=Ae._getItemsArray(),mn=1;mn<Nt.length+1;mn++){var Xn=(Ae._activeItemIndex+mn)%Nt.length,Jr=Nt[Xn];if(!Ae._skipPredicateFn(Jr)&&0===Jr.getLabel().toUpperCase().trim().indexOf(ze)){Ae.setActiveItem(Xn);break}}Ae._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var Ae=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=Ae,this}},{key:"setActiveItem",value:function(Ae){var Le=this._activeItem;this.updateActiveItem(Ae),this._activeItem!==Le&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(Ae){var Le=this,ze=Ae.keyCode,mn=["altKey","ctrlKey","metaKey","shiftKey"].every(function(Xn){return!Ae[Xn]||Le._allowedModifierKeys.indexOf(Xn)>-1});switch(ze){case g.Mf:return void this.tabOut.next();case g.JH:if(this._vertical&&mn){this.setNextItemActive();break}return;case g.LH:if(this._vertical&&mn){this.setPreviousItemActive();break}return;case g.SV:if(this._horizontal&&mn){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case g.oh:if(this._horizontal&&mn){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case g.Sd:if(this._homeAndEnd&&mn){this.setFirstItemActive();break}return;case g.uR:if(this._homeAndEnd&&mn){this.setLastItemActive();break}return;default:return void((mn||(0,g.Vb)(Ae,"shiftKey"))&&(Ae.key&&1===Ae.key.length?this._letterKeyStream.next(Ae.key.toLocaleUpperCase()):(ze>=g.A&&ze<=g.Z||ze>=g.xE&&ze<=g.aO)&&this._letterKeyStream.next(String.fromCharCode(ze))))}this._pressedLetters=[],Ae.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(Ae){var Le=this._getItemsArray(),ze="number"==typeof Ae?Ae:Le.indexOf(Ae),Nt=Le[ze];this._activeItem=null==Nt?null:Nt,this._activeItemIndex=ze}},{key:"_setActiveItemByDelta",value:function(Ae){this._wrap?this._setActiveInWrapMode(Ae):this._setActiveInDefaultMode(Ae)}},{key:"_setActiveInWrapMode",value:function(Ae){for(var Le=this._getItemsArray(),ze=1;ze<=Le.length;ze++){var Nt=(this._activeItemIndex+Ae*ze+Le.length)%Le.length;if(!this._skipPredicateFn(Le[Nt]))return void this.setActiveItem(Nt)}}},{key:"_setActiveInDefaultMode",value:function(Ae){this._setActiveItemByIndex(this._activeItemIndex+Ae,Ae)}},{key:"_setActiveItemByIndex",value:function(Ae,Le){var ze=this._getItemsArray();if(ze[Ae]){for(;this._skipPredicateFn(ze[Ae]);)if(!ze[Ae+=Le])return;this.setActiveItem(Ae)}}},{key:"_getItemsArray",value:function(){return this._items instanceof N.n_E?this._items.toArray():this._items}}]),Ce}(),Se=function(Ce){(0,Z.Z)(Ae,Ce);var Fe=(0,w.Z)(Ae);function Ae(){return(0,R.Z)(this,Ae),Fe.apply(this,arguments)}return(0,C.Z)(Ae,[{key:"setActiveItem",value:function(ze){this.activeItem&&this.activeItem.setInactiveStyles(),(0,B.Z)((0,V.Z)(Ae.prototype),"setActiveItem",this).call(this,ze),this.activeItem&&this.activeItem.setActiveStyles()}}]),Ae}(Rt),Oe=function(Ce){(0,Z.Z)(Ae,Ce);var Fe=(0,w.Z)(Ae);function Ae(){var Le;return(0,R.Z)(this,Ae),(Le=Fe.apply(this,arguments))._origin="program",Le}return(0,C.Z)(Ae,[{key:"setFocusOrigin",value:function(ze){return this._origin=ze,this}},{key:"setActiveItem",value:function(ze){(0,B.Z)((0,V.Z)(Ae.prototype),"setActiveItem",this).call(this,ze),this.activeItem&&this.activeItem.focus(this._origin)}}]),Ae}(Rt),ct=function(){var Ce=function(){function Fe(Ae){(0,R.Z)(this,Fe),this._platform=Ae}return(0,C.Z)(Fe,[{key:"isDisabled",value:function(Le){return Le.hasAttribute("disabled")}},{key:"isVisible",value:function(Le){return function(Ce){return!!(Ce.offsetWidth||Ce.offsetHeight||"function"==typeof Ce.getClientRects&&Ce.getClientRects().length)}(Le)&&"visible"===getComputedStyle(Le).visibility}},{key:"isTabbable",value:function(Le){if(!this._platform.isBrowser)return!1;var ze=function(Ce){try{return Ce.frameElement}catch(Fe){return null}}(function(Ce){return Ce.ownerDocument&&Ce.ownerDocument.defaultView||window}(Le));if(ze&&(-1===bt(ze)||!this.isVisible(ze)))return!1;var Nt=Le.nodeName.toLowerCase(),mn=bt(Le);return Le.hasAttribute("contenteditable")?-1!==mn:!("iframe"===Nt||"object"===Nt||this._platform.WEBKIT&&this._platform.IOS&&!function(Ce){var Fe=Ce.nodeName.toLowerCase(),Ae="input"===Fe&&Ce.type;return"text"===Ae||"password"===Ae||"select"===Fe||"textarea"===Fe}(Le))&&("audio"===Nt?!!Le.hasAttribute("controls")&&-1!==mn:"video"===Nt?-1!==mn&&(null!==mn||this._platform.FIREFOX||Le.hasAttribute("controls")):Le.tabIndex>=0)}},{key:"isFocusable",value:function(Le,ze){return function(Ce){return!function(Ce){return function(Ce){return"input"==Ce.nodeName.toLowerCase()}(Ce)&&"hidden"==Ce.type}(Ce)&&(function(Ce){var Fe=Ce.nodeName.toLowerCase();return"input"===Fe||"select"===Fe||"button"===Fe||"textarea"===Fe}(Ce)||function(Ce){return function(Ce){return"a"==Ce.nodeName.toLowerCase()}(Ce)&&Ce.hasAttribute("href")}(Ce)||Ce.hasAttribute("contenteditable")||jt(Ce))}(Le)&&!this.isDisabled(Le)&&((null==ze?void 0:ze.ignoreVisibility)||this.isVisible(Le))}}]),Fe}();return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.LFG(z.t4))},Ce.\u0275prov=N.Yz7({factory:function(){return new Ce(N.LFG(z.t4))},token:Ce,providedIn:"root"}),Ce}();function jt(Ce){if(!Ce.hasAttribute("tabindex")||void 0===Ce.tabIndex)return!1;var Fe=Ce.getAttribute("tabindex");return"-32768"!=Fe&&!(!Fe||isNaN(parseInt(Fe,10)))}function bt(Ce){if(!jt(Ce))return null;var Fe=parseInt(Ce.getAttribute("tabindex")||"",10);return isNaN(Fe)?-1:Fe}var An=function(){function Ce(Fe,Ae,Le,ze){var Nt=this,mn=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,R.Z)(this,Ce),this._element=Fe,this._checker=Ae,this._ngZone=Le,this._document=ze,this._hasAttached=!1,this.startAnchorListener=function(){return Nt.focusLastTabbableElement()},this.endAnchorListener=function(){return Nt.focusFirstTabbableElement()},this._enabled=!0,mn||this.attachAnchors()}return(0,C.Z)(Ce,[{key:"enabled",get:function(){return this._enabled},set:function(Ae){this._enabled=Ae,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ae,this._startAnchor),this._toggleAnchorTabIndex(Ae,this._endAnchor))}},{key:"destroy",value:function(){var Ae=this._startAnchor,Le=this._endAnchor;Ae&&(Ae.removeEventListener("focus",this.startAnchorListener),Ae.parentNode&&Ae.parentNode.removeChild(Ae)),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 Ae=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){Ae._startAnchor||(Ae._startAnchor=Ae._createAnchor(),Ae._startAnchor.addEventListener("focus",Ae.startAnchorListener)),Ae._endAnchor||(Ae._endAnchor=Ae._createAnchor(),Ae._endAnchor.addEventListener("focus",Ae.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(Ae){var Le=this;return new Promise(function(ze){Le._executeOnStable(function(){return ze(Le.focusInitialElement(Ae))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(Ae){var Le=this;return new Promise(function(ze){Le._executeOnStable(function(){return ze(Le.focusFirstTabbableElement(Ae))})})}},{key:"focusLastTabbableElementWhenReady",value:function(Ae){var Le=this;return new Promise(function(ze){Le._executeOnStable(function(){return ze(Le.focusLastTabbableElement(Ae))})})}},{key:"_getRegionBoundary",value:function(Ae){for(var Le=this._element.querySelectorAll("[cdk-focus-region-".concat(Ae,"], ")+"[cdkFocusRegion".concat(Ae,"], ")+"[cdk-focus-".concat(Ae,"]")),ze=0;ze<Le.length;ze++)Le[ze].hasAttribute("cdk-focus-".concat(Ae))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(Ae,"', ")+"use 'cdkFocusRegion".concat(Ae,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",Le[ze]):Le[ze].hasAttribute("cdk-focus-region-".concat(Ae))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(Ae,"', ")+"use 'cdkFocusRegion".concat(Ae,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",Le[ze]);return"start"==Ae?Le.length?Le[0]:this._getFirstTabbableElement(this._element):Le.length?Le[Le.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(Ae){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(Ae),!!ze}return Le.focus(Ae),!0}return this.focusFirstTabbableElement(Ae)}},{key:"focusFirstTabbableElement",value:function(Ae){var Le=this._getRegionBoundary("start");return Le&&Le.focus(Ae),!!Le}},{key:"focusLastTabbableElement",value:function(Ae){var Le=this._getRegionBoundary("end");return Le&&Le.focus(Ae),!!Le}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(Ae){if(this._checker.isFocusable(Ae)&&this._checker.isTabbable(Ae))return Ae;for(var Le=Ae.children||Ae.childNodes,ze=0;ze<Le.length;ze++){var Nt=Le[ze].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(Le[ze]):null;if(Nt)return Nt}return null}},{key:"_getLastTabbableElement",value:function(Ae){if(this._checker.isFocusable(Ae)&&this._checker.isTabbable(Ae))return Ae;for(var Le=Ae.children||Ae.childNodes,ze=Le.length-1;ze>=0;ze--){var Nt=Le[ze].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Le[ze]):null;if(Nt)return Nt}return null}},{key:"_createAnchor",value:function(){var Ae=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ae),Ae.classList.add("cdk-visually-hidden"),Ae.classList.add("cdk-focus-trap-anchor"),Ae.setAttribute("aria-hidden","true"),Ae}},{key:"_toggleAnchorTabIndex",value:function(Ae,Le){Ae?Le.setAttribute("tabindex","0"):Le.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(Ae){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ae,this._startAnchor),this._toggleAnchorTabIndex(Ae,this._endAnchor))}},{key:"_executeOnStable",value:function(Ae){this._ngZone.isStable?Ae():this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(Ae)}}]),Ce}(),Hn=function(){var Ce=function(){function Fe(Ae,Le,ze){(0,R.Z)(this,Fe),this._checker=Ae,this._ngZone=Le,this._document=ze}return(0,C.Z)(Fe,[{key:"create",value:function(Le){var ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new An(Le,this._checker,this._ngZone,this._document,ze)}}]),Fe}();return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.LFG(ct),N.LFG(N.R0b),N.LFG(_.K0))},Ce.\u0275prov=N.Yz7({factory:function(){return new Ce(N.LFG(ct),N.LFG(N.R0b),N.LFG(_.K0))},token:Ce,providedIn:"root"}),Ce}();function he(Ce){return 0===Ce.offsetX&&0===Ce.offsetY}function Ge(Ce){var Fe=Ce.touches&&Ce.touches[0]||Ce.changedTouches&&Ce.changedTouches[0];return!(!Fe||-1!==Fe.identifier||null!=Fe.radiusX&&1!==Fe.radiusX||null!=Fe.radiusY&&1!==Fe.radiusY)}"undefined"!=typeof Element&&Element;var Ye=new N.OlP("cdk-input-modality-detector-options"),yt={ignoreKeys:[g.zL,g.jx,g.b2,g.MW,g.JU]},Yt=(0,z.i$)({passive:!0,capture:!0}),rn=function(){var Ce=function(){function Fe(Ae,Le,ze,Nt){var mn=this;(0,R.Z)(this,Fe),this._platform=Ae,this._mostRecentTarget=null,this._modality=new P.X(null),this._lastTouchMs=0,this._onKeydown=function(Xn){var Jr,ai;(null===(ai=null===(Jr=mn._options)||void 0===Jr?void 0:Jr.ignoreKeys)||void 0===ai?void 0:ai.some(function(Ir){return Ir===Xn.keyCode}))||(mn._modality.next("keyboard"),mn._mostRecentTarget=(0,z.sA)(Xn))},this._onMousedown=function(Xn){Date.now()-mn._lastTouchMs<650||(mn._modality.next(he(Xn)?"keyboard":"mouse"),mn._mostRecentTarget=(0,z.sA)(Xn))},this._onTouchstart=function(Xn){Ge(Xn)?mn._modality.next("keyboard"):(mn._lastTouchMs=Date.now(),mn._modality.next("touch"),mn._mostRecentTarget=(0,z.sA)(Xn))},this._options=Object.assign(Object.assign({},yt),Nt),this.modalityDetected=this._modality.pipe((0,A.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,L.x)()),Ae.isBrowser&&Le.runOutsideAngular(function(){ze.addEventListener("keydown",mn._onKeydown,Yt),ze.addEventListener("mousedown",mn._onMousedown,Yt),ze.addEventListener("touchstart",mn._onTouchstart,Yt)})}return(0,C.Z)(Fe,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,Yt),document.removeEventListener("mousedown",this._onMousedown,Yt),document.removeEventListener("touchstart",this._onTouchstart,Yt))}}]),Fe}();return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.LFG(z.t4),N.LFG(N.R0b),N.LFG(_.K0),N.LFG(Ye,8))},Ce.\u0275prov=N.Yz7({factory:function(){return new Ce(N.LFG(z.t4),N.LFG(N.R0b),N.LFG(_.K0),N.LFG(Ye,8))},token:Ce,providedIn:"root"}),Ce}(),cn=new N.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),xn=new N.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Nn=function(){var Ce=function(){function Fe(Ae,Le,ze,Nt){(0,R.Z)(this,Fe),this._ngZone=Le,this._defaultOptions=Nt,this._document=ze,this._liveElement=Ae||this._createLiveElement()}return(0,C.Z)(Fe,[{key:"announce",value:function(Le){for(var mn,Xn,ze=this,Nt=this._defaultOptions,Jr=arguments.length,ai=new Array(Jr>1?Jr-1:0),Ir=1;Ir<Jr;Ir++)ai[Ir-1]=arguments[Ir];return 1===ai.length&&"number"==typeof ai[0]?Xn=ai[0]:(mn=ai[0],Xn=ai[1]),this.clear(),clearTimeout(this._previousTimeout),mn||(mn=Nt&&Nt.politeness?Nt.politeness:"polite"),null==Xn&&Nt&&(Xn=Nt.duration),this._liveElement.setAttribute("aria-live",mn),this._ngZone.runOutsideAngular(function(){return new Promise(function(vi){clearTimeout(ze._previousTimeout),ze._previousTimeout=setTimeout(function(){ze._liveElement.textContent=Le,vi(),"number"==typeof Xn&&(ze._previousTimeout=setTimeout(function(){return ze.clear()},Xn))},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),Nt=this._document.createElement("div"),mn=0;mn<ze.length;mn++)ze[mn].parentNode.removeChild(ze[mn]);return Nt.classList.add(Le),Nt.classList.add("cdk-visually-hidden"),Nt.setAttribute("aria-atomic","true"),Nt.setAttribute("aria-live","polite"),this._document.body.appendChild(Nt),Nt}}]),Fe}();return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.LFG(cn,8),N.LFG(N.R0b),N.LFG(_.K0),N.LFG(xn,8))},Ce.\u0275prov=N.Yz7({factory:function(){return new Ce(N.LFG(cn,8),N.LFG(N.R0b),N.LFG(_.K0),N.LFG(xn,8))},token:Ce,providedIn:"root"}),Ce}(),wn=new N.OlP("cdk-focus-monitor-default-options"),Sn=(0,z.i$)({passive:!0,capture:!0}),ir=function(){var Ce=function(){function Fe(Ae,Le,ze,Nt,mn){var Xn=this;(0,R.Z)(this,Fe),this._ngZone=Ae,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(){Xn._windowFocused=!0,Xn._windowFocusTimeoutId=setTimeout(function(){return Xn._windowFocused=!1})},this._stopInputModalityDetector=new D.xQ,this._rootNodeFocusAndBlurListener=function(Jr){for(var ai=(0,z.sA)(Jr),Ir="focus"===Jr.type?Xn._onFocus:Xn._onBlur,vi=ai;vi;vi=vi.parentElement)Ir.call(Xn,Jr,vi)},this._document=Nt,this._detectionMode=(null==mn?void 0:mn.detectionMode)||0}return(0,C.Z)(Fe,[{key:"monitor",value:function(Le){var ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Nt=(0,K.fI)(Le);if(!this._platform.isBrowser||1!==Nt.nodeType)return(0,y.of)(null);var mn=(0,z.kV)(Nt)||this._getDocument(),Xn=this._elementInfo.get(Nt);if(Xn)return ze&&(Xn.checkChildren=!0),Xn.subject;var Jr={checkChildren:ze,subject:new D.xQ,rootNode:mn};return this._elementInfo.set(Nt,Jr),this._registerGlobalListeners(Jr),Jr.subject}},{key:"stopMonitoring",value:function(Le){var ze=(0,K.fI)(Le),Nt=this._elementInfo.get(ze);Nt&&(Nt.subject.complete(),this._setClasses(ze),this._elementInfo.delete(ze),this._removeGlobalListeners(Nt))}},{key:"focusVia",value:function(Le,ze,Nt){var mn=this,Xn=(0,K.fI)(Le);Xn===this._getDocument().activeElement?this._getClosestElementsInfo(Xn).forEach(function(ai){var Ir=(0,U.Z)(ai,2);return mn._originChanged(Ir[0],ze,Ir[1])}):(this._setOrigin(ze),"function"==typeof Xn.focus&&Xn.focus(Nt))}},{key:"ngOnDestroy",value:function(){var Le=this;this._elementInfo.forEach(function(ze,Nt){return Le.stopMonitoring(Nt)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(Le,ze,Nt){Nt?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,Nt=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){ze._origin=Le,ze._originFromTouchInteraction="touch"===Le&&Nt,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 Nt=this._elementInfo.get(ze),mn=(0,z.sA)(Le);!Nt||!Nt.checkChildren&&ze!==mn||this._originChanged(ze,this._getFocusOrigin(mn),Nt)}},{key:"_onBlur",value:function(Le,ze){var Nt=this._elementInfo.get(ze);!Nt||Nt.checkChildren&&Le.relatedTarget instanceof Node&&ze.contains(Le.relatedTarget)||(this._setClasses(ze),this._emitOrigin(Nt.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 Nt=Le.rootNode,mn=this._rootNodeFocusListenerCount.get(Nt)||0;mn||this._ngZone.runOutsideAngular(function(){Nt.addEventListener("focus",ze._rootNodeFocusAndBlurListener,Sn),Nt.addEventListener("blur",ze._rootNodeFocusAndBlurListener,Sn)}),this._rootNodeFocusListenerCount.set(Nt,mn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){ze._getWindow().addEventListener("focus",ze._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,j.R)(this._stopInputModalityDetector)).subscribe(function(Xn){ze._setOrigin(Xn,!0)}))}}},{key:"_removeGlobalListeners",value:function(Le){var ze=Le.rootNode;if(this._rootNodeFocusListenerCount.has(ze)){var Nt=this._rootNodeFocusListenerCount.get(ze);Nt>1?this._rootNodeFocusListenerCount.set(ze,Nt-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,Nt){this._setClasses(Le,ze),this._emitOrigin(Nt.subject,ze),this._lastFocusOrigin=ze}},{key:"_getClosestElementsInfo",value:function(Le){var ze=[];return this._elementInfo.forEach(function(Nt,mn){(mn===Le||Nt.checkChildren&&mn.contains(Le))&&ze.push([mn,Nt])}),ze}}]),Fe}();return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.LFG(N.R0b),N.LFG(z.t4),N.LFG(rn),N.LFG(_.K0,8),N.LFG(wn,8))},Ce.\u0275prov=N.Yz7({factory:function(){return new Ce(N.LFG(N.R0b),N.LFG(z.t4),N.LFG(rn),N.LFG(_.K0,8),N.LFG(wn,8))},token:Ce,providedIn:"root"}),Ce}(),Vt=function(){var Ce=function(){function Fe(Ae,Le){(0,R.Z)(this,Fe),this._elementRef=Ae,this._focusMonitor=Le,this.cdkFocusChange=new N.vpe}return(0,C.Z)(Fe,[{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(Nt){return Le.cdkFocusChange.emit(Nt)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),Fe}();return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.Y36(N.SBq),N.Y36(ir))},Ce.\u0275dir=N.lG2({type:Ce,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ce}(),sn="cdk-high-contrast-black-on-white",pt="cdk-high-contrast-white-on-black",dt="cdk-high-contrast-active",Ue=function(){var Ce=function(){function Fe(Ae,Le){(0,R.Z)(this,Fe),this._platform=Ae,this._document=Le}return(0,C.Z)(Fe,[{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,Nt=ze&&ze.getComputedStyle?ze.getComputedStyle(Le):null,mn=(Nt&&Nt.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(Le),mn){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(dt),Le.remove(sn),Le.remove(pt),this._hasCheckedHighContrastMode=!0;var ze=this.getHighContrastMode();1===ze?(Le.add(dt),Le.add(sn)):2===ze&&(Le.add(dt),Le.add(pt))}}}]),Fe}();return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.LFG(z.t4),N.LFG(_.K0))},Ce.\u0275prov=N.Yz7({factory:function(){return new Ce(N.LFG(z.t4),N.LFG(_.K0))},token:Ce,providedIn:"root"}),Ce}(),at=function(){var Ce=function Fe(Ae){(0,R.Z)(this,Fe),Ae._applyBodyHighContrastModeCssClasses()};return Ce.\u0275fac=function(Ae){return new(Ae||Ce)(N.LFG(Ue))},Ce.\u0275mod=N.oAB({type:Ce}),Ce.\u0275inj=N.cJS({imports:[[z.ud,Q.Q8]]}),Ce}()},8392:function(le,q,f){"use strict";f.d(q,{vT:function(){return N},Is:function(){return C}});var U=f(18967),B=f(14105),V=f(65508),Z=f(40098),w=new V.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,V.f3M)(Z.K0)}}),C=function(){var D=function(){function O(P){if((0,U.Z)(this,O),this.value="ltr",this.change=new V.vpe,P){var T=(P.body?P.body.dir:null)||(P.documentElement?P.documentElement.dir:null);this.value="ltr"===T||"rtl"===T?T:"ltr"}}return(0,B.Z)(O,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),O}();return D.\u0275fac=function(P){return new(P||D)(V.LFG(w,8))},D.\u0275prov=V.Yz7({factory:function(){return new D(V.LFG(w,8))},token:D,providedIn:"root"}),D}(),N=function(){var D=function O(){(0,U.Z)(this,O)};return D.\u0275fac=function(P){return new(P||D)},D.\u0275mod=V.oAB({type:D}),D.\u0275inj=V.cJS({}),D}()},37429:function(le,q,f){"use strict";f.d(q,{P3:function(){return P},o2:function(){return D},Ov:function(){return T},A8:function(){return E},yy:function(){return y},eX:function(){return g},k:function(){return x},Z9:function(){return O}});var U=f(36683),B=f(14105),V=f(10509),Z=f(97154),w=f(18967),R=f(17504),C=f(43161),_=f(68707),N=f(65508),D=function S(){(0,w.Z)(this,S)};function O(S){return S&&"function"==typeof S.connect}var P=function(S){(0,V.Z)(L,S);var A=(0,Z.Z)(L);function L(j){var K;return(0,w.Z)(this,L),(K=A.call(this))._data=j,K}return(0,B.Z)(L,[{key:"connect",value:function(){return(0,R.b)(this._data)?this._data:(0,C.of)(this._data)}},{key:"disconnect",value:function(){}}]),L}(D),y=function(){function S(){(0,w.Z)(this,S)}return(0,B.Z)(S,[{key:"applyChanges",value:function(L,j,K,z,Q){L.forEachOperation(function(ae,ie,se){var ue,de;if(null==ae.previousIndex){var oe=K(ae,ie,se);ue=j.createEmbeddedView(oe.templateRef,oe.context,oe.index),de=1}else null==se?(j.remove(ie),de=3):(ue=j.get(ie),j.move(ue,se),de=2);Q&&Q({context:null==ue?void 0:ue.context,operation:de,record:ae})})}},{key:"detach",value:function(){}}]),S}(),g=function(){function S(){(0,w.Z)(this,S),this.viewCacheSize=20,this._viewCache=[]}return(0,B.Z)(S,[{key:"applyChanges",value:function(L,j,K,z,Q){var ae=this;L.forEachOperation(function(ie,se,ue){var de,oe;null==ie.previousIndex?oe=(de=ae._insertView(function(){return K(ie,se,ue)},ue,j,z(ie)))?1:0:null==ue?(ae._detachAndCacheView(se,j),oe=3):(de=ae._moveView(se,ue,j,z(ie)),oe=2),Q&&Q({context:null==de?void 0:de.context,operation:oe,record:ie})})}},{key:"detach",value:function(){var j,L=(0,U.Z)(this._viewCache);try{for(L.s();!(j=L.n()).done;)j.value.destroy()}catch(z){L.e(z)}finally{L.f()}this._viewCache=[]}},{key:"_insertView",value:function(L,j,K,z){var Q=this._insertViewFromCache(j,K);if(!Q){var ae=L();return K.createEmbeddedView(ae.templateRef,ae.context,ae.index)}Q.context.$implicit=z}},{key:"_detachAndCacheView",value:function(L,j){var K=j.detach(L);this._maybeCacheView(K,j)}},{key:"_moveView",value:function(L,j,K,z){var Q=K.get(L);return K.move(Q,j),Q.context.$implicit=z,Q}},{key:"_maybeCacheView",value:function(L,j){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(L);else{var K=j.indexOf(L);-1===K?L.destroy():j.remove(K)}}},{key:"_insertViewFromCache",value:function(L,j){var K=this._viewCache.pop();return K&&j.insert(K,L),K||null}}]),S}(),T=function(){function S(){var A=this,L=arguments.length>0&&void 0!==arguments[0]&&arguments[0],j=arguments.length>1?arguments[1]:void 0,K=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,w.Z)(this,S),this._multiple=L,this._emitChanges=K,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new _.xQ,j&&j.length&&(L?j.forEach(function(z){return A._markSelected(z)}):this._markSelected(j[0]),this._selectedToEmit.length=0)}return(0,B.Z)(S,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var L=this,j=arguments.length,K=new Array(j),z=0;z<j;z++)K[z]=arguments[z];this._verifyValueAssignment(K),K.forEach(function(Q){return L._markSelected(Q)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var L=this,j=arguments.length,K=new Array(j),z=0;z<j;z++)K[z]=arguments[z];this._verifyValueAssignment(K),K.forEach(function(Q){return L._unmarkSelected(Q)}),this._emitChangeEvent()}},{key:"toggle",value:function(L){this.isSelected(L)?this.deselect(L):this.select(L)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(L){return this._selection.has(L)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(L){this._multiple&&this.selected&&this._selected.sort(L)}},{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(L){this.isSelected(L)||(this._multiple||this._unmarkAll(),this._selection.add(L),this._emitChanges&&this._selectedToEmit.push(L))}},{key:"_unmarkSelected",value:function(L){this.isSelected(L)&&(this._selection.delete(L),this._emitChanges&&this._deselectedToEmit.push(L))}},{key:"_unmarkAll",value:function(){var L=this;this.isEmpty()||this._selection.forEach(function(j){return L._unmarkSelected(j)})}},{key:"_verifyValueAssignment",value:function(L){}}]),S}(),E=function(){var S=function(){function A(){(0,w.Z)(this,A),this._listeners=[]}return(0,B.Z)(A,[{key:"notify",value:function(j,K){var Q,z=(0,U.Z)(this._listeners);try{for(z.s();!(Q=z.n()).done;)(0,Q.value)(j,K)}catch(ie){z.e(ie)}finally{z.f()}}},{key:"listen",value:function(j){var K=this;return this._listeners.push(j),function(){K._listeners=K._listeners.filter(function(z){return j!==z})}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),A}();return S.\u0275fac=function(L){return new(L||S)},S.\u0275prov=N.Yz7({factory:function(){return new S},token:S,providedIn:"root"}),S}(),x=new N.OlP("_ViewRepeater")},32819:function(le,q,f){"use strict";f.d(q,{A:function(){return Rt},zL:function(){return _},ZH:function(){return B},jx:function(){return C},yY:function(){return z},JH:function(){return A},uR:function(){return T},K5:function(){return w},hY:function(){return O},Sd:function(){return M},oh:function(){return E},b2:function(){return $t},MW:function(){return ot},aO:function(){return ve},SV:function(){return S},JU:function(){return R},L_:function(){return P},Mf:function(){return V},LH:function(){return x},Z:function(){return wt},xE:function(){return Q},Vb:function(){return tn}});var B=8,V=9,w=13,R=16,C=17,_=18,O=27,P=32,T=35,M=36,E=37,x=38,S=39,A=40,z=46,Q=48,ve=57,Rt=65,wt=90,ot=91,$t=224;function tn(bn){for(var Qn=arguments.length,Wn=new Array(Qn>1?Qn-1:0),Gn=1;Gn<Qn;Gn++)Wn[Gn-1]=arguments[Gn];return Wn.length?Wn.some(function(mi){return bn[mi]}):bn.altKey||bn.shiftKey||bn.ctrlKey||bn.metaKey}},96798:function(le,q,f){"use strict";f.d(q,{wD:function(){return D},yq:function(){return N},Q8:function(){return O}});var U=f(18967),B=f(14105),V=f(78081),Z=f(65508),w=f(89797),R=f(68707),C=f(57263),_=function(){var P=function(){function y(){(0,U.Z)(this,y)}return(0,B.Z)(y,[{key:"create",value:function(T){return"undefined"==typeof MutationObserver?null:new MutationObserver(T)}}]),y}();return P.\u0275fac=function(g){return new(g||P)},P.\u0275prov=Z.Yz7({factory:function(){return new P},token:P,providedIn:"root"}),P}(),N=function(){var P=function(){function y(g){(0,U.Z)(this,y),this._mutationObserverFactory=g,this._observedElements=new Map}return(0,B.Z)(y,[{key:"ngOnDestroy",value:function(){var T=this;this._observedElements.forEach(function(M,E){return T._cleanupObserver(E)})}},{key:"observe",value:function(T){var M=this,E=(0,V.fI)(T);return new w.y(function(x){var A=M._observeElement(E).subscribe(x);return function(){A.unsubscribe(),M._unobserveElement(E)}})}},{key:"_observeElement",value:function(T){if(this._observedElements.has(T))this._observedElements.get(T).count++;else{var M=new R.xQ,E=this._mutationObserverFactory.create(function(x){return M.next(x)});E&&E.observe(T,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(T,{observer:E,stream:M,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 M=this._observedElements.get(T),E=M.observer,x=M.stream;E&&E.disconnect(),x.complete(),this._observedElements.delete(T)}}}]),y}();return P.\u0275fac=function(g){return new(g||P)(Z.LFG(_))},P.\u0275prov=Z.Yz7({factory:function(){return new P(Z.LFG(_))},token:P,providedIn:"root"}),P}(),D=function(){var P=function(){function y(g,T,M){(0,U.Z)(this,y),this._contentObserver=g,this._elementRef=T,this._ngZone=M,this.event=new Z.vpe,this._disabled=!1,this._currentSubscription=null}return(0,B.Z)(y,[{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 M=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){T._currentSubscription=(T.debounce?M.pipe((0,C.b)(T.debounce)):M).subscribe(T.event)})}},{key:"_unsubscribe",value:function(){var T;null===(T=this._currentSubscription)||void 0===T||T.unsubscribe()}}]),y}();return P.\u0275fac=function(g){return new(g||P)(Z.Y36(N),Z.Y36(Z.SBq),Z.Y36(Z.R0b))},P.\u0275dir=Z.lG2({type:P,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),P}(),O=function(){var P=function y(){(0,U.Z)(this,y)};return P.\u0275fac=function(g){return new(g||P)},P.\u0275mod=Z.oAB({type:P}),P.\u0275inj=Z.cJS({providers:[_]}),P}()},93889:function(le,q,f){"use strict";f.d(q,{pI:function(){return Bn},xu:function(){return lr},aV:function(){return An},X_:function(){return $},Xj:function(){return ct},U8:function(){return Kt}});var U=f(27235),B=f(36683),V=f(20901),Z=f(89200),w=f(10509),R=f(97154),C=f(18967),_=f(14105),N=f(28722),D=f(65508),O=f(15427),P=f(8392),y=f(40098),g=f(78081),T=f(80785),M=f(68707),E=f(5051),x=f(55371),S=f(48359),A=f(44213),L=f(49196),j=f(32819),K=(0,O.Mq)(),z=function(){function ot(_e,re){(0,C.Z)(this,ot),this._viewportRuler=_e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=re}return(0,_.Z)(ot,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var re=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=re.style.left||"",this._previousHTMLStyles.top=re.style.top||"",re.style.left=(0,g.HM)(-this._previousScrollPosition.left),re.style.top=(0,g.HM)(-this._previousScrollPosition.top),re.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var re=this._document.documentElement,Ge=re.style,Ye=this._document.body.style,yt=Ge.scrollBehavior||"",Lt=Ye.scrollBehavior||"";this._isEnabled=!1,Ge.left=this._previousHTMLStyles.left,Ge.top=this._previousHTMLStyles.top,re.classList.remove("cdk-global-scrollblock"),K&&(Ge.scrollBehavior=Ye.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),K&&(Ge.scrollBehavior=yt,Ye.scrollBehavior=Lt)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var he=this._document.body,Ge=this._viewportRuler.getViewportSize();return he.scrollHeight>Ge.height||he.scrollWidth>Ge.width}}]),ot}(),ae=function(){function ot(_e,re,he,Ge){var Ye=this;(0,C.Z)(this,ot),this._scrollDispatcher=_e,this._ngZone=re,this._viewportRuler=he,this._config=Ge,this._scrollSubscription=null,this._detach=function(){Ye.disable(),Ye._overlayRef.hasAttached()&&Ye._ngZone.run(function(){return Ye._overlayRef.detach()})}}return(0,_.Z)(ot,[{key:"attach",value:function(re){this._overlayRef=re}},{key:"enable",value:function(){var re=this;if(!this._scrollSubscription){var he=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=he.subscribe(function(){var Ge=re._viewportRuler.getViewportScrollPosition().top;Math.abs(Ge-re._initialScrollPosition)>re._config.threshold?re._detach():re._overlayRef.updatePosition()})):this._scrollSubscription=he.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),ot}(),ie=function(){function ot(){(0,C.Z)(this,ot)}return(0,_.Z)(ot,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),ot}();function se(ot,_e){return _e.some(function(re){return ot.bottom<re.top||ot.top>re.bottom||ot.right<re.left||ot.left>re.right})}function ue(ot,_e){return _e.some(function(re){return ot.top<re.top||ot.bottom>re.bottom||ot.left<re.left||ot.right>re.right})}var de=function(){function ot(_e,re,he,Ge){(0,C.Z)(this,ot),this._scrollDispatcher=_e,this._viewportRuler=re,this._ngZone=he,this._config=Ge,this._scrollSubscription=null}return(0,_.Z)(ot,[{key:"attach",value:function(re){this._overlayRef=re}},{key:"enable",value:function(){var re=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(re._overlayRef.updatePosition(),re._config&&re._config.autoClose){var Ge=re._overlayRef.overlayElement.getBoundingClientRect(),Ye=re._viewportRuler.getViewportSize(),yt=Ye.width,Lt=Ye.height;se(Ge,[{width:yt,height:Lt,bottom:Lt,right:yt,top:0,left:0}])&&(re.disable(),re._ngZone.run(function(){return re._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),ot}(),oe=function(){var ot=function _e(re,he,Ge,Ye){var yt=this;(0,C.Z)(this,_e),this._scrollDispatcher=re,this._viewportRuler=he,this._ngZone=Ge,this.noop=function(){return new ie},this.close=function(Lt){return new ae(yt._scrollDispatcher,yt._ngZone,yt._viewportRuler,Lt)},this.block=function(){return new z(yt._viewportRuler,yt._document)},this.reposition=function(Lt){return new de(yt._scrollDispatcher,yt._viewportRuler,yt._ngZone,Lt)},this._document=Ye};return ot.\u0275fac=function(re){return new(re||ot)(D.LFG(N.mF),D.LFG(N.rL),D.LFG(D.R0b),D.LFG(y.K0))},ot.\u0275prov=D.Yz7({factory:function(){return new ot(D.LFG(N.mF),D.LFG(N.rL),D.LFG(D.R0b),D.LFG(y.K0))},token:ot,providedIn:"root"}),ot}(),$=function ot(_e){if((0,C.Z)(this,ot),this.scrollStrategy=new ie,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,_e)for(var he=0,Ge=Object.keys(_e);he<Ge.length;he++){var Ye=Ge[he];void 0!==_e[Ye]&&(this[Ye]=_e[Ye])}},ye=function ot(_e,re,he,Ge,Ye){(0,C.Z)(this,ot),this.offsetX=he,this.offsetY=Ge,this.panelClass=Ye,this.originX=_e.originX,this.originY=_e.originY,this.overlayX=re.overlayX,this.overlayY=re.overlayY},et=function ot(_e,re){(0,C.Z)(this,ot),this.connectionPair=_e,this.scrollableViewProperties=re},_t=function(){var ot=function(){function _e(re){(0,C.Z)(this,_e),this._attachedOverlays=[],this._document=re}return(0,_.Z)(_e,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(he){this.remove(he),this._attachedOverlays.push(he)}},{key:"remove",value:function(he){var Ge=this._attachedOverlays.indexOf(he);Ge>-1&&this._attachedOverlays.splice(Ge,1),0===this._attachedOverlays.length&&this.detach()}}]),_e}();return ot.\u0275fac=function(re){return new(re||ot)(D.LFG(y.K0))},ot.\u0275prov=D.Yz7({factory:function(){return new ot(D.LFG(y.K0))},token:ot,providedIn:"root"}),ot}(),Rt=function(){var ot=function(_e){(0,w.Z)(he,_e);var re=(0,R.Z)(he);function he(Ge){var Ye;return(0,C.Z)(this,he),(Ye=re.call(this,Ge))._keydownListener=function(yt){for(var Lt=Ye._attachedOverlays,Yt=Lt.length-1;Yt>-1;Yt--)if(Lt[Yt]._keydownEvents.observers.length>0){Lt[Yt]._keydownEvents.next(yt);break}},Ye}return(0,_.Z)(he,[{key:"add",value:function(Ye){(0,V.Z)((0,Z.Z)(he.prototype),"add",this).call(this,Ye),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)}}]),he}(_t);return ot.\u0275fac=function(re){return new(re||ot)(D.LFG(y.K0))},ot.\u0275prov=D.Yz7({factory:function(){return new ot(D.LFG(y.K0))},token:ot,providedIn:"root"}),ot}(),Se=function(){var ot=function(_e){(0,w.Z)(he,_e);var re=(0,R.Z)(he);function he(Ge,Ye){var yt;return(0,C.Z)(this,he),(yt=re.call(this,Ge))._platform=Ye,yt._cursorStyleIsSet=!1,yt._clickListener=function(Lt){for(var Yt=(0,O.sA)(Lt),rn=yt._attachedOverlays.slice(),cn=rn.length-1;cn>-1;cn--){var _n=rn[cn];if(!(_n._outsidePointerEvents.observers.length<1)&&_n.hasAttached()){if(_n.overlayElement.contains(Yt))break;_n._outsidePointerEvents.next(Lt)}}},yt}return(0,_.Z)(he,[{key:"add",value:function(Ye){if((0,V.Z)((0,Z.Z)(he.prototype),"add",this).call(this,Ye),!this._isAttached){var yt=this._document.body;yt.addEventListener("click",this._clickListener,!0),yt.addEventListener("auxclick",this._clickListener,!0),yt.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=yt.style.cursor,yt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var Ye=this._document.body;Ye.removeEventListener("click",this._clickListener,!0),Ye.removeEventListener("auxclick",this._clickListener,!0),Ye.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Ye.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),he}(_t);return ot.\u0275fac=function(re){return new(re||ot)(D.LFG(y.K0),D.LFG(O.t4))},ot.\u0275prov=D.Yz7({factory:function(){return new ot(D.LFG(y.K0),D.LFG(O.t4))},token:ot,providedIn:"root"}),ot}(),Oe="undefined"!=typeof window?window:{},je=void 0!==Oe.__karma__&&!!Oe.__karma__||void 0!==Oe.jasmine&&!!Oe.jasmine||void 0!==Oe.jest&&!!Oe.jest||void 0!==Oe.Mocha&&!!Oe.Mocha,ct=function(){var ot=function(){function _e(re,he){(0,C.Z)(this,_e),this._platform=he,this._document=re}return(0,_.Z)(_e,[{key:"ngOnDestroy",value:function(){var he=this._containerElement;he&&he.parentNode&&he.parentNode.removeChild(he)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var he="cdk-overlay-container";if(this._platform.isBrowser||je)for(var Ge=this._document.querySelectorAll(".".concat(he,'[platform="server"], ')+".".concat(he,'[platform="test"]')),Ye=0;Ye<Ge.length;Ye++)Ge[Ye].parentNode.removeChild(Ge[Ye]);var yt=this._document.createElement("div");yt.classList.add(he),je?yt.setAttribute("platform","test"):this._platform.isBrowser||yt.setAttribute("platform","server"),this._document.body.appendChild(yt),this._containerElement=yt}}]),_e}();return ot.\u0275fac=function(re){return new(re||ot)(D.LFG(y.K0),D.LFG(O.t4))},ot.\u0275prov=D.Yz7({factory:function(){return new ot(D.LFG(y.K0),D.LFG(O.t4))},token:ot,providedIn:"root"}),ot}(),Xe=function(){function ot(_e,re,he,Ge,Ye,yt,Lt,Yt,rn){var cn=this;(0,C.Z)(this,ot),this._portalOutlet=_e,this._host=re,this._pane=he,this._config=Ge,this._ngZone=Ye,this._keyboardDispatcher=yt,this._document=Lt,this._location=Yt,this._outsideClickDispatcher=rn,this._backdropElement=null,this._backdropClick=new M.xQ,this._attachments=new M.xQ,this._detachments=new M.xQ,this._locationChanges=E.w.EMPTY,this._backdropClickHandler=function(_n){return cn._backdropClick.next(_n)},this._keydownEvents=new M.xQ,this._outsidePointerEvents=new M.xQ,Ge.scrollStrategy&&(this._scrollStrategy=Ge.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Ge.positionStrategy}return(0,_.Z)(ot,[{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(re){var he=this,Ge=this._portalOutlet.attach(re);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,S.q)(1)).subscribe(function(){he.hasAttached()&&he.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 he.dispose()})),this._outsideClickDispatcher.add(this),Ge}},{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 re=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),re}}},{key:"dispose",value:function(){var re=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),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,re&&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(re){re!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=re,this.hasAttached()&&(re.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(re){this._config=Object.assign(Object.assign({},this._config),re),this._updateElementSize()}},{key:"setDirection",value:function(re){this._config=Object.assign(Object.assign({},this._config),{direction:re}),this._updateElementDirection()}},{key:"addPanelClass",value:function(re){this._pane&&this._toggleClasses(this._pane,re,!0)}},{key:"removePanelClass",value:function(re){this._pane&&this._toggleClasses(this._pane,re,!1)}},{key:"getDirection",value:function(){var re=this._config.direction;return re?"string"==typeof re?re:re.value:"ltr"}},{key:"updateScrollStrategy",value:function(re){re!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=re,this.hasAttached()&&(re.attach(this),re.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var re=this._pane.style;re.width=(0,g.HM)(this._config.width),re.height=(0,g.HM)(this._config.height),re.minWidth=(0,g.HM)(this._config.minWidth),re.minHeight=(0,g.HM)(this._config.minHeight),re.maxWidth=(0,g.HM)(this._config.maxWidth),re.maxHeight=(0,g.HM)(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(re){this._pane.style.pointerEvents=re?"":"none"}},{key:"_attachBackdrop",value:function(){var re=this,he="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(){re._backdropElement&&re._backdropElement.classList.add(he)})}):this._backdropElement.classList.add(he)}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var re=this,he=this._backdropElement;if(he){var Ge,Ye=function yt(){he&&(he.removeEventListener("click",re._backdropClickHandler),he.removeEventListener("transitionend",yt),he.parentNode&&he.parentNode.removeChild(he)),re._backdropElement==he&&(re._backdropElement=null),re._config.backdropClass&&re._toggleClasses(he,re._config.backdropClass,!1),clearTimeout(Ge)};he.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){he.addEventListener("transitionend",Ye)}),he.style.pointerEvents="none",Ge=this._ngZone.runOutsideAngular(function(){return setTimeout(Ye,500)})}}},{key:"_toggleClasses",value:function(re,he,Ge){var Ye=re.classList;(0,g.Eq)(he).forEach(function(yt){yt&&(Ge?Ye.add(yt):Ye.remove(yt))})}},{key:"_detachContentWhenStable",value:function(){var re=this;this._ngZone.runOutsideAngular(function(){var he=re._ngZone.onStable.pipe((0,A.R)((0,x.T)(re._attachments,re._detachments))).subscribe(function(){(!re._pane||!re._host||0===re._pane.children.length)&&(re._pane&&re._config.panelClass&&re._toggleClasses(re._pane,re._config.panelClass,!1),re._host&&re._host.parentElement&&(re._previousHostParent=re._host.parentElement,re._previousHostParent.removeChild(re._host)),he.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var re=this._scrollStrategy;re&&(re.disable(),re.detach&&re.detach())}}]),ot}(),Ht="cdk-overlay-connected-position-bounding-box",Et=/([A-Za-z%]+)$/,vt=function(){function ot(_e,re,he,Ge,Ye){(0,C.Z)(this,ot),this._viewportRuler=re,this._document=he,this._platform=Ge,this._overlayContainer=Ye,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 M.xQ,this._resizeSubscription=E.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(_e)}return(0,_.Z)(ot,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(re){var he=this;this._validatePositions(),re.hostElement.classList.add(Ht),this._overlayRef=re,this._boundingBox=re.hostElement,this._pane=re.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){he._isInitialRender=!0,he.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 yt,Yt,re=this._originRect,he=this._overlayRect,Ge=this._viewportRect,Ye=[],Lt=(0,B.Z)(this._preferredPositions);try{for(Lt.s();!(Yt=Lt.n()).done;){var rn=Yt.value,cn=this._getOriginPoint(re,rn),_n=this._getOverlayPoint(cn,he,rn),xn=this._getOverlayFit(_n,he,Ge,rn);if(xn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(rn,cn);this._canFitWithFlexibleDimensions(xn,_n,Ge)?Ye.push({position:rn,origin:cn,overlayRect:he,boundingBoxRect:this._calculateBoundingBoxRect(cn,rn)}):(!yt||yt.overlayFit.visibleArea<xn.visibleArea)&&(yt={overlayFit:xn,overlayPoint:_n,originPoint:cn,position:rn,overlayRect:he})}}catch(sn){Lt.e(sn)}finally{Lt.f()}if(Ye.length){var Sn,Nn=null,er=-1,wn=(0,B.Z)(Ye);try{for(wn.s();!(Sn=wn.n()).done;){var ir=Sn.value,Vt=ir.boundingBoxRect.width*ir.boundingBoxRect.height*(ir.position.weight||1);Vt>er&&(er=Vt,Nn=ir)}}catch(sn){wn.e(sn)}finally{wn.f()}return this._isPushed=!1,void this._applyPosition(Nn.position,Nn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(yt.position,yt.originPoint);this._applyPosition(yt.position,yt.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(Ht),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 re=this._lastPosition||this._preferredPositions[0],he=this._getOriginPoint(this._originRect,re);this._applyPosition(re,he)}}},{key:"withScrollableContainers",value:function(re){return this._scrollables=re,this}},{key:"withPositions",value:function(re){return this._preferredPositions=re,-1===re.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(re){return this._viewportMargin=re,this}},{key:"withFlexibleDimensions",value:function(){var re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=re,this}},{key:"withGrowAfterOpen",value:function(){var re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=re,this}},{key:"withPush",value:function(){var re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=re,this}},{key:"withLockedPosition",value:function(){var re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=re,this}},{key:"setOrigin",value:function(re){return this._origin=re,this}},{key:"withDefaultOffsetX",value:function(re){return this._offsetX=re,this}},{key:"withDefaultOffsetY",value:function(re){return this._offsetY=re,this}},{key:"withTransformOriginOn",value:function(re){return this._transformOriginSelector=re,this}},{key:"_getOriginPoint",value:function(re,he){var Ge;if("center"==he.originX)Ge=re.left+re.width/2;else{var Ye=this._isRtl()?re.right:re.left,yt=this._isRtl()?re.left:re.right;Ge="start"==he.originX?Ye:yt}return{x:Ge,y:"center"==he.originY?re.top+re.height/2:"top"==he.originY?re.top:re.bottom}}},{key:"_getOverlayPoint",value:function(re,he,Ge){var Ye;return Ye="center"==Ge.overlayX?-he.width/2:"start"===Ge.overlayX?this._isRtl()?-he.width:0:this._isRtl()?0:-he.width,{x:re.x+Ye,y:re.y+("center"==Ge.overlayY?-he.height/2:"top"==Ge.overlayY?0:-he.height)}}},{key:"_getOverlayFit",value:function(re,he,Ge,Ye){var yt=Ct(he),Lt=re.x,Yt=re.y,rn=this._getOffset(Ye,"x"),cn=this._getOffset(Ye,"y");rn&&(Lt+=rn),cn&&(Yt+=cn);var Nn=0-Yt,er=Yt+yt.height-Ge.height,wn=this._subtractOverflows(yt.width,0-Lt,Lt+yt.width-Ge.width),Sn=this._subtractOverflows(yt.height,Nn,er),ir=wn*Sn;return{visibleArea:ir,isCompletelyWithinViewport:yt.width*yt.height===ir,fitsInViewportVertically:Sn===yt.height,fitsInViewportHorizontally:wn==yt.width}}},{key:"_canFitWithFlexibleDimensions",value:function(re,he,Ge){if(this._hasFlexibleDimensions){var Ye=Ge.bottom-he.y,yt=Ge.right-he.x,Lt=qt(this._overlayRef.getConfig().minHeight),Yt=qt(this._overlayRef.getConfig().minWidth);return(re.fitsInViewportVertically||null!=Lt&&Lt<=Ye)&&(re.fitsInViewportHorizontally||null!=Yt&&Yt<=yt)}return!1}},{key:"_pushOverlayOnScreen",value:function(re,he,Ge){if(this._previousPushAmount&&this._positionLocked)return{x:re.x+this._previousPushAmount.x,y:re.y+this._previousPushAmount.y};var _n,xn,Ye=Ct(he),yt=this._viewportRect,Lt=Math.max(re.x+Ye.width-yt.width,0),Yt=Math.max(re.y+Ye.height-yt.height,0),rn=Math.max(yt.top-Ge.top-re.y,0),cn=Math.max(yt.left-Ge.left-re.x,0);return this._previousPushAmount={x:_n=Ye.width<=yt.width?cn||-Lt:re.x<this._viewportMargin?yt.left-Ge.left-re.x:0,y:xn=Ye.height<=yt.height?rn||-Yt:re.y<this._viewportMargin?yt.top-Ge.top-re.y:0},{x:re.x+_n,y:re.y+xn}}},{key:"_applyPosition",value:function(re,he){if(this._setTransformOrigin(re),this._setOverlayElementStyles(he,re),this._setBoundingBoxStyles(he,re),re.panelClass&&this._addPanelClasses(re.panelClass),this._lastPosition=re,this._positionChanges.observers.length){var Ge=this._getScrollVisibility(),Ye=new et(re,Ge);this._positionChanges.next(Ye)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(re){if(this._transformOriginSelector){var Ge,he=this._boundingBox.querySelectorAll(this._transformOriginSelector),Ye=re.overlayY;Ge="center"===re.overlayX?"center":this._isRtl()?"start"===re.overlayX?"right":"left":"start"===re.overlayX?"left":"right";for(var yt=0;yt<he.length;yt++)he[yt].style.transformOrigin="".concat(Ge," ").concat(Ye)}}},{key:"_calculateBoundingBoxRect",value:function(re,he){var yt,Lt,Yt,Nn,er,wn,Ge=this._viewportRect,Ye=this._isRtl();if("top"===he.overlayY)yt=Ge.height-(Lt=re.y)+this._viewportMargin;else if("bottom"===he.overlayY)yt=Ge.height-(Yt=Ge.height-re.y+2*this._viewportMargin)+this._viewportMargin;else{var rn=Math.min(Ge.bottom-re.y+Ge.top,re.y),cn=this._lastBoundingBoxSize.height;Lt=re.y-rn,(yt=2*rn)>cn&&!this._isInitialRender&&!this._growAfterOpen&&(Lt=re.y-cn/2)}if("end"===he.overlayX&&!Ye||"start"===he.overlayX&&Ye)wn=Ge.width-re.x+this._viewportMargin,Nn=re.x-this._viewportMargin;else if("start"===he.overlayX&&!Ye||"end"===he.overlayX&&Ye)er=re.x,Nn=Ge.right-re.x;else{var Sn=Math.min(Ge.right-re.x+Ge.left,re.x),ir=this._lastBoundingBoxSize.width;er=re.x-Sn,(Nn=2*Sn)>ir&&!this._isInitialRender&&!this._growAfterOpen&&(er=re.x-ir/2)}return{top:Lt,left:er,bottom:Yt,right:wn,width:Nn,height:yt}}},{key:"_setBoundingBoxStyles",value:function(re,he){var Ge=this._calculateBoundingBoxRect(re,he);!this._isInitialRender&&!this._growAfterOpen&&(Ge.height=Math.min(Ge.height,this._lastBoundingBoxSize.height),Ge.width=Math.min(Ge.width,this._lastBoundingBoxSize.width));var Ye={};if(this._hasExactPosition())Ye.top=Ye.left="0",Ye.bottom=Ye.right=Ye.maxHeight=Ye.maxWidth="",Ye.width=Ye.height="100%";else{var yt=this._overlayRef.getConfig().maxHeight,Lt=this._overlayRef.getConfig().maxWidth;Ye.height=(0,g.HM)(Ge.height),Ye.top=(0,g.HM)(Ge.top),Ye.bottom=(0,g.HM)(Ge.bottom),Ye.width=(0,g.HM)(Ge.width),Ye.left=(0,g.HM)(Ge.left),Ye.right=(0,g.HM)(Ge.right),Ye.alignItems="center"===he.overlayX?"center":"end"===he.overlayX?"flex-end":"flex-start",Ye.justifyContent="center"===he.overlayY?"center":"bottom"===he.overlayY?"flex-end":"flex-start",yt&&(Ye.maxHeight=(0,g.HM)(yt)),Lt&&(Ye.maxWidth=(0,g.HM)(Lt))}this._lastBoundingBoxSize=Ge,Xt(this._boundingBox.style,Ye)}},{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(re,he){var Ge={},Ye=this._hasExactPosition(),yt=this._hasFlexibleDimensions,Lt=this._overlayRef.getConfig();if(Ye){var Yt=this._viewportRuler.getViewportScrollPosition();Xt(Ge,this._getExactOverlayY(he,re,Yt)),Xt(Ge,this._getExactOverlayX(he,re,Yt))}else Ge.position="static";var rn="",cn=this._getOffset(he,"x"),_n=this._getOffset(he,"y");cn&&(rn+="translateX(".concat(cn,"px) ")),_n&&(rn+="translateY(".concat(_n,"px)")),Ge.transform=rn.trim(),Lt.maxHeight&&(Ye?Ge.maxHeight=(0,g.HM)(Lt.maxHeight):yt&&(Ge.maxHeight="")),Lt.maxWidth&&(Ye?Ge.maxWidth=(0,g.HM)(Lt.maxWidth):yt&&(Ge.maxWidth="")),Xt(this._pane.style,Ge)}},{key:"_getExactOverlayY",value:function(re,he,Ge){var Ye={top:"",bottom:""},yt=this._getOverlayPoint(he,this._overlayRect,re);this._isPushed&&(yt=this._pushOverlayOnScreen(yt,this._overlayRect,Ge));var Lt=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return yt.y-=Lt,"bottom"===re.overlayY?Ye.bottom="".concat(this._document.documentElement.clientHeight-(yt.y+this._overlayRect.height),"px"):Ye.top=(0,g.HM)(yt.y),Ye}},{key:"_getExactOverlayX",value:function(re,he,Ge){var Ye={left:"",right:""},yt=this._getOverlayPoint(he,this._overlayRect,re);return this._isPushed&&(yt=this._pushOverlayOnScreen(yt,this._overlayRect,Ge)),"right"==(this._isRtl()?"end"===re.overlayX?"left":"right":"end"===re.overlayX?"right":"left")?Ye.right="".concat(this._document.documentElement.clientWidth-(yt.x+this._overlayRect.width),"px"):Ye.left=(0,g.HM)(yt.x),Ye}},{key:"_getScrollVisibility",value:function(){var re=this._getOriginRect(),he=this._pane.getBoundingClientRect(),Ge=this._scrollables.map(function(Ye){return Ye.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:ue(re,Ge),isOriginOutsideView:se(re,Ge),isOverlayClipped:ue(he,Ge),isOverlayOutsideView:se(he,Ge)}}},{key:"_subtractOverflows",value:function(re){for(var he=arguments.length,Ge=new Array(he>1?he-1:0),Ye=1;Ye<he;Ye++)Ge[Ye-1]=arguments[Ye];return Ge.reduce(function(yt,Lt){return yt-Math.max(Lt,0)},re)}},{key:"_getNarrowedViewportRect",value:function(){var re=this._document.documentElement.clientWidth,he=this._document.documentElement.clientHeight,Ge=this._viewportRuler.getViewportScrollPosition();return{top:Ge.top+this._viewportMargin,left:Ge.left+this._viewportMargin,right:Ge.left+re-this._viewportMargin,bottom:Ge.top+he-this._viewportMargin,width:re-2*this._viewportMargin,height:he-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(re,he){return"x"===he?null==re.offsetX?this._offsetX:re.offsetX:null==re.offsetY?this._offsetY:re.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(re){var he=this;this._pane&&(0,g.Eq)(re).forEach(function(Ge){""!==Ge&&-1===he._appliedPanelClasses.indexOf(Ge)&&(he._appliedPanelClasses.push(Ge),he._pane.classList.add(Ge))})}},{key:"_clearPanelClasses",value:function(){var re=this;this._pane&&(this._appliedPanelClasses.forEach(function(he){re._pane.classList.remove(he)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var re=this._origin;if(re instanceof D.SBq)return re.nativeElement.getBoundingClientRect();if(re instanceof Element)return re.getBoundingClientRect();var he=re.width||0,Ge=re.height||0;return{top:re.y,bottom:re.y+Ge,left:re.x,right:re.x+he,height:Ge,width:he}}}]),ot}();function Xt(ot,_e){for(var re in _e)_e.hasOwnProperty(re)&&(ot[re]=_e[re]);return ot}function qt(ot){if("number"!=typeof ot&&null!=ot){var _e=ot.split(Et),re=(0,U.Z)(_e,2),Ge=re[1];return Ge&&"px"!==Ge?null:parseFloat(re[0])}return ot||null}function Ct(ot){return{top:Math.floor(ot.top),right:Math.floor(ot.right),bottom:Math.floor(ot.bottom),left:Math.floor(ot.left),width:Math.floor(ot.width),height:Math.floor(ot.height)}}var jt=function(){function ot(_e,re,he,Ge,Ye,yt,Lt){(0,C.Z)(this,ot),this._preferredPositions=[],this._positionStrategy=new vt(he,Ge,Ye,yt,Lt).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(_e,re),this.onPositionChange=this._positionStrategy.positionChanges}return(0,_.Z)(ot,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(re){this._overlayRef=re,this._positionStrategy.attach(re),this._direction&&(re.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(re){this._positionStrategy.withScrollableContainers(re)}},{key:"withFallbackPosition",value:function(re,he,Ge,Ye){var yt=new ye(re,he,Ge,Ye);return this._preferredPositions.push(yt),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(re){return this._overlayRef?this._overlayRef.setDirection(re):this._direction=re,this}},{key:"withOffsetX",value:function(re){return this._positionStrategy.withDefaultOffsetX(re),this}},{key:"withOffsetY",value:function(re){return this._positionStrategy.withDefaultOffsetY(re),this}},{key:"withLockedPosition",value:function(re){return this._positionStrategy.withLockedPosition(re),this}},{key:"withPositions",value:function(re){return this._preferredPositions=re.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(re){return this._positionStrategy.setOrigin(re),this}}]),ot}(),bt="cdk-global-overlay-wrapper",nn=function(){function ot(){(0,C.Z)(this,ot),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return(0,_.Z)(ot,[{key:"attach",value:function(re){var he=re.getConfig();this._overlayRef=re,this._width&&!he.width&&re.updateSize({width:this._width}),this._height&&!he.height&&re.updateSize({height:this._height}),re.hostElement.classList.add(bt),this._isDisposed=!1}},{key:"top",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=re,this._alignItems="flex-start",this}},{key:"left",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=re,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=re,this._alignItems="flex-end",this}},{key:"right",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=re,this._justifyContent="flex-end",this}},{key:"width",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:re}):this._width=re,this}},{key:"height",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:re}):this._height=re,this}},{key:"centerHorizontally",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(re),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(re),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var re=this._overlayRef.overlayElement.style,he=this._overlayRef.hostElement.style,Ge=this._overlayRef.getConfig(),Ye=Ge.width,yt=Ge.height,Lt=Ge.maxWidth,Yt=Ge.maxHeight,rn=!("100%"!==Ye&&"100vw"!==Ye||Lt&&"100%"!==Lt&&"100vw"!==Lt),cn=!("100%"!==yt&&"100vh"!==yt||Yt&&"100%"!==Yt&&"100vh"!==Yt);re.position=this._cssPosition,re.marginLeft=rn?"0":this._leftOffset,re.marginTop=cn?"0":this._topOffset,re.marginBottom=this._bottomOffset,re.marginRight=this._rightOffset,rn?he.justifyContent="flex-start":"center"===this._justifyContent?he.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?he.justifyContent="flex-end":"flex-end"===this._justifyContent&&(he.justifyContent="flex-start"):he.justifyContent=this._justifyContent,he.alignItems=cn?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var re=this._overlayRef.overlayElement.style,he=this._overlayRef.hostElement,Ge=he.style;he.classList.remove(bt),Ge.justifyContent=Ge.alignItems=re.marginTop=re.marginBottom=re.marginLeft=re.marginRight=re.position="",this._overlayRef=null,this._isDisposed=!0}}}]),ot}(),Ut=function(){var ot=function(){function _e(re,he,Ge,Ye){(0,C.Z)(this,_e),this._viewportRuler=re,this._document=he,this._platform=Ge,this._overlayContainer=Ye}return(0,_.Z)(_e,[{key:"global",value:function(){return new nn}},{key:"connectedTo",value:function(he,Ge,Ye){return new jt(Ge,Ye,he,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(he){return new vt(he,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),_e}();return ot.\u0275fac=function(re){return new(re||ot)(D.LFG(N.rL),D.LFG(y.K0),D.LFG(O.t4),D.LFG(ct))},ot.\u0275prov=D.Yz7({factory:function(){return new ot(D.LFG(N.rL),D.LFG(y.K0),D.LFG(O.t4),D.LFG(ct))},token:ot,providedIn:"root"}),ot}(),an=0,An=function(){var ot=function(){function _e(re,he,Ge,Ye,yt,Lt,Yt,rn,cn,_n,xn){(0,C.Z)(this,_e),this.scrollStrategies=re,this._overlayContainer=he,this._componentFactoryResolver=Ge,this._positionBuilder=Ye,this._keyboardDispatcher=yt,this._injector=Lt,this._ngZone=Yt,this._document=rn,this._directionality=cn,this._location=_n,this._outsideClickDispatcher=xn}return(0,_.Z)(_e,[{key:"create",value:function(he){var Ge=this._createHostElement(),Ye=this._createPaneElement(Ge),yt=this._createPortalOutlet(Ye),Lt=new $(he);return Lt.direction=Lt.direction||this._directionality.value,new Xe(yt,Ge,Ye,Lt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(he){var Ge=this._document.createElement("div");return Ge.id="cdk-overlay-".concat(an++),Ge.classList.add("cdk-overlay-pane"),he.appendChild(Ge),Ge}},{key:"_createHostElement",value:function(){var he=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(he),he}},{key:"_createPortalOutlet",value:function(he){return this._appRef||(this._appRef=this._injector.get(D.z2F)),new T.u0(he,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),_e}();return ot.\u0275fac=function(re){return new(re||ot)(D.LFG(oe),D.LFG(ct),D.LFG(D._Vd),D.LFG(Ut),D.LFG(Rt),D.LFG(D.zs3),D.LFG(D.R0b),D.LFG(y.K0),D.LFG(P.Is),D.LFG(y.Ye),D.LFG(Se))},ot.\u0275prov=D.Yz7({token:ot,factory:ot.\u0275fac}),ot}(),Hn=[{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"}],Zn=new D.OlP("cdk-connected-overlay-scroll-strategy"),lr=function(){var ot=function _e(re){(0,C.Z)(this,_e),this.elementRef=re};return ot.\u0275fac=function(re){return new(re||ot)(D.Y36(D.SBq))},ot.\u0275dir=D.lG2({type:ot,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ot}(),Bn=function(){var ot=function(){function _e(re,he,Ge,Ye,yt){(0,C.Z)(this,_e),this._overlay=re,this._dir=yt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=E.w.EMPTY,this._attachSubscription=E.w.EMPTY,this._detachSubscription=E.w.EMPTY,this._positionSubscription=E.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(he,Ge),this._scrollStrategyFactory=Ye,this.scrollStrategy=this._scrollStrategyFactory()}return(0,_.Z)(_e,[{key:"offsetX",get:function(){return this._offsetX},set:function(he){this._offsetX=he,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(he){this._offsetY=he,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(he){this._hasBackdrop=(0,g.Ig)(he)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(he){this._lockPosition=(0,g.Ig)(he)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(he){this._flexibleDimensions=(0,g.Ig)(he)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(he){this._growAfterOpen=(0,g.Ig)(he)}},{key:"push",get:function(){return this._push},set:function(he){this._push=(0,g.Ig)(he)}},{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(he){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),he.origin&&this.open&&this._position.apply()),he.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var he=this;(!this.positions||!this.positions.length)&&(this.positions=Hn);var Ge=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Ge.attachments().subscribe(function(){return he.attach.emit()}),this._detachSubscription=Ge.detachments().subscribe(function(){return he.detach.emit()}),Ge.keydownEvents().subscribe(function(Ye){he.overlayKeydown.next(Ye),Ye.keyCode===j.hY&&!he.disableClose&&!(0,j.Vb)(Ye)&&(Ye.preventDefault(),he._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(Ye){he.overlayOutsideClick.next(Ye)})}},{key:"_buildConfig",value:function(){var he=this._position=this.positionStrategy||this._createPositionStrategy(),Ge=new $({direction:this._dir,positionStrategy:he,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Ge.width=this.width),(this.height||0===this.height)&&(Ge.height=this.height),(this.minWidth||0===this.minWidth)&&(Ge.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ge.minHeight=this.minHeight),this.backdropClass&&(Ge.backdropClass=this.backdropClass),this.panelClass&&(Ge.panelClass=this.panelClass),Ge}},{key:"_updatePositionStrategy",value:function(he){var Ge=this,Ye=this.positions.map(function(yt){return{originX:yt.originX,originY:yt.originY,overlayX:yt.overlayX,overlayY:yt.overlayY,offsetX:yt.offsetX||Ge.offsetX,offsetY:yt.offsetY||Ge.offsetY,panelClass:yt.panelClass||void 0}});return he.setOrigin(this.origin.elementRef).withPositions(Ye).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var he=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(he),he}},{key:"_attachOverlay",value:function(){var he=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(Ge){he.backdropClick.emit(Ge)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,L.o)(function(){return he.positionChange.observers.length>0})).subscribe(function(Ge){he.positionChange.emit(Ge),0===he.positionChange.observers.length&&he._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),_e}();return ot.\u0275fac=function(re){return new(re||ot)(D.Y36(An),D.Y36(D.Rgc),D.Y36(D.s_b),D.Y36(Zn),D.Y36(P.Is,8))},ot.\u0275dir=D.lG2({type:ot,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]}),ot}(),mr={provide:Zn,deps:[An],useFactory:function(ot){return function(){return ot.scrollStrategies.reposition()}}},Kt=function(){var ot=function _e(){(0,C.Z)(this,_e)};return ot.\u0275fac=function(re){return new(re||ot)},ot.\u0275mod=D.oAB({type:ot}),ot.\u0275inj=D.cJS({providers:[An,mr],imports:[[P.vT,T.eL,N.Cl],N.Cl]}),ot}()},15427:function(le,q,f){"use strict";f.d(q,{t4:function(){return w},ud:function(){return R},sA:function(){return L},ht:function(){return A},kV:function(){return S},_i:function(){return M},qK:function(){return N},i$:function(){return P},Mq:function(){return T}});var Z,U=f(18967),B=f(65508),V=f(40098);try{Z="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(j){Z=!1}var C,D,y,g,E,w=function(){var j=function K(z){(0,U.Z)(this,K),this._platformId=z,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(z){return new(z||j)(B.LFG(B.Lbi))},j.\u0275prov=B.Yz7({factory:function(){return new j(B.LFG(B.Lbi))},token:j,providedIn:"root"}),j}(),R=function(){var j=function K(){(0,U.Z)(this,K)};return j.\u0275fac=function(z){return new(z||j)},j.\u0275mod=B.oAB({type:j}),j.\u0275inj=B.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 N(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(_);var j=document.createElement("input");return C=new Set(_.filter(function(K){return j.setAttribute("type",K),j.type===K}))}function P(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 M(){if("object"!=typeof document||!document)return 0;if(null==y){var j=document.createElement("div"),K=j.style;j.dir="rtl",K.width="1px",K.overflow="auto",K.visibility="hidden",K.pointerEvents="none",K.position="absolute";var z=document.createElement("div"),Q=z.style;Q.width="2px",Q.height="1px",j.appendChild(z),document.body.appendChild(j),y=0,0===j.scrollLeft&&(j.scrollLeft=1,y=0===j.scrollLeft?1:2),j.parentNode.removeChild(j)}return y}function S(j){if(function(){if(null==E){var j="undefined"!=typeof document?document.head:null;E=!(!j||!j.createShadowRoot&&!j.attachShadow)}return E}()){var K=j.getRootNode?j.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&K instanceof ShadowRoot)return K}return null}function A(){for(var j="undefined"!=typeof document&&document?document.activeElement:null;j&&j.shadowRoot;){var K=j.shadowRoot.activeElement;if(K===j)break;j=K}return j}function L(j){return j.composedPath?j.composedPath()[0]:j.target}},80785:function(le,q,f){"use strict";f.d(q,{en:function(){return A},ig:function(){return z},Pl:function(){return ae},C5:function(){return E},u0:function(){return j},eL:function(){return se},UE:function(){return x}});var U=f(88009),B=f(20901),V=f(89200),Z=f(10509),w=f(97154),R=f(18967),C=f(14105),_=f(65508),N=f(40098),M=function(){function de(){(0,R.Z)(this,de)}return(0,C.Z)(de,[{key:"attach",value:function($){return this._attachedHost=$,$.attach(this)}},{key:"detach",value:function(){var $=this._attachedHost;null!=$&&(this._attachedHost=null,$.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function($){this._attachedHost=$}}]),de}(),E=function(de){(0,Z.Z)($,de);var oe=(0,w.Z)($);function $(ye,ve,et,Ne){var gt;return(0,R.Z)(this,$),(gt=oe.call(this)).component=ye,gt.viewContainerRef=ve,gt.injector=et,gt.componentFactoryResolver=Ne,gt}return $}(M),x=function(de){(0,Z.Z)($,de);var oe=(0,w.Z)($);function $(ye,ve,et){var Ne;return(0,R.Z)(this,$),(Ne=oe.call(this)).templateRef=ye,Ne.viewContainerRef=ve,Ne.context=et,Ne}return(0,C.Z)($,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(ve){var et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=et,(0,B.Z)((0,V.Z)($.prototype),"attach",this).call(this,ve)}},{key:"detach",value:function(){return this.context=void 0,(0,B.Z)((0,V.Z)($.prototype),"detach",this).call(this)}}]),$}(M),S=function(de){(0,Z.Z)($,de);var oe=(0,w.Z)($);function $(ye){var ve;return(0,R.Z)(this,$),(ve=oe.call(this)).element=ye instanceof _.SBq?ye.nativeElement:ye,ve}return $}(M),A=function(){function de(){(0,R.Z)(this,de),this._isDisposed=!1,this.attachDomPortal=null}return(0,C.Z)(de,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function($){return $ instanceof E?(this._attachedPortal=$,this.attachComponentPortal($)):$ instanceof x?(this._attachedPortal=$,this.attachTemplatePortal($)):this.attachDomPortal&&$ instanceof S?(this._attachedPortal=$,this.attachDomPortal($)):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($){this._disposeFn=$}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),de}(),j=function(de){(0,Z.Z)($,de);var oe=(0,w.Z)($);function $(ye,ve,et,Ne,gt){var _t,Rt;return(0,R.Z)(this,$),(Rt=oe.call(this)).outletElement=ye,Rt._componentFactoryResolver=ve,Rt._appRef=et,Rt._defaultInjector=Ne,Rt.attachDomPortal=function(Se){var Oe=Se.element,je=Rt._document.createComment("dom-portal");Oe.parentNode.insertBefore(je,Oe),Rt.outletElement.appendChild(Oe),Rt._attachedPortal=Se,(0,B.Z)((_t=(0,U.Z)(Rt),(0,V.Z)($.prototype)),"setDisposeFn",_t).call(_t,function(){je.parentNode&&je.parentNode.replaceChild(Oe,je)})},Rt._document=gt,Rt}return(0,C.Z)($,[{key:"attachComponentPortal",value:function(ve){var _t,et=this,gt=(ve.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ve.component);return ve.viewContainerRef?(_t=ve.viewContainerRef.createComponent(gt,ve.viewContainerRef.length,ve.injector||ve.viewContainerRef.injector),this.setDisposeFn(function(){return _t.destroy()})):(_t=gt.create(ve.injector||this._defaultInjector),this._appRef.attachView(_t.hostView),this.setDisposeFn(function(){et._appRef.detachView(_t.hostView),_t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(_t)),this._attachedPortal=ve,_t}},{key:"attachTemplatePortal",value:function(ve){var et=this,Ne=ve.viewContainerRef,gt=Ne.createEmbeddedView(ve.templateRef,ve.context);return gt.rootNodes.forEach(function(_t){return et.outletElement.appendChild(_t)}),gt.detectChanges(),this.setDisposeFn(function(){var _t=Ne.indexOf(gt);-1!==_t&&Ne.remove(_t)}),this._attachedPortal=ve,gt}},{key:"dispose",value:function(){(0,B.Z)((0,V.Z)($.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(ve){return ve.hostView.rootNodes[0]}}]),$}(A),z=function(){var de=function(oe){(0,Z.Z)(ye,oe);var $=(0,w.Z)(ye);function ye(ve,et){return(0,R.Z)(this,ye),$.call(this,ve,et)}return ye}(x);return de.\u0275fac=function($){return new($||de)(_.Y36(_.Rgc),_.Y36(_.s_b))},de.\u0275dir=_.lG2({type:de,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[_.qOj]}),de}(),ae=function(){var de=function(oe){(0,Z.Z)(ye,oe);var $=(0,w.Z)(ye);function ye(ve,et,Ne){var gt,_t;return(0,R.Z)(this,ye),(_t=$.call(this))._componentFactoryResolver=ve,_t._viewContainerRef=et,_t._isInitialized=!1,_t.attached=new _.vpe,_t.attachDomPortal=function(Rt){var Se=Rt.element,Oe=_t._document.createComment("dom-portal");Rt.setAttachedHost((0,U.Z)(_t)),Se.parentNode.insertBefore(Oe,Se),_t._getRootNode().appendChild(Se),_t._attachedPortal=Rt,(0,B.Z)((gt=(0,U.Z)(_t),(0,V.Z)(ye.prototype)),"setDisposeFn",gt).call(gt,function(){Oe.parentNode&&Oe.parentNode.replaceChild(Se,Oe)})},_t._document=Ne,_t}return(0,C.Z)(ye,[{key:"portal",get:function(){return this._attachedPortal},set:function(et){this.hasAttached()&&!et&&!this._isInitialized||(this.hasAttached()&&(0,B.Z)((0,V.Z)(ye.prototype),"detach",this).call(this),et&&(0,B.Z)((0,V.Z)(ye.prototype),"attach",this).call(this,et),this._attachedPortal=et)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){(0,B.Z)((0,V.Z)(ye.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(et){et.setAttachedHost(this);var Ne=null!=et.viewContainerRef?et.viewContainerRef:this._viewContainerRef,_t=(et.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(et.component),Rt=Ne.createComponent(_t,Ne.length,et.injector||Ne.injector);return Ne!==this._viewContainerRef&&this._getRootNode().appendChild(Rt.hostView.rootNodes[0]),(0,B.Z)((0,V.Z)(ye.prototype),"setDisposeFn",this).call(this,function(){return Rt.destroy()}),this._attachedPortal=et,this._attachedRef=Rt,this.attached.emit(Rt),Rt}},{key:"attachTemplatePortal",value:function(et){var Ne=this;et.setAttachedHost(this);var gt=this._viewContainerRef.createEmbeddedView(et.templateRef,et.context);return(0,B.Z)((0,V.Z)(ye.prototype),"setDisposeFn",this).call(this,function(){return Ne._viewContainerRef.clear()}),this._attachedPortal=et,this._attachedRef=gt,this.attached.emit(gt),gt}},{key:"_getRootNode",value:function(){var et=this._viewContainerRef.element.nativeElement;return et.nodeType===et.ELEMENT_NODE?et:et.parentNode}}]),ye}(A);return de.\u0275fac=function($){return new($||de)(_.Y36(_._Vd),_.Y36(_.s_b),_.Y36(N.K0))},de.\u0275dir=_.lG2({type:de,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[_.qOj]}),de}(),se=function(){var de=function oe(){(0,R.Z)(this,oe)};return de.\u0275fac=function($){return new($||de)},de.\u0275mod=_.oAB({type:de}),de.\u0275inj=_.cJS({}),de}()},28722:function(le,q,f){"use strict";f.d(q,{PQ:function(){return Rt},ZD:function(){return vt},mF:function(){return _t},Cl:function(){return Xt},rL:function(){return Oe}}),f(27235),f(36683),f(20901),f(89200),f(10509),f(97154);var C=f(18967),_=f(14105),N=f(78081),D=f(65508),O=f(68707),P=f(43161),y=f(89797),g=f(33090),A=(f(58172),f(8285),f(5051),f(17504),f(76161),f(54562)),L=f(58780),j=f(44213),ie=(f(57682),f(4363),f(34487),f(61106),f(15427)),se=f(40098),ue=f(8392);f(37429);var _t=function(){var qt=function(){function Ct(jt,bt,nn){(0,C.Z)(this,Ct),this._ngZone=jt,this._platform=bt,this._scrolled=new O.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=nn}return(0,_.Z)(Ct,[{key:"register",value:function(bt){var nn=this;this.scrollContainers.has(bt)||this.scrollContainers.set(bt,bt.elementScrolled().subscribe(function(){return nn._scrolled.next(bt)}))}},{key:"deregister",value:function(bt){var nn=this.scrollContainers.get(bt);nn&&(nn.unsubscribe(),this.scrollContainers.delete(bt))}},{key:"scrolled",value:function(){var bt=this,nn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new y.y(function(Ut){bt._globalSubscription||bt._addGlobalListener();var an=nn>0?bt._scrolled.pipe((0,A.e)(nn)).subscribe(Ut):bt._scrolled.subscribe(Ut);return bt._scrolledCount++,function(){an.unsubscribe(),bt._scrolledCount--,bt._scrolledCount||bt._removeGlobalListener()}}):(0,P.of)()}},{key:"ngOnDestroy",value:function(){var bt=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(nn,Ut){return bt.deregister(Ut)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(bt,nn){var Ut=this.getAncestorScrollContainers(bt);return this.scrolled(nn).pipe((0,L.h)(function(an){return!an||Ut.indexOf(an)>-1}))}},{key:"getAncestorScrollContainers",value:function(bt){var nn=this,Ut=[];return this.scrollContainers.forEach(function(an,An){nn._scrollableContainsElement(An,bt)&&Ut.push(An)}),Ut}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(bt,nn){var Ut=(0,N.fI)(nn),an=bt.getElementRef().nativeElement;do{if(Ut==an)return!0}while(Ut=Ut.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var bt=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var nn=bt._getWindow();return(0,g.R)(nn.document,"scroll").subscribe(function(){return bt._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),Ct}();return qt.\u0275fac=function(jt){return new(jt||qt)(D.LFG(D.R0b),D.LFG(ie.t4),D.LFG(se.K0,8))},qt.\u0275prov=D.Yz7({factory:function(){return new qt(D.LFG(D.R0b),D.LFG(ie.t4),D.LFG(se.K0,8))},token:qt,providedIn:"root"}),qt}(),Rt=function(){var qt=function(){function Ct(jt,bt,nn,Ut){var an=this;(0,C.Z)(this,Ct),this.elementRef=jt,this.scrollDispatcher=bt,this.ngZone=nn,this.dir=Ut,this._destroyed=new O.xQ,this._elementScrolled=new y.y(function(An){return an.ngZone.runOutsideAngular(function(){return(0,g.R)(an.elementRef.nativeElement,"scroll").pipe((0,j.R)(an._destroyed)).subscribe(An)})})}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 nn=this.elementRef.nativeElement,Ut=this.dir&&"rtl"==this.dir.value;null==bt.left&&(bt.left=Ut?bt.end:bt.start),null==bt.right&&(bt.right=Ut?bt.start:bt.end),null!=bt.bottom&&(bt.top=nn.scrollHeight-nn.clientHeight-bt.bottom),Ut&&0!=(0,ie._i)()?(null!=bt.left&&(bt.right=nn.scrollWidth-nn.clientWidth-bt.left),2==(0,ie._i)()?bt.left=bt.right:1==(0,ie._i)()&&(bt.left=bt.right?-bt.right:bt.right)):null!=bt.right&&(bt.left=nn.scrollWidth-nn.clientWidth-bt.right),this._applyScrollToOptions(bt)}},{key:"_applyScrollToOptions",value:function(bt){var nn=this.elementRef.nativeElement;(0,ie.Mq)()?nn.scrollTo(bt):(null!=bt.top&&(nn.scrollTop=bt.top),null!=bt.left&&(nn.scrollLeft=bt.left))}},{key:"measureScrollOffset",value:function(bt){var nn="left",an=this.elementRef.nativeElement;if("top"==bt)return an.scrollTop;if("bottom"==bt)return an.scrollHeight-an.clientHeight-an.scrollTop;var An=this.dir&&"rtl"==this.dir.value;return"start"==bt?bt=An?"right":nn:"end"==bt&&(bt=An?nn:"right"),An&&2==(0,ie._i)()?bt==nn?an.scrollWidth-an.clientWidth-an.scrollLeft:an.scrollLeft:An&&1==(0,ie._i)()?bt==nn?an.scrollLeft+an.scrollWidth-an.clientWidth:-an.scrollLeft:bt==nn?an.scrollLeft:an.scrollWidth-an.clientWidth-an.scrollLeft}}]),Ct}();return qt.\u0275fac=function(jt){return new(jt||qt)(D.Y36(D.SBq),D.Y36(_t),D.Y36(D.R0b),D.Y36(ue.Is,8))},qt.\u0275dir=D.lG2({type:qt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),qt}(),Oe=function(){var qt=function(){function Ct(jt,bt,nn){var Ut=this;(0,C.Z)(this,Ct),this._platform=jt,this._change=new O.xQ,this._changeListener=function(an){Ut._change.next(an)},this._document=nn,bt.runOutsideAngular(function(){if(jt.isBrowser){var an=Ut._getWindow();an.addEventListener("resize",Ut._changeListener),an.addEventListener("orientationchange",Ut._changeListener)}Ut.change().subscribe(function(){return Ut._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(),nn=this.getViewportSize(),Ut=nn.width,an=nn.height;return{top:bt.top,left:bt.left,bottom:bt.top+an,right:bt.left+Ut,height:an,width:Ut}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var bt=this._document,nn=this._getWindow(),Ut=bt.documentElement,an=Ut.getBoundingClientRect();return{top:-an.top||bt.body.scrollTop||nn.scrollY||Ut.scrollTop||0,left:-an.left||bt.body.scrollLeft||nn.scrollX||Ut.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,A.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 qt.\u0275fac=function(jt){return new(jt||qt)(D.LFG(ie.t4),D.LFG(D.R0b),D.LFG(se.K0,8))},qt.\u0275prov=D.Yz7({factory:function(){return new qt(D.LFG(ie.t4),D.LFG(D.R0b),D.LFG(se.K0,8))},token:qt,providedIn:"root"}),qt}(),vt=function(){var qt=function Ct(){(0,C.Z)(this,Ct)};return qt.\u0275fac=function(jt){return new(jt||qt)},qt.\u0275mod=D.oAB({type:qt}),qt.\u0275inj=D.cJS({}),qt}(),Xt=function(){var qt=function Ct(){(0,C.Z)(this,Ct)};return qt.\u0275fac=function(jt){return new(jt||qt)},qt.\u0275mod=D.oAB({type:qt}),qt.\u0275inj=D.cJS({imports:[[ue.vT,ie.ud,vt],ue.vT,vt]}),qt}()},78081:function(le,q,f){"use strict";f.d(q,{t6:function(){return Z},Eq:function(){return w},Ig:function(){return B},HM:function(){return R},fI:function(){return C},su:function(){return V}});var U=f(65508);function B(N){return null!=N&&"false"!=="".concat(N)}function V(N){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Z(N)?Number(N):D}function Z(N){return!isNaN(parseFloat(N))&&!isNaN(Number(N))}function w(N){return Array.isArray(N)?N:[N]}function R(N){return null==N?"":"string"==typeof N?N:"".concat(N,"px")}function C(N){return N instanceof U.SBq?N.nativeElement:N}},40098:function(le,q,f){"use strict";f.d(q,{mr:function(){return Q},Ov:function(){return Fo},ez:function(){return Jn},K0:function(){return y},Do:function(){return ie},V_:function(){return M},Ye:function(){return se},S$:function(){return K},mk:function(){return tn},sg:function(){return Wn},O5:function(){return Bi},PC:function(){return Ui},RF:function(){return Jo},n9:function(){return La},ED:function(){return Ao},tP:function(){return so},b0:function(){return ae},lw:function(){return g},EM:function(){return Me},JF:function(){return zn},NF:function(){return Uo},w_:function(){return P},bD:function(){return ku},q:function(){return N},Mx:function(){return $t},HT:function(){return O}});var U=f(36683),B=f(27235),V=f(10509),Z=f(97154),w=f(14105),R=f(18967),C=f(65508),_=null;function N(){return _}function O(pe){_||(_=pe)}var P=function pe(){(0,R.Z)(this,pe)},y=new C.OlP("DocumentToken"),g=function(){var pe=function(){function Ie(){(0,R.Z)(this,Ie)}return(0,w.Z)(Ie,[{key:"historyGo",value:function(qe){throw new Error("Not implemented")}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)},pe.\u0275prov=(0,C.Yz7)({factory:T,token:pe,providedIn:"platform"}),pe}();function T(){return(0,C.LFG)(E)}var M=new C.OlP("Location Initialized"),E=function(){var pe=function(Ie){(0,V.Z)(qe,Ie);var $e=(0,Z.Z)(qe);function qe(mt){var kt;return(0,R.Z)(this,qe),(kt=$e.call(this))._doc=mt,kt._init(),kt}return(0,w.Z)(qe,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return N().getBaseHref(this._doc)}},{key:"onPopState",value:function(kt){var ln=N().getGlobalEventTarget(this._doc,"window");return ln.addEventListener("popstate",kt,!1),function(){return ln.removeEventListener("popstate",kt)}}},{key:"onHashChange",value:function(kt){var ln=N().getGlobalEventTarget(this._doc,"window");return ln.addEventListener("hashchange",kt,!1),function(){return ln.removeEventListener("hashchange",kt)}}},{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(kt){this.location.pathname=kt}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(kt,ln,Mn){x()?this._history.pushState(kt,ln,Mn):this.location.hash=Mn}},{key:"replaceState",value:function(kt,ln,Mn){x()?this._history.replaceState(kt,ln,Mn):this.location.hash=Mn}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var kt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(kt)}},{key:"getState",value:function(){return this._history.state}}]),qe}(g);return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(y))},pe.\u0275prov=(0,C.Yz7)({factory:S,token:pe,providedIn:"platform"}),pe}();function x(){return!!window.history.pushState}function S(){return new E((0,C.LFG)(y))}function A(pe,Ie){if(0==pe.length)return Ie;if(0==Ie.length)return pe;var $e=0;return pe.endsWith("/")&&$e++,Ie.startsWith("/")&&$e++,2==$e?pe+Ie.substring(1):1==$e?pe+Ie:pe+"/"+Ie}function L(pe){var Ie=pe.match(/#|\?|$/),$e=Ie&&Ie.index||pe.length;return pe.slice(0,$e-("/"===pe[$e-1]?1:0))+pe.slice($e)}function j(pe){return pe&&"?"!==pe[0]?"?"+pe:pe}var K=function(){var pe=function(){function Ie(){(0,R.Z)(this,Ie)}return(0,w.Z)(Ie,[{key:"historyGo",value:function(qe){throw new Error("Not implemented")}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)},pe.\u0275prov=(0,C.Yz7)({factory:z,token:pe,providedIn:"root"}),pe}();function z(pe){var Ie=(0,C.LFG)(y).location;return new ae((0,C.LFG)(g),Ie&&Ie.origin||"")}var Q=new C.OlP("appBaseHref"),ae=function(){var pe=function(Ie){(0,V.Z)(qe,Ie);var $e=(0,Z.Z)(qe);function qe(mt,kt){var ln;if((0,R.Z)(this,qe),(ln=$e.call(this))._platformLocation=mt,ln._removeListenerFns=[],null==kt&&(kt=ln._platformLocation.getBaseHrefFromDOM()),null==kt)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 ln._baseHref=kt,ln}return(0,w.Z)(qe,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(kt){this._removeListenerFns.push(this._platformLocation.onPopState(kt),this._platformLocation.onHashChange(kt))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(kt){return A(this._baseHref,kt)}},{key:"path",value:function(){var kt=arguments.length>0&&void 0!==arguments[0]&&arguments[0],ln=this._platformLocation.pathname+j(this._platformLocation.search),Mn=this._platformLocation.hash;return Mn&&kt?"".concat(ln).concat(Mn):ln}},{key:"pushState",value:function(kt,ln,Mn,nr){var xr=this.prepareExternalUrl(Mn+j(nr));this._platformLocation.pushState(kt,ln,xr)}},{key:"replaceState",value:function(kt,ln,Mn,nr){var xr=this.prepareExternalUrl(Mn+j(nr));this._platformLocation.replaceState(kt,ln,xr)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var ln,Mn,kt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Mn=(ln=this._platformLocation).historyGo)||void 0===Mn||Mn.call(ln,kt)}}]),qe}(K);return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(g),C.LFG(Q,8))},pe.\u0275prov=C.Yz7({token:pe,factory:pe.\u0275fac}),pe}(),ie=function(){var pe=function(Ie){(0,V.Z)(qe,Ie);var $e=(0,Z.Z)(qe);function qe(mt,kt){var ln;return(0,R.Z)(this,qe),(ln=$e.call(this))._platformLocation=mt,ln._baseHref="",ln._removeListenerFns=[],null!=kt&&(ln._baseHref=kt),ln}return(0,w.Z)(qe,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(kt){this._removeListenerFns.push(this._platformLocation.onPopState(kt),this._platformLocation.onHashChange(kt))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var ln=this._platformLocation.hash;return null==ln&&(ln="#"),ln.length>0?ln.substring(1):ln}},{key:"prepareExternalUrl",value:function(kt){var ln=A(this._baseHref,kt);return ln.length>0?"#"+ln:ln}},{key:"pushState",value:function(kt,ln,Mn,nr){var xr=this.prepareExternalUrl(Mn+j(nr));0==xr.length&&(xr=this._platformLocation.pathname),this._platformLocation.pushState(kt,ln,xr)}},{key:"replaceState",value:function(kt,ln,Mn,nr){var xr=this.prepareExternalUrl(Mn+j(nr));0==xr.length&&(xr=this._platformLocation.pathname),this._platformLocation.replaceState(kt,ln,xr)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var ln,Mn,kt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Mn=(ln=this._platformLocation).historyGo)||void 0===Mn||Mn.call(ln,kt)}}]),qe}(K);return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(g),C.LFG(Q,8))},pe.\u0275prov=C.Yz7({token:pe,factory:pe.\u0275fac}),pe}(),se=function(){var pe=function(){function Ie($e,qe){var mt=this;(0,R.Z)(this,Ie),this._subject=new C.vpe,this._urlChangeListeners=[],this._platformStrategy=$e;var kt=this._platformStrategy.getBaseHref();this._platformLocation=qe,this._baseHref=L(oe(kt)),this._platformStrategy.onPopState(function(ln){mt._subject.emit({url:mt.path(!0),pop:!0,state:ln.state,type:ln.type})})}return(0,w.Z)(Ie,[{key:"path",value:function(){var qe=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(qe))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(qe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(qe+j(mt))}},{key:"normalize",value:function(qe){return Ie.stripTrailingSlash(function(pe,Ie){return pe&&Ie.startsWith(pe)?Ie.substring(pe.length):Ie}(this._baseHref,oe(qe)))}},{key:"prepareExternalUrl",value:function(qe){return qe&&"/"!==qe[0]&&(qe="/"+qe),this._platformStrategy.prepareExternalUrl(qe)}},{key:"go",value:function(qe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",kt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(kt,"",qe,mt),this._notifyUrlChangeListeners(this.prepareExternalUrl(qe+j(mt)),kt)}},{key:"replaceState",value:function(qe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",kt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(kt,"",qe,mt),this._notifyUrlChangeListeners(this.prepareExternalUrl(qe+j(mt)),kt)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var mt,kt,qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(kt=(mt=this._platformStrategy).historyGo)||void 0===kt||kt.call(mt,qe)}},{key:"onUrlChange",value:function(qe){var mt=this;this._urlChangeListeners.push(qe),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(kt){mt._notifyUrlChangeListeners(kt.url,kt.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",mt=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(kt){return kt(qe,mt)})}},{key:"subscribe",value:function(qe,mt,kt){return this._subject.subscribe({next:qe,error:mt,complete:kt})}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(K),C.LFG(g))},pe.normalizeQueryParams=j,pe.joinWithSlash=A,pe.stripTrailingSlash=L,pe.\u0275prov=(0,C.Yz7)({factory:ue,token:pe,providedIn:"root"}),pe}();function ue(){return new se((0,C.LFG)(K),(0,C.LFG)(g))}function oe(pe){return pe.replace(/\/index.html$/,"")}var ve=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}({}),An=C.kL8,It=function pe(){(0,R.Z)(this,pe)},Pt=function(){var pe=function(Ie){(0,V.Z)(qe,Ie);var $e=(0,Z.Z)(qe);function qe(mt){var kt;return(0,R.Z)(this,qe),(kt=$e.call(this)).locale=mt,kt}return(0,w.Z)(qe,[{key:"getPluralCategory",value:function(kt,ln){switch(An(ln||this.locale)(kt)){case ve.Zero:return"zero";case ve.One:return"one";case ve.Two:return"two";case ve.Few:return"few";case ve.Many:return"many";default:return"other"}}}]),qe}(It);return pe.\u0275fac=function($e){return new($e||pe)(C.LFG(C.soG))},pe.\u0275prov=C.Yz7({token:pe,factory:pe.\u0275fac}),pe}();function $t(pe,Ie){Ie=encodeURIComponent(Ie);var qe,$e=(0,U.Z)(pe.split(";"));try{for($e.s();!(qe=$e.n()).done;){var mt=qe.value,kt=mt.indexOf("="),ln=-1==kt?[mt,""]:[mt.slice(0,kt),mt.slice(kt+1)],Mn=(0,B.Z)(ln,2),xr=Mn[1];if(Mn[0].trim()===Ie)return decodeURIComponent(xr)}}catch(_r){$e.e(_r)}finally{$e.f()}return null}var tn=function(){var pe=function(){function Ie($e,qe,mt,kt){(0,R.Z)(this,Ie),this._iterableDiffers=$e,this._keyValueDiffers=qe,this._ngEl=mt,this._renderer=kt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return(0,w.Z)(Ie,[{key:"klass",set:function(qe){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof qe?qe.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(qe){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof qe?qe.split(/\s+/):qe,this._rawClass&&((0,C.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 qe=this._iterableDiffer.diff(this._rawClass);qe&&this._applyIterableChanges(qe)}else if(this._keyValueDiffer){var mt=this._keyValueDiffer.diff(this._rawClass);mt&&this._applyKeyValueChanges(mt)}}},{key:"_applyKeyValueChanges",value:function(qe){var mt=this;qe.forEachAddedItem(function(kt){return mt._toggleClass(kt.key,kt.currentValue)}),qe.forEachChangedItem(function(kt){return mt._toggleClass(kt.key,kt.currentValue)}),qe.forEachRemovedItem(function(kt){kt.previousValue&&mt._toggleClass(kt.key,!1)})}},{key:"_applyIterableChanges",value:function(qe){var mt=this;qe.forEachAddedItem(function(kt){if("string"!=typeof kt.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,C.AaK)(kt.item)));mt._toggleClass(kt.item,!0)}),qe.forEachRemovedItem(function(kt){return mt._toggleClass(kt.item,!1)})}},{key:"_applyClasses",value:function(qe){var mt=this;qe&&(Array.isArray(qe)||qe instanceof Set?qe.forEach(function(kt){return mt._toggleClass(kt,!0)}):Object.keys(qe).forEach(function(kt){return mt._toggleClass(kt,!!qe[kt])}))}},{key:"_removeClasses",value:function(qe){var mt=this;qe&&(Array.isArray(qe)||qe instanceof Set?qe.forEach(function(kt){return mt._toggleClass(kt,!1)}):Object.keys(qe).forEach(function(kt){return mt._toggleClass(kt,!1)}))}},{key:"_toggleClass",value:function(qe,mt){var kt=this;(qe=qe.trim())&&qe.split(/\s+/g).forEach(function(ln){mt?kt._renderer.addClass(kt._ngEl.nativeElement,ln):kt._renderer.removeClass(kt._ngEl.nativeElement,ln)})}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)(C.Y36(C.ZZ4),C.Y36(C.aQg),C.Y36(C.SBq),C.Y36(C.Qsj))},pe.\u0275dir=C.lG2({type:pe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),pe}(),Qn=function(){function pe(Ie,$e,qe,mt){(0,R.Z)(this,pe),this.$implicit=Ie,this.ngForOf=$e,this.index=qe,this.count=mt}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}(),Wn=function(){var pe=function(){function Ie($e,qe,mt){(0,R.Z)(this,Ie),this._viewContainer=$e,this._template=qe,this._differs=mt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return(0,w.Z)(Ie,[{key:"ngForOf",set:function(qe){this._ngForOf=qe,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(qe){this._trackByFn=qe}},{key:"ngForTemplate",set:function(qe){qe&&(this._template=qe)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var qe=this._ngForOf;if(!this._differ&&qe)try{this._differ=this._differs.find(qe).create(this.ngForTrackBy)}catch(kt){throw new Error("Cannot find a differ supporting object '".concat(qe,"' of type '").concat(function(pe){return pe.name||typeof pe}(qe),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var mt=this._differ.diff(this._ngForOf);mt&&this._applyChanges(mt)}}},{key:"_applyChanges",value:function(qe){var mt=this,kt=[];qe.forEachOperation(function(_r,Wt,Bt){if(null==_r.previousIndex){var Do=mt._viewContainer.createEmbeddedView(mt._template,new Qn(null,mt._ngForOf,-1,-1),null===Bt?void 0:Bt),ci=new Gn(_r,Do);kt.push(ci)}else if(null==Bt)mt._viewContainer.remove(null===Wt?void 0:Wt);else if(null!==Wt){var Qi=mt._viewContainer.get(Wt);mt._viewContainer.move(Qi,Bt);var Ea=new Gn(_r,Qi);kt.push(Ea)}});for(var ln=0;ln<kt.length;ln++)this._perViewChange(kt[ln].view,kt[ln].record);for(var Mn=0,nr=this._viewContainer.length;Mn<nr;Mn++){var xr=this._viewContainer.get(Mn);xr.context.index=Mn,xr.context.count=nr,xr.context.ngForOf=this._ngForOf}qe.forEachIdentityChange(function(_r){mt._viewContainer.get(_r.currentIndex).context.$implicit=_r.item})}},{key:"_perViewChange",value:function(qe,mt){qe.context.$implicit=mt.item}}],[{key:"ngTemplateContextGuard",value:function(qe,mt){return!0}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(C.ZZ4))},pe.\u0275dir=C.lG2({type:pe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),pe}(),Gn=function pe(Ie,$e){(0,R.Z)(this,pe),this.record=Ie,this.view=$e},Bi=function(){var pe=function(){function Ie($e,qe){(0,R.Z)(this,Ie),this._viewContainer=$e,this._context=new ao,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=qe}return(0,w.Z)(Ie,[{key:"ngIf",set:function(qe){this._context.$implicit=this._context.ngIf=qe,this._updateView()}},{key:"ngIfThen",set:function(qe){Mo("ngIfThen",qe),this._thenTemplateRef=qe,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(qe){Mo("ngIfElse",qe),this._elseTemplateRef=qe,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(qe,mt){return!0}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)(C.Y36(C.s_b),C.Y36(C.Rgc))},pe.\u0275dir=C.lG2({type:pe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),pe}(),ao=function pe(){(0,R.Z)(this,pe),this.$implicit=null,this.ngIf=null};function Mo(pe,Ie){if(Ie&&!Ie.createEmbeddedView)throw new Error("".concat(pe," must be a TemplateRef, but received '").concat((0,C.AaK)(Ie),"'."))}var Ji=function(){function pe(Ie,$e){(0,R.Z)(this,pe),this._viewContainerRef=Ie,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}(),Jo=function(){var pe=function(){function Ie(){(0,R.Z)(this,Ie),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return(0,w.Z)(Ie,[{key:"ngSwitch",set:function(qe){this._ngSwitch=qe,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(qe){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(qe)}},{key:"_matchCase",value:function(qe){var mt=qe==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||mt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),mt}},{key:"_updateDefaultCases",value:function(qe){if(this._defaultViews&&qe!==this._defaultUsed){this._defaultUsed=qe;for(var mt=0;mt<this._defaultViews.length;mt++)this._defaultViews[mt].enforceState(qe)}}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)},pe.\u0275dir=C.lG2({type:pe,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),pe}(),La=function(){var pe=function(){function Ie($e,qe,mt){(0,R.Z)(this,Ie),this.ngSwitch=mt,mt._addCase(),this._view=new Ji($e,qe)}return(0,w.Z)(Ie,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(Jo,9))},pe.\u0275dir=C.lG2({type:pe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),pe}(),Ao=function(){var pe=function Ie($e,qe,mt){(0,R.Z)(this,Ie),mt._addDefault(new Ji($e,qe))};return pe.\u0275fac=function($e){return new($e||pe)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(Jo,9))},pe.\u0275dir=C.lG2({type:pe,selectors:[["","ngSwitchDefault",""]]}),pe}(),Ui=function(){var pe=function(){function Ie($e,qe,mt){(0,R.Z)(this,Ie),this._ngEl=$e,this._differs=qe,this._renderer=mt,this._ngStyle=null,this._differ=null}return(0,w.Z)(Ie,[{key:"ngStyle",set:function(qe){this._ngStyle=qe,!this._differ&&qe&&(this._differ=this._differs.find(qe).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var qe=this._differ.diff(this._ngStyle);qe&&this._applyChanges(qe)}}},{key:"_setStyle",value:function(qe,mt){var kt=qe.split("."),ln=(0,B.Z)(kt,2),Mn=ln[0],nr=ln[1];null!=(mt=null!=mt&&nr?"".concat(mt).concat(nr):mt)?this._renderer.setStyle(this._ngEl.nativeElement,Mn,mt):this._renderer.removeStyle(this._ngEl.nativeElement,Mn)}},{key:"_applyChanges",value:function(qe){var mt=this;qe.forEachRemovedItem(function(kt){return mt._setStyle(kt.key,null)}),qe.forEachAddedItem(function(kt){return mt._setStyle(kt.key,kt.currentValue)}),qe.forEachChangedItem(function(kt){return mt._setStyle(kt.key,kt.currentValue)})}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)(C.Y36(C.SBq),C.Y36(C.aQg),C.Y36(C.Qsj))},pe.\u0275dir=C.lG2({type:pe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),pe}(),so=function(){var pe=function(){function Ie($e){(0,R.Z)(this,Ie),this._viewContainerRef=$e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return(0,w.Z)(Ie,[{key:"ngOnChanges",value:function(qe){if(qe.ngTemplateOutlet){var mt=this._viewContainerRef;this._viewRef&&mt.remove(mt.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?mt.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&qe.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)(C.Y36(C.s_b))},pe.\u0275dir=C.lG2({type:pe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[C.TTD]}),pe}();var ho=function(){function pe(){(0,R.Z)(this,pe)}return(0,w.Z)(pe,[{key:"createSubscription",value:function($e,qe){return $e.subscribe({next:qe,error:function(kt){throw kt}})}},{key:"dispose",value:function($e){$e.unsubscribe()}},{key:"onDestroy",value:function($e){$e.unsubscribe()}}]),pe}(),Ba=new(function(){function pe(){(0,R.Z)(this,pe)}return(0,w.Z)(pe,[{key:"createSubscription",value:function($e,qe){return $e.then(qe,function(mt){throw mt})}},{key:"dispose",value:function($e){}},{key:"onDestroy",value:function($e){}}]),pe}()),ui=new ho,Fo=function(){var pe=function(){function Ie($e){(0,R.Z)(this,Ie),this._ref=$e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return(0,w.Z)(Ie,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(qe){return this._obj?qe!==this._obj?(this._dispose(),this.transform(qe)):this._latestValue:(qe&&this._subscribe(qe),this._latestValue)}},{key:"_subscribe",value:function(qe){var mt=this;this._obj=qe,this._strategy=this._selectStrategy(qe),this._subscription=this._strategy.createSubscription(qe,function(kt){return mt._updateLatestValue(qe,kt)})}},{key:"_selectStrategy",value:function(qe){if((0,C.QGY)(qe))return Ba;if((0,C.F4k)(qe))return ui;throw function(pe,Ie){return Error("InvalidPipeArgument: '".concat(Ie,"' for pipe '").concat((0,C.AaK)(pe),"'"))}(Ie,qe)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(qe,mt){qe===this._obj&&(this._latestValue=mt,this._ref.markForCheck())}}]),Ie}();return pe.\u0275fac=function($e){return new($e||pe)(C.Y36(C.sBO,16))},pe.\u0275pipe=C.Yjl({name:"async",type:pe,pure:!1}),pe}(),Jn=function(){var pe=function Ie(){(0,R.Z)(this,Ie)};return pe.\u0275fac=function($e){return new($e||pe)},pe.\u0275mod=C.oAB({type:pe}),pe.\u0275inj=C.cJS({providers:[{provide:It,useClass:Pt}]}),pe}(),ku="browser";function Uo(pe){return pe===ku}var Me=function(){var pe=function Ie(){(0,R.Z)(this,Ie)};return pe.\u0275prov=(0,C.Yz7)({token:pe,providedIn:"root",factory:function(){return new Ve((0,C.LFG)(y),window)}}),pe}(),Ve=function(){function pe(Ie,$e){(0,R.Z)(this,pe),this.document=Ie,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 qe=function(pe,Ie){var $e=pe.getElementById(Ie)||pe.getElementsByName(Ie)[0];if($e)return $e;if("function"==typeof pe.createTreeWalker&&pe.body&&(pe.body.createShadowRoot||pe.body.attachShadow))for(var qe=pe.createTreeWalker(pe.body,NodeFilter.SHOW_ELEMENT),mt=qe.currentNode;mt;){var kt=mt.shadowRoot;if(kt){var ln=kt.getElementById(Ie)||kt.querySelector('[name="'.concat(Ie,'"]'));if(ln)return ln}mt=qe.nextNode()}return null}(this.document,$e);qe&&(this.scrollToElement(qe),this.attemptFocus(qe))}}},{key:"setHistoryScrollRestoration",value:function($e){if(this.supportScrollRestoration()){var qe=this.window.history;qe&&qe.scrollRestoration&&(qe.scrollRestoration=$e)}}},{key:"scrollToElement",value:function($e){var qe=$e.getBoundingClientRect(),mt=qe.left+this.window.pageXOffset,kt=qe.top+this.window.pageYOffset,ln=this.offset();this.window.scrollTo(mt-ln[0],kt-ln[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=we(this.window.history)||we(Object.getPrototypeOf(this.window.history));return!(!$e||!$e.writable&&!$e.set)}catch(qe){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch($e){return!1}}}]),pe}();function we(pe){return Object.getOwnPropertyDescriptor(pe,"scrollRestoration")}var zn=function pe(){(0,R.Z)(this,pe)}},75472:function(le,q,f){"use strict";f.d(q,{eN:function(){return _t},JF:function(){return En},UA:function(){return Ne}});var U=f(10509),B=f(97154),V=f(27235),Z=f(10629),w=f(14105),R=f(18967),C=f(40098),_=f(65508),N=f(43161),D=f(89797),O=f(38575),P=f(58780),y=f(85639),g=function wt(){(0,R.Z)(this,wt)},T=function wt(){(0,R.Z)(this,wt)},M=function(){function wt(ot){var _e=this;(0,R.Z)(this,wt),this.normalizedNames=new Map,this.lazyUpdate=null,ot?this.lazyInit="string"==typeof ot?function(){_e.headers=new Map,ot.split("\n").forEach(function(re){var he=re.indexOf(":");if(he>0){var Ge=re.slice(0,he),Ye=Ge.toLowerCase(),yt=re.slice(he+1).trim();_e.maybeSetNormalizedName(Ge,Ye),_e.headers.has(Ye)?_e.headers.get(Ye).push(yt):_e.headers.set(Ye,[yt])}})}:function(){_e.headers=new Map,Object.keys(ot).forEach(function(re){var he=ot[re],Ge=re.toLowerCase();"string"==typeof he&&(he=[he]),he.length>0&&(_e.headers.set(Ge,he),_e.maybeSetNormalizedName(re,Ge))})}:this.headers=new Map}return(0,w.Z)(wt,[{key:"has",value:function(_e){return this.init(),this.headers.has(_e.toLowerCase())}},{key:"get",value:function(_e){this.init();var re=this.headers.get(_e.toLowerCase());return re&&re.length>0?re[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(_e){return this.init(),this.headers.get(_e.toLowerCase())||null}},{key:"append",value:function(_e,re){return this.clone({name:_e,value:re,op:"a"})}},{key:"set",value:function(_e,re){return this.clone({name:_e,value:re,op:"s"})}},{key:"delete",value:function(_e,re){return this.clone({name:_e,value:re,op:"d"})}},{key:"maybeSetNormalizedName",value:function(_e,re){this.normalizedNames.has(re)||this.normalizedNames.set(re,_e)}},{key:"init",value:function(){var _e=this;this.lazyInit&&(this.lazyInit instanceof wt?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(re){return _e.applyUpdate(re)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(_e){var re=this;_e.init(),Array.from(_e.headers.keys()).forEach(function(he){re.headers.set(he,_e.headers.get(he)),re.normalizedNames.set(he,_e.normalizedNames.get(he))})}},{key:"clone",value:function(_e){var re=new wt;return re.lazyInit=this.lazyInit&&this.lazyInit instanceof wt?this.lazyInit:this,re.lazyUpdate=(this.lazyUpdate||[]).concat([_e]),re}},{key:"applyUpdate",value:function(_e){var re=_e.name.toLowerCase();switch(_e.op){case"a":case"s":var he=_e.value;if("string"==typeof he&&(he=[he]),0===he.length)return;this.maybeSetNormalizedName(_e.name,re);var Ge=("a"===_e.op?this.headers.get(re):void 0)||[];Ge.push.apply(Ge,(0,Z.Z)(he)),this.headers.set(re,Ge);break;case"d":var Ye=_e.value;if(Ye){var yt=this.headers.get(re);if(!yt)return;0===(yt=yt.filter(function(Lt){return-1===Ye.indexOf(Lt)})).length?(this.headers.delete(re),this.normalizedNames.delete(re)):this.headers.set(re,yt)}else this.headers.delete(re),this.normalizedNames.delete(re)}}},{key:"forEach",value:function(_e){var re=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(he){return _e(re.normalizedNames.get(he),re.headers.get(he))})}}]),wt}(),E=function(){function wt(){(0,R.Z)(this,wt)}return(0,w.Z)(wt,[{key:"encodeKey",value:function(_e){return L(_e)}},{key:"encodeValue",value:function(_e){return L(_e)}},{key:"decodeKey",value:function(_e){return decodeURIComponent(_e)}},{key:"decodeValue",value:function(_e){return decodeURIComponent(_e)}}]),wt}();function x(wt,ot){var _e=new Map;return wt.length>0&&wt.replace(/^\?/,"").split("&").forEach(function(he){var Ge=he.indexOf("="),Ye=-1==Ge?[ot.decodeKey(he),""]:[ot.decodeKey(he.slice(0,Ge)),ot.decodeValue(he.slice(Ge+1))],yt=(0,V.Z)(Ye,2),Lt=yt[0],Yt=yt[1],rn=_e.get(Lt)||[];rn.push(Yt),_e.set(Lt,rn)}),_e}var S=/%(\d[a-f0-9])/gi,A={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function L(wt){return encodeURIComponent(wt).replace(S,function(ot,_e){var re;return null!==(re=A[_e])&&void 0!==re?re:ot})}function j(wt){return"".concat(wt)}var K=function(){function wt(){var ot=this,_e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,R.Z)(this,wt),this.updates=null,this.cloneFrom=null,this.encoder=_e.encoder||new E,_e.fromString){if(_e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=x(_e.fromString,this.encoder)}else _e.fromObject?(this.map=new Map,Object.keys(_e.fromObject).forEach(function(re){var he=_e.fromObject[re];ot.map.set(re,Array.isArray(he)?he:[he])})):this.map=null}return(0,w.Z)(wt,[{key:"has",value:function(_e){return this.init(),this.map.has(_e)}},{key:"get",value:function(_e){this.init();var re=this.map.get(_e);return re?re[0]:null}},{key:"getAll",value:function(_e){return this.init(),this.map.get(_e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(_e,re){return this.clone({param:_e,value:re,op:"a"})}},{key:"appendAll",value:function(_e){var re=[];return Object.keys(_e).forEach(function(he){var Ge=_e[he];Array.isArray(Ge)?Ge.forEach(function(Ye){re.push({param:he,value:Ye,op:"a"})}):re.push({param:he,value:Ge,op:"a"})}),this.clone(re)}},{key:"set",value:function(_e,re){return this.clone({param:_e,value:re,op:"s"})}},{key:"delete",value:function(_e,re){return this.clone({param:_e,value:re,op:"d"})}},{key:"toString",value:function(){var _e=this;return this.init(),this.keys().map(function(re){var he=_e.encoder.encodeKey(re);return _e.map.get(re).map(function(Ge){return he+"="+_e.encoder.encodeValue(Ge)}).join("&")}).filter(function(re){return""!==re}).join("&")}},{key:"clone",value:function(_e){var re=new wt({encoder:this.encoder});return re.cloneFrom=this.cloneFrom||this,re.updates=(this.updates||[]).concat(_e),re}},{key:"init",value:function(){var _e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(re){return _e.map.set(re,_e.cloneFrom.map.get(re))}),this.updates.forEach(function(re){switch(re.op){case"a":case"s":var he=("a"===re.op?_e.map.get(re.param):void 0)||[];he.push(j(re.value)),_e.map.set(re.param,he);break;case"d":if(void 0===re.value){_e.map.delete(re.param);break}var Ge=_e.map.get(re.param)||[],Ye=Ge.indexOf(j(re.value));-1!==Ye&&Ge.splice(Ye,1),Ge.length>0?_e.map.set(re.param,Ge):_e.map.delete(re.param)}}),this.cloneFrom=this.updates=null)}}]),wt}(),Q=function(){function wt(){(0,R.Z)(this,wt),this.map=new Map}return(0,w.Z)(wt,[{key:"set",value:function(_e,re){return this.map.set(_e,re),this}},{key:"get",value:function(_e){return this.map.has(_e)||this.map.set(_e,_e.defaultValue()),this.map.get(_e)}},{key:"delete",value:function(_e){return this.map.delete(_e),this}},{key:"keys",value:function(){return this.map.keys()}}]),wt}();function ie(wt){return"undefined"!=typeof ArrayBuffer&&wt instanceof ArrayBuffer}function se(wt){return"undefined"!=typeof Blob&&wt instanceof Blob}function ue(wt){return"undefined"!=typeof FormData&&wt instanceof FormData}var oe=function(){function wt(ot,_e,re,he){var Ge;if((0,R.Z)(this,wt),this.url=_e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ot.toUpperCase(),function(wt){switch(wt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||he?(this.body=void 0!==re?re:null,Ge=he):Ge=re,Ge&&(this.reportProgress=!!Ge.reportProgress,this.withCredentials=!!Ge.withCredentials,Ge.responseType&&(this.responseType=Ge.responseType),Ge.headers&&(this.headers=Ge.headers),Ge.context&&(this.context=Ge.context),Ge.params&&(this.params=Ge.params)),this.headers||(this.headers=new M),this.context||(this.context=new Q),this.params){var Ye=this.params.toString();if(0===Ye.length)this.urlWithParams=_e;else{var yt=_e.indexOf("?");this.urlWithParams=_e+(-1===yt?"?":yt<_e.length-1?"&":"")+Ye}}else this.params=new K,this.urlWithParams=_e}return(0,w.Z)(wt,[{key:"serializeBody",value:function(){return null===this.body?null:ie(this.body)||se(this.body)||ue(this.body)||function(wt){return"undefined"!=typeof URLSearchParams&&wt 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||ue(this.body)?null:se(this.body)?this.body.type||null:ie(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 re,_e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},he=_e.method||this.method,Ge=_e.url||this.url,Ye=_e.responseType||this.responseType,yt=void 0!==_e.body?_e.body:this.body,Lt=void 0!==_e.withCredentials?_e.withCredentials:this.withCredentials,Yt=void 0!==_e.reportProgress?_e.reportProgress:this.reportProgress,rn=_e.headers||this.headers,cn=_e.params||this.params,_n=null!==(re=_e.context)&&void 0!==re?re:this.context;return void 0!==_e.setHeaders&&(rn=Object.keys(_e.setHeaders).reduce(function(xn,Nn){return xn.set(Nn,_e.setHeaders[Nn])},rn)),_e.setParams&&(cn=Object.keys(_e.setParams).reduce(function(xn,Nn){return xn.set(Nn,_e.setParams[Nn])},cn)),new wt(he,Ge,yt,{params:cn,headers:rn,context:_n,reportProgress:Yt,responseType:Ye,withCredentials:Lt})}}]),wt}(),$=function(wt){return wt[wt.Sent=0]="Sent",wt[wt.UploadProgress=1]="UploadProgress",wt[wt.ResponseHeader=2]="ResponseHeader",wt[wt.DownloadProgress=3]="DownloadProgress",wt[wt.Response=4]="Response",wt[wt.User=5]="User",wt}({}),ye=function wt(ot){var _e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,re=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";(0,R.Z)(this,wt),this.headers=ot.headers||new M,this.status=void 0!==ot.status?ot.status:_e,this.statusText=ot.statusText||re,this.url=ot.url||null,this.ok=this.status>=200&&this.status<300},ve=function(wt){(0,U.Z)(_e,wt);var ot=(0,B.Z)(_e);function _e(){var re,he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,R.Z)(this,_e),(re=ot.call(this,he)).type=$.ResponseHeader,re}return(0,w.Z)(_e,[{key:"clone",value:function(){var he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _e({headers:he.headers||this.headers,status:void 0!==he.status?he.status:this.status,statusText:he.statusText||this.statusText,url:he.url||this.url||void 0})}}]),_e}(ye),et=function(wt){(0,U.Z)(_e,wt);var ot=(0,B.Z)(_e);function _e(){var re,he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,R.Z)(this,_e),(re=ot.call(this,he)).type=$.Response,re.body=void 0!==he.body?he.body:null,re}return(0,w.Z)(_e,[{key:"clone",value:function(){var he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _e({body:void 0!==he.body?he.body:this.body,headers:he.headers||this.headers,status:void 0!==he.status?he.status:this.status,statusText:he.statusText||this.statusText,url:he.url||this.url||void 0})}}]),_e}(ye),Ne=function(wt){(0,U.Z)(_e,wt);var ot=(0,B.Z)(_e);function _e(re){var he;return(0,R.Z)(this,_e),(he=ot.call(this,re,0,"Unknown Error")).name="HttpErrorResponse",he.ok=!1,he.message=he.status>=200&&he.status<300?"Http failure during parsing for ".concat(re.url||"(unknown url)"):"Http failure response for ".concat(re.url||"(unknown url)",": ").concat(re.status," ").concat(re.statusText),he.error=re.error||null,he}return _e}(ye);function gt(wt,ot){return{body:ot,headers:wt.headers,context:wt.context,observe:wt.observe,params:wt.params,reportProgress:wt.reportProgress,responseType:wt.responseType,withCredentials:wt.withCredentials}}var _t=function(){var wt=function(){function ot(_e){(0,R.Z)(this,ot),this.handler=_e}return(0,w.Z)(ot,[{key:"request",value:function(re,he){var yt,Ge=this,Ye=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(re instanceof oe)yt=re;else{var Lt=void 0;Lt=Ye.headers instanceof M?Ye.headers:new M(Ye.headers);var Yt=void 0;Ye.params&&(Yt=Ye.params instanceof K?Ye.params:new K({fromObject:Ye.params})),yt=new oe(re,he,void 0!==Ye.body?Ye.body:null,{headers:Lt,context:Ye.context,params:Yt,reportProgress:Ye.reportProgress,responseType:Ye.responseType||"json",withCredentials:Ye.withCredentials})}var rn=(0,N.of)(yt).pipe((0,O.b)(function(_n){return Ge.handler.handle(_n)}));if(re instanceof oe||"events"===Ye.observe)return rn;var cn=rn.pipe((0,P.h)(function(_n){return _n instanceof et}));switch(Ye.observe||"body"){case"body":switch(yt.responseType){case"arraybuffer":return cn.pipe((0,y.U)(function(_n){if(null!==_n.body&&!(_n.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return _n.body}));case"blob":return cn.pipe((0,y.U)(function(_n){if(null!==_n.body&&!(_n.body instanceof Blob))throw new Error("Response is not a Blob.");return _n.body}));case"text":return cn.pipe((0,y.U)(function(_n){if(null!==_n.body&&"string"!=typeof _n.body)throw new Error("Response is not a string.");return _n.body}));case"json":default:return cn.pipe((0,y.U)(function(_n){return _n.body}))}case"response":return cn;default:throw new Error("Unreachable: unhandled observe type ".concat(Ye.observe,"}"))}}},{key:"delete",value:function(re){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",re,he)}},{key:"get",value:function(re){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",re,he)}},{key:"head",value:function(re){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",re,he)}},{key:"jsonp",value:function(re,he){return this.request("JSONP",re,{params:(new K).append(he,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(re){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",re,he)}},{key:"patch",value:function(re,he){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",re,gt(Ge,he))}},{key:"post",value:function(re,he){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",re,gt(Ge,he))}},{key:"put",value:function(re,he){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",re,gt(Ge,he))}}]),ot}();return wt.\u0275fac=function(_e){return new(_e||wt)(_.LFG(g))},wt.\u0275prov=_.Yz7({token:wt,factory:wt.\u0275fac}),wt}(),Rt=function(){function wt(ot,_e){(0,R.Z)(this,wt),this.next=ot,this.interceptor=_e}return(0,w.Z)(wt,[{key:"handle",value:function(_e){return this.interceptor.intercept(_e,this.next)}}]),wt}(),Se=new _.OlP("HTTP_INTERCEPTORS"),Oe=function(){var wt=function(){function ot(){(0,R.Z)(this,ot)}return(0,w.Z)(ot,[{key:"intercept",value:function(re,he){return he.handle(re)}}]),ot}();return wt.\u0275fac=function(_e){return new(_e||wt)},wt.\u0275prov=_.Yz7({token:wt,factory:wt.\u0275fac}),wt}(),qt=/^\)\]\}',?\n/,jt=function(){var wt=function(){function ot(_e){(0,R.Z)(this,ot),this.xhrFactory=_e}return(0,w.Z)(ot,[{key:"handle",value:function(re){var he=this;if("JSONP"===re.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new D.y(function(Ge){var Ye=he.xhrFactory.build();if(Ye.open(re.method,re.urlWithParams),re.withCredentials&&(Ye.withCredentials=!0),re.headers.forEach(function(Sn,ir){return Ye.setRequestHeader(Sn,ir.join(","))}),re.headers.has("Accept")||Ye.setRequestHeader("Accept","application/json, text/plain, */*"),!re.headers.has("Content-Type")){var yt=re.detectContentTypeHeader();null!==yt&&Ye.setRequestHeader("Content-Type",yt)}if(re.responseType){var Lt=re.responseType.toLowerCase();Ye.responseType="json"!==Lt?Lt:"text"}var Yt=re.serializeBody(),rn=null,cn=function(){if(null!==rn)return rn;var ir=1223===Ye.status?204:Ye.status,Vt=Ye.statusText||"OK",sn=new M(Ye.getAllResponseHeaders()),pt=function(wt){return"responseURL"in wt&&wt.responseURL?wt.responseURL:/^X-Request-URL:/m.test(wt.getAllResponseHeaders())?wt.getResponseHeader("X-Request-URL"):null}(Ye)||re.url;return rn=new ve({headers:sn,status:ir,statusText:Vt,url:pt})},_n=function(){var ir=cn(),Vt=ir.headers,sn=ir.status,pt=ir.statusText,dt=ir.url,Ue=null;204!==sn&&(Ue=void 0===Ye.response?Ye.responseText:Ye.response),0===sn&&(sn=Ue?200:0);var at=sn>=200&&sn<300;if("json"===re.responseType&&"string"==typeof Ue){var Ce=Ue;Ue=Ue.replace(qt,"");try{Ue=""!==Ue?JSON.parse(Ue):null}catch(Fe){Ue=Ce,at&&(at=!1,Ue={error:Fe,text:Ue})}}at?(Ge.next(new et({body:Ue,headers:Vt,status:sn,statusText:pt,url:dt||void 0})),Ge.complete()):Ge.error(new Ne({error:Ue,headers:Vt,status:sn,statusText:pt,url:dt||void 0}))},xn=function(ir){var Vt=cn(),pt=new Ne({error:ir,status:Ye.status||0,statusText:Ye.statusText||"Unknown Error",url:Vt.url||void 0});Ge.error(pt)},Nn=!1,er=function(ir){Nn||(Ge.next(cn()),Nn=!0);var Vt={type:$.DownloadProgress,loaded:ir.loaded};ir.lengthComputable&&(Vt.total=ir.total),"text"===re.responseType&&!!Ye.responseText&&(Vt.partialText=Ye.responseText),Ge.next(Vt)},wn=function(ir){var Vt={type:$.UploadProgress,loaded:ir.loaded};ir.lengthComputable&&(Vt.total=ir.total),Ge.next(Vt)};return Ye.addEventListener("load",_n),Ye.addEventListener("error",xn),Ye.addEventListener("timeout",xn),Ye.addEventListener("abort",xn),re.reportProgress&&(Ye.addEventListener("progress",er),null!==Yt&&Ye.upload&&Ye.upload.addEventListener("progress",wn)),Ye.send(Yt),Ge.next({type:$.Sent}),function(){Ye.removeEventListener("error",xn),Ye.removeEventListener("abort",xn),Ye.removeEventListener("load",_n),Ye.removeEventListener("timeout",xn),re.reportProgress&&(Ye.removeEventListener("progress",er),null!==Yt&&Ye.upload&&Ye.upload.removeEventListener("progress",wn)),Ye.readyState!==Ye.DONE&&Ye.abort()}})}}]),ot}();return wt.\u0275fac=function(_e){return new(_e||wt)(_.LFG(C.JF))},wt.\u0275prov=_.Yz7({token:wt,factory:wt.\u0275fac}),wt}(),bt=new _.OlP("XSRF_COOKIE_NAME"),nn=new _.OlP("XSRF_HEADER_NAME"),Ut=function wt(){(0,R.Z)(this,wt)},an=function(){var wt=function(){function ot(_e,re,he){(0,R.Z)(this,ot),this.doc=_e,this.platform=re,this.cookieName=he,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return(0,w.Z)(ot,[{key:"getToken",value:function(){if("server"===this.platform)return null;var re=this.doc.cookie||"";return re!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,C.Mx)(re,this.cookieName),this.lastCookieString=re),this.lastToken}}]),ot}();return wt.\u0275fac=function(_e){return new(_e||wt)(_.LFG(C.K0),_.LFG(_.Lbi),_.LFG(bt))},wt.\u0275prov=_.Yz7({token:wt,factory:wt.\u0275fac}),wt}(),An=function(){var wt=function(){function ot(_e,re){(0,R.Z)(this,ot),this.tokenService=_e,this.headerName=re}return(0,w.Z)(ot,[{key:"intercept",value:function(re,he){var Ge=re.url.toLowerCase();if("GET"===re.method||"HEAD"===re.method||Ge.startsWith("http://")||Ge.startsWith("https://"))return he.handle(re);var Ye=this.tokenService.getToken();return null!==Ye&&!re.headers.has(this.headerName)&&(re=re.clone({headers:re.headers.set(this.headerName,Ye)})),he.handle(re)}}]),ot}();return wt.\u0275fac=function(_e){return new(_e||wt)(_.LFG(Ut),_.LFG(nn))},wt.\u0275prov=_.Yz7({token:wt,factory:wt.\u0275fac}),wt}(),Hn=function(){var wt=function(){function ot(_e,re){(0,R.Z)(this,ot),this.backend=_e,this.injector=re,this.chain=null}return(0,w.Z)(ot,[{key:"handle",value:function(re){if(null===this.chain){var he=this.injector.get(Se,[]);this.chain=he.reduceRight(function(Ge,Ye){return new Rt(Ge,Ye)},this.backend)}return this.chain.handle(re)}}]),ot}();return wt.\u0275fac=function(_e){return new(_e||wt)(_.LFG(T),_.LFG(_.zs3))},wt.\u0275prov=_.Yz7({token:wt,factory:wt.\u0275fac}),wt}(),Bn=function(){var wt=function(){function ot(){(0,R.Z)(this,ot)}return(0,w.Z)(ot,null,[{key:"disable",value:function(){return{ngModule:ot,providers:[{provide:An,useClass:Oe}]}}},{key:"withOptions",value:function(){var re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:ot,providers:[re.cookieName?{provide:bt,useValue:re.cookieName}:[],re.headerName?{provide:nn,useValue:re.headerName}:[]]}}}]),ot}();return wt.\u0275fac=function(_e){return new(_e||wt)},wt.\u0275mod=_.oAB({type:wt}),wt.\u0275inj=_.cJS({providers:[An,{provide:Se,useExisting:An,multi:!0},{provide:Ut,useClass:an},{provide:bt,useValue:"XSRF-TOKEN"},{provide:nn,useValue:"X-XSRF-TOKEN"}]}),wt}(),En=function(){var wt=function ot(){(0,R.Z)(this,ot)};return wt.\u0275fac=function(_e){return new(_e||wt)},wt.\u0275mod=_.oAB({type:wt}),wt.\u0275inj=_.cJS({providers:[_t,{provide:g,useClass:Hn},jt,{provide:T,useExisting:jt}],imports:[[Bn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),wt}()},65508:function(le,q,f){"use strict";f.d(q,{deG:function(){return fD},tb:function(){return Xg},AFp:function(){return dE},ip1:function(){return Qd},CZH:function(){return Il},hGG:function(){return gR},z2F:function(){return vm},sBO:function(){return LI},Sil:function(){return Tf},_Vd:function(){return kg},EJc:function(){return MC},SBq:function(){return lu},a5r:function(){return nR},qLn:function(){return Tc},vpe:function(){return du},gxx:function(){return sg},tBr:function(){return hh},XFs:function(){return Ye},OlP:function(){return So},zs3:function(){return _a},ZZ4:function(){return Eg},aQg:function(){return Mg},soG:function(){return cm},YKP:function(){return U0},v3s:function(){return ME},h0i:function(){return Bc},PXZ:function(){return FC},R0b:function(){return fu},FiY:function(){return Ou},Lbi:function(){return Kd},g9A:function(){return Ro},n_E:function(){return Hc},Qsj:function(){return vB},FYo:function(){return F0},JOm:function(){return Th},Tiy:function(){return ik},q3G:function(){return xs},tp0:function(){return Pu},EAV:function(){return tR},Rgc:function(){return Gh},dDg:function(){return bE},DyG:function(){return $l},GfV:function(){return ok},s_b:function(){return df},ifc:function(){return wn},eFA:function(){return BC},Ez6:function(){return lr},G48:function(){return TE},Gpc:function(){return ie},f3M:function(){return CD},X6Q:function(){return fm},_c5:function(){return cR},VLi:function(){return W3},c2e:function(){return EC},zSh:function(){return qd},wAp:function(){return Cg},vHH:function(){return oe},EiD:function(){return Sc},mCW:function(){return Up},qzn:function(){return Tl},JVY:function(){return ED},pB0:function(){return CT},eBb:function(){return Ov},L6k:function(){return MD},LAX:function(){return vh},cg1:function(){return Rw},Tjo:function(){return lR},kL8:function(){return VP},yhl:function(){return bT},dqk:function(){return pt},sIi:function(){return Nu},CqO:function(){return a0},QGY:function(){return Fc},F4k:function(){return ew},RDi:function(){return Mn},AaK:function(){return z},z3N:function(){return ru},qOj:function(){return cg},TTD:function(){return Me},_Bn:function(){return TI},xp6:function(){return nO},uIk:function(){return qb},Q2q:function(){return jb},zWS:function(){return fg},Tol:function(){return m0},Gre:function(){return Aw},ekj:function(){return h0},Suo:function(){return Wk},Xpm:function(){return ai},lG2:function(){return bo},Yz7:function(){return Zn},cJS:function(){return Bn},oAB:function(){return Yo},Yjl:function(){return wa},Y36:function(){return Fh},_UZ:function(){return $x},GkF:function(){return r0},BQk:function(){return Bh},ynx:function(){return Gd},qZA:function(){return n0},TgZ:function(){return mg},EpF:function(){return o0},n5z:function(){return ch},Ikx:function(){return Pw},LFG:function(){return Io},$8M:function(){return Cy},NdJ:function(){return s0},CRH:function(){return Gk},kcU:function(){return Eu},O4$:function(){return oh},oxw:function(){return Uh},ALo:function(){return Li},lcZ:function(){return ji},xi3:function(){return Hg},Hsn:function(){return ow},F$t:function(){return iw},Q6J:function(){return hg},s9C:function(){return l0},MGl:function(){return sf},hYB:function(){return _g},DdM:function(){return g3},VKq:function(){return Lk},WLB:function(){return lC},iGM:function(){return zk},MAs:function(){return Lx},evT:function(){return Ld},Jf7:function(){return El},CHM:function(){return J},oJD:function(){return jp},Ckj:function(){return ID},LSH:function(){return Vy},B6R:function(){return Ir},kYT:function(){return fa},Akn:function(){return Dl},Udp:function(){return f0},WFA:function(){return vg},d8E:function(){return Iw},YNc:function(){return Zx},W1O:function(){return Wg},_uU:function(){return T0},Oqu:function(){return x0},hij:function(){return bg},AsE:function(){return w0},lnq:function(){return k0},Gf:function(){return gf}});var U=f(20901),B=f(89200),V=f(88009),Z=f(27235),C=(f(42515),f(99890),f(36683)),_=f(10629),N=f(99740),D=f(14105),O=f(18967),P=f(10509),y=f(97154),g=f(35470);function M(l){var c="function"==typeof Map?new Map:void 0;return(M=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,v)}function v(){return(0,N.Z)(h,arguments,(0,B.Z)(this).constructor)}return v.prototype=Object.create(h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),(0,g.Z)(v,h)})(l)}var E=f(5051),x=f(68707),S=f(89797),A=f(55371),L=f(16338);function j(l){for(var c in l)if(l[c]===j)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 z(l){if("string"==typeof l)return l;if(Array.isArray(l))return"["+l.map(z).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 Q(l,c){return null==l||""===l?null===c?"":c:null==c||""===c?l:l+" "+c}var ae=j({__forward_ref__:j});function ie(l){return l.__forward_ref__=ie,l.toString=function(){return z(this())},l}function se(l){return ue(l)?l():l}function ue(l){return"function"==typeof l&&l.hasOwnProperty(ae)&&l.__forward_ref__===ie}var oe=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h,v){var k;return(0,O.Z)(this,d),(k=c.call(this,function(l,c){var d=l?"NG0".concat(l,": "):"";return"".concat(d).concat(c)}(h,v))).code=h,k}return d}(M(Error));function ve(l){return"string"==typeof l?l:null==l?"":String(l)}function et(l){return"function"==typeof l?l.name||l.toString():"object"==typeof l&&null!=l&&"function"==typeof l.type?l.type.name||l.type.toString():ve(l)}function Rt(l,c){var d=c?" in ".concat(c):"";throw new oe("201","No provider for ".concat(et(l)," found").concat(d))}function nn(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 Zn(l){return{token:l.token,providedIn:l.providedIn||null,factory:l.factory,value:void 0}}var lr=Zn;function Bn(l){return{providers:l.providers||[],imports:l.imports||[]}}function En(l){return mr(l,_e)||mr(l,he)}function mr(l,c){return l.hasOwnProperty(c)?l[c]:null}function ot(l){return l&&(l.hasOwnProperty(re)||l.hasOwnProperty(Ge))?l[re]:null}var yt,_e=j({"\u0275prov":j}),re=j({"\u0275inj":j}),he=j({ngInjectableDef:j}),Ge=j({ngInjectorDef:j}),Ye=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 Lt(){return yt}function Yt(l){var c=yt;return yt=l,c}function rn(l,c,d){var h=En(l);return h&&"root"==h.providedIn?void 0===h.value?h.value=h.factory():h.value:d&Ye.Optional?null:void 0!==c?c:void Rt(z(l),"Injector")}function _n(l){return{toString:l}.toString()}var xn=function(l){return l[l.OnPush=0]="OnPush",l[l.Default=1]="Default",l}({}),wn=function(l){return l[l.Emulated=0]="Emulated",l[l.None=2]="None",l[l.ShadowDom=3]="ShadowDom",l}({}),Sn="undefined"!=typeof globalThis&&globalThis,ir="undefined"!=typeof window&&window,Vt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,sn="undefined"!=typeof global&&global,pt=Sn||sn||ir||Vt,at={},Ce=[],Fe=j({"\u0275cmp":j}),Ae=j({"\u0275dir":j}),Le=j({"\u0275pipe":j}),ze=j({"\u0275mod":j}),Nt=j({"\u0275loc":j}),mn=j({"\u0275fac":j}),Xn=j({__NG_ELEMENT_ID__:j}),Jr=0;function ai(l){return _n(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===xn.OnPush,directiveDefs:null,pipeDefs:null,selectors:l.selectors||Ce,viewQuery:l.viewQuery||null,features:l.features||null,data:l.data||{},encapsulation:l.encapsulation||wn.Emulated,id:"c",styles:l.styles||Ce,_:null,setInput:null,schemas:l.schemas||null,tView:null},v=l.directives,k=l.features,H=l.pipes;return h.id+=Jr++,h.inputs=vs(l.inputs,d),h.outputs=vs(l.outputs),k&&k.forEach(function(W){return W(h)}),h.directiveDefs=v?function(){return("function"==typeof v?v():v).map(vi)}:null,h.pipeDefs=H?function(){return("function"==typeof H?H():H).map(co)}:null,h})}function Ir(l,c,d){var h=l.\u0275cmp;h.directiveDefs=function(){return c.map(vi)},h.pipeDefs=function(){return d.map(co)}}function vi(l){return Yi(l)||function(l){return l[Ae]||null}(l)}function co(l){return function(l){return l[Le]||null}(l)}var Gi={};function Yo(l){return _n(function(){var c={type:l.type,bootstrap:l.bootstrap||Ce,declarations:l.declarations||Ce,imports:l.imports||Ce,exports:l.exports||Ce,transitiveCompileScopes:null,schemas:l.schemas||null,id:l.id||null};return null!=l.id&&(Gi[l.id]=l.type),c})}function fa(l,c){return _n(function(){var d=Fi(l,!0);d.declarations=c.declarations||Ce,d.imports=c.imports||Ce,d.exports=c.exports||Ce})}function vs(l,c){if(null==l)return at;var d={};for(var h in l)if(l.hasOwnProperty(h)){var v=l[h],k=v;Array.isArray(v)&&(k=v[1],v=v[0]),d[v]=h,c&&(c[v]=k)}return d}var bo=ai;function wa(l){return{type:l.type,name:l.name,factory:null,pure:!1!==l.pure,onDestroy:l.type.prototype.ngOnDestroy||null}}function Yi(l){return l[Fe]||null}function Fi(l,c){var d=l[ze]||null;if(!d&&!0===c)throw new Error("Type ".concat(z(l)," does not have '\u0275mod' property."));return d}function ui(l){return Array.isArray(l)&&"object"==typeof l[1]}function Fo(l){return Array.isArray(l)&&!0===l[1]}function pl(l){return 0!=(8&l.flags)}function ns(l){return 2==(2&l.flags)}function _s(l){return 1==(1&l.flags)}function Qo(l){return null!==l.template}function fl(l){return 0!=(512&l[2])}function He(l,c){return l.hasOwnProperty(mn)?l[mn]:null}var Pe=function(){function l(c,d,h){(0,O.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 Me(){return Ve}function Ve(l){return l.type.prototype.ngOnChanges&&(l.setInput=Ft),we}function we(){var l=zn(this),c=null==l?void 0:l.current;if(c){var d=l.previous;if(d===at)l.previous=c;else for(var h in c)d[h]=c[h];l.current=null,this.ngOnChanges(c)}}function Ft(l,c,d,h){var v=zn(l)||function(l,c){return l[Tn]=c}(l,{previous:at,current:null}),k=v.current||(v.current={}),H=v.previous,W=this.declaredInputs[d],X=H[W];k[W]=new Pe(X&&X.currentValue,c,H===at),l[h]=c}Me.ngInherit=!0;var Tn="__ngSimpleChanges__";function zn(l){return l[Tn]||null}var mt="http://www.w3.org/2000/svg",ln=void 0;function Mn(l){ln=l}function nr(){return void 0!==ln?ln:"undefined"!=typeof document?document:void 0}function _r(l){return!!l.listen}var Bt={createRenderer:function(c,d){return nr()}};function ci(l){for(;Array.isArray(l);)l=l[0];return l}function Ci(l,c){return ci(c[l])}function Hi(l,c){return ci(c[l.index])}function Ua(l,c){return l.data[c]}function Ha(l,c){return l[c]}function oa(l,c){var d=c[l];return ui(d)?d:d[0]}function bs(l){return 4==(4&l[2])}function Tp(l){return 128==(128&l[2])}function Hs(l,c){return null==c?null:l[c]}function uc(l){l[18]=0}function vl(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 Nr={lFrame:Cn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function _d(){return Nr.bindingsEnabled}function ge(){return Nr.lFrame.lView}function me(){return Nr.lFrame.tView}function J(l){return Nr.lFrame.contextLView=l,l[8]}function ee(){for(var l=Te();null!==l&&64===l.type;)l=l.parent;return l}function Te(){return Nr.lFrame.currentTNode}function ut(l,c){var d=Nr.lFrame;d.currentTNode=l,d.isParent=c}function Tt(){return Nr.lFrame.isParent}function Zt(){Nr.lFrame.isParent=!1}function Pn(){return Nr.isInCheckNoChangesMode}function Un(l){Nr.isInCheckNoChangesMode=l}function $n(){var l=Nr.lFrame,c=l.bindingRootIndex;return-1===c&&(c=l.bindingRootIndex=l.tView.bindingStartIndex),c}function yr(){return Nr.lFrame.bindingIndex}function wr(){return Nr.lFrame.bindingIndex++}function Or(l){var c=Nr.lFrame,d=c.bindingIndex;return c.bindingIndex=c.bindingIndex+l,d}function si(l,c){var d=Nr.lFrame;d.bindingIndex=d.bindingRootIndex=l,Re(c)}function Re(l){Nr.lFrame.currentDirectiveIndex=l}function We(l){var c=Nr.lFrame.currentDirectiveIndex;return-1===c?null:l[c]}function be(){return Nr.lFrame.currentQueryIndex}function Ze(l){Nr.lFrame.currentQueryIndex=l}function De(l){var c=l[1];return 2===c.type?c.declTNode:1===c.type?l[6]:null}function rt(l,c,d){if(d&Ye.SkipSelf){for(var h=c,v=l;!(null!==(h=h.parent)||d&Ye.Host||null===(h=De(v))||(v=v[15],10&h.type)););if(null===h)return!1;c=h,l=v}var k=Nr.lFrame=un();return k.currentTNode=c,k.lView=l,!0}function St(l){var c=un(),d=l[1];Nr.lFrame=c,c.currentTNode=d.firstChild,c.lView=l,c.tView=d,c.contextLView=l,c.bindingIndex=d.bindingStartIndex,c.inI18n=!1}function un(){var l=Nr.lFrame,c=null===l?null:l.child;return null===c?Cn(l):c}function Cn(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 Mr(){var l=Nr.lFrame;return Nr.lFrame=l.parent,l.currentTNode=null,l.lView=null,l}var Oi=Mr;function Ho(){var l=Mr();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 ha(l){return(Nr.lFrame.contextLView=function(l,c){for(;l>0;)c=c[15],l--;return c}(l,Nr.lFrame.contextLView))[8]}function go(){return Nr.lFrame.selectedIndex}function is(l){Nr.lFrame.selectedIndex=l}function to(){var l=Nr.lFrame;return Ua(l.tView,l.selectedIndex)}function oh(){Nr.lFrame.currentNamespace=mt}function Eu(){Nr.lFrame.currentNamespace=null}function Oo(l,c){for(var d=c.directiveStart,h=c.directiveEnd;d<h;d++){var k=l.data[d].type.prototype,H=k.ngAfterContentInit,W=k.ngAfterContentChecked,X=k.ngAfterViewInit,fe=k.ngAfterViewChecked,ke=k.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),fe&&((l.viewHooks||(l.viewHooks=[])).push(d,fe),(l.viewCheckHooks||(l.viewCheckHooks=[])).push(d,fe)),null!=ke&&(l.destroyHooks||(l.destroyHooks=[])).push(d,ke)}}function Mu(l,c,d){ar(l,c,3,d)}function dc(l,c,d,h){(3&l[2])===d&&ar(l,c,d,h)}function _o(l,c){var d=l[2];(3&d)===c&&(d&=2047,l[2]=d+=1)}function ar(l,c,d,h){for(var k=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<k||-1==k)&&(Ur(l,d,c,X),l[18]=(4294901760&l[18])+X+2),X++}function Ur(l,c,d,h){var v=d[h]<0,k=d[h+1],W=l[v?-d[h]:d[h]];if(v){if(l[2]>>11<l[18]>>16&&(3&l[2])===c){l[2]+=2048;try{k.call(W)}finally{}}}else try{k.call(W)}finally{}}var Vi=function l(c,d,h){(0,O.Z)(this,l),this.factory=c,this.resolving=!1,this.canSeeViewProviders=d,this.injectImpl=h};function qs(l,c,d){for(var h=_r(l),v=0;v<d.length;){var k=d[v];if("number"==typeof k){if(0!==k)break;v++;var H=d[v++],W=d[v++],X=d[v++];h?l.setAttribute(c,W,X,H):c.setAttributeNS(H,W,X)}else{var fe=k,ke=d[++v];QS(fe)?h&&l.setProperty(c,fe,ke):h?l.setAttribute(c,fe,ke):c.setAttribute(fe,ke),v++}}return v}function Dp(l){return 3===l||4===l||6===l}function QS(l){return 64===l.charCodeAt(0)}function vy(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 v=c[h];"number"==typeof v?d=v:0===d||sD(l,d,v,null,-1===d||2===d?c[++h]:null)}return l}function sD(l,c,d,h,v){var k=0,H=l.length;if(-1===c)H=-1;else for(;k<l.length;){var W=l[k++];if("number"==typeof W){if(W===c){H=-1;break}if(W>c){H=k-1;break}}}for(;k<l.length;){var X=l[k];if("number"==typeof X)break;if(X===d){if(null===h)return void(null!==v&&(l[k+1]=v));if(h===l[k+1])return void(l[k+2]=v)}k++,null!==h&&k++,null!==v&&k++}-1!==H&&(l.splice(H,0,c),k=H+1),l.splice(k++,0,d),null!==h&&l.splice(k++,0,h),null!==v&&l.splice(k++,0,v)}function lD(l){return-1!==l}function sh(l){return 32767&l}function Op(l,c){for(var d=function(l){return l>>16}(l),h=c;d>0;)h=h[15],d--;return h}var KS=!0;function gy(l){var c=KS;return KS=l,c}var uF=0;function lh(l,c){var d=$S(l,c);if(-1!==d)return d;var h=c[1];h.firstCreatePass&&(l.injectorIndex=c.length,XS(h.data,l),XS(c,null),XS(h.blueprint,null));var v=_y(l,c),k=l.injectorIndex;if(lD(v))for(var H=sh(v),W=Op(v,c),X=W[1].data,fe=0;fe<8;fe++)c[k+fe]=W[H+fe]|X[H+fe];return c[k+8]=v,k}function XS(l,c){l.push(0,0,0,0,0,0,0,0,c)}function $S(l,c){return-1===l.injectorIndex||l.parent&&l.parent.injectorIndex===l.injectorIndex||null===c[l.injectorIndex+8]?-1:l.injectorIndex}function _y(l,c){if(l.parent&&-1!==l.parent.injectorIndex)return l.parent.injectorIndex;for(var d=0,h=null,v=c;null!==v;){var k=v[1],H=k.type;if(null===(h=2===H?k.declTNode:1===H?v[6]:null))return-1;if(d++,v=v[15],-1!==h.injectorIndex)return h.injectorIndex|d<<16}return-1}function _v(l,c,d){!function(l,c,d){var h;"string"==typeof d?h=d.charCodeAt(0)||0:d.hasOwnProperty(Xn)&&(h=d[Xn]),null==h&&(h=d[Xn]=uF++);var v=255&h;c.data[l+(v>>5)]|=1<<v}(l,c,d)}function eT(l,c,d){if(d&Ye.Optional)return l;Rt(c,"NodeInjector")}function yy(l,c,d,h){if(d&Ye.Optional&&void 0===h&&(h=null),0==(d&(Ye.Self|Ye.Host))){var v=l[9],k=Yt(void 0);try{return v?v.get(c,h,d&Ye.Optional):rn(c,h,d&Ye.Optional)}finally{Yt(k)}}return eT(h,c,d)}function yv(l,c,d){var h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ye.Default,v=arguments.length>4?arguments[4]:void 0;if(null!==l){var k=bv(d);if("function"==typeof k){if(!rt(c,l,h))return h&Ye.Host?eT(v,d,h):yy(c,d,h,v);try{var H=k(h);if(null!=H||h&Ye.Optional)return H;Rt(d)}finally{Oi()}}else if("number"==typeof k){var W=null,X=$S(l,c),fe=-1,ke=h&Ye.Host?c[16][6]:null;for((-1===X||h&Ye.SkipSelf)&&(-1!==(fe=-1===X?_y(l,c):c[X+8])&&iT(h,!1)?(W=c[1],X=sh(fe),c=Op(fe,c)):X=-1);-1!==X;){var Ke=c[1];if(rT(k,X,Ke.data)){var Je=nT(X,c,d,W,h,ke);if(Je!==tT)return Je}-1!==(fe=c[X+8])&&iT(h,c[1].data[X+8]===ke)&&rT(k,X,c)?(W=Ke,X=sh(fe),c=Op(fe,c)):X=-1}}}return yy(c,d,h,v)}var tT={};function pD(){return new Cd(ee(),ge())}function nT(l,c,d,h,v,k){var H=c[1],W=H.data[l+8],ke=uh(W,H,d,null==h?ns(W)&&KS:h!=H&&0!=(3&W.type),v&Ye.Host&&k===W);return null!==ke?Au(c,H,ke,W):tT}function uh(l,c,d,h,v){for(var k=l.providerIndexes,H=c.data,W=1048575&k,X=l.directiveStart,ke=k>>20,Je=v?W+ke:l.directiveEnd,ft=h?W:W+ke;ft<Je;ft++){var At=H[ft];if(ft<X&&d===At||ft>=X&&At.type===d)return ft}if(v){var Gt=H[X];if(Gt&&Qo(Gt)&&Gt.type===d)return X}return null}function Au(l,c,d,h){var v=l[d],k=c.data;if(function(l){return l instanceof Vi}(v)){var H=v;H.resolving&&function(l,c){throw new oe("200","Circular dependency in DI detected for ".concat(l).concat(""))}(et(k[d]));var W=gy(H.canSeeViewProviders);H.resolving=!0;var X=H.injectImpl?Yt(H.injectImpl):null;rt(l,h,Ye.Default);try{v=l[d]=H.factory(void 0,k,l,h),c.firstCreatePass&&d>=h.directiveStart&&function(l,c,d){var h=c.type.prototype,k=h.ngOnInit,H=h.ngDoCheck;if(h.ngOnChanges){var W=Ve(c);(d.preOrderHooks||(d.preOrderHooks=[])).push(l,W),(d.preOrderCheckHooks||(d.preOrderCheckHooks=[])).push(l,W)}k&&(d.preOrderHooks||(d.preOrderHooks=[])).push(0-l,k),H&&((d.preOrderHooks||(d.preOrderHooks=[])).push(l,H),(d.preOrderCheckHooks||(d.preOrderCheckHooks=[])).push(l,H))}(d,k[d],c)}finally{null!==X&&Yt(X),gy(W),H.resolving=!1,Oi()}}return v}function bv(l){if("string"==typeof l)return l.charCodeAt(0)||0;var c=l.hasOwnProperty(Xn)?l[Xn]:void 0;return"number"==typeof c?c>=0?255&c:pD:c}function rT(l,c,d){return!!(d[c+(l>>5)]&1<<l)}function iT(l,c){return!(l&Ye.Self||l&Ye.Host&&c)}var Cd=function(){function l(c,d){(0,O.Z)(this,l),this._tNode=c,this._lView=d}return(0,D.Z)(l,[{key:"get",value:function(d,h){return yv(this._tNode,this._lView,d,void 0,h)}}]),l}();function ch(l){return _n(function(){for(var c=l.prototype.constructor,d=c[mn]||by(c),h=Object.prototype,v=Object.getPrototypeOf(l.prototype).constructor;v&&v!==h;){var k=v[mn]||by(v);if(k&&k!==d)return k;v=Object.getPrototypeOf(v)}return function(H){return new H}})}function by(l){return ue(l)?function(){var c=by(se(l));return c&&c()}:He(l)}function Cy(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,v=0;v<h;){var k=d[v];if(Dp(k))break;if(0===k)v+=2;else if("number"==typeof k)for(v++;v<h&&"string"==typeof d[v];)v++;else{if(k===c)return d[v+1];v+=2}}return null}(ee(),l)}var Du="__parameters__";function fc(l,c,d){return _n(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 v(){for(var k=arguments.length,H=new Array(k),W=0;W<k;W++)H[W]=arguments[W];if(this instanceof v)return h.apply(this,H),this;var X=(0,N.Z)(v,H);return fe.annotation=X,fe;function fe(ke,Ke,Je){for(var ft=ke.hasOwnProperty(Du)?ke[Du]:Object.defineProperty(ke,Du,{value:[]})[Du];ft.length<=Je;)ft.push(null);return(ft[Je]=ft[Je]||[]).push(X),ke}}return d&&(v.prototype=Object.create(d.prototype)),v.prototype.ngMetadataName=l,v.annotationCls=v,v})}var So=function(){function l(c,d){(0,O.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=Zn({token:this,providedIn:d.providedIn||"root",factory:d.factory}))}return(0,D.Z)(l,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),l}(),fD=new So("AnalyzeForEntryComponents"),$l=Function;function Ss(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)),Ss(h,c)):c!==l&&c.push(h)}return c}function Ts(l,c){l.forEach(function(d){return Array.isArray(d)?Ts(d,c):c(d)})}function Sv(l,c,d){c>=l.length?l.push(d):l.splice(c,0,d)}function wd(l,c){return c>=l.length-1?l.pop():l.splice(c,1)[0]}function mc(l,c){for(var d=[],h=0;h<l;h++)d.push(c);return d}function qa(l,c,d){var h=kd(l,c);return h>=0?l[1|h]=d:function(l,c,d,h){var v=l.length;if(v==c)l.push(d,h);else if(1===v)l.push(h,l[0]),l[0]=d;else{for(v--,l.push(l[v-1],l[v]);v>c;)l[v]=l[v-2],v--;l[c]=d,l[c+1]=h}}(l,h=~h,c,d),h}function ph(l,c){var d=kd(l,c);if(d>=0)return l[1|d]}function kd(l,c){return function(l,c,d){for(var h=0,v=l.length>>d;v!==h;){var k=h+(v-h>>1),H=l[k<<d];if(c===H)return k<<d;H>c?v=k:h=k+1}return~(v<<d)}(l,c,1)}var fh={},ky="__NG_DI_FLAG__",Md="ngTempTokenPath",yl=/\n/gm,bl="__source",Ev=j({provide:String,useValue:j}),Rp=void 0;function Mv(l){var c=Rp;return Rp=l,c}function bD(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye.Default;if(void 0===Rp)throw new Error("inject() must be called from an injection context");return null===Rp?rn(l,void 0,c):Rp.get(l,c&Ye.Optional?null:void 0,c)}function Io(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye.Default;return(Lt()||bD)(se(l),c)}var CD=Io;function Dd(l){for(var c=[],d=0;d<l.length;d++){var h=se(l[d]);if(Array.isArray(h)){if(0===h.length)throw new Error("Arguments array must have arguments.");for(var v=void 0,k=Ye.Default,H=0;H<h.length;H++){var W=h[H],X=fT(W);"number"==typeof X?-1===X?v=W.token:k|=X:v=W}c.push(Io(v,k))}else c.push(Io(h))}return c}function Np(l,c){return l[ky]=c,l.prototype[ky]=c,l}function fT(l){return l[ky]}function hT(l,c,d,h){var v=l[Md];throw c[bl]&&v.unshift(c[bl]),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 v=z(c);if(Array.isArray(c))v=c.map(z).join(" -> ");else if("object"==typeof c){var k=[];for(var H in c)if(c.hasOwnProperty(H)){var W=c[H];k.push(H+":"+("string"==typeof W?JSON.stringify(W):z(W)))}v="{".concat(k.join(", "),"}")}return"".concat(d).concat(h?"("+h+")":"","[").concat(v,"]: ").concat(l.replace(yl,"\n "))}("\n"+l.message,v,d,h),l.ngTokenPath=v,l[Md]=null,l}var vc,Id,hh=Np(fc("Inject",function(c){return{token:c}}),-1),Ou=Np(fc("Optional"),8),Pu=Np(fc("SkipSelf"),4);function Sl(l){var c;return(null===(c=function(){if(void 0===vc&&(vc=null,pt.trustedTypes))try{vc=pt.trustedTypes.createPolicy("angular",{createHTML:function(c){return c},createScript:function(c){return c},createScriptURL:function(c){return c}})}catch(l){}return vc}())||void 0===c?void 0:c.createHTML(l))||l}function tu(l){var c;return(null===(c=function(){if(void 0===Id&&(Id=null,pt.trustedTypes))try{Id=pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(c){return c},createScript:function(c){return c},createScriptURL:function(c){return c}})}catch(l){}return Id}())||void 0===c?void 0:c.createHTML(l))||l}var js=function(){function l(c){(0,O.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}(),Fp=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,O.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"HTML"}}]),d}(js),yc=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,O.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"Style"}}]),d}(js),yT=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,O.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"Script"}}]),d}(js),Ry=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,O.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"URL"}}]),d}(js),kD=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,O.Z)(this,d),c.apply(this,arguments)}return(0,D.Z)(d,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),d}(js);function ru(l){return l instanceof js?l.changingThisBreaksApplicationSecurity:l}function Tl(l,c){var d=bT(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 bT(l){return l instanceof js&&l.getTypeName()||null}function ED(l){return new Fp(l)}function MD(l){return new yc(l)}function Ov(l){return new yT(l)}function vh(l){return new Ry(l)}function CT(l){return new kD(l)}var AD=function(){function l(c){(0,O.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(Sl(d),"text/html").body;return null===h?this.inertDocumentHelper.getInertBodyElement(d):(h.removeChild(h.firstChild),h)}catch(v){return null}}}]),l}(),Ny=function(){function l(c){if((0,O.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=Sl(d),h;var v=this.inertDocument.createElement("body");return v.innerHTML=Sl(d),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(v),v}},{key:"stripCustomNsAttrs",value:function(d){for(var h=d.attributes,v=h.length-1;0<v;v--){var H=h.item(v).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}(),DD=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Zy=/^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 Up(l){return(l=String(l)).match(DD)||l.match(Zy)?l:"unsafe:"+l}function Ly(l){return(l=String(l)).split(",").map(function(c){return Up(c.trim())}).join(", ")}function xl(l){var h,c={},d=(0,C.Z)(l.split(","));try{for(d.s();!(h=d.n()).done;)c[h.value]=!0}catch(k){d.e(k)}finally{d.f()}return c}function Hp(){for(var l={},c=arguments.length,d=new Array(c),h=0;h<c;h++)d[h]=arguments[h];for(var v=0,k=d;v<k.length;v++){var H=k[v];for(var W in H)H.hasOwnProperty(W)&&(l[W]=!0)}return l}var gh,Fy=xl("area,br,col,hr,img,wbr"),By=xl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Vp=xl("rp,rt"),bc=Hp(Vp,By),Pv=Hp(Fy,Hp(By,xl("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")),Hp(Vp,xl("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")),bc),TT=xl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),xT=xl("srcset"),Iv=Hp(TT,xT,xl("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"),xl("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")),Cc=xl("script,style,template"),Uy=function(){function l(){(0,O.Z)(this,l),this.sanitizedSomething=!1,this.buf=[]}return(0,D.Z)(l,[{key:"sanitizeChildren",value:function(d){for(var h=d.firstChild,v=!0;h;)if(h.nodeType===Node.ELEMENT_NODE?v=this.startElement(h):h.nodeType===Node.TEXT_NODE?this.chars(h.nodeValue):this.sanitizedSomething=!0,v&&h.firstChild)h=h.firstChild;else for(;h;){h.nodeType===Node.ELEMENT_NODE&&this.endElement(h);var k=this.checkClobberedElement(h,h.nextSibling);if(k){h=k;break}h=this.checkClobberedElement(h,h.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(d){var h=d.nodeName.toLowerCase();if(!Pv.hasOwnProperty(h))return this.sanitizedSomething=!0,!Cc.hasOwnProperty(h);this.buf.push("<"),this.buf.push(h);for(var v=d.attributes,k=0;k<v.length;k++){var H=v.item(k),W=H.name,X=W.toLowerCase();if(Iv.hasOwnProperty(X)){var fe=H.value;TT[X]&&(fe=Up(fe)),xT[X]&&(fe=Ly(fe)),this.buf.push(" ",W,'="',Hy(fe),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(d){var h=d.nodeName.toLowerCase();Pv.hasOwnProperty(h)&&!Fy.hasOwnProperty(h)&&(this.buf.push("</"),this.buf.push(h),this.buf.push(">"))}},{key:"chars",value:function(d){this.buf.push(Hy(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}(),PD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wT=/([^\#-~ |!])/g;function Hy(l){return l.replace(/&/g,"&amp;").replace(PD,function(c){return"&#"+(1024*(c.charCodeAt(0)-55296)+(c.charCodeAt(1)-56320)+65536)+";"}).replace(wT,function(c){return"&#"+c.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Sc(l,c){var d=null;try{gh=gh||function(l){var c=new Ny(l);return function(){try{return!!(new window.DOMParser).parseFromString(Sl(""),"text/html")}catch(l){return!1}}()?new AD(c):c}(l);var h=c?String(c):"";d=gh.getInertBodyElement(h);var v=5,k=h;do{if(0===v)throw new Error("Failed to sanitize html because the input is unstable");v--,h=k,k=d.innerHTML,d=gh.getInertBodyElement(h)}while(h!==k);return Sl((new Uy).sanitizeChildren(qp(d)||d))}finally{if(d)for(var X=qp(d)||d;X.firstChild;)X.removeChild(X.firstChild)}}function qp(l){return"content"in l&&function(l){return l.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===l.nodeName}(l)?l.content:null}var xs=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 jp(l){var c=wl();return c?tu(c.sanitize(xs.HTML,l)||""):Tl(l,"HTML")?tu(ru(l)):Sc(nr(),ve(l))}function ID(l){var c=wl();return c?c.sanitize(xs.STYLE,l)||"":Tl(l,"Style")?ru(l):ve(l)}function Vy(l){var c=wl();return c?c.sanitize(xs.URL,l)||"":Tl(l,"URL")?ru(l):Up(ve(l))}function wl(){var l=ge();return l&&l[12]}var MT="__ngContext__";function Da(l,c){l[MT]=c}function jy(l){var c=function(l){return l[MT]||null}(l);return c?Array.isArray(c)?c:c.lView:null}function bh(l){return l.ngOriginalError}function Ch(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 Tc=function(){function l(){(0,O.Z)(this,l),this._console=console}return(0,D.Z)(l,[{key:"handleError",value:function(d){var h=this._findOriginalError(d),v=this._findContext(d),k=function(l){return l&&l.ngErrorLogger||Ch}(d);k(this._console,"ERROR",d),h&&k(this._console,"ORIGINAL ERROR",h),v&&k(this._console,"ERROR CONTEXT",v)}},{key:"_findContext",value:function(d){return d?function(l){return l.ngDebugContext}(d)||this._findContext(bh(d)):null}},{key:"_findOriginalError",value:function(d){for(var h=d&&bh(d);h&&bh(h);)h=bh(h);return h||null}}]),l}(),va=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(pt)}();function El(l){return l.ownerDocument.defaultView}function Ld(l){return l.ownerDocument}function Es(l){return l instanceof Function?l():l}var Th=function(l){return l[l.Important=1]="Important",l[l.DashCase=2]="DashCase",l}({});function Bv(l,c){return undefined(l,c)}function Fd(l){var c=l[3];return Fo(c)?c[3]:c}function rb(l){return Zr(l[13])}function Uv(l){return Zr(l[4])}function Zr(l){for(;null!==l&&!Fo(l);)l=l[4];return l}function Qp(l,c,d,h,v){if(null!=h){var k,H=!1;Fo(h)?k=h:ui(h)&&(H=!0,h=h[0]);var W=ci(h);0===l&&null!==d?null==v?jv(c,d,W):Bd(c,d,W,v||null,!0):1===l&&null!==d?Bd(c,d,W,v||null,!0):2===l?function(l,c,d){var h=zv(l,c);h&&function(l,c,d,h){_r(l)?l.removeChild(c,d,h):c.removeChild(d)}(l,h,c,d)}(c,W,H):3===l&&c.destroyNode(W),null!=k&&function(l,c,d,h,v){var k=d[7];k!==ci(d)&&Qp(c,l,h,k,v);for(var W=10;W<d.length;W++){var X=d[W];Mh(X[1],X,l,c,h,k)}}(c,l,k,d,v)}}function Hv(l,c){return _r(l)?l.createText(c):l.createTextNode(c)}function ib(l,c,d){return _r(l)?l.createElement(c,d):null===d?l.createElement(c):l.createElementNS(d,c)}function ZT(l,c){var d=l[9],h=d.indexOf(c),v=c[3];1024&c[2]&&(c[2]&=-1025,vl(v,-1)),d.splice(h,1)}function xh(l,c){if(!(l.length<=10)){var d=10+c,h=l[d];if(h){var v=h[17];null!==v&&v!==l&&ZT(v,h),c>0&&(l[d-1][4]=h[4]);var k=wd(l,10+c);!function(l,c){Mh(l,c,c[11],2,null,null),c[0]=null,c[6]=null}(h[1],h);var H=k[19];null!==H&&H.detachView(k[1]),h[3]=null,h[4]=null,h[2]&=-129}return h}}function ab(l,c){if(!(256&c[2])){var d=c[11];_r(d)&&d.destroyNode&&Mh(l,c,d,3,null,null),function(l){var c=l[13];if(!c)return sb(l[1],l);for(;c;){var d=null;if(ui(c))d=c[13];else{var h=c[10];h&&(d=h)}if(!d){for(;c&&!c[4]&&c!==l;)ui(c)&&sb(c[1],c),c=c[3];null===c&&(c=l),ui(c)&&sb(c[1],c),d=c&&c[4]}c=d}}(c)}}function sb(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 v=c[d[h]];if(!(v instanceof Vi)){var k=d[h+1];if(Array.isArray(k))for(var H=0;H<k.length;H+=2){var W=v[k[H]],X=k[H+1];try{X.call(W)}finally{}}else try{k.call(v)}finally{}}}}(l,c),function(l,c){var d=l.cleanup,h=c[7],v=-1;if(null!==d)for(var k=0;k<d.length-1;k+=2)if("string"==typeof d[k]){var H=d[k+1],W="function"==typeof H?H(c):ci(c[H]),X=h[v=d[k+2]],fe=d[k+3];"boolean"==typeof fe?W.removeEventListener(d[k],X,fe):fe>=0?h[v=fe]():h[v=-fe].unsubscribe(),k+=2}else{var ke=h[v=d[k+1]];d[k].call(ke)}if(null!==h){for(var Ke=v+1;Ke<h.length;Ke++)(0,h[Ke])();c[7]=null}}(l,c),1===c[1].type&&_r(c[11])&&c[11].destroy();var d=c[17];if(null!==d&&Fo(c[3])){d!==c[3]&&ZT(d,c);var h=c[19];null!==h&&h.detachView(l)}}}function lb(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 v=l.data[h.directiveStart].encapsulation;if(v===wn.None||v===wn.Emulated)return null}return Hi(h,d)}(l,c.parent,d)}function Bd(l,c,d,h,v){_r(l)?l.insertBefore(c,d,h,v):c.insertBefore(d,h,v)}function jv(l,c,d){_r(l)?l.appendChild(c,d):c.appendChild(d)}function ub(l,c,d,h,v){null!==h?Bd(l,c,d,h,v):jv(l,c,d)}function zv(l,c){return _r(l)?l.parentNode(c):c.parentNode}function FT(l,c,d){return BT(l,c,d)}var BT=function(l,c,d){return 40&l.type?Hi(l,d):null};function Wv(l,c,d,h){var v=lb(l,h,c),k=c[11],W=FT(h.parent||c[6],h,c);if(null!=v)if(Array.isArray(d))for(var X=0;X<d.length;X++)ub(k,v,d[X],W,!1);else ub(k,v,d,W,!1)}function wh(l,c){if(null!==c){var d=c.type;if(3&d)return Hi(c,l);if(4&d)return Eh(-1,l[c.index]);if(8&d){var h=c.child;if(null!==h)return wh(l,h);var v=l[c.index];return Fo(v)?Eh(-1,v):ci(v)}if(32&d)return Bv(c,l)()||ci(l[c.index]);var W=kh(l,c);return null!==W?Array.isArray(W)?W[0]:wh(Fd(l[16]),W):wh(l,c.next)}return null}function kh(l,c){return null!==c?l[16][6].projection[c.projection]:null}function Eh(l,c){var d=10+l+1;if(d<c.length){var h=c[d],v=h[1].firstChild;if(null!==v)return wh(h,v)}return c[7]}function db(l,c,d,h,v,k,H){for(;null!=d;){var W=h[d.index],X=d.type;if(H&&0===c&&(W&&Da(ci(W),h),d.flags|=4),64!=(64&d.flags))if(8&X)db(l,c,d.child,h,v,k,!1),Qp(c,l,v,W,k);else if(32&X){for(var fe=Bv(d,h),ke=void 0;ke=fe();)Qp(c,l,v,ke,k);Qp(c,l,v,W,k)}else 16&X?kc(l,c,h,d,v,k):Qp(c,l,v,W,k);d=H?d.projectionNext:d.next}}function Mh(l,c,d,h,v,k){db(d,h,l.firstChild,c,v,k,!1)}function zD(l,c,d){kc(c[11],0,c,d,lb(l,d,c),FT(d.parent||c[6],d,c))}function kc(l,c,d,h,v,k){var H=d[16],X=H[6].projection[h.projection];if(Array.isArray(X))for(var fe=0;fe<X.length;fe++)Qp(c,l,v,X[fe],k);else db(l,c,X,H[3],v,k,!0)}function pb(l,c,d){_r(l)?l.setAttribute(c,"style",d):c.style.cssText=d}function fb(l,c,d){_r(l)?""===d?l.removeAttribute(c,"class"):l.setAttribute(c,"class",d):c.className=d}function Hd(l,c,d){for(var h=l.length;;){var v=l.indexOf(c,d);if(-1===v)return v;if(0===v||l.charCodeAt(v-1)<=32){var k=c.length;if(v+k===h||l.charCodeAt(v+k)<=32)return v}d=v+1}}var VT="ng-template";function GD(l,c,d){for(var h=0;h<l.length;){var v=l[h++];if(d&&"class"===v){if(-1!==Hd((v=l[h]).toLowerCase(),c,0))return!0}else if(1===v){for(;h<l.length&&"string"==typeof(v=l[h++]);)if(v.toLowerCase()===c)return!0;return!1}}return!1}function qT(l){return 4===l.type&&l.value!==VT}function YD(l,c,d){return c===(4!==l.type||d?l.value:VT)}function JD(l,c,d){for(var h=4,v=l.attrs||[],k=function(l){for(var c=0;c<l.length;c++)if(Dp(l[c]))return c;return l.length}(v),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&&!YD(l,X,d)||""===X&&1===c.length){if(Ms(h))return!1;H=!0}}else{var fe=8&h?X:c[++W];if(8&h&&null!==l.attrs){if(!GD(l.attrs,fe,d)){if(Ms(h))return!1;H=!0}continue}var Ke=QD(8&h?"class":X,v,qT(l),d);if(-1===Ke){if(Ms(h))return!1;H=!0;continue}if(""!==fe){var Je;Je=Ke>k?"":v[Ke+1].toLowerCase();var ft=8&h?Je:null;if(ft&&-1!==Hd(ft,fe,0)||2&h&&fe!==Je){if(Ms(h))return!1;H=!0}}}}else{if(!H&&!Ms(h)&&!Ms(X))return!1;if(H&&Ms(X))continue;H=!1,h=X|1&h}}return Ms(h)||H}function Ms(l){return 0==(1&l)}function QD(l,c,d,h){if(null===c)return-1;var v=0;if(h||!d){for(var k=!1;v<c.length;){var H=c[v];if(H===l)return v;if(3===H||6===H)k=!0;else{if(1===H||2===H){for(var W=c[++v];"string"==typeof W;)W=c[++v];continue}if(4===H)break;if(0===H){v+=4;continue}}v+=k?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 jT(l,c){for(var d=arguments.length>2&&void 0!==arguments[2]&&arguments[2],h=0;h<c.length;h++)if(JD(l,c[h],d))return!0;return!1}function hb(l,c){e:for(var d=0;d<c.length;d++){var h=c[d];if(l.length===h.length){for(var v=0;v<l.length;v++)if(l[v]!==h[v])continue e;return!0}}return!1}function mb(l,c){return l?":not("+c.trim()+")":c}function eO(l){for(var c=l[0],d=1,h=2,v="",k=!1;d<l.length;){var H=l[d];if("string"==typeof H)if(2&h){var W=l[++d];v+="["+H+(W.length>0?'="'+W+'"':"")+"]"}else 8&h?v+="."+H:4&h&&(v+=" "+H);else""!==v&&!Ms(H)&&(c+=mb(k,v),v=""),h=H,k=k||!Ms(h);d++}return""!==v&&(c+=mb(k,v)),c}var jr={};function nO(l){rO(me(),ge(),go()+l,Pn())}function rO(l,c,d,h){if(!h)if(3==(3&c[2])){var k=l.preOrderCheckHooks;null!==k&&Mu(c,k,d)}else{var H=l.preOrderHooks;null!==H&&dc(c,H,0,d)}is(d)}function vb(l,c){return l<<17|c<<2}function ou(l){return l>>17&32767}function gb(l){return 2|l}function Ga(l){return(131068&l)>>2}function WT(l,c){return-131069&l|c<<2}function GT(l){return 1|l}function xb(l,c){var d=l.contentQueries;if(null!==d)for(var h=0;h<d.length;h+=2){var k=d[h+1];if(-1!==k){var H=l.data[k];Ze(d[h]),H.contentQueries(2,c[k],k)}}}function ga(l,c,d,h,v,k,H,W,X,fe){var ke=c.blueprint.slice();return ke[0]=v,ke[2]=140|h,uc(ke),ke[3]=ke[15]=l,ke[8]=d,ke[10]=H||l&&l[10],ke[11]=W||l&&l[11],ke[12]=X||l&&l[12]||null,ke[9]=fe||l&&l[9]||null,ke[6]=k,ke[16]=2==c.type?l[16]:ke,ke}function Vd(l,c,d,h,v){var k=l.data[c];if(null===k)k=function(l,c,d,h,v){var k=Te(),H=Tt(),X=l.data[c]=function(l,c,d,h,v,k){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:v,attrs:k,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?k:k&&k.parent,d,c,h,v);return null===l.firstChild&&(l.firstChild=X),null!==k&&(H?null==k.child&&null!==X.parent&&(k.child=X):null===k.next&&(k.next=X)),X}(l,c,d,h,v),Nr.lFrame.inI18n&&(k.flags|=64);else if(64&k.type){k.type=d,k.value=h,k.attrs=v;var H=function(){var l=Nr.lFrame,c=l.currentTNode;return l.isParent?c:c.parent}();k.injectorIndex=null===H?-1:H.injectorIndex}return ut(k,!0),k}function Kp(l,c,d,h){if(0===d)return-1;for(var v=c.length,k=0;k<d;k++)c.push(h),l.blueprint.push(h),l.data.push(null);return v}function Ph(l,c,d){St(c);try{var h=l.viewQuery;null!==h&&og(1,h,d);var v=l.template;null!==v&&Eb(l,c,v,1,d),l.firstCreatePass&&(l.firstCreatePass=!1),l.staticContentQueries&&xb(l,c),l.staticViewQueries&&og(2,l.viewQuery,d);var k=l.components;null!==k&&function(l,c){for(var d=0;d<c.length;d++)SO(l,c[d])}(c,k)}catch(H){throw l.firstCreatePass&&(l.incompleteFirstPass=!0,l.firstCreatePass=!1),H}finally{c[2]&=-5,Ho()}}function Xp(l,c,d,h){var v=c[2];if(256!=(256&v)){St(c);var k=Pn();try{uc(c),function(l){Nr.lFrame.bindingIndex=l}(l.bindingStartIndex),null!==d&&Eb(l,c,d,2,h);var H=3==(3&v);if(!k)if(H){var W=l.preOrderCheckHooks;null!==W&&Mu(c,W,null)}else{var X=l.preOrderHooks;null!==X&&dc(c,X,0,null),_o(c,0)}if(function(l){for(var c=rb(l);null!==c;c=Uv(c))if(c[2])for(var d=c[9],h=0;h<d.length;h++){var v=d[h];0==(1024&v[2])&&vl(v[3],1),v[2]|=1024}}(c),function(l){for(var c=rb(l);null!==c;c=Uv(c))for(var d=10;d<c.length;d++){var h=c[d],v=h[1];Tp(h)&&Xp(v,h,v.template,h[8])}}(c),null!==l.contentQueries&&xb(l,c),!k)if(H){var fe=l.contentCheckHooks;null!==fe&&Mu(c,fe)}else{var ke=l.contentHooks;null!==ke&&dc(c,ke,1),_o(c,1)}!function(l,c){var d=l.hostBindingOpCodes;if(null!==d)try{for(var h=0;h<d.length;h++){var v=d[h];if(v<0)is(~v);else{var k=v,H=d[++h],W=d[++h];si(H,k),W(2,c[k])}}}finally{is(-1)}}(l,c);var Ke=l.components;null!==Ke&&function(l,c){for(var d=0;d<c.length;d++)VF(l,c[d])}(c,Ke);var Je=l.viewQuery;if(null!==Je&&og(2,Je,h),!k)if(H){var ft=l.viewCheckHooks;null!==ft&&Mu(c,ft)}else{var At=l.viewHooks;null!==At&&dc(c,At,2),_o(c,2)}!0===l.firstUpdatePass&&(l.firstUpdatePass=!1),k||(c[2]&=-73),1024&c[2]&&(c[2]&=-1025,vl(c[3],-1))}finally{Ho()}}}function pO(l,c,d,h){var v=c[10],k=!Pn(),H=bs(c);try{k&&!H&&v.begin&&v.begin(),H&&Ph(l,c,h),Xp(l,c,d,h)}finally{k&&!H&&v.end&&v.end()}}function Eb(l,c,d,h,v){var k=go(),H=2&h;try{is(-1),H&&c.length>20&&rO(l,c,20,Pn()),d(h,v)}finally{is(k)}}function XT(l,c,d){if(pl(c))for(var v=c.directiveEnd,k=c.directiveStart;k<v;k++){var H=l.data[k];H.contentQueries&&H.contentQueries(1,d[k],k)}}function tg(l,c,d){!_d()||(function(l,c,d,h){var v=d.directiveStart,k=d.directiveEnd;l.firstCreatePass||lh(d,c),Da(h,c);for(var H=d.initialInputs,W=v;W<k;W++){var X=l.data[W],fe=Qo(X);fe&&FF(c,d,X);var ke=Au(c,l,W,d);Da(ke,c),null!==H&&BF(0,W-v,ke,X,0,H),fe&&(oa(d.index,c)[8]=ke)}}(l,c,d,Hi(d,c)),128==(128&d.flags)&&function(l,c,d){var h=d.directiveStart,v=d.directiveEnd,H=d.index,W=Nr.lFrame.currentDirectiveIndex;try{is(H);for(var X=h;X<v;X++){var fe=l.data[X],ke=c[X];Re(X),(null!==fe.hostBindings||0!==fe.hostVars||null!==fe.hostAttrs)&&sx(fe,ke)}}finally{is(-1),Re(W)}}(l,c,d))}function Mb(l,c){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hi,h=c.localNames;if(null!==h)for(var v=c.index+1,k=0;k<h.length;k+=2){var H=h[k+1],W=-1===H?d(c,l):l[H];l[v++]=W}}function ng(l){var c=l.tView;return null===c||c.incompleteFirstPass?l.tView=Ws(1,null,l.template,l.decls,l.vars,l.directiveDefs,l.pipeDefs,l.viewQuery,l.schemas,l.consts):c}function Ws(l,c,d,h,v,k,H,W,X,fe){var ke=20+h,Ke=ke+v,Je=function(l,c){for(var d=[],h=0;h<c;h++)d.push(h<l?null:jr);return d}(ke,Ke),ft="function"==typeof fe?fe():fe;return Je[1]={type:l,blueprint:Je,template:d,queries:null,viewQuery:W,declTNode:c,data:Je.slice().fill(null,ke),bindingStartIndex:ke,expandoStartIndex:Ke,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 k?k():k,pipeRegistry:"function"==typeof H?H():H,firstChild:null,schemas:X,consts:ft,incompleteFirstPass:!1}}function rg(l,c,d,h){var v=xO(c);null===d?v.push(h):(v.push(d),l.firstCreatePass&&hx(l).push(h,v.length-1))}function tx(l,c,d){for(var h in l)if(l.hasOwnProperty(h)){var v=l[h];(d=null===d?{}:d).hasOwnProperty(h)?d[h].push(c,v):d[h]=[c,v]}return d}function As(l,c,d,h,v,k,H,W){var ke,X=Hi(c,d),fe=c.inputs;!W&&null!=fe&&(ke=fe[h])?(Rb(l,d,ke,h,v),ns(c)&&function(l,c){var d=oa(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),v=null!=H?H(v,c.value||"",h):v,_r(k)?k.setProperty(X,h,v):QS(h)||(X.setProperty?X.setProperty(h,v):X[h]=v))}function Ob(l,c,d,h){var v=!1;if(_d()){var k=function(l,c,d){var h=l.directiveRegistry,v=null;if(h)for(var k=0;k<h.length;k++){var H=h[k];jT(d,H.selectors,!1)&&(v||(v=[]),_v(lh(d,c),l,H.type),Qo(H)?(lx(l,d),v.unshift(H)):v.push(H))}return v}(l,c,d),H=null===h?null:{"":-1};if(null!==k){v=!0,_O(d,l.data.length,k.length);for(var W=0;W<k.length;W++){var X=k[W];X.providersResolver&&X.providersResolver(X)}for(var fe=!1,ke=!1,Ke=Kp(l,c,k.length,null),Je=0;Je<k.length;Je++){var ft=k[Je];d.mergedAttrs=vy(d.mergedAttrs,ft.hostAttrs),yO(l,d,c,Ke,ft),LF(Ke,ft,H),null!==ft.contentQueries&&(d.flags|=8),(null!==ft.hostBindings||null!==ft.hostAttrs||0!==ft.hostVars)&&(d.flags|=128);var At=ft.type.prototype;!fe&&(At.ngOnChanges||At.ngOnInit||At.ngDoCheck)&&((l.preOrderHooks||(l.preOrderHooks=[])).push(d.index),fe=!0),!ke&&(At.ngOnChanges||At.ngDoCheck)&&((l.preOrderCheckHooks||(l.preOrderCheckHooks=[])).push(d.index),ke=!0),Ke++}!function(l,c){for(var h=c.directiveEnd,v=l.data,k=c.attrs,H=[],W=null,X=null,fe=c.directiveStart;fe<h;fe++){var ke=v[fe],Ke=ke.inputs,Je=null===k||qT(c)?null:UF(Ke,k);H.push(Je),W=tx(Ke,fe,W),X=tx(ke.outputs,fe,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=[],v=0;v<c.length;v+=2){var k=d[c[v+1]];if(null==k)throw new oe("301","Export of name '".concat(c[v+1],"' not found!"));h.push(c[v],k)}}(d,h,H)}return d.mergedAttrs=vy(d.mergedAttrs,d.attrs),v}function ax(l,c,d,h,v,k){var H=k.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,v,H)}}function sx(l,c){null!==l.hostBindings&&l.hostBindings(1,c)}function lx(l,c){c.flags|=2,(l.components||(l.components=[])).push(c.index)}function LF(l,c,d){if(d){if(c.exportAs)for(var h=0;h<c.exportAs.length;h++)d[c.exportAs[h]]=l;Qo(c)&&(d[""]=l)}}function _O(l,c,d){l.flags|=1,l.directiveStart=c,l.directiveEnd=c+d,l.providerIndexes=c}function yO(l,c,d,h,v){l.data[h]=v;var k=v.factory||(v.factory=He(v.type)),H=new Vi(k,Qo(v),null);l.blueprint[h]=H,d[h]=H,ax(l,c,0,h,Kp(l,d,v.hostVars,jr),v)}function FF(l,c,d){var h=Hi(c,l),v=ng(d),k=l[10],H=Ib(l,ga(l,v,null,d.onPush?64:16,h,c,k,k.createRenderer(h,d),null,null));l[c.index]=H}function Ml(l,c,d,h,v,k){var H=Hi(l,c);!function(l,c,d,h,v,k,H){if(null==k)_r(l)?l.removeAttribute(c,v,d):c.removeAttribute(v);else{var W=null==H?ve(k):H(k,h||"",v);_r(l)?l.setAttribute(c,v,W,d):d?c.setAttributeNS(d,v,W):c.setAttribute(v,W)}}(c[11],H,k,l.value,d,h,v)}function BF(l,c,d,h,v,k){var H=k[c];if(null!==H)for(var W=h.setInput,X=0;X<H.length;){var fe=H[X++],ke=H[X++],Ke=H[X++];null!==W?h.setInput(d,Ke,fe,ke):d[ke]=Ke}}function UF(l,c){for(var d=null,h=0;h<c.length;){var v=c[h];if(0!==v)if(5!==v){if("number"==typeof v)break;l.hasOwnProperty(v)&&(null===d&&(d=[]),d.push(v,l[v],c[h+1])),h+=2}else h+=2;else h+=4}return d}function Al(l,c,d,h){return new Array(l,!0,!1,c,null,0,h,d,null,null)}function VF(l,c){var d=oa(c,l);if(Tp(d)){var h=d[1];80&d[2]?Xp(h,d,h.template,d[8]):d[5]>0&&ux(d)}}function ux(l){for(var c=rb(l);null!==c;c=Uv(c))for(var d=10;d<c.length;d++){var h=c[d];if(1024&h[2]){var v=h[1];Xp(v,h,v.template,h[8])}else h[5]>0&&ux(h)}var H=l[1].components;if(null!==H)for(var W=0;W<H.length;W++){var X=oa(H[W],l);Tp(X)&&X[5]>0&&ux(X)}}function SO(l,c){var d=oa(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),Ph(h,d,d[8])}function Ib(l,c){return l[13]?l[14][4]=c:l[13]=c,l[14]=c,c}function cx(l){for(;l;){l[2]|=64;var c=Fd(l);if(fl(l)&&!c)return l;l=c}return null}function px(l,c,d){var h=c[10];h.begin&&h.begin();try{Xp(l,c,l.template,d)}catch(v){throw vx(c,v),v}finally{h.end&&h.end()}}function ig(l){!function(l){for(var c=0;c<l.components.length;c++){var d=l.components[c],h=jy(d),v=h[1];pO(v,h,v.template,d)}}(l[8])}function og(l,c,d){Ze(0),c(l,d)}var fx=function(){return Promise.resolve(null)}();function xO(l){return l[7]||(l[7]=[])}function hx(l){return l.cleanup||(l.cleanup=[])}function mx(l,c,d){return(null===l||Qo(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 vx(l,c){var d=l[9],h=d?d.get(Tc,null):null;h&&h.handleError(c)}function Rb(l,c,d,h,v){for(var k=0;k<d.length;){var H=d[k++],W=d[k++],X=c[H],fe=l.data[H];null!==fe.setInput?fe.setInput(X,v,h,W):X[W]=v}}function Ru(l,c,d){var h=Ci(c,l);!function(l,c,d){_r(l)?l.setValue(c,d):c.textContent=d}(l[11],h,d)}function ag(l,c,d){var h=d?l.styles:null,v=d?l.classes:null,k=0;if(null!==c)for(var H=0;H<c.length;H++){var W=c[H];"number"==typeof W?k=W:1==k?v=Q(v,W):2==k&&(h=Q(h,W+": "+c[++H]+";"))}d?l.styles=h:l.stylesWithoutHost=h,d?l.classes=v:l.classesWithoutHost=v}var sg=new So("INJECTOR",-1),_x=function(){function l(){(0,O.Z)(this,l)}return(0,D.Z)(l,[{key:"get",value:function(d){var h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fh;if(h===fh){var v=new Error("NullInjectorError: No provider for ".concat(z(d),"!"));throw v.name="NullInjectorError",v}return h}}]),l}(),qd=new So("Set Injector scope."),jd={},Oc={},Nb=void 0;function yx(){return void 0===Nb&&(Nb=new _x),Nb}function bx(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 MO(l,d,c||yx(),h)}var MO=function(){function l(c,d,h){var v=this,k=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,O.Z)(this,l),this.parent=h,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var H=[];d&&Ts(d,function(X){return v.processProvider(X,c,d)}),Ts([c],function(X){return v.processInjectorType(X,[],H)}),this.records.set(sg,Pc(void 0,this));var W=this.records.get(qd);this.scope=null!=W?W.value:null,this.source=k||("object"==typeof c?null:z(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]:fh,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ye.Default;this.assertNotDestroyed();var k=Mv(this),H=Yt(void 0);try{if(!(v&Ye.SkipSelf)){var W=this.records.get(d);if(void 0===W){var X=QF(d)&&En(d);W=X&&this.injectableDefInScope(X)?Pc(Zb(d),jd):null,this.records.set(d,W)}if(null!=W)return this.hydrate(d,W)}var fe=v&Ye.Self?yx():this.parent;return fe.get(d,h=v&Ye.Optional&&h===fh?null:h)}catch(Ke){if("NullInjectorError"===Ke.name){var ke=Ke[Md]=Ke[Md]||[];if(ke.unshift(z(d)),k)throw Ke;return hT(Ke,d,"R3InjectorError",this.source)}throw Ke}finally{Yt(H),Mv(k)}}},{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(v,k){return d.push(z(k))}),"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,v){var k=this;if(!(d=se(d)))return!1;var H=ot(d),W=null==H&&d.ngModule||void 0,X=void 0===W?d:W,Ke=-1!==v.indexOf(X);if(void 0!==W&&(H=ot(W)),null==H)return!1;if(null!=H.imports&&!Ke){var Je;v.push(X);try{Ts(H.imports,function(yn){k.processInjectorType(yn,h,v)&&(void 0===Je&&(Je=[]),Je.push(yn))})}finally{}if(void 0!==Je)for(var ft=function(tr){var fr=Je[tr],Qr=fr.ngModule,Mi=fr.providers;Ts(Mi,function(io){return k.processProvider(io,Qr,Mi||Ce)})},At=0;At<Je.length;At++)ft(At)}this.injectorDefTypes.add(X);var Gt=He(X)||function(){return new X};this.records.set(X,Pc(Gt,jd));var vn=H.providers;if(null!=vn&&!Ke){var Fn=d;Ts(vn,function(yn){return k.processProvider(yn,Fn,vn)})}return void 0!==W&&void 0!==d.providers}},{key:"processProvider",value:function(d,h,v){var k=Ih(d=se(d))?d:se(d&&d.provide),H=function(l,c,d){return Oa(l)?Pc(void 0,l.useValue):Pc(Cx(l),jd)}(d);if(Ih(d)||!0!==d.multi)this.records.get(k);else{var W=this.records.get(k);W||((W=Pc(void 0,jd,!0)).factory=function(){return Dd(W.multi)},this.records.set(k,W)),k=d,W.multi.push(d)}this.records.set(k,H)}},{key:"hydrate",value:function(d,h){return h.value===jd&&(h.value=Oc,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=se(d.providedIn);return"string"==typeof h?"any"===h||h===this.scope:this.injectorDefTypes.has(h)}}]),l}();function Zb(l){var c=En(l),d=null!==c?c.factory:He(l);if(null!==d)return d;if(l instanceof So)throw new Error("Token ".concat(z(l)," is missing a \u0275prov definition."));if(l instanceof Function)return function(l){var c=l.length;if(c>0){var d=mc(c,"?");throw new Error("Can't resolve all parameters for ".concat(z(l),": (").concat(d.join(", "),")."))}var h=function(l){var c=l&&(l[_e]||l[he]);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 Cx(l,c,d){var h=void 0;if(Ih(l)){var v=se(l);return He(v)||Zb(v)}if(Oa(l))h=function(){return se(l.useValue)};else if(function(l){return!(!l||!l.useFactory)}(l))h=function(){return l.useFactory.apply(l,(0,_.Z)(Dd(l.deps||[])))};else if(function(l){return!(!l||!l.useExisting)}(l))h=function(){return Io(se(l.useExisting))};else{var k=se(l&&(l.useClass||l.provide));if(!function(l){return!!l.deps}(l))return He(k)||Zb(k);h=function(){return(0,N.Z)(k,(0,_.Z)(Dd(l.deps)))}}return h}function Pc(l,c){var d=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:l,value:c,multi:d?[]:void 0}}function Oa(l){return null!==l&&"object"==typeof l&&Ev in l}function Ih(l){return"function"==typeof l}function QF(l){return"function"==typeof l||"object"==typeof l&&l instanceof So}var IO=function(l,c,d){return function(l){var v=bx(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 v._resolveInjectorDefTypes(),v}({name:d},c,l,d)},_a=function(){var l=function(){function c(){(0,O.Z)(this,c)}return(0,D.Z)(c,null,[{key:"create",value:function(h,v){return Array.isArray(h)?IO(h,v,""):IO(h.providers,h.parent,h.name||"")}}]),c}();return l.THROW_IF_NOT_FOUND=fh,l.NULL=new _x,l.\u0275prov=Zn({token:l,providedIn:"any",factory:function(){return Io(sg)}}),l.__NG_ELEMENT_ID__=-1,l}();function zO(l,c){Oo(jy(l)[1],ee())}function cg(l){for(var c=function(l){return Object.getPrototypeOf(l.prototype).constructor}(l.type),d=!0,h=[l];c;){var v=void 0;if(Qo(l))v=c.\u0275cmp||c.\u0275dir;else{if(c.\u0275cmp)throw new Error("Directives cannot inherit Components");v=c.\u0275dir}if(v){if(d){h.push(v);var k=l;k.inputs=Hb(l.inputs),k.declaredInputs=Hb(l.declaredInputs),k.outputs=Hb(l.outputs);var H=v.hostBindings;H&&GO(l,H);var W=v.viewQuery,X=v.contentQueries;if(W&&Vb(l,W),X&&WO(l,X),K(l.inputs,v.inputs),K(l.declaredInputs,v.declaredInputs),K(l.outputs,v.outputs),Qo(v)&&v.data.animation){var fe=l.data;fe.animation=(fe.animation||[]).concat(v.data.animation)}}var ke=v.features;if(ke)for(var Ke=0;Ke<ke.length;Ke++){var Je=ke[Ke];Je&&Je.ngInherit&&Je(l),Je===cg&&(d=!1)}}c=Object.getPrototypeOf(c)}!function(l){for(var c=0,d=null,h=l.length-1;h>=0;h--){var v=l[h];v.hostVars=c+=v.hostVars,v.hostAttrs=vy(v.hostAttrs,d=vy(d,v.hostAttrs))}}(h)}function Hb(l){return l===at?{}:l===Ce?[]:l}function Vb(l,c){var d=l.viewQuery;l.viewQuery=d?function(h,v){c(h,v),d(h,v)}:c}function WO(l,c){var d=l.contentQueries;l.contentQueries=d?function(h,v,k){c(h,v,k),d(h,v,k)}:c}function GO(l,c){var d=l.hostBindings;l.hostBindings=d?function(h,v){c(h,v),d(h,v)}:c}var dg=null;function Ic(){if(!dg){var l=pt.Symbol;if(l&&l.iterator)dg=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&&(dg=h)}}return dg}var au=function(){function l(c){(0,O.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 Nu(l){return!!Ix(l)&&(Array.isArray(l)||!(l instanceof Map)&&Ic()in l)}function Ix(l){return null!==l&&("function"==typeof l||"object"==typeof l)}function Gs(l,c,d){return l[c]=d}function ya(l,c,d){return!Object.is(l[c],d)&&(l[c]=d,!0)}function su(l,c,d,h){var v=ya(l,c,d);return ya(l,c+1,h)||v}function qb(l,c,d,h){var v=ge();return ya(v,wr(),c)&&(me(),Ml(to(),v,l,c,d,h)),qb}function ef(l,c,d,h){return ya(l,wr(),d)?c+ve(d)+h:jr}function tf(l,c,d,h,v,k){var W=su(l,yr(),d,v);return Or(2),W?c+ve(d)+h+ve(v)+k:jr}function Nc(l,c,d,h,v,k,H,W){var fe=function(l,c,d,h,v){var k=su(l,c,d,h);return ya(l,c+2,v)||k}(l,yr(),d,v,H);return Or(3),fe?c+ve(d)+h+ve(v)+k+ve(H)+W:jr}function jb(l,c,d,h,v,k){var H=ge(),W=ef(H,c,d,h);return W!==jr&&Ml(to(),H,l,W,v,k),jb}function fg(l,c,d,h,v,k,H,W){var X=ge(),fe=tf(X,c,d,h,v,k);return fe!==jr&&Ml(to(),X,l,fe,H,W),fg}function Zx(l,c,d,h,v,k,H,W){var X=ge(),fe=me(),ke=l+20,Ke=fe.firstCreatePass?function(l,c,d,h,v,k,H,W,X){var fe=c.consts,ke=Vd(c,l,4,H||null,Hs(fe,W));Ob(c,d,ke,Hs(fe,X)),Oo(c,ke);var Ke=ke.tViews=Ws(2,ke,h,v,k,c.directiveRegistry,c.pipeRegistry,null,c.schemas,fe);return null!==c.queries&&(c.queries.template(c,ke),Ke.queries=c.queries.embeddedTView(ke)),ke}(ke,fe,X,c,d,h,v,k,H):fe.data[ke];ut(Ke,!1);var Je=X[11].createComment("");Wv(fe,X,Je,Ke),Da(Je,X),Ib(X,X[ke]=Al(Je,X,Je,Ke)),_s(Ke)&&tg(fe,X,Ke),null!=H&&Mb(X,Ke,W)}function Lx(l){return Ha(Nr.lFrame.contextLView,20+l)}function Fh(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ye.Default,d=ge();if(null===d)return Io(l,c);var h=ee();return yv(h,d,se(l),c)}function hg(l,c,d){var h=ge();return ya(h,wr(),c)&&As(me(),to(),h,l,c,h[11],d,!1),hg}function t0(l,c,d,h,v){var H=v?"class":"style";Rb(l,d,c.inputs[H],H,h)}function mg(l,c,d,h){var v=ge(),k=me(),H=20+l,W=v[11],X=v[H]=ib(W,c,Nr.lFrame.currentNamespace),fe=k.firstCreatePass?function(l,c,d,h,v,k,H){var W=c.consts,fe=Vd(c,l,2,v,Hs(W,k));return Ob(c,d,fe,Hs(W,H)),null!==fe.attrs&&ag(fe,fe.attrs,!1),null!==fe.mergedAttrs&&ag(fe,fe.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,fe),fe}(H,k,v,0,c,d,h):k.data[H];ut(fe,!0);var ke=fe.mergedAttrs;null!==ke&&qs(W,X,ke);var Ke=fe.classes;null!==Ke&&fb(W,X,Ke);var Je=fe.styles;null!==Je&&pb(W,X,Je),64!=(64&fe.flags)&&Wv(k,v,X,fe),0===Nr.lFrame.elementDepthCount&&Da(X,v),Nr.lFrame.elementDepthCount++,_s(fe)&&(tg(k,v,fe),XT(k,fe,v)),null!==h&&Mb(v,fe)}function n0(){var l=ee();Tt()?Zt():ut(l=l.parent,!1);var c=l;Nr.lFrame.elementDepthCount--;var d=me();d.firstCreatePass&&(Oo(d,l),pl(l)&&d.queries.elementEnd(l)),null!=c.classesWithoutHost&&function(l){return 0!=(16&l.flags)}(c)&&t0(d,c,ge(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function(l){return 0!=(32&l.flags)}(c)&&t0(d,c,ge(),c.stylesWithoutHost,!1)}function $x(l,c,d,h){mg(l,c,d,h),n0()}function Gd(l,c,d){var h=ge(),v=me(),k=l+20,H=v.firstCreatePass?function(l,c,d,h,v){var k=c.consts,H=Hs(k,h),W=Vd(c,l,8,"ng-container",H);return null!==H&&ag(W,H,!0),Ob(c,d,W,Hs(k,v)),null!==c.queries&&c.queries.elementStart(c,W),W}(k,v,h,c,d):v.data[k];ut(H,!0);var W=h[k]=h[11].createComment("");Wv(v,h,W,H),Da(W,h),_s(H)&&(tg(v,h,H),XT(v,H,h)),null!=d&&Mb(h,H)}function Bh(){var l=ee(),c=me();Tt()?Zt():ut(l=l.parent,!1),c.firstCreatePass&&(Oo(c,l),pl(l)&&c.queries.elementEnd(l))}function r0(l,c,d){Gd(l,c,d),Bh()}function o0(){return ge()}function Fc(l){return!!l&&"function"==typeof l.then}function ew(l){return!!l&&"function"==typeof l.subscribe}var a0=ew;function s0(l,c,d,h){var v=ge(),k=me(),H=ee();return tw(k,v,v[11],H,l,c,!!d,h),s0}function vg(l,c){var d=ee(),h=ge(),v=me();return tw(v,h,mx(We(v.data),d,h),d,l,c,!1),vg}function tw(l,c,d,h,v,k,H,W){var X=_s(h),ke=l.firstCreatePass&&hx(l),Ke=c[8],Je=xO(c),ft=!0;if(3&h.type||W){var At=Hi(h,c),Gt=W?W(At):At,vn=Je.length,Fn=W?function(Qc){return W(ci(Qc[h.index]))}:h.index;if(_r(d)){var yn=null;if(!W&&X&&(yn=function(l,c,d,h){var v=l.cleanup;if(null!=v)for(var k=0;k<v.length-1;k+=2){var H=v[k];if(H===d&&v[k+1]===h){var W=c[7],X=v[k+2];return W.length>X?W[X]:null}"string"==typeof H&&(k+=2)}return null}(l,c,v,h.index)),null!==yn)(yn.__ngLastListenerFn__||yn).__ngNextListenerFn__=k,yn.__ngLastListenerFn__=k,ft=!1;else{k=gg(h,c,Ke,k,!1);var fr=d.listen(Gt,v,k);Je.push(k,fr),ke&&ke.push(v,Fn,vn,vn+1)}}else k=gg(h,c,Ke,k,!0),Gt.addEventListener(v,k,H),Je.push(k),ke&&ke.push(v,Fn,vn,H)}else k=gg(h,c,Ke,k,!1);var Mi,Qr=h.outputs;if(ft&&null!==Qr&&(Mi=Qr[v])){var io=Mi.length;if(io)for(var ta=0;ta<io;ta+=2){var mu=c[Mi[ta]][Mi[ta+1]].subscribe(k),Bl=Je.length;Je.push(k,mu),ke&&ke.push(v,h.index,Bl,-(Bl+1))}}}function nw(l,c,d,h){try{return!1!==d(h)}catch(v){return vx(l,v),!1}}function gg(l,c,d,h,v){return function k(H){if(H===Function)return h;var W=2&l.flags?oa(l.index,c):c;0==(32&c[2])&&cx(W);for(var X=nw(c,0,h,H),fe=k.__ngNextListenerFn__;fe;)X=nw(c,0,fe,H)&&X,fe=fe.__ngNextListenerFn__;return v&&!1===X&&(H.preventDefault(),H.returnValue=!1),X}}function Uh(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return ha(l)}function rw(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),v=0;v<c.length;v++){var k=c[v];if("*"!==k){if(null===h?jT(l,k,!0):hb(h,k))return v}else d=v}return d}function iw(l){var c=ge()[16][6];if(!c.projection)for(var h=c.projection=mc(l?l.length:1,null),v=h.slice(),k=c.child;null!==k;){var H=l?rw(k,l):0;null!==H&&(v[H]?v[H].projectionNext=k:h[H]=k,v[H]=k),k=k.next}}function ow(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,d=arguments.length>2?arguments[2]:void 0,h=ge(),v=me(),k=Vd(v,20+l,16,null,d||null);null===k.projection&&(k.projection=c),Zt(),64!=(64&k.flags)&&zD(v,h,k)}function l0(l,c,d){return sf(l,"",c,"",d),l0}function sf(l,c,d,h,v){var k=ge(),H=ef(k,c,d,h);return H!==jr&&As(me(),to(),k,l,H,k[11],v,!1),sf}function _g(l,c,d,h,v,k,H){var W=ge(),X=tf(W,c,d,h,v,k);return X!==jr&&As(me(),to(),W,l,X,W[11],H,!1),_g}function fw(l,c,d,h,v){for(var k=l[d+1],H=null===c,W=h?ou(k):Ga(k),X=!1;0!==W&&(!1===X||H);){var ke=l[W+1];SP(l[W],c)&&(X=!0,l[W+1]=h?GT(ke):gb(ke)),W=h?ou(ke):Ga(ke)}X&&(l[d+1]=h?gb(k):GT(k))}function SP(l,c){return null===l||null==c||(Array.isArray(l)?l[1]:l)===c||!(!Array.isArray(l)||"string"!=typeof c)&&kd(l,c)>=0}var $o={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hw(l){return l.substring($o.key,$o.keyEnd)}function mw(l){return l.substring($o.value,$o.valueEnd)}function p0(l,c){var d=$o.textEnd;return d===c?-1:(c=$o.keyEnd=function(l,c,d){for(;c<d&&l.charCodeAt(c)>32;)c++;return c}(l,$o.key=c,d),Yd(l,c,d))}function gw(l,c){var d=$o.textEnd,h=$o.key=Yd(l,c,d);return d===h?-1:(h=$o.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=yw(l,h,d),h=$o.value=Yd(l,h,d),h=$o.valueEnd=function(l,c,d){for(var h=-1,v=-1,k=-1,H=c,W=H;H<d;){var X=l.charCodeAt(H++);if(59===X)return W;34===X||39===X?W=H=Cw(l,X,H,d):c===H-4&&85===k&&82===v&&76===h&&40===X?W=H=Cw(l,41,H,d):X>32&&(W=H),k=v,v=h,h=-33&X}return W}(l,h,d),yw(l,h,d))}function _w(l){$o.key=0,$o.keyEnd=0,$o.value=0,$o.valueEnd=0,$o.textEnd=l.length}function Yd(l,c,d){for(;c<d&&l.charCodeAt(c)<=32;)c++;return c}function yw(l,c,d,h){return(c=Yd(l,c,d))<d&&c++,c}function Cw(l,c,d,h){for(var v=-1,k=d;k<h;){var H=l.charCodeAt(k++);if(H==c&&92!==v)return k;v=92==H&&92===v?0:H}throw new Error}function f0(l,c,d){return Js(l,c,d,!1),f0}function h0(l,c){return Js(l,c,null,!0),h0}function Dl(l){Qs(y0,wP,l,!1)}function wP(l,c){for(var d=function(l){return _w(l),gw(l,Yd(l,0,$o.textEnd))}(c);d>=0;d=gw(c,d))y0(l,hw(c),mw(c))}function m0(l){Qs(qa,Ol,l,!0)}function Ol(l,c){for(var d=function(l){return _w(l),p0(l,Yd(l,0,$o.textEnd))}(c);d>=0;d=p0(c,d))qa(l,hw(c),!0)}function Js(l,c,d,h){var v=ge(),k=me(),H=Or(2);k.firstUpdatePass&&g0(k,l,H,h),c!==jr&&ya(v,H,c)&&b0(k,k.data[go()],v,v[11],l,v[H+1]=function(l,c){return null==l||("string"==typeof c?l+=c:"object"==typeof l&&(l=z(ru(l)))),l}(c,d),h,H)}function Qs(l,c,d,h){var v=me(),k=Or(2);v.firstUpdatePass&&g0(v,null,k,h);var H=ge();if(d!==jr&&ya(H,k,d)){var W=v.data[go()];if(S0(W,h)&&!v0(v,k)){var fe=h?W.classesWithoutHost:W.stylesWithoutHost;null!==fe&&(d=Q(fe,d||"")),t0(v,W,H,d,h)}else!function(l,c,d,h,v,k,H,W){v===jr&&(v=Ce);for(var X=0,fe=0,ke=0<v.length?v[0]:null,Ke=0<k.length?k[0]:null;null!==ke||null!==Ke;){var Je=X<v.length?v[X+1]:void 0,ft=fe<k.length?k[fe+1]:void 0,At=null,Gt=void 0;ke===Ke?(X+=2,fe+=2,Je!==ft&&(At=Ke,Gt=ft)):null===Ke||null!==ke&&ke<Ke?(X+=2,At=ke):(fe+=2,At=Ke,Gt=ft),null!==At&&b0(l,c,d,h,At,Gt,H,W),ke=X<v.length?v[X]:null,Ke=fe<k.length?k[fe]:null}}(v,W,H,H[11],H[k+1],H[k+1]=function(l,c,d){if(null==d||""===d)return Ce;var h=[],v=ru(d);if(Array.isArray(v))for(var k=0;k<v.length;k++)l(h,v[k],!0);else if("object"==typeof v)for(var H in v)v.hasOwnProperty(H)&&l(h,H,v[H]);else"string"==typeof v&&c(h,v);return h}(l,c,d),h,k)}}function v0(l,c){return c>=l.expandoStartIndex}function g0(l,c,d,h){var v=l.data;if(null===v[d+1]){var k=v[go()],H=v0(l,d);S0(k,h)&&null===c&&!H&&(c=!1),c=function(l,c,d,h){var v=We(l),k=h?c.residualClasses:c.residualStyles;if(null===v)0===(h?c.classBindings:c.styleBindings)&&(d=Hh(d=_0(null,l,c,d,h),c.attrs,h),k=null);else{var W=c.directiveStylingLast;if(-1===W||l[W]!==v)if(d=_0(v,l,c,d,h),null===k){var fe=function(l,c,d){var h=d?c.classBindings:c.styleBindings;if(0!==Ga(h))return l[ou(h)]}(l,c,h);void 0!==fe&&Array.isArray(fe)&&function(l,c,d,h){l[ou(d?c.classBindings:c.styleBindings)]=h}(l,c,h,fe=Hh(fe=_0(null,l,c,fe[1],h),c.attrs,h))}else k=function(l,c,d){for(var h=void 0,v=c.directiveEnd,k=1+c.directiveStylingLast;k<v;k++)h=Hh(h,l[k].hostAttrs,d);return Hh(h,c.attrs,d)}(l,c,h)}return void 0!==k&&(h?c.residualClasses=k:c.residualStyles=k),d}(v,k,c,h),function(l,c,d,h,v,k){var H=k?c.classBindings:c.styleBindings,W=ou(H),X=Ga(H);l[h]=d;var ke,fe=!1;if(Array.isArray(d)?(null===(ke=d[1])||kd(d,ke)>0)&&(fe=!0):ke=d,v)if(0!==X){var ft=ou(l[W+1]);l[h+1]=vb(ft,W),0!==ft&&(l[ft+1]=WT(l[ft+1],h)),l[W+1]=function(l,c){return 131071&l|c<<17}(l[W+1],h)}else l[h+1]=vb(W,0),0!==W&&(l[W+1]=WT(l[W+1],h)),W=h;else l[h+1]=vb(X,0),0===W?W=h:l[X+1]=WT(l[X+1],h),X=h;fe&&(l[h+1]=gb(l[h+1])),fw(l,ke,h,!0),fw(l,ke,h,!1),function(l,c,d,h,v){var k=v?l.residualClasses:l.residualStyles;null!=k&&"string"==typeof c&&kd(k,c)>=0&&(d[h+1]=GT(d[h+1]))}(c,ke,l,h,k),H=vb(W,X),k?c.classBindings=H:c.styleBindings=H}(v,k,c,d,H,h)}}function _0(l,c,d,h,v){var k=null,H=d.directiveEnd,W=d.directiveStylingLast;for(-1===W?W=d.directiveStart:W++;W<H&&(h=Hh(h,(k=c[W]).hostAttrs,v),k!==l);)W++;return null!==l&&(d.directiveStylingLast=W),h}function Hh(l,c,d){var h=d?1:2,v=-1;if(null!==c)for(var k=0;k<c.length;k++){var H=c[k];"number"==typeof H?v=H:v===h&&(Array.isArray(l)||(l=void 0===l?[]:["",l]),qa(l,H,!!d||c[++k]))}return void 0===l?null:l}function y0(l,c,d){qa(l,c,ru(d))}function b0(l,c,d,h,v,k,H,W){if(3&c.type){var X=l.data,fe=X[W+1];yg(function(l){return 1==(1&l)}(fe)?C0(X,c,d,v,Ga(fe),H):void 0)||(yg(k)||function(l){return 2==(2&l)}(fe)&&(k=C0(X,null,d,v,W,H)),function(l,c,d,h,v){var k=_r(l);if(c)v?k?l.addClass(d,h):d.classList.add(h):k?l.removeClass(d,h):d.classList.remove(h);else{var H=-1===h.indexOf("-")?void 0:Th.DashCase;if(null==v)k?l.removeStyle(d,h,H):d.style.removeProperty(h);else{var W="string"==typeof v&&v.endsWith("!important");W&&(v=v.slice(0,-10),H|=Th.Important),k?l.setStyle(d,h,v,H):d.style.setProperty(h,v,W?"important":"")}}}(h,H,Ci(go(),d),v,k))}}function C0(l,c,d,h,v,k){for(var H=null===c,W=void 0;v>0;){var X=l[v],fe=Array.isArray(X),ke=fe?X[1]:X,Ke=null===ke,Je=d[v+1];Je===jr&&(Je=Ke?Ce:void 0);var ft=Ke?ph(Je,h):ke===h?Je:void 0;if(fe&&!yg(ft)&&(ft=ph(X,h)),yg(ft)&&(W=ft,H))return W;var At=l[v+1];v=H?ou(At):Ga(At)}if(null!==c){var Gt=k?c.residualClasses:c.residualStyles;null!=Gt&&(W=ph(Gt,h))}return W}function yg(l){return void 0!==l}function S0(l,c){return 0!=(l.flags&(c?16:32))}function T0(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",d=ge(),h=me(),v=l+20,k=h.firstCreatePass?Vd(h,v,1,c,null):h.data[v],H=d[v]=Hv(d[11],c);Wv(h,d,H,k),ut(k,!1)}function x0(l){return bg("",l,""),x0}function bg(l,c,d){var h=ge(),v=ef(h,l,c,d);return v!==jr&&Ru(h,go(),v),bg}function w0(l,c,d,h,v){var k=ge(),H=tf(k,l,c,d,h,v);return H!==jr&&Ru(k,go(),H),w0}function k0(l,c,d,h,v,k,H){var W=ge(),X=Nc(W,l,c,d,h,v,k,H);return X!==jr&&Ru(W,go(),X),k0}function Aw(l,c,d){Qs(qa,Ol,ef(ge(),l,c,d),!0)}function Pw(l,c,d){var h=ge();return ya(h,wr(),c)&&As(me(),to(),h,l,c,h[11],d,!0),Pw}function Iw(l,c,d){var h=ge();if(ya(h,wr(),c)){var k=me(),H=to();As(k,H,h,l,c,mx(We(k.data),H,h),d,!0)}return Iw}var uf=void 0,R5=["en",[["a","p"],["AM","PM"],uf],[["AM","PM"],uf,uf],[["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"]],uf,[["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"]],uf,[["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}",uf,"{1} 'at' {0}",uf],[".",",",";","%","+","-","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}],Vh={};function Rw(l){var c=function(l){return l.toLowerCase().replace(/_/g,"-")}(l),d=qP(c);if(d)return d;var h=c.split("-")[0];if(d=qP(h))return d;if("en"===h)return R5;throw new Error('Missing locale data for the locale "'.concat(l,'".'))}function VP(l){return Rw(l)[Cg.PluralCase]}function qP(l){return l in Vh||(Vh[l]=pt.ng&&pt.ng.common&&pt.ng.common.locales&&pt.ng.common.locales[l]),Vh[l]}var Cg=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}({}),A0="en-US";function Nw(l){nn(l,"Expected localeId to be defined"),"string"==typeof l&&l.toLowerCase().replace(/_/g,"-")}function SI(l,c,d){var h=me();if(h.firstCreatePass){var v=Qo(l);Jw(d,h.data,h.blueprint,v,!0),Jw(c,h.data,h.blueprint,v,!1)}}function Jw(l,c,d,h,v){if(l=se(l),Array.isArray(l))for(var k=0;k<l.length;k++)Jw(l[k],c,d,h,v);else{var H=me(),W=ge(),X=Ih(l)?l:se(l.provide),fe=Cx(l),ke=ee(),Ke=1048575&ke.providerIndexes,Je=ke.directiveStart,ft=ke.providerIndexes>>20;if(Ih(l)||!l.multi){var At=new Vi(fe,v,Fh),Gt=Xw(X,c,v?Ke:Ke+ft,Je);-1===Gt?(_v(lh(ke,W),H,X),Qw(H,l,c.length),c.push(X),ke.directiveStart++,ke.directiveEnd++,v&&(ke.providerIndexes+=1048576),d.push(At),W.push(At)):(d[Gt]=At,W[Gt]=At)}else{var vn=Xw(X,c,Ke+ft,Je),Fn=Xw(X,c,Ke,Ke+ft),tr=Fn>=0&&d[Fn];if(v&&!tr||!v&&!(vn>=0&&d[vn])){_v(lh(ke,W),H,X);var fr=function(l,c,d,h,v){var k=new Vi(l,d,Fh);return k.multi=[],k.index=c,k.componentProviders=0,Kw(k,v,h&&!d),k}(v?$w:Z0,d.length,v,h,fe);!v&&tr&&(d[Fn].providerFactory=fr),Qw(H,l,c.length,0),c.push(X),ke.directiveStart++,ke.directiveEnd++,v&&(ke.providerIndexes+=1048576),d.push(fr),W.push(fr)}else Qw(H,l,vn>-1?vn:Fn,Kw(d[v?Fn:vn],fe,!v&&h));!v&&h&&tr&&d[Fn].componentProviders++}}}function Qw(l,c,d,h){var v=Ih(c);if(v||function(l){return!!l.useClass}(c)){var H=(c.useClass||c).prototype.ngOnDestroy;if(H){var W=l.destroyHooks||(l.destroyHooks=[]);if(!v&&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 Kw(l,c,d){return d&&l.componentProviders++,l.multi.push(c)-1}function Xw(l,c,d,h){for(var v=d;v<h;v++)if(c[v]===l)return v;return-1}function Z0(l,c,d,h){return ek(this.multi,[])}function $w(l,c,d,h){var k,v=this.multi;if(this.providerFactory){var H=this.providerFactory.componentProviders,W=Au(d,d[1],this.providerFactory.index,h);ek(v,k=W.slice(0,H));for(var X=H;X<W.length;X++)k.push(W[X])}else ek(v,k=[]);return k}function ek(l,c){for(var d=0;d<l.length;d++)c.push((0,l[d])());return c}function TI(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(d){d.providersResolver=function(h,v){return SI(h,v?v(l):l,c)}}}var lB=function l(){(0,O.Z)(this,l)},tk=function l(){(0,O.Z)(this,l)},dB=function(){function l(){(0,O.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(z(l),". Did you add it to @NgModule.entryComponents?"));return c.ngComponent=l,c}(d)}}]),l}(),kg=function(){var l=function c(){(0,O.Z)(this,c)};return l.NULL=new dB,l}();function L0(){}function zh(l,c){return new lu(Hi(l,c))}var mB=function(){return zh(ee(),ge())},lu=function(){var l=function c(d){(0,O.Z)(this,c),this.nativeElement=d};return l.__NG_ELEMENT_ID__=mB,l}();function nk(l){return l instanceof lu?l.nativeElement:l}var F0=function l(){(0,O.Z)(this,l)},vB=function(){var l=function c(){(0,O.Z)(this,c)};return l.__NG_ELEMENT_ID__=function(){return rk()},l}(),rk=function(){var l=ge(),d=oa(ee().index,l);return function(l){return l[11]}(ui(d)?d:l)},ik=function(){var l=function c(){(0,O.Z)(this,c)};return l.\u0275prov=Zn({token:l,providedIn:"root",factory:function(){return null}}),l}(),ok=function l(c){(0,O.Z)(this,l),this.full=c,this.major=c.split(".")[0],this.minor=c.split(".")[1],this.patch=c.split(".").slice(2).join(".")},kI=new ok("12.2.2"),ak=function(){function l(){(0,O.Z)(this,l)}return(0,D.Z)(l,[{key:"supports",value:function(d){return Nu(d)}},{key:"create",value:function(d){return new yB(d)}}]),l}(),EI=function(c,d){return d},yB=function(){function l(c){(0,O.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||EI}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,v=this._removalsHead,k=0,H=null;h||v;){var W=!v||h&&h.currentIndex<OI(v,k,H)?h:v,X=OI(W,k,H),fe=W.currentIndex;if(W===v)k--,v=v._nextRemoved;else if(h=h._next,null==W.previousIndex)k++;else{H||(H=[]);var ke=X-k,Ke=fe-k;if(ke!=Ke){for(var Je=0;Je<ke;Je++){var ft=Je<H.length?H[Je]:H[Je]=0,At=ft+Je;Ke<=At&&At<ke&&(H[Je]=ft+1)}H[W.previousIndex]=Ke-ke}}X!==fe&&d(W,X,fe)}}},{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=[]),!Nu(d))throw new Error("Error trying to diff '".concat(z(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,v=this._itHead,k=!1;if(Array.isArray(d)){this.length=d.length;for(var fe=0;fe<this.length;fe++)X=this._trackByFn(fe,W=d[fe]),null!==v&&Object.is(v.trackById,X)?(k&&(v=this._verifyReinsertion(v,W,X,fe)),Object.is(v.item,W)||this._addIdentityChange(v,W)):(v=this._mismatch(v,W,X,fe),k=!0),v=v._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 v,h=l[Ic()]();!(v=h.next()).done;)c(v.value)}(d,function(ke){X=h._trackByFn(H,ke),null!==v&&Object.is(v.trackById,X)?(k&&(v=h._verifyReinsertion(v,ke,X,H)),Object.is(v.item,ke)||h._addIdentityChange(v,ke)):(v=h._mismatch(v,ke,X,H),k=!0),v=v._next,H++}),this.length=H;return this._truncate(v),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,v,k){var H;return null===d?H=this._itTail:(H=d._prev,this._remove(d)),null!==(d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(v,null))?(Object.is(d.item,h)||this._addIdentityChange(d,h),this._reinsertAfter(d,H,k)):null!==(d=null===this._linkedRecords?null:this._linkedRecords.get(v,k))?(Object.is(d.item,h)||this._addIdentityChange(d,h),this._moveAfter(d,H,k)):d=this._addAfter(new bB(h,v),H,k),d}},{key:"_verifyReinsertion",value:function(d,h,v,k){var H=null===this._unlinkedRecords?null:this._unlinkedRecords.get(v,null);return null!==H?d=this._reinsertAfter(H,d._prev,k):d.currentIndex!=k&&(d.currentIndex=k,this._addToMoves(d,k)),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,v){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(d);var k=d._prevRemoved,H=d._nextRemoved;return null===k?this._removalsHead=H:k._nextRemoved=H,null===H?this._removalsTail=k:H._prevRemoved=k,this._insertAfter(d,h,v),this._addToMoves(d,v),d}},{key:"_moveAfter",value:function(d,h,v){return this._unlink(d),this._insertAfter(d,h,v),this._addToMoves(d,v),d}},{key:"_addAfter",value:function(d,h,v){return this._insertAfter(d,h,v),this._additionsTail=null===this._additionsTail?this._additionsHead=d:this._additionsTail._nextAdded=d,d}},{key:"_insertAfter",value:function(d,h,v){var k=null===h?this._itHead:h._next;return d._next=k,d._prev=h,null===k?this._itTail=d:k._prev=d,null===h?this._itHead=d:h._next=d,null===this._linkedRecords&&(this._linkedRecords=new DI),this._linkedRecords.put(d),d.currentIndex=v,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,v=d._next;return null===h?this._itHead=v:h._next=v,null===v?this._itTail=h:v._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 DI),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}(),bB=function l(c,d){(0,O.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},AI=function(){function l(){(0,O.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 v;for(v=this._head;null!==v;v=v._nextDup)if((null===h||h<=v.currentIndex)&&Object.is(v.trackById,d))return v;return null}},{key:"remove",value:function(d){var h=d._prevDup,v=d._nextDup;return null===h?this._head=v:h._nextDup=v,null===v?this._tail=h:v._prevDup=h,null===this._head}}]),l}(),DI=function(){function l(){(0,O.Z)(this,l),this.map=new Map}return(0,D.Z)(l,[{key:"put",value:function(d){var h=d.trackById,v=this.map.get(h);v||(v=new AI,this.map.set(h,v)),v.add(d)}},{key:"get",value:function(d,h){var k=this.map.get(d);return k?k.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 OI(l,c,d){var h=l.previousIndex;if(null===h)return h;var v=0;return d&&h<d.length&&(v=d[h]),h+c+v}var sk=function(){function l(){(0,O.Z)(this,l)}return(0,D.Z)(l,[{key:"supports",value:function(d){return d instanceof Map||Ix(d)}},{key:"create",value:function(){return new PI}}]),l}(),PI=function(){function l(){(0,O.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||Ix(d)))throw new Error("Error trying to diff '".concat(z(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 v=this._mapHead;if(this._appendAfter=null,this._forEach(d,function(H,W){if(v&&v.key===W)h._maybeAddToChanges(v,H),h._appendAfter=v,v=v._next;else{var X=h._getOrCreateRecordForKey(W,H);v=h._insertBeforeOrAppend(v,X)}}),v){v._prev&&(v._prev._next=null),this._removalsHead=v;for(var k=v;null!==k;k=k._nextRemoved)k===this._mapHead&&(this._mapHead=null),this._records.delete(k.key),k._nextRemoved=k._next,k.previousValue=k.currentValue,k.currentValue=null,k._prev=null,k._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 v=d._prev;return h._next=d,h._prev=v,d._prev=h,v&&(v._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 v=this._records.get(d);this._maybeAddToChanges(v,h);var k=v._prev,H=v._next;return k&&(k._next=H),H&&(H._prev=k),v._next=null,v._prev=null,v}var W=new CB(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(v){return h(d[v],v)})}}]),l}(),CB=function l(c){(0,O.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 B0(){return new Eg([new ak])}var Eg=function(){var l=function(){function c(d){(0,O.Z)(this,c),this.factories=d}return(0,D.Z)(c,[{key:"find",value:function(h){var v=this.factories.find(function(k){return k.supports(h)});if(null!=v)return v;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,v){if(null!=v){var k=v.factories.slice();h=h.concat(k)}return new c(h)}},{key:"extend",value:function(h){return{provide:c,useFactory:function(k){return c.create(h,k||B0())},deps:[[c,new Pu,new Ou]]}}}]),c}();return l.\u0275prov=Zn({token:l,providedIn:"root",factory:B0}),l}();function RI(){return new Mg([new sk])}var Mg=function(){var l=function(){function c(d){(0,O.Z)(this,c),this.factories=d}return(0,D.Z)(c,[{key:"find",value:function(h){var v=this.factories.find(function(k){return k.supports(h)});if(v)return v;throw new Error("Cannot find a differ supporting object '".concat(h,"'"))}}],[{key:"create",value:function(h,v){if(v){var k=v.factories.slice();h=h.concat(k)}return new c(h)}},{key:"extend",value:function(h){return{provide:c,useFactory:function(k){return c.create(h,k||RI())},deps:[[c,new Pu,new Ou]]}}}]),c}();return l.\u0275prov=Zn({token:l,providedIn:"root",factory:RI}),l}();function Wh(l,c,d,h){for(var v=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==d;){var k=c[d.index];if(null!==k&&h.push(ci(k)),Fo(k))for(var H=10;H<k.length;H++){var W=k[H],X=W[1].firstChild;null!==X&&Wh(W[1],W,X,h)}var fe=d.type;if(8&fe)Wh(l,c,d.child,h);else if(32&fe)for(var ke=Bv(d,c),Ke=void 0;Ke=ke();)h.push(Ke);else if(16&fe){var Je=kh(c,d);if(Array.isArray(Je))h.push.apply(h,(0,_.Z)(Je));else{var ft=Fd(c[16]);Wh(ft[1],ft,Je,h,!0)}}d=v?d.projectionNext:d.next}return h}var Ag=function(){function l(c,d){(0,O.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 Wh(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(Fo(d)){var h=d[8],v=h?h.indexOf(this):-1;v>-1&&(xh(d,v),wd(h,v))}this._attachedToViewContainer=!1}ab(this._lView[1],this._lView)}},{key:"onDestroy",value:function(d){rg(this._lView[1],this._lView,null,d)}},{key:"markForCheck",value:function(){cx(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){px(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(l,c,d){Un(!0);try{px(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){Mh(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}(),lk=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h){var v;return(0,O.Z)(this,d),(v=c.call(this,h))._view=h,v}return(0,D.Z)(d,[{key:"detectChanges",value:function(){ig(this._view)}},{key:"checkNoChanges",value:function(){!function(l){Un(!0);try{ig(l)}finally{Un(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),d}(Ag),ZI=function(l){return function(l,c,d){if(ns(l)&&!d){var h=oa(l.index,c);return new Ag(h,h)}return 47&l.type?new Ag(c[16],c):null}(ee(),ge(),16==(16&l))},LI=function(){var l=function c(){(0,O.Z)(this,c)};return l.__NG_ELEMENT_ID__=ZI,l}(),FI=[new sk],BI=new Eg([new ak]),wB=new Mg(FI),EB=function(){return Dg(ee(),ge())},Gh=function(){var l=function c(){(0,O.Z)(this,c)};return l.__NG_ELEMENT_ID__=EB,l}(),ck=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h,v,k){var H;return(0,O.Z)(this,d),(H=c.call(this))._declarationLView=h,H._declarationTContainer=v,H.elementRef=k,H}return(0,D.Z)(d,[{key:"createEmbeddedView",value:function(v){var k=this._declarationTContainer.tViews,H=ga(this._declarationLView,k,v,16,null,k.declTNode,null,null,null,null);H[17]=this._declarationLView[this._declarationTContainer.index];var X=this._declarationLView[19];return null!==X&&(H[19]=X.createEmbeddedView(k)),Ph(k,H,v),new Ag(H)}}]),d}(Gh);function Dg(l,c){return 4&l.type?new ck(c,l,zh(l,c)):null}var Bc=function l(){(0,O.Z)(this,l)},U0=function l(){(0,O.Z)(this,l)},dk=function(){return jI(ee(),ge())},df=function(){var l=function c(){(0,O.Z)(this,c)};return l.__NG_ELEMENT_ID__=dk,l}(),fk=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h,v,k){var H;return(0,O.Z)(this,d),(H=c.call(this))._lContainer=h,H._hostTNode=v,H._hostLView=k,H}return(0,D.Z)(d,[{key:"element",get:function(){return zh(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Cd(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var v=_y(this._hostTNode,this._hostLView);if(lD(v)){var k=Op(v,this._hostLView),H=sh(v);return new Cd(k[1].data[H+8],k)}return new Cd(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(v){var k=qI(this._lContainer);return null!==k&&k[v]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(v,k,H){var W=v.createEmbeddedView(k||{});return this.insert(W,H),W}},{key:"createComponent",value:function(v,k,H,W,X){var fe=H||this.parentInjector;if(!X&&null==v.ngModule&&fe){var ke=fe.get(Bc,null);ke&&(X=ke)}var Ke=v.create(fe,W,void 0,X);return this.insert(Ke.hostView,k),Ke}},{key:"insert",value:function(v,k){var H=v._lView,W=H[1];if(function(l){return Fo(l[3])}(H)){var X=this.indexOf(v);if(-1!==X)this.detach(X);else{var fe=H[3],ke=new fk(fe,fe[6],fe[3]);ke.detach(ke.indexOf(v))}}var Ke=this._adjustIndex(k),Je=this._lContainer;!function(l,c,d,h){var v=10+h,k=d.length;h>0&&(d[v-1][4]=c),h<k-10?(c[4]=d[v],Sv(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,Je,Ke);var ft=Eh(Ke,Je),At=H[11],Gt=zv(At,Je[7]);return null!==Gt&&function(l,c,d,h,v,k){h[0]=v,h[6]=c,Mh(l,h,d,1,v,k)}(W,Je[6],At,H,Gt,ft),v.attachToViewContainerRef(),Sv(hk(Je),Ke,v),v}},{key:"move",value:function(v,k){return this.insert(v,k)}},{key:"indexOf",value:function(v){var k=qI(this._lContainer);return null!==k?k.indexOf(v):-1}},{key:"remove",value:function(v){var k=this._adjustIndex(v,-1),H=xh(this._lContainer,k);H&&(wd(hk(this._lContainer),k),ab(H[1],H))}},{key:"detach",value:function(v){var k=this._adjustIndex(v,-1),H=xh(this._lContainer,k);return H&&null!=wd(hk(this._lContainer),k)?new Ag(H):null}},{key:"_adjustIndex",value:function(v){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==v?this.length+k:v}}]),d}(df);function qI(l){return l[8]}function hk(l){return l[8]||(l[8]=[])}function jI(l,c){var d,h=c[l.index];if(Fo(h))d=h;else{var v;if(8&l.type)v=ci(h);else{var k=c[11];v=k.createComment("");var H=Hi(l,c);Bd(k,zv(k,H),v,function(l,c){return _r(l)?l.nextSibling(c):c.nextSibling}(k,H),!1)}c[l.index]=d=Al(h,c,v,l),Ib(c,d)}return new fk(d,l,c)}var Fu={},mf=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h){var v;return(0,O.Z)(this,d),(v=c.call(this)).ngModule=h,v}return(0,D.Z)(d,[{key:"resolveComponentFactory",value:function(v){var k=Yi(v);return new aC(k,this.ngModule)}}]),d}(kg);function iC(l){var c=[];for(var d in l)l.hasOwnProperty(d)&&c.push({propName:l[d],templateName:d});return c}var f3=new So("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return va}}),aC=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h,v){var k;return(0,O.Z)(this,d),(k=c.call(this)).componentDef=h,k.ngModule=v,k.componentType=h.type,k.selector=function(l){return l.map(eO).join(",")}(h.selectors),k.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],k.isBoundToModule=!!v,k}return(0,D.Z)(d,[{key:"inputs",get:function(){return iC(this.componentDef.inputs)}},{key:"outputs",get:function(){return iC(this.componentDef.outputs)}},{key:"create",value:function(v,k,H,W){var yn,tr,X=(W=W||this.ngModule)?function(l,c){return{get:function(h,v,k){var H=l.get(h,Fu,k);return H!==Fu||v===Fu?H:c.get(h,v,k)}}}(v,W.injector):v,fe=X.get(F0,Bt),ke=X.get(ik,null),Ke=fe.createRenderer(null,this.componentDef),Je=this.componentDef.selectors[0][0]||"div",ft=H?function(l,c,d){if(_r(l))return l.selectRootElement(c,d===wn.ShadowDom);var v="string"==typeof c?l.querySelector(c):c;return v.textContent="",v}(Ke,H,this.componentDef.encapsulation):ib(fe.createRenderer(null,this.componentDef),Je,function(l){var c=l.toLowerCase();return"svg"===c?mt:"math"===c?"http://www.w3.org/1998/MathML/":null}(Je)),At=this.componentDef.onPush?576:528,Gt=function(l,c){return{components:[],scheduler:l||va,clean:fx,playerHandler:c||null,flags:0}}(),vn=Ws(0,null,null,1,0,null,null,null,null,null),Fn=ga(null,vn,Gt,At,null,null,fe,Ke,ke,X);St(Fn);try{var fr=function(l,c,d,h,v,k){var H=d[1];d[20]=l;var X=Vd(H,20,2,"#host",null),fe=X.mergedAttrs=c.hostAttrs;null!==fe&&(ag(X,fe,!0),null!==l&&(qs(v,l,fe),null!==X.classes&&fb(v,l,X.classes),null!==X.styles&&pb(v,l,X.styles)));var ke=h.createRenderer(l,c),Ke=ga(d,ng(c),null,c.onPush?64:16,d[20],X,h,ke,k||null,null);return H.firstCreatePass&&(_v(lh(X,d),H,c.type),lx(H,X),_O(X,d.length,1)),Ib(d,Ke),d[20]=Ke}(ft,this.componentDef,Fn,fe,Ke);if(ft)if(H)qs(Ke,ft,["ng-version",kI.full]);else{var Qr=function(l){for(var c=[],d=[],h=1,v=2;h<l.length;){var k=l[h];if("string"==typeof k)2===v?""!==k&&c.push(k,l[++h]):8===v&&d.push(k);else{if(!Ms(v))break;v=k}h++}return{attrs:c,classes:d}}(this.componentDef.selectors[0]),Mi=Qr.attrs,io=Qr.classes;Mi&&qs(Ke,ft,Mi),io&&io.length>0&&fb(Ke,ft,io.join(" "))}if(tr=Ua(vn,20),void 0!==k)for(var ta=tr.projection=[],na=0;na<this.ngContentSelectors.length;na++){var Fl=k[na];ta.push(null!=Fl?Array.from(Fl):null)}yn=function(l,c,d,h,v){var k=d[1],H=function(l,c,d){var h=ee();l.firstCreatePass&&(d.providersResolver&&d.providersResolver(d),yO(l,h,c,Kp(l,c,1,null),d));var k=Au(c,l,h.directiveStart,h);Da(k,c);var H=Hi(h,c);return H&&Da(H,c),k}(k,d,c);if(h.components.push(H),l[8]=H,v&&v.forEach(function(ke){return ke(H,c)}),c.contentQueries){var W=ee();c.contentQueries(1,H,W.directiveStart)}var X=ee();return!k.firstCreatePass||null===c.hostBindings&&null===c.hostAttrs||(is(X.index),ax(d[1],X,0,X.directiveStart,X.directiveEnd,c),sx(c,H)),H}(fr,this.componentDef,Fn,Gt,[zO]),Ph(vn,Fn,null)}finally{Ho()}return new Rk(this.componentType,yn,zh(tr,Fn),Fn,tr)}}]),d}(tk),Rk=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h,v,k,H,W){var X;return(0,O.Z)(this,d),(X=c.call(this)).location=k,X._rootLView=H,X._tNode=W,X.instance=v,X.hostView=X.changeDetectorRef=new lk(H),X.componentType=h,X}return(0,D.Z)(d,[{key:"injector",get:function(){return new Cd(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(v){this.hostView.onDestroy(v)}}]),d}(lB),Bu=new Map;var WB=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h,v){var k;(0,O.Z)(this,d),(k=c.call(this))._parent=v,k._bootstrapComponents=[],k.injector=(0,V.Z)(k),k.destroyCbs=[],k.componentFactoryResolver=new mf((0,V.Z)(k));var H=Fi(h),W=function(l){return l[Nt]||null}(h);return W&&Nw(W),k._bootstrapComponents=Es(H.bootstrap),k._r3Injector=bx(h,v,[{provide:Bc,useValue:(0,V.Z)(k)},{provide:kg,useValue:k.componentFactoryResolver}],z(h)),k._r3Injector._resolveInjectorDefTypes(),k.instance=k.get(h),k}return(0,D.Z)(d,[{key:"get",value:function(v){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_a.THROW_IF_NOT_FOUND,H=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ye.Default;return v===_a||v===Bc||v===sg?this:this._r3Injector.get(v,k,H)}},{key:"destroy",value:function(){var v=this._r3Injector;!v.destroyed&&v.destroy(),this.destroyCbs.forEach(function(k){return k()}),this.destroyCbs=null}},{key:"onDestroy",value:function(v){this.destroyCbs.push(v)}}]),d}(Bc),Bg=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(h){var v;return(0,O.Z)(this,d),(v=c.call(this)).moduleType=h,null!==Fi(h)&&function(l){var c=new Set;!function d(h){var v=Fi(h,!0),k=v.id;null!==k&&(function(l,c,d){if(c&&c!==d)throw new Error("Duplicate module registered for ".concat(l," - ").concat(z(c)," vs ").concat(z(c.name)))}(k,Bu.get(k),h),Bu.set(k,h));var fe,W=Es(v.imports),X=(0,C.Z)(W);try{for(X.s();!(fe=X.n()).done;){var ke=fe.value;c.has(ke)||(c.add(ke),d(ke))}}catch(Ke){X.e(Ke)}finally{X.f()}}(l)}(h),v}return(0,D.Z)(d,[{key:"create",value:function(v){return new WB(this.moduleType,v)}}]),d}(U0);function g3(l,c,d){var h=$n()+l,v=ge();return v[h]===jr?Gs(v,h,d?c.call(d):c()):function(l,c){return l[c]}(v,h)}function Lk(l,c,d,h){return Uk(ge(),$n(),l,c,d,h)}function lC(l,c,d,h,v){return y3(ge(),$n(),l,c,d,h,v)}function Ug(l,c){var d=l[c];return d===jr?void 0:d}function Uk(l,c,d,h,v,k){var H=c+d;return ya(l,H,v)?Gs(l,H+1,k?h.call(k,v):h(v)):Ug(l,H+1)}function y3(l,c,d,h,v,k,H){var W=c+d;return su(l,W,v,k)?Gs(l,W+2,H?h.call(H,v,k):h(v,k)):Ug(l,W+2)}function Li(l,c){var h,d=me(),v=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 oe("302","The pipe '".concat(l,"' could not be found!"))}(c,d.pipeRegistry),d.data[v]=h,h.onDestroy&&(d.destroyHooks||(d.destroyHooks=[])).push(v,h.onDestroy)):h=d.data[v];var k=h.factory||(h.factory=He(h.type)),H=Yt(Fh);try{var W=gy(!1),X=k();return gy(W),function(l,c,d,h){d>=l.data.length&&(l.data[d]=null,l.blueprint[d]=null),c[d]=h}(d,ge(),v,X),X}finally{Yt(H)}}function ji(l,c,d){var h=l+20,v=ge(),k=Ha(v,h);return em(v,$h(v,h)?Uk(v,$n(),c,k.transform,d,k):k.transform(d))}function Hg(l,c,d,h){var v=l+20,k=ge(),H=Ha(k,v);return em(k,$h(k,v)?y3(k,$n(),c,H.transform,d,h,H):H.transform(d,h))}function $h(l,c){return l[1].data[c].pure}function em(l,c){return au.isWrapped(c)&&(c=au.unwrap(c),l[yr()]=jr),c}function Uc(l){return function(c){setTimeout(l,void 0,c)}}var du=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){var h,v=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,O.Z)(this,d),(h=c.call(this)).__isAsync=v,h}return(0,D.Z)(d,[{key:"emit",value:function(v){(0,U.Z)((0,B.Z)(d.prototype),"next",this).call(this,v)}},{key:"subscribe",value:function(v,k,H){var W,X,fe,ke=v,Ke=k||function(){return null},Je=H;if(v&&"object"==typeof v){var ft=v;ke=null===(W=ft.next)||void 0===W?void 0:W.bind(ft),Ke=null===(X=ft.error)||void 0===X?void 0:X.bind(ft),Je=null===(fe=ft.complete)||void 0===fe?void 0:fe.bind(ft)}this.__isAsync&&(Ke=Uc(Ke),ke&&(ke=Uc(ke)),Je&&(Je=Uc(Je)));var At=(0,U.Z)((0,B.Z)(d.prototype),"subscribe",this).call(this,{next:ke,error:Ke,complete:Je});return v instanceof E.w&&v.add(At),At}}]),d}(x.xQ);function vf(){return this._results[Ic()]()}var Hc=function(){function l(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,O.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=Ic(),h=l.prototype;h[d]||(h[d]=vf)}return(0,D.Z)(l,[{key:"changes",get:function(){return this._changes||(this._changes=new du)}},{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 v=this;v.dirty=!1;var k=Ss(d);(this._changesDetected=!function(l,c,d){if(l.length!==c.length)return!1;for(var h=0;h<l.length;h++){var v=l[h],k=c[h];if(d&&(v=d(v),k=d(k)),k!==v)return!1}return!0}(v._results,k,h))&&(v._results=k,v.length=k.length,v.last=k[this.length-1],v.first=k[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 Uu=function(){function l(c){(0,O.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}(),pC=function(){function l(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,O.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 v=null!==d.contentQueries?d.contentQueries[0]:h.length,k=[],H=0;H<v;H++){var W=h.getByIndex(H);k.push(this.queries[W.indexInDeclarationView].clone())}return new l(k)}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!==zg(d,h).matches&&this.queries[h].setDirty()}}]),l}(),qg=function l(c,d){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,O.Z)(this,l),this.predicate=c,this.flags=d,this.read=h},Vk=function(){function l(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,O.Z)(this,l),this.queries=c}return(0,D.Z)(l,[{key:"elementStart",value:function(d,h){for(var v=0;v<this.queries.length;v++)this.queries[v].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,v=0;v<this.length;v++){var k=null!==h?h.length:0,H=this.getByIndex(v).embeddedTView(d,k);H&&(H.indexInDeclarationView=v,null!==h?h.push(H):h=[H])}return null!==h?new l(h):null}},{key:"template",value:function(d,h){for(var v=0;v<this.queries.length;v++)this.queries[v].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}(),fC=function(){function l(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;(0,O.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,v=d.parent;null!==v&&8&v.type&&v.index!==h;)v=v.parent;return h===(null!==v?v.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(d,h){var v=this.metadata.predicate;if(Array.isArray(v))for(var k=0;k<v.length;k++){var H=v[k];this.matchTNodeWithReadOption(d,h,qk(h,H)),this.matchTNodeWithReadOption(d,h,uh(h,d,H,!1,!1))}else v===Gh?4&h.type&&this.matchTNodeWithReadOption(d,h,-1):this.matchTNodeWithReadOption(d,h,uh(h,d,v,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(d,h,v){if(null!==v){var k=this.metadata.read;if(null!==k)if(k===lu||k===df||k===Gh&&4&h.type)this.addMatch(h.index,-2);else{var H=uh(h,d,k,!1,!1);null!==H&&this.addMatch(h.index,H)}else this.addMatch(h.index,v)}}},{key:"addMatch",value:function(d,h){null===this.matches?this.matches=[d,h]:this.matches.push(d,h)}}]),l}();function qk(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 jk(l,c,d,h){return-1===d?function(l,c){return 11&l.type?zh(l,c):4&l.type?Dg(l,c):null}(c,l):-2===d?function(l,c,d){return d===lu?zh(c,l):d===Gh?Dg(c,l):d===df?jI(c,l):void 0}(l,c,h):Au(l,l[1],d,c)}function jg(l,c,d,h){var v=c[19].queries[h];if(null===v.matches){for(var k=l.data,H=d.matches,W=[],X=0;X<H.length;X+=2){var fe=H[X];W.push(fe<0?null:jk(c,k[fe],H[X+1],d.metadata.read))}v.matches=W}return v.matches}function mC(l,c,d,h){var v=l.queries.getByIndex(d),k=v.matches;if(null!==k)for(var H=jg(l,c,v,d),W=0;W<k.length;W+=2){var X=k[W];if(X>0)h.push(H[W/2]);else{for(var fe=k[W+1],ke=c[-X],Ke=10;Ke<ke.length;Ke++){var Je=ke[Ke];Je[17]===Je[3]&&mC(Je[1],Je,fe,h)}if(null!==ke[9])for(var ft=ke[9],At=0;At<ft.length;At++){var Gt=ft[At];mC(Gt[1],Gt,fe,h)}}}return h}function zk(l){var c=ge(),d=me(),h=be();Ze(h+1);var v=zg(d,h);if(l.dirty&&bs(c)===(2==(2&v.metadata.flags))){if(null===v.matches)l.reset([]);else{var k=v.crossesNgTemplate?mC(d,c,h,[]):jg(d,c,v,h);l.reset(k,nk),l.notifyOnChanges()}return!0}return!1}function gf(l,c,d){var h=me();h.firstCreatePass&&(pu(h,new qg(l,c,d),-1),2==(2&c)&&(h.staticViewQueries=!0)),nm(h,ge(),c)}function Wk(l,c,d,h){var v=me();if(v.firstCreatePass){var k=ee();pu(v,new qg(c,d,h),k.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)}(v,l),2==(2&d)&&(v.staticContentQueries=!0)}nm(v,ge(),d)}function Gk(){return l=ge(),c=be(),l[19].queries[c].queryList;var l,c}function nm(l,c,d){var h=new Hc(4==(4&d));rg(l,c,h,h.destroy),null===c[19]&&(c[19]=new pC),c[19].queries.push(new Uu(h))}function pu(l,c,d){null===l.queries&&(l.queries=new Vk),l.queries.track(new fC(c,d))}function zg(l,c){return l.queries.getByIndex(c)}function Wg(l,c){return Dg(l,c)}var Qd=new So("Application Initializer"),Il=function(){var l=function(){function c(d){var h=this;(0,O.Z)(this,c),this.appInits=d,this.resolve=L0,this.reject=L0,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(v,k){h.resolve=v,h.reject=k})}return(0,D.Z)(c,[{key:"runInitializers",value:function(){var h=this;if(!this.initialized){var v=[],k=function(){h.done=!0,h.resolve()};if(this.appInits)for(var H=function(fe){var ke=h.appInits[fe]();if(Fc(ke))v.push(ke);else if(a0(ke)){var Ke=new Promise(function(Je,ft){ke.subscribe({complete:Je,error:ft})});v.push(Ke)}},W=0;W<this.appInits.length;W++)H(W);Promise.all(v).then(function(){k()}).catch(function(X){h.reject(X)}),0===v.length&&k(),this.initialized=!0}}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Io(Qd,8))},l.\u0275prov=Zn({token:l,factory:l.\u0275fac}),l}(),dE=new So("AppId"),pE={provide:dE,useFactory:function(){return"".concat(kC()).concat(kC()).concat(kC())},deps:[]};function kC(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Ro=new So("Platform Initializer"),Kd=new So("Platform ID"),Xg=new So("appBootstrapListener"),EC=function(){var l=function(){function c(){(0,O.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=Zn({token:l,factory:l.\u0275fac}),l}(),cm=new So("LocaleId"),MC=new So("DefaultCurrencyCode"),mE=function l(c,d){(0,O.Z)(this,l),this.ngModuleFactory=c,this.componentFactories=d},DC=function(c){return new Bg(c)},gE=DC,Sf=function(c){return Promise.resolve(DC(c))},OC=function(c){var d=DC(c),v=Es(Fi(c).declarations).reduce(function(k,H){var W=Yi(H);return W&&k.push(new aC(W)),k},[]);return new mE(d,v)},q3=OC,_E=function(c){return Promise.resolve(OC(c))},Tf=function(){var l=function(){function c(){(0,O.Z)(this,c),this.compileModuleSync=gE,this.compileModuleAsync=Sf,this.compileModuleAndAllComponentsSync=q3,this.compileModuleAndAllComponentsAsync=_E}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=Zn({token:l,factory:l.\u0275fac}),l}(),j3=function(){return Promise.resolve(0)}();function IC(l){"undefined"==typeof Zone?j3.then(function(){l&&l.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",l)}var fu=function(){function l(c){var d=c.enableLongStackTrace,h=void 0!==d&&d,v=c.shouldCoalesceEventChangeDetection,k=void 0!==v&&v,H=c.shouldCoalesceRunChangeDetection,W=void 0!==H&&H;if((0,O.Z)(this,l),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new du(!1),this.onMicrotaskEmpty=new du(!1),this.onStable=new du(!1),this.onError=new du(!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&&k,X.shouldCoalesceRunChangeDetection=W,X.lastRequestAnimationFrameId=-1,X.nativeRequestAnimationFrame=function(){var l=pt.requestAnimationFrame,c=pt.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(pt,function(){l.fakeTopEventTask||(l.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){l.lastRequestAnimationFrameId=-1,pm(l),l.isCheckStableRunning=!0,dm(l),l.isCheckStableRunning=!1},void 0,function(){},function(){})),l.fakeTopEventTask.invoke()}),pm(l))}(l)};l._inner=l._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(h,v,k,H,W,X){try{return xf(l),h.invokeTask(k,H,W,X)}finally{(l.shouldCoalesceEventChangeDetection&&"eventTask"===H.type||l.shouldCoalesceRunChangeDetection)&&c(),jc(l)}},onInvoke:function(h,v,k,H,W,X,fe){try{return xf(l),h.invoke(k,H,W,X,fe)}finally{l.shouldCoalesceRunChangeDetection&&c(),jc(l)}},onHasTask:function(h,v,k,H){h.hasTask(k,H),v===k&&("microTask"==H.change?(l._hasPendingMicrotasks=H.microTask,pm(l),dm(l)):"macroTask"==H.change&&(l.hasPendingMacrotasks=H.macroTask))},onHandleError:function(h,v,k,H){return h.handleError(k,H),l.runOutsideAngular(function(){return l.onError.emit(H)}),!1}})}(X)}return(0,D.Z)(l,[{key:"run",value:function(d,h,v){return this._inner.run(d,h,v)}},{key:"runTask",value:function(d,h,v,k){var H=this._inner,W=H.scheduleEventTask("NgZoneEvent: "+k,d,Ps,L0,L0);try{return H.runTask(W,h,v)}finally{H.cancelTask(W)}}},{key:"runGuarded",value:function(d,h,v){return this._inner.runGuarded(d,h,v)}},{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}(),Ps={};function dm(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 pm(l){l.hasPendingMicrotasks=!!(l._hasPendingMicrotasks||(l.shouldCoalesceEventChangeDetection||l.shouldCoalesceRunChangeDetection)&&-1!==l.lastRequestAnimationFrameId)}function xf(l){l._nesting++,l.isStable&&(l.isStable=!1,l.onUnstable.emit(null))}function jc(l){l._nesting--,dm(l)}var ZC=function(){function l(){(0,O.Z)(this,l),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new du,this.onMicrotaskEmpty=new du,this.onStable=new du,this.onError=new du}return(0,D.Z)(l,[{key:"run",value:function(d,h,v){return d.apply(h,v)}},{key:"runGuarded",value:function(d,h,v){return d.apply(h,v)}},{key:"runOutsideAngular",value:function(d){return d()}},{key:"runTask",value:function(d,h,v,k){return d.apply(h,v)}}]),l}(),bE=function(){var l=function(){function c(d){var h=this;(0,O.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(){fu.assertNotInAngularZone(),IC(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())IC(function(){for(;0!==h._callbacks.length;){var k=h._callbacks.pop();clearTimeout(k.timeoutId),k.doneCb(h._didWork)}h._didWork=!1});else{var v=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(k){return!k.updateCb||!k.updateCb(v)||(clearTimeout(k.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,v,k){var H=this,W=-1;v&&v>0&&(W=setTimeout(function(){H._callbacks=H._callbacks.filter(function(X){return X.timeoutId!==W}),h(H._didWork,H.getPendingTasks())},v)),this._callbacks.push({doneCb:h,timeoutId:W,updateCb:k})}},{key:"whenStable",value:function(h,v,k){if(k&&!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,v,k),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(h,v,k){return[]}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Io(fu))},l.\u0275prov=Zn({token:l,factory:l.\u0275fac}),l}(),wf=function(){var l=function(){function c(){(0,O.Z)(this,c),this._applications=new Map,t_.addToWindow(this)}return(0,D.Z)(c,[{key:"registerApplication",value:function(h,v){this._applications.set(h,v)}},{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 v=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t_.findTestabilityInTree(this,h,v)}}]),c}();return l.\u0275fac=function(d){return new(d||l)},l.\u0275prov=Zn({token:l,factory:l.\u0275fac}),l}();function W3(l){t_=l}var t_=new(function(){function l(){(0,O.Z)(this,l)}return(0,D.Z)(l,[{key:"addToWindow",value:function(d){}},{key:"findTestabilityInTree",value:function(d,h,v){return null}}]),l}()),CE=!0,SE=!1;function fm(){return SE=!0,CE}function TE(){if(SE)throw new Error("Cannot enable prod mode after platform setup.");CE=!1}var Rl,G3=function(l,c,d){var h=new Bg(d);return Promise.resolve(h)},hm=new So("AllowMultipleToken"),FC=function l(c,d){(0,O.Z)(this,l),this.name=c,this.token=d};function mm(l){if(Rl&&!Rl.destroyed&&!Rl.injector.get(hm,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Rl=l.get(wE);var c=l.get(Ro,null);return c&&c.forEach(function(d){return d()}),Rl}function BC(l,c){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],h="Platform: ".concat(c),v=new So(h);return function(){var k=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],H=xE();if(!H||H.injector.get(hm,!1))if(l)l(d.concat(k).concat({provide:v,useValue:!0}));else{var W=d.concat(k).concat({provide:v,useValue:!0},{provide:qd,useValue:"platform"});mm(_a.create({providers:W,name:h}))}return X3(v)}}function X3(l){var c=xE();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 xE(){return Rl&&!Rl.destroyed?Rl:null}var wE=function(){var l=function(){function c(d){(0,O.Z)(this,c),this._injector=d,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return(0,D.Z)(c,[{key:"bootstrapModuleFactory",value:function(h,v){var k=this,fe=function(l,c){return"noop"===l?new ZC:("zone.js"===l?void 0:l)||new fu({enableLongStackTrace:fm(),shouldCoalesceEventChangeDetection:!!(null==c?void 0:c.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==c?void 0:c.ngZoneRunCoalescing)})}(v?v.ngZone:void 0,{ngZoneEventCoalescing:v&&v.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:v&&v.ngZoneRunCoalescing||!1}),ke=[{provide:fu,useValue:fe}];return fe.run(function(){var Ke=_a.create({providers:ke,parent:k.injector,name:h.moduleType.name}),Je=h.create(Ke),ft=Je.injector.get(Tc,null);if(!ft)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return fe.runOutsideAngular(function(){var At=fe.onError.subscribe({next:function(vn){ft.handleError(vn)}});Je.onDestroy(function(){UC(k._modules,Je),At.unsubscribe()})}),function(l,c,d){try{var h=((At=Je.injector.get(Il)).runInitializers(),At.donePromise.then(function(){return Nw(Je.injector.get(cm,A0)||A0),k._moduleDoBootstrap(Je),Je}));return Fc(h)?h.catch(function(v){throw c.runOutsideAngular(function(){return l.handleError(v)}),v}):h}catch(v){throw c.runOutsideAngular(function(){return l.handleError(v)}),v}var At}(ft,fe)})}},{key:"bootstrapModule",value:function(h){var v=this,k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],H=kE({},k);return G3(0,0,h).then(function(W){return v.bootstrapModuleFactory(W,H)})}},{key:"_moduleDoBootstrap",value:function(h){var v=h.injector.get(vm);if(h._bootstrapComponents.length>0)h._bootstrapComponents.forEach(function(k){return v.bootstrap(k)});else{if(!h.instance.ngDoBootstrap)throw new Error("The module ".concat(z(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(v)}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)(Io(_a))},l.\u0275prov=Zn({token:l,factory:l.\u0275fac}),l}();function kE(l,c){return Array.isArray(c)?c.reduce(kE,l):Object.assign(Object.assign({},l),c)}var vm=function(){var l=function(){function c(d,h,v,k,H){var W=this;(0,O.Z)(this,c),this._zone=d,this._injector=h,this._exceptionHandler=v,this._componentFactoryResolver=k,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 S.y(function(ke){W._stable=W._zone.isStable&&!W._zone.hasPendingMacrotasks&&!W._zone.hasPendingMicrotasks,W._zone.runOutsideAngular(function(){ke.next(W._stable),ke.complete()})}),fe=new S.y(function(ke){var Ke;W._zone.runOutsideAngular(function(){Ke=W._zone.onStable.subscribe(function(){fu.assertNotInAngularZone(),IC(function(){!W._stable&&!W._zone.hasPendingMacrotasks&&!W._zone.hasPendingMicrotasks&&(W._stable=!0,ke.next(!0))})})});var Je=W._zone.onUnstable.subscribe(function(){fu.assertInAngularZone(),W._stable&&(W._stable=!1,W._zone.runOutsideAngular(function(){ke.next(!1)}))});return function(){Ke.unsubscribe(),Je.unsubscribe()}});this.isStable=(0,A.T)(X,fe.pipe((0,L.B)()))}return(0,D.Z)(c,[{key:"bootstrap",value:function(h,v){var H,k=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 tk?h:this._componentFactoryResolver.resolveComponentFactory(h),this.componentTypes.push(H.componentType);var W=function(l){return l.isBoundToModule}(H)?void 0:this._injector.get(Bc),fe=H.create(_a.NULL,[],v||H.selector,W),ke=fe.location.nativeElement,Ke=fe.injector.get(bE,null),Je=Ke&&fe.injector.get(wf);return Ke&&Je&&Je.registerApplication(ke,Ke),fe.onDestroy(function(){k.detachView(fe.hostView),UC(k.components,fe),Je&&Je.unregisterApplication(ke)}),this._loadComponent(fe),fe}},{key:"tick",value:function(){var h=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var k,v=(0,C.Z)(this._views);try{for(v.s();!(k=v.n()).done;)k.value.detectChanges()}catch(ke){v.e(ke)}finally{v.f()}}catch(ke){this._zone.runOutsideAngular(function(){return h._exceptionHandler.handleError(ke)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(h){var v=h;this._views.push(v),v.attachToAppRef(this)}},{key:"detachView",value:function(h){var v=h;UC(this._views,v),v.detachFromAppRef()}},{key:"_loadComponent",value:function(h){this.attachView(h.hostView),this.tick(),this.components.push(h),this._injector.get(Xg,[]).concat(this._bootstrapListeners).forEach(function(k){return k(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)(Io(fu),Io(_a),Io(Tc),Io(kg),Io(Il))},l.\u0275prov=Zn({token:l,factory:l.\u0275fac}),l}();function UC(l,c){var d=l.indexOf(c);d>-1&&l.splice(d,1)}var ME=function l(){(0,O.Z)(this,l)},jC=function l(){(0,O.Z)(this,l)},gm={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},tR=function(){var l=function(){function c(d,h){(0,O.Z)(this,c),this._compiler=d,this._config=h||gm}return(0,D.Z)(c,[{key:"load",value:function(h){return this.loadAndCompile(h)}},{key:"loadAndCompile",value:function(h){var v=this,k=h.split("#"),H=(0,Z.Z)(k,2),W=H[0],X=H[1];return void 0===X&&(X="default"),f(98255)(W).then(function(fe){return fe[X]}).then(function(fe){return AE(fe,W,X)}).then(function(fe){return v._compiler.compileModuleAsync(fe)})}},{key:"loadFactory",value:function(h){var v=h.split("#"),k=(0,Z.Z)(v,2),H=k[0],W=k[1],X="NgFactory";return void 0===W&&(W="default",X=""),f(98255)(this._config.factoryPathPrefix+H+this._config.factoryPathSuffix).then(function(fe){return fe[W+X]}).then(function(fe){return AE(fe,H,W)})}}]),c}();return l.\u0275fac=function(d){return new(d||l)(Io(Tf),Io(jC,8))},l.\u0275prov=Zn({token:l,factory:l.\u0275fac}),l}();function AE(l,c,d){if(!l)throw new Error("Cannot find '".concat(d,"' in '").concat(c,"'"));return l}var nR=function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,O.Z)(this,d),c.apply(this,arguments)}return d}(function(l){(0,P.Z)(d,l);var c=(0,y.Z)(d);function d(){return(0,O.Z)(this,d),c.apply(this,arguments)}return d}(LI)),lR=function(l){return null},cR=BC(null,"core",[{provide:Kd,useValue:"unknown"},{provide:wE,deps:[_a]},{provide:wf,deps:[]},{provide:EC,deps:[]}]),QC=[{provide:vm,useClass:vm,deps:[fu,_a,Tc,kg,Il]},{provide:f3,deps:[fu],useFactory:function(l){var c=[];return l.onStable.subscribe(function(){for(;c.length;)c.pop()()}),function(d){c.push(d)}}},{provide:Il,useClass:Il,deps:[[new Ou,Qd]]},{provide:Tf,useClass:Tf,deps:[]},pE,{provide:Eg,useFactory:function(){return BI},deps:[]},{provide:Mg,useFactory:function(){return wB},deps:[]},{provide:cm,useFactory:function(l){return Nw(l=l||"undefined"!=typeof $localize&&$localize.locale||A0),l},deps:[[new hh(cm),new Ou,new Pu]]},{provide:MC,useValue:"USD"}],gR=function(){var l=function c(d){(0,O.Z)(this,c)};return l.\u0275fac=function(d){return new(d||l)(Io(vm))},l.\u0275mod=Yo({type:l}),l.\u0275inj=Bn({providers:QC}),l}()},19061:function(le,q,f){"use strict";f.d(q,{Zs:function(){return Bo},Fj:function(){return L},qu:function(){return Uo},NI:function(){return Xn},u:function(){return Ao},cw:function(){return Jr},sg:function(){return mi},u5:function(){return Ko},Cf:function(){return z},JU:function(){return T},a5:function(){return An},JJ:function(){return Bn},JL:function(){return En},F:function(){return Gi},On:function(){return Co},wV:function(){return Zi},UX:function(){return ys},kI:function(){return ie},_Y:function(){return Fi}});var U=f(88009),B=f(36683),V=f(10629),Z=f(10509),w=f(97154),R=f(18967),C=f(14105),_=f(65508),N=f(40098),D=f(61493),O=f(91925),P=f(85639),y=function(){var Ee=function(){function He(Pe,Me){(0,R.Z)(this,He),this._renderer=Pe,this._elementRef=Me,this.onChange=function(Ve){},this.onTouched=function(){}}return(0,C.Z)(He,[{key:"setProperty",value:function(Me,Ve){this._renderer.setProperty(this._elementRef.nativeElement,Me,Ve)}},{key:"registerOnTouched",value:function(Me){this.onTouched=Me}},{key:"registerOnChange",value:function(Me){this.onChange=Me}},{key:"setDisabledState",value:function(Me){this.setProperty("disabled",Me)}}]),He}();return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(_.Qsj),_.Y36(_.SBq))},Ee.\u0275dir=_.lG2({type:Ee}),Ee}(),g=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(){return(0,R.Z)(this,Me),Pe.apply(this,arguments)}return Me}(y);return Ee.\u0275fac=function(){var He;return function(Me){return(He||(He=_.n5z(Ee)))(Me||Ee)}}(),Ee.\u0275dir=_.lG2({type:Ee,features:[_.qOj]}),Ee}(),T=new _.OlP("NgValueAccessor"),x={provide:T,useExisting:(0,_.Gpc)(function(){return L}),multi:!0},A=new _.OlP("CompositionEventMode"),L=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(Ve,we,Ft){var Tn;return(0,R.Z)(this,Me),(Tn=Pe.call(this,Ve,we))._compositionMode=Ft,Tn._composing=!1,null==Tn._compositionMode&&(Tn._compositionMode=!function(){var Ee=(0,N.q)()?(0,N.q)().getUserAgent():"";return/android (\d+)/.test(Ee.toLowerCase())}()),Tn}return(0,C.Z)(Me,[{key:"writeValue",value:function(we){this.setProperty("value",null==we?"":we)}},{key:"_handleInput",value:function(we){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(we)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(we){this._composing=!1,this._compositionMode&&this.onChange(we)}}]),Me}(y);return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(_.Qsj),_.Y36(_.SBq),_.Y36(A,8))},Ee.\u0275dir=_.lG2({type:Ee,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(Pe,Me){1&Pe&&_.NdJ("input",function(we){return Me._handleInput(we.target.value)})("blur",function(){return Me.onTouched()})("compositionstart",function(){return Me._compositionStart()})("compositionend",function(we){return Me._compositionEnd(we.target.value)})},features:[_._Bn([x]),_.qOj]}),Ee}();function j(Ee){return null==Ee||0===Ee.length}function K(Ee){return null!=Ee&&"number"==typeof Ee.length}var z=new _.OlP("NgValidators"),Q=new _.OlP("NgAsyncValidators"),ae=/^(?=.{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])?)*$/,ie=function(){function Ee(){(0,R.Z)(this,Ee)}return(0,C.Z)(Ee,null,[{key:"min",value:function(Pe){return function(Ee){return function(He){if(j(He.value)||j(Ee))return null;var Pe=parseFloat(He.value);return!isNaN(Pe)&&Pe<Ee?{min:{min:Ee,actual:He.value}}:null}}(Pe)}},{key:"max",value:function(Pe){return function(Ee){return function(He){if(j(He.value)||j(Ee))return null;var Pe=parseFloat(He.value);return!isNaN(Pe)&&Pe>Ee?{max:{max:Ee,actual:He.value}}:null}}(Pe)}},{key:"required",value:function(Pe){return de(Pe)}},{key:"requiredTrue",value:function(Pe){return oe(Pe)}},{key:"email",value:function(Pe){return function(Ee){return j(Ee.value)||ae.test(Ee.value)?null:{email:!0}}(Pe)}},{key:"minLength",value:function(Pe){return function(Ee){return function(He){return j(He.value)||!K(He.value)?null:He.value.length<Ee?{minlength:{requiredLength:Ee,actualLength:He.value.length}}:null}}(Pe)}},{key:"maxLength",value:function(Pe){return function(Ee){return function(He){return K(He.value)&&He.value.length>Ee?{maxlength:{requiredLength:Ee,actualLength:He.value.length}}:null}}(Pe)}},{key:"pattern",value:function(Pe){return function(Ee){return Ee?("string"==typeof Ee?(Pe="","^"!==Ee.charAt(0)&&(Pe+="^"),Pe+=Ee,"$"!==Ee.charAt(Ee.length-1)&&(Pe+="$"),He=new RegExp(Pe)):(Pe=Ee.toString(),He=Ee),function(Me){if(j(Me.value))return null;var Ve=Me.value;return He.test(Ve)?null:{pattern:{requiredPattern:Pe,actualValue:Ve}}}):Ne;var He,Pe}(Pe)}},{key:"nullValidator",value:function(Pe){return null}},{key:"compose",value:function(Pe){return ct(Pe)}},{key:"composeAsync",value:function(Pe){return Ht(Pe)}}]),Ee}();function de(Ee){return j(Ee.value)?{required:!0}:null}function oe(Ee){return!0===Ee.value?null:{required:!0}}function Ne(Ee){return null}function gt(Ee){return null!=Ee}function _t(Ee){var He=(0,_.QGY)(Ee)?(0,D.D)(Ee):Ee;return(0,_.CqO)(He),He}function Rt(Ee){var He={};return Ee.forEach(function(Pe){He=null!=Pe?Object.assign(Object.assign({},He),Pe):He}),0===Object.keys(He).length?null:He}function Se(Ee,He){return He.map(function(Pe){return Pe(Ee)})}function je(Ee){return Ee.map(function(He){return function(Ee){return!Ee.validate}(He)?He:function(Pe){return He.validate(Pe)}})}function ct(Ee){if(!Ee)return null;var He=Ee.filter(gt);return 0==He.length?null:function(Pe){return Rt(Se(Pe,He))}}function Xe(Ee){return null!=Ee?ct(je(Ee)):null}function Ht(Ee){if(!Ee)return null;var He=Ee.filter(gt);return 0==He.length?null:function(Pe){var Me=Se(Pe,He).map(_t);return(0,O.D)(Me).pipe((0,P.U)(Rt))}}function Et(Ee){return null!=Ee?Ht(je(Ee)):null}function vt(Ee,He){return null===Ee?[He]:Array.isArray(Ee)?[].concat((0,V.Z)(Ee),[He]):[Ee,He]}function Xt(Ee){return Ee._rawValidators}function qt(Ee){return Ee._rawAsyncValidators}function Ct(Ee){return Ee?Array.isArray(Ee)?Ee:[Ee]:[]}function jt(Ee,He){return Array.isArray(Ee)?Ee.includes(He):Ee===He}function bt(Ee,He){var Pe=Ct(He);return Ct(Ee).forEach(function(Ve){jt(Pe,Ve)||Pe.push(Ve)}),Pe}function nn(Ee,He){return Ct(He).filter(function(Pe){return!jt(Ee,Pe)})}var Ut=function(){var Ee=function(){function He(){(0,R.Z)(this,He),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return(0,C.Z)(He,[{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(Me){this._rawValidators=Me||[],this._composedValidatorFn=Xe(this._rawValidators)}},{key:"_setAsyncValidators",value:function(Me){this._rawAsyncValidators=Me||[],this._composedAsyncValidatorFn=Et(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(Me){this._onDestroyCallbacks.push(Me)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(Me){return Me()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var Me=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(Me)}},{key:"hasError",value:function(Me,Ve){return!!this.control&&this.control.hasError(Me,Ve)}},{key:"getError",value:function(Me,Ve){return this.control?this.control.getError(Me,Ve):null}}]),He}();return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275dir=_.lG2({type:Ee}),Ee}(),an=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(){return(0,R.Z)(this,Me),Pe.apply(this,arguments)}return(0,C.Z)(Me,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),Me}(Ut);return Ee.\u0275fac=function(){var He;return function(Me){return(He||(He=_.n5z(Ee)))(Me||Ee)}}(),Ee.\u0275dir=_.lG2({type:Ee,features:[_.qOj]}),Ee}(),An=function(Ee){(0,Z.Z)(Pe,Ee);var He=(0,w.Z)(Pe);function Pe(){var Me;return(0,R.Z)(this,Pe),(Me=He.apply(this,arguments))._parent=null,Me.name=null,Me.valueAccessor=null,Me}return Pe}(Ut),Hn=function(){function Ee(He){(0,R.Z)(this,Ee),this._cd=He}return(0,C.Z)(Ee,[{key:"is",value:function(Pe){var Me,Ve,we;return"submitted"===Pe?!!(null===(Me=this._cd)||void 0===Me?void 0:Me.submitted):!!(null===(we=null===(Ve=this._cd)||void 0===Ve?void 0:Ve.control)||void 0===we?void 0:we[Pe])}}]),Ee}(),Bn=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(Ve){return(0,R.Z)(this,Me),Pe.call(this,Ve)}return Me}(Hn);return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(An,2))},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Pe,Me){2&Pe&&_.ekj("ng-untouched",Me.is("untouched"))("ng-touched",Me.is("touched"))("ng-pristine",Me.is("pristine"))("ng-dirty",Me.is("dirty"))("ng-valid",Me.is("valid"))("ng-invalid",Me.is("invalid"))("ng-pending",Me.is("pending"))},features:[_.qOj]}),Ee}(),En=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(Ve){return(0,R.Z)(this,Me),Pe.call(this,Ve)}return Me}(Hn);return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(an,10))},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Pe,Me){2&Pe&&_.ekj("ng-untouched",Me.is("untouched"))("ng-touched",Me.is("touched"))("ng-pristine",Me.is("pristine"))("ng-dirty",Me.is("dirty"))("ng-valid",Me.is("valid"))("ng-invalid",Me.is("invalid"))("ng-pending",Me.is("pending"))("ng-submitted",Me.is("submitted"))},features:[_.qOj]}),Ee}();function wt(Ee,He){return[].concat((0,V.Z)(He.path),[Ee])}function ot(Ee,He){Ge(Ee,He),He.valueAccessor.writeValue(Ee.value),function(Ee,He){He.valueAccessor.registerOnChange(function(Pe){Ee._pendingValue=Pe,Ee._pendingChange=!0,Ee._pendingDirty=!0,"change"===Ee.updateOn&&Yt(Ee,He)})}(Ee,He),function(Ee,He){var Pe=function(Ve,we){He.valueAccessor.writeValue(Ve),we&&He.viewToModelUpdate(Ve)};Ee.registerOnChange(Pe),He._registerOnDestroy(function(){Ee._unregisterOnChange(Pe)})}(Ee,He),function(Ee,He){He.valueAccessor.registerOnTouched(function(){Ee._pendingTouched=!0,"blur"===Ee.updateOn&&Ee._pendingChange&&Yt(Ee,He),"submit"!==Ee.updateOn&&Ee.markAsTouched()})}(Ee,He),function(Ee,He){if(He.valueAccessor.setDisabledState){var Pe=function(Ve){He.valueAccessor.setDisabledState(Ve)};Ee.registerOnDisabledChange(Pe),He._registerOnDestroy(function(){Ee._unregisterOnDisabledChange(Pe)})}}(Ee,He)}function _e(Ee,He){var Me=function(){};He.valueAccessor&&(He.valueAccessor.registerOnChange(Me),He.valueAccessor.registerOnTouched(Me)),Ye(Ee,He),Ee&&(He._invokeOnDestroyCallbacks(),Ee._registerOnCollectionChange(function(){}))}function re(Ee,He){Ee.forEach(function(Pe){Pe.registerOnValidatorChange&&Pe.registerOnValidatorChange(He)})}function Ge(Ee,He){var Pe=Xt(Ee);null!==He.validator?Ee.setValidators(vt(Pe,He.validator)):"function"==typeof Pe&&Ee.setValidators([Pe]);var Me=qt(Ee);null!==He.asyncValidator?Ee.setAsyncValidators(vt(Me,He.asyncValidator)):"function"==typeof Me&&Ee.setAsyncValidators([Me]);var Ve=function(){return Ee.updateValueAndValidity()};re(He._rawValidators,Ve),re(He._rawAsyncValidators,Ve)}function Ye(Ee,He){var Pe=!1;if(null!==Ee){if(null!==He.validator){var Me=Xt(Ee);if(Array.isArray(Me)&&Me.length>0){var Ve=Me.filter(function(zn){return zn!==He.validator});Ve.length!==Me.length&&(Pe=!0,Ee.setValidators(Ve))}}if(null!==He.asyncValidator){var we=qt(Ee);if(Array.isArray(we)&&we.length>0){var Ft=we.filter(function(zn){return zn!==He.asyncValidator});Ft.length!==we.length&&(Pe=!0,Ee.setAsyncValidators(Ft))}}}var Tn=function(){};return re(He._rawValidators,Tn),re(He._rawAsyncValidators,Tn),Pe}function Yt(Ee,He){Ee._pendingDirty&&Ee.markAsDirty(),Ee.setValue(Ee._pendingValue,{emitModelToViewChange:!1}),He.viewToModelUpdate(Ee._pendingValue),Ee._pendingChange=!1}function cn(Ee,He){Ge(Ee,He)}function er(Ee,He){if(!Ee.hasOwnProperty("model"))return!1;var Pe=Ee.model;return!!Pe.isFirstChange()||!Object.is(He,Pe.currentValue)}function Sn(Ee,He){Ee._syncPendingControls(),He.forEach(function(Pe){var Me=Pe.control;"submit"===Me.updateOn&&Me._pendingChange&&(Pe.viewToModelUpdate(Me._pendingValue),Me._pendingChange=!1)})}function ir(Ee,He){if(!He)return null;Array.isArray(He);var Pe=void 0,Me=void 0,Ve=void 0;return He.forEach(function(we){we.constructor===L?Pe=we:function(Ee){return Object.getPrototypeOf(Ee.constructor)===g}(we)?Me=we:Ve=we}),Ve||Me||Pe||null}function Vt(Ee,He){var Pe=Ee.indexOf(He);Pe>-1&&Ee.splice(Pe,1)}var pt="VALID",dt="INVALID",Ue="PENDING",at="DISABLED";function Fe(Ee){return(Nt(Ee)?Ee.validators:Ee)||null}function Ae(Ee){return Array.isArray(Ee)?Xe(Ee):Ee||null}function Le(Ee,He){return(Nt(He)?He.asyncValidators:Ee)||null}function ze(Ee){return Array.isArray(Ee)?Et(Ee):Ee||null}function Nt(Ee){return null!=Ee&&!Array.isArray(Ee)&&"object"==typeof Ee}var mn=function(){function Ee(He,Pe){(0,R.Z)(this,Ee),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=He,this._rawAsyncValidators=Pe,this._composedValidatorFn=Ae(this._rawValidators),this._composedAsyncValidatorFn=ze(this._rawAsyncValidators)}return(0,C.Z)(Ee,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(Pe){this._rawValidators=this._composedValidatorFn=Pe}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(Pe){this._rawAsyncValidators=this._composedAsyncValidatorFn=Pe}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===pt}},{key:"invalid",get:function(){return this.status===dt}},{key:"pending",get:function(){return this.status==Ue}},{key:"disabled",get:function(){return this.status===at}},{key:"enabled",get:function(){return this.status!==at}},{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(Pe){this._rawValidators=Pe,this._composedValidatorFn=Ae(Pe)}},{key:"setAsyncValidators",value:function(Pe){this._rawAsyncValidators=Pe,this._composedAsyncValidatorFn=ze(Pe)}},{key:"addValidators",value:function(Pe){this.setValidators(bt(Pe,this._rawValidators))}},{key:"addAsyncValidators",value:function(Pe){this.setAsyncValidators(bt(Pe,this._rawAsyncValidators))}},{key:"removeValidators",value:function(Pe){this.setValidators(nn(Pe,this._rawValidators))}},{key:"removeAsyncValidators",value:function(Pe){this.setAsyncValidators(nn(Pe,this._rawAsyncValidators))}},{key:"hasValidator",value:function(Pe){return jt(this._rawValidators,Pe)}},{key:"hasAsyncValidator",value:function(Pe){return jt(this._rawAsyncValidators,Pe)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!Pe.onlySelf&&this._parent.markAsTouched(Pe)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(Pe){return Pe.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(Me){Me.markAsUntouched({onlySelf:!0})}),this._parent&&!Pe.onlySelf&&this._parent._updateTouched(Pe)}},{key:"markAsDirty",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!Pe.onlySelf&&this._parent.markAsDirty(Pe)}},{key:"markAsPristine",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(Me){Me.markAsPristine({onlySelf:!0})}),this._parent&&!Pe.onlySelf&&this._parent._updatePristine(Pe)}},{key:"markAsPending",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Ue,!1!==Pe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Pe.onlySelf&&this._parent.markAsPending(Pe)}},{key:"disable",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=this._parentMarkedDirty(Pe.onlySelf);this.status=at,this.errors=null,this._forEachChild(function(Ve){Ve.disable(Object.assign(Object.assign({},Pe),{onlySelf:!0}))}),this._updateValue(),!1!==Pe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},Pe),{skipPristineCheck:Me})),this._onDisabledChange.forEach(function(Ve){return Ve(!0)})}},{key:"enable",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=this._parentMarkedDirty(Pe.onlySelf);this.status=pt,this._forEachChild(function(Ve){Ve.enable(Object.assign(Object.assign({},Pe),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Pe.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},Pe),{skipPristineCheck:Me})),this._onDisabledChange.forEach(function(Ve){return Ve(!1)})}},{key:"_updateAncestors",value:function(Pe){this._parent&&!Pe.onlySelf&&(this._parent.updateValueAndValidity(Pe),Pe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(Pe){this._parent=Pe}},{key:"updateValueAndValidity",value:function(){var Pe=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===pt||this.status===Ue)&&this._runAsyncValidator(Pe.emitEvent)),!1!==Pe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Pe.onlySelf&&this._parent.updateValueAndValidity(Pe)}},{key:"_updateTreeValidity",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(Me){return Me._updateTreeValidity(Pe)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Pe.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?at:pt}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(Pe){var Me=this;if(this.asyncValidator){this.status=Ue,this._hasOwnPendingAsyncValidator=!0;var Ve=_t(this.asyncValidator(this));this._asyncValidationSubscription=Ve.subscribe(function(we){Me._hasOwnPendingAsyncValidator=!1,Me.setErrors(we,{emitEvent:Pe})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(Pe){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=Pe,this._updateControlsErrors(!1!==Me.emitEvent)}},{key:"get",value:function(Pe){return function(Ee,He,Pe){if(null==He||(Array.isArray(He)||(He=He.split(".")),Array.isArray(He)&&0===He.length))return null;var Me=Ee;return He.forEach(function(Ve){Me=Me instanceof Jr?Me.controls.hasOwnProperty(Ve)?Me.controls[Ve]:null:Me instanceof ai&&Me.at(Ve)||null}),Me}(this,Pe)}},{key:"getError",value:function(Pe,Me){var Ve=Me?this.get(Me):this;return Ve&&Ve.errors?Ve.errors[Pe]:null}},{key:"hasError",value:function(Pe,Me){return!!this.getError(Pe,Me)}},{key:"root",get:function(){for(var Pe=this;Pe._parent;)Pe=Pe._parent;return Pe}},{key:"_updateControlsErrors",value:function(Pe){this.status=this._calculateStatus(),Pe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Pe)}},{key:"_initObservables",value:function(){this.valueChanges=new _.vpe,this.statusChanges=new _.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?at:this.errors?dt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ue)?Ue:this._anyControlsHaveStatus(dt)?dt:pt}},{key:"_anyControlsHaveStatus",value:function(Pe){return this._anyControls(function(Me){return Me.status===Pe})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(Pe){return Pe.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(Pe){return Pe.touched})}},{key:"_updatePristine",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!Pe.onlySelf&&this._parent._updatePristine(Pe)}},{key:"_updateTouched",value:function(){var Pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!Pe.onlySelf&&this._parent._updateTouched(Pe)}},{key:"_isBoxedValue",value:function(Pe){return"object"==typeof Pe&&null!==Pe&&2===Object.keys(Pe).length&&"value"in Pe&&"disabled"in Pe}},{key:"_registerOnCollectionChange",value:function(Pe){this._onCollectionChange=Pe}},{key:"_setUpdateStrategy",value:function(Pe){Nt(Pe)&&null!=Pe.updateOn&&(this._updateOn=Pe.updateOn)}},{key:"_parentMarkedDirty",value:function(Pe){return!Pe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),Ee}(),Xn=function(Ee){(0,Z.Z)(Pe,Ee);var He=(0,w.Z)(Pe);function Pe(){var Me,Ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,we=arguments.length>1?arguments[1]:void 0,Ft=arguments.length>2?arguments[2]:void 0;return(0,R.Z)(this,Pe),(Me=He.call(this,Fe(we),Le(Ft,we)))._onChange=[],Me._applyFormState(Ve),Me._setUpdateStrategy(we),Me._initObservables(),Me.updateValueAndValidity({onlySelf:!0,emitEvent:!!Me.asyncValidator}),Me}return(0,C.Z)(Pe,[{key:"setValue",value:function(Ve){var we=this,Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=Ve,this._onChange.length&&!1!==Ft.emitModelToViewChange&&this._onChange.forEach(function(Tn){return Tn(we.value,!1!==Ft.emitViewToModelChange)}),this.updateValueAndValidity(Ft)}},{key:"patchValue",value:function(Ve){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(Ve,we)}},{key:"reset",value:function(){var Ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(Ve),this.markAsPristine(we),this.markAsUntouched(we),this.setValue(this.value,we),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(Ve){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(Ve){this._onChange.push(Ve)}},{key:"_unregisterOnChange",value:function(Ve){Vt(this._onChange,Ve)}},{key:"registerOnDisabledChange",value:function(Ve){this._onDisabledChange.push(Ve)}},{key:"_unregisterOnDisabledChange",value:function(Ve){Vt(this._onDisabledChange,Ve)}},{key:"_forEachChild",value:function(Ve){}},{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(Ve){this._isBoxedValue(Ve)?(this.value=this._pendingValue=Ve.value,Ve.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ve}}]),Pe}(mn),Jr=function(Ee){(0,Z.Z)(Pe,Ee);var He=(0,w.Z)(Pe);function Pe(Me,Ve,we){var Ft;return(0,R.Z)(this,Pe),(Ft=He.call(this,Fe(Ve),Le(we,Ve))).controls=Me,Ft._initObservables(),Ft._setUpdateStrategy(Ve),Ft._setUpControls(),Ft.updateValueAndValidity({onlySelf:!0,emitEvent:!!Ft.asyncValidator}),Ft}return(0,C.Z)(Pe,[{key:"registerControl",value:function(Ve,we){return this.controls[Ve]?this.controls[Ve]:(this.controls[Ve]=we,we.setParent(this),we._registerOnCollectionChange(this._onCollectionChange),we)}},{key:"addControl",value:function(Ve,we){var Ft=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(Ve,we),this.updateValueAndValidity({emitEvent:Ft.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(Ve){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(function(){}),delete this.controls[Ve],this.updateValueAndValidity({emitEvent:we.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(Ve,we){var Ft=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(function(){}),delete this.controls[Ve],we&&this.registerControl(Ve,we),this.updateValueAndValidity({emitEvent:Ft.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(Ve){return this.controls.hasOwnProperty(Ve)&&this.controls[Ve].enabled}},{key:"setValue",value:function(Ve){var we=this,Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(Ve),Object.keys(Ve).forEach(function(Tn){we._throwIfControlMissing(Tn),we.controls[Tn].setValue(Ve[Tn],{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft)}},{key:"patchValue",value:function(Ve){var we=this,Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Ve&&(Object.keys(Ve).forEach(function(Tn){we.controls[Tn]&&we.controls[Tn].patchValue(Ve[Tn],{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft))}},{key:"reset",value:function(){var Ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(Ft,Tn){Ft.reset(Ve[Tn],{onlySelf:!0,emitEvent:we.emitEvent})}),this._updatePristine(we),this._updateTouched(we),this.updateValueAndValidity(we)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(Ve,we,Ft){return Ve[Ft]=we instanceof Xn?we.value:we.getRawValue(),Ve})}},{key:"_syncPendingControls",value:function(){var Ve=this._reduceChildren(!1,function(we,Ft){return!!Ft._syncPendingControls()||we});return Ve&&this.updateValueAndValidity({onlySelf:!0}),Ve}},{key:"_throwIfControlMissing",value:function(Ve){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[Ve])throw new Error("Cannot find form control with name: ".concat(Ve,"."))}},{key:"_forEachChild",value:function(Ve){var we=this;Object.keys(this.controls).forEach(function(Ft){var Tn=we.controls[Ft];Tn&&Ve(Tn,Ft)})}},{key:"_setUpControls",value:function(){var Ve=this;this._forEachChild(function(we){we.setParent(Ve),we._registerOnCollectionChange(Ve._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(Ve){for(var we=0,Ft=Object.keys(this.controls);we<Ft.length;we++){var Tn=Ft[we],zn=this.controls[Tn];if(this.contains(Tn)&&Ve(zn))return!0}return!1}},{key:"_reduceValue",value:function(){var Ve=this;return this._reduceChildren({},function(we,Ft,Tn){return(Ft.enabled||Ve.disabled)&&(we[Tn]=Ft.value),we})}},{key:"_reduceChildren",value:function(Ve,we){var Ft=Ve;return this._forEachChild(function(Tn,zn){Ft=we(Ft,Tn,zn)}),Ft}},{key:"_allControlsDisabled",value:function(){for(var Ve=0,we=Object.keys(this.controls);Ve<we.length;Ve++)if(this.controls[we[Ve]].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(Ve){this._forEachChild(function(we,Ft){if(void 0===Ve[Ft])throw new Error("Must supply a value for form control with name: '".concat(Ft,"'."))})}}]),Pe}(mn),ai=function(Ee){(0,Z.Z)(Pe,Ee);var He=(0,w.Z)(Pe);function Pe(Me,Ve,we){var Ft;return(0,R.Z)(this,Pe),(Ft=He.call(this,Fe(Ve),Le(we,Ve))).controls=Me,Ft._initObservables(),Ft._setUpdateStrategy(Ve),Ft._setUpControls(),Ft.updateValueAndValidity({onlySelf:!0,emitEvent:!!Ft.asyncValidator}),Ft}return(0,C.Z)(Pe,[{key:"at",value:function(Ve){return this.controls[Ve]}},{key:"push",value:function(Ve){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(Ve),this._registerControl(Ve),this.updateValueAndValidity({emitEvent:we.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(Ve,we){var Ft=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(Ve,0,we),this._registerControl(we),this.updateValueAndValidity({emitEvent:Ft.emitEvent})}},{key:"removeAt",value:function(Ve){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(function(){}),this.controls.splice(Ve,1),this.updateValueAndValidity({emitEvent:we.emitEvent})}},{key:"setControl",value:function(Ve,we){var Ft=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(function(){}),this.controls.splice(Ve,1),we&&(this.controls.splice(Ve,0,we),this._registerControl(we)),this.updateValueAndValidity({emitEvent:Ft.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(Ve){var we=this,Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(Ve),Ve.forEach(function(Tn,zn){we._throwIfControlMissing(zn),we.at(zn).setValue(Tn,{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft)}},{key:"patchValue",value:function(Ve){var we=this,Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Ve&&(Ve.forEach(function(Tn,zn){we.at(zn)&&we.at(zn).patchValue(Tn,{onlySelf:!0,emitEvent:Ft.emitEvent})}),this.updateValueAndValidity(Ft))}},{key:"reset",value:function(){var Ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(Ft,Tn){Ft.reset(Ve[Tn],{onlySelf:!0,emitEvent:we.emitEvent})}),this._updatePristine(we),this._updateTouched(we),this.updateValueAndValidity(we)}},{key:"getRawValue",value:function(){return this.controls.map(function(Ve){return Ve instanceof Xn?Ve.value:Ve.getRawValue()})}},{key:"clear",value:function(){var Ve=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(we){return we._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Ve.emitEvent}))}},{key:"_syncPendingControls",value:function(){var Ve=this.controls.reduce(function(we,Ft){return!!Ft._syncPendingControls()||we},!1);return Ve&&this.updateValueAndValidity({onlySelf:!0}),Ve}},{key:"_throwIfControlMissing",value:function(Ve){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(Ve))throw new Error("Cannot find form control at index ".concat(Ve))}},{key:"_forEachChild",value:function(Ve){this.controls.forEach(function(we,Ft){Ve(we,Ft)})}},{key:"_updateValue",value:function(){var Ve=this;this.value=this.controls.filter(function(we){return we.enabled||Ve.disabled}).map(function(we){return we.value})}},{key:"_anyControls",value:function(Ve){return this.controls.some(function(we){return we.enabled&&Ve(we)})}},{key:"_setUpControls",value:function(){var Ve=this;this._forEachChild(function(we){return Ve._registerControl(we)})}},{key:"_checkAllValuesPresent",value:function(Ve){this._forEachChild(function(we,Ft){if(void 0===Ve[Ft])throw new Error("Must supply a value for form control at index: ".concat(Ft,"."))})}},{key:"_allControlsDisabled",value:function(){var we,Ve=(0,B.Z)(this.controls);try{for(Ve.s();!(we=Ve.n()).done;)if(we.value.enabled)return!1}catch(Tn){Ve.e(Tn)}finally{Ve.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(Ve){Ve.setParent(this),Ve._registerOnCollectionChange(this._onCollectionChange)}}]),Pe}(mn),Ir={provide:an,useExisting:(0,_.Gpc)(function(){return Gi})},co=function(){return Promise.resolve(null)}(),Gi=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(Ve,we){var Ft;return(0,R.Z)(this,Me),(Ft=Pe.call(this)).submitted=!1,Ft._directives=[],Ft.ngSubmit=new _.vpe,Ft.form=new Jr({},Xe(Ve),Et(we)),Ft}return(0,C.Z)(Me,[{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(we){var Ft=this;co.then(function(){var Tn=Ft._findContainer(we.path);we.control=Tn.registerControl(we.name,we.control),ot(we.control,we),we.control.updateValueAndValidity({emitEvent:!1}),Ft._directives.push(we)})}},{key:"getControl",value:function(we){return this.form.get(we.path)}},{key:"removeControl",value:function(we){var Ft=this;co.then(function(){var Tn=Ft._findContainer(we.path);Tn&&Tn.removeControl(we.name),Vt(Ft._directives,we)})}},{key:"addFormGroup",value:function(we){var Ft=this;co.then(function(){var Tn=Ft._findContainer(we.path),zn=new Jr({});cn(zn,we),Tn.registerControl(we.name,zn),zn.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(we){var Ft=this;co.then(function(){var Tn=Ft._findContainer(we.path);Tn&&Tn.removeControl(we.name)})}},{key:"getFormGroup",value:function(we){return this.form.get(we.path)}},{key:"updateModel",value:function(we,Ft){var Tn=this;co.then(function(){Tn.form.get(we.path).setValue(Ft)})}},{key:"setValue",value:function(we){this.control.setValue(we)}},{key:"onSubmit",value:function(we){return this.submitted=!0,Sn(this.form,this._directives),this.ngSubmit.emit(we),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(we),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(we){return we.pop(),we.length?this.form.get(we):this.form}}]),Me}(an);return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(z,10),_.Y36(Q,10))},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Pe,Me){1&Pe&&_.NdJ("submit",function(we){return Me.onSubmit(we)})("reset",function(){return Me.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([Ir]),_.qOj]}),Ee}(),wa={provide:An,useExisting:(0,_.Gpc)(function(){return Co})},po=function(){return Promise.resolve(null)}(),Co=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(Ve,we,Ft,Tn){var zn;return(0,R.Z)(this,Me),(zn=Pe.call(this)).control=new Xn,zn._registered=!1,zn.update=new _.vpe,zn._parent=Ve,zn._setValidators(we),zn._setAsyncValidators(Ft),zn.valueAccessor=ir((0,U.Z)(zn),Tn),zn}return(0,C.Z)(Me,[{key:"ngOnChanges",value:function(we){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in we&&this._updateDisabled(we),er(we,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?wt(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(we){this.viewModel=we,this.update.emit(we)}},{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(){ot(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(we){var Ft=this;po.then(function(){Ft.control.setValue(we,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(we){var Ft=this,Tn=we.isDisabled.currentValue,zn=""===Tn||Tn&&"false"!==Tn;po.then(function(){zn&&!Ft.control.disabled?Ft.control.disable():!zn&&Ft.control.disabled&&Ft.control.enable()})}}]),Me}(An);return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(an,9),_.Y36(z,10),_.Y36(Q,10),_.Y36(T,10))},Ee.\u0275dir=_.lG2({type:Ee,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([wa]),_.qOj,_.TTD]}),Ee}(),Fi=function(){var Ee=function He(){(0,R.Z)(this,He)};return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ee}(),gs={provide:T,useExisting:(0,_.Gpc)(function(){return Zi}),multi:!0},Zi=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(){return(0,R.Z)(this,Me),Pe.apply(this,arguments)}return(0,C.Z)(Me,[{key:"writeValue",value:function(we){this.setProperty("value",null==we?"":we)}},{key:"registerOnChange",value:function(we){this.onChange=function(Ft){we(""==Ft?null:parseFloat(Ft))}}}]),Me}(g);return Ee.\u0275fac=function(){var He;return function(Me){return(He||(He=_.n5z(Ee)))(Me||Ee)}}(),Ee.\u0275dir=_.lG2({type:Ee,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Pe,Me){1&Pe&&_.NdJ("input",function(we){return Me.onChange(we.target.value)})("blur",function(){return Me.onTouched()})},features:[_._Bn([gs]),_.qOj]}),Ee}(),Qt=function(){var Ee=function He(){(0,R.Z)(this,He)};return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275mod=_.oAB({type:Ee}),Ee.\u0275inj=_.cJS({}),Ee}(),bn=new _.OlP("NgModelWithFormControlWarning"),Gn={provide:an,useExisting:(0,_.Gpc)(function(){return mi})},mi=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(Ve,we){var Ft;return(0,R.Z)(this,Me),(Ft=Pe.call(this)).validators=Ve,Ft.asyncValidators=we,Ft.submitted=!1,Ft._onCollectionChange=function(){return Ft._updateDomValue()},Ft.directives=[],Ft.form=null,Ft.ngSubmit=new _.vpe,Ft._setValidators(Ve),Ft._setAsyncValidators(we),Ft}return(0,C.Z)(Me,[{key:"ngOnChanges",value:function(we){this._checkFormPresent(),we.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(Ye(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(we){var Ft=this.form.get(we.path);return ot(Ft,we),Ft.updateValueAndValidity({emitEvent:!1}),this.directives.push(we),Ft}},{key:"getControl",value:function(we){return this.form.get(we.path)}},{key:"removeControl",value:function(we){_e(we.control||null,we),Vt(this.directives,we)}},{key:"addFormGroup",value:function(we){this._setUpFormContainer(we)}},{key:"removeFormGroup",value:function(we){this._cleanUpFormContainer(we)}},{key:"getFormGroup",value:function(we){return this.form.get(we.path)}},{key:"addFormArray",value:function(we){this._setUpFormContainer(we)}},{key:"removeFormArray",value:function(we){this._cleanUpFormContainer(we)}},{key:"getFormArray",value:function(we){return this.form.get(we.path)}},{key:"updateModel",value:function(we,Ft){this.form.get(we.path).setValue(Ft)}},{key:"onSubmit",value:function(we){return this.submitted=!0,Sn(this.form,this.directives),this.ngSubmit.emit(we),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var we=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(we),this.submitted=!1}},{key:"_updateDomValue",value:function(){var we=this;this.directives.forEach(function(Ft){var Tn=Ft.control,zn=we.form.get(Ft.path);Tn!==zn&&(_e(Tn||null,Ft),zn instanceof Xn&&(ot(zn,Ft),Ft.control=zn))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(we){var Ft=this.form.get(we.path);cn(Ft,we),Ft.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(we){if(this.form){var Ft=this.form.get(we.path);Ft&&function(Ee,He){return Ye(Ee,He)}(Ft,we)&&Ft.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Ge(this.form,this),this._oldForm&&Ye(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),Me}(an);return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(z,10),_.Y36(Q,10))},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["","formGroup",""]],hostBindings:function(Pe,Me){1&Pe&&_.NdJ("submit",function(we){return Me.onSubmit(we)})("reset",function(){return Me.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_._Bn([Gn]),_.qOj,_.TTD]}),Ee}(),La={provide:An,useExisting:(0,_.Gpc)(function(){return Ao})},Ao=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(Ve,we,Ft,Tn,zn){var pe;return(0,R.Z)(this,Me),(pe=Pe.call(this))._ngModelWarningConfig=zn,pe._added=!1,pe.update=new _.vpe,pe._ngModelWarningSent=!1,pe._parent=Ve,pe._setValidators(we),pe._setAsyncValidators(Ft),pe.valueAccessor=ir((0,U.Z)(pe),Tn),pe}return(0,C.Z)(Me,[{key:"isDisabled",set:function(we){}},{key:"ngOnChanges",value:function(we){this._added||this._setUpControl(),er(we,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(we){this.viewModel=we,this.update.emit(we)}},{key:"path",get:function(){return wt(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}}]),Me}(An);return Ee.\u0275fac=function(Pe){return new(Pe||Ee)(_.Y36(an,13),_.Y36(z,10),_.Y36(Q,10),_.Y36(T,10),_.Y36(bn,8))},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[_._Bn([La]),_.qOj,_.TTD]}),Ee._ngModelWarningSentOnce=!1,Ee}(),ac={provide:z,useExisting:(0,_.Gpc)(function(){return Tu}),multi:!0},hl={provide:z,useExisting:(0,_.Gpc)(function(){return Bo}),multi:!0},Tu=function(){var Ee=function(){function He(){(0,R.Z)(this,He),this._required=!1}return(0,C.Z)(He,[{key:"required",get:function(){return this._required},set:function(Me){this._required=null!=Me&&!1!==Me&&"false"!=="".concat(Me),this._onChange&&this._onChange()}},{key:"validate",value:function(Me){return this.required?de(Me):null}},{key:"registerOnValidatorChange",value:function(Me){this._onChange=Me}}]),He}();return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275dir=_.lG2({type:Ee,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Pe,Me){2&Pe&&_.uIk("required",Me.required?"":null)},inputs:{required:"required"},features:[_._Bn([ac])]}),Ee}(),Bo=function(){var Ee=function(He){(0,Z.Z)(Me,He);var Pe=(0,w.Z)(Me);function Me(){return(0,R.Z)(this,Me),Pe.apply(this,arguments)}return(0,C.Z)(Me,[{key:"validate",value:function(we){return this.required?oe(we):null}}]),Me}(Tu);return Ee.\u0275fac=function(){var He;return function(Me){return(He||(He=_.n5z(Ee)))(Me||Ee)}}(),Ee.\u0275dir=_.lG2({type:Ee,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Pe,Me){2&Pe&&_.uIk("required",Me.required?"":null)},features:[_._Bn([hl]),_.qOj]}),Ee}(),ku=function(){var Ee=function He(){(0,R.Z)(this,He)};return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275mod=_.oAB({type:Ee}),Ee.\u0275inj=_.cJS({imports:[[Qt]]}),Ee}(),Ko=function(){var Ee=function He(){(0,R.Z)(this,He)};return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275mod=_.oAB({type:Ee}),Ee.\u0275inj=_.cJS({imports:[ku]}),Ee}(),ys=function(){var Ee=function(){function He(){(0,R.Z)(this,He)}return(0,C.Z)(He,null,[{key:"withConfig",value:function(Me){return{ngModule:He,providers:[{provide:bn,useValue:Me.warnOnNgModelWithFormControl}]}}}]),He}();return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275mod=_.oAB({type:Ee}),Ee.\u0275inj=_.cJS({imports:[ku]}),Ee}();function Cr(Ee){return void 0!==Ee.asyncValidators||void 0!==Ee.validators||void 0!==Ee.updateOn}var Uo=function(){var Ee=function(){function He(){(0,R.Z)(this,He)}return(0,C.Z)(He,[{key:"group",value:function(Me){var Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,we=this._reduceControls(Me),Ft=null,Tn=null,zn=void 0;return null!=Ve&&(Cr(Ve)?(Ft=null!=Ve.validators?Ve.validators:null,Tn=null!=Ve.asyncValidators?Ve.asyncValidators:null,zn=null!=Ve.updateOn?Ve.updateOn:void 0):(Ft=null!=Ve.validator?Ve.validator:null,Tn=null!=Ve.asyncValidator?Ve.asyncValidator:null)),new Jr(we,{asyncValidators:Tn,updateOn:zn,validators:Ft})}},{key:"control",value:function(Me,Ve,we){return new Xn(Me,Ve,we)}},{key:"array",value:function(Me,Ve,we){var Ft=this,Tn=Me.map(function(zn){return Ft._createControl(zn)});return new ai(Tn,Ve,we)}},{key:"_reduceControls",value:function(Me){var Ve=this,we={};return Object.keys(Me).forEach(function(Ft){we[Ft]=Ve._createControl(Me[Ft])}),we}},{key:"_createControl",value:function(Me){return Me instanceof Xn||Me instanceof Jr||Me instanceof ai?Me:Array.isArray(Me)?this.control(Me[0],Me.length>1?Me[1]:null,Me.length>2?Me[2]:null):this.control(Me)}}]),He}();return Ee.\u0275fac=function(Pe){return new(Pe||Ee)},Ee.\u0275prov=(0,_.Yz7)({factory:function(){return new Ee},token:Ee,providedIn:ys}),Ee}()},59412:function(le,q,f){"use strict";f.d(q,{yN:function(){return ae},mZ:function(){return ie},rD:function(){return an},K7:function(){return Nn},HF:function(){return rn},Y2:function(){return Ge},BQ:function(){return oe},X2:function(){return An},uc:function(){return lr},Nv:function(){return er},ey:function(){return Vt},Ng:function(){return dt},nP:function(){return Lt},us:function(){return Yt},wG:function(){return Ye},si:function(){return yt},IR:function(){return _e},CB:function(){return sn},jH:function(){return pt},pj:function(){return ye},Kr:function(){return ve},Id:function(){return $},FD:function(){return Ne},dB:function(){return gt},sb:function(){return et},E0:function(){return Hn}}),f(88009),f(20901),f(89200);var Z=f(10509),w=f(97154),R=f(14105),C=f(18967),_=f(65508),N=f(6517),D=f(8392),O=new _.GfV("12.2.2"),P=f(40098),y=f(78081),g=f(68707),T=f(89797),M=f(15427),E=f(57682),x=f(38480),S=f(32819),A=["*",[["mat-option"],["ng-container"]]],L=["*","mat-option, ng-container"];function j(Ue,at){if(1&Ue&&_._UZ(0,"mat-pseudo-checkbox",4),2&Ue){var Ce=_.oxw();_.Q6J("state",Ce.selected?"checked":"unchecked")("disabled",Ce.disabled)}}function K(Ue,at){if(1&Ue&&(_.TgZ(0,"span",5),_._uU(1),_.qZA()),2&Ue){var Ce=_.oxw();_.xp6(1),_.hij("(",Ce.group.label,")")}}var z=["*"],ae=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ue.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ue.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ue.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ue}(),ie=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.COMPLEX="375ms",Ue.ENTERING="225ms",Ue.EXITING="195ms",Ue}(),se=new _.GfV("12.2.2"),de=new _.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),oe=function(){var Ue=function(){function at(Ce,Fe,Ae){(0,C.Z)(this,at),this._hasDoneGlobalChecks=!1,this._document=Ae,Ce._applyBodyHighContrastModeCssClasses(),this._sanityChecks=Fe,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return(0,R.Z)(at,[{key:"_getWindow",value:function(){var Fe=this._document.defaultView||window;return"object"==typeof Fe&&Fe?Fe:null}},{key:"_checkIsEnabled",value:function(Fe){return!(!(0,_.X6Q)()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Fe])}},{key:"_isTestEnv",value:function(){var Fe=this._getWindow();return Fe&&(Fe.__karma__||Fe.jasmine)}},{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 Fe=this._document.createElement("div");Fe.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(Fe);var Ae=getComputedStyle(Fe);Ae&&"none"!==Ae.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(Fe)}}},{key:"_checkCdkVersionMatch",value:function(){this._checkIsEnabled("version")&&se.full!==O.full&&console.warn("The Angular Material version ("+se.full+") does not match the Angular CDK version ("+O.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),at}();return Ue.\u0275fac=function(Ce){return new(Ce||Ue)(_.LFG(N.qm),_.LFG(de,8),_.LFG(P.K0))},Ue.\u0275mod=_.oAB({type:Ue}),Ue.\u0275inj=_.cJS({imports:[[D.vT],D.vT]}),Ue}();function $(Ue){return function(at){(0,Z.Z)(Fe,at);var Ce=(0,w.Z)(Fe);function Fe(){var Ae;(0,C.Z)(this,Fe);for(var Le=arguments.length,ze=new Array(Le),Nt=0;Nt<Le;Nt++)ze[Nt]=arguments[Nt];return(Ae=Ce.call.apply(Ce,[this].concat(ze)))._disabled=!1,Ae}return(0,R.Z)(Fe,[{key:"disabled",get:function(){return this._disabled},set:function(Le){this._disabled=(0,y.Ig)(Le)}}]),Fe}(Ue)}function ye(Ue,at){return function(Ce){(0,Z.Z)(Ae,Ce);var Fe=(0,w.Z)(Ae);function Ae(){var Le;(0,C.Z)(this,Ae);for(var ze=arguments.length,Nt=new Array(ze),mn=0;mn<ze;mn++)Nt[mn]=arguments[mn];return(Le=Fe.call.apply(Fe,[this].concat(Nt))).defaultColor=at,Le.color=at,Le}return(0,R.Z)(Ae,[{key:"color",get:function(){return this._color},set:function(ze){var Nt=ze||this.defaultColor;Nt!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),Nt&&this._elementRef.nativeElement.classList.add("mat-".concat(Nt)),this._color=Nt)}}]),Ae}(Ue)}function ve(Ue){return function(at){(0,Z.Z)(Fe,at);var Ce=(0,w.Z)(Fe);function Fe(){var Ae;(0,C.Z)(this,Fe);for(var Le=arguments.length,ze=new Array(Le),Nt=0;Nt<Le;Nt++)ze[Nt]=arguments[Nt];return(Ae=Ce.call.apply(Ce,[this].concat(ze)))._disableRipple=!1,Ae}return(0,R.Z)(Fe,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(Le){this._disableRipple=(0,y.Ig)(Le)}}]),Fe}(Ue)}function et(Ue){var at=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Ce){(0,Z.Z)(Ae,Ce);var Fe=(0,w.Z)(Ae);function Ae(){var Le;(0,C.Z)(this,Ae);for(var ze=arguments.length,Nt=new Array(ze),mn=0;mn<ze;mn++)Nt[mn]=arguments[mn];return(Le=Fe.call.apply(Fe,[this].concat(Nt)))._tabIndex=at,Le.defaultTabIndex=at,Le}return(0,R.Z)(Ae,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(ze){this._tabIndex=null!=ze?(0,y.su)(ze):this.defaultTabIndex}}]),Ae}(Ue)}function Ne(Ue){return function(at){(0,Z.Z)(Fe,at);var Ce=(0,w.Z)(Fe);function Fe(){var Ae;(0,C.Z)(this,Fe);for(var Le=arguments.length,ze=new Array(Le),Nt=0;Nt<Le;Nt++)ze[Nt]=arguments[Nt];return(Ae=Ce.call.apply(Ce,[this].concat(ze))).stateChanges=new g.xQ,Ae.errorState=!1,Ae}return(0,R.Z)(Fe,[{key:"updateErrorState",value:function(){var Le=this.errorState,Xn=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Xn!==Le&&(this.errorState=Xn,this.stateChanges.next())}}]),Fe}(Ue)}function gt(Ue){return function(at){(0,Z.Z)(Fe,at);var Ce=(0,w.Z)(Fe);function Fe(){var Ae;(0,C.Z)(this,Fe);for(var Le=arguments.length,ze=new Array(Le),Nt=0;Nt<Le;Nt++)ze[Nt]=arguments[Nt];return(Ae=Ce.call.apply(Ce,[this].concat(ze)))._isInitialized=!1,Ae._pendingSubscribers=[],Ae.initialized=new T.y(function(mn){Ae._isInitialized?Ae._notifySubscriber(mn):Ae._pendingSubscribers.push(mn)}),Ae}return(0,R.Z)(Fe,[{key:"_markInitialized",value:function(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(Le){Le.next(),Le.complete()}}]),Fe}(Ue)}var an=function(){var Ue=function(){function at(){(0,C.Z)(this,at)}return(0,R.Z)(at,[{key:"isErrorState",value:function(Fe,Ae){return!!(Fe&&Fe.invalid&&(Fe.touched||Ae&&Ae.submitted))}}]),at}();return Ue.\u0275fac=function(Ce){return new(Ce||Ue)},Ue.\u0275prov=_.Yz7({factory:function(){return new Ue},token:Ue,providedIn:"root"}),Ue}(),An=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.\u0275fac=function(Ce){return new(Ce||Ue)},Ue.\u0275dir=_.lG2({type:Ue,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ue}();function Hn(Ue,at){var Ce=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";Ue.changes.pipe((0,E.O)(Ue)).subscribe(function(Fe){var Ae=Fe.length;Zn(at,"".concat(Ce,"-2-line"),!1),Zn(at,"".concat(Ce,"-3-line"),!1),Zn(at,"".concat(Ce,"-multi-line"),!1),2===Ae||3===Ae?Zn(at,"".concat(Ce,"-").concat(Ae,"-line"),!0):Ae>3&&Zn(at,"".concat(Ce,"-multi-line"),!0)})}function Zn(Ue,at,Ce){var Fe=Ue.nativeElement.classList;Ce?Fe.add(at):Fe.remove(at)}var lr=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.\u0275fac=function(Ce){return new(Ce||Ue)},Ue.\u0275mod=_.oAB({type:Ue}),Ue.\u0275inj=_.cJS({imports:[[oe],oe]}),Ue}(),Bn=function(){function Ue(at,Ce,Fe){(0,C.Z)(this,Ue),this._renderer=at,this.element=Ce,this.config=Fe,this.state=3}return(0,R.Z)(Ue,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),Ue}(),En={enterDuration:225,exitDuration:150},Kt=(0,M.i$)({passive:!0}),wt=["mousedown","touchstart"],ot=["mouseup","mouseleave","touchend","touchcancel"],_e=function(){function Ue(at,Ce,Fe,Ae){(0,C.Z)(this,Ue),this._target=at,this._ngZone=Ce,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Ae.isBrowser&&(this._containerElement=(0,y.fI)(Fe))}return(0,R.Z)(Ue,[{key:"fadeInRipple",value:function(Ce,Fe){var Ae=this,Le=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ze=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Nt=Object.assign(Object.assign({},En),Le.animation);Le.centered&&(Ce=ze.left+ze.width/2,Fe=ze.top+ze.height/2);var mn=Le.radius||he(Ce,Fe,ze),Xn=Ce-ze.left,Jr=Fe-ze.top,ai=Nt.enterDuration,Ir=document.createElement("div");Ir.classList.add("mat-ripple-element"),Ir.style.left="".concat(Xn-mn,"px"),Ir.style.top="".concat(Jr-mn,"px"),Ir.style.height="".concat(2*mn,"px"),Ir.style.width="".concat(2*mn,"px"),null!=Le.color&&(Ir.style.backgroundColor=Le.color),Ir.style.transitionDuration="".concat(ai,"ms"),this._containerElement.appendChild(Ir),re(Ir),Ir.style.transform="scale(1)";var vi=new Bn(this,Ir,Le);return vi.state=0,this._activeRipples.add(vi),Le.persistent||(this._mostRecentTransientRipple=vi),this._runTimeoutOutsideZone(function(){var co=vi===Ae._mostRecentTransientRipple;vi.state=1,!Le.persistent&&(!co||!Ae._isPointerDown)&&vi.fadeOut()},ai),vi}},{key:"fadeOutRipple",value:function(Ce){var Fe=this._activeRipples.delete(Ce);if(Ce===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),Fe){var Ae=Ce.element,Le=Object.assign(Object.assign({},En),Ce.config.animation);Ae.style.transitionDuration="".concat(Le.exitDuration,"ms"),Ae.style.opacity="0",Ce.state=2,this._runTimeoutOutsideZone(function(){Ce.state=3,Ae.parentNode.removeChild(Ae)},Le.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(Ce){return Ce.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(Ce){Ce.config.persistent||Ce.fadeOut()})}},{key:"setupTriggerEvents",value:function(Ce){var Fe=(0,y.fI)(Ce);!Fe||Fe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Fe,this._registerEvents(wt))}},{key:"handleEvent",value:function(Ce){"mousedown"===Ce.type?this._onMousedown(Ce):"touchstart"===Ce.type?this._onTouchStart(Ce):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ot),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(Ce){var Fe=(0,N.X6)(Ce),Ae=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Fe&&!Ae&&(this._isPointerDown=!0,this.fadeInRipple(Ce.clientX,Ce.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(Ce){if(!this._target.rippleDisabled&&!(0,N.yG)(Ce)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var Fe=Ce.changedTouches,Ae=0;Ae<Fe.length;Ae++)this.fadeInRipple(Fe[Ae].clientX,Fe[Ae].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(function(Ce){!Ce.config.persistent&&(1===Ce.state||Ce.config.terminateOnPointerUp&&0===Ce.state)&&Ce.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(Ce){var Fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(Ce,Fe)})}},{key:"_registerEvents",value:function(Ce){var Fe=this;this._ngZone.runOutsideAngular(function(){Ce.forEach(function(Ae){Fe._triggerElement.addEventListener(Ae,Fe,Kt)})})}},{key:"_removeTriggerEvents",value:function(){var Ce=this;this._triggerElement&&(wt.forEach(function(Fe){Ce._triggerElement.removeEventListener(Fe,Ce,Kt)}),this._pointerUpEventsRegistered&&ot.forEach(function(Fe){Ce._triggerElement.removeEventListener(Fe,Ce,Kt)}))}}]),Ue}();function re(Ue){window.getComputedStyle(Ue).getPropertyValue("opacity")}function he(Ue,at,Ce){var Fe=Math.max(Math.abs(Ue-Ce.left),Math.abs(Ue-Ce.right)),Ae=Math.max(Math.abs(at-Ce.top),Math.abs(at-Ce.bottom));return Math.sqrt(Fe*Fe+Ae*Ae)}var Ge=new _.OlP("mat-ripple-global-options"),Ye=function(){var Ue=function(){function at(Ce,Fe,Ae,Le,ze){(0,C.Z)(this,at),this._elementRef=Ce,this._animationMode=ze,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Le||{},this._rippleRenderer=new _e(this,Fe,Ce,Ae)}return(0,R.Z)(at,[{key:"disabled",get:function(){return this._disabled},set:function(Fe){Fe&&this.fadeOutAllNonPersistent(),this._disabled=Fe,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(Fe){this._trigger=Fe,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(Fe){var Ae=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Le=arguments.length>2?arguments[2]:void 0;return"number"==typeof Fe?this._rippleRenderer.fadeInRipple(Fe,Ae,Object.assign(Object.assign({},this.rippleConfig),Le)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Fe))}}]),at}();return Ue.\u0275fac=function(Ce){return new(Ce||Ue)(_.Y36(_.SBq),_.Y36(_.R0b),_.Y36(M.t4),_.Y36(Ge,8),_.Y36(x.Qb,8))},Ue.\u0275dir=_.lG2({type:Ue,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Ce,Fe){2&Ce&&_.ekj("mat-ripple-unbounded",Fe.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"]}),Ue}(),yt=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.\u0275fac=function(Ce){return new(Ce||Ue)},Ue.\u0275mod=_.oAB({type:Ue}),Ue.\u0275inj=_.cJS({imports:[[oe,M.ud],oe]}),Ue}(),Lt=function(){var Ue=function at(Ce){(0,C.Z)(this,at),this._animationMode=Ce,this.state="unchecked",this.disabled=!1};return Ue.\u0275fac=function(Ce){return new(Ce||Ue)(_.Y36(x.Qb,8))},Ue.\u0275cmp=_.Xpm({type:Ue,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Ce,Fe){2&Ce&&_.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Fe.state)("mat-pseudo-checkbox-checked","checked"===Fe.state)("mat-pseudo-checkbox-disabled",Fe.disabled)("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Ce,Fe){},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}),Ue}(),Yt=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.\u0275fac=function(Ce){return new(Ce||Ue)},Ue.\u0275mod=_.oAB({type:Ue}),Ue.\u0275inj=_.cJS({imports:[[oe]]}),Ue}(),rn=new _.OlP("MAT_OPTION_PARENT_COMPONENT"),cn=$(function(){return function Ue(){(0,C.Z)(this,Ue)}}()),_n=0,xn=function(){var Ue=function(at){(0,Z.Z)(Fe,at);var Ce=(0,w.Z)(Fe);function Fe(Ae){var Le,ze;return(0,C.Z)(this,Fe),(Le=Ce.call(this))._labelId="mat-optgroup-label-".concat(_n++),Le._inert=null!==(ze=null==Ae?void 0:Ae.inertGroups)&&void 0!==ze&&ze,Le}return Fe}(cn);return Ue.\u0275fac=function(Ce){return new(Ce||Ue)(_.Y36(rn,8))},Ue.\u0275dir=_.lG2({type:Ue,inputs:{label:"label"},features:[_.qOj]}),Ue}(),Nn=new _.OlP("MatOptgroup"),er=function(){var Ue=function(at){(0,Z.Z)(Fe,at);var Ce=(0,w.Z)(Fe);function Fe(){return(0,C.Z)(this,Fe),Ce.apply(this,arguments)}return Fe}(xn);return Ue.\u0275fac=function(){var at;return function(Fe){return(at||(at=_.n5z(Ue)))(Fe||Ue)}}(),Ue.\u0275cmp=_.Xpm({type:Ue,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(Ce,Fe){2&Ce&&(_.uIk("role",Fe._inert?null:"group")("aria-disabled",Fe._inert?null:Fe.disabled.toString())("aria-labelledby",Fe._inert?null:Fe._labelId),_.ekj("mat-optgroup-disabled",Fe.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[_._Bn([{provide:Nn,useExisting:Ue}]),_.qOj],ngContentSelectors:L,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(Ce,Fe){1&Ce&&(_.F$t(A),_.TgZ(0,"span",0),_._uU(1),_.Hsn(2),_.qZA(),_.Hsn(3,1)),2&Ce&&(_.Q6J("id",Fe._labelId),_.xp6(1),_.hij("",Fe.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}),Ue}(),wn=0,Sn=function Ue(at){var Ce=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,C.Z)(this,Ue),this.source=at,this.isUserInput=Ce},ir=function(){var Ue=function(){function at(Ce,Fe,Ae,Le){(0,C.Z)(this,at),this._element=Ce,this._changeDetectorRef=Fe,this._parent=Ae,this.group=Le,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(wn++),this.onSelectionChange=new _.vpe,this._stateChanges=new g.xQ}return(0,R.Z)(at,[{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(Fe){this._disabled=(0,y.Ig)(Fe)}},{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(Fe,Ae){var Le=this._getHostElement();"function"==typeof Le.focus&&Le.focus(Ae)}},{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(Fe){(Fe.keyCode===S.K5||Fe.keyCode===S.L_)&&!(0,S.Vb)(Fe)&&(this._selectViaInteraction(),Fe.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 Fe=this.viewValue;Fe!==this._mostRecentViewValue&&(this._mostRecentViewValue=Fe,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var Fe=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Sn(this,Fe))}}]),at}();return Ue.\u0275fac=function(Ce){return new(Ce||Ue)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(void 0),_.Y36(xn))},Ue.\u0275dir=_.lG2({type:Ue,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),Ue}(),Vt=function(){var Ue=function(at){(0,Z.Z)(Fe,at);var Ce=(0,w.Z)(Fe);function Fe(Ae,Le,ze,Nt){return(0,C.Z)(this,Fe),Ce.call(this,Ae,Le,ze,Nt)}return Fe}(ir);return Ue.\u0275fac=function(Ce){return new(Ce||Ue)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(rn,8),_.Y36(Nn,8))},Ue.\u0275cmp=_.Xpm({type:Ue,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Ce,Fe){1&Ce&&_.NdJ("click",function(){return Fe._selectViaInteraction()})("keydown",function(Le){return Fe._handleKeydown(Le)}),2&Ce&&(_.Ikx("id",Fe.id),_.uIk("tabindex",Fe._getTabIndex())("aria-selected",Fe._getAriaSelected())("aria-disabled",Fe.disabled.toString()),_.ekj("mat-selected",Fe.selected)("mat-option-multiple",Fe.multiple)("mat-active",Fe.active)("mat-option-disabled",Fe.disabled))},exportAs:["matOption"],features:[_.qOj],ngContentSelectors:z,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(Ce,Fe){1&Ce&&(_.F$t(),_.YNc(0,j,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&Ce&&(_.Q6J("ngIf",Fe.multiple),_.xp6(3),_.Q6J("ngIf",Fe.group&&Fe.group._inert),_.xp6(1),_.Q6J("matRippleTrigger",Fe._getHostElement())("matRippleDisabled",Fe.disabled||Fe.disableRipple))},directives:[P.O5,Ye,Lt],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}),Ue}();function sn(Ue,at,Ce){if(Ce.length){for(var Fe=at.toArray(),Ae=Ce.toArray(),Le=0,ze=0;ze<Ue+1;ze++)Fe[ze].group&&Fe[ze].group===Ae[Le]&&Le++;return Le}return 0}function pt(Ue,at,Ce,Fe){return Ue<Ce?Ue:Ue+at>Ce+Fe?Math.max(0,Ue-Fe+at):Ce}var dt=function(){var Ue=function at(){(0,C.Z)(this,at)};return Ue.\u0275fac=function(Ce){return new(Ce||Ue)},Ue.\u0275mod=_.oAB({type:Ue}),Ue.\u0275inj=_.cJS({imports:[[yt,P.ez,oe,Yt]]}),Ue}()},93386:function(le,q,f){"use strict";f.d(q,{d:function(){return R},t:function(){return C}});var U=f(18967),B=f(14105),V=f(78081),Z=f(59412),w=f(65508),R=function(){var _=function(){function N(){(0,U.Z)(this,N),this._vertical=!1,this._inset=!1}return(0,B.Z)(N,[{key:"vertical",get:function(){return this._vertical},set:function(O){this._vertical=(0,V.Ig)(O)}},{key:"inset",get:function(){return this._inset},set:function(O){this._inset=(0,V.Ig)(O)}}]),N}();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,O){2&D&&(w.uIk("aria-orientation",O.vertical?"vertical":"horizontal"),w.ekj("mat-divider-vertical",O.vertical)("mat-divider-horizontal",!O.vertical)("mat-divider-inset",O.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(D,O){},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}),_}(),C=function(){var _=function N(){(0,U.Z)(this,N)};return _.\u0275fac=function(D){return new(D||_)},_.\u0275mod=w.oAB({type:_}),_.\u0275inj=w.cJS({imports:[[Z.BQ],Z.BQ]}),_}()},36410:function(le,q,f){"use strict";f.d(q,{G_:function(){return Bn},TO:function(){return Se},KE:function(){return En},Eo:function(){return je},lN:function(){return mr},hX:function(){return qt},R9:function(){return Ut}});var U=f(10629),B=f(14105),V=f(10509),Z=f(97154),w=f(18967),R=f(96798),C=f(40098),_=f(65508),N=f(59412),D=f(78081),O=f(68707),P=f(55371),y=f(33090),g=f(57682),T=f(44213),M=f(48359),E=f(739),x=f(38480),S=f(8392),A=f(15427),L=["underline"],j=["connectionContainer"],K=["inputContainer"],z=["label"];function Q(Kt,wt){1&Kt&&(_.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 ae(Kt,wt){1&Kt&&(_.TgZ(0,"div",19),_.Hsn(1,1),_.qZA())}function ie(Kt,wt){if(1&Kt&&(_.ynx(0),_.Hsn(1,2),_.TgZ(2,"span"),_._uU(3),_.qZA(),_.BQk()),2&Kt){var ot=_.oxw(2);_.xp6(3),_.Oqu(ot._control.placeholder)}}function se(Kt,wt){1&Kt&&_.Hsn(0,3,["*ngSwitchCase","true"])}function ue(Kt,wt){1&Kt&&(_.TgZ(0,"span",23),_._uU(1," *"),_.qZA())}function de(Kt,wt){if(1&Kt){var ot=_.EpF();_.TgZ(0,"label",20,21),_.NdJ("cdkObserveContent",function(){return _.CHM(ot),_.oxw().updateOutlineGap()}),_.YNc(2,ie,4,1,"ng-container",12),_.YNc(3,se,1,0,"ng-content",12),_.YNc(4,ue,2,0,"span",22),_.qZA()}if(2&Kt){var _e=_.oxw();_.ekj("mat-empty",_e._control.empty&&!_e._shouldAlwaysFloat())("mat-form-field-empty",_e._control.empty&&!_e._shouldAlwaysFloat())("mat-accent","accent"==_e.color)("mat-warn","warn"==_e.color),_.Q6J("cdkObserveContentDisabled","outline"!=_e.appearance)("id",_e._labelId)("ngSwitch",_e._hasLabel()),_.uIk("for",_e._control.id)("aria-owns",_e._control.id),_.xp6(2),_.Q6J("ngSwitchCase",!1),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngIf",!_e.hideRequiredMarker&&_e._control.required&&!_e._control.disabled)}}function oe(Kt,wt){1&Kt&&(_.TgZ(0,"div",24),_.Hsn(1,4),_.qZA())}function $(Kt,wt){if(1&Kt&&(_.TgZ(0,"div",25,26),_._UZ(2,"span",27),_.qZA()),2&Kt){var ot=_.oxw();_.xp6(2),_.ekj("mat-accent","accent"==ot.color)("mat-warn","warn"==ot.color)}}function ye(Kt,wt){if(1&Kt&&(_.TgZ(0,"div"),_.Hsn(1,5),_.qZA()),2&Kt){var ot=_.oxw();_.Q6J("@transitionMessages",ot._subscriptAnimationState)}}function ve(Kt,wt){if(1&Kt&&(_.TgZ(0,"div",31),_._uU(1),_.qZA()),2&Kt){var ot=_.oxw(2);_.Q6J("id",ot._hintLabelId),_.xp6(1),_.Oqu(ot.hintLabel)}}function et(Kt,wt){if(1&Kt&&(_.TgZ(0,"div",28),_.YNc(1,ve,2,2,"div",29),_.Hsn(2,6),_._UZ(3,"div",30),_.Hsn(4,7),_.qZA()),2&Kt){var ot=_.oxw();_.Q6J("@transitionMessages",ot._subscriptAnimationState),_.xp6(1),_.Q6J("ngIf",ot.hintLabel)}}var Ne=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],gt=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],_t=0,Rt=new _.OlP("MatError"),Se=function(){var Kt=function wt(ot,_e){(0,w.Z)(this,wt),this.id="mat-error-".concat(_t++),ot||_e.nativeElement.setAttribute("aria-live","polite")};return Kt.\u0275fac=function(ot){return new(ot||Kt)(_.$8M("aria-live"),_.Y36(_.SBq))},Kt.\u0275dir=_.lG2({type:Kt,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(ot,_e){2&ot&&_.uIk("id",_e.id)},inputs:{id:"id"},features:[_._Bn([{provide:Rt,useExisting:Kt}])]}),Kt}(),Oe={transitionMessages:(0,E.X$)("transitionMessages",[(0,E.SB)("enter",(0,E.oB)({opacity:1,transform:"translateY(0%)"})),(0,E.eR)("void => enter",[(0,E.oB)({opacity:0,transform:"translateY(-5px)"}),(0,E.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},je=function(){var Kt=function wt(){(0,w.Z)(this,wt)};return Kt.\u0275fac=function(ot){return new(ot||Kt)},Kt.\u0275dir=_.lG2({type:Kt}),Kt}(),vt=new _.OlP("MatHint"),qt=function(){var Kt=function wt(){(0,w.Z)(this,wt)};return Kt.\u0275fac=function(ot){return new(ot||Kt)},Kt.\u0275dir=_.lG2({type:Kt,selectors:[["mat-label"]]}),Kt}(),Ct=function(){var Kt=function wt(){(0,w.Z)(this,wt)};return Kt.\u0275fac=function(ot){return new(ot||Kt)},Kt.\u0275dir=_.lG2({type:Kt,selectors:[["mat-placeholder"]]}),Kt}(),jt=new _.OlP("MatPrefix"),nn=new _.OlP("MatSuffix"),Ut=function(){var Kt=function wt(){(0,w.Z)(this,wt)};return Kt.\u0275fac=function(ot){return new(ot||Kt)},Kt.\u0275dir=_.lG2({type:Kt,selectors:[["","matSuffix",""]],features:[_._Bn([{provide:nn,useExisting:Kt}])]}),Kt}(),an=0,Zn=(0,N.pj)(function(){return function Kt(wt){(0,w.Z)(this,Kt),this._elementRef=wt}}(),"primary"),lr=new _.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Bn=new _.OlP("MatFormField"),En=function(){var Kt=function(wt){(0,V.Z)(_e,wt);var ot=(0,Z.Z)(_e);function _e(re,he,Ge,Ye,yt,Lt,Yt,rn){var cn;return(0,w.Z)(this,_e),(cn=ot.call(this,re))._changeDetectorRef=he,cn._dir=Ye,cn._defaults=yt,cn._platform=Lt,cn._ngZone=Yt,cn._outlineGapCalculationNeededImmediately=!1,cn._outlineGapCalculationNeededOnStable=!1,cn._destroyed=new O.xQ,cn._showAlwaysAnimate=!1,cn._subscriptAnimationState="",cn._hintLabel="",cn._hintLabelId="mat-hint-".concat(an++),cn._labelId="mat-form-field-label-".concat(an++),cn.floatLabel=cn._getDefaultFloatLabelState(),cn._animationsEnabled="NoopAnimations"!==rn,cn.appearance=yt&&yt.appearance?yt.appearance:"legacy",cn._hideRequiredMarker=!(!yt||null==yt.hideRequiredMarker)&&yt.hideRequiredMarker,cn}return(0,B.Z)(_e,[{key:"appearance",get:function(){return this._appearance},set:function(he){var Ge=this._appearance;this._appearance=he||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&Ge!==he&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(he){this._hideRequiredMarker=(0,D.Ig)(he)}},{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(he){this._hintLabel=he,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(he){he!==this._floatLabel&&(this._floatLabel=he||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(he){this._explicitFormFieldControl=he}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var he=this;this._validateControlChild();var Ge=this._control;Ge.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(Ge.controlType)),Ge.stateChanges.pipe((0,g.O)(null)).subscribe(function(){he._validatePlaceholders(),he._syncDescribedByIds(),he._changeDetectorRef.markForCheck()}),Ge.ngControl&&Ge.ngControl.valueChanges&&Ge.ngControl.valueChanges.pipe((0,T.R)(this._destroyed)).subscribe(function(){return he._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){he._ngZone.onStable.pipe((0,T.R)(he._destroyed)).subscribe(function(){he._outlineGapCalculationNeededOnStable&&he.updateOutlineGap()})}),(0,P.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){he._outlineGapCalculationNeededOnStable=!0,he._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,g.O)(null)).subscribe(function(){he._processHints(),he._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,g.O)(null)).subscribe(function(){he._syncDescribedByIds(),he._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,T.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?he._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return he.updateOutlineGap()})}):he.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(he){var Ge=this._control?this._control.ngControl:null;return Ge&&Ge[he]}},{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 he=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,y.R)(this._label.nativeElement,"transitionend").pipe((0,M.q)(1)).subscribe(function(){he._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 he=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&he.push.apply(he,(0,U.Z)(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var Ge=this._hintChildren?this._hintChildren.find(function(yt){return"start"===yt.align}):null,Ye=this._hintChildren?this._hintChildren.find(function(yt){return"end"===yt.align}):null;Ge?he.push(Ge.id):this._hintLabel&&he.push(this._hintLabelId),Ye&&he.push(Ye.id)}else this._errorChildren&&he.push.apply(he,(0,U.Z)(this._errorChildren.map(function(yt){return yt.id})));this._control.setDescribedByIds(he)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var he=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&he&&he.children.length&&he.textContent.trim()&&this._platform.isBrowser){if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var Ge=0,Ye=0,yt=this._connectionContainerRef.nativeElement,Lt=yt.querySelectorAll(".mat-form-field-outline-start"),Yt=yt.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var rn=yt.getBoundingClientRect();if(0===rn.width&&0===rn.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var cn=this._getStartEnd(rn),_n=he.children,xn=this._getStartEnd(_n[0].getBoundingClientRect()),Nn=0,er=0;er<_n.length;er++)Nn+=_n[er].offsetWidth;Ge=Math.abs(xn-cn)-5,Ye=Nn>0?.75*Nn+10:0}for(var wn=0;wn<Lt.length;wn++)Lt[wn].style.width="".concat(Ge,"px");for(var Sn=0;Sn<Yt.length;Sn++)Yt[Sn].style.width="".concat(Ye,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}}},{key:"_getStartEnd",value:function(he){return this._dir&&"rtl"===this._dir.value?he.right:he.left}},{key:"_isAttachedToDOM",value:function(){var he=this._elementRef.nativeElement;if(he.getRootNode){var Ge=he.getRootNode();return Ge&&Ge!==he}return document.documentElement.contains(he)}}]),_e}(Zn);return Kt.\u0275fac=function(ot){return new(ot||Kt)(_.Y36(_.SBq),_.Y36(_.sBO),_.Y36(_.SBq),_.Y36(S.Is,8),_.Y36(lr,8),_.Y36(A.t4),_.Y36(_.R0b),_.Y36(x.Qb,8))},Kt.\u0275cmp=_.Xpm({type:Kt,selectors:[["mat-form-field"]],contentQueries:function(ot,_e,re){var he;1&ot&&(_.Suo(re,je,5),_.Suo(re,je,7),_.Suo(re,qt,5),_.Suo(re,qt,7),_.Suo(re,Ct,5),_.Suo(re,Rt,5),_.Suo(re,vt,5),_.Suo(re,jt,5),_.Suo(re,nn,5)),2&ot&&(_.iGM(he=_.CRH())&&(_e._controlNonStatic=he.first),_.iGM(he=_.CRH())&&(_e._controlStatic=he.first),_.iGM(he=_.CRH())&&(_e._labelChildNonStatic=he.first),_.iGM(he=_.CRH())&&(_e._labelChildStatic=he.first),_.iGM(he=_.CRH())&&(_e._placeholderChild=he.first),_.iGM(he=_.CRH())&&(_e._errorChildren=he),_.iGM(he=_.CRH())&&(_e._hintChildren=he),_.iGM(he=_.CRH())&&(_e._prefixChildren=he),_.iGM(he=_.CRH())&&(_e._suffixChildren=he))},viewQuery:function(ot,_e){var re;1&ot&&(_.Gf(L,5),_.Gf(j,7),_.Gf(K,5),_.Gf(z,5)),2&ot&&(_.iGM(re=_.CRH())&&(_e.underlineRef=re.first),_.iGM(re=_.CRH())&&(_e._connectionContainerRef=re.first),_.iGM(re=_.CRH())&&(_e._inputContainerRef=re.first),_.iGM(re=_.CRH())&&(_e._label=re.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(ot,_e){2&ot&&_.ekj("mat-form-field-appearance-standard","standard"==_e.appearance)("mat-form-field-appearance-fill","fill"==_e.appearance)("mat-form-field-appearance-outline","outline"==_e.appearance)("mat-form-field-appearance-legacy","legacy"==_e.appearance)("mat-form-field-invalid",_e._control.errorState)("mat-form-field-can-float",_e._canLabelFloat())("mat-form-field-should-float",_e._shouldLabelFloat())("mat-form-field-has-label",_e._hasFloatingLabel())("mat-form-field-hide-placeholder",_e._hideControlPlaceholder())("mat-form-field-disabled",_e._control.disabled)("mat-form-field-autofilled",_e._control.autofilled)("mat-focused",_e._control.focused)("ng-untouched",_e._shouldForward("untouched"))("ng-touched",_e._shouldForward("touched"))("ng-pristine",_e._shouldForward("pristine"))("ng-dirty",_e._shouldForward("dirty"))("ng-valid",_e._shouldForward("valid"))("ng-invalid",_e._shouldForward("invalid"))("ng-pending",_e._shouldForward("pending"))("_mat-animation-noopable",!_e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[_._Bn([{provide:Bn,useExisting:Kt}]),_.qOj],ngContentSelectors:gt,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(ot,_e){1&ot&&(_.F$t(Ne),_.TgZ(0,"div",0),_.TgZ(1,"div",1,2),_.NdJ("click",function(he){return _e._control.onContainerClick&&_e._control.onContainerClick(he)}),_.YNc(3,Q,9,0,"ng-container",3),_.YNc(4,ae,2,0,"div",4),_.TgZ(5,"div",5,6),_.Hsn(7),_.TgZ(8,"span",7),_.YNc(9,de,5,16,"label",8),_.qZA(),_.qZA(),_.YNc(10,oe,2,0,"div",9),_.qZA(),_.YNc(11,$,3,4,"div",10),_.TgZ(12,"div",11),_.YNc(13,ye,2,1,"div",12),_.YNc(14,et,5,2,"div",13),_.qZA(),_.qZA()),2&ot&&(_.xp6(3),_.Q6J("ngIf","outline"==_e.appearance),_.xp6(1),_.Q6J("ngIf",_e._prefixChildren.length),_.xp6(5),_.Q6J("ngIf",_e._hasFloatingLabel()),_.xp6(1),_.Q6J("ngIf",_e._suffixChildren.length),_.xp6(1),_.Q6J("ngIf","outline"!=_e.appearance),_.xp6(1),_.Q6J("ngSwitch",_e._getDisplayedMessages()),_.xp6(1),_.Q6J("ngSwitchCase","error"),_.xp6(1),_.Q6J("ngSwitchCase","hint"))},directives:[C.O5,C.RF,C.n9,R.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::-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:[Oe.transitionMessages]},changeDetection:0}),Kt}(),mr=function(){var Kt=function wt(){(0,w.Z)(this,wt)};return Kt.\u0275fac=function(ot){return new(ot||Kt)},Kt.\u0275mod=_.oAB({type:Kt}),Kt.\u0275inj=_.cJS({imports:[[C.ez,N.BQ,R.Q8],N.BQ]}),Kt}()},73044:function(le,q,f){"use strict";f.d(q,{gD:function(){return En},LD:function(){return mr}});var U=f(20901),B=f(89200),V=f(10629),Z=f(14105),w=f(88009),R=f(10509),C=f(97154),_=f(18967),N=f(93889),D=f(40098),O=f(65508),P=f(59412),y=f(36410),g=f(28722),T=f(6517),M=f(78081),E=f(37429),x=f(32819),S=f(68707),A=f(4499),L=f(55371),j=f(57682),K=f(34487),z=f(48359),Q=f(58780),ae=f(85639),ie=f(76161),se=f(44213),ue=f(739),de=f(8392),oe=f(19061),$=["trigger"],ye=["panel"];function ve(Kt,wt){if(1&Kt&&(O.TgZ(0,"span",8),O._uU(1),O.qZA()),2&Kt){var ot=O.oxw();O.xp6(1),O.Oqu(ot.placeholder)}}function et(Kt,wt){if(1&Kt&&(O.TgZ(0,"span",12),O._uU(1),O.qZA()),2&Kt){var ot=O.oxw(2);O.xp6(1),O.Oqu(ot.triggerValue)}}function Ne(Kt,wt){1&Kt&&O.Hsn(0,0,["*ngSwitchCase","true"])}function gt(Kt,wt){if(1&Kt&&(O.TgZ(0,"span",9),O.YNc(1,et,2,1,"span",10),O.YNc(2,Ne,1,0,"ng-content",11),O.qZA()),2&Kt){var ot=O.oxw();O.Q6J("ngSwitch",!!ot.customTrigger),O.xp6(2),O.Q6J("ngSwitchCase",!0)}}function _t(Kt,wt){if(1&Kt){var ot=O.EpF();O.TgZ(0,"div",13),O.TgZ(1,"div",14,15),O.NdJ("@transformPanel.done",function(he){return O.CHM(ot),O.oxw()._panelDoneAnimatingStream.next(he.toState)})("keydown",function(he){return O.CHM(ot),O.oxw()._handleKeydown(he)}),O.Hsn(3,1),O.qZA(),O.qZA()}if(2&Kt){var _e=O.oxw();O.Q6J("@transformPanelWrap",void 0),O.xp6(1),O.Gre("mat-select-panel ",_e._getPanelTheme(),""),O.Udp("transform-origin",_e._transformOrigin)("font-size",_e._triggerFontSize,"px"),O.Q6J("ngClass",_e.panelClass)("@transformPanel",_e.multiple?"showing-multiple":"showing"),O.uIk("id",_e.id+"-panel")("aria-multiselectable",_e.multiple)("aria-label",_e.ariaLabel||null)("aria-labelledby",_e._getPanelAriaLabelledby())}}var Rt=[[["mat-select-trigger"]],"*"],Se=["mat-select-trigger","*"],Oe={transformPanelWrap:(0,ue.X$)("transformPanelWrap",[(0,ue.eR)("* => void",(0,ue.IO)("@transformPanel",[(0,ue.pV)()],{optional:!0}))]),transformPanel:(0,ue.X$)("transformPanel",[(0,ue.SB)("void",(0,ue.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,ue.SB)("showing",(0,ue.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ue.SB)("showing-multiple",(0,ue.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ue.eR)("void => *",(0,ue.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ue.eR)("* => void",(0,ue.jt)("100ms 25ms linear",(0,ue.oB)({opacity:0})))])},Ht=0,bt=new O.OlP("mat-select-scroll-strategy"),Ut=new O.OlP("MAT_SELECT_CONFIG"),an={provide:bt,deps:[N.aV],useFactory:function(Kt){return function(){return Kt.scrollStrategies.reposition()}}},An=function Kt(wt,ot){(0,_.Z)(this,Kt),this.source=wt,this.value=ot},Hn=(0,P.Kr)((0,P.sb)((0,P.Id)((0,P.FD)(function(){return function Kt(wt,ot,_e,re,he){(0,_.Z)(this,Kt),this._elementRef=wt,this._defaultErrorStateMatcher=ot,this._parentForm=_e,this._parentFormGroup=re,this.ngControl=he}}())))),Zn=new O.OlP("MatSelectTrigger"),Bn=function(){var Kt=function(wt){(0,R.Z)(_e,wt);var ot=(0,C.Z)(_e);function _e(re,he,Ge,Ye,yt,Lt,Yt,rn,cn,_n,xn,Nn,er,wn){var Sn,ir,Vt,sn;return(0,_.Z)(this,_e),(Sn=ot.call(this,yt,Ye,Yt,rn,_n))._viewportRuler=re,Sn._changeDetectorRef=he,Sn._ngZone=Ge,Sn._dir=Lt,Sn._parentFormField=cn,Sn._liveAnnouncer=er,Sn._defaultOptions=wn,Sn._panelOpen=!1,Sn._compareWith=function(pt,dt){return pt===dt},Sn._uid="mat-select-".concat(Ht++),Sn._triggerAriaLabelledBy=null,Sn._destroy=new S.xQ,Sn._onChange=function(){},Sn._onTouched=function(){},Sn._valueId="mat-select-value-".concat(Ht++),Sn._panelDoneAnimatingStream=new S.xQ,Sn._overlayPanelClass=(null===(ir=Sn._defaultOptions)||void 0===ir?void 0:ir.overlayPanelClass)||"",Sn._focused=!1,Sn.controlType="mat-select",Sn._required=!1,Sn._multiple=!1,Sn._disableOptionCentering=null!==(sn=null===(Vt=Sn._defaultOptions)||void 0===Vt?void 0:Vt.disableOptionCentering)&&void 0!==sn&&sn,Sn.ariaLabel="",Sn.optionSelectionChanges=(0,A.P)(function(){var pt=Sn.options;return pt?pt.changes.pipe((0,j.O)(pt),(0,K.w)(function(){return L.T.apply(void 0,(0,V.Z)(pt.map(function(dt){return dt.onSelectionChange})))})):Sn._ngZone.onStable.pipe((0,z.q)(1),(0,K.w)(function(){return Sn.optionSelectionChanges}))}),Sn.openedChange=new O.vpe,Sn._openedStream=Sn.openedChange.pipe((0,Q.h)(function(pt){return pt}),(0,ae.U)(function(){})),Sn._closedStream=Sn.openedChange.pipe((0,Q.h)(function(pt){return!pt}),(0,ae.U)(function(){})),Sn.selectionChange=new O.vpe,Sn.valueChange=new O.vpe,Sn.ngControl&&(Sn.ngControl.valueAccessor=(0,w.Z)(Sn)),null!=(null==wn?void 0:wn.typeaheadDebounceInterval)&&(Sn._typeaheadDebounceInterval=wn.typeaheadDebounceInterval),Sn._scrollStrategyFactory=Nn,Sn._scrollStrategy=Sn._scrollStrategyFactory(),Sn.tabIndex=parseInt(xn)||0,Sn.id=Sn.id,Sn}return(0,Z.Z)(_e,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(he){this._placeholder=he,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(he){this._required=(0,M.Ig)(he),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(he){this._multiple=(0,M.Ig)(he)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(he){this._disableOptionCentering=(0,M.Ig)(he)}},{key:"compareWith",get:function(){return this._compareWith},set:function(he){this._compareWith=he,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(he){(he!==this._value||this._multiple&&Array.isArray(he))&&(this.options&&this._setSelectionByValue(he),this._value=he)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(he){this._typeaheadDebounceInterval=(0,M.su)(he)}},{key:"id",get:function(){return this._id},set:function(he){this._id=he||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var he=this;this._selectionModel=new E.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ie.x)(),(0,se.R)(this._destroy)).subscribe(function(){return he._panelDoneAnimating(he.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var he=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,se.R)(this._destroy)).subscribe(function(Ge){Ge.added.forEach(function(Ye){return Ye.select()}),Ge.removed.forEach(function(Ye){return Ye.deselect()})}),this.options.changes.pipe((0,j.O)(null),(0,se.R)(this._destroy)).subscribe(function(){he._resetOptions(),he._initializeSelection()})}},{key:"ngDoCheck",value:function(){var he=this._getTriggerAriaLabelledby();if(he!==this._triggerAriaLabelledBy){var Ge=this._elementRef.nativeElement;this._triggerAriaLabelledBy=he,he?Ge.setAttribute("aria-labelledby",he):Ge.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(he){he.disabled&&this.stateChanges.next(),he.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(he){this.value=he}},{key:"registerOnChange",value:function(he){this._onChange=he}},{key:"registerOnTouched",value:function(he){this._onTouched=he}},{key:"setDisabledState",value:function(he){this.disabled=he,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var he=this._selectionModel.selected.map(function(Ge){return Ge.viewValue});return this._isRtl()&&he.reverse(),he.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(he){this.disabled||(this.panelOpen?this._handleOpenKeydown(he):this._handleClosedKeydown(he))}},{key:"_handleClosedKeydown",value:function(he){var Ge=he.keyCode,Ye=Ge===x.JH||Ge===x.LH||Ge===x.oh||Ge===x.SV,yt=Ge===x.K5||Ge===x.L_,Lt=this._keyManager;if(!Lt.isTyping()&&yt&&!(0,x.Vb)(he)||(this.multiple||he.altKey)&&Ye)he.preventDefault(),this.open();else if(!this.multiple){var Yt=this.selected;Lt.onKeydown(he);var rn=this.selected;rn&&Yt!==rn&&this._liveAnnouncer.announce(rn.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(he){var Ge=this._keyManager,Ye=he.keyCode,yt=Ye===x.JH||Ye===x.LH,Lt=Ge.isTyping();if(yt&&he.altKey)he.preventDefault(),this.close();else if(Lt||Ye!==x.K5&&Ye!==x.L_||!Ge.activeItem||(0,x.Vb)(he))if(!Lt&&this._multiple&&Ye===x.A&&he.ctrlKey){he.preventDefault();var Yt=this.options.some(function(cn){return!cn.disabled&&!cn.selected});this.options.forEach(function(cn){cn.disabled||(Yt?cn.select():cn.deselect())})}else{var rn=Ge.activeItemIndex;Ge.onKeydown(he),this._multiple&&yt&&he.shiftKey&&Ge.activeItem&&Ge.activeItemIndex!==rn&&Ge.activeItem._selectViaInteraction()}else he.preventDefault(),Ge.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 he=this;this._overlayDir.positionChange.pipe((0,z.q)(1)).subscribe(function(){he._changeDetectorRef.detectChanges(),he._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 he=this;Promise.resolve().then(function(){he._setSelectionByValue(he.ngControl?he.ngControl.value:he._value),he.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(he){var Ge=this;if(this._selectionModel.selected.forEach(function(yt){return yt.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&he)Array.isArray(he),he.forEach(function(yt){return Ge._selectValue(yt)}),this._sortValues();else{var Ye=this._selectValue(he);Ye?this._keyManager.updateActiveItem(Ye):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(he){var Ge=this,Ye=this.options.find(function(yt){if(Ge._selectionModel.isSelected(yt))return!1;try{return null!=yt.value&&Ge._compareWith(yt.value,he)}catch(Lt){return!1}});return Ye&&this._selectionModel.select(Ye),Ye}},{key:"_initKeyManager",value:function(){var he=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,se.R)(this._destroy)).subscribe(function(){he.panelOpen&&(!he.multiple&&he._keyManager.activeItem&&he._keyManager.activeItem._selectViaInteraction(),he.focus(),he.close())}),this._keyManager.change.pipe((0,se.R)(this._destroy)).subscribe(function(){he._panelOpen&&he.panel?he._scrollOptionIntoView(he._keyManager.activeItemIndex||0):!he._panelOpen&&!he.multiple&&he._keyManager.activeItem&&he._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var he=this,Ge=(0,L.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,se.R)(Ge)).subscribe(function(Ye){he._onSelect(Ye.source,Ye.isUserInput),Ye.isUserInput&&!he.multiple&&he._panelOpen&&(he.close(),he.focus())}),L.T.apply(void 0,(0,V.Z)(this.options.map(function(Ye){return Ye._stateChanges}))).pipe((0,se.R)(Ge)).subscribe(function(){he._changeDetectorRef.markForCheck(),he.stateChanges.next()})}},{key:"_onSelect",value:function(he,Ge){var Ye=this._selectionModel.isSelected(he);null!=he.value||this._multiple?(Ye!==he.selected&&(he.selected?this._selectionModel.select(he):this._selectionModel.deselect(he)),Ge&&this._keyManager.setActiveItem(he),this.multiple&&(this._sortValues(),Ge&&this.focus())):(he.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(he.value)),Ye!==this._selectionModel.isSelected(he)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var he=this;if(this.multiple){var Ge=this.options.toArray();this._selectionModel.sort(function(Ye,yt){return he.sortComparator?he.sortComparator(Ye,yt,Ge):Ge.indexOf(Ye)-Ge.indexOf(yt)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(he){var Ge;Ge=this.multiple?this.selected.map(function(Ye){return Ye.value}):this.selected?this.selected.value:he,this._value=Ge,this.valueChange.emit(Ge),this._onChange(Ge),this.selectionChange.emit(this._getChangeEvent(Ge)),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 he;return!this._panelOpen&&!this.disabled&&(null===(he=this.options)||void 0===he?void 0:he.length)>0}},{key:"focus",value:function(he){this._elementRef.nativeElement.focus(he)}},{key:"_getPanelAriaLabelledby",value:function(){var he;if(this.ariaLabel)return null;var Ge=null===(he=this._parentFormField)||void 0===he?void 0:he.getLabelId();return this.ariaLabelledby?(Ge?Ge+" ":"")+this.ariaLabelledby:Ge}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var he;if(this.ariaLabel)return null;var Ge=null===(he=this._parentFormField)||void 0===he?void 0:he.getLabelId(),Ye=(Ge?Ge+" ":"")+this._valueId;return this.ariaLabelledby&&(Ye+=" "+this.ariaLabelledby),Ye}},{key:"_panelDoneAnimating",value:function(he){this.openedChange.emit(he)}},{key:"setDescribedByIds",value:function(he){this._ariaDescribedby=he.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),_e}(Hn);return Kt.\u0275fac=function(ot){return new(ot||Kt)(O.Y36(g.rL),O.Y36(O.sBO),O.Y36(O.R0b),O.Y36(P.rD),O.Y36(O.SBq),O.Y36(de.Is,8),O.Y36(oe.F,8),O.Y36(oe.sg,8),O.Y36(y.G_,8),O.Y36(oe.a5,10),O.$8M("tabindex"),O.Y36(bt),O.Y36(T.Kd),O.Y36(Ut,8))},Kt.\u0275dir=O.lG2({type:Kt,viewQuery:function(ot,_e){var re;1&ot&&(O.Gf($,5),O.Gf(ye,5),O.Gf(N.pI,5)),2&ot&&(O.iGM(re=O.CRH())&&(_e.trigger=re.first),O.iGM(re=O.CRH())&&(_e.panel=re.first),O.iGM(re=O.CRH())&&(_e._overlayDir=re.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:[O.qOj,O.TTD]}),Kt}(),En=function(){var Kt=function(wt){(0,R.Z)(_e,wt);var ot=(0,C.Z)(_e);function _e(){var re;return(0,_.Z)(this,_e),(re=ot.apply(this,arguments))._scrollTop=0,re._triggerFontSize=0,re._transformOrigin="top",re._offsetY=0,re._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],re}return(0,Z.Z)(_e,[{key:"_calculateOverlayScroll",value:function(he,Ge,Ye){var yt=this._getItemHeight();return Math.min(Math.max(0,yt*he-Ge+yt/2),Ye)}},{key:"ngOnInit",value:function(){var he=this;(0,U.Z)((0,B.Z)(_e.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,se.R)(this._destroy)).subscribe(function(){he.panelOpen&&(he._triggerRect=he.trigger.nativeElement.getBoundingClientRect(),he._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var he=this;(0,U.Z)((0,B.Z)(_e.prototype),"_canOpen",this).call(this)&&((0,U.Z)((0,B.Z)(_e.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,z.q)(1)).subscribe(function(){he._triggerFontSize&&he._overlayDir.overlayRef&&he._overlayDir.overlayRef.overlayElement&&(he._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(he._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(he){var Ge=(0,P.CB)(he,this.options,this.optionGroups),Ye=this._getItemHeight();this.panel.nativeElement.scrollTop=0===he&&1===Ge?0:(0,P.jH)((he+Ge)*Ye,Ye,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(he){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),(0,U.Z)((0,B.Z)(_e.prototype),"_panelDoneAnimating",this).call(this,he)}},{key:"_getChangeEvent",value:function(he){return new An(this,he)}},{key:"_calculateOverlayOffsetX",value:function(){var Lt,he=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),Ge=this._viewportRuler.getViewportSize(),Ye=this._isRtl(),yt=this.multiple?56:32;if(this.multiple)Lt=40;else if(this.disableOptionCentering)Lt=16;else{var Yt=this._selectionModel.selected[0]||this.options.first;Lt=Yt&&Yt.group?32:16}Ye||(Lt*=-1);var rn=0-(he.left+Lt-(Ye?yt:0)),cn=he.right+Lt-Ge.width+(Ye?0:yt);rn>0?Lt+=rn+8:cn>0&&(Lt-=cn+8),this._overlayDir.offsetX=Math.round(Lt),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(he,Ge,Ye){var rn,yt=this._getItemHeight(),Lt=(yt-this._triggerRect.height)/2,Yt=Math.floor(256/yt);return this.disableOptionCentering?0:(rn=0===this._scrollTop?he*yt:this._scrollTop===Ye?(he-(this._getItemCount()-Yt))*yt+(yt-(this._getItemCount()*yt-256)%yt):Ge-yt/2,Math.round(-1*rn-Lt))}},{key:"_checkOverlayWithinViewport",value:function(he){var Ge=this._getItemHeight(),Ye=this._viewportRuler.getViewportSize(),yt=this._triggerRect.top-8,Lt=Ye.height-this._triggerRect.bottom-8,Yt=Math.abs(this._offsetY),cn=Math.min(this._getItemCount()*Ge,256)-Yt-this._triggerRect.height;cn>Lt?this._adjustPanelUp(cn,Lt):Yt>yt?this._adjustPanelDown(Yt,yt,he):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(he,Ge){var Ye=Math.round(he-Ge);this._scrollTop-=Ye,this._offsetY-=Ye,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(he,Ge,Ye){var yt=Math.round(he-Ge);if(this._scrollTop+=yt,this._offsetY+=yt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Ye)return this._scrollTop=Ye,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var Yt,he=this._getItemHeight(),Ge=this._getItemCount(),Ye=Math.min(Ge*he,256),Lt=Ge*he-Ye;Yt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),Yt+=(0,P.CB)(Yt,this.options,this.optionGroups);var rn=Ye/2;this._scrollTop=this._calculateOverlayScroll(Yt,rn,Lt),this._offsetY=this._calculateOverlayOffsetY(Yt,rn,Lt),this._checkOverlayWithinViewport(Lt)}},{key:"_getOriginBasedOnOption",value:function(){var he=this._getItemHeight(),Ge=(he-this._triggerRect.height)/2,Ye=Math.abs(this._offsetY)-Ge+he/2;return"50% ".concat(Ye,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),_e}(Bn);return Kt.\u0275fac=function(){var wt;return function(_e){return(wt||(wt=O.n5z(Kt)))(_e||Kt)}}(),Kt.\u0275cmp=O.Xpm({type:Kt,selectors:[["mat-select"]],contentQueries:function(ot,_e,re){var he;1&ot&&(O.Suo(re,Zn,5),O.Suo(re,P.ey,5),O.Suo(re,P.K7,5)),2&ot&&(O.iGM(he=O.CRH())&&(_e.customTrigger=he.first),O.iGM(he=O.CRH())&&(_e.options=he),O.iGM(he=O.CRH())&&(_e.optionGroups=he))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(ot,_e){1&ot&&O.NdJ("keydown",function(he){return _e._handleKeydown(he)})("focus",function(){return _e._onFocus()})("blur",function(){return _e._onBlur()}),2&ot&&(O.uIk("id",_e.id)("tabindex",_e.tabIndex)("aria-controls",_e.panelOpen?_e.id+"-panel":null)("aria-expanded",_e.panelOpen)("aria-label",_e.ariaLabel||null)("aria-required",_e.required.toString())("aria-disabled",_e.disabled.toString())("aria-invalid",_e.errorState)("aria-describedby",_e._ariaDescribedby||null)("aria-activedescendant",_e._getAriaActiveDescendant()),O.ekj("mat-select-disabled",_e.disabled)("mat-select-invalid",_e.errorState)("mat-select-required",_e.required)("mat-select-empty",_e.empty)("mat-select-multiple",_e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[O._Bn([{provide:y.Eo,useExisting:Kt},{provide:P.HF,useExisting:Kt}]),O.qOj],ngContentSelectors:Se,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(ot,_e){if(1&ot&&(O.F$t(Rt),O.TgZ(0,"div",0,1),O.NdJ("click",function(){return _e.toggle()}),O.TgZ(3,"div",2),O.YNc(4,ve,2,1,"span",3),O.YNc(5,gt,3,2,"span",4),O.qZA(),O.TgZ(6,"div",5),O._UZ(7,"div",6),O.qZA(),O.qZA(),O.YNc(8,_t,4,14,"ng-template",7),O.NdJ("backdropClick",function(){return _e.close()})("attach",function(){return _e._onAttached()})("detach",function(){return _e.close()})),2&ot){var re=O.MAs(1);O.uIk("aria-owns",_e.panelOpen?_e.id+"-panel":null),O.xp6(3),O.Q6J("ngSwitch",_e.empty),O.uIk("id",_e._valueId),O.xp6(1),O.Q6J("ngSwitchCase",!0),O.xp6(1),O.Q6J("ngSwitchCase",!1),O.xp6(3),O.Q6J("cdkConnectedOverlayPanelClass",_e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",_e._scrollStrategy)("cdkConnectedOverlayOrigin",re)("cdkConnectedOverlayOpen",_e.panelOpen)("cdkConnectedOverlayPositions",_e._positions)("cdkConnectedOverlayMinWidth",null==_e._triggerRect?null:_e._triggerRect.width)("cdkConnectedOverlayOffsetY",_e._offsetY)}},directives:[N.xu,D.RF,D.n9,N.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:[Oe.transformPanelWrap,Oe.transformPanel]},changeDetection:0}),Kt}(),mr=function(){var Kt=function wt(){(0,_.Z)(this,wt)};return Kt.\u0275fac=function(ot){return new(ot||Kt)},Kt.\u0275mod=O.oAB({type:Kt}),Kt.\u0275inj=O.cJS({providers:[an],imports:[[D.ez,N.U8,P.Ng,P.BQ],g.ZD,y.lN,P.Ng,P.BQ]}),Kt}()},88802:function(le,q,f){"use strict";f.d(q,{uX:function(){return Hn},SP:function(){return re},uD:function(){return Ut},Nh:function(){return ir}}),f(88009);var B=f(10629),V=f(20901),Z=f(89200),w=f(10509),R=f(97154),C=f(18967),_=f(14105),N=f(6517),D=f(96798),O=f(80785),P=f(40098),y=f(65508),g=f(59412),T=f(38480),M=f(68707),E=f(5051),x=f(55371),S=f(33090),A=f(43161),L=f(5041),j=f(739),K=f(57682),z=f(76161),Q=f(44213),ae=f(78081),ie=f(15427),se=f(32819),ue=f(8392),de=f(28722);function oe(Vt,sn){1&Vt&&y.Hsn(0)}var $=["*"];function ye(Vt,sn){}var ve=function(sn){return{animationDuration:sn}},et=function(sn,pt){return{value:sn,params:pt}},Ne=["tabBodyWrapper"],gt=["tabHeader"];function _t(Vt,sn){}function Rt(Vt,sn){if(1&Vt&&y.YNc(0,_t,0,0,"ng-template",9),2&Vt){var pt=y.oxw().$implicit;y.Q6J("cdkPortalOutlet",pt.templateLabel)}}function Se(Vt,sn){if(1&Vt&&y._uU(0),2&Vt){var pt=y.oxw().$implicit;y.Oqu(pt.textLabel)}}function Oe(Vt,sn){if(1&Vt){var pt=y.EpF();y.TgZ(0,"div",6),y.NdJ("click",function(){var Fe=y.CHM(pt),Ae=Fe.$implicit,Le=Fe.index,ze=y.oxw(),Nt=y.MAs(1);return ze._handleClick(Ae,Nt,Le)})("cdkFocusChange",function(Fe){var Le=y.CHM(pt).index;return y.oxw()._tabFocusChanged(Fe,Le)}),y.TgZ(1,"div",7),y.YNc(2,Rt,1,1,"ng-template",8),y.YNc(3,Se,1,1,"ng-template",8),y.qZA(),y.qZA()}if(2&Vt){var dt=sn.$implicit,Ue=sn.index,at=y.oxw();y.ekj("mat-tab-label-active",at.selectedIndex==Ue),y.Q6J("id",at._getTabLabelId(Ue))("disabled",dt.disabled)("matRippleDisabled",dt.disabled||at.disableRipple),y.uIk("tabIndex",at._getTabIndex(dt,Ue))("aria-posinset",Ue+1)("aria-setsize",at._tabs.length)("aria-controls",at._getTabContentId(Ue))("aria-selected",at.selectedIndex==Ue)("aria-label",dt.ariaLabel||null)("aria-labelledby",!dt.ariaLabel&&dt.ariaLabelledby?dt.ariaLabelledby:null),y.xp6(2),y.Q6J("ngIf",dt.templateLabel),y.xp6(1),y.Q6J("ngIf",!dt.templateLabel)}}function je(Vt,sn){if(1&Vt){var pt=y.EpF();y.TgZ(0,"mat-tab-body",10),y.NdJ("_onCentered",function(){return y.CHM(pt),y.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Fe){return y.CHM(pt),y.oxw()._setTabBodyWrapperHeight(Fe)}),y.qZA()}if(2&Vt){var dt=sn.$implicit,Ue=sn.index,at=y.oxw();y.ekj("mat-tab-body-active",at.selectedIndex===Ue),y.Q6J("id",at._getTabContentId(Ue))("content",dt.content)("position",dt.position)("origin",dt.origin)("animationDuration",at.animationDuration),y.uIk("tabindex",null!=at.contentTabIndex&&at.selectedIndex===Ue?at.contentTabIndex:null)("aria-labelledby",at._getTabLabelId(Ue))}}var ct=["tabListContainer"],Xe=["tabList"],Ht=["nextPaginator"],Et=["previousPaginator"],Xt=new y.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(pt){return{left:pt?(pt.offsetLeft||0)+"px":"0",width:pt?(pt.offsetWidth||0)+"px":"0"}}}}),Ct=function(){var Vt=function(){function sn(pt,dt,Ue,at){(0,C.Z)(this,sn),this._elementRef=pt,this._ngZone=dt,this._inkBarPositioner=Ue,this._animationMode=at}return(0,_.Z)(sn,[{key:"alignToElement",value:function(dt){var Ue=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return Ue._setStyles(dt)})}):this._setStyles(dt)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(dt){var Ue=this._inkBarPositioner(dt),at=this._elementRef.nativeElement;at.style.left=Ue.left,at.style.width=Ue.width}}]),sn}();return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq),y.Y36(y.R0b),y.Y36(Xt),y.Y36(T.Qb,8))},Vt.\u0275dir=y.lG2({type:Vt,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(pt,dt){2&pt&&y.ekj("_mat-animation-noopable","NoopAnimations"===dt._animationMode)}}),Vt}(),jt=new y.OlP("MatTabContent"),nn=new y.OlP("MatTabLabel"),Ut=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(){return(0,C.Z)(this,dt),pt.apply(this,arguments)}return dt}(O.ig);return Vt.\u0275fac=function(){var sn;return function(dt){return(sn||(sn=y.n5z(Vt)))(dt||Vt)}}(),Vt.\u0275dir=y.lG2({type:Vt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[y._Bn([{provide:nn,useExisting:Vt}]),y.qOj]}),Vt}(),an=(0,g.Id)(function(){return function Vt(){(0,C.Z)(this,Vt)}}()),An=new y.OlP("MAT_TAB_GROUP"),Hn=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue,at){var Ce;return(0,C.Z)(this,dt),(Ce=pt.call(this))._viewContainerRef=Ue,Ce._closestTabGroup=at,Ce.textLabel="",Ce._contentPortal=null,Ce._stateChanges=new M.xQ,Ce.position=null,Ce.origin=null,Ce.isActive=!1,Ce}return(0,_.Z)(dt,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(at){this._setTemplateLabelInput(at)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(at){(at.hasOwnProperty("textLabel")||at.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new O.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(at){at&&(this._templateLabel=at)}}]),dt}(an);return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.s_b),y.Y36(An,8))},Vt.\u0275cmp=y.Xpm({type:Vt,selectors:[["mat-tab"]],contentQueries:function(pt,dt,Ue){var at;1&pt&&(y.Suo(Ue,nn,5),y.Suo(Ue,jt,7,y.Rgc)),2&pt&&(y.iGM(at=y.CRH())&&(dt.templateLabel=at.first),y.iGM(at=y.CRH())&&(dt._explicitContent=at.first))},viewQuery:function(pt,dt){var Ue;1&pt&&y.Gf(y.Rgc,7),2&pt&&y.iGM(Ue=y.CRH())&&(dt._implicitContent=Ue.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[y.qOj,y.TTD],ngContentSelectors:$,decls:1,vars:0,template:function(pt,dt){1&pt&&(y.F$t(),y.YNc(0,oe,1,0,"ng-template"))},encapsulation:2}),Vt}(),Zn={translateTab:(0,j.X$)("translateTab",[(0,j.SB)("center, void, left-origin-center, right-origin-center",(0,j.oB)({transform:"none"})),(0,j.SB)("left",(0,j.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,j.SB)("right",(0,j.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,j.eR)("* => left, * => right, left => center, right => center",(0,j.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,j.eR)("void => left-origin-center",[(0,j.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,j.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,j.eR)("void => right-origin-center",[(0,j.oB)({transform:"translate3d(100%, 0, 0)"}),(0,j.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},lr=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue,at,Ce,Fe){var Ae;return(0,C.Z)(this,dt),(Ae=pt.call(this,Ue,at,Fe))._host=Ce,Ae._centeringSub=E.w.EMPTY,Ae._leavingSub=E.w.EMPTY,Ae}return(0,_.Z)(dt,[{key:"ngOnInit",value:function(){var at=this;(0,V.Z)((0,Z.Z)(dt.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,K.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(Ce){Ce&&!at.hasAttached()&&at.attach(at._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){at.detach()})}},{key:"ngOnDestroy",value:function(){(0,V.Z)((0,Z.Z)(dt.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),dt}(O.Pl);return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y._Vd),y.Y36(y.s_b),y.Y36((0,y.Gpc)(function(){return En})),y.Y36(P.K0))},Vt.\u0275dir=y.lG2({type:Vt,selectors:[["","matTabBodyHost",""]],features:[y.qOj]}),Vt}(),Bn=function(){var Vt=function(){function sn(pt,dt,Ue){var at=this;(0,C.Z)(this,sn),this._elementRef=pt,this._dir=dt,this._dirChangeSubscription=E.w.EMPTY,this._translateTabComplete=new M.xQ,this._onCentering=new y.vpe,this._beforeCentering=new y.vpe,this._afterLeavingCenter=new y.vpe,this._onCentered=new y.vpe(!0),this.animationDuration="500ms",dt&&(this._dirChangeSubscription=dt.change.subscribe(function(Ce){at._computePositionAnimationState(Ce),Ue.markForCheck()})),this._translateTabComplete.pipe((0,z.x)(function(Ce,Fe){return Ce.fromState===Fe.fromState&&Ce.toState===Fe.toState})).subscribe(function(Ce){at._isCenterPosition(Ce.toState)&&at._isCenterPosition(at._position)&&at._onCentered.emit(),at._isCenterPosition(Ce.fromState)&&!at._isCenterPosition(at._position)&&at._afterLeavingCenter.emit()})}return(0,_.Z)(sn,[{key:"position",set:function(dt){this._positionIndex=dt,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(dt){var Ue=this._isCenterPosition(dt.toState);this._beforeCentering.emit(Ue),Ue&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(dt){return"center"==dt||"left-origin-center"==dt||"right-origin-center"==dt}},{key:"_computePositionAnimationState",value:function(){var dt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==dt?"left":"right":this._positionIndex>0?"ltr"==dt?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(dt){var Ue=this._getLayoutDirection();return"ltr"==Ue&&dt<=0||"rtl"==Ue&&dt>0?"left-origin-center":"right-origin-center"}}]),sn}();return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq),y.Y36(ue.Is,8),y.Y36(y.sBO))},Vt.\u0275dir=y.lG2({type:Vt,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Vt}(),En=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue,at,Ce){return(0,C.Z)(this,dt),pt.call(this,Ue,at,Ce)}return dt}(Bn);return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq),y.Y36(ue.Is,8),y.Y36(y.sBO))},Vt.\u0275cmp=y.Xpm({type:Vt,selectors:[["mat-tab-body"]],viewQuery:function(pt,dt){var Ue;1&pt&&y.Gf(O.Pl,5),2&pt&&y.iGM(Ue=y.CRH())&&(dt._portalHost=Ue.first)},hostAttrs:[1,"mat-tab-body"],features:[y.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(pt,dt){1&pt&&(y.TgZ(0,"div",0,1),y.NdJ("@translateTab.start",function(at){return dt._onTranslateTabStarted(at)})("@translateTab.done",function(at){return dt._translateTabComplete.next(at)}),y.YNc(2,ye,0,0,"ng-template",2),y.qZA()),2&pt&&y.Q6J("@translateTab",y.WLB(3,et,dt._position,y.VKq(1,ve,dt.animationDuration)))},directives:[lr],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:[Zn.translateTab]}}),Vt}(),mr=new y.OlP("MAT_TABS_CONFIG"),Kt=0,wt=function Vt(){(0,C.Z)(this,Vt)},ot=(0,g.pj)((0,g.Kr)(function(){return function Vt(sn){(0,C.Z)(this,Vt),this._elementRef=sn}}()),"primary"),_e=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue,at,Ce,Fe){var Ae,Le;return(0,C.Z)(this,dt),(Ae=pt.call(this,Ue))._changeDetectorRef=at,Ae._animationMode=Fe,Ae._tabs=new y.n_E,Ae._indexToSelect=0,Ae._tabBodyWrapperHeight=0,Ae._tabsSubscription=E.w.EMPTY,Ae._tabLabelSubscription=E.w.EMPTY,Ae._selectedIndex=null,Ae.headerPosition="above",Ae.selectedIndexChange=new y.vpe,Ae.focusChange=new y.vpe,Ae.animationDone=new y.vpe,Ae.selectedTabChange=new y.vpe(!0),Ae._groupId=Kt++,Ae.animationDuration=Ce&&Ce.animationDuration?Ce.animationDuration:"500ms",Ae.disablePagination=!(!Ce||null==Ce.disablePagination)&&Ce.disablePagination,Ae.dynamicHeight=!(!Ce||null==Ce.dynamicHeight)&&Ce.dynamicHeight,Ae.contentTabIndex=null!==(Le=null==Ce?void 0:Ce.contentTabIndex)&&void 0!==Le?Le:null,Ae}return(0,_.Z)(dt,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(at){this._dynamicHeight=(0,ae.Ig)(at)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(at){this._indexToSelect=(0,ae.su)(at,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(at){this._animationDuration=/^\d+$/.test(at)?at+"ms":at}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(at){this._contentTabIndex=(0,ae.su)(at,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(at){var Ce=this._elementRef.nativeElement;Ce.classList.remove("mat-background-".concat(this.backgroundColor)),at&&Ce.classList.add("mat-background-".concat(at)),this._backgroundColor=at}},{key:"ngAfterContentChecked",value:function(){var at=this,Ce=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Ce){var Fe=null==this._selectedIndex;if(!Fe){this.selectedTabChange.emit(this._createChangeEvent(Ce));var Ae=this._tabBodyWrapper.nativeElement;Ae.style.minHeight=Ae.clientHeight+"px"}Promise.resolve().then(function(){at._tabs.forEach(function(Le,ze){return Le.isActive=ze===Ce}),Fe||(at.selectedIndexChange.emit(Ce),at._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(Le,ze){Le.position=ze-Ce,null!=at._selectedIndex&&0==Le.position&&!Le.origin&&(Le.origin=Ce-at._selectedIndex)}),this._selectedIndex!==Ce&&(this._selectedIndex=Ce,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var at=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(at._clampTabIndex(at._indexToSelect)===at._selectedIndex)for(var Fe=at._tabs.toArray(),Ae=0;Ae<Fe.length;Ae++)if(Fe[Ae].isActive){at._indexToSelect=at._selectedIndex=Ae;break}at._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var at=this;this._allTabs.changes.pipe((0,K.O)(this._allTabs)).subscribe(function(Ce){at._tabs.reset(Ce.filter(function(Fe){return Fe._closestTabGroup===at||!Fe._closestTabGroup})),at._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(at){var Ce=this._tabHeader;Ce&&(Ce.focusIndex=at)}},{key:"_focusChanged",value:function(at){this.focusChange.emit(this._createChangeEvent(at))}},{key:"_createChangeEvent",value:function(at){var Ce=new wt;return Ce.index=at,this._tabs&&this._tabs.length&&(Ce.tab=this._tabs.toArray()[at]),Ce}},{key:"_subscribeToTabLabels",value:function(){var at=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=x.T.apply(void 0,(0,B.Z)(this._tabs.map(function(Ce){return Ce._stateChanges}))).subscribe(function(){return at._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(at){return Math.min(this._tabs.length-1,Math.max(at||0,0))}},{key:"_getTabLabelId",value:function(at){return"mat-tab-label-".concat(this._groupId,"-").concat(at)}},{key:"_getTabContentId",value:function(at){return"mat-tab-content-".concat(this._groupId,"-").concat(at)}},{key:"_setTabBodyWrapperHeight",value:function(at){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var Ce=this._tabBodyWrapper.nativeElement;Ce.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Ce.style.height=at+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var at=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=at.clientHeight,at.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(at,Ce,Fe){at.disabled||(this.selectedIndex=Ce.focusIndex=Fe)}},{key:"_getTabIndex",value:function(at,Ce){return at.disabled?null:this.selectedIndex===Ce?0:-1}},{key:"_tabFocusChanged",value:function(at,Ce){at&&"mouse"!==at&&"touch"!==at&&(this._tabHeader.focusIndex=Ce)}}]),dt}(ot);return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(mr,8),y.Y36(T.Qb,8))},Vt.\u0275dir=y.lG2({type:Vt,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:[y.qOj]}),Vt}(),re=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue,at,Ce,Fe){return(0,C.Z)(this,dt),pt.call(this,Ue,at,Ce,Fe)}return dt}(_e);return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(mr,8),y.Y36(T.Qb,8))},Vt.\u0275cmp=y.Xpm({type:Vt,selectors:[["mat-tab-group"]],contentQueries:function(pt,dt,Ue){var at;1&pt&&y.Suo(Ue,Hn,5),2&pt&&y.iGM(at=y.CRH())&&(dt._allTabs=at)},viewQuery:function(pt,dt){var Ue;1&pt&&(y.Gf(Ne,5),y.Gf(gt,5)),2&pt&&(y.iGM(Ue=y.CRH())&&(dt._tabBodyWrapper=Ue.first),y.iGM(Ue=y.CRH())&&(dt._tabHeader=Ue.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(pt,dt){2&pt&&y.ekj("mat-tab-group-dynamic-height",dt.dynamicHeight)("mat-tab-group-inverted-header","below"===dt.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[y._Bn([{provide:An,useExisting:Vt}]),y.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(pt,dt){1&pt&&(y.TgZ(0,"mat-tab-header",0,1),y.NdJ("indexFocused",function(at){return dt._focusChanged(at)})("selectFocusedIndex",function(at){return dt.selectedIndex=at}),y.YNc(2,Oe,4,14,"div",2),y.qZA(),y.TgZ(3,"div",3,4),y.YNc(5,je,1,9,"mat-tab-body",5),y.qZA()),2&pt&&(y.Q6J("selectedIndex",dt.selectedIndex||0)("disableRipple",dt.disableRipple)("disablePagination",dt.disablePagination),y.xp6(2),y.Q6J("ngForOf",dt._tabs),y.xp6(1),y.ekj("_mat-animation-noopable","NoopAnimations"===dt._animationMode),y.xp6(2),y.Q6J("ngForOf",dt._tabs))},directives:function(){return[_n,P.sg,Ge,g.wG,N.kH,P.O5,O.Pl,En]},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}),Vt}(),he=(0,g.Id)(function(){return function Vt(){(0,C.Z)(this,Vt)}}()),Ge=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue){var at;return(0,C.Z)(this,dt),(at=pt.call(this)).elementRef=Ue,at}return(0,_.Z)(dt,[{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}}]),dt}(he);return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq))},Vt.\u0275dir=y.lG2({type:Vt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(pt,dt){2&pt&&(y.uIk("aria-disabled",!!dt.disabled),y.ekj("mat-tab-disabled",dt.disabled))},inputs:{disabled:"disabled"},features:[y.qOj]}),Vt}(),Ye=(0,ie.i$)({passive:!0}),rn=function(){var Vt=function(){function sn(pt,dt,Ue,at,Ce,Fe,Ae){var Le=this;(0,C.Z)(this,sn),this._elementRef=pt,this._changeDetectorRef=dt,this._viewportRuler=Ue,this._dir=at,this._ngZone=Ce,this._platform=Fe,this._animationMode=Ae,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new M.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new M.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new y.vpe,this.indexFocused=new y.vpe,Ce.runOutsideAngular(function(){(0,S.R)(pt.nativeElement,"mouseleave").pipe((0,Q.R)(Le._destroyed)).subscribe(function(){Le._stopInterval()})})}return(0,_.Z)(sn,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(dt){dt=(0,ae.su)(dt),this._selectedIndex!=dt&&(this._selectedIndexChanged=!0,this._selectedIndex=dt,this._keyManager&&this._keyManager.updateActiveItem(dt))}},{key:"ngAfterViewInit",value:function(){var dt=this;(0,S.R)(this._previousPaginator.nativeElement,"touchstart",Ye).pipe((0,Q.R)(this._destroyed)).subscribe(function(){dt._handlePaginatorPress("before")}),(0,S.R)(this._nextPaginator.nativeElement,"touchstart",Ye).pipe((0,Q.R)(this._destroyed)).subscribe(function(){dt._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var dt=this,Ue=this._dir?this._dir.change:(0,A.of)("ltr"),at=this._viewportRuler.change(150),Ce=function(){dt.updatePagination(),dt._alignInkBarToSelectedTab()};this._keyManager=new N.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(Ce):Ce(),(0,x.T)(Ue,at,this._items.changes).pipe((0,Q.R)(this._destroyed)).subscribe(function(){dt._ngZone.run(function(){return Promise.resolve().then(Ce)}),dt._keyManager.withHorizontalOrientation(dt._getLayoutDirection())}),this._keyManager.change.pipe((0,Q.R)(this._destroyed)).subscribe(function(Fe){dt.indexFocused.emit(Fe),dt._setTabFocus(Fe)})}},{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(dt){if(!(0,se.Vb)(dt))switch(dt.keyCode){case se.K5:case se.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(dt));break;default:this._keyManager.onKeydown(dt)}}},{key:"_onContentChanges",value:function(){var dt=this,Ue=this._elementRef.nativeElement.textContent;Ue!==this._currentTextContent&&(this._currentTextContent=Ue||"",this._ngZone.run(function(){dt.updatePagination(),dt._alignInkBarToSelectedTab(),dt._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(dt){!this._isValidIndex(dt)||this.focusIndex===dt||!this._keyManager||this._keyManager.setActiveItem(dt)}},{key:"_isValidIndex",value:function(dt){if(!this._items)return!0;var Ue=this._items?this._items.toArray()[dt]:null;return!!Ue&&!Ue.disabled}},{key:"_setTabFocus",value:function(dt){if(this._showPaginationControls&&this._scrollToLabel(dt),this._items&&this._items.length){this._items.toArray()[dt].focus();var Ue=this._tabListContainer.nativeElement,at=this._getLayoutDirection();Ue.scrollLeft="ltr"==at?0:Ue.scrollWidth-Ue.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var dt=this.scrollDistance,Ue="ltr"===this._getLayoutDirection()?-dt:dt;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(Ue),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(dt){this._scrollTo(dt)}},{key:"_scrollHeader",value:function(dt){return this._scrollTo(this._scrollDistance+("before"==dt?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(dt){this._stopInterval(),this._scrollHeader(dt)}},{key:"_scrollToLabel",value:function(dt){if(!this.disablePagination){var Ue=this._items?this._items.toArray()[dt]:null;if(Ue){var Le,ze,at=this._tabListContainer.nativeElement.offsetWidth,Ce=Ue.elementRef.nativeElement,Fe=Ce.offsetLeft,Ae=Ce.offsetWidth;"ltr"==this._getLayoutDirection()?ze=(Le=Fe)+Ae:Le=(ze=this._tabList.nativeElement.offsetWidth-Fe)-Ae;var Nt=this.scrollDistance,mn=this.scrollDistance+at;Le<Nt?this.scrollDistance-=Nt-Le+60:ze>mn&&(this.scrollDistance+=ze-mn+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var dt=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;dt||(this.scrollDistance=0),dt!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=dt}}},{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 dt=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Ue=dt?dt.elementRef.nativeElement:null;Ue?this._inkBar.alignToElement(Ue):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(dt,Ue){var at=this;Ue&&null!=Ue.button&&0!==Ue.button||(this._stopInterval(),(0,L.H)(650,100).pipe((0,Q.R)((0,x.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var Ce=at._scrollHeader(dt),Ae=Ce.distance;(0===Ae||Ae>=Ce.maxScrollDistance)&&at._stopInterval()}))}},{key:"_scrollTo",value:function(dt){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var Ue=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Ue,dt)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Ue,distance:this._scrollDistance}}}]),sn}();return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(de.rL),y.Y36(ue.Is,8),y.Y36(y.R0b),y.Y36(ie.t4),y.Y36(T.Qb,8))},Vt.\u0275dir=y.lG2({type:Vt,inputs:{disablePagination:"disablePagination"}}),Vt}(),cn=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue,at,Ce,Fe,Ae,Le,ze){var Nt;return(0,C.Z)(this,dt),(Nt=pt.call(this,Ue,at,Ce,Fe,Ae,Le,ze))._disableRipple=!1,Nt}return(0,_.Z)(dt,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(at){this._disableRipple=(0,ae.Ig)(at)}},{key:"_itemSelected",value:function(at){at.preventDefault()}}]),dt}(rn);return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(de.rL),y.Y36(ue.Is,8),y.Y36(y.R0b),y.Y36(ie.t4),y.Y36(T.Qb,8))},Vt.\u0275dir=y.lG2({type:Vt,inputs:{disableRipple:"disableRipple"},features:[y.qOj]}),Vt}(),_n=function(){var Vt=function(sn){(0,w.Z)(dt,sn);var pt=(0,R.Z)(dt);function dt(Ue,at,Ce,Fe,Ae,Le,ze){return(0,C.Z)(this,dt),pt.call(this,Ue,at,Ce,Fe,Ae,Le,ze)}return dt}(cn);return Vt.\u0275fac=function(pt){return new(pt||Vt)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(de.rL),y.Y36(ue.Is,8),y.Y36(y.R0b),y.Y36(ie.t4),y.Y36(T.Qb,8))},Vt.\u0275cmp=y.Xpm({type:Vt,selectors:[["mat-tab-header"]],contentQueries:function(pt,dt,Ue){var at;1&pt&&y.Suo(Ue,Ge,4),2&pt&&y.iGM(at=y.CRH())&&(dt._items=at)},viewQuery:function(pt,dt){var Ue;1&pt&&(y.Gf(Ct,7),y.Gf(ct,7),y.Gf(Xe,7),y.Gf(Ht,5),y.Gf(Et,5)),2&pt&&(y.iGM(Ue=y.CRH())&&(dt._inkBar=Ue.first),y.iGM(Ue=y.CRH())&&(dt._tabListContainer=Ue.first),y.iGM(Ue=y.CRH())&&(dt._tabList=Ue.first),y.iGM(Ue=y.CRH())&&(dt._nextPaginator=Ue.first),y.iGM(Ue=y.CRH())&&(dt._previousPaginator=Ue.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(pt,dt){2&pt&&y.ekj("mat-tab-header-pagination-controls-enabled",dt._showPaginationControls)("mat-tab-header-rtl","rtl"==dt._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[y.qOj],ngContentSelectors:$,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(pt,dt){1&pt&&(y.F$t(),y.TgZ(0,"div",0,1),y.NdJ("click",function(){return dt._handlePaginatorClick("before")})("mousedown",function(at){return dt._handlePaginatorPress("before",at)})("touchend",function(){return dt._stopInterval()}),y._UZ(2,"div",2),y.qZA(),y.TgZ(3,"div",3,4),y.NdJ("keydown",function(at){return dt._handleKeydown(at)}),y.TgZ(5,"div",5,6),y.NdJ("cdkObserveContent",function(){return dt._onContentChanges()}),y.TgZ(7,"div",7),y.Hsn(8),y.qZA(),y._UZ(9,"mat-ink-bar"),y.qZA(),y.qZA(),y.TgZ(10,"div",8,9),y.NdJ("mousedown",function(at){return dt._handlePaginatorPress("after",at)})("click",function(){return dt._handlePaginatorClick("after")})("touchend",function(){return dt._stopInterval()}),y._UZ(12,"div",2),y.qZA()),2&pt&&(y.ekj("mat-tab-header-pagination-disabled",dt._disableScrollBefore),y.Q6J("matRippleDisabled",dt._disableScrollBefore||dt.disableRipple),y.xp6(5),y.ekj("_mat-animation-noopable","NoopAnimations"===dt._animationMode),y.xp6(5),y.ekj("mat-tab-header-pagination-disabled",dt._disableScrollAfter),y.Q6J("matRippleDisabled",dt._disableScrollAfter||dt.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}),Vt}(),ir=function(){var Vt=function sn(){(0,C.Z)(this,sn)};return Vt.\u0275fac=function(pt){return new(pt||Vt)},Vt.\u0275mod=y.oAB({type:Vt}),Vt.\u0275inj=y.cJS({imports:[[P.ez,g.BQ,O.eL,g.si,D.Q8,N.rt],g.BQ]}),Vt}()},38480:function(le,q,f){"use strict";f.d(q,{Qb:function(){return gd},PW:function(){return Kl}});var U=f(27235),B=f(18967),V=f(14105),Z=f(10509),w=f(97154),R=f(65508),C=f(29176),_=f(739),N=f(20901),D=f(89200),O=f(36683),P=f(10629);function y(){return"undefined"!=typeof window&&void 0!==window.document}function g(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function T(ge){switch(ge.length){case 0:return new _.ZN;case 1:return ge[0];default:return new _.ZE(ge)}}function M(ge,me,J,ee){var Te=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},Be=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},ut=[],Tt=[],Zt=-1,en=null;if(ee.forEach(function(Pn){var Un=Pn.offset,$n=Un==Zt,yr=$n&&en||{};Object.keys(Pn).forEach(function(Br){var wr=Br,Or=Pn[Br];if("offset"!==Br)switch(wr=me.normalizePropertyName(wr,ut),Or){case _.k1:Or=Te[Br];break;case _.l3:Or=Be[Br];break;default:Or=me.normalizeStyleValue(Br,wr,Or,ut)}yr[wr]=Or}),$n||Tt.push(yr),en=yr,Zt=Un}),ut.length){var pn="\n - ";throw new Error("Unable to animate due to the following errors:".concat(pn).concat(ut.join(pn)))}return Tt}function E(ge,me,J,ee){switch(me){case"start":ge.onStart(function(){return ee(J&&x(J,"start",ge))});break;case"done":ge.onDone(function(){return ee(J&&x(J,"done",ge))});break;case"destroy":ge.onDestroy(function(){return ee(J&&x(J,"destroy",ge))})}}function x(ge,me,J){var ee=J.totalTime,Be=S(ge.element,ge.triggerName,ge.fromState,ge.toState,me||ge.phaseName,null==ee?ge.totalTime:ee,!!J.disabled),ut=ge._data;return null!=ut&&(Be._data=ut),Be}function S(ge,me,J,ee){var Te=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",Be=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,ut=arguments.length>6?arguments[6]:void 0;return{element:ge,triggerName:me,fromState:J,toState:ee,phaseName:Te,totalTime:Be,disabled:!!ut}}function A(ge,me,J){var ee;return ge instanceof Map?(ee=ge.get(me))||ge.set(me,ee=J):(ee=ge[me])||(ee=ge[me]=J),ee}function L(ge){var me=ge.indexOf(":");return[ge.substring(1,me),ge.substr(me+1)]}var j=function(me,J){return!1},z=function(me,J){return!1},ae=function(me,J,ee){return[]},se=g();(se||"undefined"!=typeof Element)&&(j=y()?function(me,J){for(;J&&J!==document.documentElement;){if(J===me)return!0;J=J.parentNode||J.host}return!1}:function(me,J){return me.contains(J)},z=function(){if(se||Element.prototype.matches)return function(J,ee){return J.matches(ee)};var ge=Element.prototype,me=ge.matchesSelector||ge.mozMatchesSelector||ge.msMatchesSelector||ge.oMatchesSelector||ge.webkitMatchesSelector;return me?function(J,ee){return me.apply(J,[ee])}:z}(),ae=function(me,J,ee){var Te=[];if(ee)for(var Be=me.querySelectorAll(J),ut=0;ut<Be.length;ut++)Te.push(Be[ut]);else{var Tt=me.querySelector(J);Tt&&Te.push(Tt)}return Te});var de=null,oe=!1;function $(ge){de||(de=("undefined"!=typeof document?document.body:null)||{},oe=!!de.style&&"WebkitAppearance"in de.style);var me=!0;return de.style&&!function(ge){return"ebkit"==ge.substring(1,6)}(ge)&&!(me=ge in de.style)&&oe&&(me="Webkit"+ge.charAt(0).toUpperCase()+ge.substr(1)in de.style),me}var ve=z,et=j,Ne=ae;function gt(ge){var me={};return Object.keys(ge).forEach(function(J){var ee=J.replace(/([a-z])([A-Z])/g,"$1-$2");me[ee]=ge[J]}),me}var _t=function(){var ge=function(){function me(){(0,B.Z)(this,me)}return(0,V.Z)(me,[{key:"validateStyleProperty",value:function(ee){return $(ee)}},{key:"matchesElement",value:function(ee,Te){return ve(ee,Te)}},{key:"containsElement",value:function(ee,Te){return et(ee,Te)}},{key:"query",value:function(ee,Te,Be){return Ne(ee,Te,Be)}},{key:"computeStyle",value:function(ee,Te,Be){return Be||""}},{key:"animate",value:function(ee,Te,Be,ut,Tt){return new _.ZN(Be,ut)}}]),me}();return ge.\u0275fac=function(J){return new(J||ge)},ge.\u0275prov=R.Yz7({token:ge,factory:ge.\u0275fac}),ge}(),Rt=function(){var ge=function me(){(0,B.Z)(this,me)};return ge.NOOP=new _t,ge}(),ct="ng-enter",Xe="ng-leave",vt="ng-trigger",Xt=".ng-trigger",qt="ng-animating",Ct=".ng-animating";function jt(ge){if("number"==typeof ge)return ge;var me=ge.match(/^(-?[\.\d]+)(m?s)/);return!me||me.length<2?0:bt(parseFloat(me[1]),me[2])}function bt(ge,me){switch(me){case"s":return 1e3*ge;default:return ge}}function nn(ge,me,J){return ge.hasOwnProperty("duration")?ge:function(ge,me,J){var Te,Be=0,ut="";if("string"==typeof ge){var Tt=ge.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Tt)return me.push('The provided timing value "'.concat(ge,'" is invalid.')),{duration:0,delay:0,easing:""};Te=bt(parseFloat(Tt[1]),Tt[2]);var Zt=Tt[3];null!=Zt&&(Be=bt(parseFloat(Zt),Tt[4]));var en=Tt[5];en&&(ut=en)}else Te=ge;if(!J){var pn=!1,Pn=me.length;Te<0&&(me.push("Duration values below 0 are not allowed for this animation step."),pn=!0),Be<0&&(me.push("Delay values below 0 are not allowed for this animation step."),pn=!0),pn&&me.splice(Pn,0,'The provided timing value "'.concat(ge,'" is invalid.'))}return{duration:Te,delay:Be,easing:ut}}(ge,me,J)}function an(ge){var me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(ge).forEach(function(J){me[J]=ge[J]}),me}function Hn(ge,me){var J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(me)for(var ee in ge)J[ee]=ge[ee];else an(ge,J);return J}function Zn(ge,me,J){return J?me+":"+J+";":""}function lr(ge){for(var me="",J=0;J<ge.style.length;J++){var ee=ge.style.item(J);me+=Zn(0,ee,ge.style.getPropertyValue(ee))}for(var Te in ge.style)ge.style.hasOwnProperty(Te)&&!Te.startsWith("_")&&(me+=Zn(0,Ye(Te),ge.style[Te]));ge.setAttribute("style",me)}function Bn(ge,me,J){ge.style&&(Object.keys(me).forEach(function(ee){var Te=Ge(ee);J&&!J.hasOwnProperty(ee)&&(J[ee]=ge.style[Te]),ge.style[Te]=me[ee]}),g()&&lr(ge))}function En(ge,me){ge.style&&(Object.keys(me).forEach(function(J){var ee=Ge(J);ge.style[ee]=""}),g()&&lr(ge))}function mr(ge){return Array.isArray(ge)?1==ge.length?ge[0]:(0,_.vP)(ge):ge}var wt=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function ot(ge){var me=[];if("string"==typeof ge){for(var J;J=wt.exec(ge);)me.push(J[1]);wt.lastIndex=0}return me}function _e(ge,me,J){var ee=ge.toString(),Te=ee.replace(wt,function(Be,ut){var Tt=me[ut];return me.hasOwnProperty(ut)||(J.push("Please provide a value for the animation param ".concat(ut)),Tt=""),Tt.toString()});return Te==ee?ge:Te}function re(ge){for(var me=[],J=ge.next();!J.done;)me.push(J.value),J=ge.next();return me}var he=/-+([a-z0-9])/g;function Ge(ge){return ge.replace(he,function(){for(var me=arguments.length,J=new Array(me),ee=0;ee<me;ee++)J[ee]=arguments[ee];return J[1].toUpperCase()})}function Ye(ge){return ge.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function yt(ge,me){return 0===ge||0===me}function Lt(ge,me,J){var ee=Object.keys(J);if(ee.length&&me.length){var Te=me[0],Be=[];if(ee.forEach(function(Zt){Te.hasOwnProperty(Zt)||Be.push(Zt),Te[Zt]=J[Zt]}),Be.length)for(var ut=function(){var en=me[Tt];Be.forEach(function(pn){en[pn]=rn(ge,pn)})},Tt=1;Tt<me.length;Tt++)ut()}return me}function Yt(ge,me,J){switch(me.type){case 7:return ge.visitTrigger(me,J);case 0:return ge.visitState(me,J);case 1:return ge.visitTransition(me,J);case 2:return ge.visitSequence(me,J);case 3:return ge.visitGroup(me,J);case 4:return ge.visitAnimate(me,J);case 5:return ge.visitKeyframes(me,J);case 6:return ge.visitStyle(me,J);case 8:return ge.visitReference(me,J);case 9:return ge.visitAnimateChild(me,J);case 10:return ge.visitAnimateRef(me,J);case 11:return ge.visitQuery(me,J);case 12:return ge.visitStagger(me,J);default:throw new Error("Unable to resolve animation metadata node #".concat(me.type))}}function rn(ge,me){return window.getComputedStyle(ge)[me]}function _n(ge,me){var J=[];return"string"==typeof ge?ge.split(/\s*,\s*/).forEach(function(ee){return function(ge,me,J){if(":"==ge[0]){var ee=function(ge,me){switch(ge){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(J,ee){return parseFloat(ee)>parseFloat(J)};case":decrement":return function(J,ee){return parseFloat(ee)<parseFloat(J)};default:return me.push('The transition alias value "'.concat(ge,'" is not supported')),"* => *"}}(ge,J);if("function"==typeof ee)return void me.push(ee);ge=ee}var Te=ge.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==Te||Te.length<4)return J.push('The provided transition expression "'.concat(ge,'" is not supported')),me;var Be=Te[1],ut=Te[2],Tt=Te[3];me.push(Sn(Be,Tt)),"<"==ut[0]&&!("*"==Be&&"*"==Tt)&&me.push(Sn(Tt,Be))}(ee,J,me)}):J.push(ge),J}var er=new Set(["true","1"]),wn=new Set(["false","0"]);function Sn(ge,me){var J=er.has(ge)||wn.has(ge),ee=er.has(me)||wn.has(me);return function(Te,Be){var ut="*"==ge||ge==Te,Tt="*"==me||me==Be;return!ut&&J&&"boolean"==typeof Te&&(ut=Te?er.has(ge):wn.has(ge)),!Tt&&ee&&"boolean"==typeof Be&&(Tt=Be?er.has(me):wn.has(me)),ut&&Tt}}var Vt=new RegExp("s*".concat(":self","s*,?"),"g");function sn(ge,me,J){return new dt(ge).build(me,J)}var dt=function(){function ge(me){(0,B.Z)(this,ge),this._driver=me}return(0,V.Z)(ge,[{key:"build",value:function(J,ee){var Te=new Ce(ee);return this._resetContextStyleTimingState(Te),Yt(this,mr(J),Te)}},{key:"_resetContextStyleTimingState",value:function(J){J.currentQuerySelector="",J.collectedStyles={},J.collectedStyles[""]={},J.currentTime=0}},{key:"visitTrigger",value:function(J,ee){var Te=this,Be=ee.queryCount=0,ut=ee.depCount=0,Tt=[],Zt=[];return"@"==J.name.charAt(0)&&ee.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),J.definitions.forEach(function(en){if(Te._resetContextStyleTimingState(ee),0==en.type){var pn=en,Pn=pn.name;Pn.toString().split(/\s*,\s*/).forEach(function($n){pn.name=$n,Tt.push(Te.visitState(pn,ee))}),pn.name=Pn}else if(1==en.type){var Un=Te.visitTransition(en,ee);Be+=Un.queryCount,ut+=Un.depCount,Zt.push(Un)}else ee.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:J.name,states:Tt,transitions:Zt,queryCount:Be,depCount:ut,options:null}}},{key:"visitState",value:function(J,ee){var Te=this.visitStyle(J.styles,ee),Be=J.options&&J.options.params||null;if(Te.containsDynamicStyles){var ut=new Set,Tt=Be||{};if(Te.styles.forEach(function(en){if(Ae(en)){var pn=en;Object.keys(pn).forEach(function(Pn){ot(pn[Pn]).forEach(function(Un){Tt.hasOwnProperty(Un)||ut.add(Un)})})}}),ut.size){var Zt=re(ut.values());ee.errors.push('state("'.concat(J.name,'", ...) must define default values for all the following style substitutions: ').concat(Zt.join(", ")))}}return{type:0,name:J.name,style:Te,options:Be?{params:Be}:null}}},{key:"visitTransition",value:function(J,ee){ee.queryCount=0,ee.depCount=0;var Te=Yt(this,mr(J.animation),ee);return{type:1,matchers:_n(J.expr,ee.errors),animation:Te,queryCount:ee.queryCount,depCount:ee.depCount,options:ze(J.options)}}},{key:"visitSequence",value:function(J,ee){var Te=this;return{type:2,steps:J.steps.map(function(Be){return Yt(Te,Be,ee)}),options:ze(J.options)}}},{key:"visitGroup",value:function(J,ee){var Te=this,Be=ee.currentTime,ut=0,Tt=J.steps.map(function(Zt){ee.currentTime=Be;var en=Yt(Te,Zt,ee);return ut=Math.max(ut,ee.currentTime),en});return ee.currentTime=ut,{type:3,steps:Tt,options:ze(J.options)}}},{key:"visitAnimate",value:function(J,ee){var Te=function(ge,me){var J=null;if(ge.hasOwnProperty("duration"))J=ge;else if("number"==typeof ge)return Nt(nn(ge,me).duration,0,"");var Te=ge;if(Te.split(/\s+/).some(function(Tt){return"{"==Tt.charAt(0)&&"{"==Tt.charAt(1)})){var ut=Nt(0,0,"");return ut.dynamic=!0,ut.strValue=Te,ut}return Nt((J=J||nn(Te,me)).duration,J.delay,J.easing)}(J.timings,ee.errors);ee.currentAnimateTimings=Te;var Be,ut=J.styles?J.styles:(0,_.oB)({});if(5==ut.type)Be=this.visitKeyframes(ut,ee);else{var Tt=J.styles,Zt=!1;if(!Tt){Zt=!0;var en={};Te.easing&&(en.easing=Te.easing),Tt=(0,_.oB)(en)}ee.currentTime+=Te.duration+Te.delay;var pn=this.visitStyle(Tt,ee);pn.isEmptyStep=Zt,Be=pn}return ee.currentAnimateTimings=null,{type:4,timings:Te,style:Be,options:null}}},{key:"visitStyle",value:function(J,ee){var Te=this._makeStyleAst(J,ee);return this._validateStyleAst(Te,ee),Te}},{key:"_makeStyleAst",value:function(J,ee){var Te=[];Array.isArray(J.styles)?J.styles.forEach(function(Tt){"string"==typeof Tt?Tt==_.l3?Te.push(Tt):ee.errors.push("The provided style string value ".concat(Tt," is not allowed.")):Te.push(Tt)}):Te.push(J.styles);var Be=!1,ut=null;return Te.forEach(function(Tt){if(Ae(Tt)){var Zt=Tt,en=Zt.easing;if(en&&(ut=en,delete Zt.easing),!Be)for(var pn in Zt)if(Zt[pn].toString().indexOf("{{")>=0){Be=!0;break}}}),{type:6,styles:Te,easing:ut,offset:J.offset,containsDynamicStyles:Be,options:null}}},{key:"_validateStyleAst",value:function(J,ee){var Te=this,Be=ee.currentAnimateTimings,ut=ee.currentTime,Tt=ee.currentTime;Be&&Tt>0&&(Tt-=Be.duration+Be.delay),J.styles.forEach(function(Zt){"string"!=typeof Zt&&Object.keys(Zt).forEach(function(en){if(Te._driver.validateStyleProperty(en)){var pn=ee.collectedStyles[ee.currentQuerySelector],Pn=pn[en],Un=!0;Pn&&(Tt!=ut&&Tt>=Pn.startTime&&ut<=Pn.endTime&&(ee.errors.push('The CSS property "'.concat(en,'" that exists between the times of "').concat(Pn.startTime,'ms" and "').concat(Pn.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(Tt,'ms" and "').concat(ut,'ms"')),Un=!1),Tt=Pn.startTime),Un&&(pn[en]={startTime:Tt,endTime:ut}),ee.options&&function(ge,me,J){var ee=me.params||{},Te=ot(ge);Te.length&&Te.forEach(function(Be){ee.hasOwnProperty(Be)||J.push("Unable to resolve the local animation param ".concat(Be," in the given list of values"))})}(Zt[en],ee.options,ee.errors)}else ee.errors.push('The provided animation property "'.concat(en,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(J,ee){var Te=this,Be={type:5,styles:[],options:null};if(!ee.currentAnimateTimings)return ee.errors.push("keyframes() must be placed inside of a call to animate()"),Be;var Tt=0,Zt=[],en=!1,pn=!1,Pn=0,Un=J.steps.map(function(Si){var si=Te._makeStyleAst(Si,ee),vo=null!=si.offset?si.offset:function(ge){if("string"==typeof ge)return null;var me=null;if(Array.isArray(ge))ge.forEach(function(ee){if(Ae(ee)&&ee.hasOwnProperty("offset")){var Te=ee;me=parseFloat(Te.offset),delete Te.offset}});else if(Ae(ge)&&ge.hasOwnProperty("offset")){var J=ge;me=parseFloat(J.offset),delete J.offset}return me}(si.styles),Re=0;return null!=vo&&(Tt++,Re=si.offset=vo),pn=pn||Re<0||Re>1,en=en||Re<Pn,Pn=Re,Zt.push(Re),si});pn&&ee.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),en&&ee.errors.push("Please ensure that all keyframe offsets are in order");var $n=J.steps.length,yr=0;Tt>0&&Tt<$n?ee.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==Tt&&(yr=1/($n-1));var Br=$n-1,wr=ee.currentTime,Or=ee.currentAnimateTimings,di=Or.duration;return Un.forEach(function(Si,si){var vo=yr>0?si==Br?1:yr*si:Zt[si],Re=vo*di;ee.currentTime=wr+Or.delay+Re,Or.duration=Re,Te._validateStyleAst(Si,ee),Si.offset=vo,Be.styles.push(Si)}),Be}},{key:"visitReference",value:function(J,ee){return{type:8,animation:Yt(this,mr(J.animation),ee),options:ze(J.options)}}},{key:"visitAnimateChild",value:function(J,ee){return ee.depCount++,{type:9,options:ze(J.options)}}},{key:"visitAnimateRef",value:function(J,ee){return{type:10,animation:this.visitReference(J.animation,ee),options:ze(J.options)}}},{key:"visitQuery",value:function(J,ee){var Te=ee.currentQuerySelector,Be=J.options||{};ee.queryCount++,ee.currentQuery=J;var ut=function(ge){var me=!!ge.split(/\s*,\s*/).find(function(J){return":self"==J});return me&&(ge=ge.replace(Vt,"")),[ge=ge.replace(/@\*/g,Xt).replace(/@\w+/g,function(J){return Xt+"-"+J.substr(1)}).replace(/:animating/g,Ct),me]}(J.selector),Tt=(0,U.Z)(ut,2),Zt=Tt[0],en=Tt[1];ee.currentQuerySelector=Te.length?Te+" "+Zt:Zt,A(ee.collectedStyles,ee.currentQuerySelector,{});var pn=Yt(this,mr(J.animation),ee);return ee.currentQuery=null,ee.currentQuerySelector=Te,{type:11,selector:Zt,limit:Be.limit||0,optional:!!Be.optional,includeSelf:en,animation:pn,originalSelector:J.selector,options:ze(J.options)}}},{key:"visitStagger",value:function(J,ee){ee.currentQuery||ee.errors.push("stagger() can only be used inside of query()");var Te="full"===J.timings?{duration:0,delay:0,easing:"full"}:nn(J.timings,ee.errors,!0);return{type:12,animation:Yt(this,mr(J.animation),ee),timings:Te,options:null}}}]),ge}(),Ce=function ge(me){(0,B.Z)(this,ge),this.errors=me,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 Ae(ge){return!Array.isArray(ge)&&"object"==typeof ge}function ze(ge){return ge?(ge=an(ge)).params&&(ge.params=function(ge){return ge?an(ge):null}(ge.params)):ge={},ge}function Nt(ge,me,J){return{duration:ge,delay:me,easing:J}}function mn(ge,me,J,ee,Te,Be){var ut=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,Tt=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:ge,keyframes:me,preStyleProps:J,postStyleProps:ee,duration:Te,delay:Be,totalTime:Te+Be,easing:ut,subTimeline:Tt}}var Xn=function(){function ge(){(0,B.Z)(this,ge),this._map=new Map}return(0,V.Z)(ge,[{key:"consume",value:function(J){var ee=this._map.get(J);return ee?this._map.delete(J):ee=[],ee}},{key:"append",value:function(J,ee){var Te,Be=this._map.get(J);Be||this._map.set(J,Be=[]),(Te=Be).push.apply(Te,(0,P.Z)(ee))}},{key:"has",value:function(J){return this._map.has(J)}},{key:"clear",value:function(){this._map.clear()}}]),ge}(),Ir=new RegExp(":enter","g"),co=new RegExp(":leave","g");function Gi(ge,me,J,ee,Te){var Be=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},ut=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},Tt=arguments.length>7?arguments[7]:void 0,Zt=arguments.length>8?arguments[8]:void 0,en=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Yo).buildKeyframes(ge,me,J,ee,Te,Be,ut,Tt,Zt,en)}var Yo=function(){function ge(){(0,B.Z)(this,ge)}return(0,V.Z)(ge,[{key:"buildKeyframes",value:function(J,ee,Te,Be,ut,Tt,Zt,en,pn){var Pn=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];pn=pn||new Xn;var Un=new vs(J,ee,pn,Be,ut,Pn,[]);Un.options=en,Un.currentTimeline.setStyles([Tt],null,Un.errors,en),Yt(this,Te,Un);var $n=Un.timelines.filter(function(Br){return Br.containsAnimation()});if($n.length&&Object.keys(Zt).length){var yr=$n[$n.length-1];yr.allowOnlyTimelineStyles()||yr.setStyles([Zt],null,Un.errors,en)}return $n.length?$n.map(function(Br){return Br.buildKeyframes()}):[mn(ee,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(J,ee){}},{key:"visitState",value:function(J,ee){}},{key:"visitTransition",value:function(J,ee){}},{key:"visitAnimateChild",value:function(J,ee){var Te=ee.subInstructions.consume(ee.element);if(Te){var Be=ee.createSubContext(J.options),ut=ee.currentTimeline.currentTime,Tt=this._visitSubInstructions(Te,Be,Be.options);ut!=Tt&&ee.transformIntoNewTimeline(Tt)}ee.previousNode=J}},{key:"visitAnimateRef",value:function(J,ee){var Te=ee.createSubContext(J.options);Te.transformIntoNewTimeline(),this.visitReference(J.animation,Te),ee.transformIntoNewTimeline(Te.currentTimeline.currentTime),ee.previousNode=J}},{key:"_visitSubInstructions",value:function(J,ee,Te){var ut=ee.currentTimeline.currentTime,Tt=null!=Te.duration?jt(Te.duration):null,Zt=null!=Te.delay?jt(Te.delay):null;return 0!==Tt&&J.forEach(function(en){var pn=ee.appendInstructionToTimeline(en,Tt,Zt);ut=Math.max(ut,pn.duration+pn.delay)}),ut}},{key:"visitReference",value:function(J,ee){ee.updateOptions(J.options,!0),Yt(this,J.animation,ee),ee.previousNode=J}},{key:"visitSequence",value:function(J,ee){var Te=this,Be=ee.subContextCount,ut=ee,Tt=J.options;if(Tt&&(Tt.params||Tt.delay)&&((ut=ee.createSubContext(Tt)).transformIntoNewTimeline(),null!=Tt.delay)){6==ut.previousNode.type&&(ut.currentTimeline.snapshotCurrentStyles(),ut.previousNode=fa);var Zt=jt(Tt.delay);ut.delayNextStep(Zt)}J.steps.length&&(J.steps.forEach(function(en){return Yt(Te,en,ut)}),ut.currentTimeline.applyStylesToKeyframe(),ut.subContextCount>Be&&ut.transformIntoNewTimeline()),ee.previousNode=J}},{key:"visitGroup",value:function(J,ee){var Te=this,Be=[],ut=ee.currentTimeline.currentTime,Tt=J.options&&J.options.delay?jt(J.options.delay):0;J.steps.forEach(function(Zt){var en=ee.createSubContext(J.options);Tt&&en.delayNextStep(Tt),Yt(Te,Zt,en),ut=Math.max(ut,en.currentTimeline.currentTime),Be.push(en.currentTimeline)}),Be.forEach(function(Zt){return ee.currentTimeline.mergeTimelineCollectedStyles(Zt)}),ee.transformIntoNewTimeline(ut),ee.previousNode=J}},{key:"_visitTiming",value:function(J,ee){if(J.dynamic){var Te=J.strValue;return nn(ee.params?_e(Te,ee.params,ee.errors):Te,ee.errors)}return{duration:J.duration,delay:J.delay,easing:J.easing}}},{key:"visitAnimate",value:function(J,ee){var Te=ee.currentAnimateTimings=this._visitTiming(J.timings,ee),Be=ee.currentTimeline;Te.delay&&(ee.incrementTime(Te.delay),Be.snapshotCurrentStyles());var ut=J.style;5==ut.type?this.visitKeyframes(ut,ee):(ee.incrementTime(Te.duration),this.visitStyle(ut,ee),Be.applyStylesToKeyframe()),ee.currentAnimateTimings=null,ee.previousNode=J}},{key:"visitStyle",value:function(J,ee){var Te=ee.currentTimeline,Be=ee.currentAnimateTimings;!Be&&Te.getCurrentStyleProperties().length&&Te.forwardFrame();var ut=Be&&Be.easing||J.easing;J.isEmptyStep?Te.applyEmptyStep(ut):Te.setStyles(J.styles,ut,ee.errors,ee.options),ee.previousNode=J}},{key:"visitKeyframes",value:function(J,ee){var Te=ee.currentAnimateTimings,Be=ee.currentTimeline.duration,ut=Te.duration,Zt=ee.createSubContext().currentTimeline;Zt.easing=Te.easing,J.styles.forEach(function(en){Zt.forwardTime((en.offset||0)*ut),Zt.setStyles(en.styles,en.easing,ee.errors,ee.options),Zt.applyStylesToKeyframe()}),ee.currentTimeline.mergeTimelineCollectedStyles(Zt),ee.transformIntoNewTimeline(Be+ut),ee.previousNode=J}},{key:"visitQuery",value:function(J,ee){var Te=this,Be=ee.currentTimeline.currentTime,ut=J.options||{},Tt=ut.delay?jt(ut.delay):0;Tt&&(6===ee.previousNode.type||0==Be&&ee.currentTimeline.getCurrentStyleProperties().length)&&(ee.currentTimeline.snapshotCurrentStyles(),ee.previousNode=fa);var Zt=Be,en=ee.invokeQuery(J.selector,J.originalSelector,J.limit,J.includeSelf,!!ut.optional,ee.errors);ee.currentQueryTotal=en.length;var pn=null;en.forEach(function(Pn,Un){ee.currentQueryIndex=Un;var $n=ee.createSubContext(J.options,Pn);Tt&&$n.delayNextStep(Tt),Pn===ee.element&&(pn=$n.currentTimeline),Yt(Te,J.animation,$n),$n.currentTimeline.applyStylesToKeyframe(),Zt=Math.max(Zt,$n.currentTimeline.currentTime)}),ee.currentQueryIndex=0,ee.currentQueryTotal=0,ee.transformIntoNewTimeline(Zt),pn&&(ee.currentTimeline.mergeTimelineCollectedStyles(pn),ee.currentTimeline.snapshotCurrentStyles()),ee.previousNode=J}},{key:"visitStagger",value:function(J,ee){var Te=ee.parentContext,Be=ee.currentTimeline,ut=J.timings,Tt=Math.abs(ut.duration),Zt=Tt*(ee.currentQueryTotal-1),en=Tt*ee.currentQueryIndex;switch(ut.duration<0?"reverse":ut.easing){case"reverse":en=Zt-en;break;case"full":en=Te.currentStaggerTime}var Pn=ee.currentTimeline;en&&Pn.delayNextStep(en);var Un=Pn.currentTime;Yt(this,J.animation,ee),ee.previousNode=J,Te.currentStaggerTime=Be.currentTime-Un+(Be.startTime-Te.currentTimeline.startTime)}}]),ge}(),fa={},vs=function(){function ge(me,J,ee,Te,Be,ut,Tt,Zt){(0,B.Z)(this,ge),this._driver=me,this.element=J,this.subInstructions=ee,this._enterClassName=Te,this._leaveClassName=Be,this.errors=ut,this.timelines=Tt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=fa,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Zt||new bo(this._driver,J,0),Tt.push(this.currentTimeline)}return(0,V.Z)(ge,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(J,ee){var Te=this;if(J){var Be=J,ut=this.options;null!=Be.duration&&(ut.duration=jt(Be.duration)),null!=Be.delay&&(ut.delay=jt(Be.delay));var Tt=Be.params;if(Tt){var Zt=ut.params;Zt||(Zt=this.options.params={}),Object.keys(Tt).forEach(function(en){(!ee||!Zt.hasOwnProperty(en))&&(Zt[en]=_e(Tt[en],Zt,Te.errors))})}}}},{key:"_copyOptions",value:function(){var J={};if(this.options){var ee=this.options.params;if(ee){var Te=J.params={};Object.keys(ee).forEach(function(Be){Te[Be]=ee[Be]})}}return J}},{key:"createSubContext",value:function(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ee=arguments.length>1?arguments[1]:void 0,Te=arguments.length>2?arguments[2]:void 0,Be=ee||this.element,ut=new ge(this._driver,Be,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Be,Te||0));return ut.previousNode=this.previousNode,ut.currentAnimateTimings=this.currentAnimateTimings,ut.options=this._copyOptions(),ut.updateOptions(J),ut.currentQueryIndex=this.currentQueryIndex,ut.currentQueryTotal=this.currentQueryTotal,ut.parentContext=this,this.subContextCount++,ut}},{key:"transformIntoNewTimeline",value:function(J){return this.previousNode=fa,this.currentTimeline=this.currentTimeline.fork(this.element,J),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(J,ee,Te){var Be={duration:null!=ee?ee:J.duration,delay:this.currentTimeline.currentTime+(null!=Te?Te:0)+J.delay,easing:""},ut=new wa(this._driver,J.element,J.keyframes,J.preStyleProps,J.postStyleProps,Be,J.stretchStartingKeyframe);return this.timelines.push(ut),Be}},{key:"incrementTime",value:function(J){this.currentTimeline.forwardTime(this.currentTimeline.duration+J)}},{key:"delayNextStep",value:function(J){J>0&&this.currentTimeline.delayNextStep(J)}},{key:"invokeQuery",value:function(J,ee,Te,Be,ut,Tt){var Zt=[];if(Be&&Zt.push(this.element),J.length>0){J=(J=J.replace(Ir,"."+this._enterClassName)).replace(co,"."+this._leaveClassName);var pn=this._driver.query(this.element,J,1!=Te);0!==Te&&(pn=Te<0?pn.slice(pn.length+Te,pn.length):pn.slice(0,Te)),Zt.push.apply(Zt,(0,P.Z)(pn))}return!ut&&0==Zt.length&&Tt.push('`query("'.concat(ee,'")` returned zero elements. (Use `query("').concat(ee,'", { optional: true })` if you wish to allow this.)')),Zt}}]),ge}(),bo=function(){function ge(me,J,ee,Te){(0,B.Z)(this,ge),this._driver=me,this.element=J,this.startTime=ee,this._elementTimelineStylesLookup=Te,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(J),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(J,this._localTimelineStyles)),this._loadKeyframe()}return(0,V.Z)(ge,[{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(J){var ee=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||ee?(this.forwardTime(this.currentTime+J),ee&&this.snapshotCurrentStyles()):this.startTime+=J}},{key:"fork",value:function(J,ee){return this.applyStylesToKeyframe(),new ge(this._driver,J,ee||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(J){this.applyStylesToKeyframe(),this.duration=J,this._loadKeyframe()}},{key:"_updateStyle",value:function(J,ee){this._localTimelineStyles[J]=ee,this._globalTimelineStyles[J]=ee,this._styleSummary[J]={time:this.currentTime,value:ee}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(J){var ee=this;J&&(this._previousKeyframe.easing=J),Object.keys(this._globalTimelineStyles).forEach(function(Te){ee._backFill[Te]=ee._globalTimelineStyles[Te]||_.l3,ee._currentKeyframe[Te]=_.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(J,ee,Te,Be){var ut=this;ee&&(this._previousKeyframe.easing=ee);var Tt=Be&&Be.params||{},Zt=function(ge,me){var ee,J={};return ge.forEach(function(Te){"*"===Te?(ee=ee||Object.keys(me)).forEach(function(Be){J[Be]=_.l3}):Hn(Te,!1,J)}),J}(J,this._globalTimelineStyles);Object.keys(Zt).forEach(function(en){var pn=_e(Zt[en],Tt,Te);ut._pendingStyles[en]=pn,ut._localTimelineStyles.hasOwnProperty(en)||(ut._backFill[en]=ut._globalTimelineStyles.hasOwnProperty(en)?ut._globalTimelineStyles[en]:_.l3),ut._updateStyle(en,pn)})}},{key:"applyStylesToKeyframe",value:function(){var J=this,ee=this._pendingStyles,Te=Object.keys(ee);0!=Te.length&&(this._pendingStyles={},Te.forEach(function(Be){J._currentKeyframe[Be]=ee[Be]}),Object.keys(this._localTimelineStyles).forEach(function(Be){J._currentKeyframe.hasOwnProperty(Be)||(J._currentKeyframe[Be]=J._localTimelineStyles[Be])}))}},{key:"snapshotCurrentStyles",value:function(){var J=this;Object.keys(this._localTimelineStyles).forEach(function(ee){var Te=J._localTimelineStyles[ee];J._pendingStyles[ee]=Te,J._updateStyle(ee,Te)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var J=[];for(var ee in this._currentKeyframe)J.push(ee);return J}},{key:"mergeTimelineCollectedStyles",value:function(J){var ee=this;Object.keys(J._styleSummary).forEach(function(Te){var Be=ee._styleSummary[Te],ut=J._styleSummary[Te];(!Be||ut.time>Be.time)&&ee._updateStyle(Te,ut.value)})}},{key:"buildKeyframes",value:function(){var J=this;this.applyStylesToKeyframe();var ee=new Set,Te=new Set,Be=1===this._keyframes.size&&0===this.duration,ut=[];this._keyframes.forEach(function(Pn,Un){var $n=Hn(Pn,!0);Object.keys($n).forEach(function(yr){var Br=$n[yr];Br==_.k1?ee.add(yr):Br==_.l3&&Te.add(yr)}),Be||($n.offset=Un/J.duration),ut.push($n)});var Tt=ee.size?re(ee.values()):[],Zt=Te.size?re(Te.values()):[];if(Be){var en=ut[0],pn=an(en);en.offset=0,pn.offset=1,ut=[en,pn]}return mn(this.element,ut,Tt,Zt,this.duration,this.startTime,this.easing,!1)}}]),ge}(),wa=function(ge){(0,Z.Z)(J,ge);var me=(0,w.Z)(J);function J(ee,Te,Be,ut,Tt,Zt){var en,pn=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,B.Z)(this,J),(en=me.call(this,ee,Te,Zt.delay)).keyframes=Be,en.preStyleProps=ut,en.postStyleProps=Tt,en._stretchStartingKeyframe=pn,en.timings={duration:Zt.duration,delay:Zt.delay,easing:Zt.easing},en}return(0,V.Z)(J,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var Te=this.keyframes,Be=this.timings,ut=Be.delay,Tt=Be.duration,Zt=Be.easing;if(this._stretchStartingKeyframe&&ut){var en=[],pn=Tt+ut,Pn=ut/pn,Un=Hn(Te[0],!1);Un.offset=0,en.push(Un);var $n=Hn(Te[0],!1);$n.offset=Yi(Pn),en.push($n);for(var yr=Te.length-1,Br=1;Br<=yr;Br++){var wr=Hn(Te[Br],!1);wr.offset=Yi((ut+wr.offset*Tt)/pn),en.push(wr)}Tt=pn,ut=0,Zt="",Te=en}return mn(this.element,Te,this.preStyleProps,this.postStyleProps,Tt,ut,Zt,!0)}}]),J}(bo);function Yi(ge){var me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,J=Math.pow(10,me-1);return Math.round(ge*J)/J}var Fi=function ge(){(0,B.Z)(this,ge)},Zi=function(ge){(0,Z.Z)(J,ge);var me=(0,w.Z)(J);function J(){return(0,B.Z)(this,J),me.apply(this,arguments)}return(0,V.Z)(J,[{key:"normalizePropertyName",value:function(Te,Be){return Ge(Te)}},{key:"normalizeStyleValue",value:function(Te,Be,ut,Tt){var Zt="",en=ut.toString().trim();if(It[Be]&&0!==ut&&"0"!==ut)if("number"==typeof ut)Zt="px";else{var pn=ut.match(/^[+-]?[\d\.]+([a-z]*)$/);pn&&0==pn[1].length&&Tt.push("Please provide a CSS unit value for ".concat(Te,":").concat(ut))}return en+Zt}}]),J}(Fi),It=function(){return ge="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(","),me={},ge.forEach(function(J){return me[J]=!0}),me;var ge,me}();function Pt(ge,me,J,ee,Te,Be,ut,Tt,Zt,en,pn,Pn,Un){return{type:0,element:ge,triggerName:me,isRemovalTransition:Te,fromState:J,fromStyles:Be,toState:ee,toStyles:ut,timelines:Tt,queriedElements:Zt,preStyleProps:en,postStyleProps:pn,totalTime:Pn,errors:Un}}var zt={},$t=function(){function ge(me,J,ee){(0,B.Z)(this,ge),this._triggerName=me,this.ast=J,this._stateStyles=ee}return(0,V.Z)(ge,[{key:"match",value:function(J,ee,Te,Be){return function(ge,me,J,ee,Te){return ge.some(function(Be){return Be(me,J,ee,Te)})}(this.ast.matchers,J,ee,Te,Be)}},{key:"buildStyles",value:function(J,ee,Te){var Be=this._stateStyles["*"],ut=this._stateStyles[J],Tt=Be?Be.buildStyles(ee,Te):{};return ut?ut.buildStyles(ee,Te):Tt}},{key:"build",value:function(J,ee,Te,Be,ut,Tt,Zt,en,pn,Pn){var Un=[],$n=this.ast.options&&this.ast.options.params||zt,Br=this.buildStyles(Te,Zt&&Zt.params||zt,Un),wr=en&&en.params||zt,Or=this.buildStyles(Be,wr,Un),di=new Set,Si=new Map,si=new Map,vo="void"===Be,Re={params:Object.assign(Object.assign({},$n),wr)},We=Pn?[]:Gi(J,ee,this.ast.animation,ut,Tt,Br,Or,Re,pn,Un),be=0;if(We.forEach(function(De){be=Math.max(De.duration+De.delay,be)}),Un.length)return Pt(ee,this._triggerName,Te,Be,vo,Br,Or,[],[],Si,si,be,Un);We.forEach(function(De){var rt=De.element,St=A(Si,rt,{});De.preStyleProps.forEach(function(Cn){return St[Cn]=!0});var un=A(si,rt,{});De.postStyleProps.forEach(function(Cn){return un[Cn]=!0}),rt!==ee&&di.add(rt)});var Ze=re(di.values());return Pt(ee,this._triggerName,Te,Be,vo,Br,Or,We,Ze,Si,si,be)}}]),ge}(),bn=function(){function ge(me,J,ee){(0,B.Z)(this,ge),this.styles=me,this.defaultParams=J,this.normalizer=ee}return(0,V.Z)(ge,[{key:"buildStyles",value:function(J,ee){var Te=this,Be={},ut=an(this.defaultParams);return Object.keys(J).forEach(function(Tt){var Zt=J[Tt];null!=Zt&&(ut[Tt]=Zt)}),this.styles.styles.forEach(function(Tt){if("string"!=typeof Tt){var Zt=Tt;Object.keys(Zt).forEach(function(en){var pn=Zt[en];pn.length>1&&(pn=_e(pn,ut,ee));var Pn=Te.normalizer.normalizePropertyName(en,ee);pn=Te.normalizer.normalizeStyleValue(en,Pn,pn,ee),Be[Pn]=pn})}}),Be}}]),ge}(),Wn=function(){function ge(me,J,ee){var Te=this;(0,B.Z)(this,ge),this.name=me,this.ast=J,this._normalizer=ee,this.transitionFactories=[],this.states={},J.states.forEach(function(Be){Te.states[Be.name]=new bn(Be.style,Be.options&&Be.options.params||{},ee)}),mi(this.states,"true","1"),mi(this.states,"false","0"),J.transitions.forEach(function(Be){Te.transitionFactories.push(new $t(me,Be,Te.states))}),this.fallbackTransition=function(ge,me,J){return new $t(ge,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(ut,Tt){return!0}],options:null,queryCount:0,depCount:0},me)}(me,this.states)}return(0,V.Z)(ge,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(J,ee,Te,Be){return this.transitionFactories.find(function(Tt){return Tt.match(J,ee,Te,Be)})||null}},{key:"matchStyles",value:function(J,ee,Te){return this.fallbackTransition.buildStyles(J,ee,Te)}}]),ge}();function mi(ge,me,J){ge.hasOwnProperty(me)?ge.hasOwnProperty(J)||(ge[J]=ge[me]):ge.hasOwnProperty(J)&&(ge[me]=ge[J])}var Bi=new Xn,ao=function(){function ge(me,J,ee){(0,B.Z)(this,ge),this.bodyNode=me,this._driver=J,this._normalizer=ee,this._animations={},this._playersById={},this.players=[]}return(0,V.Z)(ge,[{key:"register",value:function(J,ee){var Te=[],Be=sn(this._driver,ee,Te);if(Te.length)throw new Error("Unable to build the animation due to the following errors: ".concat(Te.join("\n")));this._animations[J]=Be}},{key:"_buildPlayer",value:function(J,ee,Te){var Be=J.element,ut=M(this._driver,this._normalizer,Be,J.keyframes,ee,Te);return this._driver.animate(Be,ut,J.duration,J.delay,J.easing,[],!0)}},{key:"create",value:function(J,ee){var Zt,Te=this,Be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ut=[],Tt=this._animations[J],en=new Map;if(Tt?(Zt=Gi(this._driver,ee,Tt,ct,Xe,{},{},Be,Bi,ut)).forEach(function(Un){var $n=A(en,Un.element,{});Un.postStyleProps.forEach(function(yr){return $n[yr]=null})}):(ut.push("The requested animation doesn't exist or has already been destroyed"),Zt=[]),ut.length)throw new Error("Unable to create the animation due to the following errors: ".concat(ut.join("\n")));en.forEach(function(Un,$n){Object.keys(Un).forEach(function(yr){Un[yr]=Te._driver.computeStyle($n,yr,_.l3)})});var pn=Zt.map(function(Un){var $n=en.get(Un.element);return Te._buildPlayer(Un,{},$n)}),Pn=T(pn);return this._playersById[J]=Pn,Pn.onDestroy(function(){return Te.destroy(J)}),this.players.push(Pn),Pn}},{key:"destroy",value:function(J){var ee=this._getPlayer(J);ee.destroy(),delete this._playersById[J];var Te=this.players.indexOf(ee);Te>=0&&this.players.splice(Te,1)}},{key:"_getPlayer",value:function(J){var ee=this._playersById[J];if(!ee)throw new Error("Unable to find the timeline player referenced by ".concat(J));return ee}},{key:"listen",value:function(J,ee,Te,Be){var ut=S(ee,"","","");return E(this._getPlayer(J),Te,ut,Be),function(){}}},{key:"command",value:function(J,ee,Te,Be){if("register"!=Te)if("create"!=Te){var Tt=this._getPlayer(J);switch(Te){case"play":Tt.play();break;case"pause":Tt.pause();break;case"reset":Tt.reset();break;case"restart":Tt.restart();break;case"finish":Tt.finish();break;case"init":Tt.init();break;case"setPosition":Tt.setPosition(parseFloat(Be[0]));break;case"destroy":this.destroy(J)}}else this.create(J,ee,Be[0]||{});else this.register(J,Be[0])}}]),ge}(),Mo="ng-animate-queued",Jo="ng-animate-disabled",La=".ng-animate-disabled",Ao="ng-star-inserted",ka=[],fo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ui={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},so="__ng_removed",Fa=function(){function ge(me){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,B.Z)(this,ge),this.namespaceId=J;var ee=me&&me.hasOwnProperty("value"),Te=ee?me.value:me;if(this.value=pl(Te),ee){var Be=an(me);delete Be.value,this.options=Be}else this.options={};this.options.params||(this.options.params={})}return(0,V.Z)(ge,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(J){var ee=J.params;if(ee){var Te=this.options.params;Object.keys(ee).forEach(function(Be){null==Te[Be]&&(Te[Be]=ee[Be])})}}}]),ge}(),ki="void",ho=new Fa(ki),mo=function(){function ge(me,J,ee){(0,B.Z)(this,ge),this.id=me,this.hostElement=J,this._engine=ee,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+me,Bo(J,this._hostClassName)}return(0,V.Z)(ge,[{key:"listen",value:function(J,ee,Te,Be){var ut=this;if(!this._triggers.hasOwnProperty(ee))throw new Error('Unable to listen on the animation trigger event "'.concat(Te,'" because the animation trigger "').concat(ee,"\" doesn't exist!"));if(null==Te||0==Te.length)throw new Error('Unable to listen on the animation trigger "'.concat(ee,'" because the provided event is undefined!'));if(!function(ge){return"start"==ge||"done"==ge}(Te))throw new Error('The provided animation trigger event "'.concat(Te,'" for the animation trigger "').concat(ee,'" is not supported!'));var Tt=A(this._elementListeners,J,[]),Zt={name:ee,phase:Te,callback:Be};Tt.push(Zt);var en=A(this._engine.statesByElement,J,{});return en.hasOwnProperty(ee)||(Bo(J,vt),Bo(J,vt+"-"+ee),en[ee]=ho),function(){ut._engine.afterFlush(function(){var pn=Tt.indexOf(Zt);pn>=0&&Tt.splice(pn,1),ut._triggers[ee]||delete en[ee]})}}},{key:"register",value:function(J,ee){return!this._triggers[J]&&(this._triggers[J]=ee,!0)}},{key:"_getTrigger",value:function(J){var ee=this._triggers[J];if(!ee)throw new Error('The provided animation trigger "'.concat(J,'" has not been registered!'));return ee}},{key:"trigger",value:function(J,ee,Te){var Be=this,ut=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],Tt=this._getTrigger(ee),Zt=new ui(this.id,ee,J),en=this._engine.statesByElement.get(J);en||(Bo(J,vt),Bo(J,vt+"-"+ee),this._engine.statesByElement.set(J,en={}));var pn=en[ee],Pn=new Fa(Te,this.id),Un=Te&&Te.hasOwnProperty("value");!Un&&pn&&Pn.absorbOptions(pn.options),en[ee]=Pn,pn||(pn=ho);var $n=Pn.value===ki;if($n||pn.value!==Pn.value){var Or=A(this._engine.playersByElement,J,[]);Or.forEach(function(si){si.namespaceId==Be.id&&si.triggerName==ee&&si.queued&&si.destroy()});var di=Tt.matchTransition(pn.value,Pn.value,J,Pn.params),Si=!1;if(!di){if(!ut)return;di=Tt.fallbackTransition,Si=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:J,triggerName:ee,transition:di,fromState:pn,toState:Pn,player:Zt,isFallbackTransition:Si}),Si||(Bo(J,Mo),Zt.onStart(function(){Us(J,Mo)})),Zt.onDone(function(){var si=Be.players.indexOf(Zt);si>=0&&Be.players.splice(si,1);var vo=Be._engine.playersByElement.get(J);if(vo){var Re=vo.indexOf(Zt);Re>=0&&vo.splice(Re,1)}}),this.players.push(Zt),Or.push(Zt),Zt}if(!md(pn.params,Pn.params)){var yr=[],Br=Tt.matchStyles(pn.value,pn.params,yr),wr=Tt.matchStyles(Pn.value,Pn.params,yr);yr.length?this._engine.reportError(yr):this._engine.afterFlush(function(){En(J,Br),Bn(J,wr)})}}},{key:"deregister",value:function(J){var ee=this;delete this._triggers[J],this._engine.statesByElement.forEach(function(Te,Be){delete Te[J]}),this._elementListeners.forEach(function(Te,Be){ee._elementListeners.set(Be,Te.filter(function(ut){return ut.name!=J}))})}},{key:"clearElementCache",value:function(J){this._engine.statesByElement.delete(J),this._elementListeners.delete(J);var ee=this._engine.playersByElement.get(J);ee&&(ee.forEach(function(Te){return Te.destroy()}),this._engine.playersByElement.delete(J))}},{key:"_signalRemovalForInnerTriggers",value:function(J,ee){var Te=this,Be=this._engine.driver.query(J,Xt,!0);Be.forEach(function(ut){if(!ut[so]){var Tt=Te._engine.fetchNamespacesByElement(ut);Tt.size?Tt.forEach(function(Zt){return Zt.triggerLeaveAnimation(ut,ee,!1,!0)}):Te.clearElementCache(ut)}}),this._engine.afterFlushAnimationsDone(function(){return Be.forEach(function(ut){return Te.clearElementCache(ut)})})}},{key:"triggerLeaveAnimation",value:function(J,ee,Te,Be){var ut=this,Tt=this._engine.statesByElement.get(J);if(Tt){var Zt=[];if(Object.keys(Tt).forEach(function(en){if(ut._triggers[en]){var pn=ut.trigger(J,en,ki,Be);pn&&Zt.push(pn)}}),Zt.length)return this._engine.markElementAsRemoved(this.id,J,!0,ee),Te&&T(Zt).onDone(function(){return ut._engine.processLeaveNode(J)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(J){var ee=this,Te=this._elementListeners.get(J),Be=this._engine.statesByElement.get(J);if(Te&&Be){var ut=new Set;Te.forEach(function(Tt){var Zt=Tt.name;if(!ut.has(Zt)){ut.add(Zt);var pn=ee._triggers[Zt].fallbackTransition,Pn=Be[Zt]||ho,Un=new Fa(ki),$n=new ui(ee.id,Zt,J);ee._engine.totalQueuedPlayers++,ee._queue.push({element:J,triggerName:Zt,transition:pn,fromState:Pn,toState:Un,player:$n,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(J,ee){var Te=this,Be=this._engine;if(J.childElementCount&&this._signalRemovalForInnerTriggers(J,ee),!this.triggerLeaveAnimation(J,ee,!0)){var ut=!1;if(Be.totalAnimations){var Tt=Be.players.length?Be.playersByQueriedElement.get(J):[];if(Tt&&Tt.length)ut=!0;else for(var Zt=J;Zt=Zt.parentNode;)if(Be.statesByElement.get(Zt)){ut=!0;break}}if(this.prepareLeaveAnimationListeners(J),ut)Be.markElementAsRemoved(this.id,J,!1,ee);else{var pn=J[so];(!pn||pn===fo)&&(Be.afterFlush(function(){return Te.clearElementCache(J)}),Be.destroyInnerAnimations(J),Be._onRemovalComplete(J,ee))}}}},{key:"insertNode",value:function(J,ee){Bo(J,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(J){var ee=this,Te=[];return this._queue.forEach(function(Be){var ut=Be.player;if(!ut.destroyed){var Tt=Be.element,Zt=ee._elementListeners.get(Tt);Zt&&Zt.forEach(function(en){if(en.name==Be.triggerName){var pn=S(Tt,Be.triggerName,Be.fromState.value,Be.toState.value);pn._data=J,E(Be.player,en.phase,pn,en.callback)}}),ut.markedForDestroy?ee._engine.afterFlush(function(){ut.destroy()}):Te.push(Be)}}),this._queue=[],Te.sort(function(Be,ut){var Tt=Be.transition.ast.depCount,Zt=ut.transition.ast.depCount;return 0==Tt||0==Zt?Tt-Zt:ee._engine.driver.containsElement(Be.element,ut.element)?1:-1})}},{key:"destroy",value:function(J){this.players.forEach(function(ee){return ee.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,J)}},{key:"elementContainsData",value:function(J){var ee=!1;return this._elementListeners.has(J)&&(ee=!0),!!this._queue.find(function(Te){return Te.element===J})||ee}}]),ge}(),Ba=function(){function ge(me,J,ee){(0,B.Z)(this,ge),this.bodyNode=me,this.driver=J,this._normalizer=ee,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(Te,Be){}}return(0,V.Z)(ge,[{key:"_onRemovalComplete",value:function(J,ee){this.onRemovalComplete(J,ee)}},{key:"queuedPlayers",get:function(){var J=[];return this._namespaceList.forEach(function(ee){ee.players.forEach(function(Te){Te.queued&&J.push(Te)})}),J}},{key:"createNamespace",value:function(J,ee){var Te=new mo(J,ee,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,ee)?this._balanceNamespaceList(Te,ee):(this.newHostElements.set(ee,Te),this.collectEnterElement(ee)),this._namespaceLookup[J]=Te}},{key:"_balanceNamespaceList",value:function(J,ee){var Te=this._namespaceList.length-1;if(Te>=0){for(var Be=!1,ut=Te;ut>=0;ut--)if(this.driver.containsElement(this._namespaceList[ut].hostElement,ee)){this._namespaceList.splice(ut+1,0,J),Be=!0;break}Be||this._namespaceList.splice(0,0,J)}else this._namespaceList.push(J);return this.namespacesByHostElement.set(ee,J),J}},{key:"register",value:function(J,ee){var Te=this._namespaceLookup[J];return Te||(Te=this.createNamespace(J,ee)),Te}},{key:"registerTrigger",value:function(J,ee,Te){var Be=this._namespaceLookup[J];Be&&Be.register(ee,Te)&&this.totalAnimations++}},{key:"destroy",value:function(J,ee){var Te=this;if(J){var Be=this._fetchNamespace(J);this.afterFlush(function(){Te.namespacesByHostElement.delete(Be.hostElement),delete Te._namespaceLookup[J];var ut=Te._namespaceList.indexOf(Be);ut>=0&&Te._namespaceList.splice(ut,1)}),this.afterFlushAnimationsDone(function(){return Be.destroy(ee)})}}},{key:"_fetchNamespace",value:function(J){return this._namespaceLookup[J]}},{key:"fetchNamespacesByElement",value:function(J){var ee=new Set,Te=this.statesByElement.get(J);if(Te)for(var Be=Object.keys(Te),ut=0;ut<Be.length;ut++){var Tt=Te[Be[ut]].namespaceId;if(Tt){var Zt=this._fetchNamespace(Tt);Zt&&ee.add(Zt)}}return ee}},{key:"trigger",value:function(J,ee,Te,Be){if(ns(ee)){var ut=this._fetchNamespace(J);if(ut)return ut.trigger(ee,Te,Be),!0}return!1}},{key:"insertNode",value:function(J,ee,Te,Be){if(ns(ee)){var ut=ee[so];if(ut&&ut.setForRemoval){ut.setForRemoval=!1,ut.setForMove=!0;var Tt=this.collectedLeaveElements.indexOf(ee);Tt>=0&&this.collectedLeaveElements.splice(Tt,1)}if(J){var Zt=this._fetchNamespace(J);Zt&&Zt.insertNode(ee,Te)}Be&&this.collectEnterElement(ee)}}},{key:"collectEnterElement",value:function(J){this.collectedEnterElements.push(J)}},{key:"markElementAsDisabled",value:function(J,ee){ee?this.disabledNodes.has(J)||(this.disabledNodes.add(J),Bo(J,Jo)):this.disabledNodes.has(J)&&(this.disabledNodes.delete(J),Us(J,Jo))}},{key:"removeNode",value:function(J,ee,Te,Be){if(ns(ee)){var ut=J?this._fetchNamespace(J):null;if(ut?ut.removeNode(ee,Be):this.markElementAsRemoved(J,ee,!1,Be),Te){var Tt=this.namespacesByHostElement.get(ee);Tt&&Tt.id!==J&&Tt.removeNode(ee,Be)}}else this._onRemovalComplete(ee,Be)}},{key:"markElementAsRemoved",value:function(J,ee,Te,Be){this.collectedLeaveElements.push(ee),ee[so]={namespaceId:J,setForRemoval:Be,hasAnimation:Te,removedBeforeQueried:!1}}},{key:"listen",value:function(J,ee,Te,Be,ut){return ns(ee)?this._fetchNamespace(J).listen(ee,Te,Be,ut):function(){}}},{key:"_buildInstruction",value:function(J,ee,Te,Be,ut){return J.transition.build(this.driver,J.element,J.fromState.value,J.toState.value,Te,Be,J.fromState.options,J.toState.options,ee,ut)}},{key:"destroyInnerAnimations",value:function(J){var ee=this,Te=this.driver.query(J,Xt,!0);Te.forEach(function(Be){return ee.destroyActiveAnimationsForElement(Be)}),0!=this.playersByQueriedElement.size&&(Te=this.driver.query(J,Ct,!0)).forEach(function(Be){return ee.finishActiveQueriedAnimationOnElement(Be)})}},{key:"destroyActiveAnimationsForElement",value:function(J){var ee=this.playersByElement.get(J);ee&&ee.forEach(function(Te){Te.queued?Te.markedForDestroy=!0:Te.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(J){var ee=this.playersByQueriedElement.get(J);ee&&ee.forEach(function(Te){return Te.finish()})}},{key:"whenRenderingDone",value:function(){var J=this;return new Promise(function(ee){if(J.players.length)return T(J.players).onDone(function(){return ee()});ee()})}},{key:"processLeaveNode",value:function(J){var ee=this,Te=J[so];if(Te&&Te.setForRemoval){if(J[so]=fo,Te.namespaceId){this.destroyInnerAnimations(J);var Be=this._fetchNamespace(Te.namespaceId);Be&&Be.clearElementCache(J)}this._onRemovalComplete(J,Te.setForRemoval)}this.driver.matchesElement(J,La)&&this.markElementAsDisabled(J,!1),this.driver.query(J,La,!0).forEach(function(ut){ee.markElementAsDisabled(ut,!1)})}},{key:"flush",value:function(){var J=this,ee=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,Te=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(Un,$n){return J._balanceNamespaceList(Un,$n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var Be=0;Be<this.collectedEnterElements.length;Be++){var ut=this.collectedEnterElements[Be];Bo(ut,Ao)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var Tt=[];try{Te=this._flushAnimations(Tt,ee)}finally{for(var Zt=0;Zt<Tt.length;Zt++)Tt[Zt]()}}else for(var en=0;en<this.collectedLeaveElements.length;en++){var pn=this.collectedLeaveElements[en];this.processLeaveNode(pn)}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 Pn=this._whenQuietFns;this._whenQuietFns=[],Te.length?T(Te).onDone(function(){Pn.forEach(function(Un){return Un()})}):Pn.forEach(function(Un){return Un()})}}},{key:"reportError",value:function(J){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(J.join("\n")))}},{key:"_flushAnimations",value:function(J,ee){var Te=this,Be=new Xn,ut=[],Tt=new Map,Zt=[],en=new Map,pn=new Map,Pn=new Map,Un=new Set;this.disabledNodes.forEach(function(ar){Un.add(ar);for(var Ur=Te.driver.query(ar,".ng-animate-queued",!0),Pr=0;Pr<Ur.length;Pr++)Un.add(Ur[Pr])});var $n=this.bodyNode,yr=Array.from(this.statesByElement.keys()),Br=ac(yr,this.collectedEnterElements),wr=new Map,Or=0;Br.forEach(function(ar,Ur){var Pr=ct+Or++;wr.set(Ur,Pr),ar.forEach(function(Vi){return Bo(Vi,Pr)})});for(var di=[],Si=new Set,si=new Set,vo=0;vo<this.collectedLeaveElements.length;vo++){var Re=this.collectedLeaveElements[vo],We=Re[so];We&&We.setForRemoval&&(di.push(Re),Si.add(Re),We.hasAnimation?this.driver.query(Re,".ng-star-inserted",!0).forEach(function(ar){return Si.add(ar)}):si.add(Re))}var be=new Map,Ze=ac(yr,Array.from(Si));Ze.forEach(function(ar,Ur){var Pr=Xe+Or++;be.set(Ur,Pr),ar.forEach(function(Vi){return Bo(Vi,Pr)})}),J.push(function(){Br.forEach(function(ar,Ur){var Pr=wr.get(Ur);ar.forEach(function(Vi){return Us(Vi,Pr)})}),Ze.forEach(function(ar,Ur){var Pr=be.get(Ur);ar.forEach(function(Vi){return Us(Vi,Pr)})}),di.forEach(function(ar){Te.processLeaveNode(ar)})});for(var De=[],rt=[],St=this._namespaceList.length-1;St>=0;St--)this._namespaceList[St].drainQueuedTransitions(ee).forEach(function(ar){var Ur=ar.player,Pr=ar.element;if(De.push(Ur),Te.collectedEnterElements.length){var Vi=Pr[so];if(Vi&&Vi.setForMove)return void Ur.destroy()}var Va=!$n||!Te.driver.containsElement($n,Pr),pc=be.get(Pr),Xl=wr.get(Pr),Vo=Te._buildInstruction(ar,Be,Xl,pc,Va);if(Vo.errors&&Vo.errors.length)rt.push(Vo);else{if(Va)return Ur.onStart(function(){return En(Pr,Vo.fromStyles)}),Ur.onDestroy(function(){return Bn(Pr,Vo.toStyles)}),void ut.push(Ur);if(ar.isFallbackTransition)return Ur.onStart(function(){return En(Pr,Vo.fromStyles)}),Ur.onDestroy(function(){return Bn(Pr,Vo.toStyles)}),void ut.push(Ur);Vo.timelines.forEach(function(Cs){return Cs.stretchStartingKeyframe=!0}),Be.append(Pr,Vo.timelines),Zt.push({instruction:Vo,player:Ur,element:Pr}),Vo.queriedElements.forEach(function(Cs){return A(en,Cs,[]).push(Ur)}),Vo.preStyleProps.forEach(function(Cs,bd){var gv=Object.keys(Cs);if(gv.length){var qs=pn.get(bd);qs||pn.set(bd,qs=new Set),gv.forEach(function(Dp){return qs.add(Dp)})}}),Vo.postStyleProps.forEach(function(Cs,bd){var gv=Object.keys(Cs),qs=Pn.get(bd);qs||Pn.set(bd,qs=new Set),gv.forEach(function(Dp){return qs.add(Dp)})})}});if(rt.length){var Cn=[];rt.forEach(function(ar){Cn.push("@".concat(ar.triggerName," has failed due to:\n")),ar.errors.forEach(function(Ur){return Cn.push("- ".concat(Ur,"\n"))})}),De.forEach(function(ar){return ar.destroy()}),this.reportError(Cn)}var Mr=new Map,Oi=new Map;Zt.forEach(function(ar){var Ur=ar.element;Be.has(Ur)&&(Oi.set(Ur,Ur),Te._beforeAnimationBuild(ar.player.namespaceId,ar.instruction,Mr))}),ut.forEach(function(ar){var Ur=ar.element;Te._getPreviousPlayers(Ur,!1,ar.namespaceId,ar.triggerName,null).forEach(function(Vi){A(Mr,Ur,[]).push(Vi),Vi.destroy()})});var Ho=di.filter(function(ar){return wu(ar,pn,Pn)}),ha=new Map;fl(ha,this.driver,si,Pn,_.l3).forEach(function(ar){wu(ar,pn,Pn)&&Ho.push(ar)});var go=new Map;Br.forEach(function(ar,Ur){fl(go,Te.driver,new Set(ar),pn,_.k1)}),Ho.forEach(function(ar){var Ur=ha.get(ar),Pr=go.get(ar);ha.set(ar,Object.assign(Object.assign({},Ur),Pr))});var is=[],to=[],oh={};Zt.forEach(function(ar){var Ur=ar.element,Pr=ar.player,Vi=ar.instruction;if(Be.has(Ur)){if(Un.has(Ur))return Pr.onDestroy(function(){return Bn(Ur,Vi.toStyles)}),Pr.disabled=!0,Pr.overrideTotalTime(Vi.totalTime),void ut.push(Pr);var Va=oh;if(Oi.size>1){for(var pc=Ur,Xl=[];pc=pc.parentNode;){var Vo=Oi.get(pc);if(Vo){Va=Vo;break}Xl.push(pc)}Xl.forEach(function(bd){return Oi.set(bd,Va)})}var Ap=Te._buildAnimation(Pr.namespaceId,Vi,Mr,Tt,go,ha);if(Pr.setRealPlayer(Ap),Va===oh)is.push(Pr);else{var Cs=Te.playersByElement.get(Va);Cs&&Cs.length&&(Pr.parentPlayer=T(Cs)),ut.push(Pr)}}else En(Ur,Vi.fromStyles),Pr.onDestroy(function(){return Bn(Ur,Vi.toStyles)}),to.push(Pr),Un.has(Ur)&&ut.push(Pr)}),to.forEach(function(ar){var Ur=Tt.get(ar.element);if(Ur&&Ur.length){var Pr=T(Ur);ar.setRealPlayer(Pr)}}),ut.forEach(function(ar){ar.parentPlayer?ar.syncPlayerEvents(ar.parentPlayer):ar.destroy()});for(var Mp=0;Mp<di.length;Mp++){var Eu=di[Mp],ah=Eu[so];if(Us(Eu,Xe),!ah||!ah.hasAnimation){var cc=[];if(en.size){var Vs=en.get(Eu);Vs&&Vs.length&&cc.push.apply(cc,(0,P.Z)(Vs));for(var Oo=this.driver.query(Eu,Ct,!0),Mu=0;Mu<Oo.length;Mu++){var dc=en.get(Oo[Mu]);dc&&dc.length&&cc.push.apply(cc,(0,P.Z)(dc))}}var _o=cc.filter(function(ar){return!ar.destroyed});_o.length?xu(this,Eu,_o):this.processLeaveNode(Eu)}}return di.length=0,is.forEach(function(ar){Te.players.push(ar),ar.onDone(function(){ar.destroy();var Ur=Te.players.indexOf(ar);Te.players.splice(Ur,1)}),ar.play()}),is}},{key:"elementContainsData",value:function(J,ee){var Te=!1,Be=ee[so];return Be&&Be.setForRemoval&&(Te=!0),this.playersByElement.has(ee)&&(Te=!0),this.playersByQueriedElement.has(ee)&&(Te=!0),this.statesByElement.has(ee)&&(Te=!0),this._fetchNamespace(J).elementContainsData(ee)||Te}},{key:"afterFlush",value:function(J){this._flushFns.push(J)}},{key:"afterFlushAnimationsDone",value:function(J){this._whenQuietFns.push(J)}},{key:"_getPreviousPlayers",value:function(J,ee,Te,Be,ut){var Tt=[];if(ee){var Zt=this.playersByQueriedElement.get(J);Zt&&(Tt=Zt)}else{var en=this.playersByElement.get(J);if(en){var pn=!ut||ut==ki;en.forEach(function(Pn){Pn.queued||!pn&&Pn.triggerName!=Be||Tt.push(Pn)})}}return(Te||Be)&&(Tt=Tt.filter(function(Pn){return!(Te&&Te!=Pn.namespaceId||Be&&Be!=Pn.triggerName)})),Tt}},{key:"_beforeAnimationBuild",value:function(J,ee,Te){var Pn,Be=this,Tt=ee.element,Zt=ee.isRemovalTransition?void 0:J,en=ee.isRemovalTransition?void 0:ee.triggerName,pn=(0,O.Z)(ee.timelines);try{var Un=function(){var Br=Pn.value.element,wr=Br!==Tt,Or=A(Te,Br,[]);Be._getPreviousPlayers(Br,wr,Zt,en,ee.toState).forEach(function(Si){var si=Si.getRealPlayer();si.beforeDestroy&&si.beforeDestroy(),Si.destroy(),Or.push(Si)})};for(pn.s();!(Pn=pn.n()).done;)Un()}catch($n){pn.e($n)}finally{pn.f()}En(Tt,ee.fromStyles)}},{key:"_buildAnimation",value:function(J,ee,Te,Be,ut,Tt){var Zt=this,en=ee.triggerName,pn=ee.element,Pn=[],Un=new Set,$n=new Set,yr=ee.timelines.map(function(wr){var Or=wr.element;Un.add(Or);var di=Or[so];if(di&&di.removedBeforeQueried)return new _.ZN(wr.duration,wr.delay);var Si=Or!==pn,si=function(ge){var me=[];return Ql(ge,me),me}((Te.get(Or)||ka).map(function(De){return De.getRealPlayer()})).filter(function(De){return!!De.element&&De.element===Or}),vo=ut.get(Or),Re=Tt.get(Or),We=M(Zt.driver,Zt._normalizer,Or,wr.keyframes,vo,Re),be=Zt._buildPlayer(wr,We,si);if(wr.subTimeline&&Be&&$n.add(Or),Si){var Ze=new ui(J,en,Or);Ze.setRealPlayer(be),Pn.push(Ze)}return be});Pn.forEach(function(wr){A(Zt.playersByQueriedElement,wr.element,[]).push(wr),wr.onDone(function(){return function(ge,me,J){var ee;if(ge instanceof Map){if(ee=ge.get(me)){if(ee.length){var Te=ee.indexOf(J);ee.splice(Te,1)}0==ee.length&&ge.delete(me)}}else if(ee=ge[me]){if(ee.length){var Be=ee.indexOf(J);ee.splice(Be,1)}0==ee.length&&delete ge[me]}return ee}(Zt.playersByQueriedElement,wr.element,wr)})}),Un.forEach(function(wr){return Bo(wr,qt)});var Br=T(yr);return Br.onDestroy(function(){Un.forEach(function(wr){return Us(wr,qt)}),Bn(pn,ee.toStyles)}),$n.forEach(function(wr){A(Be,wr,[]).push(Br)}),Br}},{key:"_buildPlayer",value:function(J,ee,Te){return ee.length>0?this.driver.animate(J.element,ee,J.duration,J.delay,J.easing,Te):new _.ZN(J.duration,J.delay)}}]),ge}(),ui=function(){function ge(me,J,ee){(0,B.Z)(this,ge),this.namespaceId=me,this.triggerName=J,this.element=ee,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)(ge,[{key:"setRealPlayer",value:function(J){var ee=this;this._containsRealPlayer||(this._player=J,Object.keys(this._queuedCallbacks).forEach(function(Te){ee._queuedCallbacks[Te].forEach(function(Be){return E(J,Te,void 0,Be)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(J.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(J){this.totalTime=J}},{key:"syncPlayerEvents",value:function(J){var ee=this,Te=this._player;Te.triggerCallback&&J.onStart(function(){return Te.triggerCallback("start")}),J.onDone(function(){return ee.finish()}),J.onDestroy(function(){return ee.destroy()})}},{key:"_queueEvent",value:function(J,ee){A(this._queuedCallbacks,J,[]).push(ee)}},{key:"onDone",value:function(J){this.queued&&this._queueEvent("done",J),this._player.onDone(J)}},{key:"onStart",value:function(J){this.queued&&this._queueEvent("start",J),this._player.onStart(J)}},{key:"onDestroy",value:function(J){this.queued&&this._queueEvent("destroy",J),this._player.onDestroy(J)}},{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(J){this.queued||this._player.setPosition(J)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(J){var ee=this._player;ee.triggerCallback&&ee.triggerCallback(J)}}]),ge}();function pl(ge){return null!=ge?ge:null}function ns(ge){return ge&&1===ge.nodeType}function Qo(ge,me){var J=ge.style.display;return ge.style.display=null!=me?me:"none",J}function fl(ge,me,J,ee,Te){var Be=[];J.forEach(function(Zt){return Be.push(Qo(Zt))});var ut=[];ee.forEach(function(Zt,en){var pn={};Zt.forEach(function(Pn){var Un=pn[Pn]=me.computeStyle(en,Pn,Te);(!Un||0==Un.length)&&(en[so]=Ui,ut.push(en))}),ge.set(en,pn)});var Tt=0;return J.forEach(function(Zt){return Qo(Zt,Be[Tt++])}),ut}function ac(ge,me){var J=new Map;if(ge.forEach(function(Tt){return J.set(Tt,[])}),0==me.length)return J;var Te=new Set(me),Be=new Map;function ut(Tt){if(!Tt)return 1;var Zt=Be.get(Tt);if(Zt)return Zt;var en=Tt.parentNode;return Zt=J.has(en)?en:Te.has(en)?1:ut(en),Be.set(Tt,Zt),Zt}return me.forEach(function(Tt){var Zt=ut(Tt);1!==Zt&&J.get(Zt).push(Tt)}),J}var hl="$$classes";function Bo(ge,me){if(ge.classList)ge.classList.add(me);else{var J=ge[hl];J||(J=ge[hl]={}),J[me]=!0}}function Us(ge,me){if(ge.classList)ge.classList.remove(me);else{var J=ge[hl];J&&delete J[me]}}function xu(ge,me,J){T(J).onDone(function(){return ge.processLeaveNode(me)})}function Ql(ge,me){for(var J=0;J<ge.length;J++){var ee=ge[J];ee instanceof _.ZE?Ql(ee.players,me):me.push(ee)}}function md(ge,me){var J=Object.keys(ge),ee=Object.keys(me);if(J.length!=ee.length)return!1;for(var Te=0;Te<J.length;Te++){var Be=J[Te];if(!me.hasOwnProperty(Be)||ge[Be]!==me[Be])return!1}return!0}function wu(ge,me,J){var ee=J.get(ge);if(!ee)return!1;var Te=me.get(ge);return Te?ee.forEach(function(Be){return Te.add(Be)}):me.set(ge,ee),J.delete(ge),!0}var rs=function(){function ge(me,J,ee){var Te=this;(0,B.Z)(this,ge),this.bodyNode=me,this._driver=J,this._normalizer=ee,this._triggerCache={},this.onRemovalComplete=function(Be,ut){},this._transitionEngine=new Ba(me,J,ee),this._timelineEngine=new ao(me,J,ee),this._transitionEngine.onRemovalComplete=function(Be,ut){return Te.onRemovalComplete(Be,ut)}}return(0,V.Z)(ge,[{key:"registerTrigger",value:function(J,ee,Te,Be,ut){var Tt=J+"-"+Be,Zt=this._triggerCache[Tt];if(!Zt){var en=[],pn=sn(this._driver,ut,en);if(en.length)throw new Error('The animation trigger "'.concat(Be,'" has failed to build due to the following errors:\n - ').concat(en.join("\n - ")));Zt=function(ge,me,J){return new Wn(ge,me,J)}(Be,pn,this._normalizer),this._triggerCache[Tt]=Zt}this._transitionEngine.registerTrigger(ee,Be,Zt)}},{key:"register",value:function(J,ee){this._transitionEngine.register(J,ee)}},{key:"destroy",value:function(J,ee){this._transitionEngine.destroy(J,ee)}},{key:"onInsert",value:function(J,ee,Te,Be){this._transitionEngine.insertNode(J,ee,Te,Be)}},{key:"onRemove",value:function(J,ee,Te,Be){this._transitionEngine.removeNode(J,ee,Be||!1,Te)}},{key:"disableAnimations",value:function(J,ee){this._transitionEngine.markElementAsDisabled(J,ee)}},{key:"process",value:function(J,ee,Te,Be){if("@"==Te.charAt(0)){var ut=L(Te),Tt=(0,U.Z)(ut,2);this._timelineEngine.command(Tt[0],ee,Tt[1],Be)}else this._transitionEngine.trigger(J,ee,Te,Be)}},{key:"listen",value:function(J,ee,Te,Be,ut){if("@"==Te.charAt(0)){var Tt=L(Te),Zt=(0,U.Z)(Tt,2);return this._timelineEngine.listen(Zt[0],ee,Zt[1],ut)}return this._transitionEngine.listen(J,ee,Te,Be,ut)}},{key:"flush",value:function(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(J)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),ge}();function ml(ge,me){var J=null,ee=null;return Array.isArray(me)&&me.length?(J=Rr(me[0]),me.length>1&&(ee=Rr(me[me.length-1]))):me&&(J=Rr(me)),J||ee?new vd(ge,J,ee):null}var vd=function(){var ge=function(){function me(J,ee,Te){(0,B.Z)(this,me),this._element=J,this._startStyles=ee,this._endStyles=Te,this._state=0;var Be=me.initialStylesByElement.get(J);Be||me.initialStylesByElement.set(J,Be={}),this._initialStyles=Be}return(0,V.Z)(me,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Bn(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Bn(this._element,this._initialStyles),this._endStyles&&(Bn(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(me.initialStylesByElement.delete(this._element),this._startStyles&&(En(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(En(this._element,this._endStyles),this._endStyles=null),Bn(this._element,this._initialStyles),this._state=3)}}]),me}();return ge.initialStylesByElement=new WeakMap,ge}();function Rr(ge){for(var me=null,J=Object.keys(ge),ee=0;ee<J.length;ee++){var Te=J[ee];Jn(Te)&&((me=me||{})[Te]=ge[Te])}return me}function Jn(ge){return"display"===ge||"position"===ge}var Ko="animation",ys="animationend",Uo=function(){function ge(me,J,ee,Te,Be,ut,Tt){var Zt=this;(0,B.Z)(this,ge),this._element=me,this._name=J,this._duration=ee,this._delay=Te,this._easing=Be,this._fillMode=ut,this._onDoneFn=Tt,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(en){return Zt._handleCallback(en)}}return(0,V.Z)(ge,[{key:"apply",value:function(){(function(ge,me){var J=Ft(ge,"").trim();J.length&&(function(ge,me){for(var J=0,ee=0;ee<ge.length;ee++)","===ge.charAt(ee)&&J++;return J}(J)+1,me="".concat(J,", ").concat(me)),we(ge,"",me)})(this._element,"".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name)),Ve(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){Sp(this._element,this._name,"paused")}},{key:"resume",value:function(){Sp(this._element,this._name,"running")}},{key:"setPosition",value:function(J){var ee=Pe(this._element,this._name);this._position=J*this._duration,we(this._element,"Delay","-".concat(this._position,"ms"),ee)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(J){var ee=J._ngTestManualTimestamp||Date.now(),Te=1e3*parseFloat(J.elapsedTime.toFixed(3));J.animationName==this._name&&Math.max(ee-this._startTime,0)>=this._delay&&Te>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Ve(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(ge,me){var ee=Ft(ge,"").split(","),Te=Me(ee,me);Te>=0&&(ee.splice(Te,1),we(ge,"",ee.join(",")))}(this._element,this._name))}}]),ge}();function Sp(ge,me,J){we(ge,"PlayState",J,Pe(ge,me))}function Pe(ge,me){var J=Ft(ge,"");return J.indexOf(",")>0?Me(J.split(","),me):Me([J],me)}function Me(ge,me){for(var J=0;J<ge.length;J++)if(ge[J].indexOf(me)>=0)return J;return-1}function Ve(ge,me,J){J?ge.removeEventListener(ys,me):ge.addEventListener(ys,me)}function we(ge,me,J,ee){var Te=Ko+me;if(null!=ee){var Be=ge.style[Te];if(Be.length){var ut=Be.split(",");ut[ee]=J,J=ut.join(",")}}ge.style[Te]=J}function Ft(ge,me){return ge.style[Ko+me]||""}var Ie=function(){function ge(me,J,ee,Te,Be,ut,Tt,Zt){(0,B.Z)(this,ge),this.element=me,this.keyframes=J,this.animationName=ee,this._duration=Te,this._delay=Be,this._finalStyles=Tt,this._specialStyles=Zt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=ut||"linear",this.totalTime=Te+Be,this._buildStyler()}return(0,V.Z)(ge,[{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:"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(J){return J()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(J){return J()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(J){return J()}),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(J){this._styler.setPosition(J)}},{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 J=this;this._styler=new Uo(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return J.finish()})}},{key:"triggerCallback",value:function(J){var ee="start"==J?this._onStartFns:this._onDoneFns;ee.forEach(function(Te){return Te()}),ee.length=0}},{key:"beforeDestroy",value:function(){var J=this;this.init();var ee={};if(this.hasStarted()){var Te=this._state>=3;Object.keys(this._finalStyles).forEach(function(Be){"offset"!=Be&&(ee[Be]=Te?J._finalStyles[Be]:rn(J.element,Be))})}this.currentSnapshot=ee}}]),ge}(),$e=function(ge){(0,Z.Z)(J,ge);var me=(0,w.Z)(J);function J(ee,Te){var Be;return(0,B.Z)(this,J),(Be=me.call(this)).element=ee,Be._startingStyles={},Be.__initialized=!1,Be._styles=gt(Te),Be}return(0,V.Z)(J,[{key:"init",value:function(){var Te=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(Be){Te._startingStyles[Be]=Te.element.style[Be]}),(0,N.Z)((0,D.Z)(J.prototype),"init",this).call(this))}},{key:"play",value:function(){var Te=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(Be){return Te.element.style.setProperty(Be,Te._styles[Be])}),(0,N.Z)((0,D.Z)(J.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var Te=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(Be){var ut=Te._startingStyles[Be];ut?Te.element.style.setProperty(Be,ut):Te.element.style.removeProperty(Be)}),this._startingStyles=null,(0,N.Z)((0,D.Z)(J.prototype),"destroy",this).call(this))}}]),J}(_.ZN),qe="gen_css_kf_",kt=function(){function ge(){(0,B.Z)(this,ge),this._count=0}return(0,V.Z)(ge,[{key:"validateStyleProperty",value:function(J){return $(J)}},{key:"matchesElement",value:function(J,ee){return ve(J,ee)}},{key:"containsElement",value:function(J,ee){return et(J,ee)}},{key:"query",value:function(J,ee,Te){return Ne(J,ee,Te)}},{key:"computeStyle",value:function(J,ee,Te){return window.getComputedStyle(J)[ee]}},{key:"buildKeyframeElement",value:function(J,ee,Te){Te=Te.map(function(Zt){return gt(Zt)});var Be="@keyframes ".concat(ee," {\n"),ut="";Te.forEach(function(Zt){ut=" ";var en=parseFloat(Zt.offset);Be+="".concat(ut).concat(100*en,"% {\n"),ut+=" ",Object.keys(Zt).forEach(function(pn){var Pn=Zt[pn];switch(pn){case"offset":return;case"easing":return void(Pn&&(Be+="".concat(ut,"animation-timing-function: ").concat(Pn,";\n")));default:return void(Be+="".concat(ut).concat(pn,": ").concat(Pn,";\n"))}}),Be+="".concat(ut,"}\n")}),Be+="}\n";var Tt=document.createElement("style");return Tt.textContent=Be,Tt}},{key:"animate",value:function(J,ee,Te,Be,ut){var Tt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],en=Tt.filter(function(Or){return Or instanceof Ie}),pn={};yt(Te,Be)&&en.forEach(function(Or){var di=Or.currentSnapshot;Object.keys(di).forEach(function(Si){return pn[Si]=di[Si]})});var Pn=Mn(ee=Lt(J,ee,pn));if(0==Te)return new $e(J,Pn);var Un="".concat(qe).concat(this._count++),$n=this.buildKeyframeElement(J,Un,ee),yr=ln(J);yr.appendChild($n);var Br=ml(J,ee),wr=new Ie(J,ee,Un,Te,Be,ut,Pn,Br);return wr.onDestroy(function(){return nr($n)}),wr}}]),ge}();function ln(ge){var me,J=null===(me=ge.getRootNode)||void 0===me?void 0:me.call(ge);return"undefined"!=typeof ShadowRoot&&J instanceof ShadowRoot?J:document.head}function Mn(ge){var me={};return ge&&(Array.isArray(ge)?ge:[ge]).forEach(function(ee){Object.keys(ee).forEach(function(Te){"offset"==Te||"easing"==Te||(me[Te]=ee[Te])})}),me}function nr(ge){ge.parentNode.removeChild(ge)}var Wt=function(){function ge(me,J,ee,Te){(0,B.Z)(this,ge),this.element=me,this.keyframes=J,this.options=ee,this._specialStyles=Te,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=ee.duration,this._delay=ee.delay||0,this.time=this._duration+this._delay}return(0,V.Z)(ge,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(J){return J()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var J=this;if(!this._initialized){this._initialized=!0;var ee=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,ee,this.options),this._finalKeyframe=ee.length?ee[ee.length-1]:{},this.domPlayer.addEventListener("finish",function(){return J._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(J,ee,Te){return J.animate(ee,Te)}},{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:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(J){return J()}),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(J){return J()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(J){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=J*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 J=this,ee={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(Te){"offset"!=Te&&(ee[Te]=J._finished?J._finalKeyframe[Te]:rn(J.element,Te))}),this.currentSnapshot=ee}},{key:"triggerCallback",value:function(J){var ee="start"==J?this._onStartFns:this._onDoneFns;ee.forEach(function(Te){return Te()}),ee.length=0}}]),ge}(),Bt=function(){function ge(){(0,B.Z)(this,ge),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ci().toString()),this._cssKeyframesDriver=new kt}return(0,V.Z)(ge,[{key:"validateStyleProperty",value:function(J){return $(J)}},{key:"matchesElement",value:function(J,ee){return ve(J,ee)}},{key:"containsElement",value:function(J,ee){return et(J,ee)}},{key:"query",value:function(J,ee,Te){return Ne(J,ee,Te)}},{key:"computeStyle",value:function(J,ee,Te){return window.getComputedStyle(J)[ee]}},{key:"overrideWebAnimationsSupport",value:function(J){this._isNativeImpl=J}},{key:"animate",value:function(J,ee,Te,Be,ut){var Tt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],Zt=arguments.length>6?arguments[6]:void 0,en=!Zt&&!this._isNativeImpl;if(en)return this._cssKeyframesDriver.animate(J,ee,Te,Be,ut,Tt);var pn=0==Be?"both":"forwards",Pn={duration:Te,delay:Be,fill:pn};ut&&(Pn.easing=ut);var Un={},$n=Tt.filter(function(Br){return Br instanceof Wt});yt(Te,Be)&&$n.forEach(function(Br){var wr=Br.currentSnapshot;Object.keys(wr).forEach(function(Or){return Un[Or]=wr[Or]})});var yr=ml(J,ee=Lt(J,ee=ee.map(function(Br){return Hn(Br,!1)}),Un));return new Wt(J,ee,Pn,yr)}}]),ge}();function ci(){return y()&&Element.prototype.animate||{}}var Qi=f(40098),Ea=function(){var ge=function(me){(0,Z.Z)(ee,me);var J=(0,w.Z)(ee);function ee(Te,Be){var ut;return(0,B.Z)(this,ee),(ut=J.call(this))._nextAnimationId=0,ut._renderer=Te.createRenderer(Be.body,{id:"0",encapsulation:R.ifc.None,styles:[],data:{animation:[]}}),ut}return(0,V.Z)(ee,[{key:"build",value:function(Be){var ut=this._nextAnimationId.toString();this._nextAnimationId++;var Tt=Array.isArray(Be)?(0,_.vP)(Be):Be;return lc(this._renderer,null,ut,"register",[Tt]),new Ci(ut,this._renderer)}}]),ee}(_._j);return ge.\u0275fac=function(J){return new(J||ge)(R.LFG(R.FYo),R.LFG(Qi.K0))},ge.\u0275prov=R.Yz7({token:ge,factory:ge.\u0275fac}),ge}(),Ci=function(ge){(0,Z.Z)(J,ge);var me=(0,w.Z)(J);function J(ee,Te){var Be;return(0,B.Z)(this,J),(Be=me.call(this))._id=ee,Be._renderer=Te,Be}return(0,V.Z)(J,[{key:"create",value:function(Te,Be){return new Hi(this._id,Te,Be||{},this._renderer)}}]),J}(_.LC),Hi=function(){function ge(me,J,ee,Te){(0,B.Z)(this,ge),this.id=me,this.element=J,this._renderer=Te,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",ee)}return(0,V.Z)(ge,[{key:"_listen",value:function(J,ee){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(J),ee)}},{key:"_command",value:function(J){for(var ee=arguments.length,Te=new Array(ee>1?ee-1:0),Be=1;Be<ee;Be++)Te[Be-1]=arguments[Be];return lc(this._renderer,this.element,this.id,J,Te)}},{key:"onDone",value:function(J){this._listen("done",J)}},{key:"onStart",value:function(J){this._listen("start",J)}},{key:"onDestroy",value:function(J){this._listen("destroy",J)}},{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(J){this._command("setPosition",J)}},{key:"getPosition",value:function(){var J,ee;return null!==(ee=null===(J=this._renderer.engine.players[+this.id])||void 0===J?void 0:J.getPosition())&&void 0!==ee?ee:0}}]),ge}();function lc(ge,me,J,ee,Te){return ge.setProperty(me,"@@".concat(J,":").concat(ee),Te)}var Ha="@.disabled",oa=function(){var ge=function(){function me(J,ee,Te){(0,B.Z)(this,me),this.delegate=J,this.engine=ee,this._zone=Te,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),ee.onRemovalComplete=function(Be,ut){ut&&ut.parentNode(Be)&&ut.removeChild(Be.parentNode,Be)}}return(0,V.Z)(me,[{key:"createRenderer",value:function(ee,Te){var Be=this,Tt=this.delegate.createRenderer(ee,Te);if(!(ee&&Te&&Te.data&&Te.data.animation)){var Zt=this._rendererCache.get(Tt);return Zt||(Zt=new bs("",Tt,this.engine),this._rendererCache.set(Tt,Zt)),Zt}var en=Te.id,pn=Te.id+"-"+this._currentId;return this._currentId++,this.engine.register(pn,ee),Te.data.animation.forEach(function $n(yr){Array.isArray(yr)?yr.forEach($n):Be.engine.registerTrigger(en,pn,ee,yr.name,yr)}),new Tp(this,pn,Tt,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var ee=this;this.promise.then(function(){ee._microtaskId++})}},{key:"scheduleListenerCallback",value:function(ee,Te,Be){var ut=this;ee>=0&&ee<this._microtaskId?this._zone.run(function(){return Te(Be)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){ut._zone.run(function(){ut._animationCallbacksBuffer.forEach(function(Tt){var Zt=(0,U.Z)(Tt,2);(0,Zt[0])(Zt[1])}),ut._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Te,Be]))}},{key:"end",value:function(){var ee=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){ee._scheduleCountTask(),ee.engine.flush(ee._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),me}();return ge.\u0275fac=function(J){return new(J||ge)(R.LFG(R.FYo),R.LFG(rs),R.LFG(R.R0b))},ge.\u0275prov=R.Yz7({token:ge,factory:ge.\u0275fac}),ge}(),bs=function(){function ge(me,J,ee){(0,B.Z)(this,ge),this.namespaceId=me,this.delegate=J,this.engine=ee,this.destroyNode=this.delegate.destroyNode?function(Te){return J.destroyNode(Te)}:null}return(0,V.Z)(ge,[{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(J,ee){return this.delegate.createElement(J,ee)}},{key:"createComment",value:function(J){return this.delegate.createComment(J)}},{key:"createText",value:function(J){return this.delegate.createText(J)}},{key:"appendChild",value:function(J,ee){this.delegate.appendChild(J,ee),this.engine.onInsert(this.namespaceId,ee,J,!1)}},{key:"insertBefore",value:function(J,ee,Te){var Be=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(J,ee,Te),this.engine.onInsert(this.namespaceId,ee,J,Be)}},{key:"removeChild",value:function(J,ee,Te){this.engine.onRemove(this.namespaceId,ee,this.delegate,Te)}},{key:"selectRootElement",value:function(J,ee){return this.delegate.selectRootElement(J,ee)}},{key:"parentNode",value:function(J){return this.delegate.parentNode(J)}},{key:"nextSibling",value:function(J){return this.delegate.nextSibling(J)}},{key:"setAttribute",value:function(J,ee,Te,Be){this.delegate.setAttribute(J,ee,Te,Be)}},{key:"removeAttribute",value:function(J,ee,Te){this.delegate.removeAttribute(J,ee,Te)}},{key:"addClass",value:function(J,ee){this.delegate.addClass(J,ee)}},{key:"removeClass",value:function(J,ee){this.delegate.removeClass(J,ee)}},{key:"setStyle",value:function(J,ee,Te,Be){this.delegate.setStyle(J,ee,Te,Be)}},{key:"removeStyle",value:function(J,ee,Te){this.delegate.removeStyle(J,ee,Te)}},{key:"setProperty",value:function(J,ee,Te){"@"==ee.charAt(0)&&ee==Ha?this.disableAnimations(J,!!Te):this.delegate.setProperty(J,ee,Te)}},{key:"setValue",value:function(J,ee){this.delegate.setValue(J,ee)}},{key:"listen",value:function(J,ee,Te){return this.delegate.listen(J,ee,Te)}},{key:"disableAnimations",value:function(J,ee){this.engine.disableAnimations(J,ee)}}]),ge}(),Tp=function(ge){(0,Z.Z)(J,ge);var me=(0,w.Z)(J);function J(ee,Te,Be,ut){var Tt;return(0,B.Z)(this,J),(Tt=me.call(this,Te,Be,ut)).factory=ee,Tt.namespaceId=Te,Tt}return(0,V.Z)(J,[{key:"setProperty",value:function(Te,Be,ut){"@"==Be.charAt(0)?"."==Be.charAt(1)&&Be==Ha?this.disableAnimations(Te,ut=void 0===ut||!!ut):this.engine.process(this.namespaceId,Te,Be.substr(1),ut):this.delegate.setProperty(Te,Be,ut)}},{key:"listen",value:function(Te,Be,ut){var Tt=this;if("@"==Be.charAt(0)){var Zt=function(ge){switch(ge){case"body":return document.body;case"document":return document;case"window":return window;default:return ge}}(Te),en=Be.substr(1),pn="";if("@"!=en.charAt(0)){var Pn=function(ge){var me=ge.indexOf(".");return[ge.substring(0,me),ge.substr(me+1)]}(en),Un=(0,U.Z)(Pn,2);en=Un[0],pn=Un[1]}return this.engine.listen(this.namespaceId,Zt,en,pn,function($n){Tt.factory.scheduleListenerCallback($n._data||-1,ut,$n)})}return this.delegate.listen(Te,Be,ut)}}]),J}(bs),uc=function(){var ge=function(me){(0,Z.Z)(ee,me);var J=(0,w.Z)(ee);function ee(Te,Be,ut){return(0,B.Z)(this,ee),J.call(this,Te.body,Be,ut)}return(0,V.Z)(ee,[{key:"ngOnDestroy",value:function(){this.flush()}}]),ee}(rs);return ge.\u0275fac=function(J){return new(J||ge)(R.LFG(Qi.K0),R.LFG(Rt),R.LFG(Fi))},ge.\u0275prov=R.Yz7({token:ge,factory:ge.\u0275fac}),ge}(),gd=new R.OlP("AnimationModuleType"),kp=[{provide:_._j,useClass:Ea},{provide:Fi,useFactory:function(){return new Zi}},{provide:rs,useClass:uc},{provide:R.FYo,useFactory:function(ge,me,J){return new oa(ge,me,J)},deps:[C.se,rs,R.R0b]}],Ep=[{provide:Rt,useFactory:function(){return"function"==typeof ci()?new Bt:new kt}},{provide:gd,useValue:"BrowserAnimations"}].concat(kp),_d=[{provide:Rt,useClass:_t},{provide:gd,useValue:"NoopAnimations"}].concat(kp),Kl=function(){var ge=function(){function me(){(0,B.Z)(this,me)}return(0,V.Z)(me,null,[{key:"withConfig",value:function(ee){return{ngModule:me,providers:ee.disableAnimations?_d:Ep}}}]),me}();return ge.\u0275fac=function(J){return new(J||ge)},ge.\u0275mod=R.oAB({type:ge}),ge.\u0275inj=R.cJS({providers:Ep,imports:[C.b2]}),ge}()},29176:function(le,q,f){"use strict";f.d(q,{b2:function(){return ze},H7:function(){return wn},Dx:function(){return ai},HJ:function(){return fa},q6:function(){return Ae},se:function(){return bt}});var y,U=f(20901),B=f(89200),V=f(14105),Z=f(18967),w=f(10509),R=f(97154),C=f(40098),_=f(65508),D=function(It){(0,w.Z)(Pt,It);var Qt=(0,R.Z)(Pt);function Pt(){return(0,Z.Z)(this,Pt),Qt.apply(this,arguments)}return(0,V.Z)(Pt,[{key:"onAndCancel",value:function($t,tn,bn){return $t.addEventListener(tn,bn,!1),function(){$t.removeEventListener(tn,bn,!1)}}},{key:"dispatchEvent",value:function($t,tn){$t.dispatchEvent(tn)}},{key:"remove",value:function($t){$t.parentNode&&$t.parentNode.removeChild($t)}},{key:"createElement",value:function($t,tn){return(tn=tn||this.getDefaultDocument()).createElement($t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function($t){return $t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function($t){return $t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function($t,tn){return"window"===tn?window:"document"===tn?$t:"body"===tn?$t.body:null}},{key:"getBaseHref",value:function($t){var tn=(O=O||document.querySelector("base"))?O.getAttribute("href"):null;return null==tn?null:function(It){(y=y||document.createElement("a")).setAttribute("href",It);var Qt=y.pathname;return"/"===Qt.charAt(0)?Qt:"/".concat(Qt)}(tn)}},{key:"resetBaseElement",value:function(){O=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function($t){return(0,C.Mx)(document.cookie,$t)}}],[{key:"makeCurrent",value:function(){(0,C.HT)(new Pt)}}]),Pt}(function(It){(0,w.Z)(Pt,It);var Qt=(0,R.Z)(Pt);function Pt(){var zt;return(0,Z.Z)(this,Pt),(zt=Qt.apply(this,arguments)).supportsDOMEvents=!0,zt}return Pt}(C.w_)),O=null,T=new _.OlP("TRANSITION_ID"),E=[{provide:_.ip1,useFactory:function(It,Qt,Pt){return function(){Pt.get(_.CZH).donePromise.then(function(){for(var zt=(0,C.q)(),$t=Qt.querySelectorAll('style[ng-transition="'.concat(It,'"]')),tn=0;tn<$t.length;tn++)zt.remove($t[tn])})}},deps:[T,C.K0,_.zs3],multi:!0}],x=function(){function It(){(0,Z.Z)(this,It)}return(0,V.Z)(It,[{key:"addToWindow",value:function(Pt){_.dqk.getAngularTestability=function($t){var tn=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],bn=Pt.findTestabilityInTree($t,tn);if(null==bn)throw new Error("Could not find testability for element.");return bn},_.dqk.getAllAngularTestabilities=function(){return Pt.getAllTestabilities()},_.dqk.getAllAngularRootElements=function(){return Pt.getAllRootElements()},_.dqk.frameworkStabilizers||(_.dqk.frameworkStabilizers=[]),_.dqk.frameworkStabilizers.push(function(tn){var bn=_.dqk.getAllAngularTestabilities(),Qn=bn.length,Wn=!1,Gn=function(Bi){Wn=Wn||Bi,0==--Qn&&tn(Wn)};bn.forEach(function(mi){mi.whenStable(Gn)})})}},{key:"findTestabilityInTree",value:function(Pt,zt,$t){if(null==zt)return null;var tn=Pt.getTestability(zt);return null!=tn?tn:$t?(0,C.q)().isShadowRoot(zt)?this.findTestabilityInTree(Pt,zt.host,!0):this.findTestabilityInTree(Pt,zt.parentElement,!0):null}}],[{key:"init",value:function(){(0,_.VLi)(new It)}}]),It}(),S=function(){var It=function(){function Qt(){(0,Z.Z)(this,Qt)}return(0,V.Z)(Qt,[{key:"build",value:function(){return new XMLHttpRequest}}]),Qt}();return It.\u0275fac=function(Pt){return new(Pt||It)},It.\u0275prov=_.Yz7({token:It,factory:It.\u0275fac}),It}();var et=new _.OlP("EventManagerPlugins"),Ne=function(){var It=function(){function Qt(Pt,zt){var $t=this;(0,Z.Z)(this,Qt),this._zone=zt,this._eventNameToPlugin=new Map,Pt.forEach(function(tn){return tn.manager=$t}),this._plugins=Pt.slice().reverse()}return(0,V.Z)(Qt,[{key:"addEventListener",value:function(zt,$t,tn){return this._findPluginFor($t).addEventListener(zt,$t,tn)}},{key:"addGlobalEventListener",value:function(zt,$t,tn){return this._findPluginFor($t).addGlobalEventListener(zt,$t,tn)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(zt){var $t=this._eventNameToPlugin.get(zt);if($t)return $t;for(var tn=this._plugins,bn=0;bn<tn.length;bn++){var Qn=tn[bn];if(Qn.supports(zt))return this._eventNameToPlugin.set(zt,Qn),Qn}throw new Error("No event manager plugin found for event ".concat(zt))}}]),Qt}();return It.\u0275fac=function(Pt){return new(Pt||It)(_.LFG(et),_.LFG(_.R0b))},It.\u0275prov=_.Yz7({token:It,factory:It.\u0275fac}),It}(),gt=function(){function It(Qt){(0,Z.Z)(this,It),this._doc=Qt}return(0,V.Z)(It,[{key:"addGlobalEventListener",value:function(Pt,zt,$t){var tn=(0,C.q)().getGlobalEventTarget(this._doc,Pt);if(!tn)throw new Error("Unsupported event target ".concat(tn," for event ").concat(zt));return this.addEventListener(tn,zt,$t)}}]),It}(),_t=function(){var It=function(){function Qt(){(0,Z.Z)(this,Qt),this._stylesSet=new Set}return(0,V.Z)(Qt,[{key:"addStyles",value:function(zt){var $t=this,tn=new Set;zt.forEach(function(bn){$t._stylesSet.has(bn)||($t._stylesSet.add(bn),tn.add(bn))}),this.onStylesAdded(tn)}},{key:"onStylesAdded",value:function(zt){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),Qt}();return It.\u0275fac=function(Pt){return new(Pt||It)},It.\u0275prov=_.Yz7({token:It,factory:It.\u0275fac}),It}(),Rt=function(){var It=function(Qt){(0,w.Z)(zt,Qt);var Pt=(0,R.Z)(zt);function zt($t){var tn;return(0,Z.Z)(this,zt),(tn=Pt.call(this))._doc=$t,tn._hostNodes=new Map,tn._hostNodes.set($t.head,[]),tn}return(0,V.Z)(zt,[{key:"_addStylesToHost",value:function(tn,bn,Qn){var Wn=this;tn.forEach(function(Gn){var mi=Wn._doc.createElement("style");mi.textContent=Gn,Qn.push(bn.appendChild(mi))})}},{key:"addHost",value:function(tn){var bn=[];this._addStylesToHost(this._stylesSet,tn,bn),this._hostNodes.set(tn,bn)}},{key:"removeHost",value:function(tn){var bn=this._hostNodes.get(tn);bn&&bn.forEach(Se),this._hostNodes.delete(tn)}},{key:"onStylesAdded",value:function(tn){var bn=this;this._hostNodes.forEach(function(Qn,Wn){bn._addStylesToHost(tn,Wn,Qn)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(tn){return tn.forEach(Se)})}}]),zt}(_t);return It.\u0275fac=function(Pt){return new(Pt||It)(_.LFG(C.K0))},It.\u0275prov=_.Yz7({token:It,factory:It.\u0275fac}),It}();function Se(It){(0,C.q)().remove(It)}var Oe={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,Ht="_nghost-".concat("%COMP%"),Et="_ngcontent-".concat("%COMP%");function qt(It,Qt,Pt){for(var zt=0;zt<Qt.length;zt++){var $t=Qt[zt];Array.isArray($t)?qt(It,$t,Pt):($t=$t.replace(je,It),Pt.push($t))}return Pt}function Ct(It){return function(Qt){if("__ngUnwrap__"===Qt)return It;!1===It(Qt)&&(Qt.preventDefault(),Qt.returnValue=!1)}}var bt=function(){var It=function(){function Qt(Pt,zt,$t){(0,Z.Z)(this,Qt),this.eventManager=Pt,this.sharedStylesHost=zt,this.appId=$t,this.rendererByCompId=new Map,this.defaultRenderer=new nn(Pt)}return(0,V.Z)(Qt,[{key:"createRenderer",value:function(zt,$t){if(!zt||!$t)return this.defaultRenderer;switch($t.encapsulation){case _.ifc.Emulated:var tn=this.rendererByCompId.get($t.id);return tn||(tn=new Hn(this.eventManager,this.sharedStylesHost,$t,this.appId),this.rendererByCompId.set($t.id,tn)),tn.applyToHost(zt),tn;case 1:case _.ifc.ShadowDom:return new Zn(this.eventManager,this.sharedStylesHost,zt,$t);default:if(!this.rendererByCompId.has($t.id)){var bn=qt($t.id,$t.styles,[]);this.sharedStylesHost.addStyles(bn),this.rendererByCompId.set($t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),Qt}();return It.\u0275fac=function(Pt){return new(Pt||It)(_.LFG(Ne),_.LFG(Rt),_.LFG(_.AFp))},It.\u0275prov=_.Yz7({token:It,factory:It.\u0275fac}),It}(),nn=function(){function It(Qt){(0,Z.Z)(this,It),this.eventManager=Qt,this.data=Object.create(null)}return(0,V.Z)(It,[{key:"destroy",value:function(){}},{key:"createElement",value:function(Pt,zt){return zt?document.createElementNS(Oe[zt]||zt,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,zt){Pt.appendChild(zt)}},{key:"insertBefore",value:function(Pt,zt,$t){Pt&&Pt.insertBefore(zt,$t)}},{key:"removeChild",value:function(Pt,zt){Pt&&Pt.removeChild(zt)}},{key:"selectRootElement",value:function(Pt,zt){var $t="string"==typeof Pt?document.querySelector(Pt):Pt;if(!$t)throw new Error('The selector "'.concat(Pt,'" did not match any elements'));return zt||($t.textContent=""),$t}},{key:"parentNode",value:function(Pt){return Pt.parentNode}},{key:"nextSibling",value:function(Pt){return Pt.nextSibling}},{key:"setAttribute",value:function(Pt,zt,$t,tn){if(tn){zt=tn+":"+zt;var bn=Oe[tn];bn?Pt.setAttributeNS(bn,zt,$t):Pt.setAttribute(zt,$t)}else Pt.setAttribute(zt,$t)}},{key:"removeAttribute",value:function(Pt,zt,$t){if($t){var tn=Oe[$t];tn?Pt.removeAttributeNS(tn,zt):Pt.removeAttribute("".concat($t,":").concat(zt))}else Pt.removeAttribute(zt)}},{key:"addClass",value:function(Pt,zt){Pt.classList.add(zt)}},{key:"removeClass",value:function(Pt,zt){Pt.classList.remove(zt)}},{key:"setStyle",value:function(Pt,zt,$t,tn){tn&(_.JOm.DashCase|_.JOm.Important)?Pt.style.setProperty(zt,$t,tn&_.JOm.Important?"important":""):Pt.style[zt]=$t}},{key:"removeStyle",value:function(Pt,zt,$t){$t&_.JOm.DashCase?Pt.style.removeProperty(zt):Pt.style[zt]=""}},{key:"setProperty",value:function(Pt,zt,$t){Pt[zt]=$t}},{key:"setValue",value:function(Pt,zt){Pt.nodeValue=zt}},{key:"listen",value:function(Pt,zt,$t){return"string"==typeof Pt?this.eventManager.addGlobalEventListener(Pt,zt,Ct($t)):this.eventManager.addEventListener(Pt,zt,Ct($t))}}]),It}(),Hn=function(It){(0,w.Z)(Pt,It);var Qt=(0,R.Z)(Pt);function Pt(zt,$t,tn,bn){var Qn;(0,Z.Z)(this,Pt),(Qn=Qt.call(this,zt)).component=tn;var Wn=qt(bn+"-"+tn.id,tn.styles,[]);return $t.addStyles(Wn),Qn.contentAttr=function(It){return Et.replace(je,It)}(bn+"-"+tn.id),Qn.hostAttr=function(It){return Ht.replace(je,It)}(bn+"-"+tn.id),Qn}return(0,V.Z)(Pt,[{key:"applyToHost",value:function($t){(0,U.Z)((0,B.Z)(Pt.prototype),"setAttribute",this).call(this,$t,this.hostAttr,"")}},{key:"createElement",value:function($t,tn){var bn=(0,U.Z)((0,B.Z)(Pt.prototype),"createElement",this).call(this,$t,tn);return(0,U.Z)((0,B.Z)(Pt.prototype),"setAttribute",this).call(this,bn,this.contentAttr,""),bn}}]),Pt}(nn),Zn=function(It){(0,w.Z)(Pt,It);var Qt=(0,R.Z)(Pt);function Pt(zt,$t,tn,bn){var Qn;(0,Z.Z)(this,Pt),(Qn=Qt.call(this,zt)).sharedStylesHost=$t,Qn.hostEl=tn,Qn.shadowRoot=tn.attachShadow({mode:"open"}),Qn.sharedStylesHost.addHost(Qn.shadowRoot);for(var Wn=qt(bn.id,bn.styles,[]),Gn=0;Gn<Wn.length;Gn++){var mi=document.createElement("style");mi.textContent=Wn[Gn],Qn.shadowRoot.appendChild(mi)}return Qn}return(0,V.Z)(Pt,[{key:"nodeOrShadowRoot",value:function($t){return $t===this.hostEl?this.shadowRoot:$t}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function($t,tn){return(0,U.Z)((0,B.Z)(Pt.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot($t),tn)}},{key:"insertBefore",value:function($t,tn,bn){return(0,U.Z)((0,B.Z)(Pt.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot($t),tn,bn)}},{key:"removeChild",value:function($t,tn){return(0,U.Z)((0,B.Z)(Pt.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot($t),tn)}},{key:"parentNode",value:function($t){return this.nodeOrShadowRoot((0,U.Z)((0,B.Z)(Pt.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot($t)))}}]),Pt}(nn),lr=function(){var It=function(Qt){(0,w.Z)(zt,Qt);var Pt=(0,R.Z)(zt);function zt($t){return(0,Z.Z)(this,zt),Pt.call(this,$t)}return(0,V.Z)(zt,[{key:"supports",value:function(tn){return!0}},{key:"addEventListener",value:function(tn,bn,Qn){var Wn=this;return tn.addEventListener(bn,Qn,!1),function(){return Wn.removeEventListener(tn,bn,Qn)}}},{key:"removeEventListener",value:function(tn,bn,Qn){return tn.removeEventListener(bn,Qn)}}]),zt}(gt);return It.\u0275fac=function(Pt){return new(Pt||It)(_.LFG(C.K0))},It.\u0275prov=_.Yz7({token:It,factory:It.\u0275fac}),It}(),Ge=["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"},Lt={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"},xn={alt:function(Qt){return Qt.altKey},control:function(Qt){return Qt.ctrlKey},meta:function(Qt){return Qt.metaKey},shift:function(Qt){return Qt.shiftKey}},Nn=function(){var It=function(Qt){(0,w.Z)(zt,Qt);var Pt=(0,R.Z)(zt);function zt($t){return(0,Z.Z)(this,zt),Pt.call(this,$t)}return(0,V.Z)(zt,[{key:"supports",value:function(tn){return null!=zt.parseEventName(tn)}},{key:"addEventListener",value:function(tn,bn,Qn){var Wn=zt.parseEventName(bn),Gn=zt.eventCallback(Wn.fullKey,Qn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return(0,C.q)().onAndCancel(tn,Wn.domEventName,Gn)})}}],[{key:"parseEventName",value:function(tn){var bn=tn.toLowerCase().split("."),Qn=bn.shift();if(0===bn.length||"keydown"!==Qn&&"keyup"!==Qn)return null;var Wn=zt._normalizeKey(bn.pop()),Gn="";if(Ge.forEach(function(Bi){var ao=bn.indexOf(Bi);ao>-1&&(bn.splice(ao,1),Gn+=Bi+".")}),Gn+=Wn,0!=bn.length||0===Wn.length)return null;var mi={};return mi.domEventName=Qn,mi.fullKey=Gn,mi}},{key:"getEventFullKey",value:function(tn){var bn="",Qn=function(It){var Qt=It.key;if(null==Qt){if(null==(Qt=It.keyIdentifier))return"Unidentified";Qt.startsWith("U+")&&(Qt=String.fromCharCode(parseInt(Qt.substring(2),16)),3===It.location&&Lt.hasOwnProperty(Qt)&&(Qt=Lt[Qt]))}return yt[Qt]||Qt}(tn);return" "===(Qn=Qn.toLowerCase())?Qn="space":"."===Qn&&(Qn="dot"),Ge.forEach(function(Wn){Wn!=Qn&&(0,xn[Wn])(tn)&&(bn+=Wn+".")}),bn+=Qn}},{key:"eventCallback",value:function(tn,bn,Qn){return function(Wn){zt.getEventFullKey(Wn)===tn&&Qn.runGuarded(function(){return bn(Wn)})}}},{key:"_normalizeKey",value:function(tn){switch(tn){case"esc":return"escape";default:return tn}}}]),zt}(gt);return It.\u0275fac=function(Pt){return new(Pt||It)(_.LFG(C.K0))},It.\u0275prov=_.Yz7({token:It,factory:It.\u0275fac}),It}(),wn=function(){var It=function Qt(){(0,Z.Z)(this,Qt)};return It.\u0275fac=function(Pt){return new(Pt||It)},It.\u0275prov=(0,_.Yz7)({factory:function(){return(0,_.LFG)(ir)},token:It,providedIn:"root"}),It}(),ir=function(){var It=function(Qt){(0,w.Z)(zt,Qt);var Pt=(0,R.Z)(zt);function zt($t){var tn;return(0,Z.Z)(this,zt),(tn=Pt.call(this))._doc=$t,tn}return(0,V.Z)(zt,[{key:"sanitize",value:function(tn,bn){if(null==bn)return null;switch(tn){case _.q3G.NONE:return bn;case _.q3G.HTML:return(0,_.qzn)(bn,"HTML")?(0,_.z3N)(bn):(0,_.EiD)(this._doc,String(bn)).toString();case _.q3G.STYLE:return(0,_.qzn)(bn,"Style")?(0,_.z3N)(bn):bn;case _.q3G.SCRIPT:if((0,_.qzn)(bn,"Script"))return(0,_.z3N)(bn);throw new Error("unsafe value used in a script context");case _.q3G.URL:return(0,_.yhl)(bn),(0,_.qzn)(bn,"URL")?(0,_.z3N)(bn):(0,_.mCW)(String(bn));case _.q3G.RESOURCE_URL:if((0,_.qzn)(bn,"ResourceURL"))return(0,_.z3N)(bn);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(tn," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(tn){return(0,_.JVY)(tn)}},{key:"bypassSecurityTrustStyle",value:function(tn){return(0,_.L6k)(tn)}},{key:"bypassSecurityTrustScript",value:function(tn){return(0,_.eBb)(tn)}},{key:"bypassSecurityTrustUrl",value:function(tn){return(0,_.LAX)(tn)}},{key:"bypassSecurityTrustResourceUrl",value:function(tn){return(0,_.pB0)(tn)}}]),zt}(wn);return It.\u0275fac=function(Pt){return new(Pt||It)(_.LFG(C.K0))},It.\u0275prov=(0,_.Yz7)({factory:function(){return function(It){return new ir(It.get(C.K0))}((0,_.LFG)(_.gxx))},token:It,providedIn:"root"}),It}(),Ae=(0,_.eFA)(_._c5,"browser",[{provide:_.Lbi,useValue:C.bD},{provide:_.g9A,useValue:function(){D.makeCurrent(),x.init()},multi:!0},{provide:C.K0,useFactory:function(){return(0,_.RDi)(document),document},deps:[]}]),Le=[[],{provide:_.zSh,useValue:"root"},{provide:_.qLn,useFactory:function(){return new _.qLn},deps:[]},{provide:et,useClass:lr,multi:!0,deps:[C.K0,_.R0b,_.Lbi]},{provide:et,useClass:Nn,multi:!0,deps:[C.K0]},[],{provide:bt,useClass:bt,deps:[Ne,Rt,_.AFp]},{provide:_.FYo,useExisting:bt},{provide:_t,useExisting:Rt},{provide:Rt,useClass:Rt,deps:[C.K0]},{provide:_.dDg,useClass:_.dDg,deps:[_.R0b]},{provide:Ne,useClass:Ne,deps:[et,_.R0b]},{provide:C.JF,useClass:S,deps:[]},[]],ze=function(){var It=function(){function Qt(Pt){if((0,Z.Z)(this,Qt),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)(Qt,null,[{key:"withServerTransition",value:function(zt){return{ngModule:Qt,providers:[{provide:_.AFp,useValue:zt.appId},{provide:T,useExisting:_.AFp},E]}}}]),Qt}();return It.\u0275fac=function(Pt){return new(Pt||It)(_.LFG(It,12))},It.\u0275mod=_.oAB({type:It}),It.\u0275inj=_.cJS({providers:Le,imports:[C.ez,_.hGG]}),It}();function Jr(){return new ai((0,_.LFG)(C.K0))}var ai=function(){var It=function(){function Qt(Pt){(0,Z.Z)(this,Qt),this._doc=Pt}return(0,V.Z)(Qt,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(zt){this._doc.title=zt||""}}]),Qt}();return It.\u0275fac=function(Pt){return new(Pt||It)(_.LFG(C.K0))},It.\u0275prov=(0,_.Yz7)({factory:Jr,token:It,providedIn:"root"}),It}(),Ir="undefined"!=typeof window&&window||{},vi=function It(Qt,Pt){(0,Z.Z)(this,It),this.msPerTick=Qt,this.numTicks=Pt},co=function(){function It(Qt){(0,Z.Z)(this,It),this.appRef=Qt.injector.get(_.z2F)}return(0,V.Z)(It,[{key:"timeChangeDetection",value:function(Pt){var zt=Pt&&Pt.record,$t="Change Detection",tn=null!=Ir.console.profile;zt&&tn&&Ir.console.profile($t);for(var bn=Gi(),Qn=0;Qn<5||Gi()-bn<500;)this.appRef.tick(),Qn++;var Wn=Gi();zt&&tn&&Ir.console.profileEnd($t);var Gn=(Wn-bn)/Qn;return Ir.console.log("ran ".concat(Qn," change detection cycles")),Ir.console.log("".concat(Gn.toFixed(2)," ms per check")),new vi(Gn,Qn)}}]),It}();function Gi(){return Ir.performance&&Ir.performance.now?Ir.performance.now():(new Date).getTime()}function fa(It){return function(It,Qt){"undefined"!=typeof COMPILED&&COMPILED||((_.dqk.ng=_.dqk.ng||{})[It]=Qt)}("profiler",new co(It)),It}},82605:function(le,q,f){"use strict";f.d(q,{Rf:function(){return V},DM:function(){return Z},en:function(){return w},jH:function(){return R},Cf:function(){return C},Db:function(){return _},EG:function(){return N},l4:function(){return D},JY:function(){return g}});var U=f(4839),B={};function V(){return(0,U.KV)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:B}function Z(){var E=V(),x=E.crypto||E.msCrypto;if(void 0!==x&&x.getRandomValues){var S=new Uint16Array(8);x.getRandomValues(S),S[3]=4095&S[3]|16384,S[4]=16383&S[4]|32768;var A=function(j){for(var K=j.toString(16);K.length<4;)K="0"+K;return K};return A(S[0])+A(S[1])+A(S[2])+A(S[3])+A(S[4])+A(S[5])+A(S[6])+A(S[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(L){var j=16*Math.random()|0;return("x"===L?j:3&j|8).toString(16)})}function w(E){if(!E)return{};var x=E.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return x?{host:x[4],path:x[5],protocol:x[2],relative:x[5]+(x[6]||"")+(x[8]||"")}:{}}function R(E){if(E.message)return E.message;if(E.exception&&E.exception.values&&E.exception.values[0]){var x=E.exception.values[0];return x.type&&x.value?x.type+": "+x.value:x.type||x.value||E.event_id||"<unknown>"}return E.event_id||"<unknown>"}function C(E){var x=V();if(!("console"in x))return E();var A=x.console,L={};["debug","info","warn","error","log","assert"].forEach(function(K){K in x.console&&A[K].__sentry_original__&&(L[K]=A[K],A[K]=A[K].__sentry_original__)});var j=E();return Object.keys(L).forEach(function(K){A[K]=L[K]}),j}function _(E,x,S){E.exception=E.exception||{},E.exception.values=E.exception.values||[],E.exception.values[0]=E.exception.values[0]||{},E.exception.values[0].value=E.exception.values[0].value||x||"",E.exception.values[0].type=E.exception.values[0].type||S||"Error"}function N(E,x){void 0===x&&(x={});try{E.exception.values[0].mechanism=E.exception.values[0].mechanism||{},Object.keys(x).forEach(function(S){E.exception.values[0].mechanism[S]=x[S]})}catch(S){}}function D(){try{return document.location.href}catch(E){return""}}function g(E,x){if(!x)return 6e4;var S=parseInt(""+x,10);if(!isNaN(S))return 1e3*S;var A=Date.parse(""+x);return isNaN(A)?6e4:A-E}},4839:function(le,q,f){"use strict";function U(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function B(Z,w){return Z.require(w)}f.d(q,{KV:function(){return U},l$:function(){return B}}),le=f.hmd(le)},46354:function(le,q,f){"use strict";f.d(q,{yW:function(){return _},ph:function(){return N}});var U=f(82605),B=f(4839);le=f.hmd(le);var V={nowSeconds:function(){return Date.now()/1e3}},R=(0,B.KV)()?function(){try{return(0,B.l$)(le,"perf_hooks").performance}catch(T){return}}():function(){var g=(0,U.Rf)().performance;if(g&&g.now)return{now:function(){return g.now()},timeOrigin:Date.now()-g.now()}}(),C=void 0===R?V:{nowSeconds:function(){return(R.timeOrigin+R.now())/1e3}},_=V.nowSeconds.bind(V),N=C.nowSeconds.bind(C);!function(){var g=(0,U.Rf)().performance;if(g&&g.now){var T=36e5,M=g.now(),E=Date.now(),x=g.timeOrigin?Math.abs(g.timeOrigin+M-E):T,S=x<T,A=g.timing&&g.timing.navigationStart,j="number"==typeof A?Math.abs(A+M-E):T}}()},39095:function(le,q,f){"use strict";f.d(q,{E$:function(){return Rt},ym:function(){return je}});var U=f(27235),B=f(18967),V=f(14105),Z=f(40098),w=f(65508),R=f(68707),C=f(55371),_=f(93487),N=f(89797),O=(f(33090),f(59371)),P=f(16338),y=f(57682),g=f(85639),T=f(34487),M=f(54562),E=f(44213),x=f(35135),S=f(48359),A=f(4363),L=f(58780),j="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function K(ct,Xe){var Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,Et=Math.abs(ct-Xe);return Et<Ht}function z(ct,Xe,Ht,Et){var vt={top:ct.top,bottom:ct.bottom,left:ct.left,right:ct.right};return Xe.top&&(vt.top+=Et),Xe.bottom&&(vt.bottom+=Et),Xe.left&&(vt.left+=Ht),Xe.right&&(vt.right+=Ht),vt.height=vt.bottom-vt.top,vt.width=vt.right-vt.left,vt}function ae(ct){var Xe=ct.clientY,Ht=ct.rect;return Xe>=Ht.top&&Xe<=Ht.bottom}function ie(ct){var Xe=ct.clientX,Ht=ct.rect;return Xe>=Ht.left&&Xe<=Ht.right}function se(ct){var Xe=ct.clientX,Ht=ct.clientY,vt=ct.allowedEdges,Xt=ct.cursorPrecision,qt=ct.elm.nativeElement.getBoundingClientRect(),Ct={};return vt.left&&K(Xe,qt.left,Xt)&&ae({clientY:Ht,rect:qt})&&(Ct.left=!0),vt.right&&K(Xe,qt.right,Xt)&&ae({clientY:Ht,rect:qt})&&(Ct.right=!0),vt.top&&K(Ht,qt.top,Xt)&&ie({clientX:Xe,rect:qt})&&(Ct.top=!0),vt.bottom&&K(Ht,qt.bottom,Xt)&&ie({clientX:Xe,rect:qt})&&(Ct.bottom=!0),Ct}var ue=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function de(ct,Xe){return ct.left&&ct.top?Xe.topLeft:ct.right&&ct.top?Xe.topRight:ct.left&&ct.bottom?Xe.bottomLeft:ct.right&&ct.bottom?Xe.bottomRight:ct.left||ct.right?Xe.leftOrRight:ct.top||ct.bottom?Xe.topOrBottom:""}function oe(ct){var Ht=ct.initialRectangle,Et=ct.newRectangle,vt={};return Object.keys(ct.edges).forEach(function(Xt){vt[Xt]=(Et[Xt]||0)-(Ht[Xt]||0)}),vt}var $="resize-active",Rt=function(){var ct=function(){function Xe(Ht,Et,vt,Xt){(0,B.Z)(this,Xe),this.platformId=Ht,this.renderer=Et,this.elm=vt,this.zone=Xt,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=ue,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 R.xQ,this.mousedown=new R.xQ,this.mousemove=new R.xQ,this.destroy$=new R.xQ,this.resizeEdges$=new R.xQ,this.pointerEventListeners=Se.getInstance(Et,Xt)}return(0,V.Z)(Xe,[{key:"ngOnInit",value:function(){var Ct,Et=this,vt=(0,C.T)(this.pointerEventListeners.pointerDown,this.mousedown),Xt=(0,C.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,O.b)(function(Ut){var an=Ut.event;if(Ct)try{an.preventDefault()}catch(An){}}),(0,P.B)()),qt=(0,C.T)(this.pointerEventListeners.pointerUp,this.mouseup),jt=function(){Ct&&Ct.clonedNode&&(Et.elm.nativeElement.parentElement.removeChild(Ct.clonedNode),Et.renderer.setStyle(Et.elm.nativeElement,"visibility","inherit"))},bt=function(){return Object.assign({},ue,Et.resizeCursors)};this.resizeEdges$.pipe((0,y.O)(this.resizeEdges),(0,g.U)(function(){return Et.resizeEdges&&Object.keys(Et.resizeEdges).some(function(Ut){return!!Et.resizeEdges[Ut]})}),(0,T.w)(function(Ut){return Ut?Xt:_.E}),(0,M.e)(this.mouseMoveThrottleMS),(0,E.R)(this.destroy$)).subscribe(function(Ut){var Hn=se({clientX:Ut.clientX,clientY:Ut.clientY,elm:Et.elm,allowedEdges:Et.resizeEdges,cursorPrecision:Et.resizeCursorPrecision}),Zn=bt();if(!Ct){var lr=de(Hn,Zn);Et.renderer.setStyle(Et.elm.nativeElement,"cursor",lr)}Et.setElementClass(Et.elm,"resize-left-hover",!0===Hn.left),Et.setElementClass(Et.elm,"resize-right-hover",!0===Hn.right),Et.setElementClass(Et.elm,"resize-top-hover",!0===Hn.top),Et.setElementClass(Et.elm,"resize-bottom-hover",!0===Hn.bottom)}),vt.pipe((0,x.zg)(function(Ut){function an(Zn){return{clientX:Zn.clientX-Ut.clientX,clientY:Zn.clientY-Ut.clientY}}var An=function(){var lr={x:1,y:1};return Ct&&(Et.resizeSnapGrid.left&&Ct.edges.left?lr.x=+Et.resizeSnapGrid.left:Et.resizeSnapGrid.right&&Ct.edges.right&&(lr.x=+Et.resizeSnapGrid.right),Et.resizeSnapGrid.top&&Ct.edges.top?lr.y=+Et.resizeSnapGrid.top:Et.resizeSnapGrid.bottom&&Ct.edges.bottom&&(lr.y=+Et.resizeSnapGrid.bottom)),lr};function Hn(Zn,lr){return{x:Math.ceil(Zn.clientX/lr.x),y:Math.ceil(Zn.clientY/lr.y)}}return(0,C.T)(Xt.pipe((0,S.q)(1)).pipe((0,g.U)(function(Zn){return[,Zn]})),Xt.pipe((0,A.G)())).pipe((0,g.U)(function(Zn){var lr=(0,U.Z)(Zn,2),Bn=lr[0],En=lr[1];return[Bn&&an(Bn),an(En)]})).pipe((0,L.h)(function(Zn){var lr=(0,U.Z)(Zn,2),Bn=lr[0],En=lr[1];if(!Bn)return!0;var mr=An(),Kt=Hn(Bn,mr),wt=Hn(En,mr);return Kt.x!==wt.x||Kt.y!==wt.y})).pipe((0,g.U)(function(Zn){var Bn=(0,U.Z)(Zn,2)[1],En=An();return{clientX:Math.round(Bn.clientX/En.x)*En.x,clientY:Math.round(Bn.clientY/En.y)*En.y}})).pipe((0,E.R)((0,C.T)(qt,vt)))})).pipe((0,L.h)(function(){return!!Ct})).pipe((0,g.U)(function(Ut){return z(Ct.startingRect,Ct.edges,Ut.clientX,Ut.clientY)})).pipe((0,L.h)(function(Ut){return Et.allowNegativeResizes||!!(Ut.height&&Ut.width&&Ut.height>0&&Ut.width>0)})).pipe((0,L.h)(function(Ut){return!Et.validateResize||Et.validateResize({rectangle:Ut,edges:oe({edges:Ct.edges,initialRectangle:Ct.startingRect,newRectangle:Ut})})}),(0,E.R)(this.destroy$)).subscribe(function(Ut){Ct&&Ct.clonedNode&&(Et.renderer.setStyle(Ct.clonedNode,"height","".concat(Ut.height,"px")),Et.renderer.setStyle(Ct.clonedNode,"width","".concat(Ut.width,"px")),Et.renderer.setStyle(Ct.clonedNode,"top","".concat(Ut.top,"px")),Et.renderer.setStyle(Ct.clonedNode,"left","".concat(Ut.left,"px"))),Et.resizing.observers.length>0&&Et.zone.run(function(){Et.resizing.emit({edges:oe({edges:Ct.edges,initialRectangle:Ct.startingRect,newRectangle:Ut}),rectangle:Ut})}),Ct.currentRect=Ut}),vt.pipe((0,g.U)(function(Ut){return Ut.edges||se({clientX:Ut.clientX,clientY:Ut.clientY,elm:Et.elm,allowedEdges:Et.resizeEdges,cursorPrecision:Et.resizeCursorPrecision})})).pipe((0,L.h)(function(Ut){return Object.keys(Ut).length>0}),(0,E.R)(this.destroy$)).subscribe(function(Ut){Ct&&jt();var an=function(ct,Xe){var Ht=0,Et=0,vt=ct.nativeElement.style,qt=["transform","-ms-transform","-moz-transform","-o-transform"].map(function(jt){return vt[jt]}).find(function(jt){return!!jt});if(qt&&qt.includes("translate")&&(Ht=qt.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),Et=qt.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===Xe)return{height:ct.nativeElement.offsetHeight,width:ct.nativeElement.offsetWidth,top:ct.nativeElement.offsetTop-Et,bottom:ct.nativeElement.offsetHeight+ct.nativeElement.offsetTop-Et,left:ct.nativeElement.offsetLeft-Ht,right:ct.nativeElement.offsetWidth+ct.nativeElement.offsetLeft-Ht};var Ct=ct.nativeElement.getBoundingClientRect();return{height:Ct.height,width:Ct.width,top:Ct.top-Et,bottom:Ct.bottom-Et,left:Ct.left-Ht,right:Ct.right-Ht,scrollTop:ct.nativeElement.scrollTop,scrollLeft:ct.nativeElement.scrollLeft}}(Et.elm,Et.ghostElementPositioning);Ct={edges:Ut,startingRect:an,currentRect:an};var An=bt(),Hn=de(Ct.edges,An);Et.renderer.setStyle(document.body,"cursor",Hn),Et.setElementClass(Et.elm,$,!0),Et.enableGhostResize&&(Ct.clonedNode=Et.elm.nativeElement.cloneNode(!0),Et.elm.nativeElement.parentElement.appendChild(Ct.clonedNode),Et.renderer.setStyle(Et.elm.nativeElement,"visibility","hidden"),Et.renderer.setStyle(Ct.clonedNode,"position",Et.ghostElementPositioning),Et.renderer.setStyle(Ct.clonedNode,"left","".concat(Ct.startingRect.left,"px")),Et.renderer.setStyle(Ct.clonedNode,"top","".concat(Ct.startingRect.top,"px")),Et.renderer.setStyle(Ct.clonedNode,"height","".concat(Ct.startingRect.height,"px")),Et.renderer.setStyle(Ct.clonedNode,"width","".concat(Ct.startingRect.width,"px")),Et.renderer.setStyle(Ct.clonedNode,"cursor",de(Ct.edges,An)),Et.renderer.addClass(Ct.clonedNode,"resize-ghost-element"),Ct.clonedNode.scrollTop=Ct.startingRect.scrollTop,Ct.clonedNode.scrollLeft=Ct.startingRect.scrollLeft),Et.resizeStart.observers.length>0&&Et.zone.run(function(){Et.resizeStart.emit({edges:oe({edges:Ut,initialRectangle:an,newRectangle:an}),rectangle:z(an,{},0,0)})})}),qt.pipe((0,E.R)(this.destroy$)).subscribe(function(){Ct&&(Et.renderer.removeClass(Et.elm.nativeElement,$),Et.renderer.setStyle(document.body,"cursor",""),Et.renderer.setStyle(Et.elm.nativeElement,"cursor",""),Et.resizeEnd.observers.length>0&&Et.zone.run(function(){Et.resizeEnd.emit({edges:oe({edges:Ct.edges,initialRectangle:Ct.startingRect,newRectangle:Ct.currentRect}),rectangle:Ct.currentRect})}),jt(),Ct=null)})}},{key:"ngOnChanges",value:function(Et){Et.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(Et,vt,Xt){Xt?this.renderer.addClass(Et.nativeElement,vt):this.renderer.removeClass(Et.nativeElement,vt)}}]),Xe}();return ct.\u0275fac=function(Ht){return new(Ht||ct)(w.Y36(w.Lbi),w.Y36(w.Qsj),w.Y36(w.SBq),w.Y36(w.R0b))},ct.\u0275dir=w.lG2({type:ct,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]}),ct}(),Se=function(){function ct(Xe,Ht){(0,B.Z)(this,ct),this.pointerDown=new N.y(function(Et){var vt,Xt;return Ht.runOutsideAngular(function(){vt=Xe.listen("document","mousedown",function(qt){Et.next({clientX:qt.clientX,clientY:qt.clientY,event:qt})}),j&&(Xt=Xe.listen("document","touchstart",function(qt){Et.next({clientX:qt.touches[0].clientX,clientY:qt.touches[0].clientY,event:qt})}))}),function(){vt(),j&&Xt()}}).pipe((0,P.B)()),this.pointerMove=new N.y(function(Et){var vt,Xt;return Ht.runOutsideAngular(function(){vt=Xe.listen("document","mousemove",function(qt){Et.next({clientX:qt.clientX,clientY:qt.clientY,event:qt})}),j&&(Xt=Xe.listen("document","touchmove",function(qt){Et.next({clientX:qt.targetTouches[0].clientX,clientY:qt.targetTouches[0].clientY,event:qt})}))}),function(){vt(),j&&Xt()}}).pipe((0,P.B)()),this.pointerUp=new N.y(function(Et){var vt,Xt,qt;return Ht.runOutsideAngular(function(){vt=Xe.listen("document","mouseup",function(Ct){Et.next({clientX:Ct.clientX,clientY:Ct.clientY,event:Ct})}),j&&(Xt=Xe.listen("document","touchend",function(Ct){Et.next({clientX:Ct.changedTouches[0].clientX,clientY:Ct.changedTouches[0].clientY,event:Ct})}),qt=Xe.listen("document","touchcancel",function(Ct){Et.next({clientX:Ct.changedTouches[0].clientX,clientY:Ct.changedTouches[0].clientY,event:Ct})}))}),function(){vt(),j&&(Xt(),qt())}}).pipe((0,P.B)())}return(0,V.Z)(ct,null,[{key:"getInstance",value:function(Ht,Et){return ct.instance||(ct.instance=new ct(Ht,Et)),ct.instance}}]),ct}(),je=function(){var ct=function Xe(){(0,B.Z)(this,Xe)};return ct.\u0275fac=function(Ht){return new(Ht||ct)},ct.\u0275mod=w.oAB({type:ct}),ct.\u0275inj=w.cJS({}),ct}()},57695:function(le,q,f){var U=f(94518),B=f(23050),V=f(99262),Z=f(44900),w=/^\s*\|\s*/;function C(D,O){var P={};for(var y in D)P[y]=D[y].syntax||D[y];for(var g in O)g in D?O[g].syntax?P[g]=w.test(O[g].syntax)?P[g]+" "+O[g].syntax.trim():O[g].syntax:delete P[g]:O[g].syntax&&(P[g]=O[g].syntax.replace(w,""));return P}function _(D){var O={};for(var P in D)O[P]=D[P].syntax;return O}le.exports={types:C(V,Z.syntaxes),atrules:function(D,O){var P={};for(var y in D){var g=O[y]&&O[y].descriptors||null;P[y]={prelude:y in O&&"prelude"in O[y]?O[y].prelude:D[y].prelude||null,descriptors:D[y].descriptors?C(D[y].descriptors,g||{}):g&&_(g)}}for(var T in O)hasOwnProperty.call(D,T)||(P[T]={prelude:O[T].prelude||null,descriptors:O[T].descriptors&&_(O[T].descriptors)});return P}(function(D){var O=Object.create(null);for(var P in D){var y=D[P],g=null;if(y.descriptors)for(var T in g=Object.create(null),y.descriptors)g[T]=y.descriptors[T].syntax;O[P.substr(1)]={prelude:y.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:g}}return O}(U),Z.atrules),properties:C(B,Z.properties)}},63335:function(le){function q(Z){return{prev:null,next:null,data:Z}}function f(Z,w,R){var C;return null!==B?(C=B,B=B.cursor,C.prev=w,C.next=R,C.cursor=Z.cursor):C={prev:w,next:R,cursor:Z.cursor},Z.cursor=C,C}function U(Z){var w=Z.cursor;Z.cursor=w.cursor,w.prev=null,w.next=null,w.cursor=B,B=w}var B=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,R,C){for(var _=this.cursor;null!==_;)_.prev===Z&&(_.prev=w),_.next===R&&(_.next=C),_=_.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 R=0;R<Z.length;R++){var C=q(Z[R]);null!==w?w.next=C:this.head=C,C.prev=w,w=C}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 R;void 0===w&&(w=this);for(var C=f(this,null,this.head);null!==C.next;)C.next=(R=C.next).next,Z.call(w,R.data,R,this);U(this)},V.prototype.forEachRight=V.prototype.eachRight=function(Z,w){var R;void 0===w&&(w=this);for(var C=f(this,this.tail,null);null!==C.prev;)C.prev=(R=C.prev).prev,Z.call(w,R.data,R,this);U(this)},V.prototype.reduce=function(Z,w,R){var C;void 0===R&&(R=this);for(var _=f(this,null,this.head),N=w;null!==_.next;)_.next=(C=_.next).next,N=Z.call(R,N,C.data,C,this);return U(this),N},V.prototype.reduceRight=function(Z,w,R){var C;void 0===R&&(R=this);for(var _=f(this,this.tail,null),N=w;null!==_.prev;)_.prev=(C=_.prev).prev,N=Z.call(R,N,C.data,C,this);return U(this),N},V.prototype.nextUntil=function(Z,w,R){if(null!==Z){var C;void 0===R&&(R=this);for(var _=f(this,null,Z);null!==_.next&&(_.next=(C=_.next).next,!w.call(R,C.data,C,this)););U(this)}},V.prototype.prevUntil=function(Z,w,R){if(null!==Z){var C;void 0===R&&(R=this);for(var _=f(this,Z,null);null!==_.prev&&(_.prev=(C=_.prev).prev,!w.call(R,C.data,C,this)););U(this)}},V.prototype.some=function(Z,w){var R=this.head;for(void 0===w&&(w=this);null!==R;){if(Z.call(w,R.data,R,this))return!0;R=R.next}return!1},V.prototype.map=function(Z,w){var R=new V,C=this.head;for(void 0===w&&(w=this);null!==C;)R.appendData(Z.call(w,C.data,C,this)),C=C.next;return R},V.prototype.filter=function(Z,w){var R=new V,C=this.head;for(void 0===w&&(w=this);null!==C;)Z.call(w,C.data,C,this)&&R.appendData(C.data),C=C.next;return R},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)},le.exports=V},88373:function(le,q,f){var U=f(62146),B=f(97555).isBOM,C=function(){this.lines=null,this.columns=null,this.linesAndColumnsComputed=!1};C.prototype={setSource:function(N,D,O,P){this.source=N,this.startOffset=void 0===D?0:D,this.startLine=void 0===O?1:O,this.startColumn=void 0===P?1:P,this.linesAndColumnsComputed=!1},ensureLinesAndColumnsComputed:function(){this.linesAndColumnsComputed||(function(_,N){for(var D=N.length,O=U(_.lines,D),P=_.startLine,y=U(_.columns,D),g=_.startColumn,M=N.length>0?B(N.charCodeAt(0)):0;M<D;M++){var E=N.charCodeAt(M);O[M]=P,y[M]=g++,(10===E||13===E||12===E)&&(13===E&&M+1<D&&10===N.charCodeAt(M+1)&&(O[++M]=P,y[M]=g),P++,g=1)}O[M]=P,y[M]=g,_.lines=O,_.columns=y}(this,this.source),this.linesAndColumnsComputed=!0)},getLocation:function(N,D){return this.ensureLinesAndColumnsComputed(),{source:D,offset:this.startOffset+N,line:this.lines[N],column:this.columns[N]}},getLocationRange:function(N,D,O){return this.ensureLinesAndColumnsComputed(),{source:O,start:{offset:this.startOffset+N,line:this.lines[N],column:this.columns[N]},end:{offset:this.startOffset+D,line:this.lines[D],column:this.columns[D]}}}},le.exports=C},52556:function(le,q,f){var U=f(92455),Z=" ";function w(C,_){function N(x,S){return D.slice(x,S).map(function(A,L){for(var j=String(x+L+1);j.length<T;)j=" "+j;return j+" |"+A}).join("\n")}var D=C.source.split(/\r\n?|\n|\f/),O=C.line,P=C.column,y=Math.max(1,O-_)-1,g=Math.min(O+_,D.length+1),T=Math.max(4,String(g).length)+1,M=0;(P+=(Z.length-1)*(D[O-1].substr(0,P-1).match(/\t/g)||[]).length)>100&&(M=P-60+3,P=58);for(var E=y;E<=g;E++)E>=0&&E<D.length&&(D[E]=D[E].replace(/\t/g,Z),D[E]=(M>0&&D[E].length>M?"\u2026":"")+D[E].substr(M,98)+(D[E].length>M+100-1?"\u2026":""));return[N(y,O),new Array(P+T+2).join("-")+"^",N(O,g)].filter(Boolean).join("\n")}le.exports=function(_,N,D,O,P){var y=U("SyntaxError",_);return y.source=N,y.offset=D,y.line=O,y.column=P,y.sourceFragment=function(g){return w(y,isNaN(g)?0:g)},Object.defineProperty(y,"formattedMessage",{get:function(){return"Parse error: "+y.message+"\n"+w(y,2)}}),y.parseError={offset:D,line:O,column:P},y}},13146:function(le,q,f){var U=f(97077),B=U.TYPE,V=U.NAME,w=f(74586).cmpStr,R=B.EOF,C=B.WhiteSpace,_=B.Comment,N=16777215,D=24,O=function(){this.offsetAndType=null,this.balance=null,this.reset()};O.prototype={reset:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset},lookupType:function(y){return(y+=this.tokenIndex)<this.tokenCount?this.offsetAndType[y]>>D:R},lookupOffset:function(y){return(y+=this.tokenIndex)<this.tokenCount?this.offsetAndType[y-1]&N:this.source.length},lookupValue:function(y,g){return(y+=this.tokenIndex)<this.tokenCount&&w(this.source,this.offsetAndType[y-1]&N,this.offsetAndType[y]&N,g)},getTokenStart:function(y){return y===this.tokenIndex?this.tokenStart:y>0?y<this.tokenCount?this.offsetAndType[y-1]&N:this.offsetAndType[this.tokenCount]&N:this.firstCharOffset},getRawLength:function(y,g){var M,T=y,E=this.offsetAndType[Math.max(T-1,0)]&N;e:for(;T<this.tokenCount&&!((M=this.balance[T])<y);T++)switch(g(this.offsetAndType[T]>>D,this.source,E)){case 1:break e;case 2:T++;break e;default:this.balance[M]===T&&(T=M),E=this.offsetAndType[T]&N}return T-this.tokenIndex},isBalanceEdge:function(y){return this.balance[this.tokenIndex]<y},isDelim:function(y,g){return g?this.lookupType(g)===B.Delim&&this.source.charCodeAt(this.lookupOffset(g))===y:this.tokenType===B.Delim&&this.source.charCodeAt(this.tokenStart)===y},getTokenValue:function(){return this.source.substring(this.tokenStart,this.tokenEnd)},getTokenLength:function(){return this.tokenEnd-this.tokenStart},substrToCursor:function(y){return this.source.substring(y,this.tokenStart)},skipWS:function(){for(var y=this.tokenIndex,g=0;y<this.tokenCount&&this.offsetAndType[y]>>D===C;y++,g++);g>0&&this.skip(g)},skipSC:function(){for(;this.tokenType===C||this.tokenType===_;)this.next()},skip:function(y){var g=this.tokenIndex+y;g<this.tokenCount?(this.tokenIndex=g,this.tokenStart=this.offsetAndType[g-1]&N,this.tokenType=(g=this.offsetAndType[g])>>D,this.tokenEnd=g&N):(this.tokenIndex=this.tokenCount,this.next())},next:function(){var y=this.tokenIndex+1;y<this.tokenCount?(this.tokenIndex=y,this.tokenStart=this.tokenEnd,this.tokenType=(y=this.offsetAndType[y])>>D,this.tokenEnd=y&N):(this.tokenIndex=this.tokenCount,this.eof=!0,this.tokenType=R,this.tokenStart=this.tokenEnd=this.source.length)},forEachToken:function(y){for(var g=0,T=this.firstCharOffset;g<this.tokenCount;g++){var M=T,E=this.offsetAndType[g],x=E&N;T=x,y(E>>D,M,x,g)}},dump:function(){var y=this,g=new Array(this.tokenCount);return this.forEachToken(function(T,M,E,x){g[x]={idx:x,type:V[T],chunk:y.source.substring(M,E),balance:y.balance[x]}}),g}},le.exports=O},62146:function(le){var f="undefined"!=typeof Uint32Array?Uint32Array:Array;le.exports=function(B,V){return null===B||B.length<V?new f(Math.max(V+1024,16384)):B}},62139:function(le,q,f){var U=f(63335);le.exports=function(V){return{fromPlainObject:function(w){return V(w,{enter:function(C){C.children&&!(C.children instanceof U)&&(C.children=(new U).fromArray(C.children))}}),w},toPlainObject:function(w){return V(w,{leave:function(C){C.children&&C.children instanceof U&&(C.children=C.children.toArray())}}),w}}}},6063:function(le,q,f){var U=f(92455);le.exports=function(V,Z,w){var R=U("SyntaxError",V);return R.input=Z,R.offset=w,R.rawMessage=V,R.message=R.rawMessage+"\n "+R.input+"\n--"+new Array((R.offset||R.input.length)+1).join("-")+"^",R}},58298:function(le){function q(Z){return Z}function V(Z,w,R,C){var _;switch(Z.type){case"Group":_=function(Z,w,R,C){var _=" "===Z.combinator||C?Z.combinator:" "+Z.combinator+" ",N=Z.terms.map(function(D){return V(D,w,R,C)}).join(_);return(Z.explicit||R)&&(N=(C||","===N[0]?"[":"[ ")+N+(C?"]":" ]")),N}(Z,w,R,C)+(Z.disallowEmpty?"!":"");break;case"Multiplier":return V(Z.term,w,R,C)+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)}le.exports=function(Z,w){var R=q,C=!1,_=!1;return"function"==typeof w?R=w:w&&(C=Boolean(w.forceBraces),_=Boolean(w.compact),"function"==typeof w.decorate&&(R=w.decorate)),V(Z,R,C,_)}},37149:function(le,q,f){le.exports={SyntaxError:f(6063),parse:f(11261),generate:f(58298),walk:f(37363)}},11261:function(le,q,f){var U=f(57674),K=123,ie=function(vt){for(var Xt="function"==typeof Uint32Array?new Uint32Array(128):new Array(128),qt=0;qt<128;qt++)Xt[qt]=vt(String.fromCharCode(qt))?1:0;return Xt}(function(vt){return/[a-zA-Z0-9\-]/.test(vt)}),se={" ":1,"&&":2,"||":3,"|":4};function de(vt){return vt.substringToPos(vt.findWsEnd(vt.pos))}function oe(vt){for(var Xt=vt.pos;Xt<vt.str.length;Xt++){var qt=vt.str.charCodeAt(Xt);if(qt>=128||0===ie[qt])break}return vt.pos===Xt&&vt.error("Expect a keyword"),vt.substringToPos(Xt)}function $(vt){for(var Xt=vt.pos;Xt<vt.str.length;Xt++){var qt=vt.str.charCodeAt(Xt);if(qt<48||qt>57)break}return vt.pos===Xt&&vt.error("Expect a number"),vt.substringToPos(Xt)}function ye(vt){var Xt=vt.str.indexOf("'",vt.pos+1);return-1===Xt&&(vt.pos=vt.str.length,vt.error("Expect an apostrophe")),vt.substringToPos(Xt+1)}function ve(vt){var Xt,qt=null;return vt.eat(K),Xt=$(vt),44===vt.charCode()?(vt.pos++,125!==vt.charCode()&&(qt=$(vt))):qt=Xt,vt.eat(125),{min:Number(Xt),max:qt?Number(qt):0}}function Ne(vt,Xt){var qt=function(vt){var Xt=null,qt=!1;switch(vt.charCode()){case 42:vt.pos++,Xt={min:0,max:0};break;case 43:vt.pos++,Xt={min:1,max:0};break;case 63:vt.pos++,Xt={min:0,max:1};break;case 35:vt.pos++,qt=!0,Xt=vt.charCode()===K?ve(vt):{min:1,max:0};break;case K:Xt=ve(vt);break;default:return null}return{type:"Multiplier",comma:qt,min:Xt.min,max:Xt.max,term:null}}(vt);return null!==qt?(qt.term=Xt,qt):Xt}function gt(vt){var Xt=vt.peek();return""===Xt?null:{type:"Token",value:Xt}}function je(vt,Xt){function qt(Ut,an){return{type:"Group",terms:Ut,combinator:an,disallowEmpty:!1,explicit:!1}}for(Xt=Object.keys(Xt).sort(function(Ut,an){return se[Ut]-se[an]});Xt.length>0;){for(var Ct=Xt.shift(),jt=0,bt=0;jt<vt.length;jt++){var nn=vt[jt];"Combinator"===nn.type&&(nn.value===Ct?(-1===bt&&(bt=jt-1),vt.splice(jt,1),jt--):(-1!==bt&&jt-bt>1&&(vt.splice(bt,jt-bt,qt(vt.slice(bt,jt),Ct)),jt=bt+1),bt=-1))}-1!==bt&&Xt.length&&vt.splice(bt,jt-bt,qt(vt.slice(bt,jt),Ct))}return Ct}function ct(vt){for(var Ct,Xt=[],qt={},jt=null,bt=vt.pos;Ct=Ht(vt);)"Spaces"!==Ct.type&&("Combinator"===Ct.type?((null===jt||"Combinator"===jt.type)&&(vt.pos=bt,vt.error("Unexpected combinator")),qt[Ct.value]=!0):null!==jt&&"Combinator"!==jt.type&&(qt[" "]=!0,Xt.push({type:"Combinator",value:" "})),Xt.push(Ct),jt=Ct,bt=vt.pos);return null!==jt&&"Combinator"===jt.type&&(vt.pos-=bt,vt.error("Unexpected combinator")),{type:"Group",terms:Xt,combinator:je(Xt,qt)||" ",disallowEmpty:!1,explicit:!1}}function Ht(vt){var Xt=vt.charCode();if(Xt<128&&1===ie[Xt])return function(vt){var Xt;return Xt=oe(vt),40===vt.charCode()?(vt.pos++,{type:"Function",name:Xt}):Ne(vt,{type:"Keyword",name:Xt})}(vt);switch(Xt){case 93:break;case 91:return Ne(vt,function(vt){var Xt;return vt.eat(91),Xt=ct(vt),vt.eat(93),Xt.explicit=!0,33===vt.charCode()&&(vt.pos++,Xt.disallowEmpty=!0),Xt}(vt));case 60:return 39===vt.nextCharCode()?function(vt){var Xt;return vt.eat(60),vt.eat(39),Xt=oe(vt),vt.eat(39),vt.eat(62),Ne(vt,{type:"Property",name:Xt})}(vt):function(vt){var Xt,qt=null;return vt.eat(60),Xt=oe(vt),40===vt.charCode()&&41===vt.nextCharCode()&&(vt.pos+=2,Xt+="()"),91===vt.charCodeAt(vt.findWsEnd(vt.pos))&&(de(vt),qt=function(vt){var Xt=null,qt=null,Ct=1;return vt.eat(91),45===vt.charCode()&&(vt.peek(),Ct=-1),-1==Ct&&8734===vt.charCode()?vt.peek():Xt=Ct*Number($(vt)),de(vt),vt.eat(44),de(vt),8734===vt.charCode()?vt.peek():(Ct=1,45===vt.charCode()&&(vt.peek(),Ct=-1),qt=Ct*Number($(vt))),vt.eat(93),null===Xt&&null===qt?null:{type:"Range",min:Xt,max:qt}}(vt)),vt.eat(62),Ne(vt,{type:"Type",name:Xt,opts:qt})}(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 Ne(vt,{type:"String",value:ye(vt)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:de(vt)};case 64:return(Xt=vt.nextCharCode())<128&&1===ie[Xt]?(vt.pos++,{type:"AtKeyword",name:oe(vt)}):gt(vt);case 42:case 43:case 63:case 35:case 33:break;case K:if((Xt=vt.nextCharCode())<48||Xt>57)return gt(vt);break;default:return gt(vt)}}function Et(vt){var Xt=new U(vt),qt=ct(Xt);return Xt.pos!==vt.length&&Xt.error("Unexpected input"),1===qt.terms.length&&"Group"===qt.terms[0].type&&(qt=qt.terms[0]),qt}Et("[a&&<b>#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!"),le.exports=Et},57674:function(le,q,f){var U=f(6063),C=function(N){this.str=N,this.pos=0};C.prototype={charCodeAt:function(N){return N<this.str.length?this.str.charCodeAt(N):0},charCode:function(){return this.charCodeAt(this.pos)},nextCharCode:function(){return this.charCodeAt(this.pos+1)},nextNonWsCode:function(N){return this.charCodeAt(this.findWsEnd(N))},findWsEnd:function(N){for(;N<this.str.length;N++){var D=this.str.charCodeAt(N);if(13!==D&&10!==D&&12!==D&&32!==D&&9!==D)break}return N},substringToPos:function(N){return this.str.substring(this.pos,this.pos=N)},eat:function(N){this.charCode()!==N&&this.error("Expect `"+String.fromCharCode(N)+"`"),this.pos++},peek:function(){return this.pos<this.str.length?this.str.charAt(this.pos++):""},error:function(N){throw new U(N,this.str,this.pos)}},le.exports=C},37363:function(le){var q=function(){};function f(U){return"function"==typeof U?U:q}le.exports=function(U,B,V){var w=q,R=q;if("function"==typeof B?w=B:B&&(w=f(B.enter),R=f(B.leave)),w===q&&R===q)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function Z(C){switch(w.call(V,C),C.type){case"Group":C.terms.forEach(Z);break;case"Multiplier":Z(C.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: "+C.type)}R.call(V,C)}(U)}},9861:function(le,q,f){var U=f(79274),B=Object.prototype.hasOwnProperty;function V(Z,w){var C=null;Z.children.forEach("function"!=typeof w?this.node:function(_){null!==C&&w.call(this,C),this.node(_),C=_},this)}le.exports=function(w){function R(N){if(!B.call(C,N.type))throw new Error("Unknown node type: "+N.type);C[N.type].call(this,N)}var C={};if(w.node)for(var _ in w.node)C[_]=w.node[_].generate;return function(N,D){var O="",P={children:V,node:R,chunk:function(g){O+=g},result:function(){return O}};return D&&("function"==typeof D.decorator&&(P=D.decorator(P)),D.sourceMap&&(P=U(P))),P.node(N),P.result()}}},79274:function(le,q,f){var U=f(30673).h,B={Atrule:!0,Selector:!0,Declaration:!0};le.exports=function(Z){var w=new U,R=1,C=0,_={line:1,column:0},N={line:0,column:0},D=!1,O={line:1,column:0},P={generated:O},y=Z.node;Z.node=function(M){if(M.loc&&M.loc.start&&B.hasOwnProperty(M.type)){var E=M.loc.start.line,x=M.loc.start.column-1;(N.line!==E||N.column!==x)&&(N.line=E,N.column=x,_.line=R,_.column=C,D&&(D=!1,(_.line!==O.line||_.column!==O.column)&&w.addMapping(P)),D=!0,w.addMapping({source:M.loc.source,original:N,generated:_}))}y.call(this,M),D&&B.hasOwnProperty(M.type)&&(O.line=R,O.column=C)};var g=Z.chunk;Z.chunk=function(M){for(var E=0;E<M.length;E++)10===M.charCodeAt(E)?(R++,C=0):C++;g(M)};var T=Z.result;return Z.result=function(){return D&&w.addMapping(P),{css:T(),map:w}},Z}},59473:function(le,q,f){le.exports=f(39158)},63539:function(le,q,f){var U=f(6326).default,B=f(40533).SyntaxReferenceError,V=f(40533).SyntaxMatchError,Z=f(50643),w=f(71473),R=f(11261),C=f(58298),_=f(37363),N=f(73130),D=f(60997).buildMatchGraph,O=f(77569).matchAsTree,P=f(24988),y=f(62798),g=f(92363).getStructureFromConfig,T=D("inherit | initial | unset"),M=D("inherit | initial | unset | <-ms-legacy-expression>");function E(K,z,Q){var ae={};for(var ie in K)K[ie].syntax&&(ae[ie]=Q?K[ie].syntax:C(K[ie].syntax,{compact:z}));return ae}function x(K,z,Q){for(var ae={},ie=0,se=Object.entries(K);ie<se.length;ie++){var ue=U(se[ie],2),oe=ue[1];ae[ue[0]]={prelude:oe.prelude&&(Q?oe.prelude.syntax:C(oe.prelude.syntax,{compact:z})),descriptors:oe.descriptors&&E(oe.descriptors,z,Q)}}return ae}function A(K,z,Q){return{matched:K,iterations:Q,error:z,getTrace:P.getTrace,isType:P.isType,isProperty:P.isProperty,isKeyword:P.isKeyword}}function L(K,z,Q,ae){var se,ie=N(Q,K.syntax);return function(K){for(var z=0;z<K.length;z++)if("var("===K[z].value.toLowerCase())return!0;return!1}(ie)?A(null,new Error("Matching for a tree with var() is not supported")):(ae&&(se=O(ie,K.valueCommonSyntax,K)),ae&&se.match||(se=O(ie,z.match,K)).match?A(se.match,null,se.iterations):A(null,new V(se.reason,z.syntax,Q,se),se.iterations))}var j=function(z,Q,ae){if(this.valueCommonSyntax=T,this.syntax=Q,this.generic=!1,this.atrules={},this.properties={},this.types={},this.structure=ae||g(z),z){if(z.types)for(var ie in z.types)this.addType_(ie,z.types[ie]);if(z.generic)for(var ie in this.generic=!0,w)this.addType_(ie,w[ie]);if(z.atrules)for(var ie in z.atrules)this.addAtrule_(ie,z.atrules[ie]);if(z.properties)for(var ie in z.properties)this.addProperty_(ie,z.properties[ie])}};j.prototype={structure:{},checkStructure:function(z){function Q(se,ue){ie.push({node:se,message:ue})}var ae=this.structure,ie=[];return this.syntax.walk(z,function(se){ae.hasOwnProperty(se.type)?ae[se.type].check(se,Q):Q(se,"Unknown node type `"+se.type+"`")}),!!ie.length&&ie},createDescriptor:function(z,Q,ae){var ie=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,se={type:Q,name:ae},ue={type:Q,name:ae,parent:ie,syntax:null,match:null};return"function"==typeof z?ue.match=D(z,se):("string"==typeof z?Object.defineProperty(ue,"syntax",{get:function(){return Object.defineProperty(ue,"syntax",{value:R(z)}),ue.syntax}}):ue.syntax=z,Object.defineProperty(ue,"match",{get:function(){return Object.defineProperty(ue,"match",{value:D(ue.syntax,se)}),ue.match}})),ue},addAtrule_:function(z,Q){var ae=this;!Q||(this.atrules[z]={type:"Atrule",name:z,prelude:Q.prelude?this.createDescriptor(Q.prelude,"AtrulePrelude",z):null,descriptors:Q.descriptors?Object.keys(Q.descriptors).reduce(function(ie,se){return ie[se]=ae.createDescriptor(Q.descriptors[se],"AtruleDescriptor",se,z),ie},{}):null})},addProperty_:function(z,Q){!Q||(this.properties[z]=this.createDescriptor(Q,"Property",z))},addType_:function(z,Q){!Q||(this.types[z]=this.createDescriptor(Q,"Type",z),Q===w["-ms-legacy-expression"]&&(this.valueCommonSyntax=M))},checkAtruleName:function(z){if(!this.getAtrule(z))return new B("Unknown at-rule","@"+z)},checkAtrulePrelude:function(z,Q){var ae=this.checkAtruleName(z);if(ae)return ae;var ie=this.getAtrule(z);return!ie.prelude&&Q?new SyntaxError("At-rule `@"+z+"` should not contain a prelude"):ie.prelude&&!Q?new SyntaxError("At-rule `@"+z+"` should contain a prelude"):void 0},checkAtruleDescriptorName:function(z,Q){var ae=this.checkAtruleName(z);if(ae)return ae;var ie=this.getAtrule(z),se=Z.keyword(Q);return ie.descriptors?ie.descriptors[se.name]||ie.descriptors[se.basename]?void 0:new B("Unknown at-rule descriptor",Q):new SyntaxError("At-rule `@"+z+"` has no known descriptors")},checkPropertyName:function(z){return Z.property(z).custom?new Error("Lexer matching doesn't applicable for custom properties"):this.getProperty(z)?void 0:new B("Unknown property",z)},matchAtrulePrelude:function(z,Q){var ae=this.checkAtrulePrelude(z,Q);return ae?A(null,ae):Q?L(this,this.getAtrule(z).prelude,Q,!1):A(null,null)},matchAtruleDescriptor:function(z,Q,ae){var ie=this.checkAtruleDescriptorName(z,Q);if(ie)return A(null,ie);var se=this.getAtrule(z),ue=Z.keyword(Q);return L(this,se.descriptors[ue.name]||se.descriptors[ue.basename],ae,!1)},matchDeclaration:function(z){return"Declaration"!==z.type?A(null,new Error("Not a Declaration node")):this.matchProperty(z.property,z.value)},matchProperty:function(z,Q){var ae=this.checkPropertyName(z);return ae?A(null,ae):L(this,this.getProperty(z),Q,!0)},matchType:function(z,Q){var ae=this.getType(z);return ae?L(this,ae,Q,!1):A(null,new B("Unknown type",z))},match:function(z,Q){return"string"==typeof z||z&&z.type?(("string"==typeof z||!z.match)&&(z=this.createDescriptor(z,"Type","anonymous")),L(this,z,Q,!1)):A(null,new B("Bad syntax"))},findValueFragments:function(z,Q,ae,ie){return y.matchFragments(this,Q,this.matchProperty(z,Q),ae,ie)},findDeclarationValueFragments:function(z,Q,ae){return y.matchFragments(this,z.value,this.matchDeclaration(z),Q,ae)},findAllFragments:function(z,Q,ae){var ie=[];return this.syntax.walk(z,{visit:"Declaration",enter:function(se){ie.push.apply(ie,this.findDeclarationValueFragments(se,Q,ae))}.bind(this)}),ie},getAtrule:function(z){var Q=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ae=Z.keyword(z),ie=ae.vendor&&Q?this.atrules[ae.name]||this.atrules[ae.basename]:this.atrules[ae.name];return ie||null},getAtrulePrelude:function(z){var Q=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ae=this.getAtrule(z,Q);return ae&&ae.prelude||null},getAtruleDescriptor:function(z,Q){return this.atrules.hasOwnProperty(z)&&this.atrules.declarators&&this.atrules[z].declarators[Q]||null},getProperty:function(z){var Q=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ae=Z.property(z),ie=ae.vendor&&Q?this.properties[ae.name]||this.properties[ae.basename]:this.properties[ae.name];return ie||null},getType:function(z){return this.types.hasOwnProperty(z)?this.types[z]:null},validate:function(){function z(se,ue,de,oe){if(de.hasOwnProperty(ue))return de[ue];de[ue]=!1,null!==oe.syntax&&_(oe.syntax,function($){if("Type"===$.type||"Property"===$.type){var ye="Type"===$.type?se.types:se.properties,ve="Type"===$.type?Q:ae;(!ye.hasOwnProperty($.name)||z(se,$.name,ve,ye[$.name]))&&(de[ue]=!0)}},this)}var Q={},ae={};for(var ie in this.types)z(this,ie,Q,this.types[ie]);for(var ie in this.properties)z(this,ie,ae,this.properties[ie]);return Q=Object.keys(Q).filter(function(se){return Q[se]}),ae=Object.keys(ae).filter(function(se){return ae[se]}),Q.length||ae.length?{types:Q,properties:ae}:null},dump:function(z,Q){return{generic:this.generic,types:E(this.types,!Q,z),properties:E(this.properties,!Q,z),atrules:x(this.atrules,!Q,z)}},toString:function(){return JSON.stringify(this.dump())}},le.exports=j},40533:function(le,q,f){var U=f(92455),B=f(58298),V={offset:0,line:1,column:1};function w(N,D){var O=N&&N.loc&&N.loc[D];return O?"line"in O?R(O):O:null}function R(N,D){var g={offset:N.offset,line:N.line,column:N.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}le.exports={SyntaxReferenceError:function(D,O){var P=U("SyntaxReferenceError",D+(O?" `"+O+"`":""));return P.reference=O,P},SyntaxMatchError:function(D,O,P,y){var g=U("SyntaxMatchError",D),T=function(N,D){for(var S,A,O=N.tokens,P=N.longestMatch,y=P<O.length&&O[P].node||null,g=y!==D?y:null,T=0,M=0,E=0,x="",L=0;L<O.length;L++){var j=O[L].value;L===P&&(M=j.length,T=x.length),null!==g&&O[L].node===g&&(L<=P?E++:E=0),x+=j}return P===O.length||E>1?(S=w(g||D,"end")||R(V,x),A=R(S)):(S=w(g,"start")||R(w(D,"start")||V,x.slice(0,T)),A=w(g,"end")||R(S,x.substr(T,M))),{css:x,mismatchOffset:T,mismatchLength:M,start:S,end:A}}(y,P),M=T.css,E=T.mismatchOffset,x=T.mismatchLength,S=T.start,A=T.end;return g.rawMessage=D,g.syntax=O?B(O):"<generic>",g.css=M,g.mismatchOffset=E,g.mismatchLength=x,g.message=D+"\n syntax: "+g.syntax+"\n value: "+(M||"<empty string>")+"\n --------"+new Array(g.mismatchOffset+1).join("-")+"^",Object.assign(g,S),g.loc={source:P&&P.loc&&P.loc.source||"<unknown>",start:S,end:A},g}}},25533:function(le,q,f){var U=f(97555).isDigit,B=f(97555).cmpChar,V=f(97555).TYPE,Z=V.Delim,w=V.WhiteSpace,R=V.Comment,C=V.Ident,_=V.Number,N=V.Dimension,O=45,y=!0;function T(S,A){return null!==S&&S.type===Z&&S.value.charCodeAt(0)===A}function M(S,A,L){for(;null!==S&&(S.type===w||S.type===R);)S=L(++A);return A}function E(S,A,L,j){if(!S)return 0;var K=S.value.charCodeAt(A);if(43===K||K===O){if(L)return 0;A++}for(;A<S.value.length;A++)if(!U(S.value.charCodeAt(A)))return 0;return j+1}function x(S,A,L){var j=!1,K=M(S,A,L);if(null===(S=L(K)))return A;if(S.type!==_){if(!T(S,43)&&!T(S,O))return A;if(j=!0,K=M(L(++K),K,L),null===(S=L(K))&&S.type!==_)return 0}if(!j){var z=S.value.charCodeAt(0);if(43!==z&&z!==O)return 0}return E(S,j?0:1,j,K)}le.exports=function(A,L){var j=0;if(!A)return 0;if(A.type===_)return E(A,0,!1,j);if(A.type===C&&A.value.charCodeAt(0)===O){if(!B(A.value,1,110))return 0;switch(A.value.length){case 2:return x(L(++j),j,L);case 3:return A.value.charCodeAt(2)!==O?0:(j=M(L(++j),j,L),E(A=L(j),0,y,j));default:return A.value.charCodeAt(2)!==O?0:E(A,3,y,j)}}else if(A.type===C||T(A,43)&&L(j+1).type===C){if(A.type!==C&&(A=L(++j)),null===A||!B(A.value,0,110))return 0;switch(A.value.length){case 1:return x(L(++j),j,L);case 2:return A.value.charCodeAt(1)!==O?0:(j=M(L(++j),j,L),E(A=L(j),0,y,j));default:return A.value.charCodeAt(1)!==O?0:E(A,2,y,j)}}else if(A.type===N){for(var K=A.value.charCodeAt(0),z=43===K||K===O?1:0,Q=z;Q<A.value.length&&U(A.value.charCodeAt(Q));Q++);return Q!==z&&B(A.value,Q,110)?Q+1===A.value.length?x(L(++j),j,L):A.value.charCodeAt(Q+1)!==O?0:Q+2===A.value.length?(j=M(L(++j),j,L),E(A=L(j),0,y,j)):E(A,Q+2,y,j):0}return 0}},70156:function(le,q,f){var U=f(97555).isHexDigit,B=f(97555).cmpChar,V=f(97555).TYPE,Z=V.Ident,w=V.Delim,R=V.Number,C=V.Dimension;function P(M,E){return null!==M&&M.type===w&&M.value.charCodeAt(0)===E}function y(M,E){return M.value.charCodeAt(0)===E}function g(M,E,x){for(var S=E,A=0;S<M.value.length;S++){var L=M.value.charCodeAt(S);if(45===L&&x&&0!==A)return g(M,E+A+1,!1)>0?6:0;if(!U(L)||++A>6)return 0}return A}function T(M,E,x){if(!M)return 0;for(;P(x(E),63);){if(++M>6)return 0;E++}return E}le.exports=function(E,x){var S=0;if(null===E||E.type!==Z||!B(E.value,0,117)||null===(E=x(++S)))return 0;if(P(E,43))return null===(E=x(++S))?0:E.type===Z?T(g(E,0,!0),++S,x):P(E,63)?T(1,++S,x):0;if(E.type===R){if(!y(E,43))return 0;var A=g(E,1,!0);return 0===A?0:null===(E=x(++S))?S:E.type===C||E.type===R?y(E,45)&&g(E,1,!1)?S+1:0:T(A,S,x)}return E.type===C&&y(E,43)?T(g(E,1,!0),++S,x):0}},71473:function(le,q,f){var U=f(97555),B=U.isIdentifierStart,V=U.isHexDigit,Z=U.isDigit,w=U.cmpStr,R=U.consumeNumber,C=U.TYPE,_=f(25533),N=f(70156),D=["unset","initial","inherit"],O=["calc(","-moz-calc(","-webkit-calc("];function A(Se,Oe){return Oe<Se.length?Se.charCodeAt(Oe):0}function L(Se,Oe){return w(Se,0,Se.length,Oe)}function j(Se,Oe){for(var je=0;je<Oe.length;je++)if(L(Se,Oe[je]))return!0;return!1}function K(Se,Oe){return Oe===Se.length-2&&92===Se.charCodeAt(Oe)&&Z(Se.charCodeAt(Oe+1))}function z(Se,Oe,je){if(Se&&"Range"===Se.type){var ct=Number(void 0!==je&&je!==Oe.length?Oe.substr(0,je):Oe);if(isNaN(ct)||null!==Se.min&&ct<Se.min||null!==Se.max&&ct>Se.max)return!0}return!1}function Q(Se,Oe){var je=Se.index,ct=0;do{if(ct++,Se.balance<=je)break}while(Se=Oe(ct));return ct}function ae(Se){return function(Oe,je,ct){return null===Oe?0:Oe.type===C.Function&&j(Oe.value,O)?Q(Oe,je):Se(Oe,je,ct)}}function ie(Se){return function(Oe){return null===Oe||Oe.type!==Se?0:1}}function et(Se){return function(Oe,je,ct){if(null===Oe||Oe.type!==C.Dimension)return 0;var Xe=R(Oe.value,0);if(null!==Se){var Ht=Oe.value.indexOf("\\",Xe),Et=-1!==Ht&&K(Oe.value,Ht)?Oe.value.substring(Xe,Ht):Oe.value.substr(Xe);if(!1===Se.hasOwnProperty(Et.toLowerCase()))return 0}return z(ct,Oe.value,Xe)?0:1}}function gt(Se){return"function"!=typeof Se&&(Se=function(){return 0}),function(Oe,je,ct){return null!==Oe&&Oe.type===C.Number&&0===Number(Oe.value)?1:Se(Oe,je,ct)}}le.exports={"ident-token":ie(C.Ident),"function-token":ie(C.Function),"at-keyword-token":ie(C.AtKeyword),"hash-token":ie(C.Hash),"string-token":ie(C.String),"bad-string-token":ie(C.BadString),"url-token":ie(C.Url),"bad-url-token":ie(C.BadUrl),"delim-token":ie(C.Delim),"number-token":ie(C.Number),"percentage-token":ie(C.Percentage),"dimension-token":ie(C.Dimension),"whitespace-token":ie(C.WhiteSpace),"CDO-token":ie(C.CDO),"CDC-token":ie(C.CDC),"colon-token":ie(C.Colon),"semicolon-token":ie(C.Semicolon),"comma-token":ie(C.Comma),"[-token":ie(C.LeftSquareBracket),"]-token":ie(C.RightSquareBracket),"(-token":ie(C.LeftParenthesis),")-token":ie(C.RightParenthesis),"{-token":ie(C.LeftCurlyBracket),"}-token":ie(C.RightCurlyBracket),string:ie(C.String),ident:ie(C.Ident),"custom-ident":function(Se){if(null===Se||Se.type!==C.Ident)return 0;var Oe=Se.value.toLowerCase();return j(Oe,D)||L(Oe,"default")?0:1},"custom-property-name":function(Se){return null===Se||Se.type!==C.Ident||45!==A(Se.value,0)||45!==A(Se.value,1)?0:1},"hex-color":function(Se){if(null===Se||Se.type!==C.Hash)return 0;var Oe=Se.value.length;if(4!==Oe&&5!==Oe&&7!==Oe&&9!==Oe)return 0;for(var je=1;je<Oe;je++)if(!V(Se.value.charCodeAt(je)))return 0;return 1},"id-selector":function(Se){return null!==Se&&Se.type===C.Hash&&B(A(Se.value,1),A(Se.value,2),A(Se.value,3))?1:0},"an-plus-b":_,urange:N,"declaration-value":function(Se,Oe){if(!Se)return 0;var je=0,ct=0,Xe=Se.index;e:do{switch(Se.type){case C.BadString:case C.BadUrl:break e;case C.RightCurlyBracket:case C.RightParenthesis:case C.RightSquareBracket:if(Se.balance>Se.index||Se.balance<Xe)break e;ct--;break;case C.Semicolon:if(0===ct)break e;break;case C.Delim:if("!"===Se.value&&0===ct)break e;break;case C.Function:case C.LeftParenthesis:case C.LeftSquareBracket:case C.LeftCurlyBracket:ct++}if(je++,Se.balance<=Xe)break}while(Se=Oe(je));return je},"any-value":function(Se,Oe){if(!Se)return 0;var je=Se.index,ct=0;e:do{switch(Se.type){case C.BadString:case C.BadUrl:break e;case C.RightCurlyBracket:case C.RightParenthesis:case C.RightSquareBracket:if(Se.balance>Se.index||Se.balance<je)break e}if(ct++,Se.balance<=je)break}while(Se=Oe(ct));return ct},dimension:ae(et(null)),angle:ae(et({deg:!0,grad:!0,rad:!0,turn:!0})),decibel:ae(et({db:!0})),frequency:ae(et({hz:!0,khz:!0})),flex:ae(et({fr:!0})),length:ae(gt(et({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:ae(et({dpi:!0,dpcm:!0,dppx:!0,x:!0})),semitones:ae(et({st:!0})),time:ae(et({s:!0,ms:!0})),percentage:ae(function(Se,Oe,je){return null===Se||Se.type!==C.Percentage||z(je,Se.value,Se.value.length-1)?0:1}),zero:gt(),number:ae(function(Se,Oe,je){if(null===Se)return 0;var ct=R(Se.value,0);return ct!==Se.value.length&&!K(Se.value,ct)||z(je,Se.value,ct)?0:1}),integer:ae(function(Se,Oe,je){if(null===Se||Se.type!==C.Number)return 0;for(var ct=43===Se.value.charCodeAt(0)||45===Se.value.charCodeAt(0)?1:0;ct<Se.value.length;ct++)if(!Z(Se.value.charCodeAt(ct)))return 0;return z(je,Se.value,ct)?0:1}),"-ms-legacy-expression":("expression","(",function(Oe,je){return null!==Oe&&L(Oe.value,"expression(")?Q(Oe,je):0})}},60997:function(le,q,f){var U=f(11261),B={type:"Match"},V={type:"Mismatch"},Z={type:"DisallowEmpty"};function C(y,g,T){return g===B&&T===V||y===B&&g===B&&T===B?y:("If"===y.type&&y.else===V&&g===B&&(g=y.then,y=y.match),{type:"If",match:y,then:g,else:T})}function _(y){return y.length>2&&40===y.charCodeAt(y.length-2)&&41===y.charCodeAt(y.length-1)}function N(y){return"Keyword"===y.type||"AtKeyword"===y.type||"Function"===y.type||"Type"===y.type&&_(y.name)}function D(y,g,T){switch(y){case" ":for(var M=B,E=g.length-1;E>=0;E--)M=C(x=g[E],M,V);return M;case"|":M=V;var S=null;for(E=g.length-1;E>=0;E--){if(N(x=g[E])&&(null===S&&E>0&&N(g[E-1])&&(M=C({type:"Enum",map:S=Object.create(null)},B,M)),null!==S)){var A=(_(x.name)?x.name.slice(0,-1):x.name).toLowerCase();if(!(A in S)){S[A]=x;continue}}S=null,M=C(x,B,M)}return M;case"&&":if(g.length>5)return{type:"MatchOnce",terms:g,all:!0};for(M=V,E=g.length-1;E>=0;E--){var x=g[E];L=g.length>1?D(y,g.filter(function(z){return z!==x}),!1):B,M=C(x,L,M)}return M;case"||":if(g.length>5)return{type:"MatchOnce",terms:g,all:!1};for(M=T?B:V,E=g.length-1;E>=0;E--){var L;x=g[E],L=g.length>1?D(y,g.filter(function(Q){return Q!==x}),!0):B,M=C(x,L,M)}return M}}function P(y){if("function"==typeof y)return{type:"Generic",fn:y};switch(y.type){case"Group":var g=D(y.combinator,y.terms.map(P),!1);return y.disallowEmpty&&(g=C(g,Z,V)),g;case"Multiplier":return function(y){var g=B,T=P(y.term);if(0===y.max)T=C(T,Z,V),(g=C(T,null,V)).then=C(B,B,g),y.comma&&(g.then.else=C({type:"Comma",syntax:y},g,V));else for(var M=y.min||1;M<=y.max;M++)y.comma&&g!==B&&(g=C({type:"Comma",syntax:y},g,V)),g=C(T,C(B,B,g),V);if(0===y.min)g=C(B,B,g);else for(M=0;M<y.min-1;M++)y.comma&&g!==B&&(g=C({type:"Comma",syntax:y},g,V)),g=C(T,g,V);return g}(y);case"Type":case"Property":return{type:y.type,name:y.name,syntax:y};case"Keyword":return{type:y.type,name:y.name.toLowerCase(),syntax:y};case"AtKeyword":return{type:y.type,name:"@"+y.name.toLowerCase(),syntax:y};case"Function":return{type:y.type,name:y.name.toLowerCase()+"(",syntax:y};case"String":return 3===y.value.length?{type:"Token",value:y.value.charAt(1),syntax:y}:{type:y.type,value:y.value.substr(1,y.value.length-2).replace(/\\'/g,"'"),syntax:y};case"Token":return{type:y.type,value:y.value,syntax:y};case"Comma":return{type:y.type,syntax:y};default:throw new Error("Unknown node type:",y.type)}}le.exports={MATCH:B,MISMATCH:V,DISALLOW_EMPTY:Z,buildMatchGraph:function(g,T){return"string"==typeof g&&(g=U(g)),{type:"MatchGraph",match:P(g),syntax:T||null,source:g}}}},77569:function(le,q,f){var U=Object.prototype.hasOwnProperty,B=f(60997),V=B.MATCH,Z=B.MISMATCH,w=B.DISALLOW_EMPTY,R=f(97077).TYPE,O="Match",T=0;function M(z){for(var Q=null,ae=null,ie=z;null!==ie;)ae=ie.prev,ie.prev=Q,Q=ie,ie=ae;return Q}function E(z,Q){if(z.length!==Q.length)return!1;for(var ae=0;ae<z.length;ae++){var ie=z.charCodeAt(ae);if(ie>=65&&ie<=90&&(ie|=32),ie!==Q.charCodeAt(ae))return!1}return!0}function S(z){return null===z||z.type===R.Comma||z.type===R.Function||z.type===R.LeftParenthesis||z.type===R.LeftSquareBracket||z.type===R.LeftCurlyBracket||function(z){return z.type===R.Delim&&"?"!==z.value}(z)}function A(z){return null===z||z.type===R.RightParenthesis||z.type===R.RightSquareBracket||z.type===R.RightCurlyBracket||z.type===R.Delim}function L(z,Q,ae){function ie(){do{je++,Oe=je<z.length?z[je]:null}while(null!==Oe&&(Oe.type===R.WhiteSpace||Oe.type===R.Comment))}function se(an){var An=je+an;return An<z.length?z[An]:null}function ue(an,An){return{nextState:an,matchStack:Xe,syntaxStack:et,thenStack:Ne,tokenIndex:je,prev:An}}function de(an){Ne={nextState:an,matchStack:Xe,syntaxStack:et,prev:Ne}}function oe(an){gt=ue(an,gt)}function $(){Xe={type:1,syntax:Q.syntax,token:Oe,prev:Xe},ie(),_t=null,je>ct&&(ct=je)}function ve(){Xe=2===Xe.type?Xe.prev:{type:3,syntax:et.syntax,token:Xe.token,prev:Xe},et=et.prev}var et=null,Ne=null,gt=null,_t=null,Rt=0,Se=null,Oe=null,je=-1,ct=0,Xe={type:0,syntax:null,token:null,prev:null};for(ie();null===Se&&++Rt<15e3;)switch(Q.type){case"Match":if(null===Ne){if(null!==Oe&&(je!==z.length-1||"\\0"!==Oe.value&&"\\9"!==Oe.value)){Q=Z;break}Se=O;break}if((Q=Ne.nextState)===w){if(Ne.matchStack===Xe){Q=Z;break}Q=V}for(;Ne.syntaxStack!==et;)ve();Ne=Ne.prev;break;case"Mismatch":if(null!==_t&&!1!==_t)(null===gt||je>gt.tokenIndex)&&(gt=_t,_t=!1);else if(null===gt){Se="Mismatch";break}Q=gt.nextState,Ne=gt.thenStack,et=gt.syntaxStack,Xe=gt.matchStack,Oe=(je=gt.tokenIndex)<z.length?z[je]:null,gt=gt.prev;break;case"MatchGraph":Q=Q.match;break;case"If":Q.else!==Z&&oe(Q.else),Q.then!==V&&de(Q.then),Q=Q.match;break;case"MatchOnce":Q={type:"MatchOnceBuffer",syntax:Q,index:0,mask:0};break;case"MatchOnceBuffer":var Ht=Q.syntax.terms;if(Q.index===Ht.length){if(0===Q.mask||Q.syntax.all){Q=Z;break}Q=V;break}if(Q.mask===(1<<Ht.length)-1){Q=V;break}for(;Q.index<Ht.length;Q.index++){var Et=1<<Q.index;if(0==(Q.mask&Et)){oe(Q),de({type:"AddMatchOnce",syntax:Q.syntax,mask:Q.mask|Et}),Q=Ht[Q.index++];break}}break;case"AddMatchOnce":Q={type:"MatchOnceBuffer",syntax:Q.syntax,index:0,mask:Q.mask};break;case"Enum":if(null!==Oe&&(-1!==(bt=Oe.value.toLowerCase()).indexOf("\\")&&(bt=bt.replace(/\\[09].*$/,"")),U.call(Q.map,bt))){Q=Q.map[bt];break}Q=Z;break;case"Generic":var Xt=je+Math.floor(Q.fn(Oe,se,null!==et?et.opts:null));if(!isNaN(Xt)&&Xt>je){for(;je<Xt;)$();Q=V}else Q=Z;break;case"Type":case"Property":var qt="Type"===Q.type?"types":"properties",Ct=U.call(ae,qt)?ae[qt][Q.name]:null;if(!Ct||!Ct.match)throw new Error("Bad syntax reference: "+("Type"===Q.type?"<"+Q.name+">":"<'"+Q.name+"'>"));if(!1!==_t&&null!==Oe&&"Type"===Q.type&&("custom-ident"===Q.name&&Oe.type===R.Ident||"length"===Q.name&&"0"===Oe.value)){null===_t&&(_t=ue(Q,gt)),Q=Z;break}et={syntax:Q.syntax,opts:Q.syntax.opts||null!==et&&et.opts||null,prev:et},Xe={type:2,syntax:Q.syntax,token:Xe.token,prev:Xe},Q=Ct.match;break;case"Keyword":var bt=Q.name;if(null!==Oe){var nn=Oe.value;if(-1!==nn.indexOf("\\")&&(nn=nn.replace(/\\[09].*$/,"")),E(nn,bt)){$(),Q=V;break}}Q=Z;break;case"AtKeyword":case"Function":if(null!==Oe&&E(Oe.value,Q.name)){$(),Q=V;break}Q=Z;break;case"Token":if(null!==Oe&&Oe.value===Q.value){$(),Q=V;break}Q=Z;break;case"Comma":null!==Oe&&Oe.type===R.Comma?S(Xe.token)?Q=Z:($(),Q=A(Oe)?Z:V):Q=S(Xe.token)||A(Oe)?V:Z;break;case"String":var Ut="";for(Xt=je;Xt<z.length&&Ut.length<Q.value.length;Xt++)Ut+=z[Xt].value;if(E(Ut,Q.value)){for(;je<Xt;)$();Q=V}else Q=Z;break;default:throw new Error("Unknown node type: "+Q.type)}switch(T+=Rt,Se){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),Se="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Xe=null;break;case O:for(;null!==et;)ve();break;default:Xe=null}return{tokens:z,reason:Se,iterations:Rt,match:Xe,longestMatch:ct}}le.exports={matchAsList:function(z,Q,ae){var ie=L(z,Q,ae||{});if(null!==ie.match){var se=M(ie.match).prev;for(ie.match=[];null!==se;){switch(se.type){case 0:break;case 2:case 3:ie.match.push({type:se.type,syntax:se.syntax});break;default:ie.match.push({token:se.token.value,node:se.token.node})}se=se.prev}}return ie},matchAsTree:function(z,Q,ae){var ie=L(z,Q,ae||{});if(null===ie.match)return ie;var se=ie.match,ue=ie.match={syntax:Q.syntax||null,match:[]},de=[ue];for(se=M(se).prev;null!==se;){switch(se.type){case 2:ue.match.push(ue={syntax:se.syntax,match:[]}),de.push(ue);break;case 3:de.pop(),ue=de[de.length-1];break;default:ue.match.push({syntax:se.syntax||null,token:se.token.value,node:se.token.node})}se=se.prev}return ie},getTotalIterationCount:function(){return T}}},73130:function(le,q,f){var U=f(97555),V=new(f(13146)),Z={decorator:function(C){var _=null,N={len:0,node:null},D=[N],O="";return{children:C.children,node:function(y){var g=_;_=y,C.node.call(this,y),_=g},chunk:function(y){O+=y,N.node!==_?D.push({len:y.length,node:_}):N.len+=y.length},result:function(){return w(O,D)}}}};function w(R,C){var _=[],N=0,D=0,O=C?C[D].node:null;for(U(R,V);!V.eof;){if(C)for(;D<C.length&&N+C[D].len<=V.tokenStart;)N+=C[D++].len,O=C[D].node;_.push({type:V.tokenType,value:V.getTokenValue(),index:V.tokenIndex,balance:V.balance[V.tokenIndex],node:O}),V.next()}return _}le.exports=function(R,C){return"string"==typeof R?w(R,null):C.generate(R,Z)}},62798:function(le,q,f){var U=f(63335);function B(w){return"node"in w?w.node:B(w.match[0])}function V(w){return"node"in w?w.node:V(w.match[w.match.length-1])}le.exports={matchFragments:function(w,R,C,_,N){var O=[];return null!==C.matched&&function D(P){if(null!==P.syntax&&P.syntax.type===_&&P.syntax.name===N){var y=B(P),g=V(P);w.syntax.walk(R,function(T,M,E){if(T===y){var x=new U;do{if(x.appendData(M.data),M.data===g)break;M=M.next}while(null!==M);O.push({parent:E,nodes:x})}})}Array.isArray(P.match)&&P.match.forEach(D)}(C.matched),O}}},92363:function(le,q,f){var U=f(63335),B=Object.prototype.hasOwnProperty;function V(C){return"number"==typeof C&&isFinite(C)&&Math.floor(C)===C&&C>=0}function Z(C){return Boolean(C)&&V(C.offset)&&V(C.line)&&V(C.column)}function w(C,_){return function(D,O){if(!D||D.constructor!==Object)return O(D,"Type of node should be an Object");for(var P in D){var y=!0;if(!1!==B.call(D,P)){if("type"===P)D.type!==C&&O(D,"Wrong node type `"+D.type+"`, expected `"+C+"`");else if("loc"===P){if(null===D.loc)continue;if(D.loc&&D.loc.constructor===Object)if("string"!=typeof D.loc.source)P+=".source";else if(Z(D.loc.start)){if(Z(D.loc.end))continue;P+=".end"}else P+=".start";y=!1}else if(_.hasOwnProperty(P)){var g=0;for(y=!1;!y&&g<_[P].length;g++){var T=_[P][g];switch(T){case String:y="string"==typeof D[P];break;case Boolean:y="boolean"==typeof D[P];break;case null:y=null===D[P];break;default:"string"==typeof T?y=D[P]&&D[P].type===T:Array.isArray(T)&&(y=D[P]instanceof U)}}}else O(D,"Unknown field `"+P+"` for "+C+" node type");y||O(D,"Bad value for `"+C+"."+P+"`")}}for(var P in _)B.call(_,P)&&!1===B.call(D,P)&&O(D,"Field `"+C+"."+P+"` is missed")}}function R(C,_){var N=_.structure,D={type:String,loc:!0},O={type:'"'+C+'"'};for(var P in N)if(!1!==B.call(N,P)){for(var y=[],g=D[P]=Array.isArray(N[P])?N[P].slice():[N[P]],T=0;T<g.length;T++){var M=g[T];if(M===String||M===Boolean)y.push(M.name);else if(null===M)y.push("null");else if("string"==typeof M)y.push("<"+M+">");else{if(!Array.isArray(M))throw new Error("Wrong value `"+M+"` in `"+C+"."+P+"` structure definition");y.push("List")}}O[P]=y.join(" | ")}return{docs:O,check:w(C,D)}}le.exports={getStructureFromConfig:function(_){var N={};if(_.node)for(var D in _.node)if(B.call(_.node,D)){var O=_.node[D];if(!O.structure)throw new Error("Missed `structure` field in `"+D+"` node type definition");N[D]=R(D,O)}return N}}},24988:function(le){function q(Z){function w(_){return null!==_&&("Type"===_.type||"Property"===_.type||"Keyword"===_.type)}var C=null;return null!==this.matched&&function R(_){if(Array.isArray(_.match)){for(var N=0;N<_.match.length;N++)if(R(_.match[N]))return w(_.syntax)&&C.unshift(_.syntax),!0}else if(_.node===Z)return C=w(_.syntax)?[_.syntax]:[],!0;return!1}(this.matched),C}function f(Z,w,R){var C=q.call(Z,w);return null!==C&&C.some(R)}le.exports={getTrace:q,isType:function(Z,w){return f(this,Z,function(R){return"Type"===R.type&&R.name===w})},isProperty:function(Z,w){return f(this,Z,function(R){return"Property"===R.type&&R.name===w})},isKeyword:function(Z){return f(this,Z,function(w){return"Keyword"===w.type})}}},29365:function(le,q,f){var U=f(88373),B=f(52556),V=f(13146),Z=f(63335),w=f(97555),R=f(97077),C=f(74586),_=C.findWhiteSpaceStart,N=C.cmpStr,D=f(15785),O=function(){},P=R.TYPE,y=R.NAME,g=P.WhiteSpace,T=P.Comment,M=P.Ident,E=P.Function,x=P.Url,S=P.Hash,A=P.Percentage,L=P.Number;function z(ae){return function(){return this[ae]()}}le.exports=function(ie){var se={scanner:new V,locationMap:new U,filename:"<unknown>",needPositions:!1,onParseError:O,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:D,createList:function(){return new Z},createSingleNodeList:function(oe){return(new Z).appendData(oe)},getFirstListNode:function(oe){return oe&&oe.first()},getLastListNode:function(oe){return oe.last()},parseWithFallback:function(oe,$){var ye=this.scanner.tokenIndex;try{return oe.call(this)}catch(et){if(this.onParseErrorThrow)throw et;var ve=$.call(this,ye);return this.onParseErrorThrow=!0,this.onParseError(et,ve),this.onParseErrorThrow=!1,ve}},lookupNonWSType:function(oe){do{var $=this.scanner.lookupType(oe++);if($!==g)return $}while(0!==$);return 0},eat:function(oe){if(this.scanner.tokenType!==oe){var $=this.scanner.tokenStart,ye=y[oe]+" is expected";switch(oe){case M:this.scanner.tokenType===E||this.scanner.tokenType===x?($=this.scanner.tokenEnd-1,ye="Identifier is expected but function found"):ye="Identifier is expected";break;case S:this.scanner.isDelim(35)&&(this.scanner.next(),$++,ye="Name is expected");break;case A:this.scanner.tokenType===L&&($=this.scanner.tokenEnd,ye="Percent sign is expected");break;default:this.scanner.source.charCodeAt(this.scanner.tokenStart)===oe&&($+=1)}this.error(ye,$)}this.scanner.next()},consume:function(oe){var $=this.scanner.getTokenValue();return this.eat(oe),$},consumeFunctionName:function(){var oe=this.scanner.source.substring(this.scanner.tokenStart,this.scanner.tokenEnd-1);return this.eat(E),oe},getLocation:function(oe,$){return this.needPositions?this.locationMap.getLocationRange(oe,$,this.filename):null},getLocationFromList:function(oe){if(this.needPositions){var $=this.getFirstListNode(oe),ye=this.getLastListNode(oe);return this.locationMap.getLocationRange(null!==$?$.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,null!==ye?ye.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function(oe,$){var ye=this.locationMap.getLocation(void 0!==$&&$<this.scanner.source.length?$:this.scanner.eof?_(this.scanner.source,this.scanner.source.length-1):this.scanner.tokenStart);throw new B(oe||"Unexpected input",this.scanner.source,ye.offset,ye.line,ye.column)}};for(var ue in ie=function(ae){var ie={context:{},scope:{},atrule:{},pseudo:{}};if(ae.parseContext)for(var se in ae.parseContext)switch(typeof ae.parseContext[se]){case"function":ie.context[se]=ae.parseContext[se];break;case"string":ie.context[se]=z(ae.parseContext[se])}if(ae.scope)for(var se in ae.scope)ie.scope[se]=ae.scope[se];if(ae.atrule)for(var se in ae.atrule){var ue=ae.atrule[se];ue.parse&&(ie.atrule[se]=ue.parse)}if(ae.pseudo)for(var se in ae.pseudo){var de=ae.pseudo[se];de.parse&&(ie.pseudo[se]=de.parse)}if(ae.node)for(var se in ae.node)ie[se]=ae.node[se].parse;return ie}(ie||{}))se[ue]=ie[ue];return function(de,oe){var ve,$=(oe=oe||{}).context||"default",ye=oe.onComment;if(w(de,se.scanner),se.locationMap.setSource(de,oe.offset,oe.line,oe.column),se.filename=oe.filename||"<unknown>",se.needPositions=Boolean(oe.positions),se.onParseError="function"==typeof oe.onParseError?oe.onParseError:O,se.onParseErrorThrow=!1,se.parseAtrulePrelude=!("parseAtrulePrelude"in oe)||Boolean(oe.parseAtrulePrelude),se.parseRulePrelude=!("parseRulePrelude"in oe)||Boolean(oe.parseRulePrelude),se.parseValue=!("parseValue"in oe)||Boolean(oe.parseValue),se.parseCustomProperty="parseCustomProperty"in oe&&Boolean(oe.parseCustomProperty),!se.context.hasOwnProperty($))throw new Error("Unknown context `"+$+"`");return"function"==typeof ye&&se.scanner.forEachToken(function(et,Ne,gt){if(et===T){var _t=se.getLocation(Ne,gt),Rt=N(de,gt-2,gt,"*/")?de.slice(Ne+2,gt-2):de.slice(Ne+2,gt);ye(Rt,_t)}}),ve=se.context[$].call(se,oe),se.scanner.eof||se.error(),ve}}},15785:function(le,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment;le.exports=function(w){var R=this.createList(),C=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 B:_.ignoreWS?this.scanner.next():_.space=this.WhiteSpace();continue}if(void 0===(C=w.getNode.call(this,_)))break;null!==_.space&&(R.push(_.space),_.space=null),R.push(C),_.ignoreWSAfter?(_.ignoreWSAfter=!1,_.ignoreWS=!0):_.ignoreWS=!1}return R}},71713:function(le){le.exports={parse:{prelude:null,block:function(){return this.Block(!0)}}}},88208:function(le,q,f){var U=f(97555).TYPE,B=U.String,V=U.Ident,Z=U.Url,w=U.Function,R=U.LeftParenthesis;le.exports={parse:{prelude:function(){var _=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case B:_.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)===R)&&(_.push(this.WhiteSpace()),_.push(this.MediaQueryList())),_},block:null}}},55682:function(le,q,f){le.exports={"font-face":f(71713),import:f(88208),media:f(81706),page:f(93949),supports:f(46928)}},81706:function(le){le.exports={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}}},93949:function(le){le.exports={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}}},46928:function(le,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment,Z=U.Ident,w=U.Function,R=U.Colon,C=U.LeftParenthesis;function _(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function N(){return this.scanner.skipSC(),this.scanner.tokenType===Z&&this.lookupNonWSType(1)===R?this.createSingleNodeList(this.Declaration()):D.call(this)}function D(){var y,O=this.createList(),P=null;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case B:P=this.WhiteSpace();continue;case V:this.scanner.next();continue;case w:y=this.Function(_,this.scope.AtrulePrelude);break;case Z:y=this.Identifier();break;case C:y=this.Parentheses(N,this.scope.AtrulePrelude);break;default:break e}null!==P&&(O.push(P),P=null),O.push(y)}return O}le.exports={parse:{prelude:function(){var P=D.call(this);return null===this.getFirstListNode(P)&&this.error("Condition is expected"),P},block:function(){return this.Block(!1)}}}},53901:function(le,q,f){var U=f(57695);le.exports={generic:!0,types:U.types,atrules:U.atrules,properties:U.properties,node:f(5678)}},15249:function(le,q,f){var U=f(6326).default,B=Object.prototype.hasOwnProperty,V={generic:!0,types:N,atrules:{prelude:D,descriptors:D},properties:N,parseContext:function(P,y){return Object.assign(P,y)},scope:function C(P,y){for(var g in y)B.call(y,g)&&(Z(P[g])?C(P[g],w(y[g])):P[g]=w(y[g]));return P},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function Z(P){return P&&P.constructor===Object}function w(P){return Z(P)?Object.assign({},P):P}function _(P,y){return"string"==typeof y&&/^\s*\|/.test(y)?"string"==typeof P?P+y:y.replace(/^\s*\|\s*/,""):y||null}function N(P,y){if("string"==typeof y)return _(P,y);var g=Object.assign({},P);for(var T in y)B.call(y,T)&&(g[T]=_(B.call(P,T)?P[T]:void 0,y[T]));return g}function D(P,y){var g=N(P,y);return!Z(g)||Object.keys(g).length?g:null}function O(P,y,g){for(var T in g)if(!1!==B.call(g,T))if(!0===g[T])T in y&&B.call(y,T)&&(P[T]=w(y[T]));else if(g[T])if("function"==typeof g[T]){var M=g[T];P[T]=M({},P[T]),P[T]=M(P[T]||{},y[T])}else if(Z(g[T])){var E={};for(var x in P[T])E[x]=O({},P[T][x],g[T]);for(var S in y[T])E[S]=O(E[S]||{},y[T][S],g[T]);P[T]=E}else if(Array.isArray(g[T])){for(var A={},L=g[T].reduce(function(se,ue){return se[ue]=!0,se},{}),j=0,K=Object.entries(P[T]||{});j<K.length;j++){var z=U(K[j],2),Q=z[0],ae=z[1];A[Q]={},ae&&O(A[Q],ae,L)}for(var ie in y[T])B.call(y[T],ie)&&(A[ie]||(A[ie]={}),y[T]&&y[T][ie]&&O(A[ie],y[T][ie],L));P[T]=A}return P}le.exports=function(P,y){return O(P,y,V)}},76816:function(le,q,f){le.exports={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(B){return this.AtrulePrelude(B.atrule?String(B.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(le,q,f){le.exports={node:f(5678)}},15067:function(le,q,f){var U=f(63335),B=f(52556),V=f(13146),Z=f(63539),w=f(37149),R=f(97555),C=f(29365),_=f(9861),N=f(62139),D=f(24523),O=f(30714),P=f(50643),y=f(15249);function g(T){var M=C(T),E=D(T),x=_(T),S=N(E),A={List:U,SyntaxError:B,TokenStream:V,Lexer:Z,vendorPrefix:P.vendorPrefix,keyword:P.keyword,property:P.property,isCustomProperty:P.isCustomProperty,definitionSyntax:w,lexer:null,createLexer:function(j){return new Z(j,A,A.lexer.structure)},tokenize:R,parse:M,walk:E,generate:x,find:E.find,findLast:E.findLast,findAll:E.findAll,clone:O,fromPlainObject:S.fromPlainObject,toPlainObject:S.toPlainObject,createSyntax:function(j){return g(y({},j))},fork:function(j){var K=y({},T);return g("function"==typeof j?j(K,Object.assign):y(K,j))}};return A.lexer=new Z({generic:!0,types:T.types,atrules:T.atrules,properties:T.properties,node:T.node},A),A}q.create=function(T){return g(y({},T))}},36728:function(le){le.exports=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}},82418:function(le,q,f){var U=f(97555).TYPE,B=f(89604).mode,V=U.Comma,Z=U.WhiteSpace;le.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 R=this.scanner.tokenIndex,C=this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,B.exclamationMarkOrSemicolon,!1);if("Value"===C.type&&C.children.isEmpty())for(var _=R-this.scanner.tokenIndex;_<=0;_++)if(this.scanner.lookupType(_)===Z){C.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}w.push(C)}return w}},39158:function(le,q,f){le.exports=f(15067).create(function(){for(var B={},V=0;V<arguments.length;V++){var Z=arguments[V];for(var w in Z)B[w]=Z[w]}return B}(f(53901),f(76816),f(29897))),le.exports.version=f(37151).version},34230:function(le,q,f){var U=f(97555).cmpChar,B=f(97555).isDigit,V=f(97555).TYPE,Z=V.WhiteSpace,w=V.Comment,R=V.Ident,C=V.Number,_=V.Dimension,N=43,D=45,O=110,P=!0;function g(x,S){var A=this.scanner.tokenStart+x,L=this.scanner.source.charCodeAt(A);for((L===N||L===D)&&(S&&this.error("Number sign is not allowed"),A++);A<this.scanner.tokenEnd;A++)B(this.scanner.source.charCodeAt(A))||this.error("Integer is expected",A)}function T(x){return g.call(this,0,x)}function M(x,S){if(!U(this.scanner.source,this.scanner.tokenStart+x,S)){var A="";switch(S){case O:A="N is expected";break;case D:A="HyphenMinus is expected"}this.error(A,this.scanner.tokenStart+x)}}function E(){for(var x=0,S=0,A=this.scanner.tokenType;A===Z||A===w;)A=this.scanner.lookupType(++x);if(A!==C){if(!this.scanner.isDelim(N,x)&&!this.scanner.isDelim(D,x))return null;S=this.scanner.isDelim(N,x)?N:D;do{A=this.scanner.lookupType(++x)}while(A===Z||A===w);A!==C&&(this.scanner.skip(x),T.call(this,P))}return x>0&&this.scanner.skip(x),0===S&&(A=this.scanner.source.charCodeAt(this.scanner.tokenStart))!==N&&A!==D&&this.error("Number sign is expected"),T.call(this,0!==S),S===D?"-"+this.consume(C):this.consume(C)}le.exports={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var S=this.scanner.tokenStart,A=null,L=null;if(this.scanner.tokenType===C)T.call(this,!1),L=this.consume(C);else if(this.scanner.tokenType===R&&U(this.scanner.source,this.scanner.tokenStart,D))switch(A="-1",M.call(this,1,O),this.scanner.getTokenLength()){case 2:this.scanner.next(),L=E.call(this);break;case 3:M.call(this,2,D),this.scanner.next(),this.scanner.skipSC(),T.call(this,P),L="-"+this.consume(C);break;default:M.call(this,2,D),g.call(this,3,P),this.scanner.next(),L=this.scanner.substrToCursor(S+2)}else if(this.scanner.tokenType===R||this.scanner.isDelim(N)&&this.scanner.lookupType(1)===R){var j=0;switch(A="1",this.scanner.isDelim(N)&&(j=1,this.scanner.next()),M.call(this,0,O),this.scanner.getTokenLength()){case 1:this.scanner.next(),L=E.call(this);break;case 2:M.call(this,1,D),this.scanner.next(),this.scanner.skipSC(),T.call(this,P),L="-"+this.consume(C);break;default:M.call(this,1,D),g.call(this,2,P),this.scanner.next(),L=this.scanner.substrToCursor(S+j+1)}}else if(this.scanner.tokenType===_){for(var K=this.scanner.source.charCodeAt(this.scanner.tokenStart),z=this.scanner.tokenStart+(j=K===N||K===D);z<this.scanner.tokenEnd&&B(this.scanner.source.charCodeAt(z));z++);z===this.scanner.tokenStart+j&&this.error("Integer is expected",this.scanner.tokenStart+j),M.call(this,z-this.scanner.tokenStart,O),A=this.scanner.source.substring(S,z),z+1===this.scanner.tokenEnd?(this.scanner.next(),L=E.call(this)):(M.call(this,z-this.scanner.tokenStart+1,D),z+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),T.call(this,P),L="-"+this.consume(C)):(g.call(this,z-this.scanner.tokenStart+2,P),this.scanner.next(),L=this.scanner.substrToCursor(z+1)))}else this.error();return null!==A&&A.charCodeAt(0)===N&&(A=A.substr(1)),null!==L&&L.charCodeAt(0)===N&&(L=L.substr(1)),{type:"AnPlusB",loc:this.getLocation(S,this.scanner.tokenStart),a:A,b:L}},generate:function(S){var L=null!=S.b;null!=S.a?(this.chunk("+1"===S.a?"+n":"1"===S.a?"n":"-1"===S.a?"-n":S.a+"n"),L&&("-"===(L=String(S.b)).charAt(0)||"+"===L.charAt(0)?(this.chunk(L.charAt(0)),this.chunk(L.substr(1))):(this.chunk("+"),this.chunk(L)))):this.chunk(String(S.b))}}},24867:function(le,q,f){var U=f(97555).TYPE,B=f(89604).mode,V=U.AtKeyword,Z=U.Semicolon,w=U.LeftCurlyBracket,R=U.RightCurlyBracket;function C(N){return this.Raw(N,B.leftCurlyBracketOrSemicolon,!0)}function _(){for(var D,N=1;D=this.scanner.lookupType(N);N++){if(D===R)return!0;if(D===w||D===V)return!1}return!1}le.exports={name:"Atrule",structure:{name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]},parse:function(){var O,P,D=this.scanner.tokenStart,y=null,g=null;switch(this.eat(V),P=(O=this.scanner.substrToCursor(D+1)).toLowerCase(),this.scanner.skipSC(),!1===this.scanner.eof&&this.scanner.tokenType!==w&&this.scanner.tokenType!==Z&&(this.parseAtrulePrelude?"AtrulePrelude"===(y=this.parseWithFallback(this.AtrulePrelude.bind(this,O),C)).type&&null===y.children.head&&(y=null):y=C.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case Z:this.scanner.next();break;case w:g=this.atrule.hasOwnProperty(P)&&"function"==typeof this.atrule[P].block?this.atrule[P].block.call(this):this.Block(_.call(this))}return{type:"Atrule",loc:this.getLocation(D,this.scanner.tokenStart),name:O,prelude:y,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(le,q,f){var U=f(97555).TYPE,B=U.Semicolon,V=U.LeftCurlyBracket;le.exports={name:"AtrulePrelude",structure:{children:[[]]},parse:function(w){var R=null;return null!==w&&(w=w.toLowerCase()),this.scanner.skipSC(),R=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!==B&&this.error("Semicolon or block is expected"),null===R&&(R=this.createList()),{type:"AtrulePrelude",loc:this.getLocationFromList(R),children:R}},generate:function(w){this.children(w)},walkContext:"atrulePrelude"}},87446:function(le,q,f){var U=f(97555).TYPE,B=U.Ident,V=U.String,Z=U.Colon,w=U.LeftSquareBracket,R=U.RightSquareBracket;function y(){this.scanner.eof&&this.error("Unexpected end of input");var T=this.scanner.tokenStart,M=!1,E=!0;return this.scanner.isDelim(42)?(M=!0,E=!1,this.scanner.next()):this.scanner.isDelim(124)||this.eat(B),this.scanner.isDelim(124)?61!==this.scanner.source.charCodeAt(this.scanner.tokenStart+1)?(this.scanner.next(),this.eat(B)):M&&this.error("Identifier is expected",this.scanner.tokenEnd):M&&this.error("Vertical line is expected"),E&&this.scanner.tokenType===Z&&(this.scanner.next(),this.eat(B)),{type:"Identifier",loc:this.getLocation(T,this.scanner.tokenStart),name:this.scanner.substrToCursor(T)}}function g(){var T=this.scanner.tokenStart,M=this.scanner.source.charCodeAt(T);return 61!==M&&126!==M&&94!==M&&36!==M&&42!==M&&124!==M&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),61!==M&&(this.scanner.isDelim(61)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(T)}le.exports={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var E,M=this.scanner.tokenStart,x=null,S=null,A=null;return this.eat(w),this.scanner.skipSC(),E=y.call(this),this.scanner.skipSC(),this.scanner.tokenType!==R&&(this.scanner.tokenType!==B&&(x=g.call(this),this.scanner.skipSC(),S=this.scanner.tokenType===V?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===B&&(A=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(R),{type:"AttributeSelector",loc:this.getLocation(M,this.scanner.tokenStart),name:E,matcher:x,value:S,flags:A}},generate:function(M){var E=" ";this.chunk("["),this.node(M.name),null!==M.matcher&&(this.chunk(M.matcher),null!==M.value&&(this.node(M.value),"String"===M.value.type&&(E=""))),null!==M.flags&&(this.chunk(E),this.chunk(M.flags)),this.chunk("]")}}},33570:function(le,q,f){var U=f(97555).TYPE,B=f(89604).mode,V=U.WhiteSpace,Z=U.Comment,w=U.Semicolon,R=U.AtKeyword,C=U.LeftCurlyBracket,_=U.RightCurlyBracket;function N(y){return this.Raw(y,null,!0)}function D(){return this.parseWithFallback(this.Rule,N)}function O(y){return this.Raw(y,B.semicolonIncluded,!0)}function P(){if(this.scanner.tokenType===w)return O.call(this,this.scanner.tokenIndex);var y=this.parseWithFallback(this.Declaration,O);return this.scanner.tokenType===w&&this.scanner.next(),y}le.exports={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(g){var T=g?P:D,M=this.scanner.tokenStart,E=this.createList();this.eat(C);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case _:break e;case V:case Z:this.scanner.next();break;case R:E.push(this.parseWithFallback(this.Atrule,N));break;default:E.push(T.call(this))}return this.scanner.eof||this.eat(_),{type:"Block",loc:this.getLocation(M,this.scanner.tokenStart),children:E}},generate:function(g){this.chunk("{"),this.children(g,function(T){"Declaration"===T.type&&this.chunk(";")}),this.chunk("}")},walkContext:"block"}},8916:function(le,q,f){var U=f(97555).TYPE,B=U.LeftSquareBracket,V=U.RightSquareBracket;le.exports={name:"Brackets",structure:{children:[[]]},parse:function(w,R){var _,C=this.scanner.tokenStart;return this.eat(B),_=w.call(this,R),this.scanner.eof||this.eat(V),{type:"Brackets",loc:this.getLocation(C,this.scanner.tokenStart),children:_}},generate:function(w){this.chunk("["),this.children(w),this.chunk("]")}}},91485:function(le,q,f){var U=f(97555).TYPE.CDC;le.exports={name:"CDC",structure:[],parse:function(){var V=this.scanner.tokenStart;return this.eat(U),{type:"CDC",loc:this.getLocation(V,this.scanner.tokenStart)}},generate:function(){this.chunk("--\x3e")}}},59315:function(le,q,f){var U=f(97555).TYPE.CDO;le.exports={name:"CDO",structure:[],parse:function(){var V=this.scanner.tokenStart;return this.eat(U),{type:"CDO",loc:this.getLocation(V,this.scanner.tokenStart)}},generate:function(){this.chunk("\x3c!--")}}},37016:function(le,q,f){var B=f(97555).TYPE.Ident;le.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(B)}},generate:function(w){this.chunk("."),this.chunk(w.name)}}},55136:function(le,q,f){var B=f(97555).TYPE.Ident;le.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!==B||!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(le,q,f){var B=f(97555).TYPE.Comment;le.exports={name:"Comment",structure:{value:String},parse:function(){var R=this.scanner.tokenStart,C=this.scanner.tokenEnd;return this.eat(B),C-R+2>=2&&42===this.scanner.source.charCodeAt(C-2)&&47===this.scanner.source.charCodeAt(C-1)&&(C-=2),{type:"Comment",loc:this.getLocation(R,this.scanner.tokenStart),value:this.scanner.source.substring(R+2,C)}},generate:function(R){this.chunk("/*"),this.chunk(R.value),this.chunk("*/")}}},7217:function(le,q,f){var U=f(50643).isCustomProperty,B=f(97555).TYPE,V=f(89604).mode,Z=B.Ident,w=B.Hash,R=B.Colon,C=B.Semicolon,_=B.Delim,N=B.WhiteSpace;function E(j){return this.Raw(j,V.exclamationMarkOrSemicolon,!0)}function x(j){return this.Raw(j,V.exclamationMarkOrSemicolon,!1)}function S(){var j=this.scanner.tokenIndex,K=this.Value();return"Raw"!==K.type&&!1===this.scanner.eof&&this.scanner.tokenType!==C&&!1===this.scanner.isDelim(33)&&!1===this.scanner.isBalanceEdge(j)&&this.error(),K}function A(){var j=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(j)}function L(){this.eat(_),this.scanner.skipSC();var j=this.consume(Z);return"important"===j||j}le.exports={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var de,K=this.scanner.tokenStart,z=this.scanner.tokenIndex,Q=A.call(this),ae=U(Q),ie=ae?this.parseCustomProperty:this.parseValue,se=ae?x:E,ue=!1;this.scanner.skipSC(),this.eat(R);var oe=this.scanner.tokenIndex;if(ae||this.scanner.skipSC(),de=ie?this.parseWithFallback(S,se):se.call(this,this.scanner.tokenIndex),ae&&"Value"===de.type&&de.children.isEmpty())for(var $=oe-this.scanner.tokenIndex;$<=0;$++)if(this.scanner.lookupType($)===N){de.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.scanner.isDelim(33)&&(ue=L.call(this),this.scanner.skipSC()),!1===this.scanner.eof&&this.scanner.tokenType!==C&&!1===this.scanner.isBalanceEdge(z)&&this.error(),{type:"Declaration",loc:this.getLocation(K,this.scanner.tokenStart),important:ue,property:Q,value:de}},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(le,q,f){var U=f(97555).TYPE,B=f(89604).mode,V=U.WhiteSpace,Z=U.Comment,w=U.Semicolon;function R(C){return this.Raw(C,B.semicolonIncluded,!0)}le.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,R))}return{type:"DeclarationList",loc:this.getLocationFromList(_),children:_}},generate:function(_){this.children(_,function(N){"Declaration"===N.type&&this.chunk(";")})}}},68241:function(le,q,f){var U=f(74586).consumeNumber,V=f(97555).TYPE.Dimension;le.exports={name:"Dimension",structure:{value:String,unit:String},parse:function(){var w=this.scanner.tokenStart,R=U(this.scanner.source,w);return this.eat(V),{type:"Dimension",loc:this.getLocation(w,this.scanner.tokenStart),value:this.scanner.source.substring(w,R),unit:this.scanner.source.substring(R,this.scanner.tokenStart)}},generate:function(w){this.chunk(w.value),this.chunk(w.unit)}}},60298:function(le,q,f){var B=f(97555).TYPE.RightParenthesis;le.exports={name:"Function",structure:{name:String,children:[[]]},parse:function(Z,w){var N,R=this.scanner.tokenStart,C=this.consumeFunctionName(),_=C.toLowerCase();return N=w.hasOwnProperty(_)?w[_].call(this,w):Z.call(this,w),this.scanner.eof||this.eat(B),{type:"Function",loc:this.getLocation(R,this.scanner.tokenStart),name:C,children:N}},generate:function(Z){this.chunk(Z.name),this.chunk("("),this.children(Z),this.chunk(")")},walkContext:"function"}},50759:function(le,q,f){var B=f(97555).TYPE.Hash;le.exports={name:"Hash",structure:{value:String},parse:function(){var Z=this.scanner.tokenStart;return this.eat(B),{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(le,q,f){var B=f(97555).TYPE.Hash;le.exports={name:"IdSelector",structure:{name:String},parse:function(){var Z=this.scanner.tokenStart;return this.eat(B),{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(le,q,f){var B=f(97555).TYPE.Ident;le.exports={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(B)}},generate:function(Z){this.chunk(Z.name)}}},94179:function(le,q,f){var U=f(97555).TYPE,B=U.Ident,V=U.Number,Z=U.Dimension,w=U.LeftParenthesis,R=U.RightParenthesis,C=U.Colon,_=U.Delim;le.exports={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var O,D=this.scanner.tokenStart,P=null;if(this.eat(w),this.scanner.skipSC(),O=this.consume(B),this.scanner.skipSC(),this.scanner.tokenType!==R){switch(this.eat(C),this.scanner.skipSC(),this.scanner.tokenType){case V:P=this.lookupNonWSType(1)===_?this.Ratio():this.Number();break;case Z:P=this.Dimension();break;case B:P=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(R),{type:"MediaFeature",loc:this.getLocation(D,this.scanner.tokenStart),name:O,value:P}},generate:function(D){this.chunk("("),this.chunk(D.name),null!==D.value&&(this.chunk(":"),this.node(D.value)),this.chunk(")")}}},32107:function(le,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment,Z=U.Ident,w=U.LeftParenthesis;le.exports={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var C=this.createList(),_=null,N=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case V:this.scanner.next();continue;case B:N=this.WhiteSpace();continue;case Z:_=this.Identifier();break;case w:_=this.MediaFeature();break;default:break e}null!==N&&(C.push(N),N=null),C.push(_)}return null===_&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(C),children:C}},generate:function(C){this.children(C)}}},54459:function(le,q,f){var U=f(97555).TYPE.Comma;le.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===U);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(Z),children:Z}},generate:function(V){this.children(V,function(){this.chunk(",")})}}},61123:function(le){le.exports={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(f){this.scanner.skipSC();var Z,U=this.scanner.tokenStart,B=U,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&&(B=this.getLastListNode(V.children).loc.end.offset)):this.needPositions&&(B=Z.loc.end.offset),{type:"Nth",loc:this.getLocation(U,B),nth:Z,selector:V}},generate:function(f){this.node(f.nth),null!==f.selector&&(this.chunk(" of "),this.node(f.selector))}}},63902:function(le,q,f){var U=f(97555).TYPE.Number;le.exports={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(U)}},generate:function(V){this.chunk(V.value)}}},7249:function(le){le.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(le,q,f){var U=f(97555).TYPE,B=U.LeftParenthesis,V=U.RightParenthesis;le.exports={name:"Parentheses",structure:{children:[[]]},parse:function(w,R){var _,C=this.scanner.tokenStart;return this.eat(B),_=w.call(this,R),this.scanner.eof||this.eat(V),{type:"Parentheses",loc:this.getLocation(C,this.scanner.tokenStart),children:_}},generate:function(w){this.chunk("("),this.children(w),this.chunk(")")}}},62173:function(le,q,f){var U=f(74586).consumeNumber,V=f(97555).TYPE.Percentage;le.exports={name:"Percentage",structure:{value:String},parse:function(){var w=this.scanner.tokenStart,R=U(this.scanner.source,w);return this.eat(V),{type:"Percentage",loc:this.getLocation(w,this.scanner.tokenStart),value:this.scanner.source.substring(w,R)}},generate:function(w){this.chunk(w.value),this.chunk("%")}}},38887:function(le,q,f){var U=f(97555).TYPE,B=U.Ident,V=U.Function,Z=U.Colon,w=U.RightParenthesis;le.exports={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var N,D,C=this.scanner.tokenStart,_=null;return this.eat(Z),this.scanner.tokenType===V?(D=(N=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)):N=this.consume(B),{type:"PseudoClassSelector",loc:this.getLocation(C,this.scanner.tokenStart),name:N,children:_}},generate:function(C){this.chunk(":"),this.chunk(C.name),null!==C.children&&(this.chunk("("),this.children(C),this.chunk(")"))},walkContext:"function"}},78076:function(le,q,f){var U=f(97555).TYPE,B=U.Ident,V=U.Function,Z=U.Colon,w=U.RightParenthesis;le.exports={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var N,D,C=this.scanner.tokenStart,_=null;return this.eat(Z),this.eat(Z),this.scanner.tokenType===V?(D=(N=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)):N=this.consume(B),{type:"PseudoElementSelector",loc:this.getLocation(C,this.scanner.tokenStart),name:N,children:_}},generate:function(C){this.chunk("::"),this.chunk(C.name),null!==C.children&&(this.chunk("("),this.children(C),this.chunk(")"))},walkContext:"function"}},15482:function(le,q,f){var U=f(97555).isDigit,B=f(97555).TYPE,V=B.Number,Z=B.Delim;function C(){this.scanner.skipWS();for(var _=this.consume(V),N=0;N<_.length;N++){var D=_.charCodeAt(N);!U(D)&&46!==D&&this.error("Unsigned number is expected",this.scanner.tokenStart-_.length+N)}return 0===Number(_)&&this.error("Zero number is not allowed",this.scanner.tokenStart-_.length),_}le.exports={name:"Ratio",structure:{left:String,right:String},parse:function(){var O,N=this.scanner.tokenStart,D=C.call(this);return this.scanner.skipWS(),this.scanner.isDelim(47)||this.error("Solidus is expected"),this.eat(Z),O=C.call(this),{type:"Ratio",loc:this.getLocation(N,this.scanner.tokenStart),left:D,right:O}},generate:function(N){this.chunk(N.left),this.chunk("/"),this.chunk(N.right)}}},89604:function(le,q,f){var B=f(97555).TYPE,V=B.WhiteSpace,Z=B.Semicolon,w=B.LeftCurlyBracket,R=B.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 N(){return 0}le.exports={name:"Raw",structure:{value:String},parse:function(T,M,E){var S,x=this.scanner.getTokenStart(T);return this.scanner.skip(this.scanner.getRawLength(T,M||N)),S=E&&this.scanner.tokenStart>x?_.call(this):this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(x,S),value:this.scanner.source.substring(x,S)}},generate:function(T){this.chunk(T.value)},mode:{default:N,leftCurlyBracket:function(g){return g===w?1:0},leftCurlyBracketOrSemicolon:function(g){return g===w||g===Z?1:0},exclamationMarkOrSemicolon:function(g,T,M){return g===R&&33===T.charCodeAt(M)||g===Z?1:0},semicolonIncluded:function(g){return g===Z?2:0}}}},56064:function(le,q,f){var U=f(97555).TYPE,B=f(89604).mode,V=U.LeftCurlyBracket;function Z(R){return this.Raw(R,B.leftCurlyBracket,!0)}function w(){var R=this.SelectorList();return"Raw"!==R.type&&!1===this.scanner.eof&&this.scanner.tokenType!==V&&this.error(),R}le.exports={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var N,D,C=this.scanner.tokenIndex,_=this.scanner.tokenStart;return N=this.parseRulePrelude?this.parseWithFallback(w,Z):Z.call(this,C),D=this.Block(!0),{type:"Rule",loc:this.getLocation(_,this.scanner.tokenStart),prelude:N,block:D}},generate:function(C){this.node(C.prelude),this.node(C.block)},walkContext:"rule"}},43042:function(le){le.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(le,q,f){var B=f(97555).TYPE.Comma;le.exports={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var Z=this.createList();!this.scanner.eof&&(Z.push(this.Selector()),this.scanner.tokenType===B);)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(le,q,f){var U=f(97555).TYPE.String;le.exports={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(U)}},generate:function(V){this.chunk(V.value)}}},91348:function(le,q,f){var U=f(97555).TYPE,B=U.WhiteSpace,V=U.Comment,Z=U.AtKeyword,w=U.CDO,R=U.CDC;function _(N){return this.Raw(N,null,!1)}le.exports={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var P,D=this.scanner.tokenStart,O=this.createList();!this.scanner.eof;){switch(this.scanner.tokenType){case B:this.scanner.next();continue;case V:if(33!==this.scanner.source.charCodeAt(this.scanner.tokenStart+2)){this.scanner.next();continue}P=this.Comment();break;case w:P=this.CDO();break;case R:P=this.CDC();break;case Z:P=this.parseWithFallback(this.Atrule,_);break;default:P=this.parseWithFallback(this.Rule,_)}O.push(P)}return{type:"StyleSheet",loc:this.getLocation(D,this.scanner.tokenStart),children:O}},generate:function(D){this.children(D)},walkContext:"stylesheet"}},16983:function(le,q,f){var B=f(97555).TYPE.Ident;function w(){this.scanner.tokenType!==B&&!1===this.scanner.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.scanner.next()}le.exports={name:"TypeSelector",structure:{name:String},parse:function(){var C=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(C,this.scanner.tokenStart),name:this.scanner.substrToCursor(C)}},generate:function(C){this.chunk(C.name)}}},95616:function(le,q,f){var U=f(97555).isHexDigit,B=f(97555).cmpChar,V=f(97555).TYPE,Z=f(97555).NAME,w=V.Ident,R=V.Number,C=V.Dimension;function P(M,E){for(var x=this.scanner.tokenStart+M,S=0;x<this.scanner.tokenEnd;x++){var A=this.scanner.source.charCodeAt(x);if(45===A&&E&&0!==S)return 0===P.call(this,M+S+1,!1)&&this.error(),-1;U(A)||this.error(E&&0!==S?"HyphenMinus"+(S<6?" or hex digit":"")+" is expected":S<6?"Hex digit is expected":"Unexpected input",x),++S>6&&this.error("Too many hex digits",x)}return this.scanner.next(),S}function y(M){for(var E=0;this.scanner.isDelim(63);)++E>M&&this.error("Too many question marks"),this.scanner.next()}function g(M){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==M&&this.error(Z[M]+" is expected")}function T(){var M=0;return this.scanner.isDelim(43)?(this.scanner.next(),this.scanner.tokenType===w?void((M=P.call(this,0,!0))>0&&y.call(this,6-M)):this.scanner.isDelim(63)?(this.scanner.next(),void y.call(this,5)):void this.error("Hex digit or question mark is expected")):this.scanner.tokenType===R?(g.call(this,43),M=P.call(this,1,!0),this.scanner.isDelim(63)?void y.call(this,6-M):this.scanner.tokenType===C||this.scanner.tokenType===R?(g.call(this,45),void P.call(this,1,!1)):void 0):this.scanner.tokenType===C?(g.call(this,43),void((M=P.call(this,1,!0))>0&&y.call(this,6-M))):void this.error()}le.exports={name:"UnicodeRange",structure:{value:String},parse:function(){var E=this.scanner.tokenStart;return B(this.scanner.source,E,117)||this.error("U is expected"),B(this.scanner.source,E+1,43)||this.error("Plus sign is expected"),this.scanner.next(),T.call(this),{type:"UnicodeRange",loc:this.getLocation(E,this.scanner.tokenStart),value:this.scanner.substrToCursor(E)}},generate:function(E){this.chunk(E.value)}}},72796:function(le,q,f){var U=f(97555).isWhiteSpace,B=f(97555).cmpStr,V=f(97555).TYPE,Z=V.Function,w=V.Url,R=V.RightParenthesis;le.exports={name:"Url",structure:{value:["String","Raw"]},parse:function(){var N,_=this.scanner.tokenStart;switch(this.scanner.tokenType){case w:for(var D=_+4,O=this.scanner.tokenEnd-1;D<O&&U(this.scanner.source.charCodeAt(D));)D++;for(;D<O&&U(this.scanner.source.charCodeAt(O-1));)O--;N={type:"Raw",loc:this.getLocation(D,O),value:this.scanner.source.substring(D,O)},this.eat(w);break;case Z:B(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Z),this.scanner.skipSC(),N=this.String(),this.scanner.skipSC(),this.eat(R);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(_,this.scanner.tokenStart),value:N}},generate:function(_){this.chunk("url"),this.chunk("("),this.node(_.value),this.chunk(")")}}},605:function(le){le.exports={name:"Value",structure:{children:[[]]},parse:function(){var f=this.scanner.tokenStart,U=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(f,this.scanner.tokenStart),children:U}},generate:function(f){this.children(f)}}},48360:function(le,q,f){var U=f(97555).TYPE.WhiteSpace,B=Object.freeze({type:"WhiteSpace",loc:null,value:" "});le.exports={name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(U),B},generate:function(Z){this.chunk(Z.value)}}},5678:function(le,q,f){le.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(le){le.exports={parse:function(){return this.createSingleNodeList(this.Nth(!1))}}},56849:function(le){le.exports={parse:function(){return this.createSingleNodeList(this.Nth(!0))}}},23317:function(le){le.exports={parse:function(){return this.createSingleNodeList(this.SelectorList())}}},41448:function(le){le.exports={parse:function(){return this.createSingleNodeList(this.Identifier())}}},12742:function(le){le.exports={parse:function(){return this.createSingleNodeList(this.SelectorList())}}},31947:function(le,q,f){le.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(le){le.exports={parse:function(){return this.createSingleNodeList(this.Identifier())}}},74468:function(le,q,f){le.exports=f(23317)},13251:function(le,q,f){le.exports=f(23317)},3198:function(le,q,f){le.exports=f(56849)},78171:function(le,q,f){le.exports=f(56849)},36963:function(le,q,f){le.exports=f(99281)},91002:function(le,q,f){le.exports=f(99281)},81307:function(le){le.exports={parse:function(){return this.createSingleNodeList(this.Selector())}}},87714:function(le,q,f){le.exports={getNode:f(5495)}},5495:function(le,q,f){var U=f(97555).cmpChar,B=f(97555).cmpStr,V=f(97555).TYPE,Z=V.Ident,w=V.String,R=V.Number,C=V.Function,_=V.Url,N=V.Hash,D=V.Dimension,O=V.Percentage,P=V.LeftParenthesis,y=V.LeftSquareBracket,g=V.Comma,T=V.Delim;le.exports=function(K){switch(this.scanner.tokenType){case N:return this.Hash();case g:return K.space=null,K.ignoreWSAfter=!0,this.Operator();case P:return this.Parentheses(this.readSequence,K.recognizer);case y:return this.Brackets(this.readSequence,K.recognizer);case w:return this.String();case D:return this.Dimension();case O:return this.Percentage();case R:return this.Number();case C:return B(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 U(this.scanner.source,this.scanner.tokenStart,117)&&U(this.scanner.source,this.scanner.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case T:var z=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(47===z||42===z||43===z||45===z)return this.Operator();35===z&&this.error("Hex or identifier is expected",this.scanner.tokenStart+1)}}},73241:function(le,q,f){le.exports={AtrulePrelude:f(87714),Selector:f(59604),Value:f(84761)}},59604:function(le,q,f){var U=f(97555).TYPE,B=U.Delim,V=U.Ident,Z=U.Dimension,w=U.Percentage,R=U.Number,C=U.Hash,_=U.Colon,N=U.LeftSquareBracket;le.exports={getNode:function(S){switch(this.scanner.tokenType){case N:return this.AttributeSelector();case C:return this.IdSelector();case _:return this.scanner.lookupType(1)===_?this.PseudoElementSelector():this.PseudoClassSelector();case V:return this.TypeSelector();case R: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 B:switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 43:case 62:case 126:return S.space=null,S.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(le,q,f){le.exports={getNode:f(5495),expression:f(36728),var:f(82418)}},88312:function(le){function f(x){return x>=48&&x<=57}function B(x){return x>=65&&x<=90}function V(x){return x>=97&&x<=122}function Z(x){return B(x)||V(x)}function w(x){return x>=128}function R(x){return Z(x)||w(x)||95===x}function _(x){return x>=0&&x<=8||11===x||x>=14&&x<=31||127===x}function N(x){return 10===x||13===x||12===x}function D(x){return N(x)||32===x||9===x}function O(x,S){return!(92!==x||N(S)||0===S)}var T=new Array(128);E.Eof=128,E.WhiteSpace=130,E.Digit=131,E.NameStart=132,E.NonPrintable=133;for(var M=0;M<T.length;M++)switch(!0){case D(M):T[M]=E.WhiteSpace;break;case f(M):T[M]=E.Digit;break;case R(M):T[M]=E.NameStart;break;case _(M):T[M]=E.NonPrintable;break;default:T[M]=M||E.Eof}function E(x){return x<128?T[x]:E.NameStart}le.exports={isDigit:f,isHexDigit:function(x){return f(x)||x>=65&&x<=70||x>=97&&x<=102},isUppercaseLetter:B,isLowercaseLetter:V,isLetter:Z,isNonAscii:w,isNameStart:R,isName:function(x){return R(x)||f(x)||45===x},isNonPrintable:_,isNewline:N,isWhiteSpace:D,isValidEscape:O,isIdentifierStart:function(x,S,A){return 45===x?R(S)||45===S||O(S,A):!!R(x)||92===x&&O(x,S)},isNumberStart:function(x,S,A){return 43===x||45===x?f(S)?2:46===S&&f(A)?3:0:46===x?f(S)?2:0:f(x)?1:0},isBOM:function(x){return 65279===x||65534===x?1:0},charCodeCategory:E}},97077:function(le){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(U,B){return U[q[B]]=B,U},{});le.exports={TYPE:q,NAME:f}},97555:function(le,q,f){var U=f(13146),B=f(62146),V=f(97077),Z=V.TYPE,w=f(88312),R=w.isNewline,C=w.isName,_=w.isValidEscape,N=w.isNumberStart,D=w.isIdentifierStart,O=w.charCodeCategory,P=w.isBOM,y=f(74586),g=y.cmpStr,T=y.getNewlineLength,M=y.findWhiteSpaceEnd,E=y.consumeEscaped,x=y.consumeName,S=y.consumeNumber,A=y.consumeBadUrlRemnants,L=16777215,j=24;function K(z,Q){function ae(je){return je<oe?z.charCodeAt(je):0}function ie(){return Ne=S(z,Ne),D(ae(Ne),ae(Ne+1),ae(Ne+2))?(Oe=Z.Dimension,void(Ne=x(z,Ne))):37===ae(Ne)?(Oe=Z.Percentage,void Ne++):void(Oe=Z.Number)}function se(){var je=Ne;return Ne=x(z,Ne),g(z,je,Ne,"url")&&40===ae(Ne)?34===ae(Ne=M(z,Ne+1))||39===ae(Ne)?(Oe=Z.Function,void(Ne=je+4)):void function(){for(Oe=Z.Url,Ne=M(z,Ne);Ne<z.length;Ne++){var je=z.charCodeAt(Ne);switch(O(je)){case 41:return void Ne++;case O.Eof:return;case O.WhiteSpace:return 41===ae(Ne=M(z,Ne))||Ne>=z.length?void(Ne<z.length&&Ne++):(Ne=A(z,Ne),void(Oe=Z.BadUrl));case 34:case 39:case 40:case O.NonPrintable:return Ne=A(z,Ne),void(Oe=Z.BadUrl);case 92:if(_(je,ae(Ne+1))){Ne=E(z,Ne)-1;break}return Ne=A(z,Ne),void(Oe=Z.BadUrl)}}}():40===ae(Ne)?(Oe=Z.Function,void Ne++):void(Oe=Z.Ident)}function ue(je){for(je||(je=ae(Ne++)),Oe=Z.String;Ne<z.length;Ne++){var ct=z.charCodeAt(Ne);switch(O(ct)){case je:return void Ne++;case O.Eof:return;case O.WhiteSpace:if(R(ct))return Ne+=T(z,Ne,ct),void(Oe=Z.BadString);break;case 92:if(Ne===z.length-1)break;var Xe=ae(Ne+1);R(Xe)?Ne+=T(z,Ne+1,Xe):_(ct,Xe)&&(Ne=E(z,Ne)-1)}}}Q||(Q=new U);for(var oe=(z=String(z||"")).length,$=B(Q.offsetAndType,oe+1),ye=B(Q.balance,oe+1),ve=0,et=P(ae(0)),Ne=et,gt=0,_t=0,Rt=0;Ne<oe;){var Se=z.charCodeAt(Ne),Oe=0;switch(ye[ve]=oe,O(Se)){case O.WhiteSpace:Oe=Z.WhiteSpace,Ne=M(z,Ne+1);break;case 34:ue();break;case 35:C(ae(Ne+1))||_(ae(Ne+1),ae(Ne+2))?(Oe=Z.Hash,Ne=x(z,Ne+1)):(Oe=Z.Delim,Ne++);break;case 39:ue();break;case 40:Oe=Z.LeftParenthesis,Ne++;break;case 41:Oe=Z.RightParenthesis,Ne++;break;case 43:N(Se,ae(Ne+1),ae(Ne+2))?ie():(Oe=Z.Delim,Ne++);break;case 44:Oe=Z.Comma,Ne++;break;case 45:N(Se,ae(Ne+1),ae(Ne+2))?ie():45===ae(Ne+1)&&62===ae(Ne+2)?(Oe=Z.CDC,Ne+=3):D(Se,ae(Ne+1),ae(Ne+2))?se():(Oe=Z.Delim,Ne++);break;case 46:N(Se,ae(Ne+1),ae(Ne+2))?ie():(Oe=Z.Delim,Ne++);break;case 47:42===ae(Ne+1)?(Oe=Z.Comment,1===(Ne=z.indexOf("*/",Ne+2)+2)&&(Ne=z.length)):(Oe=Z.Delim,Ne++);break;case 58:Oe=Z.Colon,Ne++;break;case 59:Oe=Z.Semicolon,Ne++;break;case 60:33===ae(Ne+1)&&45===ae(Ne+2)&&45===ae(Ne+3)?(Oe=Z.CDO,Ne+=4):(Oe=Z.Delim,Ne++);break;case 64:D(ae(Ne+1),ae(Ne+2),ae(Ne+3))?(Oe=Z.AtKeyword,Ne=x(z,Ne+1)):(Oe=Z.Delim,Ne++);break;case 91:Oe=Z.LeftSquareBracket,Ne++;break;case 92:_(Se,ae(Ne+1))?se():(Oe=Z.Delim,Ne++);break;case 93:Oe=Z.RightSquareBracket,Ne++;break;case 123:Oe=Z.LeftCurlyBracket,Ne++;break;case 125:Oe=Z.RightCurlyBracket,Ne++;break;case O.Digit:ie();break;case O.NameStart:se();break;case O.Eof:break;default:Oe=Z.Delim,Ne++}switch(Oe){case gt:for(gt=(_t=ye[Rt=_t&L])>>j,ye[ve]=Rt,ye[Rt++]=ve;Rt<ve;Rt++)ye[Rt]===oe&&(ye[Rt]=ve);break;case Z.LeftParenthesis:case Z.Function:ye[ve]=_t,_t=(gt=Z.RightParenthesis)<<j|ve;break;case Z.LeftSquareBracket:ye[ve]=_t,_t=(gt=Z.RightSquareBracket)<<j|ve;break;case Z.LeftCurlyBracket:ye[ve]=_t,_t=(gt=Z.RightCurlyBracket)<<j|ve}$[ve++]=Oe<<j|Ne}for($[ve]=Z.EOF<<j|Ne,ye[ve]=oe,ye[oe]=oe;0!==_t;)_t=ye[Rt=_t&L],ye[Rt]=oe;return Q.source=z,Q.firstCharOffset=et,Q.offsetAndType=$,Q.tokenCount=ve,Q.balance=ye,Q.reset(),Q.next(),Q}Object.keys(V).forEach(function(z){K[z]=V[z]}),Object.keys(w).forEach(function(z){K[z]=w[z]}),Object.keys(y).forEach(function(z){K[z]=y[z]}),le.exports=K},74586:function(le,q,f){var U=f(88312),B=U.isDigit,V=U.isHexDigit,Z=U.isUppercaseLetter,w=U.isName,R=U.isWhiteSpace,C=U.isValidEscape;function _(S,A){return A<S.length?S.charCodeAt(A):0}function N(S,A,L){return 13===L&&10===_(S,A+1)?2:1}function D(S,A,L){var j=S.charCodeAt(A);return Z(j)&&(j|=32),j===L}function g(S,A){for(;A<S.length&&B(S.charCodeAt(A));A++);return A}function T(S,A){if(V(_(S,(A+=2)-1))){for(var L=Math.min(S.length,A+5);A<L&&V(_(S,A));A++);var j=_(S,A);R(j)&&(A+=N(S,A,j))}return A}le.exports={consumeEscaped:T,consumeName:function(S,A){for(;A<S.length;A++){var L=S.charCodeAt(A);if(!w(L)){if(C(L,_(S,A+1))){A=T(S,A)-1;continue}break}}return A},consumeNumber:function(S,A){var L=S.charCodeAt(A);if((43===L||45===L)&&(L=S.charCodeAt(A+=1)),B(L)&&(A=g(S,A+1),L=S.charCodeAt(A)),46===L&&B(S.charCodeAt(A+1))&&(L=S.charCodeAt(A+=2),A=g(S,A)),D(S,A,101)){var j=0;(45===(L=S.charCodeAt(A+1))||43===L)&&(j=1,L=S.charCodeAt(A+2)),B(L)&&(A=g(S,A+1+j+1))}return A},consumeBadUrlRemnants:function(S,A){for(;A<S.length;A++){var L=S.charCodeAt(A);if(41===L){A++;break}C(L,_(S,A+1))&&(A=T(S,A))}return A},cmpChar:D,cmpStr:function(S,A,L,j){if(L-A!==j.length||A<0||L>S.length)return!1;for(var K=A;K<L;K++){var z=S.charCodeAt(K),Q=j.charCodeAt(K-A);if(Z(z)&&(z|=32),z!==Q)return!1}return!0},getNewlineLength:N,findWhiteSpaceStart:function(S,A){for(;A>=0&&R(S.charCodeAt(A));A--);return A+1},findWhiteSpaceEnd:function(S,A){for(;A<S.length&&R(S.charCodeAt(A));A++);return A}}},30714:function(le,q,f){var U=f(63335);le.exports=function B(V){var Z={};for(var w in V){var R=V[w];R&&(Array.isArray(R)||R instanceof U?R=R.map(B):R.constructor===Object&&(R=B(R))),Z[w]=R}return Z}},92455:function(le){le.exports=function(f,U){var B=Object.create(SyntaxError.prototype),V=new Error;return B.name=f,B.message=U,Object.defineProperty(B,"stack",{get:function(){return(V.stack||"").replace(/^(.+\n){1,3}/,f+": "+U+"\n")}}),B}},50643:function(le){var q=Object.prototype.hasOwnProperty,f=Object.create(null),U=Object.create(null);function V(C,_){return C.length-(_=_||0)>=2&&45===C.charCodeAt(_)&&45===C.charCodeAt(_+1)}function Z(C,_){if(C.length-(_=_||0)>=3&&45===C.charCodeAt(_)&&45!==C.charCodeAt(_+1)){var N=C.indexOf("-",_+2);if(-1!==N)return C.substring(_,N+1)}return""}le.exports={keyword:function(C){if(q.call(f,C))return f[C];var _=C.toLowerCase();if(q.call(f,_))return f[C]=f[_];var N=V(_,0),D=N?"":Z(_,0);return f[C]=Object.freeze({basename:_.substr(D.length),name:_,vendor:D,prefix:D,custom:N})},property:function(C){if(q.call(U,C))return U[C];var _=C,N=C[0];"/"===N?N="/"===C[1]?"//":"/":"_"!==N&&"*"!==N&&"$"!==N&&"#"!==N&&"+"!==N&&"&"!==N&&(N="");var D=V(_,N.length);if(!D&&(_=_.toLowerCase(),q.call(U,_)))return U[C]=U[_];var O=D?"":Z(_,N.length),P=_.substr(0,N.length+O.length);return U[C]=Object.freeze({basename:_.substr(P.length),name:_.substr(N.length),hack:N,vendor:O,prefix:P,custom:D})},isCustomProperty:V,vendorPrefix:Z}},24523:function(le){var q=Object.prototype.hasOwnProperty,f=function(){};function U(C){return"function"==typeof C?C:f}function B(C,_){return function(N,D,O){N.type===_&&C.call(this,N,D,O)}}function V(C,_){var N=_.structure,D=[];for(var O in N)if(!1!==q.call(N,O)){var P=N[O],y={name:O,type:!1,nullable:!1};Array.isArray(N[O])||(P=[N[O]]);for(var g=0;g<P.length;g++){var T=P[g];null===T?y.nullable=!0:"string"==typeof T?y.type="node":Array.isArray(T)&&(y.type="list")}y.type&&D.push(y)}return D.length?{context:_.walkContext,fields:D}:null}function w(C,_){var N=C.fields.slice(),D=C.context,O="string"==typeof D;return _&&N.reverse(),function(P,y,g,T){var M;O&&(M=y[D],y[D]=P);for(var E=0;E<N.length;E++){var x=N[E],S=P[x.name];if(!x.nullable||S)if("list"===x.type){if(_?S.reduceRight(T,!1):S.reduce(T,!1))return!0}else if(g(S))return!0}O&&(y[D]=M)}}function R(C){return{Atrule:{StyleSheet:C.StyleSheet,Atrule:C.Atrule,Rule:C.Rule,Block:C.Block},Rule:{StyleSheet:C.StyleSheet,Atrule:C.Atrule,Rule:C.Rule,Block:C.Block},Declaration:{StyleSheet:C.StyleSheet,Atrule:C.Atrule,Rule:C.Rule,Block:C.Block,DeclarationList:C.DeclarationList}}}le.exports=function(_){var N=function(C){var _={};for(var N in C.node)if(q.call(C.node,N)){var D=C.node[N];if(!D.structure)throw new Error("Missed `structure` field in `"+N+"` node type definition");_[N]=V(0,D)}return _}(_),D={},O={},P=Symbol("break-walk"),y=Symbol("skip-node");for(var g in N)q.call(N,g)&&null!==N[g]&&(D[g]=w(N[g],!1),O[g]=w(N[g],!0));var T=R(D),M=R(O),E=function(S,A){function L(ie,se,ue){var de=K.call(ae,ie,se,ue);return de===P||de!==y&&!!(Q.hasOwnProperty(ie.type)&&Q[ie.type](ie,ae,L,j)||z.call(ae,ie,se,ue)===P)}var j=function(se,ue,de,oe){return se||L(ue,de,oe)},K=f,z=f,Q=D,ae={break:P,skip:y,root:S,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof A)K=A;else if(A&&(K=U(A.enter),z=U(A.leave),A.reverse&&(Q=O),A.visit)){if(T.hasOwnProperty(A.visit))Q=A.reverse?M[A.visit]:T[A.visit];else if(!N.hasOwnProperty(A.visit))throw new Error("Bad value `"+A.visit+"` for `visit` option (should be: "+Object.keys(N).join(", ")+")");K=B(K,A.visit),z=B(z,A.visit)}if(K===f&&z===f)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");L(S)};return E.break=P,E.skip=y,E.find=function(x,S){var A=null;return E(x,function(L,j,K){if(S.call(this,L,j,K))return A=L,P}),A},E.findLast=function(x,S){var A=null;return E(x,{reverse:!0,enter:function(j,K,z){if(S.call(this,j,K,z))return A=j,P}}),A},E.findAll=function(x,S){var A=[];return E(x,function(L,j,K){S.call(this,L,j,K)&&A.push(L)}),A},E}},33931:function(le,q,f){var U;!function(B,V,Z){if(B){for(var N,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"},R={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},C={"~":"`","!":"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(z,Q,ae){return this._bindMultiple.call(this,z=z instanceof Array?z:[z],Q,ae),this},K.prototype.unbind=function(z,Q){return this.bind.call(this,z,function(){},Q)},K.prototype.trigger=function(z,Q){return this._directMap[z+":"+Q]&&this._directMap[z+":"+Q]({},z),this},K.prototype.reset=function(){var z=this;return z._callbacks={},z._directMap={},z},K.prototype.stopCallback=function(z,Q){if((" "+Q.className+" ").indexOf(" mousetrap ")>-1||j(Q,this.target))return!1;if("composedPath"in z&&"function"==typeof z.composedPath){var ie=z.composedPath()[0];ie!==z.target&&(Q=ie)}return"INPUT"==Q.tagName||"SELECT"==Q.tagName||"TEXTAREA"==Q.tagName||Q.isContentEditable},K.prototype.handleKey=function(){var z=this;return z._handleKey.apply(z,arguments)},K.addKeycodes=function(z){for(var Q in z)z.hasOwnProperty(Q)&&(w[Q]=z[Q]);N=null},K.init=function(){var z=K(V);for(var Q in z)"_"!==Q.charAt(0)&&(K[Q]=function(ae){return function(){return z[ae].apply(z,arguments)}}(Q))},K.init(),B.Mousetrap=K,le.exports&&(le.exports=K),void 0!==(U=function(){return K}.call(q,f,q,le))&&(le.exports=U)}function O(z,Q,ae){z.addEventListener?z.addEventListener(Q,ae,!1):z.attachEvent("on"+Q,ae)}function P(z){if("keypress"==z.type){var Q=String.fromCharCode(z.which);return z.shiftKey||(Q=Q.toLowerCase()),Q}return w[z.which]?w[z.which]:R[z.which]?R[z.which]:String.fromCharCode(z.which).toLowerCase()}function y(z,Q){return z.sort().join(",")===Q.sort().join(",")}function E(z){return"shift"==z||"ctrl"==z||"alt"==z||"meta"==z}function S(z,Q,ae){return ae||(ae=function(){if(!N)for(var z in N={},w)z>95&&z<112||w.hasOwnProperty(z)&&(N[w[z]]=z);return N}()[z]?"keydown":"keypress"),"keypress"==ae&&Q.length&&(ae="keydown"),ae}function L(z,Q){var ae,ie,se,ue=[];for(ae=function(z){return"+"===z?["+"]:(z=z.replace(/\+{2}/g,"+plus")).split("+")}(z),se=0;se<ae.length;++se)_[ie=ae[se]]&&(ie=_[ie]),Q&&"keypress"!=Q&&C[ie]&&(ie=C[ie],ue.push("shift")),E(ie)&&ue.push(ie);return{key:ie,modifiers:ue,action:Q=S(ie,ue,Q)}}function j(z,Q){return null!==z&&z!==V&&(z===Q||j(z.parentNode,Q))}function K(z){var Q=this;if(z=z||V,!(Q instanceof K))return new K(z);Q.target=z,Q._callbacks={},Q._directMap={};var ie,ae={},se=!1,ue=!1,de=!1;function oe(_t){_t=_t||{};var Se,Rt=!1;for(Se in ae)_t[Se]?Rt=!0:ae[Se]=0;Rt||(de=!1)}function $(_t,Rt,Se,Oe,je,ct){var Xe,Ht,Et=[],vt=Se.type;if(!Q._callbacks[_t])return[];for("keyup"==vt&&E(_t)&&(Rt=[_t]),Xe=0;Xe<Q._callbacks[_t].length;++Xe)Ht=Q._callbacks[_t][Xe],!Oe&&Ht.seq&&ae[Ht.seq]!=Ht.level||vt!=Ht.action||("keypress"!=vt||Se.metaKey||Se.ctrlKey)&&!y(Rt,Ht.modifiers)||((!Oe&&Ht.combo==je||Oe&&Ht.seq==Oe&&Ht.level==ct)&&Q._callbacks[_t].splice(Xe,1),Et.push(Ht));return Et}function ye(_t,Rt,Se,Oe){Q.stopCallback(Rt,Rt.target||Rt.srcElement,Se,Oe)||!1===_t(Rt,Se)&&(function(z){z.preventDefault?z.preventDefault():z.returnValue=!1}(Rt),function(z){z.stopPropagation?z.stopPropagation():z.cancelBubble=!0}(Rt))}function ve(_t){"number"!=typeof _t.which&&(_t.which=_t.keyCode);var Rt=P(_t);if(Rt){if("keyup"==_t.type&&se===Rt)return void(se=!1);Q.handleKey(Rt,function(z){var Q=[];return z.shiftKey&&Q.push("shift"),z.altKey&&Q.push("alt"),z.ctrlKey&&Q.push("ctrl"),z.metaKey&&Q.push("meta"),Q}(_t),_t)}}function gt(_t,Rt,Se,Oe,je){Q._directMap[_t+":"+Se]=Rt;var Xe,ct=(_t=_t.replace(/\s+/g," ")).split(" ");ct.length>1?function(_t,Rt,Se,Oe){function je(vt){return function(){de=vt,++ae[_t],clearTimeout(ie),ie=setTimeout(oe,1e3)}}function ct(vt){ye(Se,vt,_t),"keyup"!==Oe&&(se=P(vt)),setTimeout(oe,10)}ae[_t]=0;for(var Xe=0;Xe<Rt.length;++Xe){var Et=Xe+1===Rt.length?ct:je(Oe||L(Rt[Xe+1]).action);gt(Rt[Xe],Et,Oe,_t,Xe)}}(_t,ct,Rt,Se):(Xe=L(_t,Se),Q._callbacks[Xe.key]=Q._callbacks[Xe.key]||[],$(Xe.key,Xe.modifiers,{type:Xe.action},Oe,_t,je),Q._callbacks[Xe.key][Oe?"unshift":"push"]({callback:Rt,modifiers:Xe.modifiers,action:Xe.action,seq:Oe,level:je,combo:_t}))}Q._handleKey=function(_t,Rt,Se){var je,Oe=$(_t,Rt,Se),ct={},Xe=0,Ht=!1;for(je=0;je<Oe.length;++je)Oe[je].seq&&(Xe=Math.max(Xe,Oe[je].level));for(je=0;je<Oe.length;++je)if(Oe[je].seq){if(Oe[je].level!=Xe)continue;Ht=!0,ct[Oe[je].seq]=1,ye(Oe[je].callback,Se,Oe[je].combo,Oe[je].seq)}else Ht||ye(Oe[je].callback,Se,Oe[je].combo);var Et="keypress"==Se.type&&ue;Se.type==de&&!E(_t)&&!Et&&oe(ct),ue=Ht&&"keydown"==Se.type},Q._bindMultiple=function(_t,Rt,Se){for(var Oe=0;Oe<_t.length;++Oe)gt(_t[Oe],Rt,Se)},O(z,"keypress",ve),O(z,"keydown",ve),O(z,"keyup",ve)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},55590:function(le){var q=function(f){"use strict";var V,U=Object.prototype,B=U.hasOwnProperty,Z="function"==typeof Symbol?Symbol:{},w=Z.iterator||"@@iterator",R=Z.asyncIterator||"@@asyncIterator",C=Z.toStringTag||"@@toStringTag";function _($,ye,ve){return Object.defineProperty($,ye,{value:ve,enumerable:!0,configurable:!0,writable:!0}),$[ye]}try{_({},"")}catch($){_=function(ve,et,Ne){return ve[et]=Ne}}function N($,ye,ve,et){var gt=Object.create((ye&&ye.prototype instanceof M?ye:M).prototype),_t=new ue(et||[]);return gt._invoke=function($,ye,ve){var et=O;return function(gt,_t){if(et===y)throw new Error("Generator is already running");if(et===g){if("throw"===gt)throw _t;return oe()}for(ve.method=gt,ve.arg=_t;;){var Rt=ve.delegate;if(Rt){var Se=ae(Rt,ve);if(Se){if(Se===T)continue;return Se}}if("next"===ve.method)ve.sent=ve._sent=ve.arg;else if("throw"===ve.method){if(et===O)throw et=g,ve.arg;ve.dispatchException(ve.arg)}else"return"===ve.method&&ve.abrupt("return",ve.arg);et=y;var Oe=D($,ye,ve);if("normal"===Oe.type){if(et=ve.done?g:P,Oe.arg===T)continue;return{value:Oe.arg,done:ve.done}}"throw"===Oe.type&&(et=g,ve.method="throw",ve.arg=Oe.arg)}}}($,ve,_t),gt}function D($,ye,ve){try{return{type:"normal",arg:$.call(ye,ve)}}catch(et){return{type:"throw",arg:et}}}f.wrap=N;var O="suspendedStart",P="suspendedYield",y="executing",g="completed",T={};function M(){}function E(){}function x(){}var S={};S[w]=function(){return this};var A=Object.getPrototypeOf,L=A&&A(A(de([])));L&&L!==U&&B.call(L,w)&&(S=L);var j=x.prototype=M.prototype=Object.create(S);function K($){["next","throw","return"].forEach(function(ye){_($,ye,function(ve){return this._invoke(ye,ve)})})}function z($,ye){function ve(gt,_t,Rt,Se){var Oe=D($[gt],$,_t);if("throw"!==Oe.type){var je=Oe.arg,ct=je.value;return ct&&"object"==typeof ct&&B.call(ct,"__await")?ye.resolve(ct.__await).then(function(Xe){ve("next",Xe,Rt,Se)},function(Xe){ve("throw",Xe,Rt,Se)}):ye.resolve(ct).then(function(Xe){je.value=Xe,Rt(je)},function(Xe){return ve("throw",Xe,Rt,Se)})}Se(Oe.arg)}var et;this._invoke=function(gt,_t){function Rt(){return new ye(function(Se,Oe){ve(gt,_t,Se,Oe)})}return et=et?et.then(Rt,Rt):Rt()}}function ae($,ye){var ve=$.iterator[ye.method];if(ve===V){if(ye.delegate=null,"throw"===ye.method){if($.iterator.return&&(ye.method="return",ye.arg=V,ae($,ye),"throw"===ye.method))return T;ye.method="throw",ye.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var et=D(ve,$.iterator,ye.arg);if("throw"===et.type)return ye.method="throw",ye.arg=et.arg,ye.delegate=null,T;var Ne=et.arg;return Ne?Ne.done?(ye[$.resultName]=Ne.value,ye.next=$.nextLoc,"return"!==ye.method&&(ye.method="next",ye.arg=V),ye.delegate=null,T):Ne:(ye.method="throw",ye.arg=new TypeError("iterator result is not an object"),ye.delegate=null,T)}function ie($){var ye={tryLoc:$[0]};1 in $&&(ye.catchLoc=$[1]),2 in $&&(ye.finallyLoc=$[2],ye.afterLoc=$[3]),this.tryEntries.push(ye)}function se($){var ye=$.completion||{};ye.type="normal",delete ye.arg,$.completion=ye}function ue($){this.tryEntries=[{tryLoc:"root"}],$.forEach(ie,this),this.reset(!0)}function de($){if($){var ye=$[w];if(ye)return ye.call($);if("function"==typeof $.next)return $;if(!isNaN($.length)){var ve=-1,et=function Ne(){for(;++ve<$.length;)if(B.call($,ve))return Ne.value=$[ve],Ne.done=!1,Ne;return Ne.value=V,Ne.done=!0,Ne};return et.next=et}}return{next:oe}}function oe(){return{value:V,done:!0}}return E.prototype=j.constructor=x,x.constructor=E,E.displayName=_(x,C,"GeneratorFunction"),f.isGeneratorFunction=function($){var ye="function"==typeof $&&$.constructor;return!!ye&&(ye===E||"GeneratorFunction"===(ye.displayName||ye.name))},f.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,x):($.__proto__=x,_($,C,"GeneratorFunction")),$.prototype=Object.create(j),$},f.awrap=function($){return{__await:$}},K(z.prototype),z.prototype[R]=function(){return this},f.AsyncIterator=z,f.async=function($,ye,ve,et,Ne){void 0===Ne&&(Ne=Promise);var gt=new z(N($,ye,ve,et),Ne);return f.isGeneratorFunction(ye)?gt:gt.next().then(function(_t){return _t.done?_t.value:gt.next()})},K(j),_(j,C,"Generator"),j[w]=function(){return this},j.toString=function(){return"[object Generator]"},f.keys=function($){var ye=[];for(var ve in $)ye.push(ve);return ye.reverse(),function et(){for(;ye.length;){var Ne=ye.pop();if(Ne in $)return et.value=Ne,et.done=!1,et}return et.done=!0,et}},f.values=de,ue.prototype={constructor:ue,reset:function(ye){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(se),!ye)for(var ve in this)"t"===ve.charAt(0)&&B.call(this,ve)&&!isNaN(+ve.slice(1))&&(this[ve]=V)},stop:function(){this.done=!0;var ve=this.tryEntries[0].completion;if("throw"===ve.type)throw ve.arg;return this.rval},dispatchException:function(ye){if(this.done)throw ye;var ve=this;function et(Oe,je){return _t.type="throw",_t.arg=ye,ve.next=Oe,je&&(ve.method="next",ve.arg=V),!!je}for(var Ne=this.tryEntries.length-1;Ne>=0;--Ne){var gt=this.tryEntries[Ne],_t=gt.completion;if("root"===gt.tryLoc)return et("end");if(gt.tryLoc<=this.prev){var Rt=B.call(gt,"catchLoc"),Se=B.call(gt,"finallyLoc");if(Rt&&Se){if(this.prev<gt.catchLoc)return et(gt.catchLoc,!0);if(this.prev<gt.finallyLoc)return et(gt.finallyLoc)}else if(Rt){if(this.prev<gt.catchLoc)return et(gt.catchLoc,!0)}else{if(!Se)throw new Error("try statement without catch or finally");if(this.prev<gt.finallyLoc)return et(gt.finallyLoc)}}}},abrupt:function(ye,ve){for(var et=this.tryEntries.length-1;et>=0;--et){var Ne=this.tryEntries[et];if(Ne.tryLoc<=this.prev&&B.call(Ne,"finallyLoc")&&this.prev<Ne.finallyLoc){var gt=Ne;break}}gt&&("break"===ye||"continue"===ye)&&gt.tryLoc<=ve&&ve<=gt.finallyLoc&&(gt=null);var _t=gt?gt.completion:{};return _t.type=ye,_t.arg=ve,gt?(this.method="next",this.next=gt.finallyLoc,T):this.complete(_t)},complete:function(ye,ve){if("throw"===ye.type)throw ye.arg;return"break"===ye.type||"continue"===ye.type?this.next=ye.arg:"return"===ye.type?(this.rval=this.arg=ye.arg,this.method="return",this.next="end"):"normal"===ye.type&&ve&&(this.next=ve),T},finish:function(ye){for(var ve=this.tryEntries.length-1;ve>=0;--ve){var et=this.tryEntries[ve];if(et.finallyLoc===ye)return this.complete(et.completion,et.afterLoc),se(et),T}},catch:function(ye){for(var ve=this.tryEntries.length-1;ve>=0;--ve){var et=this.tryEntries[ve];if(et.tryLoc===ye){var Ne=et.completion;if("throw"===Ne.type){var gt=Ne.arg;se(et)}return gt}}throw new Error("illegal catch attempt")},delegateYield:function(ye,ve,et){return this.delegate={iterator:de(ye),resultName:ve,nextLoc:et},"next"===this.method&&(this.arg=V),T}},f}(le.exports);try{regeneratorRuntime=q}catch(f){Function("r","regeneratorRuntime = r")(q)}},56938:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);q.Observable=U.Observable,q.Subject=U.Subject;var B=f(37294);q.AnonymousSubject=B.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 R=f(94117);q.Subscriber=R.Subscriber,q.AsyncSubject=R.AsyncSubject,q.ConnectableObservable=R.ConnectableObservable,q.TimeoutError=R.TimeoutError,q.VirtualTimeScheduler=R.VirtualTimeScheduler;var C=f(55905);q.AjaxResponse=C.AjaxResponse,q.AjaxError=C.AjaxError,q.AjaxTimeoutError=C.AjaxTimeoutError;var _=f(94117),N=f(37294),D=f(37294);q.TimeInterval=D.TimeInterval,q.Timestamp=D.Timestamp;var O=f(73033);q.operators=O,q.Scheduler={asap:_.asapScheduler,queue:_.queueScheduler,animationFrame:_.animationFrameScheduler,async:_.asyncScheduler},q.Symbol={rxSubscriber:N.rxSubscriber,observable:N.observable,iterator:N.iterator}},26598:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.bindCallback=U.bindCallback},87663:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.bindNodeCallback=U.bindNodeCallback},95351:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.combineLatest=U.combineLatest},66981:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.concat=U.concat},31881:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.defer=U.defer},12782:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(55905);U.Observable.ajax=B.ajax},94618:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(4194);U.Observable.webSocket=B.webSocket},36800:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.empty=U.empty},52413:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.forkJoin=U.forkJoin},86376:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.from=U.from},41029:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.fromEvent=U.fromEvent},30918:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.fromEventPattern=U.fromEventPattern},79817:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.fromPromise=U.from},29023:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.generate=U.generate},48668:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.if=U.iif},61975:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.interval=U.interval},92442:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.merge=U.merge},63990:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);function B(){return U.NEVER}q.staticNever=B,U.Observable.never=B},86230:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.of=U.of},61201:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.onErrorResumeNext=U.onErrorResumeNext},32171:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.pairs=U.pairs},42697:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.race=U.race},40439:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.range=U.range},9222:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.throw=U.throwError,U.Observable.throwError=U.throwError},52357:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.timer=U.timer},69079:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.using=U.using},36294:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);U.Observable.zip=U.zip},77490:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(20325);U.Observable.prototype.audit=B.audit},4533:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(55702);U.Observable.prototype.auditTime=B.auditTime},93231:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(19931);U.Observable.prototype.buffer=B.buffer},96547:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(38173);U.Observable.prototype.bufferCount=B.bufferCount},62374:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93690);U.Observable.prototype.bufferTime=B.bufferTime},35595:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(79681);U.Observable.prototype.bufferToggle=B.bufferToggle},57540:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(75311);U.Observable.prototype.bufferWhen=B.bufferWhen},97010:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(26306);U.Observable.prototype.catch=B._catch,U.Observable.prototype._catch=B._catch},56518:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(15869);U.Observable.prototype.combineAll=B.combineAll},59982:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(23265);U.Observable.prototype.combineLatest=B.combineLatest},70198:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(31179);U.Observable.prototype.concat=B.concat},3943:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(16148);U.Observable.prototype.concatAll=B.concatAll},95297:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(28552);U.Observable.prototype.concatMap=B.concatMap},53842:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(91798);U.Observable.prototype.concatMapTo=B.concatMapTo},46085:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93653);U.Observable.prototype.count=B.count},12452:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(36477);U.Observable.prototype.debounce=B.debounce},51341:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(61529);U.Observable.prototype.debounceTime=B.debounceTime},41575:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(64502);U.Observable.prototype.defaultIfEmpty=B.defaultIfEmpty},42657:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(33674);U.Observable.prototype.delay=B.delay},17109:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(49477);U.Observable.prototype.delayWhen=B.delayWhen},46753:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(21941);U.Observable.prototype.dematerialize=B.dematerialize},89716:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(18053);U.Observable.prototype.distinct=B.distinct},71255:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(13598);U.Observable.prototype.distinctUntilChanged=B.distinctUntilChanged},75197:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(94936);U.Observable.prototype.distinctUntilKeyChanged=B.distinctUntilKeyChanged},70992:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(21790);U.Observable.prototype.do=B._do,U.Observable.prototype._do=B._do},11405:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(2538);U.Observable.prototype.elementAt=B.elementAt},61431:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58136);U.Observable.prototype.every=B.every},3106:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(26734);U.Observable.prototype.exhaust=B.exhaust},54506:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(2084);U.Observable.prototype.exhaustMap=B.exhaustMap},16161:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(2945);U.Observable.prototype.expand=B.expand},37132:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(3704);U.Observable.prototype.filter=B.filter},45396:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58870);U.Observable.prototype.finally=B._finally,U.Observable.prototype._finally=B._finally},41154:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(16201);U.Observable.prototype.find=B.find},96986:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(95148);U.Observable.prototype.findIndex=B.findIndex},67259:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(96050);U.Observable.prototype.first=B.first},89015:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(16309);U.Observable.prototype.groupBy=B.groupBy},57301:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(3640);U.Observable.prototype.ignoreElements=B.ignoreElements},4993:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(87486);U.Observable.prototype.isEmpty=B.isEmpty},42215:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(30274);U.Observable.prototype.last=B.last},95564:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(11668);U.Observable.prototype.let=B.letProto,U.Observable.prototype.letBind=B.letProto},68663:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(23307);U.Observable.prototype.map=B.map},63566:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(3498);U.Observable.prototype.mapTo=B.mapTo},62729:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(70845);U.Observable.prototype.materialize=B.materialize},48483:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(96415);U.Observable.prototype.max=B.max},32979:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(33836);U.Observable.prototype.merge=B.merge},78104:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58610);U.Observable.prototype.mergeAll=B.mergeAll},64259:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(36098);U.Observable.prototype.mergeMap=B.mergeMap,U.Observable.prototype.flatMap=B.mergeMap},30336:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(53033);U.Observable.prototype.flatMapTo=B.mergeMapTo,U.Observable.prototype.mergeMapTo=B.mergeMapTo},46315:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(11444);U.Observable.prototype.mergeScan=B.mergeScan},60771:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(6626);U.Observable.prototype.min=B.min},92700:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(4291);U.Observable.prototype.multicast=B.multicast},43545:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37675);U.Observable.prototype.observeOn=B.observeOn},89242:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(92878);U.Observable.prototype.onErrorResumeNext=B.onErrorResumeNext},70177:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(94401);U.Observable.prototype.pairwise=B.pairwise},43800:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93110);U.Observable.prototype.partition=B.partition},33434:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(53937);U.Observable.prototype.pluck=B.pluck},37179:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(81e3);U.Observable.prototype.publish=B.publish},97810:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(78665);U.Observable.prototype.publishBehavior=B.publishBehavior},44633:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(34696);U.Observable.prototype.publishLast=B.publishLast},27430:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(35543);U.Observable.prototype.publishReplay=B.publishReplay},37953:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(33963);U.Observable.prototype.race=B.race},58435:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(99216);U.Observable.prototype.reduce=B.reduce},14234:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(19613);U.Observable.prototype.repeat=B.repeat},98741:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(72798);U.Observable.prototype.repeatWhen=B.repeatWhen},43263:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(59813);U.Observable.prototype.retry=B.retry},57180:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(5419);U.Observable.prototype.retryWhen=B.retryWhen},87700:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(58693);U.Observable.prototype.sample=B.sample},34860:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(86803);U.Observable.prototype.sampleTime=B.sampleTime},67751:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(65036);U.Observable.prototype.scan=B.scan},63733:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(12201);U.Observable.prototype.sequenceEqual=B.sequenceEqual},38596:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(86892);U.Observable.prototype.share=B.share},20038:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(9050);U.Observable.prototype.shareReplay=B.shareReplay},58186:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(13533);U.Observable.prototype.single=B.single},77538:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(65846);U.Observable.prototype.skip=B.skip},33866:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(90955);U.Observable.prototype.skipLast=B.skipLast},1676:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(75479);U.Observable.prototype.skipUntil=B.skipUntil},3018:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(76841);U.Observable.prototype.skipWhile=B.skipWhile},58003:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(66560);U.Observable.prototype.startWith=B.startWith},77394:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(92265);U.Observable.prototype.subscribeOn=B.subscribeOn},92947:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41428);U.Observable.prototype.switch=B._switch,U.Observable.prototype._switch=B._switch},27971:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(5193);U.Observable.prototype.switchMap=B.switchMap},33934:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(34022);U.Observable.prototype.switchMapTo=B.switchMapTo},43126:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(204);U.Observable.prototype.take=B.take},6320:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(62299);U.Observable.prototype.takeLast=B.takeLast},96813:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(93542);U.Observable.prototype.takeUntil=B.takeUntil},20425:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(79214);U.Observable.prototype.takeWhile=B.takeWhile},70140:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(35922);U.Observable.prototype.throttle=B.throttle},32035:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41941);U.Observable.prototype.throttleTime=B.throttleTime},49421:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(99194);U.Observable.prototype.timeInterval=B.timeInterval},9693:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(53358);U.Observable.prototype.timeout=B.timeout},87276:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41237);U.Observable.prototype.timeoutWith=B.timeoutWith},63934:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(84485);U.Observable.prototype.timestamp=B.timestamp},17360:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(23552);U.Observable.prototype.toArray=B.toArray},37222:function(){},55214:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(13977);U.Observable.prototype.window=B.window},22854:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(54052);U.Observable.prototype.windowCount=B.windowCount},65259:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(17884);U.Observable.prototype.windowTime=B.windowTime},84715:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(18835);U.Observable.prototype.windowToggle=B.windowToggle},27798:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(84220);U.Observable.prototype.windowWhen=B.windowWhen},98441:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(41603);U.Observable.prototype.withLatestFrom=B.withLatestFrom},56238:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(83313);U.Observable.prototype.zip=B.zipProto},42145:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(80396);U.Observable.prototype.zipAll=B.zipAll},20325:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.audit=function(V){return U.audit(V)(this)}},55702:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.auditTime=function(Z,w){return void 0===w&&(w=U.asyncScheduler),B.auditTime(Z,w)(this)}},19931:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.buffer=function(V){return U.buffer(V)(this)}},38173:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.bufferCount=function(V,Z){return void 0===Z&&(Z=null),U.bufferCount(V,Z)(this)}},93690:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37294),V=f(73033);q.bufferTime=function(w){var R=arguments.length,C=U.asyncScheduler;B.isScheduler(arguments[arguments.length-1])&&(C=arguments[arguments.length-1],R--);var _=null;R>=2&&(_=arguments[1]);var N=Number.POSITIVE_INFINITY;return R>=3&&(N=arguments[2]),V.bufferTime(w,_,N,C)(this)}},79681:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.bufferToggle=function(V,Z){return U.bufferToggle(V,Z)(this)}},75311:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.bufferWhen=function(V){return U.bufferWhen(V)(this)}},26306:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q._catch=function(V){return U.catchError(V)(this)}},15869:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.combineAll=function(V){return U.combineAll(V)(this)}},23265:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37294);q.combineLatest=function(){for(var Z=[],w=0;w<arguments.length;w++)Z[w]=arguments[w];var R=null;return"function"==typeof Z[Z.length-1]&&(R=Z.pop()),1===Z.length&&B.isArray(Z[0])&&(Z=Z[0].slice()),this.lift.call(U.of.apply(void 0,[this].concat(Z)),new B.CombineLatestOperator(R))}},31179:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);q.concat=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return this.lift.call(U.concat.apply(void 0,[this].concat(V)))}},16148:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.concatAll=function(){return U.concatAll()(this)}},28552:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.concatMap=function(V){return U.concatMap(V)(this)}},91798:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.concatMapTo=function(V){return U.concatMapTo(V)(this)}},93653:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.count=function(V){return U.count(V)(this)}},36477:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.debounce=function(V){return U.debounce(V)(this)}},61529:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.debounceTime=function(Z,w){return void 0===w&&(w=U.asyncScheduler),B.debounceTime(Z,w)(this)}},64502:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.defaultIfEmpty=function(V){return void 0===V&&(V=null),U.defaultIfEmpty(V)(this)}},33674:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.delay=function(Z,w){return void 0===w&&(w=U.asyncScheduler),B.delay(Z,w)(this)}},49477:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.delayWhen=function(V,Z){return U.delayWhen(V,Z)(this)}},21941:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.dematerialize=function(){return U.dematerialize()(this)}},18053:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.distinct=function(V,Z){return U.distinct(V,Z)(this)}},13598:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.distinctUntilChanged=function(V,Z){return U.distinctUntilChanged(V,Z)(this)}},94936:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.distinctUntilKeyChanged=function(V,Z){return U.distinctUntilKeyChanged(V,Z)(this)}},21790:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q._do=function(V,Z,w){return U.tap(V,Z,w)(this)}},2538:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.elementAt=function(V,Z){return U.elementAt.apply(void 0,arguments)(this)}},58136:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.every=function(V,Z){return U.every(V,Z)(this)}},26734:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.exhaust=function(){return U.exhaust()(this)}},2084:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.exhaustMap=function(V){return U.exhaustMap(V)(this)}},2945:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.expand=function(V,Z,w){return void 0===Z&&(Z=Number.POSITIVE_INFINITY),void 0===w&&(w=void 0),U.expand(V,Z=(Z||0)<1?Number.POSITIVE_INFINITY:Z,w)(this)}},3704:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.filter=function(V,Z){return U.filter(V,Z)(this)}},58870:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q._finally=function(V){return U.finalize(V)(this)}},16201:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.find=function(V,Z){return U.find(V,Z)(this)}},95148:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.findIndex=function(V,Z){return U.findIndex(V,Z)(this)}},96050:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.first=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return U.first.apply(void 0,V)(this)}},16309:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.groupBy=function(V,Z,w,R){return U.groupBy(V,Z,w,R)(this)}},3640:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.ignoreElements=function(){return U.ignoreElements()(this)}},87486:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.isEmpty=function(){return U.isEmpty()(this)}},30274:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.last=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return U.last.apply(void 0,V)(this)}},11668:function(le,q){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.letProto=function(U){return U(this)}},23307:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.map=function(V,Z){return U.map(V,Z)(this)}},3498:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.mapTo=function(V){return U.mapTo(V)(this)}},70845:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.materialize=function(){return U.materialize()(this)}},96415:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.max=function(V){return U.max(V)(this)}},33836:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);q.merge=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return this.lift.call(U.merge.apply(void 0,[this].concat(V)))}},58610:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.mergeAll=function(V){return void 0===V&&(V=Number.POSITIVE_INFINITY),U.mergeAll(V)(this)}},36098:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.mergeMap=function(V,Z){return void 0===Z&&(Z=Number.POSITIVE_INFINITY),U.mergeMap(V,Z)(this)}},53033:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.mergeMapTo=function(V,Z){return void 0===Z&&(Z=Number.POSITIVE_INFINITY),U.mergeMapTo(V,Z)(this)}},11444:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.mergeScan=function(V,Z,w){return void 0===w&&(w=Number.POSITIVE_INFINITY),U.mergeScan(V,Z,w)(this)}},6626:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.min=function(V){return U.min(V)(this)}},4291:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.multicast=function(V,Z){return U.multicast(V,Z)(this)}},37675:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.observeOn=function(V,Z){return void 0===Z&&(Z=0),U.observeOn(V,Z)(this)}},92878:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.onErrorResumeNext=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return U.onErrorResumeNext.apply(void 0,V)(this)}},94401:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.pairwise=function(){return U.pairwise()(this)}},93110:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.partition=function(V,Z){return U.partition(V,Z)(this)}},53937:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.pluck=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return U.pluck.apply(void 0,V)(this)}},81e3:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.publish=function(V){return U.publish(V)(this)}},78665:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.publishBehavior=function(V){return U.publishBehavior(V)(this)}},34696:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.publishLast=function(){return U.publishLast()(this)}},35543:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.publishReplay=function(V,Z,w,R){return U.publishReplay(V,Z,w,R)(this)}},33963:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.race=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return U.race.apply(void 0,V)(this)}},99216:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.reduce=function(V,Z){return arguments.length>=2?U.reduce(V,Z)(this):U.reduce(V)(this)}},19613:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.repeat=function(V){return void 0===V&&(V=-1),U.repeat(V)(this)}},72798:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.repeatWhen=function(V){return U.repeatWhen(V)(this)}},59813:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.retry=function(V){return void 0===V&&(V=-1),U.retry(V)(this)}},5419:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.retryWhen=function(V){return U.retryWhen(V)(this)}},58693:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.sample=function(V){return U.sample(V)(this)}},86803:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.sampleTime=function(Z,w){return void 0===w&&(w=U.asyncScheduler),B.sampleTime(Z,w)(this)}},65036:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.scan=function(V,Z){return arguments.length>=2?U.scan(V,Z)(this):U.scan(V)(this)}},12201:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.sequenceEqual=function(V,Z){return U.sequenceEqual(V,Z)(this)}},86892:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.share=function(){return U.share()(this)}},9050:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.shareReplay=function(V,Z,w){return V&&"object"==typeof V?U.shareReplay(V)(this):U.shareReplay(V,Z,w)(this)}},13533:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.single=function(V){return U.single(V)(this)}},65846:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skip=function(V){return U.skip(V)(this)}},90955:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skipLast=function(V){return U.skipLast(V)(this)}},75479:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skipUntil=function(V){return U.skipUntil(V)(this)}},76841:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.skipWhile=function(V){return U.skipWhile(V)(this)}},66560:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.startWith=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return U.startWith.apply(void 0,V)(this)}},92265:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.subscribeOn=function(V,Z){return void 0===Z&&(Z=0),U.subscribeOn(V,Z)(this)}},41428:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q._switch=function(){return U.switchAll()(this)}},5193:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.switchMap=function(V){return U.switchMap(V)(this)}},34022:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.switchMapTo=function(V){return U.switchMapTo(V)(this)}},204:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.take=function(V){return U.take(V)(this)}},62299:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.takeLast=function(V){return U.takeLast(V)(this)}},93542:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.takeUntil=function(V){return U.takeUntil(V)(this)}},79214:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.takeWhile=function(V){return U.takeWhile(V)(this)}},35922:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033),B=f(37294);q.throttle=function(Z,w){return void 0===w&&(w=B.defaultThrottleConfig),U.throttle(Z,w)(this)}},41941:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37294),V=f(73033);q.throttleTime=function(w,R,C){return void 0===R&&(R=U.asyncScheduler),void 0===C&&(C=B.defaultThrottleConfig),V.throttleTime(w,R,C)(this)}},99194:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.timeInterval=function(Z){return void 0===Z&&(Z=U.asyncScheduler),B.timeInterval(Z)(this)}},53358:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.timeout=function(Z,w){return void 0===w&&(w=U.asyncScheduler),B.timeout(Z,w)(this)}},41237:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.timeoutWith=function(Z,w,R){return void 0===R&&(R=U.asyncScheduler),B.timeoutWith(Z,w,R)(this)}},84485:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(73033);q.timestamp=function(Z){return void 0===Z&&(Z=U.asyncScheduler),B.timestamp(Z)(this)}},23552:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.toArray=function(){return U.toArray()(this)}},13977:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.window=function(V){return U.window(V)(this)}},54052:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.windowCount=function(V,Z){return void 0===Z&&(Z=0),U.windowCount(V,Z)(this)}},17884:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117),B=f(37294),V=f(73033);q.windowTime=function(w){var R=U.asyncScheduler,C=null,_=Number.POSITIVE_INFINITY;return B.isScheduler(arguments[3])&&(R=arguments[3]),B.isScheduler(arguments[2])?R=arguments[2]:B.isNumeric(arguments[2])&&(_=Number(arguments[2])),B.isScheduler(arguments[1])?R=arguments[1]:B.isNumeric(arguments[1])&&(C=Number(arguments[1])),V.windowTime(w,C,_,R)(this)}},18835:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.windowToggle=function(V,Z){return U.windowToggle(V,Z)(this)}},84220:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.windowWhen=function(V){return U.windowWhen(V)(this)}},41603:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.withLatestFrom=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return U.withLatestFrom.apply(void 0,V)(this)}},83313:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(94117);q.zipProto=function(){for(var V=[],Z=0;Z<arguments.length;Z++)V[Z]=arguments[Z];return this.lift.call(U.zip.apply(void 0,[this].concat(V)))}},80396:function(le,q,f){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var U=f(73033);q.zipAll=function(V){return U.zipAll(V)(this)}},53628:function(le,q,f){},55905:function(le,q,f){"use strict";f.r(q),f.d(q,{ajax:function(){return U.h},AjaxResponse:function(){return B.vD},AjaxError:function(){return B.iM},AjaxTimeoutError:function(){return B.cw}});var U=f(30437),B=f(51361)},94117:function(le,q,f){"use strict";f.r(q),f.d(q,{ArgumentOutOfRangeError:function(){return j.W},AsyncSubject:function(){return _.c},BehaviorSubject:function(){return R.X},ConnectableObservable:function(){return B.c},EMPTY:function(){return ct.E},EmptyError:function(){return K.K},GroupedObservable:function(){return V.T},NEVER:function(){return Ut},Notification:function(){return E.P},NotificationKind:function(){return E.W},ObjectUnsubscribedError:function(){return z.N},Observable:function(){return U.y},ReplaySubject:function(){return C.t},Scheduler:function(){return g.b},Subject:function(){return w.xQ},Subscriber:function(){return M.L},Subscription:function(){return T.w},TimeoutError:function(){return ae.W},UnsubscriptionError:function(){return Q.B},VirtualAction:function(){return y.h},VirtualTimeScheduler:function(){return y.y},animationFrame:function(){return P.r},animationFrameScheduler:function(){return P.Z},asap:function(){return N.e},asapScheduler:function(){return N.E},async:function(){return D.P},asyncScheduler:function(){return D.z},bindCallback:function(){return $},bindNodeCallback:function(){return Ne},combineLatest:function(){return Se.aj},concat:function(){return Oe.z},config:function(){return yt.v},defer:function(){return je.P},empty:function(){return ct.c},forkJoin:function(){return Xe.D},from:function(){return Ht.D},fromEvent:function(){return Et.R},fromEventPattern:function(){return Xt},generate:function(){return qt},identity:function(){return A.y},iif:function(){return jt},interval:function(){return bt.F},isObservable:function(){return L.b},merge:function(){return nn.T},never:function(){return an},noop:function(){return S.Z},observable:function(){return Z.L},of:function(){return An.of},onErrorResumeNext:function(){return Hn},pairs:function(){return Zn},partition:function(){return Kt},pipe:function(){return x.z},queue:function(){return O.c},queueScheduler:function(){return O.N},race:function(){return wt.S3},range:function(){return ot.w},scheduled:function(){return Ye.x},throwError:function(){return _e._},timer:function(){return re.H},using:function(){return he},zip:function(){return Ge.$R}});var U=f(89797),B=f(39887),V=f(86072),Z=f(57694),w=f(68707),R=f(90838),C=f(82667),_=f(3435),N=f(8285),D=f(46813),O=f(60641),P=f(58172),y=f(2296),g=f(67801),T=f(5051),M=f(39874),E=f(80286),x=f(96194),S=f(66029),A=f(57070),L=f(17504),j=f(9855),K=f(64646),z=f(1696),Q=f(66351),ae=f(98691),ie=f(10629),se=f(85639),ue=f(20006),de=f(78985),oe=f(91299);function $(Lt,Yt,rn){if(Yt){if(!(0,oe.K)(Yt))return function(){return $(Lt,rn).apply(void 0,arguments).pipe((0,se.U)(function(cn){return(0,de.k)(cn)?Yt.apply(void 0,(0,ie.Z)(cn)):Yt(cn)}))};rn=Yt}return function(){for(var cn=arguments.length,_n=new Array(cn),xn=0;xn<cn;xn++)_n[xn]=arguments[xn];var er,Nn=this,wn={context:Nn,subject:er,callbackFunc:Lt,scheduler:rn};return new U.y(function(Sn){if(rn)return rn.schedule(ye,0,{args:_n,subscriber:Sn,params:wn});if(!er){er=new _.c;try{Lt.apply(Nn,[].concat(_n,[function(){for(var pt=arguments.length,dt=new Array(pt),Ue=0;Ue<pt;Ue++)dt[Ue]=arguments[Ue];er.next(dt.length<=1?dt[0]:dt),er.complete()}]))}catch(sn){(0,ue._)(er)?er.error(sn):console.warn(sn)}}return er.subscribe(Sn)})}}function ye(Lt){var Yt=this,cn=Lt.args,_n=Lt.subscriber,xn=Lt.params,Nn=xn.callbackFunc,er=xn.context,wn=xn.scheduler,Sn=xn.subject;if(!Sn){Sn=xn.subject=new _.c;try{Nn.apply(er,[].concat((0,ie.Z)(cn),[function(){for(var sn=arguments.length,pt=new Array(sn),dt=0;dt<sn;dt++)pt[dt]=arguments[dt];Yt.add(wn.schedule(ve,0,{value:pt.length<=1?pt[0]:pt,subject:Sn}))}]))}catch(Vt){Sn.error(Vt)}}this.add(Sn.subscribe(_n))}function ve(Lt){var rn=Lt.subject;rn.next(Lt.value),rn.complete()}function Ne(Lt,Yt,rn){if(Yt){if(!(0,oe.K)(Yt))return function(){return Ne(Lt,rn).apply(void 0,arguments).pipe((0,se.U)(function(cn){return(0,de.k)(cn)?Yt.apply(void 0,(0,ie.Z)(cn)):Yt(cn)}))};rn=Yt}return function(){for(var cn=arguments.length,_n=new Array(cn),xn=0;xn<cn;xn++)_n[xn]=arguments[xn];var Nn={subject:void 0,args:_n,callbackFunc:Lt,scheduler:rn,context:this};return new U.y(function(er){var wn=Nn.context,Sn=Nn.subject;if(rn)return rn.schedule(gt,0,{params:Nn,subscriber:er,context:wn});if(!Sn){Sn=Nn.subject=new _.c;try{Lt.apply(wn,[].concat(_n,[function(){for(var sn=arguments.length,pt=new Array(sn),dt=0;dt<sn;dt++)pt[dt]=arguments[dt];var Ue=pt.shift();Ue?Sn.error(Ue):(Sn.next(pt.length<=1?pt[0]:pt),Sn.complete())}]))}catch(Vt){(0,ue._)(Sn)?Sn.error(Vt):console.warn(Vt)}}return Sn.subscribe(er)})}}function gt(Lt){var Yt=this,rn=Lt.params,cn=Lt.subscriber,_n=Lt.context,xn=rn.callbackFunc,Nn=rn.args,er=rn.scheduler,wn=rn.subject;if(!wn){wn=rn.subject=new _.c;try{xn.apply(_n,[].concat((0,ie.Z)(Nn),[function(){for(var Vt=arguments.length,sn=new Array(Vt),pt=0;pt<Vt;pt++)sn[pt]=arguments[pt];var dt=sn.shift();Yt.add(dt?er.schedule(Rt,0,{err:dt,subject:wn}):er.schedule(_t,0,{value:sn.length<=1?sn[0]:sn,subject:wn}))}]))}catch(ir){this.add(er.schedule(Rt,0,{err:ir,subject:wn}))}}this.add(wn.subscribe(cn))}function _t(Lt){var rn=Lt.subject;rn.next(Lt.value),rn.complete()}function Rt(Lt){Lt.subject.error(Lt.err)}var Se=f(81370),Oe=f(60131),je=f(4499),ct=f(93487),Xe=f(91925),Ht=f(61493),Et=f(33090),vt=f(20684);function Xt(Lt,Yt,rn){return rn?Xt(Lt,Yt).pipe((0,se.U)(function(cn){return(0,de.k)(cn)?rn.apply(void 0,(0,ie.Z)(cn)):rn(cn)})):new U.y(function(cn){var xn,_n=function(){for(var er=arguments.length,wn=new Array(er),Sn=0;Sn<er;Sn++)wn[Sn]=arguments[Sn];return cn.next(1===wn.length?wn[0]:wn)};try{xn=Lt(_n)}catch(Nn){return void cn.error(Nn)}if((0,vt.m)(Yt))return function(){return Yt(_n,xn)}})}function qt(Lt,Yt,rn,cn,_n){var xn,Nn;return 1==arguments.length?(Nn=Lt.initialState,Yt=Lt.condition,rn=Lt.iterate,xn=Lt.resultSelector||A.y,_n=Lt.scheduler):void 0===cn||(0,oe.K)(cn)?(Nn=Lt,xn=A.y,_n=cn):(Nn=Lt,xn=cn),new U.y(function(wn){var Sn=Nn;if(_n)return _n.schedule(Ct,0,{subscriber:wn,iterate:rn,condition:Yt,resultSelector:xn,state:Sn});for(;;){if(Yt){var ir=void 0;try{ir=Yt(Sn)}catch(sn){return void wn.error(sn)}if(!ir){wn.complete();break}}var Vt=void 0;try{Vt=xn(Sn)}catch(sn){return void wn.error(sn)}if(wn.next(Vt),wn.closed)break;try{Sn=rn(Sn)}catch(sn){return void wn.error(sn)}}})}function Ct(Lt){var Yt=Lt.subscriber,rn=Lt.condition;if(!Yt.closed){if(Lt.needIterate)try{Lt.state=Lt.iterate(Lt.state)}catch(xn){return void Yt.error(xn)}else Lt.needIterate=!0;if(rn){var cn;try{cn=rn(Lt.state)}catch(xn){return void Yt.error(xn)}if(!cn)return void Yt.complete();if(Yt.closed)return}var _n;try{_n=Lt.resultSelector(Lt.state)}catch(xn){return void Yt.error(xn)}if(!Yt.closed&&(Yt.next(_n),!Yt.closed))return this.schedule(Lt)}}function jt(Lt){var Yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ct.E,rn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ct.E;return(0,je.P)(function(){return Lt()?Yt:rn})}var bt=f(57434),nn=f(55371),Ut=new U.y(S.Z);function an(){return Ut}var An=f(43161);function Hn(){for(var Lt=arguments.length,Yt=new Array(Lt),rn=0;rn<Lt;rn++)Yt[rn]=arguments[rn];if(0===Yt.length)return ct.E;var cn=Yt[0],_n=Yt.slice(1);return 1===Yt.length&&(0,de.k)(cn)?Hn.apply(void 0,(0,ie.Z)(cn)):new U.y(function(xn){var Nn=function(){return xn.add(Hn.apply(void 0,(0,ie.Z)(_n)).subscribe(xn))};return(0,Ht.D)(cn).subscribe({next:function(wn){xn.next(wn)},error:Nn,complete:Nn})})}function Zn(Lt,Yt){return new U.y(Yt?function(rn){var cn=Object.keys(Lt),_n=new T.w;return _n.add(Yt.schedule(lr,0,{keys:cn,index:0,subscriber:rn,subscription:_n,obj:Lt})),_n}:function(rn){for(var cn=Object.keys(Lt),_n=0;_n<cn.length&&!rn.closed;_n++){var xn=cn[_n];Lt.hasOwnProperty(xn)&&rn.next([xn,Lt[xn]])}rn.complete()})}function lr(Lt){var Yt=Lt.keys,rn=Lt.index,cn=Lt.subscriber,_n=Lt.subscription,xn=Lt.obj;if(!cn.closed)if(rn<Yt.length){var Nn=Yt[rn];cn.next([Nn,xn[Nn]]),_n.add(this.schedule({keys:Yt,index:rn+1,subscriber:cn,subscription:_n,obj:xn}))}else cn.complete()}var Bn=f(59849),En=f(20735),mr=f(58780);function Kt(Lt,Yt,rn){return[(0,mr.h)(Yt,rn)(new U.y((0,En.s)(Lt))),(0,mr.h)((0,Bn.f)(Yt,rn))(new U.y((0,En.s)(Lt)))]}var wt=f(31695),ot=f(10961),_e=f(11363),re=f(5041);function he(Lt,Yt){return new U.y(function(rn){var cn,_n;try{cn=Lt()}catch(er){return void rn.error(er)}try{_n=Yt(cn)}catch(er){return void rn.error(er)}var Nn=(_n?(0,Ht.D)(_n):ct.E).subscribe(rn);return function(){Nn.unsubscribe(),cn&&cn.unsubscribe()}})}var Ge=f(43008),Ye=f(77493),yt=f(10817)},37294:function(le,q,f){"use strict";f.r(q),f.d(q,{AjaxError:function(){return E.iM},AjaxObservable:function(){return E.i6},AjaxResponse:function(){return E.vD},AjaxSubscriber:function(){return E.de},AjaxTimeoutError:function(){return E.cw},AnonymousSubject:function(){return w.ug},ArgumentOutOfRangeError:function(){return ue.W},CombineLatestOperator:function(){return S.Ms},EmptyError:function(){return de.K},GroupedObservable:function(){return z.T},Immediate:function(){return oe.H},InnerSubscriber:function(){return B.d},ObjectUnsubscribedError:function(){return $.N},OuterSubscriber:function(){return V.L},Scheduler:function(){return Z.b},SubjectSubscription:function(){return R.W},SubscribeOnObservable:function(){return L.e},Subscriber:function(){return C.L},TimeInterval:function(){return K.R},TimeoutError:function(){return ye.W},Timestamp:function(){return j.E},UnsubscriptionError:function(){return ve.B},WebSocketSubject:function(){return x.p},ajax:function(){return T.h},ajaxDelete:function(){return E._c},ajaxGet:function(){return E.Ck},ajaxGetJSON:function(){return E.uX},ajaxPatch:function(){return E.YB},ajaxPost:function(){return E.tB},ajaxPut:function(){return E.Vk},applyMixins:function(){return et.e},config:function(){return U.v},defaultThrottleConfig:function(){return Q.d},dispatch:function(){return A.W},errorObject:function(){return Ne},fromIterable:function(){return g},fromPromise:function(){return O},hostReportError:function(){return gt.z},identity:function(){return _t.y},isArray:function(){return Rt.k},isArrayLike:function(){return Se.z},isDate:function(){return Oe.J},isFunction:function(){return je.m},isIterable:function(){return ct.T},isNumeric:function(){return Xe.k},isObject:function(){return Ht.K},isObservable:function(){return Et.c},isPromise:function(){return vt.t},isScheduler:function(){return Xt.K},iterator:function(){return ie.hZ},noop:function(){return qt.Z},not:function(){return Ct.f},observable:function(){return se.L},pipe:function(){return jt.z},root:function(){return bt.J},rxSubscriber:function(){return ae.b},subscribeTo:function(){return nn.s},subscribeToArray:function(){return Ut.V},subscribeToIterable:function(){return P.u},subscribeToObservable:function(){return an.h},subscribeToPromise:function(){return N.A},subscribeToResult:function(){return An.D},toSubscriber:function(){return Hn.Y},tryCatch:function(){return Bn},webSocket:function(){return M.j}});var U=f(10817),B=f(22320),V=f(7283),Z=f(67801),w=f(68707),R=f(18480),C=f(39874),_=f(89797),N=f(56112),D=f(10498);function O(En,mr){return mr?(0,D.c)(En,mr):new _.y((0,N.A)(En))}var P=f(49089),y=f(60612);function g(En,mr){if(!En)throw new Error("Iterable cannot be null");return mr?(0,y.Q)(En,mr):new _.y((0,P.u)(En))}var Zn,T=f(30437),M=f(99298),E=f(51361),x=f(46095),S=f(81370),A=f(10961),L=f(18613),j=f(63706),K=f(73445),z=f(86072),Q=f(243),ae=f(79542),ie=f(81695),se=f(57694),ue=f(9855),de=f(64646),oe=f(96421),$=f(1696),ye=f(98691),ve=f(66351),et=f(2808),Ne={e:{}},gt=f(82009),_t=f(57070),Rt=f(78985),Se=f(30621),Oe=f(88972),je=f(20684),ct=f(2762),Xe=f(11705),Ht=f(64902),Et=f(19104),vt=f(36514),Xt=f(91299),qt=f(66029),Ct=f(59849),jt=f(96194),bt=f(44962),nn=f(20735),Ut=f(22312),an=f(71414),An=f(61454),Hn=f(3410);function lr(){Ne.e=void 0;try{return Zn.apply(this,arguments)}catch(En){return Ne.e=En,Ne}finally{Zn=void 0}}function Bn(En){return Zn=En,lr}},3435:function(le,q,f){"use strict";f.d(q,{c:function(){return N}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),w=f(10509),R=f(97154),C=f(68707),_=f(5051),N=function(D){(0,w.Z)(P,D);var O=(0,R.Z)(P);function P(){var y;return(0,U.Z)(this,P),(y=O.apply(this,arguments)).value=null,y.hasNext=!1,y.hasCompleted=!1,y}return(0,B.Z)(P,[{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)(P.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)(P.prototype),"error",this).call(this,g)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&(0,V.Z)((0,Z.Z)(P.prototype),"next",this).call(this,this.value),(0,V.Z)((0,Z.Z)(P.prototype),"complete",this).call(this)}}]),P}(C.xQ)},90838:function(le,q,f){"use strict";f.d(q,{X:function(){return N}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),w=f(10509),R=f(97154),C=f(68707),_=f(1696),N=function(D){(0,w.Z)(P,D);var O=(0,R.Z)(P);function P(y){var g;return(0,U.Z)(this,P),(g=O.call(this))._value=y,g}return(0,B.Z)(P,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(g){var T=(0,V.Z)((0,Z.Z)(P.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)(P.prototype),"next",this).call(this,this._value=g)}}]),P}(C.xQ)},22320:function(le,q,f){"use strict";f.d(q,{d:function(){return R}});var U=f(18967),B=f(14105),V=f(10509),Z=f(97154),R=function(C){(0,V.Z)(N,C);var _=(0,Z.Z)(N);function N(D,O,P){var y;return(0,U.Z)(this,N),(y=_.call(this)).parent=D,y.outerValue=O,y.outerIndex=P,y.index=0,y}return(0,B.Z)(N,[{key:"_next",value:function(O){this.parent.notifyNext(this.outerValue,O,this.outerIndex,this.index++,this)}},{key:"_error",value:function(O){this.parent.notifyError(O,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),N}(f(39874).L)},80286:function(le,q,f){"use strict";f.d(q,{W:function(){return R},P:function(){return C}});var U=f(18967),B=f(14105),V=f(93487),Z=f(43161),w=f(11363),R=function(_){return _.NEXT="N",_.ERROR="E",_.COMPLETE="C",_}({}),C=function(){var _=function(){function N(D,O,P){(0,U.Z)(this,N),this.kind=D,this.value=O,this.error=P,this.hasValue="N"===D}return(0,B.Z)(N,[{key:"observe",value:function(O){switch(this.kind){case"N":return O.next&&O.next(this.value);case"E":return O.error&&O.error(this.error);case"C":return O.complete&&O.complete()}}},{key:"do",value:function(O,P,y){switch(this.kind){case"N":return O&&O(this.value);case"E":return P&&P(this.error);case"C":return y&&y()}}},{key:"accept",value:function(O,P,y){return O&&"function"==typeof O.next?this.observe(O):this.do(O,P,y)}},{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(O){return void 0!==O?new N("N",O):N.undefinedValueNotification}},{key:"createError",value:function(O){return new N("E",void 0,O)}},{key:"createComplete",value:function(){return N.completeNotification}}]),N}();return _.completeNotification=new _("C"),_.undefinedValueNotification=new _("N",void 0),_}()},89797:function(le,q,f){"use strict";f.d(q,{y:function(){return _}});var U=f(18967),B=f(14105),V=f(20006),Z=f(3410),w=f(57694),R=f(96194),C=f(10817),_=function(){var D=function(){function O(P){(0,U.Z)(this,O),this._isScalar=!1,P&&(this._subscribe=P)}return(0,B.Z)(O,[{key:"lift",value:function(y){var g=new O;return g.source=this,g.operator=y,g}},{key:"subscribe",value:function(y,g,T){var M=this.operator,E=(0,Z.Y)(y,g,T);if(E.add(M?M.call(E,this.source):this.source||C.v.useDeprecatedSynchronousErrorHandling&&!E.syncErrorThrowable?this._subscribe(E):this._trySubscribe(E)),C.v.useDeprecatedSynchronousErrorHandling&&E.syncErrorThrowable&&(E.syncErrorThrowable=!1,E.syncErrorThrown))throw E.syncErrorValue;return E}},{key:"_trySubscribe",value:function(y){try{return this._subscribe(y)}catch(g){C.v.useDeprecatedSynchronousErrorHandling&&(y.syncErrorThrown=!0,y.syncErrorValue=g),(0,V._)(y)?y.error(g):console.warn(g)}}},{key:"forEach",value:function(y,g){var T=this;return new(g=N(g))(function(M,E){var x;x=T.subscribe(function(S){try{y(S)}catch(A){E(A),x&&x.unsubscribe()}},E,M)})}},{key:"_subscribe",value:function(y){var g=this.source;return g&&g.subscribe(y)}},{key:w.L,value:function(){return this}},{key:"pipe",value:function(){for(var y=arguments.length,g=new Array(y),T=0;T<y;T++)g[T]=arguments[T];return 0===g.length?this:(0,R.U)(g)(this)}},{key:"toPromise",value:function(y){var g=this;return new(y=N(y))(function(T,M){var E;g.subscribe(function(x){return E=x},function(x){return M(x)},function(){return T(E)})})}}]),O}();return D.create=function(O){return new D(O)},D}();function N(D){if(D||(D=C.v.Promise||Promise),!D)throw new Error("no Promise impl found");return D}},88944:function(le,q,f){"use strict";f.d(q,{c:function(){return V}});var U=f(10817),B=f(82009),V={closed:!0,next:function(w){},error:function(w){if(U.v.useDeprecatedSynchronousErrorHandling)throw w;(0,B.z)(w)},complete:function(){}}},7283:function(le,q,f){"use strict";f.d(q,{L:function(){return R}});var U=f(18967),B=f(14105),V=f(10509),Z=f(97154),R=function(C){(0,V.Z)(N,C);var _=(0,Z.Z)(N);function N(){return(0,U.Z)(this,N),_.apply(this,arguments)}return(0,B.Z)(N,[{key:"notifyNext",value:function(O,P,y,g,T){this.destination.next(P)}},{key:"notifyError",value:function(O,P){this.destination.error(O)}},{key:"notifyComplete",value:function(O){this.destination.complete()}}]),N}(f(39874).L)},82667:function(le,q,f){"use strict";f.d(q,{t:function(){return y}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),w=f(10509),R=f(97154),C=f(68707),_=f(60641),N=f(5051),D=f(25110),O=f(1696),P=f(18480),y=function(T){(0,w.Z)(E,T);var M=(0,R.Z)(E);function E(){var x,S=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,L=arguments.length>2?arguments[2]:void 0;return(0,U.Z)(this,E),(x=M.call(this)).scheduler=L,x._events=[],x._infiniteTimeWindow=!1,x._bufferSize=S<1?1:S,x._windowTime=A<1?1:A,A===Number.POSITIVE_INFINITY?(x._infiniteTimeWindow=!0,x.next=x.nextInfiniteTimeWindow):x.next=x.nextTimeWindow,x}return(0,B.Z)(E,[{key:"nextInfiniteTimeWindow",value:function(S){if(!this.isStopped){var A=this._events;A.push(S),A.length>this._bufferSize&&A.shift()}(0,V.Z)((0,Z.Z)(E.prototype),"next",this).call(this,S)}},{key:"nextTimeWindow",value:function(S){this.isStopped||(this._events.push(new g(this._getNow(),S)),this._trimBufferThenGetEvents()),(0,V.Z)((0,Z.Z)(E.prototype),"next",this).call(this,S)}},{key:"_subscribe",value:function(S){var z,A=this._infiniteTimeWindow,L=A?this._events:this._trimBufferThenGetEvents(),j=this.scheduler,K=L.length;if(this.closed)throw new O.N;if(this.isStopped||this.hasError?z=N.w.EMPTY:(this.observers.push(S),z=new P.W(this,S)),j&&S.add(S=new D.ht(S,j)),A)for(var Q=0;Q<K&&!S.closed;Q++)S.next(L[Q]);else for(var ae=0;ae<K&&!S.closed;ae++)S.next(L[ae].value);return this.hasError?S.error(this.thrownError):this.isStopped&&S.complete(),z}},{key:"_getNow",value:function(){return(this.scheduler||_.c).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var S=this._getNow(),A=this._bufferSize,L=this._windowTime,j=this._events,K=j.length,z=0;z<K&&!(S-j[z].time<L);)z++;return K>A&&(z=Math.max(z,K-A)),z>0&&j.splice(0,z),j}}]),E}(C.xQ),g=function T(M,E){(0,U.Z)(this,T),this.time=M,this.value=E}},67801:function(le,q,f){"use strict";f.d(q,{b:function(){return V}});var U=f(18967),B=f(14105),V=function(){var Z=function(){function w(R){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.now;(0,U.Z)(this,w),this.SchedulerAction=R,this.now=C}return(0,B.Z)(w,[{key:"schedule",value:function(C){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,N=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,C).schedule(N,_)}}]),w}();return Z.now=function(){return Date.now()},Z}()},68707:function(le,q,f){"use strict";f.d(q,{Yc:function(){return y},xQ:function(){return g},ug:function(){return T}});var U=f(14105),B=f(20901),V=f(89200),Z=f(18967),w=f(10509),R=f(97154),C=f(89797),_=f(39874),N=f(5051),D=f(1696),O=f(18480),P=f(79542),y=function(M){(0,w.Z)(x,M);var E=(0,R.Z)(x);function x(S){var A;return(0,Z.Z)(this,x),(A=E.call(this,S)).destination=S,A}return x}(_.L),g=function(){var M=function(E){(0,w.Z)(S,E);var x=(0,R.Z)(S);function S(){var A;return(0,Z.Z)(this,S),(A=x.call(this)).observers=[],A.closed=!1,A.isStopped=!1,A.hasError=!1,A.thrownError=null,A}return(0,U.Z)(S,[{key:P.b,value:function(){return new y(this)}},{key:"lift",value:function(L){var j=new T(this,this);return j.operator=L,j}},{key:"next",value:function(L){if(this.closed)throw new D.N;if(!this.isStopped)for(var j=this.observers,K=j.length,z=j.slice(),Q=0;Q<K;Q++)z[Q].next(L)}},{key:"error",value:function(L){if(this.closed)throw new D.N;this.hasError=!0,this.thrownError=L,this.isStopped=!0;for(var j=this.observers,K=j.length,z=j.slice(),Q=0;Q<K;Q++)z[Q].error(L);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new D.N;this.isStopped=!0;for(var L=this.observers,j=L.length,K=L.slice(),z=0;z<j;z++)K[z].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(L){if(this.closed)throw new D.N;return(0,B.Z)((0,V.Z)(S.prototype),"_trySubscribe",this).call(this,L)}},{key:"_subscribe",value:function(L){if(this.closed)throw new D.N;return this.hasError?(L.error(this.thrownError),N.w.EMPTY):this.isStopped?(L.complete(),N.w.EMPTY):(this.observers.push(L),new O.W(this,L))}},{key:"asObservable",value:function(){var L=new C.y;return L.source=this,L}}]),S}(C.y);return M.create=function(E,x){return new T(E,x)},M}(),T=function(M){(0,w.Z)(x,M);var E=(0,R.Z)(x);function x(S,A){var L;return(0,Z.Z)(this,x),(L=E.call(this)).destination=S,L.source=A,L}return(0,U.Z)(x,[{key:"next",value:function(A){var L=this.destination;L&&L.next&&L.next(A)}},{key:"error",value:function(A){var L=this.destination;L&&L.error&&this.destination.error(A)}},{key:"complete",value:function(){var A=this.destination;A&&A.complete&&this.destination.complete()}},{key:"_subscribe",value:function(A){return this.source?this.source.subscribe(A):N.w.EMPTY}}]),x}(g)},18480:function(le,q,f){"use strict";f.d(q,{W:function(){return R}});var U=f(18967),B=f(14105),V=f(10509),Z=f(97154),R=function(C){(0,V.Z)(N,C);var _=(0,Z.Z)(N);function N(D,O){var P;return(0,U.Z)(this,N),(P=_.call(this)).subject=D,P.subscriber=O,P.closed=!1,P}return(0,B.Z)(N,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var O=this.subject,P=O.observers;if(this.subject=null,P&&0!==P.length&&!O.isStopped&&!O.closed){var y=P.indexOf(this.subscriber);-1!==y&&P.splice(y,1)}}}}]),N}(f(5051).w)},39874:function(le,q,f){"use strict";f.d(q,{L:function(){return g}});var U=f(18967),B=f(14105),V=f(88009),Z=f(20901),w=f(89200),R=f(10509),C=f(97154),_=f(20684),N=f(88944),D=f(5051),O=f(79542),P=f(10817),y=f(82009),g=function(M){(0,R.Z)(x,M);var E=(0,C.Z)(x);function x(S,A,L){var j;switch((0,U.Z)(this,x),(j=E.call(this)).syncErrorValue=null,j.syncErrorThrown=!1,j.syncErrorThrowable=!1,j.isStopped=!1,arguments.length){case 0:j.destination=N.c;break;case 1:if(!S){j.destination=N.c;break}if("object"==typeof S){S instanceof x?(j.syncErrorThrowable=S.syncErrorThrowable,j.destination=S,S.add((0,V.Z)(j))):(j.syncErrorThrowable=!0,j.destination=new T((0,V.Z)(j),S));break}default:j.syncErrorThrowable=!0,j.destination=new T((0,V.Z)(j),S,A,L)}return j}return(0,B.Z)(x,[{key:O.b,value:function(){return this}},{key:"next",value:function(A){this.isStopped||this._next(A)}},{key:"error",value:function(A){this.isStopped||(this.isStopped=!0,this._error(A))}},{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)(x.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(A){this.destination.next(A)}},{key:"_error",value:function(A){this.destination.error(A),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var A=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=A,this}}],[{key:"create",value:function(A,L,j){var K=new x(A,L,j);return K.syncErrorThrowable=!1,K}}]),x}(D.w),T=function(M){(0,R.Z)(x,M);var E=(0,C.Z)(x);function x(S,A,L,j){var K;(0,U.Z)(this,x),(K=E.call(this))._parentSubscriber=S;var z,Q=(0,V.Z)(K);return(0,_.m)(A)?z=A:A&&(z=A.next,L=A.error,j=A.complete,A!==N.c&&(Q=Object.create(A),(0,_.m)(Q.unsubscribe)&&K.add(Q.unsubscribe.bind(Q)),Q.unsubscribe=K.unsubscribe.bind((0,V.Z)(K)))),K._context=Q,K._next=z,K._error=L,K._complete=j,K}return(0,B.Z)(x,[{key:"next",value:function(A){if(!this.isStopped&&this._next){var L=this._parentSubscriber;P.v.useDeprecatedSynchronousErrorHandling&&L.syncErrorThrowable?this.__tryOrSetError(L,this._next,A)&&this.unsubscribe():this.__tryOrUnsub(this._next,A)}}},{key:"error",value:function(A){if(!this.isStopped){var L=this._parentSubscriber,j=P.v.useDeprecatedSynchronousErrorHandling;if(this._error)j&&L.syncErrorThrowable?(this.__tryOrSetError(L,this._error,A),this.unsubscribe()):(this.__tryOrUnsub(this._error,A),this.unsubscribe());else if(L.syncErrorThrowable)j?(L.syncErrorValue=A,L.syncErrorThrown=!0):(0,y.z)(A),this.unsubscribe();else{if(this.unsubscribe(),j)throw A;(0,y.z)(A)}}}},{key:"complete",value:function(){var A=this;if(!this.isStopped){var L=this._parentSubscriber;if(this._complete){var j=function(){return A._complete.call(A._context)};P.v.useDeprecatedSynchronousErrorHandling&&L.syncErrorThrowable?(this.__tryOrSetError(L,j),this.unsubscribe()):(this.__tryOrUnsub(j),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(A,L){try{A.call(this._context,L)}catch(j){if(this.unsubscribe(),P.v.useDeprecatedSynchronousErrorHandling)throw j;(0,y.z)(j)}}},{key:"__tryOrSetError",value:function(A,L,j){if(!P.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{L.call(this._context,j)}catch(K){return P.v.useDeprecatedSynchronousErrorHandling?(A.syncErrorValue=K,A.syncErrorThrown=!0,!0):((0,y.z)(K),!0)}return!1}},{key:"_unsubscribe",value:function(){var A=this._parentSubscriber;this._context=null,this._parentSubscriber=null,A.unsubscribe()}}]),x}(g)},5051:function(le,q,f){"use strict";f.d(q,{w:function(){return C}});var U=f(18967),B=f(14105),V=f(78985),Z=f(64902),w=f(20684),R=f(66351),C=function(){var D,N=function(){function D(O){(0,U.Z)(this,D),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,O&&(this._ctorUnsubscribe=!0,this._unsubscribe=O)}return(0,B.Z)(D,[{key:"unsubscribe",value:function(){var P;if(!this.closed){var y=this._parentOrParents,g=this._ctorUnsubscribe,T=this._unsubscribe,M=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,y instanceof D)y.remove(this);else if(null!==y)for(var E=0;E<y.length;++E)y[E].remove(this);if((0,w.m)(T)){g&&(this._unsubscribe=void 0);try{T.call(this)}catch(j){P=j instanceof R.B?_(j.errors):[j]}}if((0,V.k)(M))for(var S=-1,A=M.length;++S<A;){var L=M[S];if((0,Z.K)(L))try{L.unsubscribe()}catch(j){P=P||[],j instanceof R.B?P=P.concat(_(j.errors)):P.push(j)}}if(P)throw new R.B(P)}}},{key:"add",value:function(P){var y=P;if(!P)return D.EMPTY;switch(typeof P){case"function":y=new D(P);case"object":if(y===this||y.closed||"function"!=typeof y.unsubscribe)return y;if(this.closed)return y.unsubscribe(),y;if(!(y instanceof D)){var g=y;(y=new D)._subscriptions=[g]}break;default:throw new Error("unrecognized teardown "+P+" added to Subscription.")}var M=y._parentOrParents;if(null===M)y._parentOrParents=this;else if(M instanceof D){if(M===this)return y;y._parentOrParents=[M,this]}else{if(-1!==M.indexOf(this))return y;M.push(this)}var E=this._subscriptions;return null===E?this._subscriptions=[y]:E.push(y),y}},{key:"remove",value:function(P){var y=this._subscriptions;if(y){var g=y.indexOf(P);-1!==g&&y.splice(g,1)}}}]),D}();return N.EMPTY=((D=new N).closed=!0,D),N}();function _(N){return N.reduce(function(D,O){return D.concat(O instanceof R.B?O.errors:O)},[])}},10817:function(le,q,f){"use strict";f.d(q,{v:function(){return B}});var U=!1,B={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 U&&console.log("RxJS: Back to a better error behavior. Thank you. <3");U=V},get useDeprecatedSynchronousErrorHandling(){return U}}},32124:function(le,q,f){"use strict";f.d(q,{IY:function(){return _},Ds:function(){return D},ft:function(){return P}});var U=f(18967),B=f(14105),V=f(10509),Z=f(97154),w=f(39874),R=f(89797),C=f(20735),_=function(y){(0,V.Z)(T,y);var g=(0,Z.Z)(T);function T(M){var E;return(0,U.Z)(this,T),(E=g.call(this)).parent=M,E}return(0,B.Z)(T,[{key:"_next",value:function(E){this.parent.notifyNext(E)}},{key:"_error",value:function(E){this.parent.notifyError(E),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),T}(w.L),D=function(y){(0,V.Z)(T,y);var g=(0,Z.Z)(T);function T(){return(0,U.Z)(this,T),g.apply(this,arguments)}return(0,B.Z)(T,[{key:"notifyNext",value:function(E){this.destination.next(E)}},{key:"notifyError",value:function(E){this.destination.error(E)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),T}(w.L);function P(y,g){if(!g.closed){if(y instanceof R.y)return y.subscribe(g);var T;try{T=(0,C.s)(y)(g)}catch(M){g.error(M)}return T}}},39887:function(le,q,f){"use strict";f.d(q,{c:function(){return P},N:function(){return y}});var U=f(20901),B=f(89200),V=f(18967),Z=f(14105),w=f(10509),R=f(97154),C=f(68707),_=f(89797),D=(f(39874),f(5051)),O=f(26575),P=function(E){(0,w.Z)(S,E);var x=(0,R.Z)(S);function S(A,L){var j;return(0,V.Z)(this,S),(j=x.call(this)).source=A,j.subjectFactory=L,j._refCount=0,j._isComplete=!1,j}return(0,Z.Z)(S,[{key:"_subscribe",value:function(L){return this.getSubject().subscribe(L)}},{key:"getSubject",value:function(){var L=this._subject;return(!L||L.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var L=this._connection;return L||(this._isComplete=!1,(L=this._connection=new D.w).add(this.source.subscribe(new g(this.getSubject(),this))),L.closed&&(this._connection=null,L=D.w.EMPTY)),L}},{key:"refCount",value:function(){return(0,O.x)()(this)}}]),S}(_.y),y=function(){var E=P.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:E._subscribe},_isComplete:{value:E._isComplete,writable:!0},getSubject:{value:E.getSubject},connect:{value:E.connect},refCount:{value:E.refCount}}}(),g=function(E){(0,w.Z)(S,E);var x=(0,R.Z)(S);function S(A,L){var j;return(0,V.Z)(this,S),(j=x.call(this,A)).connectable=L,j}return(0,Z.Z)(S,[{key:"_error",value:function(L){this._unsubscribe(),(0,U.Z)((0,B.Z)(S.prototype),"_error",this).call(this,L)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),(0,U.Z)((0,B.Z)(S.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var L=this.connectable;if(L){this.connectable=null;var j=L._connection;L._refCount=0,L._subject=null,L._connection=null,j&&j.unsubscribe()}}}]),S}(C.Yc)},18613:function(le,q,f){"use strict";f.d(q,{e:function(){return _}});var U=f(18967),B=f(14105),V=f(10509),Z=f(97154),w=f(89797),R=f(8285),C=f(11705),_=function(N){(0,V.Z)(O,N);var D=(0,Z.Z)(O);function O(P){var y,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.e;return(0,U.Z)(this,O),(y=D.call(this)).source=P,y.delayTime=g,y.scheduler=T,(!(0,C.k)(g)||g<0)&&(y.delayTime=0),(!T||"function"!=typeof T.schedule)&&(y.scheduler=R.e),y}return(0,B.Z)(O,[{key:"_subscribe",value:function(y){return this.scheduler.schedule(O.dispatch,this.delayTime,{source:this.source,subscriber:y})}}],[{key:"create",value:function(y){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.e;return new O(y,g,T)}},{key:"dispatch",value:function(y){return this.add(y.source.subscribe(y.subscriber))}}]),O}(w.y)},81370:function(le,q,f){"use strict";f.d(q,{aj:function(){return O},Ms:function(){return P}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(91299),R=f(78985),C=f(7283),_=f(61454),N=f(80503),D={};function O(){for(var g=arguments.length,T=new Array(g),M=0;M<g;M++)T[M]=arguments[M];var E=void 0,x=void 0;return(0,w.K)(T[T.length-1])&&(x=T.pop()),"function"==typeof T[T.length-1]&&(E=T.pop()),1===T.length&&(0,R.k)(T[0])&&(T=T[0]),(0,N.n)(T,x).lift(new P(E))}var P=function(){function g(T){(0,V.Z)(this,g),this.resultSelector=T}return(0,Z.Z)(g,[{key:"call",value:function(M,E){return E.subscribe(new y(M,this.resultSelector))}}]),g}(),y=function(g){(0,U.Z)(M,g);var T=(0,B.Z)(M);function M(E,x){var S;return(0,V.Z)(this,M),(S=T.call(this,E)).resultSelector=x,S.active=0,S.values=[],S.observables=[],S}return(0,Z.Z)(M,[{key:"_next",value:function(x){this.values.push(D),this.observables.push(x)}},{key:"_complete",value:function(){var x=this.observables,S=x.length;if(0===S)this.destination.complete();else{this.active=S,this.toRespond=S;for(var A=0;A<S;A++)this.add((0,_.D)(this,x[A],void 0,A))}}},{key:"notifyComplete",value:function(x){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(x,S,A){var L=this.values,K=this.toRespond?L[A]===D?--this.toRespond:this.toRespond:0;L[A]=S,0===K&&(this.resultSelector?this._tryResultSelector(L):this.destination.next(L.slice()))}},{key:"_tryResultSelector",value:function(x){var S;try{S=this.resultSelector.apply(this,x)}catch(A){return void this.destination.error(A)}this.destination.next(S)}}]),M}(C.L)},60131:function(le,q,f){"use strict";f.d(q,{z:function(){return V}});var U=f(43161),B=f(95416);function V(){return(0,B.u)()(U.of.apply(void 0,arguments))}},4499:function(le,q,f){"use strict";f.d(q,{P:function(){return Z}});var U=f(89797),B=f(61493),V=f(93487);function Z(w){return new U.y(function(R){var C;try{C=w()}catch(N){return void R.error(N)}return(C?(0,B.D)(C):(0,V.c)()).subscribe(R)})}},51361:function(le,q,f){"use strict";f.d(q,{Ck:function(){return y},tB:function(){return g},_c:function(){return T},Vk:function(){return M},YB:function(){return E},uX:function(){return S},i6:function(){return A},de:function(){return L},vD:function(){return j},iM:function(){return z},cw:function(){return se}});var U=f(20901),B=f(89200),V=f(18967),Z=f(14105),w=f(10509),R=f(97154),C=f(44962),_=f(89797),N=f(39874);function y(ue){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new A({method:"GET",url:ue,headers:de})}function g(ue,de,oe){return new A({method:"POST",url:ue,body:de,headers:oe})}function T(ue,de){return new A({method:"DELETE",url:ue,headers:de})}function M(ue,de,oe){return new A({method:"PUT",url:ue,body:de,headers:oe})}function E(ue,de,oe){return new A({method:"PATCH",url:ue,body:de,headers:oe})}var x=(0,f(85639).U)(function(ue,de){return ue.response});function S(ue,de){return x(new A({method:"GET",url:ue,responseType:"json",headers:de}))}var A=function(){var ue=function(de){(0,w.Z)($,de);var oe=(0,R.Z)($);function $(ye){var ve;(0,V.Z)(this,$),ve=oe.call(this);var et={async:!0,createXHR:function(){return this.crossDomain?function(){if(C.J.XMLHttpRequest)return new C.J.XMLHttpRequest;if(C.J.XDomainRequest)return new C.J.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(C.J.XMLHttpRequest)return new C.J.XMLHttpRequest;var ue;try{for(var de=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],oe=0;oe<3;oe++)try{if(new C.J.ActiveXObject(ue=de[oe]))break}catch($){}return new C.J.ActiveXObject(ue)}catch($){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof ye)et.url=ye;else for(var Ne in ye)ye.hasOwnProperty(Ne)&&(et[Ne]=ye[Ne]);return ve.request=et,ve}return(0,Z.Z)($,[{key:"_subscribe",value:function(ve){return new L(ve,this.request)}}]),$}(_.y);return ue.create=function(){var de=function($){return new ue($)};return de.get=y,de.post=g,de.delete=T,de.put=M,de.patch=E,de.getJSON=S,de}(),ue}(),L=function(ue){(0,w.Z)(oe,ue);var de=(0,R.Z)(oe);function oe($,ye){var ve;(0,V.Z)(this,oe),(ve=de.call(this,$)).request=ye,ve.done=!1;var et=ye.headers=ye.headers||{};return!ye.crossDomain&&!ve.getHeader(et,"X-Requested-With")&&(et["X-Requested-With"]="XMLHttpRequest"),!ve.getHeader(et,"Content-Type")&&!(C.J.FormData&&ye.body instanceof C.J.FormData)&&void 0!==ye.body&&(et["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),ye.body=ve.serializeBody(ye.body,ve.getHeader(ye.headers,"Content-Type")),ve.send(),ve}return(0,Z.Z)(oe,[{key:"next",value:function(ye){this.done=!0;var gt,ve=this.xhr,et=this.request,Ne=this.destination;try{gt=new j(ye,ve,et)}catch(_t){return Ne.error(_t)}Ne.next(gt)}},{key:"send",value:function(){var ye=this.request,ve=this.request,et=ve.user,Ne=ve.method,gt=ve.url,_t=ve.async,Rt=ve.password,Se=ve.headers,Oe=ve.body;try{var je=this.xhr=ye.createXHR();this.setupEvents(je,ye),et?je.open(Ne,gt,_t,et,Rt):je.open(Ne,gt,_t),_t&&(je.timeout=ye.timeout,je.responseType=ye.responseType),"withCredentials"in je&&(je.withCredentials=!!ye.withCredentials),this.setHeaders(je,Se),Oe?je.send(Oe):je.send()}catch(ct){this.error(ct)}}},{key:"serializeBody",value:function(ye,ve){if(!ye||"string"==typeof ye)return ye;if(C.J.FormData&&ye instanceof C.J.FormData)return ye;if(ve){var et=ve.indexOf(";");-1!==et&&(ve=ve.substring(0,et))}switch(ve){case"application/x-www-form-urlencoded":return Object.keys(ye).map(function(Ne){return"".concat(encodeURIComponent(Ne),"=").concat(encodeURIComponent(ye[Ne]))}).join("&");case"application/json":return JSON.stringify(ye);default:return ye}}},{key:"setHeaders",value:function(ye,ve){for(var et in ve)ve.hasOwnProperty(et)&&ye.setRequestHeader(et,ve[et])}},{key:"getHeader",value:function(ye,ve){for(var et in ye)if(et.toLowerCase()===ve.toLowerCase())return ye[et]}},{key:"setupEvents",value:function(ye,ve){var gt,_t,et=ve.progressSubscriber;function Ne(Oe){var Ht,je=Ne.subscriber,ct=Ne.progressSubscriber,Xe=Ne.request;ct&&ct.error(Oe);try{Ht=new se(this,Xe)}catch(Et){Ht=Et}je.error(Ht)}(ye.ontimeout=Ne,Ne.request=ve,Ne.subscriber=this,Ne.progressSubscriber=et,ye.upload&&"withCredentials"in ye)&&(et&&(gt=function(je){gt.progressSubscriber.next(je)},C.J.XDomainRequest?ye.onprogress=gt:ye.upload.onprogress=gt,gt.progressSubscriber=et),ye.onerror=_t=function(je){var vt,Xe=_t.progressSubscriber,Ht=_t.subscriber,Et=_t.request;Xe&&Xe.error(je);try{vt=new z("ajax error",this,Et)}catch(Xt){vt=Xt}Ht.error(vt)},_t.request=ve,_t.subscriber=this,_t.progressSubscriber=et);function Rt(Oe){}function Se(Oe){var je=Se.subscriber,ct=Se.progressSubscriber,Xe=Se.request;if(4===this.readyState){var Ht=1223===this.status?204:this.status;if(0===Ht&&(Ht=("text"===this.responseType?this.response||this.responseText:this.response)?200:0),Ht<400)ct&&ct.complete(),je.next(Oe),je.complete();else{var vt;ct&&ct.error(Oe);try{vt=new z("ajax error "+Ht,this,Xe)}catch(Xt){vt=Xt}je.error(vt)}}}ye.onreadystatechange=Rt,Rt.subscriber=this,Rt.progressSubscriber=et,Rt.request=ve,ye.onload=Se,Se.subscriber=this,Se.progressSubscriber=et,Se.request=ve}},{key:"unsubscribe",value:function(){var ve=this.xhr;!this.done&&ve&&4!==ve.readyState&&"function"==typeof ve.abort&&ve.abort(),(0,U.Z)((0,B.Z)(oe.prototype),"unsubscribe",this).call(this)}}]),oe}(N.L),j=function ue(de,oe,$){(0,V.Z)(this,ue),this.originalEvent=de,this.xhr=oe,this.request=$,this.status=oe.status,this.responseType=oe.responseType||$.responseType,this.response=ae(this.responseType,oe)},z=function(){function ue(de,oe,$){return Error.call(this),this.message=de,this.name="AjaxError",this.xhr=oe,this.request=$,this.status=oe.status,this.responseType=oe.responseType||$.responseType,this.response=ae(this.responseType,oe),this}return ue.prototype=Object.create(Error.prototype),ue}();function ae(ue,de){switch(ue){case"json":return function(ue){return"response"in ue?ue.responseType?ue.response:JSON.parse(ue.response||ue.responseText||"null"):JSON.parse(ue.responseText||"null")}(de);case"xml":return de.responseXML;case"text":default:return"response"in de?de.response:de.responseText}}var se=function(ue,de){return z.call(this,"ajax timeout",ue,de),this.name="AjaxTimeoutError",this}},46095:function(le,q,f){"use strict";f.d(q,{p:function(){return g}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),w=f(10509),R=f(97154),C=f(68707),_=f(39874),N=f(89797),D=f(5051),O=f(82667),P={url:"",deserializer:function(M){return JSON.parse(M.data)},serializer:function(M){return JSON.stringify(M)}},g=function(T){(0,w.Z)(E,T);var M=(0,R.Z)(E);function E(x,S){var A;if((0,U.Z)(this,E),A=M.call(this),x instanceof N.y)A.destination=S,A.source=x;else{var L=A._config=Object.assign({},P);if(A._output=new C.xQ,"string"==typeof x)L.url=x;else for(var j in x)x.hasOwnProperty(j)&&(L[j]=x[j]);if(!L.WebSocketCtor&&WebSocket)L.WebSocketCtor=WebSocket;else if(!L.WebSocketCtor)throw new Error("no WebSocket constructor can be found");A.destination=new O.t}return A}return(0,B.Z)(E,[{key:"lift",value:function(S){var A=new E(this._config,this.destination);return A.operator=S,A.source=this,A}},{key:"_resetState",value:function(){this._socket=null,this.source||(this.destination=new O.t),this._output=new C.xQ}},{key:"multiplex",value:function(S,A,L){var j=this;return new N.y(function(K){try{j.next(S())}catch(Q){K.error(Q)}var z=j.subscribe(function(Q){try{L(Q)&&K.next(Q)}catch(ae){K.error(ae)}},function(Q){return K.error(Q)},function(){return K.complete()});return function(){try{j.next(A())}catch(Q){K.error(Q)}z.unsubscribe()}})}},{key:"_connectSocket",value:function(){var S=this,A=this._config,L=A.WebSocketCtor,j=A.protocol,K=A.url,z=A.binaryType,Q=this._output,ae=null;try{ae=j?new L(K,j):new L(K),this._socket=ae,z&&(this._socket.binaryType=z)}catch(se){return void Q.error(se)}var ie=new D.w(function(){S._socket=null,ae&&1===ae.readyState&&ae.close()});ae.onopen=function(se){if(!S._socket)return ae.close(),void S._resetState();var de=S._config.openObserver;de&&de.next(se);var oe=S.destination;S.destination=_.L.create(function($){if(1===ae.readyState)try{ae.send((0,S._config.serializer)($))}catch(ve){S.destination.error(ve)}},function($){var ye=S._config.closingObserver;ye&&ye.next(void 0),$&&$.code?ae.close($.code,$.reason):Q.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),S._resetState()},function(){var $=S._config.closingObserver;$&&$.next(void 0),ae.close(),S._resetState()}),oe&&oe instanceof O.t&&ie.add(oe.subscribe(S.destination))},ae.onerror=function(se){S._resetState(),Q.error(se)},ae.onclose=function(se){S._resetState();var ue=S._config.closeObserver;ue&&ue.next(se),se.wasClean?Q.complete():Q.error(se)},ae.onmessage=function(se){try{Q.next((0,S._config.deserializer)(se))}catch(de){Q.error(de)}}}},{key:"_subscribe",value:function(S){var A=this,L=this.source;return L?L.subscribe(S):(this._socket||this._connectSocket(),this._output.subscribe(S),S.add(function(){var j=A._socket;0===A._output.observers.length&&(j&&1===j.readyState&&j.close(),A._resetState())}),S)}},{key:"unsubscribe",value:function(){var S=this._socket;S&&1===S.readyState&&S.close(),this._resetState(),(0,V.Z)((0,Z.Z)(E.prototype),"unsubscribe",this).call(this)}}]),E}(C.ug)},30437:function(le,q,f){"use strict";f.d(q,{h:function(){return B}});var U=f(51361),B=function(){return U.i6.create}()},99298:function(le,q,f){"use strict";f.d(q,{j:function(){return B}});var U=f(46095);function B(V){return new U.p(V)}},93487:function(le,q,f){"use strict";f.d(q,{E:function(){return B},c:function(){return V}});var U=f(89797),B=new U.y(function(w){return w.complete()});function V(w){return w?function(w){return new U.y(function(R){return w.schedule(function(){return R.complete()})})}(w):B}},91925:function(le,q,f){"use strict";f.d(q,{D:function(){return C}});var U=f(10629),B=f(89797),V=f(78985),Z=f(85639),w=f(64902),R=f(61493);function C(){for(var N=arguments.length,D=new Array(N),O=0;O<N;O++)D[O]=arguments[O];if(1===D.length){var P=D[0];if((0,V.k)(P))return _(P,null);if((0,w.K)(P)&&Object.getPrototypeOf(P)===Object.prototype){var y=Object.keys(P);return _(y.map(function(T){return P[T]}),y)}}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,U.Z)(T))}))}return _(D,null)}function _(N,D){return new B.y(function(O){var P=N.length;if(0!==P)for(var y=new Array(P),g=0,T=0,M=function(S){var A=(0,R.D)(N[S]),L=!1;O.add(A.subscribe({next:function(K){L||(L=!0,T++),y[S]=K},error:function(K){return O.error(K)},complete:function(){(++g===P||!L)&&(T===P&&O.next(D?D.reduce(function(K,z,Q){return K[z]=y[Q],K},{}):y),O.complete())}}))},E=0;E<P;E++)M(E);else O.complete()})}},61493:function(le,q,f){"use strict";f.d(q,{D:function(){return Z}});var U=f(89797),B=f(20735),V=f(77493);function Z(w,R){return R?(0,V.x)(w,R):w instanceof U.y?w:new U.y((0,B.s)(w))}},80503:function(le,q,f){"use strict";f.d(q,{n:function(){return Z}});var U=f(89797),B=f(22312),V=f(55835);function Z(w,R){return R?(0,V.r)(w,R):new U.y((0,B.V)(w))}},33090:function(le,q,f){"use strict";f.d(q,{R:function(){return C}});var U=f(10629),B=f(89797),V=f(78985),Z=f(20684),w=f(85639);function C(P,y,g,T){return(0,Z.m)(g)&&(T=g,g=void 0),T?C(P,y,g).pipe((0,w.U)(function(M){return(0,V.k)(M)?T.apply(void 0,(0,U.Z)(M)):T(M)})):new B.y(function(M){_(P,y,function(x){M.next(arguments.length>1?Array.prototype.slice.call(arguments):x)},M,g)})}function _(P,y,g,T,M){var E;if(function(P){return P&&"function"==typeof P.addEventListener&&"function"==typeof P.removeEventListener}(P)){var x=P;P.addEventListener(y,g,M),E=function(){return x.removeEventListener(y,g,M)}}else if(function(P){return P&&"function"==typeof P.on&&"function"==typeof P.off}(P)){var S=P;P.on(y,g),E=function(){return S.off(y,g)}}else if(function(P){return P&&"function"==typeof P.addListener&&"function"==typeof P.removeListener}(P)){var A=P;P.addListener(y,g),E=function(){return A.removeListener(y,g)}}else{if(!P||!P.length)throw new TypeError("Invalid event target");for(var L=0,j=P.length;L<j;L++)_(P[L],y,g,T,M)}T.add(E)}},57434:function(le,q,f){"use strict";f.d(q,{F:function(){return Z}});var U=f(89797),B=f(46813),V=f(11705);function Z(){var R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B.P;return(!(0,V.k)(R)||R<0)&&(R=0),(!C||"function"!=typeof C.schedule)&&(C=B.P),new U.y(function(_){return _.add(C.schedule(w,R,{subscriber:_,counter:0,period:R})),_})}function w(R){var C=R.subscriber,_=R.counter,N=R.period;C.next(_),this.schedule({subscriber:C,counter:_+1,period:N},N)}},55371:function(le,q,f){"use strict";f.d(q,{T:function(){return w}});var U=f(89797),B=f(91299),V=f(65890),Z=f(80503);function w(){for(var R=Number.POSITIVE_INFINITY,C=null,_=arguments.length,N=new Array(_),D=0;D<_;D++)N[D]=arguments[D];var O=N[N.length-1];return(0,B.K)(O)?(C=N.pop(),N.length>1&&"number"==typeof N[N.length-1]&&(R=N.pop())):"number"==typeof O&&(R=N.pop()),null===C&&1===N.length&&N[0]instanceof U.y?N[0]:(0,V.J)(R)((0,Z.n)(N,C))}},43161:function(le,q,f){"use strict";f.d(q,{of:function(){return Z}});var U=f(91299),B=f(80503),V=f(55835);function Z(){for(var w=arguments.length,R=new Array(w),C=0;C<w;C++)R[C]=arguments[C];var _=R[R.length-1];return(0,U.K)(_)?(R.pop(),(0,V.r)(R,_)):(0,B.n)(R)}},31695:function(le,q,f){"use strict";f.d(q,{S3:function(){return N}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(78985),R=f(80503),C=f(7283),_=f(61454);function N(){for(var P=arguments.length,y=new Array(P),g=0;g<P;g++)y[g]=arguments[g];if(1===y.length){if(!(0,w.k)(y[0]))return y[0];y=y[0]}return(0,R.n)(y,void 0).lift(new D)}var D=function(){function P(){(0,V.Z)(this,P)}return(0,Z.Z)(P,[{key:"call",value:function(g,T){return T.subscribe(new O(g))}}]),P}(),O=function(P){(0,U.Z)(g,P);var y=(0,B.Z)(g);function g(T){var M;return(0,V.Z)(this,g),(M=y.call(this,T)).hasFirst=!1,M.observables=[],M.subscriptions=[],M}return(0,Z.Z)(g,[{key:"_next",value:function(M){this.observables.push(M)}},{key:"_complete",value:function(){var M=this.observables,E=M.length;if(0===E)this.destination.complete();else{for(var x=0;x<E&&!this.hasFirst;x++){var A=(0,_.D)(this,M[x],void 0,x);this.subscriptions&&this.subscriptions.push(A),this.add(A)}this.observables=null}}},{key:"notifyNext",value:function(M,E,x){if(!this.hasFirst){this.hasFirst=!0;for(var S=0;S<this.subscriptions.length;S++)if(S!==x){var A=this.subscriptions[S];A.unsubscribe(),this.remove(A)}this.subscriptions=null}this.destination.next(E)}}]),g}(C.L)},10961:function(le,q,f){"use strict";f.d(q,{w:function(){return B},W:function(){return V}});var U=f(89797);function B(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,w=arguments.length>1?arguments[1]:void 0,R=arguments.length>2?arguments[2]:void 0;return new U.y(function(C){void 0===w&&(w=Z,Z=0);var _=0,N=Z;if(R)return R.schedule(V,0,{index:_,count:w,start:Z,subscriber:C});for(;;){if(_++>=w){C.complete();break}if(C.next(N++),C.closed)break}})}function V(Z){var w=Z.start,R=Z.index,_=Z.subscriber;R>=Z.count?_.complete():(_.next(w),!_.closed&&(Z.index=R+1,Z.start=w+1,this.schedule(Z)))}},11363:function(le,q,f){"use strict";f.d(q,{_:function(){return B}});var U=f(89797);function B(Z,w){return new U.y(w?function(R){return w.schedule(V,0,{error:Z,subscriber:R})}:function(R){return R.error(Z)})}function V(Z){Z.subscriber.error(Z.error)}},5041:function(le,q,f){"use strict";f.d(q,{H:function(){return w}});var U=f(89797),B=f(46813),V=f(11705),Z=f(91299);function w(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,_=arguments.length>1?arguments[1]:void 0,N=arguments.length>2?arguments[2]:void 0,D=-1;return(0,V.k)(_)?D=Number(_)<1?1:Number(_):(0,Z.K)(_)&&(N=_),(0,Z.K)(N)||(N=B.P),new U.y(function(O){var P=(0,V.k)(C)?C:+C-N.now();return N.schedule(R,P,{index:0,period:D,subscriber:O})})}function R(C){var _=C.index,N=C.period,D=C.subscriber;if(D.next(_),!D.closed){if(-1===N)return D.complete();C.index=_+1,this.schedule(C,N)}}},43008:function(le,q,f){"use strict";f.d(q,{$R:function(){return D},mx:function(){return O}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(80503),R=f(78985),C=f(39874),_=f(81695),N=f(32124);function D(){for(var M=arguments.length,E=new Array(M),x=0;x<M;x++)E[x]=arguments[x];var S=E[E.length-1];return"function"==typeof S&&E.pop(),(0,w.n)(E,void 0).lift(new O(S))}var O=function(){function M(E){(0,V.Z)(this,M),this.resultSelector=E}return(0,Z.Z)(M,[{key:"call",value:function(x,S){return S.subscribe(new P(x,this.resultSelector))}}]),M}(),P=function(M){(0,U.Z)(x,M);var E=(0,B.Z)(x);function x(S,A){var L;return arguments.length>2&&void 0!==arguments[2]||Object.create(null),(0,V.Z)(this,x),(L=E.call(this,S)).resultSelector=A,L.iterators=[],L.active=0,L.resultSelector="function"==typeof A?A:void 0,L}return(0,Z.Z)(x,[{key:"_next",value:function(A){var L=this.iterators;(0,R.k)(A)?L.push(new g(A)):L.push("function"==typeof A[_.hZ]?new y(A[_.hZ]()):new T(this.destination,this,A))}},{key:"_complete",value:function(){var A=this.iterators,L=A.length;if(this.unsubscribe(),0!==L){this.active=L;for(var j=0;j<L;j++){var K=A[j];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 A=this.iterators,L=A.length,j=this.destination,K=0;K<L;K++){var z=A[K];if("function"==typeof z.hasValue&&!z.hasValue())return}for(var Q=!1,ae=[],ie=0;ie<L;ie++){var se=A[ie],ue=se.next();if(se.hasCompleted()&&(Q=!0),ue.done)return void j.complete();ae.push(ue.value)}this.resultSelector?this._tryresultSelector(ae):j.next(ae),Q&&j.complete()}},{key:"_tryresultSelector",value:function(A){var L;try{L=this.resultSelector.apply(this,A)}catch(j){return void this.destination.error(j)}this.destination.next(L)}}]),x}(C.L),y=function(){function M(E){(0,V.Z)(this,M),this.iterator=E,this.nextResult=E.next()}return(0,Z.Z)(M,[{key:"hasValue",value:function(){return!0}},{key:"next",value:function(){var x=this.nextResult;return this.nextResult=this.iterator.next(),x}},{key:"hasCompleted",value:function(){var x=this.nextResult;return Boolean(x&&x.done)}}]),M}(),g=function(){function M(E){(0,V.Z)(this,M),this.array=E,this.index=0,this.length=0,this.length=E.length}return(0,Z.Z)(M,[{key:_.hZ,value:function(){return this}},{key:"next",value:function(x){var S=this.index++;return S<this.length?{value:this.array[S],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}}]),M}(),T=function(M){(0,U.Z)(x,M);var E=(0,B.Z)(x);function x(S,A,L){var j;return(0,V.Z)(this,x),(j=E.call(this,S)).parent=A,j.observable=L,j.stillUnsubscribed=!0,j.buffer=[],j.isComplete=!1,j}return(0,Z.Z)(x,[{key:_.hZ,value:function(){return this}},{key:"next",value:function(){var A=this.buffer;return 0===A.length&&this.isComplete?{value:null,done:!0}:{value:A.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(A){this.buffer.push(A),this.parent.checkIterators()}},{key:"subscribe",value:function(){return(0,N.ft)(this.observable,new N.IY(this))}}]),x}(N.Ds)},67494:function(le,q,f){"use strict";f.d(q,{U:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(32124);function R(N){return function(O){return O.lift(new C(N))}}var C=function(){function N(D){(0,V.Z)(this,N),this.durationSelector=D}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.durationSelector))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y){var g;return(0,V.Z)(this,O),(g=D.call(this,P)).durationSelector=y,g.hasValue=!1,g}return(0,Z.Z)(O,[{key:"_next",value:function(y){if(this.value=y,this.hasValue=!0,!this.throttled){var g;try{g=(0,this.durationSelector)(y)}catch(E){return this.destination.error(E)}var M=(0,w.ft)(g,new w.IY(this));!M||M.closed?this.clearThrottle():this.add(this.throttled=M)}}},{key:"clearThrottle",value:function(){var y=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(y))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),O}(w.Ds)},54562:function(le,q,f){"use strict";f.d(q,{e:function(){return Z}});var U=f(46813),B=f(67494),V=f(5041);function Z(w){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.P;return(0,B.U)(function(){return(0,V.H)(w,R)})}},13426:function(le,q,f){"use strict";f.d(q,{K:function(){return _}});var U=f(20901),B=f(89200),V=f(10509),Z=f(97154),w=f(18967),R=f(14105),C=f(32124);function _(O){return function(y){var g=new N(O),T=y.lift(g);return g.caught=T}}var N=function(){function O(P){(0,w.Z)(this,O),this.selector=P}return(0,R.Z)(O,[{key:"call",value:function(y,g){return g.subscribe(new D(y,this.selector,this.caught))}}]),O}(),D=function(O){(0,V.Z)(y,O);var P=(0,Z.Z)(y);function y(g,T,M){var E;return(0,w.Z)(this,y),(E=P.call(this,g)).selector=T,E.caught=M,E}return(0,R.Z)(y,[{key:"error",value:function(T){if(!this.isStopped){var M;try{M=this.selector(T,this.caught)}catch(S){return void(0,U.Z)((0,B.Z)(y.prototype),"error",this).call(this,S)}this._unsubscribeAndRecycle();var E=new C.IY(this);this.add(E);var x=(0,C.ft)(M,E);x!==E&&this.add(x)}}}]),y}(C.Ds)},95416:function(le,q,f){"use strict";f.d(q,{u:function(){return B}});var U=f(65890);function B(){return(0,U.J)(1)}},38575:function(le,q,f){"use strict";f.d(q,{b:function(){return B}});var U=f(35135);function B(V,Z){return(0,U.zg)(V,Z,1)}},75398:function(le,q,f){"use strict";f.d(q,{Q:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(N){return function(D){return D.lift(new C(N,D))}}var C=function(){function N(D,O){(0,V.Z)(this,N),this.predicate=D,this.source=O}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.predicate,this.source))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y,g){var T;return(0,V.Z)(this,O),(T=D.call(this,P)).predicate=y,T.source=g,T.count=0,T.index=0,T}return(0,Z.Z)(O,[{key:"_next",value:function(y){this.predicate?this._tryPredicate(y):this.count++}},{key:"_tryPredicate",value:function(y){var g;try{g=this.predicate(y,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()}}]),O}(w.L)},57263:function(le,q,f){"use strict";f.d(q,{b:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874),R=f(46813);function C(O){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.P;return function(y){return y.lift(new _(O,P))}}var _=function(){function O(P,y){(0,V.Z)(this,O),this.dueTime=P,this.scheduler=y}return(0,Z.Z)(O,[{key:"call",value:function(y,g){return g.subscribe(new N(y,this.dueTime,this.scheduler))}}]),O}(),N=function(O){(0,U.Z)(y,O);var P=(0,B.Z)(y);function y(g,T,M){var E;return(0,V.Z)(this,y),(E=P.call(this,g)).dueTime=T,E.scheduler=M,E.debouncedSubscription=null,E.lastValue=null,E.hasValue=!1,E}return(0,Z.Z)(y,[{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)}}]),y}(w.L);function D(O){O.debouncedNext()}},34235:function(le,q,f){"use strict";f.d(q,{d:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(D){return D.lift(new C(N))}}var C=function(){function N(D){(0,V.Z)(this,N),this.defaultValue=D}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.defaultValue))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y){var g;return(0,V.Z)(this,O),(g=D.call(this,P)).defaultValue=y,g.isEmpty=!0,g}return(0,Z.Z)(O,[{key:"_next",value:function(y){this.isEmpty=!1,this.destination.next(y)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),O}(w.L)},86004:function(le,q,f){"use strict";f.d(q,{g:function(){return N}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(46813),R=f(88972),C=f(39874),_=f(80286);function N(y){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.P,T=(0,R.J)(y),M=T?+y-g.now():Math.abs(y);return function(E){return E.lift(new D(M,g))}}var D=function(){function y(g,T){(0,V.Z)(this,y),this.delay=g,this.scheduler=T}return(0,Z.Z)(y,[{key:"call",value:function(T,M){return M.subscribe(new O(T,this.delay,this.scheduler))}}]),y}(),O=function(y){(0,U.Z)(T,y);var g=(0,B.Z)(T);function T(M,E,x){var S;return(0,V.Z)(this,T),(S=g.call(this,M)).delay=E,S.scheduler=x,S.queue=[],S.active=!1,S.errored=!1,S}return(0,Z.Z)(T,[{key:"_schedule",value:function(E){this.active=!0,this.destination.add(E.schedule(T.dispatch,this.delay,{source:this,destination:this.destination,scheduler:E}))}},{key:"scheduleNotification",value:function(E){if(!0!==this.errored){var x=this.scheduler,S=new P(x.now()+this.delay,E);this.queue.push(S),!1===this.active&&this._schedule(x)}}},{key:"_next",value:function(E){this.scheduleNotification(_.P.createNext(E))}},{key:"_error",value:function(E){this.errored=!0,this.queue=[],this.destination.error(E),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(_.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(E){for(var x=E.source,S=x.queue,A=E.scheduler,L=E.destination;S.length>0&&S[0].time-A.now()<=0;)S.shift().notification.observe(L);if(S.length>0){var j=Math.max(0,S[0].time-A.now());this.schedule(E,j)}else this.unsubscribe(),x.active=!1}}]),T}(C.L),P=function y(g,T){(0,V.Z)(this,y),this.time=g,this.notification=T}},76161:function(le,q,f){"use strict";f.d(q,{x:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(N,D){return function(O){return O.lift(new C(N,D))}}var C=function(){function N(D,O){(0,V.Z)(this,N),this.compare=D,this.keySelector=O}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.compare,this.keySelector))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y,g){var T;return(0,V.Z)(this,O),(T=D.call(this,P)).keySelector=g,T.hasKey=!1,"function"==typeof y&&(T.compare=y),T}return(0,Z.Z)(O,[{key:"compare",value:function(y,g){return y===g}},{key:"_next",value:function(y){var g;try{var T=this.keySelector;g=T?T(y):y}catch(x){return this.destination.error(x)}var M=!1;if(this.hasKey)try{M=(0,this.compare)(this.key,g)}catch(x){return this.destination.error(x)}else this.hasKey=!0;M||(this.key=g,this.destination.next(y))}}]),O}(w.L)},58780:function(le,q,f){"use strict";f.d(q,{h:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(N,D){return function(P){return P.lift(new C(N,D))}}var C=function(){function N(D,O){(0,V.Z)(this,N),this.predicate=D,this.thisArg=O}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.predicate,this.thisArg))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y,g){var T;return(0,V.Z)(this,O),(T=D.call(this,P)).predicate=y,T.thisArg=g,T.count=0,T}return(0,Z.Z)(O,[{key:"_next",value:function(y){var g;try{g=this.predicate.call(this.thisArg,y,this.count++)}catch(T){return void this.destination.error(T)}g&&this.destination.next(y)}}]),O}(w.L)},59803:function(le,q,f){"use strict";f.d(q,{x:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874),R=f(5051);function C(D){return function(O){return O.lift(new _(D))}}var _=function(){function D(O){(0,V.Z)(this,D),this.callback=O}return(0,Z.Z)(D,[{key:"call",value:function(P,y){return y.subscribe(new N(P,this.callback))}}]),D}(),N=function(D){(0,U.Z)(P,D);var O=(0,B.Z)(P);function P(y,g){var T;return(0,V.Z)(this,P),(T=O.call(this,y)).add(new R.w(g)),T}return P}(w.L)},64233:function(le,q,f){"use strict";f.d(q,{P:function(){return C}});var U=f(64646),B=f(58780),V=f(48359),Z=f(34235),w=f(88942),R=f(57070);function C(_,N){var D=arguments.length>=2;return function(O){return O.pipe(_?(0,B.h)(function(P,y){return _(P,y,O)}):R.y,(0,V.q)(1),D?(0,Z.d)(N):(0,w.T)(function(){return new U.K}))}}},86072:function(le,q,f){"use strict";f.d(q,{v:function(){return O},T:function(){return T}});var U=f(20901),B=f(89200),V=f(10509),Z=f(97154),w=f(18967),R=f(14105),C=f(39874),_=f(5051),N=f(89797),D=f(68707);function O(E,x,S,A){return function(L){return L.lift(new P(E,x,S,A))}}var P=function(){function E(x,S,A,L){(0,w.Z)(this,E),this.keySelector=x,this.elementSelector=S,this.durationSelector=A,this.subjectSelector=L}return(0,R.Z)(E,[{key:"call",value:function(S,A){return A.subscribe(new y(S,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),E}(),y=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(A,L,j,K,z){var Q;return(0,w.Z)(this,S),(Q=x.call(this,A)).keySelector=L,Q.elementSelector=j,Q.durationSelector=K,Q.subjectSelector=z,Q.groups=null,Q.attemptedToUnsubscribe=!1,Q.count=0,Q}return(0,R.Z)(S,[{key:"_next",value:function(L){var j;try{j=this.keySelector(L)}catch(K){return void this.error(K)}this._group(L,j)}},{key:"_group",value:function(L,j){var K=this.groups;K||(K=this.groups=new Map);var Q,z=K.get(j);if(this.elementSelector)try{Q=this.elementSelector(L)}catch(se){this.error(se)}else Q=L;if(!z){z=this.subjectSelector?this.subjectSelector():new D.xQ,K.set(j,z);var ae=new T(j,z,this);if(this.destination.next(ae),this.durationSelector){var ie;try{ie=this.durationSelector(new T(j,z))}catch(se){return void this.error(se)}this.add(ie.subscribe(new g(j,z,this)))}}z.closed||z.next(Q)}},{key:"_error",value:function(L){var j=this.groups;j&&(j.forEach(function(K,z){K.error(L)}),j.clear()),this.destination.error(L)}},{key:"_complete",value:function(){var L=this.groups;L&&(L.forEach(function(j,K){j.complete()}),L.clear()),this.destination.complete()}},{key:"removeGroup",value:function(L){this.groups.delete(L)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&(0,U.Z)((0,B.Z)(S.prototype),"unsubscribe",this).call(this))}}]),S}(C.L),g=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(A,L,j){var K;return(0,w.Z)(this,S),(K=x.call(this,L)).key=A,K.group=L,K.parent=j,K}return(0,R.Z)(S,[{key:"_next",value:function(L){this.complete()}},{key:"_unsubscribe",value:function(){var L=this.parent,j=this.key;this.key=this.parent=null,L&&L.removeGroup(j)}}]),S}(C.L),T=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(A,L,j){var K;return(0,w.Z)(this,S),(K=x.call(this)).key=A,K.groupSubject=L,K.refCountSubscription=j,K}return(0,R.Z)(S,[{key:"_subscribe",value:function(L){var j=new _.w,K=this.refCountSubscription,z=this.groupSubject;return K&&!K.closed&&j.add(new M(K)),j.add(z.subscribe(L)),j}}]),S}(N.y),M=function(E){(0,V.Z)(S,E);var x=(0,Z.Z)(S);function S(A){var L;return(0,w.Z)(this,S),(L=x.call(this)).parent=A,A.count++,L}return(0,R.Z)(S,[{key:"unsubscribe",value:function(){var L=this.parent;!L.closed&&!this.closed&&((0,U.Z)((0,B.Z)(S.prototype),"unsubscribe",this).call(this),L.count-=1,0===L.count&&L.attemptedToUnsubscribe&&L.unsubscribe())}}]),S}(_.w)},99583:function(le,q,f){"use strict";f.d(q,{Z:function(){return C}});var U=f(64646),B=f(58780),V=f(64397),Z=f(88942),w=f(34235),R=f(57070);function C(_,N){var D=arguments.length>=2;return function(O){return O.pipe(_?(0,B.h)(function(P,y){return _(P,y,O)}):R.y,(0,V.h)(1),D?(0,w.d)(N):(0,Z.T)(function(){return new U.K}))}}},85639:function(le,q,f){"use strict";f.d(q,{U:function(){return C}});var U=f(88009),B=f(10509),V=f(97154),Z=f(18967),w=f(14105),R=f(39874);function C(D,O){return function(y){if("function"!=typeof D)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return y.lift(new _(D,O))}}var _=function(){function D(O,P){(0,Z.Z)(this,D),this.project=O,this.thisArg=P}return(0,w.Z)(D,[{key:"call",value:function(P,y){return y.subscribe(new N(P,this.project,this.thisArg))}}]),D}(),N=function(D){(0,B.Z)(P,D);var O=(0,V.Z)(P);function P(y,g,T){var M;return(0,Z.Z)(this,P),(M=O.call(this,y)).project=g,M.count=0,M.thisArg=T||(0,U.Z)(M),M}return(0,w.Z)(P,[{key:"_next",value:function(g){var T;try{T=this.project.call(this.thisArg,g,this.count++)}catch(M){return void this.destination.error(M)}this.destination.next(T)}}]),P}(R.L)},12698:function(le,q,f){"use strict";f.d(q,{h:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(N){return function(D){return D.lift(new C(N))}}var C=function(){function N(D){(0,V.Z)(this,N),this.value=D}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.value))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y){var g;return(0,V.Z)(this,O),(g=D.call(this,P)).value=y,g}return(0,Z.Z)(O,[{key:"_next",value:function(y){this.destination.next(this.value)}}]),O}(w.L)},65890:function(le,q,f){"use strict";f.d(q,{J:function(){return V}});var U=f(35135),B=f(57070);function V(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,U.zg)(B.y,Z)}},35135:function(le,q,f){"use strict";f.d(q,{zg:function(){return _},VS:function(){return O}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(85639),R=f(61493),C=f(32124);function _(P,y){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof y?function(T){return T.pipe(_(function(M,E){return(0,R.D)(P(M,E)).pipe((0,w.U)(function(x,S){return y(M,x,E,S)}))},g))}:("number"==typeof y&&(g=y),function(T){return T.lift(new N(P,g))})}var N=function(){function P(y){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,V.Z)(this,P),this.project=y,this.concurrent=g}return(0,Z.Z)(P,[{key:"call",value:function(g,T){return T.subscribe(new D(g,this.project,this.concurrent))}}]),P}(),D=function(P){(0,U.Z)(g,P);var y=(0,B.Z)(g);function g(T,M){var E,x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return(0,V.Z)(this,g),(E=y.call(this,T)).project=M,E.concurrent=x,E.hasCompleted=!1,E.buffer=[],E.active=0,E.index=0,E}return(0,Z.Z)(g,[{key:"_next",value:function(M){this.active<this.concurrent?this._tryNext(M):this.buffer.push(M)}},{key:"_tryNext",value:function(M){var E,x=this.index++;try{E=this.project(M,x)}catch(S){return void this.destination.error(S)}this.active++,this._innerSub(E)}},{key:"_innerSub",value:function(M){var E=new C.IY(this),x=this.destination;x.add(E);var S=(0,C.ft)(M,E);S!==E&&x.add(S)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(M){this.destination.next(M)}},{key:"notifyComplete",value:function(){var M=this.buffer;this.active--,M.length>0?this._next(M.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),g}(C.Ds),O=_},4981:function(le,q,f){"use strict";f.d(q,{O:function(){return Z}});var U=f(18967),B=f(14105),V=f(39887);function Z(R,C){return function(N){var D;if(D="function"==typeof R?R:function(){return R},"function"==typeof C)return N.lift(new w(D,C));var O=Object.create(N,V.N);return O.source=N,O.subjectFactory=D,O}}var w=function(){function R(C,_){(0,U.Z)(this,R),this.subjectFactory=C,this.selector=_}return(0,B.Z)(R,[{key:"call",value:function(_,N){var D=this.selector,O=this.subjectFactory(),P=D(O).subscribe(_);return P.add(N.subscribe(O)),P}}]),R}()},25110:function(le,q,f){"use strict";f.d(q,{QV:function(){return C},ht:function(){return N}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874),R=f(80286);function C(O){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(g){return g.lift(new _(O,P))}}var _=function(){function O(P){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,V.Z)(this,O),this.scheduler=P,this.delay=y}return(0,Z.Z)(O,[{key:"call",value:function(y,g){return g.subscribe(new N(y,this.scheduler,this.delay))}}]),O}(),N=function(O){(0,U.Z)(y,O);var P=(0,B.Z)(y);function y(g,T){var M,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,V.Z)(this,y),(M=P.call(this,g)).scheduler=T,M.delay=E,M}return(0,Z.Z)(y,[{key:"scheduleMessage",value:function(T){this.destination.add(this.scheduler.schedule(y.dispatch,this.delay,new D(T,this.destination)))}},{key:"_next",value:function(T){this.scheduleMessage(R.P.createNext(T))}},{key:"_error",value:function(T){this.scheduleMessage(R.P.createError(T)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(R.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(T){T.notification.observe(T.destination),this.unsubscribe()}}]),y}(w.L),D=function O(P,y){(0,V.Z)(this,O),this.notification=P,this.destination=y}},4363:function(le,q,f){"use strict";f.d(q,{G:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(){return function(N){return N.lift(new C)}}var C=function(){function N(){(0,V.Z)(this,N)}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P){var y;return(0,V.Z)(this,O),(y=D.call(this,P)).hasPrev=!1,y}return(0,Z.Z)(O,[{key:"_next",value:function(y){var g;this.hasPrev?g=[this.prev,y]:this.hasPrev=!0,this.prev=y,g&&this.destination.next(g)}}]),O}(w.L)},26575:function(le,q,f){"use strict";f.d(q,{x:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(){return function(D){return D.lift(new C(D))}}var C=function(){function N(D){(0,V.Z)(this,N),this.connectable=D}return(0,Z.Z)(N,[{key:"call",value:function(O,P){var y=this.connectable;y._refCount++;var g=new _(O,y),T=P.subscribe(g);return g.closed||(g.connection=y.connect()),T}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y){var g;return(0,V.Z)(this,O),(g=D.call(this,P)).connectable=y,g}return(0,Z.Z)(O,[{key:"_unsubscribe",value:function(){var y=this.connectable;if(y){this.connectable=null;var g=y._refCount;if(g<=0)this.connection=null;else if(y._refCount=g-1,g>1)this.connection=null;else{var T=this.connection,M=y._connection;this.connection=null,M&&(!T||M===T)&&M.unsubscribe()}}else this.connection=null}}]),O}(w.L)},31927:function(le,q,f){"use strict";f.d(q,{R:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(N,D){var O=!1;return arguments.length>=2&&(O=!0),function(y){return y.lift(new C(N,D,O))}}var C=function(){function N(D,O){var P=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,V.Z)(this,N),this.accumulator=D,this.seed=O,this.hasSeed=P}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.accumulator,this.seed,this.hasSeed))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y,g,T){var M;return(0,V.Z)(this,O),(M=D.call(this,P)).accumulator=y,M._seed=g,M.hasSeed=T,M.index=0,M}return(0,Z.Z)(O,[{key:"seed",get:function(){return this._seed},set:function(y){this.hasSeed=!0,this._seed=y}},{key:"_next",value:function(y){if(this.hasSeed)return this._tryNext(y);this.seed=y,this.destination.next(y)}},{key:"_tryNext",value:function(y){var T,g=this.index++;try{T=this.accumulator(this.seed,y,g)}catch(M){this.destination.error(M)}this.seed=T,this.destination.next(T)}}]),O}(w.L)},16338:function(le,q,f){"use strict";f.d(q,{B:function(){return w}});var U=f(4981),B=f(26575),V=f(68707);function Z(){return new V.xQ}function w(){return function(R){return(0,B.x)()((0,U.O)(Z)(R))}}},61106:function(le,q,f){"use strict";f.d(q,{d:function(){return B}});var U=f(82667);function B(Z,w,R){var C;return C=Z&&"object"==typeof Z?Z:{bufferSize:Z,windowTime:w,refCount:!1,scheduler:R},function(_){return _.lift(function(Z){var O,y,w=Z.bufferSize,R=void 0===w?Number.POSITIVE_INFINITY:w,C=Z.windowTime,_=void 0===C?Number.POSITIVE_INFINITY:C,N=Z.refCount,D=Z.scheduler,P=0,g=!1,T=!1;return function(E){var x;P++,!O||g?(g=!1,O=new U.t(R,_,D),x=O.subscribe(this),y=E.subscribe({next:function(A){O.next(A)},error:function(A){g=!0,O.error(A)},complete:function(){T=!0,y=void 0,O.complete()}}),T&&(y=void 0)):x=O.subscribe(this),this.add(function(){P--,x.unsubscribe(),x=void 0,y&&!T&&N&&0===P&&(y.unsubscribe(),y=void 0,O=void 0)})}}(C))}}},18756:function(le,q,f){"use strict";f.d(q,{T:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(N){return function(D){return D.lift(new C(N))}}var C=function(){function N(D){(0,V.Z)(this,N),this.total=D}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.total))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y){var g;return(0,V.Z)(this,O),(g=D.call(this,P)).total=y,g.count=0,g}return(0,Z.Z)(O,[{key:"_next",value:function(y){++this.count>this.total&&this.destination.next(y)}}]),O}(w.L)},57682:function(le,q,f){"use strict";f.d(q,{O:function(){return V}});var U=f(60131),B=f(91299);function V(){for(var Z=arguments.length,w=new Array(Z),R=0;R<Z;R++)w[R]=arguments[R];var C=w[w.length-1];return(0,B.K)(C)?(w.pop(),function(_){return(0,U.z)(w,_,C)}):function(_){return(0,U.z)(w,_)}}},34487:function(le,q,f){"use strict";f.d(q,{w:function(){return D}});var U=f(20901),B=f(89200),V=f(10509),Z=f(97154),w=f(18967),R=f(14105),C=f(85639),_=f(61493),N=f(32124);function D(y,g){return"function"==typeof g?function(T){return T.pipe(D(function(M,E){return(0,_.D)(y(M,E)).pipe((0,C.U)(function(x,S){return g(M,x,E,S)}))}))}:function(T){return T.lift(new O(y))}}var O=function(){function y(g){(0,w.Z)(this,y),this.project=g}return(0,R.Z)(y,[{key:"call",value:function(T,M){return M.subscribe(new P(T,this.project))}}]),y}(),P=function(y){(0,V.Z)(T,y);var g=(0,Z.Z)(T);function T(M,E){var x;return(0,w.Z)(this,T),(x=g.call(this,M)).project=E,x.index=0,x}return(0,R.Z)(T,[{key:"_next",value:function(E){var x,S=this.index++;try{x=this.project(E,S)}catch(A){return void this.destination.error(A)}this._innerSub(x)}},{key:"_innerSub",value:function(E){var x=this.innerSubscription;x&&x.unsubscribe();var S=new N.IY(this),A=this.destination;A.add(S),this.innerSubscription=(0,N.ft)(E,S),this.innerSubscription!==S&&A.add(this.innerSubscription)}},{key:"_complete",value:function(){var E=this.innerSubscription;(!E||E.closed)&&(0,U.Z)((0,B.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,U.Z)((0,B.Z)(T.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(E){this.destination.next(E)}}]),T}(N.Ds)},48359:function(le,q,f){"use strict";f.d(q,{q:function(){return _}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874),R=f(9855),C=f(93487);function _(O){return function(P){return 0===O?(0,C.c)():P.lift(new N(O))}}var N=function(){function O(P){if((0,V.Z)(this,O),this.total=P,this.total<0)throw new R.W}return(0,Z.Z)(O,[{key:"call",value:function(y,g){return g.subscribe(new D(y,this.total))}}]),O}(),D=function(O){(0,U.Z)(y,O);var P=(0,B.Z)(y);function y(g,T){var M;return(0,V.Z)(this,y),(M=P.call(this,g)).total=T,M.count=0,M}return(0,Z.Z)(y,[{key:"_next",value:function(T){var M=this.total,E=++this.count;E<=M&&(this.destination.next(T),E===M&&(this.destination.complete(),this.unsubscribe()))}}]),y}(w.L)},64397:function(le,q,f){"use strict";f.d(q,{h:function(){return _}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874),R=f(9855),C=f(93487);function _(O){return function(y){return 0===O?(0,C.c)():y.lift(new N(O))}}var N=function(){function O(P){if((0,V.Z)(this,O),this.total=P,this.total<0)throw new R.W}return(0,Z.Z)(O,[{key:"call",value:function(y,g){return g.subscribe(new D(y,this.total))}}]),O}(),D=function(O){(0,U.Z)(y,O);var P=(0,B.Z)(y);function y(g,T){var M;return(0,V.Z)(this,y),(M=P.call(this,g)).total=T,M.ring=new Array,M.count=0,M}return(0,Z.Z)(y,[{key:"_next",value:function(T){var M=this.ring,E=this.total,x=this.count++;M.length<E?M.push(T):M[x%E]=T}},{key:"_complete",value:function(){var T=this.destination,M=this.count;if(M>0)for(var E=this.count>=this.total?this.total:this.count,x=this.ring,S=0;S<E;S++){var A=M++%E;T.next(x[A])}T.complete()}}]),y}(w.L)},44213:function(le,q,f){"use strict";f.d(q,{R:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(32124);function R(N){return function(D){return D.lift(new C(N))}}var C=function(){function N(D){(0,V.Z)(this,N),this.notifier=D}return(0,Z.Z)(N,[{key:"call",value:function(O,P){var y=new _(O),g=(0,w.ft)(this.notifier,new w.IY(y));return g&&!y.seenValue?(y.add(g),P.subscribe(y)):y}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P){var y;return(0,V.Z)(this,O),(y=D.call(this,P)).seenValue=!1,y}return(0,Z.Z)(O,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),O}(w.Ds)},49196:function(le,q,f){"use strict";f.d(q,{o:function(){return R}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(39874);function R(N){var D=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(O){return O.lift(new C(N,D))}}var C=function(){function N(D,O){(0,V.Z)(this,N),this.predicate=D,this.inclusive=O}return(0,Z.Z)(N,[{key:"call",value:function(O,P){return P.subscribe(new _(O,this.predicate,this.inclusive))}}]),N}(),_=function(N){(0,U.Z)(O,N);var D=(0,B.Z)(O);function O(P,y,g){var T;return(0,V.Z)(this,O),(T=D.call(this,P)).predicate=y,T.inclusive=g,T.index=0,T}return(0,Z.Z)(O,[{key:"_next",value:function(y){var T,g=this.destination;try{T=this.predicate(y,this.index++)}catch(M){return void g.error(M)}this.nextOrComplete(y,T)}},{key:"nextOrComplete",value:function(y,g){var T=this.destination;Boolean(g)?T.next(y):(this.inclusive&&T.next(y),T.complete())}}]),O}(w.L)},59371:function(le,q,f){"use strict";f.d(q,{b:function(){return N}});var U=f(88009),B=f(10509),V=f(97154),Z=f(18967),w=f(14105),R=f(39874),C=f(66029),_=f(20684);function N(P,y,g){return function(M){return M.lift(new D(P,y,g))}}var D=function(){function P(y,g,T){(0,Z.Z)(this,P),this.nextOrObserver=y,this.error=g,this.complete=T}return(0,w.Z)(P,[{key:"call",value:function(g,T){return T.subscribe(new O(g,this.nextOrObserver,this.error,this.complete))}}]),P}(),O=function(P){(0,B.Z)(g,P);var y=(0,V.Z)(g);function g(T,M,E,x){var S;return(0,Z.Z)(this,g),(S=y.call(this,T))._tapNext=C.Z,S._tapError=C.Z,S._tapComplete=C.Z,S._tapError=E||C.Z,S._tapComplete=x||C.Z,(0,_.m)(M)?(S._context=(0,U.Z)(S),S._tapNext=M):M&&(S._context=M,S._tapNext=M.next||C.Z,S._tapError=M.error||C.Z,S._tapComplete=M.complete||C.Z),S}return(0,w.Z)(g,[{key:"_next",value:function(M){try{this._tapNext.call(this._context,M)}catch(E){return void this.destination.error(E)}this.destination.next(M)}},{key:"_error",value:function(M){try{this._tapError.call(this._context,M)}catch(E){return void this.destination.error(E)}this.destination.error(M)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(M){return void this.destination.error(M)}return this.destination.complete()}}]),g}(R.L)},243:function(le,q,f){"use strict";f.d(q,{d:function(){return R},P:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(32124),R={leading:!0,trailing:!1};function C(D){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R;return function(P){return P.lift(new _(D,!!O.leading,!!O.trailing))}}var _=function(){function D(O,P,y){(0,V.Z)(this,D),this.durationSelector=O,this.leading=P,this.trailing=y}return(0,Z.Z)(D,[{key:"call",value:function(P,y){return y.subscribe(new N(P,this.durationSelector,this.leading,this.trailing))}}]),D}(),N=function(D){(0,U.Z)(P,D);var O=(0,B.Z)(P);function P(y,g,T,M){var E;return(0,V.Z)(this,P),(E=O.call(this,y)).destination=y,E.durationSelector=g,E._leading=T,E._trailing=M,E._hasValue=!1,E}return(0,Z.Z)(P,[{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()}}]),P}(w.Ds)},88942:function(le,q,f){"use strict";f.d(q,{T:function(){return C}});var U=f(10509),B=f(97154),V=f(18967),Z=f(14105),w=f(64646),R=f(39874);function C(){var O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D;return function(P){return P.lift(new _(O))}}var _=function(){function O(P){(0,V.Z)(this,O),this.errorFactory=P}return(0,Z.Z)(O,[{key:"call",value:function(y,g){return g.subscribe(new N(y,this.errorFactory))}}]),O}(),N=function(O){(0,U.Z)(y,O);var P=(0,B.Z)(y);function y(g,T){var M;return(0,V.Z)(this,y),(M=P.call(this,g)).errorFactory=T,M.hasValue=!1,M}return(0,Z.Z)(y,[{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(M){T=M}this.destination.error(T)}}]),y}(R.L);function D(){return new w.K}},73445:function(le,q,f){"use strict";f.d(q,{J:function(){return R},R:function(){return C}});var U=f(18967),B=f(46813),V=f(31927),Z=f(4499),w=f(85639);function R(){var _=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.P;return function(N){return(0,Z.P)(function(){return N.pipe((0,V.R)(function(D,O){var P=D.current;return{value:O,current:_.now(),last:P}},{current:_.now(),value:void 0,last:void 0}),(0,w.U)(function(D){return new C(D.value,D.current-D.last)}))})}}var C=function _(N,D){(0,U.Z)(this,_),this.value=N,this.interval=D}},63706:function(le,q,f){"use strict";f.d(q,{A:function(){return Z},E:function(){return w}});var U=f(18967),B=f(46813),V=f(85639);function Z(){var R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.P;return(0,V.U)(function(C){return new w(C,R.now())})}var w=function R(C,_){(0,U.Z)(this,R),this.value=C,this.timestamp=_}},55835:function(le,q,f){"use strict";f.d(q,{r:function(){return V}});var U=f(89797),B=f(5051);function V(Z,w){return new U.y(function(R){var C=new B.w,_=0;return C.add(w.schedule(function(){_!==Z.length?(R.next(Z[_++]),R.closed||C.add(this.schedule())):R.complete()})),C})}},60612:function(le,q,f){"use strict";f.d(q,{Q:function(){return Z}});var U=f(89797),B=f(5051),V=f(81695);function Z(w,R){if(!w)throw new Error("Iterable cannot be null");return new U.y(function(C){var N,_=new B.w;return _.add(function(){N&&"function"==typeof N.return&&N.return()}),_.add(R.schedule(function(){N=w[V.hZ](),_.add(R.schedule(function(){if(!C.closed){var D,O;try{var P=N.next();D=P.value,O=P.done}catch(y){return void C.error(y)}O?C.complete():(C.next(D),this.schedule())}}))})),_})}},10498:function(le,q,f){"use strict";f.d(q,{c:function(){return V}});var U=f(89797),B=f(5051);function V(Z,w){return new U.y(function(R){var C=new B.w;return C.add(w.schedule(function(){return Z.then(function(_){C.add(w.schedule(function(){R.next(_),C.add(w.schedule(function(){return R.complete()}))}))},function(_){C.add(w.schedule(function(){return R.error(_)}))})})),C})}},77493:function(le,q,f){"use strict";f.d(q,{x:function(){return P}});var U=f(89797),B=f(5051),V=f(57694),w=f(10498),R=f(55835),C=f(60612),_=f(19104),N=f(36514),D=f(30621),O=f(2762);function P(y,g){if(null!=y){if((0,_.c)(y))return function(y,g){return new U.y(function(T){var M=new B.w;return M.add(g.schedule(function(){var E=y[V.L]();M.add(E.subscribe({next:function(S){M.add(g.schedule(function(){return T.next(S)}))},error:function(S){M.add(g.schedule(function(){return T.error(S)}))},complete:function(){M.add(g.schedule(function(){return T.complete()}))}}))})),M})}(y,g);if((0,N.t)(y))return(0,w.c)(y,g);if((0,D.z)(y))return(0,R.r)(y,g);if((0,O.T)(y)||"string"==typeof y)return(0,C.Q)(y,g)}throw new TypeError((null!==y&&typeof y||y)+" is not observable")}},4065:function(le,q,f){"use strict";f.d(q,{o:function(){return C}});var U=f(18967),B=f(14105),V=f(10509),Z=f(97154),C=function(_){(0,V.Z)(D,_);var N=(0,Z.Z)(D);function D(O,P){var y;return(0,U.Z)(this,D),(y=N.call(this,O,P)).scheduler=O,y.work=P,y.pending=!1,y}return(0,B.Z)(D,[{key:"schedule",value:function(P){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=P;var g=this.id,T=this.scheduler;return null!=g&&(this.id=this.recycleAsyncId(T,g,y)),this.pending=!0,this.delay=y,this.id=this.id||this.requestAsyncId(T,this.id,y),this}},{key:"requestAsyncId",value:function(P,y){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(P.flush.bind(P,this),g)}},{key:"recycleAsyncId",value:function(P,y){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==g&&this.delay===g&&!1===this.pending)return y;clearInterval(y)}},{key:"execute",value:function(P,y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var g=this._execute(P,y);if(g)return g;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(P,y){var g=!1,T=void 0;try{this.work(P)}catch(M){g=!0,T=!!M&&M||new Error(M)}if(g)return this.unsubscribe(),T}},{key:"_unsubscribe",value:function(){var P=this.id,y=this.scheduler,g=y.actions,T=g.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==T&&g.splice(T,1),null!=P&&(this.id=this.recycleAsyncId(y,P,null)),this.delay=null}}]),D}(function(_){(0,V.Z)(D,_);var N=(0,Z.Z)(D);function D(O,P){return(0,U.Z)(this,D),N.call(this)}return(0,B.Z)(D,[{key:"schedule",value:function(P){return this}}]),D}(f(5051).w))},81572:function(le,q,f){"use strict";f.d(q,{v:function(){return N}});var U=f(18967),B=f(14105),V=f(88009),Z=f(20901),w=f(89200),R=f(10509),C=f(97154),_=f(67801),N=function(D){(0,R.Z)(P,D);var O=(0,C.Z)(P);function P(y){var g,T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.b.now;return(0,U.Z)(this,P),(g=O.call(this,y,function(){return P.delegate&&P.delegate!==(0,V.Z)(g)?P.delegate.now():T()})).actions=[],g.active=!1,g.scheduled=void 0,g}return(0,B.Z)(P,[{key:"schedule",value:function(g){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,M=arguments.length>2?arguments[2]:void 0;return P.delegate&&P.delegate!==this?P.delegate.schedule(g,T,M):(0,Z.Z)((0,w.Z)(P.prototype),"schedule",this).call(this,g,T,M)}},{key:"flush",value:function(g){var T=this.actions;if(this.active)T.push(g);else{var M;this.active=!0;do{if(M=g.execute(g.state,g.delay))break}while(g=T.shift());if(this.active=!1,M){for(;g=T.shift();)g.unsubscribe();throw M}}}}]),P}(_.b)},2296:function(le,q,f){"use strict";f.d(q,{y:function(){return N},h:function(){return D}});var U=f(20901),B=f(89200),V=f(18967),Z=f(14105),w=f(10509),R=f(97154),C=f(4065),_=f(81572),N=function(){var O=function(P){(0,w.Z)(g,P);var y=(0,R.Z)(g);function g(){var T,M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return(0,V.Z)(this,g),(T=y.call(this,M,function(){return T.frame})).maxFrames=E,T.frame=0,T.index=-1,T}return(0,Z.Z)(g,[{key:"flush",value:function(){for(var x,S,M=this.actions,E=this.maxFrames;(S=M[0])&&S.delay<=E&&(M.shift(),this.frame=S.delay,!(x=S.execute(S.state,S.delay))););if(x){for(;S=M.shift();)S.unsubscribe();throw x}}}]),g}(_.v);return O.frameTimeFactor=10,O}(),D=function(O){(0,w.Z)(y,O);var P=(0,R.Z)(y);function y(g,T){var M,E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.index+=1;return(0,V.Z)(this,y),(M=P.call(this,g,T)).scheduler=g,M.work=T,M.index=E,M.active=!0,M.index=g.index=E,M}return(0,Z.Z)(y,[{key:"schedule",value:function(T){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return(0,U.Z)((0,B.Z)(y.prototype),"schedule",this).call(this,T,M);this.active=!1;var E=new y(this.scheduler,this.work);return this.add(E),E.schedule(T,M)}},{key:"requestAsyncId",value:function(T,M){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=T.frame+E;var x=T.actions;return x.push(this),x.sort(y.sortActions),!0}},{key:"recycleAsyncId",value:function(T,M){}},{key:"_execute",value:function(T,M){if(!0===this.active)return(0,U.Z)((0,B.Z)(y.prototype),"_execute",this).call(this,T,M)}}],[{key:"sortActions",value:function(T,M){return T.delay===M.delay?T.index===M.index?0:T.index>M.index?1:-1:T.delay>M.delay?1:-1}}]),y}(C.o)},58172:function(le,q,f){"use strict";f.d(q,{r:function(){return P},Z:function(){return O}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),w=f(10509),R=f(97154),_=function(y){(0,w.Z)(T,y);var g=(0,R.Z)(T);function T(M,E){var x;return(0,U.Z)(this,T),(x=g.call(this,M,E)).scheduler=M,x.work=E,x}return(0,B.Z)(T,[{key:"requestAsyncId",value:function(E,x){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==S&&S>0?(0,V.Z)((0,Z.Z)(T.prototype),"requestAsyncId",this).call(this,E,x,S):(E.actions.push(this),E.scheduled||(E.scheduled=requestAnimationFrame(function(){return E.flush(null)})))}},{key:"recycleAsyncId",value:function(E,x){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==S&&S>0||null===S&&this.delay>0)return(0,V.Z)((0,Z.Z)(T.prototype),"recycleAsyncId",this).call(this,E,x,S);0===E.actions.length&&(cancelAnimationFrame(x),E.scheduled=void 0)}}]),T}(f(4065).o),O=new(function(y){(0,w.Z)(T,y);var g=(0,R.Z)(T);function T(){return(0,U.Z)(this,T),g.apply(this,arguments)}return(0,B.Z)(T,[{key:"flush",value:function(E){this.active=!0,this.scheduled=void 0;var S,x=this.actions,A=-1,L=x.length;E=E||x.shift();do{if(S=E.execute(E.state,E.delay))break}while(++A<L&&(E=x.shift()));if(this.active=!1,S){for(;++A<L&&(E=x.shift());)E.unsubscribe();throw S}}}]),T}(f(81572).v))(_),P=O},8285:function(le,q,f){"use strict";f.d(q,{e:function(){return y},E:function(){return P}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),w=f(10509),R=f(97154),C=f(96421),N=function(g){(0,w.Z)(M,g);var T=(0,R.Z)(M);function M(E,x){var S;return(0,U.Z)(this,M),(S=T.call(this,E,x)).scheduler=E,S.work=x,S}return(0,B.Z)(M,[{key:"requestAsyncId",value:function(x,S){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==A&&A>0?(0,V.Z)((0,Z.Z)(M.prototype),"requestAsyncId",this).call(this,x,S,A):(x.actions.push(this),x.scheduled||(x.scheduled=C.H.setImmediate(x.flush.bind(x,null))))}},{key:"recycleAsyncId",value:function(x,S){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==A&&A>0||null===A&&this.delay>0)return(0,V.Z)((0,Z.Z)(M.prototype),"recycleAsyncId",this).call(this,x,S,A);0===x.actions.length&&(C.H.clearImmediate(S),x.scheduled=void 0)}}]),M}(f(4065).o),P=new(function(g){(0,w.Z)(M,g);var T=(0,R.Z)(M);function M(){return(0,U.Z)(this,M),T.apply(this,arguments)}return(0,B.Z)(M,[{key:"flush",value:function(x){this.active=!0,this.scheduled=void 0;var A,S=this.actions,L=-1,j=S.length;x=x||S.shift();do{if(A=x.execute(x.state,x.delay))break}while(++L<j&&(x=S.shift()));if(this.active=!1,A){for(;++L<j&&(x=S.shift());)x.unsubscribe();throw A}}}]),M}(f(81572).v))(N),y=P},46813:function(le,q,f){"use strict";f.d(q,{z:function(){return V},P:function(){return Z}});var U=f(4065),V=new(f(81572).v)(U.o),Z=V},60641:function(le,q,f){"use strict";f.d(q,{c:function(){return P},N:function(){return O}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),w=f(10509),R=f(97154),_=function(y){(0,w.Z)(T,y);var g=(0,R.Z)(T);function T(M,E){var x;return(0,U.Z)(this,T),(x=g.call(this,M,E)).scheduler=M,x.work=E,x}return(0,B.Z)(T,[{key:"schedule",value:function(E){var x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return x>0?(0,V.Z)((0,Z.Z)(T.prototype),"schedule",this).call(this,E,x):(this.delay=x,this.state=E,this.scheduler.flush(this),this)}},{key:"execute",value:function(E,x){return x>0||this.closed?(0,V.Z)((0,Z.Z)(T.prototype),"execute",this).call(this,E,x):this._execute(E,x)}},{key:"requestAsyncId",value:function(E,x){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==S&&S>0||null===S&&this.delay>0?(0,V.Z)((0,Z.Z)(T.prototype),"requestAsyncId",this).call(this,E,x,S):E.flush(this)}}]),T}(f(4065).o),O=new(function(y){(0,w.Z)(T,y);var g=(0,R.Z)(T);function T(){return(0,U.Z)(this,T),g.apply(this,arguments)}return T}(f(81572).v))(_),P=O},81695:function(le,q,f){"use strict";function U(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}f.d(q,{hZ:function(){return B}});var B=U()},57694:function(le,q,f){"use strict";f.d(q,{L:function(){return U}});var U=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},79542:function(le,q,f){"use strict";f.d(q,{b:function(){return U}});var U=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},9855:function(le,q,f){"use strict";f.d(q,{W:function(){return B}});var B=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(le,q,f){"use strict";f.d(q,{K:function(){return B}});var B=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(le,q,f){"use strict";f.d(q,{H:function(){return w}});var U=1,B=function(){return Promise.resolve()}(),V={};function Z(C){return C in V&&(delete V[C],!0)}var w={setImmediate:function(_){var N=U++;return V[N]=!0,B.then(function(){return Z(N)&&_()}),N},clearImmediate:function(_){Z(_)}}},1696:function(le,q,f){"use strict";f.d(q,{N:function(){return B}});var B=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(le,q,f){"use strict";f.d(q,{W:function(){return B}});var B=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(le,q,f){"use strict";f.d(q,{B:function(){return B}});var B=function(){function V(Z){return Error.call(this),this.message=Z?"".concat(Z.length," errors occurred during unsubscription:\n").concat(Z.map(function(w,R){return"".concat(R+1,") ").concat(w.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=Z,this}return V.prototype=Object.create(Error.prototype),V}()},2808:function(le,q,f){"use strict";function U(B,V){for(var Z=0,w=V.length;Z<w;Z++)for(var R=V[Z],C=Object.getOwnPropertyNames(R.prototype),_=0,N=C.length;_<N;_++){var D=C[_];B.prototype[D]=R.prototype[D]}}f.d(q,{e:function(){return U}})},20006:function(le,q,f){"use strict";f.d(q,{_:function(){return B}});var U=f(39874);function B(V){for(;V;){var R=V.destination;if(V.closed||V.isStopped)return!1;V=R&&R instanceof U.L?R:null}return!0}},82009:function(le,q,f){"use strict";function U(B){setTimeout(function(){throw B},0)}f.d(q,{z:function(){return U}})},57070:function(le,q,f){"use strict";function U(B){return B}f.d(q,{y:function(){return U}})},78985:function(le,q,f){"use strict";f.d(q,{k:function(){return U}});var U=function(){return Array.isArray||function(B){return B&&"number"==typeof B.length}}()},30621:function(le,q,f){"use strict";f.d(q,{z:function(){return U}});var U=function(V){return V&&"number"==typeof V.length&&"function"!=typeof V}},88972:function(le,q,f){"use strict";function U(B){return B instanceof Date&&!isNaN(+B)}f.d(q,{J:function(){return U}})},20684:function(le,q,f){"use strict";function U(B){return"function"==typeof B}f.d(q,{m:function(){return U}})},19104:function(le,q,f){"use strict";f.d(q,{c:function(){return B}});var U=f(57694);function B(V){return V&&"function"==typeof V[U.L]}},2762:function(le,q,f){"use strict";f.d(q,{T:function(){return B}});var U=f(81695);function B(V){return V&&"function"==typeof V[U.hZ]}},11705:function(le,q,f){"use strict";f.d(q,{k:function(){return B}});var U=f(78985);function B(V){return!(0,U.k)(V)&&V-parseFloat(V)+1>=0}},64902:function(le,q,f){"use strict";function U(B){return null!==B&&"object"==typeof B}f.d(q,{K:function(){return U}})},17504:function(le,q,f){"use strict";f.d(q,{b:function(){return B}});var U=f(89797);function B(V){return!!V&&(V instanceof U.y||"function"==typeof V.lift&&"function"==typeof V.subscribe)}},36514:function(le,q,f){"use strict";function U(B){return!!B&&"function"!=typeof B.subscribe&&"function"==typeof B.then}f.d(q,{t:function(){return U}})},91299:function(le,q,f){"use strict";function U(B){return B&&"function"==typeof B.schedule}f.d(q,{K:function(){return U}})},66029:function(le,q,f){"use strict";function U(){}f.d(q,{Z:function(){return U}})},59849:function(le,q,f){"use strict";function U(B,V){function Z(){return!Z.pred.apply(Z.thisArg,arguments)}return Z.pred=B,Z.thisArg=V,Z}f.d(q,{f:function(){return U}})},96194:function(le,q,f){"use strict";f.d(q,{z:function(){return B},U:function(){return V}});var U=f(57070);function B(){for(var Z=arguments.length,w=new Array(Z),R=0;R<Z;R++)w[R]=arguments[R];return V(w)}function V(Z){return 0===Z.length?U.y:1===Z.length?Z[0]:function(R){return Z.reduce(function(C,_){return _(C)},R)}}},44962:function(le,q,f){"use strict";f.d(q,{J:function(){return Z}});var U="undefined"!=typeof window&&window,B="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,V="undefined"!=typeof global&&global,Z=U||V||B},20735:function(le,q,f){"use strict";f.d(q,{s:function(){return D}});var U=f(22312),B=f(56112),V=f(49089),Z=f(71414),w=f(30621),R=f(36514),C=f(64902),_=f(81695),N=f(57694),D=function(P){if(P&&"function"==typeof P[N.L])return(0,Z.h)(P);if((0,w.z)(P))return(0,U.V)(P);if((0,R.t)(P))return(0,B.A)(P);if(P&&"function"==typeof P[_.hZ])return(0,V.u)(P);var y=(0,C.K)(P)?"an invalid object":"'".concat(P,"'"),g="You provided ".concat(y," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(g)}},22312:function(le,q,f){"use strict";f.d(q,{V:function(){return U}});var U=function(V){return function(Z){for(var w=0,R=V.length;w<R&&!Z.closed;w++)Z.next(V[w]);Z.complete()}}},49089:function(le,q,f){"use strict";f.d(q,{u:function(){return B}});var U=f(81695),B=function(Z){return function(w){for(var R=Z[U.hZ]();;){var C=void 0;try{C=R.next()}catch(_){return w.error(_),w}if(C.done){w.complete();break}if(w.next(C.value),w.closed)break}return"function"==typeof R.return&&w.add(function(){R.return&&R.return()}),w}}},71414:function(le,q,f){"use strict";f.d(q,{h:function(){return B}});var U=f(57694),B=function(Z){return function(w){var R=Z[U.L]();if("function"!=typeof R.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return R.subscribe(w)}}},56112:function(le,q,f){"use strict";f.d(q,{A:function(){return B}});var U=f(82009),B=function(Z){return function(w){return Z.then(function(R){w.closed||(w.next(R),w.complete())},function(R){return w.error(R)}).then(null,U.z),w}}},61454:function(le,q,f){"use strict";f.d(q,{D:function(){return Z}});var U=f(22320),B=f(20735),V=f(89797);function Z(w,R,C,_){var N=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new U.d(w,C,_);if(!N.closed)return R instanceof V.y?R.subscribe(N):(0,B.s)(R)(N)}},3410:function(le,q,f){"use strict";f.d(q,{Y:function(){return Z}});var U=f(39874),B=f(79542),V=f(88944);function Z(w,R,C){if(w){if(w instanceof U.L)return w;if(w[B.b])return w[B.b]()}return w||R||C?new U.L(w,R,C):new U.L(V.c)}},73033:function(le,q,f){"use strict";f.r(q),f.d(q,{audit:function(){return U.U},auditTime:function(){return B.e},buffer:function(){return N},bufferCount:function(){return T},bufferTime:function(){return L},bufferToggle:function(){return oe},bufferWhen:function(){return ve},catchError:function(){return gt.K},combineAll:function(){return Rt},combineLatest:function(){return Xe},concat:function(){return Et},concatAll:function(){return vt.u},concatMap:function(){return Xt.b},concatMapTo:function(){return qt},count:function(){return Ct.Q},debounce:function(){return jt},debounceTime:function(){return Ut.b},defaultIfEmpty:function(){return an.d},delay:function(){return An.g},delayWhen:function(){return Zn},dematerialize:function(){return Kt},distinct:function(){return _e},distinctUntilChanged:function(){return Ge.x},distinctUntilKeyChanged:function(){return Ye},elementAt:function(){return cn},endWith:function(){return xn},every:function(){return Nn},exhaust:function(){return Sn},exhaustMap:function(){return pt},expand:function(){return at},filter:function(){return Lt.h},finalize:function(){return Ae.x},find:function(){return Le},findIndex:function(){return mn},first:function(){return Xn.P},flatMap:function(){return zt.VS},groupBy:function(){return Jr.v},ignoreElements:function(){return ai},isEmpty:function(){return co},last:function(){return fa.Z},map:function(){return sn.U},mapTo:function(){return vs.h},materialize:function(){return wa},max:function(){return Yn},merge:function(){return Qt},mergeAll:function(){return Pt.J},mergeMap:function(){return zt.zg},mergeMapTo:function(){return $t},mergeScan:function(){return tn},min:function(){return Wn},multicast:function(){return Gn.O},observeOn:function(){return mi.QV},onErrorResumeNext:function(){return Bi},pairwise:function(){return Jo.G},partition:function(){return Ao},pluck:function(){return wi},publish:function(){return Ui},publishBehavior:function(){return Fa},publishLast:function(){return ho},publishReplay:function(){return Ba},race:function(){return Fo},reduce:function(){return Zi},refCount:function(){return md.x},repeat:function(){return ns},repeatWhen:function(){return fl},retry:function(){return Tu},retryWhen:function(){return xu},sample:function(){return wu},sampleTime:function(){return vd},scan:function(){return Co.R},sequenceEqual:function(){return Ko},share:function(){return Sp.B},shareReplay:function(){return Ee.d},single:function(){return Pe},skip:function(){return we.T},skipLast:function(){return Ft},skipUntil:function(){return pe},skipWhile:function(){return qe},startWith:function(){return ln.O},subscribeOn:function(){return nr},switchAll:function(){return Bt},switchMap:function(){return _r.w},switchMapTo:function(){return Do},take:function(){return rn.q},takeLast:function(){return Fi.h},takeUntil:function(){return ci.R},takeWhile:function(){return Qi.o},tap:function(){return Ea.b},throttle:function(){return Ci.P},throttleTime:function(){return Hi},throwIfEmpty:function(){return Yt.T},timeInterval:function(){return oa.J},timeout:function(){return Nr},timeoutWith:function(){return xp},timestamp:function(){return wp.A},toArray:function(){return kp},window:function(){return Ep},windowCount:function(){return vv},windowTime:function(){return ee},windowToggle:function(){return pn},windowWhen:function(){return $n},withLatestFrom:function(){return wr},zip:function(){return si},zipAll:function(){return vo}});var U=f(67494),B=f(54562),V=f(88009),Z=f(10509),w=f(97154),R=f(18967),C=f(14105),_=f(32124);function N(Re){return function(be){return be.lift(new D(Re))}}var D=function(){function Re(We){(0,R.Z)(this,Re),this.closingNotifier=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new O(be,this.closingNotifier))}}]),Re}(),O=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze)).buffer=[],rt.add((0,_.ft)(De,new _.IY((0,V.Z)(rt)))),rt}return(0,C.Z)(be,[{key:"_next",value:function(De){this.buffer.push(De)}},{key:"notifyNext",value:function(){var De=this.buffer;this.buffer=[],this.destination.next(De)}}]),be}(_.Ds),P=f(20901),y=f(89200),g=f(39874);function T(Re){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(Ze){return Ze.lift(new M(Re,We))}}var M=function(){function Re(We,be){(0,R.Z)(this,Re),this.bufferSize=We,this.startBufferEvery=be,this.subscriberClass=be&&We!==be?x:E}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new this.subscriberClass(be,this.bufferSize,this.startBufferEvery))}}]),Re}(),E=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze)).bufferSize=De,rt.buffer=[],rt}return(0,C.Z)(be,[{key:"_next",value:function(De){var rt=this.buffer;rt.push(De),rt.length==this.bufferSize&&(this.destination.next(rt),this.buffer=[])}},{key:"_complete",value:function(){var De=this.buffer;De.length>0&&this.destination.next(De),(0,P.Z)((0,y.Z)(be.prototype),"_complete",this).call(this)}}]),be}(g.L),x=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).bufferSize=De,St.startBufferEvery=rt,St.buffers=[],St.count=0,St}return(0,C.Z)(be,[{key:"_next",value:function(De){var rt=this.bufferSize,St=this.startBufferEvery,un=this.buffers,Cn=this.count;this.count++,Cn%St==0&&un.push([]);for(var Mr=un.length;Mr--;){var Oi=un[Mr];Oi.push(De),Oi.length===rt&&(un.splice(Mr,1),this.destination.next(Oi))}}},{key:"_complete",value:function(){for(var De=this.buffers,rt=this.destination;De.length>0;){var St=De.shift();St.length>0&&rt.next(St)}(0,P.Z)((0,y.Z)(be.prototype),"_complete",this).call(this)}}]),be}(g.L),S=f(46813),A=f(91299);function L(Re){var We=arguments.length,be=S.P;(0,A.K)(arguments[arguments.length-1])&&(be=arguments[arguments.length-1],We--);var Ze=null;We>=2&&(Ze=arguments[1]);var De=Number.POSITIVE_INFINITY;return We>=3&&(De=arguments[2]),function(St){return St.lift(new j(Re,Ze,De,be))}}var j=function(){function Re(We,be,Ze,De){(0,R.Z)(this,Re),this.bufferTimeSpan=We,this.bufferCreationInterval=be,this.maxBufferSize=Ze,this.scheduler=De}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new z(be,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),Re}(),K=function Re(){(0,R.Z)(this,Re),this.buffer=[]},z=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St,un){var Cn;(0,R.Z)(this,be),(Cn=We.call(this,Ze)).bufferTimeSpan=De,Cn.bufferCreationInterval=rt,Cn.maxBufferSize=St,Cn.scheduler=un,Cn.contexts=[];var Mr=Cn.openContext();if(Cn.timespanOnly=null==rt||rt<0,Cn.timespanOnly){var Oi={subscriber:(0,V.Z)(Cn),context:Mr,bufferTimeSpan:De};Cn.add(Mr.closeAction=un.schedule(Q,De,Oi))}else{var Ho={subscriber:(0,V.Z)(Cn),context:Mr},ha={bufferTimeSpan:De,bufferCreationInterval:rt,subscriber:(0,V.Z)(Cn),scheduler:un};Cn.add(Mr.closeAction=un.schedule(ie,De,Ho)),Cn.add(un.schedule(ae,rt,ha))}return Cn}return(0,C.Z)(be,[{key:"_next",value:function(De){for(var un,rt=this.contexts,St=rt.length,Cn=0;Cn<St;Cn++){var Mr=rt[Cn],Oi=Mr.buffer;Oi.push(De),Oi.length==this.maxBufferSize&&(un=Mr)}un&&this.onBufferFull(un)}},{key:"_error",value:function(De){this.contexts.length=0,(0,P.Z)((0,y.Z)(be.prototype),"_error",this).call(this,De)}},{key:"_complete",value:function(){for(var De=this.contexts,rt=this.destination;De.length>0;){var St=De.shift();rt.next(St.buffer)}(0,P.Z)((0,y.Z)(be.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(De){this.closeContext(De);var rt=De.closeAction;if(rt.unsubscribe(),this.remove(rt),!this.closed&&this.timespanOnly){De=this.openContext();var St=this.bufferTimeSpan;this.add(De.closeAction=this.scheduler.schedule(Q,St,{subscriber:this,context:De,bufferTimeSpan:St}))}}},{key:"openContext",value:function(){var De=new K;return this.contexts.push(De),De}},{key:"closeContext",value:function(De){this.destination.next(De.buffer);var rt=this.contexts;(rt?rt.indexOf(De):-1)>=0&&rt.splice(rt.indexOf(De),1)}}]),be}(g.L);function Q(Re){var We=Re.subscriber,be=Re.context;be&&We.closeContext(be),We.closed||(Re.context=We.openContext(),Re.context.closeAction=this.schedule(Re,Re.bufferTimeSpan))}function ae(Re){var We=Re.bufferCreationInterval,be=Re.bufferTimeSpan,Ze=Re.subscriber,De=Re.scheduler,rt=Ze.openContext();Ze.closed||(Ze.add(rt.closeAction=De.schedule(ie,be,{subscriber:Ze,context:rt})),this.schedule(Re,We))}function ie(Re){Re.subscriber.closeContext(Re.context)}var se=f(5051),ue=f(61454),de=f(7283);function oe(Re,We){return function(Ze){return Ze.lift(new $(Re,We))}}var $=function(){function Re(We,be){(0,R.Z)(this,Re),this.openings=We,this.closingSelector=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new ye(be,this.openings,this.closingSelector))}}]),Re}(),ye=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).closingSelector=rt,St.contexts=[],St.add((0,ue.D)((0,V.Z)(St),De)),St}return(0,C.Z)(be,[{key:"_next",value:function(De){for(var rt=this.contexts,St=rt.length,un=0;un<St;un++)rt[un].buffer.push(De)}},{key:"_error",value:function(De){for(var rt=this.contexts;rt.length>0;){var St=rt.shift();St.subscription.unsubscribe(),St.buffer=null,St.subscription=null}this.contexts=null,(0,P.Z)((0,y.Z)(be.prototype),"_error",this).call(this,De)}},{key:"_complete",value:function(){for(var De=this.contexts;De.length>0;){var rt=De.shift();this.destination.next(rt.buffer),rt.subscription.unsubscribe(),rt.buffer=null,rt.subscription=null}this.contexts=null,(0,P.Z)((0,y.Z)(be.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(De,rt){De?this.closeBuffer(De):this.openBuffer(rt)}},{key:"notifyComplete",value:function(De){this.closeBuffer(De.context)}},{key:"openBuffer",value:function(De){try{var St=this.closingSelector.call(this,De);St&&this.trySubscribe(St)}catch(un){this._error(un)}}},{key:"closeBuffer",value:function(De){var rt=this.contexts;if(rt&&De){var un=De.subscription;this.destination.next(De.buffer),rt.splice(rt.indexOf(De),1),this.remove(un),un.unsubscribe()}}},{key:"trySubscribe",value:function(De){var rt=this.contexts,un=new se.w,Cn={buffer:[],subscription:un};rt.push(Cn);var Mr=(0,ue.D)(this,De,Cn);!Mr||Mr.closed?this.closeBuffer(Cn):(Mr.context=Cn,this.add(Mr),un.add(Mr))}}]),be}(de.L);function ve(Re){return function(We){return We.lift(new et(Re))}}var et=function(){function Re(We){(0,R.Z)(this,Re),this.closingSelector=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Ne(be,this.closingSelector))}}]),Re}(),Ne=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze)).closingSelector=De,rt.subscribing=!1,rt.openBuffer(),rt}return(0,C.Z)(be,[{key:"_next",value:function(De){this.buffer.push(De)}},{key:"_complete",value:function(){var De=this.buffer;De&&this.destination.next(De),(0,P.Z)((0,y.Z)(be.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 St,De=this.closingSubscription;De&&(this.remove(De),De.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{St=(0,this.closingSelector)()}catch(Cn){return this.error(Cn)}De=new se.w,this.closingSubscription=De,this.add(De),this.subscribing=!0,De.add((0,_.ft)(St,new _.IY(this))),this.subscribing=!1}}]),be}(_.Ds),gt=f(13426),_t=f(81370);function Rt(Re){return function(We){return We.lift(new _t.Ms(Re))}}var Se=f(10629),Oe=f(78985),je=f(61493);function Xe(){for(var Re=arguments.length,We=new Array(Re),be=0;be<Re;be++)We[be]=arguments[be];var Ze=null;return"function"==typeof We[We.length-1]&&(Ze=We.pop()),1===We.length&&(0,Oe.k)(We[0])&&(We=We[0].slice()),function(De){return De.lift.call((0,je.D)([De].concat((0,Se.Z)(We))),new _t.Ms(Ze))}}var Ht=f(60131);function Et(){for(var Re=arguments.length,We=new Array(Re),be=0;be<Re;be++)We[be]=arguments[be];return function(Ze){return Ze.lift.call(Ht.z.apply(void 0,[Ze].concat(We)))}}var vt=f(95416),Xt=f(38575);function qt(Re,We){return(0,Xt.b)(function(){return Re},We)}var Ct=f(75398);function jt(Re){return function(We){return We.lift(new bt(Re))}}var bt=function(){function Re(We){(0,R.Z)(this,Re),this.durationSelector=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new nn(be,this.durationSelector))}}]),Re}(),nn=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze)).durationSelector=De,rt.hasValue=!1,rt}return(0,C.Z)(be,[{key:"_next",value:function(De){try{var rt=this.durationSelector.call(this,De);rt&&this._tryNext(De,rt)}catch(St){this.destination.error(St)}}},{key:"_complete",value:function(){this.emitValue(),this.destination.complete()}},{key:"_tryNext",value:function(De,rt){var St=this.durationSubscription;this.value=De,this.hasValue=!0,St&&(St.unsubscribe(),this.remove(St)),(St=(0,_.ft)(rt,new _.IY(this)))&&!St.closed&&this.add(this.durationSubscription=St)}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){if(this.hasValue){var De=this.value,rt=this.durationSubscription;rt&&(this.durationSubscription=void 0,rt.unsubscribe(),this.remove(rt)),this.value=void 0,this.hasValue=!1,(0,P.Z)((0,y.Z)(be.prototype),"_next",this).call(this,De)}}}]),be}(_.Ds),Ut=f(57263),an=f(34235),An=f(86004),Hn=f(89797);function Zn(Re,We){return We?function(be){return new En(be,We).lift(new lr(Re))}:function(be){return be.lift(new lr(Re))}}var lr=function(){function Re(We){(0,R.Z)(this,Re),this.delayDurationSelector=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Bn(be,this.delayDurationSelector))}}]),Re}(),Bn=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze)).delayDurationSelector=De,rt.completed=!1,rt.delayNotifierSubscriptions=[],rt.index=0,rt}return(0,C.Z)(be,[{key:"notifyNext",value:function(De,rt,St,un,Cn){this.destination.next(De),this.removeSubscription(Cn),this.tryComplete()}},{key:"notifyError",value:function(De,rt){this._error(De)}},{key:"notifyComplete",value:function(De){var rt=this.removeSubscription(De);rt&&this.destination.next(rt),this.tryComplete()}},{key:"_next",value:function(De){var rt=this.index++;try{var St=this.delayDurationSelector(De,rt);St&&this.tryDelay(St,De)}catch(un){this.destination.error(un)}}},{key:"_complete",value:function(){this.completed=!0,this.tryComplete(),this.unsubscribe()}},{key:"removeSubscription",value:function(De){De.unsubscribe();var rt=this.delayNotifierSubscriptions.indexOf(De);return-1!==rt&&this.delayNotifierSubscriptions.splice(rt,1),De.outerValue}},{key:"tryDelay",value:function(De,rt){var St=(0,ue.D)(this,De,rt);St&&!St.closed&&(this.destination.add(St),this.delayNotifierSubscriptions.push(St))}},{key:"tryComplete",value:function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}]),be}(de.L),En=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this)).source=Ze,rt.subscriptionDelay=De,rt}return(0,C.Z)(be,[{key:"_subscribe",value:function(De){this.subscriptionDelay.subscribe(new mr(De,this.source))}}]),be}(Hn.y),mr=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this)).parent=Ze,rt.source=De,rt.sourceSubscribed=!1,rt}return(0,C.Z)(be,[{key:"_next",value:function(De){this.subscribeToSource()}},{key:"_error",value:function(De){this.unsubscribe(),this.parent.error(De)}},{key:"_complete",value:function(){this.unsubscribe(),this.subscribeToSource()}},{key:"subscribeToSource",value:function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}]),be}(g.L);function Kt(){return function(We){return We.lift(new wt)}}var wt=function(){function Re(){(0,R.Z)(this,Re)}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new ot(be))}}]),Re}(),ot=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze){return(0,R.Z)(this,be),We.call(this,Ze)}return(0,C.Z)(be,[{key:"_next",value:function(De){De.observe(this.destination)}}]),be}(g.L);function _e(Re,We){return function(be){return be.lift(new re(Re,We))}}var re=function(){function Re(We,be){(0,R.Z)(this,Re),this.keySelector=We,this.flushes=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new he(be,this.keySelector,this.flushes))}}]),Re}(),he=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).keySelector=De,St.values=new Set,rt&&St.add((0,_.ft)(rt,new _.IY((0,V.Z)(St)))),St}return(0,C.Z)(be,[{key:"notifyNext",value:function(){this.values.clear()}},{key:"notifyError",value:function(De){this._error(De)}},{key:"_next",value:function(De){this.keySelector?this._useKeySelector(De):this._finalizeNext(De,De)}},{key:"_useKeySelector",value:function(De){var rt,St=this.destination;try{rt=this.keySelector(De)}catch(un){return void St.error(un)}this._finalizeNext(rt,De)}},{key:"_finalizeNext",value:function(De,rt){var St=this.values;St.has(De)||(St.add(De),this.destination.next(rt))}}]),be}(_.Ds),Ge=f(76161);function Ye(Re,We){return(0,Ge.x)(function(be,Ze){return We?We(be[Re],Ze[Re]):be[Re]===Ze[Re]})}var yt=f(9855),Lt=f(58780),Yt=f(88942),rn=f(48359);function cn(Re,We){if(Re<0)throw new yt.W;var be=arguments.length>=2;return function(Ze){return Ze.pipe((0,Lt.h)(function(De,rt){return rt===Re}),(0,rn.q)(1),be?(0,an.d)(We):(0,Yt.T)(function(){return new yt.W}))}}var _n=f(43161);function xn(){for(var Re=arguments.length,We=new Array(Re),be=0;be<Re;be++)We[be]=arguments[be];return function(Ze){return(0,Ht.z)(Ze,_n.of.apply(void 0,We))}}function Nn(Re,We){return function(be){return be.lift(new er(Re,We,be))}}var er=function(){function Re(We,be,Ze){(0,R.Z)(this,Re),this.predicate=We,this.thisArg=be,this.source=Ze}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new wn(be,this.predicate,this.thisArg,this.source))}}]),Re}(),wn=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St){var un;return(0,R.Z)(this,be),(un=We.call(this,Ze)).predicate=De,un.thisArg=rt,un.source=St,un.index=0,un.thisArg=rt||(0,V.Z)(un),un}return(0,C.Z)(be,[{key:"notifyComplete",value:function(De){this.destination.next(De),this.destination.complete()}},{key:"_next",value:function(De){var rt=!1;try{rt=this.predicate.call(this.thisArg,De,this.index++,this.source)}catch(St){return void this.destination.error(St)}rt||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),be}(g.L);function Sn(){return function(Re){return Re.lift(new ir)}}var ir=function(){function Re(){(0,R.Z)(this,Re)}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Vt(be))}}]),Re}(),Vt=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze){var De;return(0,R.Z)(this,be),(De=We.call(this,Ze)).hasCompleted=!1,De.hasSubscription=!1,De}return(0,C.Z)(be,[{key:"_next",value:function(De){this.hasSubscription||(this.hasSubscription=!0,this.add((0,_.ft)(De,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()}}]),be}(_.Ds),sn=f(85639);function pt(Re,We){return We?function(be){return be.pipe(pt(function(Ze,De){return(0,je.D)(Re(Ze,De)).pipe((0,sn.U)(function(rt,St){return We(Ze,rt,De,St)}))}))}:function(be){return be.lift(new dt(Re))}}var dt=function(){function Re(We){(0,R.Z)(this,Re),this.project=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Ue(be,this.project))}}]),Re}(),Ue=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze)).project=De,rt.hasSubscription=!1,rt.hasCompleted=!1,rt.index=0,rt}return(0,C.Z)(be,[{key:"_next",value:function(De){this.hasSubscription||this.tryNext(De)}},{key:"tryNext",value:function(De){var rt,St=this.index++;try{rt=this.project(De,St)}catch(un){return void this.destination.error(un)}this.hasSubscription=!0,this._innerSub(rt)}},{key:"_innerSub",value:function(De){var rt=new _.IY(this),St=this.destination;St.add(rt);var un=(0,_.ft)(De,rt);un!==rt&&St.add(un)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(De){this.destination.next(De)}},{key:"notifyError",value:function(De){this.destination.error(De)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),be}(_.Ds);function at(Re){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,be=arguments.length>2?arguments[2]:void 0;return We=(We||0)<1?Number.POSITIVE_INFINITY:We,function(Ze){return Ze.lift(new Ce(Re,We,be))}}var Ce=function(){function Re(We,be,Ze){(0,R.Z)(this,Re),this.project=We,this.concurrent=be,this.scheduler=Ze}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Fe(be,this.project,this.concurrent,this.scheduler))}}]),Re}(),Fe=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St){var un;return(0,R.Z)(this,be),(un=We.call(this,Ze)).project=De,un.concurrent=rt,un.scheduler=St,un.index=0,un.active=0,un.hasCompleted=!1,rt<Number.POSITIVE_INFINITY&&(un.buffer=[]),un}return(0,C.Z)(be,[{key:"_next",value:function(De){var rt=this.destination;if(rt.closed)this._complete();else{var St=this.index++;if(this.active<this.concurrent){rt.next(De);try{var Cn=(0,this.project)(De,St);this.scheduler?this.destination.add(this.scheduler.schedule(be.dispatch,0,{subscriber:this,result:Cn,value:De,index:St})):this.subscribeToProjection(Cn,De,St)}catch(Ho){rt.error(Ho)}}else this.buffer.push(De)}}},{key:"subscribeToProjection",value:function(De,rt,St){this.active++,this.destination.add((0,_.ft)(De,new _.IY(this)))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(De){this._next(De)}},{key:"notifyComplete",value:function(){var De=this.buffer;this.active--,De&&De.length>0&&this._next(De.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(De){De.subscriber.subscribeToProjection(De.result,De.value,De.index)}}]),be}(_.Ds),Ae=f(59803);function Le(Re,We){if("function"!=typeof Re)throw new TypeError("predicate is not a function");return function(be){return be.lift(new ze(Re,be,!1,We))}}var ze=function(){function Re(We,be,Ze,De){(0,R.Z)(this,Re),this.predicate=We,this.source=be,this.yieldIndex=Ze,this.thisArg=De}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Nt(be,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),Re}(),Nt=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St,un){var Cn;return(0,R.Z)(this,be),(Cn=We.call(this,Ze)).predicate=De,Cn.source=rt,Cn.yieldIndex=St,Cn.thisArg=un,Cn.index=0,Cn}return(0,C.Z)(be,[{key:"notifyComplete",value:function(De){var rt=this.destination;rt.next(De),rt.complete(),this.unsubscribe()}},{key:"_next",value:function(De){var rt=this.predicate,St=this.thisArg,un=this.index++;try{rt.call(St||this,De,un,this.source)&&this.notifyComplete(this.yieldIndex?un:De)}catch(Mr){this.destination.error(Mr)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),be}(g.L);function mn(Re,We){return function(be){return be.lift(new ze(Re,be,!0,We))}}var Xn=f(64233),Jr=f(86072);function ai(){return function(We){return We.lift(new Ir)}}var Ir=function(){function Re(){(0,R.Z)(this,Re)}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new vi(be))}}]),Re}(),vi=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(){return(0,R.Z)(this,be),We.apply(this,arguments)}return(0,C.Z)(be,[{key:"_next",value:function(De){}}]),be}(g.L);function co(){return function(Re){return Re.lift(new Gi)}}var Gi=function(){function Re(){(0,R.Z)(this,Re)}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Yo(be))}}]),Re}(),Yo=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze){return(0,R.Z)(this,be),We.call(this,Ze)}return(0,C.Z)(be,[{key:"notifyComplete",value:function(De){var rt=this.destination;rt.next(De),rt.complete()}},{key:"_next",value:function(De){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),be}(g.L),fa=f(99583),vs=f(12698),bo=f(80286);function wa(){return function(We){return We.lift(new Yi)}}var Yi=function(){function Re(){(0,R.Z)(this,Re)}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new po(be))}}]),Re}(),po=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze){return(0,R.Z)(this,be),We.call(this,Ze)}return(0,C.Z)(be,[{key:"_next",value:function(De){this.destination.next(bo.P.createNext(De))}},{key:"_error",value:function(De){var rt=this.destination;rt.next(bo.P.createError(De)),rt.complete()}},{key:"_complete",value:function(){var De=this.destination;De.next(bo.P.createComplete()),De.complete()}}]),be}(g.L),Co=f(31927),Fi=f(64397),gs=f(96194);function Zi(Re,We){return arguments.length>=2?function(Ze){return(0,gs.z)((0,Co.R)(Re,We),(0,Fi.h)(1),(0,an.d)(We))(Ze)}:function(Ze){return(0,gs.z)((0,Co.R)(function(De,rt,St){return Re(De,rt,St+1)}),(0,Fi.h)(1))(Ze)}}function Yn(Re){return Zi("function"==typeof Re?function(be,Ze){return Re(be,Ze)>0?be:Ze}:function(be,Ze){return be>Ze?be:Ze})}var It=f(55371);function Qt(){for(var Re=arguments.length,We=new Array(Re),be=0;be<Re;be++)We[be]=arguments[be];return function(Ze){return Ze.lift.call(It.T.apply(void 0,[Ze].concat(We)))}}var Pt=f(65890),zt=f(35135);function $t(Re,We){var be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof We?(0,zt.zg)(function(){return Re},We,be):("number"==typeof We&&(be=We),(0,zt.zg)(function(){return Re},be))}function tn(Re,We){var be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(Ze){return Ze.lift(new bn(Re,We,be))}}var bn=function(){function Re(We,be,Ze){(0,R.Z)(this,Re),this.accumulator=We,this.seed=be,this.concurrent=Ze}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Qn(be,this.accumulator,this.seed,this.concurrent))}}]),Re}(),Qn=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St){var un;return(0,R.Z)(this,be),(un=We.call(this,Ze)).accumulator=De,un.acc=rt,un.concurrent=St,un.hasValue=!1,un.hasCompleted=!1,un.buffer=[],un.active=0,un.index=0,un}return(0,C.Z)(be,[{key:"_next",value:function(De){if(this.active<this.concurrent){var un,rt=this.index++,St=this.destination;try{un=(0,this.accumulator)(this.acc,De,rt)}catch(Mr){return St.error(Mr)}this.active++,this._innerSub(un)}else this.buffer.push(De)}},{key:"_innerSub",value:function(De){var rt=new _.IY(this),St=this.destination;St.add(rt);var un=(0,_.ft)(De,rt);un!==rt&&St.add(un)}},{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(De){var rt=this.destination;this.acc=De,this.hasValue=!0,rt.next(De)}},{key:"notifyComplete",value:function(){var De=this.buffer;this.active--,De.length>0?this._next(De.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),be}(_.Ds);function Wn(Re){return Zi("function"==typeof Re?function(be,Ze){return Re(be,Ze)<0?be:Ze}:function(be,Ze){return be<Ze?be:Ze})}var Gn=f(4981),mi=f(25110);function Bi(){for(var Re=arguments.length,We=new Array(Re),be=0;be<Re;be++)We[be]=arguments[be];return 1===We.length&&(0,Oe.k)(We[0])&&(We=We[0]),function(Ze){return Ze.lift(new Mo(We))}}var Mo=function(){function Re(We){(0,R.Z)(this,Re),this.nextSources=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Ji(be,this.nextSources))}}]),Re}(),Ji=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze)).destination=Ze,rt.nextSources=De,rt}return(0,C.Z)(be,[{key:"notifyError",value:function(){this.subscribeToNextSource()}},{key:"notifyComplete",value:function(){this.subscribeToNextSource()}},{key:"_error",value:function(De){this.subscribeToNextSource(),this.unsubscribe()}},{key:"_complete",value:function(){this.subscribeToNextSource(),this.unsubscribe()}},{key:"subscribeToNextSource",value:function(){var De=this.nextSources.shift();if(De){var rt=new _.IY(this),St=this.destination;St.add(rt);var un=(0,_.ft)(De,rt);un!==rt&&St.add(un)}else this.destination.complete()}}]),be}(_.Ds),Jo=f(4363),La=f(59849);function Ao(Re,We){return function(be){return[(0,Lt.h)(Re,We)(be),(0,Lt.h)((0,La.f)(Re,We))(be)]}}function wi(){for(var Re=arguments.length,We=new Array(Re),be=0;be<Re;be++)We[be]=arguments[be];var Ze=We.length;if(0===Ze)throw new Error("list of properties cannot be empty.");return function(De){return(0,sn.U)(ka(We,Ze))(De)}}function ka(Re,We){return function(De){for(var rt=De,St=0;St<We;St++){var un=null!=rt?rt[Re[St]]:void 0;if(void 0===un)return;rt=un}return rt}}var fo=f(68707);function Ui(Re){return Re?(0,Gn.O)(function(){return new fo.xQ},Re):(0,Gn.O)(new fo.xQ)}var so=f(90838);function Fa(Re){return function(We){return(0,Gn.O)(new so.X(Re))(We)}}var ki=f(3435);function ho(){return function(Re){return(0,Gn.O)(new ki.c)(Re)}}var mo=f(82667);function Ba(Re,We,be,Ze){be&&"function"!=typeof be&&(Ze=be);var De="function"==typeof be?be:void 0,rt=new mo.t(Re,We,Ze);return function(St){return(0,Gn.O)(function(){return rt},De)(St)}}var ui=f(31695);function Fo(){for(var Re=arguments.length,We=new Array(Re),be=0;be<Re;be++)We[be]=arguments[be];return function(De){return 1===We.length&&(0,Oe.k)(We[0])&&(We=We[0]),De.lift.call(ui.S3.apply(void 0,[De].concat((0,Se.Z)(We))))}}var pl=f(93487);function ns(){var Re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(We){return 0===Re?(0,pl.c)():We.lift(new _s(Re<0?-1:Re-1,We))}}var _s=function(){function Re(We,be){(0,R.Z)(this,Re),this.count=We,this.source=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Qo(be,this.count,this.source))}}]),Re}(),Qo=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).count=De,St.source=rt,St}return(0,C.Z)(be,[{key:"complete",value:function(){if(!this.isStopped){var De=this.source,rt=this.count;if(0===rt)return(0,P.Z)((0,y.Z)(be.prototype),"complete",this).call(this);rt>-1&&(this.count=rt-1),De.subscribe(this._unsubscribeAndRecycle())}}}]),be}(g.L);function fl(Re){return function(We){return We.lift(new ac(Re))}}var ac=function(){function Re(We){(0,R.Z)(this,Re),this.notifier=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new hl(be,this.notifier,Ze))}}]),Re}(),hl=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).notifier=De,St.source=rt,St.sourceIsBeingSubscribedTo=!0,St}return(0,C.Z)(be,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return(0,P.Z)((0,y.Z)(be.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,P.Z)((0,y.Z)(be.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var De=this.notifications,rt=this.retriesSubscription;De&&(De.unsubscribe(),this.notifications=void 0),rt&&(rt.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var De=this._unsubscribe;return this._unsubscribe=null,(0,P.Z)((0,y.Z)(be.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=De,this}},{key:"subscribeToRetries",value:function(){var De;this.notifications=new fo.xQ;try{De=(0,this.notifier)(this.notifications)}catch(St){return(0,P.Z)((0,y.Z)(be.prototype),"complete",this).call(this)}this.retries=De,this.retriesSubscription=(0,_.ft)(De,new _.IY(this))}}]),be}(_.Ds);function Tu(){var Re=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(We){return We.lift(new Bo(Re,We))}}var Bo=function(){function Re(We,be){(0,R.Z)(this,Re),this.count=We,this.source=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Us(be,this.count,this.source))}}]),Re}(),Us=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).count=De,St.source=rt,St}return(0,C.Z)(be,[{key:"error",value:function(De){if(!this.isStopped){var rt=this.source,St=this.count;if(0===St)return(0,P.Z)((0,y.Z)(be.prototype),"error",this).call(this,De);St>-1&&(this.count=St-1),rt.subscribe(this._unsubscribeAndRecycle())}}}]),be}(g.L);function xu(Re){return function(We){return We.lift(new sc(Re,We))}}var sc=function(){function Re(We,be){(0,R.Z)(this,Re),this.notifier=We,this.source=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Ql(be,this.notifier,this.source))}}]),Re}(),Ql=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).notifier=De,St.source=rt,St}return(0,C.Z)(be,[{key:"error",value:function(De){if(!this.isStopped){var rt=this.errors,St=this.retries,un=this.retriesSubscription;if(St)this.errors=void 0,this.retriesSubscription=void 0;else{rt=new fo.xQ;try{St=(0,this.notifier)(rt)}catch(Mr){return(0,P.Z)((0,y.Z)(be.prototype),"error",this).call(this,Mr)}un=(0,_.ft)(St,new _.IY(this))}this._unsubscribeAndRecycle(),this.errors=rt,this.retries=St,this.retriesSubscription=un,rt.next(De)}}},{key:"_unsubscribe",value:function(){var De=this.errors,rt=this.retriesSubscription;De&&(De.unsubscribe(),this.errors=void 0),rt&&(rt.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var De=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=De,this.source.subscribe(this)}}]),be}(_.Ds),md=f(26575);function wu(Re){return function(We){return We.lift(new rs(Re))}}var rs=function(){function Re(We){(0,R.Z)(this,Re),this.notifier=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){var De=new ml(be),rt=Ze.subscribe(De);return rt.add((0,_.ft)(this.notifier,new _.IY(De))),rt}}]),Re}(),ml=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(){var Ze;return(0,R.Z)(this,be),(Ze=We.apply(this,arguments)).hasValue=!1,Ze}return(0,C.Z)(be,[{key:"_next",value:function(De){this.value=De,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))}}]),be}(_.Ds);function vd(Re){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P;return function(be){return be.lift(new Rr(Re,We))}}var Rr=function(){function Re(We,be){(0,R.Z)(this,Re),this.period=We,this.scheduler=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Jn(be,this.period,this.scheduler))}}]),Re}(),Jn=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).period=De,St.scheduler=rt,St.hasValue=!1,St.add(rt.schedule(ku,De,{subscriber:(0,V.Z)(St),period:De})),St}return(0,C.Z)(be,[{key:"_next",value:function(De){this.lastValue=De,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),be}(g.L);function ku(Re){var be=Re.period;Re.subscriber.notifyNext(),this.schedule(Re,be)}function Ko(Re,We){return function(be){return be.lift(new ys(Re,We))}}var ys=function(){function Re(We,be){(0,R.Z)(this,Re),this.compareTo=We,this.comparator=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Cr(be,this.compareTo,this.comparator))}}]),Re}(),Cr=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).compareTo=De,St.comparator=rt,St._a=[],St._b=[],St._oneComplete=!1,St.destination.add(De.subscribe(new Uo(Ze,(0,V.Z)(St)))),St}return(0,C.Z)(be,[{key:"_next",value:function(De){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(De),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 De=this._a,rt=this._b,St=this.comparator;De.length>0&&rt.length>0;){var un=De.shift(),Cn=rt.shift(),Mr=!1;try{Mr=St?St(un,Cn):un===Cn}catch(Oi){this.destination.error(Oi)}Mr||this.emit(!1)}}},{key:"emit",value:function(De){var rt=this.destination;rt.next(De),rt.complete()}},{key:"nextB",value:function(De){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(De),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),be}(g.L),Uo=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze)).parent=De,rt}return(0,C.Z)(be,[{key:"_next",value:function(De){this.parent.nextB(De)}},{key:"_error",value:function(De){this.parent.error(De),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),be}(g.L),Sp=f(16338),Ee=f(61106),He=f(64646);function Pe(Re){return function(We){return We.lift(new Me(Re,We))}}var Me=function(){function Re(We,be){(0,R.Z)(this,Re),this.predicate=We,this.source=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Ve(be,this.predicate,this.source))}}]),Re}(),Ve=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).predicate=De,St.source=rt,St.seenValue=!1,St.index=0,St}return(0,C.Z)(be,[{key:"applySingleValue",value:function(De){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=De)}},{key:"_next",value:function(De){var rt=this.index++;this.predicate?this.tryNext(De,rt):this.applySingleValue(De)}},{key:"tryNext",value:function(De,rt){try{this.predicate(De,rt,this.source)&&this.applySingleValue(De)}catch(St){this.destination.error(St)}}},{key:"_complete",value:function(){var De=this.destination;this.index>0?(De.next(this.seenValue?this.singleValue:void 0),De.complete()):De.error(new He.K)}}]),be}(g.L),we=f(18756);function Ft(Re){return function(We){return We.lift(new Tn(Re))}}var Tn=function(){function Re(We){if((0,R.Z)(this,Re),this._skipCount=We,this._skipCount<0)throw new yt.W}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(0===this._skipCount?new g.L(be):new zn(be,this._skipCount))}}]),Re}(),zn=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze))._skipCount=De,rt._count=0,rt._ring=new Array(De),rt}return(0,C.Z)(be,[{key:"_next",value:function(De){var rt=this._skipCount,St=this._count++;if(St<rt)this._ring[St]=De;else{var un=St%rt,Cn=this._ring,Mr=Cn[un];Cn[un]=De,this.destination.next(Mr)}}}]),be}(g.L);function pe(Re){return function(We){return We.lift(new Ie(Re))}}var Ie=function(){function Re(We){(0,R.Z)(this,Re),this.notifier=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new $e(be,this.notifier))}}]),Re}(),$e=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;(0,R.Z)(this,be),(rt=We.call(this,Ze)).hasValue=!1;var St=new _.IY((0,V.Z)(rt));rt.add(St),rt.innerSubscription=St;var un=(0,_.ft)(De,St);return un!==St&&(rt.add(un),rt.innerSubscription=un),rt}return(0,C.Z)(be,[{key:"_next",value:function(De){this.hasValue&&(0,P.Z)((0,y.Z)(be.prototype),"_next",this).call(this,De)}},{key:"notifyNext",value:function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}},{key:"notifyComplete",value:function(){}}]),be}(_.Ds);function qe(Re){return function(We){return We.lift(new mt(Re))}}var mt=function(){function Re(We){(0,R.Z)(this,Re),this.predicate=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new kt(be,this.predicate))}}]),Re}(),kt=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze)).predicate=De,rt.skipping=!0,rt.index=0,rt}return(0,C.Z)(be,[{key:"_next",value:function(De){var rt=this.destination;this.skipping&&this.tryCallPredicate(De),this.skipping||rt.next(De)}},{key:"tryCallPredicate",value:function(De){try{var rt=this.predicate(De,this.index++);this.skipping=Boolean(rt)}catch(St){this.destination.error(St)}}}]),be}(g.L),ln=f(57682),Mn=f(18613);function nr(Re){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Ze){return Ze.lift(new xr(Re,We))}}var xr=function(){function Re(We,be){(0,R.Z)(this,Re),this.scheduler=We,this.delay=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return new Mn.e(Ze,this.delay,this.scheduler).subscribe(be)}}]),Re}(),_r=f(34487),Wt=f(57070);function Bt(){return(0,_r.w)(Wt.y)}function Do(Re,We){return We?(0,_r.w)(function(){return Re},We):(0,_r.w)(function(){return Re})}var ci=f(44213),Qi=f(49196),Ea=f(59371),Ci=f(243);function Hi(Re){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P,be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ci.d;return function(Ze){return Ze.lift(new lc(Re,We,be.leading,be.trailing))}}var lc=function(){function Re(We,be,Ze,De){(0,R.Z)(this,Re),this.duration=We,this.scheduler=be,this.leading=Ze,this.trailing=De}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Ua(be,this.duration,this.scheduler,this.leading,this.trailing))}}]),Re}(),Ua=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St,un){var Cn;return(0,R.Z)(this,be),(Cn=We.call(this,Ze)).duration=De,Cn.scheduler=rt,Cn.leading=St,Cn.trailing=un,Cn._hasTrailingValue=!1,Cn._trailingValue=null,Cn}return(0,C.Z)(be,[{key:"_next",value:function(De){this.throttled?this.trailing&&(this._trailingValue=De,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Ha,this.duration,{subscriber:this})),this.leading?this.destination.next(De):this.trailing&&(this._trailingValue=De,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 De=this.throttled;De&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),De.unsubscribe(),this.remove(De),this.throttled=null)}}]),be}(g.L);function Ha(Re){Re.subscriber.clearThrottle()}var oa=f(73445),bs=f(98691),Tp=f(88972);function xp(Re,We){var be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S.P;return function(Ze){var De=(0,Tp.J)(Re),rt=De?+Re-be.now():Math.abs(Re);return Ze.lift(new Hs(rt,De,We,be))}}var Hs=function(){function Re(We,be,Ze,De){(0,R.Z)(this,Re),this.waitFor=We,this.absoluteTimeout=be,this.withObservable=Ze,this.scheduler=De}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new uc(be,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),Re}(),uc=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St,un){var Cn;return(0,R.Z)(this,be),(Cn=We.call(this,Ze)).absoluteTimeout=De,Cn.waitFor=rt,Cn.withObservable=St,Cn.scheduler=un,Cn.scheduleTimeout(),Cn}return(0,C.Z)(be,[{key:"scheduleTimeout",value:function(){var De=this.action;De?this.action=De.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(be.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(De){this.absoluteTimeout||this.scheduleTimeout(),(0,P.Z)((0,y.Z)(be.prototype),"_next",this).call(this,De)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(De){var rt=De.withObservable;De._unsubscribeAndRecycle(),De.add((0,_.ft)(rt,new _.IY(De)))}}]),be}(_.Ds),vl=f(11363);function Nr(Re){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.P;return xp(Re,(0,vl._)(new bs.W),We)}var wp=f(63706);function gd(Re,We,be){return 0===be?[We]:(Re.push(We),Re)}function kp(){return Zi(gd,[])}function Ep(Re){return function(be){return be.lift(new _d(Re))}}var _d=function(){function Re(We){(0,R.Z)(this,Re),this.windowBoundaries=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){var De=new Kl(be),rt=Ze.subscribe(De);return rt.closed||De.add((0,_.ft)(this.windowBoundaries,new _.IY(De))),rt}}]),Re}(),Kl=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze){var De;return(0,R.Z)(this,be),(De=We.call(this,Ze)).window=new fo.xQ,Ze.next(De.window),De}return(0,C.Z)(be,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(De){this._error(De)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(De){this.window.next(De)}},{key:"_error",value:function(De){this.window.error(De),this.destination.error(De)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var De=this.window;De&&De.complete();var rt=this.destination,St=this.window=new fo.xQ;rt.next(St)}}]),be}(_.Ds);function vv(Re){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Ze){return Ze.lift(new ge(Re,We))}}var ge=function(){function Re(We,be){(0,R.Z)(this,Re),this.windowSize=We,this.startWindowEvery=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new me(be,this.windowSize,this.startWindowEvery))}}]),Re}(),me=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).destination=Ze,St.windowSize=De,St.startWindowEvery=rt,St.windows=[new fo.xQ],St.count=0,Ze.next(St.windows[0]),St}return(0,C.Z)(be,[{key:"_next",value:function(De){for(var rt=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,St=this.destination,un=this.windowSize,Cn=this.windows,Mr=Cn.length,Oi=0;Oi<Mr&&!this.closed;Oi++)Cn[Oi].next(De);var Ho=this.count-un+1;if(Ho>=0&&Ho%rt==0&&!this.closed&&Cn.shift().complete(),++this.count%rt==0&&!this.closed){var ha=new fo.xQ;Cn.push(ha),St.next(ha)}}},{key:"_error",value:function(De){var rt=this.windows;if(rt)for(;rt.length>0&&!this.closed;)rt.shift().error(De);this.destination.error(De)}},{key:"_complete",value:function(){var De=this.windows;if(De)for(;De.length>0&&!this.closed;)De.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),be}(g.L),J=f(11705);function ee(Re){var We=S.P,be=null,Ze=Number.POSITIVE_INFINITY;return(0,A.K)(arguments[3])&&(We=arguments[3]),(0,A.K)(arguments[2])?We=arguments[2]:(0,J.k)(arguments[2])&&(Ze=Number(arguments[2])),(0,A.K)(arguments[1])?We=arguments[1]:(0,J.k)(arguments[1])&&(be=Number(arguments[1])),function(rt){return rt.lift(new Te(Re,be,Ze,We))}}var Te=function(){function Re(We,be,Ze,De){(0,R.Z)(this,Re),this.windowTimeSpan=We,this.windowCreationInterval=be,this.maxWindowSize=Ze,this.scheduler=De}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new ut(be,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),Re}(),Be=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(){var Ze;return(0,R.Z)(this,be),(Ze=We.apply(this,arguments))._numberOfNextedValues=0,Ze}return(0,C.Z)(be,[{key:"next",value:function(De){this._numberOfNextedValues++,(0,P.Z)((0,y.Z)(be.prototype),"next",this).call(this,De)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),be}(fo.xQ),ut=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt,St,un){var Cn;(0,R.Z)(this,be),(Cn=We.call(this,Ze)).destination=Ze,Cn.windowTimeSpan=De,Cn.windowCreationInterval=rt,Cn.maxWindowSize=St,Cn.scheduler=un,Cn.windows=[];var Mr=Cn.openWindow();if(null!==rt&&rt>=0){var Oi={subscriber:(0,V.Z)(Cn),window:Mr,context:null},Ho={windowTimeSpan:De,windowCreationInterval:rt,subscriber:(0,V.Z)(Cn),scheduler:un};Cn.add(un.schedule(en,De,Oi)),Cn.add(un.schedule(Zt,rt,Ho))}else{var ha={subscriber:(0,V.Z)(Cn),window:Mr,windowTimeSpan:De};Cn.add(un.schedule(Tt,De,ha))}return Cn}return(0,C.Z)(be,[{key:"_next",value:function(De){for(var rt=this.windows,St=rt.length,un=0;un<St;un++){var Cn=rt[un];Cn.closed||(Cn.next(De),Cn.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(Cn))}}},{key:"_error",value:function(De){for(var rt=this.windows;rt.length>0;)rt.shift().error(De);this.destination.error(De)}},{key:"_complete",value:function(){for(var De=this.windows;De.length>0;){var rt=De.shift();rt.closed||rt.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var De=new Be;return this.windows.push(De),this.destination.next(De),De}},{key:"closeWindow",value:function(De){De.complete();var rt=this.windows;rt.splice(rt.indexOf(De),1)}}]),be}(g.L);function Tt(Re){var We=Re.subscriber,be=Re.windowTimeSpan,Ze=Re.window;Ze&&We.closeWindow(Ze),Re.window=We.openWindow(),this.schedule(Re,be)}function Zt(Re){var We=Re.windowTimeSpan,be=Re.subscriber,Ze=Re.scheduler,De=Re.windowCreationInterval,rt=be.openWindow(),un={action:this,subscription:null};un.subscription=Ze.schedule(en,We,{subscriber:be,window:rt,context:un}),this.add(un.subscription),this.schedule(Re,De)}function en(Re){var We=Re.subscriber,be=Re.window,Ze=Re.context;Ze&&Ze.action&&Ze.subscription&&Ze.action.remove(Ze.subscription),We.closeWindow(be)}function pn(Re,We){return function(be){return be.lift(new Pn(Re,We))}}var Pn=function(){function Re(We,be){(0,R.Z)(this,Re),this.openings=We,this.closingSelector=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Un(be,this.openings,this.closingSelector))}}]),Re}(),Un=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;return(0,R.Z)(this,be),(St=We.call(this,Ze)).openings=De,St.closingSelector=rt,St.contexts=[],St.add(St.openSubscription=(0,ue.D)((0,V.Z)(St),De,De)),St}return(0,C.Z)(be,[{key:"_next",value:function(De){var rt=this.contexts;if(rt)for(var St=rt.length,un=0;un<St;un++)rt[un].window.next(De)}},{key:"_error",value:function(De){var rt=this.contexts;if(this.contexts=null,rt)for(var St=rt.length,un=-1;++un<St;){var Cn=rt[un];Cn.window.error(De),Cn.subscription.unsubscribe()}(0,P.Z)((0,y.Z)(be.prototype),"_error",this).call(this,De)}},{key:"_complete",value:function(){var De=this.contexts;if(this.contexts=null,De)for(var rt=De.length,St=-1;++St<rt;){var un=De[St];un.window.complete(),un.subscription.unsubscribe()}(0,P.Z)((0,y.Z)(be.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var De=this.contexts;if(this.contexts=null,De)for(var rt=De.length,St=-1;++St<rt;){var un=De[St];un.window.unsubscribe(),un.subscription.unsubscribe()}}},{key:"notifyNext",value:function(De,rt,St,un,Cn){if(De===this.openings){var Mr;try{Mr=(0,this.closingSelector)(rt)}catch(is){return this.error(is)}var Ho=new fo.xQ,ha=new se.w,yd={window:Ho,subscription:ha};this.contexts.push(yd);var go=(0,ue.D)(this,Mr,yd);go.closed?this.closeWindow(this.contexts.length-1):(go.context=yd,ha.add(go)),this.destination.next(Ho)}else this.closeWindow(this.contexts.indexOf(De))}},{key:"notifyError",value:function(De){this.error(De)}},{key:"notifyComplete",value:function(De){De!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(De.context))}},{key:"closeWindow",value:function(De){if(-1!==De){var rt=this.contexts,St=rt[De],un=St.window,Cn=St.subscription;rt.splice(De,1),un.complete(),Cn.unsubscribe()}}}]),be}(de.L);function $n(Re){return function(be){return be.lift(new yr(Re))}}var yr=function(){function Re(We){(0,R.Z)(this,Re),this.closingSelector=We}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new Br(be,this.closingSelector))}}]),Re}(),Br=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De){var rt;return(0,R.Z)(this,be),(rt=We.call(this,Ze)).destination=Ze,rt.closingSelector=De,rt.openWindow(),rt}return(0,C.Z)(be,[{key:"notifyNext",value:function(De,rt,St,un,Cn){this.openWindow(Cn)}},{key:"notifyError",value:function(De){this._error(De)}},{key:"notifyComplete",value:function(De){this.openWindow(De)}},{key:"_next",value:function(De){this.window.next(De)}},{key:"_error",value:function(De){this.window.error(De),this.destination.error(De),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 De=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;De&&(this.remove(De),De.unsubscribe());var rt=this.window;rt&&rt.complete();var un,St=this.window=new fo.xQ;this.destination.next(St);try{var Cn=this.closingSelector;un=Cn()}catch(Mr){return this.destination.error(Mr),void this.window.error(Mr)}this.add(this.closingNotification=(0,ue.D)(this,un))}}]),be}(de.L);function wr(){for(var Re=arguments.length,We=new Array(Re),be=0;be<Re;be++)We[be]=arguments[be];return function(Ze){var De;return"function"==typeof We[We.length-1]&&(De=We.pop()),Ze.lift(new Or(We,De))}}var Or=function(){function Re(We,be){(0,R.Z)(this,Re),this.observables=We,this.project=be}return(0,C.Z)(Re,[{key:"call",value:function(be,Ze){return Ze.subscribe(new di(be,this.observables,this.project))}}]),Re}(),di=function(Re){(0,Z.Z)(be,Re);var We=(0,w.Z)(be);function be(Ze,De,rt){var St;(0,R.Z)(this,be),(St=We.call(this,Ze)).observables=De,St.project=rt,St.toRespond=[];var un=De.length;St.values=new Array(un);for(var Cn=0;Cn<un;Cn++)St.toRespond.push(Cn);for(var Mr=0;Mr<un;Mr++){var Oi=De[Mr];St.add((0,ue.D)((0,V.Z)(St),Oi,void 0,Mr))}return St}return(0,C.Z)(be,[{key:"notifyNext",value:function(De,rt,St){this.values[St]=rt;var un=this.toRespond;if(un.length>0){var Cn=un.indexOf(St);-1!==Cn&&un.splice(Cn,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(De){if(0===this.toRespond.length){var rt=[De].concat((0,Se.Z)(this.values));this.project?this._tryProject(rt):this.destination.next(rt)}}},{key:"_tryProject",value:function(De){var rt;try{rt=this.project.apply(this,De)}catch(St){return void this.destination.error(St)}this.destination.next(rt)}}]),be}(de.L),Si=f(43008);function si(){for(var Re=arguments.length,We=new Array(Re),be=0;be<Re;be++)We[be]=arguments[be];return function(De){return De.lift.call(Si.$R.apply(void 0,[De].concat(We)))}}function vo(Re){return function(We){return We.lift(new Si.mx(Re))}}},53520:function(le,q,f){"use strict";f.r(q),f.d(q,{TestScheduler:function(){return S}});var U=f(18967),B=f(14105),V=f(20901),Z=f(89200),w=f(10509),R=f(97154),C=f(89797),_=f(80286),N=f(5051),D=function A(L){var j=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,U.Z)(this,A),this.subscribedFrame=L,this.unsubscribedFrame=j},y=(f(2808),function(A){(0,w.Z)(j,A);var L=(0,R.Z)(j);function j(K,z){var Q;return(0,U.Z)(this,j),(Q=L.call(this,function(ae){var ie=this,se=ie.logSubscribedFrame(),ue=new N.w;return ue.add(new N.w(function(){ie.logUnsubscribedFrame(se)})),ie.scheduleMessages(ae),ue})).messages=K,Q.subscriptions=[],Q.scheduler=z,Q}return(0,B.Z)(j,[{key:"scheduleMessages",value:function(z){for(var Q=this.messages.length,ae=0;ae<Q;ae++){var ie=this.messages[ae];z.add(this.scheduler.schedule(function(se){se.message.notification.observe(se.subscriber)},ie.frame,{message:ie,subscriber:z}))}}}]),j}(C.y)),T=function(A){(0,w.Z)(j,A);var L=(0,R.Z)(j);function j(K,z){var Q;return(0,U.Z)(this,j),(Q=L.call(this)).messages=K,Q.subscriptions=[],Q.scheduler=z,Q}return(0,B.Z)(j,[{key:"_subscribe",value:function(z){var Q=this,ae=Q.logSubscribedFrame(),ie=new N.w;return ie.add(new N.w(function(){Q.logUnsubscribedFrame(ae)})),ie.add((0,V.Z)((0,Z.Z)(j.prototype),"_subscribe",this).call(this,z)),ie}},{key:"setup",value:function(){for(var z=this,Q=z.messages.length,ae=0;ae<Q;ae++)!function(){var ie=z.messages[ae];z.scheduler.schedule(function(){ie.notification.observe(z)},ie.frame)}()}}]),j}(f(68707).xQ),M=f(2296),E=f(81572),S=function(A){(0,w.Z)(j,A);var L=(0,R.Z)(j);function j(K){var z;return(0,U.Z)(this,j),(z=L.call(this,M.h,750)).assertDeepEqual=K,z.hotObservables=[],z.coldObservables=[],z.flushTests=[],z.runMode=!1,z}return(0,B.Z)(j,[{key:"createTime",value:function(z){var Q=z.indexOf("|");if(-1===Q)throw new Error('marble diagram for time should have a completion marker "|"');return Q*j.frameTimeFactor}},{key:"createColdObservable",value:function(z,Q,ae){if(-1!==z.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==z.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var ie=j.parseMarbles(z,Q,ae,void 0,this.runMode),se=new y(ie,this);return this.coldObservables.push(se),se}},{key:"createHotObservable",value:function(z,Q,ae){if(-1!==z.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var ie=j.parseMarbles(z,Q,ae,void 0,this.runMode),se=new T(ie,this);return this.hotObservables.push(se),se}},{key:"materializeInnerObservable",value:function(z,Q){var ae=this,ie=[];return z.subscribe(function(se){ie.push({frame:ae.frame-Q,notification:_.P.createNext(se)})},function(se){ie.push({frame:ae.frame-Q,notification:_.P.createError(se)})},function(){ie.push({frame:ae.frame-Q,notification:_.P.createComplete()})}),ie}},{key:"expectObservable",value:function(z){var $,Q=this,ae=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,ie=[],se={actual:ie,ready:!1},ue=j.parseMarblesAsSubscriptions(ae,this.runMode),de=ue.subscribedFrame===Number.POSITIVE_INFINITY?0:ue.subscribedFrame,oe=ue.unsubscribedFrame;this.schedule(function(){$=z.subscribe(function(ve){var et=ve;ve instanceof C.y&&(et=Q.materializeInnerObservable(et,Q.frame)),ie.push({frame:Q.frame,notification:_.P.createNext(et)})},function(ve){ie.push({frame:Q.frame,notification:_.P.createError(ve)})},function(){ie.push({frame:Q.frame,notification:_.P.createComplete()})})},de),oe!==Number.POSITIVE_INFINITY&&this.schedule(function(){return $.unsubscribe()},oe),this.flushTests.push(se);var ye=this.runMode;return{toBe:function(et,Ne,gt){se.ready=!0,se.expected=j.parseMarbles(et,Ne,gt,!0,ye)}}}},{key:"expectSubscriptions",value:function(z){var Q={actual:z,ready:!1};this.flushTests.push(Q);var ae=this.runMode;return{toBe:function(se){var ue="string"==typeof se?[se]:se;Q.ready=!0,Q.expected=ue.map(function(de){return j.parseMarblesAsSubscriptions(de,ae)})}}}},{key:"flush",value:function(){for(var z=this,Q=this.hotObservables;Q.length>0;)Q.shift().setup();(0,V.Z)((0,Z.Z)(j.prototype),"flush",this).call(this),this.flushTests=this.flushTests.filter(function(ae){return!ae.ready||(z.assertDeepEqual(ae.actual,ae.expected),!1)})}},{key:"run",value:function(z){var Q=j.frameTimeFactor,ae=this.maxFrames;j.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,E.v.delegate=this;var ie={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 se=z(ie);return this.flush(),se}finally{j.frameTimeFactor=Q,this.maxFrames=ae,this.runMode=!1,E.v.delegate=void 0}}}],[{key:"parseMarblesAsSubscriptions",value:function(z){var Q=this,ae=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof z)return new D(Number.POSITIVE_INFINITY);for(var ie=z.length,se=-1,ue=Number.POSITIVE_INFINITY,de=Number.POSITIVE_INFINITY,oe=0,$=0;$<ie;$++){var ye=oe,ve=function(je){ye+=je*Q.frameTimeFactor},et=z[$];switch(et){case" ":ae||ve(1);break;case"-":ve(1);break;case"(":se=oe,ve(1);break;case")":se=-1,ve(1);break;case"^":if(ue!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");ue=se>-1?se:oe,ve(1);break;case"!":if(de!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");de=se>-1?se:oe;break;default:if(ae&&et.match(/^[0-9]$/)&&(0===$||" "===z[$-1])){var Ne=z.slice($),gt=Ne.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(gt){$+=gt[0].length-1;var _t=parseFloat(gt[1]),Rt=gt[2],Se=void 0;switch(Rt){case"ms":Se=_t;break;case"s":Se=1e3*_t;break;case"m":Se=1e3*_t*60}ve(Se/this.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+et+"'.")}oe=ye}return de<0?new D(ue):new D(ue,de)}},{key:"parseMarbles",value:function(z,Q,ae){var ie=this,se=arguments.length>3&&void 0!==arguments[3]&&arguments[3],ue=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==z.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var de=z.length,oe=[],$=ue?z.replace(/^[ ]+/,"").indexOf("^"):z.indexOf("^"),ye=-1===$?0:$*-this.frameTimeFactor,ve="object"!=typeof Q?function(Et){return Et}:function(Et){return se&&Q[Et]instanceof y?Q[Et].messages:Q[Et]},et=-1,Ne=0;Ne<de;Ne++){var gt=ye,_t=function(vt){gt+=vt*ie.frameTimeFactor},Rt=void 0,Se=z[Ne];switch(Se){case" ":ue||_t(1);break;case"-":_t(1);break;case"(":et=ye,_t(1);break;case")":et=-1,_t(1);break;case"|":Rt=_.P.createComplete(),_t(1);break;case"^":_t(1);break;case"#":Rt=_.P.createError(ae||"error"),_t(1);break;default:if(ue&&Se.match(/^[0-9]$/)&&(0===Ne||" "===z[Ne-1])){var Oe=z.slice(Ne),je=Oe.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(je){Ne+=je[0].length-1;var ct=parseFloat(je[1]),Xe=je[2],Ht=void 0;switch(Xe){case"ms":Ht=ct;break;case"s":Ht=1e3*ct;break;case"m":Ht=1e3*ct*60}_t(Ht/this.frameTimeFactor);break}}Rt=_.P.createNext(ve(Se)),_t(1)}Rt&&oe.push({frame:et>-1?et:ye,notification:Rt}),ye=gt}return oe}}]),j}(M.y)},4194:function(le,q,f){"use strict";f.r(q),f.d(q,{webSocket:function(){return U.j},WebSocketSubject:function(){return B.p}});var U=f(99298),B=f(46095)},26918:function(le,q,f){"use strict";f(68663)},56205:function(le,q){"use strict";var U;!function(){var B=q||{};void 0!==(U=function(){return B}.apply(q,[]))&&(le.exports=U),B.default=B;var V="http://www.w3.org/2000/xmlns/",w="http://www.w3.org/2000/svg",C=/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"},N=function(ue){return ue instanceof HTMLElement||ue instanceof SVGElement},D=function(ue){if(!N(ue))throw new Error("an HTMLElement or SVGElement is required; got "+ue)},O=function(ue){return new Promise(function(de,oe){N(ue)?de(ue):oe(new Error("an HTMLElement or SVGElement is required; got "+ue))})},y=function(ue){var de=Object.keys(_).filter(function(oe){return ue.indexOf("."+oe)>0}).map(function(oe){return _[oe]});return de?de[0]:(console.error("Unknown font format for "+ue+". Fonts may not be working correctly."),"application/octet-stream")},T=function(ue,de,oe){var $=ue.viewBox&&ue.viewBox.baseVal&&ue.viewBox.baseVal[oe]||null!==de.getAttribute(oe)&&!de.getAttribute(oe).match(/%$/)&&parseInt(de.getAttribute(oe))||ue.getBoundingClientRect()[oe]||parseInt(de.style[oe])||parseInt(window.getComputedStyle(ue).getPropertyValue(oe));return null==$||isNaN(parseFloat($))?0:$},x=function(ue){for(var de=window.atob(ue.split(",")[1]),oe=ue.split(",")[0].split(":")[1].split(";")[0],$=new ArrayBuffer(de.length),ye=new Uint8Array($),ve=0;ve<de.length;ve++)ye[ve]=de.charCodeAt(ve);return new Blob([$],{type:oe})},j={},z=null,ae=function(ue,de){var oe=de||{},$=oe.selectorRemap,ye=oe.modifyStyle,et=oe.fonts,Ne=oe.excludeUnusedCss,gt=oe.modifyCss||function(Oe,je){return($?$(Oe):Oe)+"{"+(ye?ye(je):je)+"}\n"},_t=[],Rt=void 0===et,Se=et||[];return(z||(z=Array.from(document.styleSheets).map(function(ue){try{return{rules:ue.cssRules,href:ue.href}}catch(de){return console.warn("Stylesheet could not be loaded: "+ue.href,de),{}}}))).forEach(function(Oe){var je=Oe.rules,ct=Oe.href;!je||Array.from(je).forEach(function(Xe){if(void 0!==Xe.style)if(function(ue,de){if(de)try{return ue.querySelector(de)||ue.parentNode&&ue.parentNode.querySelector(de)}catch(oe){console.warn('Invalid CSS selector "'+de+'"',oe)}}(ue,Xe.selectorText))_t.push(gt(Xe.selectorText,Xe.style.cssText));else if(Rt&&Xe.cssText.match(/^@font-face/)){var Ht=function(ue,de){var oe=ue.cssText.match(C),$=oe&&oe[1]||"";if($&&!$.match(/^data:/)&&"about:blank"!==$){var ye=$.startsWith("../")?de+"/../"+$:$.startsWith("./")?de+"/."+$:$;return{text:ue.cssText,format:y(ye),url:ye}}}(Xe,ct);Ht&&Se.push(Ht)}else Ne||_t.push(Xe.cssText)})}),function(ue){return Promise.all(ue.map(function(de){return new Promise(function(oe,$){if(j[de.url])return oe(j[de.url]);var ye=new XMLHttpRequest;ye.addEventListener("load",function(){var ve=function(ue){for(var de="",oe=new Uint8Array(ue),$=0;$<oe.byteLength;$++)de+=String.fromCharCode(oe[$]);return window.btoa(de)}(ye.response),et=de.text.replace(C,'url("data:'+de.format+";base64,"+ve+'")')+"\n";j[de.url]=et,oe(et)}),ye.addEventListener("error",function(ve){console.warn("Failed to load font from: "+de.url,ve),j[de.url]=null,oe(null)}),ye.addEventListener("abort",function(ve){console.warn("Aborted loading font from: "+de.url,ve),oe(null)}),ye.open("GET",de.url),ye.responseType="arraybuffer",ye.send()})})).then(function(de){return de.filter(function(oe){return oe}).join("")})}(Se).then(function(Oe){return _t.join("\n")+Oe})},ie=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};B.prepareSvg=function(se,ue,de){D(se);var oe=ue||{},$=oe.left,ye=void 0===$?0:$,ve=oe.top,et=void 0===ve?0:ve,Ne=oe.width,gt=oe.height,_t=oe.scale,Rt=void 0===_t?1:_t,Se=oe.responsive,Oe=void 0!==Se&&Se,je=oe.excludeCss,ct=void 0!==je&&je;return function(ue){return Promise.all(Array.from(ue.querySelectorAll("image")).map(function(de){var oe=de.getAttributeNS("http://www.w3.org/1999/xlink","href")||de.getAttribute("href");return oe?(function(ue){return ue&&0===ue.lastIndexOf("http",0)&&-1===ue.lastIndexOf(window.location.host)}(oe)&&(oe+=(-1===oe.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),new Promise(function($,ye){var ve=document.createElement("canvas"),et=new Image;et.crossOrigin="anonymous",et.src=oe,et.onerror=function(){return ye(new Error("Could not load "+oe))},et.onload=function(){ve.width=et.width,ve.height=et.height,ve.getContext("2d").drawImage(et,0,0),de.setAttributeNS("http://www.w3.org/1999/xlink","href",ve.toDataURL("image/png")),$(!0)}})):Promise.resolve(null)}))}(se).then(function(){var Xe=se.cloneNode(!0);Xe.style.backgroundColor=(ue||{}).backgroundColor||se.style.backgroundColor;var Ht=function(ue,de,oe,$){if("svg"===ue.tagName)return{width:oe||T(ue,de,"width"),height:$||T(ue,de,"height")};if(ue.getBBox){var ye=ue.getBBox();return{width:ye.x+ye.width,height:ye.y+ye.height}}}(se,Xe,Ne,gt),Et=Ht.width,vt=Ht.height;if("svg"!==se.tagName){if(!se.getBBox)return void console.error("Attempted to render non-SVG element",se);null!=Xe.getAttribute("transform")&&Xe.setAttribute("transform",Xe.getAttribute("transform").replace(/translate\(.*?\)/,""));var Xt=document.createElementNS("http://www.w3.org/2000/svg","svg");Xt.appendChild(Xe),Xe=Xt}if(Xe.setAttribute("version","1.1"),Xe.setAttribute("viewBox",[ye,et,Et,vt].join(" ")),Xe.getAttribute("xmlns")||Xe.setAttributeNS(V,"xmlns",w),Xe.getAttribute("xmlns:xlink")||Xe.setAttributeNS(V,"xmlns:xlink","http://www.w3.org/1999/xlink"),Oe?(Xe.removeAttribute("width"),Xe.removeAttribute("height"),Xe.setAttribute("preserveAspectRatio","xMinYMin meet")):(Xe.setAttribute("width",Et*Rt),Xe.setAttribute("height",vt*Rt)),Array.from(Xe.querySelectorAll("foreignObject > *")).forEach(function(jt){jt.setAttributeNS(V,"xmlns","svg"===jt.tagName?w:"http://www.w3.org/1999/xhtml")}),!ct)return ae(se,ue).then(function(jt){var bt=document.createElement("style");bt.setAttribute("type","text/css"),bt.innerHTML="<![CDATA[\n"+jt+"\n]]>";var nn=document.createElement("defs");nn.appendChild(bt),Xe.insertBefore(nn,Xe.firstChild);var Ut=document.createElement("div");Ut.appendChild(Xe);var an=Ut.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof de)return{src:an,width:Et,height:vt};de(an,Et,vt)});var qt=document.createElement("div");qt.appendChild(Xe);var Ct=qt.innerHTML;if("function"!=typeof de)return{src:Ct,width:Et,height:vt};de(Ct,Et,vt)})},B.svgAsDataUri=function(se,ue,de){return D(se),B.prepareSvg(se,ue).then(function(oe){var ye=oe.width,ve=oe.height,et="data:image/svg+xml;base64,"+window.btoa(function(ue){return decodeURIComponent(encodeURIComponent(ue).replace(/%([0-9A-F]{2})/g,function(de,oe){var $=String.fromCharCode("0x"+oe);return"%"===$?"%25":$}))}('<?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 "&#160;">]>'+oe.src));return"function"==typeof de&&de(et,ye,ve),et})},B.svgAsPngUri=function(se,ue,de){D(se);var oe=ue||{},$=oe.encoderType,ye=void 0===$?"image/png":$,ve=oe.encoderOptions,et=void 0===ve?.8:ve,Ne=oe.canvg,gt=function(Rt){var Se=Rt.src,Oe=Rt.width,je=Rt.height,ct=document.createElement("canvas"),Xe=ct.getContext("2d"),Ht=window.devicePixelRatio||1;ct.width=Oe*Ht,ct.height=je*Ht,ct.style.width=ct.width+"px",ct.style.height=ct.height+"px",Xe.setTransform(Ht,0,0,Ht,0,0),Ne?Ne(ct,Se):Xe.drawImage(Se,0,0);var Et=void 0;try{Et=ct.toDataURL(ye,et)}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 de&&de(Et,ct.width,ct.height),Promise.resolve(Et)};return Ne?B.prepareSvg(se,ue).then(gt):B.svgAsDataUri(se,ue).then(function(_t){return new Promise(function(Rt,Se){var Oe=new Image;Oe.onload=function(){return Rt(gt({src:Oe,width:Oe.width,height:Oe.height}))},Oe.onerror=function(){Se("There was an error loading the data URI as an image on the following SVG\n"+window.atob(_t.slice(26))+"Open the following link to see browser's diagnosis\n"+_t)},Oe.src=_t})})},B.download=function(se,ue,de){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(x(ue),se);else{var oe=document.createElement("a");if("download"in oe){oe.download=se,oe.style.display="none",document.body.appendChild(oe);try{var $=x(ue),ye=URL.createObjectURL($);oe.href=ye,oe.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(ye)})}}catch(ve){console.error(ve),console.warn("Error while getting object URL. Falling back to string URL."),oe.href=ue}oe.click(),document.body.removeChild(oe)}else de&&de.popup&&(de.popup.document.title=se,de.popup.location.replace(ue))}},B.saveSvg=function(se,ue,de){var oe=ie();return O(se).then(function($){return B.svgAsDataUri($,de||{})}).then(function($){return B.download(ue,$,oe)})},B.saveSvgAsPng=function(se,ue,de){var oe=ie();return O(se).then(function($){return B.svgAsPngUri($,de||{})}).then(function($){return B.download(ue,$,oe)})}}()},5042:function(le,q,f){var U=f(25523),B=Object.prototype.hasOwnProperty,V="undefined"!=typeof Map;function Z(){this._array=[],this._set=V?new Map:Object.create(null)}Z.fromArray=function(R,C){for(var _=new Z,N=0,D=R.length;N<D;N++)_.add(R[N],C);return _},Z.prototype.size=function(){return V?this._set.size:Object.getOwnPropertyNames(this._set).length},Z.prototype.add=function(R,C){var _=V?R:U.toSetString(R),N=V?this.has(R):B.call(this._set,_),D=this._array.length;(!N||C)&&this._array.push(R),N||(V?this._set.set(R,D):this._set[_]=D)},Z.prototype.has=function(R){if(V)return this._set.has(R);var C=U.toSetString(R);return B.call(this._set,C)},Z.prototype.indexOf=function(R){if(V){var C=this._set.get(R);if(C>=0)return C}else{var _=U.toSetString(R);if(B.call(this._set,_))return this._set[_]}throw new Error('"'+R+'" is not in the set.')},Z.prototype.at=function(R){if(R>=0&&R<this._array.length)return this._array[R];throw new Error("No element indexed by "+R)},Z.prototype.toArray=function(){return this._array.slice()},q.I=Z},78619:function(le,q,f){var U=f(7698);q.encode=function(N){var O,_,D="",P=(_=N)<0?1+(-_<<1):0+(_<<1);do{O=31&P,(P>>>=5)>0&&(O|=32),D+=U.encode(O)}while(P>0);return D},q.decode=function(N,D,O){var T,M,P=N.length,y=0,g=0;do{if(D>=P)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(M=U.decode(N.charCodeAt(D++))))throw new Error("Invalid base64 digit: "+N.charAt(D-1));T=!!(32&M),y+=(M&=31)<<g,g+=5}while(T);O.value=function(_){var D=_>>1;return 1==(1&_)?-D:D}(y),O.rest=D}},7698:function(le,q){var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");q.encode=function(U){if(0<=U&&U<f.length)return f[U];throw new TypeError("Must be between 0 and 63: "+U)},q.decode=function(U){return 65<=U&&U<=90?U-65:97<=U&&U<=122?U-97+26:48<=U&&U<=57?U-48+52:43==U?62:47==U?63:-1}},66306:function(le,q,f){var U=f(25523);function V(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}V.prototype.unsortedForEach=function(w,R){this._array.forEach(w,R)},V.prototype.add=function(w){!function(Z,w){var R=Z.generatedLine,C=w.generatedLine;return C>R||C==R&&w.generatedColumn>=Z.generatedColumn||U.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(U.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},q.H=V},30673:function(le,q,f){var U=f(78619),B=f(25523),V=f(5042).I,Z=f(66306).H;function w(R){R||(R={}),this._file=B.getArg(R,"file",null),this._sourceRoot=B.getArg(R,"sourceRoot",null),this._skipValidation=B.getArg(R,"skipValidation",!1),this._sources=new V,this._names=new V,this._mappings=new Z,this._sourcesContents=null}w.prototype._version=3,w.fromSourceMap=function(C){var _=C.sourceRoot,N=new w({file:C.file,sourceRoot:_});return C.eachMapping(function(D){var O={generated:{line:D.generatedLine,column:D.generatedColumn}};null!=D.source&&(O.source=D.source,null!=_&&(O.source=B.relative(_,O.source)),O.original={line:D.originalLine,column:D.originalColumn},null!=D.name&&(O.name=D.name)),N.addMapping(O)}),C.sources.forEach(function(D){var O=D;null!==_&&(O=B.relative(_,D)),N._sources.has(O)||N._sources.add(O);var P=C.sourceContentFor(D);null!=P&&N.setSourceContent(D,P)}),N},w.prototype.addMapping=function(C){var _=B.getArg(C,"generated"),N=B.getArg(C,"original",null),D=B.getArg(C,"source",null),O=B.getArg(C,"name",null);this._skipValidation||this._validateMapping(_,N,D,O),null!=D&&(D=String(D),this._sources.has(D)||this._sources.add(D)),null!=O&&(O=String(O),this._names.has(O)||this._names.add(O)),this._mappings.add({generatedLine:_.line,generatedColumn:_.column,originalLine:null!=N&&N.line,originalColumn:null!=N&&N.column,source:D,name:O})},w.prototype.setSourceContent=function(C,_){var N=C;null!=this._sourceRoot&&(N=B.relative(this._sourceRoot,N)),null!=_?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[B.toSetString(N)]=_):this._sourcesContents&&(delete this._sourcesContents[B.toSetString(N)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},w.prototype.applySourceMap=function(C,_,N){var D=_;if(null==_){if(null==C.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');D=C.file}var O=this._sourceRoot;null!=O&&(D=B.relative(O,D));var P=new V,y=new V;this._mappings.unsortedForEach(function(g){if(g.source===D&&null!=g.originalLine){var T=C.originalPositionFor({line:g.originalLine,column:g.originalColumn});null!=T.source&&(g.source=T.source,null!=N&&(g.source=B.join(N,g.source)),null!=O&&(g.source=B.relative(O,g.source)),g.originalLine=T.line,g.originalColumn=T.column,null!=T.name&&(g.name=T.name))}var M=g.source;null!=M&&!P.has(M)&&P.add(M);var E=g.name;null!=E&&!y.has(E)&&y.add(E)},this),this._sources=P,this._names=y,C.sources.forEach(function(g){var T=C.sourceContentFor(g);null!=T&&(null!=N&&(g=B.join(N,g)),null!=O&&(g=B.relative(O,g)),this.setSourceContent(g,T))},this)},w.prototype._validateMapping=function(C,_,N,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(!(C&&"line"in C&&"column"in C&&C.line>0&&C.column>=0)||_||N||D){if(C&&"line"in C&&"column"in C&&_&&"line"in _&&"column"in _&&C.line>0&&C.column>=0&&_.line>0&&_.column>=0&&N)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:C,source:N,original:_,name:D}))}},w.prototype._serializeMappings=function(){for(var g,T,M,E,C=0,_=1,N=0,D=0,O=0,P=0,y="",x=this._mappings.toArray(),S=0,A=x.length;S<A;S++){if(g="",(T=x[S]).generatedLine!==_)for(C=0;T.generatedLine!==_;)g+=";",_++;else if(S>0){if(!B.compareByGeneratedPositionsInflated(T,x[S-1]))continue;g+=","}g+=U.encode(T.generatedColumn-C),C=T.generatedColumn,null!=T.source&&(E=this._sources.indexOf(T.source),g+=U.encode(E-P),P=E,g+=U.encode(T.originalLine-1-D),D=T.originalLine-1,g+=U.encode(T.originalColumn-N),N=T.originalColumn,null!=T.name&&(M=this._names.indexOf(T.name),g+=U.encode(M-O),O=M)),y+=g}return y},w.prototype._generateSourcesContent=function(C,_){return C.map(function(N){if(!this._sourcesContents)return null;null!=_&&(N=B.relative(_,N));var D=B.toSetString(N);return Object.prototype.hasOwnProperty.call(this._sourcesContents,D)?this._sourcesContents[D]:null},this)},w.prototype.toJSON=function(){var C={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(C.file=this._file),null!=this._sourceRoot&&(C.sourceRoot=this._sourceRoot),this._sourcesContents&&(C.sourcesContent=this._generateSourcesContent(C.sources,C.sourceRoot)),C},w.prototype.toString=function(){return JSON.stringify(this.toJSON())},q.h=w},25523:function(le,q){q.getArg=function(S,A,L){if(A in S)return S[A];if(3===arguments.length)return L;throw new Error('"'+A+'" is a required argument.')};var U=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,B=/^data:.+\,.+$/;function V(S){var A=S.match(U);return A?{scheme:A[1],auth:A[2],host:A[3],port:A[4],path:A[5]}:null}function Z(S){var A="";return S.scheme&&(A+=S.scheme+":"),A+="//",S.auth&&(A+=S.auth+"@"),S.host&&(A+=S.host),S.port&&(A+=":"+S.port),S.path&&(A+=S.path),A}function w(S){var A=S,L=V(S);if(L){if(!L.path)return S;A=L.path}for(var z,j=q.isAbsolute(A),K=A.split(/\/+/),Q=0,ae=K.length-1;ae>=0;ae--)"."===(z=K[ae])?K.splice(ae,1):".."===z?Q++:Q>0&&(""===z?(K.splice(ae+1,Q),Q=0):(K.splice(ae,2),Q--));return""===(A=K.join("/"))&&(A=j?"/":"."),L?(L.path=A,Z(L)):A}function R(S,A){""===S&&(S="."),""===A&&(A=".");var L=V(A),j=V(S);if(j&&(S=j.path||"/"),L&&!L.scheme)return j&&(L.scheme=j.scheme),Z(L);if(L||A.match(B))return A;if(j&&!j.host&&!j.path)return j.host=A,Z(j);var K="/"===A.charAt(0)?A:w(S.replace(/\/+$/,"")+"/"+A);return j?(j.path=K,Z(j)):K}q.urlParse=V,q.urlGenerate=Z,q.normalize=w,q.join=R,q.isAbsolute=function(S){return"/"===S.charAt(0)||U.test(S)},q.relative=function(S,A){""===S&&(S="."),S=S.replace(/\/$/,"");for(var L=0;0!==A.indexOf(S+"/");){var j=S.lastIndexOf("/");if(j<0||(S=S.slice(0,j)).match(/^([^\/]+:\/)?\/*$/))return A;++L}return Array(L+1).join("../")+A.substr(S.length+1)};var _=!("__proto__"in Object.create(null));function N(S){return S}function P(S){if(!S)return!1;var A=S.length;if(A<9||95!==S.charCodeAt(A-1)||95!==S.charCodeAt(A-2)||111!==S.charCodeAt(A-3)||116!==S.charCodeAt(A-4)||111!==S.charCodeAt(A-5)||114!==S.charCodeAt(A-6)||112!==S.charCodeAt(A-7)||95!==S.charCodeAt(A-8)||95!==S.charCodeAt(A-9))return!1;for(var L=A-10;L>=0;L--)if(36!==S.charCodeAt(L))return!1;return!0}function T(S,A){return S===A?0:null===S?1:null===A?-1:S>A?1:-1}q.toSetString=_?N:function(S){return P(S)?"$"+S:S},q.fromSetString=_?N:function(S){return P(S)?S.slice(1):S},q.compareByOriginalPositions=function(S,A,L){var j=T(S.source,A.source);return 0!==j||0!=(j=S.originalLine-A.originalLine)||0!=(j=S.originalColumn-A.originalColumn)||L||0!=(j=S.generatedColumn-A.generatedColumn)||0!=(j=S.generatedLine-A.generatedLine)?j:T(S.name,A.name)},q.compareByGeneratedPositionsDeflated=function(S,A,L){var j=S.generatedLine-A.generatedLine;return 0!==j||0!=(j=S.generatedColumn-A.generatedColumn)||L||0!==(j=T(S.source,A.source))||0!=(j=S.originalLine-A.originalLine)||0!=(j=S.originalColumn-A.originalColumn)?j:T(S.name,A.name)},q.compareByGeneratedPositionsInflated=function(S,A){var L=S.generatedLine-A.generatedLine;return 0!==L||0!=(L=S.generatedColumn-A.generatedColumn)||0!==(L=T(S.source,A.source))||0!=(L=S.originalLine-A.originalLine)||0!=(L=S.originalColumn-A.originalColumn)?L:T(S.name,A.name)},q.parseSourceMapInput=function(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))},q.computeSourceURL=function(S,A,L){if(A=A||"",S&&("/"!==S[S.length-1]&&"/"!==A[0]&&(S+="/"),A=S+A),L){var j=V(L);if(!j)throw new Error("sourceMapURL could not be parsed");if(j.path){var K=j.path.lastIndexOf("/");K>=0&&(j.path=j.path.substring(0,K+1))}A=R(Z(j),A)}return w(A)}},52402:function(le){le.exports=function(q){"use strict";var U=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function V(M,E){var x=M[0],S=M[1],A=M[2],L=M[3];S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&A|~S&L)+E[0]-680876936|0)<<7|x>>>25)+S|0)&S|~x&A)+E[1]-389564586|0)<<12|L>>>20)+x|0)&x|~L&S)+E[2]+606105819|0)<<17|A>>>15)+L|0)&L|~A&x)+E[3]-1044525330|0)<<22|S>>>10)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&A|~S&L)+E[4]-176418897|0)<<7|x>>>25)+S|0)&S|~x&A)+E[5]+1200080426|0)<<12|L>>>20)+x|0)&x|~L&S)+E[6]-1473231341|0)<<17|A>>>15)+L|0)&L|~A&x)+E[7]-45705983|0)<<22|S>>>10)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&A|~S&L)+E[8]+1770035416|0)<<7|x>>>25)+S|0)&S|~x&A)+E[9]-1958414417|0)<<12|L>>>20)+x|0)&x|~L&S)+E[10]-42063|0)<<17|A>>>15)+L|0)&L|~A&x)+E[11]-1990404162|0)<<22|S>>>10)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&A|~S&L)+E[12]+1804603682|0)<<7|x>>>25)+S|0)&S|~x&A)+E[13]-40341101|0)<<12|L>>>20)+x|0)&x|~L&S)+E[14]-1502002290|0)<<17|A>>>15)+L|0)&L|~A&x)+E[15]+1236535329|0)<<22|S>>>10)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&L|A&~L)+E[1]-165796510|0)<<5|x>>>27)+S|0)&A|S&~A)+E[6]-1069501632|0)<<9|L>>>23)+x|0)&S|x&~S)+E[11]+643717713|0)<<14|A>>>18)+L|0)&x|L&~x)+E[0]-373897302|0)<<20|S>>>12)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&L|A&~L)+E[5]-701558691|0)<<5|x>>>27)+S|0)&A|S&~A)+E[10]+38016083|0)<<9|L>>>23)+x|0)&S|x&~S)+E[15]-660478335|0)<<14|A>>>18)+L|0)&x|L&~x)+E[4]-405537848|0)<<20|S>>>12)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&L|A&~L)+E[9]+568446438|0)<<5|x>>>27)+S|0)&A|S&~A)+E[14]-1019803690|0)<<9|L>>>23)+x|0)&S|x&~S)+E[3]-187363961|0)<<14|A>>>18)+L|0)&x|L&~x)+E[8]+1163531501|0)<<20|S>>>12)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S&L|A&~L)+E[13]-1444681467|0)<<5|x>>>27)+S|0)&A|S&~A)+E[2]-51403784|0)<<9|L>>>23)+x|0)&S|x&~S)+E[7]+1735328473|0)<<14|A>>>18)+L|0)&x|L&~x)+E[12]-1926607734|0)<<20|S>>>12)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S^A^L)+E[5]-378558|0)<<4|x>>>28)+S|0)^S^A)+E[8]-2022574463|0)<<11|L>>>21)+x|0)^x^S)+E[11]+1839030562|0)<<16|A>>>16)+L|0)^L^x)+E[14]-35309556|0)<<23|S>>>9)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S^A^L)+E[1]-1530992060|0)<<4|x>>>28)+S|0)^S^A)+E[4]+1272893353|0)<<11|L>>>21)+x|0)^x^S)+E[7]-155497632|0)<<16|A>>>16)+L|0)^L^x)+E[10]-1094730640|0)<<23|S>>>9)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S^A^L)+E[13]+681279174|0)<<4|x>>>28)+S|0)^S^A)+E[0]-358537222|0)<<11|L>>>21)+x|0)^x^S)+E[3]-722521979|0)<<16|A>>>16)+L|0)^L^x)+E[6]+76029189|0)<<23|S>>>9)+A|0,S=((S+=((A=((A+=((L=((L+=((x=((x+=(S^A^L)+E[9]-640364487|0)<<4|x>>>28)+S|0)^S^A)+E[12]-421815835|0)<<11|L>>>21)+x|0)^x^S)+E[15]+530742520|0)<<16|A>>>16)+L|0)^L^x)+E[2]-995338651|0)<<23|S>>>9)+A|0,S=((S+=((L=((L+=(S^((x=((x+=(A^(S|~L))+E[0]-198630844|0)<<6|x>>>26)+S|0)|~A))+E[7]+1126891415|0)<<10|L>>>22)+x|0)^((A=((A+=(x^(L|~S))+E[14]-1416354905|0)<<15|A>>>17)+L|0)|~x))+E[5]-57434055|0)<<21|S>>>11)+A|0,S=((S+=((L=((L+=(S^((x=((x+=(A^(S|~L))+E[12]+1700485571|0)<<6|x>>>26)+S|0)|~A))+E[3]-1894986606|0)<<10|L>>>22)+x|0)^((A=((A+=(x^(L|~S))+E[10]-1051523|0)<<15|A>>>17)+L|0)|~x))+E[1]-2054922799|0)<<21|S>>>11)+A|0,S=((S+=((L=((L+=(S^((x=((x+=(A^(S|~L))+E[8]+1873313359|0)<<6|x>>>26)+S|0)|~A))+E[15]-30611744|0)<<10|L>>>22)+x|0)^((A=((A+=(x^(L|~S))+E[6]-1560198380|0)<<15|A>>>17)+L|0)|~x))+E[13]+1309151649|0)<<21|S>>>11)+A|0,S=((S+=((L=((L+=(S^((x=((x+=(A^(S|~L))+E[4]-145523070|0)<<6|x>>>26)+S|0)|~A))+E[11]-1120210379|0)<<10|L>>>22)+x|0)^((A=((A+=(x^(L|~S))+E[2]+718787259|0)<<15|A>>>17)+L|0)|~x))+E[9]-343485551|0)<<21|S>>>11)+A|0,M[0]=x+M[0]|0,M[1]=S+M[1]|0,M[2]=A+M[2]|0,M[3]=L+M[3]|0}function Z(M){var x,E=[];for(x=0;x<64;x+=4)E[x>>2]=M.charCodeAt(x)+(M.charCodeAt(x+1)<<8)+(M.charCodeAt(x+2)<<16)+(M.charCodeAt(x+3)<<24);return E}function w(M){var x,E=[];for(x=0;x<64;x+=4)E[x>>2]=M[x]+(M[x+1]<<8)+(M[x+2]<<16)+(M[x+3]<<24);return E}function R(M){var S,A,L,j,K,z,E=M.length,x=[1732584193,-271733879,-1732584194,271733878];for(S=64;S<=E;S+=64)V(x,Z(M.substring(S-64,S)));for(A=(M=M.substring(S-64)).length,L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S=0;S<A;S+=1)L[S>>2]|=M.charCodeAt(S)<<(S%4<<3);if(L[S>>2]|=128<<(S%4<<3),S>55)for(V(x,L),S=0;S<16;S+=1)L[S]=0;return j=(j=8*E).toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(j[2],16),z=parseInt(j[1],16)||0,L[14]=K,L[15]=z,V(x,L),x}function _(M){var x,E="";for(x=0;x<4;x+=1)E+=U[M>>8*x+4&15]+U[M>>8*x&15];return E}function N(M){var E;for(E=0;E<M.length;E+=1)M[E]=_(M[E]);return M.join("")}function D(M){return/[\u0080-\uFFFF]/.test(M)&&(M=unescape(encodeURIComponent(M))),M}function g(M){var S,E=[],x=M.length;for(S=0;S<x-1;S+=2)E.push(parseInt(M.substr(S,2),16));return String.fromCharCode.apply(String,E)}function T(){this.reset()}return N(R("hello")),"undefined"!=typeof ArrayBuffer&&!ArrayBuffer.prototype.slice&&function(){function M(E,x){return(E=0|E||0)<0?Math.max(E+x,0):Math.min(E,x)}ArrayBuffer.prototype.slice=function(E,x){var j,K,z,Q,S=this.byteLength,A=M(E,S),L=S;return undefined!==x&&(L=M(x,S)),A>L?new ArrayBuffer(0):(j=L-A,K=new ArrayBuffer(j),z=new Uint8Array(K),Q=new Uint8Array(this,A,j),z.set(Q),K)}}(),T.prototype.append=function(M){return this.appendBinary(D(M)),this},T.prototype.appendBinary=function(M){this._buff+=M,this._length+=M.length;var x,E=this._buff.length;for(x=64;x<=E;x+=64)V(this._hash,Z(this._buff.substring(x-64,x)));return this._buff=this._buff.substring(x-64),this},T.prototype.end=function(M){var S,L,E=this._buff,x=E.length,A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(S=0;S<x;S+=1)A[S>>2]|=E.charCodeAt(S)<<(S%4<<3);return this._finish(A,x),L=N(this._hash),M&&(L=g(L)),this.reset(),L},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(M){return this._buff=M.buff,this._length=M.length,this._hash=M.hash,this},T.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},T.prototype._finish=function(M,E){var S,A,L,x=E;if(M[x>>2]|=128<<(x%4<<3),x>55)for(V(this._hash,M),x=0;x<16;x+=1)M[x]=0;S=(S=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),A=parseInt(S[2],16),L=parseInt(S[1],16)||0,M[14]=A,M[15]=L,V(this._hash,M)},T.hash=function(M,E){return T.hashBinary(D(M),E)},T.hashBinary=function(M,E){var S=N(R(M));return E?g(S):S},(T.ArrayBuffer=function(){this.reset()}).prototype.append=function(M){var S,E=function(M,E,x){var S=new Uint8Array(M.byteLength+E.byteLength);return S.set(new Uint8Array(M)),S.set(new Uint8Array(E),M.byteLength),x?S:S.buffer}(this._buff.buffer,M,!0),x=E.length;for(this._length+=M.byteLength,S=64;S<=x;S+=64)V(this._hash,w(E.subarray(S-64,S)));return this._buff=S-64<x?new Uint8Array(E.buffer.slice(S-64)):new Uint8Array(0),this},T.ArrayBuffer.prototype.end=function(M){var A,L,E=this._buff,x=E.length,S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(A=0;A<x;A+=1)S[A>>2]|=E[A]<<(A%4<<3);return this._finish(S,x),L=N(this._hash),M&&(L=g(L)),this.reset(),L},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 M=T.prototype.getState.call(this);return M.buff=function(M){return String.fromCharCode.apply(null,new Uint8Array(M))}(M.buff),M},T.ArrayBuffer.prototype.setState=function(M){return M.buff=function(M,E){var L,x=M.length,S=new ArrayBuffer(x),A=new Uint8Array(S);for(L=0;L<x;L+=1)A[L]=M.charCodeAt(L);return E?A:S}(M.buff,!0),T.prototype.setState.call(this,M)},T.ArrayBuffer.prototype.destroy=T.prototype.destroy,T.ArrayBuffer.prototype._finish=T.prototype._finish,T.ArrayBuffer.hash=function(M,E){var S=N(function(M){var S,A,L,j,K,z,E=M.length,x=[1732584193,-271733879,-1732584194,271733878];for(S=64;S<=E;S+=64)V(x,w(M.subarray(S-64,S)));for(A=(M=S-64<E?M.subarray(S-64):new Uint8Array(0)).length,L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S=0;S<A;S+=1)L[S>>2]|=M[S]<<(S%4<<3);if(L[S>>2]|=128<<(S%4<<3),S>55)for(V(x,L),S=0;S<16;S+=1)L[S]=0;return j=(j=8*E).toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(j[2],16),z=parseInt(j[1],16)||0,L[14]=K,L[15]=z,V(x,L),x}(new Uint8Array(M)));return E?g(S):S},T}()},49940:function(le,q,f){var U=f(33499),B=f(54968),V=B;V.v1=U,V.v4=B,le.exports=V},83702:function(le){for(var q=[],f=0;f<256;++f)q[f]=(f+256).toString(16).substr(1);le.exports=function(B,V){var Z=V||0;return[q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],"-",q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]],q[B[Z++]]].join("")}},1942:function(le){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);le.exports=function(){return q(f),f}}else{var U=new Array(16);le.exports=function(){for(var Z,V=0;V<16;V++)0==(3&V)&&(Z=4294967296*Math.random()),U[V]=Z>>>((3&V)<<3)&255;return U}}},33499:function(le,q,f){var V,Z,U=f(1942),B=f(83702),w=0,R=0;le.exports=function(_,N,D){var O=N&&D||0,P=N||[],y=(_=_||{}).node||V,g=void 0!==_.clockseq?_.clockseq:Z;if(null==y||null==g){var T=U();null==y&&(y=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 M=void 0!==_.msecs?_.msecs:(new Date).getTime(),E=void 0!==_.nsecs?_.nsecs:R+1,x=M-w+(E-R)/1e4;if(x<0&&void 0===_.clockseq&&(g=g+1&16383),(x<0||M>w)&&void 0===_.nsecs&&(E=0),E>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");w=M,R=E,Z=g;var S=(1e4*(268435455&(M+=122192928e5))+E)%4294967296;P[O++]=S>>>24&255,P[O++]=S>>>16&255,P[O++]=S>>>8&255,P[O++]=255&S;var A=M/4294967296*1e4&268435455;P[O++]=A>>>8&255,P[O++]=255&A,P[O++]=A>>>24&15|16,P[O++]=A>>>16&255,P[O++]=g>>>8|128,P[O++]=255&g;for(var L=0;L<6;++L)P[O+L]=y[L];return N||B(P)}},54968:function(le,q,f){var U=f(1942),B=f(83702);le.exports=function(Z,w,R){var C=w&&R||0;"string"==typeof Z&&(w="binary"===Z?new Array(16):null,Z=null);var _=(Z=Z||{}).random||(Z.rng||U)();if(_[6]=15&_[6]|64,_[8]=63&_[8]|128,w)for(var N=0;N<16;++N)w[C+N]=_[N];return w||B(_)}},3397:function(le){window,le.exports=function(q){var f={};function U(B){if(f[B])return f[B].exports;var V=f[B]={i:B,l:!1,exports:{}};return q[B].call(V.exports,V,V.exports,U),V.l=!0,V.exports}return U.m=q,U.c=f,U.d=function(B,V,Z){U.o(B,V)||Object.defineProperty(B,V,{enumerable:!0,get:Z})},U.r=function(B){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(B,"__esModule",{value:!0})},U.t=function(B,V){if(1&V&&(B=U(B)),8&V||4&V&&"object"==typeof B&&B&&B.__esModule)return B;var Z=Object.create(null);if(U.r(Z),Object.defineProperty(Z,"default",{enumerable:!0,value:B}),2&V&&"string"!=typeof B)for(var w in B)U.d(Z,w,function(R){return B[R]}.bind(null,w));return Z},U.n=function(B){var V=B&&B.__esModule?function(){return B.default}:function(){return B};return U.d(V,"a",V),V},U.o=function(B,V){return Object.prototype.hasOwnProperty.call(B,V)},U.p="",U(U.s=0)}([function(q,f,U){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.AttachAddon=void 0;var B=function(){function Z(w,R){this._disposables=[],this._socket=w,this._socket.binaryType="arraybuffer",this._bidirectional=!R||!1!==R.bidirectional}return Z.prototype.activate=function(w){var R=this;this._disposables.push(V(this._socket,"message",function(C){var _=C.data;w.write("string"==typeof _?_:new Uint8Array(_))})),this._bidirectional&&(this._disposables.push(w.onData(function(C){return R._sendData(C)})),this._disposables.push(w.onBinary(function(C){return R._sendBinary(C)}))),this._disposables.push(V(this._socket,"close",function(){return R.dispose()})),this._disposables.push(V(this._socket,"error",function(){return R.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 R=new Uint8Array(w.length),C=0;C<w.length;++C)R[C]=255&w.charCodeAt(C);this._socket.send(R)}},Z}();function V(Z,w,R){return Z.addEventListener(w,R),{dispose:function(){R&&Z.removeEventListener(w,R)}}}f.AttachAddon=B}])},97916:function(le){self,le.exports=function(){"use strict";var q={775:function(B,V){Object.defineProperty(V,"__esModule",{value:!0}),V.FitAddon=void 0;var Z=function(){function w(){}return w.prototype.activate=function(R){this._terminal=R},w.prototype.dispose=function(){},w.prototype.fit=function(){var R=this.proposeDimensions();R&&this._terminal&&(this._terminal.rows===R.rows&&this._terminal.cols===R.cols||(this._terminal._core._renderService.clear(),this._terminal.resize(R.cols,R.rows)))},w.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var R=this._terminal._core;if(0!==R._renderService.dimensions.actualCellWidth&&0!==R._renderService.dimensions.actualCellHeight){var C=window.getComputedStyle(this._terminal.element.parentElement),_=parseInt(C.getPropertyValue("height")),N=Math.max(0,parseInt(C.getPropertyValue("width"))),D=window.getComputedStyle(this._terminal.element),O=_-(parseInt(D.getPropertyValue("padding-top"))+parseInt(D.getPropertyValue("padding-bottom"))),P=N-(parseInt(D.getPropertyValue("padding-right"))+parseInt(D.getPropertyValue("padding-left")))-R.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(P/R._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(O/R._renderService.dimensions.actualCellHeight))}}}},w}();V.FitAddon=Z}},f={};return function U(B){if(f[B])return f[B].exports;var V=f[B]={exports:{}};return q[B](V,V.exports,U),V.exports}(775)}()},20039:function(le){self,le.exports=function(){"use strict";var q={4567:function(Z,w,R){var C,_=this&&this.__extends||(C=function(x,S){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,L){A.__proto__=L}||function(A,L){for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&(A[j]=L[j])})(x,S)},function(E,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function S(){this.constructor=E}C(E,x),E.prototype=null===x?Object.create(x):(S.prototype=x.prototype,new S)});Object.defineProperty(w,"__esModule",{value:!0}),w.AccessibilityManager=void 0;var N=R(9042),D=R(6114),O=R(6193),P=R(3656),y=R(844),g=R(5596),T=R(9631),M=function(E){function x(S,A){var L=E.call(this)||this;L._terminal=S,L._renderService=A,L._liveRegionLineCount=0,L._charsToConsume=[],L._charsToAnnounce="",L._accessibilityTreeRoot=document.createElement("div"),L._accessibilityTreeRoot.classList.add("xterm-accessibility"),L._rowContainer=document.createElement("div"),L._rowContainer.setAttribute("role","list"),L._rowContainer.classList.add("xterm-accessibility-tree"),L._rowElements=[];for(var j=0;j<L._terminal.rows;j++)L._rowElements[j]=L._createAccessibilityTreeNode(),L._rowContainer.appendChild(L._rowElements[j]);if(L._topBoundaryFocusListener=function(K){return L._onBoundaryFocus(K,0)},L._bottomBoundaryFocusListener=function(K){return L._onBoundaryFocus(K,1)},L._rowElements[0].addEventListener("focus",L._topBoundaryFocusListener),L._rowElements[L._rowElements.length-1].addEventListener("focus",L._bottomBoundaryFocusListener),L._refreshRowsDimensions(),L._accessibilityTreeRoot.appendChild(L._rowContainer),L._renderRowsDebouncer=new O.RenderDebouncer(L._renderRows.bind(L)),L._refreshRows(),L._liveRegion=document.createElement("div"),L._liveRegion.classList.add("live-region"),L._liveRegion.setAttribute("aria-live","assertive"),L._accessibilityTreeRoot.appendChild(L._liveRegion),!L._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return L._terminal.element.insertAdjacentElement("afterbegin",L._accessibilityTreeRoot),L.register(L._renderRowsDebouncer),L.register(L._terminal.onResize(function(K){return L._onResize(K.rows)})),L.register(L._terminal.onRender(function(K){return L._refreshRows(K.start,K.end)})),L.register(L._terminal.onScroll(function(){return L._refreshRows()})),L.register(L._terminal.onA11yChar(function(K){return L._onChar(K)})),L.register(L._terminal.onLineFeed(function(){return L._onChar("\n")})),L.register(L._terminal.onA11yTab(function(K){return L._onTab(K)})),L.register(L._terminal.onKey(function(K){return L._onKey(K.key)})),L.register(L._terminal.onBlur(function(){return L._clearLiveRegion()})),L.register(L._renderService.onDimensionsChange(function(){return L._refreshRowsDimensions()})),L._screenDprMonitor=new g.ScreenDprMonitor,L.register(L._screenDprMonitor),L._screenDprMonitor.setListener(function(){return L._refreshRowsDimensions()}),L.register(P.addDisposableDomListener(window,"resize",function(){return L._refreshRowsDimensions()})),L}return _(x,E),x.prototype.dispose=function(){E.prototype.dispose.call(this),T.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},x.prototype._onBoundaryFocus=function(S,A){var L=S.target,j=this._rowElements[0===A?1:this._rowElements.length-2];if(L.getAttribute("aria-posinset")!==(0===A?"1":""+this._terminal.buffer.lines.length)&&S.relatedTarget===j){var K,z;if(0===A?(K=L,z=this._rowElements.pop(),this._rowContainer.removeChild(z)):(K=this._rowElements.shift(),z=L,this._rowContainer.removeChild(K)),K.removeEventListener("focus",this._topBoundaryFocusListener),z.removeEventListener("focus",this._bottomBoundaryFocusListener),0===A){var Q=this._createAccessibilityTreeNode();this._rowElements.unshift(Q),this._rowContainer.insertAdjacentElement("afterbegin",Q)}else Q=this._createAccessibilityTreeNode(),this._rowElements.push(Q),this._rowContainer.appendChild(Q);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===A?-1:1),this._rowElements[0===A?1:this._rowElements.length-2].focus(),S.preventDefault(),S.stopImmediatePropagation()}},x.prototype._onResize=function(S){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var A=this._rowContainer.children.length;A<this._terminal.rows;A++)this._rowElements[A]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[A]);for(;this._rowElements.length>S;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},x.prototype._createAccessibilityTreeNode=function(){var S=document.createElement("div");return S.setAttribute("role","listitem"),S.tabIndex=-1,this._refreshRowDimensions(S),S},x.prototype._onTab=function(S){for(var A=0;A<S;A++)this._onChar(" ")},x.prototype._onChar=function(S){var A=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==S&&(this._charsToAnnounce+=S):this._charsToAnnounce+=S,"\n"===S&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=N.tooMuchOutput)),D.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){A._accessibilityTreeRoot.appendChild(A._liveRegion)},0))},x.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,D.isMac&&T.removeElementFromParent(this._liveRegion)},x.prototype._onKey=function(S){this._clearLiveRegion(),this._charsToConsume.push(S)},x.prototype._refreshRows=function(S,A){this._renderRowsDebouncer.refresh(S,A,this._terminal.rows)},x.prototype._renderRows=function(S,A){for(var L=this._terminal.buffer,j=L.lines.length.toString(),K=S;K<=A;K++){var z=L.translateBufferLineToString(L.ydisp+K,!0),Q=(L.ydisp+K+1).toString(),ae=this._rowElements[K];ae&&(0===z.length?ae.innerText="\xa0":ae.textContent=z,ae.setAttribute("aria-posinset",Q),ae.setAttribute("aria-setsize",j))}this._announceCharacters()},x.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var S=0;S<this._terminal.rows;S++)this._refreshRowDimensions(this._rowElements[S])}},x.prototype._refreshRowDimensions=function(S){S.style.height=this._renderService.dimensions.actualCellHeight+"px"},x.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},x}(y.Disposable);w.AccessibilityManager=M},3614:function(Z,w){function R(D){return D.replace(/\r?\n/g,"\r")}function C(D,O){return O?"\x1b[200~"+D+"\x1b[201~":D}function _(D,O,P){D=C(D=R(D),P.decPrivateModes.bracketedPasteMode),P.triggerDataEvent(D,!0),O.value=""}function N(D,O,P){var y=P.getBoundingClientRect(),g=D.clientX-y.left-10,T=D.clientY-y.top-10;O.style.width="20px",O.style.height="20px",O.style.left=g+"px",O.style.top=T+"px",O.style.zIndex="1000",O.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=R,w.bracketTextForPaste=C,w.copyHandler=function(D,O){D.clipboardData&&D.clipboardData.setData("text/plain",O.selectionText),D.preventDefault()},w.handlePasteEvent=function(D,O,P){D.stopPropagation(),D.clipboardData&&_(D.clipboardData.getData("text/plain"),O,P)},w.paste=_,w.moveTextAreaUnderMouseCursor=N,w.rightClickHandler=function(D,O,P,y,g){N(D,O,P),g&&y.rightClickSelect(D),O.value=y.selectionText,O.select()}},4774:function(Z,w){var R,C,_,N,P;function D(P){var y=P.toString(16);return y.length<2?"0"+y:y}function O(P,y){return P<y?(y+.05)/(P+.05):(P+.05)/(y+.05)}Object.defineProperty(w,"__esModule",{value:!0}),w.contrastRatio=w.toPaddedHex=w.rgba=w.rgb=w.css=w.color=w.channels=void 0,(P=R=w.channels||(w.channels={})).toCss=function(y,g,T,M){return void 0!==M?"#"+D(y)+D(g)+D(T)+D(M):"#"+D(y)+D(g)+D(T)},P.toRgba=function(y,g,T,M){return void 0===M&&(M=255),(y<<24|g<<16|T<<8|M)>>>0},(C=w.color||(w.color={})).blend=function(P,y){var g=(255&y.rgba)/255;if(1===g)return{css:y.css,rgba:y.rgba};var M=y.rgba>>16&255,E=y.rgba>>8&255,x=P.rgba>>24&255,S=P.rgba>>16&255,A=P.rgba>>8&255,L=x+Math.round(((y.rgba>>24&255)-x)*g),j=S+Math.round((M-S)*g),K=A+Math.round((E-A)*g);return{css:R.toCss(L,j,K),rgba:R.toRgba(L,j,K)}},C.isOpaque=function(P){return 255==(255&P.rgba)},C.ensureContrastRatio=function(P,y,g){var T=N.ensureContrastRatio(P.rgba,y.rgba,g);if(T)return N.toColor(T>>24&255,T>>16&255,T>>8&255)},C.opaque=function(P){var y=(255|P.rgba)>>>0,g=N.toChannels(y);return{css:R.toCss(g[0],g[1],g[2]),rgba:y}},C.opacity=function(P,y){var g=Math.round(255*y),T=N.toChannels(P.rgba),M=T[0],E=T[1],x=T[2];return{css:R.toCss(M,E,x,g),rgba:R.toRgba(M,E,x,g)}},(w.css||(w.css={})).toColor=function(P){switch(P.length){case 7:return{css:P,rgba:(parseInt(P.slice(1),16)<<8|255)>>>0};case 9:return{css:P,rgba:parseInt(P.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(P){function y(g,T,M){var E=g/255,x=T/255,S=M/255;return.2126*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))+.7152*(x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4))+.0722*(S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4))}P.relativeLuminance=function(g){return y(g>>16&255,g>>8&255,255&g)},P.relativeLuminance2=y}(_=w.rgb||(w.rgb={})),function(P){function y(T,M,E){for(var x=T>>24&255,S=T>>16&255,A=T>>8&255,L=M>>24&255,j=M>>16&255,K=M>>8&255,z=O(_.relativeLuminance2(L,K,j),_.relativeLuminance2(x,S,A));z<E&&(L>0||j>0||K>0);)L-=Math.max(0,Math.ceil(.1*L)),j-=Math.max(0,Math.ceil(.1*j)),K-=Math.max(0,Math.ceil(.1*K)),z=O(_.relativeLuminance2(L,K,j),_.relativeLuminance2(x,S,A));return(L<<24|j<<16|K<<8|255)>>>0}function g(T,M,E){for(var x=T>>24&255,S=T>>16&255,A=T>>8&255,L=M>>24&255,j=M>>16&255,K=M>>8&255,z=O(_.relativeLuminance2(L,K,j),_.relativeLuminance2(x,S,A));z<E&&(L<255||j<255||K<255);)L=Math.min(255,L+Math.ceil(.1*(255-L))),j=Math.min(255,j+Math.ceil(.1*(255-j))),K=Math.min(255,K+Math.ceil(.1*(255-K))),z=O(_.relativeLuminance2(L,K,j),_.relativeLuminance2(x,S,A));return(L<<24|j<<16|K<<8|255)>>>0}P.ensureContrastRatio=function(T,M,E){var x=_.relativeLuminance(T>>8),S=_.relativeLuminance(M>>8);if(O(x,S)<E)return S<x?y(T,M,E):g(T,M,E)},P.reduceLuminance=y,P.increaseLuminance=g,P.toChannels=function(T){return[T>>24&255,T>>16&255,T>>8&255,255&T]},P.toColor=function(T,M,E){return{css:R.toCss(T,M,E),rgba:R.toRgba(T,M,E)}}}(N=w.rgba||(w.rgba={})),w.toPaddedHex=D,w.contrastRatio=O},7239:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.ColorContrastCache=void 0;var R=function(){function C(){this._color={},this._rgba={}}return C.prototype.clear=function(){this._color={},this._rgba={}},C.prototype.setCss=function(_,N,D){this._rgba[_]||(this._rgba[_]={}),this._rgba[_][N]=D},C.prototype.getCss=function(_,N){return this._rgba[_]?this._rgba[_][N]:void 0},C.prototype.setColor=function(_,N,D){this._color[_]||(this._color[_]={}),this._color[_][N]=D},C.prototype.getColor=function(_,N){return this._color[_]?this._color[_][N]:void 0},C}();w.ColorContrastCache=R},5680:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.ColorManager=w.DEFAULT_ANSI_COLORS=void 0;var C=R(4774),_=R(7239),N=C.css.toColor("#ffffff"),D=C.css.toColor("#000000"),O=C.css.toColor("#ffffff"),P=C.css.toColor("#000000"),y={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};w.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var T=[C.css.toColor("#2e3436"),C.css.toColor("#cc0000"),C.css.toColor("#4e9a06"),C.css.toColor("#c4a000"),C.css.toColor("#3465a4"),C.css.toColor("#75507b"),C.css.toColor("#06989a"),C.css.toColor("#d3d7cf"),C.css.toColor("#555753"),C.css.toColor("#ef2929"),C.css.toColor("#8ae234"),C.css.toColor("#fce94f"),C.css.toColor("#729fcf"),C.css.toColor("#ad7fa8"),C.css.toColor("#34e2e2"),C.css.toColor("#eeeeec")],M=[0,95,135,175,215,255],E=0;E<216;E++){var x=M[E/36%6|0],S=M[E/6%6|0],A=M[E%6];T.push({css:C.channels.toCss(x,S,A),rgba:C.channels.toRgba(x,S,A)})}for(E=0;E<24;E++){var L=8+10*E;T.push({css:C.channels.toCss(L,L,L),rgba:C.channels.toRgba(L,L,L)})}return T}());var g=function(){function T(M,E){this.allowTransparency=E;var x=M.createElement("canvas");x.width=1,x.height=1;var S=x.getContext("2d");if(!S)throw new Error("Could not get rendering context");this._ctx=S,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new _.ColorContrastCache,this.colors={foreground:N,background:D,cursor:O,cursorAccent:P,selectionTransparent:y,selectionOpaque:C.color.blend(D,y),ansi:w.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return T.prototype.onOptionsChange=function(M){"minimumContrastRatio"===M&&this._contrastCache.clear()},T.prototype.setTheme=function(M){void 0===M&&(M={}),this.colors.foreground=this._parseColor(M.foreground,N),this.colors.background=this._parseColor(M.background,D),this.colors.cursor=this._parseColor(M.cursor,O,!0),this.colors.cursorAccent=this._parseColor(M.cursorAccent,P,!0),this.colors.selectionTransparent=this._parseColor(M.selection,y,!0),this.colors.selectionOpaque=C.color.blend(this.colors.background,this.colors.selectionTransparent),C.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=C.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(M.black,w.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(M.red,w.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(M.green,w.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(M.yellow,w.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(M.blue,w.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(M.magenta,w.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(M.cyan,w.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(M.white,w.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(M.brightBlack,w.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(M.brightRed,w.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(M.brightGreen,w.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(M.brightYellow,w.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(M.brightBlue,w.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(M.brightMagenta,w.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(M.brightCyan,w.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(M.brightWhite,w.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},T.prototype._parseColor=function(M,E,x){if(void 0===x&&(x=this.allowTransparency),void 0===M)return E;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=M,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+M+" is invalid using fallback "+E.css),E;this._ctx.fillRect(0,0,1,1);var S=this._ctx.getImageData(0,0,1,1).data;if(255!==S[3]){if(!x)return console.warn("Color: "+M+" is using transparency, but allowTransparency is false. Using fallback "+E.css+"."),E;var A=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(ae){return Number(ae)}),L=A[0],j=A[1],K=A[2],Q=Math.round(255*A[3]);return{rgba:C.channels.toRgba(L,j,K,Q),css:M}}return{css:this._ctx.fillStyle,rgba:C.channels.toRgba(S[0],S[1],S[2],S[3])}},T}();w.ColorManager=g},9631:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.removeElementFromParent=void 0,w.removeElementFromParent=function(){for(var R,C=[],_=0;_<arguments.length;_++)C[_]=arguments[_];for(var N=0,D=C;N<D.length;N++){var O=D[N];null===(R=null==O?void 0:O.parentElement)||void 0===R||R.removeChild(O)}}},3656:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.addDisposableDomListener=void 0,w.addDisposableDomListener=function(R,C,_,N){R.addEventListener(C,_,N);var D=!1;return{dispose:function(){D||(D=!0,R.removeEventListener(C,_,N))}}}},3551:function(Z,w,R){var C=this&&this.__decorate||function(y,g,T,M){var E,x=arguments.length,S=x<3?g:null===M?M=Object.getOwnPropertyDescriptor(g,T):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(y,g,T,M);else for(var A=y.length-1;A>=0;A--)(E=y[A])&&(S=(x<3?E(S):x>3?E(g,T,S):E(g,T))||S);return x>3&&S&&Object.defineProperty(g,T,S),S},_=this&&this.__param||function(y,g){return function(T,M){g(T,M,y)}};Object.defineProperty(w,"__esModule",{value:!0}),w.MouseZone=w.Linkifier=void 0;var N=R(8460),D=R(2585),O=function(){function y(g,T,M){this._bufferService=g,this._logService=T,this._unicodeService=M,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new N.EventEmitter,this._onHideLinkUnderline=new N.EventEmitter,this._onLinkTooltip=new N.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(y.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),y.prototype.attachToDom=function(g,T){this._element=g,this._mouseZoneManager=T},y.prototype.linkifyRows=function(g,T){var M=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 M._linkifyRows()},y._timeBeforeLatency))},y.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 M=g.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,E=Math.ceil(2e3/this._bufferService.cols),x=this._bufferService.buffer.iterator(!1,T,M,E,E);x.hasNext();)for(var S=x.next(),A=0;A<this._linkMatchers.length;A++)this._doLinkifyRow(S.range.first,S.content,this._linkMatchers[A]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},y.prototype.registerLinkMatcher=function(g,T,M){if(void 0===M&&(M={}),!T)throw new Error("handler must be defined");var E={id:this._nextLinkMatcherId++,regex:g,handler:T,matchIndex:M.matchIndex,validationCallback:M.validationCallback,hoverTooltipCallback:M.tooltipCallback,hoverLeaveCallback:M.leaveCallback,willLinkActivate:M.willLinkActivate,priority:M.priority||0};return this._addLinkMatcherToList(E),E.id},y.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)},y.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},y.prototype._doLinkifyRow=function(g,T,M){for(var E,x=this,S=new RegExp(M.regex.source,(M.regex.flags||"")+"g"),A=-1,L=function(){var z=E["number"!=typeof M.matchIndex?0:M.matchIndex];if(!z)return j._logService.debug("match found without corresponding matchIndex",E,M),"break";if(A=T.indexOf(z,A+1),S.lastIndex=A+z.length,A<0)return"break";var Q=j._bufferService.buffer.stringIndexToBufferIndex(g,A);if(Q[0]<0)return"break";var ae=j._bufferService.buffer.lines.get(Q[0]);if(!ae)return"break";var ie=ae.getFg(Q[1]),se=ie?ie>>9&511:void 0;M.validationCallback?M.validationCallback(z,function(ue){x._rowsTimeoutId||ue&&x._addLink(Q[1],Q[0]-x._bufferService.buffer.ydisp,z,M,se)}):j._addLink(Q[1],Q[0]-j._bufferService.buffer.ydisp,z,M,se)},j=this;null!==(E=S.exec(T))&&"break"!==L(););},y.prototype._addLink=function(g,T,M,E,x){var S=this;if(this._mouseZoneManager&&this._element){var A=this._unicodeService.getStringCellWidth(M),L=g%this._bufferService.cols,j=T+Math.floor(g/this._bufferService.cols),K=(L+A)%this._bufferService.cols,z=j+Math.floor((L+A)/this._bufferService.cols);0===K&&(K=this._bufferService.cols,z--),this._mouseZoneManager.add(new P(L+1,j+1,K+1,z+1,function(Q){if(E.handler)return E.handler(Q,M);var ae=window.open();ae?(ae.opener=null,ae.location.href=M):console.warn("Opening link blocked as opener could not be cleared")},function(){S._onShowLinkUnderline.fire(S._createLinkHoverEvent(L,j,K,z,x)),S._element.classList.add("xterm-cursor-pointer")},function(Q){S._onLinkTooltip.fire(S._createLinkHoverEvent(L,j,K,z,x)),E.hoverTooltipCallback&&E.hoverTooltipCallback(Q,M,{start:{x:L,y:j},end:{x:K,y:z}})},function(){S._onHideLinkUnderline.fire(S._createLinkHoverEvent(L,j,K,z,x)),S._element.classList.remove("xterm-cursor-pointer"),E.hoverLeaveCallback&&E.hoverLeaveCallback()},function(Q){return!E.willLinkActivate||E.willLinkActivate(Q,M)}))}},y.prototype._createLinkHoverEvent=function(g,T,M,E,x){return{x1:g,y1:T,x2:M,y2:E,cols:this._bufferService.cols,fg:x}},y._timeBeforeLatency=200,y=C([_(0,D.IBufferService),_(1,D.ILogService),_(2,D.IUnicodeService)],y)}();w.Linkifier=O;var P=function(g,T,M,E,x,S,A,L,j){this.x1=g,this.y1=T,this.x2=M,this.y2=E,this.clickCallback=x,this.hoverCallback=S,this.tooltipCallback=A,this.leaveCallback=L,this.willLinkActivate=j};w.MouseZone=P},6465:function(Z,w,R){var C,_=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,A){S.__proto__=A}||function(S,A){for(var L in A)Object.prototype.hasOwnProperty.call(A,L)&&(S[L]=A[L])})(E,x)},function(M,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=M}C(M,E),M.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),N=this&&this.__decorate||function(M,E,x,S){var A,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(M,E,x,S);else for(var K=M.length-1;K>=0;K--)(A=M[K])&&(j=(L<3?A(j):L>3?A(E,x,j):A(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(M,E){return function(x,S){E(x,S,M)}};Object.defineProperty(w,"__esModule",{value:!0}),w.Linkifier2=void 0;var O=R(2585),P=R(8460),y=R(844),g=R(3656),T=function(M){function E(x){var S=M.call(this)||this;return S._bufferService=x,S._linkProviders=[],S._linkCacheDisposables=[],S._isMouseOut=!0,S._activeLine=-1,S._onShowLinkUnderline=S.register(new P.EventEmitter),S._onHideLinkUnderline=S.register(new P.EventEmitter),S.register(y.getDisposeArrayDisposable(S._linkCacheDisposables)),S}return _(E,M),Object.defineProperty(E.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),E.prototype.registerLinkProvider=function(x){var S=this;return this._linkProviders.push(x),{dispose:function(){var L=S._linkProviders.indexOf(x);-1!==L&&S._linkProviders.splice(L,1)}}},E.prototype.attachToDom=function(x,S,A){var L=this;this._element=x,this._mouseService=S,this._renderService=A,this.register(g.addDisposableDomListener(this._element,"mouseleave",function(){L._isMouseOut=!0,L._clearCurrentLink()})),this.register(g.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(g.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},E.prototype._onMouseMove=function(x){if(this._lastMouseEvent=x,this._element&&this._mouseService){var S=this._positionFromMouseEvent(x,this._element,this._mouseService);if(S){this._isMouseOut=!1;for(var A=x.composedPath(),L=0;L<A.length;L++){var j=A[L];if(j.classList.contains("xterm"))break;if(j.classList.contains("xterm-hover"))return}this._lastBufferCell&&S.x===this._lastBufferCell.x&&S.y===this._lastBufferCell.y||(this._onHover(S),this._lastBufferCell=S)}}},E.prototype._onHover=function(x){if(this._activeLine!==x.y)return this._clearCurrentLink(),void this._askForLink(x,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,x)||(this._clearCurrentLink(),this._askForLink(x,!0))},E.prototype._askForLink=function(x,S){var A,L=this;this._activeProviderReplies&&S||(null===(A=this._activeProviderReplies)||void 0===A||A.forEach(function(K){null==K||K.forEach(function(z){z.link.dispose&&z.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=x.y);var j=!1;this._linkProviders.forEach(function(K,z){var Q;S?(null===(Q=L._activeProviderReplies)||void 0===Q?void 0:Q.get(z))&&(j=L._checkLinkProviderResult(z,x,j)):K.provideLinks(x.y,function(ae){var ie,se;if(!L._isMouseOut){var ue=null==ae?void 0:ae.map(function(de){return{link:de}});null===(ie=L._activeProviderReplies)||void 0===ie||ie.set(z,ue),j=L._checkLinkProviderResult(z,x,j),(null===(se=L._activeProviderReplies)||void 0===se?void 0:se.size)===L._linkProviders.length&&L._removeIntersectingLinks(x.y,L._activeProviderReplies)}})})},E.prototype._removeIntersectingLinks=function(x,S){for(var A=new Set,L=0;L<S.size;L++){var j=S.get(L);if(j)for(var K=0;K<j.length;K++)for(var z=j[K],ae=z.link.range.end.y>x?this._bufferService.cols:z.link.range.end.x,ie=z.link.range.start.y<x?0:z.link.range.start.x;ie<=ae;ie++){if(A.has(ie)){j.splice(K--,1);break}A.add(ie)}}},E.prototype._checkLinkProviderResult=function(x,S,A){var L,j=this;if(!this._activeProviderReplies)return A;for(var K=this._activeProviderReplies.get(x),z=!1,Q=0;Q<x;Q++)this._activeProviderReplies.has(Q)&&!this._activeProviderReplies.get(Q)||(z=!0);if(!z&&K){var ae=K.find(function(se){return j._linkAtPosition(se.link,S)});ae&&(A=!0,this._handleNewLink(ae))}if(this._activeProviderReplies.size===this._linkProviders.length&&!A)for(Q=0;Q<this._activeProviderReplies.size;Q++){var ie=null===(L=this._activeProviderReplies.get(Q))||void 0===L?void 0:L.find(function(se){return j._linkAtPosition(se.link,S)});if(ie){A=!0,this._handleNewLink(ie);break}}return A},E.prototype._onClick=function(x){if(this._element&&this._mouseService&&this._currentLink){var S=this._positionFromMouseEvent(x,this._element,this._mouseService);S&&this._linkAtPosition(this._currentLink.link,S)&&this._currentLink.link.activate(x,this._currentLink.link.text)}},E.prototype._clearCurrentLink=function(x,S){this._element&&this._currentLink&&this._lastMouseEvent&&(!x||!S||this._currentLink.link.range.start.y>=x&&this._currentLink.link.range.end.y<=S)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,y.disposeArray(this._linkCacheDisposables))},E.prototype._handleNewLink=function(x){var S=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var A=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);A&&this._linkAtPosition(x.link,A)&&(this._currentLink=x,this._currentLink.state={decorations:{underline:void 0===x.link.decorations||x.link.decorations.underline,pointerCursor:void 0===x.link.decorations||x.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,x.link,this._lastMouseEvent),x.link.decorations={},Object.defineProperties(x.link.decorations,{pointerCursor:{get:function(){var j,K;return null===(K=null===(j=S._currentLink)||void 0===j?void 0:j.state)||void 0===K?void 0:K.decorations.pointerCursor},set:function(j){var K,z;(null===(K=S._currentLink)||void 0===K?void 0:K.state)&&S._currentLink.state.decorations.pointerCursor!==j&&(S._currentLink.state.decorations.pointerCursor=j,S._currentLink.state.isHovered&&(null===(z=S._element)||void 0===z||z.classList.toggle("xterm-cursor-pointer",j)))}},underline:{get:function(){var j,K;return null===(K=null===(j=S._currentLink)||void 0===j?void 0:j.state)||void 0===K?void 0:K.decorations.underline},set:function(j){var K,z,Q;(null===(K=S._currentLink)||void 0===K?void 0:K.state)&&(null===(Q=null===(z=S._currentLink)||void 0===z?void 0:z.state)||void 0===Q?void 0:Q.decorations.underline)!==j&&(S._currentLink.state.decorations.underline=j,S._currentLink.state.isHovered&&S._fireUnderlineEvent(x.link,j))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(L){S._clearCurrentLink(0===L.start?0:L.start+1+S._bufferService.buffer.ydisp,L.end+1+S._bufferService.buffer.ydisp)})))}},E.prototype._linkHover=function(x,S,A){var L;(null===(L=this._currentLink)||void 0===L?void 0:L.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(S,!0),this._currentLink.state.decorations.pointerCursor&&x.classList.add("xterm-cursor-pointer")),S.hover&&S.hover(A,S.text)},E.prototype._fireUnderlineEvent=function(x,S){var A=x.range,L=this._bufferService.buffer.ydisp,j=this._createLinkUnderlineEvent(A.start.x-1,A.start.y-L-1,A.end.x,A.end.y-L-1,void 0);(S?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(j)},E.prototype._linkLeave=function(x,S,A){var L;(null===(L=this._currentLink)||void 0===L?void 0:L.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(S,!1),this._currentLink.state.decorations.pointerCursor&&x.classList.remove("xterm-cursor-pointer")),S.leave&&S.leave(A,S.text)},E.prototype._linkAtPosition=function(x,S){var L=x.range.start.y<S.y,j=x.range.end.y>S.y;return(x.range.start.y===x.range.end.y&&x.range.start.x<=S.x&&x.range.end.x>=S.x||L&&x.range.end.x>=S.x||j&&x.range.start.x<=S.x||L&&j)&&x.range.start.y<=S.y&&x.range.end.y>=S.y},E.prototype._positionFromMouseEvent=function(x,S,A){var L=A.getCoords(x,S,this._bufferService.cols,this._bufferService.rows);if(L)return{x:L[0],y:L[1]+this._bufferService.buffer.ydisp}},E.prototype._createLinkUnderlineEvent=function(x,S,A,L,j){return{x1:x,y1:S,x2:A,y2:L,cols:this._bufferService.cols,fg:j}},N([D(0,O.IBufferService)],E)}(y.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,R){var C,_=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,A){S.__proto__=A}||function(S,A){for(var L in A)Object.prototype.hasOwnProperty.call(A,L)&&(S[L]=A[L])})(E,x)},function(M,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=M}C(M,E),M.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),N=this&&this.__decorate||function(M,E,x,S){var A,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(M,E,x,S);else for(var K=M.length-1;K>=0;K--)(A=M[K])&&(j=(L<3?A(j):L>3?A(E,x,j):A(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(M,E){return function(x,S){E(x,S,M)}};Object.defineProperty(w,"__esModule",{value:!0}),w.MouseZoneManager=void 0;var O=R(844),P=R(3656),y=R(4725),g=R(2585),T=function(M){function E(x,S,A,L,j,K){var z=M.call(this)||this;return z._element=x,z._screenElement=S,z._bufferService=A,z._mouseService=L,z._selectionService=j,z._optionsService=K,z._zones=[],z._areZonesActive=!1,z._lastHoverCoords=[void 0,void 0],z._initialSelectionLength=0,z.register(P.addDisposableDomListener(z._element,"mousedown",function(Q){return z._onMouseDown(Q)})),z._mouseMoveListener=function(Q){return z._onMouseMove(Q)},z._mouseLeaveListener=function(Q){return z._onMouseLeave(Q)},z._clickListener=function(Q){return z._onClick(Q)},z}return _(E,M),E.prototype.dispose=function(){M.prototype.dispose.call(this),this._deactivate()},E.prototype.add=function(x){this._zones.push(x),1===this._zones.length&&this._activate()},E.prototype.clearAll=function(x,S){if(0!==this._zones.length){x&&S||(x=0,S=this._bufferService.rows-1);for(var A=0;A<this._zones.length;A++){var L=this._zones[A];(L.y1>x&&L.y1<=S+1||L.y2>x&&L.y2<=S+1||L.y1<x&&L.y2>S+1)&&(this._currentZone&&this._currentZone===L&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(A--,1))}0===this._zones.length&&this._deactivate()}},E.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))},E.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))},E.prototype._onMouseMove=function(x){this._lastHoverCoords[0]===x.pageX&&this._lastHoverCoords[1]===x.pageY||(this._onHover(x),this._lastHoverCoords=[x.pageX,x.pageY])},E.prototype._onHover=function(x){var S=this,A=this._findZoneEventAt(x);A!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),A&&(this._currentZone=A,A.hoverCallback&&A.hoverCallback(x),this._tooltipTimeout=window.setTimeout(function(){return S._onTooltip(x)},this._optionsService.options.linkTooltipHoverDuration)))},E.prototype._onTooltip=function(x){this._tooltipTimeout=void 0;var S=this._findZoneEventAt(x);null==S||S.tooltipCallback(x)},E.prototype._onMouseDown=function(x){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var S=this._findZoneEventAt(x);(null==S?void 0:S.willLinkActivate(x))&&(x.preventDefault(),x.stopImmediatePropagation())}},E.prototype._onMouseLeave=function(x){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},E.prototype._onClick=function(x){var S=this._findZoneEventAt(x),A=this._getSelectionLength();S&&A===this._initialSelectionLength&&(S.clickCallback(x),x.preventDefault(),x.stopImmediatePropagation())},E.prototype._getSelectionLength=function(){var x=this._selectionService.selectionText;return x?x.length:0},E.prototype._findZoneEventAt=function(x){var S=this._mouseService.getCoords(x,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(S)for(var A=S[0],L=S[1],j=0;j<this._zones.length;j++){var K=this._zones[j];if(K.y1===K.y2){if(L===K.y1&&A>=K.x1&&A<K.x2)return K}else if(L===K.y1&&A>=K.x1||L===K.y2&&A<K.x2||L>K.y1&&L<K.y2)return K}},N([D(2,g.IBufferService),D(3,y.IMouseService),D(4,y.ISelectionService),D(5,g.IOptionsService)],E)}(O.Disposable);w.MouseZoneManager=T},6193:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.RenderDebouncer=void 0;var R=function(){function C(_){this._renderCallback=_}return C.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},C.prototype.refresh=function(_,N,D){var O=this;this._rowCount=D,_=void 0!==_?_:0,N=void 0!==N?N:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,_):_,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,N):N,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return O._innerRefresh()}))},C.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var _=Math.max(this._rowStart,0),N=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(_,N)}},C}();w.RenderDebouncer=R},5596:function(Z,w,R){var C,_=this&&this.__extends||(C=function(O,P){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,g){y.__proto__=g}||function(y,g){for(var T in g)Object.prototype.hasOwnProperty.call(g,T)&&(y[T]=g[T])})(O,P)},function(D,O){if("function"!=typeof O&&null!==O)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");function P(){this.constructor=D}C(D,O),D.prototype=null===O?Object.create(O):(P.prototype=O.prototype,new P)});Object.defineProperty(w,"__esModule",{value:!0}),w.ScreenDprMonitor=void 0;var N=function(D){function O(){var P=null!==D&&D.apply(this,arguments)||this;return P._currentDevicePixelRatio=window.devicePixelRatio,P}return _(O,D),O.prototype.setListener=function(P){var y=this;this._listener&&this.clearListener(),this._listener=P,this._outerListener=function(){y._listener&&(y._listener(window.devicePixelRatio,y._currentDevicePixelRatio),y._updateDpr())},this._updateDpr()},O.prototype.dispose=function(){D.prototype.dispose.call(this),this.clearListener()},O.prototype._updateDpr=function(){var P;this._outerListener&&(null===(P=this._resolutionMediaMatchList)||void 0===P||P.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},O.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)},O}(R(844).Disposable);w.ScreenDprMonitor=N},3236:function(Z,w,R){var C,_=this&&this.__extends||(C=function(Se,Oe){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(je,ct){je.__proto__=ct}||function(je,ct){for(var Xe in ct)Object.prototype.hasOwnProperty.call(ct,Xe)&&(je[Xe]=ct[Xe])})(Se,Oe)},function(Rt,Se){if("function"!=typeof Se&&null!==Se)throw new TypeError("Class extends value "+String(Se)+" is not a constructor or null");function Oe(){this.constructor=Rt}C(Rt,Se),Rt.prototype=null===Se?Object.create(Se):(Oe.prototype=Se.prototype,new Oe)});Object.defineProperty(w,"__esModule",{value:!0}),w.Terminal=void 0;var N=R(2950),D=R(1680),O=R(3614),P=R(2584),y=R(5435),g=R(3525),T=R(3551),M=R(9312),E=R(6114),x=R(3656),S=R(9042),A=R(357),L=R(6954),j=R(4567),K=R(1296),z=R(7399),Q=R(8460),ae=R(8437),ie=R(5680),se=R(3230),ue=R(4725),de=R(428),oe=R(8934),$=R(6465),ye=R(5114),ve=R(8969),et=R(4774),Ne=R(4269),gt="undefined"!=typeof window?window.document:null,_t=function(Rt){function Se(Oe){void 0===Oe&&(Oe={});var je=Rt.call(this,Oe)||this;return je.browser=E,je._keyDownHandled=!1,je._onCursorMove=new Q.EventEmitter,je._onKey=new Q.EventEmitter,je._onRender=new Q.EventEmitter,je._onSelectionChange=new Q.EventEmitter,je._onTitleChange=new Q.EventEmitter,je._onBell=new Q.EventEmitter,je._onFocus=new Q.EventEmitter,je._onBlur=new Q.EventEmitter,je._onA11yCharEmitter=new Q.EventEmitter,je._onA11yTabEmitter=new Q.EventEmitter,je._setup(),je.linkifier=je._instantiationService.createInstance(T.Linkifier),je.linkifier2=je.register(je._instantiationService.createInstance($.Linkifier2)),je.register(je._inputHandler.onRequestBell(function(){return je.bell()})),je.register(je._inputHandler.onRequestRefreshRows(function(ct,Xe){return je.refresh(ct,Xe)})),je.register(je._inputHandler.onRequestReset(function(){return je.reset()})),je.register(je._inputHandler.onRequestWindowsOptionsReport(function(ct){return je._reportWindowsOptions(ct)})),je.register(je._inputHandler.onAnsiColorChange(function(ct){return je._changeAnsiColor(ct)})),je.register(Q.forwardEvent(je._inputHandler.onCursorMove,je._onCursorMove)),je.register(Q.forwardEvent(je._inputHandler.onTitleChange,je._onTitleChange)),je.register(Q.forwardEvent(je._inputHandler.onA11yChar,je._onA11yCharEmitter)),je.register(Q.forwardEvent(je._inputHandler.onA11yTab,je._onA11yTabEmitter)),je.register(je._bufferService.onResize(function(ct){return je._afterResize(ct.cols,ct.rows)})),je}return _(Se,Rt),Object.defineProperty(Se.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Se.prototype._changeAnsiColor=function(Oe){var je,ct;if(this._colorManager){for(var Xe=0,Ht=Oe.colors;Xe<Ht.length;Xe++){var Et=Ht[Xe],vt=et.rgba.toColor(Et.red,Et.green,Et.blue);this._colorManager.colors.ansi[Et.colorIndex]=vt}null===(je=this._renderService)||void 0===je||je.setColors(this._colorManager.colors),null===(ct=this.viewport)||void 0===ct||ct.onThemeChange(this._colorManager.colors)}},Se.prototype.dispose=function(){var Oe,je,ct;this._isDisposed||(Rt.prototype.dispose.call(this),null===(Oe=this._renderService)||void 0===Oe||Oe.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(ct=null===(je=this.element)||void 0===je?void 0:je.parentNode)||void 0===ct||ct.removeChild(this.element))},Se.prototype._setup=function(){Rt.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Se.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Se.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Se.prototype._updateOptions=function(Oe){var je,ct,Xe,Ht;switch(Rt.prototype._updateOptions.call(this,Oe),Oe){case"fontFamily":case"fontSize":null===(je=this._renderService)||void 0===je||je.clear(),null===(ct=this._charSizeService)||void 0===ct||ct.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;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===(Xe=this.viewport)||void 0===Xe||Xe.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new j.AccessibilityManager(this,this._renderService)):(null===(Ht=this._accessibilityManager)||void 0===Ht||Ht.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},Se.prototype._onTextAreaFocus=function(Oe){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(P.C0.ESC+"[I"),this.updateCursorStyle(Oe),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Se.prototype.blur=function(){var Oe;return null===(Oe=this.textarea)||void 0===Oe?void 0:Oe.blur()},Se.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(P.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},Se.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 ct=Math.min(this.buffer.x,this.cols-1),Xe=this._renderService.dimensions.actualCellHeight,Ht=je.getWidth(ct),Et=this._renderService.dimensions.actualCellWidth*Ht,vt=this.buffer.y*this._renderService.dimensions.actualCellHeight;this.textarea.style.left=ct*this._renderService.dimensions.actualCellWidth+"px",this.textarea.style.top=vt+"px",this.textarea.style.width=Et+"px",this.textarea.style.height=Xe+"px",this.textarea.style.lineHeight=Xe+"px",this.textarea.style.zIndex="-5"}}},Se.prototype._initGlobal=function(){var Oe=this;this._bindKeys(),this.register(x.addDisposableDomListener(this.element,"copy",function(ct){Oe.hasSelection()&&O.copyHandler(ct,Oe._selectionService)}));var je=function(Xe){return O.handlePasteEvent(Xe,Oe.textarea,Oe._coreService)};this.register(x.addDisposableDomListener(this.textarea,"paste",je)),this.register(x.addDisposableDomListener(this.element,"paste",je)),this.register(E.isFirefox?x.addDisposableDomListener(this.element,"mousedown",function(ct){2===ct.button&&O.rightClickHandler(ct,Oe.textarea,Oe.screenElement,Oe._selectionService,Oe.options.rightClickSelectsWord)}):x.addDisposableDomListener(this.element,"contextmenu",function(ct){O.rightClickHandler(ct,Oe.textarea,Oe.screenElement,Oe._selectionService,Oe.options.rightClickSelectsWord)})),E.isLinux&&this.register(x.addDisposableDomListener(this.element,"auxclick",function(ct){1===ct.button&&O.moveTextAreaUnderMouseCursor(ct,Oe.textarea,Oe.screenElement)}))},Se.prototype._bindKeys=function(){var Oe=this;this.register(x.addDisposableDomListener(this.textarea,"keyup",function(je){return Oe._keyUp(je)},!0)),this.register(x.addDisposableDomListener(this.textarea,"keydown",function(je){return Oe._keyDown(je)},!0)),this.register(x.addDisposableDomListener(this.textarea,"keypress",function(je){return Oe._keyPress(je)},!0)),this.register(x.addDisposableDomListener(this.textarea,"compositionstart",function(){return Oe._compositionHelper.compositionstart()})),this.register(x.addDisposableDomListener(this.textarea,"compositionupdate",function(je){return Oe._compositionHelper.compositionupdate(je)})),this.register(x.addDisposableDomListener(this.textarea,"compositionend",function(){return Oe._compositionHelper.compositionend()})),this.register(this.onRender(function(){return Oe._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(je){return Oe._queueLinkification(je.start,je.end)}))},Se.prototype.open=function(Oe){var je=this;if(!Oe)throw new Error("Terminal requires a parent element.");Oe.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=Oe.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"),this.element.setAttribute("role","document"),Oe.appendChild(this.element);var ct=gt.createDocumentFragment();this._viewportElement=gt.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),ct.appendChild(this._viewportElement),this._viewportScrollArea=gt.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=gt.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=gt.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),ct.appendChild(this.screenElement),this.textarea=gt.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",S.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(x.addDisposableDomListener(this.textarea,"focus",function(Et){return je._onTextAreaFocus(Et)})),this.register(x.addDisposableDomListener(this.textarea,"blur",function(){return je._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Xe=this._instantiationService.createInstance(ye.CoreBrowserService,this.textarea);this._instantiationService.setService(ue.ICoreBrowserService,Xe),this._charSizeService=this._instantiationService.createInstance(de.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(ue.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new ie.ColorManager(gt,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(Et){return je._colorManager.onOptionsChange(Et)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(Ne.CharacterJoinerService),this._instantiationService.setService(ue.ICharacterJoinerService,this._characterJoinerService);var Ht=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(se.RenderService,Ht,this.rows,this.screenElement)),this._instantiationService.setService(ue.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(Et){return je._onRender.fire(Et)})),this.onResize(function(Et){return je._renderService.resize(Et.cols,Et.rows)}),this._compositionView=gt.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(N.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(ct),this._soundService=this._instantiationService.createInstance(A.SoundService),this._instantiationService.setService(ue.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(oe.MouseService),this._instantiationService.setService(ue.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(D.Viewport,function(Et){return je.scrollLines(Et,!0,1)},this._viewportElement,this._viewportScrollArea),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(M.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(ue.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(Et){return je.scrollLines(Et.amount,Et.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return je._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(Et){return je._renderService.onSelectionChanged(Et.start,Et.end,Et.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(Et){je.textarea.value=Et,je.textarea.focus(),je.textarea.select()})),this.register(this._onScroll.event(function(Et){je.viewport.syncScrollArea(),je._selectionService.refresh()})),this.register(x.addDisposableDomListener(this._viewportElement,"scroll",function(){return je._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(L.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(x.addDisposableDomListener(this.element,"mousedown",function(Et){return je._selectionService.onMouseDown(Et)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new j.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Se.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+'"')}},Se.prototype._setTheme=function(Oe){var je,ct,Xe;this._theme=Oe,null===(je=this._colorManager)||void 0===je||je.setTheme(Oe),null===(ct=this._renderService)||void 0===ct||ct.setColors(this._colorManager.colors),null===(Xe=this.viewport)||void 0===Xe||Xe.onThemeChange(this._colorManager.colors)},Se.prototype.bindMouse=function(){var Oe=this,je=this,ct=this.element;function Xe(Ct){var jt,bt,nn=je._mouseService.getRawByteCoords(Ct,je.screenElement,je.cols,je.rows);if(!nn)return!1;switch(Ct.overrideType||Ct.type){case"mousemove":bt=32,void 0===Ct.buttons?(jt=3,void 0!==Ct.button&&(jt=Ct.button<3?Ct.button:3)):jt=1&Ct.buttons?0:4&Ct.buttons?1:2&Ct.buttons?2:3;break;case"mouseup":bt=0,jt=Ct.button<3?Ct.button:3;break;case"mousedown":bt=1,jt=Ct.button<3?Ct.button:3;break;case"wheel":0!==Ct.deltaY&&(bt=Ct.deltaY<0?0:1),jt=4;break;default:return!1}return!(void 0===bt||void 0===jt||jt>4)&&je._coreMouseService.triggerMouseEvent({col:nn.x-33,row:nn.y-33,button:jt,action:bt,ctrl:Ct.ctrlKey,alt:Ct.altKey,shift:Ct.shiftKey})}var Ht={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Et=function(jt){return Xe(jt),jt.buttons||(Oe._document.removeEventListener("mouseup",Ht.mouseup),Ht.mousedrag&&Oe._document.removeEventListener("mousemove",Ht.mousedrag)),Oe.cancel(jt)},vt=function(jt){return Xe(jt),jt.preventDefault(),Oe.cancel(jt)},Xt=function(jt){jt.buttons&&Xe(jt)},qt=function(jt){jt.buttons||Xe(jt)};this.register(this._coreMouseService.onProtocolChange(function(Ct){Ct?("debug"===Oe.optionsService.options.logLevel&&Oe._logService.debug("Binding to mouse events:",Oe._coreMouseService.explainEvents(Ct)),Oe.element.classList.add("enable-mouse-events"),Oe._selectionService.disable()):(Oe._logService.debug("Unbinding from mouse events."),Oe.element.classList.remove("enable-mouse-events"),Oe._selectionService.enable()),8&Ct?Ht.mousemove||(ct.addEventListener("mousemove",qt),Ht.mousemove=qt):(ct.removeEventListener("mousemove",Ht.mousemove),Ht.mousemove=null),16&Ct?Ht.wheel||(ct.addEventListener("wheel",vt,{passive:!1}),Ht.wheel=vt):(ct.removeEventListener("wheel",Ht.wheel),Ht.wheel=null),2&Ct?Ht.mouseup||(Ht.mouseup=Et):(Oe._document.removeEventListener("mouseup",Ht.mouseup),Ht.mouseup=null),4&Ct?Ht.mousedrag||(Ht.mousedrag=Xt):(Oe._document.removeEventListener("mousemove",Ht.mousedrag),Ht.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(x.addDisposableDomListener(ct,"mousedown",function(Ct){if(Ct.preventDefault(),Oe.focus(),Oe._coreMouseService.areMouseEventsActive&&!Oe._selectionService.shouldForceSelection(Ct))return Xe(Ct),Ht.mouseup&&Oe._document.addEventListener("mouseup",Ht.mouseup),Ht.mousedrag&&Oe._document.addEventListener("mousemove",Ht.mousedrag),Oe.cancel(Ct)})),this.register(x.addDisposableDomListener(ct,"wheel",function(Ct){if(!Ht.wheel&&!Oe.buffer.hasScrollback){var jt=Oe.viewport.getLinesScrolled(Ct);if(0===jt)return;for(var bt=P.C0.ESC+(Oe._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Ct.deltaY<0?"A":"B"),nn="",Ut=0;Ut<Math.abs(jt);Ut++)nn+=bt;Oe._coreService.triggerDataEvent(nn,!0)}},{passive:!0})),this.register(x.addDisposableDomListener(ct,"wheel",function(Ct){if(!Ht.wheel)return Oe.viewport.onWheel(Ct)?void 0:Oe.cancel(Ct)},{passive:!1})),this.register(x.addDisposableDomListener(ct,"touchstart",function(Ct){if(!Oe._coreMouseService.areMouseEventsActive)return Oe.viewport.onTouchStart(Ct),Oe.cancel(Ct)},{passive:!0})),this.register(x.addDisposableDomListener(ct,"touchmove",function(Ct){if(!Oe._coreMouseService.areMouseEventsActive)return Oe.viewport.onTouchMove(Ct)?void 0:Oe.cancel(Ct)},{passive:!1}))},Se.prototype.refresh=function(Oe,je){var ct;null===(ct=this._renderService)||void 0===ct||ct.refreshRows(Oe,je)},Se.prototype._queueLinkification=function(Oe,je){var ct;null===(ct=this.linkifier)||void 0===ct||ct.linkifyRows(Oe,je)},Se.prototype.updateCursorStyle=function(Oe){var je;(null===(je=this._selectionService)||void 0===je?void 0:je.shouldColumnSelect(Oe))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},Se.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},Se.prototype.scrollLines=function(Oe,je,ct){void 0===ct&&(ct=0),Rt.prototype.scrollLines.call(this,Oe,je,ct),this.refresh(0,this.rows-1)},Se.prototype.paste=function(Oe){O.paste(Oe,this.textarea,this._coreService)},Se.prototype.attachCustomKeyEventHandler=function(Oe){this._customKeyEventHandler=Oe},Se.prototype.registerLinkMatcher=function(Oe,je,ct){var Xe=this.linkifier.registerLinkMatcher(Oe,je,ct);return this.refresh(0,this.rows-1),Xe},Se.prototype.deregisterLinkMatcher=function(Oe){this.linkifier.deregisterLinkMatcher(Oe)&&this.refresh(0,this.rows-1)},Se.prototype.registerLinkProvider=function(Oe){return this.linkifier2.registerLinkProvider(Oe)},Se.prototype.registerCharacterJoiner=function(Oe){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var je=this._characterJoinerService.register(Oe);return this.refresh(0,this.rows-1),je},Se.prototype.deregisterCharacterJoiner=function(Oe){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(Oe)&&this.refresh(0,this.rows-1)},Object.defineProperty(Se.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),Se.prototype.addMarker=function(Oe){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+Oe)},Se.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},Se.prototype.select=function(Oe,je,ct){this._selectionService.setSelection(Oe,je,ct)},Se.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},Se.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]}},Se.prototype.clearSelection=function(){var Oe;null===(Oe=this._selectionService)||void 0===Oe||Oe.clearSelection()},Se.prototype.selectAll=function(){var Oe;null===(Oe=this._selectionService)||void 0===Oe||Oe.selectAll()},Se.prototype.selectLines=function(Oe,je){var ct;null===(ct=this._selectionService)||void 0===ct||ct.selectLines(Oe,je)},Se.prototype._keyDown=function(Oe){if(this._keyDownHandled=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(Oe))return!1;if(!this._compositionHelper.keydown(Oe))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;var je=z.evaluateKeyboardEvent(Oe,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(Oe),3===je.type||2===je.type){var ct=this.rows-1;return this.scrollLines(2===je.type?-ct:ct),this.cancel(Oe,!0)}return 1===je.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,Oe)||(je.cancel&&this.cancel(Oe,!0),!je.key||(je.key!==P.C0.ETX&&je.key!==P.C0.CR||(this.textarea.value=""),this._onKey.fire({key:je.key,domEvent:Oe}),this._showCursor(),this._coreService.triggerDataEvent(je.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(Oe,!0)))},Se.prototype._isThirdLevelShift=function(Oe,je){var ct=Oe.isMac&&!this.options.macOptionIsMeta&&je.altKey&&!je.ctrlKey&&!je.metaKey||Oe.isWindows&&je.altKey&&je.ctrlKey&&!je.metaKey;return"keypress"===je.type?ct:ct&&(!je.keyCode||je.keyCode>47)},Se.prototype._keyUp=function(Oe){var je;this._customKeyEventHandler&&!1===this._customKeyEventHandler(Oe)||(16===(je=Oe).keyCode||17===je.keyCode||18===je.keyCode||this.focus(),this.updateCursorStyle(Oe))},Se.prototype._keyPress=function(Oe){var je;if(this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(Oe))return!1;if(this.cancel(Oe),Oe.charCode)je=Oe.charCode;else if(null==Oe.which)je=Oe.keyCode;else{if(0===Oe.which||0===Oe.charCode)return!1;je=Oe.which}return!(!je||(Oe.altKey||Oe.ctrlKey||Oe.metaKey)&&!this._isThirdLevelShift(this.browser,Oe)||(je=String.fromCharCode(je),this._onKey.fire({key:je,domEvent:Oe}),this._showCursor(),this._coreService.triggerDataEvent(je,!0),0))},Se.prototype.bell=function(){var Oe;this._soundBell()&&(null===(Oe=this._soundService)||void 0===Oe||Oe.playBellSound()),this._onBell.fire()},Se.prototype.resize=function(Oe,je){Oe!==this.cols||je!==this.rows?Rt.prototype.resize.call(this,Oe,je):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Se.prototype._afterResize=function(Oe,je){var ct,Xe;null===(ct=this._charSizeService)||void 0===ct||ct.measure(),null===(Xe=this.viewport)||void 0===Xe||Xe.syncScrollArea(!0)},Se.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 Oe=1;Oe<this.rows;Oe++)this.buffer.lines.push(this.buffer.getBlankLine(ae.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},Se.prototype.reset=function(){var Oe,je;this.options.rows=this.rows,this.options.cols=this.cols;var ct=this._customKeyEventHandler;this._setup(),Rt.prototype.reset.call(this),null===(Oe=this._selectionService)||void 0===Oe||Oe.reset(),this._customKeyEventHandler=ct,this.refresh(0,this.rows-1),null===(je=this.viewport)||void 0===je||je.syncScrollArea()},Se.prototype._reportWindowsOptions=function(Oe){if(this._renderService)switch(Oe){case y.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var je=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),ct=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(P.C0.ESC+"[4;"+ct+";"+je+"t");break;case y.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Xe=this._renderService.dimensions.scaledCellWidth.toFixed(0),Ht=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(P.C0.ESC+"[6;"+Ht+";"+Xe+"t")}},Se.prototype.cancel=function(Oe,je){if(this.options.cancelEvents||je)return Oe.preventDefault(),Oe.stopPropagation(),!1},Se.prototype._visualBell=function(){return!1},Se.prototype._soundBell=function(){return"sound"===this.options.bellStyle},Se}(ve.CoreTerminal);w.Terminal=_t},1680:function(Z,w,R){var C,_=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,A){S.__proto__=A}||function(S,A){for(var L in A)Object.prototype.hasOwnProperty.call(A,L)&&(S[L]=A[L])})(E,x)},function(M,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=M}C(M,E),M.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),N=this&&this.__decorate||function(M,E,x,S){var A,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(M,E,x,S);else for(var K=M.length-1;K>=0;K--)(A=M[K])&&(j=(L<3?A(j):L>3?A(E,x,j):A(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(M,E){return function(x,S){E(x,S,M)}};Object.defineProperty(w,"__esModule",{value:!0}),w.Viewport=void 0;var O=R(844),P=R(3656),y=R(4725),g=R(2585),T=function(M){function E(x,S,A,L,j,K,z){var Q=M.call(this)||this;return Q._scrollLines=x,Q._viewportElement=S,Q._scrollArea=A,Q._bufferService=L,Q._optionsService=j,Q._charSizeService=K,Q._renderService=z,Q.scrollBarWidth=0,Q._currentRowHeight=0,Q._lastRecordedBufferLength=0,Q._lastRecordedViewportHeight=0,Q._lastRecordedBufferHeight=0,Q._lastTouchY=0,Q._lastScrollTop=0,Q._wheelPartialScroll=0,Q._refreshAnimationFrame=null,Q._ignoreNextScrollEvent=!1,Q.scrollBarWidth=Q._viewportElement.offsetWidth-Q._scrollArea.offsetWidth||15,Q.register(P.addDisposableDomListener(Q._viewportElement,"scroll",Q._onScroll.bind(Q))),setTimeout(function(){return Q.syncScrollArea()},0),Q}return _(E,M),E.prototype.onThemeChange=function(x){this._viewportElement.style.backgroundColor=x.background.css},E.prototype._refresh=function(x){var S=this;if(x)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return S._innerRefresh()}))},E.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var x=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==x&&(this._lastRecordedBufferHeight=x,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var S=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==S&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=S),this._refreshAnimationFrame=null},E.prototype.syncScrollArea=function(x){if(void 0===x&&(x=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(x);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._bufferService.buffer.ydisp*this._currentRowHeight&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(x)},E.prototype._onScroll=function(x){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var S=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(S)}},E.prototype._bubbleScroll=function(x,S){return!(S<0&&0!==this._viewportElement.scrollTop||S>0&&this._viewportElement.scrollTop+this._lastRecordedViewportHeight<this._lastRecordedBufferHeight)||(x.cancelable&&x.preventDefault(),!1)},E.prototype.onWheel=function(x){var S=this._getPixelsScrolled(x);return 0!==S&&(this._viewportElement.scrollTop+=S,this._bubbleScroll(x,S))},E.prototype._getPixelsScrolled=function(x){if(0===x.deltaY)return 0;var S=this._applyScrollModifier(x.deltaY,x);return x.deltaMode===WheelEvent.DOM_DELTA_LINE?S*=this._currentRowHeight:x.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(S*=this._currentRowHeight*this._bufferService.rows),S},E.prototype.getLinesScrolled=function(x){if(0===x.deltaY)return 0;var S=this._applyScrollModifier(x.deltaY,x);return x.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(this._wheelPartialScroll+=S/=this._currentRowHeight+0,S=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):x.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(S*=this._bufferService.rows),S},E.prototype._applyScrollModifier=function(x,S){var A=this._optionsService.options.fastScrollModifier;return"alt"===A&&S.altKey||"ctrl"===A&&S.ctrlKey||"shift"===A&&S.shiftKey?x*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:x*this._optionsService.options.scrollSensitivity},E.prototype.onTouchStart=function(x){this._lastTouchY=x.touches[0].pageY},E.prototype.onTouchMove=function(x){var S=this._lastTouchY-x.touches[0].pageY;return this._lastTouchY=x.touches[0].pageY,0!==S&&(this._viewportElement.scrollTop+=S,this._bubbleScroll(x,S))},N([D(3,g.IBufferService),D(4,g.IOptionsService),D(5,y.ICharSizeService),D(6,y.IRenderService)],E)}(O.Disposable);w.Viewport=T},2950:function(Z,w,R){var C=this&&this.__decorate||function(P,y,g,T){var M,E=arguments.length,x=E<3?y:null===T?T=Object.getOwnPropertyDescriptor(y,g):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(P,y,g,T);else for(var S=P.length-1;S>=0;S--)(M=P[S])&&(x=(E<3?M(x):E>3?M(y,g,x):M(y,g))||x);return E>3&&x&&Object.defineProperty(y,g,x),x},_=this&&this.__param||function(P,y){return function(g,T){y(g,T,P)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CompositionHelper=void 0;var N=R(4725),D=R(2585),O=function(){function P(y,g,T,M,E,x){this._textarea=y,this._compositionView=g,this._bufferService=T,this._optionsService=M,this._coreService=E,this._renderService=x,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(P.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),P.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},P.prototype.compositionupdate=function(y){var g=this;this._compositionView.textContent=y.data,this.updateCompositionElements(),setTimeout(function(){g._compositionPosition.end=g._textarea.value.length},0)},P.prototype.compositionend=function(){this._finalizeComposition(!0)},P.prototype.keydown=function(y){if(this._isComposing||this._isSendingComposition){if(229===y.keyCode||16===y.keyCode||17===y.keyCode||18===y.keyCode)return!1;this._finalizeComposition(!1)}return 229!==y.keyCode||(this._handleAnyTextareaChanges(),!1)},P.prototype._finalizeComposition=function(y){var g=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,y){var T={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var E;g._isSendingComposition&&(g._isSendingComposition=!1,T.start+=g._dataAlreadySent.length,(E=g._isComposing?g._textarea.value.substring(T.start,T.end):g._textarea.value.substring(T.start)).length>0&&g._coreService.triggerDataEvent(E,!0))},0)}else{this._isSendingComposition=!1;var M=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(M,!0)}},P.prototype._handleAnyTextareaChanges=function(){var y=this,g=this._textarea.value;setTimeout(function(){if(!y._isComposing){var T=y._textarea.value.replace(g,"");T.length>0&&(y._dataAlreadySent=T,y._coreService.triggerDataEvent(T,!0))}},0)},P.prototype.updateCompositionElements=function(y){var g=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var T=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),M=this._renderService.dimensions.actualCellHeight,E=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,x=T*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=x+"px",this._compositionView.style.top=E+"px",this._compositionView.style.height=M+"px",this._compositionView.style.lineHeight=M+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var S=this._compositionView.getBoundingClientRect();this._textarea.style.left=x+"px",this._textarea.style.top=E+"px",this._textarea.style.width=Math.max(S.width,1)+"px",this._textarea.style.height=Math.max(S.height,1)+"px",this._textarea.style.lineHeight=S.height+"px"}y||setTimeout(function(){return g.updateCompositionElements(!0)},0)}},C([_(2,D.IBufferService),_(3,D.IOptionsService),_(4,D.ICoreService),_(5,N.IRenderService)],P)}();w.CompositionHelper=O},9806:function(Z,w){function R(C,_){var N=_.getBoundingClientRect();return[C.clientX-N.left,C.clientY-N.top]}Object.defineProperty(w,"__esModule",{value:!0}),w.getRawByteCoords=w.getCoords=w.getCoordsRelativeToElement=void 0,w.getCoordsRelativeToElement=R,w.getCoords=function(C,_,N,D,O,P,y,g){if(O){var T=R(C,_);if(T)return T[0]=Math.ceil((T[0]+(g?P/2:0))/P),T[1]=Math.ceil(T[1]/y),T[0]=Math.min(Math.max(T[0],1),N+(g?1:0)),T[1]=Math.min(Math.max(T[1],1),D),T}},w.getRawByteCoords=function(C){if(C)return{x:C[0]+32,y:C[1]+32}}},9504:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.moveToCellSequence=void 0;var C=R(2584);function _(g,T,M,E){var x=g-N(M,g),S=T-N(M,T);return y(Math.abs(x-S)-function(A,L,j){for(var K=0,z=A-N(j,A),Q=L-N(j,L),ae=0;ae<Math.abs(z-Q);ae++){var ie="A"===D(A,L)?-1:1,se=j.buffer.lines.get(z+ie*ae);se&&se.isWrapped&&K++}return K}(g,T,M),P(D(g,T),E))}function N(g,T){for(var M=0,E=g.buffer.lines.get(T),x=E&&E.isWrapped;x&&T>=0&&T<g.rows;)M++,x=(E=g.buffer.lines.get(--T))&&E.isWrapped;return M}function D(g,T){return g>T?"A":"B"}function O(g,T,M,E,x,S){for(var A=g,L=T,j="";A!==M||L!==E;)A+=x?1:-1,x&&A>S.cols-1?(j+=S.buffer.translateBufferLineToString(L,!1,g,A),A=0,g=0,L++):!x&&A<0&&(j+=S.buffer.translateBufferLineToString(L,!1,0,g+1),g=A=S.cols-1,L--);return j+S.buffer.translateBufferLineToString(L,!1,g,A)}function P(g,T){return C.C0.ESC+(T?"O":"[")+g}function y(g,T){g=Math.floor(g);for(var M="",E=0;E<g;E++)M+=T;return M}w.moveToCellSequence=function(g,T,M,E){var x,j,K,ae,ie,S=M.buffer.x,A=M.buffer.y;if(!M.buffer.hasScrollback)return j=S,(0===_(K=A,T,ae=M,ie=E).length?"":y(O(j,K,j,K-N(ae,K),!1,ae).length,P("D",ie)))+_(A,T,M,E)+function(j,K,z,Q,ae,ie){var se;se=_(K,Q,ae,ie).length>0?Q-N(ae,Q):K;var oe,$,ye,ve,et,gt,ue=Q,de=(oe=j,$=K,gt=_(ye=z,ve=Q,et=ae,ie).length>0?ve-N(et,ve):$,oe<ye&&gt<=ve||oe>=ye&&gt<ve?"C":"D");return y(O(j,se,z,ue,"C"===de,ae).length,P(de,ie))}(S,A,g,T,M,E);if(A===T)return x=S>g?"D":"C",y(Math.abs(S-g),P(x,E));x=A>T?"D":"C";var L=Math.abs(A-T);return y(function(j,K){return K.cols-j}(A>T?g:S,M)+(L-1)*M.cols+1+((A>T?S:g)-1),P(x,E))}},244:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.AddonManager=void 0;var R=function(){function C(){this._addons=[]}return C.prototype.dispose=function(){for(var _=this._addons.length-1;_>=0;_--)this._addons[_].instance.dispose()},C.prototype.loadAddon=function(_,N){var D=this,O={instance:N,dispose:N.dispose,isDisposed:!1};this._addons.push(O),N.dispose=function(){return D._wrappedAddonDispose(O)},N.activate(_)},C.prototype._wrappedAddonDispose=function(_){if(!_.isDisposed){for(var N=-1,D=0;D<this._addons.length;D++)if(this._addons[D]===_){N=D;break}if(-1===N)throw new Error("Could not dispose an addon that has not been loaded");_.isDisposed=!0,_.dispose.apply(_.instance),this._addons.splice(N,1)}},C}();w.AddonManager=R},1546:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.BaseRenderLayer=void 0;var C=R(643),_=R(8803),N=R(1420),D=R(3734),O=R(1752),P=R(4774),y=R(9631),g=function(){function T(M,E,x,S,A,L,j,K){this._container=M,this._alpha=S,this._colors=A,this._rendererId=L,this._bufferService=j,this._optionsService=K,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 T.prototype.dispose=function(){var M;y.removeElementFromParent(this._canvas),null===(M=this._charAtlas)||void 0===M||M.dispose()},T.prototype._initCanvas=function(){this._ctx=O.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},T.prototype.onOptionsChanged=function(){},T.prototype.onBlur=function(){},T.prototype.onFocus=function(){},T.prototype.onCursorMove=function(){},T.prototype.onGridChanged=function(M,E){},T.prototype.onSelectionChanged=function(M,E,x){void 0===x&&(x=!1)},T.prototype.setColors=function(M){this._refreshCharAtlas(M)},T.prototype._setTransparency=function(M){if(M!==this._alpha){var E=this._canvas;this._alpha=M,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,E),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},T.prototype._refreshCharAtlas=function(M){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=N.acquireCharAtlas(this._optionsService.options,this._rendererId,M,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},T.prototype.resize=function(M){this._scaledCellWidth=M.scaledCellWidth,this._scaledCellHeight=M.scaledCellHeight,this._scaledCharWidth=M.scaledCharWidth,this._scaledCharHeight=M.scaledCharHeight,this._scaledCharLeft=M.scaledCharLeft,this._scaledCharTop=M.scaledCharTop,this._canvas.width=M.scaledCanvasWidth,this._canvas.height=M.scaledCanvasHeight,this._canvas.style.width=M.canvasWidth+"px",this._canvas.style.height=M.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},T.prototype._fillCells=function(M,E,x,S){this._ctx.fillRect(M*this._scaledCellWidth,E*this._scaledCellHeight,x*this._scaledCellWidth,S*this._scaledCellHeight)},T.prototype._fillBottomLineAtCells=function(M,E,x){void 0===x&&(x=1),this._ctx.fillRect(M*this._scaledCellWidth,(E+1)*this._scaledCellHeight-window.devicePixelRatio-1,x*this._scaledCellWidth,window.devicePixelRatio)},T.prototype._fillLeftLineAtCell=function(M,E,x){this._ctx.fillRect(M*this._scaledCellWidth,E*this._scaledCellHeight,window.devicePixelRatio*x,this._scaledCellHeight)},T.prototype._strokeRectAtCell=function(M,E,x,S){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(M*this._scaledCellWidth+window.devicePixelRatio/2,E*this._scaledCellHeight+window.devicePixelRatio/2,x*this._scaledCellWidth-window.devicePixelRatio,S*this._scaledCellHeight-window.devicePixelRatio)},T.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))},T.prototype._clearCells=function(M,E,x,S){this._alpha?this._ctx.clearRect(M*this._scaledCellWidth,E*this._scaledCellHeight,x*this._scaledCellWidth,S*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(M*this._scaledCellWidth,E*this._scaledCellHeight,x*this._scaledCellWidth,S*this._scaledCellHeight))},T.prototype._fillCharTrueColor=function(M,E,x){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="ideographic",this._clipRow(x),this._ctx.fillText(M.getChars(),E*this._scaledCellWidth+this._scaledCharLeft,x*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},T.prototype._drawChars=function(M,E,x){var S,A,L=this._getContrastColor(M);L||M.isFgRGB()||M.isBgRGB()?this._drawUncachedChars(M,E,x,L):(M.isInverse()?(S=M.isBgDefault()?_.INVERTED_DEFAULT_COLOR:M.getBgColor(),A=M.isFgDefault()?_.INVERTED_DEFAULT_COLOR:M.getFgColor()):(A=M.isBgDefault()?C.DEFAULT_COLOR:M.getBgColor(),S=M.isFgDefault()?C.DEFAULT_COLOR:M.getFgColor()),S+=this._optionsService.options.drawBoldTextInBrightColors&&M.isBold()&&S<8?8:0,this._currentGlyphIdentifier.chars=M.getChars()||C.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=M.getCode()||C.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=A,this._currentGlyphIdentifier.fg=S,this._currentGlyphIdentifier.bold=!!M.isBold(),this._currentGlyphIdentifier.dim=!!M.isDim(),this._currentGlyphIdentifier.italic=!!M.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,E*this._scaledCellWidth+this._scaledCharLeft,x*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(M,E,x))},T.prototype._drawUncachedChars=function(M,E,x,S){if(this._ctx.save(),this._ctx.font=this._getFont(!!M.isBold(),!!M.isItalic()),this._ctx.textBaseline="ideographic",M.isInverse())if(S)this._ctx.fillStyle=S.css;else if(M.isBgDefault())this._ctx.fillStyle=P.color.opaque(this._colors.background).css;else if(M.isBgRGB())this._ctx.fillStyle="rgb("+D.AttributeData.toColorRGB(M.getBgColor()).join(",")+")";else{var A=M.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&M.isBold()&&A<8&&(A+=8),this._ctx.fillStyle=this._colors.ansi[A].css}else if(S)this._ctx.fillStyle=S.css;else if(M.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(M.isFgRGB())this._ctx.fillStyle="rgb("+D.AttributeData.toColorRGB(M.getFgColor()).join(",")+")";else{var L=M.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&M.isBold()&&L<8&&(L+=8),this._ctx.fillStyle=this._colors.ansi[L].css}this._clipRow(x),M.isDim()&&(this._ctx.globalAlpha=_.DIM_OPACITY),this._ctx.fillText(M.getChars(),E*this._scaledCellWidth+this._scaledCharLeft,x*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},T.prototype._clipRow=function(M){this._ctx.beginPath(),this._ctx.rect(0,M*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},T.prototype._getFont=function(M,E){return(E?"italic":"")+" "+(M?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},T.prototype._getContrastColor=function(M){if(1!==this._optionsService.options.minimumContrastRatio){var E=this._colors.contrastCache.getColor(M.bg,M.fg);if(void 0!==E)return E||void 0;var x=M.getFgColor(),S=M.getFgColorMode(),A=M.getBgColor(),L=M.getBgColorMode(),j=!!M.isInverse(),K=!!M.isInverse();if(j){var z=x;x=A,A=z;var Q=S;S=L,L=Q}var ae=this._resolveBackgroundRgba(L,A,j),ie=this._resolveForegroundRgba(S,x,j,K),se=P.rgba.ensureContrastRatio(ae,ie,this._optionsService.options.minimumContrastRatio);if(se){var ue={css:P.channels.toCss(se>>24&255,se>>16&255,se>>8&255),rgba:se};return this._colors.contrastCache.setColor(M.bg,M.fg,ue),ue}this._colors.contrastCache.setColor(M.bg,M.fg,null)}},T.prototype._resolveBackgroundRgba=function(M,E,x){switch(M){case 16777216:case 33554432:return this._colors.ansi[E].rgba;case 50331648:return E<<8;case 0:default:return x?this._colors.foreground.rgba:this._colors.background.rgba}},T.prototype._resolveForegroundRgba=function(M,E,x,S){switch(M){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&S&&E<8&&(E+=8),this._colors.ansi[E].rgba;case 50331648:return E<<8;case 0:default:return x?this._colors.background.rgba:this._colors.foreground.rgba}},T}();w.BaseRenderLayer=g},2512:function(Z,w,R){var C,_=this&&this.__extends||(C=function(S,A){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,j){L.__proto__=j}||function(L,j){for(var K in j)Object.prototype.hasOwnProperty.call(j,K)&&(L[K]=j[K])})(S,A)},function(x,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function A(){this.constructor=x}C(x,S),x.prototype=null===S?Object.create(S):(A.prototype=S.prototype,new A)}),N=this&&this.__decorate||function(x,S,A,L){var j,K=arguments.length,z=K<3?S:null===L?L=Object.getOwnPropertyDescriptor(S,A):L;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(x,S,A,L);else for(var Q=x.length-1;Q>=0;Q--)(j=x[Q])&&(z=(K<3?j(z):K>3?j(S,A,z):j(S,A))||z);return K>3&&z&&Object.defineProperty(S,A,z),z},D=this&&this.__param||function(x,S){return function(A,L){S(A,L,x)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CursorRenderLayer=void 0;var O=R(1546),P=R(511),y=R(2585),g=R(4725),T=600,M=function(x){function S(A,L,j,K,z,Q,ae,ie,se){var ue=x.call(this,A,"cursor",L,!0,j,K,Q,ae)||this;return ue._onRequestRedraw=z,ue._coreService=ie,ue._coreBrowserService=se,ue._cell=new P.CellData,ue._state={x:0,y:0,isFocused:!1,style:"",width:0},ue._cursorRenderers={bar:ue._renderBarCursor.bind(ue),block:ue._renderBlockCursor.bind(ue),underline:ue._renderUnderlineCursor.bind(ue)},ue}return _(S,x),S.prototype.resize=function(A){x.prototype.resize.call(this,A),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},S.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},S.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onOptionsChanged=function(){var A,L=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new E(this._coreBrowserService.isFocused,function(){L._render(!0)})):(null===(A=this._cursorBlinkStateManager)||void 0===A||A.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},S.prototype.onGridChanged=function(A,L){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},S.prototype._render=function(A){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var L=this._bufferService.buffer.ybase+this._bufferService.buffer.y,j=L-this._bufferService.buffer.ydisp;if(j<0||j>=this._bufferService.rows)this._clearCursor();else{var K=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(L).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 z=this._optionsService.options.cursorStyle;return z&&"block"!==z?this._cursorRenderers[z](K,j,this._cell):this._renderBlurCursor(K,j,this._cell),this._ctx.restore(),this._state.x=K,this._state.y=j,this._state.isFocused=!1,this._state.style=z,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===K&&this._state.y===j&&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,j,this._cell),this._ctx.restore(),this._state.x=K,this._state.y=j,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},S.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},S.prototype._renderBarCursor=function(A,L,j){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(A,L,this._optionsService.options.cursorWidth),this._ctx.restore()},S.prototype._renderBlockCursor=function(A,L,j){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(A,L,j.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(j,A,L),this._ctx.restore()},S.prototype._renderUnderlineCursor=function(A,L,j){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(A,L),this._ctx.restore()},S.prototype._renderBlurCursor=function(A,L,j){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(A,L,j.getWidth(),1),this._ctx.restore()},N([D(5,y.IBufferService),D(6,y.IOptionsService),D(7,y.ICoreService),D(8,g.ICoreBrowserService)],S)}(O.BaseRenderLayer);w.CursorRenderLayer=M;var E=function(){function x(S,A){this._renderCallback=A,this.isCursorVisible=!0,S&&this._restartInterval()}return Object.defineProperty(x.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),x.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)},x.prototype.restartBlinkAnimation=function(){var S=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){S._renderCallback(),S._animationFrame=void 0})))},x.prototype._restartInterval=function(S){var A=this;void 0===S&&(S=T),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(A._animationTimeRestarted){var L=T-(Date.now()-A._animationTimeRestarted);if(A._animationTimeRestarted=void 0,L>0)return void A._restartInterval(L)}A.isCursorVisible=!1,A._animationFrame=window.requestAnimationFrame(function(){A._renderCallback(),A._animationFrame=void 0}),A._blinkInterval=window.setInterval(function(){if(A._animationTimeRestarted){var j=T-(Date.now()-A._animationTimeRestarted);return A._animationTimeRestarted=void 0,void A._restartInterval(j)}A.isCursorVisible=!A.isCursorVisible,A._animationFrame=window.requestAnimationFrame(function(){A._renderCallback(),A._animationFrame=void 0})},T)},S)},x.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)},x.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},x}()},3700:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.GridCache=void 0;var R=function(){function C(){this.cache=[]}return C.prototype.resize=function(_,N){for(var D=0;D<_;D++){this.cache.length<=D&&this.cache.push([]);for(var O=this.cache[D].length;O<N;O++)this.cache[D].push(void 0);this.cache[D].length=N}this.cache.length=_},C.prototype.clear=function(){for(var _=0;_<this.cache.length;_++)for(var N=0;N<this.cache[_].length;N++)this.cache[_][N]=void 0},C}();w.GridCache=R},5098:function(Z,w,R){var C,_=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,A){S.__proto__=A}||function(S,A){for(var L in A)Object.prototype.hasOwnProperty.call(A,L)&&(S[L]=A[L])})(E,x)},function(M,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=M}C(M,E),M.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),N=this&&this.__decorate||function(M,E,x,S){var A,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(M,E,x,S);else for(var K=M.length-1;K>=0;K--)(A=M[K])&&(j=(L<3?A(j):L>3?A(E,x,j):A(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(M,E){return function(x,S){E(x,S,M)}};Object.defineProperty(w,"__esModule",{value:!0}),w.LinkRenderLayer=void 0;var O=R(1546),P=R(8803),y=R(2040),g=R(2585),T=function(M){function E(x,S,A,L,j,K,z,Q){var ae=M.call(this,x,"link",S,!0,A,L,z,Q)||this;return j.onShowLinkUnderline(function(ie){return ae._onShowLinkUnderline(ie)}),j.onHideLinkUnderline(function(ie){return ae._onHideLinkUnderline(ie)}),K.onShowLinkUnderline(function(ie){return ae._onShowLinkUnderline(ie)}),K.onHideLinkUnderline(function(ie){return ae._onHideLinkUnderline(ie)}),ae}return _(E,M),E.prototype.resize=function(x){M.prototype.resize.call(this,x),this._state=void 0},E.prototype.reset=function(){this._clearCurrentLink()},E.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var x=this._state.y2-this._state.y1-1;x>0&&this._clearCells(0,this._state.y1+1,this._state.cols,x),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},E.prototype._onShowLinkUnderline=function(x){if(this._ctx.fillStyle=x.fg===P.INVERTED_DEFAULT_COLOR?this._colors.background.css:x.fg&&y.is256Color(x.fg)?this._colors.ansi[x.fg].css:this._colors.foreground.css,x.y1===x.y2)this._fillBottomLineAtCells(x.x1,x.y1,x.x2-x.x1);else{this._fillBottomLineAtCells(x.x1,x.y1,x.cols-x.x1);for(var S=x.y1+1;S<x.y2;S++)this._fillBottomLineAtCells(0,S,x.cols);this._fillBottomLineAtCells(0,x.y2,x.x2)}this._state=x},E.prototype._onHideLinkUnderline=function(x){this._clearCurrentLink()},N([D(6,g.IBufferService),D(7,g.IOptionsService)],E)}(O.BaseRenderLayer);w.LinkRenderLayer=T},3525:function(Z,w,R){var C,_=this&&this.__extends||(C=function(K,z){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,ae){Q.__proto__=ae}||function(Q,ae){for(var ie in ae)Object.prototype.hasOwnProperty.call(ae,ie)&&(Q[ie]=ae[ie])})(K,z)},function(j,K){if("function"!=typeof K&&null!==K)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function z(){this.constructor=j}C(j,K),j.prototype=null===K?Object.create(K):(z.prototype=K.prototype,new z)}),N=this&&this.__decorate||function(j,K,z,Q){var ae,ie=arguments.length,se=ie<3?K:null===Q?Q=Object.getOwnPropertyDescriptor(K,z):Q;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)se=Reflect.decorate(j,K,z,Q);else for(var ue=j.length-1;ue>=0;ue--)(ae=j[ue])&&(se=(ie<3?ae(se):ie>3?ae(K,z,se):ae(K,z))||se);return ie>3&&se&&Object.defineProperty(K,z,se),se},D=this&&this.__param||function(j,K){return function(z,Q){K(z,Q,j)}};Object.defineProperty(w,"__esModule",{value:!0}),w.Renderer=void 0;var O=R(9596),P=R(4149),y=R(2512),g=R(5098),T=R(844),M=R(4725),E=R(2585),x=R(1420),S=R(8460),A=1,L=function(j){function K(z,Q,ae,ie,se,ue,de,oe){var $=j.call(this)||this;return $._colors=z,$._screenElement=Q,$._bufferService=ue,$._charSizeService=de,$._optionsService=oe,$._id=A++,$._onRequestRedraw=new S.EventEmitter,$._renderLayers=[se.createInstance(O.TextRenderLayer,$._screenElement,0,$._colors,$._optionsService.options.allowTransparency,$._id),se.createInstance(P.SelectionRenderLayer,$._screenElement,1,$._colors,$._id),se.createInstance(g.LinkRenderLayer,$._screenElement,2,$._colors,$._id,ae,ie),se.createInstance(y.CursorRenderLayer,$._screenElement,3,$._colors,$._id,$._onRequestRedraw)],$.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},$._devicePixelRatio=window.devicePixelRatio,$._updateDimensions(),$.onOptionsChanged(),$}return _(K,j),Object.defineProperty(K.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),K.prototype.dispose=function(){for(var z=0,Q=this._renderLayers;z<Q.length;z++)Q[z].dispose();j.prototype.dispose.call(this),x.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(z){this._colors=z;for(var Q=0,ae=this._renderLayers;Q<ae.length;Q++){var ie=ae[Q];ie.setColors(this._colors),ie.reset()}},K.prototype.onResize=function(z,Q){this._updateDimensions();for(var ae=0,ie=this._renderLayers;ae<ie.length;ae++)ie[ae].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(z){return z.onBlur()})},K.prototype.onFocus=function(){this._runOperation(function(z){return z.onFocus()})},K.prototype.onSelectionChanged=function(z,Q,ae){void 0===ae&&(ae=!1),this._runOperation(function(ie){return ie.onSelectionChanged(z,Q,ae)})},K.prototype.onCursorMove=function(){this._runOperation(function(z){return z.onCursorMove()})},K.prototype.onOptionsChanged=function(){this._runOperation(function(z){return z.onOptionsChanged()})},K.prototype.clear=function(){this._runOperation(function(z){return z.reset()})},K.prototype._runOperation=function(z){for(var Q=0,ae=this._renderLayers;Q<ae.length;Q++)z(ae[Q])},K.prototype.renderRows=function(z,Q){for(var ae=0,ie=this._renderLayers;ae<ie.length;ae++)ie[ae].onGridChanged(z,Q)},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)},N([D(4,E.IInstantiationService),D(5,E.IBufferService),D(6,M.ICharSizeService),D(7,E.IOptionsService)],K)}(T.Disposable);w.Renderer=L},1752:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.throwIfFalsy=void 0,w.throwIfFalsy=function(R){if(!R)throw new Error("value must not be falsy");return R}},4149:function(Z,w,R){var C,_=this&&this.__extends||(C=function(T,M){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&(E[S]=x[S])})(T,M)},function(g,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function M(){this.constructor=g}C(g,T),g.prototype=null===T?Object.create(T):(M.prototype=T.prototype,new M)}),N=this&&this.__decorate||function(g,T,M,E){var x,S=arguments.length,A=S<3?T:null===E?E=Object.getOwnPropertyDescriptor(T,M):E;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)A=Reflect.decorate(g,T,M,E);else for(var L=g.length-1;L>=0;L--)(x=g[L])&&(A=(S<3?x(A):S>3?x(T,M,A):x(T,M))||A);return S>3&&A&&Object.defineProperty(T,M,A),A},D=this&&this.__param||function(g,T){return function(M,E){T(M,E,g)}};Object.defineProperty(w,"__esModule",{value:!0}),w.SelectionRenderLayer=void 0;var O=R(1546),P=R(2585),y=function(g){function T(M,E,x,S,A,L){var j=g.call(this,M,"selection",E,!0,x,S,A,L)||this;return j._clearState(),j}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(M){g.prototype.resize.call(this,M),this._clearState()},T.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},T.prototype.onSelectionChanged=function(M,E,x){if(this._didStateChange(M,E,x,this._bufferService.buffer.ydisp))if(this._clearAll(),M&&E){var S=M[1]-this._bufferService.buffer.ydisp,A=E[1]-this._bufferService.buffer.ydisp,L=Math.max(S,0),j=Math.min(A,this._bufferService.rows-1);if(L>=this._bufferService.rows||j<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,x){var K=M[0];this._fillCells(K,L,E[0]-K,j-L+1)}else{this._fillCells(K=S===L?M[0]:0,L,(L===A?E[0]:this._bufferService.cols)-K,1);var ie=Math.max(j-L-1,0);this._fillCells(0,L+1,this._bufferService.cols,ie),L!==j&&this._fillCells(0,j,A===j?E[0]:this._bufferService.cols,1)}this._state.start=[M[0],M[1]],this._state.end=[E[0],E[1]],this._state.columnSelectMode=x,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},T.prototype._didStateChange=function(M,E,x,S){return!this._areCoordinatesEqual(M,this._state.start)||!this._areCoordinatesEqual(E,this._state.end)||x!==this._state.columnSelectMode||S!==this._state.ydisp},T.prototype._areCoordinatesEqual=function(M,E){return!(!M||!E)&&M[0]===E[0]&&M[1]===E[1]},N([D(4,P.IBufferService),D(5,P.IOptionsService)],T)}(O.BaseRenderLayer);w.SelectionRenderLayer=y},9596:function(Z,w,R){var C,_=this&&this.__extends||(C=function(L,j){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,z){K.__proto__=z}||function(K,z){for(var Q in z)Object.prototype.hasOwnProperty.call(z,Q)&&(K[Q]=z[Q])})(L,j)},function(A,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function j(){this.constructor=A}C(A,L),A.prototype=null===L?Object.create(L):(j.prototype=L.prototype,new j)}),N=this&&this.__decorate||function(A,L,j,K){var z,Q=arguments.length,ae=Q<3?L:null===K?K=Object.getOwnPropertyDescriptor(L,j):K;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ae=Reflect.decorate(A,L,j,K);else for(var ie=A.length-1;ie>=0;ie--)(z=A[ie])&&(ae=(Q<3?z(ae):Q>3?z(L,j,ae):z(L,j))||ae);return Q>3&&ae&&Object.defineProperty(L,j,ae),ae},D=this&&this.__param||function(A,L){return function(j,K){L(j,K,A)}};Object.defineProperty(w,"__esModule",{value:!0}),w.TextRenderLayer=void 0;var O=R(3700),P=R(1546),y=R(3734),g=R(643),T=R(511),M=R(2585),E=R(4725),x=R(4269),S=function(A){function L(j,K,z,Q,ae,ie,se,ue){var de=A.call(this,j,"text",K,Q,z,ae,ie,se)||this;return de._characterJoinerService=ue,de._characterWidth=0,de._characterFont="",de._characterOverlapCache={},de._workCell=new T.CellData,de._state=new O.GridCache,de}return _(L,A),L.prototype.resize=function(j){A.prototype.resize.call(this,j);var K=this._getFont(!1,!1);this._characterWidth===j.scaledCharWidth&&this._characterFont===K||(this._characterWidth=j.scaledCharWidth,this._characterFont=K,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},L.prototype.reset=function(){this._state.clear(),this._clearAll()},L.prototype._forEachCell=function(j,K,z){for(var Q=j;Q<=K;Q++)for(var ae=Q+this._bufferService.buffer.ydisp,ie=this._bufferService.buffer.lines.get(ae),se=this._characterJoinerService.getJoinedCharacters(ae),ue=0;ue<this._bufferService.cols;ue++){ie.loadCell(ue,this._workCell);var de=this._workCell,oe=!1,$=ue;if(0!==de.getWidth()){if(se.length>0&&ue===se[0][0]){oe=!0;var ye=se.shift();de=new x.JoinedCellData(this._workCell,ie.translateToString(!0,ye[0],ye[1]),ye[1]-ye[0]),$=ye[1]-1}!oe&&this._isOverlapping(de)&&$<ie.length-1&&ie.getCodePoint($+1)===g.NULL_CELL_CODE&&(de.content&=-12582913,de.content|=2<<22),z(de,ue,Q),ue=$}}},L.prototype._drawBackground=function(j,K){var z=this,Q=this._ctx,ae=this._bufferService.cols,ie=0,se=0,ue=null;Q.save(),this._forEachCell(j,K,function(de,oe,$){var ye=null;de.isInverse()?ye=de.isFgDefault()?z._colors.foreground.css:de.isFgRGB()?"rgb("+y.AttributeData.toColorRGB(de.getFgColor()).join(",")+")":z._colors.ansi[de.getFgColor()].css:de.isBgRGB()?ye="rgb("+y.AttributeData.toColorRGB(de.getBgColor()).join(",")+")":de.isBgPalette()&&(ye=z._colors.ansi[de.getBgColor()].css),null===ue&&(ie=oe,se=$),$!==se?(Q.fillStyle=ue||"",z._fillCells(ie,se,ae-ie,1),ie=oe,se=$):ue!==ye&&(Q.fillStyle=ue||"",z._fillCells(ie,se,oe-ie,1),ie=oe,se=$),ue=ye}),null!==ue&&(Q.fillStyle=ue,this._fillCells(ie,se,ae-ie,1)),Q.restore()},L.prototype._drawForeground=function(j,K){var z=this;this._forEachCell(j,K,function(Q,ae,ie){if(!Q.isInvisible()&&(z._drawChars(Q,ae,ie),Q.isUnderline())){if(z._ctx.save(),Q.isInverse())if(Q.isBgDefault())z._ctx.fillStyle=z._colors.background.css;else if(Q.isBgRGB())z._ctx.fillStyle="rgb("+y.AttributeData.toColorRGB(Q.getBgColor()).join(",")+")";else{var se=Q.getBgColor();z._optionsService.options.drawBoldTextInBrightColors&&Q.isBold()&&se<8&&(se+=8),z._ctx.fillStyle=z._colors.ansi[se].css}else if(Q.isFgDefault())z._ctx.fillStyle=z._colors.foreground.css;else if(Q.isFgRGB())z._ctx.fillStyle="rgb("+y.AttributeData.toColorRGB(Q.getFgColor()).join(",")+")";else{var ue=Q.getFgColor();z._optionsService.options.drawBoldTextInBrightColors&&Q.isBold()&&ue<8&&(ue+=8),z._ctx.fillStyle=z._colors.ansi[ue].css}z._fillBottomLineAtCells(ae,ie,Q.getWidth()),z._ctx.restore()}})},L.prototype.onGridChanged=function(j,K){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,j,this._bufferService.cols,K-j+1),this._drawBackground(j,K),this._drawForeground(j,K))},L.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},L.prototype._isOverlapping=function(j){if(1!==j.getWidth()||j.getCode()<256)return!1;var K=j.getChars();if(this._characterOverlapCache.hasOwnProperty(K))return this._characterOverlapCache[K];this._ctx.save(),this._ctx.font=this._characterFont;var z=Math.floor(this._ctx.measureText(K).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[K]=z,z},N([D(5,M.IBufferService),D(6,M.IOptionsService),D(7,E.ICharacterJoinerService)],L)}(P.BaseRenderLayer);w.TextRenderLayer=S},9616:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.BaseCharAtlas=void 0;var R=function(){function C(){this._didWarmUp=!1}return C.prototype.dispose=function(){},C.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},C.prototype._doWarmUp=function(){},C.prototype.beginFrame=function(){},C}();w.BaseCharAtlas=R},1420:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.removeTerminalFromCache=w.acquireCharAtlas=void 0;var C=R(2040),_=R(1906),N=[];w.acquireCharAtlas=function(D,O,P,y,g){for(var T=C.generateConfig(y,g,D,P),M=0;M<N.length;M++){var E=(x=N[M]).ownedBy.indexOf(O);if(E>=0){if(C.configEquals(x.config,T))return x.atlas;1===x.ownedBy.length?(x.atlas.dispose(),N.splice(M,1)):x.ownedBy.splice(E,1);break}}for(M=0;M<N.length;M++){var x=N[M];if(C.configEquals(x.config,T))return x.ownedBy.push(O),x.atlas}var S={atlas:new _.DynamicCharAtlas(document,T),config:T,ownedBy:[O]};return N.push(S),S.atlas},w.removeTerminalFromCache=function(D){for(var O=0;O<N.length;O++){var P=N[O].ownedBy.indexOf(D);if(-1!==P){1===N[O].ownedBy.length?(N[O].atlas.dispose(),N.splice(O,1)):N[O].ownedBy.splice(P,1);break}}}},2040:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.is256Color=w.configEquals=w.generateConfig=void 0;var C=R(643);w.generateConfig=function(_,N,D,O){return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:_,scaledCharHeight:N,fontFamily:D.fontFamily,fontSize:D.fontSize,fontWeight:D.fontWeight,fontWeightBold:D.fontWeightBold,allowTransparency:D.allowTransparency,colors:{foreground:O.foreground,background:O.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:O.ansi}}},w.configEquals=function(_,N){for(var D=0;D<_.colors.ansi.length;D++)if(_.colors.ansi[D].rgba!==N.colors.ansi[D].rgba)return!1;return _.devicePixelRatio===N.devicePixelRatio&&_.fontFamily===N.fontFamily&&_.fontSize===N.fontSize&&_.fontWeight===N.fontWeight&&_.fontWeightBold===N.fontWeightBold&&_.allowTransparency===N.allowTransparency&&_.scaledCharWidth===N.scaledCharWidth&&_.scaledCharHeight===N.scaledCharHeight&&_.colors.foreground===N.colors.foreground&&_.colors.background===N.colors.background},w.is256Color=function(_){return _<C.DEFAULT_COLOR}},8803:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.CHAR_ATLAS_CELL_SPACING=w.DIM_OPACITY=w.INVERTED_DEFAULT_COLOR=void 0,w.INVERTED_DEFAULT_COLOR=257,w.DIM_OPACITY=.5,w.CHAR_ATLAS_CELL_SPACING=1},1906:function(Z,w,R){var C,_=this&&this.__extends||(C=function(L,j){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,z){K.__proto__=z}||function(K,z){for(var Q in z)Object.prototype.hasOwnProperty.call(z,Q)&&(K[Q]=z[Q])})(L,j)},function(A,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function j(){this.constructor=A}C(A,L),A.prototype=null===L?Object.create(L):(j.prototype=L.prototype,new j)});Object.defineProperty(w,"__esModule",{value:!0}),w.NoneCharAtlas=w.DynamicCharAtlas=w.getGlyphCacheKey=void 0;var N=R(8803),D=R(9616),O=R(5680),P=R(7001),y=R(6114),g=R(1752),T=R(4774),M={css:"rgba(0, 0, 0, 0)",rgba:0};function E(A){return A.code<<21|A.bg<<12|A.fg<<3|(A.bold?0:4)+(A.dim?0:2)+(A.italic?0:1)}w.getGlyphCacheKey=E;var x=function(A){function L(j,K){var z=A.call(this)||this;z._config=K,z._drawToCacheCount=0,z._glyphsWaitingOnBitmap=[],z._bitmapCommitTimeout=null,z._bitmap=null,z._cacheCanvas=j.createElement("canvas"),z._cacheCanvas.width=1024,z._cacheCanvas.height=1024,z._cacheCtx=g.throwIfFalsy(z._cacheCanvas.getContext("2d",{alpha:!0}));var Q=j.createElement("canvas");Q.width=z._config.scaledCharWidth,Q.height=z._config.scaledCharHeight,z._tmpCtx=g.throwIfFalsy(Q.getContext("2d",{alpha:z._config.allowTransparency})),z._width=Math.floor(1024/z._config.scaledCharWidth),z._height=Math.floor(1024/z._config.scaledCharHeight);var ae=z._width*z._height;return z._cacheMap=new P.LRUMap(ae),z._cacheMap.prealloc(ae),z}return _(L,A),L.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},L.prototype.beginFrame=function(){this._drawToCacheCount=0},L.prototype.draw=function(j,K,z,Q){if(32===K.code)return!0;if(!this._canCache(K))return!1;var ae=E(K),ie=this._cacheMap.get(ae);if(null!=ie)return this._drawFromCache(j,ie,z,Q),!0;if(this._drawToCacheCount<100){var se;se=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var ue=this._drawToCache(K,se);return this._cacheMap.set(ae,ue),this._drawFromCache(j,ue,z,Q),!0}return!1},L.prototype._canCache=function(j){return j.code<256},L.prototype._toCoordinateX=function(j){return j%this._width*this._config.scaledCharWidth},L.prototype._toCoordinateY=function(j){return Math.floor(j/this._width)*this._config.scaledCharHeight},L.prototype._drawFromCache=function(j,K,z,Q){if(!K.isEmpty){var ae=this._toCoordinateX(K.index),ie=this._toCoordinateY(K.index);j.drawImage(K.inBitmap?this._bitmap:this._cacheCanvas,ae,ie,this._config.scaledCharWidth,this._config.scaledCharHeight,z,Q,this._config.scaledCharWidth,this._config.scaledCharHeight)}},L.prototype._getColorFromAnsiIndex=function(j){return j<this._config.colors.ansi.length?this._config.colors.ansi[j]:O.DEFAULT_ANSI_COLORS[j]},L.prototype._getBackgroundColor=function(j){return this._config.allowTransparency?M:j.bg===N.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:j.bg<256?this._getColorFromAnsiIndex(j.bg):this._config.colors.background},L.prototype._getForegroundColor=function(j){return j.fg===N.INVERTED_DEFAULT_COLOR?T.color.opaque(this._config.colors.background):j.fg<256?this._getColorFromAnsiIndex(j.fg):this._config.colors.foreground},L.prototype._drawToCache=function(j,K){this._drawToCacheCount++,this._tmpCtx.save();var z=this._getBackgroundColor(j);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=z.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="ideographic",this._tmpCtx.fillStyle=this._getForegroundColor(j).css,j.dim&&(this._tmpCtx.globalAlpha=N.DIM_OPACITY),this._tmpCtx.fillText(j.chars,0,this._config.scaledCharHeight),this._tmpCtx.restore();var ie=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),se=!1;this._config.allowTransparency||(se=function($,ye){for(var ve=!0,et=ye.rgba>>>24,Ne=ye.rgba>>>16&255,gt=ye.rgba>>>8&255,_t=0;_t<$.data.length;_t+=4)$.data[_t]===et&&$.data[_t+1]===Ne&&$.data[_t+2]===gt?$.data[_t+3]=0:ve=!1;return ve}(ie,z));var ue=this._toCoordinateX(K),de=this._toCoordinateY(K);this._cacheCtx.putImageData(ie,ue,de);var oe={index:K,isEmpty:se,inBitmap:!1};return this._addGlyphToBitmap(oe),oe},L.prototype._addGlyphToBitmap=function(j){var K=this;!("createImageBitmap"in window)||y.isFirefox||y.isSafari||(this._glyphsWaitingOnBitmap.push(j),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return K._generateBitmap()},100)))},L.prototype._generateBitmap=function(){var j=this,K=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(z){j._bitmap=z;for(var Q=0;Q<K.length;Q++)K[Q].inBitmap=!0}),this._bitmapCommitTimeout=null},L}(D.BaseCharAtlas);w.DynamicCharAtlas=x;var S=function(A){function L(j,K){return A.call(this)||this}return _(L,A),L.prototype.draw=function(j,K,z,Q){return!1},L}(D.BaseCharAtlas);w.NoneCharAtlas=S},7001:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.LRUMap=void 0;var R=function(){function C(_){this.capacity=_,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return C.prototype._unlinkNode=function(_){var N=_.prev,D=_.next;_===this._head&&(this._head=D),_===this._tail&&(this._tail=N),null!==N&&(N.next=D),null!==D&&(D.prev=N)},C.prototype._appendNode=function(_){var N=this._tail;null!==N&&(N.next=_),_.prev=N,_.next=null,this._tail=_,null===this._head&&(this._head=_)},C.prototype.prealloc=function(_){for(var N=this._nodePool,D=0;D<_;D++)N.push({prev:null,next:null,key:null,value:null})},C.prototype.get=function(_){var N=this._map[_];return void 0!==N?(this._unlinkNode(N),this._appendNode(N),N.value):null},C.prototype.peekValue=function(_){var N=this._map[_];return void 0!==N?N.value:null},C.prototype.peek=function(){var _=this._head;return null===_?null:_.value},C.prototype.set=function(_,N){var D=this._map[_];if(void 0!==D)this._unlinkNode(D=this._map[_]),D.value=N;else if(this.size>=this.capacity)this._unlinkNode(D=this._head),delete this._map[D.key],D.key=_,D.value=N,this._map[_]=D;else{var O=this._nodePool;O.length>0?((D=O.pop()).key=_,D.value=N):D={prev:null,next:null,key:_,value:N},this._map[_]=D,this.size++}this._appendNode(D)},C}();w.LRUMap=R},1296:function(Z,w,R){var C,_=this&&this.__extends||(C=function(ae,ie){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ue){se.__proto__=ue}||function(se,ue){for(var de in ue)Object.prototype.hasOwnProperty.call(ue,de)&&(se[de]=ue[de])})(ae,ie)},function(Q,ae){if("function"!=typeof ae&&null!==ae)throw new TypeError("Class extends value "+String(ae)+" is not a constructor or null");function ie(){this.constructor=Q}C(Q,ae),Q.prototype=null===ae?Object.create(ae):(ie.prototype=ae.prototype,new ie)}),N=this&&this.__decorate||function(Q,ae,ie,se){var ue,de=arguments.length,oe=de<3?ae:null===se?se=Object.getOwnPropertyDescriptor(ae,ie):se;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)oe=Reflect.decorate(Q,ae,ie,se);else for(var $=Q.length-1;$>=0;$--)(ue=Q[$])&&(oe=(de<3?ue(oe):de>3?ue(ae,ie,oe):ue(ae,ie))||oe);return de>3&&oe&&Object.defineProperty(ae,ie,oe),oe},D=this&&this.__param||function(Q,ae){return function(ie,se){ae(ie,se,Q)}};Object.defineProperty(w,"__esModule",{value:!0}),w.DomRenderer=void 0;var O=R(3787),P=R(8803),y=R(844),g=R(4725),T=R(2585),M=R(8460),E=R(4774),x=R(9631),S="xterm-dom-renderer-owner-",A="xterm-fg-",L="xterm-bg-",j="xterm-focus",K=1,z=function(Q){function ae(ie,se,ue,de,oe,$,ye,ve,et,Ne){var gt=Q.call(this)||this;return gt._colors=ie,gt._element=se,gt._screenElement=ue,gt._viewportElement=de,gt._linkifier=oe,gt._linkifier2=$,gt._charSizeService=ve,gt._optionsService=et,gt._bufferService=Ne,gt._terminalClass=K++,gt._rowElements=[],gt._rowContainer=document.createElement("div"),gt._rowContainer.classList.add("xterm-rows"),gt._rowContainer.style.lineHeight="normal",gt._rowContainer.setAttribute("aria-hidden","true"),gt._refreshRowElements(gt._bufferService.cols,gt._bufferService.rows),gt._selectionContainer=document.createElement("div"),gt._selectionContainer.classList.add("xterm-selection"),gt._selectionContainer.setAttribute("aria-hidden","true"),gt.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},gt._updateDimensions(),gt._injectCss(),gt._rowFactory=ye.createInstance(O.DomRendererRowFactory,document,gt._colors),gt._element.classList.add(S+gt._terminalClass),gt._screenElement.appendChild(gt._rowContainer),gt._screenElement.appendChild(gt._selectionContainer),gt._linkifier.onShowLinkUnderline(function(_t){return gt._onLinkHover(_t)}),gt._linkifier.onHideLinkUnderline(function(_t){return gt._onLinkLeave(_t)}),gt._linkifier2.onShowLinkUnderline(function(_t){return gt._onLinkHover(_t)}),gt._linkifier2.onHideLinkUnderline(function(_t){return gt._onLinkLeave(_t)}),gt}return _(ae,Q),Object.defineProperty(ae.prototype,"onRequestRedraw",{get:function(){return(new M.EventEmitter).event},enumerable:!1,configurable:!0}),ae.prototype.dispose=function(){this._element.classList.remove(S+this._terminalClass),x.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),Q.prototype.dispose.call(this)},ae.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 ie=0,se=this._rowElements;ie<se.length;ie++){var ue=se[ie];ue.style.width=this.dimensions.canvasWidth+"px",ue.style.height=this.dimensions.actualCellHeight+"px",ue.style.lineHeight=this.dimensions.actualCellHeight+"px",ue.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"},ae.prototype.setColors=function(ie){this._colors=ie,this._injectCss()},ae.prototype._injectCss=function(){var ie=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var se=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";se+=this._terminalSelector+" span:not(."+O.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+O.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+O.ITALIC_CLASS+" { font-style: italic;}",se+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",se+="@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+"; }}",se+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+O.CURSOR_CLASS+"."+O.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+O.CURSOR_CLASS+"."+O.CURSOR_BLINK_CLASS+":not(."+O.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+O.CURSOR_CLASS+"."+O.CURSOR_BLINK_CLASS+"."+O.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+O.CURSOR_CLASS+"."+O.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+O.CURSOR_CLASS+"."+O.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+O.CURSOR_CLASS+"."+O.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",se+=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(ue,de){se+=ie._terminalSelector+" ."+A+de+" { color: "+ue.css+"; }"+ie._terminalSelector+" ."+L+de+" { background-color: "+ue.css+"; }"}),se+=this._terminalSelector+" ."+A+P.INVERTED_DEFAULT_COLOR+" { color: "+E.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+L+P.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=se},ae.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},ae.prototype._refreshRowElements=function(ie,se){for(var ue=this._rowElements.length;ue<=se;ue++){var de=document.createElement("div");this._rowContainer.appendChild(de),this._rowElements.push(de)}for(;this._rowElements.length>se;)this._rowContainer.removeChild(this._rowElements.pop())},ae.prototype.onResize=function(ie,se){this._refreshRowElements(ie,se),this._updateDimensions()},ae.prototype.onCharSizeChanged=function(){this._updateDimensions()},ae.prototype.onBlur=function(){this._rowContainer.classList.remove(j)},ae.prototype.onFocus=function(){this._rowContainer.classList.add(j)},ae.prototype.onSelectionChanged=function(ie,se,ue){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(ie&&se){var de=ie[1]-this._bufferService.buffer.ydisp,oe=se[1]-this._bufferService.buffer.ydisp,$=Math.max(de,0),ye=Math.min(oe,this._bufferService.rows-1);if(!($>=this._bufferService.rows||ye<0)){var ve=document.createDocumentFragment();ue?ve.appendChild(this._createSelectionElement($,ie[0],se[0],ye-$+1)):(ve.appendChild(this._createSelectionElement($,de===$?ie[0]:0,$===oe?se[0]:this._bufferService.cols)),ve.appendChild(this._createSelectionElement($+1,0,this._bufferService.cols,ye-$-1)),$!==ye&&ve.appendChild(this._createSelectionElement(ye,0,oe===ye?se[0]:this._bufferService.cols))),this._selectionContainer.appendChild(ve)}}},ae.prototype._createSelectionElement=function(ie,se,ue,de){void 0===de&&(de=1);var oe=document.createElement("div");return oe.style.height=de*this.dimensions.actualCellHeight+"px",oe.style.top=ie*this.dimensions.actualCellHeight+"px",oe.style.left=se*this.dimensions.actualCellWidth+"px",oe.style.width=this.dimensions.actualCellWidth*(ue-se)+"px",oe},ae.prototype.onCursorMove=function(){},ae.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},ae.prototype.clear=function(){for(var ie=0,se=this._rowElements;ie<se.length;ie++)se[ie].innerText=""},ae.prototype.renderRows=function(ie,se){for(var ue=this._bufferService.buffer.ybase+this._bufferService.buffer.y,de=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),oe=this._optionsService.options.cursorBlink,$=ie;$<=se;$++){var ye=this._rowElements[$];ye.innerText="";var ve=$+this._bufferService.buffer.ydisp,et=this._bufferService.buffer.lines.get(ve);ye.appendChild(this._rowFactory.createRow(et,ve,ve===ue,this._optionsService.options.cursorStyle,de,oe,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(ae.prototype,"_terminalSelector",{get:function(){return"."+S+this._terminalClass},enumerable:!1,configurable:!0}),ae.prototype._onLinkHover=function(ie){this._setCellUnderline(ie.x1,ie.x2,ie.y1,ie.y2,ie.cols,!0)},ae.prototype._onLinkLeave=function(ie){this._setCellUnderline(ie.x1,ie.x2,ie.y1,ie.y2,ie.cols,!1)},ae.prototype._setCellUnderline=function(ie,se,ue,de,oe,$){for(;ie!==se||ue!==de;){var ye=this._rowElements[ue];if(!ye)return;var ve=ye.children[ie];ve&&(ve.style.textDecoration=$?"underline":"none"),++ie>=oe&&(ie=0,ue++)}},N([D(6,T.IInstantiationService),D(7,g.ICharSizeService),D(8,T.IOptionsService),D(9,T.IBufferService)],ae)}(y.Disposable);w.DomRenderer=z},3787:function(Z,w,R){var C=this&&this.__decorate||function(x,S,A,L){var j,K=arguments.length,z=K<3?S:null===L?L=Object.getOwnPropertyDescriptor(S,A):L;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(x,S,A,L);else for(var Q=x.length-1;Q>=0;Q--)(j=x[Q])&&(z=(K<3?j(z):K>3?j(S,A,z):j(S,A))||z);return K>3&&z&&Object.defineProperty(S,A,z),z},_=this&&this.__param||function(x,S){return function(A,L){S(A,L,x)}};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.UNDERLINE_CLASS=w.ITALIC_CLASS=w.DIM_CLASS=w.BOLD_CLASS=void 0;var N=R(8803),D=R(643),O=R(511),P=R(2585),y=R(4774),g=R(4725),T=R(4269);w.BOLD_CLASS="xterm-bold",w.DIM_CLASS="xterm-dim",w.ITALIC_CLASS="xterm-italic",w.UNDERLINE_CLASS="xterm-underline",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 M=function(){function x(S,A,L,j){this._document=S,this._colors=A,this._characterJoinerService=L,this._optionsService=j,this._workCell=new O.CellData}return x.prototype.setColors=function(S){this._colors=S},x.prototype.createRow=function(S,A,L,j,K,z,Q,ae){for(var ie=this._document.createDocumentFragment(),se=this._characterJoinerService.getJoinedCharacters(A),ue=0,de=Math.min(S.length,ae)-1;de>=0;de--)if(S.loadCell(de,this._workCell).getCode()!==D.NULL_CELL_CODE||L&&de===K){ue=de+1;break}for(de=0;de<ue;de++){S.loadCell(de,this._workCell);var oe=this._workCell.getWidth();if(0!==oe){var $=!1,ye=de,ve=this._workCell;if(se.length>0&&de===se[0][0]){$=!0;var et=se.shift();ve=new T.JoinedCellData(this._workCell,S.translateToString(!0,et[0],et[1]),et[1]-et[0]),ye=et[1]-1,oe=ve.getWidth()}var Ne=this._document.createElement("span");if(oe>1&&(Ne.style.width=Q*oe+"px"),$&&(Ne.style.display="inline",K>=de&&K<=ye&&(K=de)),L&&de===K)switch(Ne.classList.add(w.CURSOR_CLASS),z&&Ne.classList.add(w.CURSOR_BLINK_CLASS),j){case"bar":Ne.classList.add(w.CURSOR_STYLE_BAR_CLASS);break;case"underline":Ne.classList.add(w.CURSOR_STYLE_UNDERLINE_CLASS);break;default:Ne.classList.add(w.CURSOR_STYLE_BLOCK_CLASS)}ve.isBold()&&Ne.classList.add(w.BOLD_CLASS),ve.isItalic()&&Ne.classList.add(w.ITALIC_CLASS),ve.isDim()&&Ne.classList.add(w.DIM_CLASS),ve.isUnderline()&&Ne.classList.add(w.UNDERLINE_CLASS),Ne.textContent=ve.isInvisible()?D.WHITESPACE_CELL_CHAR:ve.getChars()||D.WHITESPACE_CELL_CHAR;var gt=ve.getFgColor(),_t=ve.getFgColorMode(),Rt=ve.getBgColor(),Se=ve.getBgColorMode(),Oe=!!ve.isInverse();if(Oe){var je=gt;gt=Rt,Rt=je;var ct=_t;_t=Se,Se=ct}switch(_t){case 16777216:case 33554432:ve.isBold()&&gt<8&&this._optionsService.options.drawBoldTextInBrightColors&&(gt+=8),this._applyMinimumContrast(Ne,this._colors.background,this._colors.ansi[gt])||Ne.classList.add("xterm-fg-"+gt);break;case 50331648:var Xe=y.rgba.toColor(gt>>16&255,gt>>8&255,255&gt);this._applyMinimumContrast(Ne,this._colors.background,Xe)||this._addStyle(Ne,"color:#"+E(gt.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(Ne,this._colors.background,this._colors.foreground)||Oe&&Ne.classList.add("xterm-fg-"+N.INVERTED_DEFAULT_COLOR)}switch(Se){case 16777216:case 33554432:Ne.classList.add("xterm-bg-"+Rt);break;case 50331648:this._addStyle(Ne,"background-color:#"+E(Rt.toString(16),"0",6));break;case 0:default:Oe&&Ne.classList.add("xterm-bg-"+N.INVERTED_DEFAULT_COLOR)}ie.appendChild(Ne),de=ye}}return ie},x.prototype._applyMinimumContrast=function(S,A,L){if(1===this._optionsService.options.minimumContrastRatio)return!1;var j=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===j&&(j=y.color.ensureContrastRatio(A,L,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=j?j:null)),!!j&&(this._addStyle(S,"color:"+j.css),!0)},x.prototype._addStyle=function(S,A){S.setAttribute("style",""+(S.getAttribute("style")||"")+A+";")},C([_(2,g.ICharacterJoinerService),_(3,P.IOptionsService)],x)}();function E(x,S,A){for(;x.length<A;)x=S+x;return x}w.DomRendererRowFactory=M},456:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.SelectionModel=void 0;var R=function(){function C(_){this._bufferService=_,this.isSelectAllActive=!1,this.selectionStartLength=0}return C.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(C.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(C.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 N=this.selectionStart[0]+this.selectionStartLength;return N>this._bufferService.cols?[N%this._bufferService.cols,this.selectionStart[1]+Math.floor(N/this._bufferService.cols)]:[N,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}),C.prototype.areSelectionValuesReversed=function(){var _=this.selectionStart,N=this.selectionEnd;return!(!_||!N)&&(_[1]>N[1]||_[1]===N[1]&&_[0]>N[0])},C.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)},C}();w.SelectionModel=R},428:function(Z,w,R){var C=this&&this.__decorate||function(y,g,T,M){var E,x=arguments.length,S=x<3?g:null===M?M=Object.getOwnPropertyDescriptor(g,T):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(y,g,T,M);else for(var A=y.length-1;A>=0;A--)(E=y[A])&&(S=(x<3?E(S):x>3?E(g,T,S):E(g,T))||S);return x>3&&S&&Object.defineProperty(g,T,S),S},_=this&&this.__param||function(y,g){return function(T,M){g(T,M,y)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CharSizeService=void 0;var N=R(2585),D=R(8460),O=function(){function y(g,T,M){this._optionsService=M,this.width=0,this.height=0,this._onCharSizeChange=new D.EventEmitter,this._measureStrategy=new P(g,T,this._optionsService)}return Object.defineProperty(y.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),y.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())},C([_(2,N.IOptionsService)],y)}();w.CharSizeService=O;var P=function(){function y(g,T,M){this._document=g,this._parentElement=T,this._optionsService=M,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 y.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},y}()},4269:function(Z,w,R){var C,_=this&&this.__extends||(C=function(x,S){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,L){A.__proto__=L}||function(A,L){for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&(A[j]=L[j])})(x,S)},function(E,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function S(){this.constructor=E}C(E,x),E.prototype=null===x?Object.create(x):(S.prototype=x.prototype,new S)}),N=this&&this.__decorate||function(E,x,S,A){var L,j=arguments.length,K=j<3?x:null===A?A=Object.getOwnPropertyDescriptor(x,S):A;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)K=Reflect.decorate(E,x,S,A);else for(var z=E.length-1;z>=0;z--)(L=E[z])&&(K=(j<3?L(K):j>3?L(x,S,K):L(x,S))||K);return j>3&&K&&Object.defineProperty(x,S,K),K},D=this&&this.__param||function(E,x){return function(S,A){x(S,A,E)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CharacterJoinerService=w.JoinedCellData=void 0;var O=R(3734),P=R(643),y=R(511),g=R(2585),T=function(E){function x(S,A,L){var j=E.call(this)||this;return j.content=0,j.combinedData="",j.fg=S.fg,j.bg=S.bg,j.combinedData=A,j._width=L,j}return _(x,E),x.prototype.isCombined=function(){return 2097152},x.prototype.getWidth=function(){return this._width},x.prototype.getChars=function(){return this.combinedData},x.prototype.getCode=function(){return 2097151},x.prototype.setFromCharData=function(S){throw new Error("not implemented")},x.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},x}(O.AttributeData);w.JoinedCellData=T;var M=function(){function E(x){this._bufferService=x,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new y.CellData}return E.prototype.register=function(x){var S={id:this._nextCharacterJoinerId++,handler:x};return this._characterJoiners.push(S),S.id},E.prototype.deregister=function(x){for(var S=0;S<this._characterJoiners.length;S++)if(this._characterJoiners[S].id===x)return this._characterJoiners.splice(S,1),!0;return!1},E.prototype.getJoinedCharacters=function(x){if(0===this._characterJoiners.length)return[];var S=this._bufferService.buffer.lines.get(x);if(!S||0===S.length)return[];for(var A=[],L=S.translateToString(!0),j=0,K=0,z=0,Q=S.getFg(0),ae=S.getBg(0),ie=0;ie<S.getTrimmedLength();ie++)if(S.loadCell(ie,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==Q||this._workCell.bg!==ae){if(ie-j>1)for(var se=this._getJoinedRanges(L,z,K,S,j),ue=0;ue<se.length;ue++)A.push(se[ue]);j=ie,z=K,Q=this._workCell.fg,ae=this._workCell.bg}K+=this._workCell.getChars().length||P.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-j>1)for(se=this._getJoinedRanges(L,z,K,S,j),ue=0;ue<se.length;ue++)A.push(se[ue]);return A},E.prototype._getJoinedRanges=function(x,S,A,L,j){for(var K=x.substring(S,A),z=this._characterJoiners[0].handler(K),Q=1;Q<this._characterJoiners.length;Q++)for(var ae=this._characterJoiners[Q].handler(K),ie=0;ie<ae.length;ie++)E._mergeRanges(z,ae[ie]);return this._stringRangesToCellRanges(z,L,j),z},E.prototype._stringRangesToCellRanges=function(x,S,A){var L=0,j=!1,K=0,z=x[L];if(z){for(var Q=A;Q<this._bufferService.cols;Q++){var ae=S.getWidth(Q),ie=S.getString(Q).length||P.WHITESPACE_CELL_CHAR.length;if(0!==ae){if(!j&&z[0]<=K&&(z[0]=Q,j=!0),z[1]<=K){if(z[1]=Q,!(z=x[++L]))break;z[0]<=K?(z[0]=Q,j=!0):j=!1}K+=ie}}z&&(z[1]=this._bufferService.cols)}},E._mergeRanges=function(x,S){for(var A=!1,L=0;L<x.length;L++){var j=x[L];if(A){if(S[1]<=j[0])return x[L-1][1]=S[1],x;if(S[1]<=j[1])return x[L-1][1]=Math.max(S[1],j[1]),x.splice(L,1),x;x.splice(L,1),L--}else{if(S[1]<=j[0])return x.splice(L,0,S),x;if(S[1]<=j[1])return j[0]=Math.min(S[0],j[0]),x;S[0]<j[1]&&(j[0]=Math.min(S[0],j[0]),A=!0)}}return A?x[x.length-1][1]=S[1]:x.push(S),x},E=N([D(0,g.IBufferService)],E)}();w.CharacterJoinerService=M},5114:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.CoreBrowserService=void 0;var R=function(){function C(_){this._textarea=_}return Object.defineProperty(C.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),C}();w.CoreBrowserService=R},8934:function(Z,w,R){var C=this&&this.__decorate||function(P,y,g,T){var M,E=arguments.length,x=E<3?y:null===T?T=Object.getOwnPropertyDescriptor(y,g):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(P,y,g,T);else for(var S=P.length-1;S>=0;S--)(M=P[S])&&(x=(E<3?M(x):E>3?M(y,g,x):M(y,g))||x);return E>3&&x&&Object.defineProperty(y,g,x),x},_=this&&this.__param||function(P,y){return function(g,T){y(g,T,P)}};Object.defineProperty(w,"__esModule",{value:!0}),w.MouseService=void 0;var N=R(4725),D=R(9806),O=function(){function P(y,g){this._renderService=y,this._charSizeService=g}return P.prototype.getCoords=function(y,g,T,M,E){return D.getCoords(y,g,T,M,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,E)},P.prototype.getRawByteCoords=function(y,g,T,M){var E=this.getCoords(y,g,T,M);return D.getRawByteCoords(E)},C([_(0,N.IRenderService),_(1,N.ICharSizeService)],P)}();w.MouseService=O},3230:function(Z,w,R){var C,_=this&&this.__extends||(C=function(A,L){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,K){j.__proto__=K}||function(j,K){for(var z in K)Object.prototype.hasOwnProperty.call(K,z)&&(j[z]=K[z])})(A,L)},function(S,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function L(){this.constructor=S}C(S,A),S.prototype=null===A?Object.create(A):(L.prototype=A.prototype,new L)}),N=this&&this.__decorate||function(S,A,L,j){var K,z=arguments.length,Q=z<3?A:null===j?j=Object.getOwnPropertyDescriptor(A,L):j;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(S,A,L,j);else for(var ae=S.length-1;ae>=0;ae--)(K=S[ae])&&(Q=(z<3?K(Q):z>3?K(A,L,Q):K(A,L))||Q);return z>3&&Q&&Object.defineProperty(A,L,Q),Q},D=this&&this.__param||function(S,A){return function(L,j){A(L,j,S)}};Object.defineProperty(w,"__esModule",{value:!0}),w.RenderService=void 0;var O=R(6193),P=R(8460),y=R(844),g=R(5596),T=R(3656),M=R(2585),E=R(4725),x=function(S){function A(L,j,K,z,Q,ae){var ie=S.call(this)||this;if(ie._renderer=L,ie._rowCount=j,ie._charSizeService=Q,ie._isPaused=!1,ie._needsFullRefresh=!1,ie._isNextRenderRedrawOnly=!0,ie._needsSelectionRefresh=!1,ie._canvasWidth=0,ie._canvasHeight=0,ie._selectionState={start:void 0,end:void 0,columnSelectMode:!1},ie._onDimensionsChange=new P.EventEmitter,ie._onRender=new P.EventEmitter,ie._onRefreshRequest=new P.EventEmitter,ie.register({dispose:function(){return ie._renderer.dispose()}}),ie._renderDebouncer=new O.RenderDebouncer(function(ue,de){return ie._renderRows(ue,de)}),ie.register(ie._renderDebouncer),ie._screenDprMonitor=new g.ScreenDprMonitor,ie._screenDprMonitor.setListener(function(){return ie.onDevicePixelRatioChange()}),ie.register(ie._screenDprMonitor),ie.register(ae.onResize(function(ue){return ie._fullRefresh()})),ie.register(z.onOptionChange(function(){return ie._renderer.onOptionsChanged()})),ie.register(ie._charSizeService.onCharSizeChange(function(){return ie.onCharSizeChanged()})),ie._renderer.onRequestRedraw(function(ue){return ie.refreshRows(ue.start,ue.end,!0)}),ie.register(T.addDisposableDomListener(window,"resize",function(){return ie.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var se=new IntersectionObserver(function(ue){return ie._onIntersectionChange(ue[ue.length-1])},{threshold:0});se.observe(K),ie.register({dispose:function(){return se.disconnect()}})}return ie}return _(A,S),Object.defineProperty(A.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),A.prototype._onIntersectionChange=function(L){this._isPaused=void 0===L.isIntersecting?0===L.intersectionRatio:!L.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},A.prototype.refreshRows=function(L,j,K){void 0===K&&(K=!1),this._isPaused?this._needsFullRefresh=!0:(K||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(L,j,this._rowCount))},A.prototype._renderRows=function(L,j){this._renderer.renderRows(L,j),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:L,end:j}),this._isNextRenderRedrawOnly=!0},A.prototype.resize=function(L,j){this._rowCount=j,this._fireOnCanvasResize()},A.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},A.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},A.prototype.dispose=function(){S.prototype.dispose.call(this)},A.prototype.setRenderer=function(L){var j=this;this._renderer.dispose(),this._renderer=L,this._renderer.onRequestRedraw(function(K){return j.refreshRows(K.start,K.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},A.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},A.prototype.setColors=function(L){this._renderer.setColors(L),this._fullRefresh()},A.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},A.prototype.onResize=function(L,j){this._renderer.onResize(L,j),this._fullRefresh()},A.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},A.prototype.onBlur=function(){this._renderer.onBlur()},A.prototype.onFocus=function(){this._renderer.onFocus()},A.prototype.onSelectionChanged=function(L,j,K){this._selectionState.start=L,this._selectionState.end=j,this._selectionState.columnSelectMode=K,this._renderer.onSelectionChanged(L,j,K)},A.prototype.onCursorMove=function(){this._renderer.onCursorMove()},A.prototype.clear=function(){this._renderer.clear()},N([D(3,M.IOptionsService),D(4,E.ICharSizeService),D(5,M.IBufferService)],A)}(y.Disposable);w.RenderService=x},9312:function(Z,w,R){var C,_=this&&this.__extends||(C=function(Q,ae){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,se){ie.__proto__=se}||function(ie,se){for(var ue in se)Object.prototype.hasOwnProperty.call(se,ue)&&(ie[ue]=se[ue])})(Q,ae)},function(z,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Class extends value "+String(Q)+" is not a constructor or null");function ae(){this.constructor=z}C(z,Q),z.prototype=null===Q?Object.create(Q):(ae.prototype=Q.prototype,new ae)}),N=this&&this.__decorate||function(z,Q,ae,ie){var se,ue=arguments.length,de=ue<3?Q:null===ie?ie=Object.getOwnPropertyDescriptor(Q,ae):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)de=Reflect.decorate(z,Q,ae,ie);else for(var oe=z.length-1;oe>=0;oe--)(se=z[oe])&&(de=(ue<3?se(de):ue>3?se(Q,ae,de):se(Q,ae))||de);return ue>3&&de&&Object.defineProperty(Q,ae,de),de},D=this&&this.__param||function(z,Q){return function(ae,ie){Q(ae,ie,z)}};Object.defineProperty(w,"__esModule",{value:!0}),w.SelectionService=void 0;var O=R(6114),P=R(456),y=R(511),g=R(8460),T=R(4725),M=R(2585),E=R(9806),x=R(9504),S=R(844),A=R(4841),L=String.fromCharCode(160),j=new RegExp(L,"g"),K=function(z){function Q(ae,ie,se,ue,de,oe,$,ye){var ve=z.call(this)||this;return ve._element=ae,ve._screenElement=ie,ve._linkifier=se,ve._bufferService=ue,ve._coreService=de,ve._mouseService=oe,ve._optionsService=$,ve._renderService=ye,ve._dragScrollAmount=0,ve._enabled=!0,ve._workCell=new y.CellData,ve._mouseDownTimeStamp=0,ve._oldHasSelection=!1,ve._oldSelectionStart=void 0,ve._oldSelectionEnd=void 0,ve._onLinuxMouseSelection=ve.register(new g.EventEmitter),ve._onRedrawRequest=ve.register(new g.EventEmitter),ve._onSelectionChange=ve.register(new g.EventEmitter),ve._onRequestScrollLines=ve.register(new g.EventEmitter),ve._mouseMoveListener=function(et){return ve._onMouseMove(et)},ve._mouseUpListener=function(et){return ve._onMouseUp(et)},ve._coreService.onUserInput(function(){ve.hasSelection&&ve.clearSelection()}),ve._trimListener=ve._bufferService.buffer.lines.onTrim(function(et){return ve._onTrim(et)}),ve.register(ve._bufferService.buffers.onBufferActivate(function(et){return ve._onBufferActivate(et)})),ve.enable(),ve._model=new P.SelectionModel(ve._bufferService),ve._activeSelectionMode=0,ve}return _(Q,z),Object.defineProperty(Q.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),Q.prototype.dispose=function(){this._removeMouseDownListeners()},Q.prototype.reset=function(){this.clearSelection()},Q.prototype.disable=function(){this.clearSelection(),this._enabled=!1},Q.prototype.enable=function(){this._enabled=!0},Object.defineProperty(Q.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"hasSelection",{get:function(){var ie=this._model.finalSelectionStart,se=this._model.finalSelectionEnd;return!(!ie||!se||ie[0]===se[0]&&ie[1]===se[1])},enumerable:!1,configurable:!0}),Object.defineProperty(Q.prototype,"selectionText",{get:function(){var ie=this._model.finalSelectionStart,se=this._model.finalSelectionEnd;if(!ie||!se)return"";var ue=this._bufferService.buffer,de=[];if(3===this._activeSelectionMode){if(ie[0]===se[0])return"";for(var oe=ie[1];oe<=se[1];oe++){var $=ue.translateBufferLineToString(oe,!0,ie[0],se[0]);de.push($)}}else{for(de.push(ue.translateBufferLineToString(ie[1],!0,ie[0],ie[1]===se[1]?se[0]:void 0)),oe=ie[1]+1;oe<=se[1]-1;oe++){var ve=ue.lines.get(oe);$=ue.translateBufferLineToString(oe,!0),ve&&ve.isWrapped?de[de.length-1]+=$:de.push($)}ie[1]!==se[1]&&(ve=ue.lines.get(se[1]),$=ue.translateBufferLineToString(se[1],!0,0,se[0]),ve&&ve.isWrapped?de[de.length-1]+=$:de.push($))}return de.map(function(et){return et.replace(j," ")}).join(O.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),Q.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},Q.prototype.refresh=function(ae){var ie=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return ie._refresh()})),O.isLinux&&ae&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},Q.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},Q.prototype._isClickInSelection=function(ae){var ie=this._getMouseBufferCoords(ae),se=this._model.finalSelectionStart,ue=this._model.finalSelectionEnd;return!!(se&&ue&&ie)&&this._areCoordsInSelection(ie,se,ue)},Q.prototype._areCoordsInSelection=function(ae,ie,se){return ae[1]>ie[1]&&ae[1]<se[1]||ie[1]===se[1]&&ae[1]===ie[1]&&ae[0]>=ie[0]&&ae[0]<se[0]||ie[1]<se[1]&&ae[1]===se[1]&&ae[0]<se[0]||ie[1]<se[1]&&ae[1]===ie[1]&&ae[0]>=ie[0]},Q.prototype._selectWordAtCursor=function(ae,ie){var se,ue,de=null===(ue=null===(se=this._linkifier.currentLink)||void 0===se?void 0:se.link)||void 0===ue?void 0:ue.range;if(de)return this._model.selectionStart=[de.start.x-1,de.start.y-1],this._model.selectionStartLength=A.getRangeLength(de,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var oe=this._getMouseBufferCoords(ae);return!!oe&&(this._selectWordAt(oe,ie),this._model.selectionEnd=void 0,!0)},Q.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},Q.prototype.selectLines=function(ae,ie){this._model.clearSelection(),ae=Math.max(ae,0),ie=Math.min(ie,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,ae],this._model.selectionEnd=[this._bufferService.cols,ie],this.refresh(),this._onSelectionChange.fire()},Q.prototype._onTrim=function(ae){this._model.onTrim(ae)&&this.refresh()},Q.prototype._getMouseBufferCoords=function(ae){var ie=this._mouseService.getCoords(ae,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(ie)return ie[0]--,ie[1]--,ie[1]+=this._bufferService.buffer.ydisp,ie},Q.prototype._getMouseEventScrollAmount=function(ae){var ie=E.getCoordsRelativeToElement(ae,this._screenElement)[1],se=this._renderService.dimensions.canvasHeight;return ie>=0&&ie<=se?0:(ie>se&&(ie-=se),ie=Math.min(Math.max(ie,-50),50),(ie/=50)/Math.abs(ie)+Math.round(14*ie))},Q.prototype.shouldForceSelection=function(ae){return O.isMac?ae.altKey&&this._optionsService.options.macOptionClickForcesSelection:ae.shiftKey},Q.prototype.onMouseDown=function(ae){if(this._mouseDownTimeStamp=ae.timeStamp,(2!==ae.button||!this.hasSelection)&&0===ae.button){if(!this._enabled){if(!this.shouldForceSelection(ae))return;ae.stopPropagation()}ae.preventDefault(),this._dragScrollAmount=0,this._enabled&&ae.shiftKey?this._onIncrementalClick(ae):1===ae.detail?this._onSingleClick(ae):2===ae.detail?this._onDoubleClick(ae):3===ae.detail&&this._onTripleClick(ae),this._addMouseDownListeners(),this.refresh(!0)}},Q.prototype._addMouseDownListeners=function(){var ae=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return ae._dragScroll()},50)},Q.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},Q.prototype._onIncrementalClick=function(ae){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(ae))},Q.prototype._onSingleClick=function(ae){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(ae)?3:0,this._model.selectionStart=this._getMouseBufferCoords(ae),this._model.selectionStart){this._model.selectionEnd=void 0;var ie=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);ie&&ie.length!==this._model.selectionStart[0]&&0===ie.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},Q.prototype._onDoubleClick=function(ae){this._selectWordAtCursor(ae,!0)&&(this._activeSelectionMode=1)},Q.prototype._onTripleClick=function(ae){var ie=this._getMouseBufferCoords(ae);ie&&(this._activeSelectionMode=2,this._selectLineAt(ie[1]))},Q.prototype.shouldColumnSelect=function(ae){return ae.altKey&&!(O.isMac&&this._optionsService.options.macOptionClickForcesSelection)},Q.prototype._onMouseMove=function(ae){if(ae.stopImmediatePropagation(),this._model.selectionStart){var ie=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(ae),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(ae),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var se=this._bufferService.buffer;if(this._model.selectionEnd[1]<se.lines.length){var ue=se.lines.get(this._model.selectionEnd[1]);ue&&0===ue.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}ie&&ie[0]===this._model.selectionEnd[0]&&ie[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},Q.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var ae=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(ae.ydisp+this._bufferService.rows,ae.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=ae.ydisp),this.refresh()}},Q.prototype._onMouseUp=function(ae){var ie=ae.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&ie<500&&ae.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var se=this._mouseService.getCoords(ae,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(se&&void 0!==se[0]&&void 0!==se[1]){var ue=x.moveToCellSequence(se[0]-1,se[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(ue,!0)}}}else this._fireEventIfSelectionChanged()},Q.prototype._fireEventIfSelectionChanged=function(){var ae=this._model.finalSelectionStart,ie=this._model.finalSelectionEnd,se=!(!ae||!ie||ae[0]===ie[0]&&ae[1]===ie[1]);se?ae&&ie&&(this._oldSelectionStart&&this._oldSelectionEnd&&ae[0]===this._oldSelectionStart[0]&&ae[1]===this._oldSelectionStart[1]&&ie[0]===this._oldSelectionEnd[0]&&ie[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(ae,ie,se)):this._oldHasSelection&&this._fireOnSelectionChange(ae,ie,se)},Q.prototype._fireOnSelectionChange=function(ae,ie,se){this._oldSelectionStart=ae,this._oldSelectionEnd=ie,this._oldHasSelection=se,this._onSelectionChange.fire()},Q.prototype._onBufferActivate=function(ae){var ie=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=ae.activeBuffer.lines.onTrim(function(se){return ie._onTrim(se)})},Q.prototype._convertViewportColToCharacterIndex=function(ae,ie){for(var se=ie[0],ue=0;ie[0]>=ue;ue++){var de=ae.loadCell(ue,this._workCell).getChars().length;0===this._workCell.getWidth()?se--:de>1&&ie[0]!==ue&&(se+=de-1)}return se},Q.prototype.setSelection=function(ae,ie,se){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[ae,ie],this._model.selectionStartLength=se,this.refresh()},Q.prototype.rightClickSelect=function(ae){this._isClickInSelection(ae)||(this._selectWordAtCursor(ae,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},Q.prototype._getWordAt=function(ae,ie,se,ue){if(void 0===se&&(se=!0),void 0===ue&&(ue=!0),!(ae[0]>=this._bufferService.cols)){var de=this._bufferService.buffer,oe=de.lines.get(ae[1]);if(oe){var $=de.translateBufferLineToString(ae[1],!1),ye=this._convertViewportColToCharacterIndex(oe,ae),ve=ye,et=ae[0]-ye,Ne=0,gt=0,_t=0,Rt=0;if(" "===$.charAt(ye)){for(;ye>0&&" "===$.charAt(ye-1);)ye--;for(;ve<$.length&&" "===$.charAt(ve+1);)ve++}else{var Se=ae[0],Oe=ae[0];0===oe.getWidth(Se)&&(Ne++,Se--),2===oe.getWidth(Oe)&&(gt++,Oe++);var je=oe.getString(Oe).length;for(je>1&&(Rt+=je-1,ve+=je-1);Se>0&&ye>0&&!this._isCharWordSeparator(oe.loadCell(Se-1,this._workCell));){oe.loadCell(Se-1,this._workCell);var ct=this._workCell.getChars().length;0===this._workCell.getWidth()?(Ne++,Se--):ct>1&&(_t+=ct-1,ye-=ct-1),ye--,Se--}for(;Oe<oe.length&&ve+1<$.length&&!this._isCharWordSeparator(oe.loadCell(Oe+1,this._workCell));){oe.loadCell(Oe+1,this._workCell);var Xe=this._workCell.getChars().length;2===this._workCell.getWidth()?(gt++,Oe++):Xe>1&&(Rt+=Xe-1,ve+=Xe-1),ve++,Oe++}}ve++;var Ht=ye+et-Ne+_t,Et=Math.min(this._bufferService.cols,ve-ye+Ne+gt-_t-Rt);if(ie||""!==$.slice(ye,ve).trim()){if(se&&0===Ht&&32!==oe.getCodePoint(0)){var vt=de.lines.get(ae[1]-1);if(vt&&oe.isWrapped&&32!==vt.getCodePoint(this._bufferService.cols-1)){var Xt=this._getWordAt([this._bufferService.cols-1,ae[1]-1],!1,!0,!1);if(Xt){var qt=this._bufferService.cols-Xt.start;Ht-=qt,Et+=qt}}}if(ue&&Ht+Et===this._bufferService.cols&&32!==oe.getCodePoint(this._bufferService.cols-1)){var Ct=de.lines.get(ae[1]+1);if(Ct&&Ct.isWrapped&&32!==Ct.getCodePoint(0)){var jt=this._getWordAt([0,ae[1]+1],!1,!1,!0);jt&&(Et+=jt.length)}}return{start:Ht,length:Et}}}}},Q.prototype._selectWordAt=function(ae,ie){var se=this._getWordAt(ae,ie);if(se){for(;se.start<0;)se.start+=this._bufferService.cols,ae[1]--;this._model.selectionStart=[se.start,ae[1]],this._model.selectionStartLength=se.length}},Q.prototype._selectToWordAt=function(ae){var ie=this._getWordAt(ae,!0);if(ie){for(var se=ae[1];ie.start<0;)ie.start+=this._bufferService.cols,se--;if(!this._model.areSelectionValuesReversed())for(;ie.start+ie.length>this._bufferService.cols;)ie.length-=this._bufferService.cols,se++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?ie.start:ie.start+ie.length,se]}},Q.prototype._isCharWordSeparator=function(ae){return 0!==ae.getWidth()&&this._optionsService.options.wordSeparator.indexOf(ae.getChars())>=0},Q.prototype._selectLineAt=function(ae){var ie=this._bufferService.buffer.getWrappedRangeForLine(ae);this._model.selectionStart=[0,ie.first],this._model.selectionEnd=[this._bufferService.cols,ie.last],this._model.selectionStartLength=0},N([D(3,M.IBufferService),D(4,M.ICoreService),D(5,T.IMouseService),D(6,M.IOptionsService),D(7,T.IRenderService)],Q)}(S.Disposable);w.SelectionService=K},4725:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.ICharacterJoinerService=w.ISoundService=w.ISelectionService=w.IRenderService=w.IMouseService=w.ICoreBrowserService=w.ICharSizeService=void 0;var C=R(8343);w.ICharSizeService=C.createDecorator("CharSizeService"),w.ICoreBrowserService=C.createDecorator("CoreBrowserService"),w.IMouseService=C.createDecorator("MouseService"),w.IRenderService=C.createDecorator("RenderService"),w.ISelectionService=C.createDecorator("SelectionService"),w.ISoundService=C.createDecorator("SoundService"),w.ICharacterJoinerService=C.createDecorator("CharacterJoinerService")},357:function(Z,w,R){var C=this&&this.__decorate||function(O,P,y,g){var T,M=arguments.length,E=M<3?P:null===g?g=Object.getOwnPropertyDescriptor(P,y):g;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(O,P,y,g);else for(var x=O.length-1;x>=0;x--)(T=O[x])&&(E=(M<3?T(E):M>3?T(P,y,E):T(P,y))||E);return M>3&&E&&Object.defineProperty(P,y,E),E},_=this&&this.__param||function(O,P){return function(y,g){P(y,g,O)}};Object.defineProperty(w,"__esModule",{value:!0}),w.SoundService=void 0;var N=R(2585),D=function(){function O(P){this._optionsService=P}return Object.defineProperty(O,"audioContext",{get:function(){if(!O._audioContext){var y=window.AudioContext||window.webkitAudioContext;if(!y)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;O._audioContext=new y}return O._audioContext},enumerable:!1,configurable:!0}),O.prototype.playBellSound=function(){var P=O.audioContext;if(P){var y=P.createBufferSource();P.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(g){y.buffer=g,y.connect(P.destination),y.start(0)})}},O.prototype._base64ToArrayBuffer=function(P){for(var y=window.atob(P),g=y.length,T=new Uint8Array(g),M=0;M<g;M++)T[M]=y.charCodeAt(M);return T.buffer},O.prototype._removeMimeType=function(P){return P.split(",")[1]},O=C([_(0,N.IOptionsService)],O)}();w.SoundService=D},6349:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.CircularList=void 0;var C=R(8460),_=function(){function N(D){this._maxLength=D,this.onDeleteEmitter=new C.EventEmitter,this.onInsertEmitter=new C.EventEmitter,this.onTrimEmitter=new C.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(N.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"maxLength",{get:function(){return this._maxLength},set:function(O){if(this._maxLength!==O){for(var P=new Array(O),y=0;y<Math.min(O,this.length);y++)P[y]=this._array[this._getCyclicIndex(y)];this._array=P,this._maxLength=O,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"length",{get:function(){return this._length},set:function(O){if(O>this._length)for(var P=this._length;P<O;P++)this._array[P]=void 0;this._length=O},enumerable:!1,configurable:!0}),N.prototype.get=function(D){return this._array[this._getCyclicIndex(D)]},N.prototype.set=function(D,O){this._array[this._getCyclicIndex(D)]=O},N.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++},N.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(N.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),N.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},N.prototype.splice=function(D,O){for(var P=[],y=2;y<arguments.length;y++)P[y-2]=arguments[y];if(O){for(var g=D;g<this._length-O;g++)this._array[this._getCyclicIndex(g)]=this._array[this._getCyclicIndex(g+O)];this._length-=O,this.onDeleteEmitter.fire({index:D,amount:O})}for(g=this._length-1;g>=D;g--)this._array[this._getCyclicIndex(g+P.length)]=this._array[this._getCyclicIndex(g)];for(g=0;g<P.length;g++)this._array[this._getCyclicIndex(D+g)]=P[g];if(P.length&&this.onInsertEmitter.fire({index:D,amount:P.length}),this._length+P.length>this._maxLength){var T=this._length+P.length-this._maxLength;this._startIndex+=T,this._length=this._maxLength,this.onTrimEmitter.fire(T)}else this._length+=P.length},N.prototype.trimStart=function(D){D>this._length&&(D=this._length),this._startIndex+=D,this._length-=D,this.onTrimEmitter.fire(D)},N.prototype.shiftElements=function(D,O,P){if(!(O<=0)){if(D<0||D>=this._length)throw new Error("start argument out of range");if(D+P<0)throw new Error("Cannot shift elements in list beyond index 0");if(P>0){for(var y=O-1;y>=0;y--)this.set(D+y+P,this.get(D+y));var g=D+O+P-this._length;if(g>0)for(this._length+=g;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(y=0;y<O;y++)this.set(D+y+P,this.get(D+y))}},N.prototype._getCyclicIndex=function(D){return(this._startIndex+D)%this._maxLength},N}();w.CircularList=_},1439:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.clone=void 0,w.clone=function R(C,_){if(void 0===_&&(_=5),"object"!=typeof C)return C;var N=Array.isArray(C)?[]:{};for(var D in C)N[D]=_<=1?C[D]:C[D]&&R(C[D],_-1);return N}},8969:function(Z,w,R){var C,_=this&&this.__extends||(C=function(ie,se){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,de){ue.__proto__=de}||function(ue,de){for(var oe in de)Object.prototype.hasOwnProperty.call(de,oe)&&(ue[oe]=de[oe])})(ie,se)},function(ae,ie){if("function"!=typeof ie&&null!==ie)throw new TypeError("Class extends value "+String(ie)+" is not a constructor or null");function se(){this.constructor=ae}C(ae,ie),ae.prototype=null===ie?Object.create(ie):(se.prototype=ie.prototype,new se)});Object.defineProperty(w,"__esModule",{value:!0}),w.CoreTerminal=void 0;var N=R(844),D=R(2585),O=R(4348),P=R(7866),y=R(744),g=R(7302),T=R(6975),M=R(8460),E=R(1753),x=R(3730),S=R(1480),A=R(7994),L=R(9282),j=R(5435),K=R(5981),z=!1,Q=function(ae){function ie(se){var ue=ae.call(this)||this;return ue._onBinary=new M.EventEmitter,ue._onData=new M.EventEmitter,ue._onLineFeed=new M.EventEmitter,ue._onResize=new M.EventEmitter,ue._onScroll=new M.EventEmitter,ue._instantiationService=new O.InstantiationService,ue.optionsService=new g.OptionsService(se),ue._instantiationService.setService(D.IOptionsService,ue.optionsService),ue._bufferService=ue.register(ue._instantiationService.createInstance(y.BufferService)),ue._instantiationService.setService(D.IBufferService,ue._bufferService),ue._logService=ue._instantiationService.createInstance(P.LogService),ue._instantiationService.setService(D.ILogService,ue._logService),ue._coreService=ue.register(ue._instantiationService.createInstance(T.CoreService,function(){return ue.scrollToBottom()})),ue._instantiationService.setService(D.ICoreService,ue._coreService),ue._coreMouseService=ue._instantiationService.createInstance(E.CoreMouseService),ue._instantiationService.setService(D.ICoreMouseService,ue._coreMouseService),ue._dirtyRowService=ue._instantiationService.createInstance(x.DirtyRowService),ue._instantiationService.setService(D.IDirtyRowService,ue._dirtyRowService),ue.unicodeService=ue._instantiationService.createInstance(S.UnicodeService),ue._instantiationService.setService(D.IUnicodeService,ue.unicodeService),ue._charsetService=ue._instantiationService.createInstance(A.CharsetService),ue._instantiationService.setService(D.ICharsetService,ue._charsetService),ue._inputHandler=new j.InputHandler(ue._bufferService,ue._charsetService,ue._coreService,ue._dirtyRowService,ue._logService,ue.optionsService,ue._coreMouseService,ue.unicodeService),ue.register(M.forwardEvent(ue._inputHandler.onLineFeed,ue._onLineFeed)),ue.register(ue._inputHandler),ue.register(M.forwardEvent(ue._bufferService.onResize,ue._onResize)),ue.register(M.forwardEvent(ue._coreService.onData,ue._onData)),ue.register(M.forwardEvent(ue._coreService.onBinary,ue._onBinary)),ue.register(ue.optionsService.onOptionChange(function(de){return ue._updateOptions(de)})),ue.register(ue._bufferService.onScroll(function(de){ue._onScroll.fire({position:ue._bufferService.buffer.ydisp,source:0}),ue._dirtyRowService.markRangeDirty(ue._bufferService.buffer.scrollTop,ue._bufferService.buffer.scrollBottom)})),ue._writeBuffer=new K.WriteBuffer(function(de,oe){return ue._inputHandler.parse(de,oe)}),ue}return _(ie,ae),Object.defineProperty(ie.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onScroll",{get:function(){var ue=this;return this._onScrollApi||(this._onScrollApi=new M.EventEmitter,this.register(this._onScroll.event(function(de){var oe;null===(oe=ue._onScrollApi)||void 0===oe||oe.fire(de.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),ie.prototype.dispose=function(){var se;this._isDisposed||(ae.prototype.dispose.call(this),null===(se=this._windowsMode)||void 0===se||se.dispose(),this._windowsMode=void 0)},ie.prototype.write=function(se,ue){this._writeBuffer.write(se,ue)},ie.prototype.writeSync=function(se,ue){this._logService.logLevel<=D.LogLevelEnum.WARN&&!z&&(this._logService.warn("writeSync is unreliable and will be removed soon."),z=!0),this._writeBuffer.writeSync(se,ue)},ie.prototype.resize=function(se,ue){isNaN(se)||isNaN(ue)||(se=Math.max(se,y.MINIMUM_COLS),ue=Math.max(ue,y.MINIMUM_ROWS),this._bufferService.resize(se,ue))},ie.prototype.scroll=function(se,ue){void 0===ue&&(ue=!1),this._bufferService.scroll(se,ue)},ie.prototype.scrollLines=function(se,ue,de){this._bufferService.scrollLines(se,ue,de)},ie.prototype.scrollPages=function(se){this._bufferService.scrollPages(se)},ie.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},ie.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},ie.prototype.scrollToLine=function(se){this._bufferService.scrollToLine(se)},ie.prototype.registerEscHandler=function(se,ue){return this._inputHandler.registerEscHandler(se,ue)},ie.prototype.registerDcsHandler=function(se,ue){return this._inputHandler.registerDcsHandler(se,ue)},ie.prototype.registerCsiHandler=function(se,ue){return this._inputHandler.registerCsiHandler(se,ue)},ie.prototype.registerOscHandler=function(se,ue){return this._inputHandler.registerOscHandler(se,ue)},ie.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},ie.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},ie.prototype._updateOptions=function(se){var ue;switch(se){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():(null===(ue=this._windowsMode)||void 0===ue||ue.dispose(),this._windowsMode=void 0)}},ie.prototype._enableWindowsMode=function(){var se=this;if(!this._windowsMode){var ue=[];ue.push(this.onLineFeed(L.updateWindowsModeWrappedState.bind(null,this._bufferService))),ue.push(this.registerCsiHandler({final:"H"},function(){return L.updateWindowsModeWrappedState(se._bufferService),!1})),this._windowsMode={dispose:function(){for(var oe=0,$=ue;oe<$.length;oe++)$[oe].dispose()}}}},ie}(N.Disposable);w.CoreTerminal=Q},8460:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.forwardEvent=w.EventEmitter=void 0;var R=function(){function C(){this._listeners=[],this._disposed=!1}return Object.defineProperty(C.prototype,"event",{get:function(){var N=this;return this._event||(this._event=function(D){return N._listeners.push(D),{dispose:function(){if(!N._disposed)for(var P=0;P<N._listeners.length;P++)if(N._listeners[P]===D)return void N._listeners.splice(P,1)}}}),this._event},enumerable:!1,configurable:!0}),C.prototype.fire=function(_,N){for(var D=[],O=0;O<this._listeners.length;O++)D.push(this._listeners[O]);for(O=0;O<D.length;O++)D[O].call(void 0,_,N)},C.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},C}();w.EventEmitter=R,w.forwardEvent=function(C,_){return C(function(N){return _.fire(N)})}},5435:function(Z,w,R){var C,_=this&&this.__extends||(C=function(de,oe){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ye){$.__proto__=ye}||function($,ye){for(var ve in ye)Object.prototype.hasOwnProperty.call(ye,ve)&&($[ve]=ye[ve])})(de,oe)},function(ue,de){if("function"!=typeof de&&null!==de)throw new TypeError("Class extends value "+String(de)+" is not a constructor or null");function oe(){this.constructor=ue}C(ue,de),ue.prototype=null===de?Object.create(de):(oe.prototype=de.prototype,new oe)});Object.defineProperty(w,"__esModule",{value:!0}),w.InputHandler=w.WindowsOptionsReportType=void 0;var N,ue,D=R(2584),O=R(7116),P=R(2015),y=R(844),g=R(8273),T=R(482),M=R(8437),E=R(8460),x=R(643),S=R(511),A=R(3734),L=R(2585),j=R(6242),K=R(6351),z={"(":0,")":1,"*":2,"+":3,"-":1,".":2},Q=131072;function ae(ue,de){if(ue>24)return de.setWinLines||!1;switch(ue){case 1:return!!de.restoreWin;case 2:return!!de.minimizeWin;case 3:return!!de.setWinPosition;case 4:return!!de.setWinSizePixels;case 5:return!!de.raiseWin;case 6:return!!de.lowerWin;case 7:return!!de.refreshWin;case 8:return!!de.setWinSizeChars;case 9:return!!de.maximizeWin;case 10:return!!de.fullscreenWin;case 11:return!!de.getWinState;case 13:return!!de.getWinPosition;case 14:return!!de.getWinSizePixels;case 15:return!!de.getScreenSizePixels;case 16:return!!de.getCellSizePixels;case 18:return!!de.getWinSizeChars;case 19:return!!de.getScreenSizeChars;case 20:return!!de.getIconTitle;case 21:return!!de.getWinTitle;case 22:return!!de.pushTitle;case 23:return!!de.popTitle;case 24:return!!de.setWinLines}return!1}(ue=N=w.WindowsOptionsReportType||(w.WindowsOptionsReportType={}))[ue.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",ue[ue.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";var ie=function(){function ue(de,oe,$,ye){this._bufferService=de,this._coreService=oe,this._logService=$,this._optionsService=ye,this._data=new Uint32Array(0)}return ue.prototype.hook=function(de){this._data=new Uint32Array(0)},ue.prototype.put=function(de,oe,$){this._data=g.concat(this._data,de.subarray(oe,$))},ue.prototype.unhook=function(de){if(!de)return this._data=new Uint32Array(0),!0;var oe=T.utf32ToString(this._data);switch(this._data=new Uint32Array(0),oe){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 ye={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];this._coreService.triggerDataEvent(D.C0.ESC+"P1$r"+(ye-=this._optionsService.options.cursorBlink?1:0)+" q"+D.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",oe),this._coreService.triggerDataEvent(D.C0.ESC+"P0$r"+D.C0.ESC+"\\")}return!0},ue}(),se=function(ue){function de(oe,$,ye,ve,et,Ne,gt,_t,Rt){void 0===Rt&&(Rt=new P.EscapeSequenceParser);var Se=ue.call(this)||this;Se._bufferService=oe,Se._charsetService=$,Se._coreService=ye,Se._dirtyRowService=ve,Se._logService=et,Se._optionsService=Ne,Se._coreMouseService=gt,Se._unicodeService=_t,Se._parser=Rt,Se._parseBuffer=new Uint32Array(4096),Se._stringDecoder=new T.StringToUtf32,Se._utf8Decoder=new T.Utf8ToUtf32,Se._workCell=new S.CellData,Se._windowTitle="",Se._iconName="",Se._windowTitleStack=[],Se._iconNameStack=[],Se._curAttrData=M.DEFAULT_ATTR_DATA.clone(),Se._eraseAttrDataInternal=M.DEFAULT_ATTR_DATA.clone(),Se._onRequestBell=new E.EventEmitter,Se._onRequestRefreshRows=new E.EventEmitter,Se._onRequestReset=new E.EventEmitter,Se._onRequestSyncScrollBar=new E.EventEmitter,Se._onRequestWindowsOptionsReport=new E.EventEmitter,Se._onA11yChar=new E.EventEmitter,Se._onA11yTab=new E.EventEmitter,Se._onCursorMove=new E.EventEmitter,Se._onLineFeed=new E.EventEmitter,Se._onScroll=new E.EventEmitter,Se._onTitleChange=new E.EventEmitter,Se._onAnsiColorChange=new E.EventEmitter,Se._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},Se.register(Se._parser),Se._parser.setCsiHandlerFallback(function(Xe,Ht){Se._logService.debug("Unknown CSI code: ",{identifier:Se._parser.identToString(Xe),params:Ht.toArray()})}),Se._parser.setEscHandlerFallback(function(Xe){Se._logService.debug("Unknown ESC code: ",{identifier:Se._parser.identToString(Xe)})}),Se._parser.setExecuteHandlerFallback(function(Xe){Se._logService.debug("Unknown EXECUTE code: ",{code:Xe})}),Se._parser.setOscHandlerFallback(function(Xe,Ht,Et){Se._logService.debug("Unknown OSC code: ",{identifier:Xe,action:Ht,data:Et})}),Se._parser.setDcsHandlerFallback(function(Xe,Ht,Et){"HOOK"===Ht&&(Et=Et.toArray()),Se._logService.debug("Unknown DCS code: ",{identifier:Se._parser.identToString(Xe),action:Ht,payload:Et})}),Se._parser.setPrintHandler(function(Xe,Ht,Et){return Se.print(Xe,Ht,Et)}),Se._parser.registerCsiHandler({final:"@"},function(Xe){return Se.insertChars(Xe)}),Se._parser.registerCsiHandler({intermediates:" ",final:"@"},function(Xe){return Se.scrollLeft(Xe)}),Se._parser.registerCsiHandler({final:"A"},function(Xe){return Se.cursorUp(Xe)}),Se._parser.registerCsiHandler({intermediates:" ",final:"A"},function(Xe){return Se.scrollRight(Xe)}),Se._parser.registerCsiHandler({final:"B"},function(Xe){return Se.cursorDown(Xe)}),Se._parser.registerCsiHandler({final:"C"},function(Xe){return Se.cursorForward(Xe)}),Se._parser.registerCsiHandler({final:"D"},function(Xe){return Se.cursorBackward(Xe)}),Se._parser.registerCsiHandler({final:"E"},function(Xe){return Se.cursorNextLine(Xe)}),Se._parser.registerCsiHandler({final:"F"},function(Xe){return Se.cursorPrecedingLine(Xe)}),Se._parser.registerCsiHandler({final:"G"},function(Xe){return Se.cursorCharAbsolute(Xe)}),Se._parser.registerCsiHandler({final:"H"},function(Xe){return Se.cursorPosition(Xe)}),Se._parser.registerCsiHandler({final:"I"},function(Xe){return Se.cursorForwardTab(Xe)}),Se._parser.registerCsiHandler({final:"J"},function(Xe){return Se.eraseInDisplay(Xe)}),Se._parser.registerCsiHandler({prefix:"?",final:"J"},function(Xe){return Se.eraseInDisplay(Xe)}),Se._parser.registerCsiHandler({final:"K"},function(Xe){return Se.eraseInLine(Xe)}),Se._parser.registerCsiHandler({prefix:"?",final:"K"},function(Xe){return Se.eraseInLine(Xe)}),Se._parser.registerCsiHandler({final:"L"},function(Xe){return Se.insertLines(Xe)}),Se._parser.registerCsiHandler({final:"M"},function(Xe){return Se.deleteLines(Xe)}),Se._parser.registerCsiHandler({final:"P"},function(Xe){return Se.deleteChars(Xe)}),Se._parser.registerCsiHandler({final:"S"},function(Xe){return Se.scrollUp(Xe)}),Se._parser.registerCsiHandler({final:"T"},function(Xe){return Se.scrollDown(Xe)}),Se._parser.registerCsiHandler({final:"X"},function(Xe){return Se.eraseChars(Xe)}),Se._parser.registerCsiHandler({final:"Z"},function(Xe){return Se.cursorBackwardTab(Xe)}),Se._parser.registerCsiHandler({final:"`"},function(Xe){return Se.charPosAbsolute(Xe)}),Se._parser.registerCsiHandler({final:"a"},function(Xe){return Se.hPositionRelative(Xe)}),Se._parser.registerCsiHandler({final:"b"},function(Xe){return Se.repeatPrecedingCharacter(Xe)}),Se._parser.registerCsiHandler({final:"c"},function(Xe){return Se.sendDeviceAttributesPrimary(Xe)}),Se._parser.registerCsiHandler({prefix:">",final:"c"},function(Xe){return Se.sendDeviceAttributesSecondary(Xe)}),Se._parser.registerCsiHandler({final:"d"},function(Xe){return Se.linePosAbsolute(Xe)}),Se._parser.registerCsiHandler({final:"e"},function(Xe){return Se.vPositionRelative(Xe)}),Se._parser.registerCsiHandler({final:"f"},function(Xe){return Se.hVPosition(Xe)}),Se._parser.registerCsiHandler({final:"g"},function(Xe){return Se.tabClear(Xe)}),Se._parser.registerCsiHandler({final:"h"},function(Xe){return Se.setMode(Xe)}),Se._parser.registerCsiHandler({prefix:"?",final:"h"},function(Xe){return Se.setModePrivate(Xe)}),Se._parser.registerCsiHandler({final:"l"},function(Xe){return Se.resetMode(Xe)}),Se._parser.registerCsiHandler({prefix:"?",final:"l"},function(Xe){return Se.resetModePrivate(Xe)}),Se._parser.registerCsiHandler({final:"m"},function(Xe){return Se.charAttributes(Xe)}),Se._parser.registerCsiHandler({final:"n"},function(Xe){return Se.deviceStatus(Xe)}),Se._parser.registerCsiHandler({prefix:"?",final:"n"},function(Xe){return Se.deviceStatusPrivate(Xe)}),Se._parser.registerCsiHandler({intermediates:"!",final:"p"},function(Xe){return Se.softReset(Xe)}),Se._parser.registerCsiHandler({intermediates:" ",final:"q"},function(Xe){return Se.setCursorStyle(Xe)}),Se._parser.registerCsiHandler({final:"r"},function(Xe){return Se.setScrollRegion(Xe)}),Se._parser.registerCsiHandler({final:"s"},function(Xe){return Se.saveCursor(Xe)}),Se._parser.registerCsiHandler({final:"t"},function(Xe){return Se.windowOptions(Xe)}),Se._parser.registerCsiHandler({final:"u"},function(Xe){return Se.restoreCursor(Xe)}),Se._parser.registerCsiHandler({intermediates:"'",final:"}"},function(Xe){return Se.insertColumns(Xe)}),Se._parser.registerCsiHandler({intermediates:"'",final:"~"},function(Xe){return Se.deleteColumns(Xe)}),Se._parser.setExecuteHandler(D.C0.BEL,function(){return Se.bell()}),Se._parser.setExecuteHandler(D.C0.LF,function(){return Se.lineFeed()}),Se._parser.setExecuteHandler(D.C0.VT,function(){return Se.lineFeed()}),Se._parser.setExecuteHandler(D.C0.FF,function(){return Se.lineFeed()}),Se._parser.setExecuteHandler(D.C0.CR,function(){return Se.carriageReturn()}),Se._parser.setExecuteHandler(D.C0.BS,function(){return Se.backspace()}),Se._parser.setExecuteHandler(D.C0.HT,function(){return Se.tab()}),Se._parser.setExecuteHandler(D.C0.SO,function(){return Se.shiftOut()}),Se._parser.setExecuteHandler(D.C0.SI,function(){return Se.shiftIn()}),Se._parser.setExecuteHandler(D.C1.IND,function(){return Se.index()}),Se._parser.setExecuteHandler(D.C1.NEL,function(){return Se.nextLine()}),Se._parser.setExecuteHandler(D.C1.HTS,function(){return Se.tabSet()}),Se._parser.registerOscHandler(0,new j.OscHandler(function(Xe){return Se.setTitle(Xe),Se.setIconName(Xe),!0})),Se._parser.registerOscHandler(1,new j.OscHandler(function(Xe){return Se.setIconName(Xe)})),Se._parser.registerOscHandler(2,new j.OscHandler(function(Xe){return Se.setTitle(Xe)})),Se._parser.registerOscHandler(4,new j.OscHandler(function(Xe){return Se.setAnsiColor(Xe)})),Se._parser.registerEscHandler({final:"7"},function(){return Se.saveCursor()}),Se._parser.registerEscHandler({final:"8"},function(){return Se.restoreCursor()}),Se._parser.registerEscHandler({final:"D"},function(){return Se.index()}),Se._parser.registerEscHandler({final:"E"},function(){return Se.nextLine()}),Se._parser.registerEscHandler({final:"H"},function(){return Se.tabSet()}),Se._parser.registerEscHandler({final:"M"},function(){return Se.reverseIndex()}),Se._parser.registerEscHandler({final:"="},function(){return Se.keypadApplicationMode()}),Se._parser.registerEscHandler({final:">"},function(){return Se.keypadNumericMode()}),Se._parser.registerEscHandler({final:"c"},function(){return Se.fullReset()}),Se._parser.registerEscHandler({final:"n"},function(){return Se.setgLevel(2)}),Se._parser.registerEscHandler({final:"o"},function(){return Se.setgLevel(3)}),Se._parser.registerEscHandler({final:"|"},function(){return Se.setgLevel(3)}),Se._parser.registerEscHandler({final:"}"},function(){return Se.setgLevel(2)}),Se._parser.registerEscHandler({final:"~"},function(){return Se.setgLevel(1)}),Se._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return Se.selectDefaultCharset()}),Se._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return Se.selectDefaultCharset()});var Oe=function(Ht){je._parser.registerEscHandler({intermediates:"(",final:Ht},function(){return Se.selectCharset("("+Ht)}),je._parser.registerEscHandler({intermediates:")",final:Ht},function(){return Se.selectCharset(")"+Ht)}),je._parser.registerEscHandler({intermediates:"*",final:Ht},function(){return Se.selectCharset("*"+Ht)}),je._parser.registerEscHandler({intermediates:"+",final:Ht},function(){return Se.selectCharset("+"+Ht)}),je._parser.registerEscHandler({intermediates:"-",final:Ht},function(){return Se.selectCharset("-"+Ht)}),je._parser.registerEscHandler({intermediates:".",final:Ht},function(){return Se.selectCharset("."+Ht)}),je._parser.registerEscHandler({intermediates:"/",final:Ht},function(){return Se.selectCharset("/"+Ht)})},je=this;for(var ct in O.CHARSETS)Oe(ct);return Se._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return Se.screenAlignmentPattern()}),Se._parser.setErrorHandler(function(Xe){return Se._logService.error("Parsing error: ",Xe),Xe}),Se._parser.registerDcsHandler({intermediates:"$",final:"q"},new ie(Se._bufferService,Se._coreService,Se._logService,Se._optionsService)),Se}return _(de,ue),Object.defineProperty(de.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onAnsiColorChange",{get:function(){return this._onAnsiColorChange.event},enumerable:!1,configurable:!0}),de.prototype.dispose=function(){ue.prototype.dispose.call(this)},de.prototype._preserveStack=function(oe,$,ye,ve){this._parseStack.paused=!0,this._parseStack.cursorStartX=oe,this._parseStack.cursorStartY=$,this._parseStack.decodedLength=ye,this._parseStack.position=ve},de.prototype._logSlowResolvingAsync=function(oe){this._logService.logLevel<=L.LogLevelEnum.WARN&&Promise.race([oe,new Promise(function($,ye){return setTimeout(function(){return ye("#SLOW_TIMEOUT")},5e3)})]).catch(function($){if("#SLOW_TIMEOUT"!==$)throw $;console.warn("async parser handler taking longer than 5000 ms")})},de.prototype.parse=function(oe,$){var ye,ve=this._bufferService.buffer,et=ve.x,Ne=ve.y,gt=0,_t=this._parseStack.paused;if(_t){if(ye=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,$))return this._logSlowResolvingAsync(ye),ye;et=this._parseStack.cursorStartX,Ne=this._parseStack.cursorStartY,this._parseStack.paused=!1,oe.length>Q&&(gt=this._parseStack.position+Q)}if(this._logService.debug("parsing data",oe),this._parseBuffer.length<oe.length&&this._parseBuffer.length<Q&&(this._parseBuffer=new Uint32Array(Math.min(oe.length,Q))),_t||this._dirtyRowService.clearRange(),oe.length>Q)for(var Rt=gt;Rt<oe.length;Rt+=Q){var Se=Rt+Q<oe.length?Rt+Q:oe.length,Oe="string"==typeof oe?this._stringDecoder.decode(oe.substring(Rt,Se),this._parseBuffer):this._utf8Decoder.decode(oe.subarray(Rt,Se),this._parseBuffer);if(ye=this._parser.parse(this._parseBuffer,Oe))return this._preserveStack(et,Ne,Oe,Rt),this._logSlowResolvingAsync(ye),ye}else if(!_t&&(Oe="string"==typeof oe?this._stringDecoder.decode(oe,this._parseBuffer):this._utf8Decoder.decode(oe,this._parseBuffer),ye=this._parser.parse(this._parseBuffer,Oe)))return this._preserveStack(et,Ne,Oe,0),this._logSlowResolvingAsync(ye),ye;(ve=this._bufferService.buffer).x===et&&ve.y===Ne||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},de.prototype.print=function(oe,$,ye){var ve,et,Ne=this._bufferService.buffer,gt=this._charsetService.charset,_t=this._optionsService.options.screenReaderMode,Rt=this._bufferService.cols,Se=this._coreService.decPrivateModes.wraparound,Oe=this._coreService.modes.insertMode,je=this._curAttrData,ct=Ne.lines.get(Ne.ybase+Ne.y);this._dirtyRowService.markDirty(Ne.y),Ne.x&&ye-$>0&&2===ct.getWidth(Ne.x-1)&&ct.setCellFromCodePoint(Ne.x-1,0,1,je.fg,je.bg,je.extended);for(var Xe=$;Xe<ye;++Xe){if(et=this._unicodeService.wcwidth(ve=oe[Xe]),ve<127&&gt){var Ht=gt[String.fromCharCode(ve)];Ht&&(ve=Ht.charCodeAt(0))}if(_t&&this._onA11yChar.fire(T.stringFromCodePoint(ve)),et||!Ne.x){if(Ne.x+et-1>=Rt)if(Se){for(;Ne.x<Rt;)ct.setCellFromCodePoint(Ne.x++,0,1,je.fg,je.bg,je.extended);Ne.x=0,Ne.y++,Ne.y===Ne.scrollBottom+1?(Ne.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(Ne.y>=this._bufferService.rows&&(Ne.y=this._bufferService.rows-1),Ne.lines.get(Ne.ybase+Ne.y).isWrapped=!0),ct=Ne.lines.get(Ne.ybase+Ne.y)}else if(Ne.x=Rt-1,2===et)continue;if(Oe&&(ct.insertCells(Ne.x,et,Ne.getNullCell(je),je),2===ct.getWidth(Rt-1)&&ct.setCellFromCodePoint(Rt-1,x.NULL_CELL_CODE,x.NULL_CELL_WIDTH,je.fg,je.bg,je.extended)),ct.setCellFromCodePoint(Ne.x++,ve,et,je.fg,je.bg,je.extended),et>0)for(;--et;)ct.setCellFromCodePoint(Ne.x++,0,0,je.fg,je.bg,je.extended)}else ct.getWidth(Ne.x-1)?ct.addCodepointToCell(Ne.x-1,ve):ct.addCodepointToCell(Ne.x-2,ve)}ye-$>0&&(ct.loadCell(Ne.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),Ne.x<Rt&&ye-$>0&&0===ct.getWidth(Ne.x)&&!ct.hasContent(Ne.x)&&ct.setCellFromCodePoint(Ne.x,0,1,je.fg,je.bg,je.extended),this._dirtyRowService.markDirty(Ne.y)},de.prototype.registerCsiHandler=function(oe,$){var ye=this;return this._parser.registerCsiHandler(oe,"t"!==oe.final||oe.prefix||oe.intermediates?$:function(ve){return!ae(ve.params[0],ye._optionsService.options.windowOptions)||$(ve)})},de.prototype.registerDcsHandler=function(oe,$){return this._parser.registerDcsHandler(oe,new K.DcsHandler($))},de.prototype.registerEscHandler=function(oe,$){return this._parser.registerEscHandler(oe,$)},de.prototype.registerOscHandler=function(oe,$){return this._parser.registerOscHandler(oe,new j.OscHandler($))},de.prototype.bell=function(){return this._onRequestBell.fire(),!0},de.prototype.lineFeed=function(){var oe=this._bufferService.buffer;return this._dirtyRowService.markDirty(oe.y),this._optionsService.options.convertEol&&(oe.x=0),oe.y++,oe.y===oe.scrollBottom+1?(oe.y--,this._bufferService.scroll(this._eraseAttrData())):oe.y>=this._bufferService.rows&&(oe.y=this._bufferService.rows-1),oe.x>=this._bufferService.cols&&oe.x--,this._dirtyRowService.markDirty(oe.y),this._onLineFeed.fire(),!0},de.prototype.carriageReturn=function(){return this._bufferService.buffer.x=0,!0},de.prototype.backspace=function(){var oe,$=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),$.x>0&&$.x--,!0;if(this._restrictCursor(this._bufferService.cols),$.x>0)$.x--;else if(0===$.x&&$.y>$.scrollTop&&$.y<=$.scrollBottom&&(null===(oe=$.lines.get($.ybase+$.y))||void 0===oe?void 0:oe.isWrapped)){$.lines.get($.ybase+$.y).isWrapped=!1,$.y--,$.x=this._bufferService.cols-1;var ye=$.lines.get($.ybase+$.y);ye.hasWidth($.x)&&!ye.hasContent($.x)&&$.x--}return this._restrictCursor(),!0},de.prototype.tab=function(){if(this._bufferService.buffer.x>=this._bufferService.cols)return!0;var oe=this._bufferService.buffer.x;return this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-oe),!0},de.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},de.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},de.prototype._restrictCursor=function(oe){void 0===oe&&(oe=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(oe,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},de.prototype._setCursor=function(oe,$){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=oe,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+$):(this._bufferService.buffer.x=oe,this._bufferService.buffer.y=$),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},de.prototype._moveCursor=function(oe,$){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+oe,this._bufferService.buffer.y+$)},de.prototype.cursorUp=function(oe){var $=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;return this._moveCursor(0,$>=0?-Math.min($,oe.params[0]||1):-(oe.params[0]||1)),!0},de.prototype.cursorDown=function(oe){var $=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;return this._moveCursor(0,$>=0?Math.min($,oe.params[0]||1):oe.params[0]||1),!0},de.prototype.cursorForward=function(oe){return this._moveCursor(oe.params[0]||1,0),!0},de.prototype.cursorBackward=function(oe){return this._moveCursor(-(oe.params[0]||1),0),!0},de.prototype.cursorNextLine=function(oe){return this.cursorDown(oe),this._bufferService.buffer.x=0,!0},de.prototype.cursorPrecedingLine=function(oe){return this.cursorUp(oe),this._bufferService.buffer.x=0,!0},de.prototype.cursorCharAbsolute=function(oe){return this._setCursor((oe.params[0]||1)-1,this._bufferService.buffer.y),!0},de.prototype.cursorPosition=function(oe){return this._setCursor(oe.length>=2?(oe.params[1]||1)-1:0,(oe.params[0]||1)-1),!0},de.prototype.charPosAbsolute=function(oe){return this._setCursor((oe.params[0]||1)-1,this._bufferService.buffer.y),!0},de.prototype.hPositionRelative=function(oe){return this._moveCursor(oe.params[0]||1,0),!0},de.prototype.linePosAbsolute=function(oe){return this._setCursor(this._bufferService.buffer.x,(oe.params[0]||1)-1),!0},de.prototype.vPositionRelative=function(oe){return this._moveCursor(0,oe.params[0]||1),!0},de.prototype.hVPosition=function(oe){return this.cursorPosition(oe),!0},de.prototype.tabClear=function(oe){var $=oe.params[0];return 0===$?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:3===$&&(this._bufferService.buffer.tabs={}),!0},de.prototype.cursorForwardTab=function(oe){if(this._bufferService.buffer.x>=this._bufferService.cols)return!0;for(var $=oe.params[0]||1;$--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop();return!0},de.prototype.cursorBackwardTab=function(oe){if(this._bufferService.buffer.x>=this._bufferService.cols)return!0;for(var $=oe.params[0]||1,ye=this._bufferService.buffer;$--;)ye.x=ye.prevStop();return!0},de.prototype._eraseInBufferLine=function(oe,$,ye,ve){void 0===ve&&(ve=!1);var et=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+oe);et.replaceCells($,ye,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ve&&(et.isWrapped=!1)},de.prototype._resetBufferLine=function(oe){var $=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+oe);$.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),$.isWrapped=!1},de.prototype.eraseInDisplay=function(oe){var $;switch(this._restrictCursor(this._bufferService.cols),oe.params[0]){case 0:for(this._dirtyRowService.markDirty($=this._bufferService.buffer.y),this._eraseInBufferLine($++,this._bufferService.buffer.x,this._bufferService.cols,0===this._bufferService.buffer.x);$<this._bufferService.rows;$++)this._resetBufferLine($);this._dirtyRowService.markDirty($);break;case 1:for(this._dirtyRowService.markDirty($=this._bufferService.buffer.y),this._eraseInBufferLine($,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get($+1).isWrapped=!1);$--;)this._resetBufferLine($);this._dirtyRowService.markDirty(0);break;case 2:for(this._dirtyRowService.markDirty(($=this._bufferService.rows)-1);$--;)this._resetBufferLine($);this._dirtyRowService.markDirty(0);break;case 3:var ye=this._bufferService.buffer.lines.length-this._bufferService.rows;ye>0&&(this._bufferService.buffer.lines.trimStart(ye),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-ye,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-ye,0),this._onScroll.fire(0))}return!0},de.prototype.eraseInLine=function(oe){switch(this._restrictCursor(this._bufferService.cols),oe.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}return this._dirtyRowService.markDirty(this._bufferService.buffer.y),!0},de.prototype.insertLines=function(oe){this._restrictCursor();var $=oe.params[0]||1,ye=this._bufferService.buffer;if(ye.y>ye.scrollBottom||ye.y<ye.scrollTop)return!0;for(var ve=ye.ybase+ye.y,Ne=this._bufferService.rows-1+ye.ybase-(this._bufferService.rows-1-ye.scrollBottom)+1;$--;)ye.lines.splice(Ne-1,1),ye.lines.splice(ve,0,ye.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(ye.y,ye.scrollBottom),ye.x=0,!0},de.prototype.deleteLines=function(oe){this._restrictCursor();var $=oe.params[0]||1,ye=this._bufferService.buffer;if(ye.y>ye.scrollBottom||ye.y<ye.scrollTop)return!0;var ve,et=ye.ybase+ye.y;for(ve=this._bufferService.rows-1+ye.ybase-(ve=this._bufferService.rows-1-ye.scrollBottom);$--;)ye.lines.splice(et,1),ye.lines.splice(ve,0,ye.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(ye.y,ye.scrollBottom),ye.x=0,!0},de.prototype.insertChars=function(oe){this._restrictCursor();var $=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);return $&&($.insertCells(this._bufferService.buffer.x,oe.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y)),!0},de.prototype.deleteChars=function(oe){this._restrictCursor();var $=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);return $&&($.deleteCells(this._bufferService.buffer.x,oe.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y)),!0},de.prototype.scrollUp=function(oe){for(var $=oe.params[0]||1,ye=this._bufferService.buffer;$--;)ye.lines.splice(ye.ybase+ye.scrollTop,1),ye.lines.splice(ye.ybase+ye.scrollBottom,0,ye.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(ye.scrollTop,ye.scrollBottom),!0},de.prototype.scrollDown=function(oe){for(var $=oe.params[0]||1,ye=this._bufferService.buffer;$--;)ye.lines.splice(ye.ybase+ye.scrollBottom,1),ye.lines.splice(ye.ybase+ye.scrollTop,0,ye.getBlankLine(M.DEFAULT_ATTR_DATA));return this._dirtyRowService.markRangeDirty(ye.scrollTop,ye.scrollBottom),!0},de.prototype.scrollLeft=function(oe){var $=this._bufferService.buffer;if($.y>$.scrollBottom||$.y<$.scrollTop)return!0;for(var ye=oe.params[0]||1,ve=$.scrollTop;ve<=$.scrollBottom;++ve){var et=$.lines.get($.ybase+ve);et.deleteCells(0,ye,$.getNullCell(this._eraseAttrData()),this._eraseAttrData()),et.isWrapped=!1}return this._dirtyRowService.markRangeDirty($.scrollTop,$.scrollBottom),!0},de.prototype.scrollRight=function(oe){var $=this._bufferService.buffer;if($.y>$.scrollBottom||$.y<$.scrollTop)return!0;for(var ye=oe.params[0]||1,ve=$.scrollTop;ve<=$.scrollBottom;++ve){var et=$.lines.get($.ybase+ve);et.insertCells(0,ye,$.getNullCell(this._eraseAttrData()),this._eraseAttrData()),et.isWrapped=!1}return this._dirtyRowService.markRangeDirty($.scrollTop,$.scrollBottom),!0},de.prototype.insertColumns=function(oe){var $=this._bufferService.buffer;if($.y>$.scrollBottom||$.y<$.scrollTop)return!0;for(var ye=oe.params[0]||1,ve=$.scrollTop;ve<=$.scrollBottom;++ve){var et=this._bufferService.buffer.lines.get($.ybase+ve);et.insertCells($.x,ye,$.getNullCell(this._eraseAttrData()),this._eraseAttrData()),et.isWrapped=!1}return this._dirtyRowService.markRangeDirty($.scrollTop,$.scrollBottom),!0},de.prototype.deleteColumns=function(oe){var $=this._bufferService.buffer;if($.y>$.scrollBottom||$.y<$.scrollTop)return!0;for(var ye=oe.params[0]||1,ve=$.scrollTop;ve<=$.scrollBottom;++ve){var et=$.lines.get($.ybase+ve);et.deleteCells($.x,ye,$.getNullCell(this._eraseAttrData()),this._eraseAttrData()),et.isWrapped=!1}return this._dirtyRowService.markRangeDirty($.scrollTop,$.scrollBottom),!0},de.prototype.eraseChars=function(oe){this._restrictCursor();var $=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);return $&&($.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(oe.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y)),!0},de.prototype.repeatPrecedingCharacter=function(oe){if(!this._parser.precedingCodepoint)return!0;for(var $=oe.params[0]||1,ye=new Uint32Array($),ve=0;ve<$;++ve)ye[ve]=this._parser.precedingCodepoint;return this.print(ye,0,ye.length),!0},de.prototype.sendDeviceAttributesPrimary=function(oe){return oe.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},de.prototype.sendDeviceAttributesSecondary=function(oe){return oe.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(oe.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(D.C0.ESC+"[>83;40003;0c")),!0},de.prototype._is=function(oe){return 0===(this._optionsService.options.termName+"").indexOf(oe)},de.prototype.setMode=function(oe){for(var $=0;$<oe.length;$++)switch(oe.params[$]){case 4:this._coreService.modes.insertMode=!0}return!0},de.prototype.setModePrivate=function(oe){for(var $=0;$<oe.length;$++)switch(oe.params[$]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,O.DEFAULT_CHARSET),this._charsetService.setgCharset(1,O.DEFAULT_CHARSET),this._charsetService.setgCharset(2,O.DEFAULT_CHARSET),this._charsetService.setgCharset(3,O.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;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},de.prototype.resetMode=function(oe){for(var $=0;$<oe.length;$++)switch(oe.params[$]){case 4:this._coreService.modes.insertMode=!1}return!0},de.prototype.resetModePrivate=function(oe){for(var $=0;$<oe.length;$++)switch(oe.params[$]){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===oe.params[$]&&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},de.prototype._updateAttrColor=function(oe,$,ye,ve,et){return 2===$?(oe|=50331648,oe&=-16777216,oe|=A.AttributeData.fromColorRGB([ye,ve,et])):5===$&&(oe&=-50331904,oe|=33554432|255&ye),oe},de.prototype._extractColor=function(oe,$,ye){var ve=[0,0,-1,0,0,0],et=0,Ne=0;do{if(ve[Ne+et]=oe.params[$+Ne],oe.hasSubParams($+Ne)){var gt=oe.getSubParams($+Ne),_t=0;do{5===ve[1]&&(et=1),ve[Ne+_t+1+et]=gt[_t]}while(++_t<gt.length&&_t+Ne+1+et<ve.length);break}if(5===ve[1]&&Ne+et>=2||2===ve[1]&&Ne+et>=5)break;ve[1]&&(et=1)}while(++Ne+$<oe.length&&Ne+et<ve.length);for(_t=2;_t<ve.length;++_t)-1===ve[_t]&&(ve[_t]=0);switch(ve[0]){case 38:ye.fg=this._updateAttrColor(ye.fg,ve[1],ve[3],ve[4],ve[5]);break;case 48:ye.bg=this._updateAttrColor(ye.bg,ve[1],ve[3],ve[4],ve[5]);break;case 58:ye.extended=ye.extended.clone(),ye.extended.underlineColor=this._updateAttrColor(ye.extended.underlineColor,ve[1],ve[3],ve[4],ve[5])}return Ne},de.prototype._processUnderline=function(oe,$){$.extended=$.extended.clone(),(!~oe||oe>5)&&(oe=1),$.extended.underlineStyle=oe,$.fg|=268435456,0===oe&&($.fg&=-268435457),$.updateExtended()},de.prototype.charAttributes=function(oe){if(1===oe.length&&0===oe.params[0])return this._curAttrData.fg=M.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=M.DEFAULT_ATTR_DATA.bg,!0;for(var $,ye=oe.length,ve=this._curAttrData,et=0;et<ye;et++)($=oe.params[et])>=30&&$<=37?(ve.fg&=-50331904,ve.fg|=16777216|$-30):$>=40&&$<=47?(ve.bg&=-50331904,ve.bg|=16777216|$-40):$>=90&&$<=97?(ve.fg&=-50331904,ve.fg|=16777224|$-90):$>=100&&$<=107?(ve.bg&=-50331904,ve.bg|=16777224|$-100):0===$?(ve.fg=M.DEFAULT_ATTR_DATA.fg,ve.bg=M.DEFAULT_ATTR_DATA.bg):1===$?ve.fg|=134217728:3===$?ve.bg|=67108864:4===$?(ve.fg|=268435456,this._processUnderline(oe.hasSubParams(et)?oe.getSubParams(et)[0]:1,ve)):5===$?ve.fg|=536870912:7===$?ve.fg|=67108864:8===$?ve.fg|=1073741824:2===$?ve.bg|=134217728:21===$?this._processUnderline(2,ve):22===$?(ve.fg&=-134217729,ve.bg&=-134217729):23===$?ve.bg&=-67108865:24===$?ve.fg&=-268435457:25===$?ve.fg&=-536870913:27===$?ve.fg&=-67108865:28===$?ve.fg&=-1073741825:39===$?(ve.fg&=-67108864,ve.fg|=16777215&M.DEFAULT_ATTR_DATA.fg):49===$?(ve.bg&=-67108864,ve.bg|=16777215&M.DEFAULT_ATTR_DATA.bg):38===$||48===$||58===$?et+=this._extractColor(oe,et,ve):59===$?(ve.extended=ve.extended.clone(),ve.extended.underlineColor=-1,ve.updateExtended()):100===$?(ve.fg&=-67108864,ve.fg|=16777215&M.DEFAULT_ATTR_DATA.fg,ve.bg&=-67108864,ve.bg|=16777215&M.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",$);return!0},de.prototype.deviceStatus=function(oe){switch(oe.params[0]){case 5:this._coreService.triggerDataEvent(D.C0.ESC+"[0n");break;case 6:this._coreService.triggerDataEvent(D.C0.ESC+"["+(this._bufferService.buffer.y+1)+";"+(this._bufferService.buffer.x+1)+"R")}return!0},de.prototype.deviceStatusPrivate=function(oe){switch(oe.params[0]){case 6:this._coreService.triggerDataEvent(D.C0.ESC+"[?"+(this._bufferService.buffer.y+1)+";"+(this._bufferService.buffer.x+1)+"R")}return!0},de.prototype.softReset=function(oe){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=M.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},de.prototype.setCursorStyle=function(oe){var $=oe.params[0]||1;switch($){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=$%2==1,!0},de.prototype.setScrollRegion=function(oe){var $,ye=oe.params[0]||1;return(oe.length<2||($=oe.params[1])>this._bufferService.rows||0===$)&&($=this._bufferService.rows),$>ye&&(this._bufferService.buffer.scrollTop=ye-1,this._bufferService.buffer.scrollBottom=$-1,this._setCursor(0,0)),!0},de.prototype.windowOptions=function(oe){if(!ae(oe.params[0],this._optionsService.options.windowOptions))return!0;var $=oe.length>1?oe.params[1]:0;switch(oe.params[0]){case 14:2!==$&&this._onRequestWindowsOptionsReport.fire(N.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(N.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!==$&&2!==$||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==$&&1!==$||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==$&&2!==$||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==$&&1!==$||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},de.prototype.saveCursor=function(oe){return this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,!0},de.prototype.restoreCursor=function(oe){return this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor(),!0},de.prototype.setTitle=function(oe){return this._windowTitle=oe,this._onTitleChange.fire(oe),!0},de.prototype.setIconName=function(oe){return this._iconName=oe,!0},de.prototype._parseAnsiColorChange=function(oe){for(var $,ye={colors:[]},ve=/(\d+);rgb:([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})/gi;null!==($=ve.exec(oe));)ye.colors.push({colorIndex:parseInt($[1]),red:parseInt($[2],16),green:parseInt($[3],16),blue:parseInt($[4],16)});return 0===ye.colors.length?null:ye},de.prototype.setAnsiColor=function(oe){var $=this._parseAnsiColorChange(oe);return $?this._onAnsiColorChange.fire($):this._logService.warn("Expected format <num>;rgb:<rr>/<gg>/<bb> but got data: "+oe),!0},de.prototype.nextLine=function(){return this._bufferService.buffer.x=0,this.index(),!0},de.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},de.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},de.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,O.DEFAULT_CHARSET),!0},de.prototype.selectCharset=function(oe){return 2!==oe.length?(this.selectDefaultCharset(),!0):("/"===oe[0]||this._charsetService.setgCharset(z[oe[0]],O.CHARSETS[oe[1]]||O.DEFAULT_CHARSET),!0)},de.prototype.index=function(){this._restrictCursor();var oe=this._bufferService.buffer;return this._bufferService.buffer.y++,oe.y===oe.scrollBottom+1?(oe.y--,this._bufferService.scroll(this._eraseAttrData())):oe.y>=this._bufferService.rows&&(oe.y=this._bufferService.rows-1),this._restrictCursor(),!0},de.prototype.tabSet=function(){return this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0,!0},de.prototype.reverseIndex=function(){this._restrictCursor();var oe=this._bufferService.buffer;return oe.y===oe.scrollTop?(oe.lines.shiftElements(oe.ybase+oe.y,oe.scrollBottom-oe.scrollTop,1),oe.lines.set(oe.ybase+oe.y,oe.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(oe.scrollTop,oe.scrollBottom)):(oe.y--,this._restrictCursor()),!0},de.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},de.prototype.reset=function(){this._curAttrData=M.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=M.DEFAULT_ATTR_DATA.clone()},de.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},de.prototype.setgLevel=function(oe){return this._charsetService.setgLevel(oe),!0},de.prototype.screenAlignmentPattern=function(){var oe=new S.CellData;oe.content=1<<22|"E".charCodeAt(0),oe.fg=this._curAttrData.fg,oe.bg=this._curAttrData.bg;var $=this._bufferService.buffer;this._setCursor(0,0);for(var ye=0;ye<this._bufferService.rows;++ye){var et=$.lines.get($.ybase+$.y+ye);et&&(et.fill(oe),et.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0},de}(y.Disposable);w.InputHandler=se},844:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.getDisposeArrayDisposable=w.disposeArray=w.Disposable=void 0;var R=function(){function _(){this._disposables=[],this._isDisposed=!1}return _.prototype.dispose=function(){this._isDisposed=!0;for(var N=0,D=this._disposables;N<D.length;N++)D[N].dispose();this._disposables.length=0},_.prototype.register=function(N){return this._disposables.push(N),N},_.prototype.unregister=function(N){var D=this._disposables.indexOf(N);-1!==D&&this._disposables.splice(D,1)},_}();function C(_){for(var N=0,D=_;N<D.length;N++)D[N].dispose();_.length=0}w.Disposable=R,w.disposeArray=C,w.getDisposeArrayDisposable=function(_){return{dispose:function(){return C(_)}}}},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 R="undefined"==typeof navigator,C=R?"node":navigator.userAgent,_=R?"node":navigator.platform;w.isFirefox=C.includes("Firefox"),w.isSafari=/^((?!chrome|android).)*safari/i.test(C),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 R(C,_,N,D){if(void 0===N&&(N=0),void 0===D&&(D=C.length),N>=C.length)return C;D=D>=C.length?C.length:(C.length+D)%C.length;for(var O=N=(C.length+N)%C.length;O<D;++O)C[O]=_;return C}Object.defineProperty(w,"__esModule",{value:!0}),w.concat=w.fillFallback=w.fill=void 0,w.fill=function(C,_,N,D){return C.fill?C.fill(_,N,D):R(C,_,N,D)},w.fillFallback=R,w.concat=function(C,_){var N=new C.constructor(C.length+_.length);return N.set(C),N.set(_,C.length),N}},9282:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.updateWindowsModeWrappedState=void 0;var C=R(643);w.updateWindowsModeWrappedState=function(_){var N=_.buffer.lines.get(_.buffer.ybase+_.buffer.y-1),D=null==N?void 0:N.get(_.cols-1),O=_.buffer.lines.get(_.buffer.ybase+_.buffer.y);O&&D&&(O.isWrapped=D[C.CHAR_DATA_CODE_INDEX]!==C.NULL_CELL_CODE&&D[C.CHAR_DATA_CODE_INDEX]!==C.WHITESPACE_CELL_CODE)}},3734:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.ExtendedAttrs=w.AttributeData=void 0;var R=function(){function _(){this.fg=0,this.bg=0,this.extended=new C}return _.toColorRGB=function(N){return[N>>>16&255,N>>>8&255,255&N]},_.fromColorRGB=function(N){return(255&N[0])<<16|(255&N[1])<<8|255&N[2]},_.prototype.clone=function(){var N=new _;return N.fg=this.fg,N.bg=this.bg,N.extended=this.extended.clone(),N},_.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.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=R;var C=function(){function _(N,D){void 0===N&&(N=0),void 0===D&&(D=-1),this.underlineStyle=N,this.underlineColor=D}return _.prototype.clone=function(){return new _(this.underlineStyle,this.underlineColor)},_.prototype.isEmpty=function(){return 0===this.underlineStyle},_}();w.ExtendedAttrs=C},9092:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.BufferStringIterator=w.Buffer=w.MAX_BUFFER_SIZE=void 0;var C=R(6349),_=R(8437),N=R(511),D=R(643),O=R(4634),P=R(4863),y=R(7116),g=R(3734);w.MAX_BUFFER_SIZE=4294967295;var T=function(){function E(x,S,A){this._hasScrollback=x,this._optionsService=S,this._bufferService=A,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=y.DEFAULT_CHARSET,this.markers=[],this._nullCell=N.CellData.fromCharData([0,D.NULL_CELL_CHAR,D.NULL_CELL_WIDTH,D.NULL_CELL_CODE]),this._whitespaceCell=N.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 C.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return E.prototype.getNullCell=function(x){return x?(this._nullCell.fg=x.fg,this._nullCell.bg=x.bg,this._nullCell.extended=x.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new g.ExtendedAttrs),this._nullCell},E.prototype.getWhitespaceCell=function(x){return x?(this._whitespaceCell.fg=x.fg,this._whitespaceCell.bg=x.bg,this._whitespaceCell.extended=x.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new g.ExtendedAttrs),this._whitespaceCell},E.prototype.getBlankLine=function(x,S){return new _.BufferLine(this._bufferService.cols,this.getNullCell(x),S)},Object.defineProperty(E.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isCursorInViewport",{get:function(){var S=this.ybase+this.y-this.ydisp;return S>=0&&S<this._rows},enumerable:!1,configurable:!0}),E.prototype._getCorrectBufferLength=function(x){if(!this._hasScrollback)return x;var S=x+this._optionsService.options.scrollback;return S>w.MAX_BUFFER_SIZE?w.MAX_BUFFER_SIZE:S},E.prototype.fillViewportRows=function(x){if(0===this.lines.length){void 0===x&&(x=_.DEFAULT_ATTR_DATA);for(var S=this._rows;S--;)this.lines.push(this.getBlankLine(x))}},E.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new C.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},E.prototype.resize=function(x,S){var A=this.getNullCell(_.DEFAULT_ATTR_DATA),L=this._getCorrectBufferLength(S);if(L>this.lines.maxLength&&(this.lines.maxLength=L),this.lines.length>0){if(this._cols<x)for(var j=0;j<this.lines.length;j++)this.lines.get(j).resize(x,A);var K=0;if(this._rows<S)for(var z=this._rows;z<S;z++)this.lines.length<S+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new _.BufferLine(x,A)):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(x,A)));else for(z=this._rows;z>S;z--)this.lines.length>S+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(L<this.lines.maxLength){var Q=this.lines.length-L;Q>0&&(this.lines.trimStart(Q),this.ybase=Math.max(this.ybase-Q,0),this.ydisp=Math.max(this.ydisp-Q,0),this.savedY=Math.max(this.savedY-Q,0)),this.lines.maxLength=L}this.x=Math.min(this.x,x-1),this.y=Math.min(this.y,S-1),K&&(this.y+=K),this.savedX=Math.min(this.savedX,x-1),this.scrollTop=0}if(this.scrollBottom=S-1,this._isReflowEnabled&&(this._reflow(x,S),this._cols>x))for(j=0;j<this.lines.length;j++)this.lines.get(j).resize(x,A);this._cols=x,this._rows=S},Object.defineProperty(E.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),E.prototype._reflow=function(x,S){this._cols!==x&&(x>this._cols?this._reflowLarger(x,S):this._reflowSmaller(x,S))},E.prototype._reflowLarger=function(x,S){var A=O.reflowLargerGetLinesToRemove(this.lines,this._cols,x,this.ybase+this.y,this.getNullCell(_.DEFAULT_ATTR_DATA));if(A.length>0){var L=O.reflowLargerCreateNewLayout(this.lines,A);O.reflowLargerApplyNewLayout(this.lines,L.layout),this._reflowLargerAdjustViewport(x,S,L.countRemoved)}},E.prototype._reflowLargerAdjustViewport=function(x,S,A){for(var L=this.getNullCell(_.DEFAULT_ATTR_DATA),j=A;j-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<S&&this.lines.push(new _.BufferLine(x,L))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-A,0)},E.prototype._reflowSmaller=function(x,S){for(var A=this.getNullCell(_.DEFAULT_ATTR_DATA),L=[],j=0,K=this.lines.length-1;K>=0;K--){var z=this.lines.get(K);if(!(!z||!z.isWrapped&&z.getTrimmedLength()<=x)){for(var Q=[z];z.isWrapped&&K>0;)z=this.lines.get(--K),Q.unshift(z);var ae=this.ybase+this.y;if(!(ae>=K&&ae<K+Q.length)){var ie,se=Q[Q.length-1].getTrimmedLength(),ue=O.reflowSmallerGetNewLineLengths(Q,this._cols,x),de=ue.length-Q.length;ie=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+de):Math.max(0,this.lines.length-this.lines.maxLength+de);for(var oe=[],$=0;$<de;$++){var ye=this.getBlankLine(_.DEFAULT_ATTR_DATA,!0);oe.push(ye)}oe.length>0&&(L.push({start:K+Q.length+j,newLines:oe}),j+=oe.length),Q.push.apply(Q,oe);var ve=ue.length-1,et=ue[ve];0===et&&(et=ue[--ve]);for(var Ne=Q.length-de-1,gt=se;Ne>=0;){var _t=Math.min(gt,et);if(Q[ve].copyCellsFrom(Q[Ne],gt-_t,et-_t,_t,!0),0==(et-=_t)&&(et=ue[--ve]),0==(gt-=_t)){Ne--;var Rt=Math.max(Ne,0);gt=O.getWrappedLineTrimmedLength(Q,Rt,this._cols)}}for($=0;$<Q.length;$++)ue[$]<x&&Q[$].setCell(ue[$],A);for(var Se=de-ie;Se-- >0;)0===this.ybase?this.y<S-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+j)-S&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+de,this.ybase+S-1)}}}if(L.length>0){var Oe=[],je=[];for($=0;$<this.lines.length;$++)je.push(this.lines.get($));var ct=this.lines.length,Xe=ct-1,Ht=0,Et=L[Ht];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+j);var vt=0;for($=Math.min(this.lines.maxLength-1,ct+j-1);$>=0;$--)if(Et&&Et.start>Xe+vt){for(var Xt=Et.newLines.length-1;Xt>=0;Xt--)this.lines.set($--,Et.newLines[Xt]);$++,Oe.push({index:Xe+1,amount:Et.newLines.length}),vt+=Et.newLines.length,Et=L[++Ht]}else this.lines.set($,je[Xe--]);var qt=0;for($=Oe.length-1;$>=0;$--)Oe[$].index+=qt,this.lines.onInsertEmitter.fire(Oe[$]),qt+=Oe[$].amount;var Ct=Math.max(0,ct+j-this.lines.maxLength);Ct>0&&this.lines.onTrimEmitter.fire(Ct)}},E.prototype.stringIndexToBufferIndex=function(x,S,A){for(void 0===A&&(A=!1);S;){var L=this.lines.get(x);if(!L)return[-1,-1];for(var j=A?L.getTrimmedLength():L.length,K=0;K<j;++K)if(L.get(K)[D.CHAR_DATA_WIDTH_INDEX]&&(S-=L.get(K)[D.CHAR_DATA_CHAR_INDEX].length||1),S<0)return[x,K];x++}return[x,0]},E.prototype.translateBufferLineToString=function(x,S,A,L){void 0===A&&(A=0);var j=this.lines.get(x);return j?j.translateToString(S,A,L):""},E.prototype.getWrappedRangeForLine=function(x){for(var S=x,A=x;S>0&&this.lines.get(S).isWrapped;)S--;for(;A+1<this.lines.length&&this.lines.get(A+1).isWrapped;)A++;return{first:S,last:A}},E.prototype.setupTabStops=function(x){for(null!=x?this.tabs[x]||(x=this.prevStop(x)):(this.tabs={},x=0);x<this._cols;x+=this._optionsService.options.tabStopWidth)this.tabs[x]=!0},E.prototype.prevStop=function(x){for(null==x&&(x=this.x);!this.tabs[--x]&&x>0;);return x>=this._cols?this._cols-1:x<0?0:x},E.prototype.nextStop=function(x){for(null==x&&(x=this.x);!this.tabs[++x]&&x<this._cols;);return x>=this._cols?this._cols-1:x<0?0:x},E.prototype.addMarker=function(x){var S=this,A=new P.Marker(x);return this.markers.push(A),A.register(this.lines.onTrim(function(L){A.line-=L,A.line<0&&A.dispose()})),A.register(this.lines.onInsert(function(L){A.line>=L.index&&(A.line+=L.amount)})),A.register(this.lines.onDelete(function(L){A.line>=L.index&&A.line<L.index+L.amount&&A.dispose(),A.line>L.index&&(A.line-=L.amount)})),A.register(A.onDispose(function(){return S._removeMarker(A)})),A},E.prototype._removeMarker=function(x){this.markers.splice(this.markers.indexOf(x),1)},E.prototype.iterator=function(x,S,A,L,j){return new M(this,x,S,A,L,j)},E}();w.Buffer=T;var M=function(){function E(x,S,A,L,j,K){void 0===A&&(A=0),void 0===L&&(L=x.lines.length),void 0===j&&(j=0),void 0===K&&(K=0),this._buffer=x,this._trimRight=S,this._startIndex=A,this._endIndex=L,this._startOverscan=j,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 E.prototype.hasNext=function(){return this._current<this._endIndex},E.prototype.next=function(){var x=this._buffer.getWrappedRangeForLine(this._current);x.first<this._startIndex-this._startOverscan&&(x.first=this._startIndex-this._startOverscan),x.last>this._endIndex+this._endOverscan&&(x.last=this._endIndex+this._endOverscan),x.first=Math.max(x.first,0),x.last=Math.min(x.last,this._buffer.lines.length);for(var S="",A=x.first;A<=x.last;++A)S+=this._buffer.translateBufferLineToString(A,this._trimRight);return this._current=x.last+1,{range:x,content:S}},E}();w.BufferStringIterator=M},8437:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.BufferLine=w.DEFAULT_ATTR_DATA=void 0;var C=R(482),_=R(643),N=R(511),D=R(3734);w.DEFAULT_ATTR_DATA=Object.freeze(new D.AttributeData);var O=function(){function P(y,g,T){void 0===T&&(T=!1),this.isWrapped=T,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*y);for(var M=g||N.CellData.fromCharData([0,_.NULL_CELL_CHAR,_.NULL_CELL_WIDTH,_.NULL_CELL_CODE]),E=0;E<y;++E)this.setCell(E,M);this.length=y}return P.prototype.get=function(y){var g=this._data[3*y+0],T=2097151&g;return[this._data[3*y+1],2097152&g?this._combined[y]:T?C.stringFromCodePoint(T):"",g>>22,2097152&g?this._combined[y].charCodeAt(this._combined[y].length-1):T]},P.prototype.set=function(y,g){this._data[3*y+1]=g[_.CHAR_DATA_ATTR_INDEX],g[_.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[y]=g[1],this._data[3*y+0]=2097152|y|g[_.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*y+0]=g[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|g[_.CHAR_DATA_WIDTH_INDEX]<<22},P.prototype.getWidth=function(y){return this._data[3*y+0]>>22},P.prototype.hasWidth=function(y){return 12582912&this._data[3*y+0]},P.prototype.getFg=function(y){return this._data[3*y+1]},P.prototype.getBg=function(y){return this._data[3*y+2]},P.prototype.hasContent=function(y){return 4194303&this._data[3*y+0]},P.prototype.getCodePoint=function(y){var g=this._data[3*y+0];return 2097152&g?this._combined[y].charCodeAt(this._combined[y].length-1):2097151&g},P.prototype.isCombined=function(y){return 2097152&this._data[3*y+0]},P.prototype.getString=function(y){var g=this._data[3*y+0];return 2097152&g?this._combined[y]:2097151&g?C.stringFromCodePoint(2097151&g):""},P.prototype.loadCell=function(y,g){var T=3*y;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[y]),268435456&g.bg&&(g.extended=this._extendedAttrs[y]),g},P.prototype.setCell=function(y,g){2097152&g.content&&(this._combined[y]=g.combinedData),268435456&g.bg&&(this._extendedAttrs[y]=g.extended),this._data[3*y+0]=g.content,this._data[3*y+1]=g.fg,this._data[3*y+2]=g.bg},P.prototype.setCellFromCodePoint=function(y,g,T,M,E,x){268435456&E&&(this._extendedAttrs[y]=x),this._data[3*y+0]=g|T<<22,this._data[3*y+1]=M,this._data[3*y+2]=E},P.prototype.addCodepointToCell=function(y,g){var T=this._data[3*y+0];2097152&T?this._combined[y]+=C.stringFromCodePoint(g):(2097151&T?(this._combined[y]=C.stringFromCodePoint(2097151&T)+C.stringFromCodePoint(g),T&=-2097152,T|=2097152):T=g|1<<22,this._data[3*y+0]=T)},P.prototype.insertCells=function(y,g,T,M){if((y%=this.length)&&2===this.getWidth(y-1)&&this.setCellFromCodePoint(y-1,0,1,(null==M?void 0:M.fg)||0,(null==M?void 0:M.bg)||0,(null==M?void 0:M.extended)||new D.ExtendedAttrs),g<this.length-y){for(var E=new N.CellData,x=this.length-y-g-1;x>=0;--x)this.setCell(y+g+x,this.loadCell(y+x,E));for(x=0;x<g;++x)this.setCell(y+x,T)}else for(x=y;x<this.length;++x)this.setCell(x,T);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==M?void 0:M.fg)||0,(null==M?void 0:M.bg)||0,(null==M?void 0:M.extended)||new D.ExtendedAttrs)},P.prototype.deleteCells=function(y,g,T,M){if(g<this.length-(y%=this.length)){for(var E=new N.CellData,x=0;x<this.length-y-g;++x)this.setCell(y+x,this.loadCell(y+g+x,E));for(x=this.length-g;x<this.length;++x)this.setCell(x,T)}else for(x=y;x<this.length;++x)this.setCell(x,T);y&&2===this.getWidth(y-1)&&this.setCellFromCodePoint(y-1,0,1,(null==M?void 0:M.fg)||0,(null==M?void 0:M.bg)||0,(null==M?void 0:M.extended)||new D.ExtendedAttrs),0!==this.getWidth(y)||this.hasContent(y)||this.setCellFromCodePoint(y,0,1,(null==M?void 0:M.fg)||0,(null==M?void 0:M.bg)||0,(null==M?void 0:M.extended)||new D.ExtendedAttrs)},P.prototype.replaceCells=function(y,g,T,M){for(y&&2===this.getWidth(y-1)&&this.setCellFromCodePoint(y-1,0,1,(null==M?void 0:M.fg)||0,(null==M?void 0:M.bg)||0,(null==M?void 0:M.extended)||new D.ExtendedAttrs),g<this.length&&2===this.getWidth(g-1)&&this.setCellFromCodePoint(g,0,1,(null==M?void 0:M.fg)||0,(null==M?void 0:M.bg)||0,(null==M?void 0:M.extended)||new D.ExtendedAttrs);y<g&&y<this.length;)this.setCell(y++,T)},P.prototype.resize=function(y,g){if(y!==this.length){if(y>this.length){var T=new Uint32Array(3*y);this.length&&T.set(3*y<this._data.length?this._data.subarray(0,3*y):this._data),this._data=T;for(var M=this.length;M<y;++M)this.setCell(M,g)}else if(y){(T=new Uint32Array(3*y)).set(this._data.subarray(0,3*y)),this._data=T;var E=Object.keys(this._combined);for(M=0;M<E.length;M++){var x=parseInt(E[M],10);x>=y&&delete this._combined[x]}}else this._data=new Uint32Array(0),this._combined={};this.length=y}},P.prototype.fill=function(y){this._combined={},this._extendedAttrs={};for(var g=0;g<this.length;++g)this.setCell(g,y)},P.prototype.copyFrom=function(y){for(var g in this.length!==y.length?this._data=new Uint32Array(y._data):this._data.set(y._data),this.length=y.length,this._combined={},y._combined)this._combined[g]=y._combined[g];for(var g in this._extendedAttrs={},y._extendedAttrs)this._extendedAttrs[g]=y._extendedAttrs[g];this.isWrapped=y.isWrapped},P.prototype.clone=function(){var y=new P(0);for(var g in y._data=new Uint32Array(this._data),y.length=this.length,this._combined)y._combined[g]=this._combined[g];for(var g in this._extendedAttrs)y._extendedAttrs[g]=this._extendedAttrs[g];return y.isWrapped=this.isWrapped,y},P.prototype.getTrimmedLength=function(){for(var y=this.length-1;y>=0;--y)if(4194303&this._data[3*y+0])return y+(this._data[3*y+0]>>22);return 0},P.prototype.copyCellsFrom=function(y,g,T,M,E){var x=y._data;if(E)for(var S=M-1;S>=0;S--)for(var A=0;A<3;A++)this._data[3*(T+S)+A]=x[3*(g+S)+A];else for(S=0;S<M;S++)for(A=0;A<3;A++)this._data[3*(T+S)+A]=x[3*(g+S)+A];var L=Object.keys(y._combined);for(A=0;A<L.length;A++){var j=parseInt(L[A],10);j>=g&&(this._combined[j-g+T]=y._combined[j])}},P.prototype.translateToString=function(y,g,T){void 0===y&&(y=!1),void 0===g&&(g=0),void 0===T&&(T=this.length),y&&(T=Math.min(T,this.getTrimmedLength()));for(var M="";g<T;){var E=this._data[3*g+0],x=2097151&E;M+=2097152&E?this._combined[g]:x?C.stringFromCodePoint(x):_.WHITESPACE_CELL_CHAR,g+=E>>22||1}return M},P}();w.BufferLine=O},4841:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.getRangeLength=void 0,w.getRangeLength=function(R,C){if(R.start.y>R.end.y)throw new Error("Buffer range end ("+R.end.x+", "+R.end.y+") cannot be before start ("+R.start.x+", "+R.start.y+")");return C*(R.end.y-R.start.y)+(R.end.x-R.start.x+1)}},4634:function(Z,w){function R(C,_,N){if(_===C.length-1)return C[_].getTrimmedLength();var D=!C[_].hasContent(N-1)&&1===C[_].getWidth(N-1),O=2===C[_+1].getWidth(0);return D&&O?N-1:N}Object.defineProperty(w,"__esModule",{value:!0}),w.getWrappedLineTrimmedLength=w.reflowSmallerGetNewLineLengths=w.reflowLargerApplyNewLayout=w.reflowLargerCreateNewLayout=w.reflowLargerGetLinesToRemove=void 0,w.reflowLargerGetLinesToRemove=function(C,_,N,D,O){for(var P=[],y=0;y<C.length-1;y++){var g=y,T=C.get(++g);if(T.isWrapped){for(var M=[C.get(y)];g<C.length&&T.isWrapped;)M.push(T),T=C.get(++g);if(D>=y&&D<g)y+=M.length-1;else{for(var E=0,x=R(M,E,_),S=1,A=0;S<M.length;){var L=R(M,S,_),z=Math.min(L-A,N-x);M[E].copyCellsFrom(M[S],A,x,z,!1),(x+=z)===N&&(E++,x=0),(A+=z)===L&&(S++,A=0),0===x&&0!==E&&2===M[E-1].getWidth(N-1)&&(M[E].copyCellsFrom(M[E-1],N-1,x++,1,!1),M[E-1].setCell(N-1,O))}M[E].replaceCells(x,N,O);for(var Q=0,ae=M.length-1;ae>0&&(ae>E||0===M[ae].getTrimmedLength());ae--)Q++;Q>0&&(P.push(y+M.length-Q),P.push(Q)),y+=M.length-1}}}return P},w.reflowLargerCreateNewLayout=function(C,_){for(var N=[],D=0,O=_[D],P=0,y=0;y<C.length;y++)if(O===y){var g=_[++D];C.onDeleteEmitter.fire({index:y-P,amount:g}),y+=g-1,P+=g,O=_[++D]}else N.push(y);return{layout:N,countRemoved:P}},w.reflowLargerApplyNewLayout=function(C,_){for(var N=[],D=0;D<_.length;D++)N.push(C.get(_[D]));for(D=0;D<N.length;D++)C.set(D,N[D]);C.length=_.length},w.reflowSmallerGetNewLineLengths=function(C,_,N){for(var D=[],O=C.map(function(x,S){return R(C,S,_)}).reduce(function(x,S){return x+S}),P=0,y=0,g=0;g<O;){if(O-g<N){D.push(O-g);break}P+=N;var T=R(C,y,_);P>T&&(P-=T,y++);var M=2===C[y].getWidth(P-1);M&&P--;var E=M?N-1:N;D.push(E),g+=E}return D},w.getWrappedLineTrimmedLength=R},5295:function(Z,w,R){var C,_=this&&this.__extends||(C=function(y,g){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var E in M)Object.prototype.hasOwnProperty.call(M,E)&&(T[E]=M[E])})(y,g)},function(P,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function g(){this.constructor=P}C(P,y),P.prototype=null===y?Object.create(y):(g.prototype=y.prototype,new g)});Object.defineProperty(w,"__esModule",{value:!0}),w.BufferSet=void 0;var N=R(9092),D=R(8460),O=function(P){function y(g,T){var M=P.call(this)||this;return M._optionsService=g,M._bufferService=T,M._onBufferActivate=M.register(new D.EventEmitter),M.reset(),M}return _(y,P),Object.defineProperty(y.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),y.prototype.reset=function(){this._normal=new N.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new N.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this.setupTabStops()},Object.defineProperty(y.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),y.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}))},y.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}))},y.prototype.resize=function(g,T){this._normal.resize(g,T),this._alt.resize(g,T)},y.prototype.setupTabStops=function(g){this._normal.setupTabStops(g),this._alt.setupTabStops(g)},y}(R(844).Disposable);w.BufferSet=O},511:function(Z,w,R){var C,_=this&&this.__extends||(C=function(g,T){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,E){M.__proto__=E}||function(M,E){for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(M[x]=E[x])})(g,T)},function(y,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=y}C(y,g),y.prototype=null===g?Object.create(g):(T.prototype=g.prototype,new T)});Object.defineProperty(w,"__esModule",{value:!0}),w.CellData=void 0;var N=R(482),D=R(643),O=R(3734),P=function(y){function g(){var T=null!==y&&y.apply(this,arguments)||this;return T.content=0,T.fg=0,T.bg=0,T.extended=new O.ExtendedAttrs,T.combinedData="",T}return _(g,y),g.fromCharData=function(T){var M=new g;return M.setFromCharData(T),M},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?N.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 M=!1;if(T[D.CHAR_DATA_CHAR_INDEX].length>2)M=!0;else if(2===T[D.CHAR_DATA_CHAR_INDEX].length){var E=T[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=E&&E<=56319){var x=T[D.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=x&&x<=57343?this.content=1024*(E-55296)+x-56320+65536|T[D.CHAR_DATA_WIDTH_INDEX]<<22:M=!0}else M=!0}else this.content=T[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|T[D.CHAR_DATA_WIDTH_INDEX]<<22;M&&(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}(O.AttributeData);w.CellData=P},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,R){var C,_=this&&this.__extends||(C=function(P,y){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,T){g.__proto__=T}||function(g,T){for(var M in T)Object.prototype.hasOwnProperty.call(T,M)&&(g[M]=T[M])})(P,y)},function(O,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function y(){this.constructor=O}C(O,P),O.prototype=null===P?Object.create(P):(y.prototype=P.prototype,new y)});Object.defineProperty(w,"__esModule",{value:!0}),w.Marker=void 0;var N=R(8460),D=function(O){function P(y){var g=O.call(this)||this;return g.line=y,g._id=P._nextId++,g.isDisposed=!1,g._onDispose=new N.EventEmitter,g}return _(P,O),Object.defineProperty(P.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),P.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),O.prototype.dispose.call(this))},P._nextId=1,P}(R(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 R,C;Object.defineProperty(w,"__esModule",{value:!0}),w.C1=w.C0=void 0,(C=w.C0||(w.C0={})).NUL="\0",C.SOH="\x01",C.STX="\x02",C.ETX="\x03",C.EOT="\x04",C.ENQ="\x05",C.ACK="\x06",C.BEL="\x07",C.BS="\b",C.HT="\t",C.LF="\n",C.VT="\v",C.FF="\f",C.CR="\r",C.SO="\x0e",C.SI="\x0f",C.DLE="\x10",C.DC1="\x11",C.DC2="\x12",C.DC3="\x13",C.DC4="\x14",C.NAK="\x15",C.SYN="\x16",C.ETB="\x17",C.CAN="\x18",C.EM="\x19",C.SUB="\x1a",C.ESC="\x1b",C.FS="\x1c",C.GS="\x1d",C.RS="\x1e",C.US="\x1f",C.SP=" ",C.DEL="\x7f",(R=w.C1||(w.C1={})).PAD="\x80",R.HOP="\x81",R.BPH="\x82",R.NBH="\x83",R.IND="\x84",R.NEL="\x85",R.SSA="\x86",R.ESA="\x87",R.HTS="\x88",R.HTJ="\x89",R.VTS="\x8a",R.PLD="\x8b",R.PLU="\x8c",R.RI="\x8d",R.SS2="\x8e",R.SS3="\x8f",R.DCS="\x90",R.PU1="\x91",R.PU2="\x92",R.STS="\x93",R.CCH="\x94",R.MW="\x95",R.SPA="\x96",R.EPA="\x97",R.SOS="\x98",R.SGCI="\x99",R.SCI="\x9a",R.CSI="\x9b",R.ST="\x9c",R.OSC="\x9d",R.PM="\x9e",R.APC="\x9f"},7399:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.evaluateKeyboardEvent=void 0;var C=R(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(N,D,O,P){var y={type:0,cancel:!1,key:void 0},g=(N.shiftKey?1:0)|(N.altKey?2:0)|(N.ctrlKey?4:0)|(N.metaKey?8:0);switch(N.keyCode){case 0:"UIKeyInputUpArrow"===N.key?y.key=D?C.C0.ESC+"OA":C.C0.ESC+"[A":"UIKeyInputLeftArrow"===N.key?y.key=D?C.C0.ESC+"OD":C.C0.ESC+"[D":"UIKeyInputRightArrow"===N.key?y.key=D?C.C0.ESC+"OC":C.C0.ESC+"[C":"UIKeyInputDownArrow"===N.key&&(y.key=D?C.C0.ESC+"OB":C.C0.ESC+"[B");break;case 8:if(N.shiftKey){y.key=C.C0.BS;break}if(N.altKey){y.key=C.C0.ESC+C.C0.DEL;break}y.key=C.C0.DEL;break;case 9:if(N.shiftKey){y.key=C.C0.ESC+"[Z";break}y.key=C.C0.HT,y.cancel=!0;break;case 13:y.key=N.altKey?C.C0.ESC+C.C0.CR:C.C0.CR,y.cancel=!0;break;case 27:y.key=C.C0.ESC,N.altKey&&(y.key=C.C0.ESC+C.C0.ESC),y.cancel=!0;break;case 37:if(N.metaKey)break;g?(y.key=C.C0.ESC+"[1;"+(g+1)+"D",y.key===C.C0.ESC+"[1;3D"&&(y.key=C.C0.ESC+(O?"b":"[1;5D"))):y.key=D?C.C0.ESC+"OD":C.C0.ESC+"[D";break;case 39:if(N.metaKey)break;g?(y.key=C.C0.ESC+"[1;"+(g+1)+"C",y.key===C.C0.ESC+"[1;3C"&&(y.key=C.C0.ESC+(O?"f":"[1;5C"))):y.key=D?C.C0.ESC+"OC":C.C0.ESC+"[C";break;case 38:if(N.metaKey)break;g?(y.key=C.C0.ESC+"[1;"+(g+1)+"A",O||y.key!==C.C0.ESC+"[1;3A"||(y.key=C.C0.ESC+"[1;5A")):y.key=D?C.C0.ESC+"OA":C.C0.ESC+"[A";break;case 40:if(N.metaKey)break;g?(y.key=C.C0.ESC+"[1;"+(g+1)+"B",O||y.key!==C.C0.ESC+"[1;3B"||(y.key=C.C0.ESC+"[1;5B")):y.key=D?C.C0.ESC+"OB":C.C0.ESC+"[B";break;case 45:N.shiftKey||N.ctrlKey||(y.key=C.C0.ESC+"[2~");break;case 46:y.key=g?C.C0.ESC+"[3;"+(g+1)+"~":C.C0.ESC+"[3~";break;case 36:y.key=g?C.C0.ESC+"[1;"+(g+1)+"H":D?C.C0.ESC+"OH":C.C0.ESC+"[H";break;case 35:y.key=g?C.C0.ESC+"[1;"+(g+1)+"F":D?C.C0.ESC+"OF":C.C0.ESC+"[F";break;case 33:N.shiftKey?y.type=2:y.key=C.C0.ESC+"[5~";break;case 34:N.shiftKey?y.type=3:y.key=C.C0.ESC+"[6~";break;case 112:y.key=g?C.C0.ESC+"[1;"+(g+1)+"P":C.C0.ESC+"OP";break;case 113:y.key=g?C.C0.ESC+"[1;"+(g+1)+"Q":C.C0.ESC+"OQ";break;case 114:y.key=g?C.C0.ESC+"[1;"+(g+1)+"R":C.C0.ESC+"OR";break;case 115:y.key=g?C.C0.ESC+"[1;"+(g+1)+"S":C.C0.ESC+"OS";break;case 116:y.key=g?C.C0.ESC+"[15;"+(g+1)+"~":C.C0.ESC+"[15~";break;case 117:y.key=g?C.C0.ESC+"[17;"+(g+1)+"~":C.C0.ESC+"[17~";break;case 118:y.key=g?C.C0.ESC+"[18;"+(g+1)+"~":C.C0.ESC+"[18~";break;case 119:y.key=g?C.C0.ESC+"[19;"+(g+1)+"~":C.C0.ESC+"[19~";break;case 120:y.key=g?C.C0.ESC+"[20;"+(g+1)+"~":C.C0.ESC+"[20~";break;case 121:y.key=g?C.C0.ESC+"[21;"+(g+1)+"~":C.C0.ESC+"[21~";break;case 122:y.key=g?C.C0.ESC+"[23;"+(g+1)+"~":C.C0.ESC+"[23~";break;case 123:y.key=g?C.C0.ESC+"[24;"+(g+1)+"~":C.C0.ESC+"[24~";break;default:if(!N.ctrlKey||N.shiftKey||N.altKey||N.metaKey)if(O&&!P||!N.altKey||N.metaKey)!O||N.altKey||N.ctrlKey||N.shiftKey||!N.metaKey?N.key&&!N.ctrlKey&&!N.altKey&&!N.metaKey&&N.keyCode>=48&&1===N.key.length?y.key=N.key:N.key&&N.ctrlKey&&"_"===N.key&&(y.key=C.C0.US):65===N.keyCode&&(y.type=1);else{var T=_[N.keyCode],M=T&&T[N.shiftKey?1:0];M?y.key=C.C0.ESC+M:N.keyCode>=65&&N.keyCode<=90&&(y.key=C.C0.ESC+String.fromCharCode(N.ctrlKey?N.keyCode-64:N.keyCode+32))}else N.keyCode>=65&&N.keyCode<=90?y.key=String.fromCharCode(N.keyCode-64):32===N.keyCode?y.key=C.C0.NUL:N.keyCode>=51&&N.keyCode<=55?y.key=String.fromCharCode(N.keyCode-51+27):56===N.keyCode?y.key=C.C0.DEL:219===N.keyCode?y.key=C.C0.ESC:220===N.keyCode?y.key=C.C0.FS:221===N.keyCode&&(y.key=C.C0.GS)}return y}},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(_,N,D){void 0===N&&(N=0),void 0===D&&(D=_.length);for(var O="",P=N;P<D;++P){var y=_[P];y>65535?(y-=65536,O+=String.fromCharCode(55296+(y>>10))+String.fromCharCode(y%1024+56320)):O+=String.fromCharCode(y)}return O};var R=function(){function _(){this._interim=0}return _.prototype.clear=function(){this._interim=0},_.prototype.decode=function(N,D){var O=N.length;if(!O)return 0;var P=0,y=0;this._interim&&(56320<=(M=N.charCodeAt(y++))&&M<=57343?D[P++]=1024*(this._interim-55296)+M-56320+65536:(D[P++]=this._interim,D[P++]=M),this._interim=0);for(var g=y;g<O;++g){var T=N.charCodeAt(g);if(55296<=T&&T<=56319){if(++g>=O)return this._interim=T,P;var M;56320<=(M=N.charCodeAt(g))&&M<=57343?D[P++]=1024*(T-55296)+M-56320+65536:(D[P++]=T,D[P++]=M)}else 65279!==T&&(D[P++]=T)}return P},_}();w.StringToUtf32=R;var C=function(){function _(){this.interim=new Uint8Array(3)}return _.prototype.clear=function(){this.interim.fill(0)},_.prototype.decode=function(N,D){var O=N.length;if(!O)return 0;var P,y,g,T,M=0,E=0,x=0;if(this.interim[0]){var S=!1,A=this.interim[0];A&=192==(224&A)?31:224==(240&A)?15:7;for(var L=0,j=void 0;(j=63&this.interim[++L])&&L<4;)A<<=6,A|=j;for(var K=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,z=K-L;x<z;){if(x>=O)return 0;if(128!=(192&(j=N[x++]))){x--,S=!0;break}this.interim[L++]=j,A<<=6,A|=63&j}S||(2===K?A<128?x--:D[M++]=A:3===K?A<2048||A>=55296&&A<=57343||65279===A||(D[M++]=A):A<65536||A>1114111||(D[M++]=A)),this.interim.fill(0)}for(var Q=O-4,ae=x;ae<O;){for(;!(!(ae<Q)||128&(P=N[ae])||128&(y=N[ae+1])||128&(g=N[ae+2])||128&(T=N[ae+3]));)D[M++]=P,D[M++]=y,D[M++]=g,D[M++]=T,ae+=4;if((P=N[ae++])<128)D[M++]=P;else if(192==(224&P)){if(ae>=O)return this.interim[0]=P,M;if(128!=(192&(y=N[ae++]))){ae--;continue}if((E=(31&P)<<6|63&y)<128){ae--;continue}D[M++]=E}else if(224==(240&P)){if(ae>=O)return this.interim[0]=P,M;if(128!=(192&(y=N[ae++]))){ae--;continue}if(ae>=O)return this.interim[0]=P,this.interim[1]=y,M;if(128!=(192&(g=N[ae++]))){ae--;continue}if((E=(15&P)<<12|(63&y)<<6|63&g)<2048||E>=55296&&E<=57343||65279===E)continue;D[M++]=E}else if(240==(248&P)){if(ae>=O)return this.interim[0]=P,M;if(128!=(192&(y=N[ae++]))){ae--;continue}if(ae>=O)return this.interim[0]=P,this.interim[1]=y,M;if(128!=(192&(g=N[ae++]))){ae--;continue}if(ae>=O)return this.interim[0]=P,this.interim[1]=y,this.interim[2]=g,M;if(128!=(192&(T=N[ae++]))){ae--;continue}if((E=(7&P)<<18|(63&y)<<12|(63&g)<<6|63&T)<65536||E>1114111)continue;D[M++]=E}}return M},_}();w.Utf8ToUtf32=C},225:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.UnicodeV6=void 0;var C,_=R(8273),N=[[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]],O=function(){function P(){if(this.version="6",!C){C=new Uint8Array(65536),_.fill(C,1),C[0]=0,_.fill(C,0,1,32),_.fill(C,0,127,160),_.fill(C,2,4352,4448),C[9001]=2,C[9002]=2,_.fill(C,2,11904,42192),C[12351]=1,_.fill(C,2,44032,55204),_.fill(C,2,63744,64256),_.fill(C,2,65040,65050),_.fill(C,2,65072,65136),_.fill(C,2,65280,65377),_.fill(C,2,65504,65511);for(var y=0;y<N.length;++y)_.fill(C,0,N[y][0],N[y][1]+1)}}return P.prototype.wcwidth=function(y){return y<32?0:y<127?1:y<65536?C[y]:function(g,T){var M,E=0,x=T.length-1;if(g<T[0][0]||g>T[x][1])return!1;for(;x>=E;)if(g>T[M=E+x>>1][1])E=M+1;else{if(!(g<T[M][0]))return!0;x=M-1}return!1}(y,D)?0:y>=131072&&y<=196605||y>=196608&&y<=262141?2:1},P}();w.UnicodeV6=O},5981:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.WriteBuffer=void 0;var R="undefined"==typeof queueMicrotask?function(_){Promise.resolve().then(_)}:queueMicrotask,C=function(){function _(N){this._action=N,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return _.prototype.writeSync=function(N,D){if(void 0!==D&&this._syncCalls>D)this._syncCalls=0;else if(this._pendingData+=N.length,this._writeBuffer.push(N),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var O;for(this._isSyncWriting=!0;O=this._writeBuffer.shift();){this._action(O);var P=this._callbacks.shift();P&&P()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},_.prototype.write=function(N,D){var O=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 O._innerWrite()})),this._pendingData+=N.length,this._writeBuffer.push(N),this._callbacks.push(D)},_.prototype._innerWrite=function(N,D){var O=this;void 0===N&&(N=0),void 0===D&&(D=!0);for(var P=N||Date.now();this._writeBuffer.length>this._bufferOffset;){var y=this._writeBuffer[this._bufferOffset],g=this._action(y,D);if(g)return void g.catch(function(M){return R(function(){throw M}),Promise.resolve(!1)}).then(function(M){return Date.now()-P>=12?setTimeout(function(){return O._innerWrite(0,M)}):O._innerWrite(P,M)});var T=this._callbacks[this._bufferOffset];if(T&&T(),this._bufferOffset++,this._pendingData-=y.length,Date.now()-P>=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 O._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0)},_}();w.WriteBuffer=C},5770:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.PAYLOAD_LIMIT=void 0,w.PAYLOAD_LIMIT=1e7},6351:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.DcsHandler=w.DcsParser=void 0;var C=R(482),_=R(8742),N=R(5770),D=[],O=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,M){void 0===this._handlers[T]&&(this._handlers[T]=[]);var E=this._handlers[T];return E.push(M),{dispose:function(){var S=E.indexOf(M);-1!==S&&E.splice(S,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,M){if(this.reset(),this._ident=T,this._active=this._handlers[T]||D,this._active.length)for(var E=this._active.length-1;E>=0;E--)this._active[E].hook(M);else this._handlerFb(this._ident,"HOOK",M)},g.prototype.put=function(T,M,E){if(this._active.length)for(var x=this._active.length-1;x>=0;x--)this._active[x].put(T,M,E);else this._handlerFb(this._ident,"PUT",C.utf32ToString(T,M,E))},g.prototype.unhook=function(T,M){if(void 0===M&&(M=!0),this._active.length){var E=!1,x=this._active.length-1,S=!1;if(this._stack.paused&&(x=this._stack.loopPosition-1,E=M,S=this._stack.fallThrough,this._stack.paused=!1),!S&&!1===E){for(;x>=0&&!0!==(E=this._active[x].unhook(T));x--)if(E instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!1,E;x--}for(;x>=0;x--)if((E=this._active[x].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!0,E}else this._handlerFb(this._ident,"UNHOOK",T);this._active=D,this._ident=0},g}();w.DcsParser=O;var P=new _.Params;P.addParam(0);var y=function(){function g(T){this._handler=T,this._data="",this._params=P,this._hitLimit=!1}return g.prototype.hook=function(T){this._params=T.length>1||T.params[0]?T.clone():P,this._data="",this._hitLimit=!1},g.prototype.put=function(T,M,E){this._hitLimit||(this._data+=C.utf32ToString(T,M,E),this._data.length>N.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},g.prototype.unhook=function(T){var M=this,E=!1;if(this._hitLimit)E=!1;else if(T&&(E=this._handler(this._data,this._params))instanceof Promise)return E.then(function(x){return M._params=P,M._data="",M._hitLimit=!1,x});return this._params=P,this._data="",this._hitLimit=!1,E},g}();w.DcsHandler=y},2015:function(Z,w,R){var C,_=this&&this.__extends||(C=function(x,S){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,L){A.__proto__=L}||function(A,L){for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&(A[j]=L[j])})(x,S)},function(E,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function S(){this.constructor=E}C(E,x),E.prototype=null===x?Object.create(x):(S.prototype=x.prototype,new S)});Object.defineProperty(w,"__esModule",{value:!0}),w.EscapeSequenceParser=w.VT500_TRANSITION_TABLE=w.TransitionTable=void 0;var N=R(844),D=R(8273),O=R(8742),P=R(6242),y=R(6351),g=function(){function E(x){this.table=new Uint8Array(x)}return E.prototype.setDefault=function(x,S){D.fill(this.table,x<<4|S)},E.prototype.add=function(x,S,A,L){this.table[S<<8|x]=A<<4|L},E.prototype.addMany=function(x,S,A,L){for(var j=0;j<x.length;j++)this.table[S<<8|x[j]]=A<<4|L},E}();w.TransitionTable=g;var T=160;w.VT500_TRANSITION_TABLE=function(){var E=new g(4095),x=Array.apply(null,Array(256)).map(function(z,Q){return Q}),S=function(Q,ae){return x.slice(Q,ae)},A=S(32,127),L=S(0,24);L.push(25),L.push.apply(L,S(28,32));var j,K=S(0,14);for(j in E.setDefault(1,0),E.addMany(A,0,2,0),K)E.addMany([24,26,153,154],j,3,0),E.addMany(S(128,144),j,3,0),E.addMany(S(144,152),j,3,0),E.add(156,j,0,0),E.add(27,j,11,1),E.add(157,j,4,8),E.addMany([152,158,159],j,0,7),E.add(155,j,11,3),E.add(144,j,11,9);return E.addMany(L,0,3,0),E.addMany(L,1,3,1),E.add(127,1,0,1),E.addMany(L,8,0,8),E.addMany(L,3,3,3),E.add(127,3,0,3),E.addMany(L,4,3,4),E.add(127,4,0,4),E.addMany(L,6,3,6),E.addMany(L,5,3,5),E.add(127,5,0,5),E.addMany(L,2,3,2),E.add(127,2,0,2),E.add(93,1,4,8),E.addMany(A,8,5,8),E.add(127,8,5,8),E.addMany([156,27,24,26,7],8,6,0),E.addMany(S(28,32),8,0,8),E.addMany([88,94,95],1,0,7),E.addMany(A,7,0,7),E.addMany(L,7,0,7),E.add(156,7,0,0),E.add(127,7,0,7),E.add(91,1,11,3),E.addMany(S(64,127),3,7,0),E.addMany(S(48,60),3,8,4),E.addMany([60,61,62,63],3,9,4),E.addMany(S(48,60),4,8,4),E.addMany(S(64,127),4,7,0),E.addMany([60,61,62,63],4,0,6),E.addMany(S(32,64),6,0,6),E.add(127,6,0,6),E.addMany(S(64,127),6,0,0),E.addMany(S(32,48),3,9,5),E.addMany(S(32,48),5,9,5),E.addMany(S(48,64),5,0,6),E.addMany(S(64,127),5,7,0),E.addMany(S(32,48),4,9,5),E.addMany(S(32,48),1,9,2),E.addMany(S(32,48),2,9,2),E.addMany(S(48,127),2,10,0),E.addMany(S(48,80),1,10,0),E.addMany(S(81,88),1,10,0),E.addMany([89,90,92],1,10,0),E.addMany(S(96,127),1,10,0),E.add(80,1,11,9),E.addMany(L,9,0,9),E.add(127,9,0,9),E.addMany(S(28,32),9,0,9),E.addMany(S(32,48),9,9,12),E.addMany(S(48,60),9,8,10),E.addMany([60,61,62,63],9,9,10),E.addMany(L,11,0,11),E.addMany(S(32,128),11,0,11),E.addMany(S(28,32),11,0,11),E.addMany(L,10,0,10),E.add(127,10,0,10),E.addMany(S(28,32),10,0,10),E.addMany(S(48,60),10,8,10),E.addMany([60,61,62,63],10,0,11),E.addMany(S(32,48),10,9,12),E.addMany(L,12,0,12),E.add(127,12,0,12),E.addMany(S(28,32),12,0,12),E.addMany(S(32,48),12,9,12),E.addMany(S(48,64),12,0,11),E.addMany(S(64,127),12,12,13),E.addMany(S(64,127),10,12,13),E.addMany(S(64,127),9,12,13),E.addMany(L,13,13,13),E.addMany(A,13,13,13),E.add(127,13,0,13),E.addMany([27,156,24,26],13,14,0),E.add(T,0,2,0),E.add(T,8,5,8),E.add(T,6,0,6),E.add(T,11,0,11),E.add(T,13,13,13),E}();var M=function(E){function x(S){void 0===S&&(S=w.VT500_TRANSITION_TABLE);var A=E.call(this)||this;return A._transitions=S,A._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},A.initialState=0,A.currentState=A.initialState,A._params=new O.Params,A._params.addParam(0),A._collect=0,A.precedingCodepoint=0,A._printHandlerFb=function(L,j,K){},A._executeHandlerFb=function(L){},A._csiHandlerFb=function(L,j){},A._escHandlerFb=function(L){},A._errorHandlerFb=function(L){return L},A._printHandler=A._printHandlerFb,A._executeHandlers=Object.create(null),A._csiHandlers=Object.create(null),A._escHandlers=Object.create(null),A._oscParser=new P.OscParser,A._dcsParser=new y.DcsParser,A._errorHandler=A._errorHandlerFb,A.registerEscHandler({final:"\\"},function(){return!0}),A}return _(x,E),x.prototype._identifier=function(S,A){void 0===A&&(A=[64,126]);var L=0;if(S.prefix){if(S.prefix.length>1)throw new Error("only one byte as prefix supported");if((L=S.prefix.charCodeAt(0))&&60>L||L>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(S.intermediates){if(S.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var j=0;j<S.intermediates.length;++j){var K=S.intermediates.charCodeAt(j);if(32>K||K>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");L<<=8,L|=K}}if(1!==S.final.length)throw new Error("final must be a single byte");var z=S.final.charCodeAt(0);if(A[0]>z||z>A[1])throw new Error("final must be in range "+A[0]+" .. "+A[1]);return(L<<=8)|z},x.prototype.identToString=function(S){for(var A=[];S;)A.push(String.fromCharCode(255&S)),S>>=8;return A.reverse().join("")},x.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},x.prototype.setPrintHandler=function(S){this._printHandler=S},x.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},x.prototype.registerEscHandler=function(S,A){var L=this._identifier(S,[48,126]);void 0===this._escHandlers[L]&&(this._escHandlers[L]=[]);var j=this._escHandlers[L];return j.push(A),{dispose:function(){var z=j.indexOf(A);-1!==z&&j.splice(z,1)}}},x.prototype.clearEscHandler=function(S){this._escHandlers[this._identifier(S,[48,126])]&&delete this._escHandlers[this._identifier(S,[48,126])]},x.prototype.setEscHandlerFallback=function(S){this._escHandlerFb=S},x.prototype.setExecuteHandler=function(S,A){this._executeHandlers[S.charCodeAt(0)]=A},x.prototype.clearExecuteHandler=function(S){this._executeHandlers[S.charCodeAt(0)]&&delete this._executeHandlers[S.charCodeAt(0)]},x.prototype.setExecuteHandlerFallback=function(S){this._executeHandlerFb=S},x.prototype.registerCsiHandler=function(S,A){var L=this._identifier(S);void 0===this._csiHandlers[L]&&(this._csiHandlers[L]=[]);var j=this._csiHandlers[L];return j.push(A),{dispose:function(){var z=j.indexOf(A);-1!==z&&j.splice(z,1)}}},x.prototype.clearCsiHandler=function(S){this._csiHandlers[this._identifier(S)]&&delete this._csiHandlers[this._identifier(S)]},x.prototype.setCsiHandlerFallback=function(S){this._csiHandlerFb=S},x.prototype.registerDcsHandler=function(S,A){return this._dcsParser.registerHandler(this._identifier(S),A)},x.prototype.clearDcsHandler=function(S){this._dcsParser.clearHandler(this._identifier(S))},x.prototype.setDcsHandlerFallback=function(S){this._dcsParser.setHandlerFallback(S)},x.prototype.registerOscHandler=function(S,A){return this._oscParser.registerHandler(S,A)},x.prototype.clearOscHandler=function(S){this._oscParser.clearHandler(S)},x.prototype.setOscHandlerFallback=function(S){this._oscParser.setHandlerFallback(S)},x.prototype.setErrorHandler=function(S){this._errorHandler=S},x.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},x.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=[])},x.prototype._preserveStack=function(S,A,L,j,K){this._parseStack.state=S,this._parseStack.handlers=A,this._parseStack.handlerPos=L,this._parseStack.transition=j,this._parseStack.chunkPos=K},x.prototype.parse=function(S,A,L){var j,K=0,z=0,Q=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,Q=this._parseStack.chunkPos+1;else{if(void 0===L||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var ae=this._parseStack.handlers,ie=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===L&&ie>-1)for(;ie>=0&&!0!==(j=ae[ie](this._params));ie--)if(j instanceof Promise)return this._parseStack.handlerPos=ie,j;this._parseStack.handlers=[];break;case 4:if(!1===L&&ie>-1)for(;ie>=0&&!0!==(j=ae[ie]());ie--)if(j instanceof Promise)return this._parseStack.handlerPos=ie,j;this._parseStack.handlers=[];break;case 6:if(j=this._dcsParser.unhook(24!==(K=S[this._parseStack.chunkPos])&&26!==K,L))return j;27===K&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(j=this._oscParser.end(24!==(K=S[this._parseStack.chunkPos])&&26!==K,L))return j;27===K&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,Q=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var se=Q;se<A;++se){switch((z=this._transitions.table[this.currentState<<8|((K=S[se])<160?K:T)])>>4){case 2:for(var ue=se+1;;++ue){if(ue>=A||(K=S[ue])<32||K>126&&K<T){this._printHandler(S,se,ue),se=ue-1;break}if(++ue>=A||(K=S[ue])<32||K>126&&K<T){this._printHandler(S,se,ue),se=ue-1;break}if(++ue>=A||(K=S[ue])<32||K>126&&K<T){this._printHandler(S,se,ue),se=ue-1;break}if(++ue>=A||(K=S[ue])<32||K>126&&K<T){this._printHandler(S,se,ue),se=ue-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:se,code:K,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var de=(ae=this._csiHandlers[this._collect<<8|K])?ae.length-1:-1;de>=0&&!0!==(j=ae[de](this._params));de--)if(j instanceof Promise)return this._preserveStack(3,ae,de,z,se),j;de<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(++se<A&&(K=S[se])>47&&K<60);se--;break;case 9:this._collect<<=8,this._collect|=K;break;case 10:for(var oe=this._escHandlers[this._collect<<8|K],$=oe?oe.length-1:-1;$>=0&&!0!==(j=oe[$]());$--)if(j instanceof Promise)return this._preserveStack(4,oe,$,z,se),j;$<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 ye=se+1;;++ye)if(ye>=A||24===(K=S[ye])||26===K||27===K||K>127&&K<T){this._dcsParser.put(S,se,ye),se=ye-1;break}break;case 14:if(j=this._dcsParser.unhook(24!==K&&26!==K))return this._preserveStack(6,[],0,z,se),j;27===K&&(z|=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 ve=se+1;;ve++)if(ve>=A||(K=S[ve])<32||K>127&&K<T){this._oscParser.put(S,se,ve),se=ve-1;break}break;case 6:if(j=this._oscParser.end(24!==K&&26!==K))return this._preserveStack(5,[],0,z,se),j;27===K&&(z|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&z}},x}(N.Disposable);w.EscapeSequenceParser=M},6242:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.OscHandler=w.OscParser=void 0;var C=R(5770),_=R(482),N=[],D=function(){function P(){this._state=0,this._active=N,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return P.prototype.registerHandler=function(y,g){void 0===this._handlers[y]&&(this._handlers[y]=[]);var T=this._handlers[y];return T.push(g),{dispose:function(){var E=T.indexOf(g);-1!==E&&T.splice(E,1)}}},P.prototype.clearHandler=function(y){this._handlers[y]&&delete this._handlers[y]},P.prototype.setHandlerFallback=function(y){this._handlerFb=y},P.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=N},P.prototype.reset=function(){if(2===this._state)for(var y=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;y>=0;--y)this._active[y].end(!1);this._stack.paused=!1,this._active=N,this._id=-1,this._state=0},P.prototype._start=function(){if(this._active=this._handlers[this._id]||N,this._active.length)for(var y=this._active.length-1;y>=0;y--)this._active[y].start();else this._handlerFb(this._id,"START")},P.prototype._put=function(y,g,T){if(this._active.length)for(var M=this._active.length-1;M>=0;M--)this._active[M].put(y,g,T);else this._handlerFb(this._id,"PUT",_.utf32ToString(y,g,T))},P.prototype.start=function(){this.reset(),this._state=1},P.prototype.put=function(y,g,T){if(3!==this._state){if(1===this._state)for(;g<T;){var M=y[g++];if(59===M){this._state=2,this._start();break}if(M<48||57<M)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+M-48}2===this._state&&T-g>0&&this._put(y,g,T)}},P.prototype.end=function(y,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,M=this._active.length-1,E=!1;if(this._stack.paused&&(M=this._stack.loopPosition-1,T=g,E=this._stack.fallThrough,this._stack.paused=!1),!E&&!1===T){for(;M>=0&&!0!==(T=this._active[M].end(y));M--)if(T instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=M,this._stack.fallThrough=!1,T;M--}for(;M>=0;M--)if((T=this._active[M].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=M,this._stack.fallThrough=!0,T}else this._handlerFb(this._id,"END",y);this._active=N,this._id=-1,this._state=0}},P}();w.OscParser=D;var O=function(){function P(y){this._handler=y,this._data="",this._hitLimit=!1}return P.prototype.start=function(){this._data="",this._hitLimit=!1},P.prototype.put=function(y,g,T){this._hitLimit||(this._data+=_.utf32ToString(y,g,T),this._data.length>C.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},P.prototype.end=function(y){var g=this,T=!1;if(this._hitLimit)T=!1;else if(y&&(T=this._handler(this._data))instanceof Promise)return T.then(function(M){return g._data="",g._hitLimit=!1,M});return this._data="",this._hitLimit=!1,T},P}();w.OscHandler=O},8742:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.Params=void 0;var R=2147483647,C=function(){function _(N,D){if(void 0===N&&(N=32),void 0===D&&(D=32),this.maxLength=N,this.maxSubParamsLength=D,D>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(N),this.length=0,this._subParams=new Int32Array(D),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(N),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return _.fromArray=function(N){var D=new _;if(!N.length)return D;for(var O=N[0]instanceof Array?1:0;O<N.length;++O){var P=N[O];if(P instanceof Array)for(var y=0;y<P.length;++y)D.addSubParam(P[y]);else D.addParam(P)}return D},_.prototype.clone=function(){var N=new _(this.maxLength,this.maxSubParamsLength);return N.params.set(this.params),N.length=this.length,N._subParams.set(this._subParams),N._subParamsLength=this._subParamsLength,N._subParamsIdx.set(this._subParamsIdx),N._rejectDigits=this._rejectDigits,N._rejectSubDigits=this._rejectSubDigits,N._digitIsSub=this._digitIsSub,N},_.prototype.toArray=function(){for(var N=[],D=0;D<this.length;++D){N.push(this.params[D]);var O=this._subParamsIdx[D]>>8,P=255&this._subParamsIdx[D];P-O>0&&N.push(Array.prototype.slice.call(this._subParams,O,P))}return N},_.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},_.prototype.addParam=function(N){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(N<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=N>R?R:N}},_.prototype.addSubParam=function(N){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(N<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=N>R?R:N,this._subParamsIdx[this.length-1]++}},_.prototype.hasSubParams=function(N){return(255&this._subParamsIdx[N])-(this._subParamsIdx[N]>>8)>0},_.prototype.getSubParams=function(N){var D=this._subParamsIdx[N]>>8,O=255&this._subParamsIdx[N];return O-D>0?this._subParams.subarray(D,O):null},_.prototype.getSubParamsAll=function(){for(var N={},D=0;D<this.length;++D){var O=this._subParamsIdx[D]>>8,P=255&this._subParamsIdx[D];P-O>0&&(N[D]=this._subParams.slice(O,P))}return N},_.prototype.addDigit=function(N){var D;if(!(this._rejectDigits||!(D=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var O=this._digitIsSub?this._subParams:this.params,P=O[D-1];O[D-1]=~P?Math.min(10*P+N,R):N}},_}();w.Params=C},744:function(Z,w,R){var C,_=this&&this.__extends||(C=function(E,x){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,A){S.__proto__=A}||function(S,A){for(var L in A)Object.prototype.hasOwnProperty.call(A,L)&&(S[L]=A[L])})(E,x)},function(M,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=M}C(M,E),M.prototype=null===E?Object.create(E):(x.prototype=E.prototype,new x)}),N=this&&this.__decorate||function(M,E,x,S){var A,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(M,E,x,S);else for(var K=M.length-1;K>=0;K--)(A=M[K])&&(j=(L<3?A(j):L>3?A(E,x,j):A(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},D=this&&this.__param||function(M,E){return function(x,S){E(x,S,M)}};Object.defineProperty(w,"__esModule",{value:!0}),w.BufferService=w.MINIMUM_ROWS=w.MINIMUM_COLS=void 0;var O=R(2585),P=R(5295),y=R(8460),g=R(844);w.MINIMUM_COLS=2,w.MINIMUM_ROWS=1;var T=function(M){function E(x){var S=M.call(this)||this;return S._optionsService=x,S.isUserScrolling=!1,S._onResize=new y.EventEmitter,S._onScroll=new y.EventEmitter,S.cols=Math.max(x.options.cols,w.MINIMUM_COLS),S.rows=Math.max(x.options.rows,w.MINIMUM_ROWS),S.buffers=new P.BufferSet(x,S),S}return _(E,M),Object.defineProperty(E.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){M.prototype.dispose.call(this),this.buffers.dispose()},E.prototype.resize=function(x,S){this.cols=x,this.rows=S,this.buffers.resize(x,S),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:x,rows:S})},E.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},E.prototype.scroll=function(x,S){void 0===S&&(S=!1);var A,L=this.buffer;(A=this._cachedBlankLine)&&A.length===this.cols&&A.getFg(0)===x.fg&&A.getBg(0)===x.bg||(A=L.getBlankLine(x,S),this._cachedBlankLine=A),A.isWrapped=S;var j=L.ybase+L.scrollTop,K=L.ybase+L.scrollBottom;if(0===L.scrollTop){var z=L.lines.isFull;K===L.lines.length-1?z?L.lines.recycle().copyFrom(A):L.lines.push(A.clone()):L.lines.splice(K+1,0,A.clone()),z?this.isUserScrolling&&(L.ydisp=Math.max(L.ydisp-1,0)):(L.ybase++,this.isUserScrolling||L.ydisp++)}else L.lines.shiftElements(j+1,K-j+1-1,-1),L.lines.set(K,A.clone());this.isUserScrolling||(L.ydisp=L.ybase),this._onScroll.fire(L.ydisp)},E.prototype.scrollLines=function(x,S,A){var L=this.buffer;if(x<0){if(0===L.ydisp)return;this.isUserScrolling=!0}else x+L.ydisp>=L.ybase&&(this.isUserScrolling=!1);var j=L.ydisp;L.ydisp=Math.max(Math.min(L.ydisp+x,L.ybase),0),j!==L.ydisp&&(S||this._onScroll.fire(L.ydisp))},E.prototype.scrollPages=function(x){this.scrollLines(x*(this.rows-1))},E.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},E.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},E.prototype.scrollToLine=function(x){var S=x-this.buffer.ydisp;0!==S&&this.scrollLines(S)},N([D(0,O.IOptionsService)],E)}(g.Disposable);w.BufferService=T},7994:function(Z,w){Object.defineProperty(w,"__esModule",{value:!0}),w.CharsetService=void 0;var R=function(){function C(){this.glevel=0,this._charsets=[]}return C.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},C.prototype.setgLevel=function(_){this.glevel=_,this.charset=this._charsets[_]},C.prototype.setgCharset=function(_,N){this._charsets[_]=N,this.glevel===_&&(this.charset=N)},C}();w.CharsetService=R},1753:function(Z,w,R){var C=this&&this.__decorate||function(M,E,x,S){var A,L=arguments.length,j=L<3?E:null===S?S=Object.getOwnPropertyDescriptor(E,x):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)j=Reflect.decorate(M,E,x,S);else for(var K=M.length-1;K>=0;K--)(A=M[K])&&(j=(L<3?A(j):L>3?A(E,x,j):A(E,x))||j);return L>3&&j&&Object.defineProperty(E,x,j),j},_=this&&this.__param||function(M,E){return function(x,S){E(x,S,M)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CoreMouseService=void 0;var N=R(2585),D=R(8460),O={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(E){return 4!==E.button&&1===E.action&&(E.ctrl=!1,E.alt=!1,E.shift=!1,!0)}},VT200:{events:19,restrict:function(E){return 32!==E.action}},DRAG:{events:23,restrict:function(E){return 32!==E.action||3!==E.button}},ANY:{events:31,restrict:function(E){return!0}}};function P(M,E){var x=(M.ctrl?16:0)|(M.shift?4:0)|(M.alt?8:0);return 4===M.button?(x|=64,x|=M.action):(x|=3&M.button,4&M.button&&(x|=64),8&M.button&&(x|=128),32===M.action?x|=32:0!==M.action||E||(x|=3)),x}var y=String.fromCharCode,g={DEFAULT:function(E){var x=[P(E,!1)+32,E.col+32,E.row+32];return x[0]>255||x[1]>255||x[2]>255?"":"\x1b[M"+y(x[0])+y(x[1])+y(x[2])},SGR:function(E){var x=0===E.action&&4!==E.button?"m":"M";return"\x1b[<"+P(E,!0)+";"+E.col+";"+E.row+x}},T=function(){function M(E,x){this._bufferService=E,this._coreService=x,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new D.EventEmitter,this._lastEvent=null;for(var S=0,A=Object.keys(O);S<A.length;S++){var L=A[S];this.addProtocol(L,O[L])}for(var j=0,K=Object.keys(g);j<K.length;j++){var z=K[j];this.addEncoding(z,g[z])}this.reset()}return M.prototype.addProtocol=function(E,x){this._protocols[E]=x},M.prototype.addEncoding=function(E,x){this._encodings[E]=x},Object.defineProperty(M.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(x){if(!this._protocols[x])throw new Error('unknown protocol "'+x+'"');this._activeProtocol=x,this._onProtocolChange.fire(this._protocols[x].events)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(x){if(!this._encodings[x])throw new Error('unknown encoding "'+x+'"');this._activeEncoding=x},enumerable:!1,configurable:!0}),M.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(M.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),M.prototype.triggerMouseEvent=function(E){if(E.col<0||E.col>=this._bufferService.cols||E.row<0||E.row>=this._bufferService.rows||4===E.button&&32===E.action||3===E.button&&32!==E.action||4!==E.button&&(2===E.action||3===E.action)||(E.col++,E.row++,32===E.action&&this._lastEvent&&this._compareEvents(this._lastEvent,E))||!this._protocols[this._activeProtocol].restrict(E))return!1;var x=this._encodings[this._activeEncoding](E);return x&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(x):this._coreService.triggerDataEvent(x,!0)),this._lastEvent=E,!0},M.prototype.explainEvents=function(E){return{down:!!(1&E),up:!!(2&E),drag:!!(4&E),move:!!(8&E),wheel:!!(16&E)}},M.prototype._compareEvents=function(E,x){return E.col===x.col&&E.row===x.row&&E.button===x.button&&E.action===x.action&&E.ctrl===x.ctrl&&E.alt===x.alt&&E.shift===x.shift},C([_(0,N.IBufferService),_(1,N.ICoreService)],M)}();w.CoreMouseService=T},6975:function(Z,w,R){var C,_=this&&this.__extends||(C=function(S,A){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,j){L.__proto__=j}||function(L,j){for(var K in j)Object.prototype.hasOwnProperty.call(j,K)&&(L[K]=j[K])})(S,A)},function(x,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function A(){this.constructor=x}C(x,S),x.prototype=null===S?Object.create(S):(A.prototype=S.prototype,new A)}),N=this&&this.__decorate||function(x,S,A,L){var j,K=arguments.length,z=K<3?S:null===L?L=Object.getOwnPropertyDescriptor(S,A):L;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(x,S,A,L);else for(var Q=x.length-1;Q>=0;Q--)(j=x[Q])&&(z=(K<3?j(z):K>3?j(S,A,z):j(S,A))||z);return K>3&&z&&Object.defineProperty(S,A,z),z},D=this&&this.__param||function(x,S){return function(A,L){S(A,L,x)}};Object.defineProperty(w,"__esModule",{value:!0}),w.CoreService=void 0;var O=R(2585),P=R(8460),y=R(1439),g=R(844),T=Object.freeze({insertMode:!1}),M=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),E=function(x){function S(A,L,j,K){var z=x.call(this)||this;return z._bufferService=L,z._logService=j,z._optionsService=K,z.isCursorInitialized=!1,z.isCursorHidden=!1,z._onData=z.register(new P.EventEmitter),z._onUserInput=z.register(new P.EventEmitter),z._onBinary=z.register(new P.EventEmitter),z._scrollToBottom=A,z.register({dispose:function(){return z._scrollToBottom=void 0}}),z.modes=y.clone(T),z.decPrivateModes=y.clone(M),z}return _(S,x),Object.defineProperty(S.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),S.prototype.reset=function(){this.modes=y.clone(T),this.decPrivateModes=y.clone(M)},S.prototype.triggerDataEvent=function(A,L){if(void 0===L&&(L=!1),!this._optionsService.options.disableStdin){var j=this._bufferService.buffer;j.ybase!==j.ydisp&&this._scrollToBottom(),L&&this._onUserInput.fire(),this._logService.debug('sending data "'+A+'"',function(){return A.split("").map(function(K){return K.charCodeAt(0)})}),this._onData.fire(A)}},S.prototype.triggerBinaryEvent=function(A){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+A+'"',function(){return A.split("").map(function(L){return L.charCodeAt(0)})}),this._onBinary.fire(A))},N([D(1,O.IBufferService),D(2,O.ILogService),D(3,O.IOptionsService)],S)}(g.Disposable);w.CoreService=E},3730:function(Z,w,R){var C=this&&this.__decorate||function(O,P,y,g){var T,M=arguments.length,E=M<3?P:null===g?g=Object.getOwnPropertyDescriptor(P,y):g;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)E=Reflect.decorate(O,P,y,g);else for(var x=O.length-1;x>=0;x--)(T=O[x])&&(E=(M<3?T(E):M>3?T(P,y,E):T(P,y))||E);return M>3&&E&&Object.defineProperty(P,y,E),E},_=this&&this.__param||function(O,P){return function(y,g){P(y,g,O)}};Object.defineProperty(w,"__esModule",{value:!0}),w.DirtyRowService=void 0;var N=R(2585),D=function(){function O(P){this._bufferService=P,this.clearRange()}return Object.defineProperty(O.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),O.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},O.prototype.markDirty=function(P){P<this._start?this._start=P:P>this._end&&(this._end=P)},O.prototype.markRangeDirty=function(P,y){if(P>y){var g=P;P=y,y=g}P<this._start&&(this._start=P),y>this._end&&(this._end=y)},O.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},C([_(0,N.IBufferService)],O)}();w.DirtyRowService=D},4348:function(Z,w,R){var C=this&&this.__spreadArray||function(P,y){for(var g=0,T=y.length,M=P.length;g<T;g++,M++)P[M]=y[g];return P};Object.defineProperty(w,"__esModule",{value:!0}),w.InstantiationService=w.ServiceCollection=void 0;var _=R(2585),N=R(8343),D=function(){function P(){for(var y=[],g=0;g<arguments.length;g++)y[g]=arguments[g];this._entries=new Map;for(var T=0,M=y;T<M.length;T++){var E=M[T];this.set(E[0],E[1])}}return P.prototype.set=function(y,g){var T=this._entries.get(y);return this._entries.set(y,g),T},P.prototype.forEach=function(y){this._entries.forEach(function(g,T){return y(T,g)})},P.prototype.has=function(y){return this._entries.has(y)},P.prototype.get=function(y){return this._entries.get(y)},P}();w.ServiceCollection=D;var O=function(){function P(){this._services=new D,this._services.set(_.IInstantiationService,this)}return P.prototype.setService=function(y,g){this._services.set(y,g)},P.prototype.getService=function(y){return this._services.get(y)},P.prototype.createInstance=function(y){for(var g=[],T=1;T<arguments.length;T++)g[T-1]=arguments[T];for(var M=N.getServiceDependencies(y).sort(function(K,z){return K.index-z.index}),E=[],x=0,S=M;x<S.length;x++){var A=S[x],L=this._services.get(A.id);if(!L)throw new Error("[createInstance] "+y.name+" depends on UNKNOWN service "+A.id+".");E.push(L)}var j=M.length>0?M[0].index:g.length;if(g.length!==j)throw new Error("[createInstance] First service dependency of "+y.name+" at position "+(j+1)+" conflicts with "+g.length+" static arguments");return new(y.bind.apply(y,C([void 0],C(C([],g),E))))},P}();w.InstantiationService=O},7866:function(Z,w,R){var C=this&&this.__decorate||function(y,g,T,M){var E,x=arguments.length,S=x<3?g:null===M?M=Object.getOwnPropertyDescriptor(g,T):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(y,g,T,M);else for(var A=y.length-1;A>=0;A--)(E=y[A])&&(S=(x<3?E(S):x>3?E(g,T,S):E(g,T))||S);return x>3&&S&&Object.defineProperty(g,T,S),S},_=this&&this.__param||function(y,g){return function(T,M){g(T,M,y)}},N=this&&this.__spreadArray||function(y,g){for(var T=0,M=g.length,E=y.length;T<M;T++,E++)y[E]=g[T];return y};Object.defineProperty(w,"__esModule",{value:!0}),w.LogService=void 0;var D=R(2585),O={debug:D.LogLevelEnum.DEBUG,info:D.LogLevelEnum.INFO,warn:D.LogLevelEnum.WARN,error:D.LogLevelEnum.ERROR,off:D.LogLevelEnum.OFF},P=function(){function y(g){var T=this;this._optionsService=g,this.logLevel=D.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(function(M){"logLevel"===M&&T._updateLogLevel()})}return y.prototype._updateLogLevel=function(){this.logLevel=O[this._optionsService.options.logLevel]},y.prototype._evalLazyOptionalParams=function(g){for(var T=0;T<g.length;T++)"function"==typeof g[T]&&(g[T]=g[T]())},y.prototype._log=function(g,T,M){this._evalLazyOptionalParams(M),g.call.apply(g,N([console,"xterm.js: "+T],M))},y.prototype.debug=function(g){for(var T=[],M=1;M<arguments.length;M++)T[M-1]=arguments[M];this.logLevel<=D.LogLevelEnum.DEBUG&&this._log(console.log,g,T)},y.prototype.info=function(g){for(var T=[],M=1;M<arguments.length;M++)T[M-1]=arguments[M];this.logLevel<=D.LogLevelEnum.INFO&&this._log(console.info,g,T)},y.prototype.warn=function(g){for(var T=[],M=1;M<arguments.length;M++)T[M-1]=arguments[M];this.logLevel<=D.LogLevelEnum.WARN&&this._log(console.warn,g,T)},y.prototype.error=function(g){for(var T=[],M=1;M<arguments.length;M++)T[M-1]=arguments[M];this.logLevel<=D.LogLevelEnum.ERROR&&this._log(console.error,g,T)},C([_(0,D.IOptionsService)],y)}();w.LogService=P},7302:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.OptionsService=w.DEFAULT_OPTIONS=w.DEFAULT_BELL_SOUND=void 0;var C=R(8460),_=R(6114),N=R(1439);w.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",w.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,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:_.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"],O=["cols","rows"],P=function(){function y(g){this._onOptionChange=new C.EventEmitter,this.options=N.clone(w.DEFAULT_OPTIONS);for(var T=0,M=Object.keys(g);T<M.length;T++){var E=M[T];if(E in this.options)try{this.options[E]=this._sanitizeAndValidateOption(E,g[E])}catch(S){console.error(S)}}}return Object.defineProperty(y.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),y.prototype.setOption=function(g,T){if(!(g in w.DEFAULT_OPTIONS))throw new Error('No option with key "'+g+'"');if(O.includes(g))throw new Error('Option "'+g+'" can only be set in the constructor');this.options[g]!==T&&(T=this._sanitizeAndValidateOption(g,T),this.options[g]!==T&&(this.options[g]=T,this._onOptionChange.fire(g)))},y.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)}return T},y.prototype.getOption=function(g){if(!(g in w.DEFAULT_OPTIONS))throw new Error('No option with key "'+g+'"');return this.options[g]},y}();w.OptionsService=P},8343:function(Z,w){function R(C,_,N){_.di$target===_?_.di$dependencies.push({id:C,index:N}):(_.di$dependencies=[{id:C,index:N}],_.di$target=_)}Object.defineProperty(w,"__esModule",{value:!0}),w.createDecorator=w.getServiceDependencies=w.serviceRegistry=void 0,w.serviceRegistry=new Map,w.getServiceDependencies=function(C){return C.di$dependencies||[]},w.createDecorator=function(C){if(w.serviceRegistry.has(C))return w.serviceRegistry.get(C);var _=function N(D,O,P){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");R(N,D,P)};return _.toString=function(){return C},w.serviceRegistry.set(C,_),_}},2585:function(Z,w,R){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 C,_=R(8343);w.IBufferService=_.createDecorator("BufferService"),w.ICoreMouseService=_.createDecorator("CoreMouseService"),w.ICoreService=_.createDecorator("CoreService"),w.ICharsetService=_.createDecorator("CharsetService"),w.IDirtyRowService=_.createDecorator("DirtyRowService"),w.IInstantiationService=_.createDecorator("InstantiationService"),w.ILogService=_.createDecorator("LogService"),w.IOptionsService=_.createDecorator("OptionsService"),(C=w.LogLevelEnum||(w.LogLevelEnum={}))[C.DEBUG=0]="DEBUG",C[C.INFO=1]="INFO",C[C.WARN=2]="WARN",C[C.ERROR=3]="ERROR",C[C.OFF=4]="OFF",w.IUnicodeService=_.createDecorator("UnicodeService")},1480:function(Z,w,R){Object.defineProperty(w,"__esModule",{value:!0}),w.UnicodeService=void 0;var C=R(8460),_=R(225),N=function(){function D(){this._providers=Object.create(null),this._active="",this._onChange=new C.EventEmitter;var O=new _.UnicodeV6;this.register(O),this._active=O.version,this._activeProvider=O}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(P){if(!this._providers[P])throw new Error('unknown Unicode version "'+P+'"');this._active=P,this._activeProvider=this._providers[P],this._onChange.fire(P)},enumerable:!1,configurable:!0}),D.prototype.register=function(O){this._providers[O.version]=O},D.prototype.wcwidth=function(O){return this._activeProvider.wcwidth(O)},D.prototype.getStringCellWidth=function(O){for(var P=0,y=O.length,g=0;g<y;++g){var T=O.charCodeAt(g);if(55296<=T&&T<=56319){if(++g>=y)return P+this.wcwidth(T);var M=O.charCodeAt(g);56320<=M&&M<=57343?T=1024*(T-55296)+M-56320+65536:P+=this.wcwidth(M)}P+=this.wcwidth(T)}return P},D}();w.UnicodeService=N}},f={};function U(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,U),w.exports}var B={};return function(){var V=B;Object.defineProperty(V,"__esModule",{value:!0}),V.Terminal=void 0;var Z=U(511),w=U(3236),R=U(9042),C=U(8460),_=U(244),N=function(){function T(M){this._core=new w.Terminal(M),this._addonManager=new _.AddonManager}return T.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(T.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new y(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"unicode",{get:function(){return this._checkProposedApi(),new g(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new O(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),T.prototype.blur=function(){this._core.blur()},T.prototype.focus=function(){this._core.focus()},T.prototype.resize=function(M,E){this._verifyIntegers(M,E),this._core.resize(M,E)},T.prototype.open=function(M){this._core.open(M)},T.prototype.attachCustomKeyEventHandler=function(M){this._core.attachCustomKeyEventHandler(M)},T.prototype.registerLinkMatcher=function(M,E,x){return this._checkProposedApi(),this._core.registerLinkMatcher(M,E,x)},T.prototype.deregisterLinkMatcher=function(M){this._checkProposedApi(),this._core.deregisterLinkMatcher(M)},T.prototype.registerLinkProvider=function(M){return this._checkProposedApi(),this._core.registerLinkProvider(M)},T.prototype.registerCharacterJoiner=function(M){return this._checkProposedApi(),this._core.registerCharacterJoiner(M)},T.prototype.deregisterCharacterJoiner=function(M){this._checkProposedApi(),this._core.deregisterCharacterJoiner(M)},T.prototype.registerMarker=function(M){return this._checkProposedApi(),this._verifyIntegers(M),this._core.addMarker(M)},T.prototype.addMarker=function(M){return this.registerMarker(M)},T.prototype.hasSelection=function(){return this._core.hasSelection()},T.prototype.select=function(M,E,x){this._verifyIntegers(M,E,x),this._core.select(M,E,x)},T.prototype.getSelection=function(){return this._core.getSelection()},T.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},T.prototype.clearSelection=function(){this._core.clearSelection()},T.prototype.selectAll=function(){this._core.selectAll()},T.prototype.selectLines=function(M,E){this._verifyIntegers(M,E),this._core.selectLines(M,E)},T.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},T.prototype.scrollLines=function(M){this._verifyIntegers(M),this._core.scrollLines(M)},T.prototype.scrollPages=function(M){this._verifyIntegers(M),this._core.scrollPages(M)},T.prototype.scrollToTop=function(){this._core.scrollToTop()},T.prototype.scrollToBottom=function(){this._core.scrollToBottom()},T.prototype.scrollToLine=function(M){this._verifyIntegers(M),this._core.scrollToLine(M)},T.prototype.clear=function(){this._core.clear()},T.prototype.write=function(M,E){this._core.write(M,E)},T.prototype.writeUtf8=function(M,E){this._core.write(M,E)},T.prototype.writeln=function(M,E){this._core.write(M),this._core.write("\r\n",E)},T.prototype.paste=function(M){this._core.paste(M)},T.prototype.getOption=function(M){return this._core.optionsService.getOption(M)},T.prototype.setOption=function(M,E){this._core.optionsService.setOption(M,E)},T.prototype.refresh=function(M,E){this._verifyIntegers(M,E),this._core.refresh(M,E)},T.prototype.reset=function(){this._core.reset()},T.prototype.loadAddon=function(M){return this._addonManager.loadAddon(this,M)},Object.defineProperty(T,"strings",{get:function(){return R},enumerable:!1,configurable:!0}),T.prototype._verifyIntegers=function(){for(var M=[],E=0;E<arguments.length;E++)M[E]=arguments[E];for(var x=0,S=M;x<S.length;x++){var A=S[x];if(A===1/0||isNaN(A)||A%1!=0)throw new Error("This API only accepts integers")}},T}();V.Terminal=N;var D=function(){function T(M,E){this._buffer=M,this.type=E}return T.prototype.init=function(M){return this._buffer=M,this},Object.defineProperty(T.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),T.prototype.getLine=function(M){var E=this._buffer.lines.get(M);if(E)return new P(E)},T.prototype.getNullCell=function(){return new Z.CellData},T}(),O=function(){function T(M){var E=this;this._core=M,this._onBufferChange=new C.EventEmitter,this._normal=new D(this._core.buffers.normal,"normal"),this._alternate=new D(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return E._onBufferChange.fire(E.active)})}return Object.defineProperty(T.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.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(T.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),T}(),P=function(){function T(M){this._line=M}return Object.defineProperty(T.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),T.prototype.getCell=function(M,E){if(!(M<0||M>=this._line.length))return E?(this._line.loadCell(M,E),E):this._line.loadCell(M,new Z.CellData)},T.prototype.translateToString=function(M,E,x){return this._line.translateToString(M,E,x)},T}(),y=function(){function T(M){this._core=M}return T.prototype.registerCsiHandler=function(M,E){return this._core.registerCsiHandler(M,function(x){return E(x.toArray())})},T.prototype.addCsiHandler=function(M,E){return this.registerCsiHandler(M,E)},T.prototype.registerDcsHandler=function(M,E){return this._core.registerDcsHandler(M,function(x,S){return E(x,S.toArray())})},T.prototype.addDcsHandler=function(M,E){return this.registerDcsHandler(M,E)},T.prototype.registerEscHandler=function(M,E){return this._core.registerEscHandler(M,E)},T.prototype.addEscHandler=function(M,E){return this.registerEscHandler(M,E)},T.prototype.registerOscHandler=function(M,E){return this._core.registerOscHandler(M,E)},T.prototype.addOscHandler=function(M,E){return this.registerOscHandler(M,E)},T}(),g=function(){function T(M){this._core=M}return T.prototype.register=function(M){this._core.unicodeService.register(M)},Object.defineProperty(T.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(E){this._core.unicodeService.activeVersion=E},enumerable:!1,configurable:!0}),T}()}(),B}()},18419:function(le,q,f){"use strict";f.d(q,{o:function(){return V}});var U=f(90838),B=f(68707),V=function(){function Z(){this.data=[],this.dataChange=new U.X([]),this.itemUpdated=new B.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 R=this;w.forEach(function(_){var N=R.findIndex(_);if(N>=0){var D=Object.assign(R.data[N],_);R.data[N]=D}else R.data.push(_)}),this.data.filter(function(_){return 0===w.filter(function(N){return R.getItemKey(N)===R.getItemKey(_)}).length}).forEach(function(_){return R.remove(_)}),this.dataChange.next(this.data)},Z.prototype.get=function(w){var R=this,C=this.data.findIndex(function(_){return R.getItemKey(_)===w});if(C>=0)return this.data[C]},Z.prototype.update=function(w){var R=this.findIndex(w);if(R>=0){var C=Object.assign(this.data[R],w);this.data[R]=C,this.dataChange.next(this.data),this.itemUpdated.next(C)}},Z.prototype.remove=function(w){var R=this.findIndex(w);R>=0&&(this.data.splice(R,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 R=this;return this.data.findIndex(function(C){return R.getItemKey(C)===R.getItemKey(w)})},Z}()},3941:function(le,q,f){"use strict";f.d(q,{F:function(){return Z}});var U=f(61855),B=f(18419),V=f(65508),Z=function(w){function R(){return null!==w&&w.apply(this,arguments)||this}return(0,U.ZT)(R,w),R.prototype.getItemKey=function(C){return C.link_id},R.\u0275fac=function(){var C;return function(N){return(C||(C=V.n5z(R)))(N||R)}}(),R.\u0275prov=V.Yz7({token:R,factory:R.\u0275fac}),R}(B.o)},96852:function(le,q,f){"use strict";f.d(q,{G:function(){return Z}});var U=f(61855),B=f(18419),V=f(65508),Z=function(w){function R(){return null!==w&&w.apply(this,arguments)||this}return(0,U.ZT)(R,w),R.prototype.getItemKey=function(C){return C.node_id},R.\u0275fac=function(){var C;return function(N){return(C||(C=V.n5z(R)))(N||R)}}(),R.\u0275prov=V.Yz7({token:R,factory:R.\u0275fac}),R}(B.o)},36889:function(le,q,f){"use strict";f.d(q,{X:function(){return V}});var U=f(65508),B=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,R,C){return w.protocol+"//"+w.host+":"+w.port+"/v2/"+R+"/images/"+C},Z.prototype.getStatistics=function(w){return this.httpServer.get(w,"/statistics")},Z.\u0275fac=function(R){return new(R||Z)(U.LFG(B.wh))},Z.\u0275prov=U.Yz7({token:Z,factory:Z.\u0275fac}),Z}()},96153:function(le,q,f){"use strict";f.d(q,{gc:function(){return C},wh:function(){return _}});var U=f(61855),B=f(65508),V=f(11363),Z=f(13426),w=f(75472),R=function(N){function D(O){return N.call(this,O)||this}return(0,U.ZT)(D,N),D.fromError=function(O,P){var y=new D(O);return y.originalError=P,y},D}(Error),C=function(){function N(){}return N.prototype.handleError=function(D){var O=D;return"HttpErrorResponse"===D.name&&0===D.status&&(O=R.fromError("Server is unreachable",D)),(0,V._)(O)},N.\u0275prov=B.Yz7({token:N,factory:N.\u0275fac=function(O){return new(O||N)}}),N}(),_=function(){function N(D,O){this.http=D,this.errorHandler=O,this.requestsNotificationEmitter=new B.vpe}return N.prototype.get=function(D,O,P){P=this.getJsonOptions(P);var y=this.getOptionsForServer(D,O,P);return this.requestsNotificationEmitter.emit("GET "+y.url),this.http.get(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.getText=function(D,O,P){P=this.getTextOptions(P);var y=this.getOptionsForServer(D,O,P);return this.requestsNotificationEmitter.emit("GET "+y.url),this.http.get(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.post=function(D,O,P,y){y=this.getJsonOptions(y);var g=this.getOptionsForServer(D,O,y);return this.requestsNotificationEmitter.emit("POST "+g.url),this.http.post(g.url,P,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.put=function(D,O,P,y){y=this.getJsonOptions(y);var g=this.getOptionsForServer(D,O,y);return this.requestsNotificationEmitter.emit("PUT "+g.url),this.http.put(g.url,P,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.delete=function(D,O,P){P=this.getJsonOptions(P);var y=this.getOptionsForServer(D,O,P);return this.requestsNotificationEmitter.emit("DELETE "+y.url),this.http.delete(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.patch=function(D,O,P,y){y=this.getJsonOptions(y);var g=this.getOptionsForServer(D,O,y);return this.http.patch(g.url,P,g.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.head=function(D,O,P){P=this.getJsonOptions(P);var y=this.getOptionsForServer(D,O,P);return this.http.head(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.options=function(D,O,P){P=this.getJsonOptions(P);var y=this.getOptionsForServer(D,O,P);return this.http.options(y.url,y.options).pipe((0,Z.K)(this.errorHandler.handleError))},N.prototype.getJsonOptions=function(D){return D||{responseType:"json"}},N.prototype.getTextOptions=function(D){return D||{responseType:"text"}},N.prototype.getOptionsForServer=function(D,O,P){if(D.host&&D.port?(D.protocol||(D.protocol=location.protocol),O=D.protocol+"//"+D.host+":"+D.port+"/v2"+O):O="/v2"+O,P.headers||(P.headers={}),"basic"===D.authorization){var y=btoa(D.login+":"+D.password);P.headers.Authorization="Basic "+y}return{url:O,options:P}},N.\u0275fac=function(O){return new(O||N)(B.LFG(w.eN),B.LFG(C))},N.\u0275prov=B.Yz7({token:N,factory:N.\u0275fac}),N}()},14200:function(le,q,f){"use strict";f.d(q,{Y:function(){return R}});var U=f(68707),B=f(65508),V=f(96153),Z=f(10503),w=f(2094),R=function(){function C(_,N,D){this.httpServer=_,this.settingsService=N,this.recentlyOpenedProjectService=D,this.projectListSubject=new U.xQ}return C.prototype.projectListUpdated=function(){this.projectListSubject.next(!0)},C.prototype.get=function(_,N){return this.httpServer.get(_,"/projects/"+N)},C.prototype.open=function(_,N){return this.httpServer.post(_,"/projects/"+N+"/open",{})},C.prototype.close=function(_,N){return this.recentlyOpenedProjectService.removeData(),this.httpServer.post(_,"/projects/"+N+"/close",{})},C.prototype.list=function(_){return this.httpServer.get(_,"/projects")},C.prototype.nodes=function(_,N){return this.httpServer.get(_,"/projects/"+N+"/nodes")},C.prototype.links=function(_,N){return this.httpServer.get(_,"/projects/"+N+"/links")},C.prototype.drawings=function(_,N){return this.httpServer.get(_,"/projects/"+N+"/drawings")},C.prototype.add=function(_,N,D){return this.httpServer.post(_,"/projects",{name:N,project_id:D})},C.prototype.update=function(_,N){return this.httpServer.put(_,"/projects/"+N.project_id,{auto_close:N.auto_close,auto_open:N.auto_open,auto_start:N.auto_start,drawing_grid_size:N.drawing_grid_size,grid_size:N.grid_size,name:N.name,scene_width:N.scene_width,scene_height:N.scene_height,show_interface_labels:N.show_interface_labels})},C.prototype.delete=function(_,N){return this.httpServer.delete(_,"/projects/"+N)},C.prototype.getUploadPath=function(_,N,D){return _.protocol+"//"+_.host+":"+_.port+"/v2/projects/"+N+"/import?name="+D},C.prototype.getExportPath=function(_,N){return _.protocol+"//"+_.host+":"+_.port+"/v2/projects/"+N.project_id+"/export"},C.prototype.export=function(_,N){return this.httpServer.get(_,"/projects/"+N+"/export")},C.prototype.getStatistics=function(_,N){return this.httpServer.get(_,"/projects/"+N+"/stats")},C.prototype.duplicate=function(_,N,D){return this.httpServer.post(_,"/projects/"+N+"/duplicate",{name:D})},C.prototype.isReadOnly=function(_){return!!_.readonly&&_.readonly},C.\u0275fac=function(N){return new(N||C)(B.LFG(V.wh),B.LFG(Z.g),B.LFG(w.p))},C.\u0275prov=B.Yz7({token:C,factory:C.\u0275fac}),C}()},2094:function(le,q,f){"use strict";f.d(q,{p:function(){return B}});var U=f(65508),B=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=U.Yz7({token:V,factory:V.\u0275fac=function(w){return new(w||V)}}),V}()},10503:function(le,q,f){"use strict";f.d(q,{g:function(){return B}});var U=f(65508),B=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=U.Yz7({token:V,factory:V.\u0275fac=function(w){return new(w||V)},providedIn:"root"}),V}()},15132:function(le,q,f){"use strict";f.d(q,{f:function(){return V}});var U=f(65508),B=f(90838),V=function(){function Z(){this._darkMode$=new B.X(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new U.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=U.Yz7({token:Z,factory:Z.\u0275fac=function(R){return new(R||Z)},providedIn:"root"}),Z}()},75161:function(le,q,f){"use strict";var U={};f.r(U),f.d(U,{active:function(){return rY},arc:function(){return wte},area:function(){return rH},areaRadial:function(){return sH},ascending:function(){return Cf},axisBottom:function(){return UC},axisLeft:function(){return EE},axisRight:function(){return vm},axisTop:function(){return kE},bisect:function(){return Sf},bisectLeft:function(){return V3},bisectRight:function(){return H3},bisector:function(){return vE},brush:function(){return fY},brushSelection:function(){return cY},brushX:function(){return dY},brushY:function(){return pY},chord:function(){return mY},clientPoint:function(){return d_},cluster:function(){return MK},color:function(){return Gc},contourDensity:function(){return VY},contours:function(){return m8},create:function(){return qE},creator:function(){return i_},cross:function(){return q3},csvFormat:function(){return KY},csvFormatRows:function(){return XY},csvParse:function(){return JY},csvParseRows:function(){return QY},cubehelix:function(){return ke},curveBasis:function(){return jte},curveBasisClosed:function(){return zte},curveBasisOpen:function(){return Wte},curveBundle:function(){return Gte},curveCardinal:function(){return Yte},curveCardinalClosed:function(){return Jte},curveCardinalOpen:function(){return Qte},curveCatmullRom:function(){return Kte},curveCatmullRomClosed:function(){return Xte},curveCatmullRomOpen:function(){return $te},curveLinear:function(){return OA},curveLinearClosed:function(){return ene},curveMonotoneX:function(){return tne},curveMonotoneY:function(){return nne},curveNatural:function(){return rne},curveStep:function(){return ine},curveStepAfter:function(){return ane},curveStepBefore:function(){return one},customEvent:function(){return Sm},descending:function(){return p4},deviation:function(){return Tf},dispatch:function(){return Xd},drag:function(){return Nf},dragDisable:function(){return f_},dragEnable:function(){return Zl},dsvFormat:function(){return _N},easeBack:function(){return w8},easeBackIn:function(){return xJ},easeBackInOut:function(){return w8},easeBackOut:function(){return wJ},easeBounce:function(){return b1},easeBounceIn:function(){return SJ},easeBounceInOut:function(){return TJ},easeBounceOut:function(){return b1},easeCircle:function(){return x8},easeCircleIn:function(){return pJ},easeCircleInOut:function(){return x8},easeCircleOut:function(){return fJ},easeCubic:function(){return nN},easeCubicIn:function(){return XG},easeCubicInOut:function(){return nN},easeCubicOut:function(){return $G},easeElastic:function(){return k8},easeElasticIn:function(){return kJ},easeElasticInOut:function(){return EJ},easeElasticOut:function(){return k8},easeExp:function(){return T8},easeExpIn:function(){return cJ},easeExpInOut:function(){return T8},easeExpOut:function(){return dJ},easeLinear:function(){return rJ},easePoly:function(){return y8},easePolyIn:function(){return aJ},easePolyInOut:function(){return y8},easePolyOut:function(){return sJ},easeQuad:function(){return _8},easeQuadIn:function(){return iJ},easeQuadInOut:function(){return _8},easeQuadOut:function(){return oJ},easeSin:function(){return S8},easeSinIn:function(){return lJ},easeSinInOut:function(){return S8},easeSinOut:function(){return uJ},entries:function(){return DY},event:function(){return Dn},extent:function(){return PC},forceCenter:function(){return MJ},forceCollide:function(){return GJ},forceLink:function(){return JJ},forceManyBody:function(){return tQ},forceRadial:function(){return nQ},forceSimulation:function(){return eQ},forceX:function(){return rQ},forceY:function(){return iQ},format:function(){return MM},formatDefaultLocale:function(){return Z8},formatLocale:function(){return N8},formatPrefix:function(){return kN},formatSpecifier:function(){return C1},geoAlbers:function(){return X7},geoAlbersUsa:function(){return lK},geoArea:function(){return fQ},geoAzimuthalEqualArea:function(){return uK},geoAzimuthalEqualAreaRaw:function(){return c6},geoAzimuthalEquidistant:function(){return cK},geoAzimuthalEquidistantRaw:function(){return d6},geoBounds:function(){return gQ},geoCentroid:function(){return TQ},geoCircle:function(){return xQ},geoClipAntimeridian:function(){return qN},geoClipCircle:function(){return b7},geoClipExtent:function(){return OQ},geoClipRectangle:function(){return KM},geoConicConformal:function(){return pK},geoConicConformalRaw:function(){return tU},geoConicEqualArea:function(){return lA},geoConicEqualAreaRaw:function(){return K7},geoConicEquidistant:function(){return hK},geoConicEquidistantRaw:function(){return nU},geoContains:function(){return FQ},geoDistance:function(){return E1},geoEquirectangular:function(){return fK},geoEquirectangularRaw:function(){return Z1},geoGnomonic:function(){return mK},geoGnomonicRaw:function(){return p6},geoGraticule:function(){return D7},geoGraticule10:function(){return BQ},geoIdentity:function(){return vK},geoInterpolate:function(){return UQ},geoLength:function(){return C7},geoMercator:function(){return dK},geoMercatorRaw:function(){return N1},geoNaturalEarth1:function(){return gK},geoNaturalEarth1Raw:function(){return f6},geoOrthographic:function(){return _K},geoOrthographicRaw:function(){return h6},geoPath:function(){return XQ},geoProjection:function(){return lp},geoProjectionMutator:function(){return l6},geoRotation:function(){return p7},geoStereographic:function(){return yK},geoStereographicRaw:function(){return m6},geoStream:function(){return Wu},geoTransform:function(){return $Q},geoTransverseMercator:function(){return bK},geoTransverseMercatorRaw:function(){return v6},hcl:function(){return u1},hierarchy:function(){return g6},histogram:function(){return bE},hsl:function(){return a1},interpolate:function(){return Pf},interpolateArray:function(){return na},interpolateBasis:function(){return ft},interpolateBasisClosed:function(){return At},interpolateBlues:function(){return Vee},interpolateBrBG:function(){return Cee},interpolateBuGn:function(){return Dee},interpolateBuPu:function(){return Oee},interpolateCool:function(){return Qee},interpolateCubehelix:function(){return $W},interpolateCubehelixDefault:function(){return Yee},interpolateCubehelixLong:function(){return aM},interpolateDate:function(){return Fl},interpolateGnBu:function(){return Pee},interpolateGreens:function(){return qee},interpolateGreys:function(){return jee},interpolateHcl:function(){return KW},interpolateHclLong:function(){return XW},interpolateHsl:function(){return YW},interpolateHslLong:function(){return JW},interpolateInferno:function(){return ete},interpolateLab:function(){return QW},interpolateMagma:function(){return $ee},interpolateNumber:function(){return zo},interpolateObject:function(){return Jc},interpolateOrRd:function(){return Iee},interpolateOranges:function(){return Gee},interpolatePRGn:function(){return See},interpolatePiYG:function(){return Tee},interpolatePlasma:function(){return tte},interpolatePuBu:function(){return Nee},interpolatePuBuGn:function(){return Ree},interpolatePuOr:function(){return xee},interpolatePuRd:function(){return Zee},interpolatePurples:function(){return zee},interpolateRainbow:function(){return Kee},interpolateRdBu:function(){return wee},interpolateRdGy:function(){return kee},interpolateRdPu:function(){return Lee},interpolateRdYlBu:function(){return Eee},interpolateRdYlGn:function(){return Mee},interpolateReds:function(){return Wee},interpolateRgb:function(){return Qr},interpolateRgbBasis:function(){return io},interpolateRgbBasisClosed:function(){return ta},interpolateRound:function(){return eM},interpolateSpectral:function(){return Aee},interpolateString:function(){return Of},interpolateTransformCss:function(){return L4},interpolateTransformSvg:function(){return F4},interpolateViridis:function(){return Xee},interpolateWarm:function(){return Jee},interpolateYlGn:function(){return Bee},interpolateYlGnBu:function(){return Fee},interpolateYlOrBr:function(){return Uee},interpolateYlOrRd:function(){return Hee},interpolateZoom:function(){return H4},interrupt:function(){return Dm},interval:function(){return vne},isoFormat:function(){return ree},isoParse:function(){return aee},keys:function(){return MY},lab:function(){return s1},line:function(){return PA},lineRadial:function(){return aH},linkHorizontal:function(){return Rte},linkRadial:function(){return Zte},linkVertical:function(){return Nte},local:function(){return u_},map:function(){return Rf},matcher:function(){return PE},max:function(){return t_},mean:function(){return CE},median:function(){return SE},merge:function(){return fm},min:function(){return TE},mouse:function(){return el},namespace:function(){return gm},namespaces:function(){return jC},nest:function(){return xY},now:function(){return y_},pack:function(){return $K},packEnclose:function(){return iU},packSiblings:function(){return QK},pairs:function(){return d4},partition:function(){return eX},path:function(){return zu},permute:function(){return Rl},pie:function(){return Mte},pointRadial:function(){return eS},polygonArea:function(){return mX},polygonCentroid:function(){return vX},polygonContains:function(){return bX},polygonHull:function(){return yX},polygonLength:function(){return CX},precisionFixed:function(){return L8},precisionPrefix:function(){return F8},precisionRound:function(){return B8},quadtree:function(){return wM},quantile:function(){return wf},quantize:function(){return eG},radialArea:function(){return sH},radialLine:function(){return aH},randomBates:function(){return xX},randomExponential:function(){return wX},randomIrwinHall:function(){return CU},randomLogNormal:function(){return TX},randomNormal:function(){return bU},randomUniform:function(){return SX},range:function(){return Ps},rgb:function(){return Af},ribbon:function(){return TY},scaleBand:function(){return w6},scaleIdentity:function(){return EU},scaleImplicit:function(){return T6},scaleLinear:function(){return kU},scaleLog:function(){return PU},scaleOrdinal:function(){return x6},scalePoint:function(){return kX},scalePow:function(){return M6},scaleQuantile:function(){return IU},scaleQuantize:function(){return RU},scaleSequential:function(){return k9},scaleSqrt:function(){return NX},scaleThreshold:function(){return NU},scaleTime:function(){return cee},scaleUtc:function(){return dee},scan:function(){return G3},schemeAccent:function(){return fee},schemeBlues:function(){return Y9},schemeBrBG:function(){return E9},schemeBuGn:function(){return Z9},schemeBuPu:function(){return L9},schemeCategory10:function(){return pee},schemeDark2:function(){return hee},schemeGnBu:function(){return F9},schemeGreens:function(){return J9},schemeGreys:function(){return Q9},schemeOrRd:function(){return B9},schemeOranges:function(){return $9},schemePRGn:function(){return M9},schemePaired:function(){return mee},schemePastel1:function(){return vee},schemePastel2:function(){return gee},schemePiYG:function(){return A9},schemePuBu:function(){return H9},schemePuBuGn:function(){return U9},schemePuOr:function(){return D9},schemePuRd:function(){return V9},schemePurples:function(){return K9},schemeRdBu:function(){return O9},schemeRdGy:function(){return P9},schemeRdPu:function(){return q9},schemeRdYlBu:function(){return I9},schemeRdYlGn:function(){return R9},schemeReds:function(){return X9},schemeSet1:function(){return _ee},schemeSet2:function(){return yee},schemeSet3:function(){return bee},schemeSpectral:function(){return N9},schemeYlGn:function(){return z9},schemeYlGnBu:function(){return j9},schemeYlOrBr:function(){return W9},schemeYlOrRd:function(){return G9},select:function(){return ei},selectAll:function(){return LR},selection:function(){return Is},selector:function(){return zC},selectorAll:function(){return DE},set:function(){return EY},shuffle:function(){return f4},stack:function(){return lne},stackOffsetDiverging:function(){return cne},stackOffsetExpand:function(){return une},stackOffsetNone:function(){return F_},stackOffsetSilhouette:function(){return dne},stackOffsetWiggle:function(){return pne},stackOrderAscending:function(){return DH},stackOrderDescending:function(){return fne},stackOrderInsideOut:function(){return hne},stackOrderNone:function(){return B_},stackOrderReverse:function(){return mne},stratify:function(){return iX},style:function(){return ep},sum:function(){return Y3},symbol:function(){return qte},symbolCircle:function(){return q6},symbolCross:function(){return lH},symbolDiamond:function(){return cH},symbolSquare:function(){return fH},symbolStar:function(){return pH},symbolTriangle:function(){return hH},symbolWye:function(){return mH},symbols:function(){return Vte},thresholdFreedmanDiaconis:function(){return z3},thresholdScott:function(){return W3},thresholdSturges:function(){return ZC},tickIncrement:function(){return xf},tickStep:function(){return jc},ticks:function(){return pm},timeDay:function(){return TA},timeDays:function(){return FX},timeFormat:function(){return I6},timeFormatDefaultLocale:function(){return T9},timeFormatLocale:function(){return d9},timeFriday:function(){return YU},timeFridays:function(){return qX},timeHour:function(){return jU},timeHours:function(){return LX},timeInterval:function(){return xa},timeMillisecond:function(){return yA},timeMilliseconds:function(){return ZU},timeMinute:function(){return VU},timeMinutes:function(){return ZX},timeMonday:function(){return H1},timeMondays:function(){return BX},timeMonth:function(){return XU},timeMonths:function(){return zX},timeParse:function(){return S9},timeSaturday:function(){return JU},timeSaturdays:function(){return jX},timeSecond:function(){return SA},timeSeconds:function(){return UU},timeSunday:function(){return U1},timeSundays:function(){return QU},timeThursday:function(){return V1},timeThursdays:function(){return VX},timeTuesday:function(){return WU},timeTuesdays:function(){return UX},timeWednesday:function(){return GU},timeWednesdays:function(){return HX},timeWeek:function(){return U1},timeWeeks:function(){return QU},timeYear:function(){return Hm},timeYears:function(){return WX},timeout:function(){return QR},timer:function(){return cM},timerFlush:function(){return G4},touch:function(){return p_},touches:function(){return jE},transition:function(){return hM},transpose:function(){return J3},tree:function(){return cX},treemap:function(){return dX},treemapBinary:function(){return pX},treemapDice:function(){return F1},treemapResquarify:function(){return hX},treemapSlice:function(){return mA},treemapSliceDice:function(){return fX},treemapSquarify:function(){return _U},tsvFormat:function(){return tJ},tsvFormatRows:function(){return nJ},tsvParse:function(){return $Y},tsvParseRows:function(){return eJ},utcDay:function(){return xA},utcDays:function(){return JX},utcFormat:function(){return kA},utcFriday:function(){return a9},utcFridays:function(){return e$},utcHour:function(){return n9},utcHours:function(){return YX},utcMillisecond:function(){return yA},utcMilliseconds:function(){return ZU},utcMinute:function(){return e9},utcMinutes:function(){return GX},utcMonday:function(){return j1},utcMondays:function(){return QX},utcMonth:function(){return c9},utcMonths:function(){return n$},utcParse:function(){return R6},utcSaturday:function(){return s9},utcSaturdays:function(){return t$},utcSecond:function(){return SA},utcSeconds:function(){return UU},utcSunday:function(){return q1},utcSundays:function(){return l9},utcThursday:function(){return z1},utcThursdays:function(){return $X},utcTuesday:function(){return i9},utcTuesdays:function(){return KX},utcWednesday:function(){return o9},utcWednesdays:function(){return XX},utcWeek:function(){return q1},utcWeeks:function(){return l9},utcYear:function(){return qm},utcYears:function(){return r$},values:function(){return AY},variance:function(){return _E},voronoi:function(){return Nne},window:function(){return QC},zip:function(){return K3},zoom:function(){return VH},zoomIdentity:function(){return HA},zoomTransform:function(){return UH}});var x,B=f(29176),V=f(42515),C=(f(70455),f(99890),f(99740),f(27235)),_=f(36683),N=f(20901),D=f(89200),O=f(10509),P=f(97154),y=f(10629),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 nx=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff";"[^".concat(nx,"]"),"[".concat(nx,"]{2,}"),(0,V.Z)(x={},4,4),(0,V.Z)(x,1,1),(0,V.Z)(x,2,2),(0,V.Z)(x,0,0),(0,V.Z)(x,3,3),Object.keys({useClass:null}),Object.keys({useFactory:null}),Object.keys({useValue:null}),Object.keys({useExisting:null});var e=f(65508),Mt=f(40098),la=f(28722),ti=f(15427),In=f(78081),Ti=f(6517),Rn=f(68707),Ya=f(5051),jB=f(57434),a3=f(58172),qo=f(89797),ro=f(55371),qr=f(44213),ea=f(57682),Ar=f(85639),qi=f(48359),ba=f(59371),Os=f(34487),Ca=f(8392);function Q0(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 Kh(n,r){var t=r?"":"none";Q0(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 K0(n,r,t){Q0(n.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},t)}function Zg(n,r){return r&&"none"!=r?n+" "+r:n}function xk(n){var r=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*r}function X0(n,r){return n.getPropertyValue(r).split(",").map(function(i){return i.trim()})}function $0(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 Lg(n,r,t){return t>=n.top&&t<=n.bottom&&r>=n.left&&r<=n.right}function Xh(n,r,t){n.top+=r,n.bottom=n.top+n.height,n.left+=t,n.right=n.left+n.width}function wk(n,r,t,i){var b=n.width*r,I=n.height*r;return i>n.top-I&&i<n.bottom+I&&t>n.left-b&&t<n.right+b}var l3=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:$0(o)})})}},{key:"handleScroll",value:function(t){var i=(0,ti.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 b=s.top-u,I=s.left-p;return this.positions.forEach(function(F,G){F.clientRect&&i!==G&&a.contains(G)&&Xh(F.clientRect,b,I)}),s.top=u,s.left=p,{top:b,left:I}}}]),n}();function u3(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?Ek(n,r):("input"===i||"select"===i||"textarea"===i)&&kk(n,r),c3("canvas",n,r,Ek),c3("input, textarea, select",n,r,kk),r}function c3(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 eC=0;function kk(n,r){"file"!==r.type&&(r.value=n.value),"radio"===r.type&&r.name&&(r.name="mat-clone-".concat(r.name,"-").concat(eC++))}function Ek(n,r){var t=r.getContext("2d");if(t)try{t.drawImage(n,0,0)}catch(i){}}var Mk=(0,ti.i$)({passive:!0}),Ak=(0,ti.i$)({passive:!1}),tC=new Set(["position"]),Dk=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 Rn.xQ,this._pointerMoveSubscription=Ya.w.EMPTY,this._pointerUpSubscription=Ya.w.EMPTY,this._scrollSubscription=Ya.w.EMPTY,this._resizeSubscription=Ya.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 Rn.xQ,this.started=new Rn.xQ,this.released=new Rn.xQ,this.ended=new Rn.xQ,this.entered=new Rn.xQ,this.exited=new Rn.xQ,this.dropped=new Rn.xQ,this.moved=this._moveEvents,this._pointerDown=function(p){if(u.beforeStarted.next(),u._handles.length){var m=u._handles.find(function(b){var I=(0,ti.sA)(p);return!!I&&(I===b||b.contains(I))});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 ce=u._activeTransform;if(ce.x=te.x-u._pickupPositionOnPage.x+u._passiveTransform.x,ce.y=te.y-u._pickupPositionOnPage.y+u._passiveTransform.y,u._applyRootElementTransform(ce.x,ce.y),"undefined"!=typeof SVGElement&&u._rootElement instanceof SVGElement){var xe="translate(".concat(ce.x," ").concat(ce.y,")");u._rootElement.setAttribute("transform",xe)}}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 l3(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,In.Ig)(t);i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(function(o){return Kh(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,In.fI)(a)}),this._handles.forEach(function(a){return Kh(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,In.fI)(t);return o!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){o.addEventListener("mousedown",i._pointerDown,Ak),o.addEventListener("touchstart",i._pointerDown,Mk)}),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,In.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()&&Fu(this._rootElement),Fu(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),Kh(t,!0))}},{key:"enableHandle",value:function(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Kh(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&&Fu(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&Fu(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){jo(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(),K0(o,!1,tC),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=jo(i),u=!s&&0!==i.button,p=this._rootElement,m=(0,ti.sA)(i),b=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),I=s?(0,Ti.yG)(i):(0,Ti.X6)(i);if(m&&m.draggable&&"mousedown"===i.type&&i.preventDefault(),!(a||u||b||I)){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=$0(this._boundaryElement));var F=this._previewTemplate;this._pickupPositionInElement=F&&F.template&&!F.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;K0(this._rootElement,!0,tC),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=nC(u,this._document),this._previewRef=u,t.matchSize?Xs(a,s):a.style.transform=hf(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var p=this._rootElement;Xs(a=u3(p),p.getBoundingClientRect()),this._initialTransform&&(a.style.transform=this._initialTransform)}return Q0(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},tC),Kh(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=X0(r,"transition-property"),i=t.find(function(u){return"transform"===u||"all"===u});if(!i)return 0;var o=t.indexOf(i),a=X0(r,"transition-duration"),s=X0(r,"transition-delay");return xk(a[o])+xk(s[o])}(this._preview);return 0===o?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(a){var s=function p(m){(!m||(0,ti.sA)(m)===t._preview&&"transform"===m.propertyName)&&(t._preview.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=nC(this._placeholderRef,this._document)):o=u3(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=jo(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=jo(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,b=this._boundaryRect,I=this._previewRect,F=b.top+m,G=b.bottom-(I.height-m);a=Ok(a,b.left+p,b.right-(I.width-p)),s=Ok(s,F,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,Kh(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,Ak),t.removeEventListener("touchstart",this._pointerDown,Mk)}},{key:"_applyRootElementTransform",value:function(t,i){var o=hf(t,i);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform&&"none"!=this._rootElement.style.transform?this._rootElement.style.transform:""),this._rootElement.style.transform=Zg(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=hf(t,i);this._preview.style.transform=Zg(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,b=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),b>0&&(o-=b)):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:jo(t)?i.touch:i?i.mouse:0}},{key:"_updateOnScroll",value:function(t){var i=this._parentPositions.handleScroll(t);if(i){var o=(0,ti.sA)(t);this._boundaryRect&&(o===this._document||o!==this._boundaryElement&&o.contains(this._boundaryElement))&&Xh(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,ti.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,In.fI)(o)}}]),n}();function hf(n,r){return"translate3d(".concat(Math.round(n),"px, ").concat(Math.round(r),"px, 0)")}function Ok(n,r,t){return Math.max(r,Math.min(t,n))}function Fu(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function jo(n){return"t"===n.type[0]}function nC(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 Xs(n,r){n.style.width="".concat(r.width,"px"),n.style.height="".concat(r.height,"px"),n.style.transform=hf(r.left,r.top)}function mf(n,r){return Math.max(0,Math.min(r,n))}var f3=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 Rn.xQ,this.entered=new Rn.xQ,this.exited=new Rn.xQ,this.dropped=new Rn.xQ,this.sorted=new Rn.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=Ya.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Rn.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){s._stopScrolling(),(0,jB.F)(0,a3.Z).pipe((0,qr.R)(s._stopScrollTimers)).subscribe(function(){var u=s._scrollNode,p=s.autoScrollStep;1===s._verticalScrollDirection?aC(u,-p):2===s._verticalScrollDirection&&aC(u,p),1===s._horizontalScrollDirection?Ik(u,-p):2===s._horizontalScrollDirection&&Ik(u,p)})},this.element=(0,In.fI)(r),this._document=i,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new l3(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(),b=u[s];if(b===t&&(b=u[s+1]),p>-1&&u.splice(p,1),b&&!this._dragDropRegistry.isDragging(b)){var I=b.getRootElement();I.parentElement.insertBefore(m,I),u.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(i,o)){var F=u[0].getRootElement();F.parentNode.insertBefore(m,F),u.unshift(t)}else(0,In.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,In.fI)(this.element);return this._scrollableElements=-1===t.indexOf(i)?[i].concat((0,y.Z)(t)):t.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(t){return this._isDragging?oC("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&&wk(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=oC(s,function(xe){return xe.drag===t}),b=s[u],F=b.clientRect,G=m>u?1:-1,Y=this._getItemOffsetPx(s[m].clientRect,F,G),te=this._getSiblingOffsetPx(m,s,G),ce=s.slice();(function(n,r,t){var i=mf(r,n.length-1),o=mf(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(xe,lt){if(ce[lt]!==xe){var nt=xe.drag===t,it=nt?Y:te,ht=nt?t.getPlaceholderElement():xe.drag.getRootElement();xe.offset+=it,p?(ht.style.transform=Zg("translate3d(".concat(Math.round(xe.offset),"px, 0, 0)"),xe.initialTransform),Xh(xe.clientRect,0,it)):(ht.style.transform=Zg("translate3d(0, ".concat(Math.round(xe.offset),"px, 0)"),xe.initialTransform),Xh(xe.clientRect,it,0))}}),this._previousSwap.overlaps=Lg(F,i,o),this._previousSwap.drag=b.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(F,G){if(G!==o._document&&F.clientRect&&!a&&wk(F.clientRect,.05,t,i)){var Y=function(n,r,t,i){var o=h3(r,i),a=Rk(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,F.clientRect,t,i),te=(0,C.Z)(Y,2);u=te[1],((s=te[0])||u)&&(a=G)}}),!s&&!u){var p=this._viewportRuler.getViewportSize(),m=p.width,b=p.height,I={width:m,height:b,top:0,right:m,bottom:b,left:0};s=h3(I,i),u=Rk(I,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,In.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,In.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:$0(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,In.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",b=a?"right":"bottom";-1===o?p-=u.clientRect[m]-s[b]:p+=s[m]-u.clientRect[b]}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=oC(this._itemPositions,function(m,b,I){var F=m.drag,G=m.clientRect;return F===t?I.length<2:(!a||F!==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&&Lg(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||!Lg(this._clientRect,i,o)||!this.enterPredicate(t,this))return!1;var a=this._getShadowRoot().elementFromPoint(i,o);if(!a)return!1;var s=(0,In.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){Xh(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,ti.kV)((0,In.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 oC(n,r){for(var t=0;t<n.length;t++)if(r(n[t],t,n))return t;return-1}function aC(n,r){n===window?n.scrollBy(0,r):n.scrollTop+=r}function Ik(n,r){n===window?n.scrollBy(r,0):n.scrollLeft+=r}function h3(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 Rk(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 Bu=(0,ti.i$)({passive:!1,capture:!0}),v3=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 Rn.xQ,this.pointerUp=new Rn.xQ,this.scroll=new Rn.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,Bu)})}},{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,Bu)}},{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:Bu}),s||this._globalListeners.set("mousemove",{handler:function(p){return a.pointerMove.next(p)},options:Bu}),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 qo.y(function(s){return o._ngZone.runOutsideAngular(function(){var p=function(b){o._activeDragInstances.length&&s.next(b)};return i.addEventListener("scroll",p,!0),function(){i.removeEventListener("scroll",p,!0)}})})),ro.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(Mt.K0))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(e.R0b),e.LFG(Mt.K0))},token:n,providedIn:"root"}),n}(),Nk={dragStartThreshold:5,pointerDirectionChangeThreshold:5},sC=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]:Nk;return new Dk(i,o,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(i){return new f3(i,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(Mt.K0),e.LFG(e.R0b),e.LFG(la.rL),e.LFG(v3))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(Mt.K0),e.LFG(e.R0b),e.LFG(la.rL),e.LFG(v3))},token:n,providedIn:"root"}),n}(),Hk=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:[sC],imports:[la.ZD]}),n}(),Xi=f(93889),Li=f(37429),Ja=f(61493),ji=f(90838),Hg=f(17504),ur=f(43161),b3=[[["caption"]],[["colgroup"],["col"]]],C3=["caption","colgroup, col"];function dC(n){return function(r){(0,O.Z)(i,r);var t=(0,P.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,In.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 Uc=new e.OlP("CDK_TABLE"),vf=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}(),Hc=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}(),Vg=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}(),QB=dC(function n(){(0,g.Z)(this,n)}),Uu=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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,In.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}(QB);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Uc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,vf,5),e.Suo(o,Hc,5),e.Suo(o,Vg,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()}},qg=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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(Uu),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}(),fC=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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(Uu),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),n}(),qk=function n(){(0,g.Z)(this,n),this.tasks=[],this.endTasks=[]},hC=new e.OlP("_COALESCED_STYLE_SCHEDULER"),jk=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._ngZone=t,this._currentSchedule=null,this._destroyed=new Rn.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 qk,this._getScheduleObservable().pipe((0,qr.R)(this._destroyed)).subscribe(function(){for(;i._currentSchedule.tasks.length||i._currentSchedule.endTasks.length;){var o=i._currentSchedule;i._currentSchedule=new qk;var s,a=(0,_.Z)(o.tasks);try{for(a.s();!(s=a.n()).done;)(0,s.value)()}catch(I){a.e(I)}finally{a.f()}var m,p=(0,_.Z)(o.endTasks);try{for(p.s();!(m=p.n()).done;)(0,m.value)()}catch(I){p.e(I)}finally{p.f()}}i._currentSchedule=null}))}},{key:"_getScheduleObservable",value:function(){return this._ngZone.isStable?(0,Ja.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,qi.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}(),jg=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 gf?i.headerCell.template:this instanceof tm?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}(),zk=dC(function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(jg)),gf=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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,N.Z)((0,D.Z)(i.prototype),"ngOnChanges",this).call(this,a)}}]),i}(zk);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Uc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),n}(),Gk=dC(function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(jg)),tm=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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,N.Z)((0,D.Z)(i.prototype),"ngOnChanges",this).call(this,a)}}]),i}(Gk);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Uc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),n}(),nm=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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}(jg);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Uc,8))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),n}(),pu=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}(),vC=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:[pu],encapsulation:2}),n}(),Wg=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:[pu],encapsulation:2}),n}(),Gg=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}(),Pa=["top","bottom","left","right"],_f=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(b){s.e(b)}finally{s.f()}this._coalescedStyleScheduler.schedule(function(){var I,b=(0,_.Z)(a);try{for(b.s();!(I=b.n()).done;)o._removeStickyStyle(I.value,i)}catch(G){b.e(G)}finally{b.f()}})}},{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),b=this._getStickyStartColumnPositions(m,i),I=this._getStickyEndColumnPositions(m,o),F=i.lastIndexOf(!0),G=o.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var lt,Y="rtl"===a.direction,te=Y?"right":"left",ce=Y?"left":"right",xe=(0,_.Z)(t);try{for(xe.s();!(lt=xe.n()).done;)for(var nt=lt.value,it=0;it<p;it++){var ht=nt.children[it];i[it]&&a._addStickyStyle(ht,te,b[it],it===F),o[it]&&a._addStickyStyle(ht,ce,I[it],it===G)}}catch(Qe){xe.e(Qe)}finally{xe.f()}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===F?[]:m.slice(0,F+1).map(function(Qe,tt){return i[tt]?Qe:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===G?[]:m.slice(G).map(function(Qe,tt){return o[tt+G]?Qe: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=[],b=[],I=0,F=0;I<s.length;I++)if(u[I]){p[I]=F;var G=s[I];b[I]=this._isNativeHtmlTable?Array.from(G.children):[G];var Y=G.getBoundingClientRect().height;F+=Y,m[I]=Y}var te=u.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(function(){for(var ce,xe,lt=0;lt<s.length;lt++)if(u[lt]){var Qe,nt=p[lt],it=lt===te,ht=(0,_.Z)(b[lt]);try{for(ht.s();!(Qe=ht.n()).done;)a._addStickyStyle(Qe.value,o,nt,it)}catch(Ot){ht.e(Ot)}finally{ht.f()}}"top"===o?null===(ce=a._positionListener)||void 0===ce||ce.stickyHeaderRowsUpdated({sizes:m,offsets:p,elements:b}):null===(xe=a._positionListener)||void 0===xe||xe.stickyFooterRowsUpdated({sizes:m,offsets:p,elements:b})})}}},{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()}Pa.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){var s,i={top:100,bottom:10,left:1,right:1},o=0,a=(0,_.Z)(Pa);try{for(a.s();!(s=a.n()).done;){var u=s.value;t.style[u]&&(o+=i[u])}}catch(p){a.e(p)}finally{a.f()}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}(),gC=new e.OlP("CDK_SPL"),yf=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}(),rm=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}(),im=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}(),Jd=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}(),om=function(){var n=function(){function r(t,i,o,a,s,u,p,m,b,I,F){(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=b,this._viewportRuler=I,this._stickyPositioningListener=F,this._onDestroy=new Rn.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 ji.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,In.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,In.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,qr.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,Li.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,y.Z)(o),(0,y.Z)(a),(0,y.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],b=this._cachedRenderRowsMap.get(m.data);b.has(m.rowDef)?b.get(m.rowDef).push(m):b.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(),Jg(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=Jg(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Jg(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Jg(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,Li.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,Li.Z9)(this.dataSource)?o=this.dataSource.connect(this):(0,Hg.b)(this.dataSource)?o=this.dataSource:Array.isArray(this.dataSource)&&(o=(0,ur.of)(this.dataSource)),this._renderChangeSubscription=o.pipe((0,qr.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;)pu.mostRecentCellOutlet&&pu.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 b,m=(0,_.Z)(u.outlets);try{for(m.s();!(b=m.n()).done;)p.appendChild(b.value.elementRef.nativeElement)}catch(F){m.e(F)}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 _f(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,ur.of)()).pipe((0,qr.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(Ca.Is,8),e.Y36(Mt.K0),e.Y36(ti.t4),e.Y36(Li.k),e.Y36(hC),e.Y36(la.rL),e.Y36(gC,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,Gg,5),e.Suo(o,Uu,5),e.Suo(o,nm,5),e.Suo(o,gf,5),e.Suo(o,tm,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(yf,7),e.Gf(rm,7),e.Gf(im,7),e.Gf(Jd,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:Uc,useExisting:n},{provide:Li.k,useClass:Li.yy},{provide:hC,useClass:jk},{provide:gC,useValue:null}])],ngContentSelectors:C3,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){1&t&&(e.F$t(b3),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[rm,yf,Jd,im],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n}();function Jg(n,r){return n.concat(Array.from(r))}var bC=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:[[la.Cl]]}),n}(),Vc=f(75472),ne=f(19061),dn=f(59412),Kr=f(32819),am=f(33090),_i=f(58780),sm=(f(12698),f(76161)),Qk=f(57263),on=f(739),ss=f(38480),r4=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:[[Mt.ez,dn.BQ,ti.ud,la.ZD],la.ZD,dn.BQ]}),n}(),i4=f(82667),lm=f(81370);function aE(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 sE="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},I3=function(r){return null!=r&&"object"===(void 0===r?"undefined":sE(r))&&1===r.nodeType&&"object"===sE(r.style)&&"object"===sE(r.ownerDocument)};function R3(n,r){if(r=lE(r,!0),!I3(r))return-1;for(var t=0;t<n.length;t++)if(n[t]===r)return t;return-1}function TC(n,r){return-1!==R3(n,r)}function N3(n,r){for(var t=0;t<r.length;t++)TC(n,r[t])||n.push(r[t]);return r}function Z3(n){for(var r=arguments,t=[],i=arguments.length-1;i-- >0;)t[i]=r[i+1];return N3(n,t=t.map(lE))}function a4(n){for(var r=arguments,t=[],i=arguments.length-1;i-- >0;)t[i]=r[i+1];return t.map(lE).reduce(function(o,a){var s=R3(n,a);return-1!==s?o.concat(n.splice(s,1)):o},[])}function lE(n,r){if("string"==typeof n)try{return document.querySelector(n)}catch(t){throw t}if(!I3(n)&&!r)throw new TypeError(n+" is not a DOM element.");return n}function uE(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,xC=void 0;"function"!=typeof Object.create?(r=function(){},xC=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}):xC=Object.create;var B3=xC,bf=["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=B3(n),i=0;i<bf.length;i++)void 0!==r[bf[i]]&&(t[bf[i]]=r[bf[i]]);return t}function cE(n,r){console.log("data ",r),n.data=r||{},n.dispatched="mousemove"}var um=["webkit","moz","ms","o"],Qd=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=um.length;n<r&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[um[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)}(),Il=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=um.length;n<r&&!window.cancelAnimationFrame;++n)window.cancelAnimationFrame=window[um[n]+"CancelAnimationFrame"]||window[um[n]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){window.clearTimeout(t)}),window.cancelAnimationFrame.bind(window)}();function dE(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=aE((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 cE(m,p),s.dispatchEvent(m)}:"function"==typeof document.createEvent?function(s,u,p){var m=wC(r,u),b=document.createEvent("MouseEvents");return b.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),cE(b,p),s.dispatchEvent(b)}:"function"==typeof document.createEventObject?function(s,u,p){var m=document.createEventObject(),b=wC(r,u);for(var I in b)m[I]=b[I];return cE(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=aE(r.autoScroll),this.syncMove=aE(r.syncMove,!1),this.destroy=function(Jt){window.removeEventListener("mousemove",u,!1),window.removeEventListener("touchmove",u,!1),window.removeEventListener("mousedown",te,!1),window.removeEventListener("touchstart",te,!1),window.removeEventListener("mouseup",ce,!1),window.removeEventListener("touchend",ce,!1),window.removeEventListener("pointerup",ce,!1),window.removeEventListener("mouseleave",lt,!1),window.removeEventListener("mousemove",ht,!1),window.removeEventListener("touchmove",ht,!1),window.removeEventListener("scroll",Y,!0),n=[],Jt&&xe()},this.add=function(){for(var Jt=[],st=arguments.length;st--;)Jt[st]=arguments[st];return Z3.apply(void 0,[n].concat(Jt)),this},this.remove=function(){for(var Jt=[],st=arguments.length;st--;)Jt[st]=arguments[st];return a4.apply(void 0,[n].concat(Jt))};var I,Jt,b=null;"[object Array]"!==Object.prototype.toString.call(n)&&(n=[n]),Jt=n,n=[],Jt.forEach(function(st){st===window?b=window:t.add(st)}),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,F=null;function Y(Jt){for(var st=0;st<n.length;st++)if(n[st]===Jt.target){o=!0;break}o&&Qd(function(){return o=!1})}function te(){m=!0}function ce(){m=!1,xe()}function xe(){Il(G),Il(I)}function lt(){m=!1}function it(){for(var Jt=null,st=0;st<n.length;st++)pE(s,n[st])&&(Jt=n[st]);return Jt}function ht(Jt){if(t.autoScroll()&&!Jt.dispatched){var st=Jt.target,Dt=document.body;F&&!pE(s,F)&&(t.scrollWhenOutside||(F=null)),st&&st.parentNode===Dt?st=it():(st=function(Jt){if(!Jt)return null;if(F===Jt||TC(n,Jt))return Jt;for(;Jt=Jt.parentNode;)if(TC(n,Jt))return Jt;return null}(st))||(st=it()),st&&st!==F&&(F=st),b&&(Il(I),I=Qd(Qe)),F&&(Il(G),G=Qd(tt))}}function Qe(){Ot(b),Il(I),I=Qd(Qe)}function tt(){!F||(Ot(F),Il(G),G=Qd(tt))}function Ot(Jt){var Dt,gn,st=uE(Jt);Dt=s.x<st.left+t.margin.left?Math.floor(Math.max(-1,(s.x-st.left)/t.margin.left-1)*t.maxSpeed.left):s.x>st.right-t.margin.right?Math.ceil(Math.min(1,(s.x-st.right)/t.margin.right+1)*t.maxSpeed.right):0,gn=s.y<st.top+t.margin.top?Math.floor(Math.max(-1,(s.y-st.top)/t.margin.top-1)*t.maxSpeed.top):s.y>st.bottom-t.margin.bottom?Math.ceil(Math.min(1,(s.y-st.bottom)/t.margin.bottom+1)*t.maxSpeed.bottom):0,t.syncMove()&&p.dispatch(Jt,{pageX:s.pageX+Dt,pageY:s.pageY+gn,clientX:s.x+Dt,clientY:s.y+gn}),setTimeout(function(){gn&&function(Jt,st){Jt===window?window.scrollTo(Jt.pageXOffset,Jt.pageYOffset+st):Jt.scrollTop+=st}(Jt,gn),Dt&&function(Jt,st){Jt===window?window.scrollTo(Jt.pageXOffset+st,Jt.pageYOffset):Jt.scrollLeft+=st}(Jt,Dt)})}window.addEventListener("mousedown",te,!1),window.addEventListener("touchstart",te,!1),window.addEventListener("mouseup",ce,!1),window.addEventListener("touchend",ce,!1),window.addEventListener("pointerup",ce,!1),window.addEventListener("mousemove",ht,!1),window.addEventListener("touchmove",ht,!1),window.addEventListener("mouseleave",lt,!1),window.addEventListener("scroll",Y,!0)}function pE(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=uE(r);return n.y>t.top&&n.y<t.bottom&&n.x>t.left&&n.x<t.right}(n,r)}var Ro=f(35135),Kd=f(16338),Xg=f(64397),u4=f(75398),EC=f(4363),cm=function(){var n=function r(){(0,g.Z)(this,r),this.currentDrag=new Rn.xQ};return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)},providedIn:"root"}),n.ngInjectableDef=(0,e.Ez6)({factory:function(){return new n},token:n,providedIn:"root"}),n}(),MC=function(){var n=function r(t){(0,g.Z)(this,r),this.elementRef=t,this.activeLongPressDrag=!1,this.longPressConfig={duration:300,delta:30}};return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","mwlDraggableScrollContainer",""]],inputs:{activeLongPressDrag:"activeLongPressDrag",longPressConfig:"longPressConfig"}}),n}();var c4=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 Rn.xQ,this.pointerMove$=new Rn.xQ,this.pointerUp$=new Rn.xQ,this.eventListenerSubscriptions={},this.destroy$=new Rn.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,_i.h)(function(){return i.canDrag()}),(0,Ro.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 qo.y(function(te){return i.renderer.listen(i.scrollContainer?i.scrollContainer.elementRef.nativeElement:"window","scroll",function(xe){return te.next(xe)})}).pipe((0,ea.O)(u),(0,Ar.U)(function(){return i.getScrollPosition()})),m=new Rn.xQ,b=new i4.t;i.zone.run(function(){i.dragPointerDown.next({x:0,y:0})});var I=(0,ro.T)(i.pointerUp$,i.pointerDown$,b,i.destroy$).pipe((0,Kd.B)()),F=(0,lm.aj)([i.pointerMove$,p]).pipe((0,Ar.U)(function(te){var ce=(0,C.Z)(te,2),xe=ce[0],lt=ce[1];return{currentDrag$:m,transformX:xe.clientX-a.clientX,transformY:xe.clientY-a.clientY,clientX:xe.clientX,clientY:xe.clientY,scrollLeft:lt.left,scrollTop:lt.top,target:xe.event.target}}),(0,Ar.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,Ar.U)(function(te){return i.dragAxis.x||(te.transformX=0),i.dragAxis.y||(te.transformY=0),te}),(0,Ar.U)(function(te){return Object.assign({},te,{x:te.transformX+(te.scrollLeft-u.left),y:te.transformY+(te.scrollTop-u.top)})}),(0,_i.h)(function(te){return!i.validateDrag||i.validateDrag({x:te.x,y:te.y,transform:{x:te.transformX,y:te.transformY}})}),(0,qr.R)(I),(0,Kd.B)()),G=F.pipe((0,qi.q)(1),(0,Kd.B)()),Y=F.pipe((0,Xg.h)(1),(0,Kd.B)());return G.subscribe(function(te){var ce=te.clientX,xe=te.clientY,lt=te.x,nt=te.y;if(i.zone.run(function(){i.dragStart.next({cancelDrag$:b})}),i.scroller=function(n,r){return new dE(n,r)}([i.scrollContainer?i.scrollContainer.elementRef.nativeElement:i.document.defaultView],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 it=i.element.nativeElement.getBoundingClientRect(),ht=i.element.nativeElement.cloneNode(!0);if(i.showOriginalElementWhileDragging||i.renderer.setStyle(i.element.nativeElement,"visibility","hidden"),i.ghostElementAppendTo?i.ghostElementAppendTo.appendChild(ht):i.element.nativeElement.parentNode.insertBefore(ht,i.element.nativeElement.nextSibling),i.ghostElement=ht,i.document.body.style.cursor=i.dragCursor,i.setElementStyles(ht,{position:"fixed",top:"".concat(it.top,"px"),left:"".concat(it.left,"px"),width:"".concat(it.width,"px"),height:"".concat(it.height,"px"),cursor:i.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),i.ghostElementTemplate){var Qe=i.vcr.createEmbeddedView(i.ghostElementTemplate);ht.innerHTML="",Qe.rootNodes.filter(function(tt){return tt instanceof Node}).forEach(function(tt){ht.appendChild(tt)}),Y.subscribe(function(){i.vcr.remove(i.vcr.indexOf(Qe))})}i.zone.run(function(){i.ghostElementCreated.emit({clientX:ce-lt,clientY:xe-nt,element:ht})}),Y.subscribe(function(){ht.parentElement.removeChild(ht),i.ghostElement=null,i.renderer.setStyle(i.element.nativeElement,"visibility","")})}i.draggableHelper.currentDrag.next(m)}),Y.pipe((0,Ro.zg)(function(te){var ce=b.pipe((0,u4.Q)(),(0,qi.q)(1),(0,Ar.U)(function(xe){return Object.assign({},te,{dragCancelled:xe>0})}));return b.complete(),ce})).subscribe(function(te){var ce=te.x,xe=te.y,lt=te.dragCancelled;i.scroller.destroy(),i.zone.run(function(){i.dragEnd.next({x:ce,y:xe,dragCancelled:lt})}),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,ro.T)(I,Y).pipe((0,qi.q)(1)).subscribe(function(){requestAnimationFrame(function(){i.document.head.removeChild(s)})}),F}),(0,Kd.B)());(0,ro.T)(o.pipe((0,qi.q)(1),(0,Ar.U)(function(a){return[,a]})),o.pipe((0,EC.G)())).pipe((0,_i.h)(function(a){var s=(0,C.Z)(a,2),u=s[0],p=s[1];return!u||u.x!==p.x||u.y!==p.y}),(0,Ar.U)(function(a){return(0,C.Z)(a,2)[1]})).subscribe(function(a){var s=a.x,u=a.y,p=a.currentDrag$,m=a.clientX,b=a.clientY,I=a.transformX,F=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(I,"px, ").concat(F,"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:b,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.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&(this.timeLongPress.timerBegin=Date.now(),s=!1,u=this.hasScrollbar(),a=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){var p=(0,am.R)(this.document,"contextmenu").subscribe(function(b){b.preventDefault()}),m=(0,am.R)(this.document,"touchmove",{passive:!1}).subscribe(function(b){(o.scrollContainer&&o.scrollContainer.activeLongPressDrag||o.touchStartLongPress)&&!s&&u&&(s=o.shouldBeginDrag(i,b,a)),((!o.scrollContainer||!o.scrollContainer.activeLongPressDrag)&&!o.touchStartLongPress||!u||s)&&(b.preventDefault(),o.pointerMove$.next({event:b,clientX:b.targetTouches[0].clientX,clientY:b.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.scrollContainer&&this.scrollContainer.activeLongPressDrag||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,I=this.touchStartLongPress?this.touchStartLongPress:{delta:this.scrollContainer.longPressConfig.delta,delay:this.scrollContainer.longPressConfig.duration};return(p+m>I.delta||u_top>0||u_left>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=I.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(cm),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(MC,8),e.Y36(Mt.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}(),$g=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}(),mE=f(39095);function Cf(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function vE(n){return 1===n.length&&(n=function(n){return function(r,t){return Cf(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 gE=vE(Cf),H3=gE.right,V3=gE.left,Sf=H3;function d4(n,r){null==r&&(r=OC);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 OC(n,r){return[n,r]}function q3(n,r,t){var s,u,p,m,i=n.length,o=r.length,a=new Array(i*o);for(null==t&&(t=OC),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 p4(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function qc(n){return null===n?NaN:+n}function _E(n,r){var s,u,t=n.length,i=0,o=-1,a=0,p=0;if(null==r)for(;++o<t;)isNaN(s=qc(n[o]))||(p+=(u=s-a)*(s-(a+=u/++i)));else for(;++o<t;)isNaN(s=qc(r(n[o],o,n)))||(p+=(u=s-a)*(s-(a+=u/++i)));if(i>1)return p/(i-1)}function Tf(n,r){var t=_E(n,r);return t&&Math.sqrt(t)}function PC(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 yE=Array.prototype,j3=yE.slice,IC=yE.map;function e_(n){return function(){return n}}function fu(n){return n}function Ps(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 dm=Math.sqrt(50),RC=Math.sqrt(10),NC=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=xf(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 xf(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>=dm?10:a>=RC?5:a>=NC?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=dm?10:a>=RC?5:a>=NC?2:1)}function jc(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>=dm?o*=10:a>=RC?o*=5:a>=NC&&(o*=2),r<n?-o:o}function ZC(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function bE(){var n=fu,r=PC,t=ZC;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),b=m[0],I=m[1],F=t(p,b,I);Array.isArray(F)||(F=jc(b,I,F),F=Ps(Math.ceil(b/F)*F,I,F));for(var G=F.length;F[0]<=b;)F.shift(),--G;for(;F[G-1]>I;)F.pop(),--G;var te,Y=new Array(G+1);for(a=0;a<=G;++a)(te=Y[a]=[]).x0=a>0?F[a-1]:b,te.x1=a<G?F[a]:I;for(a=0;a<s;++a)b<=(u=p[a])&&u<=I&&Y[Sf(F,u,0,G)].push(o[a]);return Y}return i.value=function(o){return arguments.length?(n="function"==typeof o?o:e_(o),i):n},i.domain=function(o){return arguments.length?(r="function"==typeof o?o:e_([o[0],o[1]]),i):r},i.thresholds=function(o){return arguments.length?(t="function"==typeof o?o:Array.isArray(o)?e_(j3.call(o)):e_(o),i):t},i}function wf(n,r,t){if(null==t&&(t=qc),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 z3(n,r,t){return n=IC.call(n,qc).sort(Cf),Math.ceil((t-r)/(2*(wf(n,.75)-wf(n,.25))*Math.pow(n.length,-1/3)))}function W3(n,r,t){return Math.ceil((t-r)/(3.5*Tf(n)*Math.pow(n.length,-1/3)))}function t_(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 CE(n,r){var a,t=n.length,i=t,o=-1,s=0;if(null==r)for(;++o<t;)isNaN(a=qc(n[o]))?--i:s+=a;else for(;++o<t;)isNaN(a=qc(r(n[o],o,n)))?--i:s+=a;if(i)return s/i}function SE(n,r){var o,t=n.length,i=-1,a=[];if(null==r)for(;++i<t;)isNaN(o=qc(n[i]))||a.push(o);else for(;++i<t;)isNaN(o=qc(r(n[i],i,n)))||a.push(o);return wf(a.sort(Cf),.5)}function fm(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 TE(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 Rl(n,r){for(var t=r.length,i=new Array(t);t--;)i[t]=n[r[t]];return i}function G3(n,r){if(t=n.length){var t,a,i=0,o=0,s=n[o];for(null==r&&(r=Cf);++i<t;)(r(a=n[i],s)<0||0!==r(s,s))&&(s=a,o=i);if(0===r(s,s))return o}}function f4(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 Y3(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 J3(n){if(!(a=n.length))return[];for(var r=-1,t=TE(n,Q3),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 Q3(n){return n.length}function K3(){return J3(arguments)}var LC=Array.prototype.slice;function h4(n){return n}function X3(n){return"translate("+(n+.5)+",0)"}function m4(n){return"translate(0,"+(n+.5)+")"}function xE(n){return function(r){return+n(r)}}function wE(n){var r=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(r=Math.round(r)),function(t){return+n(t)+r}}function $3(){return!this.__axis}function r_(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",b=1===n||3===n?X3:m4;function I(F){var G=null==i?r.ticks?r.ticks.apply(r,t):r.domain():i,Y=null==o?r.tickFormat?r.tickFormat.apply(r,t):h4:o,te=Math.max(a,0)+u,ce=r.range(),xe=+ce[0]+.5,lt=+ce[ce.length-1]+.5,nt=(r.bandwidth?wE:xE)(r.copy()),it=F.selection?F.selection():F,ht=it.selectAll(".domain").data([null]),Qe=it.selectAll(".tick").data(G,r).order(),tt=Qe.exit(),Ot=Qe.enter().append("g").attr("class","tick"),xt=Qe.select("line"),hn=Qe.select("text");ht=ht.merge(ht.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Qe=Qe.merge(Ot),xt=xt.merge(Ot.append("line").attr("stroke","currentColor").attr(m+"2",p*a)),hn=hn.merge(Ot.append("text").attr("fill","currentColor").attr(m,p*te).attr("dy",1===n?"0em":3===n?"0.71em":"0.32em")),F!==it&&(ht=ht.transition(F),Qe=Qe.transition(F),xt=xt.transition(F),hn=hn.transition(F),tt=tt.transition(F).attr("opacity",1e-6).attr("transform",function(Jt){return isFinite(Jt=nt(Jt))?b(Jt):this.getAttribute("transform")}),Ot.attr("opacity",1e-6).attr("transform",function(Jt){var st=this.parentNode.__axis;return b(st&&isFinite(st=st(Jt))?st:nt(Jt))})),tt.remove(),ht.attr("d",4===n||2==n?s?"M"+p*s+","+xe+"H0.5V"+lt+"H"+p*s:"M0.5,"+xe+"V"+lt:s?"M"+xe+","+p*s+"V0.5H"+lt+"V"+p*s:"M"+xe+",0.5H"+lt),Qe.attr("opacity",1).attr("transform",function(Jt){return b(nt(Jt))}),xt.attr(m+"2",p*a),hn.attr(m,p*te).text(Y),it.filter($3).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===n?"start":4===n?"end":"middle"),it.each(function(){this.__axis=nt})}return I.scale=function(F){return arguments.length?(r=F,I):r},I.ticks=function(){return t=LC.call(arguments),I},I.tickArguments=function(F){return arguments.length?(t=null==F?[]:LC.call(F),I):t.slice()},I.tickValues=function(F){return arguments.length?(i=null==F?null:LC.call(F),I):i&&i.slice()},I.tickFormat=function(F){return arguments.length?(o=F,I):o},I.tickSize=function(F){return arguments.length?(a=s=+F,I):a},I.tickSizeInner=function(F){return arguments.length?(a=+F,I):a},I.tickSizeOuter=function(F){return arguments.length?(s=+F,I):s},I.tickPadding=function(F){return arguments.length?(u=+F,I):u},I}function kE(n){return r_(1,n)}function vm(n){return r_(2,n)}function UC(n){return r_(3,n)}function EE(n){return r_(4,n)}var eR={value:function(){}};function ME(){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 HC(t)}function HC(n){this._=n}function v4(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 g4(n,r){for(var o,t=0,i=n.length;t<i;++t)if((o=n[t]).name===r)return o.value}function VC(n,r,t){for(var i=0,o=n.length;i<o;++i)if(n[i].name===r){n[i]=eR,n=n.slice(0,i).concat(n.slice(i+1));break}return null!=t&&n.push({name:r,value:t}),n}HC.prototype=ME.prototype={constructor:HC,on:function(r,t){var a,i=this._,o=v4(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]=VC(i[a],r.name,t);else if(null==t)for(a in i)i[a]=VC(i[a],r.name,null);return this}for(;++s<u;)if((a=(r=o[s]).type)&&(a=g4(i[a],r.name)))return a},copy:function(){var r={},t=this._;for(var i in t)r[i]=t[i].slice();return new HC(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 Xd=ME,qC="http://www.w3.org/1999/xhtml",jC={svg:"http://www.w3.org/2000/svg",xhtml:qC,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function gm(n){var r=n+="",t=r.indexOf(":");return t>=0&&"xmlns"!==(r=n.slice(0,t))&&(n=n.slice(t+1)),jC.hasOwnProperty(r)?{space:jC[r],local:n}:n}function tR(n){return function(){var r=this.ownerDocument,t=this.namespaceURI;return t===qC&&r.documentElement.namespaceURI===qC?r.createElement(n):r.createElementNS(t,n)}}function AE(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function i_(n){var r=gm(n);return(r.local?AE:tR)(r)}function nR(){}function zC(n){return null==n?nR:function(){return this.querySelector(n)}}function WC(){return[]}function DE(n){return null==n?WC:function(){return this.querySelectorAll(n)}}var OE=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var _m=document.documentElement;if(!_m.matches){var GC=_m.webkitMatchesSelector||_m.msMatchesSelector||_m.mozMatchesSelector||_m.oMatchesSelector;OE=function(r){return function(){return GC.call(this,r)}}}}var PE=OE;function oR(n){return new Array(n.length)}function ym(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function y4(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 ym(n,a[s]);for(;s<p;++s)(u=r[s])&&(o[s]=u)}function a_(n,r,t,i,o,a,s){var u,p,G,m={},b=r.length,I=a.length,F=new Array(b);for(u=0;u<b;++u)(p=r[u])&&(F[u]=G="$"+s.call(p,p.__data__,u,r),G in m?o[u]=p:m[G]=p);for(u=0;u<I;++u)(p=m[G="$"+s.call(n,a[u],u,a)])?(i[u]=p,p.__data__=a[u],m[G]=null):t[u]=new ym(n,a[u]);for(u=0;u<b;++u)(p=r[u])&&m[F[u]]===p&&(o[u]=p)}function sR(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function uR(n){return function(){this.removeAttribute(n)}}function cR(n){return function(){this.removeAttributeNS(n.space,n.local)}}function dR(n,r){return function(){this.setAttribute(n,r)}}function pR(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function fR(n,r){return function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(n):this.setAttribute(n,t)}}function hR(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 QC(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function vR(n){return function(){this.style.removeProperty(n)}}function gR(n,r,t){return function(){this.style.setProperty(n,r,t)}}function E4(n,r,t){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,t)}}function ep(n,r){return n.style.getPropertyValue(r)||QC(n).getComputedStyle(n,null).getPropertyValue(r)}function _R(n){return function(){delete this[n]}}function yR(n,r){return function(){this[n]=r}}function bR(n,r){return function(){var t=r.apply(this,arguments);null==t?delete this[n]:this[n]=t}}function $s(n){return n.trim().split(/^|\s+/)}function KC(n){return n.classList||new RE(n)}function RE(n){this._node=n,this._names=$s(n.getAttribute("class")||"")}function NE(n,r){for(var t=KC(n),i=-1,o=r.length;++i<o;)t.add(r[i])}function ZE(n,r){for(var t=KC(n),i=-1,o=r.length;++i<o;)t.remove(r[i])}function A4(n){return function(){NE(this,n)}}function SR(n){return function(){ZE(this,n)}}function TR(n,r){return function(){(r.apply(this,arguments)?NE:ZE)(this,n)}}function bm(){this.textContent=""}function LE(n){return function(){this.textContent=n}}function D4(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function O4(){this.innerHTML=""}function P4(n){return function(){this.innerHTML=n}}function I4(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function kR(){this.nextSibling&&this.parentNode.appendChild(this)}function MR(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function DR(){return null}function Nl(){var n=this.parentNode;n&&n.removeChild(this)}function FE(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function PR(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}ym.prototype={constructor:ym,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)}},RE.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 $C={},Dn=null;function t1(n,r,t){return n=Cm(n,r,t),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function Cm(n,r,t){return function(i){var o=Dn;Dn=i;try{n.call(this,this.__data__,r,t)}finally{Dn=o}}}function s_(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 HE(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 VE(n,r,t){var i=$C.hasOwnProperty(n.type)?t1:Cm;return function(o,a,s){var p,u=this.__on,m=i(r,a,s);if(u)for(var b=0,I=u.length;b<I;++b)if((p=u[b]).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 Sm(n,r,t,i){var o=Dn;n.sourceEvent=Dn,Dn=n;try{return r.apply(t,i)}finally{Dn=o}}function n1(n,r,t){var i=QC(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 RR(n,r){return function(){return n1(this,n,r)}}function NR(n,r){return function(){return n1(this,n,r.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||($C={mouseenter:"mouseover",mouseleave:"mouseout"}));var Tm=[null];function Qa(n,r){this._groups=n,this._parents=r}function Ia(){return new Qa([[document.documentElement]],Tm)}Qa.prototype=Ia.prototype={constructor:Qa,select:function(n){"function"!=typeof n&&(n=zC(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),b=0;b<s;++b)(p=a[b])&&(m=n.call(p,p.__data__,b,a))&&("__data__"in p&&(m.__data__=p.__data__),u[b]=m);return new Qa(i,this._parents)},selectAll:function(n){"function"!=typeof n&&(n=DE(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 Qa(i,o)},filter:function(n){"function"!=typeof n&&(n=PE(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 Qa(i,this._parents)},data:function(n,r){if(!n)return G=new Array(this.size()),m=-1,this.each(function(Qe){G[++m]=Qe}),G;var t=r?a_:y4,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 b=i[m],I=o[m],F=I.length,G=n.call(b,b&&b.__data__,m,i),Y=G.length,te=u[m]=new Array(Y),ce=s[m]=new Array(Y);t(b,I,te,ce,p[m]=new Array(F),G,r);for(var it,ht,lt=0,nt=0;lt<Y;++lt)if(it=te[lt]){for(lt>=nt&&(nt=lt+1);!(ht=ce[nt])&&++nt<Y;);it._next=ht||null}}return(s=new Qa(s,i))._enter=u,s._exit=p,s},enter:function(){return new Qa(this._enter||this._groups.map(oR),this._parents)},exit:function(){return new Qa(this._exit||this._groups.map(oR),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 F,p=r[u],m=t[u],b=p.length,I=s[u]=new Array(b),G=0;G<b;++G)(F=p[G]||m[G])&&(I[G]=F);for(;u<i;++u)s[u]=r[u];return new Qa(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(I,F){return I&&F?n(I.__data__,F.__data__):!I-!F}n||(n=sR);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),b=0;b<u;++b)(m=s[b])&&(p[b]=m);p.sort(r)}return new Qa(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=gm(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?cR:uR:"function"==typeof r?t.local?hR:fR:t.local?pR:dR)(t,r))},style:function(n,r,t){return arguments.length>1?this.each((null==r?vR:"function"==typeof r?E4:gR)(n,r,null==t?"":t)):ep(this.node(),n)},property:function(n,r){return arguments.length>1?this.each((null==r?_R:"function"==typeof r?bR:yR)(n,r)):this.node()[n]},classed:function(n,r){var t=$s(n+"");if(arguments.length<2){for(var i=KC(this.node()),o=-1,a=t.length;++o<a;)if(!i.contains(t[o]))return!1;return!0}return this.each(("function"==typeof r?TR:r?A4:SR)(t,r))},text:function(n){return arguments.length?this.each(null==n?bm:("function"==typeof n?D4:LE)(n)):this.node().textContent},html:function(n){return arguments.length?this.each(null==n?O4:("function"==typeof n?I4:P4)(n)):this.node().innerHTML},raise:function(){return this.each(kR)},lower:function(){return this.each(MR)},append:function(n){var r="function"==typeof n?n:i_(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function(n,r){var t="function"==typeof n?n:i_(n),i=null==r?DR:"function"==typeof r?r:zC(r);return this.select(function(){return this.insertBefore(t.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(Nl)},clone:function(n){return this.select(n?PR:FE)},datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function(n,r,t){var o,s,i=s_(n+""),a=i.length;if(!(arguments.length<2)){for(u=r?VE:HE,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 b,p=0,m=u.length;p<m;++p)for(o=0,b=u[p];o<a;++o)if((s=i[o]).type===b.type&&s.name===b.name)return b.value},dispatch:function(n,r){return this.each(("function"==typeof r?NR:RR)(n,r))}};var Is=Ia;function ei(n){return"string"==typeof n?new Qa([[document.querySelector(n)]],[document.documentElement]):new Qa([[n]],Tm)}function qE(n){return ei(i_(n).call(document.documentElement))}var l_=0;function u_(){return new c_}function c_(){this._="@"+(++l_).toString(36)}function xm(){for(var r,n=Dn;r=n.sourceEvent;)n=r;return n}function d_(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 el(n){var r=xm();return r.changedTouches&&(r=r.changedTouches[0]),d_(n,r)}function LR(n){return"string"==typeof n?new Qa([document.querySelectorAll(n)],[document.documentElement]):new Qa([null==n?[]:n],Tm)}function p_(n,r,t){arguments.length<3&&(t=r,r=xm().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===t)return d_(n,a);return null}function jE(n,r){null==r&&(r=xm().touches);for(var t=0,i=r?r.length:0,o=new Array(i);t<i;++t)o[t]=d_(n,r[t]);return o}function r1(){Dn.stopImmediatePropagation()}function kf(){Dn.preventDefault(),Dn.stopImmediatePropagation()}function f_(n){var r=n.document.documentElement,t=ei(n).on("dragstart.drag",kf,!0);"onselectstart"in r?t.on("selectstart.drag",kf,!0):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function Zl(n,r){var t=n.document.documentElement,i=ei(n).on("dragstart.drag",null);r&&(i.on("click.drag",kf,!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 hu(n,r,t){n.prototype=r.prototype=t,t.constructor=n}function tp(n,r){var t=Object.create(n.prototype);for(var i in r)t[i]=r[i];return t}function zc(){}c_.prototype=u_.prototype={constructor:c_,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 Ef=1/.7,Wc="\\s*([+-]?\\d+)\\s*",wm="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ll="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zE=/^#([0-9a-f]{3})$/,FR=/^#([0-9a-f]{6})$/,BR=new RegExp("^rgb\\("+[Wc,Wc,Wc]+"\\)$"),UR=new RegExp("^rgb\\("+[Ll,Ll,Ll]+"\\)$"),Hu=new RegExp("^rgba\\("+[Wc,Wc,Wc,wm]+"\\)$"),km=new RegExp("^rgba\\("+[Ll,Ll,Ll,wm]+"\\)$"),Mf=new RegExp("^hsl\\("+[wm,Ll,Ll]+"\\)$"),h_=new RegExp("^hsla\\("+[wm,Ll,Ll,wm]+"\\)$"),rp={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 Gc(n){var r;return n=(n+"").trim().toLowerCase(),(r=zE.exec(n))?new ua((r=parseInt(r[1],16))>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):(r=FR.exec(n))?WE(parseInt(r[1],16)):(r=BR.exec(n))?new ua(r[1],r[2],r[3],1):(r=UR.exec(n))?new ua(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Hu.exec(n))?GE(r[1],r[2],r[3],r[4]):(r=km.exec(n))?GE(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Mf.exec(n))?i1(r[1],r[2]/100,r[3]/100,1):(r=h_.exec(n))?i1(r[1],r[2]/100,r[3]/100,r[4]):rp.hasOwnProperty(n)?WE(rp[n]):"transparent"===n?new ua(NaN,NaN,NaN,0):null}function WE(n){return new ua(n>>16&255,n>>8&255,255&n,1)}function GE(n,r,t,i){return i<=0&&(n=r=t=NaN),new ua(n,r,t,i)}function m_(n){return n instanceof zc||(n=Gc(n)),n?new ua((n=n.rgb()).r,n.g,n.b,n.opacity):new ua}function Af(n,r,t,i){return 1===arguments.length?m_(n):new ua(n,r,t,null==i?1:i)}function ua(n,r,t,i){this.r=+n,this.g=+r,this.b=+t,this.opacity=+i}function i1(n,r,t,i){return i<=0?n=r=t=NaN:t<=0||t>=1?n=r=NaN:r<=0&&(n=NaN),new Vu(n,r,t,i)}function o1(n){if(n instanceof Vu)return new Vu(n.h,n.s,n.l,n.opacity);if(n instanceof zc||(n=Gc(n)),!n)return new Vu;if(n instanceof Vu)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 Vu(s,u,p,n.opacity)}function a1(n,r,t,i){return 1===arguments.length?o1(n):new Vu(n,r,t,null==i?1:i)}function Vu(n,r,t,i){this.h=+n,this.s=+r,this.l=+t,this.opacity=+i}function YE(n,r,t){return 255*(n<60?r+(t-r)*n/60:n<180?t:n<240?r+(t-r)*(240-n)/60:r)}hu(zc,Gc,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),hu(ua,Af,tp(zc,{brighter:function(r){return r=null==r?Ef:Math.pow(Ef,r),new ua(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new ua(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+")")}})),hu(Vu,a1,tp(zc,{brighter:function(r){return r=null==r?Ef:Math.pow(Ef,r),new Vu(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Vu(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 ua(YE(r>=240?r-240:r+120,a,o),YE(r,a,o),YE(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 Yc=Math.PI/180,JE=180/Math.PI,jR=4/29,Em=6/29,zR=3*Em*Em;function QE(n){if(n instanceof qu)return new qu(n.l,n.a,n.b,n.opacity);if(n instanceof l){if(isNaN(n.h))return new qu(n.l,0,0,n.opacity);var r=n.h*Yc;return new qu(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}n instanceof ua||(n=m_(n));var s,u,t=$E(n.r),i=$E(n.g),o=$E(n.b),a=KE((.2225045*t+.7168786*i+.0606169*o)/1);return t===i&&i===o?s=u=a:(s=KE((.4360747*t+.3850649*i+.1430804*o)/.96422),u=KE((.0139322*t+.0971045*i+.7141733*o)/.82521)),new qu(116*a-16,500*(s-a),200*(a-u),n.opacity)}function s1(n,r,t,i){return 1===arguments.length?QE(n):new qu(n,r,t,null==i?1:i)}function qu(n,r,t,i){this.l=+n,this.a=+r,this.b=+t,this.opacity=+i}function KE(n){return n>.008856451679035631?Math.pow(n,1/3):n/zR+jR}function l1(n){return n>Em?n*n*n:zR*(n-jR)}function XE(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function $E(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Z4(n){if(n instanceof l)return new l(n.h,n.c,n.l,n.opacity);if(n instanceof qu||(n=QE(n)),0===n.a&&0===n.b)return new l(NaN,0,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*JE;return new l(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function u1(n,r,t,i){return 1===arguments.length?Z4(n):new l(n,r,t,null==i?1:i)}function l(n,r,t,i){this.h=+n,this.c=+r,this.l=+t,this.opacity=+i}hu(qu,s1,tp(zc,{brighter:function(r){return new qu(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new qu(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 ua(XE(3.1338561*(t=.96422*l1(t))-1.6168667*(r=1*l1(r))-.4906146*(i=.82521*l1(i))),XE(-.9787684*t+1.9161415*r+.033454*i),XE(.0719453*t-.2289914*r+1.4052427*i),this.opacity)}})),hu(l,u1,tp(zc,{brighter:function(r){return new l(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new l(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return QE(this).rgb()}}));var c=-.14861,d=1.78277,h=-.29227,v=-.90649,k=1.97294,H=k*v,W=k*d,X=d*h-v*c;function fe(n){if(n instanceof Ke)return new Ke(n.h,n.s,n.l,n.opacity);n instanceof ua||(n=m_(n));var t=n.g/255,i=n.b/255,o=(X*i+H*(n.r/255)-W*t)/(X+H-W),a=i-o,s=(k*(t-o)-h*a)/v,u=Math.sqrt(s*s+a*a)/(k*o*(1-o)),p=u?Math.atan2(s,a)*JE-120:NaN;return new Ke(p<0?p+360:p,u,o,n.opacity)}function ke(n,r,t,i){return 1===arguments.length?fe(n):new Ke(n,r,t,null==i?1:i)}function Ke(n,r,t,i){this.h=+n,this.s=+r,this.l=+t,this.opacity=+i}function Je(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 ft(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 Je((t-i/r)*r,i>0?n[i-1]:2*o-a,o,a,i<r-1?n[i+2]:2*a-o)}}function At(n){var r=n.length;return function(t){var i=Math.floor(((t%=1)<0?++t:t)*r);return Je((t-i/r)*r,n[(i+r-1)%r],n[i%r],n[(i+1)%r],n[(i+2)%r])}}function Gt(n){return function(){return n}}function vn(n,r){return function(t){return n+t*r}}function yn(n,r){var t=r-n;return t?vn(n,t>180||t<-180?t-360*Math.round(t/360):t):Gt(isNaN(n)?r:n)}function fr(n,r){var t=r-n;return t?vn(n,t):Gt(isNaN(n)?r:n)}hu(Ke,ke,tp(zc,{brighter:function(r){return r=null==r?Ef:Math.pow(Ef,r),new Ke(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Ke(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*Yc,t=+this.l,i=isNaN(this.s)?0:this.s*t*(1-t),o=Math.cos(r),a=Math.sin(r);return new ua(255*(t+i*(c*o+d*a)),255*(t+i*(h*o+v*a)),255*(t+i*(k*o)),this.opacity)}}));var Qr=function n(r){var t=function(n){return 1==(n=+n)?fr: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):Gt(isNaN(r)?t:r)}}(r);function i(o,a){var s=t((o=Af(o)).r,(a=Af(a)).r),u=t(o.g,a.g),p=t(o.b,a.b),m=fr(o.opacity,a.opacity);return function(b){return o.r=s(b),o.g=u(b),o.b=p(b),o.opacity=m(b),o+""}}return i.gamma=n,i}(1);function Mi(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=Af(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 io=Mi(ft),ta=Mi(At);function na(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]=Pf(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 Fl(n,r){var t=new Date;return r-=n=+n,function(i){return t.setTime(n+r*i),t}}function zo(n,r){return r-=n=+n,function(t){return n+r*t}}function Jc(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]=Pf(n[o],r[o]):i[o]=r[o];return function(a){for(o in t)i[o]=t[o](a);return i}}var mu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bl=new RegExp(mu.source,"g");function Of(n,r){var i,o,a,t=mu.lastIndex=Bl.lastIndex=0,s=-1,u=[],p=[];for(n+="",r+="";(i=mu.exec(n))&&(o=Bl.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:zo(i,o)})),t=Bl.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 I,b=0;b<r;++b)u[(I=p[b]).i]=I.x(m);return u.join("")})}function Pf(n,r){var i,t=typeof r;return null==r||"boolean"===t?Gt(r):("number"===t?zo:"string"===t?(i=Gc(r))?(r=i,Qr):Of:r instanceof Gc?Qr:r instanceof Date?Fl:Array.isArray(r)?na:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?Jc:zo)(n,r)}function eM(n,r){return r-=n=+n,function(t){return Math.round(n+r*t)}}var If,d1,rM,g_,tM=180/Math.PI,c1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function nM(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)*tM,skewX:Math.atan(p)*tM,scaleX:s,scaleY:u}}function oM(n,r,t,i){function o(m){return m.length?m.pop()+" ":""}return function(m,b){var I=[],F=[];return m=n(m),b=n(b),function(m,b,I,F,G,Y){if(m!==I||b!==F){var te=G.push("translate(",null,r,null,t);Y.push({i:te-4,x:zo(m,I)},{i:te-2,x:zo(b,F)})}else(I||F)&&G.push("translate("+I+r+F+t)}(m.translateX,m.translateY,b.translateX,b.translateY,I,F),function(m,b,I,F){m!==b?(m-b>180?b+=360:b-m>180&&(m+=360),F.push({i:I.push(o(I)+"rotate(",null,i)-2,x:zo(m,b)})):b&&I.push(o(I)+"rotate("+b+i)}(m.rotate,b.rotate,I,F),function(m,b,I,F){m!==b?F.push({i:I.push(o(I)+"skewX(",null,i)-2,x:zo(m,b)}):b&&I.push(o(I)+"skewX("+b+i)}(m.skewX,b.skewX,I,F),function(m,b,I,F,G,Y){if(m!==I||b!==F){var te=G.push(o(G)+"scale(",null,",",null,")");Y.push({i:te-4,x:zo(m,I)},{i:te-2,x:zo(b,F)})}else(1!==I||1!==F)&&G.push(o(G)+"scale("+I+","+F+")")}(m.scaleX,m.scaleY,b.scaleX,b.scaleY,I,F),m=b=null,function(G){for(var ce,Y=-1,te=F.length;++Y<te;)I[(ce=F[Y]).i]=ce.x(G);return I.join("")}}}var L4=oM(function(n){return"none"===n?c1:(If||(If=document.createElement("DIV"),d1=document.documentElement,rM=document.defaultView),If.style.transform=n,n=rM.getComputedStyle(d1.appendChild(If),null).getPropertyValue("transform"),d1.removeChild(If),nM(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),F4=oM(function(n){return null!=n&&(g_||(g_=document.createElementNS("http://www.w3.org/2000/svg","g")),g_.setAttribute("transform",n),n=g_.transform.baseVal.consolidate())?nM((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):c1},", ",")",")"),p1=Math.SQRT2;function U4(n){return((n=Math.exp(n))+1/n)/2}function H4(n,r){var I,F,t=n[0],i=n[1],o=n[2],u=r[2],p=r[0]-t,m=r[1]-i,b=p*p+m*m;if(b<1e-12)F=Math.log(u/o)/p1,I=function(nt){return[t+nt*p,i+nt*m,o*Math.exp(p1*nt*F)]};else{var G=Math.sqrt(b),Y=(u*u-o*o+4*b)/(2*o*2*G),te=(u*u-o*o-4*b)/(2*u*2*G),ce=Math.log(Math.sqrt(Y*Y+1)-Y),xe=Math.log(Math.sqrt(te*te+1)-te);F=(xe-ce)/p1,I=function(nt){var it=nt*F,ht=U4(ce),Qe=o/(2*G)*(ht*function(n){return((n=Math.exp(2*n))-1)/(n+1)}(p1*it+ce)-function(n){return((n=Math.exp(n))-1/n)/2}(ce));return[t+Qe*p,i+Qe*m,o*ht/U4(p1*it+ce)]}}return I.duration=1e3*F,I}function V4(n){return function(r,t){var i=n((r=a1(r)).h,(t=a1(t)).h),o=fr(r.s,t.s),a=fr(r.l,t.l),s=fr(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 YW=V4(yn),JW=V4(fr);function QW(n,r){var t=fr((n=s1(n)).l,(r=s1(r)).l),i=fr(n.a,r.a),o=fr(n.b,r.b),a=fr(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 q4(n){return function(r,t){var i=n((r=u1(r)).h,(t=u1(t)).h),o=fr(r.c,t.c),a=fr(r.l,t.l),s=fr(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 KW=q4(yn),XW=q4(fr);function j4(n){return function r(t){function i(o,a){var s=n((o=ke(o)).h,(a=ke(a)).h),u=fr(o.s,a.s),p=fr(o.l,a.l),m=fr(o.opacity,a.opacity);return function(b){return o.h=s(b),o.s=u(b),o.l=p(Math.pow(b,t)),o.opacity=m(b),o+""}}return t=+t,i.gamma=r,i}(1)}var $W=j4(yn),aM=j4(fr);function eG(n,r){for(var t=new Array(r),i=0;i<r;++i)t[i]=n(i/(r-1));return t}var sM,m1,__=0,f1=0,h1=0,lM=0,Mm=0,uM=0,v1="object"==typeof performance&&performance.now?performance:Date,W4="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function y_(){return Mm||(W4(tG),Mm=v1.now()+uM)}function tG(){Mm=0}function g1(){this._call=this._time=this._next=null}function cM(n,r,t){var i=new g1;return i.restart(n,r,t),i}function G4(){y_(),++__;for(var r,n=sM;n;)(r=Mm-n._time)>=0&&n._call.call(null,r),n=n._next;--__}function Y4(){Mm=(lM=v1.now())+uM,__=f1=0;try{G4()}finally{__=0,function(){for(var n,t,r=sM,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:sM=t);m1=n,JR(i)}(),Mm=0}}function nG(){var n=v1.now(),r=n-lM;r>1e3&&(uM-=r,lM=n)}function JR(n){__||(f1&&(f1=clearTimeout(f1)),n-Mm>24?(n<1/0&&(f1=setTimeout(Y4,n-v1.now()-uM)),h1&&(h1=clearInterval(h1))):(h1||(lM=v1.now(),h1=setInterval(nG,1e3)),__=1,W4(Y4)))}function QR(n,r,t){var i=new g1;return i.restart(function(o){i.stop(),n(o+r)},r=null==r?0:+r,t),i}g1.prototype=cM.prototype={constructor:g1,restart:function(r,t,i){if("function"!=typeof r)throw new TypeError("callback is not a function");i=(null==i?y_():+i)+(null==t?0:+t),!this._next&&m1!==this&&(m1?m1._next=this:sM=this,m1=this),this._call=r,this._time=i,JR()},stop:function(){this._call&&(this._call=null,this._time=1/0,JR())}};var iG=Xd("start","end","interrupt"),oG=[];function fM(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 b,I,F,G;if(1!==t.state)return p();for(b in i)if((G=i[b]).name===t.name){if(3===G.state)return QR(s);4===G.state?(G.state=6,G.timer.stop(),G.on.call("interrupt",n,n.__data__,G.index,G.group),delete i[b]):+b<r&&(G.state=6,G.timer.stop(),delete i[b])}if(QR(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(F=t.tween.length),b=0,I=-1;b<F;++b)(G=t.tween[b].value.call(n,n.__data__,t.index,t.group))&&(o[++I]=G);o.length=I+1}}function u(m){for(var b=m<t.duration?t.ease.call(null,m/t.duration):(t.timer.restart(p),t.state=5,1),I=-1,F=o.length;++I<F;)o[I].call(null,b);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=cM(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:iG,tween:oG,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function eN(n,r){var t=ju(n,r);if(t.state>0)throw new Error("too late; already scheduled");return t}function Am(n,r){var t=ju(n,r);if(t.state>2)throw new Error("too late; already started");return t}function ju(n,r){var t=n.__transition;if(!t||!(t=t[r]))throw new Error("transition not found");return t}function Dm(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 lG(n,r){var t,i;return function(){var o=Am(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 uG(n,r,t){var i,o;if("function"!=typeof t)throw new Error;return function(){var a=Am(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 tN(n,r,t){var i=n._id;return n.each(function(){var o=Am(this,i);(o.value||(o.value={}))[r]=t.apply(this,arguments)}),function(o){return ju(o,i).value[r]}}function K4(n,r){var t;return("number"==typeof r?zo:r instanceof Gc?Qr:(t=Gc(r))?(r=t,Qr):Of)(n,r)}function dG(n){return function(){this.removeAttribute(n)}}function pG(n){return function(){this.removeAttributeNS(n.space,n.local)}}function fG(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 hG(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 mG(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 vG(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 _G(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 yG(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 CG(n,r){return function(){eN(this,n).delay=+r.apply(this,arguments)}}function SG(n,r){return r=+r,function(){eN(this,n).delay=r}}function xG(n,r){return function(){Am(this,n).duration=+r.apply(this,arguments)}}function wG(n,r){return r=+r,function(){Am(this,n).duration=r}}function EG(n,r){if("function"!=typeof r)throw new Error;return function(){Am(this,n).ease=r}}function PG(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)?eN:Am;return function(){var s=a(this,n),u=s.on;u!==i&&(o=(i=u).copy()).on(r,t),s.on=o}}var FG=Is.prototype.constructor;function zG(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 KG=0;function Kc(n,r,t,i){this._groups=n,this._parents=r,this._name=t,this._id=i}function hM(n){return Is().transition(n)}function X4(){return++KG}var b_=Is.prototype;function XG(n){return n*n*n}function $G(n){return--n*n*n+1}function nN(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}Kc.prototype=hM.prototype={constructor:Kc,select:function(n){var r=this._name,t=this._id;"function"!=typeof n&&(n=zC(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var b,I,u=i[s],p=u.length,m=a[s]=new Array(p),F=0;F<p;++F)(b=u[F])&&(I=n.call(b,b.__data__,F,u))&&("__data__"in b&&(I.__data__=b.__data__),m[F]=I,fM(m[F],r,t,F,m,ju(b,t)));return new Kc(a,this._parents,r,t)},selectAll:function(n){var r=this._name,t=this._id;"function"!=typeof n&&(n=DE(n));for(var i=this._groups,o=i.length,a=[],s=[],u=0;u<o;++u)for(var b,p=i[u],m=p.length,I=0;I<m;++I)if(b=p[I]){for(var G,F=n.call(b,b.__data__,I,p),Y=ju(b,t),te=0,ce=F.length;te<ce;++te)(G=F[te])&&fM(G,r,t,te,F,Y);a.push(F),s.push(b)}return new Kc(a,s,r,t)},filter:function(n){"function"!=typeof n&&(n=PE(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 Kc(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 F,p=r[u],m=t[u],b=p.length,I=s[u]=new Array(b),G=0;G<b;++G)(F=p[G]||m[G])&&(I[G]=F);for(;u<i;++u)s[u]=r[u];return new Kc(s,this._parents,this._name,this._id)},selection:function(){return new FG(this._groups,this._parents)},transition:function(){for(var n=this._name,r=this._id,t=X4(),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 b=ju(p,r);fM(p,n,t,m,s,{time:b.time+b.delay+b.duration,delay:0,duration:b.duration,ease:b.ease})}return new Kc(i,this._parents,n,t)},call:b_.call,nodes:b_.nodes,node:b_.node,size:b_.size,empty:b_.empty,each:b_.each,on:function(n,r){var t=this._id;return arguments.length<2?ju(this.node(),t).on.on(n):this.each(PG(t,n,r))},attr:function(n,r){var t=gm(n),i="transform"===t?F4:K4;return this.attrTween(n,"function"==typeof r?(t.local?vG:mG)(t,i,tN(this,"attr."+n,r)):null==r?(t.local?pG:dG)(t):(t.local?hG:fG)(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=gm(n);return this.tween(t,(i.local?_G:yG)(i,r))},style:function(n,r,t){var i="transform"==(n+="")?L4:K4;return null==r?this.styleTween(n,function(n,r){var t,i,o;return function(){var a=ep(this,n),s=(this.style.removeProperty(n),ep(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=ep(this,n),u=t(this);return null==u&&(this.style.removeProperty(n),u=ep(this,n)),s===u?null:s===i&&u===o?a:a=r(i=s,o=u)}}(n,i,tN(this,"style."+n,r)):function(n,r,t){var i,o;return function(){var a=ep(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,zG(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}}(tN(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=ju(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?lG:uG)(t,n,r))},delay:function(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?CG:SG)(r,n)):ju(this.node(),r).delay},duration:function(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?xG:wG)(r,n)):ju(this.node(),r).duration},ease:function(n){var r=this._id;return arguments.length?this.each(EG(r,n)):ju(this.node(),r).ease}};var rN={time:null,delay:0,duration:250,ease:nN};function eY(n,r){for(var t;!(t=n.__transition)||!(t=t[r]);)if(!(n=n.parentNode))return rN.time=y_(),rN;return t}Is.prototype.interrupt=function(n){return this.each(function(){Dm(this,n)})},Is.prototype.transition=function(n){var r,t;n instanceof Kc?(r=n._id,n=n._name):(r=X4(),(t=rN).time=y_(),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])&&fM(p,n,r,m,s,t||eY(p,r));return new Kc(i,this._parents,n,r)};var nY=[null];function rY(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 Kc([[n]],nY,r,+o);return null}function $4(n){return function(){return n}}function iY(n,r,t){this.target=n,this.type=r,this.selection=t}function e8(){Dn.stopImmediatePropagation()}function mM(){Dn.preventDefault(),Dn.stopImmediatePropagation()}var t8={name:"drag"},iN={name:"space"},C_={name:"handle"},S_={name:"center"},vM={name:"x",handles:["e","w"].map(_1),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]]}},gM={name:"y",handles:["n","s"].map(_1),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]]}},oY={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(_1),input:function(r){return r},output:function(r){return r}},ip={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"},n8={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},r8={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},aY={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},sY={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function _1(n){return{type:n}}function lY(){return!Dn.button}function uY(){var n=this.ownerSVGElement||this;return[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function oN(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function aN(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function cY(n){var r=n.__brush;return r?r.dim.output(r.selection):null}function dY(){return sN(vM)}function pY(){return sN(gM)}function fY(){return sN(oY)}function sN(n){var a,r=uY,t=lY,i=Xd(s,"start","brush","end"),o=6;function s(F){var G=F.property("__brush",I).selectAll(".overlay").data([_1("overlay")]);G.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ip.overlay).merge(G).each(function(){var te=oN(this).extent;ei(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])}),F.selectAll(".selection").data([_1("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ip.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var Y=F.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 ip[te.type]}),F.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",b)}function u(){var F=ei(this),G=oN(this).selection;G?(F.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]),F.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})):F.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function p(F,G){return F.__brush.emitter||new m(F,G)}function m(F,G){this.that=F,this.args=G,this.state=F.__brush,this.active=0}function b(){if(Dn.touches){if(Dn.changedTouches.length<Dn.touches.length)return mM()}else if(a)return;if(t.apply(this,arguments)){var ht,Qe,Ot,xt,Jt,st,gn,fn,kn,Ln,or,Yr,cr,F=this,G=Dn.target.__data__.type,Y="selection"===(Dn.metaKey?G="overlay":G)?t8:Dn.altKey?S_:C_,te=n===gM?null:aY[G],ce=n===vM?null:sY[G],xe=oN(F),lt=xe.extent,nt=xe.selection,it=lt[0][0],tt=lt[0][1],hn=lt[1][0],Dt=lt[1][1],Sr=te&&ce&&Dn.shiftKey,$r=el(F),li=$r,Tr=p(F,arguments).beforestart();"overlay"===G?xe.selection=nt=[[ht=n===gM?it:$r[0],Ot=n===vM?tt:$r[1]],[Jt=n===gM?hn:ht,gn=n===vM?Dt:Ot]]:(ht=nt[0][0],Ot=nt[0][1],Jt=nt[1][0],gn=nt[1][1]),Qe=ht,xt=Ot,st=Jt,fn=gn;var Pi=ei(F).attr("pointer-events","none"),Eo=Pi.selectAll(".overlay").attr("cursor",ip[G]);if(Dn.touches)Pi.on("touchmove.brush",gr,!0).on("touchend.brush touchcancel.brush",jn,!0);else{var br=ei(Dn.view).on("keydown.brush",Lo,!0).on("keyup.brush",xi,!0).on("mousemove.brush",gr,!0).on("mouseup.brush",jn,!0);f_(Dn.view)}e8(),Dm(F),u.call(F),Tr.start()}function gr(){var Di=el(F);Sr&&!Yr&&!cr&&(Math.abs(Di[0]-li[0])>Math.abs(Di[1]-li[1])?cr=!0:Yr=!0),li=Di,or=!0,mM(),dr()}function dr(){var Di;switch(kn=li[0]-$r[0],Ln=li[1]-$r[1],Y){case iN:case t8:te&&(kn=Math.max(it-ht,Math.min(hn-Jt,kn)),Qe=ht+kn,st=Jt+kn),ce&&(Ln=Math.max(tt-Ot,Math.min(Dt-gn,Ln)),xt=Ot+Ln,fn=gn+Ln);break;case C_:te<0?(kn=Math.max(it-ht,Math.min(hn-ht,kn)),Qe=ht+kn,st=Jt):te>0&&(kn=Math.max(it-Jt,Math.min(hn-Jt,kn)),Qe=ht,st=Jt+kn),ce<0?(Ln=Math.max(tt-Ot,Math.min(Dt-Ot,Ln)),xt=Ot+Ln,fn=gn):ce>0&&(Ln=Math.max(tt-gn,Math.min(Dt-gn,Ln)),xt=Ot,fn=gn+Ln);break;case S_:te&&(Qe=Math.max(it,Math.min(hn,ht-kn*te)),st=Math.max(it,Math.min(hn,Jt+kn*te))),ce&&(xt=Math.max(tt,Math.min(Dt,Ot-Ln*ce)),fn=Math.max(tt,Math.min(Dt,gn+Ln*ce)))}st<Qe&&(te*=-1,Di=ht,ht=Jt,Jt=Di,Di=Qe,Qe=st,st=Di,G in n8&&Eo.attr("cursor",ip[G=n8[G]])),fn<xt&&(ce*=-1,Di=Ot,Ot=gn,gn=Di,Di=xt,xt=fn,fn=Di,G in r8&&Eo.attr("cursor",ip[G=r8[G]])),xe.selection&&(nt=xe.selection),Yr&&(Qe=nt[0][0],st=nt[1][0]),cr&&(xt=nt[0][1],fn=nt[1][1]),(nt[0][0]!==Qe||nt[0][1]!==xt||nt[1][0]!==st||nt[1][1]!==fn)&&(xe.selection=[[Qe,xt],[st,fn]],u.call(F),Tr.brush())}function jn(){if(e8(),Dn.touches){if(Dn.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500),Pi.on("touchmove.brush touchend.brush touchcancel.brush",null)}else Zl(Dn.view,or),br.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Pi.attr("pointer-events","all"),Eo.attr("cursor",ip.overlay),xe.selection&&(nt=xe.selection),aN(nt)&&(xe.selection=null,u.call(F)),Tr.end()}function Lo(){switch(Dn.keyCode){case 16:Sr=te&&ce;break;case 18:Y===C_&&(te&&(Jt=st-kn*te,ht=Qe+kn*te),ce&&(gn=fn-Ln*ce,Ot=xt+Ln*ce),Y=S_,dr());break;case 32:(Y===C_||Y===S_)&&(te<0?Jt=st-kn:te>0&&(ht=Qe-kn),ce<0?gn=fn-Ln:ce>0&&(Ot=xt-Ln),Y=iN,Eo.attr("cursor",ip.selection),dr());break;default:return}mM()}function xi(){switch(Dn.keyCode){case 16:Sr&&(Yr=cr=Sr=!1,dr());break;case 18:Y===S_&&(te<0?Jt=st:te>0&&(ht=Qe),ce<0?gn=fn:ce>0&&(Ot=xt),Y=C_,dr());break;case 32:Y===iN&&(Dn.altKey?(te&&(Jt=st-kn*te,ht=Qe+kn*te),ce&&(gn=fn-Ln*ce,Ot=xt+Ln*ce),Y=S_):(te<0?Jt=st:te>0&&(ht=Qe),ce<0?gn=fn:ce>0&&(Ot=xt),Y=C_),Eo.attr("cursor",ip[G]),dr());break;default:return}mM()}}function I(){var F=this.__brush||{selection:null};return F.extent=r.apply(this,arguments),F.dim=n,F}return s.move=function(F,G){F.selection?F.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,ce=p(Y,arguments),xe=te.selection,lt=n.input("function"==typeof G?G.apply(this,arguments):G,te.extent),nt=Pf(xe,lt);function it(ht){te.selection=1===ht&&aN(lt)?null:nt(ht),u.call(Y),ce.brush()}return xe&&lt?it:it(1)}):F.each(function(){var Y=this,te=arguments,ce=Y.__brush,xe=n.input("function"==typeof G?G.apply(Y,te):G,ce.extent),lt=p(Y,te).beforestart();Dm(Y),ce.selection=null==xe||aN(xe)?null:xe,u.call(Y),lt.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){Sm(new iY(s,G,n.output(this.state.selection)),i.apply,i,[G,this.that,this.args])}},s.extent=function(F){return arguments.length?(r="function"==typeof F?F:$4([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),s):r},s.filter=function(F){return arguments.length?(t="function"==typeof F?F:$4(!!F),s):t},s.handleSize=function(F){return arguments.length?(o=+F,s):o},s.on=function(){var F=i.on.apply(i,arguments);return F===i?s:F},s}var i8=Math.cos,o8=Math.sin,a8=Math.PI,_M=a8/2,s8=2*a8,l8=Math.max;function hY(n){return function(r,t){return n(r.source.value+r.target.value,t.source.value+t.target.value)}}function mY(){var n=0,r=null,t=null,i=null;function o(a){var G,Y,te,ce,xe,lt,s=a.length,u=[],p=Ps(s),m=[],b=[],I=b.groups=new Array(s),F=new Array(s*s);for(G=0,xe=-1;++xe<s;){for(Y=0,lt=-1;++lt<s;)Y+=a[xe][lt];u.push(Y),m.push(Ps(s)),G+=Y}for(r&&p.sort(function(hn,Jt){return r(u[hn],u[Jt])}),t&&m.forEach(function(hn,Jt){hn.sort(function(st,Dt){return t(a[Jt][st],a[Jt][Dt])})}),ce=(G=l8(0,s8-n*s)/G)?n:s8/s,Y=0,xe=-1;++xe<s;){for(te=Y,lt=-1;++lt<s;){var nt=p[xe],it=m[nt][lt],ht=a[nt][it],Qe=Y,tt=Y+=ht*G;F[it*s+nt]={index:nt,subindex:it,startAngle:Qe,endAngle:tt,value:ht}}I[nt]={index:nt,startAngle:te,endAngle:Y,value:u[nt]},Y+=ce}for(xe=-1;++xe<s;)for(lt=xe-1;++lt<s;){var Ot=F[lt*s+xe],xt=F[xe*s+lt];(Ot.value||xt.value)&&b.push(Ot.value<xt.value?{source:xt,target:Ot}:{source:Ot,target:xt})}return i?b.sort(i):b}return o.padAngle=function(a){return arguments.length?(n=l8(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=hY(a))._=a,o):i&&i._},o}var vY=Array.prototype.slice;function lN(n){return function(){return n}}var uN=Math.PI,cN=2*uN,Om=1e-6,gY=cN-Om;function dN(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function u8(){return new dN}dN.prototype=u8.prototype={constructor:dN,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),b=s-r,I=u-t,F=b*b+I*I;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=r)+","+(this._y1=t);else if(F>Om)if(Math.abs(I*p-m*b)>Om&&a){var G=i-s,Y=o-u,te=p*p+m*m,ce=G*G+Y*Y,xe=Math.sqrt(te),lt=Math.sqrt(F),nt=a*Math.tan((uN-Math.acos((te+F-ce)/(2*xe*lt)))/2),it=nt/lt,ht=nt/xe;Math.abs(it-1)>Om&&(this._+="L"+(r+it*b)+","+(t+it*I)),this._+="A"+a+","+a+",0,0,"+ +(I*G>b*Y)+","+(this._x1=r+ht*p)+","+(this._y1=t+ht*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,b=t+p,I=1^s,F=s?o-a:a-o;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+m+","+b:(Math.abs(this._x1-m)>Om||Math.abs(this._y1-b)>Om)&&(this._+="L"+m+","+b),i&&(F<0&&(F=F%cN+cN),F>gY?this._+="A"+i+","+i+",0,1,"+I+","+(r-u)+","+(t-p)+"A"+i+","+i+",0,1,"+I+","+(this._x1=m)+","+(this._y1=b):F>Om&&(this._+="A"+i+","+i+",0,"+ +(F>=uN)+","+I+","+(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 zu=u8;function _Y(n){return n.source}function yY(n){return n.target}function bY(n){return n.radius}function CY(n){return n.startAngle}function SY(n){return n.endAngle}function TY(){var n=_Y,r=yY,t=bY,i=CY,o=SY,a=null;function s(){var u,p=vY.call(arguments),m=n.apply(this,p),b=r.apply(this,p),I=+t.apply(this,(p[0]=m,p)),F=i.apply(this,p)-_M,G=o.apply(this,p)-_M,Y=I*i8(F),te=I*o8(F),ce=+t.apply(this,(p[0]=b,p)),xe=i.apply(this,p)-_M,lt=o.apply(this,p)-_M;if(a||(a=u=zu()),a.moveTo(Y,te),a.arc(0,0,I,F,G),(F!==xe||G!==lt)&&(a.quadraticCurveTo(0,0,ce*i8(xe),ce*o8(xe)),a.arc(0,0,ce,xe,lt)),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:lN(+u),s):t},s.startAngle=function(u){return arguments.length?(i="function"==typeof u?u:lN(+u),s):i},s.endAngle=function(u){return arguments.length?(o="function"==typeof u?u:lN(+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 vu="$";function yM(){}function c8(n,r){var t=new yM;if(n instanceof yM)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}yM.prototype=c8.prototype={constructor:yM,has:function(r){return vu+r in this},get:function(r){return this[vu+r]},set:function(r,t){return this[vu+r]=t,this},remove:function(r){var t=vu+r;return t in this&&delete this[t]},clear:function(){for(var r in this)r[0]===vu&&delete this[r]},keys:function(){var r=[];for(var t in this)t[0]===vu&&r.push(t.slice(1));return r},values:function(){var r=[];for(var t in this)t[0]===vu&&r.push(this[t]);return r},entries:function(){var r=[];for(var t in this)t[0]===vu&&r.push({key:t.slice(1),value:this[t]});return r},size:function(){var r=0;for(var t in this)t[0]===vu&&++r;return r},empty:function(){for(var r in this)if(r[0]===vu)return!1;return!0},each:function(r){for(var t in this)t[0]===vu&&r(this[t],t.slice(1),this)}};var Rf=c8;function xY(){var t,i,o,n=[],r=[];function a(u,p,m,b){if(p>=n.length)return null!=t&&u.sort(t),null!=i?i(u):u;for(var Y,te,xe,I=-1,F=u.length,G=n[p++],ce=Rf(),lt=m();++I<F;)(xe=ce.get(Y=G(te=u[I])+""))?xe.push(te):ce.set(Y,[te]);return ce.each(function(nt,it){b(lt,it,a(nt,p,m,b))}),lt}function s(u,p){if(++p>n.length)return u;var m,b=r[p-1];return null!=i&&p>=n.length?m=u.entries():(m=[],u.each(function(I,F){m.push({key:F,values:s(I,p)})})),null!=b?m.sort(function(I,F){return b(I.key,F.key)}):m}return o={object:function(p){return a(p,0,wY,kY)},map:function(p){return a(p,0,d8,p8)},entries:function(p){return s(a(p,0,d8,p8),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 wY(){return{}}function kY(n,r,t){n[r]=t}function d8(){return Rf()}function p8(n,r,t){n.set(r,t)}function bM(){}var Pm=Rf.prototype;function f8(n,r){var t=new bM;if(n instanceof bM)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}bM.prototype=f8.prototype={constructor:bM,has:Pm.has,add:function(r){return this[vu+(r+="")]=r,this},remove:Pm.remove,clear:Pm.clear,values:Pm.keys,size:Pm.size,empty:Pm.empty,each:Pm.each};var EY=f8;function MY(n){var r=[];for(var t in n)r.push(t);return r}function AY(n){var r=[];for(var t in n)r.push(n[t]);return r}function DY(n){var r=[];for(var t in n)r.push({key:t,value:n[t]});return r}var h8=Array.prototype.slice;function PY(n,r){return n-r}function Im(n){return function(){return n}}function RY(n,r){for(var o,t=-1,i=r.length;++t<i;)if(o=NY(n,r[t]))return o;return 0}function NY(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],b=p[1],I=n[u],F=I[0],G=I[1];if(ZY(p,I,r))return 0;b>i!=G>i&&t<(F-m)*(i-b)/(G-b)+m&&(o=-o)}return o}function ZY(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 BY(){}var op=[[],[[[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 m8(){var n=1,r=1,t=ZC,i=p;function o(m){var b=t(m);if(Array.isArray(b))b=b.slice().sort(PY);else{var I=PC(m),F=I[0],G=I[1];b=jc(F,G,b),b=Ps(Math.floor(F/b)*b,Math.floor(G/b)*b,b)}return b.map(function(Y){return a(m,Y)})}function a(m,b){var I=[],F=[];return function(m,b,I){var Y,te,xe,lt,nt,F=new Array,G=new Array;for(Y=te=-1,op[(xe=m[0]>=b)<<1].forEach(it);++Y<n-1;)op[xe|(xe=m[Y+1]>=b)<<1].forEach(it);for(op[xe<<0].forEach(it);++te<r-1;){for(Y=-1,op[(xe=m[te*n+n]>=b)<<1|(lt=m[te*n]>=b)<<2].forEach(it);++Y<n-1;)nt=lt,op[xe|(xe=m[te*n+n+Y+1]>=b)<<1|(lt=m[te*n+Y+1]>=b)<<2|nt<<3].forEach(it);op[xe|lt<<3].forEach(it)}for(Y=-1,op[(lt=m[te*n]>=b)<<2].forEach(it);++Y<n-1;)nt=lt,op[(lt=m[te*n+Y+1]>=b)<<2|nt<<3].forEach(it);function it(ht){var hn,Jt,Qe=[ht[0][0]+Y,ht[0][1]+te],tt=[ht[1][0]+Y,ht[1][1]+te],Ot=u(Qe),xt=u(tt);(hn=G[Ot])?(Jt=F[xt])?(delete G[hn.end],delete F[Jt.start],hn===Jt?(hn.ring.push(tt),I(hn.ring)):F[hn.start]=G[Jt.end]={start:hn.start,end:Jt.end,ring:hn.ring.concat(Jt.ring)}):(delete G[hn.end],hn.ring.push(tt),G[hn.end=xt]=hn):(hn=F[xt])?(Jt=G[Ot])?(delete F[hn.start],delete G[Jt.end],hn===Jt?(hn.ring.push(tt),I(hn.ring)):F[Jt.start]=G[hn.end]={start:Jt.start,end:hn.end,ring:Jt.ring.concat(hn.ring)}):(delete F[hn.start],hn.ring.unshift(Qe),F[hn.start=Ot]=hn):F[Ot]=G[xt]={start:Ot,end:xt,ring:[Qe,tt]}}op[lt<<3].forEach(it)}(m,b,function(G){i(G,m,b),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?I.push([G]):F.push(G)}),F.forEach(function(G){for(var ce,Y=0,te=I.length;Y<te;++Y)if(-1!==RY((ce=I[Y])[0],G))return void ce.push(G)}),{type:"MultiPolygon",value:b,coordinates:I}}function u(m){return 2*m[0]+m[1]*(n+1)*4}function p(m,b,I){m.forEach(function(F){var xe,G=F[0],Y=F[1],te=0|G,ce=0|Y,lt=b[ce*n+te];G>0&&G<n&&te===G&&(F[0]=G+(I-(xe=b[ce*n+te-1]))/(lt-xe)-.5),Y>0&&Y<r&&ce===Y&&(F[1]=Y+(I-(xe=b[(ce-1)*n+te]))/(lt-xe)-.5)})}return o.contour=a,o.size=function(m){if(!arguments.length)return[n,r];var b=Math.ceil(m[0]),I=Math.ceil(m[1]);if(!(b>0&&I>0))throw new Error("invalid size");return n=b,r=I,o},o.thresholds=function(m){return arguments.length?(t="function"==typeof m?m:Array.isArray(m)?Im(h8.call(m)):Im(m),o):t},o.smooth=function(m){return arguments.length?(i=m?p:BY,o):i===p},o}function pN(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 fN(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 UY(n){return n[0]}function HY(n){return n[1]}function VY(){var n=UY,r=HY,t=960,i=500,o=20,a=2,s=3*o,u=t+2*s>>a,p=i+2*s>>a,m=Im(20);function b(ce){var xe=new Float32Array(u*p),lt=new Float32Array(u*p);ce.forEach(function(ht,Qe,tt){var Ot=n(ht,Qe,tt)+s>>a,xt=r(ht,Qe,tt)+s>>a;Ot>=0&&Ot<u&&xt>=0&&xt<p&&++xe[Ot+xt*u]}),pN({width:u,height:p,data:xe},{width:u,height:p,data:lt},o>>a),fN({width:u,height:p,data:lt},{width:u,height:p,data:xe},o>>a),pN({width:u,height:p,data:xe},{width:u,height:p,data:lt},o>>a),fN({width:u,height:p,data:lt},{width:u,height:p,data:xe},o>>a),pN({width:u,height:p,data:xe},{width:u,height:p,data:lt},o>>a),fN({width:u,height:p,data:lt},{width:u,height:p,data:xe},o>>a);var nt=m(xe);if(!Array.isArray(nt)){var it=t_(xe);nt=jc(0,it,nt),(nt=Ps(0,Math.floor(it/nt)*nt,nt)).shift()}return m8().thresholds(nt).size([u,p])(xe).map(I)}function I(ce){return ce.value*=Math.pow(2,-2*a),ce.coordinates.forEach(F),ce}function F(ce){ce.forEach(G)}function G(ce){ce.forEach(Y)}function Y(ce){ce[0]=ce[0]*Math.pow(2,a)-s,ce[1]=ce[1]*Math.pow(2,a)-s}function te(){return u=t+2*(s=3*o)>>a,p=i+2*s>>a,b}return b.x=function(ce){return arguments.length?(n="function"==typeof ce?ce:Im(+ce),b):n},b.y=function(ce){return arguments.length?(r="function"==typeof ce?ce:Im(+ce),b):r},b.size=function(ce){if(!arguments.length)return[t,i];var xe=Math.ceil(ce[0]),lt=Math.ceil(ce[1]);if(!(xe>=0||xe>=0))throw new Error("invalid size");return t=xe,i=lt,te()},b.cellSize=function(ce){if(!arguments.length)return 1<<a;if(!((ce=+ce)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(ce)/Math.LN2),te()},b.thresholds=function(ce){return arguments.length?(m="function"==typeof ce?ce:Array.isArray(ce)?Im(h8.call(ce)):Im(ce),b):m},b.bandwidth=function(ce){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((ce=+ce)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*ce*ce+1)-1)/2),te()},b}function CM(n){return function(){return n}}function hN(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 qY(){return!Dn.ctrlKey&&!Dn.button}function jY(){return this.parentNode}function zY(n){return null==n?{x:Dn.x,y:Dn.y}:n}function WY(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nf(){var u,p,m,b,n=qY,r=jY,t=zY,i=WY,o={},a=Xd("start","drag","end"),s=0,I=0;function F(it){it.on("mousedown.drag",G).filter(i).on("touchstart.drag",ce).on("touchmove.drag",xe).on("touchend.drag touchcancel.drag",lt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function G(){if(!b&&n.apply(this,arguments)){var it=nt("mouse",r.apply(this,arguments),el,this,arguments);!it||(ei(Dn.view).on("mousemove.drag",Y,!0).on("mouseup.drag",te,!0),f_(Dn.view),r1(),m=!1,u=Dn.clientX,p=Dn.clientY,it("start"))}}function Y(){if(kf(),!m){var it=Dn.clientX-u,ht=Dn.clientY-p;m=it*it+ht*ht>I}o.mouse("drag")}function te(){ei(Dn.view).on("mousemove.drag mouseup.drag",null),Zl(Dn.view,m),kf(),o.mouse("end")}function ce(){if(n.apply(this,arguments)){var tt,Ot,it=Dn.changedTouches,ht=r.apply(this,arguments),Qe=it.length;for(tt=0;tt<Qe;++tt)(Ot=nt(it[tt].identifier,ht,p_,this,arguments))&&(r1(),Ot("start"))}}function xe(){var Qe,tt,it=Dn.changedTouches,ht=it.length;for(Qe=0;Qe<ht;++Qe)(tt=o[it[Qe].identifier])&&(kf(),tt("drag"))}function lt(){var Qe,tt,it=Dn.changedTouches,ht=it.length;for(b&&clearTimeout(b),b=setTimeout(function(){b=null},500),Qe=0;Qe<ht;++Qe)(tt=o[it[Qe].identifier])&&(r1(),tt("end"))}function nt(it,ht,Qe,tt,Ot){var hn,Jt,st,xt=Qe(ht,it),Dt=a.copy();if(Sm(new hN(F,"beforestart",hn,it,s,xt[0],xt[1],0,0,Dt),function(){return null!=(Dn.subject=hn=t.apply(tt,Ot))&&(Jt=hn.x-xt[0]||0,st=hn.y-xt[1]||0,!0)}))return function gn(fn){var Ln,kn=xt;switch(fn){case"start":o[it]=gn,Ln=s++;break;case"end":delete o[it],--s;case"drag":xt=Qe(ht,it),Ln=s}Sm(new hN(F,fn,hn,it,Ln,xt[0]+Jt,xt[1]+st,xt[0]-kn[0],xt[1]-kn[1],Dt),Dt.apply,Dt,[fn,tt,Ot])}}return F.filter=function(it){return arguments.length?(n="function"==typeof it?it:CM(!!it),F):n},F.container=function(it){return arguments.length?(r="function"==typeof it?it:CM(it),F):r},F.subject=function(it){return arguments.length?(t="function"==typeof it?it:CM(it),F):t},F.touchable=function(it){return arguments.length?(i="function"==typeof it?it:CM(!!it),F):i},F.on=function(){var it=a.on.apply(a,arguments);return it===a?F:it},F.clickDistance=function(it){return arguments.length?(I=(it=+it)*it,F):Math.sqrt(I)},F}hN.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var v8={},mN={};function g8(n){return new Function("d","return {"+n.map(function(r,t){return JSON.stringify(r)+": d["+t+"]"}).join(",")+"}")}function _N(n){var r=new RegExp('["'+n+"\n\r]"),t=n.charCodeAt(0);function o(m,b){var te,I=[],F=m.length,G=0,Y=0,ce=F<=0,xe=!1;function lt(){if(ce)return mN;if(xe)return xe=!1,v8;var it,Qe,ht=G;if(34===m.charCodeAt(ht)){for(;G++<F&&34!==m.charCodeAt(G)||34===m.charCodeAt(++G););return(it=G)>=F?ce=!0:10===(Qe=m.charCodeAt(G++))?xe=!0:13===Qe&&(xe=!0,10===m.charCodeAt(G)&&++G),m.slice(ht+1,it-1).replace(/""/g,'"')}for(;G<F;){if(10===(Qe=m.charCodeAt(it=G++)))xe=!0;else if(13===Qe)xe=!0,10===m.charCodeAt(G)&&++G;else if(Qe!==t)continue;return m.slice(ht,it)}return ce=!0,m.slice(ht,F)}for(10===m.charCodeAt(F-1)&&--F,13===m.charCodeAt(F-1)&&--F;(te=lt())!==mN;){for(var nt=[];te!==v8&&te!==mN;)nt.push(te),te=lt();b&&null==(nt=b(nt,Y++))||I.push(nt)}return I}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,b){var I,F,G=o(m,function(Y,te){if(I)return I(Y,te-1);F=Y,I=b?function(n,r){var t=g8(n);return function(i,o){return r(t(i),o,n)}}(Y,b):g8(Y)});return G.columns=F||[],G},parseRows:o,format:function(m,b){return null==b&&(b=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)),[b.map(p).join(n)].concat(m.map(function(I){return b.map(function(F){return p(I[F])}).join(n)})).join("\n")},formatRows:function(m){return m.map(u).join("\n")}}}var SM=_N(","),JY=SM.parse,QY=SM.parseRows,KY=SM.format,XY=SM.formatRows,TM=_N("\t"),$Y=TM.parse,eJ=TM.parseRows,tJ=TM.format,nJ=TM.formatRows;function rJ(n){return+n}function iJ(n){return n*n}function oJ(n){return n*(2-n)}function _8(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var aJ=function n(r){function t(i){return Math.pow(i,r)}return r=+r,t.exponent=n,t}(3),sJ=function n(r){function t(i){return 1-Math.pow(1-i,r)}return r=+r,t.exponent=n,t}(3),y8=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),b8=Math.PI,C8=b8/2;function lJ(n){return 1==+n?1:1-Math.cos(n*C8)}function uJ(n){return Math.sin(n*C8)}function S8(n){return(1-Math.cos(b8*n))/2}function Zf(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function cJ(n){return Zf(1-+n)}function dJ(n){return 1-Zf(n)}function T8(n){return((n*=2)<=1?Zf(1-n):2-Zf(n-1))/2}function pJ(n){return 1-Math.sqrt(1-n*n)}function fJ(n){return Math.sqrt(1- --n*n)}function x8(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var xM=7.5625;function SJ(n){return 1-b1(1-n)}function b1(n){return(n=+n)<.36363636363636365?xM*n*n:n<.7272727272727273?xM*(n-=.5454545454545454)*n+.75:n<.9090909090909091?xM*(n-=.8181818181818182)*n+.9375:xM*(n-=.9545454545454546)*n+.984375}function TJ(n){return((n*=2)<=1?1-b1(1-n):b1(n-1)+1)/2}var CN=1.70158,xJ=function n(r){function t(i){return(i=+i)*i*(r*(i-1)+i)}return r=+r,t.overshoot=n,t}(CN),wJ=function n(r){function t(i){return--i*i*((i+1)*r+i)+1}return r=+r,t.overshoot=n,t}(CN),w8=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}(CN),T_=2*Math.PI,kJ=function n(r,t){var i=Math.asin(1/(r=Math.max(1,r)))*(t/=T_);function o(a){return r*Zf(- --a)*Math.sin((i-a)/t)}return o.amplitude=function(a){return n(a,t*T_)},o.period=function(a){return n(r,a)},o}(1,.3),k8=function n(r,t){var i=Math.asin(1/(r=Math.max(1,r)))*(t/=T_);function o(a){return 1-r*Zf(a=+a)*Math.sin((a+i)/t)}return o.amplitude=function(a){return n(a,t*T_)},o.period=function(a){return n(r,a)},o}(1,.3),EJ=function n(r,t){var i=Math.asin(1/(r=Math.max(1,r)))*(t/=T_);function o(a){return((a=2*a-1)<0?r*Zf(-a)*Math.sin((i-a)/t):2-r*Zf(a)*Math.sin((i+a)/t))/2}return o.amplitude=function(a){return n(a,t*T_)},o.period=function(a){return n(r,a)},o}(1,.3);function MJ(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 Sa(n){return function(){return n}}function Lf(){return 1e-6*(Math.random()-.5)}function E8(n,r,t,i){if(isNaN(r)||isNaN(t))return n;var o,I,F,G,Y,te,ce,xe,lt,a=n._root,s={data:i},u=n._x0,p=n._y0,m=n._x1,b=n._y1;if(!a)return n._root=s,n;for(;a.length;)if((te=r>=(I=(u+m)/2))?u=I:m=I,(ce=t>=(F=(p+b)/2))?p=F:b=F,o=a,!(a=a[xe=ce<<1|te]))return o[xe]=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[xe]=s:n._root=s,n;do{o=o?o[xe]=new Array(4):n._root=new Array(4),(te=r>=(I=(u+m)/2))?u=I:m=I,(ce=t>=(F=(p+b)/2))?p=F:b=F}while((xe=ce<<1|te)==(lt=(Y>=F)<<1|G>=I));return o[lt]=a,o[xe]=s,n}function Rs(n,r,t,i,o){this.node=n,this.x0=r,this.y0=t,this.x1=i,this.y1=o}function HJ(n){return n[0]}function qJ(n){return n[1]}function wM(n,r,t){var i=new xN(null==r?HJ:r,null==t?qJ:t,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function xN(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 M8(n){for(var r={data:n.data},t=r;n=n.next;)t=t.next={data:n.data};return r}var Ns=wM.prototype=xN.prototype;function zJ(n){return n.x+n.vx}function WJ(n){return n.y+n.vy}function GJ(n){var r,t,i=1,o=1;function a(){for(var p,b,I,F,G,Y,te,m=r.length,ce=0;ce<o;++ce)for(b=wM(r,zJ,WJ).visitAfter(s),p=0;p<m;++p)te=(Y=t[(I=r[p]).index])*Y,F=I.x+I.vx,G=I.y+I.vy,b.visit(xe);function xe(lt,nt,it,ht,Qe){var tt=lt.data,Ot=lt.r,xt=Y+Ot;if(!tt)return nt>F+xt||ht<F-xt||it>G+xt||Qe<G-xt;if(tt.index>I.index){var hn=F-tt.x-tt.vx,Jt=G-tt.y-tt.vy,st=hn*hn+Jt*Jt;st<xt*xt&&(0===hn&&(st+=(hn=Lf())*hn),0===Jt&&(st+=(Jt=Lf())*Jt),st=(xt-(st=Math.sqrt(st)))/st*i,I.vx+=(hn*=st)*(xt=(Ot*=Ot)/(te+Ot)),I.vy+=(Jt*=st)*xt,tt.vx-=hn*(xt=1-xt),tt.vy-=Jt*xt)}}}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,b,m=r.length;for(t=new Array(m),p=0;p<m;++p)t[(b=r[p]).index]=+n(b,p,r)}}return"function"!=typeof n&&(n=Sa(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:Sa(+p),u(),a):n},a}function YJ(n){return n.index}function A8(n,r){var t=n.get(r);if(!t)throw new Error("missing: "+r);return t}function JJ(n){var i,a,s,u,p,r=YJ,t=function(te){return 1/Math.min(u[te.source.index],u[te.target.index])},o=Sa(30),m=1;function I(te){for(var ce=0,xe=n.length;ce<m;++ce)for(var nt,it,ht,Qe,tt,Ot,xt,lt=0;lt<xe;++lt)Qe=(ht=(nt=n[lt]).target).x+ht.vx-(it=nt.source).x-it.vx||Lf(),tt=ht.y+ht.vy-it.y-it.vy||Lf(),tt*=Ot=((Ot=Math.sqrt(Qe*Qe+tt*tt))-a[lt])/Ot*te*i[lt],ht.vx-=(Qe*=Ot)*(xt=p[lt]),ht.vy-=tt*xt,it.vx+=Qe*(xt=1-xt),it.vy+=tt*xt}function F(){if(s){var te,nt,ce=s.length,xe=n.length,lt=Rf(s,r);for(te=0,u=new Array(ce);te<xe;++te)(nt=n[te]).index=te,"object"!=typeof nt.source&&(nt.source=A8(lt,nt.source)),"object"!=typeof nt.target&&(nt.target=A8(lt,nt.target)),u[nt.source.index]=(u[nt.source.index]||0)+1,u[nt.target.index]=(u[nt.target.index]||0)+1;for(te=0,p=new Array(xe);te<xe;++te)p[te]=u[(nt=n[te]).source.index]/(u[nt.source.index]+u[nt.target.index]);i=new Array(xe),G(),a=new Array(xe),Y()}}function G(){if(s)for(var te=0,ce=n.length;te<ce;++te)i[te]=+t(n[te],te,n)}function Y(){if(s)for(var te=0,ce=n.length;te<ce;++te)a[te]=+o(n[te],te,n)}return null==n&&(n=[]),I.initialize=function(te){s=te,F()},I.links=function(te){return arguments.length?(n=te,F(),I):n},I.id=function(te){return arguments.length?(r=te,I):r},I.iterations=function(te){return arguments.length?(m=+te,I):m},I.strength=function(te){return arguments.length?(t="function"==typeof te?te:Sa(+te),G(),I):t},I.distance=function(te){return arguments.length?(o="function"==typeof te?te:Sa(+te),Y(),I):o},I}function QJ(n){return n.x}function KJ(n){return n.y}Ns.copy=function(){var t,i,n=new xN(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=M8(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]=M8(i));return n},Ns.add=function(n){var r=+this._x.call(null,n),t=+this._y.call(null,n);return E8(this.cover(r,t),r,t,n)},Ns.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,b=-1/0,I=-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>b&&(b=o),a<m&&(m=a),a>I&&(I=a));if(p>b||m>I)return this;for(this.cover(p,m).cover(b,I),t=0;t<i;++t)E8(this,s[t],u[t],n[t]);return this},Ns.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},Ns.data=function(){var n=[];return this.visit(function(r){if(!r.length)do{n.push(r.data)}while(r=r.next)}),n},Ns.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]]},Ns.find=function(n,r,t){var i,s,u,p,m,Y,te,o=this._x0,a=this._y0,b=this._x1,I=this._y1,F=[],G=this._root;for(G&&F.push(new Rs(G,o,a,b,I)),null==t?t=1/0:(o=n-t,a=r-t,b=n+t,I=r+t,t*=t);Y=F.pop();)if(!(!(G=Y.node)||(s=Y.x0)>b||(u=Y.y0)>I||(p=Y.x1)<o||(m=Y.y1)<a))if(G.length){var ce=(s+p)/2,xe=(u+m)/2;F.push(new Rs(G[3],ce,xe,p,m),new Rs(G[2],s,xe,ce,m),new Rs(G[1],ce,u,p,xe),new Rs(G[0],s,u,ce,xe)),(te=(r>=xe)<<1|n>=ce)&&(Y=F[F.length-1],F[F.length-1]=F[F.length-1-te],F[F.length-1-te]=Y)}else{var lt=n-+this._x.call(null,G.data),nt=r-+this._y.call(null,G.data),it=lt*lt+nt*nt;if(it<t){var ht=Math.sqrt(t=it);o=n-ht,a=r-ht,b=n+ht,I=r+ht,i=G.data}}return i},Ns.remove=function(n){if(isNaN(b=+this._x.call(null,n))||isNaN(I=+this._y.call(null,n)))return this;var r,i,o,a,b,I,F,G,Y,te,ce,xe,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=b>=(F=(s+p)/2))?s=F:p=F,(te=I>=(G=(u+m)/2))?u=G:m=G,r=t,!(t=t[ce=te<<1|Y]))return this;if(!t.length)break;(r[ce+1&3]||r[ce+2&3]||r[ce+3&3])&&(i=r,xe=ce)}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[ce]=a:delete r[ce],(t=r[0]||r[1]||r[2]||r[3])&&t===(r[3]||r[2]||r[1]||r[0])&&!t.length&&(i?i[xe]=t:this._root=t),this):(this._root=a,this)},Ns.removeAll=function(n){for(var r=0,t=n.length;r<t;++r)this.remove(n[r]);return this},Ns.root=function(){return this._root},Ns.size=function(){var n=0;return this.visit(function(r){if(!r.length)do{++n}while(r=r.next)}),n},Ns.visit=function(n){var t,o,a,s,u,p,r=[],i=this._root;for(i&&r.push(new Rs(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,b=(s+p)/2;(o=i[3])&&r.push(new Rs(o,m,b,u,p)),(o=i[2])&&r.push(new Rs(o,a,b,m,p)),(o=i[1])&&r.push(new Rs(o,m,s,u,b)),(o=i[0])&&r.push(new Rs(o,a,s,m,b))}return this},Ns.visitAfter=function(n){var i,r=[],t=[];for(this._root&&r.push(new Rs(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,b=(s+p)/2,I=(u+m)/2;(a=o[0])&&r.push(new Rs(a,s,u,b,I)),(a=o[1])&&r.push(new Rs(a,b,u,p,I)),(a=o[2])&&r.push(new Rs(a,s,I,b,m)),(a=o[3])&&r.push(new Rs(a,b,I,p,m))}t.push(i)}for(;i=t.pop();)n(i.node,i.x0,i.y0,i.x1,i.y1);return this},Ns.x=function(n){return arguments.length?(this._x=n,this):this._x},Ns.y=function(n){return arguments.length?(this._y=n,this):this._y};var D8,$J=Math.PI*(3-Math.sqrt(5));function eQ(n){var r,t=1,i=.001,o=1-Math.pow(i,1/300),a=0,s=.6,u=Rf(),p=cM(b),m=Xd("tick","end");function b(){I(),m.call("tick",r),t<i&&(p.stop(),m.call("end",r))}function I(){var Y,ce,te=n.length;for(t+=(a-t)*o,u.each(function(xe){xe(t)}),Y=0;Y<te;++Y)null==(ce=n[Y]).fx?ce.x+=ce.vx*=s:(ce.x=ce.fx,ce.vx=0),null==ce.fy?ce.y+=ce.vy*=s:(ce.y=ce.fy,ce.vy=0)}function F(){for(var ce,Y=0,te=n.length;Y<te;++Y){if((ce=n[Y]).index=Y,isNaN(ce.x)||isNaN(ce.y)){var xe=10*Math.sqrt(Y),lt=Y*$J;ce.x=xe*Math.cos(lt),ce.y=xe*Math.sin(lt)}(isNaN(ce.vx)||isNaN(ce.vy))&&(ce.vx=ce.vy=0)}}function G(Y){return Y.initialize&&Y.initialize(n),Y}return null==n&&(n=[]),F(),r={tick:I,restart:function(){return p.restart(b),r},stop:function(){return p.stop(),r},nodes:function(te){return arguments.length?(n=te,F(),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,ce){return arguments.length>1?(null==ce?u.remove(te):u.set(te,G(ce)),r):u.get(te)},find:function(te,ce,xe){var it,ht,Qe,tt,Ot,lt=0,nt=n.length;for(null==xe?xe=1/0:xe*=xe,lt=0;lt<nt;++lt)(Qe=(it=te-(tt=n[lt]).x)*it+(ht=ce-tt.y)*ht)<xe&&(Ot=tt,xe=Qe);return Ot},on:function(te,ce){return arguments.length>1?(m.on(te,ce),r):m.on(te)}}}function tQ(){var n,r,t,o,i=Sa(-30),a=1,s=1/0,u=.81;function p(F){var G,Y=n.length,te=wM(n,QJ,KJ).visitAfter(b);for(t=F,G=0;G<Y;++G)r=n[G],te.visit(I)}function m(){if(n){var F,Y,G=n.length;for(o=new Array(G),F=0;F<G;++F)o[(Y=n[F]).index]=+i(Y,F,n)}}function b(F){var Y,te,xe,lt,nt,G=0,ce=0;if(F.length){for(xe=lt=nt=0;nt<4;++nt)(Y=F[nt])&&(te=Math.abs(Y.value))&&(G+=Y.value,ce+=te,xe+=te*Y.x,lt+=te*Y.y);F.x=xe/ce,F.y=lt/ce}else{(Y=F).x=Y.data.x,Y.y=Y.data.y;do{G+=o[Y.data.index]}while(Y=Y.next)}F.value=G}function I(F,G,Y,te){if(!F.value)return!0;var ce=F.x-r.x,xe=F.y-r.y,lt=te-G,nt=ce*ce+xe*xe;if(lt*lt/u<nt)return nt<s&&(0===ce&&(nt+=(ce=Lf())*ce),0===xe&&(nt+=(xe=Lf())*xe),nt<a&&(nt=Math.sqrt(a*nt)),r.vx+=ce*F.value*t/nt,r.vy+=xe*F.value*t/nt),!0;if(!(F.length||nt>=s)){(F.data!==r||F.next)&&(0===ce&&(nt+=(ce=Lf())*ce),0===xe&&(nt+=(xe=Lf())*xe),nt<a&&(nt=Math.sqrt(a*nt)));do{F.data!==r&&(r.vx+=ce*(lt=o[F.data.index]*t/nt),r.vy+=xe*lt)}while(F=F.next)}}return p.initialize=function(F){n=F,m()},p.strength=function(F){return arguments.length?(i="function"==typeof F?F:Sa(+F),m(),p):i},p.distanceMin=function(F){return arguments.length?(a=F*F,p):Math.sqrt(a)},p.distanceMax=function(F){return arguments.length?(s=F*F,p):Math.sqrt(s)},p.theta=function(F){return arguments.length?(u=F*F,p):Math.sqrt(u)},p}function nQ(n,r,t){var i,a,s,o=Sa(.1);function u(m){for(var b=0,I=i.length;b<I;++b){var F=i[b],G=F.x-r||1e-6,Y=F.y-t||1e-6,te=Math.sqrt(G*G+Y*Y),ce=(s[b]-te)*a[b]*m/te;F.vx+=G*ce,F.vy+=Y*ce}}function p(){if(i){var m,b=i.length;for(a=new Array(b),s=new Array(b),m=0;m<b;++m)s[m]=+n(i[m],m,i),a[m]=isNaN(s[m])?0:+o(i[m],m,i)}}return"function"!=typeof n&&(n=Sa(+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:Sa(+m),p(),u):o},u.radius=function(m){return arguments.length?(n="function"==typeof m?m:Sa(+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 rQ(n){var t,i,o,r=Sa(.1);function a(u){for(var b,p=0,m=t.length;p<m;++p)(b=t[p]).vx+=(o[p]-b.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=Sa(null==n?0:+n)),a.initialize=function(u){t=u,s()},a.strength=function(u){return arguments.length?(r="function"==typeof u?u:Sa(+u),s(),a):r},a.x=function(u){return arguments.length?(n="function"==typeof u?u:Sa(+u),s(),a):n},a}function iQ(n){var t,i,o,r=Sa(.1);function a(u){for(var b,p=0,m=t.length;p<m;++p)(b=t[p]).vy+=(o[p]-b.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=Sa(null==n?0:+n)),a.initialize=function(u){t=u,s()},a.strength=function(u){return arguments.length?(r="function"==typeof u?u:Sa(+u),s(),a):r},a.y=function(u){return arguments.length?(n="function"==typeof u?u:Sa(+u),s(),a):n},a}function kM(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 x_(n){return(n=kM(Math.abs(n)))?n[1]:NaN}function O8(n,r){var t=kM(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 P8={"":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 O8(100*r,t)},r:O8,s:function(n,r){var t=kM(n,r);if(!t)return n+"";var i=t[0],o=t[1],a=o-(D8=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")+kM(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)}},uQ=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function C1(n){return new wN(n)}function wN(n){if(!(r=uQ.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),b=r[9]||"";"n"===b?(p=!0,b="g"):P8[b]||(b=""),(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=b}function I8(n){return n}C1.prototype=wN.prototype,wN.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 EM,MM,kN,R8=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function N8(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):I8,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):I8,a=n.percent||"%";function s(p){var m=(p=C1(p)).fill,b=p.align,I=p.sign,F=p.symbol,G=p.zero,Y=p.width,te=p.comma,ce=p.precision,xe=p.type,lt="$"===F?t[0]:"#"===F&&/[boxX]/.test(xe)?"0"+xe.toLowerCase():"",nt="$"===F?t[1]:/[%p]/.test(xe)?a:"",it=P8[xe],ht=!xe||/[defgprs%]/.test(xe);function Qe(tt){var hn,Jt,st,Ot=lt,xt=nt;if("c"===xe)xt=it(tt)+xt,tt="";else{var Dt=(tt=+tt)<0;if(tt=it(Math.abs(tt),ce),Dt&&0==+tt&&(Dt=!1),Ot=(Dt?"("===I?I:"-":"-"===I||"("===I?"":I)+Ot,xt=("s"===xe?R8[8+D8/3]:"")+xt+(Dt&&"("===I?")":""),ht)for(hn=-1,Jt=tt.length;++hn<Jt;)if(48>(st=tt.charCodeAt(hn))||st>57){xt=(46===st?i+tt.slice(hn+1):tt.slice(hn))+xt,tt=tt.slice(0,hn);break}}te&&!G&&(tt=r(tt,1/0));var gn=Ot.length+tt.length+xt.length,fn=gn<Y?new Array(Y-gn+1).join(m):"";switch(te&&G&&(tt=r(fn+tt,fn.length?Y-xt.length:1/0),fn=""),b){case"<":tt=Ot+tt+xt+fn;break;case"=":tt=Ot+fn+tt+xt;break;case"^":tt=fn.slice(0,gn=fn.length>>1)+Ot+tt+xt+fn.slice(gn);break;default:tt=fn+Ot+tt+xt}return o(tt)}return ce=null==ce?xe?6:12:/[gprs]/.test(xe)?Math.max(1,Math.min(21,ce)):Math.max(0,Math.min(20,ce)),Qe.toString=function(){return p+""},Qe}return{format:s,formatPrefix:function(p,m){var b=s(((p=C1(p)).type="f",p)),I=3*Math.max(-8,Math.min(8,Math.floor(x_(m)/3))),F=Math.pow(10,-I),G=R8[8+I/3];return function(Y){return b(F*Y)+G}}}}function Z8(n){return EM=N8(n),MM=EM.format,kN=EM.formatPrefix,EM}function L8(n){return Math.max(0,-x_(Math.abs(n)))}function F8(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(x_(r)/3)))-x_(Math.abs(n)))}function B8(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,x_(r)-x_(n))+1}function Ff(){return new AM}function AM(){this.reset()}Z8({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),AM.prototype={constructor:AM,reset:function(){this.s=this.t=0},add:function(r){U8(DM,r,this.t),U8(this,DM.s,this.s),this.s?this.t+=DM.t:this.s=DM.t},valueOf:function(){return this.s}};var DM=new AM;function U8(n,r,t){var i=n.s=r+t,o=i-r;n.t=r-(i-o)+(t-o)}var kr=1e-6,Ai=Math.PI,Wo=Ai/2,OM=Ai/4,tl=2*Ai,lo=180/Ai,Lr=Ai/180,Ri=Math.abs,w_=Math.atan,Zs=Math.atan2,Er=Math.cos,PM=Math.ceil,V8=Math.exp,IM=(Math,Math.log),EN=Math.pow,vr=Math.sin,S1=Math.sign||function(n){return n>0?1:n<0?-1:0},Ta=Math.sqrt,MN=Math.tan;function q8(n){return n>1?0:n<-1?Ai:Math.acos(n)}function Ul(n){return n>1?Wo:n<-1?-Wo:Math.asin(n)}function j8(n){return(n=vr(n/2))*n}function No(){}function RM(n,r){n&&W8.hasOwnProperty(n.type)&&W8[n.type](n,r)}var z8={Feature:function(r,t){RM(r.geometry,t)},FeatureCollection:function(r,t){for(var i=r.features,o=-1,a=i.length;++o<a;)RM(i[o].geometry,t)}},W8={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){AN(r.coordinates,t,0)},MultiLineString:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)AN(i[o],t,0)},Polygon:function(r,t){G8(r.coordinates,t)},MultiPolygon:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)G8(i[o],t)},GeometryCollection:function(r,t){for(var i=r.geometries,o=-1,a=i.length;++o<a;)RM(i[o],t)}};function AN(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 G8(n,r){var t=-1,i=n.length;for(r.polygonStart();++t<i;)AN(n[t],r,1);r.polygonEnd()}function Wu(n,r){n&&z8.hasOwnProperty(n.type)?z8[n.type](n,r):RM(n,r)}var Y8,J8,DN,ON,PN,NM=Ff(),ZM=Ff(),Xc={point:No,lineStart:No,lineEnd:No,polygonStart:function(){NM.reset(),Xc.lineStart=cQ,Xc.lineEnd=dQ},polygonEnd:function(){var r=+NM;ZM.add(r<0?tl+r:r),this.lineStart=this.lineEnd=this.point=No},sphere:function(){ZM.add(tl)}};function cQ(){Xc.point=pQ}function dQ(){Q8(Y8,J8)}function pQ(n,r){Xc.point=Q8,Y8=n,J8=r,DN=n*=Lr,ON=Er(r=(r*=Lr)/2+OM),PN=vr(r)}function Q8(n,r){var t=(n*=Lr)-DN,i=t>=0?1:-1,o=i*t,a=Er(r=(r*=Lr)/2+OM),s=vr(r),u=PN*s,p=ON*a+u*Er(o),m=u*i*vr(o);NM.add(Zs(m,p)),DN=n,ON=a,PN=s}function fQ(n){return ZM.reset(),Wu(n,Xc),2*ZM}function LM(n){return[Zs(n[1],n[0]),Ul(n[2])]}function Rm(n){var r=n[0],t=n[1],i=Er(t);return[i*Er(r),i*vr(r),vr(t)]}function FM(n,r){return n[0]*r[0]+n[1]*r[1]+n[2]*r[2]}function k_(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 IN(n,r){n[0]+=r[0],n[1]+=r[1],n[2]+=r[2]}function BM(n,r){return[n[0]*r,n[1]*r,n[2]*r]}function UM(n){var r=Ta(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=r,n[1]/=r,n[2]/=r}var Go,Hl,ra,gu,Nm,K8,X8,E_,Bf,ap,T1=Ff(),sp={point:RN,lineStart:e7,lineEnd:t7,polygonStart:function(){sp.point=n7,sp.lineStart=hQ,sp.lineEnd=mQ,T1.reset(),Xc.polygonStart()},polygonEnd:function(){Xc.polygonEnd(),sp.point=RN,sp.lineStart=e7,sp.lineEnd=t7,NM<0?(Go=-(ra=180),Hl=-(gu=90)):T1>kr?gu=90:T1<-kr&&(Hl=-90),ap[0]=Go,ap[1]=ra}};function RN(n,r){Bf.push(ap=[Go=n,ra=n]),r<Hl&&(Hl=r),r>gu&&(gu=r)}function $8(n,r){var t=Rm([n*Lr,r*Lr]);if(E_){var i=k_(E_,t),a=k_([i[1],-i[0],0],i);UM(a),a=LM(a);var m,s=n-Nm,u=s>0?1:-1,p=a[0]*lo*u,b=Ri(s)>180;b^(u*Nm<p&&p<u*n)?(m=a[1]*lo)>gu&&(gu=m):b^(u*Nm<(p=(p+360)%360-180)&&p<u*n)?(m=-a[1]*lo)<Hl&&(Hl=m):(r<Hl&&(Hl=r),r>gu&&(gu=r)),b?n<Nm?Vl(Go,n)>Vl(Go,ra)&&(ra=n):Vl(n,ra)>Vl(Go,ra)&&(Go=n):ra>=Go?(n<Go&&(Go=n),n>ra&&(ra=n)):n>Nm?Vl(Go,n)>Vl(Go,ra)&&(ra=n):Vl(n,ra)>Vl(Go,ra)&&(Go=n)}else Bf.push(ap=[Go=n,ra=n]);r<Hl&&(Hl=r),r>gu&&(gu=r),E_=t,Nm=n}function e7(){sp.point=$8}function t7(){ap[0]=Go,ap[1]=ra,sp.point=RN,E_=null}function n7(n,r){if(E_){var t=n-Nm;T1.add(Ri(t)>180?t+(t>0?360:-360):t)}else K8=n,X8=r;Xc.point(n,r),$8(n,r)}function hQ(){Xc.lineStart()}function mQ(){n7(K8,X8),Xc.lineEnd(),Ri(T1)>kr&&(Go=-(ra=180)),ap[0]=Go,ap[1]=ra,E_=null}function Vl(n,r){return(r-=n)<0?r+360:r}function vQ(n,r){return n[0]-r[0]}function r7(n,r){return n[0]<=n[1]?n[0]<=r&&r<=n[1]:r<n[0]||n[1]<r}function gQ(n){var r,t,i,o,a,s,u;if(gu=ra=-(Go=Hl=1/0),Bf=[],Wu(n,sp),t=Bf.length){for(Bf.sort(vQ),r=1,a=[i=Bf[0]];r<t;++r)r7(i,(o=Bf[r])[0])||r7(i,o[1])?(Vl(i[0],o[1])>Vl(i[0],i[1])&&(i[1]=o[1]),Vl(o[0],i[1])>Vl(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=Vl(i[1],(o=a[r])[0]))>s&&(s=u,Go=o[0],ra=i[1])}return Bf=ap=null,Go===1/0||Hl===1/0?[[NaN,NaN],[NaN,NaN]]:[[Go,Hl],[ra,gu]]}var x1,HM,VM,qM,jM,zM,WM,GM,NN,ZN,LN,i7,o7,Ls,Fs,Bs,Gu={sphere:No,point:FN,lineStart:a7,lineEnd:s7,polygonStart:function(){Gu.lineStart=bQ,Gu.lineEnd=CQ},polygonEnd:function(){Gu.lineStart=a7,Gu.lineEnd=s7}};function FN(n,r){n*=Lr;var t=Er(r*=Lr);w1(t*Er(n),t*vr(n),vr(r))}function w1(n,r,t){++x1,VM+=(n-VM)/x1,qM+=(r-qM)/x1,jM+=(t-jM)/x1}function a7(){Gu.point=_Q}function _Q(n,r){n*=Lr;var t=Er(r*=Lr);Ls=t*Er(n),Fs=t*vr(n),Bs=vr(r),Gu.point=yQ,w1(Ls,Fs,Bs)}function yQ(n,r){n*=Lr;var t=Er(r*=Lr),i=t*Er(n),o=t*vr(n),a=vr(r),s=Zs(Ta((s=Fs*a-Bs*o)*s+(s=Bs*i-Ls*a)*s+(s=Ls*o-Fs*i)*s),Ls*i+Fs*o+Bs*a);HM+=s,zM+=s*(Ls+(Ls=i)),WM+=s*(Fs+(Fs=o)),GM+=s*(Bs+(Bs=a)),w1(Ls,Fs,Bs)}function s7(){Gu.point=FN}function bQ(){Gu.point=SQ}function CQ(){l7(i7,o7),Gu.point=FN}function SQ(n,r){i7=n,o7=r,n*=Lr,r*=Lr,Gu.point=l7;var t=Er(r);Ls=t*Er(n),Fs=t*vr(n),Bs=vr(r),w1(Ls,Fs,Bs)}function l7(n,r){n*=Lr;var t=Er(r*=Lr),i=t*Er(n),o=t*vr(n),a=vr(r),s=Fs*a-Bs*o,u=Bs*i-Ls*a,p=Ls*o-Fs*i,m=Ta(s*s+u*u+p*p),b=Ul(m),I=m&&-b/m;NN+=I*s,ZN+=I*u,LN+=I*p,HM+=b,zM+=b*(Ls+(Ls=i)),WM+=b*(Fs+(Fs=o)),GM+=b*(Bs+(Bs=a)),w1(Ls,Fs,Bs)}function TQ(n){x1=HM=VM=qM=jM=zM=WM=GM=NN=ZN=LN=0,Wu(n,Gu);var r=NN,t=ZN,i=LN,o=r*r+t*t+i*i;return o<1e-12&&(r=zM,t=WM,i=GM,HM<kr&&(r=VM,t=qM,i=jM),(o=r*r+t*t+i*i)<1e-12)?[NaN,NaN]:[Zs(t,r)*lo,Ul(i/Ta(o))*lo]}function M_(n){return function(){return n}}function BN(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 UN(n,r){return[n>Ai?n-tl:n<-Ai?n+tl:n,r]}function HN(n,r,t){return(n%=tl)?r||t?BN(c7(n),d7(r,t)):c7(n):r||t?d7(r,t):UN}function u7(n){return function(r,t){return[(r+=n)>Ai?r-tl:r<-Ai?r+tl:r,t]}}function c7(n){var r=u7(n);return r.invert=u7(-n),r}function d7(n,r){var t=Er(n),i=vr(n),o=Er(r),a=vr(r);function s(u,p){var m=Er(p),b=Er(u)*m,I=vr(u)*m,F=vr(p),G=F*t+b*i;return[Zs(I*o-G*a,b*t-F*i),Ul(G*o+I*a)]}return s.invert=function(u,p){var m=Er(p),b=Er(u)*m,I=vr(u)*m,F=vr(p),G=F*o-I*a;return[Zs(I*o+F*a,b*t+G*i),Ul(G*t-b*i)]},s}function p7(n){function r(t){return(t=n(t[0]*Lr,t[1]*Lr))[0]*=lo,t[1]*=lo,t}return n=HN(n[0]*Lr,n[1]*Lr,n.length>2?n[2]*Lr:0),r.invert=function(t){return(t=n.invert(t[0]*Lr,t[1]*Lr))[0]*=lo,t[1]*=lo,t},r}function f7(n,r,t,i,o,a){if(t){var s=Er(r),u=vr(r),p=i*t;null==o?(o=r+i*tl,a=r-p/2):(o=h7(s,o),a=h7(s,a),(i>0?o<a:o>a)&&(o+=i*tl));for(var m,b=o;i>0?b>a:b<a;b-=p)m=LM([s,-u*Er(b),-u*vr(b)]),n.point(m[0],m[1])}}function h7(n,r){(r=Rm(r))[0]-=n,UM(r);var t=q8(-r[1]);return((-r[2]<0?-t:t)+tl-kr)%tl}function xQ(){var i,o,n=M_([0,0]),r=M_(90),t=M_(6),a={point:function(p,m){i.push(p=o(p,m)),p[0]*=lo,p[1]*=lo}};function u(){var p=n.apply(this,arguments),m=r.apply(this,arguments)*Lr,b=t.apply(this,arguments)*Lr;return i=[],o=HN(-p[0]*Lr,-p[1]*Lr,0).invert,f7(a,m,b,1),p={type:"Polygon",coordinates:[i]},i=o=null,p}return u.center=function(p){return arguments.length?(n="function"==typeof p?p:M_([+p[0],+p[1]]),u):n},u.radius=function(p){return arguments.length?(r="function"==typeof p?p:M_(+p),u):r},u.precision=function(p){return arguments.length?(t="function"==typeof p?p:M_(+p),u):t},u}function m7(){var r,n=[];return{point:function(i,o){r.push([i,o])},lineStart:function(){n.push(r=[])},lineEnd:No,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],r=null,i}}}function YM(n,r){return Ri(n[0]-r[0])<kr&&Ri(n[1]-r[1])<kr}function JM(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 v7(n,r,t,i,o){var u,p,a=[],s=[];if(n.forEach(function(Y){if(!((te=Y.length-1)<=0)){var te,lt,ce=Y[0],xe=Y[te];if(YM(ce,xe)){for(o.lineStart(),u=0;u<te;++u)o.point((ce=Y[u])[0],ce[1]);return void o.lineEnd()}a.push(lt=new JM(ce,Y,null,!0)),s.push(lt.o=new JM(ce,null,lt,!1)),a.push(lt=new JM(xe,Y,null,!1)),s.push(lt.o=new JM(xe,null,lt,!0))}}),a.length){for(s.sort(r),g7(a),g7(s),u=0,p=s.length;u<p;++u)s[u].e=t=!t;for(var b,I,m=a[0];;){for(var F=m,G=!0;F.v;)if((F=F.n)===m)return;b=F.z,o.lineStart();do{if(F.v=F.o.v=!0,F.e){if(G)for(u=0,p=b.length;u<p;++u)o.point((I=b[u])[0],I[1]);else i(F.x,F.n.x,1,o);F=F.n}else{if(G)for(u=(b=F.p.z).length-1;u>=0;--u)o.point((I=b[u])[0],I[1]);else i(F.x,F.p.x,-1,o);F=F.p}b=(F=F.o).z,G=!G}while(!F.v);o.lineEnd()}}}function g7(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}}UN.invert=UN;var VN=Ff();function _7(n,r){var t=r[0],i=r[1],o=vr(i),a=[vr(t),-Er(t),0],s=0,u=0;VN.reset(),1===o?i=Wo+kr:-1===o&&(i=-Wo-kr);for(var p=0,m=n.length;p<m;++p)if(I=(b=n[p]).length)for(var b,I,F=b[I-1],G=F[0],Y=F[1]/2+OM,te=vr(Y),ce=Er(Y),xe=0;xe<I;++xe,G=nt,te=ht,ce=Qe,F=lt){var lt=b[xe],nt=lt[0],it=lt[1]/2+OM,ht=vr(it),Qe=Er(it),tt=nt-G,Ot=tt>=0?1:-1,xt=Ot*tt,hn=xt>Ai,Jt=te*ht;if(VN.add(Zs(Jt*Ot*vr(xt),ce*Qe+Jt*Er(xt))),s+=hn?tt+Ot*tl:tt,hn^G>=t^nt>=t){var st=k_(Rm(F),Rm(lt));UM(st);var Dt=k_(a,st);UM(Dt);var gn=(hn^tt>=0?-1:1)*Ul(Dt[2]);(i>gn||i===gn&&(st[0]||st[1]))&&(u+=hn^tt>=0?1:-1)}}return(s<-kr||s<kr&&VN<-kr)^1&u}function y7(n,r,t,i){return function(o){var m,b,I,a=r(o),s=m7(),u=r(s),p=!1,F={point:G,lineStart:te,lineEnd:ce,polygonStart:function(){F.point=xe,F.lineStart=lt,F.lineEnd=nt,b=[],m=[]},polygonEnd:function(){F.point=G,F.lineStart=te,F.lineEnd=ce,b=fm(b);var ht=_7(m,i);b.length?(p||(o.polygonStart(),p=!0),v7(b,kQ,ht,t,o)):ht&&(p||(o.polygonStart(),p=!0),o.lineStart(),t(null,null,1,o),o.lineEnd()),p&&(o.polygonEnd(),p=!1),b=m=null},sphere:function(){o.polygonStart(),o.lineStart(),t(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function G(it,ht){n(it,ht)&&o.point(it,ht)}function Y(it,ht){a.point(it,ht)}function te(){F.point=Y,a.lineStart()}function ce(){F.point=G,a.lineEnd()}function xe(it,ht){I.push([it,ht]),u.point(it,ht)}function lt(){u.lineStart(),I=[]}function nt(){xe(I[0][0],I[0][1]),u.lineEnd();var Qe,Ot,xt,hn,it=u.clean(),ht=s.result(),tt=ht.length;if(I.pop(),m.push(I),I=null,tt){if(1&it){if((Ot=(xt=ht[0]).length-1)>0){for(p||(o.polygonStart(),p=!0),o.lineStart(),Qe=0;Qe<Ot;++Qe)o.point((hn=xt[Qe])[0],hn[1]);o.lineEnd()}return}tt>1&&2&it&&ht.push(ht.pop().concat(ht.shift())),b.push(ht.filter(wQ))}}return F}}function wQ(n){return n.length>1}function kQ(n,r){return((n=n.x)[0]<0?n[1]-Wo-kr:Wo-n[1])-((r=r.x)[0]<0?r[1]-Wo-kr:Wo-r[1])}var qN=y7(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?Ai:-Ai,m=Ri(s-r);Ri(m-Ai)<kr?(n.point(r,t=(t+u)/2>0?Wo:-Wo),n.point(i,t),n.lineEnd(),n.lineStart(),n.point(p,t),n.point(s,t),o=0):i!==p&&m>=Ai&&(Ri(r-i)<kr&&(r-=i*kr),Ri(s-p)<kr&&(s-=p*kr),t=function(n,r,t,i){var o,a,s=vr(n-t);return Ri(s)>kr?w_((vr(r)*(a=Er(i))*vr(t)-vr(i)*(o=Er(r))*vr(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(-Ai,o=t*Wo),i.point(0,o),i.point(Ai,o),i.point(Ai,0),i.point(Ai,-o),i.point(0,-o),i.point(-Ai,-o),i.point(-Ai,0),i.point(-Ai,o);else if(Ri(n[0]-r[0])>kr){var a=n[0]<r[0]?Ai:-Ai;i.point(-a,o=t*a/2),i.point(0,o),i.point(a,o)}else i.point(r[0],r[1])},[-Ai,-Wo]);function b7(n){var r=Er(n),t=6*Lr,i=r>0,o=Ri(r)>kr;function s(b,I){return Er(b)*Er(I)>r}function p(b,I,F){var te=[1,0,0],ce=k_(Rm(b),Rm(I)),xe=FM(ce,ce),lt=ce[0],nt=xe-lt*lt;if(!nt)return!F&&b;var it=r*xe/nt,ht=-r*lt/nt,Qe=k_(te,ce),tt=BM(te,it);IN(tt,BM(ce,ht));var xt=Qe,hn=FM(tt,xt),Jt=FM(xt,xt),st=hn*hn-Jt*(FM(tt,tt)-1);if(!(st<0)){var Dt=Ta(st),gn=BM(xt,(-hn-Dt)/Jt);if(IN(gn,tt),gn=LM(gn),!F)return gn;var Sr,fn=b[0],kn=I[0],Ln=b[1],or=I[1];kn<fn&&(Sr=fn,fn=kn,kn=Sr);var Yr=kn-fn,cr=Ri(Yr-Ai)<kr;if(!cr&&or<Ln&&(Sr=Ln,Ln=or,or=Sr),cr||Yr<kr?cr?Ln+or>0^gn[1]<(Ri(gn[0]-fn)<kr?Ln:or):Ln<=gn[1]&&gn[1]<=or:Yr>Ai^(fn<=gn[0]&&gn[0]<=kn)){var li=BM(xt,(-hn+Dt)/Jt);return IN(li,tt),[gn,LM(li)]}}}function m(b,I){var F=i?n:Ai-n,G=0;return b<-F?G|=1:b>F&&(G|=2),I<-F?G|=4:I>F&&(G|=8),G}return y7(s,function(b){var I,F,G,Y,te;return{lineStart:function(){Y=G=!1,te=1},point:function(xe,lt){var it,nt=[xe,lt],ht=s(xe,lt),Qe=i?ht?0:m(xe,lt):ht?m(xe+(xe<0?Ai:-Ai),lt):0;if(!I&&(Y=G=ht)&&b.lineStart(),ht!==G&&(!(it=p(I,nt))||YM(I,it)||YM(nt,it))&&(nt[0]+=kr,nt[1]+=kr,ht=s(nt[0],nt[1])),ht!==G)te=0,ht?(b.lineStart(),it=p(nt,I),b.point(it[0],it[1])):(it=p(I,nt),b.point(it[0],it[1]),b.lineEnd()),I=it;else if(o&&I&&i^ht){var tt;!(Qe&F)&&(tt=p(nt,I,!0))&&(te=0,i?(b.lineStart(),b.point(tt[0][0],tt[0][1]),b.point(tt[1][0],tt[1][1]),b.lineEnd()):(b.point(tt[1][0],tt[1][1]),b.lineEnd(),b.lineStart(),b.point(tt[0][0],tt[0][1])))}ht&&(!I||!YM(I,nt))&&b.point(nt[0],nt[1]),I=nt,G=ht,F=Qe},lineEnd:function(){G&&b.lineEnd(),I=null},clean:function(){return te|(Y&&G)<<1}}},function(b,I,F,G){f7(G,n,t,F,b,I)},i?[0,-n]:[-Ai,n-Ai])}var k1=1e9,QM=-k1;function KM(n,r,t,i){function o(m,b){return n<=m&&m<=t&&r<=b&&b<=i}function a(m,b,I,F){var G=0,Y=0;if(null==m||(G=s(m,I))!==(Y=s(b,I))||p(m,b)<0^I>0)do{F.point(0===G||3===G?n:t,G>1?i:r)}while((G=(G+I+4)%4)!==Y);else F.point(b[0],b[1])}function s(m,b){return Ri(m[0]-n)<kr?b>0?0:3:Ri(m[0]-t)<kr?b>0?2:1:Ri(m[1]-r)<kr?b>0?1:0:b>0?3:2}function u(m,b){return p(m.x,b.x)}function p(m,b){var I=s(m,1),F=s(b,1);return I!==F?I-F:0===I?b[1]-m[1]:1===I?m[0]-b[0]:2===I?m[1]-b[1]:b[0]-m[0]}return function(m){var F,G,Y,te,ce,xe,lt,nt,it,ht,Qe,b=m,I=m7(),tt={point:Ot,lineStart:function(){tt.point=gn,G&&G.push(Y=[]),ht=!0,it=!1,lt=nt=NaN},lineEnd:function(){F&&(gn(te,ce),xe&&it&&I.rejoin(),F.push(I.result())),tt.point=Ot,it&&b.lineEnd()},polygonStart:function(){b=I,F=[],G=[],Qe=!0},polygonEnd:function(){var fn=function(){for(var fn=0,kn=0,Ln=G.length;kn<Ln;++kn)for(var $r,li,or=G[kn],Sr=1,Yr=or.length,cr=or[0],Tr=cr[0],Pi=cr[1];Sr<Yr;++Sr)$r=Tr,li=Pi,Tr=(cr=or[Sr])[0],Pi=cr[1],li<=i?Pi>i&&(Tr-$r)*(i-li)>(Pi-li)*(n-$r)&&++fn:Pi<=i&&(Tr-$r)*(i-li)<(Pi-li)*(n-$r)&&--fn;return fn}(),kn=Qe&&fn,Ln=(F=fm(F)).length;(kn||Ln)&&(m.polygonStart(),kn&&(m.lineStart(),a(null,null,1,m),m.lineEnd()),Ln&&v7(F,u,fn,a,m),m.polygonEnd()),b=m,F=G=Y=null}};function Ot(fn,kn){o(fn,kn)&&b.point(fn,kn)}function gn(fn,kn){var Ln=o(fn,kn);if(G&&Y.push([fn,kn]),ht)te=fn,ce=kn,xe=Ln,ht=!1,Ln&&(b.lineStart(),b.point(fn,kn));else if(Ln&&it)b.point(fn,kn);else{var or=[lt=Math.max(QM,Math.min(k1,lt)),nt=Math.max(QM,Math.min(k1,nt))],Sr=[fn=Math.max(QM,Math.min(k1,fn)),kn=Math.max(QM,Math.min(k1,kn))];!function(n,r,t,i,o,a){var Y,s=n[0],u=n[1],b=0,I=1,F=r[0]-s,G=r[1]-u;if(Y=t-s,F||!(Y>0)){if(Y/=F,F<0){if(Y<b)return;Y<I&&(I=Y)}else if(F>0){if(Y>I)return;Y>b&&(b=Y)}if(Y=o-s,F||!(Y<0)){if(Y/=F,F<0){if(Y>I)return;Y>b&&(b=Y)}else if(F>0){if(Y<b)return;Y<I&&(I=Y)}if(Y=i-u,G||!(Y>0)){if(Y/=G,G<0){if(Y<b)return;Y<I&&(I=Y)}else if(G>0){if(Y>I)return;Y>b&&(b=Y)}if(Y=a-u,G||!(Y<0)){if(Y/=G,G<0){if(Y>I)return;Y>b&&(b=Y)}else if(G>0){if(Y<b)return;Y<I&&(I=Y)}return b>0&&(n[0]=s+b*F,n[1]=u+b*G),I<1&&(r[0]=s+I*F,r[1]=u+I*G),!0}}}}}(or,Sr,n,r,t,i)?Ln&&(b.lineStart(),b.point(fn,kn),Qe=!1):(it||(b.lineStart(),b.point(or[0],or[1])),b.point(Sr[0],Sr[1]),Ln||b.lineEnd(),Qe=!1)}lt=fn,nt=kn,it=Ln}return tt}}function OQ(){var o,a,s,n=0,r=0,t=960,i=500;return s={stream:function(p){return o&&a===p?o:o=KM(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 zN,XM,$M,jN=Ff(),A_={sphere:No,point:No,lineStart:function(){A_.point=RQ,A_.lineEnd=IQ},lineEnd:No,polygonStart:No,polygonEnd:No};function IQ(){A_.point=A_.lineEnd=No}function RQ(n,r){zN=n*=Lr,XM=vr(r*=Lr),$M=Er(r),A_.point=NQ}function NQ(n,r){n*=Lr;var t=vr(r*=Lr),i=Er(r),o=Ri(n-zN),a=Er(o),u=i*vr(o),p=$M*t-XM*i*a,m=XM*t+$M*i*a;jN.add(Zs(Ta(u*u+p*p),m)),zN=n,XM=t,$M=i}function C7(n){return jN.reset(),Wu(n,A_),+jN}var WN=[null,null],ZQ={type:"LineString",coordinates:WN};function E1(n,r){return WN[0]=n,WN[1]=r,C7(ZQ)}var S7={Feature:function(r,t){return eA(r.geometry,t)},FeatureCollection:function(r,t){for(var i=r.features,o=-1,a=i.length;++o<a;)if(eA(i[o].geometry,t))return!0;return!1}},T7={Sphere:function(){return!0},Point:function(r,t){return x7(r.coordinates,t)},MultiPoint:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(x7(i[o],t))return!0;return!1},LineString:function(r,t){return w7(r.coordinates,t)},MultiLineString:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(w7(i[o],t))return!0;return!1},Polygon:function(r,t){return k7(r.coordinates,t)},MultiPolygon:function(r,t){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(k7(i[o],t))return!0;return!1},GeometryCollection:function(r,t){for(var i=r.geometries,o=-1,a=i.length;++o<a;)if(eA(i[o],t))return!0;return!1}};function eA(n,r){return!(!n||!T7.hasOwnProperty(n.type))&&T7[n.type](n,r)}function x7(n,r){return 0===E1(n,r)}function w7(n,r){var t=E1(n[0],n[1]);return E1(n[0],r)+E1(r,n[1])<=t+kr}function k7(n,r){return!!_7(n.map(LQ),E7(r))}function LQ(n){return(n=n.map(E7)).pop(),n}function E7(n){return[n[0]*Lr,n[1]*Lr]}function FQ(n,r){return(n&&S7.hasOwnProperty(n.type)?S7[n.type]:eA)(n,r)}function M7(n,r,t){var i=Ps(n,r-kr,t).concat(r);return function(o){return i.map(function(a){return[o,a]})}}function A7(n,r,t){var i=Ps(n,r-kr,t).concat(r);return function(o){return i.map(function(a){return[a,o]})}}function D7(){var n,r,t,i,o,a,s,u,F,G,Y,te,p=10,m=p,b=90,I=360,ce=2.5;function xe(){return{type:"MultiLineString",coordinates:lt()}}function lt(){return Ps(PM(i/b)*b,t,b).map(Y).concat(Ps(PM(u/I)*I,s,I).map(te)).concat(Ps(PM(r/p)*p,n,p).filter(function(nt){return Ri(nt%b)>kr}).map(F)).concat(Ps(PM(a/m)*m,o,m).filter(function(nt){return Ri(nt%I)>kr}).map(G))}return xe.lines=function(){return lt().map(function(nt){return{type:"LineString",coordinates:nt}})},xe.outline=function(){return{type:"Polygon",coordinates:[Y(i).concat(te(s).slice(1),Y(t).reverse().slice(1),te(u).reverse().slice(1))]}},xe.extent=function(nt){return arguments.length?xe.extentMajor(nt).extentMinor(nt):xe.extentMinor()},xe.extentMajor=function(nt){return arguments.length?(u=+nt[0][1],s=+nt[1][1],(i=+nt[0][0])>(t=+nt[1][0])&&(nt=i,i=t,t=nt),u>s&&(nt=u,u=s,s=nt),xe.precision(ce)):[[i,u],[t,s]]},xe.extentMinor=function(nt){return arguments.length?(a=+nt[0][1],o=+nt[1][1],(r=+nt[0][0])>(n=+nt[1][0])&&(nt=r,r=n,n=nt),a>o&&(nt=a,a=o,o=nt),xe.precision(ce)):[[r,a],[n,o]]},xe.step=function(nt){return arguments.length?xe.stepMajor(nt).stepMinor(nt):xe.stepMinor()},xe.stepMajor=function(nt){return arguments.length?(b=+nt[0],I=+nt[1],xe):[b,I]},xe.stepMinor=function(nt){return arguments.length?(p=+nt[0],m=+nt[1],xe):[p,m]},xe.precision=function(nt){return arguments.length?(ce=+nt,F=M7(a,o,90),G=A7(r,n,ce),Y=M7(u,s,90),te=A7(i,t,ce),xe):ce},xe.extentMajor([[-180,-90+kr],[180,90-kr]]).extentMinor([[-180,-80-kr],[180,80+kr]])}function BQ(){return D7()()}function UQ(n,r){var t=n[0]*Lr,i=n[1]*Lr,o=r[0]*Lr,a=r[1]*Lr,s=Er(i),u=vr(i),p=Er(a),m=vr(a),b=s*Er(t),I=s*vr(t),F=p*Er(o),G=p*vr(o),Y=2*Ul(Ta(j8(a-i)+s*p*j8(o-t))),te=vr(Y),ce=Y?function(xe){var lt=vr(xe*=Y)/te,nt=vr(Y-xe)/te,it=nt*b+lt*F,ht=nt*I+lt*G,Qe=nt*u+lt*m;return[Zs(ht,it)*lo,Zs(Qe,Ta(it*it+ht*ht))*lo]}:function(){return[t*lo,i*lo]};return ce.distance=Y,ce}function Zm(n){return n}var O7,P7,JN,QN,GN=Ff(),YN=Ff(),Uf={point:No,lineStart:No,lineEnd:No,polygonStart:function(){Uf.lineStart=HQ,Uf.lineEnd=qQ},polygonEnd:function(){Uf.lineStart=Uf.lineEnd=Uf.point=No,GN.add(Ri(YN)),YN.reset()},result:function(){var r=GN/2;return GN.reset(),r}};function HQ(){Uf.point=VQ}function VQ(n,r){Uf.point=I7,O7=JN=n,P7=QN=r}function I7(n,r){YN.add(QN*n-JN*r),JN=n,QN=r}function qQ(){I7(O7,P7)}var N7,Z7,$c,ed,R7=Uf,D_=1/0,tA=D_,M1=-D_,nA=M1,rA={point:function(n,r){n<D_&&(D_=n),n>M1&&(M1=n),r<tA&&(tA=r),r>nA&&(nA=r)},lineStart:No,lineEnd:No,polygonStart:No,polygonEnd:No,result:function(){var r=[[D_,tA],[M1,nA]];return M1=nA=-(tA=D_=1/0),r}},KN=0,XN=0,A1=0,iA=0,oA=0,O_=0,$N=0,e6=0,D1=0,Yu={point:Lm,lineStart:L7,lineEnd:F7,polygonStart:function(){Yu.lineStart=YQ,Yu.lineEnd=JQ},polygonEnd:function(){Yu.point=Lm,Yu.lineStart=L7,Yu.lineEnd=F7},result:function(){var r=D1?[$N/D1,e6/D1]:O_?[iA/O_,oA/O_]:A1?[KN/A1,XN/A1]:[NaN,NaN];return KN=XN=A1=iA=oA=O_=$N=e6=D1=0,r}};function Lm(n,r){KN+=n,XN+=r,++A1}function L7(){Yu.point=WQ}function WQ(n,r){Yu.point=GQ,Lm($c=n,ed=r)}function GQ(n,r){var t=n-$c,i=r-ed,o=Ta(t*t+i*i);iA+=o*($c+n)/2,oA+=o*(ed+r)/2,O_+=o,Lm($c=n,ed=r)}function F7(){Yu.point=Lm}function YQ(){Yu.point=QQ}function JQ(){B7(N7,Z7)}function QQ(n,r){Yu.point=B7,Lm(N7=$c=n,Z7=ed=r)}function B7(n,r){var t=n-$c,i=r-ed,o=Ta(t*t+i*i);iA+=o*($c+n)/2,oA+=o*(ed+r)/2,O_+=o,$N+=(o=ed*n-$c*r)*($c+n),e6+=o*(ed+r),D1+=3*o,Lm($c=n,ed=r)}var U7=Yu;function H7(n){this._context=n}H7.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,tl)}},result:No};var n6,V7,q7,O1,P1,t6=Ff(),aA={point:No,lineStart:function(){aA.point=KQ},lineEnd:function(){n6&&j7(V7,q7),aA.point=No},polygonStart:function(){n6=!0},polygonEnd:function(){n6=null},result:function(){var r=+t6;return t6.reset(),r}};function KQ(n,r){aA.point=j7,V7=O1=n,q7=P1=r}function j7(n,r){t6.add(Ta((O1-=n)*O1+(P1-=r)*P1)),O1=n,P1=r}var z7=aA;function W7(){this._string=[]}function G7(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function XQ(n,r){var i,o,t=4.5;function a(s){return s&&("function"==typeof t&&o.pointRadius(+t.apply(this,arguments)),Wu(s,i(o))),o.result()}return a.area=function(s){return Wu(s,i(R7)),R7.result()},a.measure=function(s){return Wu(s,i(z7)),z7.result()},a.bounds=function(s){return Wu(s,i(rA)),rA.result()},a.centroid=function(s){return Wu(s,i(U7)),U7.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 W7):new H7(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 $Q(n){return{stream:I1(n)}}function I1(n){return function(r){var t=new r6;for(var i in n)t[i]=n[i];return t.stream=r,t}}function r6(){}function i6(n,r,t){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=i&&n.clipExtent(null),Wu(t,n.stream(rA)),r(rA.result()),null!=i&&n.clipExtent(i),n}function sA(n,r,t){return i6(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 o6(n,r,t){return sA(n,[[0,0],r],t)}function a6(n,r,t){return i6(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 s6(n,r,t){return i6(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)}W7.prototype={_radius:4.5,_circle:G7(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=G7(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}},r6.prototype={constructor:r6,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 eK=Er(30*Lr);function J7(n,r){return+r?function(n,r){function t(i,o,a,s,u,p,m,b,I,F,G,Y,te,ce){var xe=m-i,lt=b-o,nt=xe*xe+lt*lt;if(nt>4*r&&te--){var it=s+F,ht=u+G,Qe=p+Y,tt=Ta(it*it+ht*ht+Qe*Qe),Ot=Ul(Qe/=tt),xt=Ri(Ri(Qe)-1)<kr||Ri(a-I)<kr?(a+I)/2:Zs(ht,it),hn=n(xt,Ot),Jt=hn[0],st=hn[1],Dt=Jt-i,gn=st-o,fn=lt*Dt-xe*gn;(fn*fn/nt>r||Ri((xe*Dt+lt*gn)/nt-.5)>.3||s*F+u*G+p*Y<eK)&&(t(i,o,a,s,u,p,Jt,st,xt,it/=tt,ht/=tt,Qe,te,ce),ce.point(Jt,st),t(Jt,st,xt,it,ht,Qe,m,b,I,F,G,Y,te,ce))}}return function(i){var o,a,s,u,p,m,b,I,F,G,Y,te,ce={point:xe,lineStart:lt,lineEnd:it,polygonStart:function(){i.polygonStart(),ce.lineStart=ht},polygonEnd:function(){i.polygonEnd(),ce.lineStart=lt}};function xe(Ot,xt){Ot=n(Ot,xt),i.point(Ot[0],Ot[1])}function lt(){I=NaN,ce.point=nt,i.lineStart()}function nt(Ot,xt){var hn=Rm([Ot,xt]),Jt=n(Ot,xt);t(I,F,b,G,Y,te,I=Jt[0],F=Jt[1],b=Ot,G=hn[0],Y=hn[1],te=hn[2],16,i),i.point(I,F)}function it(){ce.point=xe,i.lineEnd()}function ht(){lt(),ce.point=Qe,ce.lineEnd=tt}function Qe(Ot,xt){nt(o=Ot,xt),a=I,s=F,u=G,p=Y,m=te,ce.point=nt}function tt(){t(I,F,b,G,Y,te,a,s,o,u,p,m,16,i),ce.lineEnd=it,it()}return ce}}(n,r):function(n){return I1({point:function(t,i){t=n(t,i),this.stream.point(t[0],t[1])}})}(n)}var rK=I1({point:function(r,t){this.stream.point(r*Lr,t*Lr)}});function oK(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 Q7(n,r,t,i){var o=Er(i),a=vr(i),s=o*n,u=a*n,p=o/n,m=a/n,b=(a*t-o*r)/n,I=(a*r+o*t)/n;function F(G,Y){return[s*G-u*Y+r,t-u*G-s*Y]}return F.invert=function(G,Y){return[p*G-m*Y+b,I-m*G-p*Y]},F}function lp(n){return l6(function(){return n})()}function l6(n){var r,b,te,ce,xe,it,ht,Qe,tt,Ot,t=150,i=480,o=250,a=0,s=0,u=0,p=0,m=0,I=0,F=null,G=qN,Y=null,lt=Zm,nt=.5;function xt(Dt){return Qe(Dt[0]*Lr,Dt[1]*Lr)}function hn(Dt){return(Dt=Qe.invert(Dt[0],Dt[1]))&&[Dt[0]*lo,Dt[1]*lo]}function Jt(){var Dt=Q7(t,0,0,I).apply(null,r(a,s)),gn=(I?Q7:oK)(t,i-Dt[0],o-Dt[1],I);return b=HN(u,p,m),ht=BN(r,gn),Qe=BN(b,ht),it=J7(ht,nt),st()}function st(){return tt=Ot=null,xt}return xt.stream=function(Dt){return tt&&Ot===Dt?tt:tt=rK(function(n){return I1({point:function(t,i){var o=n(t,i);return this.stream.point(o[0],o[1])}})}(b)(G(it(lt(Ot=Dt)))))},xt.preclip=function(Dt){return arguments.length?(G=Dt,F=void 0,st()):G},xt.postclip=function(Dt){return arguments.length?(lt=Dt,Y=te=ce=xe=null,st()):lt},xt.clipAngle=function(Dt){return arguments.length?(G=+Dt?b7(F=Dt*Lr):(F=null,qN),st()):F*lo},xt.clipExtent=function(Dt){return arguments.length?(lt=null==Dt?(Y=te=ce=xe=null,Zm):KM(Y=+Dt[0][0],te=+Dt[0][1],ce=+Dt[1][0],xe=+Dt[1][1]),st()):null==Y?null:[[Y,te],[ce,xe]]},xt.scale=function(Dt){return arguments.length?(t=+Dt,Jt()):t},xt.translate=function(Dt){return arguments.length?(i=+Dt[0],o=+Dt[1],Jt()):[i,o]},xt.center=function(Dt){return arguments.length?(a=Dt[0]%360*Lr,s=Dt[1]%360*Lr,Jt()):[a*lo,s*lo]},xt.rotate=function(Dt){return arguments.length?(u=Dt[0]%360*Lr,p=Dt[1]%360*Lr,m=Dt.length>2?Dt[2]%360*Lr:0,Jt()):[u*lo,p*lo,m*lo]},xt.angle=function(Dt){return arguments.length?(I=Dt%360*Lr,Jt()):I*lo},xt.precision=function(Dt){return arguments.length?(it=J7(ht,nt=Dt*Dt),st()):Ta(nt)},xt.fitExtent=function(Dt,gn){return sA(xt,Dt,gn)},xt.fitSize=function(Dt,gn){return o6(xt,Dt,gn)},xt.fitWidth=function(Dt,gn){return a6(xt,Dt,gn)},xt.fitHeight=function(Dt,gn){return s6(xt,Dt,gn)},function(){return r=n.apply(this,arguments),xt.invert=r.invert&&hn,Jt()}}function u6(n){var r=0,t=Ai/3,i=l6(n),o=i(r,t);return o.parallels=function(a){return arguments.length?i(r=a[0]*Lr,t=a[1]*Lr):[r*lo,t*lo]},o}function K7(n,r){var t=vr(n),i=(t+vr(r))/2;if(Ri(i)<kr)return function(n){var r=Er(n);function t(i,o){return[i*r,vr(o)/r]}return t.invert=function(i,o){return[i/r,Ul(o*r)]},t}(n);var o=1+t*(2*i-t),a=Ta(o)/i;function s(u,p){var m=Ta(o-2*i*vr(p))/i;return[m*vr(u*=i),a-m*Er(u)]}return s.invert=function(u,p){var m=a-p;return[Zs(u,Ri(m))/i*S1(m),Ul((o-(u*u+m*m)*i*i)/(2*i))]},s}function lA(){return u6(K7).scale(155.424).center([0,33.6442])}function X7(){return lA().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function lK(){var n,r,i,a,u,p,t=X7(),o=lA().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=lA().rotate([157,0]).center([-3,19.9]).parallels([8,18]),m={point:function(G,Y){p=[G,Y]}};function b(F){var G=F[0],Y=F[1];return p=null,i.point(G,Y),p||(a.point(G,Y),p)||(u.point(G,Y),p)}function I(){return n=r=null,b}return b.invert=function(F){var G=t.scale(),Y=t.translate(),te=(F[0]-Y[0])/G,ce=(F[1]-Y[1])/G;return(ce>=.12&&ce<.234&&te>=-.425&&te<-.214?o:ce>=.166&&ce<.234&&te>=-.214&&te<-.115?s:t).invert(F)},b.stream=function(F){return n&&r===F?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=F),o.stream(F),s.stream(F)])},b.precision=function(F){return arguments.length?(t.precision(F),o.precision(F),s.precision(F),I()):t.precision()},b.scale=function(F){return arguments.length?(t.scale(F),o.scale(.35*F),s.scale(F),b.translate(t.translate())):t.scale()},b.translate=function(F){if(!arguments.length)return t.translate();var G=t.scale(),Y=+F[0],te=+F[1];return i=t.translate(F).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+kr,te+.12*G+kr],[Y-.214*G-kr,te+.234*G-kr]]).stream(m),u=s.translate([Y-.205*G,te+.212*G]).clipExtent([[Y-.214*G+kr,te+.166*G+kr],[Y-.115*G-kr,te+.234*G-kr]]).stream(m),I()},b.fitExtent=function(F,G){return sA(b,F,G)},b.fitSize=function(F,G){return o6(b,F,G)},b.fitWidth=function(F,G){return a6(b,F,G)},b.fitHeight=function(F,G){return s6(b,F,G)},b.scale(1070)}function $7(n){return function(r,t){var i=Er(r),o=Er(t),a=n(i*o);return[a*o*vr(r),a*vr(t)]}}function R1(n){return function(r,t){var i=Ta(r*r+t*t),o=n(i),a=vr(o),s=Er(o);return[Zs(r*a,i*s),Ul(i&&t*a/i)]}}var c6=$7(function(n){return Ta(2/(1+n))});function uK(){return lp(c6).scale(124.75).clipAngle(179.999)}c6.invert=R1(function(n){return 2*Ul(n/2)});var d6=$7(function(n){return(n=q8(n))&&n/vr(n)});function cK(){return lp(d6).scale(79.4188).clipAngle(179.999)}function N1(n,r){return[n,IM(MN((Wo+r)/2))]}function dK(){return eU(N1).scale(961/tl)}function eU(n){var u,p,m,r=lp(n),t=r.center,i=r.scale,o=r.translate,a=r.clipExtent,s=null;function b(){var I=Ai*i(),F=r(p7(r.rotate()).invert([0,0]));return a(null==s?[[F[0]-I,F[1]-I],[F[0]+I,F[1]+I]]:n===N1?[[Math.max(F[0]-I,s),u],[Math.min(F[0]+I,p),m]]:[[s,Math.max(F[1]-I,u)],[p,Math.min(F[1]+I,m)]])}return r.scale=function(I){return arguments.length?(i(I),b()):i()},r.translate=function(I){return arguments.length?(o(I),b()):o()},r.center=function(I){return arguments.length?(t(I),b()):t()},r.clipExtent=function(I){return arguments.length?(null==I?s=u=p=m=null:(s=+I[0][0],u=+I[0][1],p=+I[1][0],m=+I[1][1]),b()):null==s?null:[[s,u],[p,m]]},b()}function uA(n){return MN((Wo+n)/2)}function tU(n,r){var t=Er(n),i=n===r?vr(n):IM(t/Er(r))/IM(uA(r)/uA(n)),o=t*EN(uA(n),i)/i;if(!i)return N1;function a(s,u){o>0?u<-Wo+kr&&(u=-Wo+kr):u>Wo-kr&&(u=Wo-kr);var p=o/EN(uA(u),i);return[p*vr(i*s),o-p*Er(i*s)]}return a.invert=function(s,u){var p=o-u,m=S1(i)*Ta(s*s+p*p);return[Zs(s,Ri(p))/i*S1(p),2*w_(EN(o/m,1/i))-Wo]},a}function pK(){return u6(tU).scale(109.5).parallels([30,30])}function Z1(n,r){return[n,r]}function fK(){return lp(Z1).scale(152.63)}function nU(n,r){var t=Er(n),i=n===r?vr(n):(t-Er(r))/(r-n),o=t/i+n;if(Ri(i)<kr)return Z1;function a(s,u){var p=o-u,m=i*s;return[p*vr(m),o-p*Er(m)]}return a.invert=function(s,u){var p=o-u;return[Zs(s,Ri(p))/i*S1(p),o-S1(i)*Ta(s*s+p*p)]},a}function hK(){return u6(nU).scale(131.154).center([0,13.9389])}function p6(n,r){var t=Er(r),i=Er(n)*t;return[t*vr(n)/i,vr(r)/i]}function mK(){return lp(p6).scale(144.049).clipAngle(60)}function cA(n,r,t,i){return 1===n&&1===r&&0===t&&0===i?Zm:I1({point:function(a,s){this.stream.point(a*n+t,s*r+i)}})}function vK(){var u,p,m,I,F,G,n=1,r=0,t=0,i=1,o=1,a=Zm,s=null,b=Zm;function Y(){return I=F=null,G}return G={stream:function(ce){return I&&F===ce?I:I=a(b(F=ce))},postclip:function(ce){return arguments.length?(b=ce,s=u=p=m=null,Y()):b},clipExtent:function(ce){return arguments.length?(b=null==ce?(s=u=p=m=null,Zm):KM(s=+ce[0][0],u=+ce[0][1],p=+ce[1][0],m=+ce[1][1]),Y()):null==s?null:[[s,u],[p,m]]},scale:function(ce){return arguments.length?(a=cA((n=+ce)*i,n*o,r,t),Y()):n},translate:function(ce){return arguments.length?(a=cA(n*i,n*o,r=+ce[0],t=+ce[1]),Y()):[r,t]},reflectX:function(ce){return arguments.length?(a=cA(n*(i=ce?-1:1),n*o,r,t),Y()):i<0},reflectY:function(ce){return arguments.length?(a=cA(n*i,n*(o=ce?-1:1),r,t),Y()):o<0},fitExtent:function(ce,xe){return sA(G,ce,xe)},fitSize:function(ce,xe){return o6(G,ce,xe)},fitWidth:function(ce,xe){return a6(G,ce,xe)},fitHeight:function(ce,xe){return s6(G,ce,xe)}}}function f6(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 gK(){return lp(f6).scale(175.295)}function h6(n,r){return[Er(r)*vr(n),vr(r)]}function _K(){return lp(h6).scale(249.5).clipAngle(90+kr)}function m6(n,r){var t=Er(r),i=1+Er(n)*t;return[t*vr(n)/i,vr(r)/i]}function yK(){return lp(m6).scale(250).clipAngle(142)}function v6(n,r){return[IM(MN((Wo+r)/2)),-n]}function bK(){var n=eU(v6),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 CK(n,r){return n.parent===r.parent?1:2}function TK(n,r){return n+r.x}function wK(n,r){return Math.max(n,r.y)}function MK(){var n=CK,r=1,t=1,i=!1;function o(a){var s,u=0;a.eachAfter(function(F){var G=F.children;G?(F.x=function(n){return n.reduce(TK,0)/n.length}(G),F.y=function(n){return 1+n.reduce(wK,0)}(G)):(F.x=s?u+=n(F,s):0,F.y=0,s=F)});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),b=p.x-n(p,m)/2,I=m.x+n(m,p)/2;return a.eachAfter(i?function(F){F.x=(F.x-a.x)*r,F.y=(a.y-F.y)*t}:function(F){F.x=(F.x-b)/(I-b)*r,F.y=(1-(a.y?F.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 AK(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 g6(n,r){var o,s,u,p,m,t=new P_(n),i=+n.value&&(t.value=n.value),a=[t];for(null==r&&(r=qK);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 P_(u[p])),s.parent=o,s.depth=o.depth+1;return t.eachBefore(rU)}function qK(n){return n.children}function jK(n){n.data=n.data.data}function rU(n){var r=0;do{n.height=r}while((n=n.parent)&&n.height<++r)}function P_(n){this.data=n,this.depth=this.height=0,this.parent=null}d6.invert=R1(function(n){return n}),N1.invert=function(n,r){return[n,2*w_(V8(r))-Wo]},Z1.invert=Z1,p6.invert=R1(w_),f6.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(Ri(o)>kr&&--i>0);return[n/(.8707+(a=t*t)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),t]},h6.invert=R1(Ul),m6.invert=R1(function(n){return 2*w_(n)}),v6.invert=function(n,r){return[-r,2*w_(V8(n))-Wo]},P_.prototype=g6.prototype={constructor:P_,count:function(){return this.eachAfter(AK)},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 g6(this).eachBefore(jK)}};var zK=Array.prototype.slice;function iU(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}(zK.call(n))).length,i=[];r<t;)o=n[r],a&&oU(a,o)?++r:(a=YK(i=GK(i,o)),r=0);return a}function GK(n,r){var t,i;if(_6(r,n))return[r];for(t=0;t<n.length;++t)if(dA(r,n[t])&&_6(L1(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(dA(L1(n[t],n[i]),r)&&dA(L1(n[t],r),n[i])&&dA(L1(n[i],r),n[t])&&_6(aU(n[t],n[i],r),n))return[n[t],n[i],r];throw new Error}function dA(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 oU(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 _6(n,r){for(var t=0;t<r.length;++t)if(!oU(n,r[t]))return!1;return!0}function YK(n){switch(n.length){case 1:return function(n){return{x:n.x,y:n.y,r:n.r}}(n[0]);case 2:return L1(n[0],n[1]);case 3:return aU(n[0],n[1],n[2])}}function L1(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,b=u-o,I=Math.sqrt(p*p+m*m);return{x:(t+a+p/I*b)/2,y:(i+s+m/I*b)/2,r:(I+o+u)/2}}function aU(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,b=t.y,I=t.r,F=i-s,G=i-m,Y=o-u,te=o-b,ce=p-a,xe=I-a,lt=i*i+o*o-a*a,nt=lt-s*s-u*u+p*p,it=lt-m*m-b*b+I*I,ht=G*Y-F*te,Qe=(Y*it-te*nt)/(2*ht)-i,tt=(te*ce-Y*xe)/ht,Ot=(G*nt-F*it)/(2*ht)-o,xt=(F*xe-G*ce)/ht,hn=tt*tt+xt*xt-1,Jt=2*(a+Qe*tt+Ot*xt),st=Qe*Qe+Ot*Ot-a*a,Dt=-(hn?(Jt+Math.sqrt(Jt*Jt-4*hn*st))/(2*hn):st/Jt);return{x:i+Qe+tt*Dt,y:o+Ot+xt*Dt,r:Dt}}function sU(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 lU(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 uU(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 pA(n){this._=n,this.next=null,this.previous=null}function cU(n){if(!(o=n.length))return 0;var r,t,i,o,a,s,u,p,m,b,I;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;sU(t,r,i=n[2]),r=new pA(r),t=new pA(t),i=new pA(i),r.next=i.previous=t,t.next=r.previous=i,i.next=t.previous=r;e:for(u=3;u<o;++u){sU(r._,t._,i=n[u]),i=new pA(i),p=t.next,m=r.previous,b=t._.r,I=r._.r;do{if(b<=I){if(lU(p._,i._)){r.next=t=p,t.previous=r,--u;continue e}b+=p._.r,p=p.next}else{if(lU(m._,i._)){(r=m).next=t,t.previous=r,--u;continue e}I+=m._.r,m=m.previous}}while(p!==m.next);for(i.previous=r,i.next=t,r.next=t.previous=t=i,a=uU(r);(i=i.next)!==t;)(s=uU(i))<a&&(r=i,a=s);t=r.next}for(r=[t._],i=t;(i=i.next)!==t;)r.push(i._);for(i=iU(r),u=0;u<o;++u)(r=n[u]).x-=i.x,r.y-=i.y;return i.r}function QK(n){return cU(n),n}function KK(n){return null==n?null:fA(n)}function fA(n){if("function"!=typeof n)throw new Error;return n}function Fm(){return 0}function I_(n){return function(){return n}}function XK(n){return Math.sqrt(n.value)}function $K(){var n=null,r=1,t=1,i=Fm;function o(a){return a.x=r/2,a.y=t/2,n?a.eachBefore(dU(n)).eachAfter(y6(i,.5)).eachBefore(pU(1)):a.eachBefore(dU(XK)).eachAfter(y6(Fm,1)).eachAfter(y6(i,a.r/Math.min(r,t))).eachBefore(pU(Math.min(r,t)/(2*a.r))),a}return o.radius=function(a){return arguments.length?(n=KK(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:I_(+a),o):i},o}function dU(n){return function(r){r.children||(r.r=Math.max(0,+n(r)||0))}}function y6(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=cU(i),s)for(o=0;o<a;++o)i[o].r-=s;t.r=u+s}}}function pU(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 fU(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 F1(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 eX(){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&&F1(p,p.x0,s*(p.depth+1)/u,p.x1,s*(p.depth+2)/u);var m=p.x0,b=p.y0,I=p.x1-t,F=p.y1-t;I<m&&(m=I=(m+I)/2),F<b&&(b=F=(b+F)/2),p.x0=m,p.y0=b,p.x1=I,p.y1=F}}(r,u)),i&&s.eachBefore(fU),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 tX={depth:-1},mU={};function nX(n){return n.id}function rX(n){return n.parentId}function iX(){var n=nX,r=rX;function t(i){var o,a,u,p,m,I,F,s=i.length,b=new Array(s),G={};for(a=0;a<s;++a)m=b[a]=new P_(o=i[a]),null!=(I=n(o,a,i))&&(I+="")&&(G[F="$"+(m.id=I)]=F in G?mU:m);for(a=0;a<s;++a)if(m=b[a],null!=(I=r(i[a],a,i))&&(I+="")){if(!(p=G["$"+I]))throw new Error("missing: "+I);if(p===mU)throw new Error("ambiguous: "+I);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=tX,u.eachBefore(function(Y){Y.depth=Y.parent.depth+1,--s}).eachBefore(rU),u.parent=null,s>0)throw new Error("cycle");return u}return t.id=function(i){return arguments.length?(n=fA(i),t):n},t.parentId=function(i){return arguments.length?(r=fA(i),t):r},t}function oX(n,r){return n.parent===r.parent?1:2}function b6(n){var r=n.children;return r?r[0]:n.t}function C6(n){var r=n.children;return r?r[r.length-1]:n.t}function aX(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 lX(n,r,t){return n.a.parent===r.parent?n.a:t}function hA(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 cX(){var n=oX,r=1,t=1,i=null;function o(m){var b=function(n){for(var t,o,a,s,u,r=new hA(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 hA(a[s],s)),o.parent=t;return(r.parent=new hA(null,0)).children=[r],r}(m);if(b.eachAfter(a),b.parent.m=-b.z,b.eachBefore(s),i)m.eachBefore(p);else{var I=m,F=m,G=m;m.eachBefore(function(lt){lt.x<I.x&&(I=lt),lt.x>F.x&&(F=lt),lt.depth>G.depth&&(G=lt)});var Y=I===F?1:n(I,F)/2,te=Y-I.x,ce=r/(F.x+Y+te),xe=t/(G.depth||1);m.eachBefore(function(lt){lt.x=(lt.x+te)*ce,lt.y=lt.depth*xe})}return m}function a(m){var b=m.children,I=m.parent.children,F=m.i?I[m.i-1]:null;if(b){!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=(b[0].z+b[b.length-1].z)/2;F?(m.z=F.z+n(m._,F._),m.m=m.z-G):m.z=G}else F&&(m.z=F.z+n(m._,F._));m.parent.A=function(m,b,I){if(b){for(var it,F=m,G=m,Y=b,te=F.parent.children[0],ce=F.m,xe=G.m,lt=Y.m,nt=te.m;Y=C6(Y),F=b6(F),Y&&F;)te=b6(te),(G=C6(G)).a=m,(it=Y.z+lt-F.z-ce+n(Y._,F._))>0&&(aX(lX(Y,m,I),m,it),ce+=it,xe+=it),lt+=Y.m,ce+=F.m,nt+=te.m,xe+=G.m;Y&&!C6(G)&&(G.t=Y,G.m+=lt-xe),F&&!b6(te)&&(te.t=F,te.m+=ce-nt,I=m)}return I}(m,F,m.parent.A||I[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 mA(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}hA.prototype=Object.create(P_.prototype);var vU=(1+Math.sqrt(5))/2;function gU(n,r,t,i,o,a){for(var p,m,G,Y,ce,xe,lt,nt,it,ht,Qe,s=[],u=r.children,b=0,I=0,F=u.length,te=r.value;b<F;){G=o-t,Y=a-i;do{ce=u[I++].value}while(!ce&&I<F);for(xe=lt=ce,Qe=ce*ce*(ht=Math.max(Y/G,G/Y)/(te*n)),it=Math.max(lt/Qe,Qe/xe);I<F;++I){if(ce+=m=u[I].value,m<xe&&(xe=m),m>lt&&(lt=m),Qe=ce*ce*ht,(nt=Math.max(lt/Qe,Qe/xe))>it){ce-=m;break}it=nt}s.push(p={value:ce,dice:G<Y,children:u.slice(b,I)}),p.dice?F1(p,t,i,o,te?i+=Y*ce/te:a):mA(p,t,i,te?t+=G*ce/te:o,a),te-=ce,b=I}return s}var _U=function n(r){function t(i,o,a,s,u){gU(r,i,o,a,s,u)}return t.ratio=function(i){return n((i=+i)>1?i:1)},t}(vU);function dX(){var n=_U,r=!1,t=1,i=1,o=[0],a=Fm,s=Fm,u=Fm,p=Fm,m=Fm;function b(F){return F.x0=F.y0=0,F.x1=t,F.y1=i,F.eachBefore(I),o=[0],r&&F.eachBefore(fU),F}function I(F){var G=o[F.depth],Y=F.x0+G,te=F.y0+G,ce=F.x1-G,xe=F.y1-G;ce<Y&&(Y=ce=(Y+ce)/2),xe<te&&(te=xe=(te+xe)/2),F.x0=Y,F.y0=te,F.x1=ce,F.y1=xe,F.children&&(G=o[F.depth+1]=a(F)/2,Y+=m(F)-G,te+=s(F)-G,(ce-=u(F)-G)<Y&&(Y=ce=(Y+ce)/2),(xe-=p(F)-G)<te&&(te=xe=(te+xe)/2),n(F,Y,te,ce,xe))}return b.round=function(F){return arguments.length?(r=!!F,b):r},b.size=function(F){return arguments.length?(t=+F[0],i=+F[1],b):[t,i]},b.tile=function(F){return arguments.length?(n=fA(F),b):n},b.padding=function(F){return arguments.length?b.paddingInner(F).paddingOuter(F):b.paddingInner()},b.paddingInner=function(F){return arguments.length?(a="function"==typeof F?F:I_(+F),b):a},b.paddingOuter=function(F){return arguments.length?b.paddingTop(F).paddingRight(F).paddingBottom(F).paddingLeft(F):b.paddingTop()},b.paddingTop=function(F){return arguments.length?(s="function"==typeof F?F:I_(+F),b):s},b.paddingRight=function(F){return arguments.length?(u="function"==typeof F?F:I_(+F),b):u},b.paddingBottom=function(F){return arguments.length?(p="function"==typeof F?F:I_(+F),b):p},b.paddingLeft=function(F){return arguments.length?(m="function"==typeof F?F:I_(+F),b):m},b}function pX(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 b(I,F,G,Y,te,ce,xe){if(I>=F-1){var lt=a[I];return lt.x0=Y,lt.y0=te,lt.x1=ce,void(lt.y1=xe)}for(var nt=m[I],it=G/2+nt,ht=I+1,Qe=F-1;ht<Qe;){var tt=ht+Qe>>>1;m[tt]<it?ht=tt+1:Qe=tt}it-m[ht-1]<m[ht]-it&&I+1<ht&&--ht;var Ot=m[ht]-nt,xt=G-Ot;if(ce-Y>xe-te){var hn=(Y*xt+ce*Ot)/G;b(I,ht,Ot,Y,te,hn,xe),b(ht,F,xt,hn,te,ce,xe)}else{var Jt=(te*xt+xe*Ot)/G;b(I,ht,Ot,Y,te,ce,Jt),b(ht,F,xt,Y,Jt,ce,xe)}}(0,u,n.value,r,t,i,o)}function fX(n,r,t,i,o){(1&n.depth?mA:F1)(n,r,t,i,o)}var hX=function n(r){function t(i,o,a,s,u){if((p=i._squarify)&&p.ratio===r)for(var p,m,b,I,G,F=-1,Y=p.length,te=i.value;++F<Y;){for(b=(m=p[F]).children,I=m.value=0,G=b.length;I<G;++I)m.value+=b[I].value;m.dice?F1(m,o,a,s,a+=(u-a)*m.value/te):mA(m,o,a,o+=(s-o)*m.value/te,u),te-=m.value}else i._squarify=p=gU(r,i,o,a,s,u),p.ratio=r}return t.ratio=function(i){return n((i=+i)>1?i:1)},t}(vU);function mX(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 vX(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 gX(n,r,t){return(r[0]-n[0])*(t[1]-n[1])-(r[1]-n[1])*(t[0]-n[0])}function _X(n,r){return n[0]-r[0]||n[1]-r[1]}function yU(n){for(var r=n.length,t=[0,1],i=2,o=2;o<r;++o){for(;i>1&&gX(n[t[i-2]],n[t[i-1]],n[o])<=0;)--i;t[i++]=o}return t.slice(0,i)}function yX(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(_X),r=0;r<t;++r)o[r]=[i[r][0],-i[r][1]];var a=yU(i),s=yU(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],b=!1,I=0;I<t;++I)p=(i=n[I])[0],(m=i[1])>a!=u>a&&o<(s-p)*(a-m)/(u-m)+p&&(b=!b),s=p,u=m;return b}function CX(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 R_(){return Math.random()}var SX=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}(R_),bU=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}(R_),TX=function n(r){function t(){var i=bU.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return t.source=n,t}(R_),CU=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}(R_),xX=function n(r){function t(i){var o=CU.source(r)(i);return function(){return o()/i}}return t.source=n,t}(R_),wX=function n(r){function t(i){return function(){return-Math.log(1-r())/i}}return t.source=n,t}(R_),SU=Array.prototype,S6=SU.map,Hf=SU.slice,T6={name:"implicit"};function x6(n){var r=Rf(),t=[],i=T6;function o(a){var s=a+"",u=r.get(s);if(!u){if(i!==T6)return i;r.set(s,u=t.push(a))}return n[(u-1)%n.length]}return n=null==n?[]:Hf.call(n),o.domain=function(a){if(!arguments.length)return t.slice();t=[],r=Rf();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=Hf.call(a),o):n.slice()},o.unknown=function(a){return arguments.length?(i=a,o):i},o.copy=function(){return x6().domain(t).range(n).unknown(i)},o}function w6(){var o,a,n=x6().unknown(void 0),r=n.domain,t=n.range,i=[0,1],s=!1,u=0,p=0,m=.5;function b(){var I=r().length,F=i[1]<i[0],G=i[F-0],Y=i[1-F];o=(Y-G)/Math.max(1,I-u+2*p),s&&(o=Math.floor(o)),G+=(Y-G-o*(I-u))*m,a=o*(1-u),s&&(G=Math.round(G),a=Math.round(a));var te=Ps(I).map(function(ce){return G+o*ce});return t(F?te.reverse():te)}return delete n.unknown,n.domain=function(I){return arguments.length?(r(I),b()):r()},n.range=function(I){return arguments.length?(i=[+I[0],+I[1]],b()):i.slice()},n.rangeRound=function(I){return i=[+I[0],+I[1]],s=!0,b()},n.bandwidth=function(){return a},n.step=function(){return o},n.round=function(I){return arguments.length?(s=!!I,b()):s},n.padding=function(I){return arguments.length?(u=p=Math.max(0,Math.min(1,I)),b()):u},n.paddingInner=function(I){return arguments.length?(u=Math.max(0,Math.min(1,I)),b()):u},n.paddingOuter=function(I){return arguments.length?(p=Math.max(0,Math.min(1,I)),b()):p},n.align=function(I){return arguments.length?(m=Math.max(0,Math.min(1,I)),b()):m},n.copy=function(){return w6().domain(r()).range(i).round(s).paddingInner(u).paddingOuter(p).align(m)},b()}function TU(n){var r=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return TU(r())},n}function kX(){return TU(w6().paddingInner(1))}function k6(n){return function(){return n}}function xU(n){return+n}var wU=[0,1];function E6(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:k6(r)}function AX(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 DX(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=Sf(n,p,1,o)-1;return s[m](a[m](p))}}function vA(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp())}function gA(n,r){var s,u,p,t=wU,i=wU,o=Pf,a=!1;function m(){return s=Math.min(t.length,i.length)>2?DX:AX,u=p=null,b}function b(I){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)))(+I)}return b.invert=function(I){return(p||(p=s(i,t,E6,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)))(+I)},b.domain=function(I){return arguments.length?(t=S6.call(I,xU),m()):t.slice()},b.range=function(I){return arguments.length?(i=Hf.call(I),m()):i.slice()},b.rangeRound=function(I){return i=Hf.call(I),o=eM,m()},b.clamp=function(I){return arguments.length?(a=!!I,m()):a},b.interpolate=function(I){return arguments.length?(o=I,m()):o},m()}function B1(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=jc(i,o,null==r?10:r);switch((t=C1(null==t?",f":t)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(o));return null==t.precision&&!isNaN(s=F8(a,u))&&(t.precision=s),kN(t,u);case"":case"e":case"g":case"p":case"r":null==t.precision&&!isNaN(s=B8(a,Math.max(Math.abs(i),Math.abs(o))))&&(t.precision=s-("e"===t.type));break;case"f":case"%":null==t.precision&&!isNaN(s=L8(a))&&(t.precision=s-2*("%"===t.type))}return MM(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=xf(s,u,t))>0?p=xf(s=Math.floor(s/p)*p,u=Math.ceil(u/p)*p,t):p<0&&(p=xf(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 kU(){var n=gA(E6,zo);return n.copy=function(){return vA(n,kU())},B1(n)}function EU(){var n=[0,1];function r(t){return+t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(n=S6.call(t,xU),r):n.slice()},r.copy=function(){return EU().domain(n)},B1(r)}function MU(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 PX(n,r){return(r=Math.log(r/n))?function(t){return Math.log(t/n)/r}:k6(r)}function IX(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 RX(n){return isFinite(n)?+("1e"+n):n<0?0:n}function AU(n){return 10===n?RX:n===Math.E?Math.exp:function(r){return Math.pow(n,r)}}function DU(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 OU(n){return function(r){return-n(-r)}}function PU(){var n=gA(PX,IX).domain([1,10]),r=n.domain,t=10,i=DU(10),o=AU(10);function a(){return i=DU(t),o=AU(t),r()[0]<0&&(i=OU(i),o=OU(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 b,u=r(),p=u[0],m=u[u.length-1];(b=m<p)&&(I=p,p=m,m=I);var G,Y,te,I=i(p),F=i(m),ce=null==s?10:+s,xe=[];if(!(t%1)&&F-I<ce){if(I=Math.round(I)-1,F=Math.round(F)+1,p>0){for(;I<F;++I)for(Y=1,G=o(I);Y<t;++Y)if(!((te=G*Y)<p)){if(te>m)break;xe.push(te)}}else for(;I<F;++I)for(Y=t-1,G=o(I);Y>=1;--Y)if(!((te=G*Y)<p)){if(te>m)break;xe.push(te)}}else xe=pm(I,F,Math.min(F-I,ce)).map(o);return b?xe.reverse():xe},n.tickFormat=function(s,u){if(null==u&&(u=10===t?".0e":","),"function"!=typeof u&&(u=MM(u)),s===1/0)return u;null==s&&(s=10);var p=Math.max(1,t*s/n.ticks().length);return function(m){var b=m/o(Math.round(i(m)));return b*t<t-.5&&(b*=t),b<=p?u(m):""}},n.nice=function(){return r(MU(r(),{floor:function(u){return o(Math.floor(i(u)))},ceil:function(u){return o(Math.ceil(i(u)))}}))},n.copy=function(){return vA(n,PU().base(t))},n}function N_(n,r){return n<0?-Math.pow(-n,r):Math.pow(n,r)}function M6(){var n=1,r=gA(function(a,s){return(s=N_(s,n)-(a=N_(a,n)))?function(u){return(N_(u,n)-a)/s}:k6(s)},function(a,s){return s=N_(s,n)-(a=N_(a,n)),function(u){return N_(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 vA(r,M6().exponent(n))},B1(r)}function NX(){return M6().exponent(.5)}function IU(){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]=wf(n,a/s);return o}function o(a){if(!isNaN(a=+a))return r[Sf(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(Cf),i()},o.range=function(a){return arguments.length?(r=Hf.call(a),i()):r.slice()},o.quantiles=function(){return t.slice()},o.copy=function(){return IU().domain(n).range(r)},o}function RU(){var n=0,r=1,t=1,i=[.5],o=[0,1];function a(u){if(u<=u)return o[Sf(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=Hf.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 RU().domain([n,r]).range(o)},B1(a)}function NU(){var n=[.5],r=[0,1],t=1;function i(o){if(o<=o)return r[Sf(n,o,0,t)]}return i.domain=function(o){return arguments.length?(n=Hf.call(o),t=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(o){return arguments.length?(r=Hf.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 NU().domain(n).range(r)},i}var A6=new Date,D6=new Date;function xa(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 xa(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 A6.setTime(+a),D6.setTime(+s),n(A6),n(D6),Math.floor(t(A6,D6))},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 _A=xa(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});_A.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?xa(function(r){r.setTime(Math.floor(r/n)*n)},function(r,t){r.setTime(+r+t*n)},function(r,t){return(t-r)/n}):_A:null};var yA=_A,ZU=_A.range,Bm=6e4,CA=36e5,FU=6048e5,BU=xa(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()}),SA=BU,UU=BU.range,HU=xa(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*Bm)},function(n,r){return(r-n)/Bm},function(n){return n.getMinutes()}),VU=HU,ZX=HU.range,qU=xa(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*Bm)},function(n,r){n.setTime(+n+r*CA)},function(n,r){return(r-n)/CA},function(n){return n.getHours()}),jU=qU,LX=qU.range,zU=xa(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())*Bm)/864e5},function(n){return n.getDate()-1}),TA=zU,FX=zU.range;function Um(n){return xa(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())*Bm)/FU})}var U1=Um(0),H1=Um(1),WU=Um(2),GU=Um(3),V1=Um(4),YU=Um(5),JU=Um(6),QU=U1.range,BX=H1.range,UX=WU.range,HX=GU.range,VX=V1.range,qX=YU.range,jX=JU.range,KU=xa(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()}),XU=KU,zX=KU.range,O6=xa(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()});O6.every=function(n){return isFinite(n=Math.floor(n))&&n>0?xa(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 Hm=O6,WX=O6.range,$U=xa(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Bm)},function(n,r){return(r-n)/Bm},function(n){return n.getUTCMinutes()}),e9=$U,GX=$U.range,t9=xa(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*CA)},function(n,r){return(r-n)/CA},function(n){return n.getUTCHours()}),n9=t9,YX=t9.range,r9=xa(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}),xA=r9,JX=r9.range;function Vm(n){return xa(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)/FU})}var q1=Vm(0),j1=Vm(1),i9=Vm(2),o9=Vm(3),z1=Vm(4),a9=Vm(5),s9=Vm(6),l9=q1.range,QX=j1.range,KX=i9.range,XX=o9.range,$X=z1.range,e$=a9.range,t$=s9.range,u9=xa(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()}),c9=u9,n$=u9.range,P6=xa(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()});P6.every=function(n){return isFinite(n=Math.floor(n))&&n>0?xa(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 qm=P6,r$=P6.range;function i$(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 wA(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 W1(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function d9(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=G1(o),b=Y1(o),I=G1(a),F=Y1(a),G=G1(s),Y=Y1(s),te=G1(u),ce=Y1(u),xe=G1(p),lt=Y1(p),nt={a:function(br){return s[br.getDay()]},A:function(br){return a[br.getDay()]},b:function(br){return p[br.getMonth()]},B:function(br){return u[br.getMonth()]},c:null,d:m9,e:m9,f:M$,H:w$,I:k$,j:E$,L:v9,m:A$,M:D$,p:function(br){return o[+(br.getHours()>=12)]},Q:b9,s:C9,S:O$,u:P$,U:I$,V:R$,w:N$,W:Z$,x:null,X:null,y:L$,Y:F$,Z:B$,"%":y9},it={a:function(br){return s[br.getUTCDay()]},A:function(br){return a[br.getUTCDay()]},b:function(br){return p[br.getUTCMonth()]},B:function(br){return u[br.getUTCMonth()]},c:null,d:g9,e:g9,f:q$,H:U$,I:H$,j:V$,L:_9,m:j$,M:z$,p:function(br){return o[+(br.getUTCHours()>=12)]},Q:b9,s:C9,S:W$,u:G$,U:Y$,V:J$,w:Q$,W:K$,x:null,X:null,y:X$,Y:$$,Z:eee,"%":y9},ht={a:function(br,gr,dr){var jn=G.exec(gr.slice(dr));return jn?(br.w=Y[jn[0].toLowerCase()],dr+jn[0].length):-1},A:function(br,gr,dr){var jn=I.exec(gr.slice(dr));return jn?(br.w=F[jn[0].toLowerCase()],dr+jn[0].length):-1},b:function(br,gr,dr){var jn=xe.exec(gr.slice(dr));return jn?(br.m=lt[jn[0].toLowerCase()],dr+jn[0].length):-1},B:function(br,gr,dr){var jn=te.exec(gr.slice(dr));return jn?(br.m=ce[jn[0].toLowerCase()],dr+jn[0].length):-1},c:function(br,gr,dr){return Ot(br,r,gr,dr)},d:f9,e:f9,f:C$,H:h9,I:h9,j:g$,L:b$,m:v$,M:_$,p:function(br,gr,dr){var jn=m.exec(gr.slice(dr));return jn?(br.p=b[jn[0].toLowerCase()],dr+jn[0].length):-1},Q:T$,s:x$,S:y$,u:u$,U:c$,V:d$,w:l$,W:p$,x:function(br,gr,dr){return Ot(br,t,gr,dr)},X:function(br,gr,dr){return Ot(br,i,gr,dr)},y:h$,Y:f$,Z:m$,"%":S$};function Qe(br,gr){return function(dr){var ts,dl,oc,jn=[],Lo=-1,xi=0,Di=br.length;for(dr instanceof Date||(dr=new Date(+dr));++Lo<Di;)37===br.charCodeAt(Lo)&&(jn.push(br.slice(xi,Lo)),null!=(dl=p9[ts=br.charAt(++Lo)])?ts=br.charAt(++Lo):dl="e"===ts?" ":"0",(oc=gr[ts])&&(ts=oc(dr,dl)),jn.push(ts),xi=Lo+1);return jn.push(br.slice(xi,Lo)),jn.join("")}}function tt(br,gr){return function(dr){var xi,Di,jn=W1(1900);if(Ot(jn,br,dr+="",0)!=dr.length)return null;if("Q"in jn)return new Date(jn.Q);if("p"in jn&&(jn.H=jn.H%12+12*jn.p),"V"in jn){if(jn.V<1||jn.V>53)return null;"w"in jn||(jn.w=1),"Z"in jn?(Di=(xi=wA(W1(jn.y))).getUTCDay(),xi=Di>4||0===Di?j1.ceil(xi):j1(xi),xi=xA.offset(xi,7*(jn.V-1)),jn.y=xi.getUTCFullYear(),jn.m=xi.getUTCMonth(),jn.d=xi.getUTCDate()+(jn.w+6)%7):(Di=(xi=gr(W1(jn.y))).getDay(),xi=Di>4||0===Di?H1.ceil(xi):H1(xi),xi=TA.offset(xi,7*(jn.V-1)),jn.y=xi.getFullYear(),jn.m=xi.getMonth(),jn.d=xi.getDate()+(jn.w+6)%7)}else("W"in jn||"U"in jn)&&("w"in jn||(jn.w="u"in jn?jn.u%7:"W"in jn?1:0),Di="Z"in jn?wA(W1(jn.y)).getUTCDay():gr(W1(jn.y)).getDay(),jn.m=0,jn.d="W"in jn?(jn.w+6)%7+7*jn.W-(Di+5)%7:jn.w+7*jn.U-(Di+6)%7);return"Z"in jn?(jn.H+=jn.Z/100|0,jn.M+=jn.Z%100,wA(jn)):gr(jn)}}function Ot(br,gr,dr,jn){for(var ts,dl,Lo=0,xi=gr.length,Di=dr.length;Lo<xi;){if(jn>=Di)return-1;if(37===(ts=gr.charCodeAt(Lo++))){if(ts=gr.charAt(Lo++),!(dl=ht[ts in p9?gr.charAt(Lo++):ts])||(jn=dl(br,dr,jn))<0)return-1}else if(ts!=dr.charCodeAt(jn++))return-1}return jn}return nt.x=Qe(t,nt),nt.X=Qe(i,nt),nt.c=Qe(r,nt),it.x=Qe(t,it),it.X=Qe(i,it),it.c=Qe(r,it),{format:function(gr){var dr=Qe(gr+="",nt);return dr.toString=function(){return gr},dr},parse:function(gr){var dr=tt(gr+="",i$);return dr.toString=function(){return gr},dr},utcFormat:function(gr){var dr=Qe(gr+="",it);return dr.toString=function(){return gr},dr},utcParse:function(gr){var dr=tt(gr,wA);return dr.toString=function(){return gr},dr}}}var Z_,I6,S9,kA,R6,p9={"-":"",_:" ",0:"0"},Ka=/^\s*\d+/,o$=/^%/,a$=/[\\^$*+?|[\]().{}]/g;function $i(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 s$(n){return n.replace(a$,"\\$&")}function G1(n){return new RegExp("^(?:"+n.map(s$).join("|")+")","i")}function Y1(n){for(var r={},t=-1,i=n.length;++t<i;)r[n[t].toLowerCase()]=t;return r}function l$(n,r,t){var i=Ka.exec(r.slice(t,t+1));return i?(n.w=+i[0],t+i[0].length):-1}function u$(n,r,t){var i=Ka.exec(r.slice(t,t+1));return i?(n.u=+i[0],t+i[0].length):-1}function c$(n,r,t){var i=Ka.exec(r.slice(t,t+2));return i?(n.U=+i[0],t+i[0].length):-1}function d$(n,r,t){var i=Ka.exec(r.slice(t,t+2));return i?(n.V=+i[0],t+i[0].length):-1}function p$(n,r,t){var i=Ka.exec(r.slice(t,t+2));return i?(n.W=+i[0],t+i[0].length):-1}function f$(n,r,t){var i=Ka.exec(r.slice(t,t+4));return i?(n.y=+i[0],t+i[0].length):-1}function h$(n,r,t){var i=Ka.exec(r.slice(t,t+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),t+i[0].length):-1}function m$(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 v$(n,r,t){var i=Ka.exec(r.slice(t,t+2));return i?(n.m=i[0]-1,t+i[0].length):-1}function f9(n,r,t){var i=Ka.exec(r.slice(t,t+2));return i?(n.d=+i[0],t+i[0].length):-1}function g$(n,r,t){var i=Ka.exec(r.slice(t,t+3));return i?(n.m=0,n.d=+i[0],t+i[0].length):-1}function h9(n,r,t){var i=Ka.exec(r.slice(t,t+2));return i?(n.H=+i[0],t+i[0].length):-1}function _$(n,r,t){var i=Ka.exec(r.slice(t,t+2));return i?(n.M=+i[0],t+i[0].length):-1}function y$(n,r,t){var i=Ka.exec(r.slice(t,t+2));return i?(n.S=+i[0],t+i[0].length):-1}function b$(n,r,t){var i=Ka.exec(r.slice(t,t+3));return i?(n.L=+i[0],t+i[0].length):-1}function C$(n,r,t){var i=Ka.exec(r.slice(t,t+6));return i?(n.L=Math.floor(i[0]/1e3),t+i[0].length):-1}function S$(n,r,t){var i=o$.exec(r.slice(t,t+1));return i?t+i[0].length:-1}function T$(n,r,t){var i=Ka.exec(r.slice(t));return i?(n.Q=+i[0],t+i[0].length):-1}function x$(n,r,t){var i=Ka.exec(r.slice(t));return i?(n.Q=1e3*+i[0],t+i[0].length):-1}function m9(n,r){return $i(n.getDate(),r,2)}function w$(n,r){return $i(n.getHours(),r,2)}function k$(n,r){return $i(n.getHours()%12||12,r,2)}function E$(n,r){return $i(1+TA.count(Hm(n),n),r,3)}function v9(n,r){return $i(n.getMilliseconds(),r,3)}function M$(n,r){return v9(n,r)+"000"}function A$(n,r){return $i(n.getMonth()+1,r,2)}function D$(n,r){return $i(n.getMinutes(),r,2)}function O$(n,r){return $i(n.getSeconds(),r,2)}function P$(n){var r=n.getDay();return 0===r?7:r}function I$(n,r){return $i(U1.count(Hm(n),n),r,2)}function R$(n,r){var t=n.getDay();return n=t>=4||0===t?V1(n):V1.ceil(n),$i(V1.count(Hm(n),n)+(4===Hm(n).getDay()),r,2)}function N$(n){return n.getDay()}function Z$(n,r){return $i(H1.count(Hm(n),n),r,2)}function L$(n,r){return $i(n.getFullYear()%100,r,2)}function F$(n,r){return $i(n.getFullYear()%1e4,r,4)}function B$(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+$i(r/60|0,"0",2)+$i(r%60,"0",2)}function g9(n,r){return $i(n.getUTCDate(),r,2)}function U$(n,r){return $i(n.getUTCHours(),r,2)}function H$(n,r){return $i(n.getUTCHours()%12||12,r,2)}function V$(n,r){return $i(1+xA.count(qm(n),n),r,3)}function _9(n,r){return $i(n.getUTCMilliseconds(),r,3)}function q$(n,r){return _9(n,r)+"000"}function j$(n,r){return $i(n.getUTCMonth()+1,r,2)}function z$(n,r){return $i(n.getUTCMinutes(),r,2)}function W$(n,r){return $i(n.getUTCSeconds(),r,2)}function G$(n){var r=n.getUTCDay();return 0===r?7:r}function Y$(n,r){return $i(q1.count(qm(n),n),r,2)}function J$(n,r){var t=n.getUTCDay();return n=t>=4||0===t?z1(n):z1.ceil(n),$i(z1.count(qm(n),n)+(4===qm(n).getUTCDay()),r,2)}function Q$(n){return n.getUTCDay()}function K$(n,r){return $i(j1.count(qm(n),n),r,2)}function X$(n,r){return $i(n.getUTCFullYear()%100,r,2)}function $$(n,r){return $i(n.getUTCFullYear()%1e4,r,4)}function eee(){return"+0000"}function y9(){return"%"}function b9(n){return+n}function C9(n){return Math.floor(+n/1e3)}function T9(n){return Z_=d9(n),I6=Z_.format,S9=Z_.parse,kA=Z_.utcFormat,R6=Z_.utcParse,Z_}T9({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 x9="%Y-%m-%dT%H:%M:%S.%LZ",ree=Date.prototype.toISOString?function(n){return n.toISOString()}:kA(x9),aee=+new Date("2000-01-01T00:00:00.000Z")?function(n){var r=new Date(n);return isNaN(r)?null:r}:R6(x9),Q1=6e4,K1=60*Q1,X1=24*K1,w9=30*X1,N6=365*X1;function lee(n){return new Date(n)}function uee(n){return n instanceof Date?+n:+new Date(+n)}function Z6(n,r,t,i,o,a,s,u,p){var m=gA(E6,zo),b=m.invert,I=m.domain,F=p(".%L"),G=p(":%S"),Y=p("%I:%M"),te=p("%I %p"),ce=p("%a %d"),xe=p("%b %d"),lt=p("%B"),nt=p("%Y"),it=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,Q1],[a,5,5*Q1],[a,15,15*Q1],[a,30,30*Q1],[o,1,K1],[o,3,3*K1],[o,6,6*K1],[o,12,12*K1],[i,1,X1],[i,2,2*X1],[t,1,6048e5],[r,1,w9],[r,3,3*w9],[n,1,N6]];function ht(tt){return(s(tt)<tt?F:a(tt)<tt?G:o(tt)<tt?Y:i(tt)<tt?te:r(tt)<tt?t(tt)<tt?ce:xe:n(tt)<tt?lt:nt)(tt)}function Qe(tt,Ot,xt,hn){if(null==tt&&(tt=10),"number"==typeof tt){var Jt=Math.abs(xt-Ot)/tt,st=vE(function(Dt){return Dt[2]}).right(it,Jt);st===it.length?(hn=jc(Ot/N6,xt/N6,tt),tt=n):st?(hn=(st=it[Jt/it[st-1][2]<it[st][2]/Jt?st-1:st])[1],tt=st[0]):(hn=Math.max(jc(Ot,xt,tt),1),tt=u)}return null==hn?tt:tt.every(hn)}return m.invert=function(tt){return new Date(b(tt))},m.domain=function(tt){return arguments.length?I(S6.call(tt,uee)):I().map(lee)},m.ticks=function(tt,Ot){var Dt,xt=I(),hn=xt[0],Jt=xt[xt.length-1],st=Jt<hn;return st&&(Dt=hn,hn=Jt,Jt=Dt),Dt=(Dt=Qe(tt,hn,Jt,Ot))?Dt.range(hn,Jt+1):[],st?Dt.reverse():Dt},m.tickFormat=function(tt,Ot){return null==Ot?ht:p(Ot)},m.nice=function(tt,Ot){var xt=I();return(tt=Qe(tt,xt[0],xt[xt.length-1],Ot))?I(MU(xt,tt)):m},m.copy=function(){return vA(m,Z6(n,r,t,i,o,a,s,u,p))},m}function cee(){return Z6(Hm,XU,U1,TA,jU,VU,SA,yA,I6).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function dee(){return Z6(qm,c9,q1,xA,n9,e9,SA,yA,kA).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function k9(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 k9(n).domain([r,t]).clamp(i)},B1(o)}function oi(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 pee=oi("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),fee=oi("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),hee=oi("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),mee=oi("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),vee=oi("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),gee=oi("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),_ee=oi("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),yee=oi("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),bee=oi("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function oo(n){return io(n[n.length-1])}var E9=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(oi),Cee=oo(E9),M9=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(oi),See=oo(M9),A9=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(oi),Tee=oo(A9),D9=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(oi),xee=oo(D9),O9=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(oi),wee=oo(O9),P9=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(oi),kee=oo(P9),I9=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(oi),Eee=oo(I9),R9=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(oi),Mee=oo(R9),N9=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(oi),Aee=oo(N9),Z9=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(oi),Dee=oo(Z9),L9=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(oi),Oee=oo(L9),F9=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(oi),Pee=oo(F9),B9=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(oi),Iee=oo(B9),U9=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(oi),Ree=oo(U9),H9=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(oi),Nee=oo(H9),V9=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(oi),Zee=oo(V9),q9=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(oi),Lee=oo(q9),j9=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(oi),Fee=oo(j9),z9=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(oi),Bee=oo(z9),W9=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(oi),Uee=oo(W9),G9=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(oi),Hee=oo(G9),Y9=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(oi),Vee=oo(Y9),J9=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(oi),qee=oo(J9),Q9=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(oi),jee=oo(Q9),K9=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(oi),zee=oo(K9),X9=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(oi),Wee=oo(X9),$9=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(oi),Gee=oo($9),Yee=aM(ke(300,.5,0),ke(-240,.5,1)),Jee=aM(ke(-100,.75,.35),ke(80,1.5,.8)),Qee=aM(ke(260,.75,.35),ke(80,1.5,.8)),EA=ke();function Kee(n){(n<0||n>1)&&(n-=Math.floor(n));var r=Math.abs(n-.5);return EA.h=360*n-100,EA.s=1.5-1.5*r,EA.l=.8-.9*r,EA+""}function MA(n){var r=n.length;return function(t){return n[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var Xee=MA(oi("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),$ee=MA(oi("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ete=MA(oi("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),tte=MA(oi("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function nte(n,r){return n.each(function(){var t=r.apply(this,arguments),i=ei(this);for(var o in t)i.attr(o,t[o])})}function rte(n,r){for(var t in r)n.attr(t,r[t]);return n}function ote(n,r,t){return n.each(function(){var i=r.apply(this,arguments),o=ei(this);for(var a in i)o.style(a,i[a],t)})}function ate(n,r,t){for(var i in r)n.style(i,r[i],t);return n}function lte(n,r){return n.each(function(){var t=r.apply(this,arguments),i=ei(this);for(var o in t)i.property(o,t[o])})}function ute(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=ei(this).transition(n);for(var o in t)i.attr(o,t[o])})}function pte(n,r){for(var t in r)n.attr(t,r[t]);return n}function hte(n,r,t){return n.each(function(){var i=r.apply(this,arguments),o=ei(this).transition(n);for(var a in i)o.style(a,i[a],t)})}function mte(n,r,t){for(var i in r)n.style(i,r[i],t);return n}function pi(n){return function(){return n}}Is.prototype.attrs=function(n){return("function"==typeof n?nte:rte)(this,n)},Is.prototype.styles=function(n,r){return("function"==typeof n?ote:ate)(this,n,null==r?"":r)},Is.prototype.properties=function(n){return("function"==typeof n?lte:ute)(this,n)},hM.prototype.attrs=function(n){return("function"==typeof n?dte:pte)(this,n)},hM.prototype.styles=function(n,r){return("function"==typeof n?hte:mte)(this,n,null==r?"":r)};var eH=Math.abs,ls=Math.atan2,jm=Math.cos,gte=Math.max,L6=Math.min,td=Math.sin,L_=Math.sqrt,Xa=1e-12,zm=Math.PI,AA=zm/2,up=2*zm;function _te(n){return n>1?0:n<-1?zm:Math.acos(n)}function tH(n){return n>=1?AA:n<=-1?-AA:Math.asin(n)}function yte(n){return n.innerRadius}function bte(n){return n.outerRadius}function Cte(n){return n.startAngle}function Ste(n){return n.endAngle}function Tte(n){return n&&n.padAngle}function xte(n,r,t,i,o,a,s,u){var p=t-n,m=i-r,b=s-o,I=u-a,F=I*p-b*m;if(!(F*F<Xa))return[n+(F=(b*(r-a)-I*(n-o))/F)*p,r+F*m]}function DA(n,r,t,i,o,a,s){var u=n-t,p=r-i,m=(s?a:-a)/L_(u*u+p*p),b=m*p,I=-m*u,F=n+b,G=r+I,Y=t+b,te=i+I,ce=(F+Y)/2,xe=(G+te)/2,lt=Y-F,nt=te-G,it=lt*lt+nt*nt,ht=o-a,Qe=F*te-Y*G,tt=(nt<0?-1:1)*L_(gte(0,ht*ht*it-Qe*Qe)),Ot=(Qe*nt-lt*tt)/it,xt=(-Qe*lt-nt*tt)/it,hn=(Qe*nt+lt*tt)/it,Jt=(-Qe*lt+nt*tt)/it,st=Ot-ce,Dt=xt-xe,gn=hn-ce,fn=Jt-xe;return st*st+Dt*Dt>gn*gn+fn*fn&&(Ot=hn,xt=Jt),{cx:Ot,cy:xt,x01:-b,y01:-I,x11:Ot*(o/ht-1),y11:xt*(o/ht-1)}}function wte(){var n=yte,r=bte,t=pi(0),i=null,o=Cte,a=Ste,s=Tte,u=null;function p(){var m,b,I=+n.apply(this,arguments),F=+r.apply(this,arguments),G=o.apply(this,arguments)-AA,Y=a.apply(this,arguments)-AA,te=eH(Y-G),ce=Y>G;if(u||(u=m=zu()),F<I&&(b=F,F=I,I=b),F>Xa)if(te>up-Xa)u.moveTo(F*jm(G),F*td(G)),u.arc(0,0,F,G,Y,!ce),I>Xa&&(u.moveTo(I*jm(Y),I*td(Y)),u.arc(0,0,I,Y,G,ce));else{var st,Dt,xe=G,lt=Y,nt=G,it=Y,ht=te,Qe=te,tt=s.apply(this,arguments)/2,Ot=tt>Xa&&(i?+i.apply(this,arguments):L_(I*I+F*F)),xt=L6(eH(F-I)/2,+t.apply(this,arguments)),hn=xt,Jt=xt;if(Ot>Xa){var gn=tH(Ot/I*td(tt)),fn=tH(Ot/F*td(tt));(ht-=2*gn)>Xa?(nt+=gn*=ce?1:-1,it-=gn):(ht=0,nt=it=(G+Y)/2),(Qe-=2*fn)>Xa?(xe+=fn*=ce?1:-1,lt-=fn):(Qe=0,xe=lt=(G+Y)/2)}var kn=F*jm(xe),Ln=F*td(xe),or=I*jm(it),Sr=I*td(it);if(xt>Xa){var Tr,Yr=F*jm(lt),cr=F*td(lt),$r=I*jm(nt),li=I*td(nt);if(te<=up-Xa&&(Tr=xte(kn,Ln,$r,li,Yr,cr,or,Sr))){var Pi=kn-Tr[0],Eo=Ln-Tr[1],br=Yr-Tr[0],gr=cr-Tr[1],dr=1/td(_te((Pi*br+Eo*gr)/(L_(Pi*Pi+Eo*Eo)*L_(br*br+gr*gr)))/2),jn=L_(Tr[0]*Tr[0]+Tr[1]*Tr[1]);hn=L6(xt,(I-jn)/(dr-1)),Jt=L6(xt,(F-jn)/(dr+1))}}Qe>Xa?Jt>Xa?(st=DA($r,li,kn,Ln,F,Jt,ce),Dt=DA(Yr,cr,or,Sr,F,Jt,ce),u.moveTo(st.cx+st.x01,st.cy+st.y01),Jt<xt?u.arc(st.cx,st.cy,Jt,ls(st.y01,st.x01),ls(Dt.y01,Dt.x01),!ce):(u.arc(st.cx,st.cy,Jt,ls(st.y01,st.x01),ls(st.y11,st.x11),!ce),u.arc(0,0,F,ls(st.cy+st.y11,st.cx+st.x11),ls(Dt.cy+Dt.y11,Dt.cx+Dt.x11),!ce),u.arc(Dt.cx,Dt.cy,Jt,ls(Dt.y11,Dt.x11),ls(Dt.y01,Dt.x01),!ce))):(u.moveTo(kn,Ln),u.arc(0,0,F,xe,lt,!ce)):u.moveTo(kn,Ln),I>Xa&&ht>Xa?hn>Xa?(st=DA(or,Sr,Yr,cr,I,-hn,ce),Dt=DA(kn,Ln,$r,li,I,-hn,ce),u.lineTo(st.cx+st.x01,st.cy+st.y01),hn<xt?u.arc(st.cx,st.cy,hn,ls(st.y01,st.x01),ls(Dt.y01,Dt.x01),!ce):(u.arc(st.cx,st.cy,hn,ls(st.y01,st.x01),ls(st.y11,st.x11),!ce),u.arc(0,0,I,ls(st.cy+st.y11,st.cx+st.x11),ls(Dt.cy+Dt.y11,Dt.cx+Dt.x11),ce),u.arc(Dt.cx,Dt.cy,hn,ls(Dt.y11,Dt.x11),ls(Dt.y01,Dt.x01),!ce))):u.arc(0,0,I,it,nt,ce):u.lineTo(or,Sr)}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,b=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-zm/2;return[jm(b)*m,td(b)*m]},p.innerRadius=function(m){return arguments.length?(n="function"==typeof m?m:pi(+m),p):n},p.outerRadius=function(m){return arguments.length?(r="function"==typeof m?m:pi(+m),p):r},p.cornerRadius=function(m){return arguments.length?(t="function"==typeof m?m:pi(+m),p):t},p.padRadius=function(m){return arguments.length?(i=null==m?null:"function"==typeof m?m:pi(+m),p):i},p.startAngle=function(m){return arguments.length?(o="function"==typeof m?m:pi(+m),p):o},p.endAngle=function(m){return arguments.length?(a="function"==typeof m?m:pi(+m),p):a},p.padAngle=function(m){return arguments.length?(s="function"==typeof m?m:pi(+m),p):s},p.context=function(m){return arguments.length?(u=null==m?null:m,p):u},p}function nH(n){this._context=n}function OA(n){return new nH(n)}function F6(n){return n[0]}function B6(n){return n[1]}function PA(){var n=F6,r=B6,t=pi(!0),i=null,o=OA,a=null;function s(u){var p,b,F,m=u.length,I=!1;for(null==i&&(a=o(F=zu())),p=0;p<=m;++p)!(p<m&&t(b=u[p],p,u))===I&&((I=!I)?a.lineStart():a.lineEnd()),I&&a.point(+n(b,p,u),+r(b,p,u));if(F)return a=null,F+""||null}return s.x=function(u){return arguments.length?(n="function"==typeof u?u:pi(+u),s):n},s.y=function(u){return arguments.length?(r="function"==typeof u?u:pi(+u),s):r},s.defined=function(u){return arguments.length?(t="function"==typeof u?u:pi(!!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 rH(){var n=F6,r=null,t=pi(0),i=B6,o=pi(!0),a=null,s=OA,u=null;function p(b){var I,F,G,te,xe,Y=b.length,ce=!1,lt=new Array(Y),nt=new Array(Y);for(null==a&&(u=s(xe=zu())),I=0;I<=Y;++I){if(!(I<Y&&o(te=b[I],I,b))===ce)if(ce=!ce)F=I,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),G=I-1;G>=F;--G)u.point(lt[G],nt[G]);u.lineEnd(),u.areaEnd()}ce&&(lt[I]=+n(te,I,b),nt[I]=+t(te,I,b),u.point(r?+r(te,I,b):lt[I],i?+i(te,I,b):nt[I]))}if(xe)return u=null,xe+""||null}function m(){return PA().defined(o).curve(s).context(a)}return p.x=function(b){return arguments.length?(n="function"==typeof b?b:pi(+b),r=null,p):n},p.x0=function(b){return arguments.length?(n="function"==typeof b?b:pi(+b),p):n},p.x1=function(b){return arguments.length?(r=null==b?null:"function"==typeof b?b:pi(+b),p):r},p.y=function(b){return arguments.length?(t="function"==typeof b?b:pi(+b),i=null,p):t},p.y0=function(b){return arguments.length?(t="function"==typeof b?b:pi(+b),p):t},p.y1=function(b){return arguments.length?(i=null==b?null:"function"==typeof b?b:pi(+b),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(b){return arguments.length?(o="function"==typeof b?b:pi(!!b),p):o},p.curve=function(b){return arguments.length?(s=b,null!=a&&(u=s(a)),p):s},p.context=function(b){return arguments.length?(null==b?a=u=null:u=s(a=b),p):a},p}function kte(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function Ete(n){return n}function Mte(){var n=Ete,r=kte,t=null,i=pi(0),o=pi(up),a=pi(0);function s(u){var p,b,I,xe,it,m=u.length,F=0,G=new Array(m),Y=new Array(m),te=+i.apply(this,arguments),ce=Math.min(up,Math.max(-up,o.apply(this,arguments)-te)),lt=Math.min(Math.abs(ce)/m,a.apply(this,arguments)),nt=lt*(ce<0?-1:1);for(p=0;p<m;++p)(it=Y[G[p]=p]=+n(u[p],p,u))>0&&(F+=it);for(null!=r?G.sort(function(ht,Qe){return r(Y[ht],Y[Qe])}):null!=t&&G.sort(function(ht,Qe){return t(u[ht],u[Qe])}),p=0,I=F?(ce-m*nt)/F:0;p<m;++p,te=xe)Y[b=G[p]]={data:u[b],index:p,value:it=Y[b],startAngle:te,endAngle:xe=te+(it>0?it*I:0)+nt,padAngle:lt};return Y}return s.value=function(u){return arguments.length?(n="function"==typeof u?u:pi(+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:pi(+u),s):i},s.endAngle=function(u){return arguments.length?(o="function"==typeof u?u:pi(+u),s):o},s.padAngle=function(u){return arguments.length?(a="function"==typeof u?u:pi(+u),s):a},s}nH.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 iH=U6(OA);function oH(n){this._curve=n}function U6(n){function r(t){return new oH(n(t))}return r._curve=n,r}function $1(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(U6(t)):r()._curve},n}function aH(){return $1(PA().curve(iH))}function sH(){var n=rH().curve(iH),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 $1(t())},delete n.lineX0,n.lineEndAngle=function(){return $1(i())},delete n.lineX1,n.lineInnerRadius=function(){return $1(o())},delete n.lineY0,n.lineOuterRadius=function(){return $1(a())},delete n.lineY1,n.curve=function(s){return arguments.length?r(U6(s)):r()._curve},n}function eS(n,r){return[(r=+r)*Math.cos(n-=Math.PI/2),r*Math.sin(n)]}oH.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 H6=Array.prototype.slice;function Ate(n){return n.source}function Dte(n){return n.target}function V6(n){var r=Ate,t=Dte,i=F6,o=B6,a=null;function s(){var u,p=H6.call(arguments),m=r.apply(this,p),b=t.apply(this,p);if(a||(a=u=zu()),n(a,+i.apply(this,(p[0]=m,p)),+o.apply(this,p),+i.apply(this,(p[0]=b,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:pi(+u),s):i},s.y=function(u){return arguments.length?(o="function"==typeof u?u:pi(+u),s):o},s.context=function(u){return arguments.length?(a=null==u?null:u,s):a},s}function Ote(n,r,t,i,o){n.moveTo(r,t),n.bezierCurveTo(r=(r+i)/2,t,r,o,i,o)}function Pte(n,r,t,i,o){n.moveTo(r,t),n.bezierCurveTo(r,t=(t+o)/2,i,t,i,o)}function Ite(n,r,t,i,o){var a=eS(r,t),s=eS(r,t=(t+o)/2),u=eS(i,t),p=eS(i,o);n.moveTo(a[0],a[1]),n.bezierCurveTo(s[0],s[1],u[0],u[1],p[0],p[1])}function Rte(){return V6(Ote)}function Nte(){return V6(Pte)}function Zte(){var n=V6(Ite);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}var q6={draw:function(r,t){var i=Math.sqrt(t/zm);r.moveTo(i,0),r.arc(0,0,i,0,up)}},lH={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()}},uH=Math.sqrt(1/3),Lte=2*uH,cH={draw:function(r,t){var i=Math.sqrt(t/Lte),o=i*uH;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},dH=Math.sin(zm/10)/Math.sin(7*zm/10),Bte=Math.sin(up/10)*dH,Ute=-Math.cos(up/10)*dH,pH={draw:function(r,t){var i=Math.sqrt(.8908130915292852*t),o=Bte*i,a=Ute*i;r.moveTo(0,-i),r.lineTo(o,a);for(var s=1;s<5;++s){var u=up*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()}},fH={draw:function(r,t){var i=Math.sqrt(t),o=-i/2;r.rect(o,o,i,i)}},j6=Math.sqrt(3),hH={draw:function(r,t){var i=-Math.sqrt(t/(3*j6));r.moveTo(0,2*i),r.lineTo(-j6*i,-i),r.lineTo(j6*i,-i),r.closePath()}},_u=-.5,yu=Math.sqrt(3)/2,z6=1/Math.sqrt(12),Hte=3*(z6/2+1),mH={draw:function(r,t){var i=Math.sqrt(t/Hte),o=i/2,a=i*z6,s=o,u=i*z6+i,p=-s,m=u;r.moveTo(o,a),r.lineTo(s,u),r.lineTo(p,m),r.lineTo(_u*o-yu*a,yu*o+_u*a),r.lineTo(_u*s-yu*u,yu*s+_u*u),r.lineTo(_u*p-yu*m,yu*p+_u*m),r.lineTo(_u*o+yu*a,_u*a-yu*o),r.lineTo(_u*s+yu*u,_u*u-yu*s),r.lineTo(_u*p+yu*m,_u*m-yu*p),r.closePath()}},Vte=[q6,lH,cH,fH,pH,hH,mH];function qte(){var n=pi(q6),r=pi(64),t=null;function i(){var o;if(t||(t=o=zu()),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:pi(o),i):n},i.size=function(o){return arguments.length?(r="function"==typeof o?o:pi(+o),i):r},i.context=function(o){return arguments.length?(t=null==o?null:o,i):t},i}function Vf(){}function IA(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 RA(n){this._context=n}function jte(n){return new RA(n)}function vH(n){this._context=n}function zte(n){return new vH(n)}function gH(n){this._context=n}function Wte(n){return new gH(n)}function _H(n,r){this._basis=new RA(n),this._beta=r}RA.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:IA(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:IA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},vH.prototype={areaStart:Vf,areaEnd:Vf,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:IA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},gH.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:IA(this,r,t)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t}},_H.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 Gte=function n(r){function t(i){return 1===r?new RA(i):new _H(i,r)}return t.beta=function(i){return n(+i)},t}(.85);function NA(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 W6(n,r){this._context=n,this._k=(1-r)/6}W6.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:NA(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:NA(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 Yte=function n(r){function t(i){return new W6(i,r)}return t.tension=function(i){return n(+i)},t}(0);function G6(n,r){this._context=n,this._k=(1-r)/6}G6.prototype={areaStart:Vf,areaEnd:Vf,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:NA(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 Jte=function n(r){function t(i){return new G6(i,r)}return t.tension=function(i){return n(+i)},t}(0);function Y6(n,r){this._context=n,this._k=(1-r)/6}Y6.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:NA(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 Qte=function n(r){function t(i){return new Y6(i,r)}return t.tension=function(i){return n(+i)},t}(0);function J6(n,r,t){var i=n._x1,o=n._y1,a=n._x2,s=n._y2;if(n._l01_a>Xa){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>Xa){var m=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,b=3*n._l23_a*(n._l23_a+n._l12_a);a=(a*m+n._x1*n._l23_2a-r*n._l12_2a)/b,s=(s*m+n._y1*n._l23_2a-t*n._l12_2a)/b}n._context.bezierCurveTo(i,o,a,s,n._x2,n._y2)}function yH(n,r){this._context=n,this._alpha=r}yH.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:J6(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 Kte=function n(r){function t(i){return r?new yH(i,r):new W6(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function bH(n,r){this._context=n,this._alpha=r}bH.prototype={areaStart:Vf,areaEnd:Vf,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:J6(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 Xte=function n(r){function t(i){return r?new bH(i,r):new G6(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function CH(n,r){this._context=n,this._alpha=r}CH.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:J6(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 $te=function n(r){function t(i){return r?new CH(i,r):new Y6(i,0)}return t.alpha=function(i){return n(+i)},t}(.5);function SH(n){this._context=n}function ene(n){return new SH(n)}function TH(n){return n<0?-1:1}function xH(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(TH(a)+TH(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}function wH(n,r){var t=n._x1-n._x0;return t?(3*(n._y1-n._y0)/t-r)/2:r}function Q6(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 ZA(n){this._context=n}function kH(n){this._context=new EH(n)}function EH(n){this._context=n}function tne(n){return new ZA(n)}function nne(n){return new kH(n)}function MH(n){this._context=n}function AH(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 rne(n){return new MH(n)}function LA(n,r){this._context=n,this._t=r}function ine(n){return new LA(n,.5)}function one(n){return new LA(n,0)}function ane(n){return new LA(n,1)}function F_(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 B_(n){for(var r=n.length,t=new Array(r);--r>=0;)t[r]=r;return t}function sne(n,r){return n[r]}function lne(){var n=pi([]),r=B_,t=F_,i=sne;function o(a){var u,I,s=n.apply(this,arguments),p=a.length,m=s.length,b=new Array(m);for(u=0;u<m;++u){for(var te,F=s[u],G=b[u]=new Array(p),Y=0;Y<p;++Y)G[Y]=te=[0,+i(a[Y],F,Y,a)],te.data=a[Y];G.key=F}for(u=0,I=r(b);u<m;++u)b[I[u]].index=u;return t(b,I),b}return o.keys=function(a){return arguments.length?(n="function"==typeof a?a:pi(H6.call(a)),o):n},o.value=function(a){return arguments.length?(i="function"==typeof a?a:pi(+a),o):i},o.order=function(a){return arguments.length?(r=null==a?B_:"function"==typeof a?a:pi(H6.call(a)),o):r},o.offset=function(a){return arguments.length?(t=null==a?F_:a,o):t},o}function une(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}F_(n,r)}}function cne(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}F_(n,r)}}function pne(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 b=n[r[u]],I=b[i][1]||0,G=(I-(b[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+=I,m+=G*I}o[i-1][1]+=o[i-1][0]=t,p&&(t-=m/p)}o[i-1][1]+=o[i-1][0]=t,F_(n,r)}}function DH(n){var r=n.map(OH);return B_(n).sort(function(t,i){return r[t]-r[i]})}function OH(n){for(var o,r=0,t=-1,i=n.length;++t<i;)(o=+n[t][1])&&(r+=o);return r}function fne(n){return DH(n).reverse()}function hne(n){var t,i,r=n.length,o=n.map(OH),a=B_(n).sort(function(b,I){return o[I]-o[b]}),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 mne(n){return B_(n).reverse()}function vne(n,r,t){var i=new g1,o=r;return null==r?(i.restart(n,r,t),i):(r=+r,t=null==t?y_():+t,i.restart(function a(s){s+=o,i.restart(a,o+=r,t),n(s)},r,t),i)}function PH(n){return function(){return n}}function gne(n){return n[0]}function _ne(n){return n[1]}function K6(){this._=null}function FA(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function tS(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 nS(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 IH(n){for(;n.L;)n=n.L;return n}SH.prototype={areaStart:Vf,areaEnd:Vf,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))}},ZA.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:Q6(this,this._t0,wH(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,Q6(this,wH(this,i=xH(this,r,t)),i);break;default:Q6(this,this._t0,i=xH(this,r,t))}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=t,this._t0=i}}},(kH.prototype=Object.create(ZA.prototype)).point=function(n,r){ZA.prototype.point.call(this,r,n)},EH.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)}},MH.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=AH(r),a=AH(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)}},LA.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}},K6.prototype={constructor:K6,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=IH(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&&(tS(this,i),i=(r=i).U),i.C=!1,o.C=!0,nS(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(nS(this,i),i=(r=i).U),i.C=!1,o.C=!0,tS(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?IH(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,tS(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,nS(this,i),i=t.R),i.C=t.C,t.C=i.R.C=!1,tS(this,t),r=this._;break}}else if((i=t.L).C&&(i.C=!1,t.C=!0,nS(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,tS(this,i),i=t.L),i.C=t.C,t.C=i.L.C=!1,nS(this,t),r=this._;break}i.C=!0,r=t,t=t.U}while(!r.C);r&&(r.C=!1)}}};var RH=K6;function rS(n,r,t,i){var o=[null,null],a=us.push(o)-1;return o.left=n,o.right=r,t&&BA(o,n,r,t),i&&BA(o,r,n,i),ql[n.index].halfedges.push(a),ql[r.index].halfedges.push(a),o}function iS(n,r,t){var i=[r,t];return i.left=n,i}function BA(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 yne(n,r,t,i,o){var te,a=n[0],s=n[1],u=a[0],p=a[1],I=0,F=1,G=s[0]-u,Y=s[1]-p;if(te=r-u,G||!(te>0)){if(te/=G,G<0){if(te<I)return;te<F&&(F=te)}else if(G>0){if(te>F)return;te>I&&(I=te)}if(te=i-u,G||!(te<0)){if(te/=G,G<0){if(te>F)return;te>I&&(I=te)}else if(G>0){if(te<I)return;te<F&&(F=te)}if(te=t-p,Y||!(te>0)){if(te/=Y,Y<0){if(te<I)return;te<F&&(F=te)}else if(Y>0){if(te>F)return;te>I&&(I=te)}if(te=o-p,Y||!(te<0)){if(te/=Y,Y<0){if(te>F)return;te>I&&(I=te)}else if(Y>0){if(te<I)return;te<F&&(F=te)}return!(I>0)&&!(F<1)||(I>0&&(n[0]=[u+I*G,p+I*Y]),F<1&&(n[1]=[u+F*G,p+F*Y])),!0}}}}}function bne(n,r,t,i,o){var a=n[1];if(a)return!0;var te,ce,s=n[0],u=n.left,p=n.right,m=u[0],b=u[1],I=p[0],F=p[1],G=(m+I)/2;if(F===b){if(G<r||G>=i)return;if(m>I){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(ce=(b+F)/2-(te=(m-I)/(F-b))*G,te<-1||te>1)if(m>I){if(s){if(s[1]>=o)return}else s=[(t-ce)/te,t];a=[(o-ce)/te,o]}else{if(s){if(s[1]<t)return}else s=[(o-ce)/te,o];a=[(t-ce)/te,t]}else if(b<F){if(s){if(s[0]>=i)return}else s=[r,te*r+ce];a=[i,te*i+ce]}else{if(s){if(s[0]<r)return}else s=[i,te*i+ce];a=[r,te*r+ce]}return n[0]=s,n[1]=a,!0}function Tne(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 NH(n,r){return r[+(r.left!==n.site)]}function xne(n,r){return r[+(r.left===n.site)]}var X6,ZH=[];function Ene(){FA(this),this.x=this.y=this.arc=this.site=this.cy=null}function U_(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,b=a[0]-s,I=a[1]-u,F=2*(p*I-m*b);if(!(F>=-Pne)){var G=p*p+m*m,Y=b*b+I*I,te=(I*G-m*Y)/F,ce=(p*Y-b*G)/F,xe=ZH.pop()||new Ene;xe.arc=n,xe.site=o,xe.x=te+s,xe.y=(xe.cy=ce+u)+Math.sqrt(te*te+ce*ce),n.circle=xe;for(var lt=null,nt=oS._;nt;)if(xe.y<nt.y||xe.y===nt.y&&xe.x<=nt.x){if(!nt.L){lt=nt.P;break}nt=nt.L}else{if(!nt.R){lt=nt;break}nt=nt.R}oS.insert(lt,xe),lt||(X6=xe)}}}}function H_(n){var r=n.circle;r&&(r.P||(X6=r.N),oS.remove(r),ZH.push(r),FA(r),n.circle=null)}var LH=[];function Mne(){FA(this),this.edge=this.site=this.circle=null}function FH(n){var r=LH.pop()||new Mne;return r.site=n,r}function $6(n){H_(n),V_.remove(n),LH.push(n),FA(n)}function Ane(n){var r=n.circle,t=r.x,i=r.cy,o=[t,i],a=n.P,s=n.N,u=[n];$6(n);for(var p=a;p.circle&&Math.abs(t-p.circle.x)<eo&&Math.abs(i-p.circle.cy)<eo;)a=p.P,u.unshift(p),$6(p),p=a;u.unshift(p),H_(p);for(var m=s;m.circle&&Math.abs(t-m.circle.x)<eo&&Math.abs(i-m.circle.cy)<eo;)s=m.N,u.push(m),$6(m),m=s;u.push(m),H_(m);var I,b=u.length;for(I=1;I<b;++I)BA((m=u[I]).edge,(p=u[I-1]).site,m.site,o);(m=u[b-1]).edge=rS((p=u[0]).site,m.site,null,o),U_(p),U_(m)}function Dne(n){for(var i,o,a,s,r=n[0],t=n[1],u=V_._;u;)if((a=BH(u,t)-r)>eo)u=u.L;else{if(!((s=r-One(u,t))>eo)){a>-eo?(i=u.P,o=u):s>-eo?(i=u,o=u.N):i=o=u;break}if(!u.R){i=u;break}u=u.R}!function(n){ql[n.index]={site:n,halfedges:[]}}(n);var p=FH(n);if(V_.insert(i,p),i||o){if(i===o)return H_(i),o=FH(i.site),V_.insert(p,o),p.edge=o.edge=rS(i.site,p.site),U_(i),void U_(o);if(!o)return void(p.edge=rS(i.site,p.site));H_(i),H_(o);var m=i.site,b=m[0],I=m[1],F=n[0]-b,G=n[1]-I,Y=o.site,te=Y[0]-b,ce=Y[1]-I,xe=2*(F*ce-G*te),lt=F*F+G*G,nt=te*te+ce*ce,it=[(ce*lt-G*nt)/xe+b,(F*nt-te*lt)/xe+I];BA(o.edge,m,Y,it),p.edge=rS(m,n,null,it),o.edge=rS(n,Y,null,it),U_(i),U_(o)}}function BH(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 b=u-i,I=1/a-1/m,F=b/m;return I?(-F+Math.sqrt(F*F-2*I*(b*b/(-2*m)-p+m/2+o-a/2)))/I+i:(i+u)/2}function One(n,r){var t=n.N;if(t)return BH(t,r);var i=n.site;return i[1]===r?i[0]:1/0}var V_,ql,oS,us,eo=1e-6,Pne=1e-12;function Ine(n,r,t){return(n[0]-t[0])*(r[1]-n[1])-(n[0]-r[0])*(t[1]-n[1])}function Rne(n,r){return r[1]-n[1]||r[0]-n[0]}function eZ(n,r){var i,o,a,t=n.sort(Rne).pop();for(us=[],ql=new Array(n.length),V_=new RH,oS=new RH;;)if(a=X6,t&&(!a||t[1]<a.y||t[1]===a.y&&t[0]<a.x))(t[0]!==i||t[1]!==o)&&(Dne(t),i=t[0],o=t[1]),t=n.pop();else{if(!a)break;Ane(a.arc)}if(function(){for(var t,i,o,a,n=0,r=ql.length;n<r;++n)if((t=ql[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]=Tne(t,us[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=us.length;o--;)bne(a=us[o],n,r,t,i)&&yne(a,n,r,t,i)&&(Math.abs(a[0][0]-a[1][0])>eo||Math.abs(a[0][1]-a[1][1])>eo)||delete us[o]})(s,u,p,m),function(n,r,t,i){var a,s,u,p,m,b,I,F,G,Y,te,ce,o=ql.length,xe=!0;for(a=0;a<o;++a)if(s=ql[a]){for(u=s.site,p=(m=s.halfedges).length;p--;)us[m[p]]||m.splice(p,1);for(p=0,b=m.length;p<b;)te=(Y=xne(s,us[m[p]]))[0],ce=Y[1],F=(I=NH(s,us[m[++p%b]]))[0],G=I[1],(Math.abs(te-F)>eo||Math.abs(ce-G)>eo)&&(m.splice(p,0,us.push(iS(u,Y,Math.abs(te-n)<eo&&i-ce>eo?[n,Math.abs(F-n)<eo?G:i]:Math.abs(ce-i)<eo&&t-te>eo?[Math.abs(G-i)<eo?F:t,i]:Math.abs(te-t)<eo&&ce-r>eo?[t,Math.abs(F-t)<eo?G:r]:Math.abs(ce-r)<eo&&te-n>eo?[Math.abs(G-r)<eo?F:n,r]:null))-1),++b);b&&(xe=!1)}if(xe){var lt,nt,it,ht=1/0;for(a=0,xe=null;a<o;++a)(s=ql[a])&&(it=(lt=(u=s.site)[0]-n)*lt+(nt=u[1]-r)*nt)<ht&&(ht=it,xe=s);if(xe){var Qe=[n,r],tt=[n,i],Ot=[t,i],xt=[t,r];xe.halfedges.push(us.push(iS(u=xe.site,Qe,tt))-1,us.push(iS(u,tt,Ot))-1,us.push(iS(u,Ot,xt))-1,us.push(iS(u,xt,Qe))-1)}}for(a=0;a<o;++a)(s=ql[a])&&(s.halfedges.length||delete ql[a])}(s,u,p,m)}this.edges=us,this.cells=ql,V_=oS=us=ql=null}function Nne(){var n=gne,r=_ne,t=null;function i(o){return new eZ(o.map(function(a,s){var u=[Math.round(n(a,s,o)/eo)*eo,Math.round(r(a,s,o)/eo)*eo];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:PH(+o),i):n},i.y=function(o){return arguments.length?(r="function"==typeof o?o:PH(+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 UA(n){return function(){return n}}function Zne(n,r,t){this.target=n,this.type=r,this.transform=t}function cp(n,r,t){this.k=n,this.x=r,this.y=t}eZ.prototype={constructor:eZ,polygons:function(){var r=this.edges;return this.cells.map(function(t){var i=t.halfedges.map(function(o){return NH(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,b=t[s[p-1]],I=b.left===a?b.right:b.left;++u<p;)m=I,I=(b=t[s[u]]).left===a?b.right:b.left,m&&I&&o<m.index&&o<I.index&&Ine(a,m,I)<0&&r.push([a.data,m.data,I.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],b=t-p.site[1],I=m*m+b*b;do{p=o.cells[a=s],s=null,p.halfedges.forEach(function(F){var G=o.edges[F],Y=G.left;if(Y!==p.site&&Y||(Y=G.right)){var te=r-Y[0],ce=t-Y[1],xe=te*te+ce*ce;xe<I&&(I=xe,s=Y.index)}})}while(null!==s);return o._found=a,null==i||I<=i*i?p.site:null}},cp.prototype={constructor:cp,scale:function(r){return 1===r?this:new cp(this.k*r,this.x,this.y)},translate:function(r,t){return 0===r&0===t?this:new cp(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 HA=new cp(1,0,0);function UH(n){return n.__zoom||HA}function tZ(){Dn.stopImmediatePropagation()}function aS(){Dn.preventDefault(),Dn.stopImmediatePropagation()}function Lne(){return!Dn.ctrlKey&&!Dn.button}function Fne(){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 HH(){return this.__zoom||HA}function Bne(){return-Dn.deltaY*(1===Dn.deltaMode?.05:Dn.deltaMode?1:.002)}function Une(){return navigator.maxTouchPoints||"ontouchstart"in this}function Hne(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 VH(){var b,I,n=Lne,r=Fne,t=Hne,i=Bne,o=Une,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],u=250,p=H4,m=Xd("start","zoom","end"),F=500,Y=0;function te(st){st.property("__zoom",HH).on("wheel.zoom",Qe).on("mousedown.zoom",tt).on("dblclick.zoom",Ot).filter(o).on("touchstart.zoom",xt).on("touchmove.zoom",hn).on("touchend.zoom touchcancel.zoom",Jt).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function ce(st,Dt){return(Dt=Math.max(a[0],Math.min(a[1],Dt)))===st.k?st:new cp(Dt,st.x,st.y)}function xe(st,Dt,gn){var fn=Dt[0]-gn[0]*st.k,kn=Dt[1]-gn[1]*st.k;return fn===st.x&&kn===st.y?st:new cp(st.k,fn,kn)}function lt(st){return[(+st[0][0]+ +st[1][0])/2,(+st[0][1]+ +st[1][1])/2]}function nt(st,Dt,gn){st.on("start.zoom",function(){it(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){it(this,arguments).end()}).tween("zoom",function(){var fn=this,kn=arguments,Ln=it(fn,kn),or=r.apply(fn,kn),Sr=gn||lt(or),Yr=Math.max(or[1][0]-or[0][0],or[1][1]-or[0][1]),cr=fn.__zoom,$r="function"==typeof Dt?Dt.apply(fn,kn):Dt,li=p(cr.invert(Sr).concat(Yr/cr.k),$r.invert(Sr).concat(Yr/$r.k));return function(Tr){if(1===Tr)Tr=$r;else{var Pi=li(Tr),Eo=Yr/Pi[2];Tr=new cp(Eo,Sr[0]-Pi[0]*Eo,Sr[1]-Pi[1]*Eo)}Ln.zoom(null,Tr)}})}function it(st,Dt,gn){return!gn&&st.__zooming||new ht(st,Dt)}function ht(st,Dt){this.that=st,this.args=Dt,this.active=0,this.extent=r.apply(st,Dt),this.taps=0}function Qe(){if(n.apply(this,arguments)){var st=it(this,arguments),Dt=this.__zoom,gn=Math.max(a[0],Math.min(a[1],Dt.k*Math.pow(2,i.apply(this,arguments)))),fn=el(this);Dt.k!==gn&&(st.wheel?((st.mouse[0][0]!==fn[0]||st.mouse[0][1]!==fn[1])&&(st.mouse[1]=Dt.invert(st.mouse[0]=fn)),clearTimeout(st.wheel)):(st.mouse=[fn,Dt.invert(fn)],Dm(this),st.start()),aS(),st.wheel=setTimeout(kn,150),st.zoom("mouse",t(xe(ce(Dt,gn),st.mouse[0],st.mouse[1]),st.extent,s)))}function kn(){st.wheel=null,st.end()}}function tt(){if(!I&&n.apply(this,arguments)){var st=it(this,arguments,!0),Dt=ei(Dn.view).on("mousemove.zoom",Ln,!0).on("mouseup.zoom",or,!0),gn=el(this),fn=Dn.clientX,kn=Dn.clientY;f_(Dn.view),tZ(),st.mouse=[gn,this.__zoom.invert(gn)],Dm(this),st.start()}function Ln(){if(aS(),!st.moved){var Sr=Dn.clientX-fn,Yr=Dn.clientY-kn;st.moved=Sr*Sr+Yr*Yr>Y}st.zoom("mouse",t(xe(st.that.__zoom,st.mouse[0]=el(st.that),st.mouse[1]),st.extent,s))}function or(){Dt.on("mousemove.zoom mouseup.zoom",null),Zl(Dn.view,st.moved),aS(),st.end()}}function Ot(){if(n.apply(this,arguments)){var st=this.__zoom,Dt=el(this),gn=st.invert(Dt),fn=st.k*(Dn.shiftKey?.5:2),kn=t(xe(ce(st,fn),Dt,gn),r.apply(this,arguments),s);aS(),u>0?ei(this).transition().duration(u).call(nt,kn,Dt):ei(this).call(te.transform,kn)}}function xt(){if(n.apply(this,arguments)){var fn,kn,Ln,or,st=Dn.touches,Dt=st.length,gn=it(this,arguments,Dn.changedTouches.length===Dt);for(tZ(),kn=0;kn<Dt;++kn)or=[or=p_(this,st,(Ln=st[kn]).identifier),this.__zoom.invert(or),Ln.identifier],gn.touch0?gn.touch1||(gn.touch1=or,gn.taps=0):(gn.touch0=or,fn=!0,gn.taps=1+!!b);b&&(b=clearTimeout(b)),fn&&(gn.taps<2&&(b=setTimeout(function(){b=null},F)),Dm(this),gn.start())}}function hn(){if(this.__zooming){var fn,kn,Ln,or,st=it(this,arguments),Dt=Dn.changedTouches,gn=Dt.length;for(aS(),b&&(b=clearTimeout(b)),st.taps=0,fn=0;fn<gn;++fn)Ln=p_(this,Dt,(kn=Dt[fn]).identifier),st.touch0&&st.touch0[2]===kn.identifier?st.touch0[0]=Ln:st.touch1&&st.touch1[2]===kn.identifier&&(st.touch1[0]=Ln);if(kn=st.that.__zoom,st.touch1){var Sr=st.touch0[0],Yr=st.touch0[1],cr=st.touch1[0],$r=st.touch1[1],li=(li=cr[0]-Sr[0])*li+(li=cr[1]-Sr[1])*li,Tr=(Tr=$r[0]-Yr[0])*Tr+(Tr=$r[1]-Yr[1])*Tr;kn=ce(kn,Math.sqrt(li/Tr)),Ln=[(Sr[0]+cr[0])/2,(Sr[1]+cr[1])/2],or=[(Yr[0]+$r[0])/2,(Yr[1]+$r[1])/2]}else{if(!st.touch0)return;Ln=st.touch0[0],or=st.touch0[1]}st.zoom("touch",t(xe(kn,Ln,or),st.extent,s))}}function Jt(){if(this.__zooming){var fn,kn,st=it(this,arguments),Dt=Dn.changedTouches,gn=Dt.length;for(tZ(),I&&clearTimeout(I),I=setTimeout(function(){I=null},F),fn=0;fn<gn;++fn)kn=Dt[fn],st.touch0&&st.touch0[2]===kn.identifier?delete st.touch0:st.touch1&&st.touch1[2]===kn.identifier&&delete st.touch1;if(st.touch1&&!st.touch0&&(st.touch0=st.touch1,delete st.touch1),st.touch0)st.touch0[1]=this.__zoom.invert(st.touch0[0]);else if(st.end(),2===st.taps){var Ln=ei(this).on("dblclick.zoom");Ln&&Ln.apply(this,arguments)}}}return te.transform=function(st,Dt){var gn=st.selection?st.selection():st;gn.property("__zoom",HH),st!==gn?nt(st,Dt):gn.interrupt().each(function(){it(this,arguments).start().zoom(null,"function"==typeof Dt?Dt.apply(this,arguments):Dt).end()})},te.scaleBy=function(st,Dt){te.scaleTo(st,function(){var gn=this.__zoom.k,fn="function"==typeof Dt?Dt.apply(this,arguments):Dt;return gn*fn})},te.scaleTo=function(st,Dt){te.transform(st,function(){var gn=r.apply(this,arguments),fn=this.__zoom,kn=lt(gn),Ln=fn.invert(kn),or="function"==typeof Dt?Dt.apply(this,arguments):Dt;return t(xe(ce(fn,or),kn,Ln),gn,s)})},te.translateBy=function(st,Dt,gn){te.transform(st,function(){return t(this.__zoom.translate("function"==typeof Dt?Dt.apply(this,arguments):Dt,"function"==typeof gn?gn.apply(this,arguments):gn),r.apply(this,arguments),s)})},te.translateTo=function(st,Dt,gn){te.transform(st,function(){var fn=r.apply(this,arguments),kn=this.__zoom,Ln=lt(fn);return t(HA.translate(Ln[0],Ln[1]).scale(kn.k).translate("function"==typeof Dt?-Dt.apply(this,arguments):-Dt,"function"==typeof gn?-gn.apply(this,arguments):-gn),fn,s)})},ht.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Dt,gn){return this.mouse&&"mouse"!==Dt&&(this.mouse[1]=gn.invert(this.mouse[0])),this.touch0&&"touch"!==Dt&&(this.touch0[1]=gn.invert(this.touch0[0])),this.touch1&&"touch"!==Dt&&(this.touch1[1]=gn.invert(this.touch1[0])),this.that.__zoom=gn,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Dt){Sm(new Zne(te,Dt,this.that.__zoom),m.apply,m,[Dt,this.that,this.args])}},te.wheelDelta=function(st){return arguments.length?(i="function"==typeof st?st:UA(+st),te):i},te.filter=function(st){return arguments.length?(n="function"==typeof st?st:UA(!!st),te):n},te.touchable=function(st){return arguments.length?(o="function"==typeof st?st:UA(!!st),te):o},te.extent=function(st){return arguments.length?(r="function"==typeof st?st:UA([[+st[0][0],+st[0][1]],[+st[1][0],+st[1][1]]]),te):r},te.scaleExtent=function(st){return arguments.length?(a[0]=+st[0],a[1]=+st[1],te):[a[0],a[1]]},te.translateExtent=function(st){return arguments.length?(s[0][0]=+st[0][0],s[1][0]=+st[1][0],s[0][1]=+st[0][1],s[1][1]=+st[1][1],te):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},te.constrain=function(st){return arguments.length?(t=st,te):t},te.duration=function(st){return arguments.length?(u=+st,te):u},te.interpolate=function(st){return arguments.length?(p=st,te):p},te.on=function(){var st=m.on.apply(m,arguments);return st===m?te:st},te.clickDistance=function(st){return arguments.length?(Y=(st=+st)*st,te):Math.sqrt(Y)},te}UH.prototype=cp.prototype;var Vne=function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{key:"getD3",value:function(){return U}}]),n}(),sS=f(5041);function qne(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 jne(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 zne(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 Wne(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 Gne(n,r){if(1&n&&(e.O4$(),e.ynx(0),e.YNc(1,zne,1,7,"circle",2),e.YNc(2,Wne,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 Yne(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 Jne(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 Qne(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 Kne(n,r){if(1&n&&(e.O4$(),e.ynx(0),e.YNc(1,Jne,1,5,"path",2),e.YNc(2,Qne,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 Xne(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 $ne(n,r){if(1&n&&(e.O4$(),e.ynx(0),e.YNc(1,Xne,2,7,"tspan",8),e.BQk()),2&n){var t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.svg.title.tspans)}}function ere(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 tre(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 nre(n,r){if(1&n&&(e.O4$(),e.ynx(0),e.YNc(1,tre,2,7,"tspan",8),e.BQk()),2&n){var t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.svg.subtitle.tspans)}}function rre(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"text",7),e.YNc(1,$ne,2,1,"ng-container",2),e.YNc(2,ere,2,4,"tspan",2),e.YNc(3,nre,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 ire(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 ore(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,qne,3,5,"linearGradient",2),e.YNc(3,jne,3,5,"radialGradient",2),e.qZA(),e.YNc(4,Gne,3,2,"ng-container",2),e.YNc(5,Yne,1,6,"circle",2),e.YNc(6,Kne,3,2,"ng-container",2),e.YNc(7,rre,4,6,"text",3),e.YNc(8,ire,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,VA=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},are=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 VA,this.defaultOptions=new VA,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 b=m*Math.PI/180;return{x:s+Math.sin(b)*p,y:u-Math.cos(b)*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 F,G,m={x:p/2,y:p/2},b={x:m.x,y:m.y-a.options.radius},I=a.polarToCartesian(m.x,m.y,a.options.radius,360*(a.options.clockwise?u:100-u)/100);if(100===u&&(I.x=I.x+(a.options.clockwise?-.01:.01)),u>50){var te=(0,C.Z)(a.options.clockwise?[1,1]:[1,0],2);F=te[0],G=te[1]}else{var xe=(0,C.Z)(a.options.clockwise?[0,1]:[0,0],2);F=xe[0],G=xe[1]}var lt=a.options.animateTitle?s:a.options.percent,nt=lt>a.options.maxPercent?"".concat(a.options.maxPercent.toFixed(a.options.toFixed),"+"):lt.toFixed(a.options.toFixed),it=a.options.animateSubtitle?s:a.options.percent,ht={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 Qe=a.options.titleFormat(lt);Qe instanceof Array?ht.texts=(0,y.Z)(Qe):ht.texts.push(Qe.toString())}else"auto"===a.options.title?ht.texts.push(nt):a.options.title instanceof Array?ht.texts=(0,y.Z)(a.options.title):ht.texts.push(a.options.title.toString());var tt={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 Ot=a.options.subtitleFormat(it);Ot instanceof Array?tt.texts=(0,y.Z)(Ot):tt.texts.push(Ot.toString())}else a.options.subtitle instanceof Array?tt.texts=(0,y.Z)(a.options.subtitle):tt.texts.push(a.options.subtitle.toString());var xt={text:"".concat(a.options.units),fontSize:a.options.unitsFontSize,fontWeight:a.options.unitsFontWeight,color:a.options.unitsColor},hn=0,Jt=1;if(a.options.showTitle&&(hn+=ht.texts.length),a.options.showSubtitle&&(hn+=tt.texts.length),a.options.showTitle){var Dt,st=(0,_.Z)(ht.texts);try{for(st.s();!(Dt=st.n()).done;)ht.tspans.push({span:Dt.value,dy:a.getRelativeY(Jt,hn)}),Jt++}catch(or){st.e(or)}finally{st.f()}}if(a.options.showSubtitle){var kn,fn=(0,_.Z)(tt.texts);try{for(fn.s();!(kn=fn.n()).done;)tt.tspans.push({span:kn.value,dy:a.getRelativeY(Jt,hn)}),Jt++}catch(or){fn.e(or)}finally{fn.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(b.x," ").concat(b.y,"\n A ").concat(a.options.radius," ").concat(a.options.radius," 0 ").concat(F," ").concat(G," ").concat(I.x," ").concat(I.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:ht,units:xt,subtitle:tt,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,b,I,F=a.options.startFromZero||s<0?0:s,G=u<0?0:a.min(u,a.options.maxPercent),Y=Math.abs(Math.round(G-F));return Y>=100?(m=100,b=a.options.animateTitle||a.options.animateSubtitle?Math.round(Y/m):1):(m=Y,b=1),(I=Math.round(a.options.animationDuration/m))<10&&(m=a.options.animationDuration/(I=10),b=!a.options.animateTitle&&!a.options.animateSubtitle&&Y>100?Math.round(100/m):Math.round(Y/m)),b<1&&(b=1),{times:m,step:b,interval:I}},this.animate=function(s,u){a._timerSubscription&&!a._timerSubscription.closed&&a._timerSubscription.unsubscribe();var p=a.options.startFromZero?0:s,m=u,b=a.getAnimationParameters(p,m),I=b.step,F=b.interval,G=p;a._timerSubscription=p<m?(0,sS.H)(0,F).subscribe(function(){(G+=I)<=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,sS.H)(0,F).subscribe(function(){(G-=I)>=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,sS.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(VA),e.Y36(e.SBq),e.Y36(Mt.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,ore,9,11,"svg",0),2&t&&e.Q6J("ngIf",i.svg)},directives:[Mt.O5,Mt.sg],encapsulation:2}),n}(),sre=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:VA,useValue:i}]}}}]),r}();return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[Mt.ez]]}),n}(),nZ=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}(),ure=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 nZ(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}(),cre=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}(),Wm=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 b=this._getFilters(o),I=this.queue.length,F=[];s.map(function(G){i||(i=a.options);var Y=new nZ(G);if(a._isValidFile(Y,b,i)){var te=new ure(a,G,i);F.push(te),a.queue.push(te),a._onAfterAddingFile(te)}else a._onWhenAddingFileFailed(Y,b[a._failFilterIndex],i)}),this.queue.length!==I&&(this._onAfterAddingAll(F),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 nZ}},{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(cre.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),ce=i._isSuccessCode(a.status)?"Success":"Error";i["_on"+ce+"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 b=m.value;a.setRequestHeader(b.name,b.value)}}catch(Y){p.e(Y)}finally{p.f()}}if(t.headers.length){var F,I=(0,_.Z)(t.headers);try{for(I.s();!(F=I.n()).done;){var G=F.value;a.setRequestHeader(G.name,G.value)}}catch(Y){I.e(Y)}finally{I.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}(),lS=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}(),pre=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:[[Mt.ez]]}),n}(),rZ=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}(),fre=(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)}),hre=function(n){function r(){return n.call(this)||this}return fre(r,n),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=e.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(rZ),mre=function(){function n(){}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[{provide:rZ,useClass:hre}]}),n}(),$a=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}(),vre=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.call(this)}return i}($a);return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),gre=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:$a,useClass:vre}]}),n}(),uS=f(88009),_re=f(64646),qH=f(60131),iZ=f(4499),Gm=f(93487),yre=f(39887),jH=f(31927),qf=f(13426),cS=f(38575),bre=f(99583),q_=f(64233),Cre=f(26575),zH=f(59803),oZ=f(65890),dp=function n(r,t){(0,g.Z)(this,n),this.id=r,this.url=t},qA=function(n){(0,O.Z)(t,n);var r=(0,P.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}(dp),Ym=function(n){(0,O.Z)(t,n);var r=(0,P.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}(dp),aZ=function(n){(0,O.Z)(t,n);var r=(0,P.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}(dp),WH=function(n){(0,O.Z)(t,n);var r=(0,P.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}(dp),Sre=function(n){(0,O.Z)(t,n);var r=(0,P.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}(dp),Tre=function(n){(0,O.Z)(t,n);var r=(0,P.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}(dp),xre=function(n){(0,O.Z)(t,n);var r=(0,P.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}(dp),wre=function(n){(0,O.Z)(t,n);var r=(0,P.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}(dp),kre=function(n){(0,O.Z)(t,n);var r=(0,P.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}(dp),GH=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}(),YH=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}(),Ere=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}(),Mre=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}(),Are=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}(),Dre=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}(),JH=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}(),fi="primary",Ore=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 j_(n){return new Ore(n)}var QH="ngNavigationCancelingError";function sZ(n){var r=Error("NavigationCancelingError: "+n);return r[QH]=!0,r}function Ire(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 nd(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(!KH(n[o=t[a]],r[o]))return!1;return!0}function KH(n,r){if(Array.isArray(n)&&Array.isArray(r)){if(n.length!==r.length)return!1;var t=(0,y.Z)(n).sort(),i=(0,y.Z)(r).sort();return t.every(function(o,a){return i[a]===o})}return n===r}function XH(n){return Array.prototype.concat.apply([],n)}function $H(n){return n.length>0?n[n.length-1]:null}function es(n,r){for(var t in n)n.hasOwnProperty(t)&&r(n[t],t)}function rd(n){return(0,e.CqO)(n)?n:(0,e.QGY)(n)?(0,Ja.D)(Promise.resolve(n)):(0,ur.of)(n)}var Zre={exact:function nV(n,r,t){if(!Qm(n.segments,r.segments)||!jA(n.segments,r.segments,t)||n.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!n.children[i]||!nV(n.children[i],r.children[i],t))return!1;return!0},subset:rV},eV={exact:function(n,r){return nd(n,r)},subset:function(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(function(t){return KH(n[t],r[t])})},ignored:function(){return!0}};function tV(n,r,t){return Zre[t.paths](n.root,r.root,t.matrixParams)&&eV[t.queryParams](n.queryParams,r.queryParams)&&!("exact"===t.fragment&&n.fragment!==r.fragment)}function rV(n,r,t){return iV(n,r,r.segments,t)}function iV(n,r,t,i){if(n.segments.length>t.length){var o=n.segments.slice(0,t.length);return!(!Qm(o,t)||r.hasChildren()||!jA(o,t,i))}if(n.segments.length===t.length){if(!Qm(n.segments,t)||!jA(n.segments,t,i))return!1;for(var a in r.children)if(!n.children[a]||!rV(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!!(Qm(n.segments,s)&&jA(n.segments,s,i)&&n.children[fi])&&iV(n.children[fi],r,u,i)}function jA(n,r,t){return r.every(function(i,o){return eV[t](n[o].parameters,i.parameters)})}var Jm=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=j_(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Hre.serialize(this)}}]),n}(),yi=function(){function n(r,t){var i=this;(0,g.Z)(this,n),this.segments=r,this.children=t,this.parent=null,es(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 zA(this)}}]),n}(),dS=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=j_(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return lV(this)}}]),n}();function Qm(n,r){return n.length===r.length&&n.every(function(t,i){return t.path===r[i].path})}var lZ=function n(){(0,g.Z)(this,n)},oV=function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{key:"parse",value:function(t){var i=new Qre(t);return new Jm(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(t){var i="/".concat(pS(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(WA(t),"=").concat(WA(o))}).join("&"):"".concat(WA(t),"=").concat(WA(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}(),Hre=new oV;function zA(n){return n.segments.map(function(r){return lV(r)}).join("/")}function pS(n,r){if(!n.hasChildren())return zA(n);if(r){var t=n.children[fi]?pS(n.children[fi],!1):"",i=[];return es(n.children,function(a,s){s!==fi&&i.push("".concat(s,":").concat(pS(a,!1)))}),i.length>0?"".concat(t,"(").concat(i.join("//"),")"):t}var o=function(n,r){var t=[];return es(n.children,function(i,o){o===fi&&(t=t.concat(r(i,o)))}),es(n.children,function(i,o){o!==fi&&(t=t.concat(r(i,o)))}),t}(n,function(a,s){return s===fi?[pS(n.children[fi],!1)]:["".concat(s,":").concat(pS(a,!1))]});return 1===Object.keys(n.children).length&&null!=n.children[fi]?"".concat(zA(n),"/").concat(o[0]):"".concat(zA(n),"/(").concat(o.join("//"),")")}function aV(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function WA(n){return aV(n).replace(/%3B/gi,";")}function uZ(n){return aV(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function GA(n){return decodeURIComponent(n)}function sV(n){return GA(n.replace(/\+/g,"%20"))}function lV(n){return"".concat(uZ(n.path)).concat(function(n){return Object.keys(n).map(function(r){return";".concat(uZ(r),"=").concat(uZ(n[r]))}).join("")}(n.parameters))}var zre=/^[^\/()?;=#]+/;function YA(n){var r=n.match(zre);return r?r[0]:""}var Wre=/^[^=?&#]+/,Yre=/^[^?&#]+/,Qre=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 yi([],{}):new yi([],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[fi]=new yi(t,i)),o}},{key:"parseSegment",value:function(){var t=YA(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new dS(GA(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var i=YA(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=YA(this.remaining);a&&this.capture(o=a)}t[GA(i)]=GA(o)}}},{key:"parseQueryParam",value:function(t){var i=function(n){var r=n.match(Wre);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function(n){var r=n.match(Yre);return r?r[0]:""}(this.remaining);a&&this.capture(o=a)}var s=sV(i),u=sV(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=YA(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=fi);var u=this.parseChildren();i[s]=1===Object.keys(u).length?u[fi]:new yi([],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}(),uV=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=cZ(t,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(t){var i=cZ(t,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(t){var i=dZ(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 dZ(t,this._root).map(function(i){return i.value})}}]),n}();function cZ(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=cZ(n,i.value);if(a)return a}}catch(s){t.e(s)}finally{t.f()}return null}function dZ(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=dZ(n,i.value);if(a.length)return a.unshift(r),a}}catch(s){t.e(s)}finally{t.f()}return[]}var pp=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 fS(n){var r={};return n&&n.children.forEach(function(t){return r[t.value.outlet]=t}),r}var cV=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(i,o){var a;return(0,g.Z)(this,t),(a=r.call(this,i)).snapshot=o,pZ((0,uS.Z)(a),i),a}return(0,T.Z)(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(uV);function dV(n,r){var t=function(n,r){var s=new JA([],{},{},"",{},fi,r,null,n.root,-1,{});return new fV("",new pp(s,[]))}(n,r),i=new ji.X([new dS("",{})]),o=new ji.X({}),a=new ji.X({}),s=new ji.X({}),u=new ji.X(""),p=new Fr(i,o,s,u,a,fi,r,t.root);return p.snapshot=t.root,new cV(new pp(p,[]),t)}var Fr=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,Ar.U)(function(t){return j_(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ar.U)(function(t){return j_(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),n}();function pV(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 Xre(t.slice(i))}function Xre(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 JA=function(){function n(r,t,i,o,a,s,u,p,m,b,I){(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=b,this._resolve=I}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=j_(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=j_(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}(),fV=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(i,o){var a;return(0,g.Z)(this,t),(a=r.call(this,o)).url=i,pZ((0,uS.Z)(a),o),a}return(0,T.Z)(t,[{key:"toString",value:function(){return hV(this._root)}}]),t}(uV);function pZ(n,r){r.value._routerState=n,r.children.forEach(function(t){return pZ(n,t)})}function hV(n){var r=n.children.length>0?" { ".concat(n.children.map(hV).join(", ")," } "):"";return"".concat(n.value).concat(r)}function fZ(n){if(n.snapshot){var r=n.snapshot,t=n._futureSnapshot;n.snapshot=t,nd(r.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),r.fragment!==t.fragment&&n.fragment.next(t.fragment),nd(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(!nd(n[t],r[t]))return!1;return!0}(r.url,t.url)||n.url.next(t.url),nd(r.data,t.data)||n.data.next(t.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function hZ(n,r){return nd(n.params,r.params)&&function(n,r){return Qm(n,r)&&n.every(function(t,i){return nd(t.parameters,r[i].parameters)})}(n.url,r.url)&&!(!n.parent!=!r.parent)&&(!n.parent||hZ(n.parent,r.parent))}function QA(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 QA(n,i,s)}}catch(u){o.e(u)}finally{o.f()}return QA(n,i)})}(n,r,t);return new pp(i,o)}if(n.shouldAttach(r.value)){var a=n.retrieve(r.value);if(null!==a){var s=a.route;return mV(r,s),s}}var u=function(n){return new Fr(new ji.X(n.url),new ji.X(n.params),new ji.X(n.queryParams),new ji.X(n.fragment),new ji.X(n.data),n.outlet,n.component,n)}(r.value),p=r.children.map(function(m){return QA(n,m)});return new pp(u,p)}function mV(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)mV(n.children[t],r.children[t])}function nie(n,r,t,i,o){if(0===t.length)return mZ(r.root,r.root,r,i,o);var a=function(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new gV(!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 es(a.outlets,function(p,m){u[m]="string"==typeof p?p.split("/"):p}),[].concat((0,y.Z)(o),[{outlets:u}])}if(a.segmentPath)return[].concat((0,y.Z)(o),[a.segmentPath])}return"string"!=typeof a?[].concat((0,y.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,y.Z)(o),[a])},[]);return new gV(t,r,i)}(t);if(a.toRoot())return mZ(r.root,new yi([],{}),r,i,o);var s=function(n,r,t){if(n.isAbsolute)return new vZ(r.root,!0,0);if(-1===t.snapshot._lastPathIndex){var i=t.snapshot._urlSegment;return new vZ(i,i===r.root,0)}var a=KA(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 vZ(i,!1,o-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+a,n.numberOfDoubleDots)}(a,r,n),u=s.processChildren?XA(s.segmentGroup,s.index,a.commands):_V(s.segmentGroup,s.index,a.commands);return mZ(s.segmentGroup,u,r,i,o)}function KA(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function hS(n){return"object"==typeof n&&null!=n&&n.outlets}function mZ(n,r,t,i,o){var a={};return i&&es(i,function(s,u){a[u]=Array.isArray(s)?s.map(function(p){return"".concat(p)}):"".concat(s)}),new Jm(t.root===n?r:vV(t.root,n,r),a,o)}function vV(n,r,t){var i={};return es(n.children,function(o,a){i[a]=o===r?t:vV(o,r,t)}),new yi(n.segments,i)}var gV=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&&KA(i[0]))throw new Error("Root segment cannot have matrix parameters");var o=i.find(hS);if(o&&o!==$H(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}(),vZ=function n(r,t,i){(0,g.Z)(this,n),this.segmentGroup=r,this.processChildren=t,this.index=i};function _V(n,r,t){if(n||(n=new yi([],{})),0===n.segments.length&&n.hasChildren())return XA(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(hS(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(!bV(p,m,s))return a;i+=2}else{if(!bV(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 yi(n.segments.slice(0,i.pathIndex),{});return a.children[fi]=new yi(n.segments.slice(i.pathIndex),n.children),XA(a,0,o)}return i.match&&0===o.length?new yi(n.segments,{}):i.match&&!n.hasChildren()?gZ(n,r,t):i.match?XA(n,0,o):gZ(n,r,t)}function XA(n,r,t){if(0===t.length)return new yi(n.segments,{});var i=function(n){return hS(n[0])?n[0].outlets:(0,V.Z)({},fi,n)}(t),o={};return es(i,function(a,s){"string"==typeof a&&(a=[a]),null!==a&&(o[s]=_V(n.children[s],r,a))}),es(n.children,function(a,s){void 0===i[s]&&(o[s]=a)}),new yi(n.segments,o)}function gZ(n,r,t){for(var i=n.segments.slice(0,r),o=0;o<t.length;){var a=t[o];if(hS(a)){var s=lie(a.outlets);return new yi(i,s)}if(0===o&&KA(t[0]))i.push(new dS(n.segments[r].path,yV(t[0]))),o++;else{var p=hS(a)?a.outlets[fi]:"".concat(a),m=o<t.length-1?t[o+1]:null;p&&m&&KA(m)?(i.push(new dS(p,yV(m))),o+=2):(i.push(new dS(p,{})),o++)}}return new yi(i,{})}function lie(n){var r={};return es(n,function(t,i){"string"==typeof t&&(t=[t]),null!==t&&(r[i]=gZ(new yi([],{}),0,t))}),r}function yV(n){var r={};return es(n,function(t,i){return r[i]="".concat(t)}),r}function bV(n,r,t){return n==t.path&&nd(r,t.parameters)}var cie=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),fZ(this.futureState.root),this.activateChildRoutes(i,o,t)}},{key:"deactivateChildRoutes",value:function(t,i,o){var a=this,s=fS(i);t.children.forEach(function(u){var p=u.value.outlet;a.deactivateRoutes(u,s[p],o),delete s[p]}),es(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=fS(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=fS(i);t.children.forEach(function(u){a.activateRoutes(u,s[u.value.outlet],o),a.forwardEvent(new Dre(u.value.snapshot))}),t.children.length&&this.forwardEvent(new Mre(t.value.snapshot))}},{key:"activateRoutes",value:function(t,i,o){var a=t.value,s=i?i.value:null;if(fZ(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),CV(m.route)}else{var b=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),I=b?b.module.componentFactoryResolver:null;p.attachRef=null,p.route=a,p.resolver=I,p.outlet&&p.outlet.activateWith(a,I),this.activateChildRoutes(t,null,p.children)}}else this.activateChildRoutes(t,null,o)}}]),n}();function CV(n){fZ(n.value),n.children.forEach(CV)}var _Z=function n(r,t){(0,g.Z)(this,n),this.routes=r,this.module=t};function jf(n){return"function"==typeof n}function Km(n){return n instanceof Jm}var mS=Symbol("INITIAL_VALUE");function vS(){return(0,Os.w)(function(n){return(0,lm.aj)(n.map(function(r){return r.pipe((0,qi.q)(1),(0,ea.O)(mS))})).pipe((0,jH.R)(function(r,t){var i=!1;return t.reduce(function(o,a,s){return o!==mS?o:(a===mS&&(i=!0),i||!1!==a&&s!==t.length-1&&!Km(a)?o:a)},r)},mS),(0,_i.h)(function(r){return r!==mS}),(0,Ar.U)(function(r){return Km(r)?r:!0===r}),(0,qi.q)(1))})}var SV=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[s2]},encapsulation:2}),n}();function TV(n){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=0;t<n.length;t++){var i=n[t],o=_ie(r,i);gie(i,o)}}function gie(n,r){n.children&&TV(n.children,r)}function _ie(n,r){return r?n||r.path?n&&!r.path?"".concat(n,"/"):!n&&r.path?r.path:"".concat(n,"/").concat(r.path):"":n}function yZ(n){var r=n.children&&n.children.map(yZ),t=r?Object.assign(Object.assign({},n),{children:r}):Object.assign({},n);return!t.component&&(r||t.loadChildren)&&t.outlet&&t.outlet!==fi&&(t.component=SV),t}function bu(n){return n.outlet||fi}function xV(n,r){var t=n.filter(function(i){return bu(i)===r});return t.push.apply(t,(0,y.Z)(n.filter(function(i){return bu(i)!==r}))),t}var wV={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function $A(n,r,t){var i;if(""===r.path)return"full"===r.pathMatch&&(n.hasChildren()||t.length>0)?Object.assign({},wV):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var a=(r.matcher||Ire)(t,n,r);if(!a)return Object.assign({},wV);var s={};es(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 e2(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&Cie(n,t,i)){var a=new yi(r,bie(n,r,i,new yi(t,n.children)));return a._sourceSegment=n,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===t.length&&Sie(n,t,i)){var s=new yi(n.segments,yie(n,r,t,i,n.children,o));return s._sourceSegment=n,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:t}}var u=new yi(n.segments,n.children);return u._sourceSegment=n,u._segmentIndexShift=r.length,{segmentGroup:u,slicedSegments:t}}function yie(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(t2(n,t,m)&&!o[bu(m)]){var b=new yi([],{});b._sourceSegment=n,b._segmentIndexShift="legacy"===a?n.segments.length:r.length,s[bu(m)]=b}}}catch(I){u.e(I)}finally{u.f()}return Object.assign(Object.assign({},o),s)}function bie(n,r,t,i){var o={};o[fi]=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&&bu(u)!==fi){var p=new yi([],{});p._sourceSegment=n,p._segmentIndexShift=r.length,o[bu(u)]=p}}}catch(m){a.e(m)}finally{a.f()}return o}function Cie(n,r,t){return t.some(function(i){return t2(n,r,i)&&bu(i)!==fi})}function Sie(n,r,t){return t.some(function(i){return t2(n,r,i)})}function t2(n,r,t){return(!(n.hasChildren()||r.length>0)||"full"!==t.pathMatch)&&""===t.path}function kV(n,r,t,i){return!!(bu(n)===i||i!==fi&&t2(r,t,n))&&("**"===n.path||$A(r,n,t).matched)}function EV(n,r,t){return 0===r.length&&!n.children[t]}var gS=function n(r){(0,g.Z)(this,n),this.segmentGroup=r||null},MV=function n(r){(0,g.Z)(this,n),this.urlTree=r};function n2(n){return new qo.y(function(r){return r.error(new gS(n))})}function AV(n){return new qo.y(function(r){return r.error(new MV(n))})}function Tie(n){return new qo.y(function(r){return r.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(n,"'")))})}var kie=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=e2(this.urlTree.root,[],[],this.config).segmentGroup,o=new yi(i.segments,i.children);return this.expandSegmentGroup(this.ngModule,this.config,o,fi).pipe((0,Ar.U)(function(u){return t.createUrlTree(bZ(u),t.urlTree.queryParams,t.urlTree.fragment)})).pipe((0,qf.K)(function(u){if(u instanceof MV)return t.allowRedirects=!1,t.match(u.urlTree);throw u instanceof gS?t.noMatchError(u):u}))}},{key:"match",value:function(t){var i=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,fi).pipe((0,Ar.U)(function(s){return i.createUrlTree(bZ(s),t.queryParams,t.fragment)})).pipe((0,qf.K)(function(s){throw s instanceof gS?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 yi([],(0,V.Z)({},fi,t)):t;return new Jm(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,Ar.U)(function(s){return new yi([],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,Ja.D)(s).pipe((0,cS.b)(function(b){var I=o.children[b],F=xV(i,b);return a.expandSegmentGroup(t,F,I,b).pipe((0,Ar.U)(function(G){return{segment:G,outlet:b}}))}),(0,jH.R)(function(b,I){return b[I.outlet]=I.segment,b},{}),(0,bre.Z)())}},{key:"expandSegment",value:function(t,i,o,a,s,u){var p=this;return(0,Ja.D)(o).pipe((0,cS.b)(function(m){return p.expandSegmentAgainstRoute(t,i,o,m,a,s,u).pipe((0,qf.K)(function(I){if(I instanceof gS)return(0,ur.of)(null);throw I}))}),(0,q_.P)(function(m){return!!m}),(0,qf.K)(function(m,b){if(m instanceof _re.K||"EmptyError"===m.name){if(EV(i,a,s))return(0,ur.of)(new yi([],{}));throw new gS(i)}throw m}))}},{key:"expandSegmentAgainstRoute",value:function(t,i,o,a,s,u,p){return kV(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):n2(i):n2(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("/")?AV(u):this.lineralizeSegments(o,u).pipe((0,Ro.zg)(function(p){var m=new yi(p,{});return s.expandSegment(t,m,i,p,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,i,o,a,s,u){var p=this,m=$A(i,a,s),I=m.consumedSegments,F=m.lastChild,G=m.positionalParamSegments;if(!m.matched)return n2(i);var Y=this.applyRedirectCommands(I,a.redirectTo,G);return a.redirectTo.startsWith("/")?AV(Y):this.lineralizeSegments(a,Y).pipe((0,Ro.zg)(function(te){return p.expandSegment(t,i,o,te.concat(s.slice(F)),u,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,i,o,a,s){var u=this;if("**"===o.path)return o.loadChildren?(o._loadedConfig?(0,ur.of)(o._loadedConfig):this.configLoader.load(t.injector,o)).pipe((0,Ar.U)(function(te){return o._loadedConfig=te,new yi(a,{})})):(0,ur.of)(new yi(a,{}));var m=$A(i,o,a),I=m.consumedSegments,F=m.lastChild;if(!m.matched)return n2(i);var G=a.slice(F);return this.getChildConfig(t,o,a).pipe((0,Ro.zg)(function(te){var ce=te.module,xe=te.routes,lt=e2(i,I,G,xe),nt=lt.segmentGroup,it=lt.slicedSegments,ht=new yi(nt.segments,nt.children);if(0===it.length&&ht.hasChildren())return u.expandChildren(ce,xe,ht).pipe((0,Ar.U)(function(xt){return new yi(I,xt)}));if(0===xe.length&&0===it.length)return(0,ur.of)(new yi(I,{}));var tt=bu(o)===s;return u.expandSegment(ce,ht,xe,it,tt?fi:s,!0).pipe((0,Ar.U)(function(xt){return new yi(I.concat(xt.segments),xt.children)}))}))}},{key:"getChildConfig",value:function(t,i,o){var a=this;return i.children?(0,ur.of)(new _Z(i.children,t)):i.loadChildren?void 0!==i._loadedConfig?(0,ur.of)(i._loadedConfig):this.runCanLoadGuards(t.injector,i,o).pipe((0,Ro.zg)(function(s){return s?a.configLoader.load(t.injector,i).pipe((0,Ar.U)(function(u){return i._loadedConfig=u,u})):function(n){return new qo.y(function(r){return r.error(sZ("Cannot load children because the guard of the route \"path: '".concat(n.path,"'\" returned false")))})}(i)})):(0,ur.of)(new _Z([],t))}},{key:"runCanLoadGuards",value:function(t,i,o){var a=this,s=i.canLoad;if(!s||0===s.length)return(0,ur.of)(!0);var u=s.map(function(p){var b,m=t.get(p);if(function(n){return n&&jf(n.canLoad)}(m))b=m.canLoad(i,o);else{if(!jf(m))throw new Error("Invalid CanLoad guard");b=m(i,o)}return rd(b)});return(0,ur.of)(u).pipe(vS(),(0,ba.b)(function(p){if(Km(p)){var m=sZ('Redirecting to "'.concat(a.urlSerializer.serialize(p),'"'));throw m.url=p,m}}),(0,Ar.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,ur.of)(o);if(a.numberOfChildren>1||!a.children[fi])return Tie(t.redirectTo);a=a.children[fi]}}},{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 Jm(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}},{key:"createQueryParams",value:function(t,i){var o={};return es(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 es(i.children,function(m,b){p[b]=s.createSegmentGroup(t,m,o,a)}),new yi(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 bZ(n){for(var r={},t=0,i=Object.keys(n.children);t<i.length;t++){var o=i[t],s=bZ(n.children[o]);(s.segments.length>0||s.hasChildren())&&(r[o]=s)}return function(n){if(1===n.numberOfChildren&&n.children[fi]){var r=n.children[fi];return new yi(n.segments.concat(r.segments),r.children)}return n}(new yi(n.segments,r))}var DV=function n(r){(0,g.Z)(this,n),this.path=r,this.route=this.path[this.path.length-1]},r2=function n(r,t){(0,g.Z)(this,n),this.component=r,this.route=t};function Aie(n,r,t){var i=n._root;return _S(i,r?r._root:null,t,[i.value])}function o2(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 _S(n,r,t,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=fS(r);return n.children.forEach(function(s){Pie(s,a[s.value.outlet],t,i.concat([s.value]),o),delete a[s.value.outlet]}),es(a,function(s,u){return yS(s,t.getContext(u),o)}),o}function Pie(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=Iie(s,a,a.routeConfig.runGuardsAndResolvers);p?o.canActivateChecks.push(new DV(i)):(a.data=s.data,a._resolvedData=s._resolvedData),_S(n,r,a.component?u?u.children:null:t,i,o),p&&u&&u.outlet&&u.outlet.isActivated&&o.canDeactivateChecks.push(new r2(u.outlet.component,s))}else s&&yS(r,u,o),o.canActivateChecks.push(new DV(i)),_S(n,null,a.component?u?u.children:null:t,i,o);return o}function Iie(n,r,t){if("function"==typeof t)return t(n,r);switch(t){case"pathParamsChange":return!Qm(n.url,r.url);case"pathParamsOrQueryParamsChange":return!Qm(n.url,r.url)||!nd(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hZ(n,r)||!nd(n.queryParams,r.queryParams);case"paramsChange":default:return!hZ(n,r)}}function yS(n,r,t){var i=fS(n),o=n.value;es(i,function(a,s){yS(a,o.component?r?r.children.getContext(s):null:r,t)}),t.canDeactivateChecks.push(new r2(o.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,o))}var Vie=function n(){(0,g.Z)(this,n)};function OV(n){return new qo.y(function(r){return r.error(n)})}var jie=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=e2(this.urlTree.root,[],[],this.config.filter(function(u){return void 0===u.redirectTo}),this.relativeLinkResolution).segmentGroup,i=this.processSegmentGroup(this.config,t,fi);if(null===i)return null;var o=new JA([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},fi,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new pp(o,i),s=new fV(this.url,a);return this.inheritParamsAndData(s._root),s}},{key:"inheritParamsAndData",value:function(t){var i=this,o=t.value,a=pV(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=xV(t,u),b=this.processSegmentGroup(m,p,u);if(null===b)return null;o.push.apply(o,(0,y.Z)(b))}var I=PV(o);return function(n){n.sort(function(r,t){return r.value.outlet===fi?-1:t.value.outlet===fi?1:r.value.outlet.localeCompare(t.value.outlet)})}(I),I}},{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(b){s.e(b)}finally{s.f()}return EV(i,o,a)?[]:null}},{key:"processSegmentAgainstRoute",value:function(t,i,o,a){if(t.redirectTo||!kV(t,i,o,a))return null;var s,u=[],p=[];if("**"===t.path){var m=o.length>0?$H(o).parameters:{};s=new JA(o,m,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,NV(t),bu(t),t.component,t,IV(i),RV(i)+o.length,ZV(t))}else{var b=$A(i,t,o);if(!b.matched)return null;u=b.consumedSegments,p=o.slice(b.lastChild),s=new JA(u,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,NV(t),bu(t),t.component,t,IV(i),RV(i)+u.length,ZV(t))}var I=function(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),F=e2(i,u,p,I.filter(function(lt){return void 0===lt.redirectTo}),this.relativeLinkResolution),G=F.segmentGroup,Y=F.slicedSegments;if(0===Y.length&&G.hasChildren()){var te=this.processChildren(I,G);return null===te?null:[new pp(s,te)]}if(0===I.length&&0===Y.length)return[new pp(s,[])];var ce=bu(t)===a,xe=this.processSegment(I,G,Y,ce?fi:a);return null===xe?null:[new pp(s,xe)]}}]),n}();function PV(n){var o,r=[],t=new Set,i=(0,_.Z)(n);try{var a=function(){var F=o.value;if(!function(n){var r=n.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(F))return r.push(F),"continue";var Y,G=r.find(function(te){return F.value.routeConfig===te.value.routeConfig});void 0!==G?((Y=G.children).push.apply(Y,(0,y.Z)(F.children)),t.add(G)):r.push(F)};for(i.s();!(o=i.n()).done;)a()}catch(I){i.e(I)}finally{i.f()}var p,u=(0,_.Z)(t);try{for(u.s();!(p=u.n()).done;){var m=p.value,b=PV(m.children);r.push(new pp(m.value,b))}}catch(I){u.e(I)}finally{u.f()}return r.filter(function(I){return!t.has(I)})}function IV(n){for(var r=n;r._sourceSegment;)r=r._sourceSegment;return r}function RV(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 NV(n){return n.data||{}}function ZV(n){return n.resolve||{}}function CZ(n){return(0,Os.w)(function(r){var t=n(r);return t?(0,Ja.D)(t).pipe((0,Ar.U)(function(){return r})):(0,ur.of)(r)})}var toe=function(n){(0,O.Z)(t,n);var r=(0,P.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}()),SZ=new e.OlP("ROUTES"),LV=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,Ar.U)(function(u){o.onLoadEndListener&&o.onLoadEndListener(i);var p=u.create(t);return new _Z(XH(p.injector.get(SZ,void 0,e.XFs.Self|e.XFs.Optional)).map(yZ),p)}),(0,qf.K)(function(u){throw i._loader$=void 0,u}));return i._loader$=new yre.c(s,function(){return new Rn.xQ}).pipe((0,Cre.x)()),i._loader$}},{key:"loadModuleFactory",value:function(t){var i=this;return"string"==typeof t?(0,Ja.D)(this.loader.load(t)):rd(t()).pipe((0,Ro.zg)(function(o){return o instanceof e.YKP?(0,ur.of)(o):(0,Ja.D)(i.compiler.compileModuleAsync(o))}))}}]),n}(),noe=function n(){(0,g.Z)(this,n),this.outlet=null,this.route=null,this.resolver=null,this.children=new z_,this.attachRef=null},z_=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)}},{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 noe,this.contexts.set(t,i)),i}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),n}(),ioe=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 ooe(n){throw n}function aoe(n,r,t){return r.parse("/")}function FV(n,r){return(0,ur.of)(null)}var soe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},loe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Dr=function(){var n=function(){function r(t,i,o,a,s,u,p,m){var b=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 Rn.xQ,this.errorHandler=ooe,this.malformedUriErrorHandler=aoe,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:FV,afterPreactivation:FV},this.urlHandlingStrategy=new ioe,this.routeReuseStrategy=new toe,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 Jm(new yi([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new LV(u,p,function(te){return b.triggerEvent(new GH(te))},function(te){return b.triggerEvent(new YH(te))}),this.routerState=dV(this.currentUrlTree,this.rootComponentType),this.transitions=new ji.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,_i.h)(function(s){return 0!==s.id}),(0,Ar.U)(function(s){return Object.assign(Object.assign({},s),{extractedUrl:o.urlHandlingStrategy.extract(s.rawUrl)})}),(0,Os.w)(function(s){var u=!1,p=!1;return(0,ur.of)(s).pipe((0,ba.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,Os.w)(function(m){var b=!o.navigated||m.extractedUrl.toString()!==o.browserUrlTree.toString(),I=("reload"===o.onSameUrlNavigation||b)&&o.urlHandlingStrategy.shouldProcessUrl(m.rawUrl);if(a2(m.source)&&(o.browserUrlTree=m.rawUrl),I)return(0,ur.of)(m).pipe((0,Os.w)(function(it){var ht=o.transitions.getValue();return a.next(new qA(it.id,o.serializeUrl(it.extractedUrl),it.source,it.restoredState)),ht!==o.transitions.getValue()?Gm.E:Promise.resolve(it)}),function(n,r,t,i){return(0,Os.w)(function(o){return function(n,r,t,i,o){return new kie(n,r,t,i,o).apply()}(n,r,t,o.extractedUrl,i).pipe((0,Ar.U)(function(a){return Object.assign(Object.assign({},o),{urlAfterRedirects:a})}))})}(o.ngModule.injector,o.configLoader,o.urlSerializer,o.config),(0,ba.b)(function(it){o.currentNavigation=Object.assign(Object.assign({},o.currentNavigation),{finalUrl:it.urlAfterRedirects})}),function(n,r,t,i,o){return(0,Ro.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 jie(n,r,t,i,o,a).recognize();return null===s?OV(new Vie):(0,ur.of)(s)}catch(u){return OV(u)}}(n,r,a.urlAfterRedirects,t(a.urlAfterRedirects),i,o).pipe((0,Ar.U)(function(s){return Object.assign(Object.assign({},a),{targetSnapshot:s})}))})}(o.rootComponentType,o.config,function(it){return o.serializeUrl(it)},o.paramsInheritanceStrategy,o.relativeLinkResolution),(0,ba.b)(function(it){"eager"===o.urlUpdateStrategy&&(it.extras.skipLocationChange||o.setBrowserUrl(it.urlAfterRedirects,it),o.browserUrlTree=it.urlAfterRedirects);var ht=new Sre(it.id,o.serializeUrl(it.extractedUrl),o.serializeUrl(it.urlAfterRedirects),it.targetSnapshot);a.next(ht)}));if(b&&o.rawUrlTree&&o.urlHandlingStrategy.shouldProcessUrl(o.rawUrlTree)){var Y=m.extractedUrl,te=m.source,ce=m.restoredState,xe=m.extras,lt=new qA(m.id,o.serializeUrl(Y),te,ce);a.next(lt);var nt=dV(Y,o.rootComponentType).snapshot;return(0,ur.of)(Object.assign(Object.assign({},m),{targetSnapshot:nt,urlAfterRedirects:Y,extras:Object.assign(Object.assign({},xe),{skipLocationChange:!1,replaceUrl:!1})}))}return o.rawUrlTree=m.rawUrl,o.browserUrlTree=m.urlAfterRedirects,m.resolve(null),Gm.E}),CZ(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,ba.b)(function(m){var b=new Tre(m.id,o.serializeUrl(m.extractedUrl),o.serializeUrl(m.urlAfterRedirects),m.targetSnapshot);o.triggerEvent(b)}),(0,Ar.U)(function(m){return Object.assign(Object.assign({},m),{guards:Aie(m.targetSnapshot,m.currentSnapshot,o.rootContexts)})}),function(n,r){return(0,Ro.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,ur.of)(Object.assign(Object.assign({},t),{guardsResult:!0})):function(n,r,t,i){return(0,Ja.D)(n).pipe((0,Ro.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,ur.of)(!0);var s=a.map(function(u){var m,p=o2(u,r,o);if(function(n){return n&&jf(n.canDeactivate)}(p))m=rd(p.canDeactivate(n,r,t,i));else{if(!jf(p))throw new Error("Invalid CanDeactivate guard");m=rd(p(n,r,t,i))}return m.pipe((0,q_.P)())});return(0,ur.of)(s).pipe(vS())}(o.component,o.route,t,r,i)}),(0,q_.P)(function(o){return!0!==o},!0))}(u,i,o,n).pipe((0,Ro.zg)(function(p){return p&&function(n){return"boolean"==typeof n}(p)?function(n,r,t,i){return(0,Ja.D)(r).pipe((0,cS.b)(function(o){return(0,qH.z)(function(n,r){return null!==n&&r&&r(new Ere(n)),(0,ur.of)(!0)}(o.route.parent,i),function(n,r){return null!==n&&r&&r(new Are(n)),(0,ur.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,iZ.P)(function(){var u=s.guards.map(function(p){var b,m=o2(p,s.node,t);if(function(n){return n&&jf(n.canActivateChild)}(m))b=rd(m.canActivateChild(i,n));else{if(!jf(m))throw new Error("Invalid CanActivateChild guard");b=rd(m(i,n))}return b.pipe((0,q_.P)())});return(0,ur.of)(u).pipe(vS())})});return(0,ur.of)(a).pipe(vS())}(n,o.path,t),function(n,r,t){var i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return(0,ur.of)(!0);var o=i.map(function(a){return(0,iZ.P)(function(){var u,s=o2(a,r,t);if(function(n){return n&&jf(n.canActivate)}(s))u=rd(s.canActivate(r,n));else{if(!jf(s))throw new Error("Invalid CanActivate guard");u=rd(s(r,n))}return u.pipe((0,q_.P)())})});return(0,ur.of)(o).pipe(vS())}(n,o.route,t))}),(0,q_.P)(function(o){return!0!==o},!0))}(i,s,n,r):(0,ur.of)(p)}),(0,Ar.U)(function(p){return Object.assign(Object.assign({},t),{guardsResult:p})}))})}(o.ngModule.injector,function(m){return o.triggerEvent(m)}),(0,ba.b)(function(m){if(Km(m.guardsResult)){var b=sZ('Redirecting to "'.concat(o.serializeUrl(m.guardsResult),'"'));throw b.url=m.guardsResult,b}var I=new xre(m.id,o.serializeUrl(m.extractedUrl),o.serializeUrl(m.urlAfterRedirects),m.targetSnapshot,!!m.guardsResult);o.triggerEvent(I)}),(0,_i.h)(function(m){return!!m.guardsResult||(o.restoreHistory(m),o.cancelNavigationTransition(m,""),!1)}),CZ(function(m){if(m.guards.canActivateChecks.length)return(0,ur.of)(m).pipe((0,ba.b)(function(b){var I=new wre(b.id,o.serializeUrl(b.extractedUrl),o.serializeUrl(b.urlAfterRedirects),b.targetSnapshot);o.triggerEvent(I)}),(0,Os.w)(function(b){var I=!1;return(0,ur.of)(b).pipe(function(n,r){return(0,Ro.zg)(function(t){var i=t.targetSnapshot,o=t.guards.canActivateChecks;if(!o.length)return(0,ur.of)(t);var a=0;return(0,Ja.D)(o).pipe((0,cS.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,ur.of)({});var a={};return(0,Ja.D)(o).pipe((0,Ro.zg)(function(s){return function(n,r,t,i){var o=o2(n,r,i);return rd(o.resolve?o.resolve(r,t):o(r,t))}(n[s],r,t,i).pipe((0,ba.b)(function(u){a[s]=u}))}),(0,Xg.h)(1),(0,Ro.zg)(function(){return Object.keys(a).length===o.length?(0,ur.of)(a):Gm.E}))}(n._resolve,n,r,i).pipe((0,Ar.U)(function(a){return n._resolvedData=a,n.data=Object.assign(Object.assign({},n.data),pV(n,t).resolve),null}))}(s.route,i,n,r)}),(0,ba.b)(function(){return a++}),(0,Xg.h)(1),(0,Ro.zg)(function(s){return a===o.length?(0,ur.of)(t):Gm.E}))})}(o.paramsInheritanceStrategy,o.ngModule.injector),(0,ba.b)({next:function(){return I=!0},complete:function(){I||(o.restoreHistory(b),o.cancelNavigationTransition(b,"At least one route resolver didn't emit any value."))}}))}),(0,ba.b)(function(b){var I=new kre(b.id,o.serializeUrl(b.extractedUrl),o.serializeUrl(b.urlAfterRedirects),b.targetSnapshot);o.triggerEvent(I)}))}),CZ(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,Ar.U)(function(m){var b=function(n,r,t){var i=QA(n,r._root,t?t._root:void 0);return new cV(i,r)}(o.routeReuseStrategy,m.targetSnapshot,m.currentRouterState);return Object.assign(Object.assign({},m),{targetRouterState:b})}),(0,ba.b)(function(m){o.currentUrlTree=m.urlAfterRedirects,o.rawUrlTree=o.urlHandlingStrategy.merge(o.currentUrlTree,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,Ar.U)(function(o){return new cie(t,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(o.rootContexts,o.routeReuseStrategy,function(m){return o.triggerEvent(m)}),(0,ba.b)({next:function(){u=!0},complete:function(){u=!0}}),(0,zH.x)(function(){if(!u&&!p){var m="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,m)}o.currentNavigation=null}),(0,qf.K)(function(m){if(p=!0,function(n){return n&&n[QH]}(m)){var b=Km(m.url);b||(o.navigated=!0,o.restoreHistory(s,!0));var I=new aZ(s.id,o.serializeUrl(s.extractedUrl),m.message);a.next(I),b?setTimeout(function(){var G=o.urlHandlingStrategy.merge(m.url,o.rawUrlTree),Y={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===o.urlUpdateStrategy||a2(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 F=new WH(s.id,o.serializeUrl(s.extractedUrl),m);a.next(F);try{s.resolve(o.errorHandler(m))}catch(G){s.reject(G)}}return Gm.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 b=Object.assign({},u);delete b.navigationId,delete b.\u0275routerPageId,0!==Object.keys(b).length&&(m.state=b)}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){TV(i),this.config=i.map(yZ),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,b=a||this.routerState.root,I=m?this.currentUrlTree.fragment:u,F=null;switch(p){case"merge":F=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":F=this.currentUrlTree.queryParams;break;default:F=s||null}return null!==F&&(F=this.removeEmptyProps(F)),nie(b,this.currentUrlTree,i,F,null!=I?I:null)}},{key:"navigateByUrl",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},a=Km(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 uoe(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({},soe):!1===o?Object.assign({},loe):o,Km(i))return tV(this.currentUrlTree,i,a);var s=this.parseUrl(i);return tV(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 Ym(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: ")})}},{key:"scheduleNavigation",value:function(i,o,a,s,u){var p,m;if(this.disposed)return Promise.resolve(!1);var te,ce,xe,b=this.getTransition(),I=a2(o)&&b&&!a2(b.source),Y=(this.lastSuccessfulId===b.id||this.currentNavigation?b.rawUrl:b.urlAfterRedirects).toString()===i.toString();if(I&&Y)return Promise.resolve(!0);u?(te=u.resolve,ce=u.reject,xe=u.promise):xe=new Promise(function(ht,Qe){te=ht,ce=Qe});var nt,lt=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),nt=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):nt=0,this.setTransition({id:lt,targetPageId:nt,source:o,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:i,extras:s,resolve:te,reject:ce,promise:xe,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),xe.catch(function(ht){return Promise.reject(ht)})}},{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 aZ(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(lZ),e.LFG(z_),e.LFG(Mt.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 uoe(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 a2(n){return"imperative"!==n}var ia=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 Rn.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:G_(this.skipLocationChange),replaceUrl:G_(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:G_(this.preserveFragment)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Fr),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}(),W_=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 Rn.xQ,this.subscription=t.events.subscribe(function(s){s instanceof Ym&&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:G_(this.skipLocationChange),replaceUrl:G_(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:G_(this.preserveFragment)})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(Dr),e.Y36(Fr),e.Y36(Mt.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 G_(n){return""===n||!!n}var s2=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||fi,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 poe(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(z_),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}(),poe=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===Fr?this.route:t===z_?this.childContexts:this.parent.get(t,i)}}]),n}(),BV=function n(){(0,g.Z)(this,n)},foe=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,ur.of)(null)}))}}]),n}(),UV=function(){function n(){(0,g.Z)(this,n)}return(0,T.Z)(n,[{key:"preload",value:function(t,i){return(0,ur.of)(null)}}]),n}(),HV=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 LV(i,o,function(b){return t.triggerEvent(new GH(b))},function(b){return t.triggerEvent(new YH(b))})}return(0,T.Z)(r,[{key:"setUpPreloading",value:function(){var i=this;this.subscription=this.router.events.pipe((0,_i.h)(function(o){return o instanceof Ym}),(0,cS.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(b){s.e(b)}finally{s.f()}return(0,Ja.D)(a).pipe((0,oZ.J)(),(0,Ar.U)(function(b){}))}},{key:"preloadConfig",value:function(i,o){var a=this;return this.preloadingStrategy.preload(o,function(){return(o._loadedConfig?(0,ur.of)(o._loadedConfig):a.loader.load(i.injector,o)).pipe((0,Ro.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(Dr),e.LFG(e.v3s),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(BV))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),TZ=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 qA?(i.store[i.lastId]=i.viewportScroller.getScrollPosition(),i.lastSource=o.navigationTrigger,i.restoredId=o.restoredState?o.restoredState.navigationId:0):o instanceof Ym&&(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 JH&&(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 JH(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(Dr),e.LFG(Mt.EM),e.LFG(void 0))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Xm=new e.OlP("ROUTER_CONFIGURATION"),VV=new e.OlP("ROUTER_FORROOT_GUARD"),moe=[Mt.Ye,{provide:lZ,useClass:oV},{provide:Dr,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,b=new Dr(null,n,r,t,i,o,a,XH(s));return p&&(b.urlHandlingStrategy=p),m&&(b.routeReuseStrategy=m),Coe(u,b),u.enableTracing&&b.events.subscribe(function(I){var F,G;null===(F=console.group)||void 0===F||F.call(console,"Router Event: ".concat(I.constructor.name)),console.log(I.toString()),console.log(I),null===(G=console.groupEnd)||void 0===G||G.call(console)}),b},deps:[lZ,z_,Mt.Ye,e.zs3,e.v3s,e.Sil,SZ,Xm,[function n(){(0,g.Z)(this,n)},new e.FiY],[function n(){(0,g.Z)(this,n)},new e.FiY]]},z_,{provide:Fr,useFactory:function(n){return n.routerState.root},deps:[Dr]},{provide:e.v3s,useClass:e.EAV},HV,UV,foe,{provide:Xm,useValue:{enableTracing:!1}}];function voe(){return new e.PXZ("Router",Dr)}var qV=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:[moe,jV(i),{provide:VV,useFactory:yoe,deps:[[Dr,new e.FiY,new e.tp0]]},{provide:Xm,useValue:o||{}},{provide:Mt.S$,useFactory:_oe,deps:[Mt.lw,[new e.tBr(Mt.mr),new e.FiY],Xm]},{provide:TZ,useFactory:goe,deps:[Dr,Mt.EM,Xm]},{provide:BV,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:UV},{provide:e.PXZ,multi:!0,useFactory:voe},[xZ,{provide:e.ip1,multi:!0,useFactory:Toe,deps:[xZ]},{provide:zV,useFactory:xoe,deps:[xZ]},{provide:e.tb,multi:!0,useExisting:zV}]]}}},{key:"forChild",value:function(i){return{ngModule:r,providers:[jV(i)]}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(VV,8),e.LFG(Dr,8))},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({}),n}();function goe(n,r,t){return t.scrollOffset&&r.setOffset(t.scrollOffset),new TZ(n,r,t)}function _oe(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new Mt.Do(n,r):new Mt.b0(n,r)}function yoe(n){return"guarded"}function jV(n){return[{provide:e.deG,multi:!0,useValue:n},{provide:SZ,multi:!0,useValue:n}]}function Coe(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 xZ=function(){var n=function(){function r(t){(0,g.Z)(this,r),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Rn.xQ}return(0,T.Z)(r,[{key:"appInitializer",value:function(){var i=this;return this.injector.get(Mt.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(Dr),p=i.injector.get(Xm);return"disabled"===p.initialNavigation?(u.setUpLocationChangeListener(),a(!0)):"enabled"===p.initialNavigation||"enabledBlocking"===p.initialNavigation?(u.hooks.afterPreactivation=function(){return i.initNavigation?(0,ur.of)(null):(i.initNavigation=!0,a(!0),i.resultOfPreactivationDone)},u.initialNavigation()):a(!0),s})}},{key:"bootstrapListener",value:function(i){var o=this.injector.get(Xm),a=this.injector.get(HV),s=this.injector.get(TZ),u=this.injector.get(Dr),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 Toe(n){return n.appInitializer.bind(n)}function xoe(n){return n.bootstrapListener.bind(n)}var zV=new e.OlP("Router Initializer"),l2=function(){return function(){}}(),Zo=f(96153),zr=function(){function n(r){this.httpServer=r,this.serverIds=[],this.serviceInitialized=new Rn.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(b){return"bundled"===b.location});if(p)p.host=r,p.port=t,p.protocol=location.protocol,i.update(p).then(function(b){a(b)},s);else{var m=new l2;m.name="local",m.host=r,m.port=t,m.location="bundled",m.protocol=location.protocol,i.create(m).then(function(b){a(b)},s)}},s)})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),bS=function(){return function(r,t,i){void 0===i&&(i=!1),this.visible=r,this.error=t,this.clear=i}}(),zf=function(){function n(){this.state=new ji.X(new bS(!1))}return n.prototype.setError=function(r){this.state.next(new bS(!1,r.error))},n.prototype.clear=function(){this.state.next(new bS(!1,null,!0))},n.prototype.activate=function(){this.state.next(new bS(!0))},n.prototype.deactivate=function(){this.state.next(new bS(!1))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function koe(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 Eoe(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 Moe(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 Aoe(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 WV=".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",Ooe=(0,dn.pj)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}(),"primary"),GV=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Roe=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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 b=i._diameters;return m._spinnerAnimationLabel=m._getSpinnerAnimationLabel(),b.has(s.head)||b.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,In.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,In.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,In.su)(a)))}},{key:"ngOnInit",value:function(){var a=this._elementRef.nativeElement;this._styleRoot=(0,ti.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}(Ooe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(ti.t4),e.Y36(Mt.K0,8),e.Y36(ss.Qb,8),e.Y36(GV))},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,koe,1,9,"circle",1),e.YNc(2,Eoe,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:[Mt.RF,Mt.n9],styles:[WV],encapsulation:2,changeDetection:0}),n._diameters=new WeakMap,n}(),YV=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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}(Roe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(ti.t4),e.Y36(Mt.K0,8),e.Y36(ss.Qb,8),e.Y36(GV))},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,Moe,1,9,"circle",1),e.YNc(2,Aoe,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:[Mt.RF,Mt.n9],styles:[WV],encapsulation:2,changeDetection:0}),n}(),Noe=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:[[dn.BQ,Mt.ez],dn.BQ]}),n}(),Zoe=f(11363),kZ=f(91925),Loe=["*"];function JV(n){return Error('Unable to find icon with the name "'.concat(n,'"'))}function QV(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 KV(n){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(n,'".'))}var $m=function n(r,t,i){(0,g.Z)(this,n),this.url=r,this.svgText=t,this.options=i},CS=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 $m(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 KV(a);return this._addSvgIconConfig(i,o,new $m("",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 $m(o,null,a))}},{key:"addSvgIconSetLiteralInNamespace",value:function(i,o,a){var s=this._sanitizer.sanitize(e.q3G.HTML,o);if(!s)throw KV(o);return this._addSvgIconSetConfig(i,new $m("",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 QV(i);var s=this._cachedIconsByUrl.get(a);return s?(0,ur.of)(u2(s)):this._loadSvgIconFromConfig(new $m(i,null)).pipe((0,ba.b)(function(u){return o._cachedIconsByUrl.set(a,u)}),(0,Ar.U)(function(u){return u2(u)}))}},{key:"getNamedSvgIcon",value:function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=XV(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,Zoe._)(JV(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,ur.of)(u2(this._svgElementFromConfig(i))):this._loadSvgIconFromConfig(i).pipe((0,Ar.U)(function(o){return u2(o)}))}},{key:"_getSvgFromIconSetConfigs",value:function(i,o){var a=this,s=this._extractIconWithNameFromAnySet(i,o);if(s)return(0,ur.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 b=a._sanitizer.sanitize(e.q3G.RESOURCE_URL,p.url),I="Loading icon set URL: ".concat(b," failed: ").concat(m.message);return a._errorHandler.handleError(new Error(I)),(0,ur.of)(null)}))});return(0,kZ.D)(u).pipe((0,Ar.U)(function(){var p=a._extractIconWithNameFromAnySet(i,o);if(!p)throw JV(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,ba.b)(function(a){return i.svgText=a}),(0,Ar.U)(function(){return o._svgElementFromConfig(i)}))}},{key:"_loadSvgIconSetFromConfig",value:function(i){return i.svgText?(0,ur.of)(null):this._fetchIcon(i).pipe((0,ba.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 b=0;b<i.childNodes.length;b++)i.childNodes[b].nodeType===this._document.ELEMENT_NODE&&o.appendChild(i.childNodes[b].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 QV(s);var b=this._inProgressUrlFetches.get(m);if(b)return b;var I=this._httpClient.get(m,{responseType:"text",withCredentials:p}).pipe((0,zH.x)(function(){return o._inProgressUrlFetches.delete(m)}),(0,Kd.B)());return this._inProgressUrlFetches.set(m,I),I}},{key:"_addSvgIconConfig",value:function(i,o,a){return this._svgIconConfigs.set(XV(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 Uoe(s)?new $m(s.url,null,s.options):new $m(s,null)}}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(Vc.eN,8),e.LFG(B.H7),e.LFG(Mt.K0,8),e.LFG(e.qLn))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(Vc.eN,8),e.LFG(B.H7),e.LFG(Mt.K0,8),e.LFG(e.qLn))},token:n,providedIn:"root"}),n}();function u2(n){return n.cloneNode(!0)}function XV(n,r){return n+":"+r}function Uoe(n){return!(!n.url||!n.options)}var Y_,Hoe=(0,dn.pj)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}()),Voe=new e.OlP("mat-icon-location",{providedIn:"root",factory:function(){var n=(0,e.f3M)(Mt.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}}),$V=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],zoe=$V.map(function(r){return"[".concat(r,"]")}).join(", "),Woe=/^url\(['"]?#(.*?)['"]?\)$/,pr=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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=Ya.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,In.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(zoe),u=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,p=function(I){$V.forEach(function(F){var G=s[I],Y=G.getAttribute(F),te=Y?Y.match(Woe):null;if(te){var ce=u.get(G);ce||u.set(G,ce=[]),ce.push({name:F,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,C.Z)(u,2),m=p[0],b=p[1];m&&(this._svgNamespace=m),b&&(this._svgName=b),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(b,m).pipe((0,qi.q)(1)).subscribe(function(I){return s._setSvgElement(I)},function(I){var F="Error retrieving icon ".concat(m,":").concat(b,"! ").concat(I.message);s._errorHandler.handleError(new Error(F))})}}}]),i}(Hoe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(CS),e.$8M("aria-hidden"),e.Y36(Voe),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:Loe,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{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}(),EZ=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:[[dn.BQ],dn.BQ]}),n}(),eq=["mat-button",""],tq=["*"],nq=".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",Yoe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Joe=(0,dn.pj)((0,dn.Id)((0,dn.Kr)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}()))),On=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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)(Yoe);try{for(p.s();!(m=p.n()).done;){var b=m.value;u._hasHostAttributes(b)&&u._getHostElement().classList.add(b)}}catch(I){p.e(I)}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}(Joe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(Ti.tE),e.Y36(ss.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(dn.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:eq,ngContentSelectors:tq,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:[dn.wG],styles:[nq],encapsulation:2,changeDetection:0}),n}(),Qoe=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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}(On);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Ti.tE),e.Y36(e.SBq),e.Y36(ss.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:eq,ngContentSelectors:tq,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:[dn.wG],styles:[nq],encapsulation:2,changeDetection:0}),n}(),c2=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:[[dn.si,dn.BQ],dn.BQ]}),n}(),Koe=f(18756),rq=new Set,iq=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):$oe}return(0,T.Z)(r,[{key:"matchMedia",value:function(i){return this._platform.WEBKIT&&function(n){if(!rq.has(n))try{Y_||((Y_=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Y_)),Y_.sheet&&(Y_.sheet.insertRule("@media ".concat(n," {.fx-query-test{ }}"),0),rq.add(n))}catch(r){console.error(r)}}(i),this._matchMedia(i)}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(ti.t4))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(ti.t4))},token:n,providedIn:"root"}),n}();function $oe(n){return{matches:"all"===n||""===n,media:n,addListener:function(){},removeListener:function(){}}}var d2=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 Rn.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 oq((0,In.Eq)(i)).some(function(s){return o._registerQuery(s).mql.matches})}},{key:"observe",value:function(i){var o=this,s=oq((0,In.Eq)(i)).map(function(p){return o._registerQuery(p).observable}),u=(0,lm.aj)(s);return(u=(0,qH.z)(u.pipe((0,qi.q)(1)),u.pipe((0,Koe.T)(1),(0,Qk.b)(0)))).pipe((0,Ar.U)(function(p){var m={matches:!1,breakpoints:{}};return p.forEach(function(b){var I=b.matches,F=b.query;m.matches=m.matches||I,m.breakpoints[F]=I}),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 qo.y(function(p){var m=function(I){return o._zone.run(function(){return p.next(I)})};return a.addListener(m),function(){a.removeListener(m)}}).pipe((0,ea.O)(a),(0,Ar.U)(function(p){return{query:i,matches:p.matches}}),(0,qr.R)(this._destroySubject)),mql:a};return this._queries.set(i,u),u}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(iq),e.LFG(e.R0b))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(iq),e.LFG(e.R0b))},token:n,providedIn:"root"}),n}();function oq(n){return n.map(function(r){return r.split(",")}).reduce(function(r,t){return r.concat(t)}).map(function(r){return r.trim()})}var Wf_Medium="(min-width: 960px) and (max-width: 1279.98px)",Wf_Large="(min-width: 1280px) and (max-width: 1919.98px)",Ni=f(80785),eae={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})))])},aq="tooltip-panel",sq=(0,ti.i$)({passive:!0}),lq=new e.OlP("mat-tooltip-scroll-strategy"),iae={provide:lq,deps:[Xi.aV],useFactory:function(n){return function(){return n.scrollStrategies.reposition({scrollThrottle:20})}}},oae=new e.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),sae=function(){var n=function(){function r(t,i,o,a,s,u,p,m,b,I,F,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=I,this._defaultOptions=F,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 Rn.xQ,this._handleKeydown=function(te){Y._isTooltipVisible()&&te.keyCode===Kr.hY&&!(0,Kr.Vb)(te)&&(te.preventDefault(),te.stopPropagation(),Y._ngZone.run(function(){return Y.hide(0)}))},this._scrollStrategy=b,this._document=G,F&&(F.position&&(this.position=F.position),F.touchGestures&&(this.touchGestures=F.touchGestures)),I.change.pipe((0,qr.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,In.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,qr.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,C.Z)(o,2);i.removeEventListener(a[0],a[1],sq)}),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 Ni.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=a.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,qr.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,qr.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(aq),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,qr.R)(this._destroyed)).subscribe(function(){return i._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,qr.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,qi.q)(1),(0,qr.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(aq,"-");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,C.Z)(a,2);o._elementRef.nativeElement.addEventListener(s[0],s[1],sq)})}},{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(Xi.aV),e.Y36(e.SBq),e.Y36(la.mF),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36(ti.t4),e.Y36(Ti.$s),e.Y36(Ti.tE),e.Y36(void 0),e.Y36(Ca.Is),e.Y36(void 0),e.Y36(Mt.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}(),Ra=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m,b,I,F,G,Y,te){var ce;return(0,g.Z)(this,i),(ce=t.call(this,o,a,s,u,p,m,b,I,F,G,Y,te))._tooltipComponent=uae,ce}return i}(sae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Xi.aV),e.Y36(e.SBq),e.Y36(la.mF),e.Y36(e.s_b),e.Y36(e.R0b),e.Y36(ti.t4),e.Y36(Ti.$s),e.Y36(Ti.tE),e.Y36(lq),e.Y36(Ca.Is,8),e.Y36(oae,8),e.Y36(Mt.K0))},n.\u0275dir=e.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[e.qOj]}),n}(),lae=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Rn.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}(),uae=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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}(lae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.sBO),e.Y36(d2))},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:[Mt.mk],pipes:[Mt.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:[eae.tooltipState]},changeDetection:0}),n}(),uq=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:[iae],imports:[[Ti.rt,Mt.ez,Xi.U8,dn.BQ],dn.BQ,la.ZD]}),n}();function cae(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 pae(n,r){if(1&n&&(e.TgZ(0,"div",1),e.YNc(1,cae,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 MZ=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(zf),e.Y36(Dr))},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,pae,3,2,"div",0),2&t&&e.Q6J("ngIf",i.visible||i.error)},directives:[Mt.O5,YV,pr,On,Ra,ia],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:#00000080;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}(),fae=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(Dr),e.Y36(zr),e.Y36(zf),e.Y36(Mt.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:[MZ],styles:[""]}),n}(),Kn=f(61855),p2=function(){function n(){this.dataChange=new ji.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 hae(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 mae(n,r){}var cq=new e.OlP("MatSnackBarData"),f2=function n(){(0,g.Z)(this,n),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},vae=Math.pow(2,31)-1,AZ=function(){function n(r,t){var i=this;(0,g.Z)(this,n),this._overlayRef=t,this._afterDismissed=new Rn.xQ,this._afterOpened=new Rn.xQ,this._onAction=new Rn.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,vae))}},{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}(),gae=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(AZ),e.Y36(cq))},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,hae,3,1,"div",0)),2&t&&(e.xp6(1),e.Oqu(i.data.message),e.xp6(1),e.Q6J("ngIf",i.hasAction))},directives:[Mt.O5,On],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}(),_ae={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})))])},yae=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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 Rn.xQ,m._onExit=new Rn.xQ,m._onEnter=new Rn.xQ,m._animationState="void",m.attachDomPortal=function(b){return m._assertNotAttached(),m._applySnackBarClasses(),m._portalOutlet.attachDomPortal(b)},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,qi.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}(Ni.en);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ti.t4),e.Y36(f2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["snack-bar-container"]],viewQuery:function(t,i){var o;1&t&&e.Gf(Ni.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,mae,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:[Ni.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:[_ae.snackBarState]}}),n}(),dq=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:[[Xi.U8,Ni.eL,Mt.ez,c2,dn.BQ],dn.BQ]}),n}(),pq=new e.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new f2}}),Cae=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=gae,this.snackBarContainerComponent=yae,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:f2,useValue:o}]}),u=new Ni.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 f2),this._defaultConfig),o),u=this._createOverlay(s),p=this._attachSnackBarContainer(u,s),m=new AZ(p,u);if(i instanceof e.Rgc){var b=new Ni.UE(i,null,{$implicit:s.data,snackBarRef:m});m.instance=p.attachTemplatePortal(b)}else{var I=this._createInjector(s,m),F=new Ni.C5(i,void 0,I),G=p.attachComponentPortal(F);m.instance=G.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe((0,qr.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 Xi.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:AZ,useValue:o},{provide:cq,useValue:i.data}]})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(Xi.aV),e.LFG(Ti.Kd),e.LFG(e.zs3),e.LFG(d2),e.LFG(n,12),e.LFG(pq))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(Xi.aV),e.LFG(Ti.Kd),e.LFG(e.gxx),e.LFG(d2),e.LFG(n,12),e.LFG(pq))},token:n,providedIn:dq}),n}(),rr=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(Cae),e.LFG(e.R0b))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Sae=["*",[["mat-card-footer"]]],Tae=["*","mat-card-footer"],DZ=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}(),fq=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}(),hq=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}(),Mae=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}(),bi=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(ss.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:Tae,decls:2,vars:0,template:function(t,i){1&t&&(e.F$t(Sae),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}(),Aae=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:[[dn.BQ],dn.BQ]}),n}(),Vn=f(36410),mq=(f(54562),(0,ti.i$)({passive:!0})),vq=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 Gm.E;var a=(0,In.fI)(i),s=this._monitoredElements.get(a);if(s)return s.subject;var u=new Rn.xQ,p="cdk-text-field-autofilled",m=function(I){"cdk-text-field-autofill-start"!==I.animationName||a.classList.contains(p)?"cdk-text-field-autofill-end"===I.animationName&&a.classList.contains(p)&&(a.classList.remove(p),o._ngZone.run(function(){return u.next({target:I.target,isAutofilled:!1})})):(a.classList.add(p),o._ngZone.run(function(){return u.next({target:I.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){a.addEventListener("animationstart",m,mq),a.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(a,{subject:u,unlisten:function(){a.removeEventListener("animationstart",m,mq)}}),u}},{key:"stopMonitoring",value:function(i){var o=(0,In.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(ti.t4),e.LFG(e.R0b))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(ti.t4),e.LFG(e.R0b))},token:n,providedIn:"root"}),n}(),gq=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:[[ti.ud]]}),n}(),Pae=new e.OlP("MAT_INPUT_VALUE_ACCESSOR"),Iae=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Rae=0,Nae=(0,dn.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}}()),hr=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m,b,I,F,G){var Y;(0,g.Z)(this,i),(Y=t.call(this,m,u,p,s))._elementRef=o,Y._platform=a,Y._autofillMonitor=I,Y._formField=G,Y._uid="mat-input-".concat(Rae++),Y.focused=!1,Y.stateChanges=new Rn.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(xe){return(0,ti.qK)().has(xe)});var te=Y._elementRef.nativeElement,ce=te.nodeName.toLowerCase();return Y._inputValueAccessor=b||te,Y._previousNativeValue=Y.value,Y.id=Y.id,a.IOS&&F.runOutsideAngular(function(){o.nativeElement.addEventListener("keyup",function(xe){var lt=xe.target;!lt.value&&0===lt.selectionStart&&0===lt.selectionEnd&&(lt.setSelectionRange(1,1),lt.setSelectionRange(0,0))})}),Y._isServer=!Y._platform.isBrowser,Y._isNativeSelect="select"===ce,Y._isTextarea="textarea"===ce,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,In.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,In.Ig)(a)}},{key:"type",get:function(){return this._type},set:function(a){this._type=a||"text",this._validateType(),!this._isTextarea&&(0,ti.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,In.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(){Iae.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()}}]),i}(Nae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(ti.t4),e.Y36(ne.a5,10),e.Y36(ne.F,8),e.Y36(ne.sg,8),e.Y36(dn.rD),e.Y36(Pae,10),e.Y36(vq),e.Y36(e.R0b),e.Y36(Vn.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:9,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))},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:Vn.Eo,useExisting:n}]),e.qOj,e.TTD]}),n}(),Zae=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:[dn.rD],imports:[[gq,Vn.lN,dn.BQ],gq,Vn.lN]}),n}(),hi=f(73044);function Lae(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"You must enter a value"),e.qZA())}function Fae(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 Bae(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 Uae(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 Hae(n,r){if(1&n&&(e.TgZ(0,"mat-form-field"),e.TgZ(1,"mat-select",15),e.YNc(2,Uae,2,2,"mat-option",10),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.authorizations)}}function Vae(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",16),e.qZA())}function qae(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",17),e.qZA())}var jae=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 ne.cw({name:new ne.NI("",[ne.kI.required]),location:new ne.NI(""),protocol:new ne.NI("http:"),authorization:new ne.NI("none"),login:new ne.NI(""),password:new ne.NI("")})}return n.prototype.ngOnInit=function(){return(0,Kn.mG)(this,void 0,void 0,function(){var r=this;return(0,Kn.Jh)(this,function(t){return this.serverService.isServiceInitialized&&this.getServers(),this.serverService.serviceInitialized.subscribe(function(i){return(0,Kn.mG)(r,void 0,void 0,function(){return(0,Kn.Jh)(this,function(o){return i&&this.getServers(),[2]})})}),[2]})})},n.prototype.getServers=function(){return(0,Kn.mG)(this,void 0,void 0,function(){var r,t,i=this;return(0,Kn.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 l2;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(zr),e.Y36(p2),e.Y36(Fr),e.Y36(Dr),e.Y36(rr))},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,Lae,2,0,"mat-error",8),e.qZA(),e.TgZ(11,"mat-form-field"),e.TgZ(12,"mat-select",9),e.YNc(13,Fae,2,2,"mat-option",10),e.qZA(),e.qZA(),e.TgZ(14,"mat-form-field"),e.TgZ(15,"mat-select",11),e.YNc(16,Bae,2,2,"mat-option",10),e.qZA(),e.qZA(),e.YNc(17,Hae,3,1,"mat-form-field",8),e.YNc(18,Vae,2,0,"mat-form-field",8),e.YNc(19,qae,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:[bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,Mt.O5,hi.gD,Mt.sg,On,Vn.TO,dn.ey],styles:["mat-form-field{width:100%}\n"],encapsulation:2}),n}(),zae=0,OZ=new e.OlP("CdkAccordion"),Wae=function(){var n=function(){function r(){(0,g.Z)(this,r),this._stateChanges=new Rn.xQ,this._openCloseAllActions=new Rn.xQ,this.id="cdk-accordion-".concat(zae++),this._multi=!1}return(0,T.Z)(r,[{key:"multi",get:function(){return this._multi},set:function(i){this._multi=(0,In.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:OZ,useExisting:n}]),e.TTD]}),n}(),Gae=0,Jae=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=Ya.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(Gae++),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,In.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,In.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(OZ,12),e.Y36(e.sBO),e.Y36(Li.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:OZ,useValue:void 0}])]}),n}(),Qae=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}(),Kae=["body"];function Xae(n,r){}var $ae=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ese=["mat-expansion-panel-header","*","mat-action-row"];function tse(n,r){if(1&n&&e._UZ(0,"span",2),2&n){var t=e.oxw();e.Q6J("@indicatorRotate",t._getExpandedState())}}var nse=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],rse=["mat-panel-title","mat-panel-description","*"],PZ=new e.OlP("MAT_ACCORDION"),_q="225ms cubic-bezier(0.4,0.0,0.2,1)",yq={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)(_q))]),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)(_q))])},ise=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}(),ose=0,bq=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Ju=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m,b){var I;return(0,g.Z)(this,i),(I=t.call(this,o,a,s))._viewContainerRef=u,I._animationMode=m,I._hideToggle=!1,I.afterExpand=new e.vpe,I.afterCollapse=new e.vpe,I._inputChanges=new Rn.xQ,I._headerId="mat-expansion-panel-header-".concat(ose++),I._bodyAnimationDone=new Rn.xQ,I.accordion=o,I._document=p,I._bodyAnimationDone.pipe((0,sm.x)(function(F,G){return F.fromState===G.fromState&&F.toState===G.toState})).subscribe(function(F){"void"!==F.fromState&&("expanded"===F.toState?I.afterExpand.emit():"collapsed"===F.toState&&I.afterCollapse.emit())}),b&&(I.hideToggle=b.hideToggle),I}return(0,T.Z)(i,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(a){this._hideToggle=(0,In.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,ea.O)(null),(0,_i.h)(function(){return a.expanded&&!a._portal}),(0,qi.q)(1)).subscribe(function(){a._portal=new Ni.UE(a._lazyContent._template,a._viewContainerRef)})}},{key:"ngOnChanges",value:function(a){this._inputChanges.next(a)}},{key:"ngOnDestroy",value:function(){(0,N.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}(Jae);return n.\u0275fac=function(t){return new(t||n)(e.Y36(PZ,12),e.Y36(e.sBO),e.Y36(Li.A8),e.Y36(e.s_b),e.Y36(Mt.K0),e.Y36(ss.Qb,8),e.Y36(bq,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,ise,5),2&t&&e.iGM(a=e.CRH())&&(i._lazyContent=a.first)},viewQuery:function(t,i){var o;1&t&&e.Gf(Kae,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:PZ,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:ese,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($ae),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,Xae,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:[Ni.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:[yq.bodyExpansion]},changeDetection:0}),n}(),lse=(0,dn.sb)(function n(){(0,g.Z)(this,n)}),Qu=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m,b){var I;(0,g.Z)(this,i),(I=t.call(this)).panel=o,I._element=a,I._focusMonitor=s,I._changeDetectorRef=u,I._animationMode=m,I._parentChangeSubscription=Ya.w.EMPTY;var F=o.accordion?o.accordion._stateChanges.pipe((0,_i.h)(function(G){return!(!G.hideToggle&&!G.togglePosition)})):Gm.E;return I.tabIndex=parseInt(b||"")||0,I._parentChangeSubscription=(0,ro.T)(o.opened,o.closed,F,o._inputChanges.pipe((0,_i.h)(function(G){return!!(G.hideToggle||G.disabled||G.togglePosition)}))).subscribe(function(){return I._changeDetectorRef.markForCheck()}),o.closed.pipe((0,_i.h)(function(){return o._containsFocus()})).subscribe(function(){return s.focusVia(a,"program")}),p&&(I.expandedHeight=p.expandedHeight,I.collapsedHeight=p.collapsedHeight),I}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 Kr.L_:case Kr.K5:(0,Kr.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}(lse);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Ju,1),e.Y36(e.SBq),e.Y36(Ti.tE),e.Y36(e.sBO),e.Y36(bq,8),e.Y36(ss.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:rse,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(nse),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,tse,1,1,"span",1)),2&t&&(e.xp6(4),e.Q6J("ngIf",i._showToggle()))},directives:[Mt.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:""}\n'],encapsulation:2,data:{animation:[yq.indicatorRotate]},changeDetection:0}),n}(),use=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}(),id=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}(),od=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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,In.Ig)(a)}},{key:"ngAfterContentInit",value:function(){var a=this;this._headers.changes.pipe((0,ea.O)(this._headers)).subscribe(function(s){a._ownHeaders.reset(s.filter(function(u){return u.panel.accordion===a})),a._ownHeaders.notifyOnChanges()}),this._keyManager=new Ti.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,N.Z)((0,D.Z)(i.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),i}(Wae);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,Qu,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:PZ,useExisting:n}]),e.qOj]}),n}(),cse=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:[[Mt.ez,dn.BQ,Qae,Ni.eL]]}),n}(),Cq=f(93386),IZ=["*"],RZ='.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}.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",""]],"*"],pse=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Sq=(0,dn.Id)((0,dn.Kr)(function(){return function n(){(0,g.Z)(this,n)}}())),gse=(0,dn.Kr)(function(){return function n(){(0,g.Z)(this,n)}}()),Tq=new e.OlP("MatList"),xq=new e.OlP("MatNavList"),Cu=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){var o;return(0,g.Z)(this,i),(o=t.apply(this,arguments))._stateChanges=new Rn.xQ,o}return(0,T.Z)(i,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Sq);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:xq,useExisting:n}]),e.qOj,e.TTD],ngContentSelectors:IZ,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[RZ],encapsulation:2,changeDetection:0}),n}(),NZ=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o){var a;return(0,g.Z)(this,i),(a=t.call(this))._elementRef=o,a._stateChanges=new Rn.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}(Sq);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:Tq,useExisting:n}]),e.qOj,e.TTD],ngContentSelectors:IZ,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[RZ],encapsulation:2,changeDetection:0}),n}(),wq=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}(),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-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n}(),cs=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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 Rn.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,qr.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,In.Ig)(a)}},{key:"ngAfterContentInit",value:function(){(0,dn.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}(gse);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(xq,8),e.Y36(Tq,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,wq,5),e.Suo(o,kq,5),e.Suo(o,dn.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:pse,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:[dn.wG],encapsulation:2,changeDetection:0}),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({imports:[[dn.uc,dn.si,dn.BQ,dn.us,Mt.ez],dn.uc,dn.BQ,dn.us,Cq.t]}),n}(),xse=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(Vc.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:[od,Ju,Qu,id,NZ,cs,On],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-top:20px}"]}),n}(),Mq=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($a))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Aq=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(Mq))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Dq=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($a),e.LFG(Aq))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),wse=[[["caption"]],[["colgroup"],["col"]]],kse=["caption","colgroup, col"],jl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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}(om);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:Li.k,useClass:Li.yy},{provide:om,useExisting:n},{provide:Uc,useExisting:n},{provide:hC,useClass:jk},{provide:gC,useValue:null}]),e.qOj],ngContentSelectors:kse,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){1&t&&(e.F$t(wse),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[rm,yf,Jd,im],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}(),nl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(vf);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:vf,useExisting:n}]),e.qOj]}),n}(),rl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Hc);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:Hc,useExisting:n}]),e.qOj]}),n}(),il=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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,N.Z)((0,D.Z)(i.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),i}(Uu);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:Uu,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),e.qOj]}),n}(),ol=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(qg);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}(),al=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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.\u0275dir=e.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),n}(),zl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(gf);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:gf,useExisting:n}]),e.qOj]}),n}(),Wl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(nm);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:nm,useExisting:n}]),e.qOj]}),n}(),Gl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(vC);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:vC,useExisting:n}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&e.GkF(0,0)},directives:[pu],encapsulation:2}),n}(),Yl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Wg);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:Wg,useExisting:n}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){1&t&&e.GkF(0,0)},directives:[pu],encapsulation:2}),n}(),Zse=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:[[bC,dn.BQ],dn.BQ]}),n}(),Lse=9007199254740991,Oq=function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(){return(0,g.Z)(this,t),r.apply(this,arguments)}return t}(function(n){(0,O.Z)(t,n);var r=(0,P.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 ji.X([]),i._filter=new ji.X(""),i._internalPageChanges=new Rn.xQ,i._renderChangesSubscription=null,i.sortingDataAccessor=function(a,s){var u=a[s];if((0,In.t6)(u)){var p=Number(u);return p<Lse?p:u}return u},i.sortData=function(a,s){var u=s.active,p=s.direction;return u&&""!=p?a.sort(function(m,b){var I=i.sortingDataAccessor(m,u),F=i.sortingDataAccessor(b,u),G=typeof I,Y=typeof F;G!==Y&&("number"===G&&(I+=""),"number"===Y&&(F+=""));var te=0;return null!=I&&null!=F?I>F?te=1:I<F&&(te=-1):null!=I?te=1:null!=F&&(te=-1),te*("asc"==p?1:-1)}):a},i.filterPredicate=function(a,s){var u=Object.keys(a).reduce(function(m,b){return m+a[b]+"\u25ec"},"").toLowerCase(),p=s.trim().toLowerCase();return-1!=u.indexOf(p)},i._data=new ji.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,ro.T)(this._sort.sortChange,this._sort.initialized):(0,ur.of)(null),u=this._paginator?(0,ro.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,ur.of)(null),m=(0,lm.aj)([this._data,this._filter]).pipe((0,Ar.U)(function(F){var G=(0,C.Z)(F,1);return o._filterData(G[0])})),b=(0,lm.aj)([m,s]).pipe((0,Ar.U)(function(F){var G=(0,C.Z)(F,1);return o._orderData(G[0])})),I=(0,lm.aj)([b,u]).pipe((0,Ar.U)(function(F){var G=(0,C.Z)(F,1);return o._pageData(G[0])}));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=I.subscribe(function(F){return o._renderData.next(F)})}},{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}(Li.o2)),Ku=f(15132),Bse=function(n,r){return{hidden:n,lightTheme:r}},Use=/<a href="(.*)">(.*)<\/a><br\/>(.*)<br\/>\s*<button><a .*>(.*)<\/a>\s*<\/button>/i,Pq=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=Use.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(Vc.eN),e.Y36(Ku.f),e.Y36(Mt.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,Bse,!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:[Mt.mk,pr],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 Hse(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 Vse=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($a))},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,Hse,2,1,"ng-container",1),e.qZA()),2&t&&(e.Q6J("disabled",i.disabled),e.xp6(1),e.Q6J("ngIf",i.readyToInstall))},directives:[On,Mt.O5],styles:[""]}),n}();function qse(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Name "),e.qZA())}function jse(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 zse(n,r){1&n&&(e.ynx(0),e._UZ(1,"app-adbutler",14),e.BQk())}function Wse(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e.YNc(1,jse,2,1,"ng-container",13),e.YNc(2,zse,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 Gse(n,r){1&n&&e._UZ(0,"mat-header-cell")}function Yse(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 Jse(n,r){if(1&n&&(e.TgZ(0,"mat-cell",15),e.YNc(1,Yse,1,1,"app-install-software",16),e.qZA()),2&n){var t=r.$implicit;e.xp6(1),e.Q6J("ngIf","adbutler"!==t.type)}}function Qse(n,r){1&n&&e._UZ(0,"mat-header-row")}function Kse(n,r){1&n&&e._UZ(0,"mat-row")}var Xse=function(){function n(r,t){this.installedSoftwareService=r,this.changeDetectorRef=t,this.displayedColumns=["name","actions"]}return n.prototype.ngOnInit=function(){this.dataSource=new $se(this.installedSoftwareService)},n.prototype.onInstalled=function(r){this.dataSource.refresh(),this.changeDetectorRef.detectChanges()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Dq),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,qse,2,0,"mat-header-cell",7),e.YNc(10,Wse,3,2,"mat-cell",8),e.BQk(),e.ynx(11,9),e.YNc(12,Gse,1,0,"mat-header-cell",7),e.YNc(13,Jse,2,1,"mat-cell",10),e.BQk(),e.YNc(14,Qse,1,0,"mat-header-row",11),e.YNc(15,Kse,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,il,rl,nl,zl,Wl,ol,al,Mt.O5,Pq,Vse,Gl,Yl],styles:[""]}),n}(),$se=function(n){function r(t){var i=n.call(this)||this;return i.installedSoftwareService=t,i.installed=new ji.X([]),i}return(0,Kn.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}(Li.o2),ele=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:[On,ia],styles:["div[_ngcontent-%COMP%]{text-align:center}"]}),n}(),tle=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(Fr))},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:[On,ia,Cu,cs],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}(),ca=f(49940),ad=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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Xu=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,ur.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:""})},n.prototype.getVpcsTemplate=function(){return(0,ur.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,ur.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,ur.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,ur.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,ur.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,ur.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,ur.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,ur.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,ur.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}(),$u=f(36889),nle=["input"],rle=function(r){return{enterDuration:r}},ile=["*"],ole=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),Iq=0,sle={provide:ne.JU,useExisting:(0,e.Gpc)(function(){return sl}),multi:!0},Rq=function n(r,t){(0,g.Z)(this,n),this.source=r,this.value=t},Nq=new e.OlP("MatRadioGroup"),Zq=function(){var n=function(){function r(t){(0,g.Z)(this,r),this._changeDetector=t,this._value=null,this._name="mat-radio-group-".concat(Iq++),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,In.Ig)(i),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(i){this._required=(0,In.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 Rq(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}(),sl=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(Zq);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,ll,5),2&t&&e.iGM(a=e.CRH())&&(i._radios=a)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([sle,{provide:Nq,useExisting:n}]),e.qOj]}),n}(),ule=(0,dn.Kr)((0,dn.sb)(function n(r){(0,g.Z)(this,n),this._elementRef=r})),cle=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m,b,I){var F;return(0,g.Z)(this,i),(F=t.call(this,a))._changeDetector=s,F._focusMonitor=u,F._radioDispatcher=p,F._providerOverride=b,F._uniqueId="mat-radio-".concat(++Iq),F.id=F._uniqueId,F.change=new e.vpe,F._checked=!1,F._value=null,F._removeUniqueSelectionListener=function(){},F.radioGroup=o,F._noopAnimations="NoopAnimations"===m,I&&(F.tabIndex=(0,In.su)(I,0)),F._removeUniqueSelectionListener=p.listen(function(G,Y){G!==F.id&&Y===F.name&&(F.checked=!1)}),F}return(0,T.Z)(i,[{key:"checked",get:function(){return this._checked},set:function(a){var s=(0,In.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,In.Ig)(a))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(a){this._required=(0,In.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 Rq(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}(ule);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Zq),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ti.tE),e.Y36(Li.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(nle,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}(),ll=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m,b,I){return(0,g.Z)(this,i),t.call(this,o,a,s,u,p,m,b,I)}return i}(cle);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Nq,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ti.tE),e.Y36(Li.A8),e.Y36(ss.Qb,8),e.Y36(ole,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:ile,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,rle,i._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==i.labelPosition)}},directives:[dn.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}(),dle=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:[[dn.si,dn.BQ],dn.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 ne.NI("",ne.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,ca.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(Fr),e.Y36(zr),e.Y36(ad),e.Y36(Dr),e.Y36(rr),e.Y36(Xu),e.Y36(ne.qu),e.Y36($u.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:[bi,sl,ll,ne._Y,ne.JL,ne.sg,Vn.KE,ne.Fj,hr,ne.JJ,ne.u,On],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}(),Gf=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}(),fle=f(61106),TS=function(){function n(r){this.httpServer=r,this.symbols=new ji.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,fle.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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),mle=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}(),vle=function(n){return{buttonSelected:n}},gle=function(n){return{imageSelected:n}};function _le(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,vle,o.isSelected===i.symbol_id)),e.xp6(1),e.Q6J("ngClass",e.VKq(5,gle,o.isSelected===i.symbol_id))("src",o.getImageSourceForTemplate(i.symbol_id),e.LSH)}}var yle=function(){return{standalone:!0}},Lq=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(TS))},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,_le,3,7,"div",11),e.ALo(19,"filenamefilter"),e.qZA()}2&t&&(e.xp6(16),e.Q6J("ngModel",i.searchText)("ngModelOptions",e.DdM(6,yle)),e.xp6(2),e.Q6J("ngForOf",e.xi3(19,3,i.filteredSymbols,i.searchText)))},directives:[sl,ll,On,pr,ne._Y,ne.JL,ne.F,Vn.KE,hr,ne.Fj,ne.JJ,ne.On,Mt.sg,Mt.mk],pipes:[mle],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}(),sd=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:[On,Lq],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 ble(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 Cle(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 Sle(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 Tle(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 xle(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 wle(n,r){1&n&&(e.TgZ(0,"th",42),e._uU(1,"Name"),e.qZA())}function kle(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 Ele(n,r){1&n&&(e.TgZ(0,"th",42),e._uU(1,"Local port"),e.qZA())}function Mle(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 Ale(n,r){1&n&&(e.TgZ(0,"th",42),e._uU(1,"Type"),e.qZA())}function Dle(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 Ole(n,r){1&n&&(e.TgZ(0,"th",42),e._uU(1,"Remote port"),e.qZA())}function Ple(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 Ile(n,r){1&n&&e._UZ(0,"tr",44)}function Rle(n,r){1&n&&e._UZ(0,"tr",45)}function Nle(n,r){if(1&n&&(e.TgZ(0,"table",33),e.ynx(1,34),e.YNc(2,wle,2,0,"th",35),e.YNc(3,kle,2,1,"td",36),e.BQk(),e.ynx(4,37),e.YNc(5,Ele,2,0,"th",35),e.YNc(6,Mle,2,1,"td",36),e.BQk(),e.ynx(7,38),e.YNc(8,Ale,2,0,"th",35),e.YNc(9,Dle,2,1,"td",36),e.BQk(),e.ynx(10,39),e.YNc(11,Ole,2,0,"th",35),e.YNc(12,Ple,2,1,"td",36),e.BQk(),e.YNc(13,Ile,1,0,"tr",40),e.YNc(14,Rle,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 Zle(n,r){1&n&&e._UZ(0,"br")}var Lle=function(){return{standalone:!0}};function Fle(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,ble,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,Cle,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,Sle,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,Tle,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,xle,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,Nle,15,3,"table",23),e.YNc(52,Zle,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,Lle))("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 Ble(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 Ule=function(n){return{shadowed:n}},Hle=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,Kn.ev)([],this.portsMappingUdp),this.newPort={name:"",port_number:0}},n.prototype.onSave=function(){var r=this;this.cloudNodeTemplate.ports_mapping=(0,Kn.ev)((0,Kn.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(Fr),e.Y36(zr),e.Y36(ad),e.Y36(rr),e.Y36(Gf),e.Y36(Dr))},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,Fle,69,23,"div",4),e.qZA(),e.YNc(6,Ble,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,Ule,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.cloudNodeTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.cloudNodeTemplate))},directives:[Mt.mk,Mt.O5,od,Ju,Qu,id,Vn.KE,hr,ne.Fj,ne.JJ,ne.On,On,hi.gD,Mt.sg,ne.wV,dn.ey,jl,il,rl,nl,zl,Wl,ol,al,Gl,Yl,sd],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 Vle(n,r){}var ZZ=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},qle={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})))])},jle=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m){var b;return(0,g.Z)(this,i),(b=t.call(this))._elementRef=o,b._focusTrapFactory=a,b._changeDetectorRef=s,b._config=p,b._focusMonitor=m,b._animationStateChanged=new e.vpe,b._elementFocusedBeforeDialogWasOpened=null,b._closeInteractionType=null,b.attachDomPortal=function(I){return b._portalOutlet.hasAttached(),b._portalOutlet.attachDomPortal(I)},b._ariaLabelledBy=p.ariaLabelledBy||null,b._document=u,b}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,ti.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,ti.ht)())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var a=this._elementRef.nativeElement,s=(0,ti.ht)();return a===s||a.contains(s)}}]),i}(Ni.en);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(Ti.qV),e.Y36(e.sBO),e.Y36(Mt.K0,8),e.Y36(ZZ),e.Y36(Ti.tE))},n.\u0275dir=e.lG2({type:n,viewQuery:function(t,i){var o;1&t&&e.Gf(Ni.Pl,7),2&t&&e.iGM(o=e.CRH())&&(i._portalOutlet=o.first)},features:[e.qOj]}),n}(),zle=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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}(jle);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,Vle,0,0,"ng-template",0)},directives:[Ni.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:[qle.dialogContainer]}}),n}(),Wle=0,Wr=function(){function n(r,t){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(Wle++);(0,g.Z)(this,n),this._overlayRef=r,this._containerInstance=t,this.id=o,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Rn.xQ,this._afterClosed=new Rn.xQ,this._beforeClosed=new Rn.xQ,this._state=0,t._id=o,t._animationStateChanged.pipe((0,_i.h)(function(a){return"opened"===a.state}),(0,qi.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),t._animationStateChanged.pipe((0,_i.h)(function(a){return"closed"===a.state}),(0,qi.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,_i.h)(function(a){return a.keyCode===Kr.hY&&!i.disableClose&&!(0,Kr.Vb)(a)})).subscribe(function(a){a.preventDefault(),LZ(i,"keyboard")}),r.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():LZ(i,"mouse")})}return(0,T.Z)(n,[{key:"close",value:function(t){var i=this;this._result=t,this._containerInstance._animationStateChanged.pipe((0,_i.h)(function(o){return"closing"===o.state}),(0,qi.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 LZ(n,r,t){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=r),n.close(t)}var ld=new e.OlP("MatDialogData"),Gle=new e.OlP("mat-dialog-default-options"),Fq=new e.OlP("mat-dialog-scroll-strategy"),Jle={provide:Fq,deps:[Xi.aV],useFactory:function(n){return function(){return n.scrollStrategies.block()}}},Qle=function(){var n=function(){function r(t,i,o,a,s,u,p,m,b){var I=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=b,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Rn.xQ,this._afterOpenedAtThisLevel=new Rn.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,iZ.P)(function(){return I.openDialogs.length?I._getAfterAllClosed():I._getAfterAllClosed().pipe((0,ea.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 ZZ)).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 Xi.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:ZZ,useValue:o}]}),u=new Ni.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 Ni.UE(i,null,{$implicit:s.data,dialogRef:u}));else{var p=this._createInjector(s,u,o),m=o.attachComponentPortal(new Ni.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(Ca.Is,null,e.XFs.Optional))&&u.push({provide:Ca.Is,useValue:{value:i.direction,change:(0,ur.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(Xi.aV),e.Y36(e.zs3),e.Y36(void 0),e.Y36(void 0),e.Y36(Xi.Xj),e.Y36(void 0),e.Y36(e.DyG),e.Y36(e.DyG),e.Y36(e.OlP))},n.\u0275dir=e.lG2({type:n}),n}(),zi=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m,b){return(0,g.Z)(this,i),t.call(this,o,a,u,m,b,p,Wr,zle,ld)}return i}(Qle);return n.\u0275fac=function(t){return new(t||n)(e.LFG(Xi.aV),e.LFG(e.zs3),e.LFG(Mt.Ye,8),e.LFG(Gle,8),e.LFG(Fq),e.LFG(n,12),e.LFG(Xi.Xj))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Xle=0,ii=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(Xle++)}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(Wr,8),e.Y36(e.SBq),e.Y36(zi))},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}(),J_=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}(),ni=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 $le=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:[zi,Jle],imports:[[Xi.U8,Ni.eL,dn.BQ],dn.BQ]}),n}(),eue=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(Wr),e.Y36(ld))},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:[ii,J_,ni,On],styles:[".dialogcontainer[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.spacer[_ngcontent-%COMP%]{flex-grow:1}"]}),n}(),Q_=(f(26918),function(){function n(r){this.httpServer=r,this.newTemplateCreated=new Rn.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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}()),da=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(eue,{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(Q_),e.Y36(zi),e.Y36(rr))},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}(),ud=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:[bi],styles:[".header[_ngcontent-%COMP%]{text-align:center;color:#a9a9a9}"]}),n}(),Uq=f(8285),Hq=f(86004),tue=["mat-menu-item",""];function nue(n,r){1&n&&(e.O4$(),e.TgZ(0,"svg",2),e._UZ(1,"polygon",3),e.qZA())}var Vq=["*"];function rue(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 h2={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)")])])},qq=new e.OlP("MatMenuContent"),FZ=new e.OlP("MAT_MENU_PANEL"),iue=(0,dn.Kr)((0,dn.Id)(function(){return function n(){(0,g.Z)(this,n)}}())),Hr=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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 Rn.xQ,m._focused=new Rn.xQ,m._highlighted=!1,m._triggersSubmenu=!1,u&&u.addItem&&u.addItem((0,uS.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 b=p[m];null===(a=b.parentNode)||void 0===a||a.removeChild(b)}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}(iue);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(Mt.K0),e.Y36(Ti.tE),e.Y36(FZ,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:tue,ngContentSelectors:Vq,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,nue,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:[dn.wG,Mt.O5],encapsulation:2,changeDetection:0}),n}(),jq=new e.OlP("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),aue=0,xS=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=Ya.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Rn.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(aue++)}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,In.Ig)(i)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(i){this._hasBackdrop=(0,In.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 Ti.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return i.closed.emit("tab")}),this._directDescendantItems.changes.pipe((0,ea.O)(this._directDescendantItems),(0,Os.w)(function(o){return ro.T.apply(void 0,(0,y.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,ea.O)(this._directDescendantItems),(0,Os.w)(function(o){return ro.T.apply(void 0,(0,y.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 Kr.hY:(0,Kr.Vb)(i)||(i.preventDefault(),this.closed.emit("keydown"));break;case Kr.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case Kr.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(o===Kr.LH||o===Kr.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,qi.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,ea.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(jq))},n.\u0275dir=e.lG2({type:n,contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,qq,5),e.Suo(o,Hr,5),e.Suo(o,Hr,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}(),ds=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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}(xS);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(jq))},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:FZ,useExisting:n}]),e.qOj],ngContentSelectors:Vq,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,rue,3,6,"ng-template"))},directives:[Mt.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:[h2.transformMenu,h2.fadeInItems]},changeDetection:0}),n}(),zq=new e.OlP("mat-menu-scroll-strategy"),Wq={provide:zq,deps:[Xi.aV],useFactory:function(n){return function(){return n.scrollStrategies.reposition()}}},Yq=(0,ti.i$)({passive:!0}),Na=function(){var n=function(){function r(t,i,o,a,s,u,p,m){var b=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=Ya.w.EMPTY,this._hoverSubscription=Ya.w.EMPTY,this._menuCloseSubscription=Ya.w.EMPTY,this._handleTouchStart=function(I){(0,Ti.yG)(I)||(b._openedBy="touch")},this._openedBy=void 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 xS?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,Yq),u&&(u._triggersSubmenu=this.triggersSubmenu())}return(0,T.Z)(r,[{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,Yq),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 xS&&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 xS?(a._resetAnimation(),a.lazyContent?a._animationDone.pipe((0,_i.h)(function(s){return"void"===s.toState}),(0,qi.q)(1),(0,qr.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 Xi.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,C.Z)("before"===this.menu.xPosition?["end","start"]:["start","end"],2),s=a[0],u=a[1],m=(0,C.Z)("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),b=m[0],I=m[1],F=b,G=I,Y=s,te=u,ce=0;this.triggersSubmenu()?(te=s="before"===this.menu.xPosition?"start":"end",u=Y="end"===s?"start":"end",ce="bottom"===b?8:-8):this.menu.overlapTrigger||(F="top"===b?"bottom":"top",G="top"===I?"bottom":"top"),i.withPositions([{originX:s,originY:F,overlayX:Y,overlayY:b,offsetY:ce},{originX:u,originY:F,overlayX:te,overlayY:b,offsetY:ce},{originX:s,originY:G,overlayX:Y,overlayY:I,offsetY:-ce},{originX:u,originY:G,overlayX:te,overlayY:I,offsetY:-ce}])}},{key:"_menuClosingActions",value:function(){var i=this,o=this._overlayRef.backdropClick(),a=this._overlayRef.detachments(),s=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,ur.of)(),u=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,_i.h)(function(p){return p!==i._menuItemInstance}),(0,_i.h)(function(){return i._menuOpen})):(0,ur.of)();return(0,ro.T)(o,s,u,a)}},{key:"_handleMousedown",value:function(i){(0,Ti.X6)(i)||(this._openedBy=0===i.button?"mouse":void 0,this.triggersSubmenu()&&i.preventDefault())}},{key:"_handleKeydown",value:function(i){var o=i.keyCode;(o===Kr.K5||o===Kr.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(o===Kr.SV&&"ltr"===this.dir||o===Kr.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,_i.h)(function(o){return o===i._menuItemInstance&&!o.disabled}),(0,Hq.g)(0,Uq.E)).subscribe(function(){i._openedBy="mouse",i.menu instanceof xS&&i.menu._isAnimating?i.menu._animationDone.pipe((0,qi.q)(1),(0,Hq.g)(0,Uq.E),(0,qr.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 Ni.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.Y36(Xi.aV),e.Y36(e.SBq),e.Y36(e.s_b),e.Y36(zq),e.Y36(FZ,8),e.Y36(Hr,10),e.Y36(Ca.Is,8),e.Y36(Ti.tE))},n.\u0275dir=e.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,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-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},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"},exportAs:["matMenuTrigger"]}),n}(),Jq=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:[Wq],imports:[dn.BQ]}),n}(),Qq=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:[Wq],imports:[[Mt.ez,dn.BQ,dn.si,Xi.U8,Jq],la.ZD,dn.BQ,Jq]}),n}();function lue(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 uue(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 cue(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function due(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 pue(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,due,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.cloudNodesTemplates)}}function fue(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,pue,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 hue=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(Fr),e.Y36(zr),e.Y36(ad))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-cloud-nodes-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(da,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,lue,2,1,"button",4),e.YNc(6,uue,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,cue,1,0,"app-empty-templates-list",6),e.YNc(8,fue,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:[Mt.O5,da,On,ia,ud,Cu,Mt.sg,cs,Na,pr,ds,Hr],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}(),mue=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 ne.NI("",ne.kI.required),numberOfPorts:new ne.NI(8,ne.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,ca.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(Fr),e.Y36(zr),e.Y36(ad),e.Y36(Dr),e.Y36(rr),e.Y36(Xu),e.Y36(ne.qu),e.Y36($u.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:[bi,sl,ll,ne._Y,ne.JL,ne.sg,Vn.KE,ne.Fj,hr,ne.JJ,ne.u,ne.wV,On],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 vue(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 Kq=function(){return{standalone:!0}};function gue(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,vue,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,Kq))("ngModel",i.ethernetHubTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModel",i.numberOfPorts)("ngModelOptions",e.DdM(10,Kq))}}function _ue(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 yue=function(n){return{shadowed:n}},bue=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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.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(Fr),e.Y36(zr),e.Y36(ad),e.Y36(rr),e.Y36(ne.qu),e.Y36(Gf),e.Y36(Dr))},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,gue,24,11,"div",4),e.qZA(),e.YNc(6,_ue,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,yue,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.ethernetHubTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.ethernetHubTemplate))},directives:[Mt.mk,Mt.O5,bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,On,hi.gD,ne.On,Mt.sg,ne.wV,dn.ey,sd],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 Cue(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 Sue(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 Tue(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function xue(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 wue(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,xue,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.ethernetHubsTemplates)}}function kue(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,wue,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 Eue=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(Fr),e.Y36(zr),e.Y36(ad))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-hubs-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(da,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,Cue,2,1,"button",4),e.YNc(6,Sue,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,Tue,1,0,"app-empty-templates-list",6),e.YNc(8,kue,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:[Mt.O5,da,On,ia,ud,Cu,Mt.sg,cs,Na,pr,ds,Hr],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}(),Mue=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 ne.NI("",ne.kI.required),numberOfPorts:new ne.NI(8,ne.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,ca.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(Fr),e.Y36(zr),e.Y36(ad),e.Y36(Dr),e.Y36(rr),e.Y36(Xu),e.Y36(ne.qu),e.Y36($u.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:[bi,sl,ll,ne._Y,ne.JL,ne.sg,Vn.KE,ne.Fj,hr,ne.JJ,ne.u,ne.wV,On],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 Aue(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Port number"),e.qZA())}function Due(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 Oue(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"VLAN"),e.qZA())}function Pue(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 Iue(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Type"),e.qZA())}function Rue(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 Nue(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"EtherType"),e.qZA())}function Zue(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 Lue(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Actions"),e.qZA())}function Fue(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 Bue(n,r){1&n&&e._UZ(0,"tr",22)}function Uue(n,r){1&n&&e._UZ(0,"tr",23)}function Hue(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 Vue(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 Xq=function(){return{standalone:!0}},m2=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(Gf))},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,Aue,2,0,"th",2),e.YNc(3,Due,2,1,"td",3),e.BQk(),e.ynx(4,4),e.YNc(5,Oue,2,0,"th",2),e.YNc(6,Pue,2,1,"td",3),e.BQk(),e.ynx(7,5),e.YNc(8,Iue,2,0,"th",2),e.YNc(9,Rue,2,1,"td",3),e.BQk(),e.ynx(10,6),e.YNc(11,Nue,2,0,"th",2),e.YNc(12,Zue,2,1,"td",3),e.BQk(),e.ynx(13,7),e.YNc(14,Lue,2,0,"th",2),e.YNc(15,Fue,4,0,"td",3),e.BQk(),e.YNc(16,Bue,1,0,"tr",8),e.YNc(17,Uue,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,Hue,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,Vue,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,Xq))("ngModel",i.newPort.type),e.xp6(1),e.Q6J("ngForOf",i.portTypes),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(12,Xq))("ngModel",i.newPort.ethertype),e.xp6(1),e.Q6J("ngForOf",i.etherTypes))},directives:[jl,il,rl,nl,zl,Wl,Vn.KE,hr,ne.wV,ne.Fj,ne.JJ,ne.On,hi.gD,Mt.sg,On,ol,al,Ra,pr,Gl,Yl,dn.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 que(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 jue(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 $q=function(){return{standalone:!0}};function zue(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,que,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,jue,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,$q))("ngModel",i.ethernetSwitchTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(12,$q))("ngModel",i.ethernetSwitchTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(5),e.Q6J("ethernetPorts",i.ethernetSwitchTemplate.ports_mapping)}}function Wue(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 Gue=function(n){return{shadowed:n}},Yue=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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.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(Fr),e.Y36(zr),e.Y36(ad),e.Y36(rr),e.Y36(ne.qu),e.Y36(Gf),e.Y36(Dr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-switches-template-details"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(m2,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,zue,34,13,"div",4),e.qZA(),e.YNc(6,Wue,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,Gue,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.ethernetSwitchTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.ethernetSwitchTemplate))},directives:[Mt.mk,Mt.O5,od,Ju,Qu,id,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,On,hi.gD,ne.On,Mt.sg,m2,dn.ey,sd],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 Que(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 Kue(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function Xue(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 $ue(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,Xue,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.ethernetSwitchesTemplates)}}function ece(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,$ue,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 tce=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(Fr),e.Y36(zr),e.Y36(ad))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ethernet-switches-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(da,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,Jue,2,1,"button",4),e.YNc(6,Que,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,Kue,1,0,"app-empty-templates-list",6),e.YNc(8,ece,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:[Mt.O5,da,On,ia,ud,Cu,Mt.sg,cs,Na,pr,ds,Hr],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}(),BZ=function(){return function(){}}(),ev=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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),wS=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["1920x1080","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"]},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function nce(n,r){1&n&&e.Hsn(0)}var rce=["*"],ej=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}(),tj=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}(),ice=0,nj=new e.OlP("STEPPER_GLOBAL_OPTIONS"),UZ=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,In.Ig)(i)}},{key:"optional",get:function(){return this._optional},set:function(i){this._optional=(0,In.Ig)(i)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(i){this._completedOverride=(0,In.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,In.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 K_})),e.Y36(nj,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-step"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,tj,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:rce,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.YNc(0,nce,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n}(),K_=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 Rn.xQ,this.steps=new e.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new e.vpe,this._orientation="horizontal",this._groupId=ice++}return(0,T.Z)(r,[{key:"linear",get:function(){return this._linear},set:function(i){this._linear=(0,In.Ig)(i)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(i){var o,a=(0,In.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,ea.O)(this._steps),(0,qr.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._keyManager=new Ti.Em(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,ur.of)()).pipe((0,ea.O)(this._layoutDirection()),(0,qr.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._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,Kr.Vb)(i),a=i.keyCode,s=this._keyManager;null==s.activeItemIndex||o||a!==Kr.L_&&a!==Kr.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,ti.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(Ca.Is,8),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(Mt.K0))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkStepper",""]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,UZ,5),e.Suo(o,ej,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}(),oce=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(K_))},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(K_))},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}(),sce=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:[[Ca.vT]]}),n}();function lce(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 uce(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 cce(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 dce(n,r){if(1&n&&(e.ynx(0,9),e.YNc(1,uce,2,1,"span",10),e.YNc(2,cce,2,1,"mat-icon",11),e.BQk()),2&n){var t=e.oxw();e.Q6J("ngSwitch",t.state),e.xp6(1),e.Q6J("ngSwitchCase","number")}}function pce(n,r){if(1&n&&(e.TgZ(0,"div",12),e.GkF(1,13),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",12),e._uU(1),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Oqu(t.label)}}function hce(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._intl.optionalLabel)}}function mce(n,r){if(1&n&&(e.TgZ(0,"div",15),e._uU(1),e.qZA()),2&n){var t=e.oxw();e.xp6(1),e.Oqu(t.errorMessage)}}function vce(n,r){}function gce(n,r){if(1&n&&(e.Hsn(0),e.YNc(1,vce,0,0,"ng-template",0)),2&n){var t=e.oxw();e.xp6(1),e.Q6J("cdkPortalOutlet",t._portal)}}var _ce=["*"];function yce(n,r){1&n&&e._UZ(0,"div",9)}var rj=function(r,t){return{step:r,i:t}};function bce(n,r){if(1&n&&(e.ynx(0),e.GkF(1,7),e.YNc(2,yce,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,rj,t,i)),e.xp6(1),e.Q6J("ngIf",!o)}}function Cce(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 Sce(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"div",3),e.YNc(2,bce,3,6,"ng-container",4),e.qZA(),e.TgZ(3,"div",5),e.YNc(4,Cce,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 Tce(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,rj,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 xce(n,r){if(1&n&&(e.ynx(0),e.YNc(1,Tce,6,12,"div",12),e.BQk()),2&n){var t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.steps)}}function wce(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)("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 v2=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(tj);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}(),g2=function(){var n=function r(){(0,g.Z)(this,r),this.changes=new Rn.xQ,this.optionalLabel="Optional"};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({factory:function(){return new n},token:n,providedIn:"root"}),n}(),Ece={provide:g2,deps:[[new e.FiY,new e.tp0,g2]],useFactory:function(n){return n||new g2}},Mce=(0,dn.pj)(function(n){(0,O.Z)(t,n);var r=(0,P.Z)(t);function t(i){return(0,g.Z)(this,t),r.call(this,i)}return t}(ej),"primary"),ij=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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 v2?null:this.label}},{key:"_templateLabel",value:function(){return this.label instanceof v2?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}(Mce);return n.\u0275fac=function(t){return new(t||n)(e.Y36(g2),e.Y36(Ti.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"],[4,"ngSwitchDefault"],[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,lce,1,2,"ng-container",2),e.YNc(4,dce,3,2,"ng-container",3),e.qZA(),e.qZA(),e.TgZ(5,"div",4),e.YNc(6,pce,2,1,"div",5),e.YNc(7,fce,2,1,"div",5),e.YNc(8,hce,2,1,"div",6),e.YNc(9,mce,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:[dn.wG,Mt.RF,Mt.n9,Mt.ED,Mt.O5,Mt.tP,pr],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.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}(),oj={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)"))])},Ace=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}(),Dce=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}(),X_=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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=Ya.w.EMPTY,p}return(0,T.Z)(i,[{key:"ngAfterContentInit",value:function(){var a=this;this._isSelected=this._stepper.steps.changes.pipe((0,Os.w)(function(){return a._stepper.selectionChange.pipe((0,Ar.U)(function(s){return s.selectedStep===a}),(0,ea.O)(a._stepper.selected===a))})).subscribe(function(s){s&&a._lazyContent&&!a._portal&&(a._portal=new Ni.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}(UZ);return n.\u0275fac=function(t){return new(t||n)(e.Y36((0,e.Gpc)(function(){return $_})),e.Y36(dn.rD,4),e.Y36(e.s_b),e.Y36(nj,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-step"]],contentQueries:function(t,i,o){var a;1&t&&(e.Suo(o,v2,5),e.Suo(o,Dce,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:dn.rD,useExisting:n},{provide:UZ,useExisting:n}]),e.qOj],ngContentSelectors:_ce,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,i){1&t&&(e.F$t(),e.YNc(0,gce,2,1,"ng-template"))},directives:[Ni.Pl],encapsulation:2,changeDetection:0}),n}(),aj=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(K_);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}(),Oce=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(aj);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}(),Pce=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(aj);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}(),$_=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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 Rn.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,N.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,qr.R)(this._destroyed)).subscribe(function(){a._stateChanged()}),this._animationDone.pipe((0,sm.x)(function(s,u){return s.fromState===u.fromState&&s.toState===u.toState}),(0,qr.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}(K_);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Ca.Is,8),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(Mt.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,X_,5),e.Suo(o,Ace,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(ij,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:K_,useExisting:n},{provide:Oce,useExisting:n},{provide:Pce,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,Sce,5,2,"ng-container",1),e.YNc(2,xce,2,1,"ng-container",1),e.BQk(),e.YNc(3,wce,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:[Mt.RF,Mt.n9,Mt.sg,Mt.tP,Mt.O5,ij],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}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[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:[oj.horizontalStepTransition,oj.verticalStepTransition]},changeDetection:0}),n}(),Ice=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(){return(0,g.Z)(this,i),t.apply(this,arguments)}return i}(oce);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}(),Rce=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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}(),Nce=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:[Ece,dn.rD],imports:[[dn.BQ,Mt.ez,Ni.eL,c2,sce,EZ,dn.si],dn.BQ]}),n}();function Zce(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 sj=function(){return{standalone:!0}};function Lce(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,Zce,2,2,"mat-option",25),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("ngModelOptions",e.DdM(3,sj))("ngModel",i.selectedImage),e.xp6(1),e.Q6J("ngForOf",i.dockerImages)}}function Fce(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 Bce(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 Uce=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 BZ,this.virtualMachineForm=this.formBuilder.group({filename:new ne.NI(null,ne.kI.required)}),this.containerNameForm=this.formBuilder.group({templateName:new ne.NI(null,ne.kI.required)}),this.networkAdaptersForm=this.formBuilder.group({adapters:new ne.NI("1",ne.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,ca.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(Fr),e.Y36(zr),e.Y36(ev),e.Y36(rr),e.Y36(Dr),e.Y36(ne.qu),e.Y36(Xu),e.Y36(wS),e.Y36($u.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,Lce,2,4,"mat-select",14),e.YNc(22,Fce,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,Bce,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,sj))("ngModel",i.dockerTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(3),e.Q6J("ngModel",i.dockerTemplate.environment))},directives:[$_,X_,sl,ll,ne._Y,ne.JL,ne.sg,Mt.O5,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,ne.wV,ne.On,hi.gD,Mt.sg,On,dn.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}(),Hce=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 ne.NI("",ne.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,ca.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(Fr),e.Y36(zr),e.Y36(ev),e.Y36(rr),e.Y36(Dr),e.Y36(ne.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:[ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,On],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}(),lj=f(96798),Vce=["input"],qce=function(r){return{enterDuration:r}},jce=["*"],zce=new e.OlP("mat-checkbox-default-options",{providedIn:"root",factory:uj});function uj(){return{color:"accent",clickAction:"check-indeterminate"}}var Wce=0,cj=uj(),Gce={provide:ne.JU,useExisting:(0,e.Gpc)(function(){return xo}),multi:!0},Yce=function n(){(0,g.Z)(this,n)},Jce=(0,dn.sb)((0,dn.pj)((0,dn.Kr)((0,dn.Id)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}())))),xo=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m,b){var I;return(0,g.Z)(this,i),(I=t.call(this,o))._changeDetectorRef=a,I._focusMonitor=s,I._ngZone=u,I._animationMode=m,I._options=b,I.ariaLabel="",I.ariaLabelledby=null,I._uniqueId="mat-checkbox-".concat(++Wce),I.id=I._uniqueId,I.labelPosition="after",I.name=null,I.change=new e.vpe,I.indeterminateChange=new e.vpe,I._onTouched=function(){},I._currentAnimationClass="",I._currentCheckState=0,I._controlValueAccessorChangeFn=function(){},I._checked=!1,I._disabled=!1,I._indeterminate=!1,I._options=I._options||cj,I.color=I.defaultColor=I._options.color||cj.color,I.tabIndex=parseInt(p)||0,I}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,In.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,In.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,In.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 Yce;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}(Jce);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ti.tE),e.Y36(e.R0b),e.$8M("tabindex"),e.Y36(ss.Qb,8),e.Y36(zce,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-checkbox"]],viewQuery:function(t,i){var o;1&t&&(e.Gf(Vce,5),e.Gf(dn.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([Gce]),e.qOj],ngContentSelectors:jce,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,qce,"NoopAnimations"===i._animationMode?0:150))}},directives:[dn.wG,lj.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}(),dj=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}(),Xce=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:[[dn.si,dn.BQ,lj.Q8,dj],dn.BQ,dj]}),n}();function $ce(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 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," ")}}function tde(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 tv=function(){return{standalone:!0}};function nde(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,$ce,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,ede,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,tde,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,tv))("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,tv))("ngModel",i.dockerTemplate.start_command),e.xp6(2),e.Q6J("ngModel",i.dockerTemplate.adapters),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(27,tv))("ngModel",i.dockerTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(28,tv))("ngModel",i.dockerTemplate.console_auto_start),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(29,tv))("ngModel",i.dockerTemplate.console_resolution),e.xp6(1),e.Q6J("ngForOf",i.consoleResolutions),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(30,tv))("ngModel",i.dockerTemplate.console_http_port),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(31,tv))("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 rde(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 ide=function(n){return{shadowed:n}},ode=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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),adapter:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.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(Fr),e.Y36(zr),e.Y36(ev),e.Y36(rr),e.Y36(wS),e.Y36(ne.qu),e.Y36(Dr))},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,nde,59,32,"div",4),e.qZA(),e.YNc(6,rde,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,ide,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.dockerTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.dockerTemplate))},directives:[Mt.mk,Mt.O5,od,Ju,Qu,id,ne._Y,ne.JL,ne.sg,Vn.KE,ne.Fj,hr,ne.JJ,ne.u,hi.gD,ne.On,Mt.sg,On,ne.wV,xo,dn.ey,sd],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 ade(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 sde(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 lde(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function ude(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 cde(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,ude,18,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.dockerTemplates)}}function dde(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,cde,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 pde=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(Fr),e.Y36(zr),e.Y36(ev),e.Y36(Dr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-docker-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(da,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,ade,2,1,"button",4),e.YNc(6,sde,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,lde,1,0,"app-empty-templates-list",6),e.YNc(8,dde,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:[Mt.O5,da,On,ia,ud,Cu,Mt.sg,cs,Na,pr,ds,Hr],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}(),HZ=function(){return function(){}}(),nv=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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),_2=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 hde(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 mde(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 vde(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,mde,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 gde(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 _de(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 pj=function(){return{standalone:!0}};function yde(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,_de,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,pj)),e.xp6(1),e.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosNameForm.get("platform").value][i])}}function bde(n,r){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,yde,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 Cde=function(){return[0,1,2,3,4,5,6,7]};function Sde(n,r){1&n&&(e.TgZ(0,"div"),e.YNc(1,bde,2,1,"div",39),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngForOf",e.DdM(1,Cde)))}function Tde(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 xde(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,Tde,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,pj)),e.xp6(1),e.Q6J("ngForOf",o.networkModules[o.iosNameForm.get("platform").value][i])}}function wde(n,r){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,xde,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 Ede(n,r){1&n&&(e.TgZ(0,"div"),e.YNc(1,wde,2,1,"div",39),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngForOf",e.DdM(1,kde)))}function Mde(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,hde,2,2,"mat-option",19),e.qZA(),e.qZA(),e.YNc(26,vde,3,1,"mat-form-field",23),e.qZA(),e.YNc(27,gde,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,Sde,2,2,"div",30),e.qZA(),e.TgZ(39,"mat-step",31),e.YNc(40,Ede,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 Ade=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 HZ,this.iosImageForm=this.formBuilder.group({imageName:new ne.NI(null,[ne.kI.required])}),this.iosNameForm=this.formBuilder.group({templateName:new ne.NI(null,[ne.kI.required]),platform:new ne.NI(null,[ne.kI.required]),chassis:new ne.NI(null,[ne.kI.required])}),this.iosMemoryForm=this.formBuilder.group({memory:new ne.NI(null,[ne.kI.required])})}return n.prototype.ngOnInit=function(){var r=this;this.uploader=new Wm({}),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,ca.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(Fr),e.Y36(zr),e.Y36(nv),e.Y36(rr),e.Y36(ne.qu),e.Y36(Dr),e.Y36(Xu),e.Y36(_2),e.Y36($u.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,Mde,49,18,"div",4),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.iosTemplate))},directives:[Mt.O5,$_,X_,sl,ll,lS,On,ne._Y,ne.JL,ne.sg,Vn.KE,hi.gD,ne.JJ,ne.u,Mt.sg,hr,ne.Fj,ne.wV,Vn.R9,Vn.hX,ne.On,dn.ey,xo],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}(),Dde=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 ne.NI("",ne.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,ca.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(Fr),e.Y36(zr),e.Y36(nv),e.Y36(rr),e.Y36(Dr),e.Y36(ne.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:[bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,On],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,"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 Pde(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 Ide(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 hp=function(){return{standalone:!0}};function Rde(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,Ide,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,hp)),e.xp6(1),e.Q6J("ngForOf",o.networkAdapters[o.iosTemplate.chassis][i])}}function Nde(n,r){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Rde,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 fj=function(){return[0,1,2,3,4,5,6,7]};function Zde(n,r){1&n&&(e.TgZ(0,"div"),e.YNc(1,Nde,2,1,"div",39),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngForOf",e.DdM(1,fj)))}function Lde(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 Fde(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,Lde,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,hp)),e.xp6(1),e.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosTemplate.platform][i])}}function Bde(n,r){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Fde,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 Ude(n,r){1&n&&(e.TgZ(0,"div"),e.YNc(1,Bde,2,1,"div",39),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngForOf",e.DdM(1,fj)))}function Hde(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 Vde(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,Hde,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,hp)),e.xp6(1),e.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][0])}}function qde(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 jde(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,qde,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,hp)),e.xp6(1),e.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][1])}}function zde(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 Wde(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,zde,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,hp)),e.xp6(1),e.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][2])}}function Gde(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,Ode,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,Pde,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,Zde,2,2,"div",27),e.YNc(67,Ude,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,Vde,3,4,"div",27),e.YNc(73,jde,3,4,"div",27),e.YNc(74,Wde,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,hp))("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,hp))("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,hp))("ngModel",i.iosTemplate.mac_addr),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(43,hp))("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 Yde(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 Jde=function(n){return{shadowed:n}},Qde=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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required),path:new ne.NI("",ne.kI.required),initialConfig:new ne.NI("",ne.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new ne.NI("",ne.kI.required),nvram:new ne.NI("",ne.kI.required),iomemory:new ne.NI("",ne.kI.required),disk0:new ne.NI("",ne.kI.required),disk1:new ne.NI("",ne.kI.required)}),this.advancedForm=this.formBuilder.group({systemId:new ne.NI("",ne.kI.required),idlemax:new ne.NI("",ne.kI.required),idlesleep:new ne.NI("",ne.kI.required),execarea:new ne.NI("",ne.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(Fr),e.Y36(zr),e.Y36(nv),e.Y36(rr),e.Y36(ne.qu),e.Y36(_2),e.Y36(Dr))},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,Gde,109,44,"div",4),e.qZA(),e.YNc(6,Yde,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,Jde,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.iosTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.iosTemplate))},directives:[Mt.mk,Mt.O5,od,Ju,Qu,id,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,Vn.hX,On,hi.gD,ne.On,Mt.sg,xo,ne.wV,Vn.R9,dn.ey,sd],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 Kde(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 Xde(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 $de(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function epe(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 tpe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,epe,18,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.iosTemplates)}}function npe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,tpe,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 rpe=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(Fr),e.Y36(zr),e.Y36(nv),e.Y36(Dr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-ios-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(da,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,Kde,2,1,"button",4),e.YNc(6,Xde,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,$de,1,0,"app-empty-templates-list",6),e.YNc(8,npe,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:[Mt.O5,da,On,ia,ud,Cu,Mt.sg,cs,Na,pr,ds,Hr],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}(),hj=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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function ipe(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 ope(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 kS=function(){return{standalone:!0}};function ape(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,kS))("ngModel",i.gns3vm.headless)}}function spe(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,kS))("ngModel",i.port)}}function lpe(n,r){if(1&n&&(e.TgZ(0,"form",19),e.YNc(1,spe,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 upe(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 cpe(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,ipe,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,ope,2,2,"mat-option",13),e.qZA(),e.qZA(),e.YNc(9,ape,2,3,"mat-checkbox",15),e.YNc(10,lpe,8,2,"form",16),e.YNc(11,upe,7,1,"mat-radio-group",17),e.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("ngModelOptions",e.DdM(11,kS))("ngModel",i.gns3vm.enable),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(12,kS))("ngModel",i.gns3vm.engine),e.xp6(1),e.Q6J("ngForOf",i.vmEngines),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(13,kS))("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 dpe=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 ne.NI(null,[ne.kI.required]),vcpus:new ne.NI(null,[ne.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(Fr),e.Y36(zr),e.Y36(hj),e.Y36(Dr),e.Y36(ne.qu),e.Y36(rr))},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,cpe,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:[Mt.O5,On,bi,xo,ne.JJ,ne.On,Vn.KE,hi.gD,Mt.sg,dn.ey,ne._Y,ne.JL,ne.sg,hr,ne.Fj,ne.wV,ne.u,Vn.R9,sl,ll],styles:[".form-field[_ngcontent-%COMP%]{width:100%}.select[_ngcontent-%COMP%]{width:100%}.radio-selection[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),n}(),VZ=function(){return function(){}}(),rv=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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function ppe(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 mj=function(){return{standalone:!0}};function hpe(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,mj)),e.xp6(1),e.Q6J("ngForOf",i.iouImages)}}function mpe(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 vpe=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 VZ,this.templateNameForm=this.formBuilder.group({templateName:new ne.NI(null,ne.kI.required)}),this.imageForm=this.formBuilder.group({imageName:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.uploader=new Wm({}),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,ca.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(Fr),e.Y36(zr),e.Y36(rv),e.Y36(rr),e.Y36(Dr),e.Y36(ne.qu),e.Y36(Xu),e.Y36($u.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,ppe,2,2,"mat-option",18),e.qZA(),e.qZA(),e.YNc(28,hpe,3,4,"mat-form-field",19),e.YNc(29,mpe,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,mj)),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:[$_,X_,sl,ll,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,hi.gD,ne.On,Mt.sg,Mt.O5,On,dn.ey,lS],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}(),gpe=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 ne.NI("",ne.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,ca.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(Fr),e.Y36(zr),e.Y36(rv),e.Y36(rr),e.Y36(Dr),e.Y36(ne.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:[bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,On],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}(),qZ=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 _pe(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 ype(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 bpe(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 Cpe(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,"MB"),e.qZA(),e.qZA()}if(2&n){var i=e.oxw(2);e.xp6(1),e.Q6J("ngModel",i.iouTemplate.nvram)}}var vj=function(){return{standalone:!0}};function Spe(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,_pe,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,ype,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().defaultSettings=a}),e._uU(40," Use default IOU values for memories "),e.qZA(),e.YNc(41,bpe,4,1,"mat-form-field",24),e.YNc(42,Cpe,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,vj))("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,vj))("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.defaultSettings),e.xp6(2),e.Q6J("ngIf",!i.defaultSettings),e.xp6(1),e.Q6J("ngIf",!i.defaultSettings),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 Tpe(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 xpe=function(n){return{shadowed:n}},wpe=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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required),path:new ne.NI("",ne.kI.required),initialConfig:new ne.NI("",ne.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new ne.NI("",ne.kI.required),serialAdapters:new ne.NI("",ne.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(Fr),e.Y36(zr),e.Y36(rv),e.Y36(rr),e.Y36(qZ),e.Y36(Dr),e.Y36(ne.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,Spe,63,24,"div",4),e.qZA(),e.YNc(6,Tpe,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,xpe,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.iouTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.iouTemplate))},directives:[Mt.mk,Mt.O5,od,Ju,Qu,id,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,On,hi.gD,ne.On,Mt.sg,xo,ne.wV,dn.ey,Vn.R9,sd],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 Epe(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 Mpe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function Ape(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 Dpe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,Ape,18,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.iouTemplates)}}function Ope(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,Dpe,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 Ppe=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(Fr),e.Y36(zr),e.Y36(rv),e.Y36(Dr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-iou-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(da,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,Epe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,Mpe,1,0,"app-empty-templates-list",6),e.YNc(8,Ope,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:[Mt.O5,da,On,ia,ud,Cu,Mt.sg,cs,Na,pr,ds,Hr],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}(),Ipe=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(Fr))},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:[Cu,cs,ia],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}(),jZ=function(){return function(){}}(),mp=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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),y2=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["e1000","e1000-82544gc","e1000-82545em","e1000e","rocker","Intel Gigabit Ethernet","i82550","i82551","i82557a","i82557b","i82557c","i82558a","i82558b","i82559a","i82559b","i82559c","i82559er","i82562","i82801","ne2k_pci","pcnet","rtl8139","virtio","virtio-net-pci","vmxnet3"]},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}();function Rpe(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 Npe(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 Zpe(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 zZ=function(){return{standalone:!0}};function Lpe(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,Zpe,2,2,"mat-option",17),e.qZA()}if(2&n){var i=e.oxw();e.Q6J("ngModelOptions",e.DdM(3,zZ))("ngModel",i.selectedImage),e.xp6(1),e.Q6J("ngForOf",i.qemuImages)}}function Fpe(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.qZA()}if(2&n){var i=e.oxw();e.xp6(1),e.Q6J("uploader",i.uploader),e.xp6(5),e.Q6J("ngModel",i.chosenImage)}}var Bpe=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.isGns3VmAvailable=!1,this.isGns3VmChosen=!1,this.isLocalComputerChosen=!0,this.qemuTemplate=new jZ,this.nameForm=this.formBuilder.group({templateName:new ne.NI(null,ne.kI.required)}),this.memoryForm=this.formBuilder.group({ramMemory:new ne.NI("256",ne.kI.required)}),this.diskForm=this.formBuilder.group({fileName:new ne.NI("",ne.kI.required)})}return n.prototype.ngOnInit=function(){var r=this;this.uploader=new Wm({}),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")};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){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,ca.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(Fr),e.Y36(zr),e.Y36(mp),e.Y36(rr),e.Y36(Dr),e.Y36(ne.qu),e.Y36(Xu),e.Y36(y2),e.Y36($u.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"]],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,Rpe,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,Npe,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,Lpe,2,4,"mat-select",24),e.YNc(43,Fpe,7,2,"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,zZ)),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,zZ)),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:[$_,X_,sl,ll,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,hi.gD,ne.On,Mt.sg,ne.wV,Vn.R9,Mt.O5,On,dn.ey,lS],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}(),Upe=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 ne.NI("",ne.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,ca.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(Fr),e.Y36(zr),e.Y36(mp),e.Y36(rr),e.Y36(Dr),e.Y36(ne.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:[bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,On],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 Hpe(n,r){1&n&&(e.TgZ(0,"th",10),e._uU(1,"Adapter number"),e.qZA())}function Vpe(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 qpe(n,r){1&n&&(e.TgZ(0,"th",10),e._uU(1,"Port name"),e.qZA())}function jpe(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 zpe(n,r){1&n&&(e.TgZ(0,"th",10),e._uU(1,"Adapter type"),e.qZA())}function Wpe(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),e.xp6(1),e.hij(" ",t," ")}}function Gpe(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,Wpe,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 Ype(n,r){1&n&&(e.TgZ(0,"th",10),e._uU(1,"Actions"),e.qZA())}function Jpe(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 Qpe(n,r){1&n&&e._UZ(0,"tr",17)}function Kpe(n,r){1&n&&e._UZ(0,"tr",18)}var b2=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,Hpe,2,0,"th",2),e.YNc(3,Vpe,2,1,"td",3),e.BQk(),e.ynx(4,4),e.YNc(5,qpe,2,0,"th",2),e.YNc(6,jpe,2,1,"td",3),e.BQk(),e.ynx(7,5),e.YNc(8,zpe,2,0,"th",2),e.YNc(9,Gpe,3,2,"td",3),e.BQk(),e.ynx(10,6),e.YNc(11,Ype,2,0,"th",2),e.YNc(12,Jpe,4,0,"td",3),e.BQk(),e.YNc(13,Qpe,1,0,"tr",7),e.YNc(14,Kpe,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,il,rl,nl,zl,Wl,On,ol,al,hi.gD,ne.JJ,ne.On,Mt.sg,dn.ey,Ra,pr,Gl,Yl],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}(),Xpe=["customAdapters"],WZ=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(Xpe,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:[b2,On],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}(),$pe=["customAdaptersConfigurator"];function efe(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 tfe(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 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 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 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),e.xp6(1),e.hij(" ",t," ")}}function ofe(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 afe(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 sfe(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 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[0]),e.xp6(1),e.AsE(" ",t[1]," (",t[0],") ")}}function cfe(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 dfe(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 pfe(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,efe,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,tfe,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,nfe,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,rfe,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,ife,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,ofe,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,afe,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,sfe,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,lfe,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,ufe,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.qZA(),e.TgZ(117,"mat-expansion-panel"),e.TgZ(118,"mat-expansion-panel-header"),e.TgZ(119,"mat-panel-title"),e._uU(120," Advanced "),e.qZA(),e.qZA(),e.TgZ(121,"mat-card"),e._UZ(122,"mat-card-title"),e.TgZ(123,"mat-card-subtitle"),e._uU(124," Linux boot specific settings "),e.qZA(),e.TgZ(125,"mat-card-content"),e.TgZ(126,"div"),e.TgZ(127,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(130).click()}),e._uU(128,"Browse"),e.qZA(),e.TgZ(129,"input",29,40),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadInitrdFile(a)}),e.qZA(),e.TgZ(131,"mat-form-field",31),e.TgZ(132,"input",41),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.initrd=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(133,"div"),e.TgZ(134,"button",28),e.NdJ("click",function(){return e.CHM(t),e.oxw().filekerenelimage.click()}),e._uU(135," Browse "),e.qZA(),e.TgZ(136,"input",29,42),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadKernelImageFile(a)}),e.qZA(),e.TgZ(138,"mat-form-field",31),e.TgZ(139,"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(140,"mat-form-field",10),e.TgZ(141,"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(142,"mat-card"),e._UZ(143,"mat-card-title"),e.TgZ(144,"mat-card-subtitle"),e._uU(145," Bios "),e.qZA(),e.TgZ(146,"mat-card-content"),e.TgZ(147,"div"),e.TgZ(148,"button",28),e.NdJ("click",function(){return e.CHM(t),e.MAs(151).click()}),e._uU(149,"Browse"),e.qZA(),e.TgZ(150,"input",29,45),e.NdJ("change",function(a){return e.CHM(t),e.oxw().uploadBiosFile(a)}),e.qZA(),e.TgZ(152,"mat-form-field",31),e.TgZ(153,"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(154,"mat-card"),e._UZ(155,"mat-card-title"),e.TgZ(156,"mat-card-subtitle"),e._uU(157," Optimization "),e.qZA(),e.TgZ(158,"mat-card-content"),e.TgZ(159,"mat-checkbox",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().activateCpuThrottling=a}),e._uU(160," Activate CPU throttling "),e.qZA(),e.YNc(161,cfe,2,1,"mat-form-field",47),e.TgZ(162,"mat-form-field",10),e.TgZ(163,"mat-select",48),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.process_priority=a}),e.YNc(164,dfe,2,2,"mat-option",16),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(165,"mat-card"),e._UZ(166,"mat-card-title"),e.TgZ(167,"mat-card-subtitle"),e._uU(168," Additional settings "),e.qZA(),e.TgZ(169,"mat-card-content"),e.TgZ(170,"mat-form-field",10),e.TgZ(171,"input",49),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.options=a}),e.qZA(),e.qZA(),e.TgZ(172,"mat-checkbox",25),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().qemuTemplate.linked_clone=a}),e._uU(173," Use as a linked base VM "),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(174,"mat-expansion-panel"),e.TgZ(175,"mat-expansion-panel-header"),e.TgZ(176,"mat-panel-title"),e._uU(177," Usage "),e.qZA(),e.qZA(),e.TgZ(178,"mat-form-field",10),e.TgZ(179,"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(180,"div",51),e.TgZ(181,"button",52),e.NdJ("click",function(){return e.CHM(t),e.oxw().goBack()}),e._uU(182,"Cancel"),e.qZA(),e.TgZ(183,"button",53),e.NdJ("click",function(){return e.CHM(t),e.oxw().onSave()}),e._uU(184,"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(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(7),e.Q6J("ngModel",i.qemuTemplate.usage)}}function ffe(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 hfe=function(n){return{shadowed:n}},mfe=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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.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(Fr),e.Y36(zr),e.Y36(mp),e.Y36(rr),e.Y36(y2),e.Y36(ne.qu),e.Y36(Dr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-qemu-virtual-machine-template-details"]],viewQuery:function(t,i){var o;(1&t&&e.Gf($pe,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,pfe,185,49,"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,ffe,1,2,"app-symbols-menu",7)),2&t&&(e.Q6J("ngClass",e.VKq(6,hfe,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:[Mt.mk,Mt.O5,WZ,od,Ju,Qu,id,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,On,hi.gD,ne.On,Mt.sg,ne.wV,Vn.R9,xo,bi,fq,hq,DZ,dn.ey,sd],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 vfe(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 gfe(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 _fe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function yfe(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 bfe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,yfe,18,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.qemuTemplates)}}function Cfe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,bfe,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 Sfe=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(Fr),e.Y36(zr),e.Y36(mp),e.Y36(Dr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-qemu-virtual-machines-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(da,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,vfe,2,1,"button",4),e.YNc(6,gfe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,_fe,1,0,"app-empty-templates-list",6),e.YNc(8,Cfe,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:[Mt.O5,da,On,ia,ud,Cu,Mt.sg,cs,Na,pr,ds,Hr],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.prototype.getVirtualMachines=function(r){return this.httpServer.get(r,"/compute/virtualbox/vms")},n.\u0275fac=function(t){return new(t||n)(e.LFG(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function Tfe(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 xfe(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,Tfe,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 wfe=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 ne.NI("",ne.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,ca.v4)(),this.virtualBoxService.addTemplate(this.server,this.virtualBoxTemplate).subscribe(function(){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Fr),e.Y36(zr),e.Y36(C2),e.Y36(rr),e.Y36(Xu),e.Y36(Dr),e.Y36(ne.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,xfe,13,4,"div",4),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.virtualBoxTemplate))},directives:[Mt.O5,bi,ne._Y,ne.JL,ne.sg,Vn.KE,hi.gD,ne.JJ,ne.u,Mt.sg,xo,ne.On,On,dn.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}(),GZ=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}(),kfe=["customAdaptersConfigurator"];function Efe(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 Mfe(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 Afe(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 Dfe(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 ey=function(){return{standalone:!0}};function Ofe(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,Efe,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,Mfe,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,Afe,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,Dfe,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,ey))("ngModel",i.virtualBoxTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(30,ey))("ngModel",i.virtualBoxTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(31,ey))("ngModel",i.virtualBoxTemplate.console_auto_start),e.xp6(3),e.Q6J("ngModel",i.virtualBoxTemplate.ram),e.xp6(4),e.Q6J("ngModelOptions",e.DdM(32,ey))("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,ey))("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,ey))("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 Pfe(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 Ife=function(n){return{shadowed:n}},Rfe=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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required),ram:new ne.NI("",ne.kI.required)}),this.networkForm=this.formBuilder.group({adapters:new ne.NI("",ne.kI.required),nameFormat:new ne.NI("",ne.kI.required),size:new ne.NI("",ne.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(Fr),e.Y36(zr),e.Y36(C2),e.Y36(rr),e.Y36(ne.qu),e.Y36(GZ),e.Y36(Dr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-virtual-box-template-details"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(kfe,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,Ofe,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,Pfe,1,2,"app-symbols-menu",7)),2&t&&(e.Q6J("ngClass",e.VKq(6,Ife,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:[Mt.mk,Mt.O5,WZ,od,Ju,Qu,id,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,On,hi.gD,ne.On,Mt.sg,xo,ne.wV,Vn.R9,dn.ey,sd],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 Nfe(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 Zfe(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 Lfe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function Ffe(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 Bfe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,Ffe,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.virtualBoxTemplates)}}function Ufe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,Bfe,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 Hfe=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(Fr),e.Y36(zr),e.Y36(C2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-virtual-box-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(da,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,Nfe,2,1,"button",4),e.YNc(6,Zfe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,Lfe,1,0,"app-empty-templates-list",6),e.YNc(8,Ufe,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:[Mt.O5,da,On,ia,ud,Cu,Mt.sg,cs,Na,pr,ds,Hr],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(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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function Vfe(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 qfe=function(){return{standalone:!0}};function jfe(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,Vfe,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,qfe))("ngModel",i.vmwareTemplate.linked_clone)}}var zfe=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 ne.NI(null,[ne.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,ca.v4)(),this.vmwareService.addTemplate(this.server,this.vmwareTemplate).subscribe(function(){r.goBack()}))},n.\u0275fac=function(t){return new(t||n)(e.Y36(Fr),e.Y36(zr),e.Y36(S2),e.Y36(rr),e.Y36(Xu),e.Y36(Dr),e.Y36(ne.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,jfe,14,6,"div",4),e.qZA()),2&t&&(e.xp6(5),e.Q6J("ngIf",i.vmwareTemplate))},directives:[Mt.O5,bi,ne._Y,ne.JL,ne.sg,Vn.KE,hi.gD,ne.JJ,ne.u,Mt.sg,xo,ne.On,On,dn.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}(),YZ=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}(),Wfe=["customAdaptersConfigurator"];function Gfe(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 Yfe(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 Jfe(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 Qfe(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 ty=function(){return{standalone:!0}};function Kfe(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,Gfe,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,Yfe,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,Jfe,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,Qfe,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,ty))("ngModel",i.vmwareTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(28,ty))("ngModel",i.vmwareTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(29,ty))("ngModel",i.vmwareTemplate.console_auto_start),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(30,ty))("ngModel",i.vmwareTemplate.on_close),e.xp6(1),e.Q6J("ngForOf",i.onCloseOptions),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(31,ty))("ngModel",i.vmwareTemplate.headless),e.xp6(4),e.Q6J("ngModelOptions",e.DdM(32,ty))("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 Xfe(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 $fe=function(n){return{shadowed:n}},ehe=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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.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(Fr),e.Y36(zr),e.Y36(S2),e.Y36(rr),e.Y36(ne.qu),e.Y36(YZ),e.Y36(Dr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-vmware-template-details"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Wfe,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,Kfe,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,Xfe,1,2,"app-symbols-menu",7)),2&t&&(e.Q6J("ngClass",e.VKq(6,$fe,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:[Mt.mk,Mt.O5,WZ,od,Ju,Qu,id,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,On,hi.gD,ne.On,Mt.sg,xo,ne.wV,dn.ey,sd],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 the(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 nhe(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 rhe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function ihe(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 ohe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,ihe,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.vmwareTemplates)}}function ahe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,ohe,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 she=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(Fr),e.Y36(zr),e.Y36(S2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-vmware-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(da,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,the,2,1,"button",4),e.YNc(6,nhe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,rhe,1,0,"app-empty-templates-list",6),e.YNc(8,ahe,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:[Mt.O5,da,On,ia,ud,Cu,Mt.sg,cs,Na,pr,ds,Hr],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}(),T2=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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),lhe=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 ne.NI(null,[ne.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,ca.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(Fr),e.Y36(zr),e.Y36(T2),e.Y36(Dr),e.Y36(rr),e.Y36(Xu),e.Y36(ne.qu),e.Y36($u.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:[bi,sl,ll,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,On],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}(),x2=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 uhe(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 che(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 JZ=function(){return{standalone:!0}};function dhe(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,uhe,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,che,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,JZ))("ngModel",i.vpcsTemplate.category),e.xp6(1),e.Q6J("ngForOf",i.categories),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(14,JZ))("ngModel",i.vpcsTemplate.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(15,JZ))("ngModel",i.vpcsTemplate.console_auto_start)}}function phe(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 fhe=function(n){return{shadowed:n}},hhe=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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),scriptFile:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.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(Fr),e.Y36(zr),e.Y36(T2),e.Y36(rr),e.Y36(ne.qu),e.Y36(x2),e.Y36(Dr))},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,dhe,28,16,"div",4),e.qZA(),e.YNc(6,phe,1,2,"app-symbols-menu",5)),2&t&&(e.Q6J("ngClass",e.VKq(3,fhe,i.isSymbolSelectionOpened)),e.xp6(5),e.Q6J("ngIf",i.vpcsTemplate),e.xp6(1),e.Q6J("ngIf",i.isSymbolSelectionOpened&&i.vpcsTemplate))},directives:[Mt.mk,Mt.O5,bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,On,hi.gD,ne.On,Mt.sg,xo,dn.ey,sd],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 mhe(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 vhe(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 ghe(n,r){1&n&&e._UZ(0,"app-empty-templates-list")}function _he(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 yhe(n,r){if(1&n&&(e.TgZ(0,"mat-nav-list"),e.YNc(1,_he,13,3,"div",14),e.qZA()),2&n){var t=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",t.vpcsTemplates)}}function bhe(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e.YNc(2,yhe,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 Che=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(Fr),e.Y36(zr),e.Y36(T2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-vpcs-templates"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(da,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,mhe,2,1,"button",4),e.YNc(6,vhe,2,1,"button",5),e.qZA(),e.qZA(),e.YNc(7,ghe,1,0,"app-empty-templates-list",6),e.YNc(8,bhe,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:[Mt.O5,da,On,ia,ud,Cu,Mt.sg,cs,Na,pr,ds,Hr],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}(),Yf=f(33931),w2=f(18419),k2=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Kn.ZT)(r,n),r.prototype.getItemKey=function(t){return t.id},r}(w2.o),QZ=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Kn.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}(k2),KZ=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Kn.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}(k2),XZ=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Kn.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}(k2),$Z=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Kn.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}(k2),iv=function(){return function(){}}(),ny=function(){return function(){}}(),ES=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}(),MS=f(59473),Jf=function(){function n(){}return n.prototype.fix=function(r){var t=MS.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")}})}),MS.generate(t)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),ec=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=MS.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(b){"Identifier"===b.type&&(i=b),"String"===b.type&&(i=b,a=!1)}),"font-size"===m.property&&m.value&&m.value.children&&m.value.children.forEach(function(b){"Dimension"===b.type&&(o=b)})}),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 MS.generate(t)},n.DEFAULT_FONT="TypeWriter",n.DEFAULT_SIZE=10,n.REPLACE_BY_FONT="Noto Sans",n.REPLACE_BY_SIZE=11,n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),eL=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 ny;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(ES),e.LFG(Jf),e.LFG(ec))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),She=function(){return function(){}}(),tL=function(){function n(){}return n.prototype.convert=function(r){var t=new She;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}(),nL=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 iv;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(eL),e.LFG(tL),e.LFG(ES),e.LFG(Jf),e.LFG(ec))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),gj=function(){return function(){this.isSelected=!1,this.isMultiplied=!1}}(),AS=function(){return function(){}}(),_j=function(){function n(r){this.labelToMapLabel=r}return n.prototype.convert=function(r,t){var i=new AS;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(eL))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),yj=function(){function n(r){this.linkNodeToMapLinkNode=r}return n.prototype.convert=function(r){var t=this,i=new gj;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(_j))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Qf=function(){return function(){}}(),E2=function(){function n(){}return n.prototype.convert=function(r){var t=new Qf;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}(),The=function(){return function(){}}(),bj=function(){function n(){}return n.prototype.convert=function(r){var t=new The;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}(),xhe=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}}(),M2=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 xhe,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}(),DS=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}(),ry=function(){function n(r,t,i,o,a,s,u,p,m,b){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=b}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(QZ),e.LFG(KZ),e.LFG(XZ),e.LFG($Z),e.LFG(nL),e.LFG(yj),e.LFG(E2),e.LFG(bj),e.LFG(M2),e.LFG(DS))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),A2=function(){return function(r,t){this.x=r,this.y=t}}(),Cj=function(){return function(r,t){this.width=r,this.height=t}}(),whe=function(){return function(r,t,i){this.x=r,this.y=t,this.k=i}}(),Jl=function(){function n(){this.centerZeroZeroPoint=!0,this.size=new Cj(0,0),this.transformation=new whe(0,0,1)}return n.prototype.getZeroZeroTransformationPoint=function(){return this.centerZeroZeroPoint?new A2(this.size.width/2,this.size.height/2):new A2(0,0)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),OS=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}(),rL=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 Cj(i,o)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),iy=function(){function n(){this.isReadOnly=!1}return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),iL=function(){return function(){}}(),khe=function(n){function r(t){var i=n.call(this)||this;return i.datum=t,i}return(0,Kn.ZT)(r,n),r}(iL),Ehe=function(n){function r(t){var i=n.call(this)||this;return i.datum=t,i}return(0,Kn.ZT)(r,n),r}(iL),Mhe=function(n){function r(t){var i=n.call(this)||this;return i.datum=t,i}return(0,Kn.ZT)(r,n),r}(iL),D2=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 Nf().on("start",function(a){i=Dn.sourceEvent.clientX,o=Dn.sourceEvent.clientY,(t=new khe(a)).dx=Dn.dx,t.dy=Dn.dy,t.x=Dn.x,t.y=Dn.y,r.start.emit(t)}).on("drag",function(a){var s=new Ehe(a);s.dx=Dn.sourceEvent.clientX-i,s.dy=Dn.sourceEvent.clientY-o,i=Dn.sourceEvent.clientX,o=Dn.sourceEvent.clientY,r.drag.emit(s)}).on("end",function(a){var s=new Mhe(a);s.dx=Dn.x-t.x,s.dy=Dn.y-t.y,r.end.emit(s)})},n}(),oy=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Kn.ZT)(r,n),r}(function(){return function(r,t,i){this.datum=r,this.dx=t,this.dy=i}}()),Dhe=function(){return function(r,t,i,o,a){this.datum=r,this.x=t,this.y=i,this.width=o,this.height=a}}(),Ohe=function(){return function(r,t){this.x=r,this.y=t}}(),Phe=function(){return function(r,t,i){this.datum=r,this.x=t,this.y=i}}(),Ihe=function(){return function(r,t,i){this.savedText=r,this.x=t,this.y=i}}(),Rhe=function(){return function(r,t,i){this.textDrawingId=r,this.editedText=t,this.textElement=i}}(),Nhe=function(){return function(r,t){this.event=r,this.drawing=t}}(),ov=function(){return function(r,t){this.event=r,this.link=t}}(),Zhe=function(){return function(r,t){this.event=r,this.interfaceLabel=t}}(),Lhe=function(){return function(r,t){this.event=r,this.label=t}}(),tc=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}(),PS=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 D2,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(b){return[[b.source,b.nodes[0]],[b.target,b.nodes[1]]]}),a=o.enter().append("g").classed("link_node_position",!0),s=o.merge(a);s.attr("transform",function(b){return"translate("+b[0].x+", "+b[0].y+")"});var u=s.selectAll("g.interface_label_container").data(function(b){return t.enabled?[b[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(b){return""+b.id});var m=u.merge(p).on("contextmenu",function(b,I){event.preventDefault(),i.onContextMenu.emit(new Zhe(event,b))});m.select("text.interface_label").text(function(b){return b.label.text}).attr("style",function(b){var I=t.cssFixer.fix(b.label.style);return t.fontFixer.fixStyles(I)}).attr("x",function(b){return b.label.x}).attr("y",function(b){return b.label.y}).attr("transform",function(b){return"rotate("+b.label.rotation+", "+b.label.x+", "+b.label.y+")"}),m.select("rect.interface_label_selection").attr("visibility",function(b){return t.selectionManager.isSelected(b)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(b){var I=ei(this),G=m.select('text[interface_label_id="'+b.id+'"]').node().getBBox();I.attr("width",G.width+4),I.attr("height",G.height+4),I.attr("x",G.x-2),I.attr("y",G.y-2),I.attr("transform","rotate("+b.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(Jf),e.LFG(ec),e.LFG(tc),e.LFG(iy))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Sj=function(){return function(r,t,i,o){this.x=r,this.y=t,this.width=i,this.height=o}}(),oL=function(){function n(){this.selected=new Rn.xQ}return n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),O2=function(){function n(r,t){this.context=r,this.selectionEventSource=t,this.rectangleSelected=new Rn.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==Dn.button)return r.on("contextmenu",function(){Dn.preventDefault()}),void t.contextMenuOpened.emit(Dn);var i=ei(window),o=this.parentElement,a=t.transformation(el(o));t.startSelection(a),r.selectAll(n.SELECTABLE_CLASS).classed("selected",!1),i.on("mousemove.selection",function(){var s=t.transformation(el(o));t.moveSelection(a,s)}).on("mouseup.selection",function(){var s=t.transformation(el(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 Sj(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(Jl),e.LFG(oL))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),aL=function(){function n(r){this.context=r,this.enabled=!1,this.needsDeactivate=!1,this.needsActivate=!1,this.zoom=VH().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"===Dn.type}),this.zoom.on("zoom",function(){var o=r.select("g.canvas"),a=Dn;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(Jl))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Tj=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Kn.ZT)(r,n),r}(function(){return function(r,t){this.event=r,this.node=t}}()),P2=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 D2}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 Lhe(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=ei(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(Jf),e.LFG(ec),e.LFG(tc),e.LFG(iy))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),av=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}(),Su=function(){function n(){this.symbolScalingSubject=new Rn.xQ,this.isScrollDisabled=new Rn.xQ,this.isMapLocked=new Rn.xQ,this.isTopologySummaryVisible=!0,this.isLogConsoleVisible=!1,this.isLayerNumberVisible=!1,this.logConsoleSubject=new Rn.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}(),sL=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 Phe(u,Dn.pageX,Dn.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){Dn.preventDefault(),i.onContextMenu.emit(new Tj(Dn,u))}).on("dblclick",function(u,p){Dn.preventDefault(),i.onContextConsoleMenu.emit(new Tj(Dn,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){ei(this).attr("class","over")}).on("mouseout",function(u){ei(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(ry),e.LFG(tc),e.LFG(P2),e.LFG(av),e.LFG(Su))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),I2=function(){function n(r,t){this.nodeWidget=r,this.mapSettings=t,this.draggable=new D2}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(sL),e.LFG(iy))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Bhe=function(){return function(){}}(),lL=function(){function n(){this.drawingLine=new Bhe,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 A2(r,t),this.drawingLine.end=new A2(r,t),this.selection.on("mousemove",function(s,u){var m=el(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=PA(),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}(),xj=function(){return function(r,t,i,o){this.x=r,this.y=t,this.status=i,this.port=o}}(),wj=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=ei(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 b=o.nodes.find(function(xt){return xt.nodeId===o.source.id}).label.text,I=o.nodes.find(function(xt){return xt.nodeId===o.target.id}).label.text;u=[new xj(p.x,p.y,o.capturing&&o.suspend?"suspended":o.source.status,b),new xj(m.x,m.y,o.capturing&&o.suspend?"suspended":o.target.status,I)]}}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=(F=a.selectAll("rect.status_started").data(u.filter(function(xt){return"started"===xt.status}))).enter().append("rect");F.merge(G).attr("class","status_started").attr("width",function(xt){return 8*xt.port.length+10}).attr("height",20).attr("x",function(xt){return xt.x-30}).attr("y",function(xt){return xt.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#2ecc71").attr("stroke-width",3),F.exit().remove();var Y=a.selectAll("text.status_started_label").data(u.filter(function(xt){return"started"===xt.status})),te=Y.enter().append("text");Y.merge(te).attr("class","status_started_label").text(function(xt){return xt.port}).attr("x",function(xt){return xt.x-25}).attr("y",function(xt){return xt.y+5}).attr("fill","black"),Y.exit().remove();var xe=(ce=a.selectAll("rect.status_stopped").data(u.filter(function(xt){return"stopped"===xt.status}))).enter().append("rect");ce.merge(xe).attr("class","status_stopped").attr("width",function(xt){return 8*xt.port.length+10}).attr("height",20).attr("x",function(xt){return xt.x-30}).attr("y",function(xt){return xt.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","red").attr("stroke-width",3),ce.exit().remove();var lt=a.selectAll("text.status_stopped_label").data(u.filter(function(xt){return"stopped"===xt.status})),nt=lt.enter().append("text");lt.merge(nt).attr("class","status_stopped_label").text(function(xt){return xt.port}).attr("x",function(xt){return xt.x-25}).attr("y",function(xt){return xt.y+5}).attr("fill","black"),lt.exit().remove();var ht=(it=a.selectAll("rect.status_suspended").data(u.filter(function(xt){return"suspended"===xt.status}))).enter().append("rect");it.merge(ht).attr("class","status_suspended").attr("width",function(xt){return 8*xt.port.length+10}).attr("height",20).attr("x",function(xt){return xt.x-30}).attr("y",function(xt){return xt.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#FFFF00").attr("stroke-width",3),it.exit().remove();var Qe=a.selectAll("text.status_suspended_label").data(u.filter(function(xt){return"suspended"===xt.status})),tt=Qe.enter().append("text");Qe.merge(tt).attr("class","status_suspended_label").text(function(xt){return xt.port}).attr("x",function(xt){return xt.x-25}).attr("y",function(xt){return xt.y+5}).attr("fill","black"),Qe.exit().remove()}else{var F,ce,it;G=(F=a.selectAll("circle.status_started").data(u.filter(function(fn){return"started"===fn.status}))).enter().append("circle"),F.merge(G).attr("class","status_started").attr("cx",function(fn){return fn.x}).attr("cy",function(fn){return fn.y}).attr("r",6).attr("text",function(fn){return fn.port}).attr("fill","#2ecc71"),F.exit().remove(),xe=(ce=a.selectAll("rect.status_stopped").data(u.filter(function(fn){return"stopped"===fn.status}))).enter().append("rect"),ce.merge(xe).attr("class","status_stopped").attr("x",function(fn){return fn.x-5}).attr("y",function(fn){return fn.y-5}).attr("width",10).attr("height",10).attr("fill","red"),ce.exit().remove(),ht=(it=a.selectAll("circle.status_suspended").data(u.filter(function(fn){return"suspended"===fn.status}))).enter().append("circle"),it.merge(ht).attr("class","status_suspended").attr("cx",function(fn){return fn.x}).attr("cy",function(fn){return fn.y}).attr("r",6).attr("fill","#FFFF00"),it.exit().remove()}})},n.\u0275fac=function(t){return new(t||n)(e.LFG(Su))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Uhe=function(){return function(r,t){this.source=r,this.target=t}}(),uL=function(){function n(){this.onContextMenu=new e.vpe}return n.prototype.linktoEthernetLink=function(r){return new Uhe([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 ov(p,s))});o.attr("stroke","#000").attr("stroke-width","2").on("contextmenu",function(s){var p=event;t.onContextMenu.emit(new ov(p,s))}),i.merge(o).attr("d",function(s){var u=zu();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}(),Hhe=function(){return function(r,t,i,o){this.source=r,this.source_angle=t,this.target_angle=i,this.target=o}}(),cL=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 Hhe([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 ov(p,s))});o.attr("stroke","#B22222").attr("fill","none").attr("stroke-width","2"),i.merge(o).attr("d",function(s){var u=zu();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}(),dL=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 ov(Dn,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 ov(Dn,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.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 ov(Dn,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.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 ov(Dn,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(DS),e.LFG(PS),e.LFG(wj),e.LFG(tc),e.LFG(uL),e.LFG(cL))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),pL=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(DS),e.LFG(dL))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Vhe=function(){return function(){}}(),yo=function(){return function(){}}(),qhe=function(){function n(){}return n.prototype.convert=function(r){var t=new yo,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 b=r.attributes.getNamedItem("rx");b&&(t.rx=parseInt(b.value,10));var I=r.attributes.getNamedItem("ry");return I&&(t.ry=parseInt(I.value,10)),t},n}(),R2=function(){return function(){}}(),jhe=function(){function n(){}return n.prototype.convert=function(r){var t=new R2,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}(),sv=function(){return function(){}}(),zhe=function(){function n(){}return n.prototype.convert=function(r){var t=new sv,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}(),vp=function(){return function(){}}(),Whe=function(){function n(){}return n.prototype.convert=function(r){var t=new vp,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");return m&&(t.height=parseInt(m.value,10)),t},n}(),lv=function(){return function(){}}(),Ghe=function(){function n(){}return n.prototype.convert=function(r){var t=new lv;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}(),IS=function(){function n(){this.parser=new DOMParser,this.elementParsers={text:new Ghe,image:new jhe,rect:new Whe,line:new zhe,ellipse:new qhe}}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}(),kj=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 lv?[m.element]:[]}),o=i.enter().append("text").attr("class","text_element noselect"),a=i.merge(o);a.attr("style",function(m){var b=t.fontFixer.fix(m),I=[];return b.font_family&&I.push('font-family: "'+m.font_family+'"'),b.font_size&&I.push("font-size: "+m.font_size+"pt"),b.font_weight&&I.push("font-weight: "+m.font_weight),I.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,b){return 0===b?"0em":"1.4em"}),s.exit().remove(),a.attr("transform",function(){var m=ei(this).selectAll("tspan"),b=this.getBBox().height/m.size();return"translate("+n.MARGIN+", "+(b-n.MARGIN)+")"}),i.exit().remove()},n.MARGIN=4,n.\u0275fac=function(t){return new(t||n)(e.LFG(ec))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Ej=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 R2?[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}(),uv=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}(),Mj=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 vp?[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}),i.exit().remove()},n.\u0275fac=function(t){return new(t||n)(e.LFG(uv))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Aj=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 sv?[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(uv))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Dj=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 yo?[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(uv))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Oj=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 vp||s.element instanceof yo}).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 vp||s.element instanceof yo}).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 yo?s.element.cx-s.element.width/10:"0"}).attr("x2",function(s){return s.element instanceof yo?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 yo?s.element.cx-s.element.width/10:"0"}).attr("x2",function(s){return s.element instanceof yo?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 yo?s.element.cy-s.element.height/10:"0"}).attr("y2",function(s){return s.element instanceof yo?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 yo?s.element.cy-s.element.height/10:"0"}).attr("y2",function(s){return s.element instanceof yo?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(kj),e.LFG(Ej),e.LFG(Mj),e.LFG(Aj),e.LFG(Dj),e.LFG(tc),e.LFG(Su))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),RS=function(){function n(r,t,i,o){this.drawingWidget=r,this.svgToDrawingConverter=t,this.context=i,this.mapSettings=o,this.draggable=new D2,this.draggingEnabled=!1,this.resizingFinished=new e.vpe,this.onContextMenu=new e.vpe,this.svgToDrawingConverter=new IS}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(Qe){return Qe.drawings.forEach(function(tt){try{tt.element=t.svgToDrawingConverter.convert(tt.svg)}catch(Ot){}}),Qe.drawings},function(Qe){return Qe.id}),o=i.enter().append("g").attr("class","drawing").attr("drawing_id",function(Qe){return Qe.id}).on("contextmenu",function(Qe){Dn.preventDefault(),t.onContextMenu.emit(new Nhe(Dn,Qe))}),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,ce,b=!1,I=Nf().on("start",function(Qe){document.body.style.cursor="ns-resize",p=Qe.y}).on("drag",function(Qe){var tt=Dn;b?(u=s-(tt.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y)),s=tt.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),Qe.element.height+u<0?(b=!1,s=p,Qe.element.height=Math.abs(Qe.element.height+tt.dy)):(Qe.y=tt.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),Qe.element.height+=u,Qe.element instanceof yo&&(Qe.element.cy=Qe.element.cy+u/2<0?1:Qe.element.cy+=u/2,Qe.element.ry=Qe.element.ry+u/2<0?1:Qe.element.ry+=u/2))):Qe.element.height+tt.dy<0?(b=!0,s=p,Qe.element.height=Math.abs(Qe.element.height+tt.dy)):(Qe.element.height+=tt.dy,Qe.element instanceof yo&&(Qe.element.cy=Qe.element.cy+tt.dy/2<0?1:Qe.element.cy+=tt.dy/2,Qe.element.ry=Qe.element.ry+tt.dy/2<0?1:Qe.element.ry+=tt.dy/2)),t.redrawDrawing(r,Qe)}).on("end",function(Qe){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Qe))}),F=Nf().on("start",function(Qe){s=Dn.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),m=s+Qe.element.height,document.body.style.cursor="ns-resize"}).on("drag",function(Qe){var tt=Dn;b?Qe.element.height+tt.dy<0?(b=!1,s=m,Qe.element.height=Math.abs(Qe.element.height+tt.dy)):(Qe.element.height+=tt.dy,Qe.element instanceof yo&&(Qe.element.cy=Qe.element.cy+tt.dy/2<0?1:Qe.element.cy+=tt.dy/2,Qe.element.ry=Qe.element.ry+tt.dy/2<0?1:Qe.element.ry+=tt.dy/2)):(u=s-(tt.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y)),s=tt.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),Qe.element.height+u<0?(s=m,b=!0,Qe.element.height=Math.abs(Qe.element.height+tt.dy)):(Qe.y=tt.sourceEvent.pageY-(t.context.getZeroZeroTransformationPoint().y+t.context.transformation.y),Qe.element.height+=u,Qe.element instanceof yo&&(Qe.element.cy=Qe.element.cy+u/2<0?1:Qe.element.cy+=u/2,Qe.element.ry=Qe.element.ry+u/2<0?1:Qe.element.ry+=u/2))),t.redrawDrawing(r,Qe)}).on("end",function(Qe){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Qe))}),xe=!1,lt=Nf().on("start",function(Qe){G=Dn.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),ce=G+Qe.element.width,document.body.style.cursor="ew-resize"}).on("drag",function(Qe){var tt=Dn;xe?Qe.element.width+tt.dx<0?(G=ce,xe=!1,Qe.element.width=Math.abs(Qe.element.width+tt.dx)):(Qe.element instanceof yo&&(Qe.element.cx=Qe.element.cx+tt.dx/2<0?1:Qe.element.cx+=tt.dx/2,Qe.element.rx=Qe.element.rx+tt.dx/2<0?1:Qe.element.rx+=tt.dx/2),Qe.element.width=Qe.element.width+tt.dx<0?1:Qe.element.width+=tt.dx):(Y=G-(tt.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x)),G=tt.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),Qe.element.width+Y<0?(G=ce,xe=!0,Qe.element.width=Math.abs(Qe.element.width+tt.dx)):(Qe.x=tt.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),Qe.element.width+=Y,Qe.element instanceof yo&&(Qe.element.cx=Qe.element.cx+Y/2<0?1:Qe.element.cx+=Y/2,Qe.element.rx=Qe.element.rx+Y/2<0?1:Qe.element.rx+=Y/2))),t.redrawDrawing(r,Qe)}).on("end",function(Qe){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Qe))}),nt=Nf().on("start",function(Qe){document.body.style.cursor="ew-resize",te=Qe.x}).on("drag",function(Qe){var tt=Dn;xe?(Y=G-(tt.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x)),G=tt.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),Qe.element.width+Y<0?(G=te,xe=!1,Qe.element.width=Math.abs(Qe.element.width+tt.dx)):(Qe.x=tt.sourceEvent.pageX-(t.context.getZeroZeroTransformationPoint().x+t.context.transformation.x),Qe.element.width+=Y,Qe.element instanceof yo&&(Qe.element.cx=Qe.element.cx+Y/2<0?1:Qe.element.cx+=Y/2,Qe.element.rx=Qe.element.rx+Y/2<0?1:Qe.element.rx+=Y/2))):Qe.element.width+tt.dx<0?(G=te,xe=!0,Qe.element.width=Math.abs(Qe.element.width+tt.dx)):(Qe.element instanceof yo&&(Qe.element.cx=Qe.element.cx+tt.dx/2<0?1:Qe.element.cx+=tt.dx/2,Qe.element.rx=Qe.element.rx+tt.dx/2<0?1:Qe.element.rx+=tt.dx/2),Qe.element.width=Qe.element.width+tt.dx<0?1:Qe.element.width+=tt.dx),t.redrawDrawing(r,Qe)}).on("end",function(Qe){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Qe))}),it=Nf().on("start",function(){document.body.style.cursor="move"}).on("drag",function(Qe){var tt=Dn;Qe.element.width+=tt.dx,Qe.element.height+=tt.dy,Qe.element.x2+=tt.dx,Qe.element.y2+=tt.dy,t.redrawDrawing(r,Qe)}).on("end",function(Qe){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Qe))}),ht=Nf().on("start",function(){document.body.style.cursor="move"}).on("drag",function(Qe){var tt=Dn;Qe.element.width+=tt.dx,Qe.element.height+=tt.dy,Qe.element.x1+=tt.dx,Qe.element.y1+=tt.dy,t.redrawDrawing(r,Qe)}).on("end",function(Qe){document.body.style.cursor="initial",t.resizingFinished.emit(t.createResizingEvent(Qe))});a.select("line.bottom").call(I),a.select("line.top").call(F),a.select("line.right").call(lt),a.select("line.left").call(nt),a.select("circle.right").call(it),a.select("circle.left").call(ht)},n.prototype.createResizingEvent=function(r){var t=new Vhe;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(Oj),e.LFG(IS),e.LFG(Jl),e.LFG(iy))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Pj=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(pL),e.LFG(I2),e.LFG(RS))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),fL=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(I2),e.LFG(lL),e.LFG(O2),e.LFG(aL),e.LFG(Pj),e.LFG(M2))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),NS=function(){function n(){this.isSelectionToolActivated=new Rn.xQ,this.isMovingToolActivated=new Rn.xQ,this.isTextEditingToolActivated=new Rn.xQ,this.isTextAddingToolActivated=new Rn.xQ,this.isDrawLinkToolActivated=new Rn.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}(),ay=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(Jl))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),N2=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}(),Yhe=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){ei(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(N2),e.Y36(Jl))},n.\u0275dir=e.lG2({type:n,selectors:[["","movingCanvas",""]],hostBindings:function(t,i){1&t&&e.NdJ("mousedown",function(a){return i.onMouseDown(a)})}}),n}(),Jhe=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,ei(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(N2),e.Y36(Jl),e.Y36(ay))},n.\u0275dir=e.lG2({type:n,selectors:[["","zoomingCanvas",""]]}),n}(),nc=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}(),Qhe=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 Ohe(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(nc),e.Y36(Jl))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-drawing-adding"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),Khe=["*"],Xhe=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 Dhe(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(RS),e.Y36(nc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-drawing-resizing"]],ngContentSelectors:Khe,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[""]}),n}(),Ij=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}(),$he=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(I){return r.inRectangleHelper.inRectangle(t,I.x,I.y)}),o=r.graphDataManager.getLinks().filter(function(I){return r.inRectangleHelper.inRectangle(t,I.x,I.y)}),a=r.graphDataManager.getDrawings().filter(function(I){return r.inRectangleHelper.inRectangle(t,I.x,I.y)}),s=r.graphDataManager.getNodes().filter(function(I){return void 0!==I.label&&r.inRectangleHelper.inRectangle(t,I.x+I.label.x,I.y+I.label.y)}).map(function(I){return I.label}),u=r.graphDataManager.getLinks().filter(function(I){return void 0!==I.source&&2==I.nodes.length&&void 0!==I.nodes[0].label&&r.inRectangleHelper.inRectangle(t,I.source.x+I.nodes[0].label.x,I.source.y+I.nodes[0].label.y)}).map(function(I){return I.nodes[0]}),p=r.graphDataManager.getLinks().filter(function(I){return void 0!==I.target&&2==I.nodes.length&&void 0!==I.nodes[1].label&&r.inRectangleHelper.inRectangle(t,I.target.x+I.nodes[1].label.x,I.target.y+I.nodes[1].label.y)}).map(function(I){return I.nodes[1]}),m=(0,Kn.ev)((0,Kn.ev)([],u),p),b=(0,Kn.ev)((0,Kn.ev)((0,Kn.ev)((0,Kn.ev)((0,Kn.ev)([],i),o),a),s),m);r.selectionManager.setSelected(b)})},n.prototype.ngOnDestroy=function(){this.onSelection.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(oL),e.Y36(ry),e.Y36(Ij),e.Y36(tc))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-selection-control"]],decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),eme=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(tc),e.Y36(OS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-selection-select"]],decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),rc=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 t.x=Math.round(t.x),t.y=Math.round(t.y),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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Kf=f(3941),pa=f(96852),tme=["temporaryTextElement"],nme=function(){function n(r,t,i,o,a,s,u,p,m,b,I){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=b,this.ngZone=I,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(),r.textListener=function(){r.drawingsEventSource.textAdded.emit(new Ihe(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=ei(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,ei(a[o]).attr("visibility","hidden"),ei(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,b=i.label.style.split(";");m<b.length;m++){var I=b[m];p.push({property:I.split(": ")[0],value:I.split(": ")[1]})}var F={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"};F=r.fontFixer.fix(F),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",F.font_family),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"font-size",F.font_size+"pt"),r.renderer.setStyle(r.temporaryTextElement.nativeElement,"font-weight",F.font_weight),r.textListener=function(){var Y=r.temporaryTextElement.nativeElement.innerText,te=r.linksDataSource.get(r.editedLink.linkId);te.nodes.find(function(ce){return ce.node_id===r.editedNode.node_id}).label.text=Y,r.linkService.updateLink(r.server,te).subscribe(function(ce){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=ei(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,ei(a[o]).attr("visibility","hidden"),ei(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 Rhe(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(nc),e.Y36(NS),e.Y36(Jl),e.Y36(e.Qsj),e.Y36(ay),e.Y36(rc),e.Y36(Kf.F),e.Y36(pa.G),e.Y36(tc),e.Y36(ec),e.Y36(e.R0b))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-text-editor"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(tme,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}(),ZS=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}(),rme=function(){function n(r,t,i,o,a,s,u,p,m,b,I){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=b,this.mapSettingsService=I,this.isMapLocked=!1}return n.prototype.ngOnInit=function(){var r=this,t=ei(this.svg);this.mapSettingsSubscription=this.mapSettingsService.isMapLocked.subscribe(function(i){r.isMapLocked=i}),this.start=(0,ro.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 iv&&0===o.filter(function(a){return a instanceof iv&&a.id===i.datum.id}).length&&r.selectionManager.setSelected([i.datum]),i.datum instanceof Qf&&0===o.filter(function(a){return a instanceof Qf&&a.id===i.datum.id}).length&&r.selectionManager.setSelected([i.datum]),i.datum instanceof ny&&0===o.filter(function(a){return a instanceof ny&&a.id===i.datum.id}).length&&r.selectionManager.setSelected([i.datum]),i.datum instanceof AS&&0===o.filter(function(a){return a instanceof AS&&a.id===i.datum.id}).length&&r.selectionManager.setSelected([i.datum])}),this.drag=(0,ro.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 iv}),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(ce){return void 0!==ce.target&&ce.target.id===Y.id||void 0!==ce.source&&ce.source.id===Y.id}).forEach(function(ce){r.linksWidget.redrawLink(t,ce)})}),o.filter(function(Y){return Y instanceof Qf}).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 ny}).filter(function(Y){return 0===s.filter(function(te){return te.id===Y.nodeId}).length}).forEach(function(Y){if(!(u.filter(function(xe){return xe.id===Y.nodeId}).length>0)){var ce=r.graphDataManager.getNodes().filter(function(xe){return xe.id===Y.nodeId})[0];ce.label.x+=i.dx,ce.label.y+=i.dy,r.labelWidget.redrawLabel(t,Y)}}),o.filter(function(Y){return Y instanceof AS}).filter(function(Y){return 0===s.filter(function(te){return te.id===Y.nodeId}).length}).forEach(function(Y){if(!(u.filter(function(xe){return xe.id===Y.nodeId}).length>0)){var ce=r.graphDataManager.getLinks().filter(function(xe){return xe.nodes[0].id===Y.id||xe.nodes[1].id===Y.id})[0];ce.nodes[0].id===Y.id&&(ce.nodes[0].label.x+=i.dx,ce.nodes[0].label.y+=i.dy),ce.nodes[1].id===Y.id&&(ce.nodes[1].label.x+=i.dx,ce.nodes[1].label.y+=i.dy),r.linksWidget.redrawLink(t,ce)}})}}),this.end=(0,ro.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 iv}),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 oy(Y,i.dx,i.dy))}),o.filter(function(Y){return Y instanceof Qf}).filter(function(Y){return!Y.locked}).forEach(function(Y){r.drawingsEventSource.dragged.emit(new oy(Y,i.dx,i.dy))}),o.filter(function(Y){return Y instanceof ny}).filter(function(Y){return 0===s.filter(function(te){return te.id===Y.nodeId}).length}).forEach(function(Y){u.filter(function(ce){return ce.id===Y.nodeId}).length>0||r.nodesEventSource.labelDragged.emit(new oy(Y,i.dx,i.dy))}),o.filter(function(Y){return Y instanceof AS}).filter(function(Y){return 0===s.filter(function(te){return te.id===Y.nodeId}).length}).forEach(function(Y){u.filter(function(ce){return ce.id===Y.nodeId}).length>0||r.linksEventSource.interfaceDragged.emit(new oy(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(I2),e.Y36(RS),e.Y36(pL),e.Y36(P2),e.Y36(PS),e.Y36(tc),e.Y36(av),e.Y36(nc),e.Y36(ry),e.Y36(ZS),e.Y36(Su))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-draggable-selection"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),ime=["svg"],ome=["textEditor"],Rj=function(){function n(r,t,i,o,a,s,u,p,m,b,I,F,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=b,this.toolsService=I,this.mapScaleService=F,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=ei(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(ry),e.Y36(Jl),e.Y36(OS),e.Y36(rL),e.Y36(iy),e.Y36(e.SBq),e.Y36(PS),e.Y36(O2),e.Y36(aL),e.Y36(fL),e.Y36(NS),e.Y36(ay),e.Y36(Su))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-d3-map"]],viewQuery:function(t,i){if(1&t&&(e.Gf(ime,5),e.Gf(ome,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:[Yhe,Jhe,Qhe,Xhe,$he,eme,nme,rme],styles:["svg[_ngcontent-%COMP%]{display:block}"]}),n}(),ame=function(n,r){return function(t){return(0,sS.H)(500).pipe((0,Os.w)(function(){return r.list(n)}),(0,Ar.U)(function(i){return i.find(function(o){return o.name===t.value})?{projectExist:!0}:null}))}};function sme(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 lme(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 Nj=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(Wr),e.Y36(ld))},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,sme,5,0,"div",0),e.YNc(3,lme,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:[Mt.O5,ni,On],styles:[""]}),n}(),gp=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}(),cd=f(14200);function ume(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is required"),e.qZA())}function cme(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is incorrect"),e.qZA())}function dme(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project with this name exists"),e.qZA())}var pme=function(n){return{"is-invalid":n}},Zj=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 ne.NI(null,[ne.kI.required,this.projectNameValidator.get],[ame(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,ca.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(Nj,{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(Wr),e.Y36(Dr),e.Y36(zi),e.Y36(cd.Y),e.Y36(rr),e.Y36(ne.qu),e.Y36(gp))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-add-blank-project-dialog"]],features:[e._Bn([gp])],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,ume,2,0,"mat-error",4),e.YNc(6,cme,2,0,"mat-error",4),e.YNc(7,dme,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,pme,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:[ii,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,Mt.mk,Mt.O5,ni,On,Vn.TO],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),n}();function fme(n,r){}var hme=new e.OlP("MatBottomSheetData"),hL=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},mme={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(dn.mZ.COMPLEX," ").concat(dn.yN.ACCELERATION_CURVE))),(0,on.eR)("void => visible",(0,on.jt)("".concat(dn.mZ.EXITING," ").concat(dn.yN.DECELERATION_CURVE)))])},vme=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m){var b;return(0,g.Z)(this,i),(b=t.call(this))._elementRef=o,b._changeDetectorRef=a,b._focusTrapFactory=s,b.bottomSheetConfig=m,b._animationState="void",b._animationStateChanged=new e.vpe,b._elementFocusedBeforeOpened=null,b.attachDomPortal=function(I){return b._validatePortalAttached(),b._setPanelClass(),b._savePreviouslyFocusedElement(),b._portalOutlet.attachDomPortal(I)},b._document=p,b._breakpointSubscription=u.observe([Wf_Medium,Wf_Large,"(min-width: 1920px)"]).subscribe(function(){b._toggleClass("mat-bottom-sheet-container-medium",u.isMatched(Wf_Medium)),b._toggleClass("mat-bottom-sheet-container-large",u.isMatched(Wf_Large)),b._toggleClass("mat-bottom-sheet-container-xlarge",u.isMatched("(min-width: 1920px)"))}),b}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,ti.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,ti.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,ti.ht)(),this._elementRef.nativeElement.focus&&Promise.resolve().then(function(){return a._elementRef.nativeElement.focus()})}}]),i}(Ni.en);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ti.qV),e.Y36(d2),e.Y36(Mt.K0,8),e.Y36(hL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(t,i){var o;1&t&&e.Gf(Ni.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,fme,0,0,"ng-template",0)},directives:[Ni.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:[mme.bottomSheetState]}}),n}(),Lj=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:[[Xi.U8,dn.BQ,Ni.eL],dn.BQ]}),n}(),Z2=function(){function n(r,t){var i=this;(0,g.Z)(this,n),this._overlayRef=t,this._afterDismissed=new Rn.xQ,this._afterOpened=new Rn.xQ,this.containerInstance=r,this.disableClose=r.bottomSheetConfig.disableClose,r._animationStateChanged.pipe((0,_i.h)(function(o){return"done"===o.phaseName&&"visible"===o.toState}),(0,qi.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),r._animationStateChanged.pipe((0,_i.h)(function(o){return"done"===o.phaseName&&"hidden"===o.toState}),(0,qi.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),t.dispose()}),t.detachments().pipe((0,qi.q)(1)).subscribe(function(){i._afterDismissed.next(i._result),i._afterDismissed.complete()}),(0,ro.T)(t.backdropClick(),t.keydownEvents().pipe((0,_i.h)(function(o){return o.keyCode===Kr.hY}))).subscribe(function(o){!i.disableClose&&("keydown"!==o.type||!(0,Kr.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,_i.h)(function(o){return"start"===o.phaseName}),(0,qi.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}(),Fj=new e.OlP("mat-bottom-sheet-default-options"),LS=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 hL,o),u=this._createOverlay(s),p=this._attachContainer(u,s),m=new Z2(p,u);if(i instanceof e.Rgc)p.attachTemplatePortal(new Ni.UE(i,null,{$implicit:s.data,bottomSheetRef:m}));else{var b=new Ni.C5(i,void 0,this._createInjector(s,m)),I=p.attachComponentPortal(b);m.instance=I.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:hL,useValue:o}]}),u=new Ni.C5(vme,o.viewContainerRef,s);return i.attach(u).instance}},{key:"_createOverlay",value:function(i){var o=new Xi.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:Z2,useValue:o},{provide:hme,useValue:i.data}];return i.direction&&(!a||!a.get(Ca.Is,null,e.XFs.Optional))&&s.push({provide:Ca.Is,useValue:{value:i.direction,change:(0,ur.of)()}}),e.zs3.create({parent:a||this._injector,providers:s})}}]),r}();return n.\u0275fac=function(t){return new(t||n)(e.LFG(Xi.aV),e.LFG(e.zs3),e.LFG(n,12),e.LFG(Fj,8))},n.\u0275prov=e.Yz7({factory:function(){return new n(e.LFG(Xi.aV),e.LFG(e.gxx),e.LFG(n,12),e.LFG(Fj,8))},token:n,providedIn:Lj}),n}(),_me=function(n){return{lightTheme:n}},Xf=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(Z2),e.Y36(Ku.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,_me,i.isLightThemeEnabled)),e.xp6(2),e.Oqu(i.message))},directives:[Mt.mk,On],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}(),L2=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}(),uo=f(88802);function yme(n,r){1&n&&(e.TgZ(0,"th",26),e._uU(1,"Name"),e.qZA())}function bme(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 Cme(n,r){1&n&&(e.TgZ(0,"th",26),e._uU(1,"Value"),e.qZA())}function Sme(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 Tme(n,r){1&n&&(e.TgZ(0,"th",26),e._uU(1,"Actions"),e.qZA())}function xme(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 wme(n,r){1&n&&e._UZ(0,"tr",30)}function kme(n,r){1&n&&e._UZ(0,"tr",31)}var F2=function(){return{standalone:!0}},Eme=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 ne.NI("",[ne.kI.required]),width:new ne.NI("",[ne.kI.required,a.get]),height:new ne.NI("",[ne.kI.required,a.get]),nodeGridSize:new ne.NI("",[ne.kI.required,a.get]),drawingGridSize:new ne.NI("",[ne.kI.required,a.get])}),this.variableFormGroup=this.formBuilder.group({name:new ne.NI("",[ne.kI.required]),value:new ne.NI("",[ne.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(Wr),e.Y36(ne.qu),e.Y36(cd.Y),e.Y36(rr),e.Y36(L2))},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,yme,2,0,"th",17),e.YNc(35,bme,2,1,"td",18),e.BQk(),e.ynx(36,19),e.YNc(37,Cme,2,0,"th",17),e.YNc(38,Sme,2,1,"td",18),e.BQk(),e.ynx(39,20),e.YNc(40,Tme,2,0,"th",17),e.YNc(41,xme,4,0,"td",18),e.BQk(),e.YNc(42,wme,1,0,"tr",21),e.YNc(43,kme,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,F2))("ngModel",i.project.auto_open),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(14,F2))("ngModel",i.project.auto_start),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(15,F2))("ngModel",i.auto_close),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(16,F2))("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:[ii,uo.SP,uo.uX,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,ne.wV,xo,ne.On,On,jl,il,rl,nl,zl,Wl,ni,ol,al,Ra,pr,Gl,Yl],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 Mme(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is required"),e.qZA())}function Ame(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is incorrect"),e.qZA())}var Dme=function(n){return{empty:n}},Ome=function(n){return{"is-invalid":n}},Pme=function(n){return{width:n}},Bj=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 ne.NI(null,[ne.kI.required,s.get])})}return n.prototype.ngOnInit=function(){var r=this;this.uploader=new Wm({}),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(Nj,{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,ca.v4)(),this.projectService.getUploadPath(this.server,this.uuid,this.projectNameForm.controls.projectName.value)},n.\u0275fac=function(t){return new(t||n)(e.Y36(zi),e.Y36(Wr),e.Y36(ld),e.Y36(ne.qu),e.Y36(cd.Y),e.Y36(gp))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-import-project-dialog"]],features:[e._Bn([gp])],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,Mme,2,0,"mat-error",8),e.YNc(11,Ame,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,Dme,!i.isDeleteVisible)),e.xp6(1),e.Q6J("ngClass",e.VKq(15,Ome,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,Pme,i.uploader.progress+"%")),e.xp6(3),e.Oqu(i.resultMessage),e.xp6(2),e.Q6J("disabled",!i.isFinishEnabled))},directives:[ii,ne._Y,ne.JL,ne.sg,lS,On,Ra,Vn.KE,Mt.mk,hr,ne.Fj,ne.JJ,ne.u,Mt.O5,pr,ni,Mt.PC,Vn.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}(),Ime=function(n){return{lightTheme:n}},Uj=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(Z2),e.Y36(Ku.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,Ime,i.isLightThemeEnabled)),e.xp6(2),e.hij("Do you want to navigate to ",i.projectMessage,"?"))},directives:[Mt.mk,On],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 Rme(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is required"),e.qZA())}function Nme(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Project name is incorrect"),e.qZA())}var Zme=function(n){return{"is-invalid":n}},Lme=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 ne.NI(null,[ne.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(Wr),e.Y36(cd.Y),e.Y36(pa.G),e.Y36(rr),e.Y36(ne.qu),e.Y36(gp))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-save-project-dialog"]],features:[e._Bn([gp])],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,Rme,2,0,"mat-error",4),e.YNc(6,Nme,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,Zme,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:[ii,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,Mt.mk,Mt.O5,ni,On,Vn.TO],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),n}(),Hj=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 Fme(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 Bme=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(Wr),e.Y36(Hj))},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,Fme,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:[ii,uo.SP,uo.uX,Mt.sg,ni,On],styles:[".textBox[_ngcontent-%COMP%]{margin-top:10px}"]}),n}(),Ume=function(){function n(r){this.dialog=r}return n.prototype.showNode=function(){var t=this.dialog.open(Bme,{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(zi))},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:[Hr,pr],encapsulation:2}),n}(),Xr=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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function Hme(n,r){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Port : VPI : VCI"),e.qZA())}function Vme(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 qme(n,r){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Port : VPI : VCI"),e.qZA())}function jme(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 zme(n,r){1&n&&(e.TgZ(0,"th",27),e._uU(1,"Actions"),e.qZA())}function Wme(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 Gme(n,r){1&n&&e._UZ(0,"tr",31)}function Yme(n,r){1&n&&e._UZ(0,"tr",32)}function Jme(n,r){if(1&n&&(e.TgZ(0,"table",19),e.ynx(1,20),e.YNc(2,Hme,2,0,"th",21),e.YNc(3,Vme,2,1,"td",22),e.BQk(),e.ynx(4,23),e.YNc(5,qme,2,0,"th",21),e.YNc(6,jme,2,1,"td",22),e.BQk(),e.ynx(7,24),e.YNc(8,zme,2,0,"th",21),e.YNc(9,Wme,4,0,"td",22),e.BQk(),e.YNc(10,Gme,1,0,"tr",25),e.YNc(11,Yme,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 Qme=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 ne.NI("",ne.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new ne.NI("",ne.kI.required),sourceVci:new ne.NI("",ne.kI.required),destinationPort:new ne.NI("",ne.kI.required),destinationVci:new ne.NI("",ne.kI.required)}),this.abstractForm=this.formBuilder.group({sourceVpi:new ne.NI("",ne.kI.required),destinationVpi:new ne.NI("",ne.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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.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,Jme,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:[ii,bi,Mt.O5,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,xo,ne.On,ne.wV,On,ni,jl,il,rl,nl,zl,Wl,ol,al,Ra,pr,Gl,Yl],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 Kme(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Name"),e.qZA())}function Xme(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 $me(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Local port"),e.qZA())}function eve(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 tve(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Type"),e.qZA())}function nve(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 rve(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Remote port"),e.qZA())}function ive(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 ove(n,r){1&n&&(e.TgZ(0,"th",18),e._uU(1,"Actions"),e.qZA())}function ave(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 sve(n,r){1&n&&e._UZ(0,"tr",22)}function lve(n,r){1&n&&e._UZ(0,"tr",23)}function uve(n,r){if(1&n&&(e.TgZ(0,"table",8),e.ynx(1,9),e.YNc(2,Kme,2,0,"th",10),e.YNc(3,Xme,2,1,"td",11),e.BQk(),e.ynx(4,12),e.YNc(5,$me,2,0,"th",10),e.YNc(6,eve,2,1,"td",11),e.BQk(),e.ynx(7,13),e.YNc(8,tve,2,0,"th",10),e.YNc(9,nve,2,1,"td",11),e.BQk(),e.ynx(10,14),e.YNc(11,rve,2,0,"th",10),e.YNc(12,ive,2,1,"td",11),e.BQk(),e.ynx(13,15),e.YNc(14,ove,2,0,"th",10),e.YNc(15,ave,4,0,"td",11),e.BQk(),e.YNc(16,sve,1,0,"tr",16),e.YNc(17,lve,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 cve(n,r){1&n&&e._UZ(0,"br")}var dve=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(Gf))},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,uve,18,3,"table",0),e.YNc(1,cve,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:[Mt.O5,Vn.KE,hr,ne.Fj,ne.JJ,ne.On,ne.wV,On,jl,il,rl,nl,zl,Wl,ol,al,Ra,pr,Gl,Yl],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}(),pve=["udpTunnels"];function fve(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 hve(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 mve(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 vve(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 gve=function(){return{standalone:!0}};function _ve(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-tab-group"),e.TgZ(1,"mat-tab",9),e.YNc(2,fve,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,hve,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,mve,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,vve,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,gve))("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 yve=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 ne.NI("",ne.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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.qu),e.Y36(Gf))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-cloud"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(pve,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,_ve,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:[ii,bi,Mt.O5,ni,On,uo.SP,uo.uX,Mt.sg,Vn.KE,hi.gD,ne.JJ,ne.On,hr,ne.Fj,dve,ne._Y,ne.JL,ne.sg,ne.u,dn.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 bve(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 Cve(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,bve,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 Sve=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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.qu),e.Y36(wS))},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,Cve,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:[ii,Mt.O5,ni,On,NZ,Mt.sg,cs,hr,ne.Fj,ne.JJ,ne.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 Tve(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 xve=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(Wr),e.Y36(Xr),e.Y36(rr))},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,Tve,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:[ii,Mt.O5,ni,On,hr,ne.Fj,ne.JJ,ne.On],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}"]}),n}();function wve(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 kve(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 mL=function(){return{standalone:!0}};function Eve(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,wve,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,kve,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().node.properties.extra_volumes=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,mL))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(19,mL))("ngModel",i.node.console_auto_start),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(20,mL))("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.node.properties.extra_volumes),e.xp6(3),e.Q6J("ngModel",i.node.properties.usage)}}var Mve=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=["640x480","800x600","1024x768","1280x800","1280x1024","1366x768","1920x1080"],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required),adapter:new ne.NI("",ne.kI.required),startCommand:new ne.NI("",ne.kI.required),consoleHttpPort:new ne.NI("",ne.kI.required),consoleHttpPath:new ne.NI("",ne.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.dockerConfigurationService.getConsoleTypes()},n.prototype.configureCustomAdapters=function(){this.dialogRef=this.dialog.open(Sve,this.conf);var r=this.dialogRef.componentInstance;r.server=this.server,r.node=this.node},n.prototype.editNetworkConfiguration=function(){this.dialogRef=this.dialog.open(xve,this.conf);var r=this.dialogRef.componentInstance;r.server=this.server,r.node=this.node},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.dialogReference.close()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.qu),e.Y36(wS),e.Y36(zi))},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,Eve,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:[ii,bi,Mt.O5,ni,On,uo.SP,uo.uX,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,ne.wV,hi.gD,ne.On,Mt.sg,xo,dn.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 Ave(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 Dve(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 Ove=function(){return{standalone:!0}};function Pve(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,Ave,2,2,"mat-option",14),e.qZA(),e.qZA(),e.qZA(),e.YNc(8,Dve,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,Ove))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngIf",i.node.properties)}}var Ive=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 ne.NI("",ne.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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.qu),e.Y36(Gf))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-ethernet-switch"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(m2,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,Pve,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:[ii,Mt.O5,ni,On,bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,hi.gD,ne.On,Mt.sg,dn.ey,m2],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}(),Rve=function(){return{standalone:!0}},Nve=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 ne.NI("",ne.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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.qu),e.Y36(x2))},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,Rve)))},directives:[ii,bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,ne.wV,ne.On,ni,On],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 Zve(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 Lve(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,Zve,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 Fve=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 ne.NI("",ne.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new ne.NI("",ne.kI.required),nvram:new ne.NI("",ne.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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.qu),e.Y36(_2))},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,Lve,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:[ii,bi,Mt.O5,ni,On,uo.SP,uo.uX,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,hi.gD,ne.On,Mt.sg,xo,ne.wV,Vn.R9,dn.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 Bve(n,r){if(1&n&&(e.TgZ(0,"mat-option",25),e._uU(1),e.qZA()),2&n){var t=r.$implicit;e.Q6J("value",t),e.xp6(1),e.hij(" ",t," ")}}function Uve(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,Bve,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-form-field",11),e.TgZ(13,"input",17),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.ram=a}),e.qZA(),e.TgZ(14,"span",18),e._uU(15,"MB"),e.qZA(),e.qZA(),e.TgZ(16,"mat-form-field",11),e.TgZ(17,"input",19),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.properties.nvram=a}),e.qZA(),e.TgZ(18,"span",18),e._uU(19,"MB"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(20,"mat-tab",20),e._UZ(21,"br"),e.TgZ(22,"form",10),e.TgZ(23,"mat-form-field",11),e.TgZ(24,"input",21),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.ethernet_adapters=a}),e.qZA(),e.qZA(),e.TgZ(25,"mat-form-field",11),e.TgZ(26,"input",22),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().node.serial_adapters=a}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(27,"mat-tab",23),e.TgZ(28,"mat-form-field",11),e.TgZ(29,"textarea",24),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(4),e.Q6J("ngModel",i.node.properties.ram),e.xp6(4),e.Q6J("ngModel",i.node.properties.nvram),e.xp6(5),e.Q6J("formGroup",i.networkForm),e.xp6(2),e.Q6J("ngModel",i.node.ethernet_adapters),e.xp6(2),e.Q6J("ngModel",i.node.serial_adapters),e.xp6(3),e.Q6J("ngModel",i.node.properties.usage)}}var Hve=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 ne.NI("",ne.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new ne.NI("",ne.kI.required),serialAdapters:new ne.NI("",ne.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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.qu),e.Y36(qZ))},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"],["matInput","","type","number","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["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"]],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,Uve,30,11,"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:[ii,bi,Mt.O5,ni,On,uo.SP,uo.uX,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,hi.gD,ne.On,Mt.sg,xo,ne.wV,Vn.R9,dn.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}(),Vve=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 ne.NI("",ne.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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.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:[ii,bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,ni,On],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 qve(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 jve(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 zve(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 Wve(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 Gve(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 Yve(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,jve,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,zve,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,Wve,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,Gve,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 Jve(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 Qve(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 Kve(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,Qve,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 Xve=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 ne.NI("",ne.kI.required),path:new ne.NI("",ne.kI.required),size:new ne.NI("",ne.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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.qu),e.Y36(mp))},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,qve,2,2,"mat-option",9),e.qZA(),e.qZA(),e.YNc(12,Yve,15,8,"div",10),e.YNc(13,Jve,6,0,"div",10),e.YNc(14,Kve,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:[ii,bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,hi.gD,ne.On,Mt.sg,Mt.O5,ne.wV,ni,On,dn.ey,sl,ll],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}(),$ve=["customAdapters"];function ege(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 tge(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 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 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),e.xp6(1),e.hij(" ",t," ")}}function ige(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 oge(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 age(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 sge(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 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.filename),e.xp6(1),e.hij(" ",t.filename," ")}}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),e.xp6(1),e.hij(" ",t," ")}}function cge(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 dge(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 pge(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 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),e.xp6(1),e.hij(" ",t," ")}}function hge(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,ege,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,tge,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,nge,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,rge,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,ige,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,oge,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,age,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,sge,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,lge,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,uge,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,cge,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,dge,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,pge,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,fge,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.qZA(),e.qZA(),e.qZA(),e.TgZ(138,"mat-tab",47),e.TgZ(139,"mat-form-field",11),e.TgZ(140,"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(3),e.Q6J("ngModel",i.node.properties.usage)}}var mge=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 ne.NI("",ne.kI.required),ram:new ne.NI("",ne.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(Xve,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(zi),e.Y36(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.qu),e.Y36(mp),e.Y36(y2))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-qemu"]],viewQuery:function(t,i){var o;(1&t&&e.Gf($ve,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,hge,141,45,"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:[ii,bi,Mt.O5,ni,On,uo.SP,uo.uX,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,ne.wV,Vn.R9,ne.On,hi.gD,Mt.sg,xo,fq,hq,DZ,b2,dn.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 vge(n,r){1&n&&(e.TgZ(0,"th",24),e._uU(1,"Port : DLCI"),e.qZA())}function gge(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 _ge(n,r){1&n&&(e.TgZ(0,"th",24),e._uU(1,"Port : DLCI"),e.qZA())}function yge(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 bge(n,r){1&n&&(e.TgZ(0,"th",24),e._uU(1,"Actions"),e.qZA())}function Cge(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 Sge(n,r){1&n&&e._UZ(0,"tr",28)}function Tge(n,r){1&n&&e._UZ(0,"tr",29)}function xge(n,r){if(1&n&&(e.TgZ(0,"table",16),e.ynx(1,17),e.YNc(2,vge,2,0,"th",18),e.YNc(3,gge,2,1,"td",19),e.BQk(),e.ynx(4,20),e.YNc(5,_ge,2,0,"th",18),e.YNc(6,yge,2,1,"td",19),e.BQk(),e.ynx(7,21),e.YNc(8,bge,2,0,"th",18),e.YNc(9,Cge,4,0,"td",19),e.BQk(),e.YNc(10,Sge,1,0,"tr",22),e.YNc(11,Tge,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 wge=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 ne.NI("",ne.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new ne.NI("",ne.kI.required),sourceDlci:new ne.NI("",ne.kI.required),destinationPort:new ne.NI("",ne.kI.required),destinationDlci:new ne.NI("",ne.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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.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,xge,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:[ii,bi,Mt.O5,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,ne.wV,On,ni,jl,il,rl,nl,zl,Wl,ol,al,Ra,pr,Gl,Yl],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}(),kge=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 ne.NI("",ne.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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.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:[ii,bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,ni,On],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}(),Ege=["customAdapters"];function Mge(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 Age(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 vL=function(){return{standalone:!0}};function Dge(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,Mge,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,Age,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,vL))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(18,vL))("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,vL))("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 Oge=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 ne.NI("",ne.kI.required),ram:new ne.NI("",ne.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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.qu),e.Y36(GZ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-virtualbox"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Ege,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,Dge,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:[ii,bi,Mt.O5,ni,On,uo.SP,uo.uX,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,hi.gD,ne.On,Mt.sg,xo,ne.wV,Vn.R9,b2,dn.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}(),Pge=["customAdapters"];function Ige(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 Rge(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 gL=function(){return{standalone:!0}};function Nge(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,Ige,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,Rge,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,gL))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(18,gL))("ngModel",i.node.console_auto_start),e.xp6(3),e.Q6J("ngModelOptions",e.DdM(19,gL))("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 Zge=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 ne.NI("",ne.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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.qu),e.Y36(YZ))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-configurator-vmware"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Pge,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,Nge,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:[ii,bi,Mt.O5,ni,On,uo.SP,uo.uX,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,hi.gD,ne.On,Mt.sg,xo,b2,dn.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 Lge(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 Vj=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.inputForm=this.formBuilder.group({name:new ne.NI("",ne.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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.qu),e.Y36(x2))},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,Lge,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,Vj))("ngModel",i.node.console_type),e.xp6(1),e.Q6J("ngForOf",i.consoleTypes),e.xp6(1),e.Q6J("ngModelOptions",e.DdM(9,Vj))("ngModel",i.node.console_auto_start))},directives:[ii,bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,hi.gD,ne.On,Mt.sg,xo,ni,On,dn.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}(),Bge=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(Fge,this.conf):"ethernet_hub"===this.node.node_type?this.dialogRef=this.dialog.open(Nve,this.conf):"ethernet_switch"===this.node.node_type?this.dialogRef=this.dialog.open(Ive,this.conf):"cloud"===this.node.node_type?this.dialogRef=this.dialog.open(yve,this.conf):"dynamips"===this.node.node_type?this.dialogRef=this.dialog.open(Fve,this.conf):"iou"===this.node.node_type?this.dialogRef=this.dialog.open(Hve,this.conf):"qemu"===this.node.node_type?this.dialogRef=this.dialog.open(mge,this.conf):"virtualbox"===this.node.node_type?this.dialogRef=this.dialog.open(Oge,this.conf):"vmware"===this.node.node_type?this.dialogRef=this.dialog.open(Zge,this.conf):"docker"===this.node.node_type?this.dialogRef=this.dialog.open(Mve,this.conf):"nat"===this.node.node_type?this.dialogRef=this.dialog.open(Vve,this.conf):"frame_relay_switch"===this.node.node_type?this.dialogRef=this.dialog.open(wge,this.conf):"atm_switch"===this.node.node_type?this.dialogRef=this.dialog.open(Qme,this.conf):"traceng"===this.node.node_type&&(this.dialogRef=this.dialog.open(kge,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(zi))},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:[Hr,pr],encapsulation:2}),n}();function Uge(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 Hge=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(Xr),e.Y36(rr))},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,Uge,5,0,"button",0),2&t&&e.Q6J("ngIf",i.isNodeWithStoppedStatus)},directives:[Mt.O5,Hr,pr],encapsulation:2}),n}();function Vge(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 qge=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(Xr))},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,Vge,5,0,"button",0),2&t&&e.Q6J("ngIf",i.isNodeWithStartedStatus)},directives:[Mt.O5,Hr,pr],encapsulation:2}),n}();function jge(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 zge=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(Xr))},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,jge,5,0,"button",0),2&t&&e.Q6J("ngIf",i.isNodeWithStartedStatus)},directives:[Mt.O5,Hr,pr],encapsulation:2}),n}();function Wge(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 Gge=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(Xr))},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,Wge,5,0,"button",0),2&t&&e.Q6J("ngIf",i.filteredNodes.length>0)},directives:[Mt.O5,Hr,pr],encapsulation:2}),n}(),dd=function(){function n(r,t,i){this.router=r,this.toasterService=t,this.mapSettingsService=i,this.nodeConsoleTrigger=new e.vpe,this.closeNodeConsoleTrigger=new Rn.xQ,this.consoleResized=new Rn.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){"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 for them: ",o=0;r.forEach(function(a){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(Dr),e.LFG(rr),e.LFG(Su))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Yge=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(dd))},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:[Hr,pr],encapsulation:2}),n}(),Jge=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(dd))},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:[Hr,pr],encapsulation:2}),n}(),_p=f(10503),Qge=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,Kn.mG)(this,void 0,void 0,function(){var r,i,o,a,s;return(0,Kn.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}).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?[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,Kn.mG)(this,void 0,void 0,function(){return(0,Kn.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($a),e.Y36(zr),e.Y36(_p.g),e.Y36(rr),e.Y36(Xr))},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:[Hr,pr],encapsulation:2}),n}(),Kge=function(){function n(r,t){this.toasterService=r,this.nodeService=t}return n.prototype.openConsole=function(){var r=this;this.nodeService.getNode(this.server,this.node).subscribe(function(t){r.node=t,r.startConsole()})},n.prototype.startConsole=function(){if("started"!==this.node.status)this.toasterService.error("This node must be started before a console can be opened");else if(("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),"telnet"===this.node.console_type||"vnc"===this.node.console_type||"spice"===this.node.console_type)try{location.assign("gns3+"+this.node.console_type+"://"+this.node.console_host+":"+this.node.console+"?name="+this.node.name+"&project_id="+this.node.project_id+"&node_id="+this.node.node_id)}catch(r){this.toasterService.error(r)}else this.toasterService.error("Supported console types: telnet, vnc, spice.")},n.\u0275fac=function(t){return new(t||n)(e.Y36(rr),e.Y36(Xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-console-device-action-browser"]],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.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())},directives:[Hr,pr],encapsulation:2}),n}(),Xge=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($a))},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:[Hr,pr],encapsulation:2}),n}(),$ge=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 ne.NI("",ne.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(Wr),e.Y36(Xr),e.Y36(rr),e.Y36(ne.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:[ii,bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,ni,On],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),n}(),e_e=function(){function n(r){this.dialog=r}return n.prototype.ngOnInit=function(){},n.prototype.changeHostname=function(){var t=this.dialog.open($ge,{autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.node=this.node},n.\u0275fac=function(t){return new(t||n)(e.Y36(zi))},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:[Hr,pr],encapsulation:2}),n}(),t_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(Wr),e.Y36(Xr))},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:[ii,Lq,ni,On],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}(),n_e=function(){function n(r){this.dialog=r}return n.prototype.ngOnInit=function(){},n.prototype.changeSymbol=function(){var t=this.dialog.open(t_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(zi))},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:[Hr,pr],encapsulation:2}),n}(),ps=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(Zo.wh),e.LFG(IS))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),fs=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Kn.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}(w2.o),r_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(Xr),e.Y36(pa.G),e.Y36(ps),e.Y36(fs),e.Y36(rr))},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:[Hr,pr],encapsulation:2}),n}(),cv=function(){function n(){}return n.prototype.convert=function(r){var t="";if(r.element instanceof vp)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+'" />';else if(r.element instanceof yo)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 sv)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 lv))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}(),_L=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}(),yL=function(){return{standalone:!0}};function i_e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-form-field",3),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,yL))("ngModel",i.element.stroke_dasharray)}}var o_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 ne.NI("",[ne.kI.required,p.get]),rotation:new ne.NI("",[ne.kI.required,m.get])})}return n.prototype.ngOnInit=function(){this.element=new a_e,this.drawing.element instanceof vp||this.drawing.element instanceof yo?(this.element.fill=this.drawing.element.fill,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 sv&&(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),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 vp||this.drawing.element instanceof yo?(this.drawing.element.fill=this.element.fill,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 sv&&(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);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(Wr),e.Y36(E2),e.Y36(cv),e.Y36(ps),e.Y36(fs),e.Y36(ne.qu),e.Y36(rr),e.Y36(L2),e.Y36(_L))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-style-editor"]],decls:18,vars:8,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Fill color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Border color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","borderWidth","placeholder","Border width","type","number"],["class","form-field",4,"ngIf"],["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","Border style","type","text",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.TgZ(4,"mat-form-field",3),e.TgZ(5,"input",4),e.NdJ("ngModelChange",function(a){return i.element.fill=a}),e.qZA(),e.qZA(),e.TgZ(6,"mat-form-field",3),e.TgZ(7,"input",5),e.NdJ("ngModelChange",function(a){return i.element.stroke=a}),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",3),e._UZ(9,"input",6),e.qZA(),e.YNc(10,i_e,2,3,"mat-form-field",7),e.TgZ(11,"mat-form-field",3),e._UZ(12,"input",8),e.qZA(),e.qZA(),e.qZA(),e.TgZ(13,"div",9),e.TgZ(14,"button",10),e.NdJ("click",function(){return i.onNoClick()}),e._uU(15,"Cancel"),e.qZA(),e.TgZ(16,"button",11),e.NdJ("click",function(){return i.onYesClick()}),e._uU(17,"Apply"),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("formGroup",i.formGroup),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(6,yL))("ngModel",i.element.fill),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(7,yL))("ngModel",i.element.stroke),e.xp6(3),e.Q6J("ngIf",i.element.stroke_dasharray))},directives:[ii,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.On,ne.wV,ne.u,Mt.O5,ni,On],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}(),a_e=function(){return function(){}}();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().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 l_e=function(){function n(r){this.dialog=r,this.isImageDrawing=!1}return n.prototype.ngOnChanges=function(){this.isImageDrawing=this.drawing.element instanceof R2},n.prototype.editStyle=function(){var t=this.dialog.open(o_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(zi))},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,s_e,5,0,"button",0),2&t&&e.Q6J("ngIf",!i.isImageDrawing)},directives:[Mt.O5,Hr,pr],encapsulation:2}),n}(),u_e=["textArea"],c_e=function(){function n(r,t,i,o,a,s,u,p,m,b,I,F,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=b,this.formBuilder=I,this.toasterService=F,this.rotationValidator=G,this.fontFixer=Y}return n.prototype.ngOnInit=function(){var r=this;this.formGroup=this.formBuilder.group({rotation:new ne.NI("",[ne.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 lv,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(Wr),e.Y36(E2),e.Y36(cv),e.Y36(ps),e.Y36(fs),e.Y36(e.Qsj),e.Y36(Xr),e.Y36(pa.G),e.Y36(rc),e.Y36(Kf.F),e.Y36(ne.qu),e.Y36(rr),e.Y36(_L),e.Y36(ec))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-text-editor"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(u_e,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:[ii,Vn.KE,hr,ne.Fj,ne.JJ,ne.On,ne._Y,ne.JL,ne.sg,ne.u,ni,On],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}(),d_e=function(){function n(r){this.dialog=r}return n.prototype.ngOnInit=function(){},n.prototype.editText=function(){var t=this.dialog.open(c_e,{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(zi))},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:[Hr,pr],encapsulation:2}),n}();function p_e(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 f_e(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 h_e=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(Wr),e.Y36(Xr),e.Y36(rr))},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,p_e,3,1,"div",1),e.YNc(3,f_e,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:[ii,Mt.O5,ni,On,ne.Fj,ne.JJ,ne.On,uo.SP,uo.uX],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}.textAreaTab[_ngcontent-%COMP%]{width:100%;height:300px}"]}),n}();function m_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().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 v_e=function(){function n(r){this.dialog=r}return n.prototype.editConfig=function(){var t=this.dialog.open(h_e,{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(zi))},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,m_e,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:[Mt.O5,Hr,pr],encapsulation:2}),n}(),qj=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(Wr))},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:[ii,On],styles:[".container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}"]}),n}();function g_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().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 __e=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(qj,{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(Xr),e.Y36(zi))},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,g_e,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:[Mt.O5,Hr,pr],encapsulation:2}),n}(),y_e=["fileInput"],b_e=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(qj,{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(Xr),e.Y36(rr),e.Y36(zi))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-import-config-action"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(y_e,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:[Hr,pr],styles:[".non-visible[_ngcontent-%COMP%]{display:none}"]}),n}(),C_e=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(pa.G),e.Y36(fs),e.Y36(Xr),e.Y36(ps))},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:[Hr,pr],encapsulation:2}),n}(),S_e=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(pa.G),e.Y36(fs),e.Y36(Xr),e.Y36(ps))},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:[Hr,pr],encapsulation:2}),n}(),T_e=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(pa.G),e.Y36(fs),e.Y36(Xr),e.Y36(ps))},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:[Hr,pr],encapsulation:2}),n}(),bL=function(){function n(){}return n.prototype.startCapture=function(r,t,i,o){location.assign("gns3+pcap://"+r.host+":"+r.port+"?project_id="+t.project_id+"&link_id="+i.link_id+"&name="+o)},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}();function x_e(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 w_e=function(){return{standalone:!0}},k_e=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 ne.NI("",ne.kI.required),fileName:new ne.NI("",ne.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)},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(Wr),e.Y36(rc),e.Y36(ne.qu),e.Y36(rr),e.Y36(pa.G),e.Y36(bL))},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,x_e,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,w_e))("ngModel",i.startProgram))},directives:[ii,ne._Y,ne.JL,ne.sg,Vn.KE,hi.gD,ne.JJ,ne.u,ne.Fj,Mt.sg,hr,xo,ne.On,ni,On,dn.ey],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]}),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().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 M_e=function(){function n(r){this.dialog=r}return n.prototype.startCapture=function(){var t=this.dialog.open(k_e,{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(zi))},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,E_e,5,0,"button",0),2&t&&e.Q6J("ngIf",!i.link.capturing)},directives:[Mt.O5,Hr,pr],encapsulation:2}),n}();function A_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().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 D_e=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(rc))},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,A_e,5,0,"button",0),2&t&&e.Q6J("ngIf",i.link.capturing)},directives:[Mt.O5,Hr,pr],encapsulation:2}),n}();function O_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().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 P_e=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(bL))},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,O_e,5,0,"button",0),2&t&&e.Q6J("ngIf",i.link.capturing)},directives:[Mt.O5,Hr,pr],encapsulation:2}),n}();function I_e(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 R_e=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(Wr))},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,I_e,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:[ii,Mt.sg,ni,On],styles:[".message[_ngcontent-%COMP%]{margin-bottom:10px}.description[_ngcontent-%COMP%]{color:#b0bec5}"]}),n}();function N_e(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 Z_e=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(R_e,{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(Wr),e.Y36(rc),e.Y36(zi))},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,N_e,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:[ii,Mt.O5,ni,On,uo.SP,uo.uX,Vn.KE,hr,ne.wV,ne.Fj,ne.JJ,ne.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}(),L_e=function(){function n(r){this.dialog=r}return n.prototype.openPacketFilters=function(){var t=this.dialog.open(Z_e,{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(zi))},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:[Hr,pr],encapsulation:2}),n}();function F_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().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 B_e=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(rc))},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,F_e,5,0,"button",0),2&t&&e.Q6J("ngIf",i.link.suspend)},directives:[Mt.O5,Hr,pr],encapsulation:2}),n}();function U_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().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 H_e=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(rc))},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,U_e,5,0,"button",0),2&t&&e.Q6J("ngIf",!i.link.suspend)},directives:[Mt.O5,Hr,pr],encapsulation:2}),n}(),V_e=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(pa.G),e.Y36(fs),e.Y36(Xr),e.Y36(ps))},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:[Hr,pr],encapsulation:2}),n}(),q_e=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(Xf);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(pa.G),e.Y36(fs),e.Y36(Kf.F),e.Y36(Xr),e.Y36(ps),e.Y36(rc),e.Y36(LS))},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:[Hr,pr],encapsulation:2}),n}(),j_e=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(pa.G),e.Y36(Xr))},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:[Hr,pr],encapsulation:2}),n}(),z_e=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(pa.G),e.Y36(Xr))},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:[Hr,pr],encapsulation:2}),n}();function W_e(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 G_e(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 Y_e(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 J_e(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 Q_e(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 K_e(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 X_e(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 $_e(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 eye(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 tye(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 nye(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 rye(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 iye(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 oye(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 aye(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 sye(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 lye(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 uye(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 cye(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 dye(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 pye(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 fye(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 hye(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 mye(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 vye(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 gye(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 _ye(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 yye(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 bye(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 Cye(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 Sye(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 Tye(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 jj=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 lv,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(B.H7),e.Y36(e.sBO),e.Y36($a),e.Y36(cd.Y))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-context-menu"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(Na,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,W_e,1,2,"app-show-node-action",4),e.YNc(5,G_e,1,2,"app-config-node-action",4),e.YNc(6,Y_e,1,2,"app-start-node-action",5),e.YNc(7,J_e,1,2,"app-suspend-node-action",5),e.YNc(8,Q_e,1,2,"app-stop-node-action",5),e.YNc(9,K_e,1,2,"app-reload-node-action",5),e.YNc(10,X_e,1,2,"app-http-console-action",5),e.YNc(11,$_e,1,2,"app-http-console-new-tab-action",5),e.YNc(12,eye,1,2,"app-console-device-action",5),e.YNc(13,tye,1,2,"app-console-device-action-browser",4),e.YNc(14,nye,1,2,"app-open-file-explorer-action",4),e.YNc(15,rye,1,2,"app-change-hostname-action",4),e.YNc(16,iye,1,2,"app-change-symbol-action",4),e.YNc(17,oye,1,4,"app-duplicate-action",6),e.YNc(18,aye,1,3,"app-edit-style-action",7),e.YNc(19,sye,1,7,"app-edit-text-action",8),e.YNc(20,lye,1,3,"app-edit-config-action",9),e.YNc(21,uye,1,2,"app-export-config-action",4),e.YNc(22,cye,1,2,"app-import-config-action",4),e.YNc(23,dye,1,3,"app-move-layer-up-action",10),e.YNc(24,pye,1,3,"app-move-layer-down-action",10),e.YNc(25,fye,1,3,"app-bring-to-front-action",10),e.YNc(26,hye,1,3,"app-start-capture-action",11),e.YNc(27,mye,1,2,"app-stop-capture-action",12),e.YNc(28,vye,1,3,"app-start-capture-on-started-link-action",11),e.YNc(29,gye,1,3,"app-packet-filters-action",11),e.YNc(30,_ye,1,2,"app-resume-link-action",12),e.YNc(31,yye,1,2,"app-suspend-link-action",12),e.YNc(32,bye,1,3,"app-lock-action",10),e.YNc(33,Cye,1,4,"app-delete-action",13),e.YNc(34,Sye,1,2,"app-align-horizontally-action",5),e.YNc(35,Tye,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:[Na,ds,Mt.O5,Ume,Bge,Hge,qge,zge,Gge,Yge,Jge,Qge,Kge,Xge,e_e,n_e,r_e,l_e,d_e,v_e,__e,b_e,C_e,S_e,T_e,M_e,D_e,P_e,L_e,B_e,H_e,V_e,q_e,j_e,z_e],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 xye(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 wye(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,xye,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 kye(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 Eye(n,r){if(1&n&&(e.TgZ(0,"div",12),e.TgZ(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,wye,3,6,"mat-form-field",14),e.YNc(4,kye,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 Mye(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 Aye(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 FS=function(){var n=function r(){(0,g.Z)(this,r),this.changes=new Rn.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}(),Oye={provide:FS,deps:[[new e.FiY,new e.tp0,FS]],useFactory:function(n){return n||new FS}},Iye=new e.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Rye=(0,dn.Id)((0,dn.dB)(function(){return function n(){(0,g.Z)(this,n)}}())),Nye=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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,b=s.hidePageSize,I=s.showFirstLastButtons;null!=p&&(u._pageSize=p),null!=m&&(u._pageSizeOptions=m),null!=b&&(u._hidePageSize=b),null!=I&&(u._showFirstLastButtons=I)}return u}return(0,T.Z)(i,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(a){this._pageIndex=Math.max((0,In.su)(a),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(a){this._length=(0,In.su)(a),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(a){this._pageSize=Math.max((0,In.su)(a),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(a){this._pageSizeOptions=(a||[]).map(function(s){return(0,In.su)(s)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(a){this._hidePageSize=(0,In.Ig)(a)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(a){this._showFirstLastButtons=(0,In.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}(Rye);return n.\u0275fac=function(t){return new(t||n)(e.Y36(FS),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}(),zj=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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}(Nye);return n.\u0275fac=function(t){return new(t||n)(e.Y36(FS),e.Y36(e.sBO),e.Y36(Iye,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,Eye,5,3,"div",2),e.TgZ(3,"div",3),e.TgZ(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,Mye,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,Aye,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:[Mt.O5,On,Ra,Vn.KE,hi.gD,Mt.sg,dn.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}(),Zye=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:[Oye],imports:[[Mt.ez,c2,hi.LD,uq,dn.BQ]]}),n}(),Lye=f(52402),Wj=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(Wr))},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:[ni,On],styles:[""]}),n}();function Fye(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 Bye(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 Uye=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(Wr),e.Y36(ld))},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,Fye,2,1,"div",3),e.YNc(11,Bye,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:[ii,J_,Mt.O5,ni,On],encapsulation:2}),n}(),Hye=function(n,r){return function(t){return(0,sS.H)(500).pipe((0,Os.w)(function(){return r.list(n)}),(0,Ar.U)(function(i){return i.find(function(o){return o.name===t.value})?{templateExist:!0}:null}))}};function Vye(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Template name is required"),e.qZA())}function qye(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Template name is incorrect"),e.qZA())}function jye(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Template with this name exists"),e.qZA())}var zye=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 ne.NI(this.data.name,[ne.kI.required,this.templateNameValidator.get],[Hye(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(Wr),e.Y36(Dr),e.Y36(zi),e.Y36(rr),e.Y36(ne.qu),e.Y36(gp),e.Y36(Q_),e.Y36(ld))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-template-name-dialog"]],features:[e._Bn([gp])],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,Vye,2,0,"mat-error",4),e.YNc(6,qye,2,0,"mat-error",4),e.YNc(7,jye,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,zye,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:[ii,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,Mt.mk,Mt.O5,ni,On,Vn.TO],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]}),n}(),Gj=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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Wye=["mat-sort-header",""];function Gye(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 Yye=["*"],Jye=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),Qye=(0,dn.dB)((0,dn.Id)(function(){return function n(){(0,g.Z)(this,n)}}())),BS=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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 Rn.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,In.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),b=function(n,r){var t=["asc","desc"];return"desc"==n&&t.reverse(),r||t.push(""),t}(a.start||this.start,m),I=b.indexOf(this.direction)+1;return I>=b.length&&(I=0),b[I]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),i}(Qye);return n.\u0275fac=function(t){return new(t||n)(e.Y36(Jye,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}(),$f=dn.mZ.ENTERING+" "+dn.yN.STANDARD_CURVE,sy={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)($f))]),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)($f))]),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)($f))]),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)($f))]),arrowPosition:(0,on.X$)("arrowPosition",[(0,on.eR)("* => desc-to-hint, * => desc-to-active",(0,on.jt)($f,(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)($f,(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)($f,(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)($f,(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 Rn.xQ};return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=e.Yz7({factory:function(){return new n},token:n,providedIn:"root"}),n}(),$ye={provide:U2,deps:[[new e.FiY,new e.tp0,U2]],useFactory:function(n){return n||new U2}},ebe=(0,dn.Id)(function(){return function n(){(0,g.Z)(this,n)}}()),Yj=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m){var b;return(0,g.Z)(this,i),(b=t.call(this))._intl=o,b._changeDetectorRef=a,b._sort=s,b._columnDef=u,b._focusMonitor=p,b._elementRef=m,b._showIndicatorHint=!1,b._viewState={},b._arrowDirection="",b._disableViewStateAnimation=!1,b.arrowPosition="after",b._handleStateChanges(),b}return(0,T.Z)(i,[{key:"disableClear",get:function(){return this._disableClear},set:function(a){this._disableClear=(0,In.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)}},{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===Kr.L_||a.keyCode===Kr.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:"_handleStateChanges",value:function(){var a=this;this._rerenderSubscription=(0,ro.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}(ebe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(U2),e.Y36(e.sBO),e.Y36(BS,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(Ti.tE),e.Y36(e.SBq))},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",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[e.qOj],attrs:Wye,ngContentSelectors:Yye,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,Gye,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:[Mt.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:[sy.indicator,sy.leftPointer,sy.rightPointer,sy.arrowOpacity,sy.arrowPosition,sy.allowChildren]},changeDetection:0}),n}(),tbe=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:[$ye],imports:[[Mt.ez,dn.BQ]]}),n}(),nbe=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}(),rbe=["stepper"];function ibe(n,r){1&n&&e._uU(0,"Please select how you want to create new template")}function obe(n,r){if(1&n&&e._uU(0),2&n){var t=e.oxw();e.Oqu(t.actionTitle)}}function abe(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 sbe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Name "),e.qZA())}function lbe(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 ube(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Emulator "),e.qZA())}function cbe(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 dbe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Vendor "),e.qZA())}function pbe(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 fbe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Actions "),e.qZA())}function hbe(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 mbe(n,r){1&n&&e._UZ(0,"mat-header-row")}function vbe(n,r){1&n&&e._UZ(0,"mat-row")}function gbe(n,r){if(1&n&&e._uU(0),2&n){var t=e.oxw(2);e.Oqu(t.secondActionTitle)}}function _be(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 ybe(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",52),e._uU(2,"check"),e.qZA(),e.qZA())}function bbe(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",53),e._uU(2,"close"),e.qZA(),e.qZA())}function Cbe(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,ybe,3,0,"span",32),e.YNc(5,bbe,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.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 Sbe(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",52),e._uU(2,"check"),e.qZA(),e.qZA())}function Tbe(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",53),e._uU(2,"close"),e.qZA(),e.qZA())}function xbe(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,Sbe,3,0,"span",32),e.YNc(5,Tbe,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.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 wbe(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",52),e._uU(2,"check"),e.qZA(),e.qZA())}function kbe(n,r){1&n&&(e.TgZ(0,"span"),e.TgZ(1,"mat-icon",53),e._uU(2,"close"),e.qZA(),e.qZA())}function Ebe(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,wbe,3,0,"span",32),e.YNc(5,kbe,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.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 Mbe(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,Cbe,12,4,"div",47),e.YNc(8,xbe,12,4,"div",47),e.YNc(9,Ebe,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.hda_disk_image),e.xp6(1),e.Q6J("ngIf",i.images.hdb_disk_image),e.xp6(1),e.Q6J("ngIf",i.images.cdrom_image)}}var Jj=function(){return{standalone:!0}};function Abe(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,_be,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,Mbe,10,5,"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,Jj)),e.xp6(1),e.Q6J("ngForOf",i.qemuBinaries),e.xp6(8),e.Q6J("ngForOf",i.applianceToInstall.versions)}}function Dbe(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 Obe(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,50),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 Pbe(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",56),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,Obe,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 Ibe(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,50),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 Rbe(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,Ibe,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 Nbe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-step"),e.YNc(1,gbe,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,Abe,22,9,"div",32),e.YNc(6,Dbe,11,4,"div",32),e.YNc(7,Pbe,17,4,"div",32),e.YNc(8,Rbe,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 Zbe=function(){return[5,10,20,50,100]},Lbe=function(){function n(r,t,i,o,a,s,u,p,m,b,I,F,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=b,this.computeService=I,this.changeDetectorRef=F,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 Oq(r.allAppliances),r.dataSource.paginator=r.paginator}),this.qemuService.getBinaries(this.server).subscribe(function(t){r.qemuBinaries=t}),this.uploader=new Wm({}),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 Wm({}),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(I){return I.url=m});var b=t.uploader.queue[0];b.options.disableMultipart=!0,t.uploader.uploadItem(b)},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 Oq(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?CL(i.name,o.name,a):"emulator"===r.active?CL(i.emulator,o.emulator,a):"vendor"===r.active?CL(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.includes("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.includes("qemu-system-i386")})).length&&(t.selectedBinary=i[0]);else if("x86_64"===t.applianceToInstall.qemu.arch){var i;(i=t.qemuBinaries.filter(function(a){return a.path.includes("qemu-system-arm")})).length&&(t.selectedBinary=i[0])}else t.selectedBinary=t.qemuBinaries[0]},100)},100)},n.prototype.showInfo=function(r){this.dialog.open(Uye,{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(Wj,{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),a=r.target.files[0],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(b){return b.url=p});var m=t.uploaderImage.queue[0];m.options.disableMultipart=!0,t.uploaderImage.uploadItem(m),t.progressService.activate()},s.readAsText(a)},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(Wj,{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 VZ;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.port_name_format,i.symbol=this.applianceToInstall.symbol,i.compute_id=this.isGns3VmChosen?"vm":"local",i.template_id=(0,ca.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 HZ;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.port_name_format,i.symbol=this.applianceToInstall.symbol,i.compute_id=this.isGns3VmChosen?"vm":"local",i.template_id=(0,ca.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 BZ;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.port_name_format,t.symbol=this.applianceToInstall.symbol,t.compute_id=this.isGns3VmChosen?"vm":"local",t.template_id=(0,ca.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 jZ;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.symbol=this.applianceToInstall.symbol,i.qemu_path=this.selectedBinary.path,i.compute_id=this.isGns3VmChosen?"vm":"local",i.template_id=(0,ca.v4)(),i.hda_disk_image=r.images.hda_disk_image,i.hdb_disk_image=r.images.hdb_disk_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 Lye.ArrayBuffer,u=new FileReader,p=0;function m(b){var I=Math.min(r.size,b+a);u.readAsArrayBuffer(r.slice(b,I))}u.onerror=function(){o("MD5 computation failed - error reading the file")},u.onload=function(b){s.append(b.target.result),(p+=a)<r.size?m(p):i(s.end(t))},m(0)})},n.\u0275fac=function(t){return new(t||n)(e.Y36(Wr),e.Y36(Gj),e.Y36(e.sBO),e.Y36(rr),e.Y36(mp),e.Y36(ev),e.Y36(nv),e.Y36(rv),e.Y36(Q_),e.Y36(zi),e.Y36($u.X),e.Y36(e.sBO),e.Y36(zf))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-new-template-dialog"]],viewQuery:function(t,i){if(1&t&&(e.Gf(zj,7),e.Gf(rbe,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"],["file2",""],["mat-raised-button","",1,"button",3,"click"],["matTooltip","Ready to install","matTooltipClass","custom-tooltip"],["matTooltip","Missing","matTooltipClass","custom-tooltip"],["file3",""],["file4",""],["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,ibe,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,obe,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,abe,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,sbe,2,0,"mat-header-cell",18),e.YNc(30,lbe,2,1,"mat-cell",19),e.BQk(),e.ynx(31,20),e.YNc(32,ube,2,0,"mat-header-cell",18),e.YNc(33,cbe,2,1,"mat-cell",19),e.BQk(),e.ynx(34,21),e.YNc(35,dbe,2,0,"mat-header-cell",18),e.YNc(36,pbe,2,1,"mat-cell",19),e.BQk(),e.ynx(37,22),e.YNc(38,fbe,2,0,"mat-header-cell",18),e.YNc(39,hbe,7,0,"mat-cell",23),e.BQk(),e.YNc(40,mbe,1,0,"mat-header-row",24),e.YNc(41,vbe,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,Nbe,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,Jj))("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,Zbe)),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:[ii,$_,X_,v2,sl,ll,On,Ice,bi,Vn.KE,hr,ne.Fj,ne.JJ,ne.On,hi.gD,Mt.sg,jl,BS,il,rl,nl,zl,Wl,zj,lS,Rce,Mt.O5,dn.ey,ol,al,Ra,pr,Gl,Yl,NZ,cs],pipes:[nbe],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 CL(n,r,t){return((n=n.toLowerCase())<(r=r.toLowerCase())?-1:1)*(t?1:-1)}var Fbe=f(56205),Bbe='<?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">',dv_xmlns="http://www.w3.org/2000/xmlns/",dv_xlink="http://www.w3.org/1999/xlink",dv_svg="http://www.w3.org/2000/svg",Qj="untitled";function Hbe(){var n=document.createElementNS(dv_svg,"svg");document.body.appendChild(n),n.style.all="initial";var r=getComputedStyle(n);return document.body.removeChild(n),n=null,r}function qbe(n,r){function t(s){for(var p,m,u=getComputedStyle(s),b="",I=0,F=u.length;I<F;I++)(m=u.getPropertyValue(p=u[I]))!==r.getPropertyValue(p)&&(b+="".concat(p,":").concat(m,";"));s.setAttribute("style",b)}for(var o=(u=void 0,(u=[]).push(s=n),function p(m){if(m&&m.hasChildNodes())for(var b=m.firstChild;b;)1===b.nodeType&&"SCRIPT"!==b.nodeName&&(u.push(b),p(b)),b=b.nextSibling}(s),u),a=o.length;a--;)t(o[a]);var s,u}function jbe(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 Gbe(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 Xbe=function(r,t,i){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qj,t=URL.createObjectURL(new Blob([n.source],{type:"text/xml"}));Gbe("".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(dv_xmlns,"xmlns")||n.setAttributeNS(dv_xmlns,"xmlns",dv_svg),n.hasAttributeNS(dv_xmlns,"xmlns:xlink")||n.setAttributeNS(dv_xmlns,"xmlns:xlink",dv_xlink),"inline"===i?qbe(n,Hbe()):"internal"===i&&jbe(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:Bbe+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()||Qj}(r))},ly={UKNOWN:"Unknown"},SL={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:ly.UKNOWN},V2={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")},uy={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")},eh={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:ly.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"},Kj=[eh.PS4,eh.CHROME_BOOK,eh.MAC,eh.DELL,eh.ASUS,eh.UNKNOWN],$be={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:ly.UKNOWN},e0e={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:ly.UKNOWN.toLowerCase()},Xj={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/},n0e=Object.assign(Object.assign(Object.assign(Object.assign({},V2),uy),Xj),{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/]}}]}}),TL={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)/},xL={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/},$j=function(r,t){return r[t]=TL[t],r},r0e=Object.keys(TL).reduce($j,{}),ez=function(r,t){return r[SL[t]]=xL[t],r},tz=Object.keys(xL).reduce(ez,{}),pd=Object.freeze({__proto__:null,GENERAL:ly,BROWSERS:SL,MOBILES_RE:V2,TABLETS_RE:uy,DEVICES:eh,DESKTOP_DEVICES:Kj,OS:$be,OS_VERSIONS:e0e,OS_RE:Xj,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:n0e,OS_VERSIONS_RE_MAP:TL,BROWSER_VERSIONS_RE_MAP:xL,OS_VERSIONS_RE:r0e,BROWSER_VERSIONS_RE:tz,"\u02750":$j,"\u02751":ez}),i0e=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}(),q2=function(n){return n.Mobile="mobile",n.Tablet="tablet",n.Desktop="desktop",n.Unknown="unknown",n}({}),nz=function(n){return n.Portrait="portrait",n.Landscape="landscape",n}({}),wL="iPad",o0e=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 i0e,this.deviceType="",this.orientation="",(0,Mt.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(pd[p.const]).reduce(function(m,b){return"device"===pd[p.const][b]&&(0,Mt.NF)(i.platformId)&&(i.reTree.test(i.userAgent,uy[wL])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(m[pd[p.const][b]]=wL,Object):(m[pd[p.const][b]]=i.reTree.test(o,pd["".concat(p.const,"_RE")][b]),m)},{})}),a.forEach(function(p){i[p.prop]=Object.keys(pd[p.const]).map(function(m){return pd[p.const][m]}).reduce(function(m,b){return"device"===p.prop&&m===pd[p.const].ANDROID?i[p.prop][b]?b:m:m===pd[p.const].UNKNOWN&&i[p.prop][b]?b:m},pd[p.const].UNKNOWN)}),this.browser_version="0",this.browser!==SL.UNKNOWN){var s=tz[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?nz.Landscape:nz.Portrait:ly.UKNOWN,this.deviceType=this.isTablet()?q2.Tablet:this.isMobile(this.userAgent)?q2.Mobile:this.isDesktop(this.userAgent)?q2.Desktop:q2.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(V2).find(function(s){return i.reTree.test(o,V2[s])});return!!a}},{key:"isTablet",value:function(){var i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if((0,Mt.NF)(this.platformId)&&(this.reTree.test(this.userAgent,uy[wL])||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))return!0;var a=Object.keys(uy).find(function(s){return!!i.reTree.test(o,uy[s])});return!!a}},{key:"isDesktop",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return(this.device!==eh.UNKNOWN||!this.isMobile(i)&&!this.isTablet(i))&&Kj.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}();function a0e(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Name for screenshot is required"),e.qZA())}function s0e(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"Entered name is incorrect"),e.qZA())}var l0e=function(n){return{"is-invalid":n}},u0e=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 ne.NI("screenshot-"+Date.now(),[ne.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(Wr),e.Y36(rr),e.Y36(ne.qu),e.Y36($a),e.Y36(o0e))},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,a0e,2,0,"mat-error",7),e.YNc(11,s0e,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,l0e,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:[ii,sl,ll,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,Mt.mk,Mt.O5,ni,On,Vn.TO],styles:[".name-form[_ngcontent-%COMP%]{width:100%}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]}),n}(),rz=function(){function n(){}return n.prototype.getDrawingElement=function(){var r=new lv;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}(),iz=function(){function n(){}return n.prototype.getDrawingElement=function(){var r=new yo;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}(),oz=function(){function n(){}return n.prototype.getDrawingElement=function(){var r=new vp;return r.fill="#ffffff",r.fill_opacity=1,r.stroke="#000000",r.stroke_width=2,r.width=200,r.height=100,r},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac=function(t){return new(t||n)}}),n}(),az=function(){function n(){}return n.prototype.getDrawingElement=function(){var r=new sv;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}(),kL=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 Qf;return t.element=this.factory.getDrawingElement(),t},n.\u0275fac=function(t){return new(t||n)(e.LFG(rz),e.LFG(iz),e.LFG(oz),e.LFG(az))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),c0e=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(ps),e.Y36(fs),e.Y36(nc),e.Y36(kL),e.Y36(cv))},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}(),sz=function(n){return{selected:n}};function d0e(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,sz,i.drawTools.isLineChosen))}}function p0e(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,sz,i.drawTools.isLineChosen))}}var f0e=function(n,r){return{unmarkedLight:n,marked:r}},h0e=function(n){return{unmarkedLight:n}},lz=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(u0e,{width:"400px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(i){i&&r.saveImage(i)})},n.prototype.saveImage=function(r){return(0,Kn.mG)(this,void 0,void 0,function(){var t,i,o,a,s,u,p,m;return(0,Kn.Jh)(this,function(F){switch(F.label){case 0:if("png"!==r.filetype)return[3,4];t=document.getElementsByTagName("svg")[0].outerHTML.split("image"),i=1,F.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=F.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,Fbe.saveSvgAsPng(m.firstChild,r.name+".png"),[3,5];case 4:ei("svg").attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg").node(),Xbe(ei("svg").node(),""+r.name),F.label=5;case 5:return[2]}})})},n.prototype.addDrawing=function(r){switch(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(){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(NS),e.Y36(Su),e.Y36(ps),e.Y36(TS),e.Y36(zi),e.Y36(Ku.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,d0e,3,3,"button",7),e.YNc(15,p0e,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,f0e,!i.isLocked&&i.isLightThemeEnabled,i.isLocked)),e.xp6(3),e.Q6J("ngClass",e.VKq(13,h0e,!i.isLocked&&i.isLightThemeEnabled)),e.xp6(2),e.Q6J("server",i.server)("project",i.project)("selectedDrawing",i.selectedDrawing))},directives:[On,Ra,pr,Mt.mk,Mt.O5,c0e],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}(),EL=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(pa.G),e.LFG(Kf.F),e.LFG(fs))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),m0e=function(){return function(){}}(),v0e=function(){return function(){}}(),US=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 v0e;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(ES),e.LFG(Jf),e.LFG(ec))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),g0e=function(){return function(){}}(),ML=function(){function n(){}return n.prototype.convert=function(r){var t=new g0e;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}(),j2=function(){function n(r,t){this.mapLabelToLabel=r,this.mapPortToPort=t}return n.prototype.convert=function(r){var t=this,i=new m0e;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(US),e.LFG(ML))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),_0e=function(){return function(){}}(),uz=function(){function n(){}return n.prototype.convert=function(r){var t=new _0e;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}(),y0e=function(){return function(){}}(),b0e=function(){return function(){}}(),AL=function(){function n(r){this.mapLabelToLabel=r}return n.prototype.convert=function(r){var t=new b0e;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(US))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),cz=function(){function n(r){this.mapLinkNodeToMapLinkNode=r}return n.prototype.convert=function(r){var t=this,i=new y0e;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(AL))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),z2=f(2094),dz=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(ES))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),pz=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}(),C0e=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,Kn.mG)(this,void 0,void 0,function(){var r,t,i,o,a,s;return(0,Kn.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(Xr),e.Y36(dd),e.Y36(pa.G),e.Y36(rr),e.Y36(zr),e.Y36(_p.g),e.Y36(Su),e.Y36($a))},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:[On,Ra,pr],styles:[".menu-button[_ngcontent-%COMP%]{margin:0 5px!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0}),n}(),S0e=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 Wm({}),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 jZ).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 VZ).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.nvram=u.iou.nvram,s.ram=u.iou.ram,s.serial_adapters=u.iou.serial_adapters;else if(u.dynamips)(s=new HZ).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 BZ).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(I){return I.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(rr),e.Y36(ev),e.Y36(mp),e.Y36(rv),e.Y36(nv))},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}(),T0e=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(ps),e.Y36(fs),e.Y36(nc))},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}(),x0e=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(ps),e.Y36(fs),e.Y36(nc),e.Y36(cv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-drawing-resized"]],inputs:{server:"server"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),w0e=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(rc),e.Y36(Kf.F),e.Y36(ZS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-interface-label-dragged"]],inputs:{server:"server"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),k0e=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,b=0,I=0,F=0;r.sourceNode.x<=r.targetNode.x&&r.sourceNode.y<=r.targetNode.y?(m=Math.floor(r.sourceNode.width/2)+Math.round(u)+5,b=Math.floor(r.sourceNode.height/2)+Math.round(p)+5,I=Math.floor(r.targetNode.width/2)-Math.round(u)-5-Math.round(20*s),F=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),b=Math.floor(r.sourceNode.height/2)+Math.round(p)+5-Math.round(20*s),I=Math.floor(r.targetNode.width/2)+Math.round(u)+5,F=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),b=Math.floor(r.sourceNode.height/2)-Math.round(p)-5-Math.round(20*s),I=Math.floor(r.targetNode.width/2)-Math.round(u)-5,F=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),b=Math.floor(r.sourceNode.height/2)-Math.round(p)+5-Math.round(20*s),I=Math.floor(r.targetNode.width/2)+Math.round(u)+5,F=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),ce=this.mapPortToPort.convert(r.targetPort);this.linkService.createLink(this.server,G,Y,te,ce,m,b,I,F).subscribe(function(){t.projectService.links(t.server,t.project.project_id).subscribe(function(xe){t.linksDataSource.set(xe)})})},n.prototype.ngOnDestroy=function(){this.linkCreated.unsubscribe()},n.\u0275fac=function(t){return new(t||n)(e.Y36(cd.Y),e.Y36(rc),e.Y36(Kf.F),e.Y36(ZS),e.Y36(j2),e.Y36(ML))},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}(),E0e=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(pa.G),e.Y36(Xr),e.Y36(av))},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}(),M0e=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(pa.G),e.Y36(Xr),e.Y36(av),e.Y36(US))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-node-label-dragged"]],inputs:{server:"server"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),A0e=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(ps),e.Y36(fs),e.Y36(nc),e.Y36(kL),e.Y36(cv),e.Y36(Jl))},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}(),D0e=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 Qf;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(ps),e.Y36(fs),e.Y36(nc),e.Y36(cv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-text-edited"]],inputs:{server:"server"},decls:0,vars:0,template:function(t,i){},styles:[""]}),n}(),O0e=["app-selection",""];function P0e(n,r){if(1&n&&(e.O4$(),e._UZ(0,"path",2)),2&n){var t=e.oxw();e.uIk("d",t.d)}}var I0e=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=qo.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=qo.y.fromEvent(document,"mouseup").do(function(p){p.preventDefault()}),o=qo.y.fromEvent(document,"mousemove").do(function(p){return p.stopPropagation()}),a=qo.y.fromEvent(document,"scroll").startWith({}),s=qo.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 Sj(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:O0e,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,P0e,1,1,"path",1),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",i.visible))},directives:[Mt.O5],styles:[""]}),n}(),R0e=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=zu();return i.moveTo(t[0][0],t[0][1]),i.lineTo(t[1][0],t[1][1]),i.toString()},n}(),N0e=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=zu();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}(),Z0e=["app-status",""];function L0e(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 F0e(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 B0e(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,L0e,1,2,"circle",1),e.YNc(2,F0e,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 U0e=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:Z0e,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,B0e,3,2,"g",0),2&t&&e.Q6J("ngIf",i.status&&i.point&&i.direction)},directives:[Mt.O5],styles:[""]}),n}(),H0e=["textSvg"],V0e=["app-interface-label",""],q0e=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(B.H7),e.Y36(Jf))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-interface-label",""]],viewQuery:function(t,i){var o;(1&t&&e.Gf(H0e,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:V0e,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}(),j0e=["path"],z0e=["app-link",""];function W0e(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 G0e(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 Y0e(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 J0e(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 Q0e=function(){function n(r,t){this.multiLinkCalculatorHelper=r,this.ref=t,this.ethernetLinkStrategy=new R0e,this.serialLinkStrategy=new N0e}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(DS),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-link",""]],viewQuery:function(t,i){var o;(1&t&&e.Gf(j0e,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:z0e,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,W0e,2,1,"path",1),e.YNc(2,G0e,2,1,"path",2),e._UZ(3,"g",3),e._UZ(4,"g",3),e.YNc(5,Y0e,1,6,"g",4),e.YNc(6,J0e,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:[Mt.O5,U0e,q0e],styles:[""]}),n}(),K0e=["app-draggable",""],X0e=["*"],fz=function(){return function(r,t,i,o){this.x=r,this.y=t,this.dx=i,this.dy=o}}(),hz=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=qo.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=qo.y.fromEvent(document,"mouseup").do(function(p){p.preventDefault()}),o=qo.y.fromEvent(document,"mousemove").do(function(p){return p.stopPropagation()}),a=qo.y.fromEvent(document,"scroll").startWith({}),s=qo.y.combineLatest(o,a),u=t.mergeMap(function(p){return s.map(function(m){return m[0]}).do(function(m){var b=r.startX-m.clientX,I=r.startY-m.clientY;r.item.x=Math.round(r.posX-b),r.item.y=Math.round(r.posY-I),r.dragging.emit(new fz(r.item.x,r.item.y,-b,-I))}).skipUntil(i.take(1).do(function(m){var b=r.startX-m.clientX,I=r.startY-m.clientY;r.item.x=Math.round(r.posX-b),r.item.y=Math.round(r.posY-I),r.dragged.emit(new fz(r.item.x,r.item.y,-b,-I))})).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:K0e,ngContentSelectors:X0e,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.Hsn(0))},styles:[""]}),n}(),$0e=["label"],eCe=["image"],tCe=["app-node",""],nCe=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 oy(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(Jf),e.Y36(ec),e.Y36(B.H7),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(av))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-node",""]],viewQuery:function(t,i){if(1&t&&(e.Gf($0e,5),e.Gf(eCe,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:tCe,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:[hz],styles:[""],changeDetection:0}),n}(),rCe=["app-ellipse",""],iCe=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(uv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-ellipse",""]],inputs:{ellipse:["app-ellipse","ellipse"]},attrs:rCe,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}(),oCe=["app-image",""],aCe=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:oCe,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}(),sCe=["app-line",""],lCe=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(uv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-line",""]],inputs:{line:["app-line","line"]},attrs:sCe,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}(),uCe=["app-rect",""],cCe=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(uv))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-rect",""]],inputs:{rect:["app-rect","rect"]},attrs:uCe,decls:1,vars:7,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)},styles:[""]}),n}(),dCe=["text"],pCe=["app-text",""];function fCe(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 hCe=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(ec),e.Y36(B.H7))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-text",""]],viewQuery:function(t,i){var o;(1&t&&e.Gf(dCe,5),2&t)&&(e.iGM(o=e.CRH())&&(i.textRef=o.first))},inputs:{text:["app-text","text"]},attrs:pCe,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,fCe,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:[Mt.sg],styles:[""]}),n}(),mCe=["app-drawing",""];function vCe(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 gCe(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 _Ce(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 yCe(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 bCe(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 CCe=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 oy(this.drawing,r.dx,r.dy))},n.prototype.is=function(r,t){return!!r&&("ellipse"===t?r instanceof yo:"image"===t?r instanceof R2:"line"===t?r instanceof sv:"rect"===t?r instanceof vp:"text"===t&&r instanceof lv)},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(IS),e.Y36(nc),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["","app-drawing",""]],inputs:{drawing:["app-drawing","drawing"]},attrs:mCe,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,vCe,1,1,"g",1),e.YNc(2,gCe,1,1,"g",2),e.YNc(3,_Ce,1,1,"g",3),e.YNc(4,yCe,1,1,"g",4),e.YNc(5,bCe,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:[hz,Mt.O5,iCe,aCe,lCe,cCe,hCe],styles:[""]}),n}(),SCe=["svg"];function TCe(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 xCe(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 wCe(n,r){1&n&&(e.O4$(),e._UZ(0,"g",14)),2&n&&e.Q6J("app-drawing",r.$implicit)}function kCe(n,r){if(1&n&&(e.O4$(),e.TgZ(0,"g"),e.TgZ(1,"g",6),e.YNc(2,TCe,1,2,"g",7),e.qZA(),e.TgZ(3,"g",8),e.YNc(4,xCe,1,2,"g",9),e.qZA(),e.TgZ(5,"g",10),e.YNc(6,wCe,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 ECe=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 Jl;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(ry),e.Y36(Jl),e.Y36(OS),e.Y36(rL),e.Y36(e.sBO),e.Y36(M2),e.Y36(fL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-experimental-map"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(SCe,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,kCe,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:[Mt.sg,I0e,Q0e,nCe,CCe],styles:["svg[_ngcontent-%COMP%]{display:block}"],changeDetection:0}),n}(),MCe=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 ACe(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 DCe(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 OCe(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 PCe(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,OCe,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 DL=function(){return{standalone:!0}},ICe=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 ne.NI(1,[ne.kI.required,s.get])}),this.positionForm=this.formBuilder.group({top:new ne.NI(0,ne.kI.required),left:new ne.NI(0,ne.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(Wr),e.Y36(Q_),e.Y36(ne.qu),e.Y36(ld),e.Y36(rr),e.Y36(L2))},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,"Add a 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,ACe,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,DCe,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,PCe,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,DL)),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(16,DL))("ngModel",i.selectedType),e.xp6(1),e.Q6J("ngForOf",i.templateTypes),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(17,DL))("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:[ii,On,ia,J_,Vn.KE,hr,ne.Fj,ne.JJ,ne.On,hi.gD,Mt.sg,ne._Y,ne.JL,ne.sg,ne.wV,ne.u,Mt.O5,ni,dn.ey],pipes:[MCe],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 RCe(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),e.xp6(1),e.hij(" ",t," ")}}function NCe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"span",14),e.TgZ(1,"div",15),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",16),e.qZA(),e.TgZ(3,"div",17),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 ZCe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"span",14),e.TgZ(1,"div",15),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",16),e.qZA(),e.TgZ(3,"div",17),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 LCe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"span",14),e.TgZ(1,"div",15),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",16),e.qZA(),e.TgZ(3,"div",17),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 FCe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"span",13),e.TgZ(1,"span",14),e.TgZ(2,"div",15),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",16),e.qZA(),e.TgZ(4,"div",17),e._uU(5),e.qZA(),e.qZA(),e.YNc(6,NCe,5,2,"span",18),e.YNc(7,ZCe,5,2,"span",18),e.YNc(8,LCe,5,2,"span",18),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 BCe(n,r){if(1&n&&(e.TgZ(0,"mat-list-item"),e.YNc(1,FCe,9,5,"span",12),e.qZA()),2&n){var t=r.index;e.xp6(1),e.Q6J("ngIf",t%4==0)}}var mz=function(){return{standalone:!0}},UCe=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(ICe,{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.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(zi),e.Y36(Q_),e.Y36(ay),e.Y36(TS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-template"]],inputs:{server:"server",project:"project"},outputs:{onNodeCreation:"onNodeCreation"},decls:18,vars:9,consts:[["matTooltip","Add a node","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button","add-menu-button",3,"matMenuTriggerFor"],["mainMenu","matMenu"],["mat-menu-item","",3,"click"],["floatPlaceholder","never",1,"form-field",3,"click"],["matInput","","placeholder","Search by name",3,"ngModel","ngModelOptions","keyup","ngModelChange"],[1,"form-field",3,"click"],["placeholder","Filter templates 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","",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,"button",2),e.NdJ("click",function(){return i.openDialog()}),e.TgZ(6,"mat-icon"),e._uU(7,"add_to_queue"),e.qZA(),e.TgZ(8,"span"),e._uU(9,"Open dialog to configure"),e.qZA(),e.qZA(),e.TgZ(10,"mat-form-field",3),e.NdJ("click",function(s){return s.stopPropagation()}),e.TgZ(11,"input",4),e.NdJ("keyup",function(s){return i.filterTemplates(s)})("ngModelChange",function(s){return i.searchText=s}),e.qZA(),e.qZA(),e.TgZ(12,"mat-form-field",5),e.NdJ("click",function(s){return s.stopPropagation()}),e.TgZ(13,"mat-select",6),e.NdJ("selectionChange",function(s){return i.filterTemplates(s)})("ngModelChange",function(s){return i.selectedType=s}),e.YNc(14,RCe,2,2,"mat-option",7),e.qZA(),e.qZA(),e.TgZ(15,"div",8),e.TgZ(16,"div",9),e.YNc(17,BCe,2,1,"mat-list-item",10),e.qZA(),e.qZA(),e.qZA()),2&t){var o=e.MAs(4);e.Q6J("matMenuTriggerFor",o),e.xp6(11),e.Q6J("ngModel",i.searchText)("ngModelOptions",e.DdM(7,mz)),e.xp6(2),e.Q6J("ngModelOptions",e.DdM(8,mz))("ngModel",i.selectedType),e.xp6(1),e.Q6J("ngForOf",i.templateTypes),e.xp6(3),e.Q6J("ngForOf",i.filteredTemplates)}},directives:[On,Ra,Na,pr,ds,Hr,Vn.KE,hr,ne.Fj,ne.JJ,ne.On,hi.gD,Mt.sg,dn.ey,cs,Mt.O5,c4],styles:[".mat-menu-panel{max-width:400px;max-height:500px}.menu[_ngcontent-%COMP%]{width:100%;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}.form-field[_ngcontent-%COMP%]{width:90%;margin-left:5%;margin-right:5%}.image[_ngcontent-%COMP%]{width:65px;height:65px;filter:invert(0);--webkit-filter: invert(0) !important}.templateList[_ngcontent-%COMP%]{width:100%}.templateRow[_ngcontent-%COMP%]{display:flex;margin-bottom:10px}.templateText[_ngcontent-%COMP%]{word-wrap:break-word}.templateIcon[_ngcontent-%COMP%]{width:80px!important;padding:10px}"]}),n}(),HCe=["primaryValueBar"],VCe=(0,dn.pj)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}(),"primary"),qCe=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function(){var n=(0,e.f3M)(Mt.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}}),zCe=0,WCe=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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=Ya.w.EMPTY,p.mode="determinate",p.progressbarId="mat-progress-bar-".concat(zCe++);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=vz((0,In.su)(a)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(a){this._bufferValue=vz(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,am.R)(s,"transitionend").pipe((0,_i.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}(VCe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(ss.Qb,8),e.Y36(qCe,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-progress-bar"]],viewQuery:function(t,i){var o;1&t&&e.Gf(HCe,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:[Mt.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 vz(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 GCe=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:[[Mt.ez,dn.BQ],dn.BQ]}),n}(),OL=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(Wr),e.Y36(ld))},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:[ii,J_,WCe,ni,On],styles:[""]}),n}(),YCe=function(){return function(){}}(),W2=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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),JCe=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 YCe,this.snapshots=[],this.server=s.server,this.project=s.project,this.inputForm=this.formBuilder.group({snapshotName:new ne.NI("",ne.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(Wr),e.Y36(ne.qu),e.Y36(rr),e.Y36(W2),e.Y36(pa.G),e.Y36(ld))},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:[ii,On,ia,J_,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,ni],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}(),PL=function(){function n(r){this.dialog=r}return n.prototype.open=function(){return this.dialog.open(OL,{width:"250px",autoFocus:!1,disableClose:!0})},n.\u0275fac=function(t){return new(t||n)(e.LFG(zi))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),QCe=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(JCe,{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===OL.CANCELLED&&s.unsubscribe()})}})},n.\u0275fac=function(t){return new(t||n)(e.Y36(zi),e.Y36(W2),e.Y36(PL),e.Y36(rr))},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:[On,Ra,pr],styles:[""]}),n}(),KCe=function(){return function(r,t,i,o){this.sourceNode=r,this.sourcePort=t,this.targetNode=i,this.targetPort=o}}();function XCe(n,r){1&n&&(e.O4$(),e.TgZ(0,"svg",9),e._UZ(1,"rect",10),e.qZA())}function $Ce(n,r){1&n&&(e.O4$(),e.TgZ(0,"svg",9),e._UZ(1,"rect",11),e.qZA())}function e1e(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,XCe,2,0,"svg",7),e.YNc(2,$Ce,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 t1e(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,e1e,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 gz=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(B.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(Na,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,t1e,5,8,"div",0),2&t&&e.Q6J("ngIf",i.node)},directives:[Mt.O5,Na,ds,Mt.sg,Hr],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}(),n1e=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 KCe(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(lL),e.Y36(av),e.Y36(ZS),e.Y36(j2),e.Y36(nL),e.Y36(tL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-draw-link-tool"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(gz,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:[gz],styles:[""]}),n}(),_z=f(4147).i8,yz=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Kn.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}(w2.o),r1e=["console"];function i1e(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 G2=function(n){return{lightTheme:n}},o1e=function(){function n(r,t,i,o,a,s,u,p,m){this.projectWebServiceHandler=r,this.nodeService=t,this.nodesDataSource=i,this.logEventsDataSource=o,this.httpService=a,this.themeService=s,this.cd=u,this.nodeConsoleService=p,this.changeDetectorRef=m,this.version=_z,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 ne.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(o){return o.name.valueOf()===t[1].valueOf()});i?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.")})):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.")})):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.")})):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.")})):this.regexConsole.test(this.command)?"started"===i.status?(this.showCommand("Launching console for node "+t[1]+"..."),"telnet"===i.console_type?location.assign("gns3+telnet://"+i.console_host+":"+i.console+"?name="+i.name+"&project_id="+i.project_id+"&node_id="+i.node_id):"vnc"===i.console_type?location.assign("gns3+vnc://"+i.console_host+":"+i.console+"?name="+i.name+"&project_id="+i.project_id+"&node_id="+i.node_id):"spice"===i.console_type?location.assign("gns3+spice://"+i.console_host+":"+i.console+"?name="+i.name+"&project_id="+i.project_id+"&node_id="+i.node_id):this.showCommand("Supported console types: telnet, vnc, spice.")):this.showCommand("This node must be started before a console can be opened."):this.regexShow.test(this.command)&&(this.showCommand("Information about node "+i.name+":"),this.showCommand(this.printNode(i))):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(EL),e.Y36(Xr),e.Y36(pa.G),e.Y36(yz),e.Y36(Zo.wh),e.Y36(Ku.f),e.Y36(e.sBO),e.Y36(dd),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-log-console"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(r1e,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,i1e,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,G2,i.isLightThemeEnabled))("matMenuTriggerFor",o),e.xp6(16),e.Q6J("ngClass",e.VKq(10,G2,i.isLightThemeEnabled))("ngStyle",i.style),e.xp6(2),e.Q6J("ngForOf",i.filteredEvents),e.xp6(1),e.Q6J("ngClass",e.VKq(12,G2,i.isLightThemeEnabled)),e.xp6(3),e.Q6J("ngClass",e.VKq(14,G2,i.isLightThemeEnabled))("ngModel",i.command)}},directives:[Mt.mk,Na,ds,Hr,Mt.PC,Mt.sg,pr,ne.Fj,ne.JJ,ne.On],styles:[".consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px #0003,0 6px 20px #00000030;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}(),bz=f(20039),Cz=f(3397),Sz=f(97916),a1e=["terminal"],s1e=function(){function n(r,t){this.consoleService=r,this.themeService=t,this.term=new bz.Terminal,this.fitAddon=new Sz.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 Cz.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(dd),e.Y36(Ku.f))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-web-console"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(a1e,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}\n",".lightTheme{background:white!important;color:#000!important}\n"],encapsulation:2}),n}();function l1e(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 u1e(n,r){1&n&&(e.TgZ(0,"div",11),e._uU(1,"GNS3 console"),e.qZA())}var HS=function(n){return{lightThemeConsoleHeader:n}};function c1e(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,HS,o.isLightThemeEnabled))}}function d1e(n,r){if(1&n&&(e.TgZ(0,"mat-tab",12),e.YNc(1,c1e,5,4,"ng-template",4),e.qZA()),2&n){var t=e.oxw();e.Q6J("label",t.tab)}}function p1e(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,HS,i.isLightThemeEnabled))}}function f1e(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,HS,i.isLightThemeEnabled))}}function h1e(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 m1e=function(n){return{lightTheme:n}},v1e=function(){return{right:!0,left:!0,bottom:!0,top:!0}},g1e=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 ne.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(dd),e.Y36(Ku.f),e.Y36(Su))},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,l1e,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,u1e,2,0,"ng-template",4),e.qZA(),e.YNc(6,d1e,2,1,"mat-tab",5),e.qZA(),e.YNc(7,p1e,3,3,"button",6),e.YNc(8,f1e,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,h1e,2,4,"div",9),e.qZA()),2&t&&(e.Q6J("ngIf",i.isDraggingEnabled),e.xp6(1),e.Q6J("ngClass",e.VKq(16,m1e,i.isLightThemeEnabled))("ngStyle",i.style)("validateResize",i.validate)("resizeEdges",e.DdM(18,v1e))("enableGhostResize",!0),e.xp6(1),e.Q6J("ngClass",e.VKq(19,HS,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,HS,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:[Mt.O5,mE.E$,Mt.mk,Mt.PC,uo.SP,uo.uX,uo.uD,Mt.sg,On,pr,o1e,s1e],styles:["@media screen and (max-width: 700px){.consoleWrapper[_ngcontent-%COMP%]{visibility:hidden}}.consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px #0003,0 6px 20px #00000030;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}(),_1e=["topologySummaryContainer"];function y1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-d3-map",38),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 b1e(n,r){if(1&n&&e._UZ(0,"app-experimental-map",39),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 C1e(n,r){1&n&&e._UZ(0,"mat-icon",40)}function S1e(n,r){1&n&&e._UZ(0,"mat-icon",41)}var Y2=function(n){return{lightTheme:n}},T1e=function(n){return{selected:n}};function x1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",42),e.TgZ(1,"app-template",43),e.NdJ("onNodeCreation",function(a){return e.CHM(t),e.oxw(2).onNodeCreation(a)}),e.qZA(),e.TgZ(2,"button",44),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,Y2,i.isLightThemeEnabled)),e.xp6(1),e.Q6J("server",i.server)("project",i.project),e.xp6(1),e.Q6J("ngClass",e.VKq(7,T1e,i.tools.draw_link))("color",i.tools.draw_link?"primary":"basic")}}function w1e(n,r){if(1&n&&(e.TgZ(0,"div",26),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 k1e(n,r){if(1&n&&e._UZ(0,"app-draw-link-tool",45),2&n){var t=e.oxw(2);e.Q6J("links",t.links)}}function E1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"app-console-wrapper",46),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 M1e=function(n,r){return{unmarkedLight:n,marked:r}},A1e=function(n){return["/server",n,"projects"]},D1e=function(){return["/servers"]},O1e=function(n){return{visible:n}};function P1e(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"div",2),e.YNc(1,y1e,1,10,"app-d3-map",3),e.YNc(2,b1e,1,11,"app-experimental-map",4),e.TgZ(3,"div",5),e.TgZ(4,"button",6),e.YNc(5,C1e,1,0,"mat-icon",7),e.YNc(6,S1e,1,0,"mat-icon",8),e.qZA(),e.TgZ(7,"div",9),e.YNc(8,x1e,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.NdJ("click",function(){e.CHM(t);var p=e.oxw();return p.toggleShowTopologySummary(!p.isTopologySummaryVisible)}),e.TgZ(14,"mat-icon"),e._uU(15,"toc"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(16,"mat-menu",15,16),e.TgZ(18,"button",17),e.TgZ(19,"mat-icon"),e._uU(20,"work"),e.qZA(),e.TgZ(21,"span"),e._uU(22,"Go to projects"),e.qZA(),e.qZA(),e.TgZ(23,"button",17),e.TgZ(24,"mat-icon"),e._uU(25,"developer_board"),e.qZA(),e.TgZ(26,"span"),e._uU(27,"Go to servers"),e.qZA(),e.qZA(),e.TgZ(28,"button",17),e.TgZ(29,"mat-icon"),e._uU(30,"settings_applications"),e.qZA(),e.TgZ(31,"span"),e._uU(32,"Go to preferences"),e.qZA(),e.qZA(),e.TgZ(33,"button",17),e.TgZ(34,"mat-icon"),e._uU(35,"info"),e.qZA(),e.TgZ(36,"span"),e._uU(37,"Go to system status"),e.qZA(),e.qZA(),e.TgZ(38,"button",18),e.TgZ(39,"mat-icon"),e._uU(40,"settings"),e.qZA(),e.TgZ(41,"span"),e._uU(42,"Go to settings"),e.qZA(),e.qZA(),e.TgZ(43,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().addNewTemplate()}),e.TgZ(44,"mat-icon"),e._uU(45,"control_point"),e.qZA(),e.TgZ(46,"span"),e._uU(47,"New template"),e.qZA(),e.qZA(),e._UZ(48,"app-import-appliance",12),e.TgZ(49,"button",20),e.TgZ(50,"mat-icon"),e._uU(51,"settings"),e.qZA(),e.TgZ(52,"span"),e._uU(53,"Project settings"),e.qZA(),e.qZA(),e.TgZ(54,"button",20),e.TgZ(55,"mat-icon"),e._uU(56,"view_module"),e.qZA(),e.TgZ(57,"span"),e._uU(58,"Map settings"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(59,"mat-menu",15,21),e.TgZ(61,"div"),e.TgZ(62,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().addNewProject()}),e.TgZ(63,"mat-icon"),e._uU(64,"add"),e.qZA(),e.TgZ(65,"span"),e._uU(66,"Add new blank project"),e.qZA(),e.qZA(),e.TgZ(67,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().saveProject()}),e.TgZ(68,"mat-icon"),e._uU(69,"save"),e.qZA(),e.TgZ(70,"span"),e._uU(71,"Save project as"),e.qZA(),e.qZA(),e.TgZ(72,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().editProject()}),e.TgZ(73,"mat-icon"),e._uU(74,"edit"),e.qZA(),e.TgZ(75,"span"),e._uU(76,"Edit project"),e.qZA(),e.qZA(),e.TgZ(77,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().exportProject()}),e.TgZ(78,"mat-icon"),e._uU(79,"call_made"),e.qZA(),e.TgZ(80,"span"),e._uU(81,"Export portable project"),e.qZA(),e.qZA(),e.TgZ(82,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().importProject()}),e.TgZ(83,"mat-icon"),e._uU(84,"call_received"),e.qZA(),e.TgZ(85,"span"),e._uU(86,"Import portable project"),e.qZA(),e.qZA(),e.TgZ(87,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().closeProject()}),e.TgZ(88,"mat-icon"),e._uU(89,"close"),e.qZA(),e.TgZ(90,"span"),e._uU(91,"Close project"),e.qZA(),e.qZA(),e.TgZ(92,"button",19),e.NdJ("click",function(){return e.CHM(t),e.oxw().deleteProject()}),e.TgZ(93,"mat-icon"),e._uU(94,"delete"),e.qZA(),e.TgZ(95,"span"),e._uU(96,"Delete project"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(97,"mat-menu",15,22),e.TgZ(99,"div",23),e.TgZ(100,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleShowInterfaceLabels(p.checked)}),e._uU(101," Show interface labels "),e.qZA(),e._UZ(102,"br"),e.TgZ(103,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleShowConsole(p.checked)}),e._uU(104," Show console "),e.qZA(),e._UZ(105,"br"),e.TgZ(106,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleShowTopologySummary(p.checked)}),e._uU(107," Show topology/servers summary "),e.qZA(),e._UZ(108,"br"),e.TgZ(109,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleNotifications(p.checked)}),e._uU(110," Show notifications "),e.qZA(),e._UZ(111,"br"),e.TgZ(112,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleLayers(p.checked)}),e._uU(113," Show layers "),e.qZA(),e._UZ(114,"br"),e.TgZ(115,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleGrid(p.checked)}),e._uU(116," Show grid "),e.qZA(),e._UZ(117,"br"),e.TgZ(118,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleSnapToGrid(p.checked)}),e._uU(119," Snap to grid "),e.qZA(),e._UZ(120,"br"),e.TgZ(121,"mat-checkbox",24),e.NdJ("change",function(p){return e.CHM(t),e.oxw().toggleSymbolScaling(p.checked)}),e._uU(122," Scale symbols "),e.qZA(),e._UZ(123,"br"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(124,"div",25),e.TgZ(125,"div",26),e.TgZ(126,"button",27),e.NdJ("click",function(){return e.CHM(t),e.oxw().toggleMovingMode()}),e.TgZ(127,"mat-icon"),e._uU(128,"near_me"),e.qZA(),e.qZA(),e.TgZ(129,"button",28),e.NdJ("click",function(){return e.CHM(t),e.oxw().toggleMovingMode()}),e.TgZ(130,"mat-icon"),e._uU(131,"zoom_out_map"),e.qZA(),e.qZA(),e.TgZ(132,"button",29),e.NdJ("click",function(){return e.CHM(t),e.oxw().zoomIn()}),e.TgZ(133,"mat-icon"),e._uU(134,"zoom_in"),e.qZA(),e.qZA(),e.TgZ(135,"button",30),e.NdJ("click",function(){return e.CHM(t),e.oxw().resetZoom()}),e.TgZ(136,"mat-icon"),e._uU(137,"adjust"),e.qZA(),e.qZA(),e.TgZ(138,"button",31),e.NdJ("click",function(){return e.CHM(t),e.oxw().zoomOut()}),e.TgZ(139,"mat-icon"),e._uU(140,"zoom_out"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(141,"div",26),e._UZ(142,"app-project-map-menu",12),e.qZA(),e.YNc(143,w1e,2,2,"div",32),e.qZA(),e._UZ(144,"app-progress"),e.YNc(145,k1e,1,1,"app-draw-link-tool",33),e._UZ(146,"app-drawing-dragged",12),e._UZ(147,"app-drawing-resized",34),e._UZ(148,"app-interface-label-dragged",34),e._UZ(149,"app-link-created",12),e._UZ(150,"app-node-dragged",12),e._UZ(151,"app-node-label-dragged",34),e.TgZ(152,"app-text-added",35),e.NdJ("drawingSaved",function(){return e.CHM(t),e.oxw().onDrawingSaved()}),e.qZA(),e._UZ(153,"app-text-edited",34),e.TgZ(154,"div",36),e.YNc(155,E1e,1,2,"app-console-wrapper",37),e.qZA(),e.qZA()}if(2&n){var i=e.MAs(17),o=e.MAs(60),a=e.MAs(98),s=e.oxw();e.Q6J("ngClass",e.VKq(53,Y2,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(55,Y2,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("ngClass",e.WLB(57,M1e,!s.isTopologySummaryVisible&&s.isLightThemeEnabled,s.isTopologySummaryVisible)),e.xp6(3),e.Q6J("overlapTrigger",!1),e.xp6(2),e.Q6J("routerLink",e.VKq(60,A1e,s.server.id)),e.xp6(5),e.Q6J("routerLink",e.DdM(62,D1e)),e.xp6(5),e.MGl("routerLink","/server/",s.server.id,"/preferences"),e.xp6(5),e.MGl("routerLink","/server/",s.server.id,"/systemstatus"),e.xp6(15),e.Q6J("server",s.server)("project",s.project),e.xp6(1),e.Q6J("matMenuTriggerFor",o),e.xp6(5),e.Q6J("matMenuTriggerFor",a),e.xp6(5),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(63,Y2,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(65,O1e,!s.isConsoleVisible)),e.xp6(1),e.Q6J("ngIf",s.project)}}function I1e(n,r){}var R1e=function(){function n(r,t,i,o,a,s,u,p,m,b,I,F,G,Y,te,ce,xe,lt,nt,it,ht,Qe,tt,Ot,xt,hn,Jt,st,Dt,gn,fn,kn,Ln,or,Sr,Yr,cr,$r,li,Tr,Pi,Eo,br,gr,dr,jn,Lo,xi){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=b,this.linkWidget=I,this.labelWidget=F,this.interfaceLabelWidget=G,this.mapNodeToNode=Y,this.mapDrawingToDrawing=te,this.mapLabelToLabel=ce,this.mapLinkToLink=xe,this.mapLinkNodeToLinkNode=lt,this.nodesDataSource=nt,this.linksDataSource=it,this.drawingsDataSource=ht,this.settingsService=Qe,this.toolsService=tt,this.selectionManager=Ot,this.selectionTool=xt,this.recentlyOpenedProjectService=hn,this.movingEventSource=Jt,this.mapScaleService=st,this.nodeCreatedLabelStylesFixer=Dt,this.toasterService=gn,this.dialog=fn,this.router=kn,this.mapNodesDataSource=Ln,this.mapLinksDataSource=or,this.mapDrawingsDataSource=Sr,this.mapSymbolsDataSource=Yr,this.mapSettingsService=cr,this.ethernetLinkWidget=$r,this.serialLinkWidget=li,this.bottomSheet=Tr,this.notificationService=Pi,this.themeService=Eo,this.title=br,this.nodeConsoleService=gr,this.symbolService=dr,this.cd=jn,this.cfr=Lo,this.injector=xi,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 Ya.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,Kn.mG)(this,void 0,void 0,function(){var r,t;return(0,Kn.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,Kn.mG)(r,void 0,void 0,function(){return(0,Kn.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,Ja.D)(r.serverService.get(o)).pipe((0,Ro.zg)(function(a){return a||r.router.navigate(["/servers"]),r.server=a,r.projectService.get(a,i.get("project_id")).pipe((0,Ar.U)(function(s){return s}))}),(0,Ro.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()),r.recentlyOpenedProjectService.setProjectId(r.project.project_id),"opened"===r.project.status?new qo.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;Yf.bind("ctrl++",function(t){t.preventDefault(),r.zoomIn()}),Yf.bind("ctrl+-",function(t){t.preventDefault(),r.zoomOut()}),Yf.bind("ctrl+0",function(t){t.preventDefault(),r.resetZoom()}),Yf.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))}),Yf.bind("ctrl+h",function(t){t.preventDefault(),r.toolbarVisibility=!r.toolbarVisibility}),Yf.bind("ctrl+shift+a",function(t){t.preventDefault(),r.selectionManager.setSelected([])}),Yf.bind("ctrl+shift+s",function(t){t.preventDefault(),r.router.navigate(["/server",r.server.id,"preferences"])}),Yf.bind("del",function(t){t.preventDefault(),r.deleteItems()})},n.prototype.deleteItems=function(){var r=this;this.bottomSheet.open(Xf);var t=this.bottomSheet._openedBottomSheetRef;t.instance.message="Do you want to delete all selected objects?",t.afterDismissed().subscribe(function(o){o&&r.selectionManager.getSelected().filter(function(s){return s instanceof iv}).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")})})})},n.prototype.onProjectLoad=function(r){var t=this;this.readonly=this.projectService.isReadOnly(r);var i=this.projectService.nodes(this.server,r.project_id).pipe((0,Ro.zg)(function(o){return t.nodesDataSource.set(o),t.projectService.links(t.server,r.project_id)}),(0,Ro.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(b){var I=r.mapLinkToLink.convert(b.link);r.contextMenu.openMenuForListOfElements([],[],[],[I],b.event.pageY,b.event.pageX)}),i=this.ethernetLinkWidget.onContextMenu.subscribe(function(b){var I=r.mapLinkToLink.convert(b.link);r.contextMenu.openMenuForListOfElements([],[],[],[I],b.event.pageY,b.event.pageX)}),o=this.serialLinkWidget.onContextMenu.subscribe(function(b){var I=r.mapLinkToLink.convert(b.link);r.contextMenu.openMenuForListOfElements([],[],[],[I],b.event.pageY,b.event.pageX)}),a=this.nodeWidget.onContextMenu.subscribe(function(b){var I=r.mapNodeToNode.convert(b.node);r.contextMenu.openMenuForNode(I,b.event.pageY,b.event.pageX)}),s=this.drawingsWidget.onContextMenu.subscribe(function(b){var I=r.mapDrawingToDrawing.convert(b.drawing);r.contextMenu.openMenuForDrawing(I,b.event.pageY,b.event.pageX)}),u=this.labelWidget.onContextMenu.subscribe(function(b){var I=r.mapLabelToLabel.convert(b.label),F=r.nodes.find(function(G){return G.node_id===b.label.nodeId});r.contextMenu.openMenuForLabel(I,F,b.event.screenY-60,b.event.screenX)}),p=this.interfaceLabelWidget.onContextMenu.subscribe(function(b){var I=r.mapLinkNodeToLinkNode.convert(b.interfaceLabel),F=r.links.find(function(G){return G.link_id===b.interfaceLabel.linkId});r.contextMenu.openMenuForInterfaceLabel(I,F,b.event.pageY,b.event.pageX)}),m=this.selectionTool.contextMenuOpened.subscribe(function(b){var I=r.selectionManager.getSelected();if(!(I.length<2)&&b instanceof MouseEvent){var F=[],G=[],Y=[],te=[];I.forEach(function(ce){ce instanceof Qf?F.push(r.mapDrawingToDrawing.convert(ce)):ce instanceof iv?G.push(r.mapNodeToNode.convert(ce)):ce instanceof ny?Y.push(r.mapLabelToLabel.convert(ce)):ce instanceof gj&&te.push(r.mapLinkToLink.convert(ce))}),r.contextMenu.openMenuForListOfElements(F,G,Y,te,b.pageY,b.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(tt){var Ot=tt.svg.split('"'),xt=parseInt(Ot[1],10),hn=parseInt(Ot[3],10);tt.element={width:hn,height:xt}}),0!==this.nodes.length||0!==this.drawings.length){var r,t,i,o,a=[];this.nodes.forEach(function(tt){var Ot=new N1e;Ot.node=tt,Ot.top=tt.y,Ot.left=tt.x,Ot.bottom=tt.y+tt.height,Ot.right=tt.x+tt.width,tt.y+tt.label.y<Ot.top&&(Ot.top=tt.y+tt.label.y),tt.x+tt.label.x<Ot.left&&(Ot.left=tt.x+tt.label.x),tt.y+tt.label.y>Ot.bottom&&(Ot.bottom=tt.y+tt.label.y),tt.x+tt.label.x>Ot.right&&(Ot.right=tt.x+tt.label.x),a.push(Ot)});var s=a.sort(function(tt,Ot){return tt.left-Ot.left})[0],u=a.sort(function(tt,Ot){return tt.right-Ot.right})[a.length-1],p=a.sort(function(tt,Ot){return tt.top-Ot.top})[0],m=a.sort(function(tt,Ot){return tt.bottom-Ot.bottom})[a.length-1],b=[];this.drawings.forEach(function(tt){var Ot=new Z1e;Ot.drawing=tt,Ot.top=tt.y,Ot.left=tt.x,Ot.bottom=tt.y+tt.element.height,Ot.right=tt.x+tt.element.width,b.push(Ot)});var I=b.sort(function(tt,Ot){return tt.left-Ot.left})[0],F=b.sort(function(tt,Ot){return tt.right-Ot.right})[b.length-1],G=b.sort(function(tt,Ot){return tt.top-Ot.top})[0],Y=b.sort(function(tt,Ot){return tt.bottom-Ot.bottom})[b.length-1];I&&s?(r=s.left<I.left?s.left:I.left,t=u.right>F.right?u.right:F.right,i=p.top<G.top?p.top:G.top,o=m.bottom>Y.bottom?m.bottom:Y.bottom):s&&!I?(r=s.left,t=u.right,i=p.top,o=m.bottom):I&&!s?(r=I.left,t=F.right,i=G.top,o=Y.bottom):(r=0,t=0,i=0,o=0),r-=20,t+=20,i-=20,o+=20;var ce=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,xe=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,lt=t-r,nt=o-i,ht=nt/xe,Qe=1/Math.max(lt/ce,ht);Qe!==this.mapScaleService.currentScale?(this.mapScaleService.setScale(Qe),this.project.scene_width=this.project.scene_width*Qe,this.project.scene_height=this.project.scene_height*Qe,ht<lt?(this.scrollX=r*Qe-(ce-lt*Qe)/2+this.project.scene_width/2,this.scrollY=i*Qe+this.project.scene_height/2):(this.scrollX=r*Qe+this.project.scene_width/2,this.scrollY=i*Qe-(xe-nt*Qe)/2+this.project.scene_height/2)):(this.scrollX=r*Qe+this.project.scene_width/2,this.scrollY=i*Qe+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(Zj,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.server=this.server},n.prototype.saveProject=function(){var t=this.dialog.open(Lme,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;t.server=this.server,t.project=this.project},n.prototype.editProject=function(){var t=this.dialog.open(Eme,{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(Bj,{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(Uj);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."):location.assign(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(Xf);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(Xf);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(Lbe,{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(Fr),e.Y36(zr),e.Y36(cd.Y),e.Y36(Xr),e.Y36(ps),e.Y36(zf),e.Y36(EL),e.Y36(OS),e.Y36(sL),e.Y36(RS),e.Y36(dL),e.Y36(P2),e.Y36(PS),e.Y36(j2),e.Y36(uz),e.Y36(US),e.Y36(cz),e.Y36(AL),e.Y36(pa.G),e.Y36(Kf.F),e.Y36(fs),e.Y36(_p.g),e.Y36(NS),e.Y36(tc),e.Y36(O2),e.Y36(z2.p),e.Y36(N2),e.Y36(ay),e.Y36(dz),e.Y36(rr),e.Y36(zi),e.Y36(Dr),e.Y36(QZ),e.Y36(KZ),e.Y36(XZ),e.Y36($Z),e.Y36(Su),e.Y36(uL),e.Y36(cL),e.Y36(LS),e.Y36(pz),e.Y36(Ku.f),e.Y36(B.Dx),e.Y36(dd),e.Y36(TS),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(jj,5),e.Gf(Rj,5),e.Gf(lz,5),e.Gf(_1e,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","Toggle topology/servers summary","matTooltipClass","custom-tooltip","mat-icon-button","",3,"ngClass","click"],[3,"overlapTrigger"],["mainMenu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","","routerLink","/settings"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],["projectMenu","matMenu"],["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,P1e,156,67,"div",0),e.YNc(1,I1e,0,0,"ng-template",null,1,e.W1O)),2&t&&e.Q6J("ngIf",i.project)},directives:[Mt.O5,Mt.mk,On,Ra,Na,C0e,jj,pr,ds,Hr,ia,S0e,xo,ne.JJ,ne.On,lz,MZ,T0e,x0e,w0e,k0e,E0e,M0e,A0e,D0e,Rj,ECe,UCe,QCe,n1e,g1e],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 #0003;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 .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 #0003;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:#f4f8fcf2!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 #0003,0 6px 20px -20px #00000030}.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 #0003,0 6px 20px #00000030;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 #0003,0 6px 20px #00000030}.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}(),N1e=function(){return function(){}}(),Z1e=function(){return function(){}}(),L1e=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(Wr))},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:[ni,On],styles:[""]}),n}(),F1e=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(Wr),e.Y36(cd.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:[ii,Vn.KE,hr,ne.Fj,ne.JJ,ne.On,ni,On],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]}),n}();function B1e(n,r){1&n&&(e.TgZ(0,"mat-header-cell",21),e._uU(1," Name "),e.qZA())}var U1e=function(n,r){return["/server",n,"project",r]};function H1e(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,U1e,i.server.id,t.project_id)),e.xp6(1),e.Oqu(t.name)}}function V1e(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Actions "),e.qZA())}function q1e(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 j1e(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 z1e(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 W1e(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 G1e(n,r){if(1&n&&(e.TgZ(0,"mat-cell",23),e.YNc(1,q1e,3,0,"button",24),e.YNc(2,j1e,3,0,"button",25),e.YNc(3,z1e,3,0,"button",26),e.YNc(4,W1e,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 Y1e(n,r){1&n&&e._UZ(0,"mat-header-row")}function J1e(n,r){1&n&&e._UZ(0,"mat-row")}var Q1e=function(){return{standalone:!0}},Tz=function(){function n(r,t,i,o,a,s,u,p,m,b){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=b,this.projectDatabase=new K1e,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 X1e(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(L1e,{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.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(Xf);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(Xf);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(F1e,{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(Zj,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.server=this.server},n.prototype.importProject=function(){var r=this,t="",i=this.dialog.open(Bj,{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(Uj);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(Fr),e.Y36(cd.Y),e.Y36(_p.g),e.Y36(zf),e.Y36(zi),e.Y36(Dr),e.Y36(LS),e.Y36(rr),e.Y36($a),e.Y36(z2.p))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-projects"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(BS,7),2&t)&&(e.iGM(o=e.CRH())&&(i.sort=o.first))},decls:27,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.goToPreferences()}),e._uU(6,"Go to preferences"),e.qZA(),e.TgZ(7,"button",5),e.NdJ("click",function(){return i.addBlankProject()}),e._uU(8," Add blank project "),e.qZA(),e.TgZ(9,"button",6),e.NdJ("click",function(){return i.importProject()}),e._uU(10," Import project "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(11,"form"),e.TgZ(12,"mat-form-field",7),e.TgZ(13,"input",8),e.NdJ("ngModelChange",function(a){return i.searchText=a}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",9),e.TgZ(15,"div",10),e.TgZ(16,"mat-table",11,12),e.ALo(18,"projectsfilter"),e.ynx(19,13),e.YNc(20,B1e,2,0,"mat-header-cell",14),e.YNc(21,H1e,3,5,"mat-cell",15),e.BQk(),e.ynx(22,16),e.YNc(23,V1e,2,0,"mat-header-cell",17),e.YNc(24,G1e,5,4,"mat-cell",18),e.BQk(),e.YNc(25,Y1e,1,0,"mat-header-row",19),e.YNc(26,J1e,1,0,"mat-row",20),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(13),e.Q6J("ngModel",i.searchText)("ngModelOptions",e.DdM(8,Q1e)),e.xp6(3),e.Q6J("dataSource",e.xi3(18,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}(),K1e=function(){function n(){this.dataChange=new ji.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}(),X1e=function(n){function r(t,i){var o=n.call(this)||this;return o.projectDatabase=t,o.sort=i,o}return(0,Kn.ZT)(r,n),r.prototype.connect=function(){var t=this;return ro.T.apply(void 0,[this.projectDatabase.dataChange,this.sort.sortChange]).pipe((0,Ar.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}(Li.o2);function $1e(n,r){1&n&&(e.TgZ(0,"mat-error"),e._uU(1,"You must enter a value"),e.qZA())}function eSe(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 tSe(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",14),e.qZA())}function nSe(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",15),e.qZA())}function rSe(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 iSe(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 oSe(n,r){if(1&n&&(e.TgZ(0,"mat-form-field"),e.TgZ(1,"mat-select",16),e.YNc(2,iSe,2,2,"mat-option",6),e.qZA(),e.qZA()),2&n){var t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.authorizations)}}function aSe(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",17),e.qZA())}function sSe(n,r){1&n&&(e.TgZ(0,"mat-form-field"),e._UZ(1,"input",18),e.qZA())}var lSe=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 ne.cw({name:new ne.NI("",[ne.kI.required]),location:new ne.NI(""),path:new ne.NI(""),ubridge_path:new ne.NI(""),host:new ne.NI("",[ne.kI.required]),port:new ne.NI("",[ne.kI.required,ne.kI.min(1)]),protocol:new ne.NI("http:"),authorization:new ne.NI("none"),login:new ne.NI(""),password:new ne.NI("")})}return n.prototype.getLocations=function(){return(0,Kn.mG)(this,void 0,void 0,function(){var r,t;return(0,Kn.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,Kn.mG)(this,void 0,void 0,function(){var r;return(0,Kn.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,Kn.mG)(this,void 0,void 0,function(){return(0,Kn.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,Kn.mG)(this,void 0,void 0,function(){return(0,Kn.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,Kn.mG)(this,void 0,void 0,function(){return(0,Kn.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,Kn.mG)(this,void 0,void 0,function(){var r,t,i,o,a=this;return(0,Kn.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([ne.kI.required]),m.setValue(i),m.setValidators([ne.kI.required])):(p.setValue(""),p.clearValidators(),m.setValue(""),m.clearValidators()),[p,m].forEach(function(b){b.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([ne.kI.required]),m.setValidators([ne.kI.required])),[p,m].forEach(function(b){b.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(Wr),e.Y36($a),e.Y36(zr),e.Y36(rr),e.Y36(ld))},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,$1e,2,0,"mat-error",4),e.qZA(),e.TgZ(7,"mat-form-field"),e.TgZ(8,"mat-select",5),e.YNc(9,eSe,2,2,"mat-option",6),e.qZA(),e.qZA(),e.YNc(10,tSe,2,0,"mat-form-field",4),e.YNc(11,nSe,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,rSe,2,2,"mat-option",6),e.qZA(),e.qZA(),e.YNc(19,oSe,3,1,"mat-form-field",4),e.YNc(20,aSe,2,0,"mat-form-field",4),e.YNc(21,sSe,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:[ii,ne._Y,ne.JL,ne.sg,J_,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,Mt.O5,hi.gD,Mt.sg,ni,On,Vn.TO,dn.ey],encapsulation:2}),n}(),IL=function(){function n(r){var t=this;this.electronService=r,this.serverStatusChanged=new Rn.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,Kn.mG)(this,void 0,void 0,function(){return(0,Kn.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,Kn.mG)(this,void 0,void 0,function(){return(0,Kn.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,Kn.mG)(this,void 0,void 0,function(){return(0,Kn.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($a))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),RL=f(53628),xz=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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}();function uSe(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 cSe(n,r){1&n&&e._UZ(0,"mat-divider")}var dSe=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,Kn.mG)(r,void 0,void 0,function(){return(0,Kn.Jh)(this,function(i){return t&&this.discoverFirstServer(),[2]})})})},n.prototype.discoverFirstServer=function(){return(0,Kn.mG)(this,void 0,void 0,function(){var r;return(0,Kn.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,Kn.mG)(this,void 0,void 0,function(){var r,t=this;return(0,Kn.Jh)(this,function(i){return r=[],this.defaultServers.forEach(function(o){return(0,Kn.mG)(t,void 0,void 0,function(){var a;return(0,Kn.Jh)(this,function(u){switch(u.label){case 0:return(a=new l2).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,kZ.D)([(0,Ja.D)(this.serverService.findAll()).pipe((0,Ar.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 RL.Observable.of(null)}))}),new RL.Observable(function(i){(0,kZ.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 l2;return i.host=r,i.port=t,this.versionService.get(i).flatMap(function(o){return RL.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(xz),e.Y36(zr),e.Y36(p2),e.Y36(Fr))},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,uSe,11,2,"mat-card",0),e.YNc(1,cSe,1,0,"mat-divider",1)),2&t&&(e.Q6J("ngIf",i.discoveredServer),e.xp6(1),e.Q6J("ngIf",i.discoveredServer))},directives:[Mt.O5,bi,DZ,Mae,On,Cq.d],styles:[""]}),n}();function pSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," ID "),e.qZA())}function fSe(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 hSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Name "),e.qZA())}var mSe=function(n){return["/server",n,"projects"]};function vSe(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,mSe,t.id)),e.xp6(1),e.Oqu(t.name)}}function gSe(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 _Se(n,r){if(1&n&&(e.TgZ(0,"mat-cell"),e.YNc(1,vSe,2,4,"a",20),e.YNc(2,gSe,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 ySe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Location "),e.qZA())}function bSe(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 CSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Host "),e.qZA())}function SSe(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 TSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Port "),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.port," ")}}function wSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Actions "),e.qZA())}function kSe(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 ESe(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 MSe(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 ASe(n,r){1&n&&e._UZ(0,"mat-spinner",36),2&n&&e.Q6J("diameter",24)}function DSe(n,r){if(1&n){var t=e.EpF();e.TgZ(0,"mat-cell",23),e.YNc(1,kSe,3,0,"button",24),e.YNc(2,ESe,3,0,"button",25),e.YNc(3,MSe,3,0,"button",26),e.YNc(4,ASe,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 OSe(n,r){1&n&&e._UZ(0,"mat-header-row")}function PSe(n,r){1&n&&e._UZ(0,"mat-row")}function ISe(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 RSe=function(){function n(r,t,i,o,a,s,u,p,m,b){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=b,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,Kn.mG)(r,void 0,void 0,function(){return(0,Kn.Jh)(this,function(i){return t&&this.getServers(),[2]})})}),this.dataSource=new NSe(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(lSe,{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(Xf);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,Kn.mG)(this,void 0,void 0,function(){return(0,Kn.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,Kn.mG)(this,void 0,void 0,function(){return(0,Kn.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(zi),e.Y36(zr),e.Y36(p2),e.Y36(IL),e.Y36(e.sBO),e.Y36($a),e.Y36(rZ),e.Y36(LS),e.Y36(Fr),e.Y36(Dr))},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,pSe,2,0,"mat-header-cell",7),e.YNc(11,fSe,2,1,"mat-cell",8),e.BQk(),e.ynx(12,9),e.YNc(13,hSe,2,0,"mat-header-cell",7),e.YNc(14,_Se,3,2,"mat-cell",8),e.BQk(),e.ynx(15,10),e.YNc(16,ySe,2,0,"mat-header-cell",7),e.YNc(17,bSe,2,1,"mat-cell",8),e.BQk(),e.ynx(18,11),e.YNc(19,CSe,2,0,"mat-header-cell",7),e.YNc(20,SSe,2,1,"mat-cell",8),e.BQk(),e.ynx(21,12),e.YNc(22,TSe,2,0,"mat-header-cell",7),e.YNc(23,xSe,2,1,"mat-cell",8),e.BQk(),e.ynx(24,13),e.YNc(25,wSe,2,0,"mat-header-cell",7),e.YNc(26,DSe,8,4,"mat-cell",14),e.BQk(),e.YNc(27,OSe,1,0,"mat-header-row",15),e.YNc(28,PSe,1,0,"mat-row",16),e.qZA(),e.qZA(),e.TgZ(29,"div",17),e.YNc(30,ISe,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:[dSe,jl,il,rl,nl,zl,Wl,Mt.O5,On,ol,al,W_,Ra,pr,YV,Gl,Yl],styles:[".buttons-bar[_ngcontent-%COMP%]{padding-top:0}.button[_ngcontent-%COMP%]{margin:20px!important}"]}),n}(),NSe=function(n){function r(t){var i=n.call(this)||this;return i.serverDatabase=t,i}return(0,Kn.ZT)(r,n),r.prototype.connect=function(){var t=this;return(0,ro.T)(this.serverDatabase.dataChange).pipe((0,Ar.U)(function(){return t.serverDatabase.data}))},r.prototype.disconnect=function(){},r}(Li.o2),wz=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($a))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),NL=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(wz),e.LFG(_p.g))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),ZSe=function(){function n(r,t,i){this.router=r,this.consoleService=t,this.toasterService=i,this.consoleForm=new ne.cw({command:new ne.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(Dr),e.Y36(NL),e.Y36(rr))},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:[bi,ne._Y,ne.JL,ne.sg,Vn.KE,hr,ne.Fj,ne.JJ,ne.u,On],styles:[".help[_ngcontent-%COMP%]{font-size:14px}"]}),n}(),kz=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(Vc.eN))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),LSe=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(_p.g),e.Y36(rr),e.Y36(NL),e.Y36(Ku.f),e.Y36(Su),e.Y36(kz))},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:[od,Ju,Qu,id,use,xo,ne.JJ,ne.On,Vn.KE,hr,Qoe,W_,Vn.R9,pr,On],styles:[".theme-panel[_ngcontent-%COMP%]{justify-content:space-between;display:flex;padding:10px}.fullWidth[_ngcontent-%COMP%]{width:100%}"]}),n}(),FSe=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}(),BSe=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 USe(n,r){1&n&&(e.TgZ(0,"mat-header-cell",18),e._uU(1," Name "),e.qZA())}function HSe(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 VSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell",18),e._uU(1," Date "),e.qZA())}function qSe(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 jSe(n,r){1&n&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Actions "),e.qZA())}function zSe(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 WSe(n,r){1&n&&e._UZ(0,"mat-header-row")}function GSe(n,r){1&n&&e._UZ(0,"mat-row")}var YSe=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===OL.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(Fr),e.Y36(W2),e.Y36(PL),e.Y36(rr))},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,USe,2,0,"mat-header-cell",10),e.YNc(14,HSe,2,1,"mat-cell",11),e.BQk(),e.ynx(15,12),e.YNc(16,VSe,2,0,"mat-header-cell",10),e.YNc(17,qSe,3,3,"mat-cell",11),e.BQk(),e.ynx(18,13),e.YNc(19,jSe,2,0,"mat-header-cell",14),e.YNc(20,zSe,7,0,"mat-cell",15),e.BQk(),e.YNc(21,WSe,1,0,"mat-header-row",16),e.YNc(22,GSe,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:[bi,Vn.KE,hr,ne.Fj,ne.JJ,ne.On,jl,BS,il,rl,nl,zl,Wl,ol,Yj,al,On,Ra,pr,Gl,Yl],pipes:[FSe,BSe],styles:[".filter-field[_ngcontent-%COMP%]{width:100%}.mat-table[_ngcontent-%COMP%]{margin:-16px!important}"]}),n}(),KSe=["*"],Ez=new e.OlP("MatChipRemove"),Mz=new e.OlP("MatChipAvatar"),Az=new e.OlP("MatChipTrailingIcon"),$Se=(0,dn.sb)((0,dn.pj)((0,dn.Kr)(function n(r){(0,g.Z)(this,n),this._elementRef=r}),"primary"),-1),J2=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m,b,I){var F;return(0,g.Z)(this,i),(F=t.call(this,o))._ngZone=a,F._changeDetectorRef=p,F._hasFocus=!1,F.chipListSelectable=!0,F._chipListMultiple=!1,F._chipListDisabled=!1,F._selected=!1,F._selectable=!0,F._disabled=!1,F._removable=!0,F._onFocus=new Rn.xQ,F._onBlur=new Rn.xQ,F.selectionChange=new e.vpe,F.destroyed=new e.vpe,F.removed=new e.vpe,F._addHostClassName(),F._chipRippleTarget=m.createElement("div"),F._chipRippleTarget.classList.add("mat-chip-ripple"),F._elementRef.nativeElement.appendChild(F._chipRippleTarget),F._chipRipple=new dn.IR((0,uS.Z)(F),a,F._chipRippleTarget,s),F._chipRipple.setupTriggerEvents(o),F.rippleConfig=u||{},F._animationsDisabled="NoopAnimations"===b,F.tabIndex=null!=I&&parseInt(I)||-1,F}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,In.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,In.Ig)(a)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(a){this._disabled=(0,In.Ig)(a)}},{key:"removable",get:function(){return this._removable},set:function(a){this._removable=(0,In.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 Kr.yY:case Kr.ZH:this.remove(),a.preventDefault();break;case Kr.L_:this.selectable&&this.toggleSelected(!0),a.preventDefault()}}},{key:"_blur",value:function(){var a=this;this._ngZone.onStable.pipe((0,qi.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}($Se);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(ti.t4),e.Y36(dn.Y2,8),e.Y36(e.sBO),e.Y36(Mt.K0),e.Y36(ss.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,Mz,5),e.Suo(o,Az,5),e.Suo(o,Ez,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}(),Dz=new e.OlP("mat-chips-default-options"),rTe=(0,dn.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}}()),iTe=0,oTe=function n(r,t){(0,g.Z)(this,n),this.source=r,this.value=t},Oz=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.Z)(i);function i(o,a,s,u,p,m,b){var I;return(0,g.Z)(this,i),(I=t.call(this,m,u,p,b))._elementRef=o,I._changeDetectorRef=a,I._dir=s,I.controlType="mat-chip-list",I._lastDestroyedChipIndex=null,I._destroyed=new Rn.xQ,I._uid="mat-chip-list-".concat(iTe++),I._tabIndex=0,I._userTabIndex=null,I._onTouched=function(){},I._onChange=function(){},I._multiple=!1,I._compareWith=function(F,G){return F===G},I._required=!1,I._disabled=!1,I.ariaOrientation="horizontal",I._selectable=!0,I.change=new e.vpe,I.valueChange=new e.vpe,I.ngControl&&(I.ngControl.valueAccessor=(0,uS.Z)(I)),I}return(0,T.Z)(i,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(a){this._multiple=(0,In.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,In.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,In.Ig)(a),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(a){var s=this;this._selectable=(0,In.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 ro.T.apply(void 0,(0,y.Z)(this.chips.map(function(a){return a.selectionChange})))}},{key:"chipFocusChanges",get:function(){return ro.T.apply(void 0,(0,y.Z)(this.chips.map(function(a){return a._onFocus})))}},{key:"chipBlurChanges",get:function(){return ro.T.apply(void 0,(0,y.Z)(this.chips.map(function(a){return a._onBlur})))}},{key:"chipRemoveChanges",get:function(){return ro.T.apply(void 0,(0,y.Z)(this.chips.map(function(a){return a.destroyed})))}},{key:"ngAfterContentInit",value:function(){var a=this;this._keyManager=new Ti.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,qr.R)(this._destroyed)).subscribe(function(s){return a._keyManager.withHorizontalOrientation(s)}),this._keyManager.tabOut.pipe((0,qr.R)(this._destroyed)).subscribe(function(){a._allowFocusEscape()}),this.chips.changes.pipe((0,ea.O)(null),(0,qr.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 Li.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 oTe(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}(rTe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ca.Is,8),e.Y36(ne.F,8),e.Y36(ne.sg,8),e.Y36(dn.rD),e.Y36(ne.a5,10))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-chip-list"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,J2,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:Vn.Eo,useExisting:n}]),e.qOj],ngContentSelectors:KSe,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.mat-icon{width:18px;height: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}(),lTe={separatorKeyCodes:[Kr.K5]},uTe=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:[dn.rD,{provide:Dz,useValue:lTe}],imports:[[dn.BQ]]}),n}(),cTe=function(){return["Load average","(last 1 minute)"]},dTe=function(){return["Load average","(last 5 minutes)"]},pTe=function(){return["Load average","(last 15 minutes)"]},fTe=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,cTe))("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,dTe))("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,pTe))("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:[bi,are,Oz,J2],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 hTe(n,r){1&n&&(e.TgZ(0,"div"),e._uU(1,"Statistics not loaded"),e.qZA())}function mTe(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 vTe=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(Fr),e.Y36($u.X),e.Y36(zr),e.Y36(rr))},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,hTe,2,0,"div",0),e.YNc(1,mTe,3,2,"div",1)),2&t&&(e.Q6J("ngIf",!i.computeStatistics.length),e.xp6(1),e.Q6J("ngForOf",i.computeStatistics))},directives:[Mt.O5,Mt.sg,fTe],styles:[""]}),n}(),gTe=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(Fr))},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:[vTe],styles:[""]}),n}(),_Te=["terminal"],Pz=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 Ya.w,this.term=new bz.Terminal,this.fitAddon=new Sz.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 Cz.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(dd),e.Y36(zr),e.Y36(Fr),e.Y36(B.Dx),e.Y36(Xr))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-web-console-full-window"]],viewQuery:function(t,i){var o;(1&t&&e.Gf(_Te,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}\n"],encapsulation:2}),n}(),Iz=function(){function n(r,t){this.consoleService=r,this.bottomSheet=t}return n.prototype.canDeactivate=function(){if(this.consoleService.openConsoles>0){this.bottomSheet.open(Xf);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(dd),e.LFG(LS))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),yTe=["*",[["mat-toolbar-row"]]],bTe=["*","mat-toolbar-row"],CTe=(0,dn.pj)(function(){return function n(r){(0,g.Z)(this,n),this._elementRef=r}}()),STe=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}(),TTe=function(){var n=function(r){(0,O.Z)(i,r);var t=(0,P.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}(CTe);return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq),e.Y36(ti.t4),e.Y36(Mt.K0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(t,i,o){var a;1&t&&e.Suo(o,STe,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:bTe,decls:2,vars:0,template:function(t,i){1&t&&(e.F$t(yTe),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}(),xTe=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:[[dn.BQ],dn.BQ]}),n}();function wTe(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 kTe(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 ETe=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=_z,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,Kn.mG)(this,void 0,void 0,function(){return(0,Kn.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($a),e.Y36(z2.p),e.Y36(IL),e.Y36(rr),e.Y36(zf),e.Y36(Dr))},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:5,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,wTe,2,0,"button",4),e.YNc(7,kTe,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.hij("GNS3 Web UI \xa9 2020 - v",i.uiVersion,"")}},directives:[TTe,On,pr,ia,Mt.O5,Na,ds,Hr,s2,MZ],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 #0003,0 6px 10px #00000024,0 1px 18px #0000001f;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}(),ZL=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(zr))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),MTe=[{path:"",component:ETe,children:[{path:"",redirectTo:"servers",pathMatch:"full"},{path:"servers",component:RSe},{path:"bundled",component:fae},{path:"server/:server_id/projects",component:Tz,resolve:{server:ZL}},{path:"help",component:xse},{path:"settings",component:LSe},{path:"settings/console",component:ZSe},{path:"installed-software",component:Xse},{path:"server/:server_id/systemstatus",component:gTe},{path:"server/:server_ip/:server_port/project/:project_id",component:jae},{path:"server/:server_id/project/:project_id/snapshots",component:YSe,resolve:{server:ZL}},{path:"server/:server_id/preferences",component:Ipe},{path:"server/:server_id/preferences/gns3vm",component:dpe},{path:"server/:server_id/preferences/builtin",component:tle},{path:"server/:server_id/preferences/builtin/ethernet-hubs",component:Eue},{path:"server/:server_id/preferences/builtin/ethernet-hubs/addtemplate",component:mue},{path:"server/:server_id/preferences/builtin/ethernet-hubs/:template_id",component:bue},{path:"server/:server_id/preferences/builtin/ethernet-switches",component:tce},{path:"server/:server_id/preferences/builtin/ethernet-switches/addtemplate",component:Mue},{path:"server/:server_id/preferences/builtin/ethernet-switches/:template_id",component:Yue},{path:"server/:server_id/preferences/builtin/cloud-nodes",component:hue},{path:"server/:server_id/preferences/builtin/cloud-nodes/addtemplate",component:ple},{path:"server/:server_id/preferences/builtin/cloud-nodes/:template_id",component:Hle},{path:"server/:server_id/preferences/dynamips/templates",component:rpe},{path:"server/:server_id/preferences/dynamips/templates/addtemplate",component:Ade},{path:"server/:server_id/preferences/dynamips/templates/:template_id",component:Qde},{path:"server/:server_id/preferences/dynamips/templates/:template_id/copy",component:Dde},{path:"server/:server_id/preferences/qemu/templates",component:Sfe},{path:"server/:server_id/preferences/qemu/templates/:template_id/copy",component:Upe},{path:"server/:server_id/preferences/qemu/templates/:template_id",component:mfe},{path:"server/:server_id/preferences/qemu/addtemplate",component:Bpe},{path:"server/:server_id/preferences/vpcs/templates",component:Che},{path:"server/:server_id/preferences/vpcs/templates/:template_id",component:hhe},{path:"server/:server_id/preferences/vpcs/addtemplate",component:lhe},{path:"server/:server_id/preferences/virtualbox/templates",component:Hfe},{path:"server/:server_id/preferences/virtualbox/templates/:template_id",component:Rfe},{path:"server/:server_id/preferences/virtualbox/addtemplate",component:wfe},{path:"server/:server_id/preferences/vmware/templates",component:she},{path:"server/:server_id/preferences/vmware/templates/:template_id",component:ehe},{path:"server/:server_id/preferences/vmware/addtemplate",component:zfe},{path:"server/:server_id/preferences/docker/templates",component:pde},{path:"server/:server_id/preferences/docker/templates/:template_id",component:ode},{path:"server/:server_id/preferences/docker/templates/:template_id/copy",component:Hce},{path:"server/:server_id/preferences/docker/addtemplate",component:Uce},{path:"server/:server_id/preferences/iou/templates",component:Ppe},{path:"server/:server_id/preferences/iou/templates/:template_id",component:wpe},{path:"server/:server_id/preferences/iou/templates/:template_id/copy",component:gpe},{path:"server/:server_id/preferences/iou/addtemplate",component:vpe}]},{path:"server/:server_id/project/:project_id",component:R1e,canDeactivate:[Iz]},{path:"server/:server_id/project/:project_id/nodes/:node_id",component:Pz},{path:"static/web-ui/server/:server_id/project/:project_id/nodes/:node_id",component:Pz},{path:"**",component:ele}],ATe=function(){function n(){}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[qV.forRoot(MTe,{anchorScrolling:"enabled",enableTracing:!1,scrollPositionRestoration:"enabled"})],qV]}),n}(),DTe=function(n,r){return{dark:n,light:r}},OTe=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(b){m.checkEvent(b)})}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 qA?this.progressService.activate():(r instanceof Ym||r instanceof aZ||r instanceof WH)&&this.progressService.deactivate()},n.\u0275fac=function(t){return new(t||n)(e.Y36(Xi.Xj),e.Y36(CS),e.Y36(B.H7),e.Y36(_p.g),e.Y36($a),e.Y36(Ku.f),e.Y36(Dr),e.Y36(zf))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-root"]],hostVars:2,hostBindings:function(t,i){2&t&&e.Tol(i.componentCssClass)},decls:3,vars:4,consts:[[3,"ngClass"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"router-outlet"),e._UZ(2,"app-adbutler"),e.qZA()),2&t&&e.Q6J("ngClass",e.WLB(1,DTe,i.darkThemeEnabled,!i.darkThemeEnabled))},directives:[Mt.mk,s2,Pq],styles:["mat-menu-panel[_ngcontent-%COMP%]{min-height:0px}.dark[_ngcontent-%COMP%]{background:#263238!important}.light[_ngcontent-%COMP%]{background:white!important}"]}),n}(),PTe=function(){return function(){}}(),ITe=function(){function n(){}return n.prototype.convert=function(r){var t=new PTe;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}(),RTe=function(){function n(){}return n.prototype.convert=function(r){var t={font_family:void 0,font_size:void 0,font_weight:void 0};return MS.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}(),NTe=[fL,pL,I2,sL,P2,RS,lL,O2,aL,Pj,dL,wj,PS,Dj,Ej,Aj,Mj,kj,Oj],ZTe=function(){function n(){}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:(0,Kn.ev)([Jf,ec,kL,rz,iz,oz,az,DS,IS,uv,M2,OS,rL,Jl,nc,av,ZS,N2,cv,E2,eL,yj,_j,uz,US,AL,cz,j2,ML,ITe,nL,tL,bj,ry,QZ,KZ,XZ,$Z,oL,iy,ES,RTe,uL,cL],NTe),imports:[[Mt.ez,Qq,EZ]]}),n}(),LTe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Kn.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}(w2.o),LL=function(n,r){return(LL=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 VS(n,r){function t(){this.constructor=n}LL(n,r),n.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}var yp,Nz,qn=function(){return(qn=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 pv(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 Rz(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 wo(){for(var n=[],r=0;r<arguments.length;r++)n=n.concat(Rz(arguments[r]));return n}!function(n){n.Ok="ok",n.Exited="exited",n.Crashed="crashed",n.Abnormal="abnormal"}(yp||(yp={})),function(n){n.Ok="ok",n.Errored="errored",n.Crashed="crashed"}(Nz||(Nz={}));var Gr=f(82605),qS=f(46354),fv=(0,Gr.Rf)(),FL="Sentry Logger ",BTe=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||(0,Gr.Cf)(function(){fv.console.log(FL+"[Log]: "+r.join(" "))})},n.prototype.warn=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];!this._enabled||(0,Gr.Cf)(function(){fv.console.warn(FL+"[Warn]: "+r.join(" "))})},n.prototype.error=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];!this._enabled||(0,Gr.Cf)(function(){fv.console.error(FL+"[Error]: "+r.join(" "))})},n}();fv.__SENTRY__=fv.__SENTRY__||{};var bp,Wi=fv.__SENTRY__.logger||(fv.__SENTRY__.logger=new BTe),UTe=f(4839);function Zz(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return th(n,Error)}}function Lz(n){return"[object ErrorEvent]"===Object.prototype.toString.call(n)}function Fz(n){return"[object DOMError]"===Object.prototype.toString.call(n)}function cy(n){return"[object String]"===Object.prototype.toString.call(n)}function K2(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function dy(n){return"[object Object]"===Object.prototype.toString.call(n)}function BL(n){return"undefined"!=typeof Event&&th(n,Event)}function Bz(n){return"undefined"!=typeof Element&&th(n,Element)}function UL(n){return Boolean(n&&n.then&&"function"==typeof n.then)}function th(n,r){try{return n instanceof r}catch(t){return!1}}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(bp||(bp={}));var ul=function(){function n(r){var t=this;this._state=bp.PENDING,this._handlers=[],this._resolve=function(i){t._setResult(bp.RESOLVED,i)},this._reject=function(i){t._setResult(bp.REJECTED,i)},this._setResult=function(i,o){if(t._state===bp.PENDING){if(UL(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!==bp.PENDING){var i=t._handlers.slice();t._handlers=[],i.forEach(function(o){o.done||(t._state===bp.RESOLVED&&o.onfulfilled&&o.onfulfilled(t._value),t._state===bp.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}(),X2=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=wo(r._breadcrumbs),t._tags=qn({},r._tags),t._extra=qn({},r._extra),t._contexts=qn({},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=wo(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=qn(qn({},this._tags),r),this._notifyScopeListeners(),this},n.prototype.setTag=function(r,t){var i;return this._tags=qn(qn({},this._tags),((i={})[r]=t,i)),this._notifyScopeListeners(),this},n.prototype.setExtras=function(r){return this._extra=qn(qn({},this._extra),r),this._notifyScopeListeners(),this},n.prototype.setExtra=function(r,t){var i;return this._extra=qn(qn({},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=qn(qn({},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=qn(qn({},this._tags),r._tags),this._extra=qn(qn({},this._extra),r._extra),this._contexts=qn(qn({},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)):dy(r)&&(r=r,this._tags=qn(qn({},this._tags),r.tags),this._extra=qn(qn({},this._extra),r.extra),this._contexts=qn(qn({},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=qn({timestamp:(0,qS.yW)()},r);return this._breadcrumbs=wo(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=qn(qn({},this._extra),r.extra)),this._tags&&Object.keys(this._tags).length&&(r.tags=qn(qn({},this._tags),r.tags)),this._user&&Object.keys(this._user).length&&(r.user=qn(qn({},this._user),r.user)),this._contexts&&Object.keys(this._contexts).length&&(r.contexts=qn(qn({},this._contexts),r.contexts)),this._level&&(r.level=this._level),this._transactionName&&(r.transaction=this._transactionName),this._span){r.contexts=qn({trace:this._span.getTraceContext()},r.contexts);var o=null===(i=this._span.transaction)||void 0===i?void 0:i.name;o&&(r.tags=qn({transaction:o},r.tags))}return this._applyFingerprint(r),r.breadcrumbs=wo(r.breadcrumbs||[],this._breadcrumbs),r.breadcrumbs=r.breadcrumbs.length>0?r.breadcrumbs:void 0,this._notifyEventProcessors(wo(Hz(),this._eventProcessors),r,t)},n.prototype._notifyEventProcessors=function(r,t,i,o){var a=this;return void 0===o&&(o=0),new ul(function(s,u){var p=r[o];if(null===t||"function"!=typeof p)s(t);else{var m=p(qn({},t),i);UL(m)?m.then(function(b){return a._notifyEventProcessors(r,b,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 Hz(){var n=(0,Gr.Rf)();return n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.globalEventProcessors=n.__SENTRY__.globalEventProcessors||[],n.__SENTRY__.globalEventProcessors}function $2(n){Hz().push(n)}function eD(n,r){try{for(var t=n,a=[],s=0,u=0,m=" > ".length,b=void 0;t&&s++<5&&!("html"===(b=jTe(t,r))||s>1&&u+a.length*m+b.length>=80);)a.push(b),u+=b.length,t=t.parentNode;return a.reverse().join(" > ")}catch(I){return"<unknown>"}}function jTe(n,r){var t,i,s,u,p,m,b,o=n,a=[];if(!o||!o.tagName)return"";a.push(o.tagName.toLowerCase());var I=(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=I)||void 0===i?void 0:i.length)I.forEach(function(G){a.push("["+G[0]+'="'+G[1]+'"]')});else if(o.id&&a.push("#"+o.id),(s=o.className)&&cy(s))for(u=s.split(/\s+/),b=0;b<u.length;b++)a.push("."+u[b]);var F=["type","name","title","alt"];for(b=0;b<F.length;b++)(m=o.getAttribute(p=F[b]))&&a.push("["+p+'="'+m+'"]');return a.join("")}var zTe=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}(),HL="<anonymous>";function nh(n){try{return n&&"function"==typeof n&&n.name||HL}catch(r){return HL}}function jS(n,r){return void 0===r&&(r=0),"string"!=typeof n||0===r||n.length<=r?n:n.substr(0,r)+"..."}function Vz(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 VL(n,r){return!!cy(n)&&(function(n){return"[object RegExp]"===Object.prototype.toString.call(n)}(r)?r.test(n):"string"==typeof r&&-1!==n.indexOf(r))}function hs(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 qz(n){if(Zz(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(BL(n)){var o=n,a={};a.type=o.type;try{a.target=Bz(o.target)?eD(o.target):Object.prototype.toString.call(o.target)}catch(u){a.target="<unknown>"}try{a.currentTarget=Bz(o.currentTarget)?eD(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(u){a.currentTarget="<unknown>"}for(var s in"undefined"!=typeof CustomEvent&&th(n,CustomEvent)&&(a.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,s)&&(a[s]=o[s]);return a}return n}function jz(n,r,t){void 0===r&&(r=3),void 0===t&&(t=102400);var i=py(n,r);return function(n){return function(n){return~-encodeURI(n).split(/%..|./).length}(JSON.stringify(n))}(i)>t?jz(n,r-1,t):i}function zz(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 dy(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: "+nh(n)+"]":"symbol"==typeof n?"["+String(n)+"]":"bigint"==typeof n?"[BigInt: "+String(n)+"]":n}function Wz(n,r,t,i){if(void 0===t&&(t=1/0),void 0===i&&(i=new zTe),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=zz(n);return K2(t)?t:r}(r);if(null!=r&&"function"==typeof r.toJSON)return r.toJSON();var o=zz(r,n);if(K2(o))return o;var a=qz(r),s=Array.isArray(r)?[]:{};if(i.memoize(r))return"[Circular ~]";for(var u in a)!Object.prototype.hasOwnProperty.call(a,u)||(s[u]=Wz(u,a[u],t-1,i));return i.unmemoize(r),s}function py(n,r){try{return JSON.parse(JSON.stringify(n,function(t,i){return Wz(t,i,r)}))}catch(t){return"**non-serializable**"}}function QTe(n,r){void 0===r&&(r=40);var t=Object.keys(qz(n));if(t.sort(),!t.length)return"[object has no keys]";if(t[0].length>=r)return jS(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:jS(o,r)}return""}function tD(n){var r,t;if(dy(n)){var i=n,o={};try{for(var a=pv(Object.keys(i)),s=a.next();!s.done;s=a.next()){var u=s.value;void 0!==i[u]&&(o[u]=tD(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(tD):n}var KTe=function(){function n(r){this.errors=0,this.sid=(0,Gr.DM)(),this.duration=0,this.status=yp.Ok,this.init=!0,this.ignoreDuration=!1;var t=(0,qS.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,qS.ph)(),r.ignoreDuration&&(this.ignoreDuration=r.ignoreDuration),r.sid&&(this.sid=32===r.sid.length?r.sid:(0,Gr.DM)()),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===yp.Ok?this.update({status:yp.Exited}):this.update()},n.prototype.toJSON=function(){return tD({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:tD({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},n}(),jL=function(){function n(r,t,i){void 0===t&&(t=new X2),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=X2.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=(0,Gr.DM)(),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,qn(qn({},o),{event_id:i})),i},n.prototype.captureMessage=function(r,t,i){var o=this._lastEventId=(0,Gr.DM)(),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,qn(qn({},a),{event_id:o})),o},n.prototype.captureEvent=function(r,t){var i=this._lastEventId=(0,Gr.DM)();return this._invokeClient("captureEvent",r,qn(qn({},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,b=void 0===m?100:m;if(!(b<=0)){var I=(0,qS.yW)(),F=qn({timestamp:I},r),G=p?(0,Gr.Cf)(function(){return p(F,t)}):F;null!==G&&o.addBreadcrumb(G,b)}}},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=Gz(this);try{r(this)}finally{Gz(t)}},n.prototype.getIntegration=function(r){var t=this.getClient();if(!t)return null;try{return t.getIntegration(r)}catch(i){return Wi.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,Gr.Rf)().navigator||{}).userAgent,b=new KTe(qn(qn(qn({release:s,environment:u},i&&{user:i.getUser()}),m&&{userAgent:m}),r));if(i){var I=i.getSession&&i.getSession();I&&I.status===yp.Ok&&I.update({status:yp.Exited}),this.endSession(),i.setSession(b)}return b},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,wo(i,[s]))},n.prototype._callExtensionMethod=function(r){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var o=zS(),a=o.__SENTRY__;if(a&&a.extensions&&"function"==typeof a.extensions[r])return a.extensions[r].apply(this,t);Wi.warn("Extension method "+r+" couldn't be found, doing nothing.")},n}();function zS(){var n=(0,Gr.Rf)();return n.__SENTRY__=n.__SENTRY__||{extensions:{},hub:void 0},n}function Gz(n){var r=zS(),t=rh(r);return zL(r,n),t}function ms(){var n=zS();return(!Yz(n)||rh(n).isOlderThan(4))&&zL(n,new jL),(0,UTe.KV)()?function(n){var r,t,i;try{var o=null===(i=null===(t=null===(r=zS().__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 rh(n);if(!Yz(o)||rh(o).isOlderThan(4)){var a=rh(n).getStackTop();zL(o,new jL(a.client,X2.clone(a.scope)))}return rh(o)}catch(s){return rh(n)}}(n):rh(n)}function Yz(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function rh(n){return n&&n.__SENTRY__&&n.__SENTRY__.hub||(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=new jL),n.__SENTRY__.hub}function zL(n,r){return!!n&&(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=r,!0)}function cl(n){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];var i=ms();if(i&&i[n])return i[n].apply(i,wo(r));throw new Error("No hub defined or "+n+" was not found on the hub, please open a bug report.")}function Jz(n,r){var t;try{throw new Error("Sentry syntheticException")}catch(i){t=i}return cl("captureException",n,{captureContext:r,originalException:n,syntheticException:t})}function exe(n){cl("withScope",n)}var Qz,nxe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],rxe=function(){function n(r){void 0===r&&(r={}),this._options=r,this.name=n.id}return n.prototype.setupOnce=function(){$2(function(r){var t=ms();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)?(Wi.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,Gr.jH)(r)),!0):this._isIgnoredError(r,t)?(Wi.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,Gr.jH)(r)),!0):this._isDeniedUrl(r,t)?(Wi.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,Gr.jH)(r)+".\nUrl: "+this._getEventFilterUrl(r)),!0):!this._isAllowedUrl(r,t)&&(Wi.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,Gr.jH)(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 VL(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 VL(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 VL(i,o)})},n.prototype._mergeOptions=function(r){return void 0===r&&(r={}),{allowUrls:wo(this._options.whitelistUrls||[],this._options.allowUrls||[],r.whitelistUrls||[],r.allowUrls||[]),denyUrls:wo(this._options.blacklistUrls||[],this._options.denyUrls||[],r.blacklistUrls||[],r.denyUrls||[]),ignoreErrors:wo(this._options.ignoreErrors||[],r.ignoreErrors||[],nxe),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 Wi.error("Cannot extract message for event "+(0,Gr.jH)(r)),[]}return[]},n.prototype._getLastValidUrl=function(r){void 0===r&&(r=[]);for(var t,i=r.length-1;i>=0;i--){var o=r[i];if("<anonymous>"!==(null===(t=o)||void 0===t?void 0:t.filename))return o.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 Wi.error("Cannot extract url for event "+(0,Gr.jH)(r)),null}},n.id="InboundFilters",n}(),ixe=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){Qz=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 Qz.apply(i,r)}},n.id="FunctionToString",n}();function WL(){if(!("fetch"in(0,Gr.Rf)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}function GL(n){return n&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function axe(){if(!WL())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(n){return!1}}var nD,rD,iD,ko=(0,Gr.Rf)(),WS={},Kz={};function ih(n){!n||"string"!=typeof n.type||"function"!=typeof n.callback||(WS[n.type]=WS[n.type]||[],WS[n.type].push(n.callback),function(n){if(!Kz[n])switch(Kz[n]=!0,n){case"console":"console"in ko&&["debug","info","warn","error","log","assert"].forEach(function(n){n in ko.console&&hs(ko.console,n,function(r){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];ic("console",{args:t,level:n}),r&&Function.prototype.apply.call(r,ko.console,t)}})});break;case"dom":!function(){if("document"in ko){var n=ic.bind(null,"dom"),r=Xz(n,!0);ko.document.addEventListener("click",r,!1),ko.document.addEventListener("keypress",r,!1),["EventTarget","Node"].forEach(function(t){var i=ko[t]&&ko[t].prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(hs(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__||{},b=m[a]=m[a]||{refCount:0};if(!b.handler){var I=Xz(n);b.handler=I,o.call(this,a,I,u)}b.refCount+=1}catch(F){}return o.call(this,a,s,u)}}),hs(i,"removeEventListener",function(o){return function(a,s,u){if("click"===a||"keypress"==a)try{var m=this.__sentry_instrumentation_handlers__||{},b=m[a];b&&(b.refCount-=1,b.refCount<=0&&(o.call(this,a,b.handler,u),b.handler=void 0,delete m[a]),0===Object.keys(m).length&&delete this.__sentry_instrumentation_handlers__)}catch(I){}return o.call(this,a,s,u)}}))})}}();break;case"xhr":!function(){if("XMLHttpRequest"in ko){var n=[],r=[],t=XMLHttpRequest.prototype;hs(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:cy(o[0])?o[0].toUpperCase():o[0],url:o[1]},cy(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(F){}try{var b=n.indexOf(s);if(-1!==b){n.splice(b);var I=r.splice(b)[0];s.__sentry_xhr__&&void 0!==I[0]&&(s.__sentry_xhr__.body=I[0])}}catch(F){}ic("xhr",{args:o,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:s})}};return"onreadystatechange"in s&&"function"==typeof s.onreadystatechange?hs(s,"onreadystatechange",function(m){return function(){for(var b=[],I=0;I<arguments.length;I++)b[I]=arguments[I];return p(),m.apply(s,b)}}):s.addEventListener("readystatechange",p),i.apply(s,o)}}),hs(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),ic("xhr",{args:o,startTimestamp:Date.now(),xhr:this}),i.apply(this,o)}})}}();break;case"fetch":!function(){if(!WL())return!1;var n=(0,Gr.Rf)();if(GL(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=GL(i.contentWindow.fetch)),t.head.removeChild(i)}catch(o){Wi.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return r}()||hs(ko,"fetch",function(n){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var i={args:r,fetchData:{method:dxe(r),url:pxe(r)},startTimestamp:Date.now()};return ic("fetch",qn({},i)),n.apply(ko,r).then(function(o){return ic("fetch",qn(qn({},i),{endTimestamp:Date.now(),response:o})),o},function(o){throw ic("fetch",qn(qn({},i),{endTimestamp:Date.now(),error:o})),o})}});break;case"history":!function(){if(function(){var n=(0,Gr.Rf)(),r=n.chrome;return!(r&&r.app&&r.app.runtime||!("history"in n)||!n.history.pushState||!n.history.replaceState)}()){var n=ko.onpopstate;ko.onpopstate=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var o=ko.location.href,a=nD;if(nD=o,ic("history",{from:a,to:o}),n)try{return n.apply(this,t)}catch(s){}},hs(ko.history,"pushState",r),hs(ko.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,ic("history",{from:s,to:u})}return t.apply(this,i)}}}();break;case"error":YL=ko.onerror,ko.onerror=function(n,r,t,i,o){return ic("error",{column:i,error:o,line:t,msg:n,url:r}),!!YL&&YL.apply(this,arguments)};break;case"unhandledrejection":JL=ko.onunhandledrejection,ko.onunhandledrejection=function(n){return ic("unhandledrejection",n),!JL||JL.apply(this,arguments)};break;default:Wi.warn("unknown instrumentation type:",n)}}(n.type))}function ic(n,r){var t,i;if(n&&WS[n])try{for(var o=pv(WS[n]||[]),a=o.next();!a.done;a=o.next()){var s=a.value;try{s(r)}catch(u){Wi.error("Error while triggering instrumentation handler.\nType: "+n+"\nName: "+nh(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 dxe(n){return void 0===n&&(n=[]),"Request"in ko&&th(n[0],Request)&&n[0].method?String(n[0].method).toUpperCase():n[1]&&n[1].method?String(n[1].method).toUpperCase():"GET"}function pxe(n){return void 0===n&&(n=[]),"string"==typeof n[0]?n[0]:"Request"in ko&&th(n[0],Request)?n[0].url:String(n[0])}function Xz(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=ko.setTimeout(function(){rD=void 0},1e3)}}}var YL=null,JL=null,Cxe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,r){return n.__proto__=r,n}:function(n,r){for(var t in r)n.hasOwnProperty(t)||(n[t]=r[t]);return n}),Za=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,Cxe(o,i.prototype),o}return VS(r,n),r}(Error),xxe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,GS="Invalid Dsn",eW=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=xxe.exec(r);if(!t)throw new Za(GS);var i=Rz(t.slice(1),6),o=i[0],a=i[1],s=i[2],u=void 0===s?"":s,p=i[3],m=i[4],b=void 0===m?"":m,F="",G=i[5],Y=G.split("/");if(Y.length>1&&(F=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:F,projectId:G,port:b,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 Za(GS+": "+t+" missing")}),!this.projectId.match(/^\d+$/))throw new Za(GS+": Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new Za(GS+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new Za(GS+": Invalid port "+this.port)},n}(),tW=[];function nW(n){return n.reduce(function(r,t){return r.every(function(i){return t.name!==i.name})&&r.push(t),r},[])}var hv,Mxe=function(){function n(r,t){this._integrations={},this._numProcessing=0,this._backend=new r(t),this._options=t,t.dsn&&(this._dsn=new eW(t.dsn))}return n.prototype.captureException=function(r,t,i){var o=this,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},n.prototype.captureMessage=function(r,t,i,o){var a=this,s=i&&i.event_id,u=K2(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=t&&t.event_id;return this._process(this._captureEvent(r,t,i).then(function(a){o=a})),o},n.prototype.captureSession=function(r){this._isEnabled()?"string"!=typeof r.release?Wi.warn("Discarded session because of missing or non-string release"):(this._sendSession(r),r.update({init:!1})):Wi.warn("SDK not enabled, will not capture session.")},n.prototype.getDsn=function(){return this._dsn},n.prototype.getOptions=function(){return this._options},n.prototype.flush=function(r){var t=this;return this._isClientDoneProcessing(r).then(function(i){return t._getBackend().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&&wo(n.defaultIntegrations)||[],t=n.integrations,i=wo(nW(r));Array.isArray(t)?i=wo(i.filter(function(s){return t.every(function(u){return u.name!==s.name})}),nW(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,wo(i.splice(o.indexOf(a),1))),i}(n).forEach(function(t){r[t.name]=t,function(n){-1===tW.indexOf(n.name)&&(n.setupOnce($2,ms),tW.push(n.name),Wi.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 Wi.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=pv(u),m=p.next();!m.done;m=p.next()){var I=m.value.mechanism;if(I&&!1===I.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 F=r.status===yp.Ok;(F&&0===r.errors||F&&a)&&(r.update(qn(qn({},a&&{status:yp.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 ul(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=qn(qn({},r),{event_id:r.event_id||(i&&i.event_id?i.event_id:(0,Gr.DM)()),timestamp:r.timestamp||(0,qS.yW)()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var p=t;i&&i.captureContext&&(p=X2.clone(p).update(i.captureContext));var m=ul.resolve(u);return p&&(m=p.applyToEvent(u,i)),m.then(function(b){return"number"==typeof s&&s>0?o._normalizeEvent(b,s):b})},n.prototype._normalizeEvent=function(r,t){if(!r)return null;var i=qn(qn(qn(qn(qn({},r),r.breadcrumbs&&{breadcrumbs:r.breadcrumbs.map(function(s){return qn(qn({},s),s.data&&{data:py(s.data,t)})})}),r.user&&{user:py(r.user,t)}),r.contexts&&{contexts:py(r.contexts,t)}),r.extra&&{extra:py(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?py(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=jS(r.message,u));var p=r.exception&&r.exception.values&&r.exception.values[0];p&&p.value&&(p.value=jS(p.value,u));var m=r.request;m&&m.url&&(m.url=jS(m.url,u))},n.prototype._applyIntegrationsMetadata=function(r){var t=Object.keys(this._integrations);t.length>0&&(r.sdk=r.sdk||{},r.sdk.integrations=wo(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){Wi.error(o)})},n.prototype._processEvent=function(r,t,i){var o=this,a=this.getOptions(),s=a.beforeSend,u=a.sampleRate;if(!this._isEnabled())return ul.reject(new Za("SDK not enabled, will not capture event."));var p="transaction"===r.type;return!p&&"number"==typeof u&&Math.random()>u?ul.reject(new Za("Discarding event because it's not included in the random sample (sampling rate = "+u+")")):this._prepareEvent(r,i,t).then(function(m){if(null===m)throw new Za("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||p||!s)return m;var I=s(m,t);return o._ensureBeforeSendRv(I)}).then(function(m){if(null===m)throw new Za("`beforeSend` returned `null`, will not send event.");var b=i&&i.getSession&&i.getSession();return!p&&b&&o._updateSessionFromEvent(b,m),o._sendEvent(m),m}).then(null,function(m){throw m instanceof Za?m:(o.captureException(m,{data:{__sentry__:!0},originalException:m}),new Za("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+m))})},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(UL(r))return r.then(function(i){if(!dy(i)&&null!==i)throw new Za(t);return i},function(i){throw new Za("beforeSend rejected with "+i)});if(!dy(r)&&null!==r)throw new Za(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"})(hv||(hv={})),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}}(hv||(hv={}));var fd,Axe=function(){function n(){}return n.prototype.sendEvent=function(r){return ul.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:hv.Skipped})},n.prototype.close=function(r){return ul.resolve(!0)},n}(),Dxe=function(){function n(r){this._options=r,this._options.dsn||Wi.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return n.prototype.eventFromException=function(r,t){throw new Za("Backend has to implement `eventFromException` method")},n.prototype.eventFromMessage=function(r,t,i){throw new Za("Backend has to implement `eventFromMessage` method")},n.prototype.sendEvent=function(r){this._transport.sendEvent(r).then(null,function(t){Wi.error("Error while sending event: "+t)})},n.prototype.sendSession=function(r){this._transport.sendSession?this._transport.sendSession(r).then(null,function(t){Wi.error("Error while sending session: "+t)}):Wi.warn("Dropping session because custom transport doesn't implement sendSession")},n.prototype.getTransport=function(){return this._transport},n.prototype._setupTransport=function(){return new Axe},n}();(function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"})(fd||(fd={})),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}}}(fd||(fd={}));var Oxe=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Pxe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ixe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Rxe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Nxe=/\((\S*)(?::(\d+))(?::(\d+))\)/,Zxe=/Minified React error #\d+;/i;function YS(n){var r=null,t=0;n&&("number"==typeof n.framesToPop?t=n.framesToPop:Zxe.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:QL(n),name:n.name,stack:a}:null}(n))return rW(r,t)}catch(i){}try{if(r=function(n){if(!n||!n.stack)return null;for(var o,a,s,r=[],t=n.stack.split("\n"),u=0;u<t.length;++u){if(a=Oxe.exec(t[u])){var p=a[2]&&0===a[2].indexOf("native");a[2]&&0===a[2].indexOf("eval")&&(o=Nxe.exec(a[2]))&&(a[2]=o[1],a[3]=o[2],a[4]=o[3]);var m=a[2]&&0===a[2].indexOf("address at ")?a[2].substr("address at ".length):a[2],b=a[1]||"?",I=-1!==b.indexOf("safari-extension"),F=-1!==b.indexOf("safari-web-extension");(I||F)&&(b=-1!==b.indexOf("@")?b.split("@")[0]:"?",m=I?"safari-extension:"+m:"safari-web-extension:"+m),s={url:m,func:b,args:p?[a[2]]:[],line:a[3]?+a[3]:null,column:a[4]?+a[4]:null}}else if(a=Ixe.exec(t[u]))s={url:a[2],func:a[1]||"?",args:[],line:+a[3],column:a[4]?+a[4]:null};else{if(!(a=Pxe.exec(t[u])))continue;a[3]&&a[3].indexOf(" > eval")>-1&&(o=Rxe.exec(a[3]))?(a[1]=a[1]||"eval",a[3]=o[1],a[4]=o[2],a[5]=""):0===u&&!a[5]&&void 0!==n.columnNumber&&(r[0].column=n.columnNumber+1),s={url:a[3],func:a[1]||"?",args:a[2]?a[2].split(","):[],line:a[4]?+a[4]:null,column:a[5]?+a[5]:null}}!s.func&&s.line&&(s.func="?"),r.push(s)}return r.length?{message:QL(n),name:n.name,stack:r}:null}(n))return rW(r,t)}catch(i){}return{message:QL(n),name:n&&n.name,stack:[],failed:!0}}function rW(n,r){try{return qn(qn({},n),{stack:n.stack.slice(r)})}catch(t){return n}}function QL(n){var r=n&&n.message;return r?r.error&&"string"==typeof r.error.message?r.error.message:r:"No error message"}function iW(n){var r=KL(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 oW(n){return{exception:{values:[iW(n)]}}}function KL(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 XL(n,r,t){var i;if(void 0===t&&(t={}),Lz(n)&&n.error)return oW(YS(n=n.error));if(Fz(n)||function(n){return"[object DOMException]"===Object.prototype.toString.call(n)}(n)){var a=n,s=a.name||(Fz(a)?"DOMError":"DOMException"),u=a.message?s+": "+a.message:s;return i=$L(u,r,t),(0,Gr.Db)(i,u),"code"in a&&(i.tags=qn(qn({},i.tags),{"DOMException.code":""+a.code})),i}return Zz(n)?i=oW(YS(n)):dy(n)||BL(n)?(i=function(n,r,t){var i={exception:{values:[{type:BL(n)?n.constructor.name:t?"UnhandledRejection":"Error",value:"Non-Error "+(t?"promise rejection":"exception")+" captured with keys: "+QTe(n)}]},extra:{__serialized__:jz(n)}};if(r){var a=KL(YS(r).stack);i.stacktrace={frames:a}}return i}(n,r,t.rejection),(0,Gr.EG)(i,{synthetic:!0}),i):(i=$L(n,r,t),(0,Gr.Db)(i,""+n,void 0),(0,Gr.EG)(i,{synthetic:!0}),i)}function $L(n,r,t){void 0===t&&(t={});var i={message:n};if(t.attachStacktrace&&r){var a=KL(YS(r).stack);i.stacktrace={frames:a}}return i}function aW(n){if(n.metadata&&n.metadata.sdk){var r=n.metadata.sdk;return{name:r.name,version:r.version}}}function qxe(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=wo(n.sdk.integrations||[],r.integrations||[]),n.sdk.packages=wo(n.sdk.packages||[],r.packages||[])),n}function sW(n,r){var t=aW(r),o="aggregates"in n?"sessions":"session";return{body:JSON.stringify(qn(qn({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 lW(n,r){var t=aW(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,b=p.rate;0===Object.keys(u).length?delete n.debug_meta:n.debug_meta=u;var I={body:JSON.stringify(t?qxe(n,r.metadata.sdk):n),type:i,url:o?r.getEnvelopeEndpointWithUrlEncodedAuth():r.getStoreEndpointWithUrlEncodedAuth()};if(o){var F=JSON.stringify(qn(qn({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:b}]});I.body=F+"\n"+G+"\n"+I.body}return I}var cW=function(){function n(r,t,i){void 0===t&&(t={}),this.dsn=r,this._dsnObject=new eW(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}(),jxe=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 ul.reject(new Za("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 ul(function(i){var o=setTimeout(function(){r&&r>0&&i(!1)},r);ul.all(t._buffer).then(function(){clearTimeout(o),i(!0)}).then(null,function(){i(!0)})})},n}(),zxe={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},dW=function(){function n(r){this.options=r,this._buffer=new jxe(30),this._rateLimits={},this._api=new cW(r.dsn,r._metadata,r.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(r){throw new Za("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(r){return this._buffer.drain(r)},n.prototype._handleResponse=function(r){var t=r.requestType,i=r.response,o=r.headers,a=r.resolve,s=r.reject,u=hv.fromHttpCode(i.status);this._handleRateLimit(o)&&Wi.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),u!==hv.Success?s(i):a({status:u})},n.prototype._disabledUntil=function(r){return this._rateLimits[zxe[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=pv(u.trim().split(",")),b=m.next();!b.done;b=m.next()){var F=b.value.split(":",2),G=parseInt(F[0],10),Y=1e3*(isNaN(G)?60:G);try{for(var te=(o=void 0,pv(F[1].split(";"))),ce=te.next();!ce.done;ce=te.next())this._rateLimits[ce.value||"all"]=new Date(s+Y)}catch(lt){o={error:lt}}finally{try{ce&&!ce.done&&(a=te.return)&&a.call(te)}finally{if(o)throw o.error}}}}catch(lt){t={error:lt}}finally{try{b&&!b.done&&(i=m.return)&&i.call(m)}finally{if(t)throw t.error}}return!0}return!!p&&(this._rateLimits.all=new Date(s+(0,Gr.JY)(s,p)),!0)},n}(),Gxe=function(n){function r(t,i){void 0===i&&(i=function(){var n,r,t=(0,Gr.Rf)();if(GL(t.fetch))return t.fetch.bind(t);var i=t.document,o=t.fetch;if("function"==typeof(null===(n=i)||void 0===n?void 0:n.createElement))try{var a=i.createElement("iframe");a.hidden=!0,i.head.appendChild(a),(null===(r=a.contentWindow)||void 0===r?void 0:r.fetch)&&(o=a.contentWindow.fetch),i.head.removeChild(a)}catch(s){Wi.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",s)}return o.bind(t)}());var o=n.call(this,t)||this;return o._fetch=i,o}return VS(r,n),r.prototype.sendEvent=function(t){return this._sendRequest(lW(t,this._api),t)},r.prototype.sendSession=function(t){return this._sendRequest(sW(t,this._api),t)},r.prototype._sendRequest=function(t,i){var o=this;if(this._isRateLimited(t.type))return 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:axe()?"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 ul(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)})})},r}(dW),Yxe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return VS(r,n),r.prototype.sendEvent=function(t){return this._sendRequest(lW(t,this._api),t)},r.prototype.sendSession=function(t){return this._sendRequest(sW(t,this._api),t)},r.prototype._sendRequest=function(t,i){var o=this;return this._isRateLimited(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 ul(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)o.options.headers.hasOwnProperty(p)&&u.setRequestHeader(p,o.options.headers[p]);u.send(t.body)})})},r}(dW),Jxe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return VS(r,n),r.prototype.eventFromException=function(t,i){return function(n,r,t){var o=XL(r,t&&t.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return(0,Gr.EG)(o,{handled:!0,type:"generic"}),o.level=fd.Error,t&&t.event_id&&(o.event_id=t.event_id),ul.resolve(o)}(this._options,t,i)},r.prototype.eventFromMessage=function(t,i,o){return void 0===i&&(i=fd.Info),function(n,r,t,i){void 0===t&&(t=fd.Info);var a=$L(r,i&&i.syntheticException||void 0,{attachStacktrace:n.attachStacktrace});return a.level=t,i&&i.event_id&&(a.event_id=i.event_id),ul.resolve(a)}(this._options,t,i,o)},r.prototype._setupTransport=function(){if(!this._options.dsn)return n.prototype._setupTransport.call(this);var t=qn(qn({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):WL()?new Gxe(t):new Yxe(t)},r}(Dxe),eF=0;function pW(){return eF>0}function Qxe(){eF+=1,setTimeout(function(){eF-=1})}function hy(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 hy(m,r)});return n.handleEvent?n.handleEvent.apply(this,p):n.apply(this,p)}catch(m){throw Qxe(),exe(function(b){b.addEventProcessor(function(I){var F=qn({},I);return r.mechanism&&((0,Gr.Db)(F,void 0,void 0),(0,Gr.EG)(F,r.mechanism)),F.extra=qn(qn({},F.extra),{arguments:u}),F}),Jz(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 fW=function(){function n(r){this.name=n.id,this._options=qn({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},r)}return n.prototype.addSentryBreadcrumb=function(r){!this._options.sentry||ms().addBreadcrumb({category:"sentry."+("transaction"===r.type?"transaction":"event"),event_id:r.event_id,level:r.level,message:(0,Gr.jH)(r)},{event:r})},n.prototype.setupOnce=function(){var r=this;this._options.console&&ih({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._consoleBreadcrumb.apply(r,wo(i))},type:"console"}),this._options.dom&&ih({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._domBreadcrumb.apply(r,wo(i))},type:"dom"}),this._options.xhr&&ih({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._xhrBreadcrumb.apply(r,wo(i))},type:"xhr"}),this._options.fetch&&ih({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._fetchBreadcrumb.apply(r,wo(i))},type:"fetch"}),this._options.history&&ih({callback:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r._historyBreadcrumb.apply(r,wo(i))},type:"history"})},n.prototype._consoleBreadcrumb=function(r){var t={category:"console",data:{arguments:r.args,logger:"console"},level:fd.fromString(r.level),message:Vz(r.args," ")};if("assert"===r.level){if(!1!==r.args[0])return;t.message="Assertion failed: "+(Vz(r.args.slice(1)," ")||"console.assert"),t.data.arguments=r.args.slice(1)}ms().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=eD(r.event.target?r.event.target:r.event,i)}catch(o){t="<unknown>"}0!==t.length&&ms().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;ms().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?ms().addBreadcrumb({category:"fetch",data:r.fetchData,level:fd.Error,type:"http"},{data:r.error,input:r.args}):ms().addBreadcrumb({category:"fetch",data:qn(qn({},r.fetchData),{status_code:r.response.status}),type:"http"},{input:r.args,response:r.response}))},n.prototype._historyBreadcrumb=function(r){var t=(0,Gr.Rf)(),i=r.from,o=r.to,a=(0,Gr.en)(t.location.href),s=(0,Gr.en)(i),u=(0,Gr.en)(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),ms().addBreadcrumb({category:"navigation",data:{from:i,to:o}})},n.id="Breadcrumbs",n}(),Xxe=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.11.0"}],version:"6.11.0"},n.call(this,Jxe,t)||this}return VS(r,n),r.prototype.showReportDialog=function(t){if(void 0===t&&(t={}),(0,Gr.Rf)().document){if(!this._isEnabled())return void Wi.error("Trying to call showReportDialog with Sentry Client disabled");!function(n){if(void 0===n&&(n={}),n.eventId)if(n.dsn){var r=document.createElement("script");r.async=!0,r.src=new cW(n.dsn).getReportDialogEndpoint(n),n.onLoad&&(r.onload=n.onLoad),(document.head||document.body).appendChild(r)}else Wi.error("Missing dsn option in showReportDialog call");else Wi.error("Missing eventId option in showReportDialog call")}(qn(qn({},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(fW);i&&i.addSentryBreadcrumb(t),n.prototype._sendEvent.call(this,t)},r}(Mxe),$xe=["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"],ewe=function(){function n(r){this.name=n.id,this._options=qn({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},r)}return n.prototype.setupOnce=function(){var r=(0,Gr.Rf)();this._options.setTimeout&&hs(r,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&hs(r,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&hs(r,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in r&&hs(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:$xe).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]=hy(o,{mechanism:{data:{function:nh(r)},handled:!0,type:"instrument"}}),r.apply(this,t)}},n.prototype._wrapRAF=function(r){return function(t){return r.call(this,hy(t,{mechanism:{data:{function:"requestAnimationFrame",handler:nh(r)},handled:!0,type:"instrument"}}))}},n.prototype._wrapEventTarget=function(r){var t=(0,Gr.Rf)(),i=t[r]&&t[r].prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(hs(i,"addEventListener",function(o){return function(a,s,u){try{"function"==typeof s.handleEvent&&(s.handleEvent=hy(s.handleEvent.bind(s),{mechanism:{data:{function:"handleEvent",handler:nh(s),target:r},handled:!0,type:"instrument"}}))}catch(p){}return o.call(this,a,hy(s,{mechanism:{data:{function:"addEventListener",handler:nh(s),target:r},handled:!0,type:"instrument"}}),u)}}),hs(i,"removeEventListener",function(o){return function(a,s,u){var p,m=s;try{var b=null===(p=m)||void 0===p?void 0:p.__sentry_wrapped__;b&&o.call(this,a,b,u)}catch(I){}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]&&hs(o,s,function(u){var p={mechanism:{data:{function:s,handler:nh(u)},handled:!0,type:"instrument"}};return u.__sentry_original__&&(p.mechanism.data.handler=nh(u.__sentry_original__)),hy(u,p)})}),r.apply(this,t)}},n.id="TryCatch",n}(),twe=function(){function n(r){this.name=n.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=qn({onerror:!0,onunhandledrejection:!0},r)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(Wi.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(Wi.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},n.prototype._installGlobalOnErrorHandler=function(){var r=this;this._onErrorHandlerInstalled||(ih({callback:function(i){var o=i.error,a=ms(),s=a.getIntegration(n),u=o&&!0===o.__sentry_own_request__;if(s&&!pW()&&!u){var p=a.getClient(),m=void 0===o&&cy(i.msg)?r._eventFromIncompleteOnError(i.msg,i.url,i.line,i.column):r._enhanceEventWithInitialFrame(XL(o||i.msg,void 0,{attachStacktrace:p&&p.getOptions().attachStacktrace,rejection:!1}),i.url,i.line,i.column);(0,Gr.EG)(m,{handled:!1,type:"onerror"}),a.captureEvent(m,{originalException:o})}},type:"error"}),this._onErrorHandlerInstalled=!0)},n.prototype._installGlobalOnUnhandledRejectionHandler=function(){var r=this;this._onUnhandledRejectionHandlerInstalled||(ih({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(b){}var a=ms(),s=a.getIntegration(n),u=o&&!0===o.__sentry_own_request__;if(!s||pW()||u)return!0;var p=a.getClient(),m=K2(o)?r._eventFromRejectionWithPrimitive(o):XL(o,void 0,{attachStacktrace:p&&p.getOptions().attachStacktrace,rejection:!0});m.level=fd.Error,(0,Gr.EG)(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=Lz(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=cy(t)&&t.length>0?t:(0,Gr.l4)();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}(),iwe=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(){$2(function(r,t){var i=ms().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&&th(t.originalException,Error)))return r;var i=this._walkErrorTree(t.originalException,this._key);return r.exception.values=wo(i,r.exception.values),r},n.prototype._walkErrorTree=function(r,t,i){if(void 0===i&&(i=[]),!th(r[t],Error)||i.length+1>=this._limit)return i;var a=iW(YS(r[t]));return this._walkErrorTree(r[t],t,wo([a],i))},n.id="LinkedErrors",n}(),owe=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 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}(),my=(0,Gr.Rf)(),awe=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){$2(function(r){var t,i,o;if(ms().getIntegration(n)){if(!my.navigator&&!my.location&&!my.document)return r;var a=(null===(t=r.request)||void 0===t?void 0:t.url)||(null===(i=my.location)||void 0===i?void 0:i.href),s=(my.document||{}).referrer,u=(my.navigator||{}).userAgent,p=qn(qn(qn({},null===(o=r.request)||void 0===o?void 0:o.headers),s&&{Referer:s}),u&&{"User-Agent":u}),m=qn(qn({},a&&{url:a}),{headers:p});return qn(qn({},r),{request:m})}return r})},n.id="UserAgent",n}(),swe=[new rxe,new ixe,new ewe,new fW,new twe,new iwe,new owe,new awe];!function(n){if(void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=swe),void 0===n.release){var r=(0,Gr.Rf)();r.SENTRY_RELEASE&&r.SENTRY_RELEASE.id&&(n.release=r.SENTRY_RELEASE.id)}void 0===n.autoSessionTracking&&(n.autoSessionTracking=!0),function(n,r){var t;!0===r.debug&&Wi.enable();var i=ms();null===(t=i.getScope())||void 0===t||t.update(r.initialScope);var o=new n(r);i.bindClient(o)}(Xxe,n),n.autoSessionTracking&&function(){if(void 0!==(0,Gr.Rf)().document){var t=ms();"function"!=typeof t.startSession||"function"!=typeof t.captureSession||(t.startSession({ignoreDuration:!0}),t.captureSession(),ih({callback:function(o){var a=o.from;void 0===a||a===o.to||(t.startSession({ignoreDuration:!0}),t.captureSession())},type:"history"}))}else Wi.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}({dsn:"https://d8be3a98530f49eb90968ff396db326c@o19455.ingest.sentry.io/842726"});var pwe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return(0,Kn.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(rr);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 Vc.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";Jz(t)},n.\u0275fac=function(t){return new(t||n)(e.LFG(e.zs3))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}()),fwe=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}(),xwe=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:[[dn.uc,dn.BQ],dn.uc,dn.BQ]}),n}(),Awe=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}(),Fwe=[Zye,c2,Qq,Aae,xTe,EZ,Vn.lN,Zae,Zse,$le,GCe,Noe,dq,Xce,Tse,cse,tbe,hi.LD,uq,Nce,dle,xwe,uo.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:[[Awe,dn.BQ],dn.BQ]}),n}(),Lj,uTe],_W=function(){function n(r,t){r.events.subscribe(function(i){t.getStatisticsSettings()&&i instanceof Ym&&(gtag("set","page",i.url),gtag("send","pageview"))})}return n.\u0275fac=function(t){return new(t||n)(e.LFG(Dr),e.LFG(_p.g))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Bwe=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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Uwe=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(Zo.wh))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n}(),Hwe=function(){function n(r){this._googleAnalyticsService=r}return n.\u0275fac=function(t){return new(t||n)(e.LFG(_W))},n.\u0275mod=e.oAB({type:n,bootstrap:[OTe]}),n.\u0275inj=e.cJS({providers:[_p.g,{provide:e.qLn,useClass:pwe},Vne,xz,cd.Y,TS,zr,Q_,Xr,rc,ps,Zo.wh,W2,PL,rr,zf,EL,Kf.F,pa.G,LTe,yz,tc,Ij,fs,Zo.gc,p2,gp,NS,Bwe,mp,T2,Xu,C2,ad,nv,Dq,Aq,Mq,_2,y2,GZ,x2,Gf,S2,YZ,ev,wS,rv,qZ,z2.p,IL,ay,NL,wz,dz,L2,_L,Su,Hj,$u.X,Uwe,bL,pz,hj,Ku.f,_W,dd,ZL,Iz,B.Dx,Gj,kz],imports:[[B.b2,Vc.JF,ATe,ne.u5,ne.UX,ss.PW,bC,ZTe,gre,pre,r4,mE.ym,$g,Hk,mre,Fwe,sre.forRoot(),Xi.U8]]}),n}();e.B6R(Tz,[On,ne._Y,ne.JL,ne.F,Vn.KE,hr,ne.Fj,ne.JJ,ne.On,jl,BS,il,rl,ol,Yj,nl,al,W_,Mt.O5,Ra,pr,zl,Gl,Wl,Yl],[fwe]),(0,e.G48)(),B.q6().bootstrapModule(Hwe).then(function(n){var r=n.injector.get(e.z2F);(0,B.HJ)(r.components[0])}).catch(function(n){return console.log(n)})},50988:function(le,q,f){"use strict";function U(B,V){(null==V||V>B.length)&&(V=B.length);for(var Z=0,w=new Array(V);Z<V;Z++)w[Z]=B[Z];return w}f.d(q,{Z:function(){return U}})},10061:function(le,q,f){"use strict";function U(B){if(Array.isArray(B))return B}f.d(q,{Z:function(){return U}})},88009:function(le,q,f){"use strict";function U(B){if(void 0===B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}f.d(q,{Z:function(){return U}})},18967:function(le,q,f){"use strict";function U(B,V){if(!(B instanceof V))throw new TypeError("Cannot call a class as a function")}f.d(q,{Z:function(){return U}})},99740:function(le,q,f){"use strict";f.d(q,{Z:function(){return V}});var U=f(35470),B=f(1854);function V(Z,w,R){return(V=(0,B.Z)()?Reflect.construct:function(_,N,D){var O=[null];O.push.apply(O,N);var y=new(Function.bind.apply(_,O));return D&&(0,U.Z)(y,D.prototype),y}).apply(null,arguments)}},14105:function(le,q,f){"use strict";function U(V,Z){for(var w=0;w<Z.length;w++){var R=Z[w];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(V,R.key,R)}}function B(V,Z,w){return Z&&U(V.prototype,Z),w&&U(V,w),V}f.d(q,{Z:function(){return B}})},36683:function(le,q,f){"use strict";f.d(q,{Z:function(){return B}});var U=f(9087);function B(V,Z){var w="undefined"!=typeof Symbol&&V[Symbol.iterator]||V["@@iterator"];if(!w){if(Array.isArray(V)||(w=(0,U.Z)(V))||Z&&V&&"number"==typeof V.length){w&&(V=w);var R=0,C=function(){};return{s:C,n:function(){return R>=V.length?{done:!0}:{done:!1,value:V[R++]}},e:function(P){throw P},f:C}}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,N=!1;return{s:function(){w=w.call(V)},n:function(){var P=w.next();return _=P.done,P},e:function(P){N=!0,D=P},f:function(){try{!_&&null!=w.return&&w.return()}finally{if(N)throw D}}}}},97154:function(le,q,f){"use strict";f.d(q,{Z:function(){return Z}});var U=f(89200),B=f(1854),V=f(70455);function Z(w){var R=(0,B.Z)();return function(){var N,_=(0,U.Z)(w);if(R){var D=(0,U.Z)(this).constructor;N=Reflect.construct(_,arguments,D)}else N=_.apply(this,arguments);return(0,V.Z)(this,N)}}},42515:function(le,q,f){"use strict";function U(B,V,Z){return V in B?Object.defineProperty(B,V,{value:Z,enumerable:!0,configurable:!0,writable:!0}):B[V]=Z,B}f.d(q,{Z:function(){return U}})},20901:function(le,q,f){"use strict";f.d(q,{Z:function(){return V}});var U=f(89200);function V(Z,w,R){return(V="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(_,N,D){var O=function(Z,w){for(;!Object.prototype.hasOwnProperty.call(Z,w)&&null!==(Z=(0,U.Z)(Z)););return Z}(_,N);if(O){var P=Object.getOwnPropertyDescriptor(O,N);return P.get?P.get.call(D):P.value}})(Z,w,R||Z)}},89200:function(le,q,f){"use strict";function U(B){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)})(B)}f.d(q,{Z:function(){return U}})},10509:function(le,q,f){"use strict";f.d(q,{Z:function(){return B}});var U=f(35470);function B(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,U.Z)(V,Z)}},1854:function(le,q,f){"use strict";function U(){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(B){return!1}}f.d(q,{Z:function(){return U}})},16373:function(le,q,f){"use strict";function U(B){if("undefined"!=typeof Symbol&&null!=B[Symbol.iterator]||null!=B["@@iterator"])return Array.from(B)}f.d(q,{Z:function(){return U}})},12486:function(le,q,f){"use strict";function U(){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 U}})},70455:function(le,q,f){"use strict";function U(Z){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(Z)}f.d(q,{Z:function(){return V}});var B=f(88009);function V(Z,w){return!w||"object"!==U(w)&&"function"!=typeof w?(0,B.Z)(Z):w}},35470:function(le,q,f){"use strict";function U(B,V){return(U=Object.setPrototypeOf||function(w,R){return w.__proto__=R,w})(B,V)}f.d(q,{Z:function(){return U}})},27235:function(le,q,f){"use strict";f.d(q,{Z:function(){return w}});var U=f(10061),V=f(9087),Z=f(12486);function w(R,C){return(0,U.Z)(R)||function(R,C){var _=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=_){var P,y,N=[],D=!0,O=!1;try{for(_=_.call(R);!(D=(P=_.next()).done)&&(N.push(P.value),!C||N.length!==C);D=!0);}catch(g){O=!0,y=g}finally{try{!D&&null!=_.return&&_.return()}finally{if(O)throw y}}return N}}(R,C)||(0,V.Z)(R,C)||(0,Z.Z)()}},99890:function(le,q,f){"use strict";f.d(q,{Z:function(){return w}});var U=f(10061),B=f(16373),V=f(9087),Z=f(12486);function w(R){return(0,U.Z)(R)||(0,B.Z)(R)||(0,V.Z)(R)||(0,Z.Z)()}},10629:function(le,q,f){"use strict";f.d(q,{Z:function(){return R}});var U=f(50988),V=f(16373),Z=f(9087);function R(C){return function(C){if(Array.isArray(C))return(0,U.Z)(C)}(C)||(0,V.Z)(C)||(0,Z.Z)(C)||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(le,q,f){"use strict";f.d(q,{Z:function(){return B}});var U=f(50988);function B(V,Z){if(V){if("string"==typeof V)return(0,U.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,U.Z)(V,Z)}}},44900:function(le){"use strict";le.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(le){"use strict";le.exports={version:"1.1.3"}},94518:function(le){"use strict";le.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(le){"use strict";le.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(le){"use strict";le.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(le){"use strict";le.exports={i8:"2.2.24"}}},function(le){le(le.s=75161)}]);