(self.webpackChunkbusiness=self.webpackChunkbusiness||[]).push([[179],{5876:(Te,I,V)=>{const _=V(532),x=V(7554),C=V(179),D=V(1036);function M(A,P,B,ce,X){const ne=[].slice.call(arguments,1),Q=ne.length,fe="function"==typeof ne[Q-1];if(!fe&&!_())throw new Error("Callback required as last argument");if(!fe){if(Q<1)throw new Error("Too few arguments provided");return 1===Q?(B=P,P=ce=void 0):2===Q&&!P.getContext&&(ce=B,B=P,P=void 0),new Promise(function(j,J){try{const te=x.create(B,ce);j(A(te,P,ce))}catch(te){J(te)}})}if(Q<2)throw new Error("Too few arguments provided");2===Q?(X=B,B=P,P=ce=void 0):3===Q&&(P.getContext&&typeof X>"u"?(X=ce,ce=void 0):(X=ce,ce=B,B=P,P=void 0));try{const j=x.create(B,ce);X(null,A(j,P,ce))}catch(j){X(j)}}I.rT=M.bind(null,C.render),I.hz=M.bind(null,C.renderToDataURL),I.toString=M.bind(null,function(A,P,B){return D.render(A,B)})},532:Te=>{Te.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},3012:(Te,I,V)=>{const b=V(4860).getSymbolSize;I.getRowColCoords=function(x){if(1===x)return[];const C=Math.floor(x/7)+2,D=b(x),M=145===D?26:2*Math.ceil((D-13)/(2*C-2)),A=[D-7];for(let P=1;P{const b=V(6906),_=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x(C){this.mode=b.ALPHANUMERIC,this.data=C}x.getBitsLength=function(D){return 11*Math.floor(D/2)+D%2*6},x.prototype.getLength=function(){return this.data.length},x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)},x.prototype.write=function(D){let M;for(M=0;M+2<=this.data.length;M+=2){let A=45*_.indexOf(this.data[M]);A+=_.indexOf(this.data[M+1]),D.put(A,11)}this.data.length%2&&D.put(_.indexOf(this.data[M]),6)},Te.exports=x},3044:Te=>{function I(){this.buffer=[],this.length=0}I.prototype={get:function(V){const b=Math.floor(V/8);return 1==(this.buffer[b]>>>7-V%8&1)},put:function(V,b){for(let _=0;_>>b-_-1&1))},getLengthInBits:function(){return this.length},putBit:function(V){const b=Math.floor(this.length/8);this.buffer.length<=b&&this.buffer.push(0),V&&(this.buffer[b]|=128>>>this.length%8),this.length++}},Te.exports=I},1973:Te=>{function I(V){if(!V||V<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=V,this.data=new Uint8Array(V*V),this.reservedBit=new Uint8Array(V*V)}I.prototype.set=function(V,b,_,x){const C=V*this.size+b;this.data[C]=_,x&&(this.reservedBit[C]=!0)},I.prototype.get=function(V,b){return this.data[V*this.size+b]},I.prototype.xor=function(V,b,_){this.data[V*this.size+b]^=_},I.prototype.isReserved=function(V,b){return this.reservedBit[V*this.size+b]},Te.exports=I},1824:(Te,I,V)=>{const b=V(8419),_=V(6906);function x(C){this.mode=_.BYTE,this.data=new Uint8Array(b(C))}x.getBitsLength=function(D){return 8*D},x.prototype.getLength=function(){return this.data.length},x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)},x.prototype.write=function(C){for(let D=0,M=this.data.length;D{const b=V(9020),_=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],x=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];I.getBlocksCount=function(D,M){switch(M){case b.L:return _[4*(D-1)+0];case b.M:return _[4*(D-1)+1];case b.Q:return _[4*(D-1)+2];case b.H:return _[4*(D-1)+3];default:return}},I.getTotalCodewordsCount=function(D,M){switch(M){case b.L:return x[4*(D-1)+0];case b.M:return x[4*(D-1)+1];case b.Q:return x[4*(D-1)+2];case b.H:return x[4*(D-1)+3];default:return}}},9020:(Te,I)=>{I.L={bit:1},I.M={bit:0},I.Q={bit:3},I.H={bit:2},I.isValid=function(_){return _&&typeof _.bit<"u"&&_.bit>=0&&_.bit<4},I.from=function(_,x){if(I.isValid(_))return _;try{return function V(b){if("string"!=typeof b)throw new Error("Param is not a string");switch(b.toLowerCase()){case"l":case"low":return I.L;case"m":case"medium":return I.M;case"q":case"quartile":return I.Q;case"h":case"high":return I.H;default:throw new Error("Unknown EC Level: "+b)}}(_)}catch{return x}}},9172:(Te,I,V)=>{const b=V(4860).getSymbolSize;I.getPositions=function(C){const D=b(C);return[[0,0],[D-7,0],[0,D-7]]}},611:(Te,I,V)=>{const b=V(4860),C=b.getBCHDigit(1335);I.getEncodedBits=function(M,A){const P=M.bit<<3|A;let B=P<<10;for(;b.getBCHDigit(B)-C>=0;)B^=1335<{const V=new Uint8Array(512),b=new Uint8Array(256);(function(){let x=1;for(let C=0;C<255;C++)V[C]=x,b[x]=C,x<<=1,256&x&&(x^=285);for(let C=255;C<512;C++)V[C]=V[C-255]})(),I.log=function(x){if(x<1)throw new Error("log("+x+")");return b[x]},I.exp=function(x){return V[x]},I.mul=function(x,C){return 0===x||0===C?0:V[b[x]+b[C]]}},8043:(Te,I,V)=>{const b=V(6906),_=V(4860);function x(C){this.mode=b.KANJI,this.data=C}x.getBitsLength=function(D){return 13*D},x.prototype.getLength=function(){return this.data.length},x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)},x.prototype.write=function(C){let D;for(D=0;D=33088&&M<=40956)M-=33088;else{if(!(M>=57408&&M<=60351))throw new Error("Invalid SJIS character: "+this.data[D]+"\nMake sure your charset is UTF-8");M-=49472}M=192*(M>>>8&255)+(255&M),C.put(M,13)}},Te.exports=x},7135:(Te,I)=>{I.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function b(_,x,C){switch(_){case I.Patterns.PATTERN000:return(x+C)%2==0;case I.Patterns.PATTERN001:return x%2==0;case I.Patterns.PATTERN010:return C%3==0;case I.Patterns.PATTERN011:return(x+C)%3==0;case I.Patterns.PATTERN100:return(Math.floor(x/2)+Math.floor(C/3))%2==0;case I.Patterns.PATTERN101:return x*C%2+x*C%3==0;case I.Patterns.PATTERN110:return(x*C%2+x*C%3)%2==0;case I.Patterns.PATTERN111:return(x*C%3+(x+C)%2)%2==0;default:throw new Error("bad maskPattern:"+_)}}I.isValid=function(x){return null!=x&&""!==x&&!isNaN(x)&&x>=0&&x<=7},I.from=function(x){return I.isValid(x)?parseInt(x,10):void 0},I.getPenaltyN1=function(x){const C=x.size;let D=0,M=0,A=0,P=null,B=null;for(let ce=0;ce=5&&(D+=M-5+3),P=ne,M=1),ne=x.get(X,ce),ne===B?A++:(A>=5&&(D+=A-5+3),B=ne,A=1)}M>=5&&(D+=M-5+3),A>=5&&(D+=A-5+3)}return D},I.getPenaltyN2=function(x){const C=x.size;let D=0;for(let M=0;M=10&&(1488===M||93===M)&&D++,A=A<<1&2047|x.get(B,P),B>=10&&(1488===A||93===A)&&D++}return 40*D},I.getPenaltyN4=function(x){let C=0;const D=x.data.length;for(let A=0;A{const b=V(2316),_=V(4677);I.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},I.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},I.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},I.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},I.MIXED={bit:-1},I.getCharCountIndicator=function(D,M){if(!D.ccBits)throw new Error("Invalid mode: "+D);if(!b.isValid(M))throw new Error("Invalid version: "+M);return M>=1&&M<10?D.ccBits[0]:M<27?D.ccBits[1]:D.ccBits[2]},I.getBestModeForData=function(D){return _.testNumeric(D)?I.NUMERIC:_.testAlphanumeric(D)?I.ALPHANUMERIC:_.testKanji(D)?I.KANJI:I.BYTE},I.toString=function(D){if(D&&D.id)return D.id;throw new Error("Invalid mode")},I.isValid=function(D){return D&&D.bit&&D.ccBits},I.from=function(D,M){if(I.isValid(D))return D;try{return function x(C){if("string"!=typeof C)throw new Error("Param is not a string");switch(C.toLowerCase()){case"numeric":return I.NUMERIC;case"alphanumeric":return I.ALPHANUMERIC;case"kanji":return I.KANJI;case"byte":return I.BYTE;default:throw new Error("Unknown mode: "+C)}}(D)}catch{return M}}},6002:(Te,I,V)=>{const b=V(6906);function _(x){this.mode=b.NUMERIC,this.data=x.toString()}_.getBitsLength=function(C){return 10*Math.floor(C/3)+(C%3?C%3*3+1:0)},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(C){let D,M,A;for(D=0;D+3<=this.data.length;D+=3)M=this.data.substr(D,3),A=parseInt(M,10),C.put(A,10);const P=this.data.length-D;P>0&&(M=this.data.substr(D),A=parseInt(M,10),C.put(A,3*P+1))},Te.exports=_},7793:(Te,I,V)=>{const b=V(7794);I.mul=function(x,C){const D=new Uint8Array(x.length+C.length-1);for(let M=0;M=0;){const M=D[0];for(let P=0;P{const b=V(4860),_=V(9020),x=V(3044),C=V(1973),D=V(3012),M=V(9172),A=V(7135),P=V(6194),B=V(8098),ce=V(6602),X=V(611),ne=V(6906),Q=V(9465);function K(G,re,ae){const Me=G.size,De=X.getEncodedBits(re,ae);let ye,xe;for(ye=0;ye<15;ye++)xe=1==(De>>ye&1),G.set(ye<6?ye:ye<8?ye+1:Me-15+ye,8,xe,!0),G.set(8,ye<8?Me-ye-1:ye<9?15-ye-1+1:15-ye-1,xe,!0);G.set(Me-8,8,1,!0)}function q(G,re,ae,Me){let De;if(Array.isArray(G))De=Q.fromArray(G);else{if("string"!=typeof G)throw new Error("Invalid data");{let ie=re;if(!ie){const S=Q.rawSplit(G);ie=ce.getBestVersionForData(S,ae)}De=Q.fromString(G,ie||40)}}const ye=ce.getBestVersionForData(De,ae);if(!ye)throw new Error("The amount of data is too big to be stored in a QR Code");if(re){if(re=0&&ve<=6&&(0===de||6===de)||de>=0&&de<=6&&(0===ve||6===ve)||ve>=2&&ve<=4&&de>=2&&de<=4,!0)}}(de,re),function j(G){const re=G.size;for(let ae=8;ae=7&&function te(G,re){const ae=G.size,Me=ce.getEncodedBits(re);let De,ye,xe;for(let ve=0;ve<18;ve++)De=Math.floor(ve/3),ye=ve%3+ae-8-3,xe=1==(Me>>ve&1),G.set(De,ye,xe,!0),G.set(ye,De,xe,!0)}(de,re),function O(G,re){const ae=G.size;let Me=-1,De=ae-1,ye=7,xe=0;for(let ve=ae-1;ve>0;ve-=2)for(6===ve&&ve--;;){for(let de=0;de<2;de++)if(!G.isReserved(De,ve-de)){let ie=!1;xe>>ye&1)),G.set(De,ve-de,ie),ye--,-1===ye&&(xe++,ye=7)}if(De+=Me,De<0||ae<=De){De-=Me,Me=-Me;break}}}(de,xe),isNaN(Me)&&(Me=A.getBestMask(de,K.bind(null,de,ae))),A.applyMask(Me,de),K(de,ae,Me),{modules:de,version:re,errorCorrectionLevel:ae,maskPattern:Me,segments:De}}I.create=function(re,ae){if(typeof re>"u"||""===re)throw new Error("No input text");let De,ye,Me=_.M;return typeof ae<"u"&&(Me=_.from(ae.errorCorrectionLevel,_.M),De=ce.from(ae.version),ye=A.from(ae.maskPattern),ae.toSJISFunc&&b.setToSJISFunction(ae.toSJISFunc)),q(re,De,Me,ye)}},8098:(Te,I,V)=>{const b=V(7793);function _(x){this.genPoly=void 0,this.degree=x,this.degree&&this.initialize(this.degree)}_.prototype.initialize=function(C){this.degree=C,this.genPoly=b.generateECPolynomial(this.degree)},_.prototype.encode=function(C){if(!this.genPoly)throw new Error("Encoder not initialized");const D=new Uint8Array(C.length+this.degree);D.set(C);const M=b.mod(D,this.genPoly),A=this.degree-M.length;if(A>0){const P=new Uint8Array(this.degree);return P.set(M,A),P}return M},Te.exports=_},4677:(Te,I)=>{const V="[0-9]+";let _="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";_=_.replace(/u/g,"\\u");const x="(?:(?![A-Z0-9 $%*+\\-./:]|"+_+")(?:.|[\r\n]))+";I.KANJI=new RegExp(_,"g"),I.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),I.BYTE=new RegExp(x,"g"),I.NUMERIC=new RegExp(V,"g"),I.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const C=new RegExp("^"+_+"$"),D=new RegExp("^"+V+"$"),M=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");I.testKanji=function(P){return C.test(P)},I.testNumeric=function(P){return D.test(P)},I.testAlphanumeric=function(P){return M.test(P)}},9465:(Te,I,V)=>{const b=V(6906),_=V(6002),x=V(812),C=V(1824),D=V(8043),M=V(4677),A=V(4860),P=V(4901);function B(te){return unescape(encodeURIComponent(te)).length}function ce(te,K,O){const F=[];let Y;for(;null!==(Y=te.exec(O));)F.push({data:Y[0],index:Y.index,mode:K,length:Y[0].length});return F}function X(te){const K=ce(M.NUMERIC,b.NUMERIC,te),O=ce(M.ALPHANUMERIC,b.ALPHANUMERIC,te);let F,Y;return A.isKanjiModeEnabled()?(F=ce(M.BYTE,b.BYTE,te),Y=ce(M.KANJI,b.KANJI,te)):(F=ce(M.BYTE_KANJI,b.BYTE,te),Y=[]),K.concat(O,F,Y).sort(function(G,re){return G.index-re.index}).map(function(G){return{data:G.data,mode:G.mode,length:G.length}})}function ne(te,K){switch(K){case b.NUMERIC:return _.getBitsLength(te);case b.ALPHANUMERIC:return x.getBitsLength(te);case b.KANJI:return D.getBitsLength(te);case b.BYTE:return C.getBitsLength(te)}}function J(te,K){let O;const F=b.getBestModeForData(te);if(O=b.from(K,F),O!==b.BYTE&&O.bit=0?K[K.length-1]:null;return F&&F.mode===O.mode?(K[K.length-1].data+=O.data,K):(K.push(O),K)},[])}(re))},I.rawSplit=function(K){return I.fromArray(X(K,A.isKanjiModeEnabled()))}},4860:(Te,I)=>{let V;const b=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];I.getSymbolSize=function(x){if(!x)throw new Error('"version" cannot be null or undefined');if(x<1||x>40)throw new Error('"version" should be in range from 1 to 40');return 4*x+17},I.getSymbolTotalCodewords=function(x){return b[x]},I.getBCHDigit=function(_){let x=0;for(;0!==_;)x++,_>>>=1;return x},I.setToSJISFunction=function(x){if("function"!=typeof x)throw new Error('"toSJISFunc" is not a valid function.');V=x},I.isKanjiModeEnabled=function(){return typeof V<"u"},I.toSJIS=function(x){return V(x)}},2316:(Te,I)=>{I.isValid=function(b){return!isNaN(b)&&b>=1&&b<=40}},6602:(Te,I,V)=>{const b=V(4860),_=V(6194),x=V(9020),C=V(6906),D=V(2316),A=b.getBCHDigit(7973);function B(ne,Q){return C.getCharCountIndicator(ne,Q)+4}function ce(ne,Q){let fe=0;return ne.forEach(function(j){fe+=B(j.mode,Q)+j.getBitsLength()}),fe}I.from=function(Q,fe){return D.isValid(Q)?parseInt(Q,10):fe},I.getCapacity=function(Q,fe,j){if(!D.isValid(Q))throw new Error("Invalid QR Code version");typeof j>"u"&&(j=C.BYTE);const K=8*(b.getSymbolTotalCodewords(Q)-_.getTotalCodewordsCount(Q,fe));if(j===C.MIXED)return K;const O=K-B(j,Q);switch(j){case C.NUMERIC:return Math.floor(O/10*3);case C.ALPHANUMERIC:return Math.floor(O/11*2);case C.KANJI:return Math.floor(O/13);default:return Math.floor(O/8)}},I.getBestVersionForData=function(Q,fe){let j;const J=x.from(fe,x.M);if(Array.isArray(Q)){if(Q.length>1)return function X(ne,Q){for(let fe=1;fe<=40;fe++)if(ce(ne,fe)<=I.getCapacity(fe,Q,C.MIXED))return fe}(Q,J);if(0===Q.length)return 1;j=Q[0]}else j=Q;return function P(ne,Q,fe){for(let j=1;j<=40;j++)if(Q<=I.getCapacity(j,fe,ne))return j}(j.mode,j.getLength(),J)},I.getEncodedBits=function(Q){if(!D.isValid(Q)||Q<7)throw new Error("Invalid QR Code version");let fe=Q<<12;for(;b.getBCHDigit(fe)-A>=0;)fe^=7973<{const b=V(714);I.render=function(D,M,A){let P=A,B=M;typeof P>"u"&&(!M||!M.getContext)&&(P=M,M=void 0),M||(B=function x(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),P=b.getOptions(P);const ce=b.getImageWidth(D.modules.size,P),X=B.getContext("2d"),ne=X.createImageData(ce,ce);return b.qrToImageData(ne.data,D,P),function _(C,D,M){C.clearRect(0,0,D.width,D.height),D.style||(D.style={}),D.height=M,D.width=M,D.style.height=M+"px",D.style.width=M+"px"}(X,B,ce),X.putImageData(ne,0,0),B},I.renderToDataURL=function(D,M,A){let P=A;return typeof P>"u"&&(!M||!M.getContext)&&(P=M,M=void 0),P||(P={}),I.render(D,M,P).toDataURL(P.type||"image/png",(P.rendererOpts||{}).quality)}},1036:(Te,I,V)=>{const b=V(714);function _(D,M){const A=D.a/255,P=M+'="'+D.hex+'"';return A<1?P+" "+M+'-opacity="'+A.toFixed(2).slice(1)+'"':P}function x(D,M,A){let P=D+M;return typeof A<"u"&&(P+=" "+A),P}I.render=function(M,A,P){const B=b.getOptions(A),ce=M.modules.size,X=M.modules.data,ne=ce+2*B.margin,Q=B.color.light.a?"':"",fe="0&&Q>0&&D[ne-1]||(P+=ce?x("M",Q+A,.5+fe+A):x("m",B,0),B=0,ce=!1),Q+1',te=''+Q+fe+"\n";return"function"==typeof P&&P(null,te),te}},714:(Te,I)=>{function V(b){if("number"==typeof b&&(b=b.toString()),"string"!=typeof b)throw new Error("Color should be defined as hex string");let _=b.slice().replace("#","").split("");if(_.length<3||5===_.length||_.length>8)throw new Error("Invalid hex color: "+b);(3===_.length||4===_.length)&&(_=Array.prototype.concat.apply([],_.map(function(C){return[C,C]}))),6===_.length&&_.push("F","F");const x=parseInt(_.join(""),16);return{r:x>>24&255,g:x>>16&255,b:x>>8&255,a:255&x,hex:"#"+_.slice(0,6).join("")}}I.getOptions=function(_){_||(_={}),_.color||(_.color={});const C=_.width&&_.width>=21?_.width:void 0;return{width:C,scale:C?4:_.scale||4,margin:typeof _.margin>"u"||null===_.margin||_.margin<0?4:_.margin,color:{dark:V(_.color.dark||"#000000ff"),light:V(_.color.light||"#ffffffff")},type:_.type,rendererOpts:_.rendererOpts||{}}},I.getScale=function(_,x){return x.width&&x.width>=_+2*x.margin?x.width/(_+2*x.margin):x.scale},I.getImageWidth=function(_,x){const C=I.getScale(_,x);return Math.floor((_+2*x.margin)*C)},I.qrToImageData=function(_,x,C){const D=x.modules.size,M=x.modules.data,A=I.getScale(D,C),P=Math.floor((D+2*C.margin)*A),B=C.margin*A,ce=[C.color.light,C.color.dark];for(let X=0;X=B&&ne>=B&&X{"use strict";function b(i){return"function"==typeof i}function _(i){const e=i(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const x=_(i=>function(e){i(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function C(i,t){if(i){const e=i.indexOf(t);0<=e&&i.splice(e,1)}}class D{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:n}=this;if(b(n))try{n()}catch(o){t=o instanceof x?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{P(o)}catch(a){t=t??[],a instanceof x?t=[...t,...a.errors]:t.push(a)}}if(t)throw new x(t)}}add(t){var e;if(t&&t!==this)if(this.closed)P(t);else{if(t instanceof D){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&C(e,t)}remove(t){const{_finalizers:e}=this;e&&C(e,t),t instanceof D&&t._removeParent(this)}}D.EMPTY=(()=>{const i=new D;return i.closed=!0,i})();const M=D.EMPTY;function A(i){return i instanceof D||i&&"closed"in i&&b(i.remove)&&b(i.add)&&b(i.unsubscribe)}function P(i){b(i)?i():i.unsubscribe()}const B={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ce={setTimeout(i,t,...e){const{delegate:n}=ce;return n?.setTimeout?n.setTimeout(i,t,...e):setTimeout(i,t,...e)},clearTimeout(i){const{delegate:t}=ce;return(t?.clearTimeout||clearTimeout)(i)},delegate:void 0};function X(i){ce.setTimeout(()=>{const{onUnhandledError:t}=B;if(!t)throw i;t(i)})}function ne(){}const Q=J("C",void 0,void 0);function J(i,t,e){return{kind:i,value:t,error:e}}let te=null;function K(i){if(B.useDeprecatedSynchronousErrorHandling){const t=!te;if(t&&(te={errorThrown:!1,error:null}),i(),t){const{errorThrown:e,error:n}=te;if(te=null,e)throw n}}else i()}class F extends D{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,A(t)&&t.add(this)):this.destination=ye}static create(t,e,n){return new re(t,e,n)}next(t){this.isStopped?De(function j(i){return J("N",i,void 0)}(t),this):this._next(t)}error(t){this.isStopped?De(function fe(i){return J("E",void 0,i)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?De(Q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Y=Function.prototype.bind;function q(i,t){return Y.call(i,t)}class G{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(n){ae(n)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(n){ae(n)}else ae(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){ae(e)}}}class re extends F{constructor(t,e,n){let r;if(super(),b(t)||!t)r={next:t??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&B.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&q(t.next,o),error:t.error&&q(t.error,o),complete:t.complete&&q(t.complete,o)}):r=t}this.destination=new G(r)}}function ae(i){B.useDeprecatedSynchronousErrorHandling?function O(i){B.useDeprecatedSynchronousErrorHandling&&te&&(te.errorThrown=!0,te.error=i)}(i):X(i)}function De(i,t){const{onStoppedNotification:e}=B;e&&ce.setTimeout(()=>e(i,t))}const ye={closed:!0,next:ne,error:function Me(i){throw i},complete:ne},xe="function"==typeof Symbol&&Symbol.observable||"@@observable";function ve(i){return i}function ie(i){return 0===i.length?ve:1===i.length?i[0]:function(e){return i.reduce((n,r)=>r(n),e)}}let S=(()=>{class i{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new i;return n.source=this,n.operator=e,n}subscribe(e,n,r){const o=function le(i){return i&&i instanceof F||function ue(i){return i&&b(i.next)&&b(i.error)&&b(i.complete)}(i)&&A(i)}(e)?e:new re(e,n,r);return K(()=>{const{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=se(n))((r,o)=>{const a=new re({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[xe](){return this}pipe(...e){return ie(e)(this)}toPromise(e){return new(e=se(e))((n,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>n(o))})}}return i.create=t=>new i(t),i})();function se(i){var t;return null!==(t=i??B.Promise)&&void 0!==t?t:Promise}const me=_(i=>function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let be=(()=>{class i extends S{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new Ie(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new me}next(e){K(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){K(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){K(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:n,isStopped:r,observers:o}=this;return n||r?M:(this.currentObservers=null,o.push(e),new D(()=>{this.currentObservers=null,C(o,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:r,isStopped:o}=this;n?e.error(r):o&&e.complete()}asObservable(){const e=new S;return e.source=this,e}}return i.create=(t,e)=>new Ie(t,e),i})();class Ie extends be{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)}error(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:M}}function Se(i){return b(i?.lift)}function Ne(i){return t=>{if(Se(t))return t.lift(function(e){try{return i(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ye(i,t,e,n,r){return new Xe(i,t,e,n,r)}class Xe extends F{constructor(t,e,n,r,o,a){super(t),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){t.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){t.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Ve(i,t){return Ne((e,n)=>{let r=0;e.subscribe(Ye(n,o=>{n.next(i.call(t,o,r++))}))})}function _n(i){return this instanceof _n?(this.v=i,this):new _n(i)}function ti(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=e.apply(i,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(k){n[k]&&(r[k]=function(E){return new Promise(function(W,ee){o.push([k,E,W,ee])>1||s(k,E)})})}function s(k,E){try{!function l(k){k.value instanceof _n?Promise.resolve(k.value.v).then(d,f):y(o[0][2],k)}(n[k](E))}catch(W){y(o[0][3],W)}}function d(k){s("next",k)}function f(k){s("throw",k)}function y(k,E){k(E),o.shift(),o.length&&s(o[0][0],o[0][1])}}function Yt(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=i[Symbol.asyncIterator];return t?t.call(i):(i=function rt(i){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&i[t],n=0;if(e)return e.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=i[o]&&function(a){return new Promise(function(s,l){!function r(o,a,s,l){Promise.resolve(l).then(function(d){o({value:d,done:s})},a)}(s,l,(a=i[o](a)).done,a.value)})}}}const or=i=>i&&"number"==typeof i.length&&"function"!=typeof i;function pr(i){return b(i?.then)}function Xr(i){return b(i[xe])}function He(i){return Symbol.asyncIterator&&b(i?.[Symbol.asyncIterator])}function Oe(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const bt=function je(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function nn(i){return b(i?.[bt])}function Dn(i){return ti(this,arguments,function*(){const e=i.getReader();try{for(;;){const{value:n,done:r}=yield _n(e.read());if(r)return yield _n(void 0);yield yield _n(n)}}finally{e.releaseLock()}})}function xn(i){return b(i?.getReader)}function kn(i){if(i instanceof S)return i;if(null!=i){if(Xr(i))return function So(i){return new S(t=>{const e=i[xe]();if(b(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(i);if(or(i))return function ma(i){return new S(t=>{for(let e=0;e{i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,X)})}(i);if(He(i))return Hl(i);if(nn(i))return function nl(i){return new S(t=>{for(const e of i)if(t.next(e),t.closed)return;t.complete()})}(i);if(xn(i))return function Et(i){return Hl(Dn(i))}(i)}throw Oe(i)}function Hl(i){return new S(t=>{(function vg(i,t){var e,n,r,o;return function Gi(i,t,e,n){return new(e||(e=Promise))(function(o,a){function s(f){try{d(n.next(f))}catch(y){a(y)}}function l(f){try{d(n.throw(f))}catch(y){a(y)}}function d(f){f.done?o(f.value):function r(o){return o instanceof e?o:new e(function(a){a(o)})}(f.value).then(s,l)}d((n=n.apply(i,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Yt(i);!(n=yield e.next()).done;)if(t.next(n.value),t.closed)return}catch(a){r={error:a}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})})(i,t).catch(e=>t.error(e))})}function _a(i,t,e,n=0,r=!1){const o=t.schedule(function(){e(),r?i.add(this.schedule(null,n)):this.unsubscribe()},n);if(i.add(o),!r)return o}function ar(i,t,e=1/0){return b(t)?ar((n,r)=>Ve((o,a)=>t(n,o,r,a))(kn(i(n,r))),e):("number"==typeof t&&(e=t),Ne((n,r)=>function Eo(i,t,e,n,r,o,a,s){const l=[];let d=0,f=0,y=!1;const k=()=>{y&&!l.length&&!d&&t.complete()},E=ee=>d{o&&t.next(ee),d++;let he=!1;kn(e(ee,f++)).subscribe(Ye(t,ge=>{r?.(ge),o?E(ge):t.next(ge)},()=>{he=!0},void 0,()=>{if(he)try{for(d--;l.length&&dW(ge)):W(ge)}k()}catch(ge){t.error(ge)}}))};return i.subscribe(Ye(t,E,()=>{y=!0,k()})),()=>{s?.()}}(n,r,i,e)))}function ni(i=1/0){return ar(ve,i)}const Fr=new S(i=>i.complete());function Ba(i){return i&&b(i.schedule)}function Xo(i){return i[i.length-1]}function Ji(i){return b(Xo(i))?i.pop():void 0}function Jr(i){return Ba(Xo(i))?i.pop():void 0}function il(i,t=0){return Ne((e,n)=>{e.subscribe(Ye(n,r=>_a(n,i,()=>n.next(r),t),()=>_a(n,i,()=>n.complete(),t),r=>_a(n,i,()=>n.error(r),t)))})}function sy(i,t=0){return Ne((e,n)=>{n.add(i.schedule(()=>e.subscribe(n),t))})}function ly(i,t){if(!i)throw new Error("Iterable cannot be null");return new S(e=>{_a(e,t,()=>{const n=i[Symbol.asyncIterator]();_a(e,t,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function er(i,t){return t?function dy(i,t){if(null!=i){if(Xr(i))return function nD(i,t){return kn(i).pipe(sy(t),il(t))}(i,t);if(or(i))return function sr(i,t){return new S(e=>{let n=0;return t.schedule(function(){n===i.length?e.complete():(e.next(i[n++]),e.closed||this.schedule())})})}(i,t);if(pr(i))return function iD(i,t){return kn(i).pipe(sy(t),il(t))}(i,t);if(He(i))return ly(i,t);if(nn(i))return function jh(i,t){return new S(e=>{let n;return _a(e,t,()=>{n=i[bt](),_a(e,t,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(a){return void e.error(a)}o?e.complete():e.next(r)},0,!0)}),()=>b(n?.return)&&n.return()})}(i,t);if(xn(i))return function cy(i,t){return ly(Dn(i),t)}(i,t)}throw Oe(i)}(i,t):kn(i)}function jr(...i){const t=Jr(i),e=function hs(i,t){return"number"==typeof Xo(i)?i.pop():t}(i,1/0),n=i;return n.length?1===n.length?kn(n[0]):ni(e)(er(n,t)):Fr}function yg(i={}){const{connector:t=(()=>new be),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=i;return o=>{let a,s,l,d=0,f=!1,y=!1;const k=()=>{s?.unsubscribe(),s=void 0},E=()=>{k(),a=l=void 0,f=y=!1},W=()=>{const ee=a;E(),ee?.unsubscribe()};return Ne((ee,he)=>{d++,!y&&!f&&k();const ge=l=l??t();he.add(()=>{d--,0===d&&!y&&!f&&(s=bg(W,r))}),ge.subscribe(he),!a&&d>0&&(a=new re({next:Ce=>ge.next(Ce),error:Ce=>{y=!0,k(),s=bg(E,e,Ce),ge.error(Ce)},complete:()=>{f=!0,k(),s=bg(E,n),ge.complete()}}),kn(ee).subscribe(a))})(o)}}function bg(i,t,...e){if(!0===t)return void i();if(!1===t)return;const n=new re({next:()=>{n.unsubscribe(),i()}});return kn(t(...e)).subscribe(n)}function Si(i){for(let t in i)if(i[t]===Si)return t;throw Error("Could not find renamed property on target object.")}function Cg(i,t){for(const e in t)t.hasOwnProperty(e)&&!i.hasOwnProperty(e)&&(i[e]=t[e])}function xi(i){if("string"==typeof i)return i;if(Array.isArray(i))return"["+i.map(xi).join(", ")+"]";if(null==i)return""+i;if(i.overriddenName)return`${i.overriddenName}`;if(i.name)return`${i.name}`;const t=i.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function $h(i,t){return null==i||""===i?null===t?"":t:null==t||""===t?i:i+" "+t}const rD=Si({__forward_ref__:Si});function Fn(i){return i.__forward_ref__=Fn,i.toString=function(){return xi(this())},i}function dn(i){return zh(i)?i():i}function zh(i){return"function"==typeof i&&i.hasOwnProperty(rD)&&i.__forward_ref__===Fn}class et extends Error{constructor(t,e){super(function Gh(i,t){return`NG0${Math.abs(i)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function Cn(i){return"string"==typeof i?i:null==i?"":String(i)}function Jo(i,t){throw new et(-201,!1)}function Io(i,t){null==i&&function ci(i,t,e,n){throw new Error(`ASSERTION ERROR: ${i}`+(null==n?"":` [Expected=> ${e} ${n} ${t} <=Actual]`))}(t,i,null,"!=")}function $e(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function wt(i){return{providers:i.providers||[],imports:i.imports||[]}}function Kh(i){return hy(i,qc)||hy(i,Dg)}function hy(i,t){return i.hasOwnProperty(t)?i[t]:null}function Zh(i){return i&&(i.hasOwnProperty(wg)||i.hasOwnProperty(py))?i[wg]:null}const qc=Si({\u0275prov:Si}),wg=Si({\u0275inj:Si}),Dg=Si({ngInjectableDef:Si}),py=Si({ngInjectorDef:Si});var rn=(()=>((rn=rn||{})[rn.Default=0]="Default",rn[rn.Host=1]="Host",rn[rn.Self=2]="Self",rn[rn.SkipSelf=4]="SkipSelf",rn[rn.Optional=8]="Optional",rn))();let Mg;function ea(i){const t=Mg;return Mg=i,t}function xg(i,t,e){const n=Kh(i);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&rn.Optional?null:void 0!==t?t:void Jo(xi(i))}function ta(i){return{toString:i}.toString()}var eo=(()=>((eo=eo||{})[eo.OnPush=0]="OnPush",eo[eo.Default=1]="Default",eo))(),va=(()=>{return(i=va||(va={}))[i.Emulated=0]="Emulated",i[i.None=2]="None",i[i.ShadowDom=3]="ShadowDom",va;var i})();const Fi=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),rl={},ai=[],na=Si({\u0275cmp:Si}),Tg=Si({\u0275dir:Si}),lu=Si({\u0275pipe:Si}),fy=Si({\u0275mod:Si}),fs=Si({\u0275fac:Si}),cu=Si({__NG_ELEMENT_ID__:Si});let Qh=0;function Be(i){return ta(()=>{const e=!0===i.standalone,n={},r={type:i.type,providersResolver:null,decls:i.decls,vars:i.vars,factory:null,template:i.template||null,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:i.exportAs||null,onPush:i.changeDetection===eo.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&i.dependencies||null,getStandaloneInjector:null,selectors:i.selectors||ai,viewQuery:i.viewQuery||null,features:i.features||null,data:i.data||{},encapsulation:i.encapsulation||va.Emulated,id:"c"+Qh++,styles:i.styles||ai,_:null,setInput:null,schemas:i.schemas||null,tView:null},o=i.dependencies,a=i.features;return r.inputs=_y(i.inputs,n),r.outputs=_y(i.outputs),a&&a.forEach(s=>s(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(gy).filter(my):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(to).filter(my):null,r})}function du(i,t,e){const n=i.\u0275cmp;n.directiveDefs=()=>("function"==typeof t?t():t).map(gy),n.pipeDefs=()=>("function"==typeof e?e():e).map(to)}function gy(i){return fi(i)||$r(i)}function my(i){return null!==i}function Dt(i){return ta(()=>({type:i.type,bootstrap:i.bootstrap||ai,declarations:i.declarations||ai,imports:i.imports||ai,exports:i.exports||ai,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null}))}function _y(i,t){if(null==i)return rl;const e={};for(const n in i)if(i.hasOwnProperty(n)){let r=i[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=n,t&&(t[r]=o)}return e}const it=Be;function Yn(i){return{type:i.type,name:i.name,factory:null,pure:!1!==i.pure,standalone:!0===i.standalone,onDestroy:i.type.prototype.ngOnDestroy||null}}function fi(i){return i[na]||null}function $r(i){return i[Tg]||null}function to(i){return i[lu]||null}function Fo(i,t){const e=i[fy]||null;if(!e&&!0===t)throw new Error(`Type ${xi(i)} does not have '\u0275mod' property.`);return e}function mo(i){return Array.isArray(i)&&"object"==typeof i[1]}function Ca(i){return Array.isArray(i)&&!0===i[1]}function Ig(i){return 0!=(8&i.flags)}function Jh(i){return 2==(2&i.flags)}function ep(i){return 1==(1&i.flags)}function wa(i){return null!==i.template}function vD(i){return 0!=(256&i[2])}function Wl(i,t){return i.hasOwnProperty(fs)?i[fs]:null}class MD{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function _i(){return by}function by(i){return i.type.prototype.ngOnChanges&&(i.setInput=tp),xD}function xD(){const i=wy(this),t=i?.current;if(t){const e=i.previous;if(e===rl)i.previous=t;else for(let n in t)e[n]=t[n];i.current=null,this.ngOnChanges(t)}}function tp(i,t,e,n){const r=wy(i)||function kD(i,t){return i[Cy]=t}(i,{previous:rl,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[e],l=a[s];o[s]=new MD(l&&l.currentValue,t,a===rl),i[n]=t}_i.ngInherit=!0;const Cy="__ngSimpleChanges__";function wy(i){return i[Cy]||null}function Ki(i){for(;Array.isArray(i);)i=i[0];return i}function pu(i,t){return Ki(t[i])}function Pr(i,t){return Ki(t[i.index])}function ip(i,t){return i.data[t]}function td(i,t){return i[t]}function Ro(i,t){const e=t[i];return mo(e)?e:e[0]}function rp(i){return 64==(64&i[2])}function al(i,t){return null==t?null:i[t]}function xy(i){i[18]=0}function Og(i,t){i[5]+=t;let e=i,n=i[3];for(;null!==n&&(1===t&&1===e[5]||-1===t&&0===e[5]);)n[5]+=t,e=n,n=n[3]}const bn={lFrame:Fy(null),bindingsEnabled:!0};function Ty(){return bn.bindingsEnabled}function at(){return bn.lFrame.lView}function Kn(){return bn.lFrame.tView}function R(i){return bn.lFrame.contextLView=i,i[8]}function L(i){return bn.lFrame.contextLView=null,i}function Cr(){let i=op();for(;null!==i&&64===i.type;)i=i.parent;return i}function op(){return bn.lFrame.currentTNode}function Ha(i,t){const e=bn.lFrame;e.currentTNode=i,e.isParent=t}function Ng(){return bn.lFrame.isParent}function gu(){bn.lFrame.isParent=!1}function no(){const i=bn.lFrame;let t=i.bindingRootIndex;return-1===t&&(t=i.bindingRootIndex=i.tView.bindingStartIndex),t}function _s(){return bn.lFrame.bindingIndex}function Gl(){return bn.lFrame.bindingIndex++}function vs(i){const t=bn.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+i,e}function VD(i,t){const e=bn.lFrame;e.bindingIndex=e.bindingRootIndex=i,Hg(t)}function Hg(i){bn.lFrame.currentDirectiveIndex=i}function Ya(i){const t=bn.lFrame.currentDirectiveIndex;return-1===t?null:i[t]}function Yg(){return bn.lFrame.currentQueryIndex}function Ug(i){bn.lFrame.currentQueryIndex=i}function YD(i){const t=i[1];return 2===t.type?t.declTNode:1===t.type?i[6]:null}function Ay(i,t,e){if(e&rn.SkipSelf){let r=t,o=i;for(;!(r=r.parent,null!==r||e&rn.Host||(r=YD(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,i=o}const n=bn.lFrame=Iy();return n.currentTNode=t,n.lView=i,!0}function ut(i){const t=Iy(),e=i[1];bn.lFrame=t,t.currentTNode=e.firstChild,t.lView=i,t.tView=e,t.contextLView=i,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Iy(){const i=bn.lFrame,t=null===i?null:i.child;return null===t?Fy(i):t}function Fy(i){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:i,child:null,inI18n:!1};return null!==i&&(i.child=t),t}function jg(){const i=bn.lFrame;return bn.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}const ii=jg;function nd(){const i=jg();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function io(){return bn.lFrame.selectedIndex}function sl(i){bn.lFrame.selectedIndex=i}function nr(){const i=bn.lFrame;return ip(i.tView,i.selectedIndex)}function mu(){bn.lFrame.currentNamespace="svg"}function ap(i,t){for(let e=t.directiveStart,n=t.directiveEnd;e=n)break}else t[l]<0&&(i[18]+=65536),(s>11>16&&(3&i[2])===t){i[2]+=2048;try{o.call(s)}finally{}}}else try{o.call(s)}finally{}}class Lo{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function dp(i,t,e){let n=0;for(;nt){a=o-1;break}}}for(;o>16}(i),n=t;for(;e>0;)n=n[15],e--;return n}let Wg=!0;function up(i){const t=Wg;return Wg=i,t}let QD=0;const za={};function yu(i,t){const e=bu(i,t);if(-1!==e)return e;const n=t[1];n.firstCreatePass&&(i.injectorIndex=t.length,Gg(n.data,i),Gg(t,null),Gg(n.blueprint,null));const r=ys(i,t),o=i.injectorIndex;if(By(r)){const a=id(r),s=rd(r,t),l=s[1].data;for(let d=0;d<8;d++)t[o+d]=s[a+d]|l[a+d]}return t[o+8]=r,o}function Gg(i,t){i.push(0,0,0,0,0,0,0,0,t)}function bu(i,t){return-1===i.injectorIndex||i.parent&&i.parent.injectorIndex===i.injectorIndex||null===t[i.injectorIndex+8]?-1:i.injectorIndex}function ys(i,t){if(i.parent&&-1!==i.parent.injectorIndex)return i.parent.injectorIndex;let e=0,n=null,r=t;for(;null!==r;){if(n=UI(r),null===n)return-1;if(e++,r=r[15],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return-1}function Kl(i,t,e){!function XD(i,t,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(cu)&&(n=e[cu]),null==n&&(n=e[cu]=QD++);const r=255&n;t.data[i+(r>>5)]|=1<=0?255&t:bs:t}(e);if("function"==typeof o){if(!Ay(t,i,n))return n&rn.Host?v(r,0,n):T(t,e,n,r);try{const a=o(n);if(null!=a||n&rn.Optional)return a;Jo()}finally{ii()}}else if("number"==typeof o){let a=null,s=bu(i,t),l=-1,d=n&rn.Host?t[16][6]:null;for((-1===s||n&rn.SkipSelf)&&(l=-1===s?ys(i,t):t[s+8],-1!==l&&vi(n,!1)?(a=t[1],s=id(l),t=rd(l,t)):s=-1);-1!==s;){const f=t[1];if(Sn(o,s,f.data)){const y=_e(s,t,e,a,n,d);if(y!==za)return y}l=t[s+8],-1!==l&&vi(n,t[1].data[s+8]===d)&&Sn(o,s,t)?(a=f,s=id(l),t=rd(l,t)):s=-1}}return r}function _e(i,t,e,n,r,o){const a=t[1],s=a.data[i+8],f=Fe(s,a,e,null==n?Jh(s)&&Wg:n!=a&&0!=(3&s.type),r&rn.Host&&o===s);return null!==f?qe(t,a,f,s):za}function Fe(i,t,e,n,r){const o=i.providerIndexes,a=t.data,s=1048575&o,l=i.directiveStart,f=o>>20,k=r?s+f:i.directiveEnd;for(let E=n?s:s+f;E=l&&W.type===e)return E}if(r){const E=a[l];if(E&&wa(E)&&E.type===e)return l}return null}function qe(i,t,e,n){let r=i[e];const o=t.data;if(function WD(i){return i instanceof Lo}(r)){const a=r;a.resolving&&function qh(i,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${i}`:"";throw new et(-200,`Circular dependency in DI detected for ${i}${e}`)}(function Hn(i){return"function"==typeof i?i.name||i.toString():"object"==typeof i&&null!=i&&"function"==typeof i.type?i.type.name||i.type.toString():Cn(i)}(o[e]));const s=up(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?ea(a.injectImpl):null;Ay(i,n,rn.Default);try{r=i[e]=a.factory(void 0,o,i,n),t.firstCreatePass&&e>=n.directiveStart&&function $D(i,t,e){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(n){const a=by(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(i,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(i,a)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-i,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(i,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(i,o))}(e,o[e],t)}finally{null!==l&&ea(l),up(s),a.resolving=!1,ii()}}return r}function Sn(i,t,e){return!!(e[t+(i>>5)]&1<{const t=i.prototype.constructor,e=t[fs]||JD(t),n=Object.prototype;let r=Object.getPrototypeOf(i.prototype).constructor;for(;r&&r!==n;){const o=r[fs]||JD(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function JD(i){return zh(i)?()=>{const t=JD(dn(i));return t&&t()}:Wl(i)}function UI(i){const t=i[1],e=t.type;return 2===e?t.declTNode:1===e?i[6]:null}function cl(i){return function Zn(i,t){if("class"===t)return i.classes;if("style"===t)return i.styles;const e=i.attrs;if(e){const n=e.length;let r=0;for(;r{const n=function eM(i){return function(...e){if(i){const n=i(...e);for(const r in n)this[r]=n[r]}}}(t);function r(...o){if(this instanceof r)return n.apply(this,o),this;const a=new r(...o);return s.annotation=a,s;function s(l,d,f){const y=l.hasOwnProperty(pp)?l[pp]:Object.defineProperty(l,pp,{value:[]})[pp];for(;y.length<=f;)y.push(null);return(y[f]=y[f]||[]).push(a),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=i,r.annotationCls=r,r})}class nt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=$e({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Da(i,t){void 0===t&&(t=i);for(let e=0;eArray.isArray(e)?Zl(e,t):t(e))}function $I(i,t,e){t>=i.length?i.push(e):i.splice(t,0,e)}function Vy(i,t){return t>=i.length-1?i.pop():i.splice(t,1)[0]}function Zg(i,t){const e=[];for(let n=0;n=0?i[1|n]=e:(n=~n,function MY(i,t,e,n){let r=i.length;if(r==t)i.push(e,n);else if(1===r)i.push(n,i[0]),i[0]=e;else{for(r--,i.push(i[r-1],i[r]);r>t;)i[r]=i[r-2],r--;i[t]=e,i[t+1]=n}}(i,n,t,e)),n}function nM(i,t){const e=mp(i,t);if(e>=0)return i[1|e]}function mp(i,t){return function GI(i,t,e){let n=0,r=i.length>>e;for(;r!==n;){const o=n+(r-n>>1),a=i[o<t?r=o:n=o+1}return~(r<i,createScript:i=>i,createScriptURL:i=>i})}catch{}return $y}()?.createHTML(i)||i}function cM(){if(void 0===zy&&(zy=null,Fi.trustedTypes))try{zy=Fi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:i=>i,createScript:i=>i,createScriptURL:i=>i})}catch{}return zy}function rF(i){return cM()?.createHTML(i)||i}function aF(i){return cM()?.createScriptURL(i)||i}class Cu{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class ZY extends Cu{getTypeName(){return"HTML"}}class QY extends Cu{getTypeName(){return"Style"}}class XY extends Cu{getTypeName(){return"Script"}}class JY extends Cu{getTypeName(){return"URL"}}class eU extends Cu{getTypeName(){return"ResourceURL"}}function xa(i){return i instanceof Cu?i.changingThisBreaksApplicationSecurity:i}function dl(i,t){const e=function tU(i){return i instanceof Cu&&i.getTypeName()||null}(i);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}class sU{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(yp(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class lU{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const n=this.inertDocument.createElement("body");e.appendChild(n)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=yp(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=yp(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0"),!0}endElement(t){const e=t.nodeName.toLowerCase();dM.hasOwnProperty(e)&&!lF.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(hF(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const pU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fU=/([^\#-~ |!])/g;function hF(i){return i.replace(/&/g,"&").replace(pU,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(fU,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Gy;function pF(i,t){let e=null;try{Gy=Gy||function sF(i){const t=new lU(i);return function cU(){try{return!!(new window.DOMParser).parseFromString(yp(""),"text/html")}catch{return!1}}()?new sU(t):t}(i);let n=t?String(t):"";e=Gy.getInertBodyElement(n);let r=5,o=n;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=e.innerHTML,e=Gy.getInertBodyElement(n)}while(n!==o);return yp((new hU).sanitizeChildren(hM(e)||e))}finally{if(e){const n=hM(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function hM(i){return"content"in i&&function gU(i){return i.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===i.nodeName}(i)?i.content:null}var di=(()=>((di=di||{})[di.NONE=0]="NONE",di[di.HTML=1]="HTML",di[di.STYLE=2]="STYLE",di[di.SCRIPT=3]="SCRIPT",di[di.URL=4]="URL",di[di.RESOURCE_URL=5]="RESOURCE_URL",di))();function Un(i){const t=im();return t?rF(t.sanitize(di.HTML,i)||""):dl(i,"HTML")?rF(xa(i)):pF(function iF(){return void 0!==sM?sM:typeof document<"u"?document:void 0}(),Cn(i))}function Yi(i){const t=im();return t?t.sanitize(di.URL,i)||"":dl(i,"URL")?xa(i):Wy(Cn(i))}function pM(i){const t=im();if(t)return aF(t.sanitize(di.RESOURCE_URL,i)||"");if(dl(i,"ResourceURL"))return aF(xa(i));throw new et(904,!1)}function im(){const i=at();return i&&i[12]}const fM=new nt("ENVIRONMENT_INITIALIZER"),fF=new nt("INJECTOR",-1),gF=new nt("INJECTOR_DEF_TYPES");class mF{get(t,e=Qg){if(e===Qg){const n=new Error(`NullInjectorError: No provider for ${xi(t)}!`);throw n.name="NullInjectorError",n}return e}}function wU(...i){return{\u0275providers:_F(0,i)}}function _F(i,...t){const e=[],n=new Set;let r;return Zl(t,o=>{const a=o;gM(a,e,[],n)&&(r||(r=[]),r.push(a))}),void 0!==r&&vF(r,e),e}function vF(i,t){for(let e=0;e{t.push(o)})}}function gM(i,t,e,n){if(!(i=dn(i)))return!1;let r=null,o=Zh(i);const a=!o&&fi(i);if(o||a){if(a&&!a.standalone)return!1;r=i}else{const l=i.ngModule;if(o=Zh(l),!o)return!1;r=l}const s=n.has(r);if(a){if(s)return!1;if(n.add(r),a.dependencies){const l="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const d of l)gM(d,t,e,n)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let d;n.add(r);try{Zl(o.imports,f=>{gM(f,t,e,n)&&(d||(d=[]),d.push(f))})}finally{}void 0!==d&&vF(d,t)}if(!s){const d=Wl(r)||(()=>new r);t.push({provide:r,useFactory:d,deps:ai},{provide:gF,useValue:r,multi:!0},{provide:fM,useValue:()=>Ee(r),multi:!0})}const l=o.providers;null==l||s||Zl(l,f=>{t.push(f)})}}return r!==i&&void 0!==i.providers}const DU=Si({provide:String,useValue:Si});function mM(i){return null!==i&&"object"==typeof i&&DU in i}function wu(i){return"function"==typeof i}const _M=new nt("Set Injector scope."),qy={},xU={};let vM;function Ky(){return void 0===vM&&(vM=new mF),vM}class od{}class CF extends od{constructor(t,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,bM(t,a=>this.processProvider(a)),this.records.set(fF,bp(void 0,this)),r.has("environment")&&this.records.set(od,bp(void 0,this));const o=this.records.get(_M);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(gF.multi,ai,rn.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=_p(this),n=ea(void 0);try{return t()}finally{_p(e),ea(n)}}get(t,e=Qg,n=rn.Default){this.assertNotDestroyed();const r=_p(this),o=ea(void 0);try{if(!(n&rn.SkipSelf)){let s=this.records.get(t);if(void 0===s){const l=function AU(i){return"function"==typeof i||"object"==typeof i&&i instanceof nt}(t)&&Kh(t);s=l&&this.injectableDefInScope(l)?bp(yM(t),qy):null,this.records.set(t,s)}if(null!=s)return this.hydrate(t,s)}return(n&rn.Self?Ky():this.parent).get(t,e=n&rn.Optional&&e===Qg?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[Yy]=a[Yy]||[]).unshift(xi(t)),r)throw a;return function OY(i,t,e,n){const r=i[Yy];throw t[qI]&&r.unshift(t[qI]),i.message=function NY(i,t,e,n=null){i=i&&"\n"===i.charAt(0)&&"\u0275"==i.charAt(1)?i.slice(2):i;let r=xi(t);if(Array.isArray(t))r=t.map(xi).join(" -> ");else if("object"==typeof t){let o=[];for(let a in t)if(t.hasOwnProperty(a)){let s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):xi(s)))}r=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${i.replace(FY,"\n ")}`}("\n"+i.message,r,e,n),i.ngTokenPath=r,i[Yy]=null,i}(a,t,"R3InjectorError",this.source)}throw a}finally{ea(o),_p(r)}}resolveInjectorInitializers(){const t=_p(this),e=ea(void 0);try{const n=this.get(fM.multi,ai,rn.Self);for(const r of n)r()}finally{_p(t),ea(e)}}toString(){const t=[],e=this.records;for(const n of e.keys())t.push(xi(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new et(205,!1)}processProvider(t){let e=wu(t=dn(t))?t:dn(t&&t.provide);const n=function TU(i){return mM(i)?bp(void 0,i.useValue):bp(wF(i),qy)}(t);if(wu(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=bp(void 0,qy,!0),r.factory=()=>oM(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,n)}hydrate(t,e){return e.value===qy&&(e.value=xU,e.value=e.factory()),"object"==typeof e.value&&e.value&&function EU(i){return null!==i&&"object"==typeof i&&"function"==typeof i.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=dn(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function yM(i){const t=Kh(i),e=null!==t?t.factory:Wl(i);if(null!==e)return e;if(i instanceof nt)throw new et(204,!1);if(i instanceof Function)return function kU(i){const t=i.length;if(t>0)throw Zg(t,"?"),new et(204,!1);const e=function uD(i){const t=i&&(i[qc]||i[Dg]);if(t){const e=function hD(i){if(i.hasOwnProperty("name"))return i.name;const t=(""+i).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(i);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(i);return null!==e?()=>e.factory(i):()=>new i}(i);throw new et(204,!1)}function wF(i,t,e){let n;if(wu(i)){const r=dn(i);return Wl(r)||yM(r)}if(mM(i))n=()=>dn(i.useValue);else if(function bF(i){return!(!i||!i.useFactory)}(i))n=()=>i.useFactory(...oM(i.deps||[]));else if(function yF(i){return!(!i||!i.useExisting)}(i))n=()=>Ee(dn(i.useExisting));else{const r=dn(i&&(i.useClass||i.provide));if(!function SU(i){return!!i.deps}(i))return Wl(r)||yM(r);n=()=>new r(...oM(i.deps))}return n}function bp(i,t,e=!1){return{factory:i,value:t,multi:e?[]:void 0}}function IU(i){return!!i.\u0275providers}function bM(i,t){for(const e of i)Array.isArray(e)?bM(e,t):IU(e)?bM(e.\u0275providers,t):t(e)}class DF{}class RU{resolveComponentFactory(t){throw function PU(i){const t=Error(`No component factory found for ${xi(i)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=i,t}(t)}}let Jl=(()=>{class i{}return i.NULL=new RU,i})();function LU(){return Cp(Cr(),at())}function Cp(i,t){return new Pt(Pr(i,t))}let Pt=(()=>{class i{constructor(e){this.nativeElement=e}}return i.__NG_ELEMENT_ID__=LU,i})();function OU(i){return i instanceof Pt?i.nativeElement:i}class wp{}let ka=(()=>{class i{}return i.__NG_ELEMENT_ID__=()=>function NU(){const i=at(),e=Ro(Cr().index,i);return(mo(e)?e:i)[11]}(),i})(),BU=(()=>{class i{}return i.\u0275prov=$e({token:i,providedIn:"root",factory:()=>null}),i})();class Du{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const VU=new Du("14.2.6"),CM={};function kM(i){return i.ngOriginalError}class ec{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&kM(t);for(;e&&kM(e);)e=kM(e);return e||null}}const TM=new Map;let QU=0;const EM="__ngContext__";function _o(i,t){mo(t)?(i[EM]=t[20],function JU(i){TM.set(i[20],i)}(t)):i[EM]=t}function AM(i){return i.ownerDocument}function tc(i){return i instanceof Function?i():i}var ra=(()=>((ra=ra||{})[ra.Important=1]="Important",ra[ra.DashCase=2]="DashCase",ra))();function FM(i,t){return undefined(i,t)}function om(i){const t=i[3];return Ca(t)?t[3]:t}function PM(i){return VF(i[13])}function RM(i){return VF(i[4])}function VF(i){for(;null!==i&&!Ca(i);)i=i[4];return i}function Mp(i,t,e,n,r){if(null!=n){let o,a=!1;Ca(n)?o=n:mo(n)&&(a=!0,n=n[0]);const s=Ki(n);0===i&&null!==e?null==r?zF(t,e,s):Mu(t,e,s,r||null,!0):1===i&&null!==e?Mu(t,e,s,r||null,!0):2===i?function XF(i,t,e){const n=Zy(i,t);n&&function Mj(i,t,e,n){i.removeChild(t,e,n)}(i,n,t,e)}(t,s,a):3===i&&t.destroyNode(s),null!=o&&function Tj(i,t,e,n,r){const o=e[7];o!==Ki(e)&&Mp(t,i,n,o,r);for(let s=10;s0&&(i[e-1][4]=n[4]);const o=Vy(i,10+t);!function mj(i,t){am(i,t,t[11],2,null,null),t[0]=null,t[6]=null}(n[1],n);const a=o[19];null!==a&&a.detachView(o[1]),n[3]=null,n[4]=null,n[2]&=-65}return n}function UF(i,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&am(i,t,e,3,null,null),function yj(i){let t=i[13];if(!t)return BM(i[1],i);for(;t;){let e=null;if(mo(t))e=t[13];else{const n=t[10];n&&(e=n)}if(!e){for(;t&&!t[4]&&t!==i;)mo(t)&&BM(t[1],t),t=t[3];null===t&&(t=i),mo(t)&&BM(t[1],t),e=t&&t[4]}t=e}}(t)}}function BM(i,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function Dj(i,t){let e;if(null!=i&&null!=(e=i.destroyHooks))for(let n=0;n=0?n[r=d]():n[r=-d].unsubscribe(),o+=2}else{const a=n[r=e[o+1]];e[o].call(a)}if(null!==n){for(let o=r+1;oo?"":r[y+1].toLowerCase();const E=8&n?k:null;if(E&&-1!==tP(E,d,0)||2&n&&d!==k){if(ws(n))return!1;a=!0}}}}else{if(!a&&!ws(n)&&!ws(l))return!1;if(a&&ws(l))continue;a=!1,n=l|1&n}}return ws(n)||a}function ws(i){return 0==(1&i)}function Fj(i,t,e,n){if(null===t)return-1;let r=0;if(n||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else 8&n?r+="."+a:4&n&&(r+=" "+a);else""!==r&&!ws(a)&&(t+=oP(o,r),r=""),n=a,o=o||!ws(n);e++}return""!==r&&(t+=oP(o,r)),t}const Tn={};function h(i){aP(Kn(),at(),io()+i,!1)}function aP(i,t,e,n){if(!n)if(3==(3&t[2])){const o=i.preOrderCheckHooks;null!==o&&_u(t,o,e)}else{const o=i.preOrderHooks;null!==o&&sp(t,o,0,e)}sl(e)}function dP(i,t=null,e=null,n){const r=uP(i,t,e,n);return r.resolveInjectorInitializers(),r}function uP(i,t=null,e=null,n,r=new Set){const o=[e||ai,wU(i)];return n=n||("object"==typeof i?void 0:xi(i)),new CF(o,t||Ky(),n||null,r)}let Li=(()=>{class i{static create(e,n){if(Array.isArray(e))return dP({name:""},n,e,"");{const r=e.name??"";return dP({name:r},e.parent,e.providers,r)}}}return i.THROW_IF_NOT_FOUND=Qg,i.NULL=new mF,i.\u0275prov=$e({token:i,providedIn:"any",factory:()=>Ee(fF)}),i.__NG_ELEMENT_ID__=-1,i})();function U(i,t=rn.Default){const e=at();return null===e?Ee(i,t):Z(Cr(),e,dn(i),t)}function kp(){throw new Error("invalid")}function e0(i,t){return i<<17|t<<2}function Ds(i){return i>>17&32767}function GM(i){return 2|i}function nc(i){return(131068&i)>>2}function qM(i,t){return-131069&i|t<<2}function KM(i){return 1|i}function SP(i,t){const e=i.contentQueries;if(null!==e)for(let n=0;n22&&aP(i,t,22,!1),e(n,r)}finally{sl(o)}}function AP(i,t,e){if(Ig(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=i[--t];if("number"==typeof e&&e<0)return e}return 0})(s)!=l&&s.push(l),s.push(n,r,a)}}function NP(i,t){null!==i.hostBindings&&i.hostBindings(1,t)}function BP(i,t){t.flags|=2,(i.components||(i.components=[])).push(t.index)}function S$(i,t,e){if(e){if(t.exportAs)for(let n=0;n0&&dx(e)}}function dx(i){for(let n=PM(i);null!==n;n=RM(n))for(let r=10;r0&&dx(o)}const e=i[1].components;if(null!==e)for(let n=0;n0&&dx(r)}}function L$(i,t){const e=Ro(t,i),n=e[1];(function O$(i,t){for(let e=t.length;e-1&&(NM(t,n),Vy(e,n))}this._attachedToViewContainer=!1}UF(this._lView[1],this._lView)}onDestroy(t){FP(this._lView[1],this._lView,null,t)}markForCheck(){ux(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){s0(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new et(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function vj(i,t){am(i,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new et(902,!1);this._appRef=t}}class N$ extends sm{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;s0(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class fx extends Jl{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=fi(t);return new lm(e,this.ngModule)}}function WP(i){const t=[];for(let e in i)i.hasOwnProperty(e)&&t.push({propName:i[e],templateName:e});return t}class V${constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,n){const r=this.injector.get(t,CM,n);return r!==CM||e===CM?r:this.parentInjector.get(t,e,n)}}class lm extends DF{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function Bj(i){return i.map(Nj).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return WP(this.componentDef.inputs)}get outputs(){return WP(this.componentDef.outputs)}create(t,e,n,r){let o=(r=r||this.ngModule)instanceof od?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new V$(t,o):t,s=a.get(wp,null);if(null===s)throw new et(407,!1);const l=a.get(BU,null),d=s.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",y=n?function v$(i,t,e){return i.selectRootElement(t,e===va.ShadowDom)}(d,n,this.componentDef.encapsulation):OM(s.createRenderer(null,this.componentDef),f,function B$(i){const t=i.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),k=this.componentDef.onPush?288:272,E=sx(0,null,null,1,0,null,null,null,null,null),W=r0(null,E,null,k,null,null,s,d,l,a,null);let ee,he;ut(W);try{const ge=function U$(i,t,e,n,r,o){const a=e[1];e[22]=i;const l=Tp(a,22,2,"#host",null),d=l.mergedAttrs=t.hostAttrs;null!==d&&(l0(l,d,!0),null!==i&&(dp(r,i,d),null!==l.classes&&UM(r,i,l.classes),null!==l.styles&&eP(r,i,l.styles)));const f=n.createRenderer(i,t),y=r0(e,IP(t),null,t.onPush?32:16,e[22],l,n,f,o||null,null,null);return a.firstCreatePass&&(Kl(yu(l,e),a,t.type),BP(a,l),VP(l,e.length,1)),a0(e,y),e[22]=y}(y,this.componentDef,W,s,d);if(y)if(n)dp(d,y,["ng-version",VU.full]);else{const{attrs:Ce,classes:we}=function Vj(i){const t=[],e=[];let n=1,r=2;for(;n0&&UM(d,y,we.join(" "))}if(he=ip(E,22),void 0!==e){const Ce=he.projection=[];for(let we=0;we=0;n--){const r=i[n];r.hostVars=t+=r.hostVars,r.hostAttrs=ja(r.hostAttrs,e=ja(e,r.hostAttrs))}}(n)}function gx(i){return i===rl?{}:i===ai?[]:i}function W$(i,t){const e=i.viewQuery;i.viewQuery=e?(n,r)=>{t(n,r),e(n,r)}:t}function G$(i,t){const e=i.contentQueries;i.contentQueries=e?(n,r,o)=>{t(n,r,o),e(n,r,o)}:t}function q$(i,t){const e=i.hostBindings;i.hostBindings=e?(n,r)=>{t(n,r),e(n,r)}:t}let d0=null;function xu(){if(!d0){const i=Fi.Symbol;if(i&&i.iterator)d0=i.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;es(Ki(Pe[n.index])):n.index;let ke=null;if(!s&&l&&(ke=function az(i,t,e,n){const r=i.cleanup;if(null!=r)for(let o=0;ol?s[l]:null}"string"==typeof a&&(o+=2)}return null}(i,t,r,n.index)),null!==ke)(ke.__ngLastListenerFn__||ke).__ngNextListenerFn__=o,ke.__ngLastListenerFn__=o,E=!1;else{o=oR(n,t,y,o,!1);const Pe=e.listen(ge,r,o);k.push(o,Pe),f&&f.push(r,we,Ce,Ce+1)}}else o=oR(n,t,y,o,!1);const W=n.outputs;let ee;if(E&&null!==W&&(ee=W[r])){const he=ee.length;if(he)for(let ge=0;ge0;)t=t[15],i--;return t}(i,bn.lFrame.contextLView))[8]}(i)}function sz(i,t){let e=null;const n=function Pj(i){const t=i.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(i);for(let r=0;r=0}const Lr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function fR(i){return i.substring(Lr.key,Lr.keyEnd)}function uz(i){return i.substring(Lr.value,Lr.valueEnd)}function gR(i,t){const e=Lr.textEnd;return e===t?-1:(t=Lr.keyEnd=function fz(i,t,e){for(;t32;)t++;return t}(i,Lr.key=t,e),Bp(i,t,e))}function mR(i,t){const e=Lr.textEnd;let n=Lr.key=Bp(i,t,e);return e===n?-1:(n=Lr.keyEnd=function gz(i,t,e){let n;for(;t=65&&(-33&n)<=90||n>=48&&n<=57);)t++;return t}(i,n,e),n=vR(i,n,e),n=Lr.value=Bp(i,n,e),n=Lr.valueEnd=function mz(i,t,e){let n=-1,r=-1,o=-1,a=t,s=a;for(;a32&&(s=a),o=r,r=n,n=-33&l}return s}(i,n,e),vR(i,n,e))}function _R(i){Lr.key=0,Lr.keyEnd=0,Lr.value=0,Lr.valueEnd=0,Lr.textEnd=i.length}function Bp(i,t,e){for(;t=0;e=mR(t,e))wR(i,fR(t),uz(t))}function Co(i){ks(Ma,fl,i,!0)}function fl(i,t){for(let e=function hz(i){return _R(i),gR(i,Bp(i,0,Lr.textEnd))}(t);e>=0;e=gR(t,e))Ma(i,fR(t),!0)}function xs(i,t,e,n){const r=at(),o=Kn(),a=vs(2);o.firstUpdatePass&&CR(o,i,a,n),t!==Tn&&vo(r,a,t)&&DR(o,o.data[io()],r,r[11],i,r[a+1]=function Mz(i,t){return null==i||("string"==typeof t?i+=t:"object"==typeof i&&(i=xi(xa(i)))),i}(t,e),n,a)}function ks(i,t,e,n){const r=Kn(),o=vs(2);r.firstUpdatePass&&CR(r,null,o,n);const a=at();if(e!==Tn&&vo(a,o,e)){const s=r.data[io()];if(xR(s,n)&&!bR(r,o)){let l=n?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(e=$h(l,e||"")),_x(r,s,a,e,n)}else!function Dz(i,t,e,n,r,o,a,s){r===Tn&&(r=ai);let l=0,d=0,f=0=i.expandoStartIndex}function CR(i,t,e,n){const r=i.data;if(null===r[e+1]){const o=r[io()],a=bR(i,e);xR(o,n)&&null===t&&!a&&(t=!1),t=function vz(i,t,e,n){const r=Ya(i);let o=n?t.residualClasses:t.residualStyles;if(null===r)0===(n?t.classBindings:t.styleBindings)&&(e=pm(e=Cx(null,i,t,e,n),t.attrs,n),o=null);else{const a=t.directiveStylingLast;if(-1===a||i[a]!==r)if(e=Cx(r,i,t,e,n),null===o){let l=function yz(i,t,e){const n=e?t.classBindings:t.styleBindings;if(0!==nc(n))return i[Ds(n)]}(i,t,n);void 0!==l&&Array.isArray(l)&&(l=Cx(null,i,t,l[1],n),l=pm(l,t.attrs,n),function bz(i,t,e,n){i[Ds(e?t.classBindings:t.styleBindings)]=n}(i,t,n,l))}else o=function Cz(i,t,e){let n;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(d=!0)}else f=e;if(r)if(0!==l){const k=Ds(i[s+1]);i[n+1]=e0(k,s),0!==k&&(i[k+1]=qM(i[k+1],n)),i[s+1]=function r$(i,t){return 131071&i|t<<17}(i[s+1],n)}else i[n+1]=e0(s,0),0!==s&&(i[s+1]=qM(i[s+1],n)),s=n;else i[n+1]=e0(l,0),0===s?s=n:i[l+1]=qM(i[l+1],n),l=n;d&&(i[n+1]=GM(i[n+1])),pR(i,f,n,!0),pR(i,f,n,!1),function cz(i,t,e,n,r){const o=r?i.residualClasses:i.residualStyles;null!=o&&"string"==typeof t&&mp(o,t)>=0&&(e[n+1]=KM(e[n+1]))}(t,f,i,n,o),a=e0(s,l),o?t.classBindings=a:t.styleBindings=a}(r,o,t,e,a,n)}}function Cx(i,t,e,n,r){let o=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s0;){const l=i[r],d=Array.isArray(l),f=d?l[1]:l,y=null===f;let k=e[r+1];k===Tn&&(k=y?ai:void 0);let E=y?nM(k,n):f===n?k:void 0;if(d&&!p0(E)&&(E=nM(l,n)),p0(E)&&(s=E,a))return s;const W=i[r+1];r=a?Ds(W):nc(W)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(s=nM(l,n))}return s}function p0(i){return void 0!==i}function xR(i,t){return 0!=(i.flags&(t?16:32))}function m(i,t=""){const e=at(),n=Kn(),r=i+22,o=n.firstCreatePass?Tp(n,r,1,t,null):n.data[r],a=e[r]=function LM(i,t){return i.createText(t)}(e[11],t);Qy(n,e,a,o),Ha(o,!1)}function Re(i){return Ke("",i,""),Re}function Ke(i,t,e){const n=at(),r=Ap(n,i,t,e);return r!==Tn&&ic(n,io(),r),Ke}function Gr(i,t,e,n,r){const o=at(),a=function Ip(i,t,e,n,r,o){const s=ku(i,_s(),e,r);return vs(2),s?t+Cn(e)+n+Cn(r)+o:Tn}(o,i,t,e,n,r);return a!==Tn&&ic(o,io(),a),Gr}function rc(i,t,e,n,r,o,a){const s=at(),l=Fp(s,i,t,e,n,r,o,a);return l!==Tn&&ic(s,io(),l),rc}function Tu(i,t,e,n,r,o,a,s,l){const d=at(),f=function Pp(i,t,e,n,r,o,a,s,l,d){const y=Wa(i,_s(),e,r,a,l);return vs(4),y?t+Cn(e)+n+Cn(r)+o+Cn(a)+s+Cn(l)+d:Tn}(d,i,t,e,n,r,o,a,s,l);return f!==Tn&&ic(d,io(),f),Tu}function wx(i,t,e,n,r,o,a,s,l,d,f){const y=at(),k=function Rp(i,t,e,n,r,o,a,s,l,d,f,y){const k=_s();let E=Wa(i,k,e,r,a,l);return E=vo(i,k+4,f)||E,vs(5),E?t+Cn(e)+n+Cn(r)+o+Cn(a)+s+Cn(l)+d+Cn(f)+y:Tn}(y,i,t,e,n,r,o,a,s,l,d,f);return k!==Tn&&ic(y,io(),k),wx}function gl(i,t,e){ks(Ma,fl,Ap(at(),i,t,e),!0)}function f0(i,t,e){!function pl(i){ks(wR,_z,i,!1)}(Ap(at(),i,t,e))}function ml(i,t,e){const n=at();return vo(n,Gl(),t)&&Ta(Kn(),nr(),n,i,t,n[11],e,!0),ml}function g0(i,t,e){const n=at();if(vo(n,Gl(),t)){const o=Kn(),a=nr();Ta(o,a,n,i,t,$P(Ya(o.data),a,n),e,!0)}return g0}const Su=void 0;var Uz=["en",[["a","p"],["AM","PM"],Su],[["AM","PM"],Su,Su],[["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"]],Su,[["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"]],Su,[["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}",Su,"{1} 'at' {0}",Su],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Yz(i){const e=Math.floor(Math.abs(i)),n=i.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Vp={};function Bo(i){const t=function jz(i){return i.toLowerCase().replace(/_/g,"-")}(i);let e=HR(t);if(e)return e;const n=t.split("-")[0];if(e=HR(n),e)return e;if("en"===n)return Uz;throw new et(701,!1)}function HR(i){return i in Vp||(Vp[i]=Fi.ng&&Fi.ng.common&&Fi.ng.common.locales&&Fi.ng.common.locales[i]),Vp[i]}var St=(()=>((St=St||{})[St.LocaleId=0]="LocaleId",St[St.DayPeriodsFormat=1]="DayPeriodsFormat",St[St.DayPeriodsStandalone=2]="DayPeriodsStandalone",St[St.DaysFormat=3]="DaysFormat",St[St.DaysStandalone=4]="DaysStandalone",St[St.MonthsFormat=5]="MonthsFormat",St[St.MonthsStandalone=6]="MonthsStandalone",St[St.Eras=7]="Eras",St[St.FirstDayOfWeek=8]="FirstDayOfWeek",St[St.WeekendRange=9]="WeekendRange",St[St.DateFormat=10]="DateFormat",St[St.TimeFormat=11]="TimeFormat",St[St.DateTimeFormat=12]="DateTimeFormat",St[St.NumberSymbols=13]="NumberSymbols",St[St.NumberFormats=14]="NumberFormats",St[St.CurrencyCode=15]="CurrencyCode",St[St.CurrencySymbol=16]="CurrencySymbol",St[St.CurrencyName=17]="CurrencyName",St[St.Currencies=18]="Currencies",St[St.Directionality=19]="Directionality",St[St.PluralCase=20]="PluralCase",St[St.ExtraData=21]="ExtraData",St))();const Hp="en-US";let YR=Hp;function kx(i,t,e,n,r){if(i=dn(i),Array.isArray(i))for(let o=0;o>20;if(wu(i)||!i.multi){const E=new Lo(l,r,U),W=Sx(s,t,r?f:f+k,y);-1===W?(Kl(yu(d,a),o,s),Tx(o,i,t.length),t.push(s),d.directiveStart++,d.directiveEnd++,r&&(d.providerIndexes+=1048576),e.push(E),a.push(E)):(e[W]=E,a[W]=E)}else{const E=Sx(s,t,f+k,y),W=Sx(s,t,f,f+k),ee=E>=0&&e[E],he=W>=0&&e[W];if(r&&!he||!r&&!ee){Kl(yu(d,a),o,s);const ge=function BW(i,t,e,n,r){const o=new Lo(i,e,U);return o.multi=[],o.index=t,o.componentProviders=0,hL(o,r,n&&!e),o}(r?NW:OW,e.length,r,n,l);!r&&he&&(e[W].providerFactory=ge),Tx(o,i,t.length,0),t.push(s),d.directiveStart++,d.directiveEnd++,r&&(d.providerIndexes+=1048576),e.push(ge),a.push(ge)}else Tx(o,i,E>-1?E:W,hL(e[r?W:E],l,!r&&n));!r&&n&&he&&e[W].componentProviders++}}}function Tx(i,t,e,n){const r=wu(t),o=function MU(i){return!!i.useClass}(t);if(r||o){const l=(o?dn(t.useClass):t).prototype.ngOnDestroy;if(l){const d=i.destroyHooks||(i.destroyHooks=[]);if(!r&&t.multi){const f=d.indexOf(e);-1===f?d.push(e,[n,l]):d[f+1].push(n,l)}else d.push(e,l)}}}function hL(i,t,e){return e&&i.componentProviders++,i.multi.push(t)-1}function Sx(i,t,e,n){for(let r=e;r{e.providersResolver=(n,r)=>function LW(i,t,e){const n=Kn();if(n.firstCreatePass){const r=wa(i);kx(e,n.data,n.blueprint,r,!0),kx(t,n.data,n.blueprint,r,!1)}}(n,r?r(i):i,t)}}class Eu{}class pL{}class fL extends Eu{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new fx(this);const n=Fo(t);this._bootstrapComponents=tc(n.bootstrap),this._r3Injector=uP(t,e,[{provide:Eu,useValue:this},{provide:Jl,useValue:this.componentFactoryResolver}],xi(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ax extends pL{constructor(t){super(),this.moduleType=t}create(t){return new fL(this.moduleType,t)}}class HW extends Eu{constructor(t,e,n){super(),this.componentFactoryResolver=new fx(this),this.instance=null;const r=new CF([...t,{provide:Eu,useValue:this},{provide:Jl,useValue:this.componentFactoryResolver}],e||Ky(),n,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function b0(i,t,e=null){return new HW(i,t,e).injector}let YW=(()=>{class i{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const n=_F(0,e.type),r=n.length>0?b0([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return i.\u0275prov=$e({token:i,providedIn:"environment",factory:()=>new i(Ee(od))}),i})();function Ix(i){i.getStandaloneInjector=t=>t.get(YW).getOrCreateStandaloneInjector(i)}function oc(i,t,e){const n=no()+i,r=at();return r[n]===Tn?hl(r,n,e?t.call(e):t()):function dm(i,t){return i[t]}(r,n)}function Ct(i,t,e,n){return wL(at(),no(),i,t,e,n)}function yi(i,t,e,n,r){return function DL(i,t,e,n,r,o,a){const s=t+e;return ku(i,s,r,o)?hl(i,s+2,a?n.call(a,r,o):n(r,o)):ym(i,s+2)}(at(),no(),i,t,e,n,r)}function CL(i,t,e,n,r,o,a){return function xL(i,t,e,n,r,o,a,s,l){const d=t+e;return Wa(i,d,r,o,a,s)?hl(i,d+4,l?n.call(l,r,o,a,s):n(r,o,a,s)):ym(i,d+4)}(at(),no(),i,t,e,n,r,o,a)}function ym(i,t){const e=i[t];return e===Tn?void 0:e}function wL(i,t,e,n,r,o){const a=t+e;return vo(i,a,r)?hl(i,a+1,o?n.call(o,r):n(r)):ym(i,a+1)}function Qt(i,t){const e=Kn();let n;const r=i+22;e.firstCreatePass?(n=function tG(i,t){if(t)for(let e=t.length-1;e>=0;e--){const n=t[e];if(i===n.name)return n}}(t,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,n.onDestroy)):n=e.data[r];const o=n.factory||(n.factory=Wl(n.type)),a=ea(U);try{const s=up(!1),l=o();return up(s),function iz(i,t,e,n){e>=i.data.length&&(i.data[e]=null,i.blueprint[e]=null),t[e]=n}(e,at(),r,l),l}finally{ea(a)}}function Xt(i,t,e){const n=i+22,r=at(),o=td(r,n);return function bm(i,t){return i[1].data[t].pure}(r,n)?wL(r,no(),t,o.transform,e,o):o.transform(e)}function Rx(i){return t=>{setTimeout(i,void 0,t)}}const Ae=class aG extends be{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r=t,o=e||(()=>null),a=n;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=Rx(o),r&&(r=Rx(r)),a&&(a=Rx(a)));const s=super.subscribe({next:r,error:o,complete:a});return t instanceof D&&t.add(s),s}};function sG(){return this._results[xu()]()}class cd{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=xu(),n=cd.prototype;n[e]||(n[e]=sG)}get changes(){return this._changes||(this._changes=new Ae)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const r=Da(t);(this._changesDetected=!function wY(i,t,e){if(i.length!==t.length)return!1;for(let n=0;n{class i{}return i.__NG_ELEMENT_ID__=dG,i})();const lG=Ui,cG=class extends lG{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t,e){const n=this._declarationTContainer.tViews,r=r0(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[19];return null!==a&&(r[19]=a.createEmbeddedView(n)),rx(n,r,t),new sm(r)}};function dG(){return C0(Cr(),at())}function C0(i,t){return 4&i.type?new cG(t,i,Cp(i,t)):null}let Mr=(()=>{class i{}return i.__NG_ELEMENT_ID__=uG,i})();function uG(){return EL(Cr(),at())}const hG=Mr,TL=class extends hG{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Cp(this._hostTNode,this._hostLView)}get injector(){return new fr(this._hostTNode,this._hostLView)}get parentInjector(){const t=ys(this._hostTNode,this._hostLView);if(By(t)){const e=rd(t,this._hostLView),n=id(t);return new fr(e[1].data[n+8],e)}return new fr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=SL(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){let r,o;"number"==typeof n?r=n:null!=n&&(r=n.index,o=n.injector);const a=t.createEmbeddedView(e||{},o);return this.insert(a,r),a}createComponent(t,e,n,r,o){const a=t&&!function Kg(i){return"function"==typeof i}(t);let s;if(a)s=e;else{const y=e||{};s=y.index,n=y.injector,r=y.projectableNodes,o=y.environmentInjector||y.ngModuleRef}const l=a?t:new lm(fi(t)),d=n||this.parentInjector;if(!o&&null==l.ngModule){const k=(a?d:this.parentInjector).get(od,null);k&&(o=k)}const f=l.create(d,r,void 0,o);return this.insert(f.hostView,s),f}insert(t,e){const n=t._lView,r=n[1];if(function ID(i){return Ca(i[3])}(n)){const f=this.indexOf(t);if(-1!==f)this.detach(f);else{const y=n[3],k=new TL(y,y[6],y[3]);k.detach(k.indexOf(t))}}const o=this._adjustIndex(e),a=this._lContainer;!function bj(i,t,e,n){const r=10+n,o=e.length;n>0&&(e[r-1][4]=t),n0)n.push(a[s/2]);else{const d=o[s+1],f=t[-l];for(let y=10;y{class i{constructor(e){this.appInits=e,this.resolve=D0,this.reject=D0,this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],n=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:s,error:l})});e.push(a)}}Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),0===e.length&&n(),this.initialized=!0}}return i.\u0275fac=function(e){return new(e||i)(Ee(M0,8))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const wm=new nt("AppId",{providedIn:"root",factory:function JL(){return`${zx()}${zx()}${zx()}`}});function zx(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const eO=new nt("Platform Initializer"),dd=new nt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),tO=new nt("appBootstrapListener"),oa=new nt("AnimationModuleType");let HG=(()=>{class i{log(e){console.log(e)}warn(e){console.warn(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"platform"}),i})();const _l=new nt("LocaleId",{providedIn:"root",factory:()=>Hi(_l,rn.Optional|rn.SkipSelf)||function YG(){return typeof $localize<"u"&&$localize.locale||Hp}()}),UG=new nt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class jG{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let Wx=(()=>{class i{compileModuleSync(e){return new Ax(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),o=tc(Fo(e).declarations).reduce((a,s)=>{const l=fi(s);return l&&a.push(new lm(l)),a},[]);return new jG(n,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const WG=(()=>Promise.resolve(0))();function Gx(i){typeof Zone>"u"?WG.then(()=>{i&&i.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",i)}class Bt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ae(!1),this.onMicrotaskEmpty=new Ae(!1),this.onStable=new Ae(!1),this.onError=new Ae(!1),typeof Zone>"u")throw new et(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function GG(){let i=Fi.requestAnimationFrame,t=Fi.cancelAnimationFrame;if(typeof Zone<"u"&&i&&t){const e=i[Zone.__symbol__("OriginalDelegate")];e&&(i=e);const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function ZG(i){const t=()=>{!function KG(i){i.isCheckStableRunning||-1!==i.lastRequestAnimationFrameId||(i.lastRequestAnimationFrameId=i.nativeRequestAnimationFrame.call(Fi,()=>{i.fakeTopEventTask||(i.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{i.lastRequestAnimationFrameId=-1,Kx(i),i.isCheckStableRunning=!0,qx(i),i.isCheckStableRunning=!1},void 0,()=>{},()=>{})),i.fakeTopEventTask.invoke()}),Kx(i))}(i)};i._inner=i._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,o,a,s)=>{try{return rO(i),e.invokeTask(r,o,a,s)}finally{(i.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||i.shouldCoalesceRunChangeDetection)&&t(),oO(i)}},onInvoke:(e,n,r,o,a,s,l)=>{try{return rO(i),e.invoke(r,o,a,s,l)}finally{i.shouldCoalesceRunChangeDetection&&t(),oO(i)}},onHasTask:(e,n,r,o)=>{e.hasTask(r,o),n===r&&("microTask"==o.change?(i._hasPendingMicrotasks=o.microTask,Kx(i),qx(i)):"macroTask"==o.change&&(i.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,r,o)=>(e.handleError(r,o),i.runOutsideAngular(()=>i.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Bt.isInAngularZone())throw new et(909,!1)}static assertNotInAngularZone(){if(Bt.isInAngularZone())throw new et(909,!1)}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,t,qG,D0,D0);try{return o.runTask(a,e,n)}finally{o.cancelTask(a)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const qG={};function qx(i){if(0==i._nesting&&!i.hasPendingMicrotasks&&!i.isStable)try{i._nesting++,i.onMicrotaskEmpty.emit(null)}finally{if(i._nesting--,!i.hasPendingMicrotasks)try{i.runOutsideAngular(()=>i.onStable.emit(null))}finally{i.isStable=!0}}}function Kx(i){i.hasPendingMicrotasks=!!(i._hasPendingMicrotasks||(i.shouldCoalesceEventChangeDetection||i.shouldCoalesceRunChangeDetection)&&-1!==i.lastRequestAnimationFrameId)}function rO(i){i._nesting++,i.isStable&&(i.isStable=!1,i.onUnstable.emit(null))}function oO(i){i._nesting--,qx(i)}class QG{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ae,this.onMicrotaskEmpty=new Ae,this.onStable=new Ae,this.onError=new Ae}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}const aO=new nt(""),k0=new nt("");let Xx,Zx=(()=>{class i{constructor(e,n,r){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Xx||(function XG(i){Xx=i}(r),r.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Bt.assertNotInAngularZone(),Gx(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Gx(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,r){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,n,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,r){return[]}}return i.\u0275fac=function(e){return new(e||i)(Ee(Bt),Ee(Qx),Ee(k0))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})(),Qx=(()=>{class i{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return Xx?.findTestabilityInTree(this,e,n)??null}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"platform"}),i})(),ud=null;const sO=new nt("AllowMultipleToken"),Jx=new nt("PlatformDestroyListeners");class lO{constructor(t,e){this.name=t,this.token=e}}function dO(i,t,e=[]){const n=`Platform: ${t}`,r=new nt(n);return(o=[])=>{let a=ek();if(!a||a.injector.get(sO,!1)){const s=[...e,...o,{provide:r,useValue:!0}];i?i(s):function tq(i){if(ud&&!ud.get(sO,!1))throw new et(400,!1);ud=i;const t=i.get(hO);(function cO(i){const t=i.get(eO,null);t&&t.forEach(e=>e())})(i)}(function uO(i=[],t){return Li.create({name:t,providers:[{provide:_M,useValue:"platform"},{provide:Jx,useValue:new Set([()=>ud=null])},...i]})}(s,n))}return function iq(i){const t=ek();if(!t)throw new et(401,!1);return t}()}}function ek(){return ud?.get(hO)??null}let hO=(()=>{class i{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const r=function fO(i,t){let e;return e="noop"===i?new QG:("zone.js"===i?void 0:i)||new Bt(t),e}(n?.ngZone,function pO(i){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!i||!i.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!i||!i.ngZoneRunCoalescing)||!1}}(n)),o=[{provide:Bt,useValue:r}];return r.run(()=>{const a=Li.create({providers:o,parent:this.injector,name:e.moduleType.name}),s=e.create(a),l=s.injector.get(ec,null);if(!l)throw new et(402,!1);return r.runOutsideAngular(()=>{const d=r.onError.subscribe({next:f=>{l.handleError(f)}});s.onDestroy(()=>{T0(this._modules,s),d.unsubscribe()})}),function gO(i,t,e){try{const n=e();return hm(n)?n.catch(r=>{throw t.runOutsideAngular(()=>i.handleError(r)),r}):n}catch(n){throw t.runOutsideAngular(()=>i.handleError(n)),n}}(l,r,()=>{const d=s.injector.get(x0);return d.runInitializers(),d.donePromise.then(()=>(function UR(i){Io(i,"Expected localeId to be defined"),"string"==typeof i&&(YR=i.toLowerCase().replace(/_/g,"-"))}(s.injector.get(_l,Hp)||Hp),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,n=[]){const r=mO({},n);return function JG(i,t,e){const n=new Ax(e);return Promise.resolve(n)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const n=e.injector.get(hd);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new et(403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new et(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(Jx,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return i.\u0275fac=function(e){return new(e||i)(Ee(Li))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"platform"}),i})();function mO(i,t){return Array.isArray(t)?t.reduce(mO,i):{...i,...t}}let hd=(()=>{class i{constructor(e,n,r){this._zone=e,this._injector=n,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new S(s=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{s.next(this._stable),s.complete()})}),a=new S(s=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Bt.assertNotInAngularZone(),Gx(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,s.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{Bt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{s.next(!1)}))});return()=>{l.unsubscribe(),d.unsubscribe()}});this.isStable=jr(o,a.pipe(yg()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,n){const r=e instanceof DF;if(!this._injector.get(x0).done)throw!r&&function ya(i){const t=fi(i)||$r(i)||to(i);return null!==t&&t.standalone}(e),new et(405,false);let a;a=r?e:this._injector.get(Jl).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function eq(i){return i.isBoundToModule}(a)?void 0:this._injector.get(Eu),d=a.create(Li.NULL,[],n||a.selector,s),f=d.location.nativeElement,y=d.injector.get(aO,null);return y?.registerApplication(f),d.onDestroy(()=>{this.detachView(d.hostView),T0(this.components,d),y?.unregisterApplication(f)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new et(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;T0(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(tO,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>T0(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new et(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return i.\u0275fac=function(e){return new(e||i)(Ee(Bt),Ee(od),Ee(ec))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function T0(i,t){const e=i.indexOf(t);e>-1&&i.splice(e,1)}let vO=!0,ui=(()=>{class i{}return i.__NG_ELEMENT_ID__=aq,i})();function aq(i){return function sq(i,t,e){if(Jh(i)&&!e){const n=Ro(i.index,t);return new sm(n,n)}return 47&i.type?new sm(t[16],t):null}(Cr(),at(),16==(16&i))}class DO{constructor(){}supports(t){return cm(t)}create(t){return new pq(t)}}const hq=(i,t)=>t;class pq{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||hq}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,o=null;for(;e||n;){const a=!n||e&&e.currentIndex{a=this._trackByFn(r,s),null!==e&&Object.is(e.trackById,a)?(n&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,r),n=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new fq(e,n),o,r),t}_verifyReinsertion(t,e,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new MO),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new MO),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class fq{constructor(t,e){this.item=t,this.trackById=e,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}}class gq{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class MO{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new gq,this.map.set(e,n)),n.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function xO(i,t,e){const n=i.previousIndex;if(null===n)return n;let r=0;return e&&n{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}const n=new _q(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class _q{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function TO(){return new A0([new DO])}let A0=(()=>{class i{constructor(e){this.factories=e}static create(e,n){if(null!=n){const r=n.factories.slice();e=e.concat(r)}return new i(e)}static extend(e){return{provide:i,useFactory:n=>i.create(e,n||TO()),deps:[[i,new Ql,new Cs]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(null!=n)return n;throw new et(901,!1)}}return i.\u0275prov=$e({token:i,providedIn:"root",factory:TO}),i})();function SO(){return new Dm([new kO])}let Dm=(()=>{class i{constructor(e){this.factories=e}static create(e,n){if(n){const r=n.factories.slice();e=e.concat(r)}return new i(e)}static extend(e){return{provide:i,useFactory:n=>i.create(e,n||SO()),deps:[[i,new Ql,new Cs]]}}find(e){const n=this.factories.find(r=>r.supports(e));if(n)return n;throw new et(901,!1)}}return i.\u0275prov=$e({token:i,providedIn:"root",factory:SO}),i})();const bq=dO(null,"core",[]);let Cq=(()=>{class i{constructor(e){}}return i.\u0275fac=function(e){return new(e||i)(Ee(hd))},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({}),i})();function sc(i){return"boolean"==typeof i?i:null!=i&&"false"!==i}function ok(i,t){const e=fi(i),n=t.elementInjector||Ky();return new lm(e).create(n,t.projectableNodes,t.hostElement,t.environmentInjector)}let I0=null;function Ss(){return I0}const Wt=new nt("DocumentToken");let ak=(()=>{class i{historyGo(e){throw new Error("Not implemented")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:function(){return function xq(){return Ee(EO)}()},providedIn:"platform"}),i})();const kq=new nt("Location Initialized");let EO=(()=>{class i extends ak{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ss().getBaseHref(this._doc)}onPopState(e){const n=Ss().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=Ss().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,n,r){AO()?this._history.pushState(e,n,r):this.location.hash=r}replaceState(e,n,r){AO()?this._history.replaceState(e,n,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return i.\u0275fac=function(e){return new(e||i)(Ee(Wt))},i.\u0275prov=$e({token:i,factory:function(){return function Tq(){return new EO(Ee(Wt))}()},providedIn:"platform"}),i})();function AO(){return!!window.history.pushState}function sk(i,t){if(0==i.length)return t;if(0==t.length)return i;let e=0;return i.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?i+t.substring(1):1==e?i+t:i+"/"+t}function IO(i){const t=i.match(/#|\?|$/),e=t&&t.index||i.length;return i.slice(0,e-("/"===i[e-1]?1:0))+i.slice(e)}function lc(i){return i&&"?"!==i[0]?"?"+i:i}let Iu=(()=>{class i{historyGo(e){throw new Error("Not implemented")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:function(){return Hi(PO)},providedIn:"root"}),i})();const FO=new nt("appBaseHref");let PO=(()=>{class i extends Iu{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??Hi(Wt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return sk(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+lc(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,o){const a=this.prepareExternalUrl(r+lc(o));this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){const a=this.prepareExternalUrl(r+lc(o));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return i.\u0275fac=function(e){return new(e||i)(Ee(ak),Ee(FO,8))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Sq=(()=>{class i extends Iu{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=sk(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,o){let a=this.prepareExternalUrl(r+lc(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){let a=this.prepareExternalUrl(r+lc(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return i.\u0275fac=function(e){return new(e||i)(Ee(ak),Ee(FO,8))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})(),pd=(()=>{class i{constructor(e){this._subject=new Ae,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._baseHref=IO(RO(n)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+lc(n))}normalize(e){return i.stripTrailingSlash(function Aq(i,t){return i&&t.startsWith(i)?t.substring(i.length):t}(this._baseHref,RO(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._locationStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+lc(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+lc(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n,complete:r})}}return i.normalizeQueryParams=lc,i.joinWithSlash=sk,i.stripTrailingSlash=IO,i.\u0275fac=function(e){return new(e||i)(Ee(Iu))},i.\u0275prov=$e({token:i,factory:function(){return function Eq(){return new pd(Ee(Iu))}()},providedIn:"root"}),i})();function RO(i){return i.replace(/\/index.html$/,"")}const LO={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var aa=(()=>((aa=aa||{})[aa.Decimal=0]="Decimal",aa[aa.Percent=1]="Percent",aa[aa.Currency=2]="Currency",aa[aa.Scientific=3]="Scientific",aa))(),sn=(()=>((sn=sn||{})[sn.Decimal=0]="Decimal",sn[sn.Group=1]="Group",sn[sn.List=2]="List",sn[sn.PercentSign=3]="PercentSign",sn[sn.PlusSign=4]="PlusSign",sn[sn.MinusSign=5]="MinusSign",sn[sn.Exponential=6]="Exponential",sn[sn.SuperscriptingExponent=7]="SuperscriptingExponent",sn[sn.PerMille=8]="PerMille",sn[sn.Infinity=9]="Infinity",sn[sn.NaN=10]="NaN",sn[sn.TimeSeparator=11]="TimeSeparator",sn[sn.CurrencyDecimal=12]="CurrencyDecimal",sn[sn.CurrencyGroup=13]="CurrencyGroup",sn))();function Ga(i,t){const e=Bo(i),n=e[St.NumberSymbols][t];if(typeof n>"u"){if(t===sn.CurrencyDecimal)return e[St.NumberSymbols][sn.Decimal];if(t===sn.CurrencyGroup)return e[St.NumberSymbols][sn.Group]}return n}const nK=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function aK(i,t,e,n,r){const a=function fk(i,t="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=i.split(";"),r=n[0],o=n[1],a=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=a[0],l=a[1]||"";e.posPre=s.substring(0,s.indexOf("#"));for(let f=0;f-1&&(t=t.replace(".","")),(o=t.search(/e/i))>0?(r<0&&(r=o),r+=+t.slice(o+1),t=t.substring(0,o)):r<0&&(r=t.length),o=0;"0"===t.charAt(o);o++);if(o===(s=t.length))n=[0],r=1;else{for(s--;"0"===t.charAt(s);)s--;for(r-=o,n=[],a=0;o<=s;o++,a++)n[a]=Number(t.charAt(o))}return r>22&&(n=n.splice(0,21),e=r-1,r=1),{digits:n,exponent:e,integerLen:r}}(i);a&&(d=function cK(i){if(0===i.digits[0])return i;const t=i.digits.length-i.integerLen;return i.exponent?i.exponent+=2:(0===t?i.digits.push(0,0):1===t&&i.digits.push(0),i.integerLen+=2),i}(d));let f=t.minInt,y=t.minFrac,k=t.maxFrac;if(o){const Ce=o.match(nK);if(null===Ce)throw new Error(`${o} is not a valid digit info`);const we=Ce[1],ke=Ce[3],Pe=Ce[5];null!=we&&(f=gk(we)),null!=ke&&(y=gk(ke)),null!=Pe?k=gk(Pe):null!=ke&&y>k&&(k=y)}!function uK(i,t,e){if(t>e)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${e}).`);let n=i.digits,r=n.length-i.integerLen;const o=Math.min(Math.max(t,r),e);let a=o+i.integerLen,s=n[a];if(a>0){n.splice(Math.max(i.integerLen,a));for(let y=a;y=5)if(a-1<0){for(let y=0;y>a;y--)n.unshift(0),i.integerLen++;n.unshift(1),i.integerLen++}else n[a-1]++;for(;r=d?W.pop():l=!1),k>=10?1:0},0);f&&(n.unshift(f),i.integerLen++)}(d,y,k);let E=d.digits,W=d.integerLen;const ee=d.exponent;let he=[];for(l=E.every(Ce=>!Ce);W0?he=E.splice(W,E.length):(he=E,E=[0]);const ge=[];for(E.length>=t.lgSize&&ge.unshift(E.splice(-t.lgSize,E.length).join(""));E.length>t.gSize;)ge.unshift(E.splice(-t.gSize,E.length).join(""));E.length&&ge.unshift(E.join("")),s=ge.join(Ga(e,n)),he.length&&(s+=Ga(e,r)+he.join("")),ee&&(s+=Ga(e,sn.Exponential)+"+"+ee)}else s=Ga(e,sn.Infinity);return s=i<0&&!l?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf,s}(i,a,t,sn.CurrencyGroup,sn.CurrencyDecimal,r).replace("\xa4",e).replace("\xa4","").trim()}function gk(i){const t=parseInt(i);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+i);return t}function jO(i,t){t=encodeURIComponent(t);for(const e of i.split(";")){const n=e.indexOf("="),[r,o]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let Zi=(()=>{class i{constructor(e,n,r,o){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(cm(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachChangedItem(n=>this._toggleClass(n.key,n.currentValue)),e.forEachRemovedItem(n=>{n.previousValue&&this._toggleClass(n.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(n=>{if("string"!=typeof n.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${xi(n.item)}`);this._toggleClass(n.item,!0)}),e.forEachRemovedItem(n=>this._toggleClass(n.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(n=>this._toggleClass(n,!0)):Object.keys(e).forEach(n=>this._toggleClass(n,!!e[n])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(n=>this._toggleClass(n,!1)):Object.keys(e).forEach(n=>this._toggleClass(n,!1)))}_toggleClass(e,n){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return i.\u0275fac=function(e){return new(e||i)(U(A0),U(Dm),U(Pt),U(ka))},i.\u0275dir=it({type:i,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),i})();class fK{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let jt=(()=>{class i{constructor(e,n,r){this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const n=this._viewContainer;e.forEachOperation((r,o,a)=>{if(null==r.previousIndex)n.createEmbeddedView(this._template,new fK(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)n.remove(null===o?void 0:o);else if(null!==o){const s=n.get(o);n.move(s,a),WO(s,r)}});for(let r=0,o=n.length;r{WO(n.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,n){return!0}}return i.\u0275fac=function(e){return new(e||i)(U(Mr),U(Ui),U(A0))},i.\u0275dir=it({type:i,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),i})();function WO(i,t){i.context.$implicit=t.item}let ct=(()=>{class i{constructor(e,n){this._viewContainer=e,this._context=new mK,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){GO("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){GO("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){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)))}static ngTemplateContextGuard(e,n){return!0}}return i.\u0275fac=function(e){return new(e||i)(U(Mr),U(Ui))},i.\u0275dir=it({type:i,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),i})();class mK{constructor(){this.$implicit=null,this.ngIf=null}}function GO(i,t){if(t&&!t.createEmbeddedView)throw new Error(`${i} must be a TemplateRef, but received '${xi(t)}'.`)}class _k{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let dc=(()=>{class i{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let n=0;n{class i{constructor(e,n,r){this.ngSwitch=r,r._addCase(),this._view=new _k(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return i.\u0275fac=function(e){return new(e||i)(U(Mr),U(Ui),U(dc,9))},i.\u0275dir=it({type:i,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),i})(),Y0=(()=>{class i{constructor(e,n,r){r._addDefault(new _k(e,n))}}return i.\u0275fac=function(e){return new(e||i)(U(Mr),U(Ui),U(dc,9))},i.\u0275dir=it({type:i,selectors:[["","ngSwitchDefault",""]],standalone:!0}),i})(),As=(()=>{class i{constructor(e,n,r){this._ngEl=e,this._differs=n,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){const[r,o]=e.split("."),a=-1===r.indexOf("-")?void 0:ra.DashCase;null!=n?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${n}${o}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(Dm),U(ka))},i.\u0275dir=it({type:i,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),i})(),jp=(()=>{class i{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:a}=this;this._viewRef=n.createEmbeddedView(r,o,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return i.\u0275fac=function(e){return new(e||i)(U(Mr))},i.\u0275dir=it({type:i,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[_i]}),i})();function Is(i,t){return new et(2100,!1)}class vK{createSubscription(t,e){return t.subscribe({next:e,error:n=>{throw n}})}dispose(t){t.unsubscribe()}}class yK{createSubscription(t,e){return t.then(e,n=>{throw n})}dispose(t){}}const bK=new yK,CK=new vK;let U0=(()=>{class i{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(hm(e))return bK;if(nR(e))return CK;throw Is()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}}return i.\u0275fac=function(e){return new(e||i)(U(ui,16))},i.\u0275pipe=Yn({name:"async",type:i,pure:!1,standalone:!0}),i})(),ZO=(()=>{class i{constructor(e,n="USD"){this._locale=e,this._defaultCurrencyCode=n}transform(e,n=this._defaultCurrencyCode,r="symbol",o,a){if(!function vk(i){return!(null==i||""===i||i!=i)}(e))return null;a=a||this._locale,"boolean"==typeof r&&(r=r?"symbol":"code");let s=n||this._defaultCurrencyCode;"code"!==r&&(s="symbol"===r||"symbol-narrow"===r?function Hq(i,t,e="en"){const n=function Oq(i){return Bo(i)[St.Currencies]}(e)[i]||LO[i]||[],r=n[1];return"narrow"===t&&"string"==typeof r?r:n[0]||i}(s,"symbol"===r?"wide":"narrow",a):r);try{return aK(function yk(i){if("string"==typeof i&&!isNaN(Number(i)-parseFloat(i)))return Number(i);if("number"!=typeof i)throw new Error(`${i} is not a number`);return i}(e),a,s,n,o)}catch(l){throw Is()}}}return i.\u0275fac=function(e){return new(e||i)(U(_l,16),U(UG,16))},i.\u0275pipe=Yn({name:"currency",type:i,pure:!0,standalone:!0}),i})();let ki=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({}),i})();const QO="browser";function Fs(i){return i===QO}let HK=(()=>{class i{}return i.\u0275prov=$e({token:i,providedIn:"root",factory:()=>new YK(Ee(Wt),window)}),i})();class YK{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function UK(i,t){const e=i.getElementById(t)||i.getElementsByName(t)[0];if(e)return e;if("function"==typeof i.createTreeWalker&&i.body&&(i.body.createShadowRoot||i.body.attachShadow)){const n=i.createTreeWalker(i.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const o=r.shadowRoot;if(o){const a=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(a)return a}r=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=XO(this.window.history)||XO(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function XO(i){return Object.getOwnPropertyDescriptor(i,"scrollRestoration")}class JO{}class wk extends class aZ extends class Mq{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function Dq(i){I0||(I0=i)}(new wk)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function sZ(){return Tm=Tm||document.querySelector("base"),Tm?Tm.getAttribute("href"):null}();return null==e?null:function lZ(i){$0=$0||document.createElement("a"),$0.setAttribute("href",i);const t=$0.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Tm=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return jO(document.cookie,t)}}let $0,Tm=null;const r3=new nt("TRANSITION_ID"),dZ=[{provide:M0,useFactory:function cZ(i,t,e){return()=>{e.get(x0).donePromise.then(()=>{const n=Ss(),r=t.querySelectorAll(`style[ng-transition="${i}"]`);for(let o=0;o{class i{build(){return new XMLHttpRequest}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();const z0=new nt("EventManagerPlugins");let W0=(()=>{class i{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,n,r){return this._findPluginFor(n).addEventListener(e,n,r)}addGlobalEventListener(e,n,r){return this._findPluginFor(n).addGlobalEventListener(e,n,r)}getZone(){return this._zone}_findPluginFor(e){const n=this._eventNameToPlugin.get(e);if(n)return n;const r=this._plugins;for(let o=0;o{class i{constructor(){this._stylesSet=new Set}addStyles(e){const n=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),n.add(r))}),this.onStylesAdded(n)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})(),Sm=(()=>{class i extends a3{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,n,r){e.forEach(o=>{const a=this._doc.createElement("style");a.textContent=o,r.push(n.appendChild(a))})}addHost(e){const n=[];this._addStylesToHost(this._stylesSet,e,n),this._hostNodes.set(e,n)}removeHost(e){const n=this._hostNodes.get(e);n&&n.forEach(s3),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((n,r)=>{this._addStylesToHost(e,r,n)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(s3))}}return i.\u0275fac=function(e){return new(e||i)(Ee(Wt))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();function s3(i){Ss().remove(i)}const Dk={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/",math:"http://www.w3.org/1998/MathML/"},Mk=/%COMP%/g;function G0(i,t,e){for(let n=0;n{if("__ngUnwrap__"===t)return i;!1===i(t)&&(t.preventDefault(),t.returnValue=!1)}}let q0=(()=>{class i{constructor(e,n,r){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new xk(e)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;switch(n.encapsulation){case va.Emulated:{let r=this.rendererByCompId.get(n.id);return r||(r=new vZ(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,r)),r.applyToHost(e),r}case 1:case va.ShadowDom:return new yZ(this.eventManager,this.sharedStylesHost,e,n);default:if(!this.rendererByCompId.has(n.id)){const r=G0(n.id,n.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(n.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return i.\u0275fac=function(e){return new(e||i)(Ee(W0),Ee(Sm),Ee(wm))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();class xk{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(Dk[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(h3(t)?t.content:t).appendChild(e)}insertBefore(t,e,n){t&&(h3(t)?t.content:t).insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const o=Dk[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=Dk[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&(ra.DashCase|ra.Important)?t.style.setProperty(e,n,r&ra.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&ra.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,d3(n)):this.eventManager.addEventListener(t,e,d3(n))}}function h3(i){return"TEMPLATE"===i.tagName&&void 0!==i.content}class vZ extends xk{constructor(t,e,n,r){super(t),this.component=n;const o=G0(r+"-"+n.id,n.styles,[]);e.addStyles(o),this.contentAttr=function gZ(i){return"_ngcontent-%COMP%".replace(Mk,i)}(r+"-"+n.id),this.hostAttr=function mZ(i){return"_nghost-%COMP%".replace(Mk,i)}(r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class yZ extends xk{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=G0(r.id,r.styles,[]);for(let a=0;a{class i extends o3{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r){return e.addEventListener(n,r,!1),()=>this.removeEventListener(e,n,r)}removeEventListener(e,n,r){return e.removeEventListener(n,r)}}return i.\u0275fac=function(e){return new(e||i)(Ee(Wt))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();const p3=["alt","control","meta","shift"],CZ={"\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"},wZ={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey};let DZ=(()=>{class i extends o3{constructor(e){super(e)}supports(e){return null!=i.parseEventName(e)}addEventListener(e,n,r){const o=i.parseEventName(n),a=i.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ss().onAndCancel(e,o.domEventName,a))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const o=i._normalizeKey(n.pop());let a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),p3.forEach(d=>{const f=n.indexOf(d);f>-1&&(n.splice(f,1),a+=d+".")}),a+=o,0!=n.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,n){let r=CZ[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),p3.forEach(a=>{a!==r&&(0,wZ[a])(e)&&(o+=a+".")}),o+=r,o===n)}static eventCallback(e,n,r){return o=>{i.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return i.\u0275fac=function(e){return new(e||i)(Ee(Wt))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();const TZ=dO(bq,"browser",[{provide:dd,useValue:QO},{provide:eO,useValue:function MZ(){wk.makeCurrent()},multi:!0},{provide:Wt,useFactory:function kZ(){return function GY(i){sM=i}(document),document},deps:[]}]),m3=new nt(""),_3=[{provide:k0,useClass:class uZ{addToWindow(t){Fi.getAngularTestability=(n,r=!0)=>{const o=t.findTestabilityInTree(n,r);if(null==o)throw new Error("Could not find testability for element.");return o},Fi.getAllAngularTestabilities=()=>t.getAllTestabilities(),Fi.getAllAngularRootElements=()=>t.getAllRootElements(),Fi.frameworkStabilizers||(Fi.frameworkStabilizers=[]),Fi.frameworkStabilizers.push(n=>{const r=Fi.getAllAngularTestabilities();let o=r.length,a=!1;const s=function(l){a=a||l,o--,0==o&&n(a)};r.forEach(function(l){l.whenStable(s)})})}findTestabilityInTree(t,e,n){return null==e?null:t.getTestability(e)??(n?Ss().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:aO,useClass:Zx,deps:[Bt,Qx,k0]},{provide:Zx,useClass:Zx,deps:[Bt,Qx,k0]}],v3=[{provide:_M,useValue:"root"},{provide:ec,useFactory:function xZ(){return new ec},deps:[]},{provide:z0,useClass:bZ,multi:!0,deps:[Wt,Bt,dd]},{provide:z0,useClass:DZ,multi:!0,deps:[Wt]},{provide:q0,useClass:q0,deps:[W0,Sm,wm]},{provide:wp,useExisting:q0},{provide:a3,useExisting:Sm},{provide:Sm,useClass:Sm,deps:[Wt]},{provide:W0,useClass:W0,deps:[z0,Bt]},{provide:JO,useClass:hZ,deps:[]},[]];let y3=(()=>{class i{constructor(e){}static withServerTransition(e){return{ngModule:i,providers:[{provide:wm,useValue:e.appId},{provide:r3,useExisting:wm},dZ]}}}return i.\u0275fac=function(e){return new(e||i)(Ee(m3,12))},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[...v3,..._3],imports:[ki,Cq]}),i})(),b3=(()=>{class i{constructor(e){this._doc=e,this._dom=Ss()}addTag(e,n=!1){return e?this._getOrCreateElement(e,n):null}addTags(e,n=!1){return e?e.reduce((r,o)=>(o&&r.push(this._getOrCreateElement(o,n)),r),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const n=this._doc.querySelectorAll(`meta[${e}]`);return n?[].slice.call(n):[]}updateTag(e,n){if(!e)return null;n=n||this._parseSelector(e);const r=this.getTag(n);return r?this._setMetaElementAttributes(e,r):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,n=!1){if(!n){const a=this._parseSelector(e),s=this.getTags(a).filter(l=>this._containsAttributes(e,l))[0];if(void 0!==s)return s}const r=this._dom.createElement("meta");return this._setMetaElementAttributes(e,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}_setMetaElementAttributes(e,n){return Object.keys(e).forEach(r=>n.setAttribute(this._getMetaKeyMap(r),e[r])),n}_parseSelector(e){const n=e.name?"name":"property";return`${n}="${e[n]}"`}_containsAttributes(e,n){return Object.keys(e).every(r=>n.getAttribute(this._getMetaKeyMap(r))===e[r])}_getMetaKeyMap(e){return EZ[e]||e}}return i.\u0275fac=function(e){return new(e||i)(Ee(Wt))},i.\u0275prov=$e({token:i,factory:function(e){let n=null;return n=e?new e:function SZ(){return new b3(Ee(Wt))}(),n},providedIn:"root"}),i})();const EZ={httpEquiv:"http-equiv"};let C3=(()=>{class i{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return i.\u0275fac=function(e){return new(e||i)(Ee(Wt))},i.\u0275prov=$e({token:i,factory:function(e){let n=null;return n=e?new e:function AZ(){return new C3(Ee(Wt))}(),n},providedIn:"root"}),i})();typeof window<"u"&&window;let Ps=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:function(e){let n=null;return n=e?new(e||i):Ee(M3),n},providedIn:"root"}),i})(),M3=(()=>{class i extends Ps{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case di.NONE:return n;case di.HTML:return dl(n,"HTML")?xa(n):pF(this._doc,String(n)).toString();case di.STYLE:return dl(n,"Style")?xa(n):n;case di.SCRIPT:if(dl(n,"Script"))return xa(n);throw new Error("unsafe value used in a script context");case di.URL:return dl(n,"URL")?xa(n):Wy(String(n));case di.RESOURCE_URL:if(dl(n,"ResourceURL"))return xa(n);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function nU(i){return new ZY(i)}(e)}bypassSecurityTrustStyle(e){return function iU(i){return new QY(i)}(e)}bypassSecurityTrustScript(e){return function rU(i){return new XY(i)}(e)}bypassSecurityTrustUrl(e){return function oU(i){return new JY(i)}(e)}bypassSecurityTrustResourceUrl(e){return function aU(i){return new eU(i)}(e)}}return i.\u0275fac=function(e){return new(e||i)(Ee(Wt))},i.\u0275prov=$e({token:i,factory:function(e){let n=null;return n=e?new e:function NZ(i){return new M3(i.get(Wt))}(Ee(Li)),n},providedIn:"root"}),i})();function At(...i){return er(i,Jr(i))}function gd(i,t){return b(t)?ar(i,t,1):ar(i,1)}function Oi(i,t){return Ne((e,n)=>{let r=0;e.subscribe(Ye(n,o=>i.call(t,o,r++)&&n.next(o)))})}class x3{}class k3{}class vl{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const r=e.slice(0,n),o=r.toLowerCase(),a=e.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof vl?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new vl;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof vl?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===o.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class BZ{encodeKey(t){return T3(t)}encodeValue(t){return T3(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const HZ=/%(\d[a-f0-9])/gi,YZ={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function T3(i){return encodeURIComponent(i).replace(HZ,(t,e)=>YZ[e]??t)}function K0(i){return`${i}`}class md{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new BZ,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function VZ(i,t){const e=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[a,s]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e],r=Array.isArray(n)?n.map(K0):[K0(n)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const r=t[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new md({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(K0(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let n=this.map.get(t.param)||[];const r=n.indexOf(K0(t.value));-1!==r&&n.splice(r,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class UZ{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function S3(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function E3(i){return typeof Blob<"u"&&i instanceof Blob}function A3(i){return typeof FormData<"u"&&i instanceof FormData}class Em{constructor(t,e,n,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function jZ(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new vl),this.context||(this.context=new UZ),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":sy.set(k,t.setHeaders[k]),l)),t.setParams&&(d=Object.keys(t.setParams).reduce((y,k)=>y.set(k,t.setParams[k]),d)),new Em(e,n,o,{params:d,headers:l,context:f,reportProgress:s,responseType:r,withCredentials:a})}}var Tr=(()=>((Tr=Tr||{})[Tr.Sent=0]="Sent",Tr[Tr.UploadProgress=1]="UploadProgress",Tr[Tr.ResponseHeader=2]="ResponseHeader",Tr[Tr.DownloadProgress=3]="DownloadProgress",Tr[Tr.Response=4]="Response",Tr[Tr.User=5]="User",Tr))();class Sk{constructor(t,e=200,n="OK"){this.headers=t.headers||new vl,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ek extends Sk{constructor(t={}){super(t),this.type=Tr.ResponseHeader}clone(t={}){return new Ek({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Am extends Sk{constructor(t={}){super(t),this.type=Tr.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Am({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class I3 extends Sk{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Ak(i,t){return{body:t,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials}}let _d=(()=>{class i{constructor(e){this.handler=e}request(e,n,r={}){let o;if(e instanceof Em)o=e;else{let l,d;l=r.headers instanceof vl?r.headers:new vl(r.headers),r.params&&(d=r.params instanceof md?r.params:new md({fromObject:r.params})),o=new Em(e,n,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:d,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=At(o).pipe(gd(l=>this.handler.handle(l)));if(e instanceof Em||"events"===r.observe)return a;const s=a.pipe(Oi(l=>l instanceof Am));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(Ve(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(Ve(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(Ve(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return s.pipe(Ve(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new md).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,Ak(r,n))}post(e,n,r={}){return this.request("POST",e,Ak(r,n))}put(e,n,r={}){return this.request("PUT",e,Ak(r,n))}}return i.\u0275fac=function(e){return new(e||i)(Ee(x3))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();class F3{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Ik=new nt("HTTP_INTERCEPTORS");let zZ=(()=>{class i{intercept(e,n){return n.handle(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();const WZ=/^\)\]\}',?\n/;let P3=(()=>{class i{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new S(n=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((E,W)=>r.setRequestHeader(E,W.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const E=e.detectContentTypeHeader();null!==E&&r.setRequestHeader("Content-Type",E)}if(e.responseType){const E=e.responseType.toLowerCase();r.responseType="json"!==E?E:"text"}const o=e.serializeBody();let a=null;const s=()=>{if(null!==a)return a;const E=r.statusText||"OK",W=new vl(r.getAllResponseHeaders()),ee=function GZ(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new Ek({headers:W,status:r.status,statusText:E,url:ee}),a},l=()=>{let{headers:E,status:W,statusText:ee,url:he}=s(),ge=null;204!==W&&(ge=typeof r.response>"u"?r.responseText:r.response),0===W&&(W=ge?200:0);let Ce=W>=200&&W<300;if("json"===e.responseType&&"string"==typeof ge){const we=ge;ge=ge.replace(WZ,"");try{ge=""!==ge?JSON.parse(ge):null}catch(ke){ge=we,Ce&&(Ce=!1,ge={error:ke,text:ge})}}Ce?(n.next(new Am({body:ge,headers:E,status:W,statusText:ee,url:he||void 0})),n.complete()):n.error(new I3({error:ge,headers:E,status:W,statusText:ee,url:he||void 0}))},d=E=>{const{url:W}=s(),ee=new I3({error:E,status:r.status||0,statusText:r.statusText||"Unknown Error",url:W||void 0});n.error(ee)};let f=!1;const y=E=>{f||(n.next(s()),f=!0);let W={type:Tr.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(W.total=E.total),"text"===e.responseType&&!!r.responseText&&(W.partialText=r.responseText),n.next(W)},k=E=>{let W={type:Tr.UploadProgress,loaded:E.loaded};E.lengthComputable&&(W.total=E.total),n.next(W)};return r.addEventListener("load",l),r.addEventListener("error",d),r.addEventListener("timeout",d),r.addEventListener("abort",d),e.reportProgress&&(r.addEventListener("progress",y),null!==o&&r.upload&&r.upload.addEventListener("progress",k)),r.send(o),n.next({type:Tr.Sent}),()=>{r.removeEventListener("error",d),r.removeEventListener("abort",d),r.removeEventListener("load",l),r.removeEventListener("timeout",d),e.reportProgress&&(r.removeEventListener("progress",y),null!==o&&r.upload&&r.upload.removeEventListener("progress",k)),r.readyState!==r.DONE&&r.abort()}})}}return i.\u0275fac=function(e){return new(e||i)(Ee(JO))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();const Fk=new nt("XSRF_COOKIE_NAME"),Pk=new nt("XSRF_HEADER_NAME");class R3{}let qZ=(()=>{class i{constructor(e,n,r){this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=jO(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return i.\u0275fac=function(e){return new(e||i)(Ee(Wt),Ee(dd),Ee(Fk))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})(),Rk=(()=>{class i{constructor(e,n){this.tokenService=e,this.headerName=n}intercept(e,n){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return n.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),n.handle(e)}}return i.\u0275fac=function(e){return new(e||i)(Ee(R3),Ee(Pk))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})(),KZ=(()=>{class i{constructor(e,n){this.backend=e,this.injector=n,this.chain=null}handle(e){if(null===this.chain){const n=this.injector.get(Ik,[]);this.chain=n.reduceRight((r,o)=>new F3(r,o),this.backend)}return this.chain.handle(e)}}return i.\u0275fac=function(e){return new(e||i)(Ee(k3),Ee(Li))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})(),ZZ=(()=>{class i{static disable(){return{ngModule:i,providers:[{provide:Rk,useClass:zZ}]}}static withOptions(e={}){return{ngModule:i,providers:[e.cookieName?{provide:Fk,useValue:e.cookieName}:[],e.headerName?{provide:Pk,useValue:e.headerName}:[]]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[Rk,{provide:Ik,useExisting:Rk,multi:!0},{provide:R3,useClass:qZ},{provide:Fk,useValue:"XSRF-TOKEN"},{provide:Pk,useValue:"X-XSRF-TOKEN"}]}),i})(),QZ=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[_d,{provide:x3,useClass:KZ},P3,{provide:k3,useExisting:P3}],imports:[ZZ.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),i})();const{isArray:XZ}=Array,{getPrototypeOf:JZ,prototype:eQ,keys:tQ}=Object;function L3(i){if(1===i.length){const t=i[0];if(XZ(t))return{args:t,keys:null};if(function nQ(i){return i&&"object"==typeof i&&JZ(i)===eQ}(t)){const e=tQ(t);return{args:e.map(n=>t[n]),keys:e}}}return{args:i,keys:null}}const{isArray:iQ}=Array;function Lk(i){return Ve(t=>function rQ(i,t){return iQ(t)?i(...t):i(t)}(i,t))}function O3(i,t){return i.reduce((e,n,r)=>(e[n]=t[r],e),{})}function N3(...i){const t=Ji(i),{args:e,keys:n}=L3(i),r=new S(o=>{const{length:a}=e;if(!a)return void o.complete();const s=new Array(a);let l=a,d=a;for(let f=0;f{y||(y=!0,d--),s[f]=k},()=>l--,void 0,()=>{(!l||!y)&&(d||o.next(n?O3(n,s):s),o.complete())}))}});return t?r.pipe(Lk(t)):r}let B3=(()=>{class i{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return i.\u0275fac=function(e){return new(e||i)(U(ka),U(Pt))},i.\u0275dir=it({type:i}),i})(),Pu=(()=>{class i extends B3{}return i.\u0275fac=function(){let t;return function(n){return(t||(t=Pi(i)))(n||i)}}(),i.\u0275dir=it({type:i,features:[st]}),i})();const sa=new nt("NgValueAccessor"),oQ={provide:sa,useExisting:Fn(()=>yl),multi:!0};let yl=(()=>{class i extends Pu{writeValue(e){this.setProperty("checked",e)}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=Pi(i)))(n||i)}}(),i.\u0275dir=it({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,n){1&e&&N("change",function(o){return n.onChange(o.target.checked)})("blur",function(){return n.onTouched()})},features:[Pn([oQ]),st]}),i})();const aQ={provide:sa,useExisting:Fn(()=>Bn),multi:!0},lQ=new nt("CompositionEventMode");let Bn=(()=>{class i extends B3{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function sQ(){const i=Ss()?Ss().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return i.\u0275fac=function(e){return new(e||i)(U(ka),U(Pt),U(lQ,8))},i.\u0275dir=it({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,n){1&e&&N("input",function(o){return n._handleInput(o.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(o){return n._compositionEnd(o.target.value)})},features:[Pn([aQ]),st]}),i})();function vd(i){return null==i||("string"==typeof i||Array.isArray(i))&&0===i.length}function V3(i){return null!=i&&"number"==typeof i.length}const qr=new nt("NgValidators"),yd=new nt("NgAsyncValidators"),dQ=/^(?=.{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])?)*$/;class H3{static min(t){return function Y3(i){return t=>{if(vd(t.value)||vd(i))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(vd(t.value)||vd(i))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}(t)}static required(t){return j3(t)}static requiredTrue(t){return function $3(i){return!0===i.value?null:{required:!0}}(t)}static email(t){return function z3(i){return vd(i.value)||dQ.test(i.value)?null:{email:!0}}(t)}static minLength(t){return function W3(i){return t=>vd(t.value)||!V3(t.value)?null:t.value.lengthV3(t.value)&&t.value.length>i?{maxlength:{requiredLength:i,actualLength:t.value.length}}:null}(t)}static pattern(t){return function q3(i){if(!i)return Z0;let t,e;return"string"==typeof i?(e="","^"!==i.charAt(0)&&(e+="^"),e+=i,"$"!==i.charAt(i.length-1)&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(vd(n.value))return null;const r=n.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return eN(t)}static composeAsync(t){return tN(t)}}function j3(i){return vd(i.value)?{required:!0}:null}function Z0(i){return null}function K3(i){return null!=i}function Z3(i){return hm(i)?er(i):i}function Q3(i){let t={};return i.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function X3(i,t){return t.map(e=>e(i))}function J3(i){return i.map(t=>function uQ(i){return!i.validate}(t)?t:e=>t.validate(e))}function eN(i){if(!i)return null;const t=i.filter(K3);return 0==t.length?null:function(e){return Q3(X3(e,t))}}function Ok(i){return null!=i?eN(J3(i)):null}function tN(i){if(!i)return null;const t=i.filter(K3);return 0==t.length?null:function(e){return N3(X3(e,t).map(Z3)).pipe(Ve(Q3))}}function Nk(i){return null!=i?tN(J3(i)):null}function nN(i,t){return null===i?[t]:Array.isArray(i)?[...i,t]:[i,t]}function iN(i){return i._rawValidators}function rN(i){return i._rawAsyncValidators}function Bk(i){return i?Array.isArray(i)?i:[i]:[]}function Q0(i,t){return Array.isArray(i)?i.includes(t):i===t}function oN(i,t){const e=Bk(t);return Bk(i).forEach(r=>{Q0(e,r)||e.push(r)}),e}function aN(i,t){return Bk(t).filter(e=>!Q0(i,e))}class sN{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Ok(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Nk(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Yo extends sN{get formDirective(){return null}get path(){return null}}class uc extends sN{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class lN{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let vn=(()=>{class i extends lN{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(U(uc,2))},i.\u0275dir=it({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,n){2&e&&Zt("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},features:[st]}),i})(),Vk=(()=>{class i extends lN{constructor(e){super(e)}}return i.\u0275fac=function(e){return new(e||i)(U(Yo,10))},i.\u0275dir=it({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,n){2&e&&Zt("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)("ng-submitted",n.isSubmitted)},features:[st]}),i})();const Im="VALID",J0="INVALID",$p="PENDING",Fm="DISABLED";function jk(i){return(e1(i)?i.validators:i)||null}function dN(i){return Array.isArray(i)?Ok(i):i||null}function $k(i,t){return(e1(t)?t.asyncValidators:i)||null}function uN(i){return Array.isArray(i)?Nk(i):i||null}function e1(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}class fN{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=dN(this._rawValidators),this._composedAsyncValidatorFn=uN(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Im}get invalid(){return this.status===J0}get pending(){return this.status==$p}get disabled(){return this.status===Fm}get enabled(){return this.status!==Fm}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=dN(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=uN(t)}addValidators(t){this.setValidators(oN(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(oN(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(aN(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(aN(t,this._rawAsyncValidators))}hasValidator(t){return Q0(this._rawValidators,t)}hasAsyncValidator(t){return Q0(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=$p,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Fm,this.errors=null,this._forEachChild(n=>{n.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Im,this._forEachChild(n=>{n.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Im||this.status===$p)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Fm:Im}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=$p,this._hasOwnPendingAsyncValidator=!0;const e=Z3(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ae,this.statusChanges=new Ae}_calculateStatus(){return this._allControlsDisabled()?Fm:this.errors?J0:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus($p)?$p:this._anyControlsHaveStatus(J0)?J0:Im}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){e1(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class zk extends fN{constructor(t,e,n){super(jk(e),$k(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function pN(i,t,e){i._forEachChild((n,r)=>{if(void 0===e[r])throw new et(1002,"")})})(this,0,t),Object.keys(t).forEach(n=>{(function hN(i,t,e){const n=i.controls;if(!(t?Object.keys(n):n).length)throw new et(1e3,"");if(!n[e])throw new et(1001,"")})(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{const r=this.controls[n];r&&r.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,n]of Object.entries(this.controls))if(this.contains(e)&&t(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(t,e){let n=t;return this._forEachChild((r,o)=>{n=e(n,r,o)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}function Pm(i,t){Wk(i,t),t.valueAccessor.writeValue(i.value),i.disabled&&t.valueAccessor.setDisabledState?.(!0),function bQ(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&gN(i,t)})}(i,t),function wQ(i,t){const e=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}(i,t),function CQ(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&gN(i,t),"submit"!==i.updateOn&&i.markAsTouched()})}(i,t),function yQ(i,t){if(t.valueAccessor.setDisabledState){const e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}(i,t)}function n1(i,t,e=!0){const n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),o1(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function r1(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Wk(i,t){const e=iN(i);null!==t.validator?i.setValidators(nN(e,t.validator)):"function"==typeof e&&i.setValidators([e]);const n=rN(i);null!==t.asyncValidator?i.setAsyncValidators(nN(n,t.asyncValidator)):"function"==typeof n&&i.setAsyncValidators([n]);const r=()=>i.updateValueAndValidity();r1(t._rawValidators,r),r1(t._rawAsyncValidators,r)}function o1(i,t){let e=!1;if(null!==i){if(null!==t.validator){const r=iN(i);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==t.validator);o.length!==r.length&&(e=!0,i.setValidators(o))}}if(null!==t.asyncValidator){const r=rN(i);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==t.asyncValidator);o.length!==r.length&&(e=!0,i.setAsyncValidators(o))}}}const n=()=>{};return r1(t._rawValidators,n),r1(t._rawAsyncValidators,n),e}function gN(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function mN(i,t){Wk(i,t)}function vN(i,t){i._syncPendingControls(),t.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}const TQ={provide:Yo,useExisting:Fn(()=>zp)},Rm=(()=>Promise.resolve())();let zp=(()=>{class i extends Yo{constructor(e,n){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ae,this.form=new zk({},Ok(e),Nk(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Rm.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Pm(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Rm.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Rm.then(()=>{const n=this._findContainer(e.path),r=new zk({});mN(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Rm.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Rm.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,vN(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return i.\u0275fac=function(e){return new(e||i)(U(qr,10),U(yd,10))},i.\u0275dir=it({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,n){1&e&&N("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Pn([TQ]),st]}),i})();function yN(i,t){const e=i.indexOf(t);e>-1&&i.splice(e,1)}function bN(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}const CN=class extends fN{constructor(t=null,e,n){super(jk(e),$k(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),e1(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=bN(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){yN(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){yN(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){bN(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},AQ={provide:uc,useExisting:Fn(()=>pn)},MN=(()=>Promise.resolve())();let pn=(()=>{class i extends uc{constructor(e,n,r,o,a){super(),this._changeDetectorRef=a,this.control=new CN,this._registered=!1,this.update=new Ae,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=function qk(i,t){if(!t)return null;let e,n,r;return Array.isArray(t),t.forEach(o=>{o.constructor===Bn?e=o:function xQ(i){return Object.getPrototypeOf(i.constructor)===Pu}(o)?n=o:r=o}),r||n||e||null}(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function Gk(i,t){if(!i.hasOwnProperty("model"))return!1;const e=i.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Pm(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){MN.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,r=0!==n&&sc(n);MN.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function t1(i,t){return[...t.path,i]}(e,this._parent):[e]}}return i.\u0275fac=function(e){return new(e||i)(U(Yo,9),U(qr,10),U(yd,10),U(sa,10),U(ui,8))},i.\u0275dir=it({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Pn([AQ]),st,_i]}),i})(),Kk=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=it({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i})();const IQ={provide:sa,useExisting:Fn(()=>Rs),multi:!0};let Rs=(()=>{class i extends Pu{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=Pi(i)))(n||i)}}(),i.\u0275dir=it({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,n){1&e&&N("input",function(o){return n.onChange(o.target.value)})("blur",function(){return n.onTouched()})},features:[Pn([IQ]),st]}),i})();const FQ={provide:sa,useExisting:Fn(()=>Zk),multi:!0};let xN=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({}),i})(),PQ=(()=>{class i{constructor(){this._accessors=[]}add(e,n){this._accessors.push([e,n])}remove(e){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===e)return void this._accessors.splice(n,1)}select(e){this._accessors.forEach(n=>{this._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}_isSameGroup(e,n){return!!e[0].control&&e[0]._parent===n._control._parent&&e[1].name===n.name}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:xN}),i})(),Zk=(()=>{class i extends Pu{constructor(e,n,r,o){super(e,n),this._registry=r,this._injector=o,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(uc),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return i.\u0275fac=function(e){return new(e||i)(U(ka),U(Pt),U(PQ),U(Li))},i.\u0275dir=it({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,n){1&e&&N("change",function(){return n.onChange()})("blur",function(){return n.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Pn([FQ]),st]}),i})();const Qk=new nt("NgModelWithFormControlWarning"),OQ={provide:Yo,useExisting:Fn(()=>a1)};let a1=(()=>{class i extends Yo{constructor(e,n){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ae,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(o1(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const n=this.form.get(e.path);return Pm(n,e),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){n1(e.control||null,e,!1),function kQ(i,t){const e=i.indexOf(t);e>-1&&i.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this.submitted=!0,vN(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const n=e.control,r=this.form.get(e.path);n!==r&&(n1(n||null,e),(i=>i instanceof CN)(r)&&(Pm(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const n=this.form.get(e.path);mN(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const n=this.form.get(e.path);n&&function DQ(i,t){return o1(i,t)}(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Wk(this.form,this),this._oldForm&&o1(this._oldForm,this)}_checkFormPresent(){}}return i.\u0275fac=function(e){return new(e||i)(U(qr,10),U(yd,10))},i.\u0275dir=it({type:i,selectors:[["","formGroup",""]],hostBindings:function(e,n){1&e&&N("submit",function(o){return n.onSubmit(o)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Pn([OQ]),st,_i]}),i})();const HQ={provide:sa,useExisting:Fn(()=>Nr),multi:!0};function AN(i,t){return null==i?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${i}: ${t}`.slice(0,50))}let Nr=(()=>{class i extends Pu{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const r=AN(this._getOptionId(e),e);this.setProperty("value",r)}registerOnChange(e){this.onChange=n=>{this.value=this._getOptionValue(n),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const n of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(n),e))return n;return null}_getOptionValue(e){const n=function YQ(i){return i.split(":")[0]}(e);return this._optionMap.has(n)?this._optionMap.get(n):e}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=Pi(i)))(n||i)}}(),i.\u0275dir=it({type:i,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,n){1&e&&N("change",function(o){return n.onChange(o.target.value)})("blur",function(){return n.onTouched()})},inputs:{compareWith:"compareWith"},features:[Pn([HQ]),st]}),i})(),oo=(()=>{class i{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(AN(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(ka),U(Nr,9))},i.\u0275dir=it({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),i})();const UQ={provide:sa,useExisting:Fn(()=>eT),multi:!0};function IN(i,t){return null==i?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${i}: ${t}`.slice(0,50))}let eT=(()=>{class i extends Pu{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let n;if(this.value=e,Array.isArray(e)){const r=e.map(o=>this._getOptionId(o));n=(o,a)=>{o._setSelected(r.indexOf(a.toString())>-1)}}else n=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(e){this.onChange=n=>{const r=[],o=n.selectedOptions;if(void 0!==o){const a=o;for(let s=0;s{class i{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(IN(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(IN(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(ka),U(eT,9))},i.\u0275dir=it({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),i})(),Ru=(()=>{class i{constructor(){this._validator=Z0}ngOnChanges(e){if(this.inputName in e){const n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Z0,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=it({type:i,features:[_i]}),i})();const WQ={provide:qr,useExisting:Fn(()=>Lm),multi:!0};let Lm=(()=>{class i extends Ru{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=sc,this.createValidator=e=>j3}enabled(e){return e}}return i.\u0275fac=function(){let t;return function(n){return(t||(t=Pi(i)))(n||i)}}(),i.\u0275dir=it({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,n){2&e&&mt("required",n._enabled?"":null)},inputs:{required:"required"},features:[Pn([WQ]),st]}),i})(),HN=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[xN]}),i})(),bd=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[HN]}),i})(),XQ=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Qk,useValue:e.warnOnNgModelWithFormControl}]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[HN]}),i})();function YN(i,t,e,n,r,o,a){try{var s=i[o](a),l=s.value}catch(d){return void e(d)}s.done?t(l):Promise.resolve(l).then(n,r)}function z(i){return function(){var t=this,e=arguments;return new Promise(function(n,r){var o=i.apply(t,e);function a(l){YN(o,n,r,a,s,"next",l)}function s(l){YN(o,n,r,a,s,"throw",l)}a(void 0)})}}function ir(i,t,e){const n=b(i)||t||e?{next:i,error:t,complete:e}:i;return n?Ne((r,o)=>{var a;null===(a=n.subscribe)||void 0===a||a.call(n);let s=!0;r.subscribe(Ye(o,l=>{var d;null===(d=n.next)||void 0===d||d.call(n,l),o.next(l)},()=>{var l;s=!1,null===(l=n.complete)||void 0===l||l.call(n),o.complete()},l=>{var d;s=!1,null===(d=n.error)||void 0===d||d.call(n,l),o.error(l)},()=>{var l,d;s&&(null===(l=n.unsubscribe)||void 0===l||l.call(n)),null===(d=n.finalize)||void 0===d||d.call(n)}))}):ve}const nT={now:()=>(nT.delegate||Date).now(),delegate:void 0};class Gt extends be{constructor(t=1/0,e=1/0,n=nT){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(n.push(t),!r&&n.push(o.now()+a)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let a=0;a0&&document.getSelection().getRangeAt(0);n.select(),document.execCommand("copy"),document.body.removeChild(n),r&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),alert(t+"\r\n"+e)}static toEntityHeader(t){return{id:t.id,key:t.key,text:t.name}}static commonLanguages=[{id:"-1",key:"-1",text:"-select language-"},{id:"en-US",key:"en-US",text:"Englsh (United States) (en-US)"},{id:"fr-CA",key:"fr-CA",text:"French (Canada) (fr-ca)"},{id:"fr-FR",key:"fr-FR",text:"French (Standard) (fr)"},{id:"de-DE",key:"de-DE",text:"German (Standard) (de)"},{id:"it-IT",key:"it-IT",text:"Italian (Standard) (it)"},{id:"pt-BR",key:"pt-BR",text:"Portuguese (Brazil) (pt-br)"},{id:"es-US",key:"es-US",text:"Spanish (US) (es-US)"}];static months=[{id:"-1",key:"-1",text:"-select month-"},{id:"1",key:"1",text:"January"},{id:"2",key:"2",text:"February"},{id:"3",key:"3",text:"March"},{id:"4",key:"4",text:"April"},{id:"5",key:"5",text:"May"},{id:"6",key:"6",text:"June"},{id:"7",key:"7",text:"July"},{id:"8",key:"8",text:"August"},{id:"9",key:"9",text:"September"},{id:"10",key:"10",text:"October"},{id:"11",key:"11",text:"November"},{id:"12",key:"12",text:"December"}];static toKey(t){return t&&0!==t.length?t.replace(/\s+/g,"").replaceAll("'","").toLowerCase():""}static getYears(){let t=[];t.push({id:"-1",key:"-1",text:"-select year-"});for(let e=2020;e<(new Date).getFullYear()+4;++e)t.push({id:`${e}`,key:e.toString(),text:`${e}`});return t}static createFormResult(t,e){return{resultId:"childitem",successful:!0,autoSave:!0,saveDraft:!0,autoSaveIntervalSections:30,model:t,formFields:e.formFields,modelHelp:e.modelHelp,modelTitle:e.modelTitle,modelName:e.modelName,view:e.view,isEditing:!0}}static exportable_model_deviceConfiguration="deviceConfiguration";static param_qs_hasValues="_hasValues";static param_qs_appid="appid";static param_qs_dashboard="dashboard";static param_qs_dashboardid="dashboardid";static param_qs_deviceid="deviceid";static param_qs_id="id";static param_qs_repoid="repoid";static param_qs_view="view";static param_qs_appkey="appkey";static param_qs_viewkey="viewkey";static param_qs_widget="widget";static attr_widget_device="device";static attr_widget_repoid="repoid";static advancedViewEditorQueryParameters=[this.param_qs_appid,this.param_qs_widget,this.param_qs_id,this.param_qs_viewkey,this.param_qs_dashboardid];static advancedWidgetEditorQueryParameters=[this.param_qs_appid,this.param_qs_widget,this.param_qs_id,this.param_qs_viewkey,this.param_qs_dashboardid];static dashboardViewQueryParameters=[this.param_qs_appid,this.param_qs_dashboard,this.param_qs_dashboardid,this.param_qs_view];static attrFromProperty(t,e,n="-",r){return{key:t.key,value:e,name:t.name,lastUpdated:r,lastUpdatedBy:n,attributeType:t.fieldType,isAlarm:!1}}static toDateOnly(t,e=!0){const n=t.getMonth()+1,r=n<10?`0${n}`:`${n}`,o=t.getDate()<10?`0${t.getDate()}`:`${t.getDate()}`;return e?`${t.getFullYear()}/${r}/${o}`:`${r}/${o}/${t.getFullYear()}`}static toYYYYMMDDhhmmss(t){const e=new Date(t);let n=e.getUTCHours(),r=Qn.padZero(e.getSeconds()),o="AM";return n>12&&(n-=12,o="PM"),`${Qn.toDateOnly(e,!1)} ${n}:${Qn.padZero(e.getUTCMinutes())}:${r} ${o}`}static getAllOption(){return{id:"-1",key:"-1",label:"All",text:"All",name:"All"}}static getSelectOption(){return{id:"-1",key:"-1",label:"-select-",text:"-select-",name:"-select-"}}static resolveOption(t){let e=t.options.find(n=>n.key==t.value);return e||(e=t.options.find(n=>"-1"==n.id)),e}static roundCurrency(t){return Math.round(100*t)/100}static fromDateOnly(t){if(t){const e=new Date(t),n=`${e.getMonth()+1}`,r=`${e.getDate()}`;return new Date(`${e.getFullYear()}/${n}/${r}`)}return null}static fromHHMM(t){const e=t.indexOf(":");if(-1!==e){const n=t.substr(0,e),r=t.substr(e+1);return parseFloat(n)+parseFloat(r)/60}return parseFloat(t)}static toHHMM(t,e,n,r=!0){let o="",a=parseInt(t.toString()),s=parseInt(e.toString());return"pm"==n.toLowerCase()&&a<12&&(a+=12),o=a<10?"0"+a.toString():a.toString(),r&&(o+=":"),o+=s<10?"0"+s.toString():s.toString(),o}static dateToHHMM(t){let e="",n=t.getHours(),r=t.getMinutes();return e=0==n?"00":n<10?"0"+n:n.toString(),e+=":",e+=r<10?"0"+r:r.toString(),e}static timeToHHMM(t){const e=parseFloat(t);let n=e%1;n*=.6;let r=n.toFixed(2);return r.startsWith("0.")&&(r=r.substring(2),console.log(!0)),0===r.length?r="00":1===r.length?r+="0":r.length>0&&(r=r.substring(0,2)),`${Math.floor(e)}:${r}`}static isValidTime(t){return/^[0-9]{0,2}[\.:]?[0-9]{0,3}$/.test(t)}static isValidKey(t){return!(!t||0===t.length)&&/^[a-z][a-z0-9]{2,32}$/.test(t)}static padZero(t){return t<10?`0${t}`:`${t}`}static newGuid(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16).toUpperCase()})}static getUrlParameters(t,e){const n={};return t.params.subscribe(r=>{if(r){const o=Object.keys(r);o.length>0&&(o.forEach(a=>{e?e.some(s=>s===a)&&(n[a]=r[a]):n[a]=r[a]}),n._hasValues=Object.keys(n).length>0)}}),n}static getUrlQueryParameters(t,e){const n={};return t.queryParams.subscribe(r=>{if(r){const o=Object.keys(r);o.length>0&&(o.forEach(a=>{e?e.some(s=>s===a)&&(n[a]=r[a]):n[a]=r[a]}),n._hasValues=Object.keys(n).length>0)}}),n}static toEntityHeaderList(t,e="-select-"){let n=t.map(r=>({id:r.id,key:r.key,text:r.name}));return n.unshift({id:"-1",key:"-1",text:e}),n}static toPickerOptionList(t,e="-select-"){let n=t.map(r=>({id:r.id,key:r.key,text:r.name,label:r.name,name:r.name}));return n.unshift({id:"-1",key:"-1",label:e,text:e}),n}static toCamelCase(t){return`${t.substring(0,1).toLowerCase()}${t.substring(1,t.length)}`}static printLogHeader(t,e,n=!1){t&&console.log(n?`begin ${e}${e.endsWith(":")?"":": "}`:e)}static logToConsole(t,e,n){t&&console.log(e,n)}static clone(t,e){const n=JSON.parse(JSON.stringify(t));return e&&e.length>0&&e.forEach(r=>{n[r]=void 0}),n}}class $i extends be{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:n}=this;if(t)throw e;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}}const s1=_(i=>function(){i(this),this.name="EmptyError",this.message="no elements in sequence"});function Om(...i){const t=Jr(i),e=Ji(i),{args:n,keys:r}=L3(i);if(0===n.length)return er([],t);const o=new S(function eX(i,t,e=ve){return n=>{UN(t,()=>{const{length:r}=i,o=new Array(r);let a=r,s=r;for(let l=0;l{const d=er(i[l],t);let f=!1;d.subscribe(Ye(n,y=>{o[l]=y,f||(f=!0,s--),s||n.next(e(o.slice()))},()=>{--a||n.complete()}))},n)},n)}}(n,t,r?a=>O3(r,a):ve));return e?o.pipe(Lk(e)):o}function UN(i,t,e){i?_a(e,i,t):t()}function Wp(...i){return function tX(){return ni(1)}()(er(i,Jr(i)))}function Nm(i){return new S(t=>{kn(i()).subscribe(t)})}function Gp(i,t){const e=b(i)?i:()=>i,n=r=>r.error(e());return new S(t?r=>t.schedule(n,0,r):n)}function iT(){return Ne((i,t)=>{let e=null;i._refCount++;const n=Ye(t,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount)return void(e=null);const r=i._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});i.subscribe(n),n.closed||(e=i.connect())})}class jN extends S{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Se(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new D;const e=this.getSubject();t.add(this.source.subscribe(Ye(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=D.EMPTY)}return t}refCount(){return iT()(this)}}function so(i,t){return Ne((e,n)=>{let r=null,o=0,a=!1;const s=()=>a&&!r&&n.complete();e.subscribe(Ye(n,l=>{r?.unsubscribe();let d=0;const f=o++;kn(i(l,f)).subscribe(r=Ye(n,y=>n.next(t?t(l,y,f,d++):y),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function Xn(i){return i<=0?()=>Fr:Ne((t,e)=>{let n=0;t.subscribe(Ye(e,r=>{++n<=i&&(e.next(r),i<=n&&e.complete())}))})}function cr(...i){const t=Jr(i);return Ne((e,n)=>{(t?Wp(i,e,t):Wp(i,e)).subscribe(n)})}function l1(i){return Ne((t,e)=>{let n=!1;t.subscribe(Ye(e,r=>{n=!0,e.next(r)},()=>{n||e.next(i),e.complete()}))})}function $N(i=nX){return Ne((t,e)=>{let n=!1;t.subscribe(Ye(e,r=>{n=!0,e.next(r)},()=>n?e.complete():e.error(i())))})}function nX(){return new s1}function hc(i,t){const e=arguments.length>=2;return n=>n.pipe(i?Oi((r,o)=>i(r,o,n)):ve,Xn(1),e?l1(t):$N(()=>new s1))}function pc(i){return Ne((t,e)=>{let o,n=null,r=!1;n=t.subscribe(Ye(e,void 0,void 0,a=>{o=kn(i(a,pc(i)(t))),n?(n.unsubscribe(),n=null,o.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(e))})}function iX(i,t,e,n,r){return(o,a)=>{let s=e,l=t,d=0;o.subscribe(Ye(a,f=>{const y=d++;l=s?i(l,f,y):(s=!0,f),n&&a.next(l)},r&&(()=>{s&&a.next(l),a.complete()})))}}function zN(i,t){return Ne(iX(i,t,arguments.length>=2,!0))}function rT(i){return i<=0?()=>Fr:Ne((t,e)=>{let n=[];t.subscribe(Ye(e,r=>{n.push(r),i{for(const r of n)e.next(r);e.complete()},void 0,()=>{n=null}))})}function WN(i,t){const e=arguments.length>=2;return n=>n.pipe(i?Oi((r,o)=>i(r,o,n)):ve,rT(1),e?l1(t):$N(()=>new s1))}function c1(i){return Ve(()=>i)}function d1(i){return Ne((t,e)=>{try{t.subscribe(e)}finally{e.add(i)}})}const Ln="primary",Bm=Symbol("RouteTitle");class oX{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function qp(i){return new oX(i)}function aX(i,t,e){const n=e.path.split("/");if(n.length>i.length||"full"===e.pathMatch&&(t.hasChildren()||n.lengthn[o]===r)}return i===t}function qN(i){return Array.prototype.concat.apply([],i)}function KN(i){return i.length>0?i[i.length-1]:null}function lo(i,t){for(const e in i)i.hasOwnProperty(e)&&t(i[e],e)}function Cd(i){return yx(i)?i:hm(i)?er(Promise.resolve(i)):At(i)}const cX={exact:function XN(i,t,e){if(!Ou(i.segments,t.segments)||!u1(i.segments,t.segments,e)||i.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children)if(!i.children[n]||!XN(i.children[n],t.children[n],e))return!1;return!0},subset:JN},ZN={exact:function dX(i,t){return bl(i,t)},subset:function uX(i,t){return Object.keys(t).length<=Object.keys(i).length&&Object.keys(t).every(e=>GN(i[e],t[e]))},ignored:()=>!0};function QN(i,t,e){return cX[e.paths](i.root,t.root,e.matrixParams)&&ZN[e.queryParams](i.queryParams,t.queryParams)&&!("exact"===e.fragment&&i.fragment!==t.fragment)}function JN(i,t,e){return e4(i,t,t.segments,e)}function e4(i,t,e,n){if(i.segments.length>e.length){const r=i.segments.slice(0,e.length);return!(!Ou(r,e)||t.hasChildren()||!u1(r,e,n))}if(i.segments.length===e.length){if(!Ou(i.segments,e)||!u1(i.segments,e,n))return!1;for(const r in t.children)if(!i.children[r]||!JN(i.children[r],t.children[r],n))return!1;return!0}{const r=e.slice(0,i.segments.length),o=e.slice(i.segments.length);return!!(Ou(i.segments,r)&&u1(i.segments,r,n)&&i.children[Ln])&&e4(i.children[Ln],t,o,n)}}function u1(i,t,e){return t.every((n,r)=>ZN[e](i[r].parameters,n.parameters))}class Lu{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=qp(this.queryParams)),this._queryParamMap}toString(){return fX.serialize(this)}}class Vn{constructor(t,e){this.segments=t,this.children=e,this.parent=null,lo(e,(n,r)=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return h1(this)}}class Vm{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=qp(this.parameters)),this._parameterMap}toString(){return o4(this)}}function Ou(i,t){return i.length===t.length&&i.every((e,n)=>e.path===t[n].path)}let t4=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:function(){return new aT},providedIn:"root"}),i})();class aT{parse(t){const e=new DX(t);return new Lu(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Hm(t.root,!0)}`,n=function _X(i){const t=Object.keys(i).map(e=>{const n=i[e];return Array.isArray(n)?n.map(r=>`${p1(e)}=${p1(r)}`).join("&"):`${p1(e)}=${p1(n)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${n}${"string"==typeof t.fragment?`#${function gX(i){return encodeURI(i)}(t.fragment)}`:""}`}}const fX=new aT;function h1(i){return i.segments.map(t=>o4(t)).join("/")}function Hm(i,t){if(!i.hasChildren())return h1(i);if(t){const e=i.children[Ln]?Hm(i.children[Ln],!1):"",n=[];return lo(i.children,(r,o)=>{o!==Ln&&n.push(`${o}:${Hm(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function pX(i,t){let e=[];return lo(i.children,(n,r)=>{r===Ln&&(e=e.concat(t(n,r)))}),lo(i.children,(n,r)=>{r!==Ln&&(e=e.concat(t(n,r)))}),e}(i,(n,r)=>r===Ln?[Hm(i.children[Ln],!1)]:[`${r}:${Hm(n,!1)}`]);return 1===Object.keys(i.children).length&&null!=i.children[Ln]?`${h1(i)}/${e[0]}`:`${h1(i)}/(${e.join("//")})`}}function n4(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function p1(i){return n4(i).replace(/%3B/gi,";")}function sT(i){return n4(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function f1(i){return decodeURIComponent(i)}function r4(i){return f1(i.replace(/\+/g,"%20"))}function o4(i){return`${sT(i.path)}${function mX(i){return Object.keys(i).map(t=>`;${sT(t)}=${sT(i[t])}`).join("")}(i.parameters)}`}const vX=/^[^\/()?;=#]+/;function g1(i){const t=i.match(vX);return t?t[0]:""}const yX=/^[^=?&#]+/,CX=/^[^&#]+/;class DX{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Vn([],{}):new Vn([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Ln]=new Vn(t,e)),n}parseSegment(){const t=g1(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new et(4009,!1);return this.capture(t),new Vm(f1(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=g1(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=g1(this.remaining);r&&(n=r,this.capture(n))}t[f1(e)]=f1(n)}parseQueryParam(t){const e=function bX(i){const t=i.match(yX);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const a=function wX(i){const t=i.match(CX);return t?t[0]:""}(this.remaining);a&&(n=a,this.capture(n))}const r=r4(e),o=r4(n);if(t.hasOwnProperty(r)){let a=t[r];Array.isArray(a)||(a=[a],t[r]=a),a.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=g1(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new et(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Ln);const a=this.parseChildren();e[o]=1===Object.keys(a).length?a[Ln]:new Vn([],a),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new et(4011,!1)}}function lT(i){return i.segments.length>0?new Vn([],{[Ln]:i}):i}function m1(i){const t={};for(const n of Object.keys(i.children)){const o=m1(i.children[n]);(o.segments.length>0||o.hasChildren())&&(t[n]=o)}return function MX(i){if(1===i.numberOfChildren&&i.children[Ln]){const t=i.children[Ln];return new Vn(i.segments.concat(t.segments),t.children)}return i}(new Vn(i.segments,t))}function Nu(i){return i instanceof Lu}function TX(i,t,e,n,r){if(0===e.length)return Kp(t.root,t.root,t.root,n,r);const o=function l4(i){if("string"==typeof i[0]&&1===i.length&&"/"===i[0])return new s4(!0,0,i);let t=0,e=!1;const n=i.reduce((r,o,a)=>{if("object"==typeof o&&null!=o){if(o.outlets){const s={};return lo(o.outlets,(l,d)=>{s[d]="string"==typeof l?l.split("/"):l}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===a?(o.split("/").forEach((s,l)=>{0==l&&"."===s||(0==l&&""===s?e=!0:".."===s?t++:""!=s&&r.push(s))}),r):[...r,o]},[]);return new s4(e,t,n)}(e);return o.toRoot()?Kp(t.root,t.root,new Vn([],{}),n,r):function a(l){const d=function EX(i,t,e,n){if(i.isAbsolute)return new Zp(t.root,!0,0);if(-1===n)return new Zp(e,e===t.root,0);return function c4(i,t,e){let n=i,r=t,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new et(4005,!1);r=n.segments.length}return new Zp(n,!1,r-o)}(e,n+(Ym(i.commands[0])?0:1),i.numberOfDoubleDots)}(o,t,i.snapshot?._urlSegment,l),f=d.processChildren?jm(d.segmentGroup,d.index,o.commands):dT(d.segmentGroup,d.index,o.commands);return Kp(t.root,d.segmentGroup,f,n,r)}(i.snapshot?._lastPathIndex)}function Ym(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function Um(i){return"object"==typeof i&&null!=i&&i.outlets}function Kp(i,t,e,n,r){let a,o={};n&&lo(n,(l,d)=>{o[d]=Array.isArray(l)?l.map(f=>`${f}`):`${l}`}),a=i===t?e:a4(i,t,e);const s=lT(m1(a));return new Lu(s,o,r)}function a4(i,t,e){const n={};return lo(i.children,(r,o)=>{n[o]=r===t?e:a4(r,t,e)}),new Vn(i.segments,n)}class s4{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Ym(n[0]))throw new et(4003,!1);const r=n.find(Um);if(r&&r!==KN(n))throw new et(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Zp{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function dT(i,t,e){if(i||(i=new Vn([],{})),0===i.segments.length&&i.hasChildren())return jm(i,t,e);const n=function IX(i,t,e){let n=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const a=i.segments[r],s=e[n];if(Um(s))break;const l=`${s}`,d=n0&&void 0===l)break;if(l&&d&&"object"==typeof d&&void 0===d.outlets){if(!u4(l,d,a))return o;n+=2}else{if(!u4(l,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(i,t,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[a]=dT(i.children[a],t,o))}),lo(i.children,(o,a)=>{void 0===n[a]&&(r[a]=o)}),new Vn(i.segments,r)}}function uT(i,t,e){const n=i.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=uT(new Vn([],{}),0,e))}),t}function d4(i){const t={};return lo(i,(e,n)=>t[n]=`${e}`),t}function u4(i,t,e){return i==e.path&&bl(t,e.parameters)}class fc{constructor(t,e){this.id=t,this.url=e}}class hT extends fc{constructor(t,e,n="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class wd extends fc{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class _1 extends fc{constructor(t,e,n,r){super(t,e),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class h4 extends fc{constructor(t,e,n,r){super(t,e),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class PX extends fc{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class RX extends fc{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class LX extends fc{constructor(t,e,n,r,o){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class OX extends fc{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NX extends fc{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class BX{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class VX{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class HX{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YX{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class UX{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jX{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class p4{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class f4{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=pT(t,this._root);return e?e.children.map(n=>n.value):[]}firstChild(t){const e=pT(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=fT(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return fT(t,this._root).map(e=>e.value)}}function pT(i,t){if(i===t.value)return t;for(const e of t.children){const n=pT(i,e);if(n)return n}return null}function fT(i,t){if(i===t.value)return[t];for(const e of t.children){const n=fT(i,e);if(n.length)return n.unshift(t),n}return[]}class gc{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Qp(i){const t={};return i&&i.children.forEach(e=>t[e.value.outlet]=e),t}class g4 extends f4{constructor(t,e){super(t),this.snapshot=e,gT(this,t)}toString(){return this.snapshot.toString()}}function m4(i,t){const e=function zX(i,t){const a=new v1([],{},{},"",{},Ln,t,null,i.root,-1,{});return new v4("",new gc(a,[]))}(i,t),n=new $i([new Vm("",{})]),r=new $i({}),o=new $i({}),a=new $i({}),s=new $i(""),l=new bi(n,r,a,s,o,Ln,t,e.root);return l.snapshot=e.root,new g4(new gc(l,[]),e)}class bi{constructor(t,e,n,r,o,a,s,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.title=this.data?.pipe(Ve(d=>d[Bm]))??At(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Ve(t=>qp(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ve(t=>qp(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function _4(i,t="emptyOnly"){const e=i.pathFromRoot;let n=0;if("always"!==t)for(n=e.length-1;n>=1;){const r=e[n],o=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function WX(i){return i.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(n))}class v1{constructor(t,e,n,r,o,a,s,l,d,f,y,k){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.title=this.data?.[Bm],this.routeConfig=l,this._urlSegment=d,this._lastPathIndex=f,this._correctedLastPathIndex=k??f,this._resolve=y}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=qp(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=qp(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class v4 extends f4{constructor(t,e){super(e),this.url=t,gT(this,e)}toString(){return y4(this._root)}}function gT(i,t){t.value._routerState=i,t.children.forEach(e=>gT(i,e))}function y4(i){const t=i.children.length>0?` { ${i.children.map(y4).join(", ")} } `:"";return`${i.value}${t}`}function mT(i){if(i.snapshot){const t=i.snapshot,e=i._futureSnapshot;i.snapshot=e,bl(t.queryParams,e.queryParams)||i.queryParams.next(e.queryParams),t.fragment!==e.fragment&&i.fragment.next(e.fragment),bl(t.params,e.params)||i.params.next(e.params),function sX(i,t){if(i.length!==t.length)return!1;for(let e=0;ebl(e.parameters,t[n].parameters))}(i.url,t.url);return e&&!(!i.parent!=!t.parent)&&(!i.parent||_T(i.parent,t.parent))}function $m(i,t,e){if(e&&i.shouldReuseRoute(t.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=t.value;const r=function qX(i,t,e){return t.children.map(n=>{for(const r of e.children)if(i.shouldReuseRoute(n.value,r.value.snapshot))return $m(i,n,r);return $m(i,n)})}(i,t,e);return new gc(n,r)}{if(i.shouldAttach(t.value)){const o=i.retrieve(t.value);if(null!==o){const a=o.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(s=>$m(i,s)),a}}const n=function KX(i){return new bi(new $i(i.url),new $i(i.params),new $i(i.queryParams),new $i(i.fragment),new $i(i.data),i.outlet,i.component,i)}(t.value),r=t.children.map(o=>$m(i,o));return new gc(n,r)}}const vT="ngNavigationCancelingError";function b4(i,t){const{redirectTo:e,navigationBehaviorOptions:n}=Nu(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=C4(!1,0,t);return r.url=e,r.navigationBehaviorOptions=n,r}function C4(i,t,e){const n=new Error("NavigationCancelingError: "+(i||""));return n[vT]=!0,n.cancellationCode=t,e&&(n.url=e),n}function w4(i){return D4(i)&&Nu(i.url)}function D4(i){return i&&i[vT]}class ZX{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new zm,this.attachRef=null}}let zm=(()=>{class i{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new ZX,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const y1=!1;let b1=(()=>{class i{constructor(e,n,r,o,a){this.parentContexts=e,this.location=n,this.changeDetector=o,this.environmentInjector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ae,this.deactivateEvents=new Ae,this.attachEvents=new Ae,this.detachEvents=new Ae,this.name=r||Ln,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new et(4012,y1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new et(4012,y1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new et(4012,y1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new et(4013,y1);this._activatedRoute=e;const r=this.location,a=e._futureSnapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new QX(e,s,r.injector);if(n&&function XX(i){return!!i.resolveComponentFactory}(n)){const d=n.resolveComponentFactory(a);this.activated=r.createComponent(d,r.length,l)}else this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:n??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return i.\u0275fac=function(e){return new(e||i)(U(zm),U(Mr),cl("name"),U(ui),U(od))},i.\u0275dir=it({type:i,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),i})();class QX{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===bi?this.route:t===zm?this.childContexts:this.parent.get(t,e)}}let yT=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=Be({type:i,selectors:[["ng-component"]],standalone:!0,features:[Ix],decls:1,vars:0,template:function(e,n){1&e&&H(0,"router-outlet")},dependencies:[b1],encapsulation:2}),i})();function M4(i,t){return i.providers&&!i._injector&&(i._injector=b0(i.providers,t,`Route: ${i.path}`)),i._injector??t}function CT(i){const t=i.children&&i.children.map(CT),e=t?{...i,children:t}:{...i};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==Ln&&(e.component=yT),e}function Ka(i){return i.outlet||Ln}function x4(i,t){const e=i.filter(n=>Ka(n)===t);return e.push(...i.filter(n=>Ka(n)!==t)),e}function Wm(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let t=i.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class iJ{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),mT(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=Qp(e);t.children.forEach(o=>{const a=o.value.outlet;this.deactivateRoutes(o,r[a],n),delete r[a]}),lo(r,(o,a)=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(t,e,n){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const a=n.getContext(r.outlet);a&&this.deactivateChildRoutes(t,e,a.children)}else this.deactivateChildRoutes(t,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,o=Qp(t);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);if(n&&n.outlet){const a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:s})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),r=n&&t.value.component?n.children:e,o=Qp(t);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const r=Qp(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new jX(o.value.snapshot))}),t.children.length&&this.forwardEvent(new YX(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,o=e?e.value:null;if(mT(r),r===o)if(r.component){const a=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,a.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),mT(s.route.value),this.activateChildRoutes(t,null,a.children)}else{const s=Wm(r.snapshot),l=s?.get(Jl)??null;a.attachRef=null,a.route=r,a.resolver=l,a.injector=s,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,n)}}class k4{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class C1{constructor(t,e){this.component=t,this.route=e}}function rJ(i,t,e){const n=i._root;return Gm(n,t?t._root:null,e,[n.value])}function Xp(i,t){const e=Symbol(),n=t.get(i,e);return n===e?"function"!=typeof i||function dD(i){return null!==Kh(i)}(i)?t.get(i):i:n}function Gm(i,t,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Qp(t);return i.children.forEach(a=>{(function aJ(i,t,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=i.value,a=t?t.value:null,s=e?e.getContext(i.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const l=function sJ(i,t,e){if("function"==typeof e)return e(i,t);switch(e){case"pathParamsChange":return!Ou(i.url,t.url);case"pathParamsOrQueryParamsChange":return!Ou(i.url,t.url)||!bl(i.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!_T(i,t)||!bl(i.queryParams,t.queryParams);default:return!_T(i,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new k4(n)):(o.data=a.data,o._resolvedData=a._resolvedData),Gm(i,t,o.component?s?s.children:null:e,n,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new C1(s.outlet.component,a))}else a&&qm(t,s,r),r.canActivateChecks.push(new k4(n)),Gm(i,null,o.component?s?s.children:null:e,n,r)})(a,o[a.value.outlet],e,n.concat([a.value]),r),delete o[a.value.outlet]}),lo(o,(a,s)=>qm(a,e.getContext(s),r)),r}function qm(i,t,e){const n=Qp(i),r=i.value;lo(n,(o,a)=>{qm(o,r.component?t?t.children.getContext(a):null:t,e)}),e.canDeactivateChecks.push(new C1(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Km(i){return"function"==typeof i}function wT(i){return i instanceof s1||"EmptyError"===i?.name}const w1=Symbol("INITIAL_VALUE");function Jp(){return so(i=>Om(i.map(t=>t.pipe(Xn(1),cr(w1)))).pipe(Ve(t=>{for(const e of t)if(!0!==e){if(e===w1)return w1;if(!1===e||e instanceof Lu)return e}return!0}),Oi(t=>t!==w1),Xn(1)))}function T4(i){return function de(...i){return ie(i)}(ir(t=>{if(Nu(t))throw b4(0,t)}),Ve(t=>!0===t))}const DT={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function S4(i,t,e,n,r){const o=MT(i,t,e);return o.matched?function MJ(i,t,e,n){const r=t.canMatch;return r&&0!==r.length?At(r.map(a=>{const s=Xp(a,i);return Cd(function pJ(i){return i&&Km(i.canMatch)}(s)?s.canMatch(t,e):i.runInContext(()=>s(t,e)))})).pipe(Jp(),T4()):At(!0)}(n=M4(t,n),t,e).pipe(Ve(a=>!0===a?o:{...DT})):At(o)}function MT(i,t,e){if(""===t.path)return"full"===t.pathMatch&&(i.hasChildren()||e.length>0)?{...DT}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||aX)(e,i,t);if(!r)return{...DT};const o={};lo(r.posParams,(s,l)=>{o[l]=s.path});const a=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function D1(i,t,e,n,r="corrected"){if(e.length>0&&function TJ(i,t,e){return e.some(n=>M1(i,t,n)&&Ka(n)!==Ln)}(i,e,n)){const a=new Vn(t,function kJ(i,t,e,n){const r={};r[Ln]=n,n._sourceSegment=i,n._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&Ka(o)!==Ln){const a=new Vn([],{});a._sourceSegment=i,a._segmentIndexShift=t.length,r[Ka(o)]=a}return r}(i,t,n,new Vn(e,i.children)));return a._sourceSegment=i,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&function SJ(i,t,e){return e.some(n=>M1(i,t,n))}(i,e,n)){const a=new Vn(i.segments,function xJ(i,t,e,n,r,o){const a={};for(const s of n)if(M1(i,e,s)&&!r[Ka(s)]){const l=new Vn([],{});l._sourceSegment=i,l._segmentIndexShift="legacy"===o?i.segments.length:t.length,a[Ka(s)]=l}return{...r,...a}}(i,t,e,n,i.children,r));return a._sourceSegment=i,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:e}}const o=new Vn(i.segments,i.children);return o._sourceSegment=i,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function M1(i,t,e){return(!(i.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function E4(i,t,e,n){return!!(Ka(i)===n||n!==Ln&&M1(t,e,i))&&("**"===i.path||MT(t,i,e).matched)}function A4(i,t,e){return 0===t.length&&!i.children[e]}const x1=!1;class k1{constructor(t){this.segmentGroup=t||null}}class I4{constructor(t){this.urlTree=t}}function Zm(i){return Gp(new k1(i))}function F4(i){return Gp(new I4(i))}class FJ{constructor(t,e,n,r,o){this.injector=t,this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const t=D1(this.urlTree.root,[],[],this.config).segmentGroup,e=new Vn(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,Ln).pipe(Ve(o=>this.createUrlTree(m1(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(pc(o=>{if(o instanceof I4)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof k1?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,Ln).pipe(Ve(r=>this.createUrlTree(m1(r),t.queryParams,t.fragment))).pipe(pc(r=>{throw r instanceof k1?this.noMatchError(r):r}))}noMatchError(t){return new et(4002,x1)}createUrlTree(t,e,n){const r=lT(t);return new Lu(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Ve(o=>new Vn([],o))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){const r=[];for(const o of Object.keys(n.children))"primary"===o?r.unshift(o):r.push(o);return er(r).pipe(gd(o=>{const a=n.children[o],s=x4(e,o);return this.expandSegmentGroup(t,s,a,o).pipe(Ve(l=>({segment:l,outlet:o})))}),zN((o,a)=>(o[a.outlet]=a.segment,o),{}),WN())}expandSegment(t,e,n,r,o,a){return er(n).pipe(gd(s=>this.expandSegmentAgainstRoute(t,e,n,s,r,o,a).pipe(pc(d=>{if(d instanceof k1)return At(null);throw d}))),hc(s=>!!s),pc((s,l)=>{if(wT(s))return A4(e,r,o)?At(new Vn([],{})):Zm(e);throw s}))}expandSegmentAgainstRoute(t,e,n,r,o,a,s){return E4(r,e,o,a)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,a):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,a):Zm(e):Zm(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?F4(o):this.lineralizeSegments(n,o).pipe(ar(a=>{const s=new Vn(a,{});return this.expandSegment(t,s,e,a,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,a){const{matched:s,consumedSegments:l,remainingSegments:d,positionalParamSegments:f}=MT(e,r,o);if(!s)return Zm(e);const y=this.applyRedirectCommands(l,r.redirectTo,f);return r.redirectTo.startsWith("/")?F4(y):this.lineralizeSegments(r,y).pipe(ar(k=>this.expandSegment(t,e,n,k.concat(d),a,!1)))}matchSegmentAgainstRoute(t,e,n,r,o){return"**"===n.path?(t=M4(n,t),n.loadChildren?(n._loadedRoutes?At({routes:n._loadedRoutes,injector:n._loadedInjector}):this.configLoader.loadChildren(t,n)).pipe(Ve(s=>(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,new Vn(r,{})))):At(new Vn(r,{}))):S4(e,n,r,t).pipe(so(({matched:a,consumedSegments:s,remainingSegments:l})=>a?this.getChildConfig(t=n._injector??t,n,r).pipe(ar(f=>{const y=f.injector??t,k=f.routes,{segmentGroup:E,slicedSegments:W}=D1(e,s,l,k),ee=new Vn(E.segments,E.children);if(0===W.length&&ee.hasChildren())return this.expandChildren(y,k,ee).pipe(Ve(we=>new Vn(s,we)));if(0===k.length&&0===W.length)return At(new Vn(s,{}));const he=Ka(n)===o;return this.expandSegment(y,ee,k,W,he?Ln:o,!0).pipe(Ve(Ce=>new Vn(s.concat(Ce.segments),Ce.children)))})):Zm(e)))}getChildConfig(t,e,n){return e.children?At({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?At({routes:e._loadedRoutes,injector:e._loadedInjector}):function DJ(i,t,e,n){const r=t.canLoad;return void 0===r||0===r.length?At(!0):At(r.map(a=>{const s=Xp(a,i);return Cd(function cJ(i){return i&&Km(i.canLoad)}(s)?s.canLoad(t,e):i.runInContext(()=>s(t,e)))})).pipe(Jp(),T4())}(t,e,n).pipe(ar(r=>r?this.configLoader.loadChildren(t,e).pipe(ir(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function AJ(i){return Gp(C4(x1,3))}())):At({routes:[],injector:t})}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return At(n);if(r.numberOfChildren>1||!r.children[Ln])return Gp(new et(4e3,x1));r=r.children[Ln]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreateUrlTree(t,e,n,r){const o=this.createSegmentGroup(t,e.root,n,r);return new Lu(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return lo(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(t,e,n,r){const o=this.createSegments(t,e.segments,n,r);let a={};return lo(e.children,(s,l)=>{a[l]=this.createSegmentGroup(t,s,n,r)}),new Vn(o,a)}createSegments(t,e,n,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new et(4001,x1);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}class RJ{}class NJ{constructor(t,e,n,r,o,a,s,l){this.injector=t,this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=s,this.urlSerializer=l}recognize(){const t=D1(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Ln).pipe(Ve(e=>{if(null===e)return null;const n=new v1([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ln,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new gc(n,e),o=new v4(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,n=_4(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,e,n):this.processSegment(t,e,n,n.segments,r)}processChildren(t,e,n){return er(Object.keys(n.children)).pipe(gd(r=>{const o=n.children[r],a=x4(e,r);return this.processSegmentGroup(t,a,o,r)}),zN((r,o)=>r&&o?(r.push(...o),r):null),function rX(i,t=!1){return Ne((e,n)=>{let r=0;e.subscribe(Ye(n,o=>{const a=i(o,r++);(a||t)&&n.next(o),!a&&n.complete()}))})}(r=>null!==r),l1(null),WN(),Ve(r=>{if(null===r)return null;const o=P4(r);return function BJ(i){i.sort((t,e)=>t.value.outlet===Ln?-1:e.value.outlet===Ln?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,n,r,o){return er(e).pipe(gd(a=>this.processSegmentAgainstRoute(a._injector??t,a,n,r,o)),hc(a=>!!a),pc(a=>{if(wT(a))return A4(n,r,o)?At([]):At(null);throw a}))}processSegmentAgainstRoute(t,e,n,r,o){if(e.redirectTo||!E4(e,n,r,o))return At(null);let a;if("**"===e.path){const s=r.length>0?KN(r).parameters:{},l=L4(n)+r.length;a=At({snapshot:new v1(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,N4(e),Ka(e),e.component??e._loadedComponent??null,e,R4(n),l,B4(e),l),consumedSegments:[],remainingSegments:[]})}else a=S4(n,e,r,t).pipe(Ve(({matched:s,consumedSegments:l,remainingSegments:d,parameters:f})=>{if(!s)return null;const y=L4(n)+l.length;return{snapshot:new v1(l,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,N4(e),Ka(e),e.component??e._loadedComponent??null,e,R4(n),y,B4(e),y),consumedSegments:l,remainingSegments:d}}));return a.pipe(so(s=>{if(null===s)return At(null);const{snapshot:l,consumedSegments:d,remainingSegments:f}=s;t=e._injector??t;const y=e._loadedInjector??t,k=function VJ(i){return i.children?i.children:i.loadChildren?i._loadedRoutes:[]}(e),{segmentGroup:E,slicedSegments:W}=D1(n,d,f,k.filter(he=>void 0===he.redirectTo),this.relativeLinkResolution);if(0===W.length&&E.hasChildren())return this.processChildren(y,k,E).pipe(Ve(he=>null===he?null:[new gc(l,he)]));if(0===k.length&&0===W.length)return At([new gc(l,[])]);const ee=Ka(e)===o;return this.processSegment(y,k,E,W,ee?Ln:o).pipe(Ve(he=>null===he?null:[new gc(l,he)]))}))}}function HJ(i){const t=i.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function P4(i){const t=[],e=new Set;for(const n of i){if(!HJ(n)){t.push(n);continue}const r=t.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...n.children),e.add(r)):t.push(n)}for(const n of e){const r=P4(n.children);t.push(new gc(n.value,r))}return t.filter(n=>!e.has(n))}function R4(i){let t=i;for(;t._sourceSegment;)t=t._sourceSegment;return t}function L4(i){let t=i,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function N4(i){return i.data||{}}function B4(i){return i.resolve||{}}function V4(i){return"string"==typeof i.title||null===i.title}function xT(i){return so(t=>{const e=i(t);return e?er(e).pipe(Ve(()=>t)):At(t)})}let H4=(()=>{class i{buildTitle(e){let n,r=e.root;for(;void 0!==r;)n=this.getResolvedTitleForRoute(r)??n,r=r.children.find(o=>o.outlet===Ln);return n}getResolvedTitleForRoute(e){return e.data[Bm]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:function(){return Hi(Y4)},providedIn:"root"}),i})(),Y4=(()=>{class i extends H4{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}}return i.\u0275fac=function(e){return new(e||i)(Ee(C3))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class qJ{}class ZJ extends class KJ{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const S1=new nt("",{providedIn:"root",factory:()=>({})}),kT=new nt("ROUTES");let TT=(()=>{class i{constructor(e,n){this.injector=e,this.compiler=n,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return At(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=Cd(e.loadComponent()).pipe(ir(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),d1(()=>{this.componentLoaders.delete(e)})),r=new jN(n,()=>new be).pipe(iT());return this.componentLoaders.set(e,r),r}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return At({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactoryOrRoutes(n.loadChildren).pipe(Ve(s=>{this.onLoadEndListener&&this.onLoadEndListener(n);let l,d,f=!1;Array.isArray(s)?d=s:(l=s.create(e).injector,d=qN(l.get(kT,[],rn.Self|rn.Optional)));return{routes:d.map(CT),injector:l}}),d1(()=>{this.childrenLoaders.delete(n)})),a=new jN(o,()=>new be).pipe(iT());return this.childrenLoaders.set(n,a),a}loadModuleFactoryOrRoutes(e){return Cd(e()).pipe(ar(n=>n instanceof pL||Array.isArray(n)?At(n):er(this.compiler.compileModuleAsync(n))))}}return i.\u0275fac=function(e){return new(e||i)(Ee(Li),Ee(Wx))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class XJ{}class JJ{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function eee(i){throw i}function tee(i,t,e){return t.parse("/")}const nee={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},iee={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function j4(){const i=Hi(t4),t=Hi(zm),e=Hi(pd),n=Hi(Li),r=Hi(Wx),o=Hi(kT,{optional:!0})??[],a=Hi(S1,{optional:!0})??{},s=Hi(Y4),l=Hi(H4,{optional:!0}),d=Hi(XJ,{optional:!0}),f=Hi(qJ,{optional:!0}),y=new Ti(null,i,t,e,n,r,qN(o));return d&&(y.urlHandlingStrategy=d),f&&(y.routeReuseStrategy=f),y.titleStrategy=l??s,function ree(i,t){i.errorHandler&&(t.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(t.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(t.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(t.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(t.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(t.canceledNavigationResolution=i.canceledNavigationResolution)}(a,y),y}let Ti=(()=>{class i{constructor(e,n,r,o,a,s,l){this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new be,this.errorHandler=eee,this.malformedUriErrorHandler=tee,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>At(void 0),this.urlHandlingStrategy=new JJ,this.routeReuseStrategy=new ZJ,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=a.get(TT),this.configLoader.onLoadEndListener=k=>this.triggerEvent(new VX(k)),this.configLoader.onLoadStartListener=k=>this.triggerEvent(new BX(k)),this.ngModule=a.get(Eu),this.console=a.get(HG);const y=a.get(Bt);this.isNgZoneEnabled=y instanceof Bt&&Bt.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function lX(){return new Lu(new Vn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=m4(this.currentUrlTree,this.rootComponentType),this.transitions=new $i({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()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const n=this.events;return e.pipe(Oi(r=>0!==r.id),Ve(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),so(r=>{let o=!1,a=!1;return At(r).pipe(ir(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),so(s=>{const l=this.browserUrlTree.toString(),d=!this.navigated||s.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||d)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return $4(s.source)&&(this.browserUrlTree=s.extractedUrl),At(s).pipe(so(y=>{const k=this.transitions.getValue();return n.next(new hT(y.id,this.serializeUrl(y.extractedUrl),y.source,y.restoredState)),k!==this.transitions.getValue()?Fr:Promise.resolve(y)}),function PJ(i,t,e,n){return so(r=>function IJ(i,t,e,n,r){return new FJ(i,t,e,n,r).apply()}(i,t,e,r.extractedUrl,n).pipe(Ve(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),ir(y=>{this.currentNavigation={...this.currentNavigation,finalUrl:y.urlAfterRedirects},r.urlAfterRedirects=y.urlAfterRedirects}),function UJ(i,t,e,n,r,o){return ar(a=>function OJ(i,t,e,n,r,o,a="emptyOnly",s="legacy"){return new NJ(i,t,e,n,r,a,s,o).recognize().pipe(so(l=>null===l?function LJ(i){return new S(t=>t.error(i))}(new RJ):At(l)))}(i,t,e,a.urlAfterRedirects,n.serialize(a.urlAfterRedirects),n,r,o).pipe(Ve(s=>({...a,targetSnapshot:s}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),ir(y=>{if(r.targetSnapshot=y.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!y.extras.skipLocationChange){const E=this.urlHandlingStrategy.merge(y.urlAfterRedirects,y.rawUrl);this.setBrowserUrl(E,y)}this.browserUrlTree=y.urlAfterRedirects}const k=new PX(y.id,this.serializeUrl(y.extractedUrl),this.serializeUrl(y.urlAfterRedirects),y.targetSnapshot);n.next(k)}));if(d&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:k,extractedUrl:E,source:W,restoredState:ee,extras:he}=s,ge=new hT(k,this.serializeUrl(E),W,ee);n.next(ge);const Ce=m4(E,this.rootComponentType).snapshot;return At(r={...s,targetSnapshot:Ce,urlAfterRedirects:E,extras:{...he,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=s.rawUrl,s.resolve(null),Fr}),ir(s=>{const l=new RX(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(l)}),Ve(s=>r={...s,guards:rJ(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function gJ(i,t){return ar(e=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return 0===a.length&&0===o.length?At({...e,guardsResult:!0}):function mJ(i,t,e,n){return er(i).pipe(ar(r=>function wJ(i,t,e,n,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?At(o.map(s=>{const l=Wm(t)??r,d=Xp(s,l);return Cd(function hJ(i){return i&&Km(i.canDeactivate)}(d)?d.canDeactivate(i,t,e,n):l.runInContext(()=>d(i,t,e,n))).pipe(hc())})).pipe(Jp()):At(!0)}(r.component,r.route,e,t,n)),hc(r=>!0!==r,!0))}(a,n,r,i).pipe(ar(s=>s&&function lJ(i){return"boolean"==typeof i}(s)?function _J(i,t,e,n){return er(t).pipe(gd(r=>Wp(function yJ(i,t){return null!==i&&t&&t(new HX(i)),At(!0)}(r.route.parent,n),function vJ(i,t){return null!==i&&t&&t(new UX(i)),At(!0)}(r.route,n),function CJ(i,t,e){const n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(a=>function oJ(i){const t=i.routeConfig?i.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:i,guards:t}:null}(a)).filter(a=>null!==a).map(a=>Nm(()=>At(a.guards.map(l=>{const d=Wm(a.node)??e,f=Xp(l,d);return Cd(function uJ(i){return i&&Km(i.canActivateChild)}(f)?f.canActivateChild(n,i):d.runInContext(()=>f(n,i))).pipe(hc())})).pipe(Jp())));return At(o).pipe(Jp())}(i,r.path,e),function bJ(i,t,e){const n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||0===n.length)return At(!0);const r=n.map(o=>Nm(()=>{const a=Wm(t)??e,s=Xp(o,a);return Cd(function dJ(i){return i&&Km(i.canActivate)}(s)?s.canActivate(t,i):a.runInContext(()=>s(t,i))).pipe(hc())}));return At(r).pipe(Jp())}(i,r.route,e))),hc(r=>!0!==r,!0))}(n,o,i,t):At(s)),Ve(s=>({...e,guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),ir(s=>{if(r.guardsResult=s.guardsResult,Nu(s.guardsResult))throw b4(0,s.guardsResult);const l=new LX(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(l)}),Oi(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),xT(s=>{if(s.guards.canActivateChecks.length)return At(s).pipe(ir(l=>{const d=new OX(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(d)}),so(l=>{let d=!1;return At(l).pipe(function jJ(i,t){return ar(e=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return At(e);let o=0;return er(r).pipe(gd(a=>function $J(i,t,e,n){const r=i.routeConfig,o=i._resolve;return void 0!==r?.title&&!V4(r)&&(o[Bm]=r.title),function zJ(i,t,e,n){const r=function WJ(i){return[...Object.keys(i),...Object.getOwnPropertySymbols(i)]}(i);if(0===r.length)return At({});const o={};return er(r).pipe(ar(a=>function GJ(i,t,e,n){const r=Wm(t)??n,o=Xp(i,r);return Cd(o.resolve?o.resolve(t,e):r.runInContext(()=>o(t,e)))}(i[a],t,e,n).pipe(hc(),ir(s=>{o[a]=s}))),rT(1),c1(o),pc(a=>wT(a)?Fr:Gp(a)))}(o,i,t,n).pipe(Ve(a=>(i._resolvedData=a,i.data=_4(i,e).resolve,r&&V4(r)&&(i.data[Bm]=r.title),null)))}(a.route,n,i,t)),ir(()=>o++),rT(1),ar(a=>o===r.length?At(e):Fr))})}(this.paramsInheritanceStrategy,this.ngModule.injector),ir({next:()=>d=!0,complete:()=>{d||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),ir(l=>{const d=new NX(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(d)}))}),xT(s=>{const l=d=>{const f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(ir(y=>{d.component=y}),Ve(()=>{})));for(const y of d.children)f.push(...l(y));return f};return Om(l(s.targetSnapshot.root)).pipe(l1(),Xn(1))}),xT(()=>this.afterPreactivation()),Ve(s=>{const l=function GX(i,t,e){const n=$m(i,t._root,e?e._root:void 0);return new g4(n,t)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:l}}),ir(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((i,t,e)=>Ve(n=>(new iJ(t,n.targetRouterState,n.currentRouterState,e).activate(i),n)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),ir({next(){o=!0},complete(){o=!0}}),d1(()=>{o||a||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),pc(s=>{if(a=!0,D4(s)){w4(s)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new _1(r.id,this.serializeUrl(r.extractedUrl),s.message,s.cancellationCode);if(n.next(l),w4(s)){const d=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),f={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||$4(r.source)};this.scheduleNavigation(d,"imperative",null,f,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new h4(r.id,this.serializeUrl(r.extractedUrl),s,r.targetSnapshot??void 0);n.next(l);try{r.resolve(this.errorHandler(s))}catch(d){r.reject(d)}}return Fr}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{const r={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(o){const s={...o};delete s.navigationId,delete s.\u0275routerPageId,0!==Object.keys(s).length&&(r.state=s)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,n,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(CT),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,n={}){const{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,d=r||this.routerState.root,f=l?this.currentUrlTree.fragment:a;let y=null;switch(s){case"merge":y={...this.currentUrlTree.queryParams,...o};break;case"preserve":y=this.currentUrlTree.queryParams;break;default:y=o||null}return null!==y&&(y=this.removeEmptyProps(y)),TX(d,this.currentUrlTree,e,y,f??null)}navigateByUrl(e,n={skipLocationChange:!1}){const r=Nu(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,n)}navigate(e,n={skipLocationChange:!1}){return function oee(i){for(let t=0;t{const o=e[r];return null!=o&&(n[r]=o),n},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new wd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,n,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,d;a?(s=a.resolve,l=a.reject,d=a.promise):d=new Promise((k,E)=>{s=k,l=E});const f=++this.navigationId;let y;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),y=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):y=0,this.setTransition({id:f,targetPageId:y,source:n,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(k=>Promise.reject(k))}setBrowserUrl(e,n){const r=this.urlSerializer.serialize(e),o={...n.extras.state,...this.generateNgRouterState(n.id,n.targetPageId)};this.location.isCurrentPathEqualTo(r)||n.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,n=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,n,r){const o=new _1(e.id,this.serializeUrl(e.extractedUrl),n,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}}return i.\u0275fac=function(e){kp()},i.\u0275prov=$e({token:i,factory:function(){return j4()},providedIn:"root"}),i})();function $4(i){return"imperative"!==i}let ef=(()=>{class i{constructor(e,n,r){this.router=e,this.route=n,this.locationStrategy=r,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new be,this.subscription=e.events.subscribe(o=>{o instanceof wd&&this.updateTargetUrlAndHref()})}set preserveFragment(e){this._preserveFragment=sc(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=sc(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=sc(e)}get replaceUrl(){return this._replaceUrl}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,n,r,o,a){return!!(0!==e||n||r||o||a||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return i.\u0275fac=function(e){return new(e||i)(U(Ti),U(bi),U(Iu))},i.\u0275dir=it({type:i,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,n){1&e&&N("click",function(o){return n.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&mt("target",n.target)("href",n.href,Yi)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[_i]}),i})();class z4{}let lee=(()=>{class i{constructor(e,n,r,o,a){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Oi(e=>e instanceof wd),gd(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const r=[];for(const o of n){o.providers&&!o._injector&&(o._injector=b0(o.providers,e,`Route: ${o.path}`));const a=o._injector??e,s=o._loadedInjector??a;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(a,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return er(r).pipe(ni())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let r;r=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):At(null);const o=r.pipe(ar(a=>null===a?At(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return n.loadComponent&&!n._loadedComponent?er([o,this.loader.loadComponent(n)]).pipe(ni()):o})}}return i.\u0275fac=function(e){return new(e||i)(Ee(Ti),Ee(Wx),Ee(od),Ee(z4),Ee(TT))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const ET=new nt("");let W4=(()=>{class i{constructor(e,n,r={}){this.router=e,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof hT?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof wd&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof p4&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.router.triggerEvent(new p4(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return i.\u0275fac=function(e){kp()},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();function tf(i,t){return{\u0275kind:i,\u0275providers:t}}function AT(i){return[{provide:kT,multi:!0,useValue:i}]}function q4(){const i=Hi(Li);return t=>{const e=i.get(hd);if(t!==e.components[0])return;const n=i.get(Ti),r=i.get(K4);1===i.get(IT)&&n.initialNavigation(),i.get(Z4,null,rn.Optional)?.setUpPreloading(),i.get(ET,null,rn.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const K4=new nt("",{factory:()=>new be}),IT=new nt("",{providedIn:"root",factory:()=>1});const Z4=new nt("");function hee(i){return tf(0,[{provide:Z4,useExisting:lee},{provide:z4,useExisting:i}])}const Q4=new nt("ROUTER_FORROOT_GUARD"),pee=[pd,{provide:t4,useClass:aT},{provide:Ti,useFactory:j4},zm,{provide:bi,useFactory:function G4(i){return i.routerState.root},deps:[Ti]},TT];function fee(){return new lO("Router",Ti)}let F1=(()=>{class i{constructor(e){}static forRoot(e,n){return{ngModule:i,providers:[pee,[],AT(e),{provide:Q4,useFactory:vee,deps:[[Ti,new Cs,new Ql]]},{provide:S1,useValue:n||{}},n?.useHash?{provide:Iu,useClass:Sq}:{provide:Iu,useClass:PO},{provide:ET,useFactory:()=>{const i=Hi(Ti),t=Hi(HK),e=Hi(S1);return e.scrollOffset&&t.setOffset(e.scrollOffset),new W4(i,t,e)}},n?.preloadingStrategy?hee(n.preloadingStrategy).\u0275providers:[],{provide:lO,multi:!0,useFactory:fee},n?.initialNavigation?yee(n):[],[{provide:X4,useFactory:q4},{provide:tO,multi:!0,useExisting:X4}]]}}static forChild(e){return{ngModule:i,providers:[AT(e)]}}}return i.\u0275fac=function(e){return new(e||i)(Ee(Q4,8))},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[yT]}),i})();function vee(i){return"guarded"}function yee(i){return["disabled"===i.initialNavigation?tf(3,[{provide:M0,multi:!0,useFactory:()=>{const t=Hi(Ti);return()=>{t.setUpLocationChangeListener()}}},{provide:IT,useValue:2}]).\u0275providers:[],"enabledBlocking"===i.initialNavigation?tf(2,[{provide:IT,useValue:0},{provide:M0,multi:!0,deps:[Li],useFactory:t=>{const e=t.get(kq,Promise.resolve());let n=!1;return()=>e.then(()=>new Promise(o=>{const a=t.get(Ti),s=t.get(K4);(function r(o){t.get(Ti).events.pipe(Oi(s=>s instanceof wd||s instanceof _1||s instanceof h4),Ve(s=>s instanceof wd||s instanceof _1&&(0===s.code||1===s.code)&&null),Oi(s=>null!==s),Xn(1)).subscribe(()=>{o()})})(()=>{o(!0),n=!0}),a.afterPreactivation=()=>(o(!0),n||s.closed?At(void 0):s),a.initialNavigation()}))}}]).\u0275providers:[]]}const X4=new nt("");class co{constructor(){}setItemAsync(t,e){return new Promise(r=>{window.localStorage.setItem(t,e),r(!0)})}getItemAsync(t,e){return new Promise(r=>{let o=window.localStorage.getItem(t);return r(null!=o||null==e?o:e)})}removeItemAsync(t){return new Promise(n=>{window.localStorage.removeItem(t),n(!0)})}clearAsync(){return console.log("[NativeStorage__ClearAsync]"),new Promise(e=>{let n=window.localStorage.getItem("loginRedirect"),r=window.localStorage.getItem("app_user_org");window.localStorage.clear(),r&&window.localStorage.setItem("previous_app_user_org",r),n&&window.localStorage.setItem("loginRedirect",n),e(!0)})}static \u0275fac=function(e){return new(e||co)};static \u0275prov=$e({token:co,factory:co.\u0275fac,providedIn:"root"})}class Br{storage;location;router;route;history=[];appDrawer;currentUrl=new $i(void 0);_breadCrumbsUpdated$=new Gt;_breadCrumbs=[];module;area;page;areaHome;headerName;_headerNameUpdated$=new Gt;_moduleUpdated$=new Gt;_areaUpdated$=new Gt;_pageUpdated$=new Gt;constructor(t,e,n,r){this.storage=t,this.location=e,this.router=n,this.route=r,this.router.events.subscribe(o=>{o instanceof wd&&(o.urlAfterRedirects!=this.history[this.history.length-1]&&this.history.push(o.urlAfterRedirects),this.currentUrl.next(o.urlAfterRedirects))})}closeNav(){this.appDrawer.close()}openNav(){this.appDrawer.open()}setBreadCrumbs(t){this.reset(),this._breadCrumbs=t,this._breadCrumbsUpdated$.next(this._breadCrumbs)}push(t,e,n,r=!1){this._breadCrumbs.push({title:t,icon:n,route:e,current:r}),this._breadCrumbsUpdated$.next(this._breadCrumbs)}pop(){return window.history.pushState(null,null,window.location.href),this._breadCrumbsUpdated$.next(this._breadCrumbs),this._breadCrumbs.pop()}handle(t){var e=this;return z(function*(){t=t.substring(1);let n=JSON.parse(yield e.storage.getItemAsync("module_public"));if(!n)return;let r=t.split("/");if("areas"==r[1]){e.reset();let o=r[2],a=n.areas.find(s=>s.key==o);e.push(a.cardTitle,["public","areas",o],a.cardIcon,!0)}else{let o=r[1],a=n.areas.find(s=>s.key==o);if(a&&(e.reset(),a.pages.length>0?e.push(a.cardTitle,["public","areas",o],a.cardIcon):e.push(a.cardTitle,["public",o],a.cardIcon,!0),r.length>2)){let s=r[2],l=a.pages.find(d=>d.key==s);l&&e.push(l.cardTitle,["public",a.key,l.key],l.cardIcon,!0)}}})()}setHeaderName(t){this.headerName=t,this._headerNameUpdated$.next(t)}setModule(t){this.module=t,this._moduleUpdated$.next(t)}setArea(t){this.area=t,this._areaUpdated$.next(t)}setPage(t){this.page=t,this._pageUpdated$.next(t)}gotoLogin(t){var e=this;return z(function*(){yield e.storage.clearAsync(),t&&(yield e.storage.setItemAsync("loginRedirect",t)),e.gotoPath("/auth/login"),console.log("should go to login.")})()}gotoAreaHome(t){this.areaHome=t,this.router.navigate(["public","areas",t])}gotoModuleHome(){this.router.navigate(["public"])}navigation(t){this.router.navigate(t)}goto(t,e){console.log("going to route=> ",t),this.router.navigate(t,e)}gotoHome(){window.location.href="home"}gotoPath(t){let e=t.split("/");"public"==e[0]?this.goto(e):window.location.href=t}back(t){console.log(this.history),this.history.pop(),this.history.length>0?this.location.back():t?this.gotoPath(t):this.areaHome?this.gotoAreaHome(this.areaHome):this.gotoModuleHome()}reset(){for(;this._breadCrumbs.length>0;)this._breadCrumbs.pop();this._breadCrumbsUpdated$.next(this._breadCrumbs)}get breadcrumbs(){return this._breadCrumbs}onHeaderNameChanged(){return this._headerNameUpdated$.asObservable()}onModuleChanged(){return this._moduleUpdated$.asObservable()}onBreadCrumbChanged(){return this._breadCrumbsUpdated$.asObservable()}onAreaChanged(){return this._areaUpdated$.asObservable()}onPageChanged(){return this._pageUpdated$.asObservable()}top(){return this._breadCrumbs[this._breadCrumbs.length-1]}setLocation(t){this.location.go(t)}goBack(){this.location.back()}openInNewWindow(t){window.open(t)}getCurrentUrl(){return this.router.url}goToLogin(){window.location.href="auth/login"}goToLogout(){window.location.href="auth/login"}static \u0275fac=function(e){return new(e||Br)(Ee(co),Ee(pd),Ee(Ti),Ee(bi))};static \u0275prov=$e({token:Br,factory:Br.\u0275fac,providedIn:"root"})}class mc{constructor(){}_activeCallCount=0;_loadingMessages=[];_activeCalls=new $i(this._loadingMessages);_endCalls=new $i(this._loadingMessages);onCallBegin(){return this._activeCalls.asObservable()}onCallEnd(){return this._endCalls.asObservable()}beginCall(t="?"){this._activeCallCount++,this._activeCalls.next(this._loadingMessages)}endCall(){this._activeCallCount--,this._activeCallCount<0&&(this._activeCallCount=0),0==this._activeCallCount&&this._endCalls.next(this._loadingMessages)}static \u0275fac=function(e){return new(e||mc)};static \u0275prov=$e({token:mc,factory:mc.\u0275fac,providedIn:"root"})}class Cl{constructor(){}_errorMsgs=[];_errorMsgs$=new $i(this._errorMsgs);onErrMsgs(){return this._errorMsgs$.asObservable()}addErrors(t){t&&(console.log("ErrorReporterService.addErrors",t),this._errorMsgs$.next(t))}addError(t){this._errorMsgs$.next([t])}addErrorMessage(t){this._errorMsgs$.next([{message:t}])}addMessage(t){this.addError({message:t})}addMessages(t){const e=[];for(const n of t)e.push({message:n});this.addErrors(e)}clearErrors(){this._errorMsgs$.next(null)}static \u0275fac=function(e){return new(e||Cl)};static \u0275prov=$e({token:Cl,factory:Cl.\u0275fac,providedIn:"root"})}class An{http;navService;location;storage;networkCallService;errorReporter;_401Handler;constructor(t,e,n,r,o,a){this.http=t,this.navService=e,this.location=n,this.storage=r,this.networkCallService=o,this.errorReporter=a}setForOhOneHandler(t){this._401Handler=t}redirectToLogin(){var t=this;return z(function*(){let e="true"===(yield t.storage.getItemAsync("redirecting"));yield t.storage.clearAsync(),e||(t.storage.setItemAsync("loginRedirect",t.location.path()),t.storage.setItemAsync("redirecting","true")),t.navService.gotoPath("/auth/welcome")})()}getFullUrl(t){return t.startsWith("/")&&(t=t.substring(1)),t.toLowerCase().startsWith("http")?t:`/${t}`}createGuidAsync(){return new Promise((e,n)=>{this.http.get(this.getFullUrl("/api/utils/guid/new")).subscribe({next:r=>{e(r)},error:r=>{n(r)}})})}createNuvIoTIdAsync(){return new Promise((e,n)=>{this.http.get(this.getFullUrl("/api/utils/nuviot/id/new"),{responseType:"text"}).subscribe(r=>e(r))})}handleResponse(t,e=!0,n=!0){var o,r=this;return{next:o=>{console.log(window.location.href,o),e&&this.networkCallService.endCall(),o.redirectURL&&o.redirectURL!=window.location.pathname?(this.navService.gotoPath(o.redirectURL),console.log("Redirecting to: ",o.redirectURL),t(o)):0==o.successful?this.errorReporter.addErrors(o.errors):t(o)},error:(o=z(function*(a){console.log("ERR ----\x3e",a),e&&r.networkCallService.endCall(),401==a.status?r._401Handler?r._401Handler.handle():yield r.redirectToLogin():n&&r.errorReporter.addMessage(a.message),t({successful:!1,warnings:[],errors:[{message:a.message}]})}),function(s){return o.apply(this,arguments)})}}getMarkDownContent(t){return new Promise((r,o)=>{const a=new XMLHttpRequest;a.onreadystatechange=function(){4===this.readyState&&200===this.status&&r(a.responseText)},a.open("GET",`https://raw.githubusercontent.com/LagoVista/docs/master/guides${t}`,!0),a.send()})}getBlobResponse(t,e){const n=document.createElement("a");return n.style.display="none",document.body.appendChild(n),n.setAttribute("href",this.getFullUrl(t)),n.setAttribute("target","_blank"),n.setAttribute("download",e),n.click(),document.body.removeChild(n),null}getDateFilterHeaders(t,e){return[{"x-filter-startdate":t},{"x-filter-enddate":e}]}getListResponse(t,e=null,n=!0){var r=this;t.startsWith("/")&&(t=t.substring(1));let o=new vl;return e&&(e.start&&(o=o.append("x-filter-startdate",e.start)),e.end&&(o=o.append("x-filter-enddate",e.end)),e.groupBy&&(o=o.append("x-group-by",e.groupBy)),e.showDrafts&&(o=o.append("x-show-drafts",e.showDrafts.toString())),e.showDeleted&&(o=o.append("x-show-deleted",e.showDeleted.toString())),e.groupBySize&&(o=o.append("x-group-by-size",e.groupBySize.toString())),e.nextPartitionKey&&(o=o.append("x-nextpartitionkey",e.nextPartitionKey)),e.nextRowKey&&(o=o.append("x-nextrowkey",e.nextRowKey)),e.pageSize&&(o=o.append("x-pagesize",e.pageSize.toString())),e.pageIndex&&(o=o.append("x-pageindex",e.pageIndex.toString())),e.categoryKey&&(o=o.append("x-categorykey",e.categoryKey))),n&&this.networkCallService.beginCall(),new Promise((a,s)=>{var l;this.http.get(this.getFullUrl(t),{headers:o}).subscribe({next:l=>{n&&this.networkCallService.endCall(),l.successful?(l.setFilteredItems=d=>{l.filteredItems=d,l.refresh&&l.refresh()},l.clearFilteredItems=()=>{l.filteredItems=void 0,l.refresh&&l.refresh()},a(l)):(this.errorReporter.addErrors(l.errors),a(l))},error:(l=z(function*(d){n&&r.networkCallService.endCall(),401==d.status?r._401Handler?r._401Handler.handle():yield r.redirectToLogin():r.errorReporter.addMessage(d.message),a({successful:!1,errors:[{message:d.message}]})}),function(f){return l.apply(this,arguments)})})})}requestForInvokeResultEx(t,e=!0){return e&&this.networkCallService.beginCall(t),new Promise((n,r)=>{this.http.get(this.getFullUrl(t)).subscribe(this.handleResponse(n,e))})}request(t,e=!0,n=!0){return e&&this.networkCallService.beginCall(t),new Promise((r,o)=>{this.http.get(this.getFullUrl(t)).subscribe(this.handleResponse(r,e,n))})}get(t){return this.networkCallService.beginCall(t),new Promise((e,n)=>{this.http.get(this.getFullUrl(t)).subscribe(this.handleResponse(e))})}getFormResponse(t,e=!0){return e&&this.networkCallService.beginCall(t),new Promise((n,r)=>{this.http.get(this.getFullUrl(t)).subscribe(this.handleResponse(n,e))})}formPost(t,e){return this.networkCallService.beginCall(),new Promise((n,r)=>{this.http.post(this.getFullUrl(t),e).subscribe(this.handleResponse(n))})}post(t,e){return this.postWithResponse(t,e)}insert(t,e,n=!0){return n&&this.networkCallService.beginCall(t),new Promise((r,o)=>{this.http.post(this.getFullUrl(t),e).subscribe(this.handleResponse(r,n))})}postWithResponse(t,e,n=!0){return n&&this.networkCallService.beginCall(t),new Promise((r,o)=>{this.http.post(this.getFullUrl(t),e).subscribe(this.handleResponse(r,n))})}postRaw(t,e,n=!0){return n&&this.networkCallService.beginCall(t),new Promise((o,a)=>{this.http.post(this.getFullUrl(t),e).subscribe(this.handleResponse(o,n))})}postForListResponse(t,e){return this.networkCallService.beginCall(t),new Promise((n,r)=>{this.http.post(this.getFullUrl(t),e).subscribe(this.handleResponse(n))})}updateWithResponse(t,e,n=!0){return n&&this.networkCallService.beginCall(t),new Promise((r,o)=>{this.http.put(this.getFullUrl(t),e).subscribe(this.handleResponse(r,n))})}updateWithFormResponse(t,e,n=!0){return n&&this.networkCallService.beginCall(t),new Promise((r,o)=>{this.http.put(this.getFullUrl(t),e).subscribe(this.handleResponse(r,n))})}update(t,e,n=!0,r=!0){return n&&this.networkCallService.beginCall(t),new Promise((o,a)=>{this.http.put(this.getFullUrl(t),e).subscribe(this.handleResponse(o,n,r))})}delete(t){return this.networkCallService.beginCall(t),new Promise((e,n)=>{this.http.delete(this.getFullUrl(t)).subscribe(this.handleResponse(e))})}deleteWithResponse(t,e=!0){return e&&this.networkCallService.beginCall(t),new Promise((n,r)=>{this.http.delete(this.getFullUrl(t)).subscribe(this.handleResponse(n,e))})}postWithStreamNdjson(t,e,n,r=!0,o){var a=this;return new Promise(function(){var s=z(function*(l){let d=null;try{const f=yield fetch(a.getFullUrl(t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),signal:o,credentials:"include"});if(401===f.status)return a._401Handler?a._401Handler.handle():yield a.redirectToLogin(),n({kind:"error",errorMessage:"Not authorized. Please log in again."}),void l({successful:!1,warnings:[],errors:[{message:"Not authorized. Please log in again."}]});if(!f.ok){const ee=yield f.text().catch(()=>"");return n({kind:"error",errorMessage:f.statusText||`HTTP ${f.status}`}),void l({successful:!1,warnings:[],errors:[{message:ee||f.statusText||`Request failed: HTTP ${f.status}`}]})}const y=f.body;if(!y)return n({kind:"error",errorMessage:"Streaming response body is not available."}),void l({successful:!1,warnings:[],errors:[{message:"Streaming response body is not available."}]});const k=y.getReader?.();if(!k)return n({kind:"error",errorMessage:"Streaming is not supported in this environment."}),void l({successful:!1,warnings:[],errors:[{message:"Streaming is not supported in this environment."}]});const E=new TextDecoder;let W="";for(;;){const{done:ee,value:he}=yield k.read();if(ee)break;let ge;for(W+=E.decode(he,{stream:!0});(ge=W.indexOf("\n"))>=0;){const Ce=W.slice(0,ge).trim();if(W=W.slice(ge+1),Ce)try{const we=JSON.parse(Ce);n(we),"final"===we.kind&&we.final&&(d=we.final,console.log("final",d))}catch{}}}}catch(f){return"AbortError"===f?.name?void l({successful:!1,warnings:[],errors:[{message:"Request aborted."}]}):(n({kind:"error",errorMessage:"Unexpected error while streaming response."}),void l({successful:!1,warnings:[],errors:[{message:f?.message??"Unexpected error while streaming response."}]}))}if(!d)return n({kind:"error",errorMessage:"No final event received from server."}),void l({successful:!1,warnings:[],errors:[{message:"No final event received from server."}]});l(d)});return function(l){return s.apply(this,arguments)}}())}static \u0275fac=function(e){return new(e||An)(Ee(_d),Ee(Br),Ee(pd),Ee(co),Ee(mc),Ee(Cl))};static \u0275prov=$e({token:An,factory:An.\u0275fac,providedIn:"root"})}class nf{nuviotClient;_ownerList=[];_channelToken="--channel--";_idToken="--id--";_wsUrlFormat=`api/wsuri/${this._channelToken}/${this._idToken}/normal`;debug=!1;constructor(t){this.nuviotClient=t}destroy(t){this.debug&&console.log("current collection count: ",this._ownerList.length),this.debug&&console.log("removing SLWebSocket from collection: ",t.url),t.socket.close(),this._ownerList=this._ownerList.filter(e=>e.slWebSocketId!=t.slWebSocketId),this.debug&&console.log("updated collection count: ",this._ownerList.length),this.debug&&console.log("remaining sockets:"),this._ownerList.forEach(e=>{this.debug&&console.log("--\x3e owner | url:",`${e.owner} | ${e.url}`)}),this.debug&&console.log("************"),this.debug&&console.log("")}formatUri(t,e){return this._wsUrlFormat.replace(this._channelToken,t).replace(this._idToken,e)}openSLSocket(t,e,n){var r=this;return z(function*(){const o=r.formatUri(e,n);try{const a={slWebSocketId:Qn.newGuid(),owner:t,socket:yield r.openWebSocket(o),url:o};return r.debug&&console.log("current collection count: ",r._ownerList.length),r.debug&&console.log("adding new SLWebSocket to collection: ",a.url),r._ownerList.push(a),r.debug&&console.log("updated collection count: ",r._ownerList.length),a}catch{return}})()}openSLSocketWithUri(t,e){var n=this;return z(function*(){try{const r={slWebSocketId:Qn.newGuid(),owner:t,socket:yield n.openWebSocket(e),url:e};return n.debug&&console.log("current collection count: ",n._ownerList.length),n.debug&&console.log("adding new SLWebSocket to collection: ",r.url),n._ownerList.push(r),n.debug&&console.log("updated collection count: ",n._ownerList.length),r}catch{return}})()}openWebSocket(t){return new Promise((n,r)=>{this.nuviotClient.requestForInvokeResultEx(t,!1).then(o=>{const a=o.result;if(o.successful){this.debug&&console.log("Open Channel:",a);const s=new WebSocket(a);s.onopen=l=>{this.debug&&console.log("ws opened"),n(s)},s.onerror=l=>{this.debug&&console.log("ERROR OPEN SOCKET"),this.debug&&console.log(l),r("Failed to open channel")}}else this.debug&&console.log("fail to get socket url."),r("Failed to open channel")})})}static \u0275fac=function(e){return new(e||nf)(Ee(An))};static \u0275prov=$e({token:nf,factory:nf.\u0275fac,providedIn:"root"})}class Dd{constructor(){}get(t){let o,e=document.cookie.split(";"),n=e.length,r=`${t}=`;for(let a=0;a0?this._activatedRoute.snapshot.queryParams:{};const y={};if(this.hasParams())y.queryParamsHandling="preserve";else if(window.location.href.search){const k=this;location.search.substr(1).replace("==","`").split("&").forEach(function(E){const W=E.split("=");""!==W[0]&&(k.queryParams[W[0]]=W[1].replace("`","=="))}),this.hasParams()&&(y.queryParams=this.queryParams)}}getIsLoggedIn(){var t=this;return z(function*(){return"true"==t.cookieService.get("authenticated")?(yield t.nativeStorage.setItemAsync("is_logged_in","login_true"),!0):"login_true"==(yield t.nativeStorage.getItemAsync("is_logged_in"))})()}setIsLoggedIn(t){var e=this;return z(function*(){return e._isLoggedIn$.next(t),yield e.nativeStorage.setItemAsync("is_logged_in",t?"login_true":"login_false")})()}_users;_org;_isLoggedIn$=new Gt(0);_org$=new Gt(null);_user$=new Gt(null);_users$=new Gt(null);registerLocalUser(t){var e=this;return z(function*(){yield e.setOrg(t.currentOrganization),yield e.setUser(t),yield e.setIsLoggedIn(!0),yield e.getUserFavorites(),yield e.getMRU(),t.currentOrganization&&(yield e.refreshUserOrganization()),yield e.storage.removeItemAsync("active_user_summary_basic")})()}loadCurrentUser(){var t=this;return z(function*(){const e=yield t.clientService.request("/api/user");if(e.successful)return console.log(`response - ${e.successful} - ${e.model.currentOrganization}`),yield t.registerLocalUser(e.model),e.model;window.location.href="/Account/Login"})()}_activeUserFavoriteCall=0;getUserFavoritesForOrg(t){var e=this;return z(function*(){let n=yield e.nativeStorage.getItemAsync(`user_favorites_${t}`);if(n)return JSON.parse(n);if(e._activeUserFavoriteCall>0)return;e._activeUserFavoriteCall++;let r=yield e.clientService.request("/api/user/favorites",!1);return yield e.nativeStorage.setItemAsync(`user_favorites_${t}`,JSON.stringify(r.result)),e._activeUserFavoriteCall=0,r.result})()}getUserFavorites(){var t=this;return z(function*(){let e=yield t.getCurrentOrg();return new Promise(function(){var r=z(function*(o,a){if(e){let s=window.setInterval(z(function*(){let l=yield t.getUserFavoritesForOrg(e.id);l&&(o(l),window.clearInterval(s))}),50)}else o({favorites:[],modules:[]})});return function(o,a){return r.apply(this,arguments)}}())})()}_activeUserMruCall=0;getMruForOrg(t){var e=this;return z(function*(){let n=yield e.nativeStorage.getItemAsync(`user_mru_${t}`);if(n)return JSON.parse(n);if(e._activeUserMruCall>0)return;e._activeUserMruCall++;let r=yield e.clientService.request("/api/mru");if(r.successful)return yield e.nativeStorage.setItemAsync(`user_mru_${t}`,JSON.stringify(r.result)),e._activeUserMruCall=0,r.result;throw"could not load mru"})()}getMRU(){var t=this;return z(function*(){let e=yield t.getCurrentOrg();return new Promise(function(){var r=z(function*(o,a){if(e){let s=window.setInterval(z(function*(){let l=yield t.getMruForOrg(e.id);l&&(o(l),window.clearInterval(s))}),50)}else o({all:[],modules:[]})});return function(o,a){return r.apply(this,arguments)}}())})()}removeExternalLogin(t){var e=this;return z(function*(){return e.clientService.deleteWithResponse(`/api/user/externallogin/${t}`)})()}loadCurrentUserIfNecessary(){var t=this;return z(function*(){return(yield t.getUser())||(yield t.getIsLoggedIn())?null:yield t.loadCurrentUser()})()}updateCoreInfo(t){var e=this;return z(function*(){yield e.clientService.update("/api/user/coreinfo",t)})()}hasParams(){return Object.keys(this.queryParams).length>0}clearLocalState(){var t=this;return z(function*(){yield t.nativeStorage.clearAsync();for(var e=document.cookie.split(";"),n=0;n-1?r.substr(0,o):r;document.cookie=a+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}})()}logout(t=!0){var e=this;return z(function*(){return t&&e.networkCallService.beginCall(),new Promise((r,o)=>{var s;e.http.get("/api/v1/logoff").subscribe({next:(s=z(function*(l){t&&e.networkCallService.endCall(),yield e.clearLocalState(),e.setUser(null),yield e.setIsLoggedIn(!1),r(!0)}),function(d){return s.apply(this,arguments)}),error:function(){var s=z(function*(l){t&&e.networkCallService.endCall(),yield e.clearLocalState(),e.setUser(null),yield e.setIsLoggedIn(!1),r(!0)});return function(d){return s.apply(this,arguments)}}()})})})()}getOrgsForCurrentUser(){return this.clientService.getListResponse("/api/user/orgs")}acceptTermsAndConditions(){var t=this;return z(function*(){let e=yield t.clientService.request("/api/user/accepttc");return e.successful&&t.setUser(e.result),e})()}changeOrganization(t){var e=this;return z(function*(){try{return!!(yield e.clientService.get(`/api/org/${t}/change`)).successful&&(yield e.loadCurrentUser(),!0)}catch{return!1}})()}auth(t,e){var n=this;return z(function*(){let r={GrantType:"password",AppInstanceId:"webapp",AppId:"webapp",DeviceId:"deviceid",ClientType:"webclient",Email:t,Password:e,UserName:t},o=yield n.clientService.post("/api/v1/auth",r);return o.successful&&(yield n.nativeStorage.setItemAsync("access-token",o.result.accessToken)),o})()}hasRole(t){var e=this;return z(function*(){let r=(yield e.clientService.request("/app/user/roles")).map(o=>o.role.key);return r&&r.length>0?r.indexOf("owner")>=0:!!(r&&r.length>0)&&r.indexOf(t)>=0})()}refreshRoles(){var t=this;return z(function*(){let n=(yield t.clientService.request("/app/user/roles")).map(r=>r.role.key);yield t.nativeStorage.setItemAsync("app_user_roles",JSON.stringify(n))})()}getRoles(){var t=this;return z(function*(){let e=yield t.nativeStorage.getItemAsync("app_user_roles");return e?JSON.parse(e):[]})()}login(t,e,n,r,o){var a=this;return z(function*(){let s={endUserAppOrgId:r,email:t,password:e,inviteId:o,rememberMe:n.toString(),module:"public"},l=yield a.clientService.post("/api/v1/login",s);if(l.successful)return yield a.setUser(l.result.user),yield a.nativeStorage.setItemAsync(`user_mru_${l.result.user.currentOrganization.id}`,JSON.stringify(l.result.mostRecentlyUsed)),yield a.nativeStorage.setItemAsync(`user_favorites_${l.result.user.currentOrganization.id}`,JSON.stringify(l.result.favorites)),yield a.nativeStorage.setItemAsync("app_user_org",JSON.stringify(l.result.user.currentOrganization)),yield a.refreshRoles(),yield a.setIsLoggedIn(!0),l.result;throw l.errors[0].message})()}loginV2(t,e,n){var r=this;return z(function*(){let o={email:t,password:e,rememberMe:n.toString(),module:"public"},a=yield r.clientService.post("/api/v2/login",o);if(a.successful)return yield r.setUser(a.result.user),yield r.nativeStorage.setItemAsync(`user_mru_${a.result.user.currentOrganization.id}`,JSON.stringify(a.result.mostRecentlyUsed)),yield r.nativeStorage.setItemAsync(`user_favorites_${a.result.user.currentOrganization.id}`,JSON.stringify(a.result.favorites)),yield r.nativeStorage.setItemAsync("app_user_org",JSON.stringify(a.result.user.currentOrganization)),yield r.refreshRoles(),yield r.setIsLoggedIn(!0),a.result.user;throw r.errorReporter.addErrors(a.errors),a.errors[0].message})()}changePassword(t,e,n,r){var o=this;return z(function*(){const a=[];if(e)if(n&&0!=n.length)if(n!==r)a.push({message:"New Password and Confirm Password must match."});else{const l=/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d#&$@!+\-*]{8,}$$/i;(n.length<=5||!l.test(n))&&a.push({message:"Password must be at least 6 characters and include at least one lowercase letter, one uppercase letter, and one number and may contain the characters #,&,$,@,!,+,-"})}else a.push({message:"New Password is required."});else a.push({message:"Current Password is required."});if(a.length>0)return{errors:a,successful:!1,warnings:[]};let s={userId:t,oldPassword:e,newPassword:n};return yield o.clientService.post("/api/auth/changepassword",s)})()}validateDeviceUser(t){const e=[];if(t.firstName||e.push({message:"First Name is a required field."}),t.lastName||e.push({message:"Last Name is a required field."}),t.email){const n=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i;(t.email.length<=5||!n.test(t.email))&&e.push({message:"Invalid Email Address."})}else e.push({message:"Email is a required field."});if(t.phoneNumber){const n=/^\d{10}$/i;(10!==t.phoneNumber.length||!n.test(t.phoneNumber))&&e.push({message:"Please enter your phone number without and spaces, dashes, spaces."})}else e.push({message:"Phone Number is a required field."});if(t.password){const n=/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d#&$@!+\-*]{8,}$$/i;(t.password.length<=5||!n.test(t.password))&&e.push({message:"Password must be at least 6 characters and include at least one lowercase letter, one uppercase letter, and one number and may contain the characters #,&,$,@,!,+,-"})}else e.push({message:"Password is a required field."});return t.password!==t.confirmPassword&&e.push({message:"Password and confirm password must match."}),e}onLoggedIn(){return this._isLoggedIn$.asObservable()}onUsers(){return this._users$.asObservable()}onUser(){return this._user$.asObservable()}onOrg(){return this._org$.asObservable()}getUsers(){return this.clientService.getListResponse("/api/users")}getActiveUsers(t=!0,e=!0){return this.clientService.getListResponse(`/api/users/active?cached=${e}`,null,t)}getCachedUserSummary(){var t=this;return z(function*(){let e=yield t.storage.getItemAsync("active_user_summary_basic");if(e)return JSON.parse(e);let r=(yield t.getActiveUsers()).model.map(o=>({id:o.id,name:o.name,email:o.email,description:o.title,image:o.profileImageUrl?.imageUrl}));return yield t.storage.setItemAsync("active_user_summary_basic",JSON.stringify(r)),r})()}SL_ORG_IDS=["AA2C78499D0140A5A9CE4B7581EF9691","C8AD4589F26842E7A1AEFBAEFC979C9B"];isPrimaryOrg(){var t=this;return z(function*(){let e=yield t.getUser();return t.SL_ORG_IDS.filter(n=>n===e.currentOrganization.id).length>0})()}isForProductLine(){var t=this;return z(function*(){return(yield t.getCurrentOrg()).isForProductLine})()}static activeUserCall=0;static stackedCount=0;loadUserFromStorage(){var t=this;return z(function*(){if(0==$n.activeUserCall){let e=yield t.nativeStorage.getItemAsync("app_user");if(e)return JSON.parse(e);if(yield t.getIsLoggedIn()){$n.activeUserCall++;let n=yield t.loadCurrentUser();return $n.activeUserCall--,n}throw"not logged in, should not attempt to load user."}})()}getClaims(){var t=this;return z(function*(){return t.clientService.request("/user/claims")})()}getUser(){var t=this;return z(function*(){if(yield t.getIsLoggedIn())return $n.stackedCount++,new Promise(function(){var n=z(function*(r,o){let a=window.setInterval(z(function*(){let s=yield t.loadUserFromStorage();try{s&&(r(s),$n.stackedCount--,window.clearInterval(a))}catch{window.clearInterval(a),t.navService.gotoLogin(t._activatedRoute.snapshot.toString())}}),50)});return function(r,o){return n.apply(this,arguments)}}());t.navService.gotoLogin(window.location.pathname)})()}setUser(t){var e=this;return z(function*(){return t?(yield e.nativeStorage.setItemAsync("app_user",JSON.stringify(t)),e._user$.next(t)):(yield e.nativeStorage.removeItemAsync("app_user"),yield e.setOrg(null),e._user$.next(null)),!0})()}getSessionId(){var t=this;return z(function*(){let e=yield t.nativeStorage.getItemAsync("sessionId");return e||(e=Qn.newGuid(),yield t.nativeStorage.setItemAsync("sessionId",e)),e})()}setCID(t){var e=this;return z(function*(){yield e.nativeStorage.setItemAsync("cid",t)})()}getCID(){var t=this;return z(function*(){return yield t.nativeStorage.getItemAsync("cid")})()}_activeOrgCall=0;getOrgFromStorage(){let t=window.localStorage.getItem("app_user_org");if(t)return JSON.parse(t)}refreshUserOrganization(){var t=this;return z(function*(){yield t.nativeStorage.removeItemAsync("app_user_org");let e=yield t.clientService.request("/api/org/current/summary",!1);e.successful&&(yield t.nativeStorage.setItemAsync("app_user_org",JSON.stringify(e.result)))})()}getCurrentOrg(){var t=this;return z(function*(){let e=yield t.nativeStorage.getItemAsync("app_user_org");return JSON.parse(e)})()}setOrg(t){var e=this;return z(function*(){return e.orgWebSocket&&e.orgWebSocket.socket.close(),t?(yield e.nativeStorage.setItemAsync("app_user_org",JSON.stringify(t)),e.orgWebSocket=yield e.notificationService.openSLSocket("OrgService","entity",t.id),e._org$.next(t)):(e._org$.next(null),yield e.nativeStorage.removeItemAsync("app_user_org")),!0})()}sendEmailConfirmCode(){return this.clientService.request("/api/verify/email/confirmationcode/send")}sendPhoneConfirmCode(t){return t=t.replace(/\D/g,""),this.clientService.request(`/api/verify/sendsmscode/${t}`)}confirmEmail(t,e){return this.clientService.request(`/api/verify/email?code=${e}&userid=${t}`)}confirmPhone(t){return this.clientService.request(`/api/verify/phone/${t}`)}sendPasswordLink(t){return this.clientService.postWithResponse("/api/auth/resetpassword/sendlink",{email:t})}resetPassword(t){return this.clientService.post("/api/auth/resetpassword",t)}removeUserFromOrg(t){var e=this;return z(function*(){let n=yield e.getCurrentOrg();return yield e.clientService.delete(`/api/org/${n.id}/user/${t}`)})()}addMediaResourceForUser(t,e){this.clientService.post(`/api/user/${t}/mediaresource`,e)}deleteUser(t){return this.clientService.delete(`/api/user/${t}`)}sysDeleteUser(t){return this.clientService.delete(`/sys/api/user/${t}`)}getAllUsers(){var t=this;return z(function*(){return yield t.clientService.getListResponse("/sys/api/users/all")})()}showWelcomeOnLogin(){var t=this;return z(function*(){t.clientService.request("/api/users/welcome/show/true")})()}hideWelcomeOnLogin(){var t=this;return z(function*(){t.clientService.request("/api/users/welcome/show/false")})()}updateOrg(t){var e=this;return z(function*(){return yield e.clientService.update("/api/org",t)})()}getCurrentOrgForEditing(){var t=this;return z(function*(){return yield t.clientService.getFormResponse("/api/org/current")})()}postMetric(t,e,n){this.clientService.post("/web/logmetric",{fullPath:t,sessionId:e,campaignId:n})}loadUser(t){return this.clientService.getFormResponse(`/api/user/${t}`)}updateUser(t){return this.clientService.update("/api/user",t)}updateUserProfileImage(t){return this.clientService.update("/api/user/profile/picture",t)}getTimeZones(){return this.clientService.request("/api/timezones")}getUserSSN(t){return this.clientService.request(`/api/user/${t}/ssn`)}loadUsers(t){var e=this;return z(function*(){return yield e.clientService.getListResponse("/api/users",t)})()}loadActiveUsers(t){var e=this;return z(function*(){return yield e.clientService.getListResponse("/api/users/active",t)})()}createInvitation(){return this.clientService.getFormResponse("/api/org/invitation/factory")}getInvitations(){var t=this;return z(function*(){return yield t.clientService.getListResponse("/api/org/invitations")})()}getInvitation(t){var e=this;return z(function*(){return e.clientService.request(`/api/org/invitation/${t}`)})()}loadInvitation(t){var e=this;return z(function*(){return e.clientService.getFormResponse(`/api/org/invitation/form/${t}`)})()}updateUserPhoneNumber(t,e){var n=this;return z(function*(){let r=yield n.loadUser(t);return r.model.phoneNumber=e,yield n.updateUser(r.model)})()}updateTeamsAccountName(t,e){var n=this;return z(function*(){let r=yield n.loadUser(t);return r.model.teamsAccountName=e,yield n.updateUser(r.model)})()}createUserRegistration(){var t=this;return z(function*(){return t.clientService.getFormResponse("/api/user/factory")})()}registerNewUser(t){var e=this;return z(function*(){return yield e.clientService.postWithResponse("/api/user/create",t)})()}registerUser(t){var e=this;return z(function*(){var n=yield e.clientService.postWithResponse("/api/user/register",t);return yield e.setOrg(n.result.appUser.currentOrganization),yield e.setUser(n.result.appUser),yield e.setIsLoggedIn(!0),yield e.getUserFavorites(),yield e.getMRU(),yield e.refreshUserOrganization(),yield e.storage.removeItemAsync("active_user_summary_basic"),n})()}cancelInvite(t){var e=this;return z(function*(){return yield e.clientService.delete(`/api/org/invitation/${t}`)})()}resendInvite(t){var e=this;return z(function*(){return yield e.clientService.get(`/api/org/invitation/${t}/resend`)})()}sendInvitation(t){var e=this;return z(function*(){return yield e.clientService.post("/api/org/inviteuser/send",t)})()}createNewOrg(){var t=this;return z(function*(){return yield t.clientService.getFormResponse("/api/org/factory")})()}getAuthLog(){var t=this;return z(function*(){return t.clientService.getListResponse("/sys/auth/log")})()}getUsersForOrg(t){return this.clientService.getListResponse(`/api/org/${t}/users`)}searchUsersForOrg(t,e,n){let r="/api/sys/user/search?en=1";return r+=t?`&firstName=${t}`:"",r+=e?`&lastName=${e}`:"",r+=n?`&email=${n}`:"",this.clientService.getListResponse(r)}setSvgSignature(t){var e=this;return z(function*(){return yield e.clientService.postWithResponse("/api/user/svg/signature",{svg:t})})()}setSvgInitials(t){var e=this;return z(function*(){return yield e.clientService.postWithResponse("/api/user/svg/initials",{svg:t})})()}getSvgSignature(){var t=this;return z(function*(){return yield t.clientService.request("/api/user/svg/signature",!1,!1)})()}getSvgInitials(){var t=this;return z(function*(){return yield t.clientService.request("/api/user/svg/initials",!1,!1)})()}clearSvgSignature(){var t=this;return z(function*(){return yield t.clientService.delete("/api/user/svg/signature")})()}clearSvgInitials(){var t=this;return z(function*(){return yield t.clientService.delete("/api/user/svg/initials")})()}getAuthLogForUser(t){var e=this;return z(function*(){return yield e.clientService.getListResponse(`/api/sys/user/${t}/auth/log`)})()}setUserEmailConfirmed(t){var e=this;return z(function*(){return yield e.clientService.request(`/api/sys/user/${t}/email/confirm`)})()}setUserPhoneConfirmed(t){var e=this;return z(function*(){return yield e.clientService.request(`/api/sys/user/${t}/phone/confirm`)})()}sendUserEmailConfirmation(t){var e=this;return z(function*(){return yield e.clientService.request(`/api/sys/user/${t}/email/confirm/send`)})()}setLoginType(t,e){var n=this;return z(function*(){return yield n.clientService.request(`/api/sys/user/${t}/logintype/${e}`)})()}setUserFinanceAdmin(t){var e=this;return z(function*(){return yield e.clientService.request(`/api/sys/user/${t}/financeadmin/set`)})()}clearUserFinanceAdmin(t){var e=this;return z(function*(){return yield e.clientService.request(`/api/sys/user/${t}/financeadmin/clear`)})()}static \u0275fac=function(e){return new(e||$n)(Ee(_d),Ee(An),Ee(Cl),Ee(co),Ee(co),Ee(mc),Ee(nf),Ee(Dd),Ee(Br),Ee(bi))};static \u0275prov=$e({token:$n,factory:$n.\u0275fac,providedIn:"root"})}const Cee=["addListener","removeListener"],wee=["addEventListener","removeEventListener"],Dee=["on","off"];function yn(i,t,e,n){if(b(e)&&(n=e,e=void 0),n)return yn(i,t,e).pipe(Lk(n));const[r,o]=function kee(i){return b(i.addEventListener)&&b(i.removeEventListener)}(i)?wee.map(a=>s=>i[a](t,s,e)):function Mee(i){return b(i.addListener)&&b(i.removeListener)}(i)?Cee.map(J4(i,t)):function xee(i){return b(i.on)&&b(i.off)}(i)?Dee.map(J4(i,t)):[];if(!r&&or(i))return ar(a=>yn(a,t,e))(kn(i));if(!r)throw new TypeError("Invalid event target");return new S(a=>{const s=(...l)=>a.next(1o(s)})}function J4(i,t){return e=>n=>i[e](t,n)}class Tee extends D{constructor(t,e){super()}schedule(t,e=0){return this}}const P1={setInterval(i,t,...e){const{delegate:n}=P1;return n?.setInterval?n.setInterval(i,t,...e):setInterval(i,t,...e)},clearInterval(i){const{delegate:t}=P1;return(t?.clearInterval||clearInterval)(i)},delegate:void 0};class FT extends Tee{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var n;if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,n=0){return P1.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&P1.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,n=!1;try{this.work(t)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,C(n,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}class Qm{constructor(t,e=Qm.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,n){return new this.schedulerActionCtor(this,t).schedule(n,e)}}Qm.now=nT.now;class PT extends Qm{constructor(t,e=Qm.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const Xm=new PT(FT),See=Xm;function Bu(i=0,t,e=See){let n=-1;return null!=t&&(Ba(t)?e=t:n=t),new S(r=>{let o=function Eee(i){return i instanceof Date&&!isNaN(i)}(i)?+i-e.now():i;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=n?this.schedule(void 0,n):r.complete())},o)})}const{isArray:Aee}=Array;function e5(i){return 1===i.length&&Aee(i[0])?i[0]:i}function R1(...i){const t=Ji(i),e=e5(i);return e.length?new S(n=>{let r=e.map(()=>[]),o=e.map(()=>!1);n.add(()=>{r=o=null});for(let a=0;!n.closed&&a{if(r[a].push(s),r.every(l=>l.length)){const l=r.map(d=>d.shift());n.next(t?t(...l):l),r.some((d,f)=>!d.length&&o[f])&&n.complete()}},()=>{o[a]=!0,!r[a].length&&n.complete()}));return()=>{r=o=null}}):Fr}function Ot(i){return Ne((t,e)=>{kn(i).subscribe(Ye(e,()=>e.complete(),ne)),!e.closed&&t.subscribe(e)})}function rf(i,t=ve){return i=i??Pee,Ne((e,n)=>{let r,o=!0;e.subscribe(Ye(n,a=>{const s=t(a);(o||!i(r,s))&&(o=!1,r=s,n.next(a))}))})}function Pee(i,t){return i===t}function RT(...i){const t=Ji(i);return Ne((e,n)=>{const r=i.length,o=new Array(r);let a=i.map(()=>!1),s=!1;for(let l=0;l{o[l]=d,!s&&!a[l]&&(a[l]=!0,(s=a.every(ve))&&(a=null))},ne));e.subscribe(Ye(n,l=>{if(s){const d=[l,...o];n.next(t?t(...d):d)}}))})}function r5(i,t){return t?e=>Wp(t.pipe(Xn(1),function Ree(){return Ne((i,t)=>{i.subscribe(Ye(t,ne))})}()),e.pipe(r5(i))):ar((e,n)=>kn(i(e,n)).pipe(Xn(1),c1(e)))}function LT(i,t=Xm){const e=Bu(i,t);return r5(()=>e)}function L1(i){return Oi((t,e)=>i<=e)}new S(ne),Math,Math,Math;const zte=["*"],cne=["dialog"];function GT(i){return"string"==typeof i}function Yu(i){return null!=i}function df(i){return(i||document.body).getBoundingClientRect()}const w5={animation:!0,transitionTimerDelayMs:5},iie=()=>{},{transitionTimerDelayMs:rie}=w5,o_=new Map,Uo=(i,t,e,n)=>{let r=n.context||{};const o=o_.get(t);if(o)switch(n.runningTransition){case"continue":return Fr;case"stop":i.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),o_.delete(t)}const a=e(t,n.animation,r)||iie;if(!n.animation||"none"===window.getComputedStyle(t).transitionProperty)return i.run(()=>a()),At(void 0).pipe(function tie(i){return t=>new S(e=>t.subscribe({next:a=>i.run(()=>e.next(a)),error:a=>i.run(()=>e.error(a)),complete:()=>i.run(()=>e.complete())}))}(i));const s=new be,l=new be,d=s.pipe(function Fee(...i){return t=>Wp(t,At(...i))}(!0));o_.set(t,{transition$:s,complete:()=>{l.next(),l.complete()},context:r});const f=function nie(i){const{transitionDelay:t,transitionDuration:e}=window.getComputedStyle(i);return 1e3*(parseFloat(t)+parseFloat(e))}(t);return i.runOutsideAngular(()=>{const y=yn(t,"transitionend").pipe(Ot(d),Oi(({target:E})=>E===t));(function t5(...i){return 1===(i=e5(i)).length?kn(i[0]):new S(function Iee(i){return t=>{let e=[];for(let n=0;e&&!t.closed&&n{if(e){for(let o=0;o{o_.delete(t),i.run(()=>{a(),s.next(),s.complete()})})}),s.asObservable()};let Y1=(()=>{class i{constructor(){this.animation=w5.animation}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var Vr=(()=>{return(i=Vr||(Vr={}))[i.Tab=9]="Tab",i[i.Enter=13]="Enter",i[i.Escape=27]="Escape",i[i.Space=32]="Space",i[i.PageUp=33]="PageUp",i[i.PageDown=34]="PageDown",i[i.End=35]="End",i[i.Home=36]="Home",i[i.ArrowLeft=37]="ArrowLeft",i[i.ArrowUp=38]="ArrowUp",i[i.ArrowRight=39]="ArrowRight",i[i.ArrowDown=40]="ArrowDown",Vr;var i})();typeof navigator<"u"&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const I5=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function F5(i){const t=Array.from(i.querySelectorAll(I5)).filter(e=>-1!==e.tabIndex);return[t[0],t[t.length-1]]}new Date(1882,10,12),new Date(2174,10,25);class zu{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}let tre=(()=>{class i{constructor(e,n){this._el=e,this._zone=n}ngOnInit(){this._zone.onStable.asObservable().pipe(Xn(1)).subscribe(()=>{Uo(this._zone,this._el.nativeElement,(e,n)=>{n&&df(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Uo(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(Bt))},i.\u0275cmp=Be({type:i,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(e,n){2&e&&(Co("modal-backdrop"+(n.backdropClass?" "+n.backdropClass:"")),Zt("show",!n.animation)("fade",n.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,n){},encapsulation:2}),i})();class dr{close(t){}dismiss(t){}}class nre{constructor(t,e,n,r){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=r,this._closed=new be,this._dismissed=new be,this._hidden=new be,t.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,a)=>{this._resolve=o,this._reject=a}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Ot(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Ot(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();!function C5(i){return i&&i.then}(e)?!1!==e&&this._dismiss(t):e.then(n=>{!1!==n&&this._dismiss(t)},()=>{})}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():At(void 0);t.subscribe(()=>{const{nativeElement:n}=this._windowCmptRef.location;n.parentNode.removeChild(n),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),R1(t,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var c_=(()=>{return(i=c_||(c_={}))[i.BACKDROP_CLICK=0]="BACKDROP_CLICK",i[i.ESC=1]="ESC",c_;var i})();let ire=(()=>{class i{constructor(e,n,r){this._document=e,this._elRef=n,this._zone=r,this._closed$=new be,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Ae,this.shown=new be,this.hidden=new be}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":GT(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Xn(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,n={animation:this.animation,runningTransition:"stop"},a=R1(Uo(this._zone,e,()=>e.classList.remove("show"),n),Uo(this._zone,this._dialogEl.nativeElement,()=>{},n));return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){const e={animation:this.animation,runningTransition:"continue"};R1(Uo(this._zone,this._elRef.nativeElement,(o,a)=>{a&&df(o),o.classList.add("show")},e),Uo(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{yn(e,"keydown").pipe(Ot(this._closed$),Oi(r=>r.which===Vr.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(c_.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let n=!1;yn(this._dialogEl.nativeElement,"mousedown").pipe(Ot(this._closed$),ir(()=>n=!1),so(()=>yn(e,"mouseup").pipe(Ot(this._closed$),Xn(1))),Oi(({target:r})=>e===r)).subscribe(()=>{n=!0}),yn(e,"click").pipe(Ot(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!n&&this._zone.run(()=>this.dismiss(c_.BACKDROP_CLICK))),n=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const n=e.querySelector("[ngbAutofocus]"),r=F5(e)[0];(n||r||e).focus()}}_restoreFocus(){const e=this._document.body,n=this._elWithFocus;let r;r=n&&n.focus&&e.contains(n)?n:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Uo(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return i.\u0275fac=function(e){return new(e||i)(U(Wt),U(Pt),U(Bt))},i.\u0275cmp=Be({type:i,selectors:[["ngb-modal-window"]],viewQuery:function(e,n){if(1&e&&un(cne,7),2&e){let r;pt(r=ft())&&(n._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,n){2&e&&(mt("aria-modal",!0)("aria-labelledby",n.ariaLabelledBy)("aria-describedby",n.ariaDescribedBy),Co("modal d-block"+(n.windowClass?" "+n.windowClass:"")),Zt("fade",n.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:zte,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,n){1&e&&(ro(),u(0,"div",0,1)(2,"div",2),Ei(3),c()()),2&e&&Co("modal-dialog"+(n.size?" modal-"+n.size:"")+(n.centered?" modal-dialog-centered":"")+n.fullscreenClass+(n.scrollable?" modal-dialog-scrollable":"")+(n.modalDialogClass?" "+n.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),i})(),rre=(()=>{class i{constructor(e){this._document=e}hide(){const e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),n=this._document.body,r=n.style,{overflow:o,paddingRight:a}=r;if(e>0){const s=parseFloat(window.getComputedStyle(n).paddingRight);r.paddingRight=`${s+e}px`}return r.overflow="hidden",()=>{e>0&&(r.paddingRight=a),r.overflow=o}}}return i.\u0275fac=function(e){return new(e||i)(Ee(Wt))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ore=(()=>{class i{constructor(e,n,r,o,a,s){this._applicationRef=e,this._injector=n,this._document=r,this._scrollBar=o,this._rendererFactory=a,this._ngZone=s,this._activeWindowCmptHasChanged=new be,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new Ae,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((i,t,e,n=!1)=>{this._ngZone.runOutsideAngular(()=>{const r=yn(t,"focusin").pipe(Ot(e),Ve(o=>o.target));yn(t,"keydown").pipe(Ot(e),Oi(o=>o.which===Vr.Tab),RT(r)).subscribe(([o,a])=>{const[s,l]=F5(t);(a===s||a===t)&&o.shiftKey&&(l.focus(),o.preventDefault()),a===l&&!o.shiftKey&&(s.focus(),o.preventDefault())}),n&&yn(t,"click").pipe(Ot(e),RT(r),Ve(o=>o[1])).subscribe(o=>o.focus())})})(0,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}_restoreScrollBar(){const e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,n,r){const o=r.container instanceof HTMLElement?r.container:Yu(r.container)?this._document.querySelector(r.container):this._document.body,a=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const s=new dr,l=this._getContentRef(r.injector||e,n,s,r);let d=!1!==r.backdrop?this._attachBackdrop(o):void 0,f=this._attachWindowComponent(o,l.nodes),y=new nre(f,l,d,r.beforeDismiss);return this._registerModalRef(y),this._registerWindowCmpt(f),y.hidden.pipe(Xn(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(a.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),s.close=k=>{y.close(k)},s.dismiss=k=>{y.dismiss(k)},this._applyWindowOptions(f.instance,r),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),d&&d.instance&&(this._applyBackdropOptions(d.instance,r),d.changeDetectorRef.detectChanges()),f.changeDetectorRef.detectChanges(),y}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(n=>n.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let n=ok(tre,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_attachWindowComponent(e,n){let r=ok(ire,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:n});return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_applyWindowOptions(e,n){this._windowAttributes.forEach(r=>{Yu(n[r])&&(e[r]=n[r])})}_applyBackdropOptions(e,n){this._backdropAttributes.forEach(r=>{Yu(n[r])&&(e[r]=n[r])})}_getContentRef(e,n,r,o){return n?n instanceof Ui?this._createFromTemplateRef(n,r):GT(n)?this._createFromString(n):this._createFromComponent(e,n,r,o):new zu([])}_createFromTemplateRef(e,n){const o=e.createEmbeddedView({$implicit:n,close(a){n.close(a)},dismiss(a){n.dismiss(a)}});return this._applicationRef.attachView(o),new zu([o.rootNodes],o)}_createFromString(e){const n=this._document.createTextNode(`${e}`);return new zu([[n]])}_createFromComponent(e,n,r,o){const a=Li.create({providers:[{provide:dr,useValue:r}],parent:e}),s=ok(n,{environmentInjector:this._applicationRef.injector,elementInjector:a}),l=s.location.nativeElement;return o.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(s.hostView),new zu([[l]],s.hostView,s)}_setAriaHidden(e){const n=e.parentElement;n&&e!==this._document.body&&(Array.from(n.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,n)=>{e?n.setAttribute("aria-hidden",e):n.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const n=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(n,n)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const n=this._windowCmpts.indexOf(e);n>-1&&(this._windowCmpts.splice(n,1),this._activeWindowCmptHasChanged.next())})}}return i.\u0275fac=function(e){return new(e||i)(Ee(hd),Ee(Li),Ee(Wt),Ee(rre),Ee(wp),Ee(Bt))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),are=(()=>{class i{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return i.\u0275fac=function(e){return new(e||i)(Ee(Y1))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),zn=(()=>{class i{constructor(e,n,r){this._injector=e,this._modalStack=n,this._config=r}open(e,n={}){const r={...this._config,animation:this._config.animation,...n};return this._modalStack.open(this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return i.\u0275fac=function(e){return new(e||i)(Ee(Li),Ee(ore),Ee(are))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function Are(i,t){if(1&i&&(u(0,"span"),m(1),c()),2&i){const e=g().$implicit;h(1),Ke("- ",e.context,"")}}function Ire(i,t){if(1&i&&(u(0,"p"),m(1),w(2,Are,2,1,"span",3),c()),2&i){const e=t.$implicit;h(1),Ke(" ",e.message," "),h(1),p("ngIf",e.context)}}function Fre(i,t){if(1&i&&(u(0,"div"),w(1,Ire,3,2,"p",6),c()),2&i){const e=g();h(1),p("ngForOf",e.errors)}}new nt("live announcer delay",{providedIn:"root",factory:function Sre(){return 100}});class K1{activeModal;errorReporterService;modalHeader;errors;modalContent="";constructor(t,e){this.activeModal=t,this.errorReporterService=e,console.log("error reporter modal")}closeModal(){this.errors=null,this.errorReporterService.clearErrors(),this.activeModal.close()}static \u0275fac=function(e){return new(e||K1)(U(dr),U(Cl))};static \u0275cmp=Be({type:K1,selectors:[["app-modal"]],decls:10,vars:3,consts:[[1,"modal-header"],[2,"color","var(--color-primary)"],[1,"modal-body",2,"overflow","hidden"],[4,"ngIf"],[1,"modal-footer"],[1,"btn","btn-md","btn-primary",3,"click"],[4,"ngFor","ngForOf"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"h4",1),m(2),c()(),u(3,"div",2),w(4,Fre,2,1,"div",3),u(5,"p"),m(6),c()(),u(7,"div",4)(8,"button",5),N("click",function(){return n.closeModal()}),m(9,"Ok"),c()()),2&e&&(h(2),Re(n.modalHeader),h(2),p("ngIf",n.errors),h(2),Ke(" ",n.modalContent," "))},dependencies:[jt,ct],styles:["[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}p[_ngcontent-%COMP%], .modal-header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--color-fg)}"]})}class kd{sanitizer;constructor(t){this.sanitizer=t}transform(t,e){let n="";return e&&e.length>=0&&(n=e),t&&0!==t.length?this.sanitizer.bypassSecurityTrustHtml(t):n}static \u0275fac=function(e){return new(e||kd)(U(Ps,16))};static \u0275pipe=Yn({name:"preformattedHtml",type:kd,pure:!0})}function Pre(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g();h(1),Re(e.warningMessage)}}function Rre(i,t){1&i&&(H(0,"pre",10),Qt(1,"preformattedHtml")),2&i&&p("innerHtml",Xt(1,1,g().content),Un)}function Lre(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g();h(1),Re(e.content)}}function Ore(i,t){if(1&i&&(u(0,"div",11),m(1),c()),2&i){const e=g();h(1),Re(e.confirmationMessage)}}class xl{activeModal;isPermanent=!0;title="Are you sure?";content;objectName;contentIsHtml=!1;warningMessage;cancelButtonText="Cancel";confirmButtonText="Proceed";confirmationMessage=`To confirm this action, please click '${this.confirmButtonText}'`;confirmationResult=new Ae;constructor(t){this.activeModal=t}ngOnInit(){this.objectName?(this.warningMessage=`Are you sure you want to delete ${this.objectName}? You may not be able to undo this action.`,this.confirmButtonText="Delete",this.confirmationMessage=`To confirm this action, please click '${this.confirmButtonText}'`):(!this.warningMessage||0===this.warningMessage.length)&&(this.warningMessage=this.isPermanent?"This operation is permanent and cannot be easily reversed.":"")}cancelAction(){this.confirmationResult.emit(!1),this.activeModal.close()}closeModal(){this.activeModal.close()}confirmAction(){this.confirmationResult.emit(!0),this.activeModal.close()}static \u0275fac=function(e){return new(e||xl)(U(dr))};static \u0275cmp=Be({type:xl,selectors:[["app-modal-confirm-action"]],inputs:{isPermanent:"isPermanent",title:"title",content:"content",objectName:"objectName",contentIsHtml:"contentIsHtml",warningMessage:"warningMessage",cancelButtonText:"cancelButtonText",confirmButtonText:"confirmButtonText",confirmationMessage:"confirmationMessage"},outputs:{confirmationResult:"confirmationResult"},decls:14,vars:7,consts:[[1,"modal-header"],[2,"color","var(--color-primary)"],[1,"fa-solid","fa-triangle-exclamation",2,"color","red"],[1,"modal-body",2,"overflow","hidden","color","var(--color-fg)"],[4,"ngIf"],[3,"innerHtml",4,"ngIf"],["style","padding-top: 1em;",4,"ngIf"],[1,"modal-footer"],[1,"btn","btn-md","btn-primary",3,"click"],[1,"btn","btn-md","btn-danger",3,"click"],[3,"innerHtml"],[2,"padding-top","1em"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"h4",1),H(2,"i",2),m(3),c()(),u(4,"div",3),w(5,Pre,2,1,"div",4),w(6,Rre,2,3,"pre",5),w(7,Lre,2,1,"div",4),w(8,Ore,2,1,"div",6),c(),u(9,"div",7)(10,"button",8),N("click",function(){return n.cancelAction()}),m(11),c(),u(12,"button",9),N("click",function(){return n.confirmAction()}),m(13),c()()),2&e&&(h(3),Ke(" ",n.title,""),h(2),p("ngIf",n.warningMessage),h(1),p("ngIf",n.contentIsHtml),h(1),p("ngIf",!n.contentIsHtml),h(1),p("ngIf",n.confirmationMessage),h(3),Re(n.cancelButtonText),h(2),Re(n.confirmButtonText))},dependencies:[ct,kd]})}class hf{modalService;constructor(t){this.modalService=t}showPopup(t,e){let n=this.modalService.open(K1).componentInstance;n.modalHeader=t,n.modalContent=e}showConfirmDelete(t){return new Promise((n,r)=>{let o=this.modalService.open(xl).componentInstance;o.objectName=t,o.confirmAction=()=>{n(!0),o.closeModal()},o.cancelAction=()=>{n(!1),o.closeModal()}})}showConfirm(t,e){return new Promise((r,o)=>{let a=this.modalService.open(xl).componentInstance;a.title=t,a.isPermanent=!1,a.content=e,a.confirmAction=()=>{r(!0),a.closeModal()},a.cancelAction=()=>{r(!1),a.closeModal()}})}static \u0275fac=function(e){return new(e||hf)(Ee(zn))};static \u0275prov=$e({token:hf,factory:hf.\u0275fac,providedIn:"root"})}class d_{userService;modalServices;cookieService;constructor(t,e,n){this.userService=t,this.modalServices=e,this.cookieService=n}_lastNotified;intercept(t,e){var n=this;return t=t.clone({withCredentials:!0}),e.handle(t).pipe(ir(function(){var r=z(function*(o){if(o instanceof Am){if(o.url.indexOf("logout")>-1||o.url.indexOf("public")>-1)return;302==o.status?console.log("REDIRECT => ",o):o.body&&200===o.status&&n.cookieService.get("authenticated")&&(yield n.userService.loadCurrentUserIfNecessary());let a=o.headers.get("x-current-org-id"),s=o.headers.get("x-current-org-name");if(a&&s&&"none"!=s){let l=n.userService.getOrgFromStorage();if(l&&l.id!=a){let d=99999;n._lastNotified&&(d=(new Date).getTime()-n._lastNotified.getTime()),d>15e3&&(n.modalServices.showPopup("Organization Changed",`It appears you have logged in to another organization on the server. Your current organization: ${l.text}, will be changed to: ${s}`),n.userService.refreshUserOrganization(),n._lastNotified=new Date)}}}});return function(o){return r.apply(this,arguments)}}()))}static \u0275fac=function(e){return new(e||d_)(Ee($n),Ee(hf),Ee(Dd))};static \u0275prov=$e({token:d_,factory:d_.\u0275fac})}class Aa{nuviotClient;constructor(t){this.nuviotClient=t}getPublicContentItemsByKey(t){return this.nuviotClient.request(`/api/sitecontent/public/${t}/all`)}getPublicContentItemByKey(t,e){return this.nuviotClient.request(`/api/sitecontent/${t}/${e}/public`)}getContentTypes(){return this.nuviotClient.request("/api/sitecontent/contenttypes")}getFilteredSiteContent(t){return this.nuviotClient.getListResponse(`/api/sitecontent/${t}/all`)}getSiteContentItemsForOrgNS(t,e){return this.nuviotClient.request(`/api/sitecontent/${t}/${e}/all`)}getSiteContentForOrgNS(t,e,n){return this.nuviotClient.request(`/api/content/${t}/${e}/${n}`)}getAllSiteContent(){return this.nuviotClient.getListResponse("/api/sitecontent/all")}createSiteContent(){return this.nuviotClient.getFormResponse("/api/sitecontent/factory")}getSiteContent(t){return this.nuviotClient.request(`/api/sitecontent/${t}`)}getSiteContentForEditing(t){return this.nuviotClient.getFormResponse(`/api/sitecontent/${t}/edit`)}editRevision(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/sitecontent/revision/factory");return n.model=t,n.isEditing=!0,n})()}addSiteContent(t){return this.nuviotClient.post("/api/sitecontent",t)}publishSiteContent(t){return this.nuviotClient.updateWithFormResponse("/api/sitecontent/revision/publish",t)}updateSiteContent(t){return this.nuviotClient.update("/api/sitecontent",t)}contentTypes(){return this.nuviotClient.request("/api/sitecontent/contenttypes")}deleteSiteContent(t){return this.nuviotClient.delete(`/api/sitecontent/${t}`)}getSharedContentItems(t){return this.nuviotClient.getListResponse(`/api/sharedcontent/${t}/list`)}getSharedContent(t){return this.nuviotClient.getFormResponse(`/api/sharedcontent/${t}`)}getRawSharedContent(t){return this.nuviotClient.request(`/api/sharedcontent/${t}/raw`)}createSharedContent(t){return this.nuviotClient.getFormResponse(`/api/sharedcontent/${t}/factory`)}addSharedContent(t){return this.nuviotClient.post("/api/sharedcontent",t)}updateSharedContent(t){return this.nuviotClient.update("/api/sharedcontent",t)}deleteSharedContent(t){return this.nuviotClient.delete(`/api/sharedcontent/${t}`)}saveSharedContent(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateSharedContent(t.model);{let n=yield e.addSharedContent(t.model);return n.successful&&(t.isEditing=!0),n}})()}createNewSiteContent(){var t=this;return z(function*(){return t.nuviotClient.getFormResponse("/api/sitecontent/new")})()}saveSiteContent(t){var e=this;return z(function*(){return e.nuviotClient.post("/api/sitecontent/create",t.model)})()}addDocumentTemplate(t){var e=this;return z(function*(){return e.nuviotClient.post("/api/documenttemplate",t)})()}updateDocumentTemplate(t){var e=this;return z(function*(){return e.nuviotClient.post("/api/documenttemplate",t)})()}getDocumentTemplate(t){var e=this;return z(function*(){return e.nuviotClient.getFormResponse(`/api/documenttemplate/${t}`)})()}createDocumentTemplate(){var t=this;return z(function*(){return t.nuviotClient.getFormResponse("/api/documenttemplate/factory")})()}getDocumentTemplates(){var t=this;return z(function*(){return t.nuviotClient.getListResponse("/api/documenttemplates")})()}getDocumentTemplatesByType(t){var e=this;return z(function*(){return e.nuviotClient.getListResponse(`/api/documenttemplates/${t}`)})()}deleteDocumentTemplate(t){var e=this;return z(function*(){return e.nuviotClient.delete(`/api/documenttemplate/${t}`)})()}saveDocumentTemplate(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateDocumentTemplate(t.model);{let n=yield e.addDocumentTemplate(t.model);return n.successful&&(t.isEditing=!0),n}})()}getProposalTemplateTags(){return this.nuviotClient.request("/api/business/proposal/tags")}getDocumentTags(t,e){return this.nuviotClient.request(`/api/document/${t}/tags?signature=${e}`)}getProposalPreviewHtml(t){return this.nuviotClient.postWithResponse("/api/business/proposal/template/preview",t)}static \u0275fac=function(e){return new(e||Aa)(Ee(An))};static \u0275prov=$e({token:Aa,factory:Aa.\u0275fac,providedIn:"root"})}function Nre(i,t){if(1&i&&(u(0,"div",1)(1,"div",2)(2,"div",3)(3,"h1"),m(4),c(),H(5,"div",4),c()()()),2&i){const e=g();h(4),Re(e.siteContent.published.title),h(1),p("innerHTML",e.html,Un)}}class Z1{route;contentService;router;paramsSubscription;siteContent;html;constructor(t,e,n){var r=this;this.route=t,this.contentService=e,this.router=n,this.paramsSubscription=this.route.params.subscribe(function(){var o=z(function*(a){let s=r.route.snapshot.params.orgns,l=r.route.snapshot.params.catgkey,d=r.route.snapshot.params.contentkey;r.siteContent=yield r.contentService.getSiteContentForOrgNS(s,l,d),console.log(r.siteContent);let f=r.siteContent.published.html,y=/\[VIEWCONTENT=([a-z,]+)]/,k=y.exec(f);for(;null!=k;){console.log(k[0],k[1]);let W=`public/${k[1].split(",").join("/")}`;f=f.replace(k[0],`view`),k=y.exec(f)}r.html=f});return function(a){return o.apply(this,arguments)}}())}ngOnInit(){}static \u0275fac=function(e){return new(e||Z1)(U(bi),U(Aa),U(Ti))};static \u0275cmp=Be({type:Z1,selectors:[["app-content"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[1,"row"],[1,"content-panel",2,"margin-left","100px"],[3,"innerHTML"]],template:function(e,n){1&e&&w(0,Nre,6,2,"div",0),2&e&&p("ngIf",n.siteContent)},dependencies:[ct],styles:["[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}.blade[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow:hidden;width:500px}.blade-content[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow-y:auto;width:500px;height:calc(100vh - 180px)}.blade-diagram[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow:hidden;height:calc(100vh - 84px)}.blade-header[_ngcontent-%COMP%]{border-bottom:1px solid var(--color-panel-border);background-color:var(--color-bg-panel-header);padding:6px 6px 6px 16px}.blade-header[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:var(--color-fg-panel-header)}.blade-actions[_ngcontent-%COMP%]{text-align:right;right:0;float:right;flex-grow:1}.blade-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:4pt;color:var(--color-fg-panel-header)}.blade-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}.blade-actions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:8pt;border-radius:4pt;margin:4pt;color:var(--color-fg-panel-header);cursor:pointer}.blade-actions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{color:var(--color-fg-panel-header-active)}@media screen and (min-width: 1024px){.public-content[_ngcontent-%COMP%]{margin-left:50px}}@media screen and (min-width: 1024px){.content-panel[_ngcontent-%COMP%]{display:block;background-color:#fff;border:1px solid #e5e5e5;padding:20px;margin-left:18px;margin-bottom:20px}}@media screen and (max-width: 768px){.content-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #e5e5e5;padding:20px;margin-bottom:20px}}@media screen and (min-width: 1024px){.page-image[_ngcontent-%COMP%]{margin-bottom:20px;width:100%;height:300px;object-fit:cover}}@media screen and (max-width: 768px){.page-image[_ngcontent-%COMP%]{display:none}}.more-info-section[_ngcontent-%COMP%]{text-align:right}"]})}class Q1{constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||Q1)};static \u0275cmp=Be({type:Q1,selectors:[["app-public-footer"]],decls:54,vars:0,consts:[[1,"bottom-links"],[2,"margin-bottom","10px"],["href","https://www.software-logistics.com/development-services"],["href","https://www.software-logistics.com/nuviot"],["href","https://www.nuviot.com/Account/Login"],["href","https://www.nuviot.com/public/careers"],["href","https://docs.nuviot.com/#/","target","__blank"],["href","https://www.software-logistics.com/case-studies"],["href","https://app.termly.io/policy-viewer/policy.html?policyUUID=fb547f70-fe4e-43d6-9a28-15d403e4c720"],["href","https://app.termly.io/policy-viewer/policy.html?policyUUID=90eaf71a-610a-435e-95b1-c94b808f8aca"],["href","mailto:info@software-logistics.com"],["href","tel:727-213-0803"],["aria-label","Social Bar"],["href","https://www.facebook.com/softwarelogisticsiot/","target","_blank","rel","noreferrer noopener","aria-label","Facebook"],["alt","Facebook","fetchpriority","high","src","https://nuviot.blob.core.windows.net/cdn/social/fb-light-80x80.png",2,"width","39px","height","39px","object-fit","cover"],["href","https://twitter.com/SftwreLogistics","target","_blank","rel","noreferrer noopener","aria-label","Twitter"],["alt","Twitter","fetchpriority","high","src","https://nuviot.blob.core.windows.net/cdn/social/twitter-light-80x80.png",2,"width","39px","height","39px","object-fit","cover"],["href","https://www.linkedin.com/company/software-logistics","target","_blank","rel","noreferrer noopener","aria-label","LinkedIn"],["alt","LinkedIn","fetchpriority","high","src","https://nuviot.blob.core.windows.net/cdn/social/linkedin-light-80x80.png",2,"width","39px","height","39px","object-fit","cover"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1)(2,"h3"),m(3,"What We Do"),c(),u(4,"div")(5,"a",2),m(6," Services"),c()(),u(7,"div")(8,"a",3),m(9,"Platform"),c()()(),u(10,"div",1)(11,"h3"),m(12,"Resources"),c(),u(13,"div")(14,"a",4),m(15,"NuvIoT Login"),c()(),u(16,"div")(17,"a",5),m(18,"Careers"),c()(),u(19,"div")(20,"a",6),m(21,"Product Documentation"),c()(),u(22,"div")(23,"a",7),m(24,"Case Studies"),c()(),u(25,"div")(26,"a",8),m(27,"Privacy"),c()(),u(28,"div")(29,"a",9),m(30,"Terms and Conditions"),c()()(),u(31,"div",1)(32,"h3"),m(33,"Connect With Us"),c(),u(34,"div")(35,"a",10),m(36,"Send us an Email"),c()(),u(37,"div")(38,"a",11),m(39,"(727) 213-0803"),c()(),u(40,"div")(41,"ul",12)(42,"li")(43,"a",13)(44,"span"),H(45,"img",14),c()()(),u(46,"li")(47,"a",15)(48,"span"),H(49,"img",16),c()()(),u(50,"li")(51,"a",17)(52,"span"),H(53,"img",18),c()()()()()()())}})}function Bre(i,t){if(1&i&&(u(0,"span"),m(1),c()),2&i){const e=g().$implicit;h(1),Re(e.title)}}function Vre(i,t){if(1&i){const e=pe();u(0,"span",16),N("click",function(){R(e);const r=g().$implicit;return L(g().showView(r))}),m(1),c()}if(2&i){const e=g().$implicit;h(1),Re(e.title)}}function Hre(i,t){if(1&i&&(u(0,"li"),H(1,"i",26),w(2,Bre,2,1,"span",27),w(3,Vre,2,1,"span",28),c()),2&i){const e=t.$implicit;h(2),p("ngIf",e.current),h(1),p("ngIf",!e.current)}}function Yre(i,t){1&i&&(u(0,"span",29),m(1,">"),c())}function Ure(i,t){1&i&&H(0,"i",30),2&i&&Co(g().view.icon)}function jre(i,t){if(1&i&&(u(0,"span",31),m(1),c()),2&i){const e=g();h(1),Re(e.view.title)}}function $re(i,t){if(1&i){const e=pe();u(0,"span",32),N("click",function(){return R(e),L(g().showProfile())}),m(1),u(2,"span",33),N("click",function(){return R(e),L(g().logout())}),m(3," Logout"),c()()}if(2&i){const e=g();h(1),Gr(" ",e.user.firstName," ",e.user.lastName," ")}}function zre(i,t){if(1&i){const e=pe();u(0,"span",32),N("click",function(){return R(e),L(g().login())}),m(1,"Login"),c()}}function Wre(i,t){if(1&i&&(u(0,"div",34),H(1,"img",35)(2,"br"),u(3,"div"),m(4,"Please Wait"),c()()),2&i){const e=g();h(1),Ms("src","",e.root,"/app/ui-shared/assets/ajax-loader.gif",Yi)}}function Gre(i,t){1&i&&H(0,"div",36)}class X1{userService;router;isLoggedIn;searchContent;org;user;view;isBusy=!1;root="";_onBeginCall;_onEndCall;_onBreadcrumbChanged;_onModuleChanged;_onPageChanged;_onAreaChanged;_onHeaderNameChanged;breadCrumb=[];headerName;moduleName;areaName;pageName;constructor(t,e,n,r){this.userService=n,this.router=r,this.root="/public",this._onBreadcrumbChanged=e.onBreadCrumbChanged().subscribe(o=>{this.breadCrumb=o}),this._onHeaderNameChanged=e.onHeaderNameChanged().subscribe(o=>{this.headerName=o}),this._onModuleChanged=e.onModuleChanged().subscribe(o=>{this.moduleName=o.name}),this._onPageChanged=e.onPageChanged().subscribe(o=>{this.pageName=o.name}),this._onAreaChanged=e.onAreaChanged().subscribe(o=>{this.areaName=o.name}),this._onBeginCall=t.onCallBegin().subscribe(o=>{window.setTimeout(()=>{this.isBusy=!0},50)}),this._onEndCall=t.onCallEnd().subscribe(o=>{window.setTimeout(()=>{this.isBusy=!1},50)})}ngOnDestroy(){this._onBeginCall.unsubscribe(),this._onEndCall.unsubscribe(),this._onBreadcrumbChanged.unsubscribe(),this._onModuleChanged.unsubscribe(),this._onPageChanged.unsubscribe(),this._onAreaChanged.unsubscribe(),this._onHeaderNameChanged.unsubscribe()}ngOnInit(){var t=this;return z(function*(){t.isLoggedIn=yield t.userService.getIsLoggedIn(),t.isLoggedIn&&(t.org=yield t.userService.getCurrentOrg(),t.user=yield t.userService.getUser())})()}login(){this.router.navigate(["public","login"])}logout(){this.router.navigate(["public","logout"])}showView(t){t.route&&this.router.navigate(t.route)}showProfile(){this.router.navigate(["public","profile"])}search(){}goToHome(){window.location.href="https://www.software-logistics.com"}static \u0275fac=function(e){return new(e||X1)(U(mc),U(Br),U($n),U(Ti))};static \u0275cmp=Be({type:X1,selectors:[["app-home"]],inputs:{breadCrumb:"breadCrumb"},decls:36,vars:10,consts:[[2,"position","fixed","width","100%","z-index","2000"],[1,"navbar"],[1,"sl-logo",2,"cursor","pointer",3,"click"],[2,"flex","1"],[1,"fa-solid","fa-home","nav-icon","tablet-view",3,"click"],[1,"fa-solid","fa-home","nav-icon","phone-view",3,"click"],[1,"header-name"],[2,"flex","grow"],[1,"search-bar"],["type","text","placeholder","Search",3,"ngModel","ngModelChange","keydown.enter"],[1,"search-button"],[1,"fa-solid","fa-magnifying-glass",3,"click"],[2,"width","80px"],["href","https://docs.nuviot.com","target","_blank",1,"nav-link"],[1,"breadcrumb-bar"],[1,"breadcrumbs",2,"flex-grow","1"],[1,"active-link",3,"click"],[1,"fa","fa-home",2,"margin-right","5px"],[4,"ngFor","ngForOf"],["style","margin-left:5px;",4,"ngIf"],["style","font-size:16x;margin-left:10px;",3,"class",4,"ngIf"],["style","font-size:16px;",4,"ngIf"],["style","cursor: pointer;",3,"click",4,"ngIf"],[2,"min-height","calc(100vh - 315px)","padding-top","120px"],["style","text-align:center;z-index: 20000 !important;","class","busyMsg",4,"ngIf"],["style","z-index: 20000 !important;","class","busyMask",4,"ngIf"],[1,"fa-solid","fa-chevron-right"],[4,"ngIf"],["class","active-link",3,"click",4,"ngIf"],[2,"margin-left","5px"],[2,"font-size","16x","margin-left","10px"],[2,"font-size","16px"],[2,"cursor","pointer",3,"click"],[2,"cursor","pointer","margin-left","30px",3,"click"],[1,"busyMsg",2,"text-align","center","z-index","20000 !important"],[3,"src"],[1,"busyMask",2,"z-index","20000 !important"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1)(2,"div",2),N("click",function(){return n.goToHome()}),c(),u(3,"div",3)(4,"i",4),N("click",function(){return n.goToHome()}),c(),u(5,"i",5),N("click",function(){return n.goToHome()}),c(),u(6,"span",6),m(7),c()(),H(8,"div",7),u(9,"div",8)(10,"input",9),N("ngModelChange",function(o){return n.searchContent=o})("keydown.enter",function(){return n.search()}),c(),u(11,"button",10)(12,"i",11),N("click",function(){return n.search()}),c()()(),u(13,"div",12)(14,"a",13),m(15,"Help"),c()()(),u(16,"div",14)(17,"ul",15)(18,"li")(19,"span",16),N("click",function(){return n.goToHome()}),H(20,"i",17),m(21,"Home"),c()(),w(22,Hre,4,2,"li",18),u(23,"li"),w(24,Yre,2,0,"span",19),c(),u(25,"li"),w(26,Ure,1,2,"i",20),c(),u(27,"li"),w(28,jre,2,1,"span",21),c()(),w(29,$re,4,2,"span",22),w(30,zre,2,0,"span",22),c()(),u(31,"div",23),H(32,"router-outlet"),c(),w(33,Wre,5,1,"div",24),w(34,Gre,1,0,"div",25),H(35,"app-public-footer")),2&e&&(h(7),Ke(" ",n.headerName," "),h(3),p("ngModel",n.searchContent),h(12),p("ngForOf",n.breadCrumb),h(2),p("ngIf",n.view),h(2),p("ngIf",n.view),h(2),p("ngIf",n.view),h(1),p("ngIf",n.isLoggedIn&&n.user),h(1),p("ngIf",!n.isLoggedIn),h(3),p("ngIf",n.isBusy),h(1),p("ngIf",n.isBusy))},dependencies:[b1,Q1,Bn,vn,pn,jt,ct],styles:[".busyMsg[_ngcontent-%COMP%]{color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1000;font-size:16pt}.busyMask[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;opacity:.5;z-index:999}.side-menu[_ngcontent-%COMP%]{width:200px}.side-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;margin-bottom:10px;margin-left:10px;text-decoration:none}.side-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}","[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}.nv-app-header-left[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{cursor:pointer}button[_ngcontent-%COMP%]:focus{outline:none!important}input[_ngcontent-%COMP%]:focus{outline:none!important}.navbar[_ngcontent-%COMP%]{background-color:var(--color-bg-menu);padding:10px!important;height:75px;border-bottom:1px solid var(--color-panel-border);display:flex;flex-direction:row;color:var(--color-fg-menu)}.nv-drop-down[_ngcontent-%COMP%]{position:relative;display:inline-block}.nv-drop-down[_ngcontent-%COMP%]:hover .nv-drop-down-content[_ngcontent-%COMP%]{display:block}.nv-drop-btn[_ngcontent-%COMP%]{background-color:transparent;cursor:pointer;border:none;color:var(--color-fg-menu)}.nv-drop-down-content[_ngcontent-%COMP%]{display:none;position:absolute;background-color:var(--color-bg-drop);box-shadow:0 4px 8px #0003,0 6px 20px #00000030;border-radius:8px;min-width:16rem;z-index:10000}.nv-drop-down-content[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:12px 16px;text-decoration:none;display:block;cursor:pointer;color:var(--color-fg-menu)!important}.nv-drop-down-content[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--color-fg-menu-active)!important}@media (min-width: 1024px){.logo[_ngcontent-%COMP%]{font-weight:700;background-image:var(--logo-image);height:48px;width:200px;background-size:contain;background-repeat:no-repeat}.sl-logo[_ngcontent-%COMP%]{font-weight:700;background-image:var(--sl-logo-image);height:48px;width:130px;background-size:contain;background-repeat:no-repeat}.logo-img[_ngcontent-%COMP%]{height:40px;margin-left:10px}}.nav-icon[_ngcontent-%COMP%]{margin-right:5px;font-size:24px}.nav-link[_ngcontent-%COMP%]{padding:8px;border-radius:4px;font-weight:500}.nav-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--color-fg-menu-active)}@media (min-width: 1024px){.header-name[_ngcontent-%COMP%]{font-size:32px}}@media (max-width: 768px){.header-name[_ngcontent-%COMP%]{font-size:24px}}@media (max-width: 768px){.search-bar[_ngcontent-%COMP%]{display:none}}@media (min-width: 768px){.search-bar[_ngcontent-%COMP%]{display:flex;align-items:center;width:640px}.search-bar[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{padding:5px 5px 5px 10px;border-radius:8px 0 0 8px;margin-right:0;height:32px;width:300px;background-color:var(--color-bg);border-right:0;border-left:1px solid var(--color-primary-border);border-top:1px solid var(--color-primary-border);border-bottom:1px solid var(--color-primary-border);color:var(--color-fg)}.search-bar[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{color:var(--color-placeholder-text)}.search-bar[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus::placeholder{opacity:.2}.search-bar[_ngcontent-%COMP%] .search-button[_ngcontent-%COMP%]{background-color:var(--color-primary-button);border-radius:0 8px 8px 0;margin-left:0;margin-right:25px;border-right:1px solid var(--color-primary-border);border-top:1px solid var(--color-primary-border);border-bottom:1px solid var(--color-primary-border)}.search-bar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#340e6b;border:none;color:#fff;padding:4px 10px;border-radius:3px;cursor:pointer}}.breadcrumb-bar[_ngcontent-%COMP%]{width:100%;height:32px;background-color:var(--color-bg-submenu);padding:3px;border-bottom:1px solid var(--color-border-panel);top:61px;display:flex;color:var(--color-fg-menu)}.breadcrumb-bar[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:5px;margin-left:5px}.breadcrumbs[_ngcontent-%COMP%]{margin:0!important;padding:0!important;color:var(--color-fg-menu)}.breadcrumbs[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none;display:inline-block}.breadcrumbs[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .active-link[_ngcontent-%COMP%]{text-decoration:underline}.breadcrumbs[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .active-link[_ngcontent-%COMP%]:hover{cursor:pointer;color:var(--color-nav-link-active)}@media (max-width: 768px){.navbar[_ngcontent-%COMP%]{padding:5px!important;height:auto}.navbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{text-align:center;margin:10px 0}.navbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .logo-img[_ngcontent-%COMP%]{height:30px}.breadcrumb-bar[_ngcontent-%COMP%]{left:0;width:100%}.side-navbar[_ngcontent-%COMP%]{display:none}}.back-link[_ngcontent-%COMP%]{margin-right:30px}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline}.search-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-fg-menu);margin-right:20px;text-decoration:none}"]})}class yc{nuviotClient;constructor(t){this.nuviotClient=t}createGlossary(){return this.nuviotClient.request("/api/glossary/factory")}createTerm(){return this.nuviotClient.getFormResponse("/api/glossary/term/factory")}editTerm(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/glossary/term/factory");return n.model=t,n.isEditing=!0,n})()}getGlossary(t){return this.nuviotClient.request(`/api/glossary/${t}`)}addGlossary(t){return this.nuviotClient.post("/api/glossary",t)}addNewGlossary(t){return this.nuviotClient.post("/api/glossary",t)}updateGlossary(t){return this.nuviotClient.update("/api/glossary",t)}getGlossaries(){return this.nuviotClient.getListResponse("/api/glossaries")}getTerm(t,e){return this.nuviotClient.request(`/api/glossary/${t}/term/${e}`)}getTermForKey(t,e,n){return this.nuviotClient.request(`/api/glossary/${t}/${e}/${n}`)}static \u0275fac=function(e){return new(e||yc)(Ee(An))};static \u0275prov=$e({token:yc,factory:yc.\u0275fac,providedIn:"root"})}class Xa{constructor(){}ngOnInit(){}iconName;fontSize="32pt";static \u0275fac=function(e){return new(e||Xa)};static \u0275cmp=Be({type:Xa,selectors:[["nuv-icon"]],inputs:{iconName:"iconName",fontSize:"fontSize"},decls:23,vars:3,consts:[[3,"className"],[1,"path1"],[1,"path2"],[1,"path3"],[1,"path4"],[1,"path5"],[1,"path6"],[1,"path7"],[1,"path8"],[1,"path9"],[1,"path10"],[1,"path11"],[1,"path12"],[1,"path13"],[1,"path14"],[1,"path15"],[1,"path16"],[1,"path17"],[1,"path18"],[1,"path19"],[1,"path20"],[1,"path21"],[1,"path22"]],template:function(e,n){1&e&&(u(0,"span",0),H(1,"span",1)(2,"span",2)(3,"span",3)(4,"span",4)(5,"span",5)(6,"span",6)(7,"span",7)(8,"span",8)(9,"span",9)(10,"span",10)(11,"span",11)(12,"span",12)(13,"span",13)(14,"span",14)(15,"span",15)(16,"span",16)(17,"span",17)(18,"span",18)(19,"span",19)(20,"span",20)(21,"span",21)(22,"span",22),c()),2&e&&(Mn("font-size",n.fontSize),p("className",n.iconName))}})}function qre(i,t){if(1&i&&(u(0,"div")(1,"h1"),m(2,"Example"),c(),u(3,"div",6),H(4,"div",4),c()()),2&i){const e=g(2);h(4),p("innerHTML",e.term.example,Un)}}function Kre(i,t){if(1&i&&(u(0,"li"),m(1),c()),2&i){const e=t.$implicit;h(1),Ke(" ",e.text," ")}}function Zre(i,t){if(1&i&&(u(0,"div")(1,"h1"),m(2,"Related"),c(),u(3,"ol"),w(4,Kre,2,1,"li",7),c()()),2&i){const e=g(2);h(4),p("ngForOf",e.term.related)}}function Qre(i,t){if(1&i&&(u(0,"div",1)(1,"div",2),H(2,"nuv-icon",3),m(3),c(),H(4,"hr")(5,"div",4),w(6,qre,5,1,"div",5),w(7,Zre,5,1,"div",5),c()),2&i){const e=g();h(2),gt("iconName",e.term.icon),h(1),Ke(" ",e.term.name,""),h(2),p("innerHTML",e.term.definition,Un),h(1),p("ngIf",e.term.example),h(1),p("ngIf",e.term.related&&e.term.related.length>0)}}class pf{route;glossaryService;router;paramsSubscription;term;constructor(t,e,n){var r=this;this.route=t,this.glossaryService=e,this.router=n,this.paramsSubscription=this.route.params.subscribe(function(){var o=z(function*(a){let s=r.route.snapshot.params.glossaryid,l=r.route.snapshot.params.termid,d=r.route.snapshot.params.orgns,f=r.route.snapshot.params.glossarykey,y=r.route.snapshot.params.termkey;if(s&&l)r.term=yield r.glossaryService.getTerm(s,l);else if(d&&f&&y){let k=yield r.glossaryService.getTermForKey(d,f,y);k.successful&&(r.term=k.result)}console.log("TermComponent: term",r.term)});return function(a){return o.apply(this,arguments)}}())}ngOnInit(){}ngOnDestroy(){this.paramsSubscription.unsubscribe()}static \u0275fac=function(e){return new(e||pf)(U(bi),U(yc),U(Ti))};static \u0275cmp=Be({type:pf,selectors:[["app-term"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[2,"font-size","24pt","font-weight","bold"],["fontSize","24pt",3,"iconName"],[3,"innerHTML"],[4,"ngIf"],[1,"row"],[4,"ngFor","ngForOf"]],template:function(e,n){1&e&&w(0,Qre,8,5,"div",0),2&e&&p("ngIf",n.term)},dependencies:[Xa,jt,ct]})}const Xre=function(i,t){return["/public",i,"career",t]};function Jre(i,t){if(1&i&&(u(0,"div",5)(1,"h4"),m(2),c(),u(3,"p"),m(4),c(),u(5,"div",6)(6,"a",7),m(7,"More Information"),c()()()),2&i){const e=t.$implicit,n=g();h(2),Re(e.title),h(2),Re(e.summary),h(2),p("routerLink",yi(3,Xre,n.orgNs,e.key))}}class J1{route;nav;contentService;contentItems;paramsSubscription;orgNs;constructor(t,e,n){var r=this;this.route=t,this.nav=e,this.contentService=n,this.paramsSubscription=this.route.params.subscribe(function(){var o=z(function*(a){r.orgNs=a.orgns,r.contentItems=yield r.contentService.getSiteContentItemsForOrgNS(r.orgNs,"jobdescription"),r.nav.setHeaderName("Careers"),r.nav.setBreadCrumbs([{title:"Careers",current:!0}])});return function(a){return o.apply(this,arguments)}}())}ngOnInit(){return z(function*(){})()}ngOnDestroy(){this.paramsSubscription.unsubscribe()}static \u0275fac=function(e){return new(e||J1)(U(bi),U(Br),U(Aa))};static \u0275cmp=Be({type:J1,selectors:[["app-public-jobs"]],decls:5,vars:1,consts:[[1,"router-container"],[1,"public-content"],["src","https://webimages.nyc3.cdn.digitaloceanspaces.com/public/careers.jpg",1,"page-image"],[2,"display","flex","flex-wrap","wrap"],["class","content-panel",4,"ngFor","ngForOf"],[1,"content-panel"],[1,"more-info-section"],[1,"action",3,"routerLink"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1),H(2,"img",2),u(3,"div",3),w(4,Jre,8,6,"div",4),c()()()),2&e&&(h(4),p("ngForOf",n.contentItems))},dependencies:[ef,jt],styles:["[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}.blade[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow:hidden;width:500px}.blade-content[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow-y:auto;width:500px;height:calc(100vh - 180px)}.blade-diagram[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow:hidden;height:calc(100vh - 84px)}.blade-header[_ngcontent-%COMP%]{border-bottom:1px solid var(--color-panel-border);background-color:var(--color-bg-panel-header);padding:6px 6px 6px 16px}.blade-header[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:var(--color-fg-panel-header)}.blade-actions[_ngcontent-%COMP%]{text-align:right;right:0;float:right;flex-grow:1}.blade-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:4pt;color:var(--color-fg-panel-header)}.blade-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}.blade-actions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:8pt;border-radius:4pt;margin:4pt;color:var(--color-fg-panel-header);cursor:pointer}.blade-actions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{color:var(--color-fg-panel-header-active)}@media screen and (min-width: 1024px){.public-content[_ngcontent-%COMP%]{margin-left:50px}}@media screen and (min-width: 1024px){.content-panel[_ngcontent-%COMP%]{display:block;background-color:#fff;border:1px solid #e5e5e5;padding:20px;width:45%;margin-left:18px;margin-bottom:20px}}@media screen and (max-width: 768px){.content-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #e5e5e5;padding:20px;margin-bottom:20px}}@media screen and (min-width: 1024px){.page-image[_ngcontent-%COMP%]{margin-bottom:20px;width:100%;height:300px;object-fit:cover}}@media screen and (max-width: 768px){.page-image[_ngcontent-%COMP%]{display:none}}.more-info-section[_ngcontent-%COMP%]{text-align:right}"]})}class Td{clientService;constructor(t){this.clientService=t}getCreateOrgForm(){var t=this;return z(function*(){return yield t.clientService.getFormResponse("/api/org/factory")})()}createOrganization(t){var e=this;return z(function*(){return yield e.clientService.post("/api/org",t)})()}getSubscriptions(){var t=this;return z(function*(){return yield t.clientService.getListResponse("/api/subscriptions")})()}getSubscription(t){var e=this;return z(function*(){return yield e.clientService.getFormResponse(`/api/subscription/${t}`)})()}createSubscription(){var t=this;return z(function*(){return yield t.clientService.getFormResponse("/api/subscription/factory")})()}updateSubscription(t){var e=this;return z(function*(){return yield e.clientService.update("/api/subscription",t)})()}addSubscription(t){var e=this;return z(function*(){return yield e.clientService.post("/api/subscription",t)})()}deleteSubscription(t){var e=this;return z(function*(){return yield e.clientService.delete(`/api/subscription/${t}`)})()}saveSubscription(t){var e=this;return z(function*(){return t.isEditing?yield e.updateSubscription(t.model):yield e.addSubscription(t.model)})()}getDistributionLists(){var t=this;return z(function*(){return yield t.clientService.getListResponse("/api/distros")})()}getDistributionListsForCustomerAsync(t){var e=this;return z(function*(){return yield e.clientService.getListResponse(`/api/distros/customer/${t}`)})()}getDistributionList(t){var e=this;return z(function*(){return yield e.clientService.getFormResponse(`/api/distro/${t}`)})()}confirmDistributionList(t){var e=this;return z(function*(){return yield e.clientService.getFormResponse(`/api/distro/${t}/sendconfirmmessage`)})()}createDistributionList(){var t=this;return z(function*(){return yield t.clientService.getFormResponse("/api/distro/factory")})()}updateDistributionList(t){var e=this;return z(function*(){return yield e.clientService.update("/api/distro",t)})()}addDistributionList(t){var e=this;return z(function*(){return yield e.clientService.post("/api/distro",t)})()}deleteDistributionList(t){var e=this;return z(function*(){return yield e.clientService.delete(`/api/distro/${t}`)})()}createExternalContact(){var t=this;return z(function*(){return yield t.clientService.getFormResponse("/api/distro/externalcontact/factory")})()}editExternalContact(t){var e=this;return z(function*(){let n=yield e.clientService.getFormResponse("/api/distro/externalcontact/factory");return n.model=t,n.isEditing=!0,n})()}saveDistributionList(t){var e=this;return z(function*(){return t.isEditing?yield e.updateDistributionList(t.model):yield e.addDistributionList(t.model)})()}getHolidaySets(){var t=this;return z(function*(){return yield t.clientService.getListResponse("/api/holidaysets")})()}getHolidaySet(t){var e=this;return z(function*(){return yield e.clientService.getFormResponse(`/api/holidayset/${t}`)})()}createHolidaySet(){var t=this;return z(function*(){return yield t.clientService.getFormResponse("/api/holidayset/factory")})()}updateHolidaySet(t){var e=this;return z(function*(){return yield e.clientService.update("/api/holidayset",t)})()}addHolidaySet(t){var e=this;return z(function*(){return yield e.clientService.post("/api/holidayset",t)})()}deleteHolidaySet(t){var e=this;return z(function*(){return yield e.clientService.delete(`/api/holidayset/${t}`)})()}saveHolidaySet(t){var e=this;return z(function*(){return t.isEditing?yield e.updateHolidaySet(t.model):yield e.addHolidaySet(t.model)})()}getAllOrgs(){var t=this;return z(function*(){return yield t.clientService.getListResponse("/sys/api/orgs/all")})()}searchOrgs(t){var e=this;return z(function*(){return yield e.clientService.getListResponse(`/sys/api/orgs/search?filter=${t}`)})()}deleteOrg(t){var e=this;return z(function*(){return yield e.clientService.delete(`/sys/api/org/${t}`)})()}getScheduledDowntimes(){var t=this;return z(function*(){return yield t.clientService.getListResponse("/api/scheduleddowntimes")})()}getScheduledDowntime(t){var e=this;return z(function*(){return yield e.clientService.getFormResponse(`/api/scheduleddowntime/${t}`)})()}createScheduledDowntime(){var t=this;return z(function*(){return yield t.clientService.getFormResponse("/api/scheduleddowntime/factory")})()}updateScheduledDowntime(t){var e=this;return z(function*(){return yield e.clientService.update("/api/scheduleddowntime",t)})()}addScheduledDowntime(t){var e=this;return z(function*(){return yield e.clientService.post("/api/scheduleddowntime",t)})()}deleteScheduledDowntime(t){var e=this;return z(function*(){return yield e.clientService.delete(`/api/scheduleddowntime/${t}`)})()}saveScheduledDowntime(t){var e=this;return z(function*(){return t.isEditing?yield e.updateScheduledDowntime(t.model):yield e.addScheduledDowntime(t.model)})()}getLocations(t){let e={};return t&&(e.categoryKey=t),this.clientService.getListResponse("/api/org/locations",e)}getLocationsForCustomer(t){return this.clientService.getListResponse(`/api/org/locations/customer/${t}`)}createLocation(){return this.clientService.getFormResponse("/api/org/location/factory")}getLocation(t){return this.clientService.getFormResponse(`/api/org/location/${t}`)}addLocation(t){return this.clientService.post("/api/org/location",t)}deleteLocation(t){return this.clientService.delete(`/api/org/location/${t}`)}updateLocation(t){return this.clientService.update("/api/org/location",t)}saveLocation(t){var e=this;return z(function*(){return t.isEditing?yield e.updateLocation(t.model):yield e.addLocation(t.model)})()}getLocationDiagrams(){return this.clientService.getListResponse("/api/org/location/diagrams")}getLocationDiagramsForCustomer(t){return this.clientService.getListResponse("/api/customer/diagrams")}getLocationDiagram(t){return this.clientService.getFormResponse(`/api/org/location/diagram/${t}`)}getLocationDiagramOnly(t){return this.clientService.request(`/device/notifications/diagram/${t}`)}createLocationDiagram(){return this.clientService.getFormResponse("/api/org/location/diagram/factory")}createLocationDiagramForCustomer(t){return this.clientService.getFormResponse(`/api/customer/${t}/diagram/factory`)}createLocationDiagramShape(){return this.clientService.getFormResponse("/api/org/location/diagram/shape/factory")}editLocationDiagramShape(t){var e=this;return z(function*(){let n=yield e.clientService.getFormResponse("/api/org/location/diagram/shape/factory",!1);return n.isEditing=!0,n.model=t,n})()}updateLocationDiagram(t){var e=this;return z(function*(){return yield e.clientService.update("/api/org/location/diagram",t)})()}addLocationDiagram(t){var e=this;return z(function*(){return yield e.clientService.post("/api/org/location/diagram",t)})()}saveLocationDiagram(t){var e=this;return z(function*(){return t.isEditing?yield e.updateLocationDiagram(t.model):yield e.addLocationDiagram(t.model)})()}createLocationDiagramGroup(){var t=this;return z(function*(){return t.clientService.getFormResponse("/api/org/location/diagram/group/factory")})()}createLocationDiagramLayer(){var t=this;return z(function*(){return t.clientService.getFormResponse("/api/org/location/diagram/layer/factory")})()}editLocationDiagramGroup(t){var e=this;return z(function*(){let n=yield e.clientService.getFormResponse("/api/org/location/diagram/shape/factory",!1);return n.isEditing=!0,n.model=t,n})()}editLocationDiagramLayer(t){var e=this;return z(function*(){let n=yield e.clientService.getFormResponse("/api/org/location/diagram/shape/factory",!1);return n.isEditing=!0,n.model=t,n})()}addOrgLocation(t,e){var n=this;return z(function*(){return yield n.clientService.post(`/api/org/location/${t}/diagram`,e)})()}updateOrgLocation(t,e){var n=this;return z(function*(){return yield n.clientService.post(`/api/org/location/${t}/diagram`,e)})()}deleteOrgLocation(t,e){var n=this;return z(function*(){return yield n.clientService.delete(`/api/org/location/${t}/diagram/${e}`)})()}getOwnedObjects(t){var e=this;return z(function*(){return yield e.clientService.getListResponse(`/sys/api/org/${t}/ownedobjects`)})()}getOrgUsers(t){var e=this;return z(function*(){return yield e.clientService.getListResponse(`/sys/api/org/${t}/users`)})()}getOrgDeployments(t){var e=this;return z(function*(){return yield e.clientService.getListResponse(`/sys/api/deployment/instances/${t}`)})()}getSysAdminOrgs(t){var e=this;return z(function*(){return yield e.clientService.request(`/sys/api/org/${t}`)})()}getPublicOrgInfo(t){var e=this;return z(function*(){return e.clientService.request(`/api/org/${t}/public/summary`)})()}sysAdminUpdateOrg(t){var e=this;return z(function*(){return yield e.clientService.update("/sys/api/org",t)})()}static \u0275fac=function(e){return new(e||Td)(Ee(An))};static \u0275prov=$e({token:Td,factory:Td.\u0275fac,providedIn:"root"})}function eoe(i,t){if(1&i){const e=pe();u(0,"div"),H(1,"img",3),u(2,"div",4)(3,"div",5)(4,"a",6),N("click",function(){return R(e),L(g().apply())}),m(5,"Apply Now"),c()(),H(6,"div",7),c()()}if(2&i){const e=g();h(6),p("innerHTML",e.content.published.html,Un)}}class eb{route;contentService;userService;meta;orgService;nav;paramsSubscription;content;orgNs;orgInfo;constructor(t,e,n,r,o,a){var s=this;this.route=t,this.contentService=e,this.userService=n,this.meta=r,this.orgService=o,this.nav=a,this.paramsSubscription=this.route.params.subscribe(function(){var l=z(function*(d){let f=s.route.snapshot.params.key;s.orgNs=d.orgns,s.orgInfo=yield o.getPublicOrgInfo(s.orgNs),s.content=yield s.contentService.getSiteContentForOrgNS(s.orgNs,"jobdescription",f),window.document.title=`${s.orgInfo.name} - ${s.content.name}`,s.nav.setHeaderName(s.content.name),s.nav.setBreadCrumbs([{title:"Careers",route:["public",s.orgNs,"careers"]},{title:s.content.name,current:!0}]),s.meta.addTag({name:"image",content:"https://static.wixstatic.com/media/ab9b64_79832c27aa544fc8998f6eb2662b1fec~mv2.png/v1/fill/w_120,h_49,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/Blue-Logo-128-52.png"}),s.meta.addTag({name:"title",content:s.content.published.title}),s.meta.addTag({name:"name",content:s.content.published.title}),s.meta.addTag({name:"description",content:s.content.published.summary}),s.meta.addTag({name:"og:image",content:"https://static.wixstatic.com/media/ab9b64_79832c27aa544fc8998f6eb2662b1fec~mv2.png/v1/fill/w_120,h_49,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/Blue-Logo-128-52.png"}),s.meta.addTag({name:"og:title",content:s.content.published.title}),s.meta.addTag({name:"og:name",content:s.content.published.title}),s.meta.addTag({name:"og:url",content:window.location.href}),s.meta.addTag({name:"og:type",content:"website"}),s.meta.addTag({name:"og:site_name",content:s.orgInfo.name}),s.meta.addTag({name:"og:see_also",content:`https://www.nuviot.com/public/${s.orgNs}/careers`}),s.meta.addTag({name:"og:description",content:s.content.published.summary})});return function(d){return l.apply(this,arguments)}}())}ngOnInit(){return z(function*(){})()}apply(){this.nav.goto(["public",this.orgNs,"career","apply",this.content.key])}ngOnDestroy(){this.paramsSubscription.unsubscribe(),window.document.title="Software Logistics - Careers",this.meta.removeTag("name=description")}static \u0275fac=function(e){return new(e||eb)(U(bi),U(Aa),U($n),U(b3),U(Td),U(Br))};static \u0275cmp=Be({type:eb,selectors:[["app-public-job"]],decls:3,vars:1,consts:[[1,"router-container"],[1,"public-content"],[4,"ngIf"],["src","https://webimages.nyc3.cdn.digitaloceanspaces.com/public/happy-employee.jpg",1,"page-image"],[1,"content-panel"],[2,"text-align","right"],[1,"action",3,"click"],[3,"innerHTML"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1),w(2,eoe,7,1,"div",2),c()()),2&e&&(h(2),p("ngIf",n.content))},dependencies:[ct],styles:["[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}.blade[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow:hidden;width:500px}.blade-content[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow-y:auto;width:500px;height:calc(100vh - 180px)}.blade-diagram[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow:hidden;height:calc(100vh - 84px)}.blade-header[_ngcontent-%COMP%]{border-bottom:1px solid var(--color-panel-border);background-color:var(--color-bg-panel-header);padding:6px 6px 6px 16px}.blade-header[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:var(--color-fg-panel-header)}.blade-actions[_ngcontent-%COMP%]{text-align:right;right:0;float:right;flex-grow:1}.blade-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:4pt;color:var(--color-fg-panel-header)}.blade-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}.blade-actions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:8pt;border-radius:4pt;margin:4pt;color:var(--color-fg-panel-header);cursor:pointer}.blade-actions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{color:var(--color-fg-panel-header-active)}@media screen and (min-width: 1024px){.public-content[_ngcontent-%COMP%]{margin-left:50px}}@media screen and (min-width: 1024px){.content-panel[_ngcontent-%COMP%]{display:block;background-color:#fff;border:1px solid #e5e5e5;padding:20px;margin-bottom:20px}}@media screen and (max-width: 768px){.content-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #e5e5e5;padding:20px;margin-bottom:20px}}@media screen and (min-width: 1024px){.page-image[_ngcontent-%COMP%]{width:100%;height:300px;object-fit:cover}}@media screen and (max-width: 768px){.page-image[_ngcontent-%COMP%]{display:none}}.more-info-section[_ngcontent-%COMP%]{text-align:right}"]})}class Wu{nuviotClient;_currentSurvey;_allSurveys;_currentQuestion;_currentSurvey$=new Gt;_allSurveys$=new Gt;_currentQuestion$=new Gt;constructor(t){this.nuviotClient=t}getAvailableSurveys(){return this.nuviotClient.getListResponse("/api/surveys")}getAvailableSurveysByType(t){return this.nuviotClient.getListResponse(`/api/surveys/${t}`)}loadAllSurveys(){return this.nuviotClient.getListResponse("/api/surveyadmin/surveys")}getSurveysForCustomer(t){return this.nuviotClient.request(`/api/survey/responses/customer/${t}`)}createSurvey(t){return this.nuviotClient.requestForInvokeResultEx(`/api/survey/${t}/factory`)}createSurveyForCustomer(t,e){return this.nuviotClient.requestForInvokeResultEx(`/api/survey/${e}/customer/${t}/factory`)}getOrCreateASurveyForUser(t){return this.nuviotClient.requestForInvokeResultEx(`/api/survey/user/${t}?autocreate=true`)}getSurveyForUser(t){return this.nuviotClient.requestForInvokeResultEx(`/api/survey/user/${t}`)}createChildSurvey(t,e,n,r,o){return this.nuviotClient.requestForInvokeResultEx(`/api/survey/${t}/${e}/${n}/${r}/${o}/factory`)}getSurveysForCurrentOrg(){return this.nuviotClient.request("/api/survey/responses")}completeSurvey(t){return this.nuviotClient.request(`/api/survey/${t}/complete`)}completeChildSurvey(t,e){return this.nuviotClient.request(`/api/survey/${t}/${e}/complete`)}getSurveysForUser(t){return this.nuviotClient.request(`/api/survey/responses/user/${t}`)}getSurveyResponse(t,e){return this.nuviotClient.request(t!==e?`/api/survey/response/${t}/${e}`:`/api/survey/response/${e}`)}getChildSurveyResult(t,e){return this.nuviotClient.request(`/api/survey/response/${t}/${e}`)}getChildSurveys(t,e,n){return this.nuviotClient.request(`/api/survey/${t}/${e}/${n}/children `)}getSurveyTemplate(t){return this.nuviotClient.request(`/api/survey/template/${t}`)}deleteSurvey(t,e){return this.nuviotClient.delete(`/api/survey/${t}/${e}`)}deleteChildSurvey(t,e){return this.nuviotClient.delete(`/api/survey/${t}/child/${e}`)}getAnswers(t,e){return this.nuviotClient.request(`/api/survey/result/answer/${t}/${e}`)}updateSurveyAnswer(t,e,n){return this.nuviotClient.update("/api/survey/answer",{surveyResponse:t,questionId:e,surveyResponseAnswers:n})}updateSurvey(t){return this.nuviotClient.update("/api/survey",t)}setSurveyCurrentQuestion(t,e,n){return this.nuviotClient.request(`/api/survey/status/${t}/${e}/${n}`)}getAllAnswersForSurvey(t){return this.nuviotClient.request(`/api/survey/result/answer/${t}`)}onCurrentQuestion(){return this._currentQuestion$.asObservable()}getCurrentQuestion(){return this._currentQuestion}onSurvey(){return this._currentSurvey$.asObservable()}getCurrentSurvey(){return this._currentSurvey}onAllSurvey(){return this._allSurveys$.asObservable()}getAllSurveys(){return this._allSurveys}static \u0275fac=function(e){return new(e||Wu)(Ee(An))};static \u0275prov=$e({token:Wu,factory:Wu.\u0275fac,providedIn:"root"})}class ff{nuviotClient;constructor(t){this.nuviotClient=t}addJobApplication(t){var e=this;return z(function*(){return yield e.nuviotClient.postWithResponse("/api/job/application",t)})()}updateJobApplication(t){var e=this;return z(function*(){yield e.nuviotClient.update("/api/job/application",t)})()}getJobApplication(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/job/application/${t}`)})()}getApplicationsForUser(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/job/applications/user/${t}`)})()}getMyApplications(){var t=this;return z(function*(){return yield t.nuviotClient.request("/api/job/applications/my")})()}removeApplication(t){var e=this;return z(function*(){return yield e.nuviotClient.delete(`/api/job/application/${t}`)})()}updateJobApplicationStatus(t,e){var n=this;return z(function*(){return yield n.nuviotClient.request(`/api/job/applications/${t}/${e}`)})()}findJobApplicationsWithStatusAsync(t,e){var n=this;return z(function*(){return yield n.nuviotClient.request(`/api/job/applications/${t}/${e}`)})()}findJobApplicationsByJobIdAsync(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/job/applications/${t}`)})()}getAllJobApplications(){var t=this;return z(function*(){return yield t.nuviotClient.request("/api/job/applications")})()}getApplicationForUserByKey(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/job/application/my/${t}`)})()}addHistory(t,e){var n=this;return z(function*(){return yield n.nuviotClient.post(`/api/job/application/${t}/history`,e)})()}static \u0275fac=function(e){return new(e||ff)(Ee(An))};static \u0275prov=$e({token:ff,factory:ff.\u0275fac,providedIn:"root"})}class Bs{transform(t){if(t){const e=new Date(t);return`${e.toLocaleDateString()} ${e.toLocaleTimeString()}`}return"-"}static \u0275fac=function(e){return new(e||Bs)};static \u0275pipe=Yn({name:"dateTimePrinter",type:Bs,pure:!0})}const toe=function(i){return["/public","career",i]};function noe(i,t){if(1&i){const e=pe();u(0,"div",4)(1,"div",5)(2,"div",6),H(3,"img",7),c(),u(4,"div",8)(5,"h4"),m(6,"Job Application"),c(),u(7,"p"),m(8),c(),u(9,"p"),m(10),c(),u(11,"div",9)(12,"a",10),m(13,"More Information"),c()()()(),H(14,"hr"),u(15,"p"),m(16,"To apply you will need to create an account, you can do so using your favorite login provider"),c(),u(17,"div",11)(18,"div")(19,"button",12),N("click",function(){return R(e),L(g(2).signIn("GitHub"))}),H(20,"img",13),m(21," Sign in with Github "),c()(),u(22,"div")(23,"button",12),N("click",function(){return R(e),L(g(2).signIn("Microsoft"))}),H(24,"img",14),m(25," Sign in with Microsoft "),c()(),u(26,"div")(27,"button",12),N("click",function(){return R(e),L(g(2).signIn("Google"))}),H(28,"img",15),m(29," Sign in with Google "),c()(),u(30,"div")(31,"button",12),N("click",function(){return R(e),L(g(2).signIn("LinkedIn"))}),H(32,"img",16),m(33," Sign in with Linked In "),c()(),u(34,"div")(35,"button",12),N("click",function(){return R(e),L(g(2).signIn("Twitter"))}),H(36,"img",17),m(37," Sign in with Twitter "),c()()()()}if(2&i){const e=g(2);h(8),Ke("Thank you for your interest in the ",e.content.published.title," position."),h(2),Re(e.content.published.summary),h(2),p("routerLink",Ct(3,toe,e.content.key))}}function ioe(i,t){1&i&&(u(0,"div",18)(1,"div",19),H(2,"hr"),c()())}function roe(i,t){1&i&&H(0,"i",26)}function ooe(i,t){1&i&&H(0,"i",26)}function aoe(i,t){1&i&&H(0,"i",26)}function soe(i,t){if(1&i){const e=pe();u(0,"button",30),N("click",function(){return R(e),L(g(4).applyNow())}),m(1,"Submit Application"),c()}}function loe(i,t){if(1&i&&(u(0,"div")(1,"h5"),m(2,"Application Completed"),c(),u(3,"p"),m(4),Qt(5,"dateTimePrinter"),c(),u(6,"p"),m(7,"Your application has been submitted and will be reviewed. Qualified applicants will be contacted for a Zoom interview within 10 to 14 days."),c(),u(8,"p"),m(9,"Thank you for taking the time to learn about us, our business and completing the application."),c(),u(10,"p"),m(11,"If there are other positions you feel you are qualified for, you are welcome to apply for those today. "),c()()),2&i){const e=g(4);h(4),Gr("",e.currentApplication.status.text," ",Xt(5,2,e.currentApplication.statusDate),"")}}function coe(i,t){if(1&i&&(u(0,"div",27),w(1,soe,2,0,"button",28),w(2,loe,12,4,"div",29),c()),2&i){const e=g(3);h(1),p("ngIf",!e.currentApplication),h(1),p("ngIf",e.currentApplication)}}const doe=function(){return["/site/profile"]};function uoe(i,t){if(1&i){const e=pe();u(0,"div",18)(1,"div",19)(2,"h4"),m(3,"Application Check List"),c(),u(4,"table",20)(5,"thead")(6,"tr")(7,"th"),m(8,"Step"),c(),H(9,"th",21),u(10,"th",21),m(11,"Completed"),c()()(),u(12,"tr")(13,"td"),m(14," Review My Profile and accept Terms and Conditions "),c(),u(15,"td")(16,"a",10),m(17,"view"),c()(),u(18,"td",22),w(19,roe,1,0,"i",23),c()(),u(20,"tr")(21,"td"),m(22,"Getting to Know You Questionnaire"),c(),u(23,"td")(24,"span",24),N("click",function(){return R(e),L(g(2).takeWelcomeSurvey())}),m(25,"view"),c()(),u(26,"td",22),w(27,ooe,1,0,"i",23),c()(),u(28,"tr")(29,"td"),m(30,"Position Questionnaire "),c(),u(31,"td")(32,"span",24),N("click",function(){return R(e),L(g(2).takePositionSurvey())}),m(33,"view"),c()(),u(34,"td",22),w(35,aoe,1,0,"i",23),c()()(),w(36,coe,3,2,"div",25),c()()}if(2&i){const e=g(2);h(16),p("routerLink",oc(5,doe)),h(3),p("ngIf",e.user&&e.user.termsAndConditionsAccepted),h(8),p("ngIf",e.welcomeSurvey&&"Completed"==e.welcomeSurvey.status),h(8),p("ngIf",e.jobSurvey&&"Completed"==e.jobSurvey.status),h(1),p("ngIf",e.allCompleted)}}function hoe(i,t){if(1&i&&(u(0,"div",1),w(1,noe,38,5,"div",2),w(2,ioe,3,0,"div",3),w(3,uoe,37,6,"div",3),c()),2&i){const e=g();h(1),p("ngIf",!e.isLoggedIn),h(1),p("ngIf",e.isLoggedIn),h(1),p("ngIf",e.isLoggedIn)}}class tb{route;contentService;surveyService;hrService;nav;userService;orgService;router;isLoggedInSubscription;paramsSubscription;content;welcomeSurvey;jobSurvey;ready=!1;allCompleted=!1;user;currentApplication;isLoggedIn;orgNs;orgInfo;constructor(t,e,n,r,o,a,s,l){var d=this;this.route=t,this.contentService=e,this.surveyService=n,this.hrService=r,this.nav=o,this.userService=a,this.orgService=s,this.router=l,window.document.title="NuvIoT - Application",this.paramsSubscription=this.route.params.subscribe(function(){var f=z(function*(y){d.ready=!1,d.orgNs=y.orgns,d.orgInfo=yield s.getPublicOrgInfo(d.orgNs),d.isLoggedInSubscription=d.userService.onLoggedIn().subscribe(E=>d.isLoggedIn=E),d.isLoggedIn=yield d.userService.getIsLoggedIn();const k=d.route.snapshot.params.key;if(d.content=yield d.contentService.getSiteContentForOrgNS(d.orgNs,"jobdescription",k),window.document.title=`${d.orgInfo.name} ${d.content.name}`,d.nav.setHeaderName(d.content.name),d.nav.setBreadCrumbs([{title:"Careers",route:["public",d.orgNs,"careers"]},{title:d.content.name,current:!0}]),d.isLoggedIn){d.user=yield d.userService.getUser(),d.allCompleted=d.user.termsAndConditionsAccepted;const E=yield d.surveyService.getSurveyForUser("welcome");E.successful?(d.welcomeSurvey=E.result,d.allCompleted=d.welcomeSurvey&&"Completed"===d.welcomeSurvey.status):d.allCompleted=!1;const W=yield d.surveyService.getSurveyForUser(d.content.key);W.successful?(d.jobSurvey=W.result,d.allCompleted=d.jobSurvey&&"Completed"===d.jobSurvey.status&&d.allCompleted):d.allCompleted=!1,d.allCompleted&&(d.currentApplication=yield d.hrService.getApplicationForUserByKey(d.content.key),console.log(d.currentApplication))}d.ready=!0});return function(y){return f.apply(this,arguments)}}())}takeWelcomeSurvey(){var t=this;return z(function*(){const e=yield t.surveyService.getOrCreateASurveyForUser("welcome");t.router.navigate(["public",t.orgNs,"profile","survey",e.result.topLevelSurveyResponseId,{fromservice:"jobapplication",fromservicekey:t.content.key}])})()}takePositionSurvey(){var t=this;return z(function*(){const e=yield t.surveyService.getOrCreateASurveyForUser(t.content.key);t.router.navigate(["site",t.orgNs,"profile","survey",e.result.topLevelSurveyResponseId,{fromservice:"jobapplication",fromservicekey:t.content.key}])})()}applyNow(){var t=this;return z(function*(){const e={surveyResults:[{id:t.jobSurvey.topLevelSurveyResponseId,text:t.jobSurvey.surveyResponseName,orgId:t.jobSurvey.orgId},{id:t.welcomeSurvey.topLevelSurveyResponseId,text:t.welcomeSurvey.surveyResponseName,orgId:t.jobSurvey.orgId}],job:{id:t.content.id,key:t.content.key,text:t.content.name}},n=yield t.hrService.addJobApplication(e);n.successful&&(t.currentApplication=n.result)})()}signIn(t){let e=window.location.pathname;window.location.href=`/account/login/oauth/${t}?returnUrl=${e}`}ngOnDestroy(){this.paramsSubscription.unsubscribe(),this.isLoggedInSubscription.unsubscribe(),window.document.title="NuvIoT"}static \u0275fac=function(e){return new(e||tb)(U(bi),U(Aa),U(Wu),U(ff),U(Br),U($n),U(Td),U(Ti))};static \u0275cmp=Be({type:tb,selectors:[["app-job-apply"]],decls:1,vars:1,consts:[["class","router-container",4,"ngIf"],[1,"router-container"],["class","content-panel",4,"ngIf"],["class","row",4,"ngIf"],[1,"content-panel"],[2,"display","flex"],[1,"summary-image"],["width","200","src","https://webimages.nyc3.cdn.digitaloceanspaces.com/public/applicant.jpg"],[2,"margin-left","20px"],[1,"more-info-section"],[1,"action",3,"routerLink"],[2,"text-align","center"],["id","github-button",1,"oauth-btn",3,"click"],["src","https://www.nuviot.com/images/oauth/github.png"],["src","https://www.nuviot.com/images/oauth/microsoft.png"],["src","https://www.nuviot.com/images/oauth/google.png"],["src","https://www.nuviot.com/images/oauth/linkedin.png"],["src","https://www.nuviot.com/images/oauth/twitter.png"],[1,"row"],[1,"col-md-12"],[1,"table"],[2,"width","80pt"],["align","center"],["style","color:green","class","fa fa-check",4,"ngIf"],[1,"action",3,"click"],["style","text-align:right",4,"ngIf"],[1,"fa","fa-check",2,"color","green"],[2,"text-align","right"],["class","btn btn-primary",3,"click",4,"ngIf"],[4,"ngIf"],[1,"btn","btn-primary",3,"click"]],template:function(e,n){1&e&&w(0,hoe,4,3,"div",0),2&e&&p("ngIf",n.content&&n.ready)},dependencies:[ef,ct,Bs],styles:["[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}.blade[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow:hidden;width:500px}.blade-content[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow-y:auto;width:500px;height:calc(100vh - 180px)}.blade-diagram[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow:hidden;height:calc(100vh - 84px)}.blade-header[_ngcontent-%COMP%]{border-bottom:1px solid var(--color-panel-border);background-color:var(--color-bg-panel-header);padding:6px 6px 6px 16px}.blade-header[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:var(--color-fg-panel-header)}.blade-actions[_ngcontent-%COMP%]{text-align:right;right:0;float:right;flex-grow:1}.blade-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:4pt;color:var(--color-fg-panel-header)}.blade-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}.blade-actions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:8pt;border-radius:4pt;margin:4pt;color:var(--color-fg-panel-header);cursor:pointer}.blade-actions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{color:var(--color-fg-panel-header-active)}@media screen and (min-width: 1024px){.public-content[_ngcontent-%COMP%]{margin-left:50px}}@media screen and (min-width: 1024px){.content-panel[_ngcontent-%COMP%]{display:block;width:800px;margin-left:150px;background-color:#fff;border:1px solid #e5e5e5;padding:20px;margin-bottom:20px}}@media screen and (max-width: 768px){.content-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #e5e5e5;padding:20px;margin-bottom:20px}}@media screen and (max-width: 768px){.summary-image[_ngcontent-%COMP%]{display:none}}.more-info-section[_ngcontent-%COMP%]{text-align:right}","[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}.container[_ngcontent-%COMP%]{margin-left:auto!important;margin-right:auto!important}.page-container[_ngcontent-%COMP%]{height:100%;background-color:#75ade4}.login-panel[_ngcontent-%COMP%]{align-items:center;justify-content:center;flex-direction:column;display:flex;background-color:#fff;padding-bottom:30px;border:black 1px solid}.oauth-btn[_ngcontent-%COMP%]{background-color:#f0f0f0;padding:6px;height:44px;width:330px;margin-bottom:10px;border:1px solid silver;border-radius:3px}@media screen and (min-width: 1024px){.oauth-btn[_ngcontent-%COMP%]{margin-left:30px;margin-right:30px}}@media screen and (min-width: 1024px){.login-panel[_ngcontent-%COMP%]{margin-top:30px;padding-top:30px}}.oauth-btn[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#e0e0e0}.oauth-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:32px;height:32px;margin-right:6px}.busyMsg[_ngcontent-%COMP%]{color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1000;font-size:16pt}.busyMask[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;opacity:.5;z-index:999}"]})}class nb{year;constructor(){this.year=(new Date).getFullYear()}ngOnInit(){}static \u0275fac=function(e){return new(e||nb)};static \u0275cmp=Be({type:nb,selectors:[["app-footer"]],decls:10,vars:1,consts:[[1,"footer-bar"],[2,"color","white","margin-left","10px"],[2,"float","right"],["href","https://app.termly.io/document/cookie-policy/336875cf-0e08-4eb8-ba28-83bc9c0806c1","target","_blank",2,"margin-right","10px","color","white"],["href","https://app.termly.io/document/terms-of-use-for-saas/90eaf71a-610a-435e-95b1-c94b808f8aca","target","_blank",2,"margin-right","10px","color","white"],["href","https://app.termly.io/document/privacy-policy/fb547f70-fe4e-43d6-9a28-15d403e4c720","target","_blank",2,"margin-right","10px","color","white"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"span",1),m(2),c(),u(3,"div",2)(4,"a",3),m(5,"Cookie"),c(),u(6,"a",4),m(7,"T&C"),c(),u(8,"a",5),m(9,"Privacy"),c()()()),2&e&&(h(2),Ke("\xa9 ",n.year," Software Logistics"))},styles:[".footer-bar[_ngcontent-%COMP%]{position:fixed;bottom:0;width:100%;height:36px;background-color:#00000080;padding:5px;z-index:1000}@media (max-width: 480px){.footer-bar[_ngcontent-%COMP%]{display:none}}.footer-bar-no-scroll[_ngcontent-%COMP%]{width:100%;height:36px;background-color:#00000080;padding:5px}"]})}function poe(i,t){if(1&i){const e=pe();u(0,"div")(1,"div")(2,"button",10),N("click",function(){return R(e),L(g().signIn("GitHub"))}),H(3,"img",11),m(4," Sign in with Github "),c()(),u(5,"div")(6,"button",10),N("click",function(){return R(e),L(g().signIn("Microsoft"))}),H(7,"img",12),m(8," Sign in with Microsoft "),c()(),u(9,"div")(10,"button",10),N("click",function(){return R(e),L(g().signIn("Google"))}),H(11,"img",13),m(12," Sign in with Google "),c()(),u(13,"div")(14,"button",10),N("click",function(){return R(e),L(g().signIn("LinkedIn"))}),H(15,"img",14),m(16," Sign in with Linked In "),c()(),u(17,"div")(18,"button",10),N("click",function(){return R(e),L(g().signIn("Twitter"))}),H(19,"img",15),m(20," Sign in with Twitter "),c()(),u(21,"div")(22,"button",16),N("click",function(){return R(e),L(g().externalLogin=!1)}),H(23,"img",17),m(24," Sign in with Email "),c()()()}}function foe(i,t){if(1&i&&(u(0,"div",34),m(1),c()),2&i){const e=g(2);h(1),Ke(" ",e.loginResult," ")}}function goe(i,t){if(1&i){const e=pe();u(0,"div",18)(1,"form",19)(2,"div",20)(3,"label",21),m(4,"Email Address"),c(),u(5,"input",22),N("ngModelChange",function(r){return R(e),L(g().emailAddress=r)}),c(),H(6,"div",23),c(),u(7,"div",20)(8,"label",24),m(9,"Password"),c(),u(10,"input",25),N("ngModelChange",function(r){return R(e),L(g().password=r)}),c()(),u(11,"div",20)(12,"div",26)(13,"label")(14,"input",27),N("ngModelChange",function(r){return R(e),L(g().rememberMe=r)}),c(),m(15," Remember Me "),c()()(),u(16,"div",28)(17,"button",29),N("click",function(){return R(e),L(g().performEmailLogin())}),m(18,"Login"),c(),m(19,"\xa0 "),u(20,"button",30),N("click",function(){return R(e),L(g().cancelLogin())}),m(21,"Cancel"),c()(),u(22,"div",20)(23,"a",31),m(24,"Register"),c(),H(25,"br"),u(26,"a",32),m(27,"Forgot Password"),c()(),w(28,foe,2,1,"div",33),c()()}if(2&i){const e=g();h(5),p("ngModel",e.emailAddress),h(5),p("ngModel",e.password),h(4),p("ngModel",e.rememberMe),h(14),p("ngIf",e.loginResult)}}function moe(i,t){1&i&&H(0,"div",35)}function _oe(i,t){if(1&i&&(u(0,"div",36),H(1,"img",37)(2,"br"),u(3,"div"),m(4,"Please Wait"),c()()),2&i){const e=g();h(1),Ms("src","",e.root,"/app/ui-shared/assets/ajax-loader.gif",Yi)}}class u_{userService;networkService;storage;router;constructor(t,e,n,r){this.userService=t,this.networkService=e,this.storage=n,this.router=r,this.root="/public",this._onBeginCall=e.onCallBegin().subscribe(o=>{window.setTimeout(()=>{this.isBusy=!0})}),this._onEndCall=e.onCallEnd().subscribe(o=>{window.setTimeout(()=>{this.isBusy=!1})})}_onBeginCall;_onEndCall;isBusy=!1;root="";returnUrl=void 0;emailAddress;password;loginResult;rememberMe=!1;isLoggingIn=!1;queryParams;paramOptions;externalLogin=!0;cancel=new Ae;ngOnInit(){var t=this;return z(function*(){t.returnUrl||(t.returnUrl="/public"),(yield t.userService.getIsLoggedIn())&&t.router.navigate(["public"]),yield t.storage.clearAsync();for(var n=document.cookie.split(";"),r=0;r-1?o.substr(0,a):o;document.cookie=s+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}})()}signIn(t){this.returnUrl?.toLowerCase().startsWith("/api")&&(this.returnUrl="/public"),window.location.href=`/account/login/oauth/${t}?returnUrl=${this.returnUrl}`}performEmailLogin(){var t=this;return z(function*(){t.isLoggingIn=!0,t.loginResult=null;try{yield t.userService.login(t.emailAddress,t.password,t.rememberMe),t.isLoggingIn=!1;let e=yield t.storage.getItemAsync("loginRedirect");yield t.storage.removeItemAsync("loginRedirect"),!e||e.startsWith("/api")||e.startsWith("/auth")?t.router.navigate(["public"]):window.location.href=e}catch{t.loginResult="Sorry, we could not log you in with that email and password, please try again.",t.isLoggingIn=!1}})()}cancelLogin(){this.externalLogin=!0}ngOnDestroy(){this._onBeginCall.unsubscribe(),this._onEndCall.unsubscribe()}static \u0275fac=function(e){return new(e||u_)(U($n),U(mc),U(co),U(Ti))};static \u0275cmp=Be({type:u_,selectors:[["app-external-login"]],inputs:{returnUrl:"returnUrl"},outputs:{cancel:"cancel"},decls:12,vars:4,consts:[[1,"page-container"],[1,"container"],[1,"row"],[1,"col-md-4"],[1,"col-md-6","login-panel"],["src","https://www.nuviot.com/images/applogo.png",2,"margin-bottom","15px","width","300px"],[4,"ngIf"],["style","width:100%;height:300px",4,"ngIf"],["style","z-index: 20000 !important;","class","busyMask",4,"ngIf"],["style","text-align:center;z-index: 20000 !important;","class","busyMsg",4,"ngIf"],["id","github-button",1,"oauth-btn",3,"click"],["src","https://www.nuviot.com/images/oauth/github.png"],["src","https://www.nuviot.com/images/oauth/microsoft.png"],["src","https://www.nuviot.com/images/oauth/google.png"],["src","https://www.nuviot.com/images/oauth/linkedin.png"],["src","https://www.nuviot.com/images/oauth/twitter.png"],["value","Email",1,"oauth-btn",3,"click"],["src","https://www.nuviot.com/images/oauth/email.png"],[2,"width","100%","height","300px"],["id","userLoginForm","role","form","data-toggle","validator","method","post"],[1,"form-group"],["for","email",1,"control-label"],["type","email","id","email","name","email","placeholder","email address","required","","data-error","Email is Required",1,"form-control",3,"ngModel","ngModelChange"],[1,"help-block","with-errors"],["for","password",1,"control-label"],["type","password","name","password","id","password","placeholder","password","required","","data-error","Password is Required",1,"form-control",3,"ngModel","ngModelChange"],[1,"checkbox"],["type","checkbox","id","rememberMe","name","rememberMe",3,"ngModel","ngModelChange"],[2,"text-align","right"],[1,"btn","btn-primary",3,"click"],[1,"btn","btn-danger",3,"click"],["href","https://www.nuviot.com/Account/Register"],["href","https://www.nuviot.com/Account/ForgotPassword"],["style","color:red;margin-bottom:10px;font-size:1.2em",4,"ngIf"],[2,"color","red","margin-bottom","10px","font-size","1.2em"],[1,"busyMask",2,"z-index","20000 !important"],[1,"busyMsg",2,"text-align","center","z-index","20000 !important"],[3,"src"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1)(2,"div",2),H(3,"div",3),u(4,"div",4),H(5,"img",5),w(6,poe,25,0,"div",6),w(7,goe,29,4,"div",7),c(),H(8,"div",3),c()()(),w(9,moe,1,0,"div",8),w(10,_oe,5,1,"div",9),H(11,"app-footer")),2&e&&(h(6),p("ngIf",n.externalLogin),h(1),p("ngIf",!n.externalLogin),h(2),p("ngIf",n.isBusy),h(1),p("ngIf",n.isBusy))},dependencies:[ct,Kk,Bn,yl,vn,Vk,Lm,pn,zp,nb],styles:["[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}.container[_ngcontent-%COMP%]{margin-left:auto!important;margin-right:auto!important}.page-container[_ngcontent-%COMP%]{height:100%;background-color:#75ade4}.login-panel[_ngcontent-%COMP%]{align-items:center;justify-content:center;flex-direction:column;display:flex;background-color:#fff;padding-bottom:30px;border:black 1px solid}.oauth-btn[_ngcontent-%COMP%]{background-color:#f0f0f0;padding:6px;height:44px;width:330px;margin-bottom:10px;border:1px solid silver;border-radius:3px}@media screen and (min-width: 1024px){.oauth-btn[_ngcontent-%COMP%]{margin-left:30px;margin-right:30px}}@media screen and (min-width: 1024px){.login-panel[_ngcontent-%COMP%]{margin-top:30px;padding-top:30px}}.oauth-btn[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#e0e0e0}.oauth-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:32px;height:32px;margin-right:6px}.busyMsg[_ngcontent-%COMP%]{color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1000;font-size:16pt}.busyMask[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;opacity:.5;z-index:999}"]})}class ib{constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||ib)};static \u0275cmp=Be({type:ib,selectors:[["app-applicant-home"]],decls:2,vars:0,template:function(e,n){1&e&&(u(0,"p"),m(1," applicant-home works!\n"),c())}})}class Gu{nuviotClient;userService;constructor(t,e){this.nuviotClient=t,this.userService=e}getProductCategory(t){return this.nuviotClient.getFormResponse(`/api/product/category/${t}`)}getProductCategories(){return this.nuviotClient.getListResponse("/api/product/categories")}createProductCategory(){return this.nuviotClient.getFormResponse("/api/product/category/factory")}updateProductCategory(t){return this.nuviotClient.update("/api/product/category",t)}insertProductCategory(t){return this.nuviotClient.insert("/api/product/category",t)}saveProductCategory(t){return t.isEditing?this.updateProductCategory(t.model):this.insertProductCategory(t.model)}getProduct(t){var e=this;return z(function*(){return yield e.nuviotClient.getFormResponse(`/api/product/${t}`)})()}deleteProduct(t){var e=this;return z(function*(){return yield e.nuviotClient.delete(`/api/product/${t}`)})()}getProducts(t){var e=this;return z(function*(){return yield e.nuviotClient.getListResponse(`/api/products/category/${t}`)})()}createProduct(t){return this.nuviotClient.getFormResponse(`/api/product/factory/${t}`)}updateProduct(t){return this.nuviotClient.update("/api/product",t)}insertProduct(t){return this.nuviotClient.insert("/api/product",t)}saveProduct(t){return t.isEditing?this.updateProduct(t.model):this.insertProduct(t.model)}getProductCategoryTypesList(){return this.nuviotClient.getListResponse("/api/product/category/types")}createProductCategoryType(){return this.nuviotClient.getFormResponse("/api/product/category/type/factory")}getProductCategoryType(t){return this.nuviotClient.getFormResponse(`/api/product/category/type/${t}`)}updateProductCategoryType(t){return this.nuviotClient.update("/api/product/category/type",t)}insertProductCategoryType(t){return this.nuviotClient.insert("/api/product/category/type",t)}saveProductCategoryType(t){return t.isEditing?this.updateProductCategoryType(t.model):this.insertProductCategoryType(t.model)}getProductPageLayoutList(){return this.nuviotClient.getListResponse("/api/productpage/layouts")}createProductPageLayoutType(){return this.nuviotClient.getFormResponse("/api/productpage/layout/factory")}getProductPageLayoutType(t){return this.nuviotClient.getFormResponse(`/api/productpage/layout/${t}`)}deleteProductPageLayoutType(t){return this.nuviotClient.delete(`/api/productpage/layout//${t}`)}updateProductPageLayoutType(t){return this.nuviotClient.update("/api/productpage/layout",t)}insertProductPageLayoutType(t){return this.nuviotClient.insert("/api/productpage/layout",t)}saveProductPageLayoutType(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateProductPageLayoutType(t.model);{let n=yield e.insertProductPageLayoutType(t.model);return n.successful&&(t.isEditing=!0),n}})()}createProductPage(){return this.nuviotClient.getFormResponse("/api/product/page/factory")}getProductPages(){return this.nuviotClient.getListResponse("/api/product/page/list")}getProductPage(t){return this.nuviotClient.getFormResponse(`/api/product/page/${t}`)}getProductPageByKey(t,e){return this.nuviotClient.request(`/api/${t}/product/page/${e}`)}deleteProductPage(t){return this.nuviotClient.delete(`/api/product/page/${t}`)}updateProductPage(t){return this.nuviotClient.update("/api/product/page",t)}insertProductPage(t){return this.nuviotClient.insert("/api/product/page",t)}addProductPageProduct(t){return this.nuviotClient.post("/api/product/page/product",t)}updateProductPageProduct(t){return this.nuviotClient.update("/api/product/page/product",t)}removeProductPageProduct(t){return this.nuviotClient.delete(`/api/product/page/product/${t}`)}saveProductPage(t){return t.isEditing?this.updateProductPage(t.model):this.insertProductPage(t.model)}getPublicProductCategoryTypesAsync(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/${t}/product/category/types`)})()}getPublicProductCategoryTypeAsync(t,e){var n=this;return z(function*(){return yield n.nuviotClient.request(`/api/${t}/product/categories/${e}`)})()}getPublicProductCategoryAsync(t,e){var n=this;return z(function*(){return yield n.nuviotClient.request(`/api/${t}/product/category/${e}`)})()}getPublicProductsForOrgAsync(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/${t}/products`)})()}getPublicProductAsync(t,e){var n=this;return z(function*(){return yield n.nuviotClient.request(`/api/${t}/product/${e}`)})()}getCartAsync(t){var e=this;return z(function*(){return e.nuviotClient.request(`/api/cart/${t}`)})()}addToCartAsync(t,e,n){var r=this;return z(function*(){return yield r.nuviotClient.updateWithResponse(`/api/${t}/cart/add/${e}?qty=${n}`,null)})()}removeItemFromCartAsync(t,e){var n=this;return z(function*(){return yield n.nuviotClient.deleteWithResponse(`/api/${t}/cart/item/${e}`)})()}static \u0275fac=function(e){return new(e||Gu)(Ee(An),Ee($n))};static \u0275prov=$e({token:Gu,factory:Gu.\u0275fac,providedIn:"root"})}class qu{transform(t,e){return 0==t||t?(t=parseFloat(t)).toLocaleString("en-US",{style:"currency",currency:"USD"}):""}static \u0275fac=function(e){return new(e||qu)};static \u0275pipe=Yn({name:"moneyPrinter",type:qu,pure:!0})}class h_{transform(t,e){if(0!=t&&!t)return"";t=parseFloat(t);let n=Math.floor(t),r=Math.round(100*(t-n));return`$${n}${r<10?`0${r}`:r.toString()}`}static \u0275fac=function(e){return new(e||h_)};static \u0275pipe=Yn({name:"moneyPrinterLarge",type:h_,pure:!0})}class gf{sanitized;constructor(t){this.sanitized=t}transform(t){return this.sanitized.bypassSecurityTrustHtml(t)}static \u0275fac=function(e){return new(e||gf)(U(Ps,16))};static \u0275pipe=Yn({name:"safeHtml",type:gf,pure:!0})}function voe(i,t){if(1&i&&(u(0,"div",6)(1,"div",7),m(2),c(),u(3,"div",8),m(4),c()()),2&i){const e=g();h(2),Ke(" ",e.info.heroTitle," "),h(2),Ke(" ",e.info.tagLine," ")}}function yoe(i,t){if(1&i){const e=pe();u(0,"span")(1,"span",9),N("click",function(){return R(e),L(g().showCategoryTypes())}),m(2,"Product Types"),c(),u(3,"span",10),m(4," > "),c()()}}function boe(i,t){if(1&i){const e=pe();u(0,"span")(1,"span",9),N("click",function(){R(e);const r=g();return L(r.showCategoryType(r.categoryType.key))}),m(2),c(),u(3,"span",10),m(4," > "),c()()}if(2&i){const e=g();h(2),Re(e.categoryType.name)}}function Coe(i,t){if(1&i){const e=pe();u(0,"span")(1,"span",9),N("click",function(){R(e);const r=g();return L(r.showProducts(r.category.id))}),m(2),c(),u(3,"span",10),m(4," > "),c()()}if(2&i){const e=g();h(2),Re(e.category.name)}}function woe(i,t){1&i&&(u(0,"span")(1,"span",11),m(2,"All Products"),c()())}function Doe(i,t){1&i&&(u(0,"span")(1,"span",11),m(2,"Product Types"),c()())}function Moe(i,t){if(1&i&&(u(0,"span")(1,"span",11),m(2),c()()),2&i){const e=g();h(2),Re(e.categoryType.name)}}function xoe(i,t){if(1&i&&(u(0,"span",11),m(1),c()),2&i){const e=g();h(1),Re(e.category.name)}}function koe(i,t){if(1&i&&(u(0,"span",11),m(1),c()),2&i){const e=g();h(1),Ke(" ",e.product.name,"")}}const iS=function(i){return{"background-image":i}};function Toe(i,t){if(1&i){const e=pe();u(0,"div",16),H(1,"div",17),u(2,"div",18)(3,"h4"),m(4),c(),H(5,"div",19),u(6,"button",20),N("click",function(){const o=R(e).$implicit;return L(g(3).showCategoryType(o.key))}),m(7,"View"),c()()()}if(2&i){const e=t.$implicit,n=g(3);h(1),p("ngStyle",Ct(3,iS,"url("+n.getProductCategoryTypeImage(e))),h(3),Re(e.name),h(1),p("innerHTML",e.shortSummary,Un)}}function Soe(i,t){if(1&i&&(u(0,"div")(1,"div",13),m(2," Introducing our cutting-edge IoT technology and services \u2013 a revolution in connectivity that seamlessly integrates the physical and digital worlds. Elevate your business to new heights with our innovative solutions designed to enhance efficiency, boost productivity, and unlock unprecedented possibilities. "),c(),u(3,"div",14),w(4,Toe,8,5,"div",15),c()()),2&i){const e=g(2);h(4),p("ngForOf",e.categoryTypes.model)}}function Eoe(i,t){if(1&i){const e=pe();u(0,"div",22),H(1,"div",23),u(2,"div",24)(3,"h4"),m(4),c(),H(5,"p",19),u(6,"div")(7,"button",20),N("click",function(){const o=R(e).$implicit;return L(g(3).showProducts(o.id))}),m(8,"View Products"),c()()()()}if(2&i){const e=t.$implicit,n=g(3);h(1),p("ngStyle",Ct(3,iS,"url("+n.getThumbnailImageUri(e)+")")),h(3),Re(e.name),h(1),p("innerHTML",e.shortSummaryHTML,Un)}}function Aoe(i,t){if(1&i&&(u(0,"div",12)(1,"span"),m(2),c(),u(3,"div",14),w(4,Eoe,9,5,"div",21),c()()),2&i){const e=g(2);h(2),Re(e.categoryType.description),h(2),p("ngForOf",e.categories.model)}}function Ioe(i,t){1&i&&H(0,"span",19),2&i&&p("innerHTML",g(3).category.shortSummaryHTML,Un)}function Foe(i,t){if(1&i){const e=pe();u(0,"div")(1,"span",43),N("click",function(){R(e);const r=g().$implicit;return L(g(3).editProduct(r))}),H(2,"i",44),m(3," Edit"),c()()}}function Poe(i,t){if(1&i){const e=pe();u(0,"div",27)(1,"div",28),H(2,"div",29),c(),u(3,"div",30)(4,"h4",31),N("click",function(){const o=R(e).$implicit;return L(g(3).showProductDetail(o.id))}),m(5),c(),u(6,"div",32),H(7,"span",19),Qt(8,"moneyPrinterLarge"),m(9),c(),u(10,"div")(11,"span",33),m(12,"Lead Time:"),c(),m(13),c(),u(14,"div"),H(15,"span",19),c(),u(16,"div",34),H(17,"div",35),u(18,"div",36)(19,"div",37),N("click",function(){const o=R(e).$implicit;return L(g(3).incrementCount(o))}),H(20,"i",38),c(),u(21,"input",39),N("ngModelChange",function(r){return L(R(e).$implicit.qtyToPurchase=r)}),c(),u(22,"div",37),N("click",function(){const o=R(e).$implicit;return L(g(3).decrementCount(o))}),H(23,"i",40),c()(),u(24,"div")(25,"button",41),N("click",function(){const o=R(e).$implicit;return L(g(3).addToCart(o))}),m(26,"Add to Cart "),H(27,"i",42),c()()()(),w(28,Foe,4,0,"div",2),c()}if(2&i){const e=t.$implicit,n=g(3);h(2),p("ngStyle",Ct(10,iS,"url("+n.siteRoot+e.thumbnailImageUrl+")")),h(3),Re(e.name),h(2),p("innerHTML",Xt(8,8,e.unitPrice),Un),h(2),Ke(" (USD) ",e.unitType," "),h(4),Ke(" ",e.leadTime,""),h(2),p("innerHTML",e.shortSummaryHTML,Un),h(6),p("ngModel",e.qtyToPurchase),h(7),p("ngIf",n.canEditProduct)}}function Roe(i,t){if(1&i&&(u(0,"div"),w(1,Ioe,1,1,"span",25),w(2,Poe,29,12,"div",26),c()),2&i){const e=g(2);h(1),p("ngIf",e.category),h(1),p("ngForOf",e.products.model)}}function Loe(i,t){if(1&i&&(u(0,"div")(1,"a",53),m(2,"Product Home Page"),c()()),2&i){const e=g(3);h(1),p("href",e.product.productHomePage,Yi)}}function Ooe(i,t){if(1&i&&H(0,"img",54),2&i){const e=g(3);p("src",e.getThumbnailImageUri(e.product),Yi)}}function Noe(i,t){1&i&&H(0,"img",55),2&i&&Ms("src","",g(3).base,"/app/ui-shared/assets/product.png",Yi)}function Boe(i,t){if(1&i&&(u(0,"span"),m(1),c()),2&i){const e=g().$implicit;h(1),Ke("",e.discount,"%")}}function Voe(i,t){1&i&&(u(0,"span"),m(1,"-"),c())}function Hoe(i,t){if(1&i){const e=pe();u(0,"tr")(1,"td",58),m(2),c(),u(3,"td"),m(4),c(),u(5,"td"),m(6),c(),u(7,"td",58),m(8),Qt(9,"moneyPrinter"),c(),u(10,"td",59),w(11,Boe,2,1,"span",2),w(12,Voe,2,0,"span",2),c(),u(13,"td",58),m(14),Qt(15,"moneyPrinter"),c(),u(16,"td",58),m(17),Qt(18,"moneyPrinter"),c(),u(19,"td")(20,"span",43),N("click",function(){const o=R(e).$implicit;return L(g(4).showSubProduct(o))}),m(21,"view"),c()()()}if(2&i){const e=t.$implicit;h(2),Re(e.quantity),h(2),Re(e.name),h(2),Re(e.unitType.text),h(2),Re(Xt(9,8,e.unitPrice)),h(3),p("ngIf",e.discount>0),h(1),p("ngIf",0==e.discount),h(2),Ke(" ",Xt(15,10,e.extendedPrice)," "),h(3),Ke(" ",Xt(18,12,e.subTotal)," ")}}function Yoe(i,t){if(1&i&&(u(0,"table",56)(1,"thead")(2,"tr")(3,"th"),m(4,"Qty"),c(),u(5,"th"),m(6,"Product"),c(),u(7,"th"),m(8,"Unit Type"),c(),u(9,"th"),m(10,"List"),c(),u(11,"th"),m(12,"Discount"),c(),u(13,"th"),m(14,"Extended"),c(),u(15,"th"),m(16,"Subtotal"),c(),H(17,"th"),c()(),u(18,"tbody"),w(19,Hoe,22,14,"tr",57),c()()),2&i){const e=g(3);h(19),p("ngForOf",e.product.includedProducts)}}function Uoe(i,t){if(1&i&&(u(0,"div")(1,"h5"),m(2),Qt(3,"moneyPrinter"),c()()),2&i){const e=g(3);h(2),Ke("Due Today: ",Xt(3,1,e.purchasePrice),"")}}function joe(i,t){if(1&i&&(u(0,"div",61),m(1),Qt(2,"moneyPrinter"),c()),2&i){const e=g(4);h(1),Ke(" ",Xt(2,1,e.perMonthPrice)," Per Month (First month included) ")}}function $oe(i,t){if(1&i&&(u(0,"div",61),m(1),Qt(2,"moneyPrinter"),c()),2&i){const e=g(4);h(1),Ke(" ",Xt(2,1,e.perYearPrice)," Per Year (First year included) ")}}function zoe(i,t){if(1&i&&(u(0,"div")(1,"h5"),m(2,"Recurring Charges"),c(),w(3,joe,3,3,"div",60),w(4,$oe,3,3,"div",60),c()),2&i){const e=g(3);h(3),p("ngIf",e.perMonthPrice),h(1),p("ngIf",e.perYearPrice)}}function Woe(i,t){if(1&i&&(u(0,"div")(1,"h6"),m(2,"On Demand Charges (Billed Monthly)"),c(),u(3,"div",62),m(4),Qt(5,"moneyPrinter"),c()()),2&i){const e=g(3);h(4),Ke(" ",Xt(5,1,e.perHourPrice)," Per Hour ")}}function Goe(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",45)(2,"div",35)(3,"h2"),m(4),c(),w(5,Loe,3,1,"div",2),u(6,"div",46),H(7,"p",19),Qt(8,"safeHtml"),H(9,"hr"),c()(),u(10,"div")(11,"div",47)(12,"div",36)(13,"div",37),N("click",function(){R(e);const r=g(2);return L(r.incrementCount(r.product))}),H(14,"i",38),c(),u(15,"input",39),N("ngModelChange",function(r){return R(e),L(g(2).product.qtyToPurchase=r)}),c(),u(16,"div",37),N("click",function(){R(e);const r=g(2);return L(r.decrementCount(r.product))}),H(17,"i",40),c()(),u(18,"div")(19,"button",41),N("click",function(){R(e);const r=g(2);return L(r.addToCart(r.product))}),m(20,"Add to Cart "),H(21,"i",42),c()()()(),H(22,"hr"),c(),u(23,"div",45)(24,"div"),w(25,Ooe,1,1,"img",48),w(26,Noe,1,1,"img",49),c(),u(27,"div",50),H(28,"p",19),Qt(29,"safeHtml"),c()(),H(30,"hr"),w(31,Yoe,20,1,"table",51),u(32,"div",45),H(33,"div",35),u(34,"div",52),w(35,Uoe,4,3,"div",2),w(36,zoe,5,2,"div",2),w(37,Woe,6,3,"div",2),c()()()}if(2&i){const e=g(2);h(4),Re(e.product.name),h(1),p("ngIf",e.product.productHomePage&&!1),h(2),p("innerHTML",Xt(8,11,e.product.shortSummaryHTML),Un),h(8),p("ngModel",e.product.qtyToPurchase),h(10),p("ngIf",e.product.imageResource),h(1),p("ngIf",!e.product.imageResource),h(2),p("innerHTML",Xt(29,13,e.product.detailsHTML),Un),h(3),p("ngIf",e.product.includedProducts.length>0),h(4),p("ngIf",e.purchasePrice),h(1),p("ngIf",e.perMonthPrice>0||e.perYearPrice>0),h(1),p("ngIf",e.perHourPrice>0)}}function qoe(i,t){if(1&i&&(u(0,"div",12),w(1,Soe,5,1,"div",2),w(2,Aoe,5,2,"div",5),w(3,Roe,3,2,"div",2),w(4,Goe,38,15,"div",2),c()),2&i){const e=g();h(1),p("ngIf",e.categoryTypes&&!e.categories&&!e.products),h(1),p("ngIf",e.categories&&!e.products),h(1),p("ngIf",e.products&&!e.product),h(1),p("ngIf",e.product)}}function Koe(i,t){if(1&i){const e=pe();u(0,"div",66)(1,"div")(2,"h5"),m(3),c(),u(4,"div"),m(5),Qt(6,"moneyPrinter"),c(),u(7,"div"),m(8),Qt(9,"moneyPrinter"),c()(),u(10,"div",58)(11,"button",67),N("click",function(){const o=R(e).$implicit;return L(g(2).removeFromCart(o))}),H(12,"i",68),c()(),H(13,"hr"),c()}if(2&i){const e=t.$implicit;h(3),Re(e.product.text),h(2),rc("",e.quantity," x ",Xt(6,5,e.price)," (USD) ",e.unitType.text,""),h(3),Ke("Item Total: ",Xt(9,7,e.price*e.quantity)," (USD)")}}function Zoe(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",63)(2,"h4"),m(3,"Cart"),c(),w(4,Koe,14,9,"div",64),u(5,"div",58)(6,"h4"),m(7),Qt(8,"moneyPrinter"),c(),u(9,"div")(10,"button",65),N("click",function(){return R(e),L(g().checkout())}),m(11,"Checkout"),c()()()()()}if(2&i){const e=g();h(4),p("ngForOf",e.cart.lineItems),h(3),Ke("Total: ",Xt(8,2,e.cart.total)," (USD)")}}class kl{route;userService;productService;cookieService;navService;localStorageService;_routeSubscription;categoryTypes;categories;products;categoryType;category;product;base;busy=!0;orgNs;isLoggedIn=!1;purchasePrice;perMonthPrice=0;perHourPrice=0;perYearPrice=0;canEditProduct=!1;cart;info;siteRoot="";constructor(t,e,n,r,o,a){var s=this;this.route=t,this.userService=e,this.productService=n,this.cookieService=r,this.navService=o,this.localStorageService=a,this.base="/public",this._routeSubscription=this.route.params.subscribe(function(){var l=z(function*(d){if(s.isLoggedIn=yield s.userService.getIsLoggedIn(),s.busy=!0,s.orgNs=d.orgns?d.orgns:"softwarelogistics",s.isLoggedIn){let y=yield e.getCurrentOrg();s.canEditProduct=y.isForProductLine&&y.namespace==s.orgNs,console.log(y.isForProductLine,y.namespace,s.orgNs,s.canEditProduct)}if(2==s.route.snapshot.url.length&&"products"==s.route.snapshot.url[1].path){s.clearAll();let y=yield s.productService.getPublicProductsForOrgAsync(s.orgNs);y.successful&&(s.products=y.result.products,s.info=y.result.organizationInformation);for(let k of s.products.model)k.qtyToPurchase=k.minimumQuantity;console.log(s.products.model)}else d.productid?yield s.showProductDetail(d.productid):d.catgid?yield s.showProducts(d.catgid):d.catgtype?yield s.showCategoryType(d.catgtype):yield s.showCategoryTypes();let f=yield a.getItemAsync(`${s.orgNs}cartid`);if(f){let y=yield s.productService.getCartAsync(f);y.successful&&(s.cart=y.result)}s.busy=!1});return function(d){return l.apply(this,arguments)}}())}clearAll(){this.categoryTypes=void 0,this.categoryType=void 0,this.categories=void 0,this.category=void 0,this.products=void 0,this.product=void 0}ngOnDestroy(){this._routeSubscription.unsubscribe()}showCategoryTypes(){var t=this;return z(function*(){t.clearAll();let e=yield t.productService.getPublicProductCategoryTypesAsync(t.orgNs);console.log("Category Types",e),t.info=e.result.organizationInformation,t.categoryTypes=e.result.categoryTypes,t.navService.setLocation(`/public/${t.orgNs}/productcategories`)})()}showCategoryType(t){var e=this;return z(function*(){e.clearAll();let n=yield e.productService.getPublicProductCategoryTypeAsync(e.orgNs,t);console.log("Category Type",n),e.info=n.result.organizationInformation,e.categoryType=n.result.categoryType,e.categories=n.result.categories,e.navService.setLocation(`/public/${e.orgNs}/productcategories/${e.categoryType.key}`)})()}showProducts(t){var e=this;return z(function*(){e.clearAll();let n=yield e.productService.getPublicProductCategoryAsync(e.orgNs,t);console.log("Product Category",n),e.info=n.result.organizationInformation,e.category=n.result.category,e.categoryType=n.result.categoryType,e.products=n.result.products;for(let r of e.products.model)r.qtyToPurchase=r.minimumQuantity;e.navService.setLocation(`/public/${e.orgNs}/productcategories/${e.categoryType.id}/${e.category.id}/products`)})()}showProductDetail(t){var e=this;return z(function*(){e.clearAll();let n=yield e.productService.getPublicProductAsync(e.orgNs,t);console.log("Show Product: "+n.result.product.name,n),e.info=n.result.organizationInformation,e.categoryType=n.result.categoryType,e.category=n.result.category;let r=n.result.product;switch(e.purchasePrice=0,e.perMonthPrice=0,e.perHourPrice=0,r.qtyToPurchase=r.minimumQuantity,r.unitType.id){case"1":e.perHourPrice=r.unitPrice;break;case"2":e.perMonthPrice=r.unitPrice;break;case"9":e.purchasePrice=12*r.unitPrice,e.perYearPrice=e.purchasePrice;break;default:e.purchasePrice=r.unitPrice}console.log(e.purchasePrice,e.perMonthPrice,e.perHourPrice,r.unitType.id),console.log(r);for(let o of r.includedProducts)switch(o.extendedPrice=Math.round(100*(o.unitPrice-o.discount/100*o.unitPrice))/100,o.subTotal=o.extendedPrice*o.quantity,o.unitType.id){case"1":e.perHourPrice+=o.subTotal;break;case"2":e.perMonthPrice+=o.subTotal,e.purchasePrice+=o.subTotal;break;case"9":o.subTotal=12*o.subTotal,e.perYearPrice+=o.subTotal,e.purchasePrice+=o.subTotal;break;default:e.purchasePrice+=o.subTotal}e.product=r,console.log(e.categoryType),e.navService.setLocation(`/public/${e.orgNs}/productcategories/${e.categoryType.key}/${e.category.id}/product/${e.product.id}`)})()}getThumbnailImageUri(t){return t.thumbnailImageResource||t.thumbnailImageResourceId?`/api/media/resource/${this.info.id}/${t.thumbnailImageResourceId??t.thumbnailImageResource.id}/download`:`${this.base}/app/ui-shared/assets/product.png`}getProductCategoryTypeImage(t){return t.imageResource?`/api/media/resource/${t.ownerOrganization.id}/${t.imageResource.id}/download`:`${this.base}/app/ui-shared/assets/product.png`}getImageUri(t){return`/api/media/resource/${t.ownerOrgId??this.category.orgId}/${t.imageResourceId??t.imageResource.id}/download`}showSubProduct(t){var e=this;return z(function*(){let n=(yield e.productService.getProduct(t.product.id)).model,r=(yield e.productService.getProductCategory(n.productCategory.id)).model;e.navService.goto(["public","productcategories",e.category.categoryType.id,r.id,"product",n.id])})()}editProduct(t){this.navService.openInNewWindow(`/business/productcatalog/category/${t.categoryId}/product/${t.id}`)}addToCart(t){var e=this;return z(function*(){let n=yield e.productService.addToCartAsync(e.orgNs,t.id,t.qtyToPurchase);n.successful&&(yield e.localStorageService.setItemAsync(`${e.orgNs}cartid`,n.result.id),yield e.localStorageService.setItemAsync(`${e.orgNs}cartcount`,n.result.lineItems.length.toString()),e.cart=n.result)})()}removeFromCart(t){var e=this;return z(function*(){let n=yield e.productService.removeItemFromCartAsync(e.orgNs,t.id);n.successful&&(yield e.localStorageService.setItemAsync(`${e.orgNs}cartid`,n.result.id),yield e.localStorageService.setItemAsync(`${e.orgNs}cartcount`,n.result.lineItems.length.toString()),e.cart=n.result)})()}incrementCount(t){t.qtyToPurchase++,t.qtyToPurchase=Math.min(t.qtyToPurchase,t.maximumQuantity)}decrementCount(t){t.qtyToPurchase--,t.qtyToPurchase=Math.max(t.qtyToPurchase,t.minimumQuantity)}buildSupportedPaymentMethodData(){return[{supportedMethods:"https://www.apple.com/apple-pay/"}]}buildShoppingCartDetails(){return{id:"order-123",displayItems:[{label:"Example item",amount:{currency:"USD",value:"1.00"}}],total:{label:"Total",amount:{currency:"USD",value:"1.00"}}}}checkout(){var t=this;return z(function*(){let n=yield new PaymentRequest(t.buildSupportedPaymentMethodData(),t.buildShoppingCartDetails()).show();console.log(n)})()}static \u0275fac=function(e){return new(e||kl)(U(bi),U($n),U(Gu),U(Dd),U(Br),U(co))};static \u0275cmp=Be({type:kl,selectors:[["app-product-category"]],decls:13,vars:11,consts:[["style","height: 150px; background-repeat: no-repeat; background-size: cover; background-image: url(https://static.wixstatic.com/media/ab9b64_00f7966462c7429fa01299f6839a18a2~mv2.png/v1/fill/w_972,h_200,fp_0.50_0.50,q_85,enc_auto/ab9b64_00f7966462c7429fa01299f6839a18a2~mv2.png);",4,"ngIf"],[1,"breadcrumb"],[4,"ngIf"],["class","name",4,"ngIf"],[2,"display","flex","background-color","white"],["style","max-width:1200px;flex-grow: 2;margin-left:50px",4,"ngIf"],[2,"height","150px","background-repeat","no-repeat","background-size","cover","background-image","url(https://static.wixstatic.com/media/ab9b64_00f7966462c7429fa01299f6839a18a2~mv2.png/v1/fill/w_972,h_200,fp_0.50_0.50,q_85,enc_auto/ab9b64_00f7966462c7429fa01299f6839a18a2~mv2.png)"],[2,"color","white","font-size","64px","text-align","center","font-family","helvetica-w01-bold, helvetica"],[2,"text-align","center","color","white","font-size","24px"],[1,"link",3,"click"],[1,"seperator"],[1,"name"],[2,"max-width","1200px","flex-grow","2","margin-left","50px"],[2,"color","var(--color-primary)","font-weight","700","font-size","24px","text-align","center","margin-top","50px","margin-bottom","50px"],[2,"display","flex","flex-wrap","wrap"],["class","product-type",4,"ngFor","ngForOf"],[1,"product-type"],[1,"product-type-img",3,"ngStyle"],[1,"product-type-content"],[3,"innerHTML"],[3,"click"],["class","product-catg",4,"ngFor","ngForOf"],[1,"product-catg"],[1,"product-catg-img",3,"ngStyle"],[1,"product-catg-content"],[3,"innerHTML",4,"ngIf"],["style","display:flex","class","product-summary-row",4,"ngFor","ngForOf"],[1,"product-summary-row",2,"display","flex"],[1,"product-image-cell"],[1,"product-summary-img",3,"ngStyle"],[2,"flex-grow","1","padding","20px","height","240px"],[1,"product-link",3,"click"],[1,"product-amount"],[2,"font-weight","700"],[2,"display","flex","margin-bottom","5px"],[2,"flex-grow","1"],[1,"input-group",2,"width","160px"],[1,"input-group-text",3,"click"],[1,"fa","fa-plus"],["type","number",1,"form-control",2,"width","50px","text-align","right",3,"ngModel","ngModelChange"],[1,"fa","fa-minus"],[1,"btn","btn-success",2,"margin-left","10px",3,"click"],[1,"fa","fas","fa-cart-shopping",2,"margin-left","5px"],[1,"action",3,"click"],[1,"fa","fas","fa-pencil"],[2,"display","flex"],[1,"product-detail",2,"display","flex"],[2,"width","350px","display","flex","margin-bottom","5px"],["style","width:300px",3,"src",4,"ngIf"],["style","max-width: 100%; max-height: 100%",3,"src",4,"ngIf"],[1,"product-detail",2,"flex-grow","1"],["class","table",4,"ngIf"],[1,"total-section"],["target","_blank",1,"action",3,"href"],[2,"width","300px",3,"src"],[2,"max-width","100%","max-height","100%",3,"src"],[1,"table"],[4,"ngFor","ngForOf"],[2,"text-align","right"],[2,"text-align","center"],["style","font-weight: bold;",4,"ngIf"],[2,"font-weight","bold"],[2,"text-align","right","font-weight","bold"],[1,"cart-section"],["class","cart-item",4,"ngFor","ngForOf"],[1,"btn","btn-success",3,"click"],[1,"cart-item"],[1,"btn","btn-danger",2,"text-align","right",3,"click"],[1,"fa","far","fa-trash-can"]],template:function(e,n){1&e&&(w(0,voe,5,2,"div",0),u(1,"div",1),w(2,yoe,5,0,"span",2),w(3,boe,5,1,"span",2),w(4,Coe,5,1,"span",2),w(5,woe,3,0,"span",2),w(6,Doe,3,0,"span",2),w(7,Moe,3,1,"span",2),w(8,xoe,2,1,"span",3),w(9,koe,2,1,"span",3),c(),u(10,"div",4),w(11,qoe,5,4,"div",5),w(12,Zoe,12,4,"div",2),c()),2&e&&(p("ngIf",n.info),h(2),p("ngIf",n.categoryType),h(1),p("ngIf",n.categoryType&&n.category),h(1),p("ngIf",n.category&&n.product),h(1),p("ngIf",!n.categoryType&&n.products),h(1),p("ngIf",!n.categoryType&&!n.products),h(1),p("ngIf",n.categoryType&&!n.category),h(1),p("ngIf",n.category&&!n.product),h(1),p("ngIf",n.product),h(2),p("ngIf",!n.busy),h(1),p("ngIf",n.cart))},dependencies:[Bn,Rs,vn,pn,jt,ct,As,qu,h_,gf],styles:["p[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;text-align:center}h3[_ngcontent-%COMP%]{color:var(--color-primary);font-size:2rem;margin-left:30px}.product-type[_ngcontent-%COMP%]{justify-content:space-between;margin:0 50px 50px 0;border-radius:32px;width:300px;background-image:linear-gradient(#FCF5EA,#E9F1FA)}.product-catg[_ngcontent-%COMP%]{justify-content:space-between;margin:0 50px 50px 0;border-radius:10px;width:300px;background-color:#efefef;position:relative}.product-type-img[_ngcontent-%COMP%], .product-catg-img[_ngcontent-%COMP%]{margin:20px;width:260px;height:260px;border-radius:32px;overflow:hidden;background-size:cover}.product-type-content[_ngcontent-%COMP%], .product-catg-content[_ngcontent-%COMP%]{padding:20px}.product-catg[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .product-type[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;width:100%;color:var(--color-primary)}.product-type[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{border-bottom:3px solid var(--color-primary);font-family:Roboto,sans-serif;height:100px}.product-catg[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;margin-bottom:100px}.product-catg-content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{border-top:3px solid var(--color-primary);position:absolute;bottom:10px;padding-top:20px}.product-catg-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--color-primary);color:#fff;padding:10px 20px;border:none;border-radius:5px;cursor:pointer;width:260px}.product-type-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--color-primary);color:#fff;padding:10px 20px;border:none;border-radius:5px;cursor:pointer;margin-top:10px;width:100%;font-weight:600;font-size:1.5rem}.product-summary[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:var(--color-primary)}.product-summary[_ngcontent-%COMP%]{width:1024px;height:180px;border:3px solid var(--color-primary);border-radius:12px;display:flex;background-color:#efefef;margin-bottom:20px;position:relative}.product-summary-img[_ngcontent-%COMP%]{height:255px;width:255px;background-size:cover;background-position-x:center;background-position-y:center;overflow:hidden}.product-summary-content[_ngcontent-%COMP%]{width:520px;height:165px;overflow:hidden;margin-left:20px;margin-right:20px;flex-grow:1}.product-summary-row[_ngcontent-%COMP%]{justify-content:space-between;margin-bottom:10px;border-bottom:1px solid #efefef;border-top:1px solid #efefef}.product-summary[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--color-primary);color:#fff;padding:10px 20px;border:none;border-radius:5px;cursor:pointer;width:140px;font-size:1.2rem}.product-summary-btn-div[_ngcontent-%COMP%]{position:absolute;bottom:10px}.product-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:left;margin-left:20px}.product-image-cell[_ngcontent-%COMP%]{background-color:#efefef;width:255px;height:255px}.product-link[_ngcontent-%COMP%]{cursor:pointer;margin-bottom:-3px}.product-link[_ngcontent-%COMP%]:hover{color:var(--color-accent)}.product-amount[_ngcontent-%COMP%]{margin-bottom:10px}.cart-section[_ngcontent-%COMP%]{width:300px;height:auto;padding:10px;margin-top:10px;margin-right:10px;border:1px solid #efefef;-webkit-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19);-webkit-box-shadow-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19)}.total-section[_ngcontent-%COMP%]{width:400px;height:auto;padding:10px;margin-top:10px;margin-right:10px;border:1px solid #efefef;-webkit-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19);-webkit-box-shadow-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19)}.breadcrumb[_ngcontent-%COMP%]{font-weight:500;font-family:Roboto,sans-serif;padding:10px;background-color:#e0e0e0;border-bottom:1px solid #d0d0d0}.breadcrumb[_ngcontent-%COMP%] .seperator[_ngcontent-%COMP%]{color:var(--color-primary)}.breadcrumb[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{color:var(--color-primary);margin-left:5px}.breadcrumb[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]:hover{color:var(--color-primary-125);cursor:pointer;text-decoration:underline}.breadcrumb[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{color:#000;margin-left:5px}"]})}function Qoe(i,t){if(1&i&&(u(0,"h4"),m(1),c()),2&i){const e=g();h(1),Re(e.subHeader)}}function Xoe(i,t){1&i&&(H(0,"pre",8),Qt(1,"preformattedHtml")),2&i&&p("innerHtml",Xt(1,1,g().helpContent),Un)}function Joe(i,t){if(1&i&&(u(0,"span"),m(1),c()),2&i){const e=g();h(1),Re(e.helpContent)}}class p_{activeModal;modalHeader;helpContent="";subHeader="";isHtml=!1;constructor(t){this.activeModal=t}ngOnInit(){}closeModal(){this.helpContent=null,this.subHeader=null,this.activeModal.close()}static \u0275fac=function(e){return new(e||p_)(U(dr))};static \u0275cmp=Be({type:p_,selectors:[["app-help-viewer-component"]],decls:13,vars:4,consts:[[1,"modal-header"],["aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body",2,"overflow","hidden"],[4,"ngIf"],["style","padding-top: 1em;",3,"innerHtml",4,"ngIf"],[1,"modal-footer"],[1,"btn","btn-md","btn-primary",3,"click"],[2,"padding-top","1em",3,"innerHtml"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"span"),m(2),c(),u(3,"button",1),N("click",function(){return n.closeModal()}),u(4,"span",2),m(5,"\xd7"),c()()(),u(6,"div",3),w(7,Qoe,2,1,"h4",4),w(8,Xoe,2,3,"pre",5),w(9,Joe,2,1,"span",4),c(),u(10,"div",6)(11,"button",7),N("click",function(){return n.closeModal()}),m(12,"Ok"),c()()),2&e&&(h(2),Re(n.modalHeader),h(5),p("ngIf",n.subHeader),h(1),p("ngIf",n.isHtml),h(1),p("ngIf",!n.isHtml))},dependencies:[ct,kd]})}class f_{nuviotClient;paramsSubscription;queryParamsSubscription;topLevelSurveyResponseId;response;survey;currentQuestionIndex=0;currentQuestion;currentQuestionSet;currentAnswers;surveyAnswers;currentAnswersForResponse;childSurveys;fromService;fromServiceKey;hasNextQuestion=!1;hasPreviousQuestion=!1;isSavingAnswer=!1;isLoadingQuestion=!1;isLoadingSurvey=!1;isCreatingChildSurvey=!1;isDeletingChildSurvey=!1;isTopLevel=!1;responseName;constructor(t){this.nuviotClient=t}reset(){this.topLevelSurveyResponseId=null,this.response=null,this.survey=null,this.currentQuestionIndex=0,this.currentQuestion=null,this.currentQuestionSet=null,this.currentAnswers=[],this.surveyAnswers=[],this.currentAnswersForResponse=[],this.childSurveys=[],this.fromService=null,this.fromServiceKey=null,this.hasNextQuestion=!1,this.hasPreviousQuestion=!1,this.isSavingAnswer=!1,this.isLoadingQuestion=!1,this.isLoadingSurvey=!1,this.isCreatingChildSurvey=!1,this.isDeletingChildSurvey=!1,this.isTopLevel=!1,this.responseName=null}static \u0275fac=function(e){return new(e||f_)(Ee(An))};static \u0275prov=$e({token:f_,factory:f_.\u0275fac,providedIn:"root"})}class Ku{constructor(){}caption;ngOnInit(){}static \u0275fac=function(e){return new(e||Ku)};static \u0275cmp=Be({type:Ku,selectors:[["app-loading-spinner"]],inputs:{caption:"caption"},decls:5,vars:1,consts:[[2,"font-size","larger","width","100%","margin-top","100px","height","100%","min-height","400px","padding","2em","text-align","center","vertical-align","middle"],[1,"fa-duotone","fa-loader","fa-spin-pulse","fa-2xl"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"p"),H(2,"i",1),c(),u(3,"p"),m(4),c()()),2&e&&(h(4),Re(n.caption))}})}function eae(i,t){1&i&&H(0,"i",12)}function tae(i,t){1&i&&H(0,"i",13)}function nae(i,t){1&i&&H(0,"i",12)}function iae(i,t){1&i&&H(0,"i",13)}function rae(i,t){1&i&&H(0,"i",12)}function oae(i,t){1&i&&H(0,"i",13)}const Sr=function(i){return{"active-answer":i}};function aae(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).dontKnowTapped())}),w(1,rae,1,0,"i",7),w(2,oae,1,0,"i",8),u(3,"label",9),m(4,"Don't Know"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("dontknow"))),h(1),p("ngIf",e.isAnswerSelected("dontknow")),h(1),p("ngIf",!e.isAnswerSelected("dontknow"))}}function sae(i,t){1&i&&H(0,"i",12)}function lae(i,t){1&i&&H(0,"i",13)}function cae(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).notApplicableTapped())}),w(1,sae,1,0,"i",7),w(2,lae,1,0,"i",8),u(3,"label",9),m(4,"Not Applicable"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("notapplicable"))),h(1),p("ngIf",e.isAnswerSelected("notapplicable")),h(1),p("ngIf",!e.isAnswerSelected("notapplicable"))}}function dae(i,t){if(1&i){const e=pe();yo(0),u(1,"div",6),N("click",function(){return R(e),L(g(3).toggleAnswer("yes","Yes"))}),w(2,eae,1,0,"i",7),w(3,tae,1,0,"i",8),u(4,"label",9),m(5,"Yes"),c()(),u(6,"div",6),N("click",function(){return R(e),L(g(3).toggleAnswer("no","No"))}),w(7,nae,1,0,"i",7),w(8,iae,1,0,"i",8),u(9,"label",9),m(10,"No"),c()(),w(11,aae,5,5,"div",10),w(12,cae,5,5,"div",11),bo()}if(2&i){const e=g(3);h(2),p("ngIf",e.isAnswerSelected("yes")),h(1),p("ngIf",!e.isAnswerSelected("yes")),h(4),p("ngIf",e.isAnswerSelected("no")),h(1),p("ngIf",!e.isAnswerSelected("no")),h(3),p("ngIf",e.currentQuestion.addDontKnowOption),h(1),p("ngIf",e.currentQuestion.addNotApplicableOption)}}function uae(i,t){1&i&&H(0,"i",12)}function hae(i,t){1&i&&H(0,"i",13)}function pae(i,t){1&i&&H(0,"i",12)}function fae(i,t){1&i&&H(0,"i",13)}function gae(i,t){1&i&&H(0,"i",12)}function mae(i,t){1&i&&H(0,"i",13)}function _ae(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).dontKnowTapped())}),w(1,gae,1,0,"i",7),w(2,mae,1,0,"i",8),u(3,"label",9),m(4,"Don't Know"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("dontknow"))),h(1),p("ngIf",e.isAnswerSelected("dontknow")),h(1),p("ngIf",!e.isAnswerSelected("dontknow"))}}function vae(i,t){1&i&&H(0,"i",12)}function yae(i,t){1&i&&H(0,"i",13)}function bae(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).notApplicableTapped())}),w(1,vae,1,0,"i",7),w(2,yae,1,0,"i",8),u(3,"label",9),m(4,"Not Applicable"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("notapplicable"))),h(1),p("ngIf",e.isAnswerSelected("notapplicable")),h(1),p("ngIf",!e.isAnswerSelected("notapplicable"))}}function Cae(i,t){if(1&i){const e=pe();yo(0),u(1,"div",6),N("click",function(){return R(e),L(g(3).toggleAnswer("true","True"))}),w(2,uae,1,0,"i",7),w(3,hae,1,0,"i",8),u(4,"label",9),m(5,"True"),c()(),u(6,"div",6),N("click",function(){return R(e),L(g(3).toggleAnswer("false","False"))}),w(7,pae,1,0,"i",7),w(8,fae,1,0,"i",8),u(9,"label",9),m(10,"False"),c()(),w(11,_ae,5,5,"div",10),w(12,bae,5,5,"div",11),bo()}if(2&i){const e=g(3);h(2),p("ngIf",e.isAnswerSelected("true")),h(1),p("ngIf",!e.isAnswerSelected("true")),h(4),p("ngIf",e.isAnswerSelected("false")),h(1),p("ngIf",!e.isAnswerSelected("false")),h(3),p("ngIf",e.currentQuestion.addDontKnowOption),h(1),p("ngIf",e.currentQuestion.addNotApplicableOption)}}function wae(i,t){1&i&&H(0,"i",12)}function Dae(i,t){1&i&&H(0,"i",13)}function Mae(i,t){if(1&i){const e=pe();u(0,"i",19),N("click",function(){R(e);const r=g().$implicit;return L(g(4).showAnswerHelp(r))}),c()}}function xae(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){const o=R(e).$implicit;return L(g(4).toggleAnswer(o.id,o.answerText))}),w(1,wae,1,0,"i",7),w(2,Dae,1,0,"i",8),u(3,"label",9),m(4),c(),w(5,Mae,1,0,"i",18),c()}if(2&i){const e=t.$implicit,n=g(4);p("ngClass",Ct(5,Sr,n.isAnswerSelected(e.id))),h(1),p("ngIf",n.isAnswerSelected(e.id)),h(1),p("ngIf",!n.isAnswerSelected(e.id)),h(2),Re(e.answerText),h(1),p("ngIf",e.helpText)}}function kae(i,t){1&i&&H(0,"i",12)}function Tae(i,t){1&i&&H(0,"i",13)}function Sae(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).dontKnowTapped())}),w(1,kae,1,0,"i",7),w(2,Tae,1,0,"i",8),u(3,"label",9),m(4,"Don't Know"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("dontknow"))),h(1),p("ngIf",e.isAnswerSelected("dontknow")),h(1),p("ngIf",!e.isAnswerSelected("dontknow"))}}function Eae(i,t){1&i&&H(0,"i",12)}function Aae(i,t){1&i&&H(0,"i",13)}function Iae(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).notApplicableTapped())}),w(1,Eae,1,0,"i",7),w(2,Aae,1,0,"i",8),u(3,"label",9),m(4,"Not Applicable"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("notapplicable"))),h(1),p("ngIf",e.isAnswerSelected("notapplicable")),h(1),p("ngIf",!e.isAnswerSelected("notapplicable"))}}function Fae(i,t){if(1&i){const e=pe();yo(0),w(1,xae,6,7,"div",15),u(2,"div",16)(3,"i",17),N("click",function(){return R(e),L(g(3).setNotListed())}),c(),u(4,"label",9),m(5,"My Answer Isn't Listed"),c()(),w(6,Sae,5,5,"div",10),w(7,Iae,5,5,"div",10),bo()}if(2&i){const e=g(3);h(1),p("ngForOf",e.currentQuestion.answers),h(5),p("ngIf",e.currentQuestion.addDontKnowOption),h(1),p("ngIf",e.currentQuestion.addNotApplicableOption)}}function Pae(i,t){1&i&&H(0,"i",12)}function Rae(i,t){1&i&&H(0,"i",13)}function Lae(i,t){if(1&i){const e=pe();u(0,"i",19),N("click",function(){R(e);const r=g().$implicit;return L(g(4).showAnswerHelp(r))}),c()}}function Oae(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){const o=R(e).$implicit;return L(g(4).toggleAnswer(o.id,o.answerText))}),w(1,Pae,1,0,"i",7),w(2,Rae,1,0,"i",8),u(3,"label",9),m(4),c(),w(5,Lae,1,0,"i",18),c()}if(2&i){const e=t.$implicit,n=g(4);p("ngClass",Ct(5,Sr,n.isAnswerSelected(e.id))),h(1),p("ngIf",n.isAnswerSelected(e.id)),h(1),p("ngIf",!n.isAnswerSelected(e.id)),h(2),Re(e.answerText),h(1),p("ngIf",e.helpText)}}function Nae(i,t){1&i&&H(0,"i",12)}function Bae(i,t){1&i&&H(0,"i",13)}function Vae(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).dontKnowTapped())}),w(1,Nae,1,0,"i",7),w(2,Bae,1,0,"i",8),u(3,"label",9),m(4,"Don't Know"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("dontknow"))),h(1),p("ngIf",e.isAnswerSelected("dontknow")),h(1),p("ngIf",!e.isAnswerSelected("dontknow"))}}function Hae(i,t){1&i&&H(0,"i",12)}function Yae(i,t){1&i&&H(0,"i",13)}function Uae(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).notApplicableTapped())}),w(1,Hae,1,0,"i",7),w(2,Yae,1,0,"i",8),u(3,"label",9),m(4,"Not Applicable"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("notapplicable"))),h(1),p("ngIf",e.isAnswerSelected("notapplicable")),h(1),p("ngIf",!e.isAnswerSelected("notapplicable"))}}function jae(i,t){if(1&i){const e=pe();yo(0),w(1,Oae,6,7,"div",15),u(2,"div",16)(3,"i",17),N("click",function(){return R(e),L(g(3).setNotListed())}),c(),u(4,"label",9),m(5,"My Answer Isn't Listed"),c()(),w(6,Vae,5,5,"div",10),w(7,Uae,5,5,"div",10),bo()}if(2&i){const e=g(3);h(1),p("ngForOf",e.currentQuestion.answers),h(5),p("ngIf",e.currentQuestion.addDontKnowOption),h(1),p("ngIf",e.currentQuestion.addNotApplicableOption)}}function $ae(i,t){1&i&&H(0,"i",12)}function zae(i,t){1&i&&H(0,"i",13)}function Wae(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).dontKnowTapped())}),w(1,$ae,1,0,"i",7),w(2,zae,1,0,"i",8),u(3,"label",9),m(4,"Don't Know"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("dontknow"))),h(1),p("ngIf",e.isAnswerSelected("dontknow")),h(1),p("ngIf",!e.isAnswerSelected("dontknow"))}}function Gae(i,t){1&i&&H(0,"i",12)}function qae(i,t){1&i&&H(0,"i",13)}function Kae(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).notApplicableTapped())}),w(1,Gae,1,0,"i",7),w(2,qae,1,0,"i",8),u(3,"label",9),m(4,"Not Applicable"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("notapplicable"))),h(1),p("ngIf",e.isAnswerSelected("notapplicable")),h(1),p("ngIf",!e.isAnswerSelected("notapplicable"))}}function Zae(i,t){if(1&i){const e=pe();yo(0),u(1,"div")(2,"textarea",20),N("ngModelChange",function(r){return R(e),L(g(3).answerTextChanged(r))})("ngModelChange",function(r){return R(e),L(g(3).answerText=r)}),c(),H(3,"br"),c(),w(4,Wae,5,5,"div",10),w(5,Kae,5,5,"div",11),bo()}if(2&i){const e=g(3);h(2),p("ngModel",e.answerText),h(2),p("ngIf",e.currentQuestion.addDontKnowOption),h(1),p("ngIf",e.currentQuestion.addNotApplicableOption)}}function Qae(i,t){1&i&&H(0,"i",12)}function Xae(i,t){1&i&&H(0,"i",13)}function Jae(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).dontKnowTapped())}),w(1,Qae,1,0,"i",7),w(2,Xae,1,0,"i",8),u(3,"label",9),m(4,"Don't Know"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("dontknow"))),h(1),p("ngIf",e.isAnswerSelected("dontknow")),h(1),p("ngIf",!e.isAnswerSelected("dontknow"))}}function ese(i,t){1&i&&H(0,"i",12)}function tse(i,t){1&i&&H(0,"i",13)}function nse(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).notApplicableTapped())}),w(1,ese,1,0,"i",7),w(2,tse,1,0,"i",8),u(3,"label",9),m(4,"Not Applicable"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("notapplicable"))),h(1),p("ngIf",e.isAnswerSelected("notapplicable")),h(1),p("ngIf",!e.isAnswerSelected("notapplicable"))}}function ise(i,t){if(1&i){const e=pe();yo(0),u(1,"div",21)(2,"input",22),N("ngModelChange",function(r){return R(e),L(g(3).answerTextChanged(r))})("ngModelChange",function(r){return R(e),L(g(3).answerText=r)}),c(),H(3,"br"),c(),w(4,Jae,5,5,"div",10),w(5,nse,5,5,"div",11),bo()}if(2&i){const e=g(3);h(2),p("ngModel",e.answerText),h(2),p("ngIf",e.currentQuestion.addDontKnowOption),h(1),p("ngIf",e.currentQuestion.addNotApplicableOption)}}function rse(i,t){1&i&&H(0,"i",12)}function ose(i,t){1&i&&H(0,"i",13)}function ase(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).dontKnowTapped())}),w(1,rse,1,0,"i",7),w(2,ose,1,0,"i",8),u(3,"label",9),m(4,"Don't Know"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("dontknow"))),h(1),p("ngIf",e.isAnswerSelected("dontknow")),h(1),p("ngIf",!e.isAnswerSelected("dontknow"))}}function sse(i,t){1&i&&H(0,"i",12)}function lse(i,t){1&i&&H(0,"i",13)}function cse(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).notApplicableTapped())}),w(1,sse,1,0,"i",7),w(2,lse,1,0,"i",8),u(3,"label",9),m(4,"Not Applicable"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("notapplicable"))),h(1),p("ngIf",e.isAnswerSelected("notapplicable")),h(1),p("ngIf",!e.isAnswerSelected("notapplicable"))}}function dse(i,t){if(1&i){const e=pe();yo(0),u(1,"div",21)(2,"input",22),N("ngModelChange",function(r){return R(e),L(g(3).answerTextChanged(r))})("ngModelChange",function(r){return R(e),L(g(3).answerText=r)}),c(),H(3,"br"),c(),w(4,ase,5,5,"div",10),w(5,cse,5,5,"div",11),bo()}if(2&i){const e=g(3);h(2),p("ngModel",e.answerText),h(2),p("ngIf",e.currentQuestion.addDontKnowOption),h(1),p("ngIf",e.currentQuestion.addNotApplicableOption)}}function use(i,t){1&i&&H(0,"i",12)}function hse(i,t){1&i&&H(0,"i",13)}function pse(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).dontKnowTapped())}),w(1,use,1,0,"i",7),w(2,hse,1,0,"i",8),u(3,"label",9),m(4,"Don't Know"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("dontknow"))),h(1),p("ngIf",e.isAnswerSelected("dontknow")),h(1),p("ngIf",!e.isAnswerSelected("dontknow"))}}function fse(i,t){1&i&&H(0,"i",12)}function gse(i,t){1&i&&H(0,"i",13)}function mse(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).notApplicableTapped())}),w(1,fse,1,0,"i",7),w(2,gse,1,0,"i",8),u(3,"label",9),m(4,"Not Applicable"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("notapplicable"))),h(1),p("ngIf",e.isAnswerSelected("notapplicable")),h(1),p("ngIf",!e.isAnswerSelected("notapplicable"))}}function _se(i,t){if(1&i){const e=pe();yo(0),u(1,"div",21)(2,"input",23),N("ngModelChange",function(r){return R(e),L(g(3).answerTextChanged(r))})("ngModelChange",function(r){return R(e),L(g(3).answerText=r)}),c(),H(3,"br"),c(),w(4,pse,5,5,"div",10),w(5,mse,5,5,"div",11),bo()}if(2&i){const e=g(3);h(2),p("ngModel",e.answerText),h(2),p("ngIf",e.currentQuestion.addDontKnowOption),h(1),p("ngIf",e.currentQuestion.addNotApplicableOption)}}function vse(i,t){1&i&&H(0,"i",12)}function yse(i,t){1&i&&H(0,"i",13)}function bse(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).dontKnowTapped())}),w(1,vse,1,0,"i",7),w(2,yse,1,0,"i",8),u(3,"label",9),m(4,"Don't Know"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("dontknow"))),h(1),p("ngIf",e.isAnswerSelected("dontknow")),h(1),p("ngIf",!e.isAnswerSelected("dontknow"))}}function Cse(i,t){1&i&&H(0,"i",12)}function wse(i,t){1&i&&H(0,"i",13)}function Dse(i,t){if(1&i){const e=pe();u(0,"div",14),N("click",function(){return R(e),L(g(4).notApplicableTapped())}),w(1,Cse,1,0,"i",7),w(2,wse,1,0,"i",8),u(3,"label",9),m(4,"Not Applicable"),c()()}if(2&i){const e=g(4);p("ngClass",Ct(3,Sr,e.isAnswerSelected("notapplicable"))),h(1),p("ngIf",e.isAnswerSelected("notapplicable")),h(1),p("ngIf",!e.isAnswerSelected("notapplicable"))}}function Mse(i,t){if(1&i){const e=pe();yo(0),u(1,"div",21)(2,"input",23),N("ngModelChange",function(r){return R(e),L(g(3).answerTextChanged(r))})("ngModelChange",function(r){return R(e),L(g(3).answerText=r)}),c(),H(3,"br"),c(),w(4,bse,5,5,"div",10),w(5,Dse,5,5,"div",11),bo()}if(2&i){const e=g(3);h(2),p("ngModel",e.answerText),h(2),p("ngIf",e.currentQuestion.addDontKnowOption),h(1),p("ngIf",e.currentQuestion.addNotApplicableOption)}}function xse(i,t){if(1&i&&(yo(0),m(1),bo()),2&i){const e=g(3);h(1),Ke(" Question type not not supported: ",e.currentQuestion.questionType.id," ")}}function kse(i,t){if(1&i&&(u(0,"div"),yo(1,3),w(2,dae,13,6,"ng-container",4),w(3,Cae,13,6,"ng-container",4),w(4,Fae,8,3,"ng-container",4),w(5,jae,8,3,"ng-container",4),w(6,Zae,6,3,"ng-container",4),w(7,ise,6,3,"ng-container",4),w(8,dse,6,3,"ng-container",4),w(9,_se,6,3,"ng-container",4),w(10,Mse,6,3,"ng-container",4),w(11,xse,2,1,"ng-container",5),bo(),c()),2&i){const e=g(2);h(1),p("ngSwitch",!0),h(1),p("ngSwitchCase","yesno"==e.currentQuestion.questionType.id),h(1),p("ngSwitchCase","truefalse"==e.currentQuestion.questionType.id),h(1),p("ngSwitchCase","selectmany"==e.currentQuestion.questionType.id),h(1),p("ngSwitchCase","multiplechoice"==e.currentQuestion.questionType.id),h(1),p("ngSwitchCase","freeformtext"==e.currentQuestion.questionType.id),h(1),p("ngSwitchCase","singlelinetext"==e.currentQuestion.questionType.id),h(1),p("ngSwitchCase","string"==e.currentQuestion.questionType.id),h(1),p("ngSwitchCase","integer"==e.currentQuestion.questionType.id),h(1),p("ngSwitchCase","decimal"==e.currentQuestion.questionType.id)}}function Tse(i,t){if(1&i){const e=pe();u(0,"div")(1,"div")(2,"h5"),m(3,"Other Answer"),c(),u(4,"textarea",20),N("ngModelChange",function(r){return R(e),L(g(2).otherAnswerText=r)}),c(),H(5,"br"),u(6,"div",24)(7,"button",25),N("click",function(){return R(e),L(g(2).saveOtherOption())}),m(8,"Save"),c(),u(9,"button",26),N("click",function(){return R(e),L(g(2).cancelOtherOption())}),m(10,"Select Answer"),c()()()()}if(2&i){const e=g(2);h(4),p("ngModel",e.otherAnswerText),h(3),p("disabled",""===e.otherAnswerText)}}function Sse(i,t){if(1&i&&(u(0,"div"),w(1,kse,12,10,"div",2),w(2,Tse,11,2,"div",2),c()),2&i){const e=g();h(1),p("ngIf",!e.otherAnswer),h(1),p("ngIf",e.otherAnswer)}}class rb{modalsService;constructor(t){this.modalsService=t}currentSurveyResult;currentQuestionSet;currentQuestion;_answers=[];get answers(){return this._answers}set answers(t){this._answers=t,this._answers.length>0&&(this.answers[0].isOther?(this.otherAnswerText=this._answers[0].answer,this.otherAnswer=!0):(this.answerText=this._answers[0].answer,this.otherAnswer=!1))}saveAnswer=new Ae;otherAnswer=!1;otherAnswerText;answerText;ngOnInit(){}isAnswerSelected(t){for(const e of this.answers)if(t===e.answerId||"dontknow"===t&&e.isDontKnow||"notapplicable"===t&&e.isNotApplicable)return!0;return!1}toggleAnswer(t,e){if("selectmany"===this.currentQuestion.questionType.id){this.answers.length>0&&(this.answers[0].isDontKnow||this.answers[0].isOther)&&this.answers.splice(0,1);for(let r=0;r0)}}function zse(i,t){if(1&i){const e=pe();u(0,"app-survey-question",55),N("saveAnswer",function(){return R(e),L(g(3).nextQuestion())}),c()}if(2&i){const e=g(3);p("currentSurveyResult",e.backingStore.response)("currentQuestionSet",e.backingStore.currentQuestionSet)("currentQuestion",e.backingStore.currentQuestion)("answers",e.backingStore.currentAnswers)}}function Wse(i,t){if(1&i){const e=pe();u(0,"button",56),N("click",function(){return R(e),L(g(3).previousQuestion())}),H(1,"i",57),c()}}function Gse(i,t){if(1&i){const e=pe();u(0,"button",58),N("click",function(){return R(e),L(g(3).nextQuestion())}),m(1,"Next Question "),H(2,"i",59),c()}}function qse(i,t){1&i&&H(0,"app-loading-spinner",60),2&i&&p("caption","saving...")}function Kse(i,t){1&i&&H(0,"app-loading-spinner",60),2&i&&p("caption","creating...")}function Zse(i,t){1&i&&H(0,"app-loading-spinner",60),2&i&&p("caption","deleting...")}function Qse(i,t){1&i&&H(0,"app-loading-spinner",60),2&i&&p("caption","loading...")}function Xse(i,t){1&i&&H(0,"app-loading-spinner",60),2&i&&p("caption","loading survey...")}function Jse(i,t){if(1&i&&(u(0,"div",23),w(1,Bse,4,0,"div",24),u(2,"div",1)(3,"div",25)(4,"div",26)(5,"div",27)(6,"div",28)(7,"div",29)(8,"button",30),m(9),c(),u(10,"div",31),w(11,Vse,2,1,"a",32),c()()(),u(12,"div",1)(13,"div",33),w(14,Yse,2,5,"button",34),c()(),u(15,"div",1)(16,"div",25)(17,"h4",35),m(18),c(),u(19,"p"),m(20),c()()(),w(21,$se,6,2,"div",36),w(22,zse,1,4,"app-survey-question",37),u(23,"div",38)(24,"div",39),w(25,Wse,2,0,"button",40),c(),u(26,"div",41),w(27,Gse,3,0,"button",42),c()()()()(),w(28,qse,1,1,"app-loading-spinner",43),w(29,Kse,1,1,"app-loading-spinner",43),w(30,Zse,1,1,"app-loading-spinner",43),w(31,Qse,1,1,"app-loading-spinner",43),w(32,Xse,1,1,"app-loading-spinner",43),c()()),2&i){const e=g(2);h(1),p("ngIf",!1),h(8),Ke(" ",e.backingStore.currentQuestionSet.name," "),h(2),p("ngForOf",e.backingStore.survey.questionSets),h(3),p("ngForOf",e.backingStore.currentQuestionSet.questions),h(4),Re(e.backingStore.currentQuestion.questionText),h(2),Re(e.backingStore.currentQuestion.description),h(1),p("ngIf","childsurveys"==e.backingStore.currentQuestion.questionType.id),h(1),p("ngIf","childsurveys"!=e.backingStore.currentQuestion.questionType.id),h(3),p("ngIf",e.backingStore.hasPreviousQuestion),h(2),p("ngIf",e.backingStore.hasNextQuestion||!e.backingStore.isTopLevel),h(1),p("ngIf",e.backingStore.isSavingAnswer),h(1),p("ngIf",e.backingStore.isCreatingChildSurvey),h(1),p("ngIf",e.backingStore.isDeletingChildSurvey),h(1),p("ngIf",e.backingStore.isLoadingQuestion),h(1),p("ngIf",e.backingStore.isLoadingSurvey)}}function ele(i,t){if(1&i&&(u(0,"div")(1,"div",3),w(2,Ese,1,0,"i",4),w(3,Ase,1,0,"i",4),w(4,Ise,3,1,"span",2),w(5,Fse,3,1,"span",5),w(6,Pse,2,1,"span",2),c(),u(7,"p"),m(8),c(),u(9,"div",6)(10,"div",7),w(11,Ose,6,2,"div",8),w(12,Nse,3,0,"div",9),c(),w(13,Jse,33,15,"div",10),c()()),2&i){const e=g();h(2),p("ngIf",e.backingStore.isTopLevel&&e.backingStore.fromService),h(1),p("ngIf",!e.backingStore.isTopLevel),h(1),p("ngIf",e.isEditingResponseName),h(1),p("ngIf",!e.isEditingResponseName),h(1),p("ngIf",e.backingStore.survey.name!=e.backingStore.responseName),h(2),Re(e.backingStore.survey.description),h(3),p("ngForOf",e.backingStore.survey.questionSets),h(1),p("ngIf",e.backingStore.survey.isForWizard&&!1),h(1),p("ngIf",e.backingStore.currentQuestion&&!e.backingStore.isLoadingQuestion&&!e.backingStore.isSavingAnswer&&!e.backingStore.isDeletingChildSurvey&&!e.backingStore.isCreatingChildSurvey)}}class mf{surveysService;modalsService;navService;backingStore;activeRoute;isEditingResponseName=!1;orgNs;constructor(t,e,n,r,o){var a=this;this.surveysService=t,this.modalsService=e,this.navService=n,this.backingStore=r,this.activeRoute=o,this.backingStore.paramsSubscription=this.activeRoute.params.subscribe(function(){var s=z(function*(l){a.orgNs=l.orgns;const d=l.toplevelsurveyid,f=l.childresponseid,y=l.questionid;a.backingStore.fromService=l.fromservice?l.fromservice:"survey",l.fromservicekey&&(a.backingStore.fromServiceKey=l.fromservicekey),console.log(`Top Level Survey Response Id ${d} bstlid: ${a.backingStore.topLevelSurveyResponseId}`),console.log(`Current Child Response Id ${f}`),console.log(`Active Question Id ${y}`),d!==a.backingStore.topLevelSurveyResponseId||f&&a.backingStore.response.rowKey!==f||!f&&a.backingStore.response.rowKey!==d?(a.backingStore.topLevelSurveyResponseId=d,f?yield a.loadChildSurvey(f,y):yield a.loadTopLevelSurvey(y)):yield a.showQuestion(y)});return function(l){return s.apply(this,arguments)}}())}ngOnInit(){}loadTopLevelSurvey(t){var e=this;return z(function*(){e.backingStore.isLoadingSurvey=!0;let n=yield e.surveysService.getSurveyResponse(e.backingStore.topLevelSurveyResponseId,e.backingStore.topLevelSurveyResponseId);console.log(n.response),console.log(n.response.currentQuestionId),e.backingStore.isLoadingSurvey=!1,e.backingStore.response=n.response,e.backingStore.survey=n.survey,e.backingStore.isTopLevel=!0,e.backingStore.responseName=n.response.surveyResponseName,e.backingStore.surveyAnswers=n.answers,e.refreshAnswerStatus(),console.log("Question: ",t,"Current Question Id: ",e.backingStore.response.currentQuestionId),e.showQuestion(void 0!==t?t:e.backingStore.response.currentQuestionId),window.document.title="NuvIoT Survey - "+n.survey.name})()}loadChildSurvey(t,e){var n=this;return z(function*(){n.backingStore.isLoadingSurvey=!0;let r=yield n.surveysService.getSurveyResponse(n.backingStore.topLevelSurveyResponseId,t);n.backingStore.isLoadingSurvey=!1,n.backingStore.response=r.response,n.backingStore.survey=r.survey,n.backingStore.isTopLevel=!1,n.backingStore.responseName=r.response.surveyResponseName,n.backingStore.surveyAnswers=r.answers,window.document.title="NuvIoT Survey - "+r.survey.name,n.refreshAnswerStatus(),n.showQuestion(void 0!==e?e:n.backingStore.response.currentQuestionId)})()}findQuestion(t){if(!t||"first"===t)return this.backingStore.hasPreviousQuestion=!1,this.backingStore.hasNextQuestion=!0,this.backingStore.currentQuestionSet=this.backingStore.survey.questionSets[0],this.backingStore.survey.questionSets[0].questions[0];for(let e=0;e0||e>0,this.backingStore.hasNextQuestion=e ${e.backingStore.currentQuestion.id}`,e.backingStore.currentQuestion.questionType.id,e.backingStore.currentQuestion.questionText),e.backingStore.isLoadingQuestion=!0,"childsurveys"===e.backingStore.currentQuestion.questionType.id)e.backingStore.childSurveys=yield e.surveysService.getChildSurveys(e.backingStore.topLevelSurveyResponseId,e.backingStore.response.rowKey,e.backingStore.currentQuestion.id),e.backingStore.response.currentQuestionId=e.backingStore.currentQuestion.id,e.backingStore.currentAnswers=null;else{let n=yield e.surveysService.getAnswers(e.backingStore.response.rowKey,e.backingStore.currentQuestion.id);e.backingStore.currentAnswers=n}e.backingStore.isLoadingQuestion=!1,yield e.surveysService.setSurveyCurrentQuestion(e.backingStore.topLevelSurveyResponseId,e.backingStore.response.rowKey,e.backingStore.currentQuestion.id)})()}gotoQuestionSet(t){this.selectQuestion(t.questions[0].id)}gotoNextQuestion(t){for(let e=0;er.questionId===e.id);e.isAnswered=!1,e.isDontKnow=!1,n&&(e.isDontKnow?e.isDontKnow=!0:e.isAnswered=!0)}}navigate(t){if("customer"==this.backingStore.fromService){let e=["business","customer",this.backingStore.fromServiceKey,"survey","response"];e=e.concat(t),this.navService.goto(e)}else{let e="jobapplication"==this.backingStore.fromService?["public",this.orgNs,"profile","survey"]:["public","surveys"];e=e.concat(t),this.navService.goto(e)}}saveAnswers(t="forward"){var e=this;return z(function*(){const n=e.backingStore.currentQuestion.id;e.backingStore.isSavingAnswer=!0,e.backingStore.surveyAnswers=e.backingStore.surveyAnswers.filter(o=>o.questionId!==e.backingStore.currentQuestion.id),yield e.surveysService.updateSurveyAnswer(e.backingStore.response,n,e.backingStore.currentAnswers);for(const o of e.backingStore.currentAnswers)e.backingStore.surveyAnswers.push(o);"up"==t&&e.surveysService.completeChildSurvey(e.backingStore.topLevelSurveyResponseId,e.backingStore.response.rowKey),e.refreshAnswerStatus(),e.backingStore.isSavingAnswer=!1,"forward"===t?e.gotoNextQuestion(n):"back"===t?e.gotoPreviousQuestion(n):"up"==t&&e.showParentResponse()})()}selectQuestion(t){this.navigate(this.backingStore.topLevelSurveyResponseId===this.backingStore.response.rowKey?[this.backingStore.topLevelSurveyResponseId,"question",t]:[this.backingStore.topLevelSurveyResponseId,"child",this.backingStore.response.rowKey,"question",t])}openChildSurvey(t){this.navigate([this.backingStore.topLevelSurveyResponseId,"child",t.rowKey])}showParentResponse(){const t=this.backingStore.response.parentSurveyResponseId;this.navigate(t===this.backingStore.topLevelSurveyResponseId?[this.backingStore.topLevelSurveyResponseId]:[this.backingStore.topLevelSurveyResponseId,"child",t])}addChildSurvey(){this.backingStore.isCreatingChildSurvey=!0,this.surveysService.createChildSurvey(this.backingStore.currentQuestion.childSurveyType.id,this.backingStore.topLevelSurveyResponseId,this.backingStore.response.rowKey,this.backingStore.currentQuestion.id,this.backingStore.childSurveys.length+1).then(t=>{this.backingStore.isCreatingChildSurvey=!1,t.successful&&(this.backingStore.childSurveys.push(t.result),this.openChildSurvey(t.result))}).catch(t=>{this.backingStore.isCreatingChildSurvey=!1})}deleteChildSurvey(t){confirm("A you sure you wish to delete this response? This can not be undone.")&&(this.backingStore.isDeletingChildSurvey=!0,this.surveysService.deleteChildSurvey(t.topLevelSurveyResponseId,t.rowKey).then(e=>{if(this.backingStore.isDeletingChildSurvey=!1,e.successful){const n=this.backingStore.childSurveys.indexOf(t);this.backingStore.childSurveys.splice(n,1)}}).catch(e=>{this.backingStore.isDeletingChildSurvey=!1}))}showHelp(t){const e=this.modalsService.open(p_,{size:"lg",container:"nb-layout"});e.componentInstance.modalHeader=`${this.backingStore.survey.name}`,e.componentInstance.subHeader=t.questionText,e.componentInstance.helpContent=t.helpText}nextQuestion(){var t=this;return z(function*(){if("childsurveys"===t.backingStore.currentQuestion.questionType.id)t.gotoNextQuestion(t.backingStore.currentQuestion.id);else if(t.backingStore.hasNextQuestion)t.saveAnswers("forward");else if(t.backingStore.topLevelSurveyResponseId===t.backingStore.response.rowKey){const e=t.backingStore.currentQuestion.id;yield t.surveysService.updateSurveyAnswer(t.backingStore.response,e,t.backingStore.currentAnswers),yield t.completeSurvey()}else t.saveAnswers("up")})()}showWizard(){window.location.href=`/Dashboard/AppWizard#/surveyresponse/${this.backingStore.response.rowKey}`}previousQuestion(){"childsurveys"===this.backingStore.currentQuestion.questionType.id?this.gotoPreviousQuestion(this.backingStore.currentQuestion.id):this.saveAnswers("back")}surveyNameLostFocus(t){this.saveResponseName()}editResponseName(){this.isEditingResponseName=!0}saveResponseName(){this.isEditingResponseName=!1,this.backingStore.responseName?(this.backingStore.response.surveyResponseName=this.backingStore.responseName,this.surveysService.updateSurvey(this.backingStore.response)):this.backingStore.responseName=this.backingStore.response.surveyResponseName}completeSurvey(){var t=this;return z(function*(){(yield t.surveysService.completeSurvey(t.backingStore.response.topLevelSurveyResponseId)).successful&&(t.backingStore.isTopLevel?t.returnToFromService():t.saveAnswers("up"))})()}returnToFromService(){switch(this.backingStore.fromService){case"jobapplication":this.navService.goto(["public",this.orgNs,"career","apply",this.backingStore.fromServiceKey]);break;case"customer":this.navService.goto(["business","customers","customer",this.backingStore.fromServiceKey,"surveys"]);break;default:this.navService.goto(["public","survey","thankyou"])}this.backingStore.reset()}export(){window.open(`/api/dataservices/yaml/SurveyResponse/${this.backingStore.topLevelSurveyResponseId}/generate`)}finish(){var t=this;return z(function*(){yield t.saveAnswers(),t.completeSurvey()})()}ngOnDestroy(){this.backingStore.paramsSubscription.unsubscribe(),window.document.title="NuvIoT"}static \u0275fac=function(e){return new(e||mf)(U(Wu),U(zn),U(Br),U(f_),U(bi))};static \u0275cmp=Be({type:mf,selectors:[["app-survey"]],decls:3,vars:1,consts:[[1,"container"],[1,"row"],[4,"ngIf"],[1,"survey-header"],["class","fas fa-chevron-left action",3,"click",4,"ngIf"],[3,"click",4,"ngIf"],[2,"display","grid","grid-template-columns","250px auto"],[2,"grid-column-start","1"],[4,"ngFor","ngForOf"],["class","wizard-btn",3,"click",4,"ngIf"],["style","max-width: 800px;",4,"ngIf"],[1,"fas","fa-chevron-left","action",3,"click"],[3,"ngModel","ngModelChange","blur"],[1,"fa","fa-save",2,"color","#D48D17","margin-left","5px",3,"click"],[3,"click"],[1,"fa","fa-pencil","action",3,"click"],[1,"question-set-name",2,"color","#1976D2"],[1,"fa","fa-file-alt"],["style","list-style: none;",3,"click",4,"ngFor","ngForOf"],[2,"list-style","none",3,"click"],[1,"question-name",3,"id","ngClass"],[1,"wizard-btn",3,"click"],[1,"fa","fa-magic"],[2,"max-width","800px"],["class","row",4,"ngIf"],[1,"col"],[1,"card"],[1,"card-body"],[1,"row",2,"text-align","center","padding-bottom","1.5rem"],[1,"dropdown",2,"width","300px","text-align","center","margin-left","120px"],["type","button","id","dropdownMenuButton","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary","dropdown-toggle",2,"color","black","text-transform","none"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu",2,"background-color","white"],["style","color:black;text-transform: none;","class","dropdown-item",3,"click",4,"ngFor","ngForOf"],[1,"col","d-flex","justify-content-center",2,"padding-bottom","1.5rem"],["style","margin:8px","type","button","class","srv-btn btn-circle",3,"ngClass",4,"ngFor","ngForOf"],[2,"font-weight","bold","margin-bottom","0"],["style","padding-bottom:1.5rem;",4,"ngIf"],["style","grid-column-start: 2;",3,"currentSurveyResult","currentQuestionSet","currentQuestion","answers","saveAnswer",4,"ngIf"],[1,"row",2,"height","38px"],[1,"col","d-flex","justify-content-start"],["class","srv-btn btn-circle",3,"click",4,"ngIf"],[1,"col","d-flex","justify-content-end"],["style","color:white","class","srv-btn btn-brand-alt",3,"click",4,"ngIf"],[3,"caption",4,"ngIf"],[1,"col",2,"padding-top","1.5rem","padding-bottom","1.5rem"],[1,"profile-header",2,"font-weight","bold"],[1,"dropdown-item",2,"color","black","text-transform","none",3,"click"],["type","button",1,"srv-btn","btn-circle",2,"margin","8px",3,"ngClass"],[2,"padding-bottom","1.5rem"],[1,"add-link",3,"click"],[1,"fa","fa-plus-circle"],["class","table",4,"ngIf"],[1,"table"],[1,"child-survey-name",3,"click"],[1,"fa","fa-trash","action-danger",3,"click"],[2,"grid-column-start","2",3,"currentSurveyResult","currentQuestionSet","currentQuestion","answers","saveAnswer"],[1,"srv-btn","btn-circle",3,"click"],[1,"fa","fa-arrow-left",2,"color","white"],[1,"srv-btn","btn-brand-alt",2,"color","white",3,"click"],[1,"fa","fa-arrow-right"],[3,"caption"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1),w(2,ele,14,9,"div",2),c()()),2&e&&(h(2),p("ngIf",n.backingStore.survey&&!n.backingStore.isLoadingSurvey))},dependencies:[Zi,jt,ct,Bn,vn,pn,Ku,rb,Bs],styles:[".survey-header[_ngcontent-%COMP%]{font-size:24pt;margin-bottom:10px}.question-set-name[_ngcontent-%COMP%]{font-weight:700;color:#222;font-size:1.2em}.question-name[_ngcontent-%COMP%]{cursor:pointer;font-size:1.1em}.question-name[_ngcontent-%COMP%]:hover{text-decoration:underline}.question-nav-section[_ngcontent-%COMP%]{height:48px;border-bottom:1px solid silver}.question-section[_ngcontent-%COMP%]{border-radius:8px;box-shadow:0 1px 2px #3c40434d,0 1px 3px 1px #3c404326;margin-top:20px;padding:20px}.surveyCurrentQuestion[_ngcontent-%COMP%]{font-weight:700;text-decoration:underline}.surveyAnswered[_ngcontent-%COMP%]{color:green}.surveyDontKnow[_ngcontent-%COMP%]{color:#ff0}.surveyNotAnswered[_ngcontent-%COMP%]{color:#2e353d}.child-survey-name[_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.up-link[_ngcontent-%COMP%]{cursor:pointer;font-size:1.2em;color:#d48d17;margin-right:10px}.add-link[_ngcontent-%COMP%]:hover{color:#e49d27}.add-link[_ngcontent-%COMP%]{text-align:right;cursor:pointer;font-size:1.2em;color:#d48d17}.add-link[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:10px}.add-link[_ngcontent-%COMP%]:hover{color:#e49d27}.nav-btn[_ngcontent-%COMP%]{color:#d48d17;font-size:36px;cursor:pointer}.nav-btn[_ngcontent-%COMP%]:hover{color:#e49d27}.wizard-btn[_ngcontent-%COMP%]{color:#d48d17;font-size:24px;cursor:pointer}.wizard-btn[_ngcontent-%COMP%]:hover{color:#e49d27;cursor:pointer}body[_ngcontent-%COMP%]{padding-top:1rem}.step-graphic[_ngcontent-%COMP%]{padding:.3rem .3rem .5rem;width:75%}.btn-brand[_ngcontent-%COMP%]{background-color:#df8d17;color:#fff}.btn-brand[_ngcontent-%COMP%]:hover{background-color:#efc68b;color:#fff;cursor:pointer}.btn-brand-alt[_ngcontent-%COMP%]{background-color:#efc68b;color:#fff;border-radius:25px;border-color:#0000}.btn-brand-alt[_ngcontent-%COMP%]:hover{background-color:#df8d17;color:#fff;cursor:pointer}.btn-circle[_ngcontent-%COMP%]{border-radius:100%;width:2.4rem;height:2.4rem;text-align:center;background-color:#efc68b;color:#fff;font-weight:700;border:none}.btn-circle[_ngcontent-%COMP%]:hover{background-color:#df8d17;color:#fff;cursor:pointer}.srv-btn.active[_ngcontent-%COMP%]{background-color:#df8d17;color:#fff;border:none}button[_ngcontent-%COMP%]:focus{border:none}.srv-btn.active[_ngcontent-%COMP%]:hover{background-color:#df8d17;color:#fff}.srv-btn.disabled[_ngcontent-%COMP%]{background-color:#d9d9d9;color:#fff;border:none}.dropdown-menu-block[_ngcontent-%COMP%], .dropdown-menu-item[_ngcontent-%COMP%]{background-color:#fff;color:#000}.card[_ngcontent-%COMP%]{width:75%;padding:2%;border:0px;border-radius:20px;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.form-check[_ngcontent-%COMP%]{background-color:#f3f3f3;color:#000;padding:.5rem;border-radius:4px;font-size:1.2rem;margin-bottom:.5rem}.form-check[_ngcontent-%COMP%]:hover{background-color:#d9d9d9}.form-check-input[_ngcontent-%COMP%]{margin-left:.5rem!important;float:none!important}.form-check-label[_ngcontent-%COMP%]{margin-left:1rem;width:90%}#active-answer[_ngcontent-%COMP%]{background-color:#df8d17;color:#fff}#active-answer[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:checked{background-color:#efc68b;color:#fff;border:#fff}"]})}class rS{lastModifiedDate;size;type;name;constructor(t){let n=function tle(i){return!(!i||!(i.nodeName||i.prop&&i.attr&&i.find))}(t)?t.value:t;this["_createFrom"+("string"==typeof n?"FakePath":"Object")](n)}_createFromFakePath(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)}_createFromObject(t){this.size=t.size,this.type=t.type,this.name=t.name}}class nle{file;_file;alias="file";url="/";method="POST";headers=[];withCredentials=!0;formData=[];isReady=!1;isUploading=!1;isUploaded=!1;isSuccess=!1;isCancel=!1;isError=!1;progress=0;index=void 0;_zone;uploader;some;options;constructor(t,e,n){this.uploader=t,this.some=e,this.options=n,this.file=new rS(e),this._file=e,this.url=t.options.url,this._zone=new Bt({enableLongStackTrace:!1})}upload(){try{this.uploader.uploadItem(this)}catch{this.uploader._onCompleteItem(this,"",0,[]),this.uploader._onErrorItem(this,"",0,[])}}cancel(){this.uploader.cancelItem(this)}remove(){this.uploader.removeFromQueue(this)}onBeforeUpload(){}onBuildForm(t){return{form:t}}onProgress(t){return{progress:t}}onSuccess(t,e,n){return{response:t,status:e,headers:n}}onError(t,e,n){return{response:t,status:e,headers:n}}onCancel(t,e,n){return{response:t,status:e,headers:n}}onComplete(t,e,n){return{response:t,status:e,headers:n}}_onBeforeUpload(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}_onBuildForm(t){this.onBuildForm(t)}_onProgress(t){this._zone.run(()=>{this.progress=t}),this.onProgress(t)}_onSuccess(t,e,n){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,e,n)}_onError(t,e,n){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,e,n)}_onCancel(t,e,n){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,e,n)}_onComplete(t,e,n){this.onComplete(t,e,n),this.uploader.options.removeAfterUpload&&this.remove()}_prepareToUploading(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}class ob{authToken;isUploading=!1;queue=[];progress=0;_nextIndex=0;autoUpload;options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1};_failFilterIndex;constructor(t){this.setOptions(t)}setOptions(t){this.options=Object.assign(this.options,t),this.authToken=t.authToken,this.autoUpload=t.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})}addToQueue(t,e,n){let r=[];for(let l of t)r.push(l);let o=this._getFilters(n),a=this.queue.length,s=[];r.map(l=>{e||(e=this.options);let d=new rS(l);if(this._isValidFile(d,o,e)){let f=new nle(this,l,e);s.push(f),this.queue.push(f),this._onAfterAddingFile(f)}else this._onWhenAddingFileFailed(d,o[this._failFilterIndex],e)}),this.queue.length!==a&&(this._onAfterAddingAll(s),this.progress=this._getTotalProgress()),this._render(),this.options.autoUpload&&this.uploadAll()}removeFromQueue(t){let e=this.getIndexOfItem(t),n=this.queue[e];n.isUploading&&n.cancel(),this.queue.splice(e,1),this.progress=this._getTotalProgress()}clearQueue(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}uploadItem(t){let e=this.getIndexOfItem(t),n=this.queue[e],r=this.options.isHTML5?"_xhrTransport":"_iframeTransport";n._prepareToUploading(),!this.isUploading&&(this.isUploading=!0,this[r](n))}cancelItem(t){let e=this.getIndexOfItem(t),n=this.queue[e];n&&n.isUploading&&n[this.options.isHTML5?"_xhr":"_form"].abort()}uploadAll(){let t=this.getNotUploadedItems().filter(e=>!e.isUploading);!t.length||(t.map(e=>e._prepareToUploading()),t[0].upload())}cancelAll(){this.getNotUploadedItems().map(e=>e.cancel())}isFile(t){return function rle(i){return File&&i instanceof File}(t)}isFileLikeObject(t){return t instanceof rS}getIndexOfItem(t){return"number"==typeof t?t:this.queue.indexOf(t)}getNotUploadedItems(){return this.queue.filter(t=>!t.isUploaded)}getReadyItems(){return this.queue.filter(t=>t.isReady&&!t.isUploading).sort((t,e)=>t.index-e.index)}destroy(){}onAfterAddingAll(t){return{fileItems:t}}onBuildItemForm(t,e){return{fileItem:t,form:e}}onAfterAddingFile(t){return{fileItem:t}}onWhenAddingFileFailed(t,e,n){return{item:t,filter:e,options:n}}onBeforeUploadItem(t){return{fileItem:t}}onProgressItem(t,e){return{fileItem:t,progress:e}}onProgressAll(t){return{progress:t}}onSuccessItem(t,e,n,r){return{item:t,response:e,status:n,headers:r}}onErrorItem(t,e,n,r){return{item:t,response:e,status:n,headers:r}}onCancelItem(t,e,n,r){return{item:t,response:e,status:n,headers:r}}onCompleteItem(t,e,n,r){return{item:t,response:e,status:n,headers:r}}onCompleteAll(){}_mimeTypeFilter(t){return!(this.options.allowedMimeType&&-1===this.options.allowedMimeType.indexOf(t.type))}_fileSizeFilter(t){return!(this.options.maxFileSize&&t.size>this.options.maxFileSize)}_fileTypeFilter(t){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(class ile{static 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"];static 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"];static 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"];static mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"];static mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream"];static getMimeClass(t){let e="application";return-1!==this.mime_psd.indexOf(t.type)||t.type.match("image.*")?e="image":t.type.match("video.*")?e="video":t.type.match("audio.*")?e="audio":"application/pdf"===t.type?e="pdf":-1!==this.mime_compress.indexOf(t.type)?e="compress":-1!==this.mime_doc.indexOf(t.type)?e="doc":-1!==this.mime_xsl.indexOf(t.type)?e="xls":-1!==this.mime_ppt.indexOf(t.type)&&(e="ppt"),"application"===e&&(e=this.fileTypeDetection(t.name)),e}static fileTypeDetection(t){let e={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",rar:"compress","7z":"compress",lz:"compress",z01:"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"},n=t.split(".");if(n.length<2)return"application";let r=n[n.length-1].toLowerCase();return void 0===e[r]?"application":e[r]}}.getMimeClass(t)))}_onErrorItem(t,e,n,r){t._onError(e,n,r),this.onErrorItem(t,e,n,r)}_onCompleteItem(t,e,n,r){t._onComplete(e,n,r),this.onCompleteItem(t,e,n,r);let o=this.getReadyItems()[0];this.isUploading=!1,o?o.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}_headersGetter(t){return e=>e?t[e.toLowerCase()]||void 0:t}_xhrTransport(t){let e=t._xhr=new XMLHttpRequest,n=new FormData;if(this._onBeforeUploadItem(t),"number"!=typeof t._file.size)throw new TypeError("The file specified is no longer valid");if(this._onBuildItemForm(t,n),n.append(t.alias,t._file,t.file.name||t._file.some.name),e.upload.onprogress=o=>{let a=Math.round(o.lengthComputable?100*o.loaded/o.total:0);this._onProgressItem(t,a)},e.onload=()=>{let o=this._parseHeaders(e.getAllResponseHeaders()),a=this._transformResponse(e.response,o);this["_on"+(this._isSuccessCode(e.status)?"Success":"Error")+"Item"](t,a,e.status,o),this._onCompleteItem(t,a,e.status,o)},e.onerror=()=>{alert("Upload error");let o=this._parseHeaders(e.getAllResponseHeaders()),a=this._transformResponse(e.response,o);this._onErrorItem(t,a,e.status,o),this._onCompleteItem(t,a,e.status,o)},e.onabort=()=>{alert("Upload canceled");let o=this._parseHeaders(e.getAllResponseHeaders()),a=this._transformResponse(e.response,o);this._onCancelItem(t,a,e.status,o),this._onCompleteItem(t,a,e.status,o)},e.open(t.method,t.url,!0),e.withCredentials=t.withCredentials,this.options.headers)for(let o of this.options.headers)e.setRequestHeader(o.name,o.value);this.authToken&&e.setRequestHeader("Authorization",this.authToken),e.send(n),this._render()}_getTotalProgress(t=0){if(this.options.removeAfterUpload)return t;let e=this.getNotUploadedItems().length,r=100/this.queue.length;return Math.round((e?this.queue.length-e:this.queue.length)*r+t*r/100)}_getFilters(t){if(!t)return this.options.filters;if(Array.isArray(t))return t;if("string"==typeof t){let e=t.match(/[^\s,]+/g);return this.options.filters.filter(n=>-1!==e.indexOf(n.name))}return this.options.filters}_render(){}_queueLimitFilter(){return void 0===this.options.queueLimit||this.queue.length(this._failFilterIndex++,r.fn.call(this,t,n)))}_isSuccessCode(t){return t>=200&&t<300||304===t}_transformResponse(t,e){return t}_parseHeaders(t){let n,r,o,e={};return t&&t.split("\n").map(a=>{o=a.indexOf(":"),n=a.slice(0,o).trim().toLowerCase(),r=a.slice(o+1).trim(),n&&(e[n]=e[n]?e[n]+", "+r:r)}),e}_onWhenAddingFileFailed(t,e,n){this.onWhenAddingFileFailed(t,e,n)}_onAfterAddingFile(t){this.onAfterAddingFile(t)}_onAfterAddingAll(t){this.onAfterAddingAll(t)}_onBeforeUploadItem(t){t._onBeforeUpload(),this.onBeforeUploadItem(t)}_onBuildItemForm(t,e){t._onBuildForm(e),this.onBuildItemForm(t,e)}_onProgressItem(t,e){let n=this._getTotalProgress(e);this.progress=n,t._onProgress(e),this.onProgressItem(t,e),this.onProgressAll(n),this._render()}_onSuccessItem(t,e,n,r){t._onSuccess(e,n,r),this.onSuccessItem(t,e,n,r)}_onCancelItem(t,e,n,r){t._onCancel(e,n,r),this.onCancelItem(t,e,n,r)}}class ab{constructor(t,e,n,r){if(isNaN(t)||isNaN(e))throw new Error(`Point is invalid: (${t}, ${e})`);this.x=+t,this.y=+e,this.pressure=n||0,this.time=r||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class oS{static fromPoints(t,e){const n=this.calculateControlPoints(t[0],t[1],t[2]).c2,r=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new oS(t[1],n,r,t[2],e.start,e.end)}static calculateControlPoints(t,e,n){const r=t.x-e.x,o=t.y-e.y,a=e.x-n.x,s=e.y-n.y,l_x=(t.x+e.x)/2,l_y=(t.y+e.y)/2,d_x=(e.x+n.x)/2,d_y=(e.y+n.y)/2,f=Math.sqrt(r*r+o*o),y=Math.sqrt(a*a+s*s),W=f+y==0?0:y/(f+y),he=e.x-(d_x+(l_x-d_x)*W),ge=e.y-(d_y+(l_y-d_y)*W);return{c1:new ab(l_x+he,l_y+ge),c2:new ab(d_x+he,d_y+ge)}}constructor(t,e,n,r,o,a){this.startPoint=t,this.control2=e,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=a}length(){let n,r,e=0;for(let o=0;o<=10;o+=1){const a=o/10,s=this.point(a,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),l=this.point(a,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const d=s-n,f=l-r;e+=Math.sqrt(d*d+f*f)}n=s,r=l}return e}point(t,e,n,r,o){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*r*(1-t)*t*t+o*t*t*t}}class bc extends class ole{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,e,n){this._et.addEventListener(t,e,n)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,e,n){this._et.removeEventListener(t,e,n)}}{constructor(t,e={}){var n,r,o;super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=a=>{!this._isLeftButtonPressed(a,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(a))},this._handleMouseMove=a=>{this._isLeftButtonPressed(a,!0)&&this._drawingStroke?this._strokeMoveUpdate(this._pointerEventToSignatureEvent(a)):this._strokeEnd(this._pointerEventToSignatureEvent(a),!1)},this._handleMouseUp=a=>{this._isLeftButtonPressed(a)||this._strokeEnd(this._pointerEventToSignatureEvent(a))},this._handleTouchStart=a=>{1!==a.targetTouches.length||this._drawingStroke||(a.cancelable&&a.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(a)))},this._handleTouchMove=a=>{if(1===a.targetTouches.length){if(a.cancelable&&a.preventDefault(),!this._drawingStroke)return void this._strokeEnd(this._touchEventToSignatureEvent(a),!1);this._strokeMoveUpdate(this._touchEventToSignatureEvent(a))}},this._handleTouchEnd=a=>{0===a.targetTouches.length&&(a.cancelable&&a.preventDefault(),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this._strokeEnd(this._touchEventToSignatureEvent(a)))},this._handlePointerDown=a=>{!a.isPrimary||!this._isLeftButtonPressed(a)||this._drawingStroke||(a.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(a)))},this._handlePointerMove=a=>{if(a.isPrimary){if(!this._isLeftButtonPressed(a,!0)||!this._drawingStroke)return void this._strokeEnd(this._pointerEventToSignatureEvent(a),!1);a.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(a))}},this._handlePointerUp=a=>{!a.isPrimary||this._isLeftButtonPressed(a)||(a.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(a)))},this.velocityFilterWeight=e.velocityFilterWeight||.7,this.minWidth=e.minWidth||.5,this.maxWidth=e.maxWidth||2.5,this.throttle=null!==(n=e.throttle)&&void 0!==n?n:16,this.minDistance=null!==(r=e.minDistance)&&void 0!==r?r:5,this.dotSize=e.dotSize||0,this.penColor=e.penColor||"black",this.backgroundColor=e.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=e.compositeOperation||"source-over",this.canvasContextOptions=null!==(o=e.canvasContextOptions)&&void 0!==o?o:{},this._strokeMoveUpdate=this.throttle?function ale(i,t=250){let r,o,a,e=0,n=null;const s=()=>{e=Date.now(),n=null,r=i.apply(o,a),n||(o=null,a=[])};return function(...d){const f=Date.now(),y=t-(f-e);return o=this,a=d,y<=0||y>t?(n&&(clearTimeout(n),n=null),e=f,r=i.apply(o,a),n||(o=null,a=[])):n||(n=window.setTimeout(s,y)),r}}(bc.prototype._strokeUpdate,this.throttle):bc.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:e}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,e={}){return new Promise((n,r)=>{const o=new Image,a=e.ratio||window.devicePixelRatio||1,s=e.width||this.canvas.width/a,l=e.height||this.canvas.height/a,d=e.xOffset||0,f=e.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,d,f,s,l),n()},o.onerror=y=>{r(y)},o.crossOrigin="anonymous",o.src=t,this._isEmpty=!1})}toDataURL(t="image/png",e){return"image/svg+xml"===t?("object"!=typeof e&&(e=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(e))}`):("number"!=typeof e&&(e=void 0),this.canvas.toDataURL(t,e))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){var t;const e=window.document===this.canvas.ownerDocument?window:null!==(t=this.canvas.ownerDocument.defaultView)&&void 0!==t?t:this.canvas.ownerDocument;return{addEventListener:e.addEventListener.bind(e),removeEventListener:e.removeEventListener.bind(e)}}_removeMoveUpEventListeners(){const{removeEventListener:t}=this._getListenerFunctions();t("pointermove",this._handlePointerMove),t("pointerup",this._handlePointerUp),t("mousemove",this._handleMouseMove),t("mouseup",this._handleMouseUp),t("touchmove",this._handleTouchMove),t("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t,{clear:e=!0}={}){e&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_isLeftButtonPressed(t,e){return e?1===t.buttons:1==(1&t.buttons)}_pointerEventToSignatureEvent(t){return{event:t,type:t.type,x:t.clientX,y:t.clientY,pressure:"pressure"in t?t.pressure:0}}_touchEventToSignatureEvent(t){const e=t.changedTouches[0];return{event:t,type:t.type,x:e.clientX,y:e.clientY,pressure:e.force}}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;const{addEventListener:n}=this._getListenerFunctions();switch(t.event.type){case"mousedown":n("mousemove",this._handleMouseMove),n("mouseup",this._handleMouseUp);break;case"touchstart":n("touchmove",this._handleTouchMove),n("touchend",this._handleTouchEnd);break;case"pointerdown":n("pointermove",this._handlePointerMove),n("pointerup",this._handlePointerUp)}this._drawingStroke=!0;const r=this._getPointGroupOptions(),o=Object.assign(Object.assign({},r),{points:[]});this._data.push(o),this._reset(r),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(0===this._data.length)return void this._strokeBegin(t);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const e=this._createPoint(t.x,t.y,t.pressure),n=this._data[this._data.length-1],r=n.points,o=r.length>0&&r[r.length-1],a=!!o&&e.distanceTo(o)<=this.minDistance,s=this._getPointGroupOptions(n);if(!o||!o||!a){const l=this._addPoint(e,s);o?l&&this._drawCurve(l,s):this._drawDot(e,s),r.push({time:e.time,x:e.x,y:e.y,pressure:e.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t,e=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(e&&this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart)}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,e,n){const r=this.canvas.getBoundingClientRect();return new ab(t-r.left,e-r.top,n,(new Date).getTime())}_addPoint(t,e){const{_lastPoints:n}=this;if(n.push(t),n.length>2){3===n.length&&n.unshift(n[0]);const r=this._calculateCurveWidths(n[1],n[2],e),o=oS.fromPoints(n,r);return n.shift(),o}return null}_calculateCurveWidths(t,e,n){const r=n.velocityFilterWeight*e.velocityFrom(t)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),a={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,a}_strokeWidth(t,e){return Math.max(e.maxWidth/(t+1),e.minWidth)}_drawCurveSegment(t,e,n){const r=this._ctx;r.moveTo(t,e),r.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,e){const n=this._ctx,r=t.endWidth-t.startWidth,o=2*Math.ceil(t.length());n.beginPath(),n.fillStyle=e.penColor;for(let a=0;a0?e.dotSize:(e.minWidth+e.maxWidth)/2;n.beginPath(),this._drawCurveSegment(t.x,t.y,r),n.closePath(),n.fillStyle=e.penColor,n.fill()}_fromData(t,e,n){for(const r of t){const{points:o}=r,a=this._getPointGroupOptions(r);if(o.length>1)for(let s=0;s{const y=document.createElement("path");if(!(isNaN(d.control1.x)||isNaN(d.control1.y)||isNaN(d.control2.x)||isNaN(d.control2.y))){const k=`M ${d.startPoint.x.toFixed(3)},${d.startPoint.y.toFixed(3)} C ${d.control1.x.toFixed(3)},${d.control1.y.toFixed(3)} ${d.control2.x.toFixed(3)},${d.control2.y.toFixed(3)} ${d.endPoint.x.toFixed(3)},${d.endPoint.y.toFixed(3)}`;y.setAttribute("d",k),y.setAttribute("stroke-width",(2.25*d.endWidth).toFixed(3)),y.setAttribute("stroke",f),y.setAttribute("fill","none"),y.setAttribute("stroke-linecap","round"),l.appendChild(y)}},(d,{penColor:f,dotSize:y,minWidth:k,maxWidth:E})=>{const W=document.createElement("circle");W.setAttribute("r",(y>0?y:(k+E)/2).toString()),W.setAttribute("cx",d.x.toString()),W.setAttribute("cy",d.y.toString()),W.setAttribute("fill",f),l.appendChild(W)}),l.outerHTML}}class Tl{nuviotClient;_mediaLibraries;_mediaLibrary;_mediaResoures;_mediaResource;_libraries$=new Gt;_library$=new Gt;_resources$=new Gt;_resource$=new Gt;constructor(t){this.nuviotClient=t}loadMediaLibraries(){return this.nuviotClient.getListResponse("/api/media/libraries")}loadMediaLibrariesForCustomer(t){return this.nuviotClient.getListResponse(`/api/customer/${t}/media/libraries`)}loadMediaResources(t){return this.nuviotClient.getListResponse(`/api/media/library/${t}/resources`)}loadMediaResourcesForMediaTypeKey(t){return this.nuviotClient.getListResponse(`/api/media/mediatype/key/${t}/resources`)}createMediaLibrary(){return this.nuviotClient.getFormResponse("/api/media/library/factory")}loadMediaLibrary(t){return this.nuviotClient.getFormResponse(`/api/media/library/${t}`)}insertMediaLibrary(t){return this.nuviotClient.insert("/api/media/library",t)}updateMediaLibrary(t){return this.nuviotClient.update("/api/media/library",t)}saveMediaLibrary(t){return t.isEditing?this.updateMediaLibrary(t.model):this.insertMediaLibrary(t.model)}generateMediaResource(t){return this.nuviotClient.postWithResponse("/api/media/resource/texttospeech",t)}updateGeneratedMediaResource(t,e){return this.nuviotClient.update(`/api/media/resource/texttospeech/${t}`,e)}getVoices(t){return this.nuviotClient.request(`/api/media/resource/texttospeech/voices/${t}`)}createMediaResource(t){return this.nuviotClient.postWithResponse("/api/media/resource/request",t)}cloneMediaResource(t,e,n,r){let o=`/api/media/resource/${t}/clone?t=1`;return n&&(o+=`&entityFieldName=${n}`),e&&(o+=`&entityTypeName=${e}`),r&&(o+=`&resourceName=${r}`),this.nuviotClient.request(o)}setRating(t,e){return this.nuviotClient.updateWithResponse(`/api/entity/${t}/rate/${e}`,{})}clearRating(t){return this.nuviotClient.deleteWithResponse(`/api/entity/${t}/rating`)}assignCategory(t,e){return this.nuviotClient.updateWithResponse(`/api/entity/${t}/category`,e)}newMediaResource(){return this.nuviotClient.getFormResponse("/api/media/resource/factory")}loadMediaResource(t){return this.nuviotClient.getFormResponse(`/api/media/resource/${t}`)}insertMediaResource(t){return this.nuviotClient.postWithResponse("/api/media/resource",t)}updateMediaResource(t){return this.nuviotClient.updateWithResponse("/api/media/resource",t)}setMediaRevision(t,e){return this.nuviotClient.request(`/api/media/resource/${t}/revision/${e}/set`)}getMediaByCategory(t){return this.nuviotClient.getListResponse("/api/media/resources",{categoryKey:t})}getAllMedia(t=1,e=10){return this.nuviotClient.getListResponse("/api/media/resources",{pageIndex:t,pageSize:e})}saveMediaResource(t){return t.isEditing?this.updateMediaResource(t.model):this.insertMediaResource(t.model)}onMediaLibraries(){this._libraries$.asObservable()}onMediaLibrary(){this._library$.asObservable()}onMediaResources(){this._resources$.asObservable()}onMediaResource(){this._resource$.asObservable()}setMediaLibraries(t){this._mediaLibraries=t,this._libraries$.next(t)}setMediaLibrary(t){this._mediaLibrary=t,this._library$.next(t)}setMediaResources(t){this._mediaResoures=t,this._resources$.next(t)}setMediaResource(t){this._mediaResource=t,this._resource$.next(t)}getMediaLibraries(){return this._mediaLibraries}getMediaLibrary(){return this._mediaLibrary}getMediaResources(){return this._mediaResoures}getMediaResource(){return this._mediaResource}searchImages(t,e="smithsonian_air_and_space_museum",n=1){return this.nuviotClient.getListResponse(`/api/media/images/search?term=${t}&source=${e}`,{pageIndex:n,pageSize:20})}resizeMediaResource(t,e){return this.nuviotClient.updateWithResponse(`/api/media/resource/${t}/resize`,e)}static \u0275fac=function(e){return new(e||Tl)(Ee(An))};static \u0275prov=$e({token:Tl,factory:Tl.\u0275fac,providedIn:"root"})}class la{nuviotClient;storage;constructor(t,e){this.nuviotClient=t,this.storage=e}getTimeEntriesForTask(t,e,n,r){return this.nuviotClient.postForListResponse("/api/time/entries",{startDate:t,endDate:e,userId:r,workTaskId:n})}getTimeEntriesForUser(t,e,n){return this.nuviotClient.postForListResponse("/api/time/entries",{startDate:t,endDate:e,userId:n})}addTimeEntry(t){var e=this;return z(function*(){const n={project:t.project,workTask:t.workTask},r=yield e.storage.getItemAsync("time-entry-mru");if(r){const o=JSON.parse(r),a=o.find(s=>s.workTask.id===n.workTask.id);a&&o.splice(o.indexOf(a),1),o.splice(10),o.unshift(n),yield e.storage.setItemAsync("time-entry-mru",JSON.stringify(o))}else{const o=[];o.unshift(n),yield e.storage.setItemAsync("time-entry-mru",JSON.stringify(o))}return yield e.nuviotClient.postWithResponse("/api/time/entry",t)})()}updateTimeEntry(t){return this.nuviotClient.updateWithResponse("/api/time/entry",t)}deleteTimeEntry(t){return this.nuviotClient.delete(`/api/time/entry/${t}`)}getExpensesForTask(t,e,n,r){return this.nuviotClient.postForListResponse("/api/expense",{startDate:t,endDate:e,userId:r,taskId:n})}createLocationDiagram(){return this.nuviotClient.getFormResponse("/api/customer/diagram/factory")}getExpensesForUser(t,e,n){return this.nuviotClient.postForListResponse("/api/expense",{startDate:t,endDate:e,userId:n})}addExpenses(t){return this.nuviotClient.postWithResponse("/api/expense",t)}updateExpenses(t){return this.nuviotClient.updateWithResponse("/api/expense",t)}deleteExpenses(t){return this.nuviotClient.delete(`/api/expense/${t}`)}getCallLogForCustomer(t){return this.nuviotClient.getListResponse(`/api/customer/${t}/calllogs`)}getCallLogForCustomerContact(t,e){return this.nuviotClient.getListResponse(`/api/customer/${t}/contact/${e}/calllogs`)}createWorkRole(){return this.nuviotClient.getFormResponse("/api/workrole/factory")}getWorkRole(t){return this.nuviotClient.getFormResponse(`/api/workrole/${t}`)}addWorkRole(t){return this.nuviotClient.post("/api/workrole",t)}updateWorkRole(t){return this.nuviotClient.update("/api/workrole",t)}getWorkRoles(){return this.nuviotClient.getListResponse("/api/workroles")}createBudgetItem(t,e){return this.nuviotClient.getFormResponse(`/api/budget/lineitem/${t}/${e}/factory`)}getBudgetItem(t){return this.nuviotClient.getFormResponse(`/api/budget/lineitem/${t}`)}deleteBudgetItem(t){return this.nuviotClient.delete(`/api/budget/lineitem/${t}`)}addBudgetItem(t){return this.nuviotClient.post("/api/budget/lineitem",t)}updateBudgetItem(t){return this.nuviotClient.update("/api/budget/lineitem",t)}getBudgetItemsForMonth(t,e){return this.nuviotClient.request(`/api/budget/month/${t}/${e}`)}getBudgetItemsForYear(t){return this.nuviotClient.request(`/api/budget/year/${t}`)}cloneBudgetItemsForMonth(t,e,n,r){return this.nuviotClient.request(`/api/budget/clone/${t}/${e}/to/${n}/${r}`)}createIndustry(){return this.nuviotClient.getFormResponse("/api/industry/factory")}getIndustry(t){return this.nuviotClient.getFormResponse(`/api/industry/${t}`)}getIndustriesForPicker(){return this.nuviotClient.request("/api/industries/picker")}getIndustryNichesForPicker(t){return this.nuviotClient.request(`/api/industry/${t}/niches/picker`)}addIndustry(t){return this.nuviotClient.post("/api/industry",t)}updateIndustry(t){return this.nuviotClient.update("/api/industry",t)}generateVPC(t,e){return this.nuviotClient.request(`/api/persona/vpc/generate?q=${encodeURIComponent(t)}&r=${encodeURIComponent(e)}`)}createPersona(){return this.nuviotClient.getFormResponse("/api/persona/factory")}getPersona(t){return this.nuviotClient.getFormResponse(`/api/persona/${t}`)}getPersonas(){return this.nuviotClient.getListResponse("/api/personas")}addPersona(t){return this.nuviotClient.post("/api/persona",t)}updatePersona(t){return this.nuviotClient.update("/api/persona",t)}savePersona(t){var e=this;return z(function*(){if(t.isEditing)return yield e.nuviotClient.updateWithResponse("/api/persona",t.model);{let n=yield e.nuviotClient.postWithResponse("/api/persona",t.model);return n&&n.successful&&(t.isEditing=!0),n}})()}getIndustries(){return this.nuviotClient.getListResponse("/api/industries")}createFollowup(t){return this.nuviotClient.getFormResponse(`/api/customer/${t}/followup/factory`)}editFollowup(t,e){var n=this;return z(function*(){let r=yield n.nuviotClient.getFormResponse(`/api/customer/${t}/followup/factory`);return r.model=e,r.isEditing=!0,r})()}getFollowups(){return this.nuviotClient.getListResponse("/api/customer/followups")}getCustomerStatusOptions(){return this.nuviotClient.request("/api/customer/status/types")}getCustomerStageOptions(){return this.nuviotClient.request("/api/customer/stage/types")}saveIndustry(t){return t.isEditing?this.nuviotClient.update("/api/industry",t.model):this.nuviotClient.post("/api/industry",t.model)}getPaymentAccounts(t){return this.nuviotClient.request(`/api/user/${t}/paymentaccounts`)}savePaymentAccounts(t,e){return this.nuviotClient.post(`/api/user/${t}/paymentaccounts`,e)}getTimePeriods(t){return this.nuviotClient.getListResponse(`/api/time/timeperiods/${t}`)}getAllTimePeriods(){return this.nuviotClient.getListResponse("/api/time/timeperiods")}createTimePeriods(t){return this.nuviotClient.getListResponse(`/api/time/timeperiods/${t}/create`)}rateSalesScript(t,e){var n=this;return z(function*(){return n.nuviotClient.request(`/api/sales/script/${t}/stars/${e}`)})()}clearScriptRating(t){var e=this;return z(function*(){return e.nuviotClient.request(`/api/sales/script/${t}/stars/clear`)})()}addLessonLearned(t,e){var n=this;return z(function*(){return n.nuviotClient.post(`/api/sales/script/${t}/lessonslearned`,e)})()}addObjectionHandler(t,e){var n=this;return z(function*(){return n.nuviotClient.post(`/api/sales/script/${t}/objectionhandler`,e)})()}updateObjectionHandler(t,e){var n=this;return z(function*(){return n.nuviotClient.updateWithResponse(`/api/sales/script/${t}/objectionhandler`,e)})()}updateSalesScriptContent(t,e){var n=this;return z(function*(){return n.nuviotClient.updateWithResponse(`/api/sales/script/${t}/content`,e)})()}getSalesScripts(){var t=this;return z(function*(){return t.nuviotClient.getListResponse("/api/sales/scripts")})()}createSalesScript(){var t=this;return z(function*(){return t.nuviotClient.getFormResponse("/api/sales/script/factory")})()}createSalesScriptContent(){var t=this;return z(function*(){return t.nuviotClient.getFormResponse("/api/sales/script/content/factory")})()}createSalesScriptObjectionHandler(){var t=this;return z(function*(){return t.nuviotClient.getFormResponse("/api/sales/script/objectionhandler/factory")})()}getSalesScript(t){var e=this;return z(function*(){return e.nuviotClient.getFormResponse(`/api/sales/script/${t}`)})()}editSalesScriptContentRevision(t){var e=this;return z(function*(){var n=yield e.nuviotClient.getFormResponse("/api/sales/script/content/factory");return n.model=t,n})()}publishSalesScriptContent(t){var e=this;return z(function*(){return e.nuviotClient.updateWithFormResponse("/api/sales/script/content/publish",t)})()}saveSalesScript(t){var e=this;return z(function*(){return t.isEditing?e.updateSalesScript(t.model):e.addSalesScript(t.model)})()}addSalesScript(t){var e=this;return z(function*(){return e.nuviotClient.post("/api/sales/script",t)})()}updateSalesScript(t){var e=this;return z(function*(){return e.nuviotClient.update("/api/sales/script",t)})()}createCustomer(){return this.nuviotClient.getFormResponse("/api/customer/factory")}createCustomerLocation(){return this.nuviotClient.getFormResponse("/api/customer/location/factory")}getCustomerLocation(t){return this.nuviotClient.getFormResponse(`/api/customer/location/${t}`)}editCustomerLocation(t){var e=this;return z(function*(){let n=yield e.createCustomerLocation();return n.model=t,n.isEditing=!0,n})()}createCustomerContact(){return this.nuviotClient.getFormResponse("/api/customer/contact/factory")}editCustomerContact(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/customer/contact/factory");return n.model=t,n.isEditing=!0,n})()}getCustomers(t="-1",e="-1"){let n="/api/customers";return"-1"!=t&&"-1"!=e?n+=`?industry=${e}&stage=${t}`:"-1"!=t?n+=`?stage=${t}`:"-1"!=e&&(n+=`?industry=${e}`),this.nuviotClient.getListResponse(n)}getYearEndTaxReport(t,e){return this.nuviotClient.postWithResponse("/api/reports/taxes/yearend",{startDate:t,endDate:e})}getIncomeStatement(t,e){return this.nuviotClient.request(`/api/business/reports/incomestatment?month=${t}&year=${e}`)}getPayrollForYear(t){return this.nuviotClient.request(`/api/payroll/year/${t}`)}generatePayroll(t){return this.nuviotClient.request(`/api/payroll/generate/${t}`)}getPaymentsForPeriod(t){return this.nuviotClient.request(`/api/payroll/payments/${t}`)}sendPaystub(t){return this.nuviotClient.get(`/api/payroll/paystub/${t}/email`)}getMyPayments(){return this.nuviotClient.request("/api/payroll/payments/my")}updatePayment(t){return this.nuviotClient.updateWithResponse("/api/payment/update",t)}generatePaymentsForPeriod(t){return this.nuviotClient.requestForInvokeResultEx(`/api/payroll/generate/${t}`)}addCustomer(t){return this.nuviotClient.postWithResponse("/api/customer",t)}updateCustomer(t){return this.nuviotClient.updateWithResponse("/api/customer",t)}saveCustomer(t){return t.isEditing?this.nuviotClient.updateWithResponse("/api/customer",t.model):this.nuviotClient.postWithResponse("/api/customer",t.model)}setCustomerAccount(t){return this.nuviotClient.get(`/api/auth/customer/${t}`)}getCustomer(t){return this.nuviotClient.getFormResponse(`/api/customer/${t}`)}getCommunicationTypes(){return this.nuviotClient.request("/api/customer/communication/types")}getCustomerReadOnly(t){return this.nuviotClient.request(`/api/customer/${t}/view`)}createCustomerCommunications(){return this.nuviotClient.request("/api/customer/communications/factory")}deleteCustomer(t){return this.nuviotClient.delete(`/api/customer/${t}`)}getActiveAgreements(t){return this.nuviotClient.request(`/api/agreements/${t}`)}getAgreements(t){return this.nuviotClient.request(`/api/agreements/${t}/active`)}getActiveAgreementSummaries(t){return this.nuviotClient.request(`/api/agreements/${t}/active`)}getAgreementSummariesForCustomer(t){return this.nuviotClient.request(`/api/agreements/${t}`)}getAgreementSummaries(){return this.nuviotClient.request("/api/agreements")}createAgreement(t){return this.nuviotClient.request(`/api/agreement/${t}/factory`)}createAgreementFromProposal(t){return this.nuviotClient.request(`/api/business/proposal/${t}/agreement`)}getAgreement(t){return this.nuviotClient.request(`/api/agreement/${t}`)}addAgreement(t){return this.nuviotClient.postWithResponse("/api/agreement",t)}updateAgreement(t){return this.nuviotClient.updateWithResponse("/api/agreement",t)}saveAgreement(t){return t.isEditing?this.updateAgreement(t.model):this.addAgreement(t.model)}deleteAgreement(t){return this.nuviotClient.delete(`/api/agreement/${t}`)}getCurrentPayRate(t){return this.nuviotClient.request(`/api/payrate/user/${t}/current`)}getUserPayRates(t){return this.nuviotClient.getListResponse(`/api/payrate/user/${t}`)}getPayRate(t){return this.nuviotClient.request(`/api/payrate/${t}`)}savePayRate(t){return t.id?this.nuviotClient.updateWithResponse("/api/payrate",t):this.nuviotClient.postWithResponse("/api/payrate",t)}deletePayRate(t){return this.nuviotClient.delete(`/api/payrate/${t}`)}getTimeReport(t){return this.nuviotClient.postWithResponse("/api/reports/time",t)}downloadExcel(t){let e=`/api/reports/time/xlsx?entityGroupBy=${t.entityGroupBy}`;t.startDate&&(e+=`&startDate=${encodeURIComponent(t.startDate)}`),t.endDate&&(e+=`&endDate=${encodeURIComponent(t.endDate)}`),t.userId&&(e+=`&userId=${encodeURIComponent(t.userId)}`),t.clientId&&(e+=`&userId=${encodeURIComponent(t.clientId)}`),t.agreementId&&(e+=`&userId=${encodeURIComponent(t.agreementId)}`),t.projectId&&(e+=`&projectId=${encodeURIComponent(t.projectId)}`),t.workTaskId&&(e+=`&workTaskId=${encodeURIComponent(t.workTaskId)}`),t.includeFinancial&&(e+="&includeFinancial=true"),t.includeTaskDetails&&(e+="&includeTaskDetails=true"),t.timePeriodId&&(e+=`&timePeriodId=${encodeURIComponent(t.timePeriodId)}`),window.open(e,"_blank")}lockTimePeriod(t){return this.nuviotClient.request(`/api/time/timeperiod/${t}/lock`)}unlockTimePeriod(t){return this.nuviotClient.request(`/api/time/timeperiod/${t}/unlock`)}getInvoices(){return this.nuviotClient.request("/api/invoices")}getInvoiceStatusList(){return this.nuviotClient.request("/api/invoice/status/options")}getInvoicesForCustomer(t){return this.nuviotClient.request(`/api/customer/${t}/invoices`)}getInvoicesForAgreement(t){return this.nuviotClient.request(`/api/agreement/${t}/invoices`)}getChildInvoices(t){return this.nuviotClient.request(`/api/invoice/${t}/splits`)}getInvoicesForSubscription(t){return this.nuviotClient.request(`/api/subscription/${t}/invoices`)}getInvoice(t){return this.nuviotClient.request(`/api/invoice/${t}`)}deleteInvoice(t){return this.nuviotClient.delete(`/api/invoice/${t}`)}updateInvoice(t){return this.nuviotClient.update("/api/invoice",t)}updateInvoiceNotes(t,e){return this.nuviotClient.get(`/api/invoice/${t}/notes?notes=${encodeURIComponent(e)}`)}updateInvoiceDueDate(t,e){return this.nuviotClient.get(`/api/invoice/${t}/dueDate/${encodeURIComponent(e)}`)}updateInvoiceStatus(t,e){return this.nuviotClient.get(`/api/invoice/${t}/status/${e}`)}createInvoice(t,e,n){return this.nuviotClient.request(`/api/invoice/${t}/${e}/${n}`)}generatePreviewInvoice(t,e,n){window.open(`/api/invoice/${t}/${e}/${n}/preview`)}createSplitInvoiceRequest(){return this.nuviotClient.getFormResponse("/api/invoice/split/request/factory")}splitInvoice(t,e){return this.nuviotClient.postForListResponse(`/api/invoice/${t}/split`,e)}removeSplitInvoice(t){return this.nuviotClient.delete(`/api/invoice/${t}/split`)}getAccounts(){return this.nuviotClient.getListResponse("/api/accounts")}getActiveAccounts(){return this.nuviotClient.getListResponse("/api/accounts/active")}getAccount(t){return this.nuviotClient.request(`/api/account/${t}`)}getAccountTransactions(t,e,n){var r=this;return z(function*(){return yield r.nuviotClient.getListResponse(`/api/account/${t}/transactions`,{start:e,end:n})})()}addAccount(t){return this.nuviotClient.postWithResponse("/api/account",t)}updateAccount(t){return this.nuviotClient.updateWithResponse("/api/account",t)}getTransactionCategories(){return this.nuviotClient.getListResponse("/api/account/transaction/categories")}createTransactionCategory(){return this.nuviotClient.getFormResponse("/api/account/transaction/category/factory")}getTransactionCategory(t){return this.nuviotClient.getFormResponse(`/api/account/transaction/category/${t}`)}getActiveTransactionCategories(){return this.nuviotClient.getListResponse("/api/account/transaction/categories/active")}addTransactionCategory(t){return this.nuviotClient.postWithResponse("/api/account/transaction/category",t)}updateTransactionCategory(t){return this.nuviotClient.updateWithResponse("/api/account/transaction/category",t)}getVendors(){return this.nuviotClient.getListResponse("/api/vendors")}createVendor(){return this.nuviotClient.getFormResponse("/api/vendor/factory")}getVendor(t){return this.nuviotClient.getFormResponse(`/api/vendor/${t}`)}getActiveVendors(){return this.nuviotClient.getListResponse("/api/vendors/active")}addVendor(t){return this.nuviotClient.postWithResponse("/api/vendor",t)}updateVendor(t){return this.nuviotClient.updateWithResponse("/api/vendor",t)}saveVendor(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateVendor(t.model);{let n=yield e.addVendor(t.model);return n.successful&&(t.isEditing=!0),n}})()}getTransaction(t,e){return this.nuviotClient.request(`/api/account/${t}/transaction/${e}`)}addTransaction(t,e){return this.nuviotClient.postWithResponse(`/api/account/${t}/transaction`,e)}updateTransaction(t,e){return this.nuviotClient.updateWithResponse(`/api/account/${t}/transaction`,e)}voidTransaction(t,e){return this.nuviotClient.deleteWithResponse(`/api/account/${t}/transaction/${e}/void`)}createCalendarEvent(){return this.nuviotClient.getFormResponse("/api/calendar/event/factory")}getCalendarEvent(t){return this.nuviotClient.getFormResponse(`/api/calendar/event/${t}`)}addCalendarEvent(t){return this.nuviotClient.postWithResponse("/api/calendar/event",t)}updateCalendarEvent(t){return this.nuviotClient.updateWithResponse("/api/calendar/event",t)}getCalendarEventsForMonth(t,e){return this.nuviotClient.getListResponse(`/api/calendar/month/${t}/${e}`)}getCalendarEventsForWeek(t,e,n){return this.nuviotClient.getListResponse(`/api/calendar/week/${t}/${e}/${n}`)}getCalendarEventsForDay(t,e,n){return this.nuviotClient.getListResponse(`/api/calendar/day/${t}/${e}/${n}`)}getExpensesForMonth(t,e){return this.nuviotClient.getListResponse(`/api/expenses/${t}/${e}`)}getExpenseDetailsForMonthForCategory(t,e,n){return this.nuviotClient.getListResponse(`/api/expenses/${t}/${e}/category/${n}`)}getExpenseDetailsForYearForCategory(t,e){return this.nuviotClient.getListResponse(`/api/expenses/${t}/category/${e}`)}getExpensesSummariesForMonth(t,e){return this.nuviotClient.getListResponse(`/api/expenses/${t}/${e}/summary/category`)}getExpensesForYear(t){return this.nuviotClient.getListResponse(`/api/expenses/${t}`)}getExpensesSummariesForYear(t){return this.nuviotClient.getListResponse(`/api/expenses/${t}/summary/category`)}validatePhoneNumber(t){return this.nuviotClient.request(`/api/customer/contact/phone/${t}/verify`)}sendEmailAsync(t,e,n){return this.nuviotClient.postWithResponse(`/api/customer/${t}/${e}/email`,n)}getCustomerMetricsByIndustryNiche(t){return this.nuviotClient.request(`/api/customers/counts?onlytargetted=${t}`)}addSalesScriptDiscussion(t,e){var n=this;return z(function*(){let r=yield n.nuviotClient.request("/api/discussion/factory");return r.note=e,(yield n.nuviotClient.postWithResponse(`/api/sales/script/${t}/discussion`,r)).result})()}getEmailCommunicationsLog(t){var e=this;return z(function*(){return e.nuviotClient.getListResponse(`/api/customer/communications/email/${t}`)})()}addEmailTemplate(t){return this.nuviotClient.post("/api/sales/emailtemplate",t)}getEmailTemplates(){return this.nuviotClient.getListResponse("/api/sales/emailtemplates")}renderEmail(t){return this.nuviotClient.postWithResponse("/api/sales/emailtemplate/render",t)}sendTestEmail(t){return this.nuviotClient.post("/api/sales/emailtemplates/testsend",t)}getEmailTemplate(t){return this.nuviotClient.request(`/api/sales/emailtemplate/${t}`)}updateEmailTemplate(t){return this.nuviotClient.update("/api/sales/emailtemplate",t)}deleteEmailTemplate(t){return this.nuviotClient.delete(`/api/sales/emailtemplate/${t}`)}saveEmailTemplate(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateEmailTemplate(t.model);{let n=yield e.addEmailTemplate(t.model);return t.isEditing=!0,n}})()}createEmailTemplateLayout(){return this.nuviotClient.getFormResponse("/api/sales/emailtemplate/layout/factory")}addEmailTemplateLayout(t){return this.nuviotClient.post("/api/sales/emailtemplate/layout",t)}getEmailTemplateLayouts(){return this.nuviotClient.getListResponse("/api/sales/emailtemplate/layouts")}getEmailTemplateLayout(t){return this.nuviotClient.request(`/api/sales/emailtemplate/layout/${t}`)}updateEmailTemplateLayout(t){return this.nuviotClient.update("/api/sales/emailtemplate/layout",t)}deleteEmailTemplateLayout(t){return this.nuviotClient.delete(`/api/sales/emailtemplate/layout/${t}`)}saveEmailTemplateLayout(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateEmailTemplateLayout(t.model);{let n=yield e.addEmailTemplateLayout(t.model);return t.isEditing=!0,n}})()}createEmailTemplateColorPalette(){return this.nuviotClient.getFormResponse("/api/sales/emailtemplate/palette/factory")}addEmailTemplateColorPalette(t){return this.nuviotClient.post("/api/sales/emailtemplate/palette",t)}getEmailTemplateColorPalettes(){return this.nuviotClient.getListResponse("/api/sales/emailtemplate/palettes")}getEmailTemplateColorPalette(t){return this.nuviotClient.request(`/api/sales/emailtemplate/palette/${t}`)}updateEmailTemplateColorPalette(t){return this.nuviotClient.update("/api/sales/emailtemplate/palette",t)}deleteEmailTemplateColorPalette(t){return this.nuviotClient.delete(`/api/sales/emailtemplate/palette/${t}`)}saveEmailTemplateColorPalette(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateEmailTemplateColorPalette(t.model);{let n=yield e.addEmailTemplateColorPalette(t.model);return t.isEditing=!0,n}})()}createEmailTemplate(){return this.nuviotClient.getFormResponse("/api/sales/emailtemplate/factory")}getEmailTokenForm(){return this.nuviotClient.request("/api/sales/emailtemplate/tokenform/factory")}getSendEmailForm(){return this.nuviotClient.request("/api/email/send/factory")}sendEmail(t){return this.nuviotClient.post("/api/email/send",t)}refreshEmailLinks(t,e){var n=this;return z(function*(){return yield n.nuviotClient.postWithResponse("/api/email/refreshlinks",{body:t,pageLinks:e})})()}moveCustomer(t){return this.nuviotClient.post("/api/customer/move",t)}getIndustriesForOrgAsync(t){return this.nuviotClient.getListResponse(`/api/industries/org/${t}`)}getIndustryForOtherOrgAsync(t){return this.nuviotClient.request(`/api/industry/crossorg/${t}`)}createRecipient(){return this.nuviotClient.getFormResponse("/api/recipient/factory")}createContactIntake(t,e,n,r,o,a,s,l,d,f=null,y=null,k){let E="/api/public/contacts/intake?t=1";return t&&(E+=`&ons=${t}`),e&&(E+=`&o=${e}`),n&&(E+=`&l=${n}`),r&&(E+=`&c=${r}`),o&&(E+=`&p=${o}`),a&&(E+=`&i=${a}`),s&&(E+=`&n=${s}`),d&&(E+=`&ipr=${d}`),l&&(E+=`&npr=${l}`),f&&(E+=`&e=${f}`),y&&(E+=`&t=${y}`),k&&(E+=`&s=${k}`),this.nuviotClient.request(E)}saveContact(t){return this.nuviotClient.postWithResponse("/api/public/contact/intake",t)}getLandingPagesForIndustry(t){return this.nuviotClient.getListResponse(`/api/industry/${t}/landingpages`)}getLandingPagesForIndustryPersona(t,e){return this.nuviotClient.getListResponse(`/api/industry/${t}/persona/${e}/landingpages`)}getLandingPagesForIndustryNiche(t,e){return this.nuviotClient.getListResponse(`/api/industry/${t}/niche/${e}/landingpages`)}getLandingPagesForIndustryNichePersona(t,e,n){return this.nuviotClient.getListResponse(`/api/industry/${t}/niche/${e}/persona/${n}/landingpages`)}createPaymentProcessor(){return this.nuviotClient.getFormResponse("/api/paymentprocessor/factory")}getPaymentProcessors(){return this.nuviotClient.getListResponse("/api/paymentprocessors")}getPaymentProcessor(t){return this.nuviotClient.getFormResponse(`/api/paymentprocessor/${t}`)}addPaymentProcessor(t){return this.nuviotClient.post("/api/paymentprocessor",t)}updatePaymentProcessor(t){return this.nuviotClient.update("/api/paymentprocessor",t)}savePaymentProcessor(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updatePaymentProcessor(t.model);{let n=e.addPaymentProcessor(t.model);return(yield n).successful&&(t.isEditing=!0),n}})()}initApplePaySession(t,e){var n=this;return z(function*(){return n.nuviotClient.request(`/api/paymentprocessor/${t}/applepay/${e}/init`)})()}createCustomerOpportunity(){return this.nuviotClient.getFormResponse("/api/customer/opportunity/factory")}getCustomerOpportunities(){return this.nuviotClient.getListResponse("/api/customer/opportunities")}getOpportunitiesForCustomer(t){return this.nuviotClient.getListResponse(`/api/customer/${t}/opportunities`)}getCustomerOpportunity(t){return this.nuviotClient.getFormResponse(`/api/customer/opportunity/${t}`)}addCustomerOpportunity(t){return this.nuviotClient.post("/api/customer/opportunity",t)}updateCustomerOpportunity(t){return this.nuviotClient.update("/api/customer/opportunity",t)}saveCustomerOpportunity(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateCustomerOpportunity(t.model);{let n=e.addCustomerOpportunity(t.model);return(yield n).successful&&(t.isEditing=!0),n}})()}createCustomerOpportunityBlocker(){return this.nuviotClient.getFormResponse("/api/customer/opportunity/blocker/factory")}createCustomerOpportunityNextStep(){return this.nuviotClient.getFormResponse("/api/customer/opportunity/nextstep/factory")}getProposalPreview(t){return this.nuviotClient.request(`/api/business/proposal/${t}/preview`)}createProposal(){return this.nuviotClient.getFormResponse("/api/business/proposal/factory")}createProposalForCustomer(t){return this.nuviotClient.getFormResponse(`/api/business/proposal/${t}/factory`)}getAllProposals(){return this.nuviotClient.getListResponse("/api/business/proposals")}getProposalForCustomers(t){return this.nuviotClient.getListResponse(`/api/business/proposals/${t}`)}getProposal(t){return this.nuviotClient.getFormResponse(`/api/business/proposal/${t}`)}addProposal(t){return this.nuviotClient.post("/api/business/proposal",t)}updateProposal(t){return this.nuviotClient.update("/api/business/proposal",t)}saveProposal(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateProposal(t.model);{let n=e.addProposal(t.model);return(yield n).successful&&(t.isEditing=!0),n}})()}createProposalLineItem(t,e){return this.nuviotClient.getFormResponse(`/api/business/proposal/${t}/lineitem/${e}/factory`)}editProposalLineItem(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/business/proposal/lineitem/factory");return n.model=t,n.isEditing=!0,n})()}deleteProposal(t){return this.nuviotClient.delete(`/api/business/proposal/${t}`)}createProjection(){return this.nuviotClient.getFormResponse("/api/projection/factory")}createProductSale(){return this.nuviotClient.getFormResponse("/api/projection/product/factory")}createMonthlyProjection(){return this.nuviotClient.getFormResponse("/api/projection/month/factory")}getProjections(){return this.nuviotClient.getListResponse("/api/projections")}getProjection(t){return this.nuviotClient.getFormResponse(`/api/projection/${t}`)}addProjection(t){return this.nuviotClient.post("/api/projection",t)}calculateProjection(t){return this.nuviotClient.updateWithResponse("/api/projection/calculate",t)}updateProjection(t){return this.nuviotClient.update("/api/projection",t)}saveProjection(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateProjection(t.model);{let n=e.addProjection(t.model);return(yield n).successful&&(t.isEditing=!0),n}})()}addCapTable(t){return this.nuviotClient.post("/api/captable",t)}updateCapTable(t){return this.nuviotClient.update("/api/captable",t)}getCapTable(t){return this.nuviotClient.getFormResponse(`/api/captable/${t}`)}createCapTable(){return this.nuviotClient.getFormResponse("/api/captable/factory")}createShareHolder(){return this.nuviotClient.getFormResponse("/api/captable/shareholder/factory")}createCapTableTransaction(){return this.nuviotClient.request("/api/captable/transaction/factory")}getCapTableTransactionTypes(){return this.nuviotClient.request("/api/captable/transaction/types")}getCurrentUserDistributions(){return this.nuviotClient.getListResponse("/api/captable/distributions/my")}getUserDistributions(t,e){return this.nuviotClient.request(`/api/captable/${t}/distributions/${e}`)}saveCapTable(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateCapTable(t.model);{let n=e.addCapTable(t.model);return(yield n).successful&&(t.isEditing=!0),n}})()}getCapTables(){return this.nuviotClient.getListResponse("/api/captables")}addCapTableTransaction(t,e){return this.nuviotClient.post(`/api/captable/${t}/transaction`,e)}addShareHolder(t,e){return this.nuviotClient.post(`/api/captable/${t}/shareholder`,e)}updateShareHolder(t,e){return this.nuviotClient.update(`/api/captable/${t}shareholder`,e)}saveShareHolder(t,e){var n=this;return z(function*(){if(e.isEditing)return yield n.updateShareHolder(t,e.model);{let r=yield n.addShareHolder(t,e.model);return r.successful&&(e.isEditing=!0),r}})()}createSignedDocument(){return this.nuviotClient.getFormResponse("/api/business/signeddocument/factory")}addSignedDocument(t){return this.nuviotClient.post("/api/business/signeddocument",t)}updateSignedDocument(t){return this.nuviotClient.update("/api/business/signeddocument",t)}saveSignedDocument(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateSignedDocument(t.model);let n=e.addSignedDocument(t.model);return(yield n).successful&&(t.isEditing=!0),n})()}deleteSignedDocument(t){return this.nuviotClient.delete(`/api/business/signeddocument/${t}`)}getSignedDocument(t){return this.nuviotClient.getFormResponse(`/api/business/signeddocument/${t}`)}getSignedDocuments(){return this.nuviotClient.getListResponse("/api/business/signeddocuments")}getSignedDocumentsForCustomer(t,e){let n=`/api/business/signeddocuments/customer/${t}`;return e&&(n+=`?type=${e}`),this.nuviotClient.getListResponse(n)}getSignedDocumentsForAppUser(t){return this.nuviotClient.getListResponse(`/api/business/signeddocuments/appuser/${t}`)}createSignee(){return this.nuviotClient.getFormResponse("/api/business/signeddocument/signee/factory")}attachSignee(t,e){return this.nuviotClient.post(`/api/business/signeddocument/${t}/signee`,e)}updateSignee(t,e){return this.nuviotClient.updateWithResponse(`/api/business/signeddocument/${t}/signee`,e)}requestSignatures(t){return this.nuviotClient.request(`/api/business/signeddocument/${t}/signees/request`)}sentPinViaEmail(t,e){return this.nuviotClient.request(`/api/business/signeddocument/${t}/signee/${e}/pin/email/send`)}sentPinViaPhone(t,e){return this.nuviotClient.request(`/api/business/signeddocument/${t}/signee/${e}/pin/email/send`)}completeSignature(t,e){return this.nuviotClient.post(`/api/business/signeddocument/${t}/signee/complete`,e)}getDocumentToSign(t,e){return this.nuviotClient.request(`/api/business/signeddocument/${t}/signee/${e}/sign`)}createUserAgreement(t,e){return this.nuviotClient.postWithResponse(`/api/customer/useragreement/${t}/factory`,e)}createServicesAgreement(t,e){return this.nuviotClient.postWithResponse(`/api/customer/servicesagreement/${t}/factory`,e)}getSalesProcesses(){return this.nuviotClient.getListResponse("/api/sales/processes")}addSalesProcess(t){return this.nuviotClient.post("/api/sales/process",t)}updateSalesProcess(t){return this.nuviotClient.update("/api/sales/process",t)}getSalesProcess(t){return this.nuviotClient.getFormResponse(`/api/sales/process/${t}`)}deleteSalesProcess(t){return this.nuviotClient.delete(`/api/sales/process/${t}`)}createSalesProcess(){return this.nuviotClient.getFormResponse("/api/sales/process/factory")}createSalesProcessMileStone(){return this.nuviotClient.getFormResponse("/api/sales/process/milestone/factory")}saveSalesProcess(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateSalesProcess(t.model);{let n=e.addSalesProcess(t.model);return(yield n).successful&&(t.isEditing=!0),n}})()}getLandingPages(){return this.nuviotClient.getListResponse("/api/landingpages")}addLandingPage(t){return this.nuviotClient.post("/api/landingpage",t)}updateLandingPage(t){return this.nuviotClient.update("/api/landingpage",t)}getLandingPage(t){return this.nuviotClient.getFormResponse(`/api/landingpage/${t}`)}deleteLandingPage(t){return this.nuviotClient.delete(`/api/landingpage/${t}`)}createLandingPage(){return this.nuviotClient.getFormResponse("/api/landingpage/factory")}saveLandingPage(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateLandingPage(t.model);{let n=e.addLandingPage(t.model);return(yield n).successful&&(t.isEditing=!0),n}})()}getLandingPagePalettes(){return this.nuviotClient.getListResponse("/api/landingpage/palettes")}addLandingPagePalette(t){return this.nuviotClient.post("/api/landingpage/palette",t)}updateLandingPagePalette(t){return this.nuviotClient.update("/api/landingpage/palette",t)}getLandingPagePalette(t){return this.nuviotClient.getFormResponse(`/api/landingpage/palette/${t}`)}deleteLandingPagePalette(t){return this.nuviotClient.delete(`/api/landingpage/palette/${t}`)}createLandingPagePalette(){return this.nuviotClient.getFormResponse("/api/landingpage/palette/factory")}saveLandingPagePalette(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateLandingPagePalette(t.model);{let n=e.addLandingPagePalette(t.model);return(yield n).successful&&(t.isEditing=!0),n}})()}getProductPageLayouts(){return this.nuviotClient.getListResponse("/api/productpage/layouts")}addProductPageLayout(t){return this.nuviotClient.post("/api/productpage/layout",t)}updateProductPageLayout(t){return this.nuviotClient.update("/api/productpage/layout",t)}getProductPageLayout(t){return this.nuviotClient.getFormResponse(`/api/productpage/layout/${t}`)}deleteProductPageLayout(t){return this.nuviotClient.delete(`/api/productpage/layout/${t}`)}createProductPageLayout(){return this.nuviotClient.getFormResponse("/api/productpage/layout/factory")}saveProductPageLayout(t){var e=this;return z(function*(){if(t.isEditing)return yield e.addProductPageLayout(t.model);{let n=e.updateProductPageLayout(t.model);return(yield n).successful&&(t.isEditing=!0),n}})()}getLandingPageLayouts(){return this.nuviotClient.getListResponse("/api/landingpage/layouts")}addLandingPageLayout(t){return this.nuviotClient.post("/api/landingpage/layout",t)}updateLandingPageLayout(t){return this.nuviotClient.update("/api/landingpage/layout",t)}getLandingPageLayout(t){return this.nuviotClient.getFormResponse(`/api/landingpage/layout/${t}`)}deleteLandingPageLayout(t){return this.nuviotClient.delete(`/api/landingpage/layout/${t}`)}createLandingPageLayout(){return this.nuviotClient.getFormResponse("/api/landingpage/layout/factory")}saveLandingPageLayout(t){var e=this;return z(function*(){if(t.isEditing)return yield e.addLandingPageLayout(t.model);{let n=e.updateLandingPageLayout(t.model);return(yield n).successful&&(t.isEditing=!0),n}})()}getLandingPageMenus(){var t=this;return z(function*(){return yield t.nuviotClient.getListResponse("/api/landingpage/menus")})()}getLandingPageMenu(t){var e=this;return z(function*(){return yield e.nuviotClient.getFormResponse(`/api/landingpage/menu/${t}`)})()}createLandingPageMenu(){var t=this;return z(function*(){return yield t.nuviotClient.getFormResponse("/api/landingpage/menu/factory")})()}addLandingPageMenu(t){return this.nuviotClient.insert("/api/landingpage/menu",t)}updateLandingPageMenu(t){return this.nuviotClient.insert("/api/landingpage/menu",t)}deleteLandingPageMenu(t){return this.nuviotClient.delete(`/api/landingpage/menu/${t}`)}saveLandingPageMenu(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateLandingPageMenu(t.model);var n=yield e.addLandingPageMenu(t.model);return t.isEditing=!0,n})()}createPageLink(){return this.nuviotClient.getFormResponse("/api/pagelink/factory")}editPageLink(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/pagelink/factory");return n.model=t,n.isEditing=!0,n})()}static \u0275fac=function(e){return new(e||la)(Ee(An),Ee(co))};static \u0275prov=$e({token:la,factory:la.\u0275fac,providedIn:"root"})}let aS;try{aS=typeof Intl<"u"&&Intl.v8BreakIterator}catch{aS=!1}let _f,uo=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Fs(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&&!aS)&&typeof CSS<"u"&&!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 i.\u0275fac=function(e){return new(e||i)(Ee(dd))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const e6=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function t6(){if(_f)return _f;if("object"!=typeof document||!document)return _f=new Set(e6),_f;let i=document.createElement("input");return _f=new Set(e6.filter(t=>(i.setAttribute("type",t),i.type===t))),_f}let g_,Zu,sS;function Cc(i){return function sle(){if(null==g_&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>g_=!0}))}finally{g_=g_||!1}return g_}()?i:!!i.capture}function lle(){if(null==Zu){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Zu=!1,Zu;if("scrollBehavior"in document.documentElement.style)Zu=!0;else{const i=Element.prototype.scrollTo;Zu=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return Zu}function lS(i){if(function cle(){if(null==sS){const i=typeof document<"u"?document.head:null;sS=!(!i||!i.createShadowRoot&&!i.attachShadow)}return sS}()){const t=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function m_(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){const t=i.shadowRoot.activeElement;if(t===i)break;i=t}return i}function Vs(i){return i.composedPath?i.composedPath()[0]:i.target}function cS(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Ad(i,...t){return t.length?t.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}function dS(i,t=Xm){return Ne((e,n)=>{let r=null,o=null,a=null;const s=()=>{if(r){r.unsubscribe(),r=null;const d=o;o=null,n.next(d)}};function l(){const d=a+i,f=t.now();if(f{o=d,a=t.now(),r||(r=t.schedule(l,i),n.add(r))},()=>{s(),n.complete()},void 0,()=>{o=r=null}))})}function Ci(i){return null!=i&&"false"!=`${i}`}function th(i,t=0){return function ble(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}(i)?Number(i):t}function v_(i){return Array.isArray(i)?i:[i]}function Er(i){return null==i?"":"string"==typeof i?i:`${i}px`}function mr(i){return i instanceof Pt?i.nativeElement:i}let n6=(()=>{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),wle=(()=>{class i{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){const n=mr(e);return new S(r=>{const a=this._observeElement(n).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const n=new be,r=this._mutationObserverFactory.create(o=>n.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}}return i.\u0275fac=function(e){return new(e||i)(Ee(n6))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),uS=(()=>{class i{constructor(e,n,r){this._contentObserver=e,this._elementRef=n,this._ngZone=r,this.event=new Ae,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ci(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=th(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(dS(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(U(wle),U(Pt),U(Bt))},i.\u0275dir=it({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),i})(),hb=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[n6]}),i})();const i6=new Set;let vf,Dle=(()=>{class i{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):xle}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Mle(i){if(!i6.has(i))try{vf||(vf=document.createElement("style"),vf.setAttribute("type","text/css"),document.head.appendChild(vf)),vf.sheet&&(vf.sheet.insertRule(`@media ${i} {body{ }}`,0),i6.add(i))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return i.\u0275fac=function(e){return new(e||i)(Ee(uo))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function xle(i){return{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{}}}let kle=(()=>{class i{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new be}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return r6(v_(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Om(r6(v_(e)).map(a=>this._registerQuery(a).observable));return o=Wp(o.pipe(Xn(1)),o.pipe(L1(1),dS(0))),o.pipe(Ve(a=>{const s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:d})=>{s.matches=s.matches||l,s.breakpoints[d]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const n=this._mediaMatcher.matchMedia(e),o={observable:new S(a=>{const s=l=>this._zone.run(()=>a.next(l));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(cr(n),Ve(({matches:a})=>({query:e,matches:a})),Ot(this._destroySubject)),mql:n};return this._queries.set(e,o),o}}return i.\u0275fac=function(e){return new(e||i)(Ee(Dle),Ee(Bt))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function r6(i){return i.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}class s6 extends class Ele{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new be,this._typeaheadSubscription=D.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new be,this.change=new be,t instanceof cd&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ir(e=>this._pressedLetters.push(e)),dS(t),Oi(()=>this._pressedLetters.length>0),Ve(()=>this._pressedLetters.join(""))).subscribe(e=>{const n=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Ad(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t);this._activeItem=e[n]??null,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof cd?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let pb=(()=>{class i{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Ile(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const n=function Ale(i){try{return i.frameElement}catch{return null}}(function Vle(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(e));if(n&&(-1===c6(n)||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),o=c6(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function Nle(i){let t=i.nodeName.toLowerCase(),e="input"===t&&i.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,n){return function Ble(i){return!function Ple(i){return function Lle(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function Fle(i){let t=i.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(i)||function Rle(i){return function Ole(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||l6(i))}(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}}return i.\u0275fac=function(e){return new(e||i)(Ee(uo))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function l6(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;let t=i.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function c6(i){if(!l6(i))return null;const t=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class Hle{constructor(t,e,n,r,o=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.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)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return n?.focus(t),!!n}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let n=0;n=0;n--){const r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Xn(1)).subscribe(t)}}let fb=(()=>{class i{constructor(e,n,r){this._checker=e,this._ngZone=n,this._document=r}create(e,n=!1){return new Hle(e,this._checker,this._ngZone,this._document,n)}}return i.\u0275fac=function(e){return new(e||i)(Ee(pb),Ee(Bt),Ee(Wt))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Yle=(()=>{class i{constructor(e,n,r){this._elementRef=e,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=Ci(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Ci(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=m_(),this.focusTrap.focusInitialElementWhenReady()}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(fb),U(Wt))},i.\u0275dir=it({type:i,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[_i]}),i})();function gb(i){return 0===i.buttons||0===i.offsetX&&0===i.offsetY}function mb(i){const t=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const Ule=new nt("cdk-input-modality-detector-options"),jle={ignoreKeys:[18,17,224,91,16]},yf=Cc({passive:!0,capture:!0});let $le=(()=>{class i{constructor(e,n,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new $i(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Vs(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(gb(a)?"keyboard":"mouse"),this._mostRecentTarget=Vs(a))},this._onTouchstart=a=>{mb(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Vs(a))},this._options={...jle,...o},this.modalityDetected=this._modality.pipe(L1(1)),this.modalityChanged=this.modalityDetected.pipe(rf()),e.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,yf),r.addEventListener("mousedown",this._onMousedown,yf),r.addEventListener("touchstart",this._onTouchstart,yf)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,yf),document.removeEventListener("mousedown",this._onMousedown,yf),document.removeEventListener("touchstart",this._onTouchstart,yf))}}return i.\u0275fac=function(e){return new(e||i)(Ee(uo),Ee(Bt),Ee(Wt),Ee(Ule,8))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Wle=new nt("cdk-focus-monitor-default-options"),_b=Cc({passive:!0,capture:!0});let Id=(()=>{class i{constructor(e,n,r,o,a){this._ngZone=e,this._platform=n,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new be,this._rootNodeFocusAndBlurListener=s=>{for(let d=Vs(s);d;d=d.parentElement)"focus"===s.type?this._onFocus(s,d):this._onBlur(s,d)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(e,n=!1){const r=mr(e);if(!this._platform.isBrowser||1!==r.nodeType)return At(null);const o=lS(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return n&&(a.checkChildren=!0),a.subject;const s={checkChildren:n,subject:new be,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const n=mr(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){const o=mr(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,n,l)):(this._setOrigin(n),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused","touch"===n),e.classList.toggle("cdk-keyboard-focused","keyboard"===n),e.classList.toggle("cdk-mouse-focused","mouse"===n),e.classList.toggle("cdk-program-focused","program"===n)}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&n,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,n){const r=this._elementInfo.get(n),o=Vs(e);!r||!r.checkChildren&&n!==o||this._originChanged(n,this._getFocusOrigin(o),r)}_onBlur(e,n){const r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,_b),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,_b)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ot(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){const r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,_b),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,_b),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){const n=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&n.push([o,r])}),n}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!n||n===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let a=0;a{class i{constructor(e,n){this._elementRef=e,this._focusMonitor=n,this._focusOrigin=null,this.cdkFocusChange=new Ae}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(Id))},i.\u0275dir=it({type:i,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),i})();const h6="cdk-high-contrast-black-on-white",p6="cdk-high-contrast-white-on-black",hS="cdk-high-contrast-active";let f6=(()=>{class i{constructor(e,n){this._platform=e,this._document=n,this._breakpointSubscription=Hi(kle).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(hS,h6,p6),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();1===n?e.add(hS,h6):2===n&&e.add(hS,p6)}}}return i.\u0275fac=function(e){return new(e||i)(Ee(uo),Ee(Wt))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),pS=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return i.\u0275fac=function(e){return new(e||i)(Ee(f6))},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[hb]}),i})();class fS{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class y_ extends fS{constructor(t,e,n,r){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r}}class vb extends fS{constructor(t,e,n,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Gle extends fS{constructor(t){super(),this.element=t instanceof Pt?t.nativeElement:t}}class gS{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof y_?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof vb?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Gle?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class qle extends gS{constructor(t,e,n,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=a=>{const s=a.element,l=this._document.createComment("dom-portal");s.parentNode.insertBefore(l,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(s,l)})},this._document=o}attachComponentPortal(t){const n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(n,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=n.create(t.injector||this._defaultInjector||Li.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);-1!==r&&e.remove(r)}),this._attachedPortal=t,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Fd=(()=>{class i extends gS{constructor(e,n,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new Ae,this.attachDomPortal=o=>{const a=o.element,s=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=n.createComponent(o,n.length,e.injector||n.injector);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return i.\u0275fac=function(e){return new(e||i)(U(Jl),U(Mr),U(Wt))},i.\u0275dir=it({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[st]}),i})(),bf=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({}),i})();const Kle=new nt("cdk-dir-doc",{providedIn:"root",factory:function Zle(){return Hi(Wt)}}),Qle=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Do=(()=>{class i{constructor(e){if(this.value="ltr",this.change=new Ae,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function Xle(i){const t=i?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?Qle.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return i.\u0275fac=function(e){return new(e||i)(Ee(Kle,8))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),b_=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({}),i})();const ece=new nt("mat-sanity-checks",{providedIn:"root",factory:function Jle(){return!0}});let _r=(()=>{class i{constructor(e,n,r){this._sanityChecks=n,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!cS()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return i.\u0275fac=function(e){return new(e||i)(Ee(f6),Ee(ece,8),Ee(Wt))},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[b_,b_]}),i})();function C_(i){return class extends i{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Ci(t)}}}function Cf(i,t){return class extends i{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const n=e||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}}}function yb(i){return class extends i{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ci(t)}}}function nce(i){return class extends i{constructor(...t){super(...t),this.errorState=!1}updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}}}const _6=new nt("MAT_DATE_LOCALE",{providedIn:"root",factory:function ice(){return Hi(_l)}});class ho{constructor(){this._localeChanges=new be,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),r=this.isValid(e);return n&&r?!this.compareDate(t,e):n==r}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const nh=new nt("mat-date-formats");let v6=(()=>{class i{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class rce{constructor(t,e,n,r=!1){this._renderer=t,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const y6={enterDuration:225,exitDuration:150},mS=Cc({passive:!0}),b6=["mousedown","touchstart"],C6=["mouseup","mouseleave","touchend","touchcancel"];class ace{constructor(t,e,n,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=mr(n))}fadeInRipple(t,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...y6,...n.animation};n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const a=n.radius||function sce(i,t,e){const n=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(n*n+r*r)}(t,e,r),s=t-r.left,l=e-r.top,d=o.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=s-a+"px",f.style.top=l-a+"px",f.style.height=2*a+"px",f.style.width=2*a+"px",null!=n.color&&(f.style.backgroundColor=n.color),f.style.transitionDuration=`${d}ms`,this._containerElement.appendChild(f);const y=window.getComputedStyle(f),E=y.transitionDuration,W="none"===y.transitionProperty||"0s"===E||"0s, 0s"===E,ee=new rce(this,f,n,W);f.style.transform="scale3d(1, 1, 1)",ee.state=0,n.persistent||(this._mostRecentTransientRipple=ee);let he=null;return!W&&(d||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ge=()=>this._finishRippleTransition(ee),Ce=()=>this._destroyRipple(ee);f.addEventListener("transitionend",ge),f.addEventListener("transitioncancel",Ce),he={onTransitionEnd:ge,onTransitionCancel:Ce}}),this._activeRipples.set(ee,he),(W||!d)&&this._finishRippleTransition(ee),ee}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,n={...y6,...t.config.animation};e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=mr(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(b6))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(C6),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:n}=t.config;t.state=1,!n&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==e&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=gb(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,mS)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(b6.forEach(t=>{this._triggerElement.removeEventListener(t,this,mS)}),this._pointerUpEventsRegistered&&C6.forEach(t=>{this._triggerElement.removeEventListener(t,this,mS)}))}}const lce=new nt("mat-ripple-global-options");let wf=(()=>{class i{constructor(e,n,r,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new ace(this,n,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,n=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,n,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(Bt),U(uo),U(lce,8),U(oa,8))},i.\u0275dir=it({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,n){2&e&&Zt("mat-ripple-unbounded",n.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),i})(),bb=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[_r,_r]}),i})();class w6{}const wc="*";function Pd(i,t){return{type:7,name:i,definitions:t,options:{}}}function jo(i,t=null){return{type:4,styles:t,timings:i}}function D6(i,t=null){return{type:3,steps:i,options:t}}function M6(i,t=null){return{type:2,steps:i,options:t}}function Ni(i){return{type:6,styles:i,offset:null}}function Ja(i,t,e){return{type:0,name:i,styles:t,options:e}}function x6(i){return{type:5,steps:i}}function $o(i,t,e=null){return{type:1,expr:i,animation:t,options:e}}function k6(i=null){return{type:9,options:i}}function T6(i,t,e=null){return{type:11,selector:i,animation:t,options:e}}function S6(i){Promise.resolve().then(i)}class D_{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){S6(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class E6{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const o=this.players.length;0==o?S6(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++n==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(r)})}getPosition(){const t=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const M_={schedule(i){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:n}=M_;n&&(t=n.requestAnimationFrame,e=n.cancelAnimationFrame);const r=t(o=>{e=void 0,i(o)});return new D(()=>e?.(r))},requestAnimationFrame(...i){const{delegate:t}=M_;return(t?.requestAnimationFrame||requestAnimationFrame)(...i)},cancelAnimationFrame(...i){const{delegate:t}=M_;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...i)},delegate:void 0},A6=new class uce extends PT{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;t=t||n.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=n[0])&&t.id===e&&n.shift());if(this._active=!1,r){for(;(t=n[0])&&t.id===e&&n.shift();)t.unsubscribe();throw r}}}(class dce extends FT{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t._scheduled||(t._scheduled=M_.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(t,e,n);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(M_.cancelAnimationFrame(e),t._scheduled=void 0)}});let vS,hce=1;const Cb={};function I6(i){return i in Cb&&(delete Cb[i],!0)}const pce={setImmediate(i){const t=hce++;return Cb[t]=!0,vS||(vS=Promise.resolve()),vS.then(()=>I6(t)&&i()),t},clearImmediate(i){I6(i)}},{setImmediate:fce,clearImmediate:gce}=pce,wb={setImmediate(...i){const{delegate:t}=wb;return(t?.setImmediate||fce)(...i)},clearImmediate(i){const{delegate:t}=wb;return(t?.clearImmediate||gce)(i)},delegate:void 0},yS=new class _ce extends PT{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;t=t||n.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=n[0])&&t.id===e&&n.shift());if(this._active=!1,r){for(;(t=n[0])&&t.id===e&&n.shift();)t.unsubscribe();throw r}}}(class mce extends FT{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t._scheduled||(t._scheduled=wb.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(t,e,n);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(wb.clearImmediate(e),t._scheduled===e&&(t._scheduled=void 0))}});function F6(i,t=Xm){return function vce(i){return Ne((t,e)=>{let n=!1,r=null,o=null,a=!1;const s=()=>{if(o?.unsubscribe(),o=null,n){n=!1;const d=r;r=null,e.next(d)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};t.subscribe(Ye(e,d=>{n=!0,r=d,o||kn(i(d)).subscribe(o=Ye(e,s,l))},()=>{a=!0,(!n||!o||o.closed)&&e.complete()}))})}(()=>Bu(i,t))}let P6=(()=>{class i{constructor(e,n,r){this._ngZone=e,this._platform=n,this._scrolled=new be,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new S(n=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(F6(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):At()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(Oi(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const n=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&n.push(o)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,n){let r=mr(n),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>yn(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return i.\u0275fac=function(e){return new(e||i)(Ee(Bt),Ee(uo),Ee(Wt,8))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Df=(()=>{class i{constructor(e,n,r){this._platform=e,this._change=new be,this._changeListener=o=>{this._change.next(o)},this._document=r,n.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,n=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||n.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||n.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(F6(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return i.\u0275fac=function(e){return new(e||i)(Ee(uo),Ee(Bt),Ee(Wt,8))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ih=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({}),i})(),R6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[b_,ih,b_,ih]}),i})();function Cce(i,t){1&i&&Ei(0)}const L6=["*"];function wce(i,t){}const Dce=function(i){return{animationDuration:i}},Mce=function(i,t){return{value:i,params:t}},xce=["tabListContainer"],kce=["tabList"],Tce=["tabListInner"],Sce=["nextPaginator"],Ece=["previousPaginator"],Ace=["tabBodyWrapper"],Ice=["tabHeader"];function Fce(i,t){}function Pce(i,t){1&i&&w(0,Fce,0,0,"ng-template",10),2&i&&p("cdkPortalOutlet",g().$implicit.templateLabel)}function Rce(i,t){1&i&&m(0),2&i&&Re(g().$implicit.textLabel)}function Lce(i,t){if(1&i){const e=pe();u(0,"div",6),N("click",function(){const r=R(e),o=r.$implicit,a=r.index,s=g(),l=No(1);return L(s._handleClick(o,l,a))})("cdkFocusChange",function(r){const a=R(e).index;return L(g()._tabFocusChanged(r,a))}),u(1,"div",7),w(2,Pce,1,1,"ng-template",8),w(3,Rce,1,1,"ng-template",null,9,Vo),c()()}if(2&i){const e=t.$implicit,n=t.index,r=No(4),o=g();Zt("mat-tab-label-active",o.selectedIndex===n),p("id",o._getTabLabelId(n))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||o.disableRipple),mt("tabIndex",o._getTabIndex(e,n))("aria-posinset",n+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(n))("aria-selected",o.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),h(2),p("ngIf",e.templateLabel)("ngIfElse",r)}}function Oce(i,t){if(1&i){const e=pe();u(0,"mat-tab-body",11),N("_onCentered",function(){return R(e),L(g()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return R(e),L(g()._setTabBodyWrapperHeight(r))}),c()}if(2&i){const e=t.$implicit,n=t.index,r=g();Zt("mat-tab-body-active",r.selectedIndex===n),p("id",r._getTabContentId(n))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),mt("tabindex",null!=r.contentTabIndex&&r.selectedIndex===n?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(n))}}const Nce=new nt("MatInkBarPositioner",{providedIn:"root",factory:function Bce(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let O6=(()=>{class i{constructor(e,n,r,o){this._elementRef=e,this._ngZone=n,this._inkBarPositioner=r,this._animationMode=o}alignToElement(e){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe(Xn(1)).subscribe(()=>{const n=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=n.left,r.style.width=n.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(Bt),U(Nce),U(oa,8))},i.\u0275dir=it({type:i,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,n){2&e&&Zt("_mat-animation-noopable","NoopAnimations"===n._animationMode)}}),i})();const Vce=new nt("MatTabContent"),Hce=new nt("MatTabLabel"),Yce=new nt("MAT_TAB"),Uce=C_(class{}),N6=new nt("MAT_TAB_GROUP");let B6=(()=>{class i extends Uce{constructor(e,n){super(),this._viewContainerRef=e,this._closestTabGroup=n,this.textLabel="",this._contentPortal=null,this._stateChanges=new be,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new vb(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return i.\u0275fac=function(e){return new(e||i)(U(Mr),U(N6,8))},i.\u0275cmp=Be({type:i,selectors:[["mat-tab"]],contentQueries:function(e,n,r){if(1&e&&(En(r,Hce,5),En(r,Vce,7,Ui)),2&e){let o;pt(o=ft())&&(n.templateLabel=o.first),pt(o=ft())&&(n._explicitContent=o.first)}},viewQuery:function(e,n){if(1&e&&un(Ui,7),2&e){let r;pt(r=ft())&&(n._implicitContent=r.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[Pn([{provide:Yce,useExisting:i}]),st,_i],ngContentSelectors:L6,decls:1,vars:0,template:function(e,n){1&e&&(ro(),w(0,Cce,1,0,"ng-template"))},encapsulation:2}),i})();const jce={translateTab:Pd("translateTab",[Ja("center, void, left-origin-center, right-origin-center",Ni({transform:"none"})),Ja("left",Ni({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Ja("right",Ni({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),$o("* => left, * => right, left => center, right => center",jo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),$o("void => left-origin-center",[Ni({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),jo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),$o("void => right-origin-center",[Ni({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),jo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let $ce=(()=>{class i extends Fd{constructor(e,n,r,o){super(e,n,o),this._host=r,this._centeringSub=D.EMPTY,this._leavingSub=D.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(cr(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(U(Jl),U(Mr),U(Fn(()=>V6)),U(Wt))},i.\u0275dir=it({type:i,selectors:[["","matTabBodyHost",""]],features:[st]}),i})(),zce=(()=>{class i{constructor(e,n,r){this._elementRef=e,this._dir=n,this._dirChangeSubscription=D.EMPTY,this._translateTabComplete=new be,this._onCentering=new Ae,this._beforeCentering=new Ae,this._afterLeavingCenter=new Ae,this._onCentered=new Ae(!0),this.animationDuration="500ms",this.preserveContent=!1,n&&(this._dirChangeSubscription=n.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(rf((o,a)=>o.fromState===a.fromState&&o.toState===a.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const n=this._isCenterPosition(e.toState);this._beforeCentering.emit(n),n&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const n=this._getLayoutDirection();return"ltr"==n&&e<=0||"rtl"==n&&e>0?"left-origin-center":"right-origin-center"}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(Do,8),U(ui))},i.\u0275dir=it({type:i,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),i})(),V6=(()=>{class i extends zce{constructor(e,n,r){super(e,n,r)}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(Do,8),U(ui))},i.\u0275cmp=Be({type:i,selectors:[["mat-tab-body"]],viewQuery:function(e,n){if(1&e&&un(Fd,5),2&e){let r;pt(r=ft())&&(n._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[st],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,n){1&e&&(u(0,"div",0,1),N("@translateTab.start",function(o){return n._onTranslateTabStarted(o)})("@translateTab.done",function(o){return n._translateTabComplete.next(o)}),w(2,wce,0,0,"ng-template",2),c()),2&e&&p("@translateTab",yi(3,Mce,n._position,Ct(1,Dce,n.animationDuration)))},dependencies:[$ce],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[jce.translateTab]}}),i})();const H6=new nt("MAT_TABS_CONFIG"),Wce=C_(class{});let Y6=(()=>{class i extends Wce{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return i.\u0275fac=function(e){return new(e||i)(U(Pt))},i.\u0275dir=it({type:i,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,n){2&e&&(mt("aria-disabled",!!n.disabled),Zt("mat-tab-disabled",n.disabled))},inputs:{disabled:"disabled"},features:[st]}),i})();const U6=Cc({passive:!0});let Kce=(()=>{class i{constructor(e,n,r,o,a,s,l){this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=r,this._dir=o,this._ngZone=a,this._platform=s,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new be,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new be,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ae,this.indexFocused=new Ae,a.runOutsideAngular(()=>{yn(e.nativeElement,"mouseleave").pipe(Ot(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ci(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=th(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){yn(this._previousPaginator.nativeElement,"touchstart",U6).pipe(Ot(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),yn(this._nextPaginator.nativeElement,"touchstart",U6).pipe(Ot(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:At("ltr"),n=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new s6(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(Xn(1)).subscribe(r),jr(e,n,this._items.changes,this._itemsResized()).pipe(Ot(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Ot(this._destroyed)).subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?Fr:this._items.changes.pipe(cr(this._items),so(e=>new S(n=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(()=>{n.next()});return e.forEach(o=>{r.observe(o.elementRef.nativeElement)}),()=>{r.disconnect()}}))),L1(1))}ngAfterContentChecked(){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())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Ad(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const n=this._items?this._items.toArray()[e]:null;return!!n&&!n.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const n=this._tabListContainer.nativeElement;n.scrollLeft="ltr"==this._getLayoutDirection()?0:n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,n="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const n=this._items?this._items.toArray()[e]:null;if(!n)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=n.elementRef.nativeElement;let s,l;"ltr"==this._getLayoutDirection()?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);const d=this.scrollDistance,f=this.scrollDistance+r;sf&&(this.scrollDistance+=l-f+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&null!=n.button&&0!==n.button||(this._stopInterval(),Bu(650,100).pipe(Ot(jr(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(ui),U(Df),U(Do,8),U(Bt),U(uo),U(oa,8))},i.\u0275dir=it({type:i,inputs:{disablePagination:"disablePagination"}}),i})(),Zce=(()=>{class i extends Kce{constructor(e,n,r,o,a,s,l){super(e,n,r,o,a,s,l),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ci(e)}_itemSelected(e){e.preventDefault()}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(ui),U(Df),U(Do,8),U(Bt),U(uo),U(oa,8))},i.\u0275dir=it({type:i,inputs:{disableRipple:"disableRipple"},features:[st]}),i})(),Qce=(()=>{class i extends Zce{constructor(e,n,r,o,a,s,l){super(e,n,r,o,a,s,l)}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(ui),U(Df),U(Do,8),U(Bt),U(uo),U(oa,8))},i.\u0275cmp=Be({type:i,selectors:[["mat-tab-header"]],contentQueries:function(e,n,r){if(1&e&&En(r,Y6,4),2&e){let o;pt(o=ft())&&(n._items=o)}},viewQuery:function(e,n){if(1&e&&(un(O6,7),un(xce,7),un(kce,7),un(Tce,7),un(Sce,5),un(Ece,5)),2&e){let r;pt(r=ft())&&(n._inkBar=r.first),pt(r=ft())&&(n._tabListContainer=r.first),pt(r=ft())&&(n._tabList=r.first),pt(r=ft())&&(n._tabListInner=r.first),pt(r=ft())&&(n._nextPaginator=r.first),pt(r=ft())&&(n._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,n){2&e&&Zt("mat-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[st],ngContentSelectors:L6,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","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"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,n){1&e&&(ro(),u(0,"button",0,1),N("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(o){return n._handlePaginatorPress("before",o)})("touchend",function(){return n._stopInterval()}),H(2,"div",2),c(),u(3,"div",3,4),N("keydown",function(o){return n._handleKeydown(o)}),u(5,"div",5,6),N("cdkObserveContent",function(){return n._onContentChanges()}),u(7,"div",7,8),Ei(9),c(),H(10,"mat-ink-bar"),c()(),u(11,"button",9,10),N("mousedown",function(o){return n._handlePaginatorPress("after",o)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),H(13,"div",2),c()),2&e&&(Zt("mat-tab-header-pagination-disabled",n._disableScrollBefore),p("matRippleDisabled",n._disableScrollBefore||n.disableRipple)("disabled",n._disableScrollBefore||null),h(5),Zt("_mat-animation-noopable","NoopAnimations"===n._animationMode),h(6),Zt("mat-tab-header-pagination-disabled",n._disableScrollAfter),p("matRippleDisabled",n._disableScrollAfter||n.disableRipple)("disabled",n._disableScrollAfter||null))},dependencies:[wf,uS,O6],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.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;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-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.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-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.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}.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}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),i})(),Xce=0;class Jce{}const ede=Cf(yb(class{constructor(i){this._elementRef=i}}),"primary");let tde=(()=>{class i extends ede{constructor(e,n,r,o){super(e),this._changeDetectorRef=n,this._animationMode=o,this._tabs=new cd,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=D.EMPTY,this._tabLabelSubscription=D.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Ae,this.focusChange=new Ae,this.animationDone=new Ae,this.selectedTabChange=new Ae(!0),this._groupId=Xce++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Ci(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=th(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=th(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Ci(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Ci(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const n=this._elementRef.nativeElement;n.classList.remove(`mat-background-${this.backgroundColor}`),e&&n.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const n=null==this._selectedIndex;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,r)=>{n.position=r-e,null!=this._selectedIndex&&0==n.position&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const n=this._tabs.toArray();let r;for(let o=0;o{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(cr(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const n=new Jce;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=jr(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,n,r){e.disabled||(this.selectedIndex=n.focusIndex=r)}_getTabIndex(e,n){return e.disabled?null:n===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,n){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=n)}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(ui),U(H6,8),U(oa,8))},i.\u0275dir=it({type:i,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[st]}),i})(),nde=(()=>{class i extends tde{constructor(e,n,r,o){super(e,n,r,o)}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(ui),U(H6,8),U(oa,8))},i.\u0275cmp=Be({type:i,selectors:[["mat-tab-group"]],contentQueries:function(e,n,r){if(1&e&&En(r,B6,5),2&e){let o;pt(o=ft())&&(n._allTabs=o)}},viewQuery:function(e,n){if(1&e&&(un(Ace,5),un(Ice,5)),2&e){let r;pt(r=ft())&&(n._tabBodyWrapper=r.first),pt(r=ft())&&(n._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,n){2&e&&Zt("mat-tab-group-dynamic-height",n.dynamicHeight)("mat-tab-group-inverted-header","below"===n.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Pn([{provide:N6,useExisting:i}]),st],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","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,n){1&e&&(u(0,"mat-tab-header",0,1),N("indexFocused",function(o){return n._focusChanged(o)})("selectFocusedIndex",function(o){return n.selectedIndex=o}),w(2,Lce,5,15,"div",2),c(),u(3,"div",3,4),w(5,Oce,1,11,"mat-tab-body",5),c()),2&e&&(p("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),h(2),p("ngForOf",n._tabs),h(1),Zt("_mat-animation-noopable","NoopAnimations"===n._animationMode),h(2),p("ngForOf",n._tabs))},dependencies:[Zi,jt,ct,Fd,wf,u6,Y6,V6,Qce],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}.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-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.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}"],encapsulation:2}),i})(),$6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[ki,_r,bf,bb,hb,pS,_r]}),i})();function z6(i,t,e){let n,r=!1;return i&&"object"==typeof i?({bufferSize:n=1/0,windowTime:t=1/0,refCount:r=!1,scheduler:e}=i):n=i??1/0,yg({connector:()=>new Gt(n,t,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function ide(i,t){}const Db=()=>{const i=typeof window<"u"?window:void 0;return i&&i.tinymce?i.tinymce:null};let rde=(()=>{class i{constructor(){this.onBeforePaste=new Ae,this.onBlur=new Ae,this.onClick=new Ae,this.onContextMenu=new Ae,this.onCopy=new Ae,this.onCut=new Ae,this.onDblclick=new Ae,this.onDrag=new Ae,this.onDragDrop=new Ae,this.onDragEnd=new Ae,this.onDragGesture=new Ae,this.onDragOver=new Ae,this.onDrop=new Ae,this.onFocus=new Ae,this.onFocusIn=new Ae,this.onFocusOut=new Ae,this.onKeyDown=new Ae,this.onKeyPress=new Ae,this.onKeyUp=new Ae,this.onMouseDown=new Ae,this.onMouseEnter=new Ae,this.onMouseLeave=new Ae,this.onMouseMove=new Ae,this.onMouseOut=new Ae,this.onMouseOver=new Ae,this.onMouseUp=new Ae,this.onPaste=new Ae,this.onSelectionChange=new Ae,this.onActivate=new Ae,this.onAddUndo=new Ae,this.onBeforeAddUndo=new Ae,this.onBeforeExecCommand=new Ae,this.onBeforeGetContent=new Ae,this.onBeforeRenderUI=new Ae,this.onBeforeSetContent=new Ae,this.onChange=new Ae,this.onClearUndos=new Ae,this.onDeactivate=new Ae,this.onDirty=new Ae,this.onExecCommand=new Ae,this.onGetContent=new Ae,this.onHide=new Ae,this.onInit=new Ae,this.onInitNgModel=new Ae,this.onLoadContent=new Ae,this.onNodeChange=new Ae,this.onPostProcess=new Ae,this.onPostRender=new Ae,this.onPreInit=new Ae,this.onPreProcess=new Ae,this.onProgressState=new Ae,this.onRedo=new Ae,this.onRemove=new Ae,this.onReset=new Ae,this.onResizeEditor=new Ae,this.onSaveContent=new Ae,this.onSetAttrib=new Ae,this.onObjectResizeStart=new Ae,this.onObjectResized=new Ae,this.onObjectSelected=new Ae,this.onSetContent=new Ae,this.onShow=new Ae,this.onSubmit=new Ae,this.onUndo=new Ae,this.onVisualAid=new Ae}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=it({type:i,outputs:{onBeforePaste:"onBeforePaste",onBlur:"onBlur",onClick:"onClick",onContextMenu:"onContextMenu",onCopy:"onCopy",onCut:"onCut",onDblclick:"onDblclick",onDrag:"onDrag",onDragDrop:"onDragDrop",onDragEnd:"onDragEnd",onDragGesture:"onDragGesture",onDragOver:"onDragOver",onDrop:"onDrop",onFocus:"onFocus",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onKeyDown:"onKeyDown",onKeyPress:"onKeyPress",onKeyUp:"onKeyUp",onMouseDown:"onMouseDown",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave",onMouseMove:"onMouseMove",onMouseOut:"onMouseOut",onMouseOver:"onMouseOver",onMouseUp:"onMouseUp",onPaste:"onPaste",onSelectionChange:"onSelectionChange",onActivate:"onActivate",onAddUndo:"onAddUndo",onBeforeAddUndo:"onBeforeAddUndo",onBeforeExecCommand:"onBeforeExecCommand",onBeforeGetContent:"onBeforeGetContent",onBeforeRenderUI:"onBeforeRenderUI",onBeforeSetContent:"onBeforeSetContent",onChange:"onChange",onClearUndos:"onClearUndos",onDeactivate:"onDeactivate",onDirty:"onDirty",onExecCommand:"onExecCommand",onGetContent:"onGetContent",onHide:"onHide",onInit:"onInit",onInitNgModel:"onInitNgModel",onLoadContent:"onLoadContent",onNodeChange:"onNodeChange",onPostProcess:"onPostProcess",onPostRender:"onPostRender",onPreInit:"onPreInit",onPreProcess:"onPreProcess",onProgressState:"onProgressState",onRedo:"onRedo",onRemove:"onRemove",onReset:"onReset",onResizeEditor:"onResizeEditor",onSaveContent:"onSaveContent",onSetAttrib:"onSetAttrib",onObjectResizeStart:"onObjectResizeStart",onObjectResized:"onObjectResized",onObjectSelected:"onObjectSelected",onSetContent:"onSetContent",onShow:"onShow",onSubmit:"onSubmit",onUndo:"onUndo",onVisualAid:"onVisualAid"}}),i})();const W6=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onResizeEditor","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],Mb=(i,t,e)=>yn(i,t).pipe(Ot(e)),G6=(i,t)=>"string"==typeof i?i.split(",").map(e=>e.trim()):Array.isArray(i)?i:t;let q6=0;const K6=i=>typeof i<"u"&&"textarea"===i.tagName.toLowerCase(),Z6=i=>typeof i>"u"||""===i?[]:Array.isArray(i)?i:i.split(" "),lde=(i,t)=>Z6(i).concat(Z6(t)),cde=()=>{},Q6=i=>null==i,dde=(()=>{let i={script$:null};return{load:(n,r)=>i.script$||(i.script$=Nm(()=>{const o=n.createElement("script");return o.referrerPolicy="origin",o.type="application/javascript",o.src=r,n.head.appendChild(o),yn(o,"load").pipe(Xn(1),c1(void 0))}).pipe(z6({bufferSize:1,refCount:!0}))),reinitialize:()=>{i={script$:null}}}})(),ude=new nt("TINYMCE_SCRIPT_SRC"),hde={provide:sa,useExisting:Fn(()=>Rd),multi:!0};let Rd=(()=>{class i extends rde{constructor(e,n,r,o){super(),this.platformId=r,this.tinymceScriptSrc=o,this.cloudChannel="6",this.apiKey="no-api-key",this.id="",this.modelEvents="change input undo redo",this.onTouchedCallback=cde,this.destroy$=new be,this.initialise=()=>{const a={...this.init,selector:void 0,target:this._element,inline:this.inline,readonly:this.disabled,plugins:lde(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:s=>{this._editor=s,Mb(s,"init",this.destroy$).subscribe(()=>{this.initEditor(s)}),((i,t,e)=>{(i=>{const t=G6(i.ignoreEvents,[]);return G6(i.allowedEvents,W6).filter(n=>W6.includes(n)&&!t.includes(n))})(i).forEach(r=>{const o=i[r];Mb(t,r.substring(2),e).subscribe(a=>{o.observers.length>0&&i.ngZone.run(()=>o.emit({event:a,editor:t}))})})})(this,s,this.destroy$),this.init&&"function"==typeof this.init.setup&&this.init.setup(s)}};K6(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{Db().init(a)})},this._elementRef=e,this.ngZone=n}set disabled(e){this._disabled=e,this._editor&&this._editor.initialized&&("function"==typeof this._editor.mode?.set?this._editor.mode.set(e?"readonly":"design"):this._editor.setMode(e?"readonly":"design"))}get disabled(){return this._disabled}get editor(){return this._editor}writeValue(e){this._editor&&this._editor.initialized?this._editor.setContent(Q6(e)?"":e):this.initialValue=null===e?void 0:e}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}setDisabledState(e){this.disabled=e}ngAfterViewInit(){Fs(this.platformId)&&(this.id=this.id||(i=>{const e=(new Date).getTime(),n=Math.floor(1e9*Math.random());return q6++,"tiny-angular_"+n+q6+String(e)})(),this.inline=void 0!==this.inline?!1!==this.inline:!!this.init?.inline,this.createElement(),null!==Db()?this.initialise():this._element&&this._element.ownerDocument&&dde.load(this._element.ownerDocument,this.getScriptSrc()).pipe(Ot(this.destroy$)).subscribe(this.initialise))}ngOnDestroy(){this.destroy$.next(),null!==Db()&&Db().remove(this._editor)}createElement(){this._element=document.createElement(this.inline?"string"==typeof this.tagName?this.tagName:"div":"textarea"),this._element&&(document.getElementById(this.id)&&console.warn(`TinyMCE-Angular: an element with id [${this.id}] already exists. Editors with duplicate Id will not be able to mount`),this._element.id=this.id,K6(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element))}getScriptSrc(){return Q6(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(e){Mb(e,"blur",this.destroy$).subscribe(()=>{this.ngZone.run(()=>this.onTouchedCallback())}),Mb(e,this.modelEvents,this.destroy$).subscribe(()=>{this.ngZone.run(()=>this.emitOnChange(e))}),"string"==typeof this.initialValue&&this.ngZone.run(()=>{e.setContent(this.initialValue),e.getContent()!==this.initialValue&&this.emitOnChange(e),void 0!==this.onInitNgModel&&this.onInitNgModel.emit(e)})}emitOnChange(e){this.onChangeCallback&&this.onChangeCallback(e.getContent({format:this.outputFormat}))}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(Bt),U(dd),U(ude,8))},i.\u0275cmp=Be({type:i,selectors:[["editor"]],inputs:{cloudChannel:"cloudChannel",apiKey:"apiKey",init:"init",id:"id",initialValue:"initialValue",outputFormat:"outputFormat",inline:"inline",tagName:"tagName",plugins:"plugins",toolbar:"toolbar",modelEvents:"modelEvents",allowedEvents:"allowedEvents",ignoreEvents:"ignoreEvents",disabled:"disabled"},standalone:!0,features:[Pn([hde]),st,Ix],decls:1,vars:0,template:function(e,n){1&e&&w(0,ide,0,0,"ng-template")},dependencies:[ki,bd],styles:["[_nghost-%COMP%]{display:block}"]}),i})(),J6=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[Rd]}),i})();class rh{uploader;fileOver=new Ae;onFileDrop=new Ae;element;constructor(t){this.element=t}getOptions(){return this.uploader.options}getFilters(){return{}}onDrop(t){let e=this._getTransfer(t);if(!e)return;let n=this.getOptions(),r=this.getFilters();this._preventAndStop(t),this.uploader.addToQueue(e.files,n,r),this.fileOver.emit(!1),this.onFileDrop.emit(e.files)}onDragOver(t){let e=this._getTransfer(t);!this._haveFiles(e.types)||(e.dropEffect="copy",this._preventAndStop(t),this.fileOver.emit(!0))}onDragLeave(t){t.currentTarget!==this.element[0]&&(this._preventAndStop(t),this.fileOver.emit(!1))}_getTransfer(t){return t.dataTransfer?t.dataTransfer:t.originalEvent.dataTransfer}_preventAndStop(t){t.preventDefault(),t.stopPropagation()}_haveFiles(t){return!!t&&(t.indexOf?-1!==t.indexOf("Files"):!!t.contains&&t.contains("Files"))}static \u0275fac=function(e){return new(e||rh)(U(Pt))};static \u0275dir=it({type:rh,selectors:[["","ng2FileDrop",""]],hostBindings:function(e,n){1&e&&N("drop",function(o){return n.onDrop(o)})("dragover",function(o){return n.onDragOver(o)})("dragleave",function(o){return n.onDragLeave(o)})},inputs:{uploader:"uploader"},outputs:{fileOver:"fileOver",onFileDrop:"onFileDrop"}})}class oh{uploader;element;constructor(t){this.element=t}getOptions(){return this.uploader.options}getFilters(){}isEmptyAfterSelection(){return!!this.element.nativeElement.attributes.multiple}onChange(){let t=this.element.nativeElement.files,e=this.getOptions(),n=this.getFilters();this.uploader.addToQueue(t,e,n),this.isEmptyAfterSelection()}static \u0275fac=function(e){return new(e||oh)(U(Pt))};static \u0275dir=it({type:oh,selectors:[["","ng2FileSelect",""]],hostBindings:function(e,n){1&e&&N("change",function(){return n.onChange()})},inputs:{uploader:"uploader"}})}class Dc{storage;clientService;userService;ua;_favoritesChanged$=new Gt;constructor(t,e,n,r){this.storage=t,this.clientService=e,this.userService=n,this.ua=r}onFavoritesChanged(){return this._favoritesChanged$.asObservable()}getUserFavorites(){var t=this;return z(function*(){var e=yield t.userService.getUserFavorites();return t._favoritesChanged$.next(e),e})()}addUserFavorites(t){var e=this;return z(function*(){let n=yield e.clientService.postWithResponse("/api/user/favorite",t,!1);if(n.successful){let r=yield e.userService.getCurrentOrg();yield e.storage.setItemAsync(`user_favorites_${r.id}`,JSON.stringify(n.result)),e._favoritesChanged$.next(n.result)}return n.result})()}removeUserFavorite(t){var e=this;return z(function*(){let n=yield e.clientService.deleteWithResponse(`/api/user/favorite/${t}`,!1),r=yield e.userService.getCurrentOrg();return yield e.storage.setItemAsync(`user_favorites_${r.id}`,JSON.stringify(n.result)),e._favoritesChanged$.next(n.result),n.result})()}getFavoriteForUrl(t){var e=this;return z(function*(){return(yield e.userService.getUserFavorites()).favorites.find(r=>r.link==t)})()}static \u0275fac=function(e){return new(e||Dc)(Ee(co),Ee(An),Ee($n),Ee($n))};static \u0275prov=$e({token:Dc,factory:Dc.\u0275fac,providedIn:"root"})}class Mc{storage;clientService;userService;ua;_mruTasks$=new Gt;_mruChanged$=new Gt;constructor(t,e,n,r){this.storage=t,this.clientService=e,this.userService=n,this.ua=r}_recentTasks;getRecentTasks(){var t=this;return z(function*(){if(t._recentTasks)return t._recentTasks;let e=yield t.ua.getCurrentOrg(),n=yield t.storage.getItemAsync(`mru_tasks-org-${e.id}`);return t._recentTasks=n?JSON.parse(n):[],t._recentTasks})()}addMurTask(t){var e=this;return z(function*(){let n=yield e.getRecentTasks(),r=n.find(l=>l.workTask.id==t.id);r&&n.splice(n.indexOf(r),1),n.unshift({project:{id:t.project.id,text:t.project.text},workTask:{id:t.id,text:t.name},taskCode:t.taskCode,externalTaskLink:t.externalTaskLink}),n.length>10&&n.splice(10,1),e._recentTasks=n,e._mruTasks$.next(n);let o=yield e.ua.getCurrentOrg();e.storage.setItemAsync(`mru_tasks-org-${o.id}`,JSON.stringify(n));let a=window.location.pathname,s=a.substring(1).split("/");e.addMRU({name:t.name,type:"Task",moduleKey:"public",icon:t.icon,summary:t.icon,route:s,link:a})})()}onMruChanged(){return this._mruChanged$.asObservable()}onMruTasksChanged(){return this._mruTasks$.asObservable()}getMruDevices(){var t=this;return z(function*(){let e=yield t.ua.getCurrentOrg();return JSON.parse(yield t.storage.getItemAsync(`mru-devices-org-${e.id}`,"[]"))})()}getMruDeviceRepos(){var t=this;return z(function*(){let e=yield t.ua.getCurrentOrg();return JSON.parse(yield t.storage.getItemAsync(`mru-device-repos-org-${e.id}`,"[]"))})()}addRepoToMru(t){var e=this;return z(function*(){let n={repositoryType:t.repositoryType.text,isPublic:t.isPublic,id:t.id,name:t.name,description:t.description,icon:t.icon,key:t.key},r=yield e.getMruDeviceRepos(),o=r.find(s=>s.id==n.id);o&&r.splice(r.indexOf(o),1),r.unshift(n);let a=yield e.ua.getCurrentOrg();yield e.storage.setItemAsync(`mru-device-repos-org-${a.id}`,JSON.stringify(r))})()}addDeviceToMru(t){var e=this;return z(function*(){let n={id:t.id,deviceName:t.name,deviceId:t.deviceId,deviceType:t.deviceType.text,deviceTypeId:t.deviceType.id,balances:t.balances,deviceConfiguration:t.deviceConfiguration.text,deviceConfigurationId:t.deviceConfiguration.id,customStatus:t.customStatus,deviceRepo:t.deviceRepository.text,deviceRepoId:t.deviceRepository.id,icon:t.icon,geoLocation:t.geoLocation,internalSummary:t.internalSummary,lastContact:t.lastContact,status:t.status.text,selected:!1,testingMode:t.testingMode,debugMode:t.debugMode},r=yield e.getMruDevices(),o=r.find(s=>s.id==n.id);o&&r.splice(r.indexOf(o),1),r.unshift(n);let a=yield e.ua.getCurrentOrg();yield e.storage.setItemAsync(`mru-devices-org-${a.id}`,JSON.stringify(r))})()}get(t,e){var n=this;return z(function*(){let r=yield n.ua.getCurrentOrg();return yield n.storage.getItemAsync(`mru-setting-${t}-org-${r.id}`,e)})()}set(t,e){var n=this;return z(function*(){let r=yield n.ua.getCurrentOrg();yield n.storage.setItemAsync(`mru-setting-${t}-org-${r.id}`,e)})()}getMRU(){var t=this;return z(function*(){var e=yield t.userService.getMRU();return t._mruChanged$.next(e),e})()}addMRU(t){var e=this;return z(function*(){let n=yield e.clientService.postWithResponse("/api/mru/item",t,!1),r=yield e.userService.getCurrentOrg();return yield e.storage.setItemAsync(`user_mru_${r.id}`,JSON.stringify(n.result)),e._mruChanged$.next(n.result),n.result})()}clearMru(){var t=this;return z(function*(){let e=yield t.clientService.deleteWithResponse("/api/mru"),n=yield t.userService.getCurrentOrg();return yield t.storage.setItemAsync(`user_mru_${n.id}`,JSON.stringify(e.result)),t._mruChanged$.next(e.result),e.result})()}static \u0275fac=function(e){return new(e||Mc)(Ee(co),Ee(An),Ee($n),Ee($n))};static \u0275prov=$e({token:Mc,factory:Mc.\u0275fac,providedIn:"root"})}function pde(i,t){if(1&i){const e=pe();u(0,"span",4),N("click",function(){return R(e),L(g().addFavorite())}),H(1,"i",5),c()}}function fde(i,t){if(1&i){const e=pe();u(0,"span",4),N("click",function(){return R(e),L(g().clearFavorite())}),H(1,"i",6),c()}}function gde(i,t){if(1&i){const e=pe();u(0,"span",4),N("click",function(){return R(e),L(g().edit.emit())}),H(1,"i",7),c()}}function mde(i,t){if(1&i){const e=pe();u(0,"span",4),N("click",function(){return R(e),L(g().refresh.emit())}),H(1,"i",8),c()}}class xb{favoriteService;route;router;mruService;favorite;showRefreshLink=!1;showEditLink=!1;icon;title;pageType;pageSummary;refresh=new Ae;edit=new Ae;back=new Ae;constructor(t,e,n,r){this.favoriteService=t,this.route=e,this.router=n,this.mruService=r}ngOnInit(){var t=this;return z(function*(){let e=t.route.snapshot.url.map(r=>r.path);e.unshift("public"),t.mruService.addMRU({name:t.title,type:t.pageType,moduleKey:"public",icon:t.icon,summary:"Customer Surveys",route:e,link:t.pageSummary}),t.favorite=yield t.favoriteService.getFavoriteForUrl(t.router.url),console.log(t.favorite)})()}addFavorite(){let t=this.route.snapshot.url.map(e=>e.path);t.unshift("public"),this.favorite={id:Qn.newGuid(),name:this.title,type:this.pageType,moduleKey:"public",icon:this.icon,summary:this.pageSummary,route:t,link:this.router.url},console.log(this.favorite),this.favoriteService.addUserFavorites(this.favorite)}clearFavorite(){this.favoriteService.removeUserFavorite(this.favorite.id),this.favorite=void 0}static \u0275fac=function(e){return new(e||xb)(U(Dc),U(bi),U(Ti),U(Mc))};static \u0275cmp=Be({type:xb,selectors:[["app-page-title"]],inputs:{showRefreshLink:"showRefreshLink",showEditLink:"showEditLink",icon:"icon",title:"title",pageType:"pageType",pageSummary:"pageSummary"},outputs:{refresh:"refresh",edit:"edit",back:"back"},decls:10,vars:6,consts:[[1,"action","fa","fa-chevron-left",2,"cursor","pointer","font-size","32px",3,"click"],["fontSize","32",3,"iconName"],[2,"color","var(--color-primary-80)"],["class","action",3,"click",4,"ngIf"],[1,"action",3,"click"],[1,"far","fa-star","action-favorite"],[1,"fa","fa-star","action-favorite"],[1,"far","fa-pencil"],[1,"far","fa-sync"]],template:function(e,n){1&e&&(u(0,"div")(1,"h1")(2,"i",0),N("click",function(){return null==n.back?null:n.back.emit()}),c(),H(3,"nuv-icon",1),u(4,"span",2),m(5),c(),w(6,pde,2,0,"span",3),w(7,fde,2,0,"span",3),w(8,gde,2,0,"span",3),w(9,mde,2,0,"span",3),c()()),2&e&&(h(3),p("iconName",n.icon),h(2),Ke(" ",n.title," "),h(1),p("ngIf",!n.favorite),h(1),p("ngIf",n.favorite),h(1),p("ngIf",n.showEditLink),h(1),p("ngIf",n.showRefreshLink))},dependencies:[Xa,ct]})}function _de(i,t){if(1&i){const e=pe();u(0,"div",5)(1,"div",6)(2,"h4"),m(3,"Terms and Conditions"),c()(),u(4,"div",6)(5,"p"),m(6,"Please Review our "),u(7,"a",7),m(8,"Terms and Conditions"),c(),m(9," as well as our "),u(10,"a",8),m(11,"Privacy Statement"),c(),m(12," and "),u(13,"a",9),m(14,"Cookie Policy"),c()()(),u(15,"div",10)(16,"button",11),N("click",function(){return R(e),L(g(2).acceptTermsAndConditions())}),m(17,"Accept"),c()()()}}function vde(i,t){1&i&&(u(0,"label",346),m(1,"State or Province"),c())}function yde(i,t){1&i&&(u(0,"label",347),m(1,"State"),c())}function bde(i,t){if(1&i){const e=pe();u(0,"input",348),N("ngModelChange",function(r){return R(e),L(g(3).coreInfo.state=r)}),c()}2&i&&p("ngModel",g(3).coreInfo.state)}function Cde(i,t){if(1&i){const e=pe();u(0,"select",349),N("ngModelChange",function(r){return R(e),L(g(3).coreInfo.state=r)}),u(1,"option",58),m(2,"-please select your state-"),c(),u(3,"option",350),m(4,"Alabama"),c(),u(5,"option",351),m(6,"Alaska"),c(),u(7,"option",352),m(8,"Arizona"),c(),u(9,"option",353),m(10,"Arkansas"),c(),u(11,"option",354),m(12,"California"),c(),u(13,"option",355),m(14,"Colorado"),c(),u(15,"option",356),m(16,"Connecticut"),c(),u(17,"option",357),m(18,"Delaware"),c(),u(19,"option",358),m(20,"District Of Columbia"),c(),u(21,"option",359),m(22,"Florida"),c(),u(23,"option",360),m(24,"Georgia"),c(),u(25,"option",361),m(26,"Hawaii"),c(),u(27,"option",362),m(28,"Idaho"),c(),u(29,"option",363),m(30,"Illinois"),c(),u(31,"option",364),m(32,"Indiana"),c(),u(33,"option",365),m(34,"Iowa"),c(),u(35,"option",366),m(36,"Kansas"),c(),u(37,"option",367),m(38,"Kentucky"),c(),u(39,"option",368),m(40,"Louisiana"),c(),u(41,"option",369),m(42,"Maine"),c(),u(43,"option",370),m(44,"Maryland"),c(),u(45,"option",371),m(46,"Massachusetts"),c(),u(47,"option",372),m(48,"Michigan"),c(),u(49,"option",373),m(50,"Minnesota"),c(),u(51,"option",374),m(52,"Mississippi"),c(),u(53,"option",375),m(54,"Missouri"),c(),u(55,"option",376),m(56,"Montana"),c(),u(57,"option",377),m(58,"Nebraska"),c(),u(59,"option",378),m(60,"Nevada"),c(),u(61,"option",379),m(62,"New Hampshire"),c(),u(63,"option",380),m(64,"New Jersey"),c(),u(65,"option",381),m(66,"New Mexico"),c(),u(67,"option",382),m(68,"New York"),c(),u(69,"option",383),m(70,"North Carolina"),c(),u(71,"option",384),m(72,"North Dakota"),c(),u(73,"option",385),m(74,"Ohio"),c(),u(75,"option",386),m(76,"Oklahoma"),c(),u(77,"option",387),m(78,"Oregon"),c(),u(79,"option",388),m(80,"Pennsylvania"),c(),u(81,"option",389),m(82,"Rhode Island"),c(),u(83,"option",390),m(84,"South Carolina"),c(),u(85,"option",391),m(86,"South Dakota"),c(),u(87,"option",392),m(88,"Tennessee"),c(),u(89,"option",393),m(90,"Texas"),c(),u(91,"option",394),m(92,"Utah"),c(),u(93,"option",395),m(94,"Vermont"),c(),u(95,"option",396),m(96,"Virginia"),c(),u(97,"option",397),m(98,"Washington"),c(),u(99,"option",398),m(100,"West Virginia"),c(),u(101,"option",399),m(102,"Wisconsin"),c(),u(103,"option",400),m(104,"Wyoming"),c()()}2&i&&(p("ngModel",g(3).coreInfo.state),h(1),p("ngValue",null))}function wde(i,t){if(1&i&&(u(0,"option",401),m(1),c()),2&i){const e=t.$implicit;p("value",e.id),h(1),Re(e.text)}}function Dde(i,t){1&i&&(u(0,"div",20)(1,"div",6)(2,"h4"),m(3,"My Files"),c(),u(4,"p"),m(5,"Add files to your profile such as a resume or other information about yourself."),c()()())}function Mde(i,t){if(1&i&&(u(0,"tr")(1,"td"),m(2),c(),H(3,"td"),c()),2&i){const e=t.$implicit;h(2),Re(e.text)}}function xde(i,t){if(1&i){const e=pe();u(0,"div",6)(1,"div",330)(2,"span",331),N("click",function(){return R(e),L(g(4).fileAddMode="addfilename")}),H(3,"i",403),m(4,"Add File"),c()(),u(5,"table",404)(6,"thead")(7,"th"),m(8,"File"),c(),u(9,"th"),m(10,"View"),c()(),u(11,"tbody"),w(12,Mde,4,1,"tr",405),c()()()}if(2&i){const e=g(4);h(12),p("ngForOf",e.user.mediaResources)}}function kde(i,t){if(1&i){const e=pe();u(0,"div",6)(1,"h5"),m(2,"Step 1 - Tell us about the file"),c(),u(3,"form",406)(4,"div",407)(5,"label",408),m(6,"Document Name"),u(7,"span",25),m(8,"*"),c()(),u(9,"input",409),N("ngModelChange",function(r){return R(e),L(g(4).resourceName=r)}),c(),H(10,"div",27),c(),u(11,"div",410)(12,"label",411),m(13,"Description"),c(),u(14,"textarea",412),N("ngModelChange",function(r){return R(e),L(g(4).resourceDescription=r)}),m(15," "),c()(),u(16,"div",330)(17,"button",18),N("click",function(){return R(e),L(g(4).fileAddMode="viewallfiles")}),m(18,"Cancel"),c(),u(19,"button",413),N("click",function(){return R(e),L(g(4).fileAddMode="uploadfile")}),m(20,"Add File"),c()()()()}if(2&i){const e=g(4);h(9),p("ngModel",e.resourceName),h(5),p("ngModel",e.resourceDescription),h(5),p("disabled",!e.resourceName)}}const eB=function(i){return{width:i}};function Tde(i,t){if(1&i&&(u(0,"div"),m(1),u(2,"div",418),H(3,"div",419),c()()),2&i){const e=g(5);h(1),Ke(" ",e.fileNameOrStatus," "),h(2),p("ngStyle",Ct(2,eB,e.uploader.progress+"%"))}}const tB=function(i){return{"nv-file-over":i}};function Sde(i,t){if(1&i){const e=pe();u(0,"div",6)(1,"h5"),m(2,"Step 2 - Upload your file"),c(),u(3,"span",414),N("fileOver",function(r){return R(e),L(g(4).fileOverBase(r))}),H(4,"i",415),c(),u(5,"span",416)(6,"span"),m(7,"Select File"),c(),H(8,"input",417),c(),w(9,Tde,4,4,"div",333),u(10,"div",330)(11,"button",18),N("click",function(){return R(e),L(g(4).fileAddMode="viewallfiles")}),m(12,"Cancel"),c()()()}if(2&i){const e=g(4);h(3),p("ngClass",Ct(4,tB,e.hasBaseDropZoneOver))("uploader",e.uploader),h(5),p("uploader",e.uploader),h(1),p("ngIf",e.fileNameOrStatus)}}function Ede(i,t){if(1&i&&(u(0,"div",20),w(1,xde,13,1,"div",402),w(2,kde,21,3,"div",402),w(3,Sde,13,6,"div",402),c()),2&i){const e=g(3);h(1),p("ngIf","viewallfiles"==e.fileAddMode),h(1),p("ngIf","addfilename"==e.fileAddMode),h(1),p("ngIf","uploadfile"==e.fileAddMode)}}function Ade(i,t){1&i&&(u(0,"div",20)(1,"div",6),H(2,"hr")(3,"br"),c()())}function Ide(i,t){1&i&&(u(0,"div",20)(1,"div",6)(2,"h4"),m(3,"Profile Picture"),c(),u(4,"p"),m(5,"Upload a profile picture to be used in the system, recommended size is 255x255."),c()()())}function Fde(i,t){1&i&&H(0,"img",420),2&i&>("src",g(3).user.profileImage.imageUrl,Yi)}function Pde(i,t){if(1&i){const e=pe();u(0,"div",20)(1,"div",6)(2,"span",414),N("fileOver",function(r){return R(e),L(g(3).fileOverBase(r))}),H(3,"i",415),c(),u(4,"span",416)(5,"span"),m(6,"Select File"),c(),H(7,"input",417),c(),u(8,"div",418),H(9,"div",419),c()()()}if(2&i){const e=g(3);h(2),p("ngClass",Ct(4,tB,e.hasBaseDropZoneOver))("uploader",e.profilePictureUploader),h(5),p("uploader",e.profilePictureUploader),h(2),p("ngStyle",Ct(6,eB,e.profilePictureUploader.progress+"%"))}}function Rde(i,t){if(1&i){const e=pe();u(0,"div"),H(1,"div",423),u(2,"div",330)(3,"button",11),N("click",function(){return R(e),L(g(4).updateSignature())}),m(4,"Update Signature"),c(),u(5,"button",424),N("click",function(){return R(e),L(g(4).removeSignature())}),m(6,"Remove Signature"),c()()()}if(2&i){const e=g(4);h(1),p("innerHTML",e.existingSignature,Un)}}function Lde(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",425)(2,"canvas",426,427),m(4," Your browser does not support the HTML5 canvas tag and can not be used to sign documents. "),c()(),u(5,"div",330)(6,"button",428),N("click",function(){return R(e),L(g(4).saveSignature())}),m(7,"Save"),c(),u(8,"button",424),N("click",function(){return R(e),L(g(4).clearSignature())}),m(9,"Clear"),c()()()}}function Ode(i,t){if(1&i){const e=pe();u(0,"div"),H(1,"div",423),u(2,"div",330)(3,"button",11),N("click",function(){return R(e),L(g(4).updateInitials())}),m(4,"Update Initials"),c(),u(5,"button",424),N("click",function(){return R(e),L(g(4).removeInitials())}),m(6,"Remove Initials"),c()()()}if(2&i){const e=g(4);h(1),p("innerHTML",e.existingInitials,Un)}}function Nde(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",425)(2,"canvas",429,430),m(4," Your browser does not support the HTML5 canvas tag and can not be used to sign documents. "),c()(),u(5,"div",330)(6,"button",428),N("click",function(){return R(e),L(g(4).saveInitials())}),m(7,"Save"),c(),u(8,"button",424),N("click",function(){return R(e),L(g(4).clearInitials())}),m(9,"Clear"),c()()()}}function Bde(i,t){if(1&i&&(u(0,"div",20)(1,"h4"),m(2,"Digital Signature"),c(),u(3,"p"),m(4,"Create or update your digital signature to be used to sign documents."),c(),u(5,"div",421)(6,"div",422)(7,"h4"),m(8,"Signature"),c(),w(9,Rde,7,1,"div",333),w(10,Lde,10,0,"div",333),c(),u(11,"div",422)(12,"h4"),m(13,"Initials"),c(),w(14,Ode,7,1,"div",333),u(15,"div"),w(16,Nde,10,0,"div",333),c()()()()),2&i){const e=g(3);h(9),p("ngIf",e.existingSignature&&!e.updatingSignature),h(1),p("ngIf",!e.existingSignature||e.updatingSignature),h(4),p("ngIf",e.existingInitials&&!e.updatingInitials),h(2),p("ngIf",!e.existingInitials||e.updatingInitials)}}const bS=function(i){return[i]};function Vde(i,t){if(1&i&&(u(0,"a",436),m(1,"edit"),c()),2&i){const e=g().$implicit;p("routerLink",Ct(1,bS,"/site/profile/survey/"+e.topLevelSurveyResponseId))}}function Hde(i,t){if(1&i){const e=pe();u(0,"i",437),N("click",function(r){R(e);const o=g().$implicit;return g(4).removeSurvey(o),L(r.stopPropagation())}),c()}}function Yde(i,t){if(1&i){const e=pe();u(0,"tr")(1,"td"),m(2),c(),u(3,"td"),m(4),c(),u(5,"td"),w(6,Vde,2,3,"a",433),u(7,"i",434),N("click",function(){const o=R(e).$implicit;return L(g(4).viewSurveyResults(o.id,o.topLevelSurveyResponseId))}),c(),w(8,Hde,1,0,"i",435),c()()}if(2&i){const e=t.$implicit,n=g(4);h(2),Re(e.surveyResponseName),h(2),Re(e.status),h(2),p("ngIf",n.isSelf),h(2),p("ngIf",n.isSelf)}}function Ude(i,t){if(1&i&&(u(0,"div",20)(1,"div",6)(2,"table",404)(3,"thead")(4,"th"),m(5,"Name"),c(),u(6,"th",431),m(7,"Status"),c(),H(8,"th",432),c(),w(9,Yde,9,4,"tr",405),c(),H(10,"hr"),c()()),2&i){const e=g(3);h(9),p("ngForOf",e.responses)}}function jde(i,t){if(1&i&&(u(0,"a",436),m(1,"view"),c()),2&i){const e=g().$implicit;p("routerLink",Ct(1,bS,"/hr/hiring/application/"+e.id))}}function $de(i,t){if(1&i&&(u(0,"a",436),m(1,"view"),c()),2&i){const e=g().$implicit;p("routerLink",Ct(1,bS,"/site/job/"+e.key))}}function zde(i,t){if(1&i){const e=pe();u(0,"i",437),N("click",function(r){R(e);const o=g().$implicit;return g(4).removeApplication(o.id),L(r.stopPropagation())}),c()}}function Wde(i,t){if(1&i&&(u(0,"tr")(1,"td"),m(2),c(),u(3,"td"),m(4),c(),u(5,"td"),m(6),c(),u(7,"td"),w(8,jde,2,3,"a",433),w(9,$de,2,3,"a",433),w(10,zde,1,0,"i",435),c()()),2&i){const e=t.$implicit,n=g(4);h(2),Re(e.name),h(2),Re(e.jobName),h(2),Re(e.status),h(2),p("ngIf",!n.isSelf),h(1),p("ngIf",n.isSelf),h(1),p("ngIf",n.isSelf)}}function Gde(i,t){if(1&i&&(u(0,"div",20)(1,"div",6)(2,"table",404)(3,"thead")(4,"th",438),m(5,"Name"),c(),u(6,"th"),m(7,"Description"),c(),u(8,"th",431),m(9,"Status"),c(),H(10,"th",439),c(),w(11,Wde,11,6,"tr",405),c()()()),2&i){const e=g(3);h(11),p("ngForOf",e.applications)}}function qde(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g(3);h(1),Re(e.passwordChangedMessage)}}function Kde(i,t){if(1&i&&(u(0,"div",343),m(1),c()),2&i){const e=g(3);h(1),Re(e.pwdError)}}function Zde(i,t){if(1&i&&(u(0,"div",343),m(1),c()),2&i){const e=g(3);h(1),Re(e.error)}}const nB=function(){return{standalone:!0}},Jde=function(){return{plugins:"lists link image table code help wordcount fullscreen charmap emoticons media",toolbar:"fullscreen undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | align lineheight | tinycomments | checklist numlist bullist indent outdent | emoticons charmap | removeforma"}};function eue(i,t){if(1&i){const e=pe();u(0,"mat-tab-group",12),N("selectedTabChange",function(r){return R(e),L(g(2).tabChanged(r))})("selectedIndexChange",function(r){return R(e),L(g(2).currentTabIndex=r)}),u(1,"mat-tab",13)(2,"form",14)(3,"div",15)(4,"div",16)(5,"span",17)(6,"button",18),N("click",function(){return R(e),L(g(2).updateCoreInfo())}),H(7,"i",19),m(8," Save"),c()()(),u(9,"div",20)(10,"div",21)(11,"label",22),m(12,"User Id/Login Name"),c(),H(13,"input",23),c()(),u(14,"div",20)(15,"div",24)(16,"label",22),m(17,"First Name"),u(18,"span",25),m(19,"*"),c()(),u(20,"input",26),N("ngModelChange",function(r){return R(e),L(g(2).coreInfo.firstName=r)}),c(),H(21,"div",27),c(),u(22,"div",24)(23,"label",28),m(24,"Last Name"),u(25,"span",25),m(26,"*"),c()(),u(27,"input",29),N("ngModelChange",function(r){return R(e),L(g(2).coreInfo.lastName=r)}),c(),H(28,"div",27),c(),u(29,"div",24)(30,"label",30),m(31,"Social Security Number"),c(),u(32,"div",31)(33,"input",32),N("ngModelChange",function(r){return R(e),L(g(2).coreInfo.ssn=r)}),c(),u(34,"span",33),N("click",function(r){return R(e),g(2).showSSN(),L(r.stopPropagation())}),H(35,"i",34),c(),H(36,"div",27),c(),u(37,"label"),m(38," Encrypted and protected on server"),c()()(),u(39,"div",20)(40,"div",35)(41,"label",36),m(42,"Title"),c(),u(43,"input",37),N("ngModelChange",function(r){return R(e),L(g(2).coreInfo.title=r)}),c()(),u(44,"div",35)(45,"label",38),m(46,"MS Teams Account Name"),c(),u(47,"input",39),N("ngModelChange",function(r){return R(e),L(g(2).coreInfo.teamsAccountName=r)}),c()()(),u(48,"div",20)(49,"div",21)(50,"label",40),m(51,"Email"),u(52,"span",25),m(53,"*"),c()(),u(54,"input",41),N("ngModelChange",function(r){return R(e),L(g(2).coreInfo.email=r)}),c(),H(55,"div",27),c(),u(56,"div",21)(57,"label",42),m(58,"Phone Number"),u(59,"span",25),m(60,"*"),c()(),u(61,"input",43),N("ngModelChange",function(r){return R(e),L(g(2).coreInfo.phoneNumber=r)}),c(),H(62,"div",27),c()(),u(63,"div",20)(64,"div",44)(65,"label",45),m(66,"Address 1"),c(),u(67,"input",46),N("ngModelChange",function(r){return R(e),L(g(2).coreInfo.address1=r)}),c()()(),u(68,"div",20)(69,"div",44)(70,"label",47),m(71,"Address 2"),c(),u(72,"input",48),N("ngModelChange",function(r){return R(e),L(g(2).coreInfo.address2=r)}),c()()(),u(73,"div",20)(74,"div",49)(75,"label",50),m(76,"City"),c(),u(77,"input",51),N("ngModelChange",function(r){return R(e),L(g(2).coreInfo.city=r)}),c()(),u(78,"div",24),w(79,vde,2,0,"label",52),w(80,yde,2,0,"label",53),w(81,bde,1,1,"input",54),w(82,Cde,105,2,"select",55),c(),u(83,"div",24)(84,"label",56),m(85,"Country"),c(),u(86,"select",57),N("ngModelChange",function(r){return R(e),L(g(2).coreInfo.country=r)}),u(87,"option",58),m(88,"-please select your country-"),c(),u(89,"option",59),m(90,"United States"),c(),u(91,"option",60),m(92,"Afghanistan"),c(),u(93,"option",61),m(94,"Aland Islands"),c(),u(95,"option",62),m(96,"Albania"),c(),u(97,"option",63),m(98,"Algeria"),c(),u(99,"option",64),m(100,"American Samoa"),c(),u(101,"option",65),m(102,"Andorra"),c(),u(103,"option",66),m(104,"Angola"),c(),u(105,"option",67),m(106,"Anguilla"),c(),u(107,"option",68),m(108,"Antarctica"),c(),u(109,"option",69),m(110,"Antigua and Barbuda"),c(),u(111,"option",70),m(112,"Argentina"),c(),u(113,"option",71),m(114,"Armenia"),c(),u(115,"option",72),m(116,"Aruba"),c(),u(117,"option",73),m(118,"Australia"),c(),u(119,"option",74),m(120,"Austria"),c(),u(121,"option",75),m(122,"Azerbaijan"),c(),u(123,"option",76),m(124,"Bahamas"),c(),u(125,"option",77),m(126,"Bahrain"),c(),u(127,"option",78),m(128,"Bangladesh"),c(),u(129,"option",79),m(130,"Barbados"),c(),u(131,"option",80),m(132,"Belarus"),c(),u(133,"option",81),m(134,"Belgium"),c(),u(135,"option",82),m(136,"Belize"),c(),u(137,"option",83),m(138,"Benin"),c(),u(139,"option",84),m(140,"Bermuda"),c(),u(141,"option",85),m(142,"Bhutan"),c(),u(143,"option",86),m(144,"Bolivia"),c(),u(145,"option",87),m(146,"Bonaire, Sint Eustatius and Saba"),c(),u(147,"option",88),m(148,"Bosnia and Herzegovina"),c(),u(149,"option",89),m(150,"Botswana"),c(),u(151,"option",90),m(152,"Bouvet Island"),c(),u(153,"option",91),m(154,"Brazil"),c(),u(155,"option",92),m(156,"British Indian Ocean Territory"),c(),u(157,"option",93),m(158,"Brunei Darussalam"),c(),u(159,"option",94),m(160,"Bulgaria"),c(),u(161,"option",95),m(162,"Burkina Faso"),c(),u(163,"option",96),m(164,"Burundi"),c(),u(165,"option",97),m(166,"Cambodia"),c(),u(167,"option",98),m(168,"Cameroon"),c(),u(169,"option",99),m(170,"Canada"),c(),u(171,"option",100),m(172,"Cape Verde"),c(),u(173,"option",101),m(174,"Cayman Islands"),c(),u(175,"option",102),m(176,"Central African Republic"),c(),u(177,"option",103),m(178,"Chad"),c(),u(179,"option",104),m(180,"Chile"),c(),u(181,"option",105),m(182,"China"),c(),u(183,"option",106),m(184,"Christmas Island"),c(),u(185,"option",107),m(186,"Cocos (Keeling) Islands"),c(),u(187,"option",108),m(188,"Colombia"),c(),u(189,"option",109),m(190,"Comoros"),c(),u(191,"option",110),m(192,"Congo"),c(),u(193,"option",111),m(194,"Congo, Democratic Republic of the Congo"),c(),u(195,"option",112),m(196,"Cook Islands"),c(),u(197,"option",113),m(198,"Costa Rica"),c(),u(199,"option",114),m(200,"Cote D'Ivoire"),c(),u(201,"option",115),m(202,"Croatia"),c(),u(203,"option",116),m(204,"Cuba"),c(),u(205,"option",117),m(206,"Curacao"),c(),u(207,"option",118),m(208,"Cyprus"),c(),u(209,"option",119),m(210,"Czech Republic"),c(),u(211,"option",120),m(212,"Denmark"),c(),u(213,"option",121),m(214,"Djibouti"),c(),u(215,"option",122),m(216,"Dominica"),c(),u(217,"option",123),m(218,"Dominican Republic"),c(),u(219,"option",124),m(220,"Ecuador"),c(),u(221,"option",125),m(222,"Egypt"),c(),u(223,"option",126),m(224,"El Salvador"),c(),u(225,"option",127),m(226,"Equatorial Guinea"),c(),u(227,"option",128),m(228,"Eritrea"),c(),u(229,"option",129),m(230,"Estonia"),c(),u(231,"option",130),m(232,"Ethiopia"),c(),u(233,"option",131),m(234,"Falkland Islands (Malvinas)"),c(),u(235,"option",132),m(236,"Faroe Islands"),c(),u(237,"option",133),m(238,"Fiji"),c(),u(239,"option",134),m(240,"Finland"),c(),u(241,"option",135),m(242,"France"),c(),u(243,"option",136),m(244,"French Guiana"),c(),u(245,"option",137),m(246,"French Polynesia"),c(),u(247,"option",138),m(248,"French Southern Territories"),c(),u(249,"option",139),m(250,"Gabon"),c(),u(251,"option",140),m(252,"Gambia"),c(),u(253,"option",141),m(254,"Georgia"),c(),u(255,"option",142),m(256,"Germany"),c(),u(257,"option",143),m(258,"Ghana"),c(),u(259,"option",144),m(260,"Gibraltar"),c(),u(261,"option",145),m(262,"Greece"),c(),u(263,"option",146),m(264,"Greenland"),c(),u(265,"option",147),m(266,"Grenada"),c(),u(267,"option",148),m(268,"Guadeloupe"),c(),u(269,"option",149),m(270,"Guam"),c(),u(271,"option",150),m(272,"Guatemala"),c(),u(273,"option",151),m(274,"Guernsey"),c(),u(275,"option",152),m(276,"Guinea"),c(),u(277,"option",153),m(278,"Guinea-Bissau"),c(),u(279,"option",154),m(280,"Guyana"),c(),u(281,"option",155),m(282,"Haiti"),c(),u(283,"option",156),m(284,"Heard Island and Mcdonald Islands"),c(),u(285,"option",157),m(286,"Holy See (Vatican City State)"),c(),u(287,"option",158),m(288,"Honduras"),c(),u(289,"option",159),m(290,"Hong Kong"),c(),u(291,"option",160),m(292,"Hungary"),c(),u(293,"option",161),m(294,"Iceland"),c(),u(295,"option",162),m(296,"India"),c(),u(297,"option",163),m(298,"Indonesia"),c(),u(299,"option",164),m(300,"Iran, Islamic Republic of"),c(),u(301,"option",165),m(302,"Iraq"),c(),u(303,"option",166),m(304,"Ireland"),c(),u(305,"option",167),m(306,"Isle of Man"),c(),u(307,"option",168),m(308,"Israel"),c(),u(309,"option",169),m(310,"Italy"),c(),u(311,"option",170),m(312,"Jamaica"),c(),u(313,"option",171),m(314,"Japan"),c(),u(315,"option",172),m(316,"Jersey"),c(),u(317,"option",173),m(318,"Jordan"),c(),u(319,"option",174),m(320,"Kazakhstan"),c(),u(321,"option",175),m(322,"Kenya"),c(),u(323,"option",176),m(324,"Kiribati"),c(),u(325,"option",177),m(326,"Korea, Democratic People's Republic of"),c(),u(327,"option",178),m(328,"Korea, Republic of"),c(),u(329,"option",179),m(330,"Kosovo"),c(),u(331,"option",180),m(332,"Kuwait"),c(),u(333,"option",181),m(334,"Kyrgyzstan"),c(),u(335,"option",182),m(336,"Lao People's Democratic Republic"),c(),u(337,"option",183),m(338,"Latvia"),c(),u(339,"option",184),m(340,"Lebanon"),c(),u(341,"option",185),m(342,"Lesotho"),c(),u(343,"option",186),m(344,"Liberia"),c(),u(345,"option",187),m(346,"Libyan Arab Jamahiriya"),c(),u(347,"option",188),m(348,"Liechtenstein"),c(),u(349,"option",189),m(350,"Lithuania"),c(),u(351,"option",190),m(352,"Luxembourg"),c(),u(353,"option",191),m(354,"Macao"),c(),u(355,"option",192),m(356,"Macedonia, the Former Yugoslav Republic of "),c(),u(357,"option",193),m(358,"Madagascar"),c(),u(359,"option",194),m(360,"Malawi"),c(),u(361,"option",195),m(362,"Malaysia"),c(),u(363,"option",196),m(364,"Maldives"),c(),u(365,"option",197),m(366,"Mali"),c(),u(367,"option",198),m(368,"Malta"),c(),u(369,"option",199),m(370,"Marshall Islands"),c(),u(371,"option",200),m(372,"Martinique"),c(),u(373,"option",201),m(374,"Mauritania"),c(),u(375,"option",202),m(376,"Mauritius"),c(),u(377,"option",203),m(378,"Mayotte"),c(),u(379,"option",204),m(380,"Mexico"),c(),u(381,"option",205),m(382,"Micronesia, Federated States of"),c(),u(383,"option",206),m(384,"Moldova, Republic of"),c(),u(385,"option",207),m(386,"Monaco"),c(),u(387,"option",208),m(388,"Mongolia"),c(),u(389,"option",209),m(390,"Montenegro"),c(),u(391,"option",210),m(392,"Montserrat"),c(),u(393,"option",211),m(394,"Morocco"),c(),u(395,"option",212),m(396,"Mozambique"),c(),u(397,"option",213),m(398,"Myanmar"),c(),u(399,"option",214),m(400,"Namibia"),c(),u(401,"option",215),m(402,"Nauru"),c(),u(403,"option",216),m(404,"Nepal"),c(),u(405,"option",217),m(406,"Netherlands"),c(),u(407,"option",218),m(408,"Netherlands Antilles"),c(),u(409,"option",219),m(410,"New Caledonia"),c(),u(411,"option",220),m(412,"New Zealand"),c(),u(413,"option",221),m(414,"Nicaragua"),c(),u(415,"option",222),m(416,"Niger"),c(),u(417,"option",223),m(418,"Nigeria"),c(),u(419,"option",224),m(420,"Niue"),c(),u(421,"option",225),m(422,"Norfolk Island"),c(),u(423,"option",226),m(424,"Northern Mariana Islands"),c(),u(425,"option",227),m(426,"Norway"),c(),u(427,"option",228),m(428,"Oman"),c(),u(429,"option",229),m(430,"Pakistan"),c(),u(431,"option",230),m(432,"Palau"),c(),u(433,"option",231),m(434,"Palestinian Territory, Occupied"),c(),u(435,"option",232),m(436,"Panama"),c(),u(437,"option",233),m(438,"Papua New Guinea"),c(),u(439,"option",234),m(440,"Paraguay"),c(),u(441,"option",235),m(442,"Peru"),c(),u(443,"option",236),m(444,"Philippines"),c(),u(445,"option",237),m(446,"Pitcairn"),c(),u(447,"option",238),m(448,"Poland"),c(),u(449,"option",239),m(450,"Portugal"),c(),u(451,"option",240),m(452,"Puerto Rico"),c(),u(453,"option",241),m(454,"Qatar"),c(),u(455,"option",242),m(456,"Reunion"),c(),u(457,"option",243),m(458,"Romania"),c(),u(459,"option",244),m(460,"Russian Federation"),c(),u(461,"option",245),m(462,"Rwanda"),c(),u(463,"option",246),m(464,"Saint Barthelemy"),c(),u(465,"option",247),m(466,"Saint Helena"),c(),u(467,"option",248),m(468,"Saint Kitts and Nevis"),c(),u(469,"option",249),m(470,"Saint Lucia"),c(),u(471,"option",250),m(472,"Saint Martin"),c(),u(473,"option",251),m(474,"Saint Pierre and Miquelon"),c(),u(475,"option",252),m(476,"Saint Vincent and the Grenadines"),c(),u(477,"option",253),m(478,"Samoa"),c(),u(479,"option",254),m(480,"San Marino"),c(),u(481,"option",255),m(482,"Sao Tome and Principe"),c(),u(483,"option",256),m(484,"Saudi Arabia"),c(),u(485,"option",257),m(486,"Senegal"),c(),u(487,"option",258),m(488,"Serbia"),c(),u(489,"option",259),m(490,"Serbia and Montenegro"),c(),u(491,"option",260),m(492,"Seychelles"),c(),u(493,"option",261),m(494,"Sierra Leone"),c(),u(495,"option",262),m(496,"Singapore"),c(),u(497,"option",263),m(498,"Sint Maarten"),c(),u(499,"option",264),m(500,"Slovakia"),c(),u(501,"option",265),m(502,"Slovenia"),c(),u(503,"option",266),m(504,"Solomon Islands"),c(),u(505,"option",267),m(506,"Somalia"),c(),u(507,"option",268),m(508,"South Africa"),c(),u(509,"option",269),m(510,"South Georgia and the South Sandwich Islands "),c(),u(511,"option",270),m(512,"South Sudan"),c(),u(513,"option",271),m(514,"Spain"),c(),u(515,"option",272),m(516,"Sri Lanka"),c(),u(517,"option",273),m(518,"Sudan"),c(),u(519,"option",274),m(520,"Suriname"),c(),u(521,"option",275),m(522,"Svalbard and Jan Mayen"),c(),u(523,"option",276),m(524,"Swaziland"),c(),u(525,"option",277),m(526,"Sweden"),c(),u(527,"option",278),m(528,"Switzerland"),c(),u(529,"option",279),m(530,"Syrian Arab Republic"),c(),u(531,"option",280),m(532,"Taiwan, Province of China"),c(),u(533,"option",281),m(534,"Tajikistan"),c(),u(535,"option",282),m(536,"Tanzania, United Republic of"),c(),u(537,"option",283),m(538,"Thailand"),c(),u(539,"option",284),m(540,"Timor-Leste"),c(),u(541,"option",285),m(542,"Togo"),c(),u(543,"option",286),m(544,"Tokelau"),c(),u(545,"option",287),m(546,"Tonga"),c(),u(547,"option",288),m(548,"Trinidad and Tobago"),c(),u(549,"option",289),m(550,"Tunisia"),c(),u(551,"option",290),m(552,"Turkey"),c(),u(553,"option",291),m(554,"Turkmenistan"),c(),u(555,"option",292),m(556,"Turks and Caicos Islands"),c(),u(557,"option",293),m(558,"Tuvalu"),c(),u(559,"option",294),m(560,"Uganda"),c(),u(561,"option",295),m(562,"Ukraine"),c(),u(563,"option",296),m(564,"United Arab Emirates"),c(),u(565,"option",297),m(566,"United Kingdom"),c(),u(567,"option",298),m(568,"United States Minor Outlying Islands"),c(),u(569,"option",299),m(570,"Uruguay"),c(),u(571,"option",300),m(572,"Uzbekistan"),c(),u(573,"option",301),m(574,"Vanuatu"),c(),u(575,"option",302),m(576,"Venezuela"),c(),u(577,"option",303),m(578,"Viet Nam"),c(),u(579,"option",304),m(580,"Virgin Islands, British"),c(),u(581,"option",305),m(582,"Virgin Islands, U.s."),c(),u(583,"option",306),m(584,"Wallis and Futuna"),c(),u(585,"option",307),m(586,"Western Sahara"),c(),u(587,"option",308),m(588,"Yemen"),c(),u(589,"option",309),m(590,"Zambia"),c(),u(591,"option",310),m(592,"Zimbabwe"),c()(),H(593,"div",27),c()(),u(594,"div",20)(595,"div",311)(596,"label",312),m(597,"Postal Code"),c(),u(598,"input",313),N("ngModelChange",function(r){return R(e),L(g(2).coreInfo.postalCode=r)}),c()(),u(599,"div",24)(600,"label",56),m(601,"Time Zone"),c(),u(602,"select",314),N("ngModelChange",function(r){return R(e),L(g(2).selectedTimeZone=r)}),u(603,"option",315),m(604,"-select your time zone-"),c(),w(605,wde,2,2,"option",316),c()()(),u(606,"div",20)(607,"div",317)(608,"label",318),m(609,"Bio"),c(),u(610,"textarea",319),N("ngModelChange",function(r){return R(e),L(g(2).coreInfo.bio=r)}),c()()(),u(611,"div",20)(612,"div",6)(613,"label",318),m(614,"Email Signature"),c(),u(615,"editor",320),N("ngModelChange",function(r){return R(e),L(g(2).coreInfo.emailSignature=r)}),c()()()()()(),u(616,"mat-tab",321)(617,"div",15),w(618,Dde,6,0,"div",322),w(619,Ede,4,3,"div",322),w(620,Ade,4,0,"div",322),c()(),u(621,"mat-tab",323)(622,"div",15),w(623,Ide,6,0,"div",322),w(624,Fde,1,1,"img",324),w(625,Pde,10,8,"div",322),c()(),u(626,"mat-tab",325)(627,"div",15),w(628,Bde,17,4,"div",322),c()(),u(629,"mat-tab",326)(630,"div",15),w(631,Ude,11,1,"div",322),c()(),u(632,"mat-tab",327)(633,"div",15),w(634,Gde,12,1,"div",322),c()(),u(635,"mat-tab",328)(636,"div",329)(637,"div",330)(638,"span",331),N("click",function(){return R(e),L(g(2).changePassword())}),H(639,"i",332),m(640," Change Password "),c()(),w(641,qde,2,1,"div",333),w(642,Kde,2,1,"div",334),u(643,"div",335)(644,"label",336),m(645,"Current Password"),u(646,"span",25),m(647,"*"),c()(),u(648,"input",337),N("ngModelChange",function(r){return R(e),L(g(2).currentPassword=r)}),c()(),u(649,"div",335)(650,"label",338),m(651,"New Password"),u(652,"span",25),m(653,"*"),c()(),u(654,"input",339),N("ngModelChange",function(r){return R(e),L(g(2).newPassword=r)}),c()(),u(655,"div",335)(656,"label",340),m(657,"Confirm Password"),u(658,"span",25),m(659,"*"),c()(),u(660,"input",341),N("ngModelChange",function(r){return R(e),L(g(2).newPasswordConfirm=r)}),c()()()(),u(661,"mat-tab",342)(662,"div")(663,"p"),m(664,"Please be sure you wish to delete your user account."),c(),u(665,"p"),m(666,"If you are the only or last user within your organization, your organization will also be removed."),c(),u(667,"p",343),m(668,"This can not be undone."),c(),u(669,"h4"),m(670),c(),u(671,"p")(672,"strong"),m(673,"If you wish to continue please type your name exactly as it appears above."),c()(),w(674,Zde,2,1,"div",334),u(675,"input",344),N("ngModelChange",function(r){return R(e),L(g(2).deleteAccountName=r)}),c()(),u(676,"button",345),N("click",function(){return R(e),L(g(2).deleteAccount())}),m(677,"Delete Account"),c()()()}if(2&i){const e=g(2);p("selectedIndex",e.currentTabIndex),h(13),gt("value",e.user.userName),h(7),p("ngModel",e.coreInfo.firstName),h(7),p("ngModelOptions",oc(43,nB))("ngModel",e.coreInfo.lastName),h(6),p("ngModelOptions",oc(44,nB))("ngModel",e.coreInfo.ssn),h(10),p("ngModel",e.coreInfo.title),h(4),p("ngModel",e.coreInfo.teamsAccountName),h(7),p("ngModel",e.coreInfo.email),h(7),p("ngModel",e.coreInfo.phoneNumber),h(6),p("ngModel",e.coreInfo.address1),h(5),p("ngModel",e.coreInfo.address2),h(5),p("ngModel",e.coreInfo.city),h(2),p("ngIf","United States"!=e.coreInfo.country),h(1),p("ngIf","United States"==e.coreInfo.country),h(1),p("ngIf","United States"!=e.coreInfo.country),h(1),p("ngIf","United States"==e.coreInfo.country),h(4),p("ngModel",e.coreInfo.country),h(1),p("ngValue",null),h(511),p("ngModel",e.coreInfo.postalCode),h(4),p("ngModel",e.selectedTimeZone),h(3),p("ngForOf",e.timeZones),h(5),p("ngModel",e.coreInfo.bio),h(5),p("init",oc(45,Jde))("ngModel",e.coreInfo.emailSignature),h(3),p("ngIf",e.user&&e.uploader),h(1),p("ngIf",e.user&&e.uploader),h(1),p("ngIf",e.user&&e.uploader),h(3),p("ngIf",e.user&&e.uploader),h(1),p("ngIf",e.user&&e.user.profileImage),h(1),p("ngIf",e.user&&e.uploader),h(3),p("ngIf",e.user&&e.uploader),h(3),p("ngIf",e.responses&&e.responses.length>0),h(3),p("ngIf",e.applications&&e.applications.length>0),h(7),p("ngIf",e.passwordChangedMessage),h(1),p("ngIf",e.pwdError),h(6),p("ngModel",e.currentPassword),h(6),p("ngModel",e.newPassword),h(6),p("ngModel",e.newPasswordConfirm),h(10),Re(e.user.name),h(4),p("ngIf",e.error),h(1),p("ngModel",e.deleteAccountName)}}function tue(i,t){if(1&i){const e=pe();u(0,"div",1)(1,"app-page-title",2),N("back",function(){return R(e),L(g().back())}),c(),w(2,_de,18,0,"div",3),w(3,eue,678,46,"mat-tab-group",4),c()}if(2&i){const e=g();h(1),p("title",e.user.name),h(1),p("ngIf",e.user&&!e.user.termsAndConditionsAccepted),h(1),p("ngIf",e.coreInfo)}}const iB="viewallfiles";class kb{route;userService;hrService;sanitizer;mediaService;businessService;navService;surveysService;paramsSubscription;applications;responses;coreInfo;user;ssn;currentTabIndex=0;deleteAccountName;isSelf;error=void 0;pwdError=void 0;passwordChangedMessage;currentPassword;newPassword;newPasswordConfirm;uploader;profilePictureUploader;fileNameOrStatus;profileFileNameOrStatus;hasBaseDropZoneOver=!1;hasAnotherDropZoneOver=!1;currentResourceId;resourceName;fileAddMode=iB;resourceDescription;selectedTimeZone;timeZones;distributions;updatingSignature=!1;updatingInitials=!1;signaturePad;initialsPad;constructor(t,e,n,r,o,a,s,l){var d=this;this.route=t,this.userService=e,this.hrService=n,this.sanitizer=r,this.mediaService=o,this.businessService=a,this.navService=s,this.surveysService=l,this.paramsSubscription=this.route.params.subscribe(function(){var f=z(function*(y){window.document.title="NuvIoT - User Profile";const k=y.id;if(k)d.showUserProfile(k);else{let W=yield d.userService.getUser();d.showUserProfile(W.id)}const E=y.tab;if(E)switch(E.toLowerCase()){case"account":default:d.currentTabIndex=0;break;case"files":d.currentTabIndex=1;break;case"avatar":d.currentTabIndex=2;break;case"digitalsignature":d.currentTabIndex=3,yield d.loadSignatures();break;case"surveys":d.currentTabIndex=4;break;case"applications":d.currentTabIndex=5;break;case"distributions":d.currentTabIndex=6}});return function(y){return f.apply(this,arguments)}}())}fileOverBase(t){this.hasBaseDropZoneOver=t}showUserProfile(t){var e=this;return z(function*(){t===(yield e.userService.getUser()).id?(yield e.userService.loadCurrentUser(),e.user=yield e.userService.getUser(),e.isSelf=!0):(e.user=(yield e.userService.loadUser(t)).model,e.isSelf=!1),e.coreInfo={id:e.user.id,firstName:e.user.firstName,lastName:e.user.lastName,title:e.user.title,teamsAccountName:e.user.teamsAccountName,bio:e.user.bio,address1:e.user.address1,address2:e.user.address2,city:e.user.city,state:e.user.state,postalCode:e.user.postalCode,country:e.user.country,email:e.user.email,emailSignature:e.user.emailSignature,phoneNumber:e.user.phoneNumber,profileImage:e.user.profileImage,timeZone:e.user.timeZone},e.selectedTimeZone=e.coreInfo.timeZone?.id||"-1",console.log(e.selectedTimeZone,e.coreInfo.timeZone),e.responses=yield e.surveysService.getSurveysForUser(t),e.applications=yield e.hrService.getApplicationsForUser(t),e.distributions=(yield e.businessService.getCurrentUserDistributions()).model})()}ngOnInit(){var t=this;return z(function*(){var e=window.location.hostname;let n=`https://${e="localhost"==e?e="localhost:5001":e}/api/user/profile/picture/upload`,r=`https://${e}/api/media/resources/${Qn.newGuid()}`;t.profilePictureUploader=new ob({url:n}),t.profilePictureUploader.onAfterAddingFile=a=>{t.profileFileNameOrStatus=`Uploading: ${a.some.name}`,t.profilePictureUploader.uploadItem(a)},t.profilePictureUploader.onCompleteItem=function(){var a=z(function*(s,l,d,f){t.user.profileImage=JSON.parse(l).result,yield t.userService.updateUserProfileImage(t.user.profileImage)});return function(s,l,d,f){return a.apply(this,arguments)}}(),t.uploader=new ob({url:r}),t.uploader.onAfterAddingFile=a=>{t.fileNameOrStatus=`Uploading: ${a.some.name}`,t.uploader.uploadItem(a)},t.uploader.onCompleteItem=function(){var a=z(function*(s,l,d,f){const y=JSON.parse(l).result;y.name=t.resourceName,y.key=`resource${t.user.mediaResources.length+1}`,y.description=t.resourceDescription,y.isPublic=!0;const k={id:y.id,text:y.name,key:y.key};t.user.mediaResources.push(k),t.currentResourceId=Qn.newGuid(),t.fileNameOrStatus=`Success uploading: ${s.some.name}`,yield t.userService.addMediaResourceForUser(t.user.id,k),yield t.mediaService.insertMediaResource(y),r=`/api/media/resource/${Qn.newGuid()}`,t.uploader.setOptions({url:r}),t.fileAddMode=iB,t.resourceName="",t.resourceDescription=""});return function(s,l,d,f){return a.apply(this,arguments)}}();let o=yield t.userService.getTimeZones();t.timeZones=o.map(a=>({id:a.id,key:a.id,text:a.displayName})),console.log(t.timeZones,o)})()}removeApplication(t){var e=this;return z(function*(){yield e.hrService.removeApplication(t),e.applications=yield e.hrService.getMyApplications()})()}removeSurvey(t){var e=this;return z(function*(){yield e.surveysService.deleteSurvey(t.orgId,t.rowKey);let n=yield e.userService.getUser();e.responses=yield e.surveysService.getSurveysForUser(n.id)})()}updateCoreInfo(){var t=this;return z(function*(){t.ssn==t.coreInfo.ssn&&(t.coreInfo.ssn=void 0),t.coreInfo.timeZone=t.selectedTimeZone&&"-1"!=t.selectedTimeZone?t.timeZones.find(e=>e.id===t.selectedTimeZone):void 0,yield t.userService.updateCoreInfo(t.coreInfo),t.user=yield t.userService.loadCurrentUser(),t.coreInfo={id:t.user.id,firstName:t.user.firstName,lastName:t.user.lastName,title:t.user.title,teamsAccountName:t.user.teamsAccountName,bio:t.user.bio,address1:t.user.address1,address2:t.user.address2,city:t.user.city,state:t.user.state,postalCode:t.user.postalCode,country:t.user.country,email:t.user.email,emailSignature:t.user.emailSignature,phoneNumber:t.user.phoneNumber,profileImage:t.user.profileImage,timeZone:t.user.timeZone},console.log("update info")})()}existingSignature;existingInitials;loadSignatures(){var t=this;return z(function*(){let e=yield t.userService.getSvgSignature();Math.max(window.devicePixelRatio||1,1),e.successful?t.existingSignature=t.sanitizer.bypassSecurityTrustHtml(e.result):window.setTimeout(()=>{const o=document.querySelector("#signatureCanvas");t.signaturePad=new bc(o)},1500);let r=yield t.userService.getSvgInitials();r.successful?(t.existingInitials=t.sanitizer.bypassSecurityTrustHtml(r.result),console.log("existing initials",t.existingInitials)):window.setTimeout(()=>{const o=document.querySelector("#initialsCanvas");t.initialsPad=new bc(o)},1500)})()}tabChanged(t){var e=this;return z(function*(){switch(t.index){case 0:e.navService.setLocation("/userprofile/info/account");break;case 1:e.navService.setLocation("/userprofile/info/files");break;case 2:e.navService.setLocation("/userprofile/info/avatar");break;case 3:e.navService.setLocation("/userprofile/info/digitalsignature"),yield e.loadSignatures();break;case 4:e.navService.setLocation("/userprofile/info/surveys");break;case 5:e.navService.setLocation("/userprofile/info/applications"),e.currentTabIndex=5;break;case 6:e.navService.setLocation("/userprofile/info/distributions")}})()}acceptTermsAndConditions(){var t=this;return z(function*(){const e=yield t.userService.acceptTermsAndConditions();e.successful&&(t.user=e.result)})()}viewSurveyResults(t,e){return z(function*(){console.log(t),window.open(`/api/survey/${t}/${e}/download`)})()}showSSN(){var t=this;return z(function*(){let e=yield t.userService.getUserSSN(t.user.id);console.log(e),e.successful&&(t.coreInfo.ssn=e.result,t.ssn=e.result)})()}deleteAccount(){var t=this;return z(function*(){let e=yield t.userService.getUser();t.deleteAccountName==e.name?(t.error=void 0,(yield t.userService.deleteUser(e.id)).successful&&t.navService.goToLogout()):t.error="Name does not match, please try again"})()}changePassword(){var t=this;return z(function*(){console.log(t.currentPassword);let e=yield t.userService.changePassword(t.user.id,t.currentPassword,t.newPassword,t.newPasswordConfirm);console.log(e),e.successful?(t.currentPassword="",t.newPassword="",t.newPasswordConfirm="",t.pwdError=void 0,t.passwordChangedMessage="Your password has successfully been updated."):(t.pwdError=e.errors[0].message,console.log(e.errors[0].message))})()}back(){this.navService.gotoModuleHome()}saveSignature(){var t=this;return z(function*(){if(0==t.signaturePad.toData().length)return void alert("Please provide a signature before saving");let n=t.signaturePad.toSVG();t.updatingSignature=!1,(yield t.userService.setSvgSignature(n)).successful&&(t.existingSignature=t.sanitizer.bypassSecurityTrustHtml(n))})()}clearSignature(){this.signaturePad.clear()}saveInitials(){var t=this;return z(function*(){if(0==t.initialsPad.toData().length)return void alert("Please provide initials before saving");let n=t.initialsPad.toSVG();(yield t.userService.setSvgInitials(n)).successful&&(t.existingInitials=t.sanitizer.bypassSecurityTrustHtml(n))})()}clearInitials(){this.initialsPad.clear()}updateSignature(){this.updatingSignature=!0,window.setTimeout(()=>{Math.max(window.devicePixelRatio||1,1);const e=document.querySelector("#signatureCanvas");this.signaturePad=new bc(e)},500)}updateInitials(){this.updatingInitials=!0,window.setTimeout(()=>{const t=document.querySelector("#initialsCanvas");Math.max(window.devicePixelRatio||1,1),this.initialsPad=new bc(t)},500)}removeInitials(){var t=this;return z(function*(){(yield t.userService.clearSvgInitials()).successful&&(t.existingInitials=void 0,window.setTimeout(()=>{const n=document.querySelector("#initialsCanvas");t.initialsPad=new bc(n)},500))})()}removeSignature(){var t=this;return z(function*(){(yield t.userService.clearSvgSignature()).successful&&(t.existingSignature=void 0,window.setTimeout(()=>{const n=document.querySelector("#signatureCanvas");t.signaturePad=new bc(n)},500))})()}ngOnDestroy(){this.paramsSubscription.unsubscribe(),window.document.title="NuvIoT"}static \u0275fac=function(e){return new(e||kb)(U(bi),U($n),U(ff),U(Ps),U(Tl),U(la),U(Br),U(Wu))};static \u0275cmp=Be({type:kb,selectors:[["app-user-profile"]],decls:1,vars:1,consts:[["style","margin:30px",4,"ngIf"],[2,"margin","30px"],[3,"title","back"],["style","margin-bottom:20pt;padding:20pt; border:1px solid darkblue; background:#f0f0f0","class","row",4,"ngIf"],[3,"selectedIndex","selectedTabChange","selectedIndexChange",4,"ngIf"],[1,"row",2,"margin-bottom","20pt","padding","20pt","border","1px solid darkblue","background","#f0f0f0"],[1,"col-md-12"],["href","https://app.termly.io/document/terms-of-use-for-saas/90eaf71a-610a-435e-95b1-c94b808f8aca","target","_blank"],["href","https://app.termly.io/document/privacy-policy/fb547f70-fe4e-43d6-9a28-15d403e4c720","target","_blank"],["href","https://app.termly.io/document/cookie-policy/336875cf-0e08-4eb8-ba28-83bc9c0806c1","target","_blank"],[1,"col-md-12",2,"text-align","right"],[1,"btn","btn-primary",3,"click"],[3,"selectedIndex","selectedTabChange","selectedIndexChange"],["label","User Information"],["id","myProfileForm","name","myProfileForm","data-toggle","validator","role","form","novalidate","",1,"needs-validation"],[1,"container"],[1,"form-group",2,"text-align","right"],[1,"action"],["type","submit",1,"btn","btn-primary",3,"click"],[1,"fa","fas","fa-save"],[1,"row"],[1,"col-md-6","form-group","has-feedback"],["for","firstName",1,"control-label"],["type","text","id","loingName","disabled","","name","loginName",1,"form-control",3,"value"],[1,"col-md-4","form-group","has-feedback"],[1,"required"],["type","text","id","firstName","name","firstName","placeholder","first name","data-error","first name is required","required","",1,"form-control",3,"ngModel","ngModelChange"],[1,"help-block","with-errors"],["for","lastName",1,"control-label"],["type","text","id","lastName","data-error","last name is required","required","",1,"form-control",3,"ngModelOptions","ngModel","ngModelChange"],["for","ssn",1,"control-label"],[1,"input-group"],["type","text","id","ssn","data-error","last name is required","required","",1,"form-control",3,"ngModelOptions","ngModel","ngModelChange"],[1,"input-group-text",2,"color","#A0A0A0",3,"click"],["aria-hidden","true",1,"fa","fa-eye"],[1,"form-group","col-md-6"],["for","title",1,"control-label"],["id","title","name","title",1,"form-control",3,"ngModel","ngModelChange"],["for","teamsAccountName",1,"control-label"],["id","teamsAccountName","name","teamsAccountName",1,"form-control",3,"ngModel","ngModelChange"],["for","email",1,"control-label"],["type","email","id","email","name","email","required","","data-error","Email address is required",1,"form-control",3,"ngModel","ngModelChange"],["for","phoneNumber",1,"control-label"],["id","phoneNumber","type","phone","name","phone","data-error","phone number is required",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-md-12","form-group"],["for","address1",1,"control-label"],["id","address1","type","text","name","address1",1,"form-control",3,"ngModel","ngModelChange"],["for","address2",1,"control-label"],["id","address2","type","text","name","address2",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-md-4","form-group"],["for","city",1,"control-label"],["id","city","type","text","name","city",1,"form-control",3,"ngModel","ngModelChange"],["class","control-label","for","txtState",4,"ngIf"],["class","control-label","for","selState",4,"ngIf"],["class","form-control","id","txtState","type","text","name","state",3,"ngModel","ngModelChange",4,"ngIf"],["class","form-control form-select","id","selState","name","state",3,"ngModel","ngModelChange",4,"ngIf"],["for","country",1,"control-label"],["id","country","name","country",1,"form-control","form-select",3,"ngModel","ngModelChange"],[3,"ngValue"],["value","United States"],["value","Afghanistan"],["value","Aland Islands"],["value","Albania"],["value","Algeria"],["value","American Samoa"],["value","Andorra"],["value","Angola"],["value","Anguilla"],["value","Antarctica"],["value","Antigua and Barbuda"],["value","Argentina"],["value","Armenia"],["value","Aruba"],["value","Australia"],["value","Austria"],["value","Azerbaijan"],["value","Bahamas"],["value","Bahrain"],["value","Bangladesh"],["value","Barbados"],["value","Belarus"],["value","Belgium"],["value","Belize"],["value","Benin"],["value","Bermuda"],["value","Bhutan"],["value","Bolivia"],["value","Bonaire, Sint Eustatius and Saba"],["value","Bosnia and Herzegovina"],["value","Botswana"],["value","Bouvet Island"],["value","Brazil"],["value","British Indian Ocean Territory"],["value","Brunei Darussalam"],["value","Bulgaria"],["value","Burkina Faso"],["value","Burundi"],["value","Cambodia"],["value","Cameroon"],["value","Canada"],["value","Cape Verde"],["value","Cayman Islands"],["value","Central African Republic"],["value","Chad"],["value","Chile"],["value","China"],["value","Christmas Island"],["value","Cocos (Keeling) Islands"],["value","Colombia"],["value","Comoros"],["value","Congo"],["value","Congo, Democratic Republic of the Congo"],["value","Cook Islands"],["value","Costa Rica"],["value","Cote D'Ivoire"],["value","Croatia"],["value","Cuba"],["value","Curacao"],["value","Cyprus"],["value","Czech Republic"],["value","Denmark"],["value","Djibouti"],["value","Dominica"],["value","Dominican Republic"],["value","Ecuador"],["value","Egypt"],["value","El Salvador"],["value","Equatorial Guinea"],["value","Eritrea"],["value","Estonia"],["value","Ethiopia"],["value","Falkland Islands (Malvinas)"],["value","Faroe Islands"],["value","Fiji"],["value","Finland"],["value","France"],["value","French Guiana"],["value","French Polynesia"],["value","French Southern Territories"],["value","Gabon"],["value","Gambia"],["value","Georgia"],["value","Germany"],["value","Ghana"],["value","Gibraltar"],["value","Greece"],["value","Greenland"],["value","Grenada"],["value","Guadeloupe"],["value","Guam"],["value","Guatemala"],["value","Guernsey"],["value","Guinea"],["value","Guinea-Bissau"],["value","Guyana"],["value","Haiti"],["value","Heard Island and Mcdonald Islands"],["value","Holy See (Vatican City State)"],["value","Honduras"],["value","Hong Kong"],["value","Hungary"],["value","Iceland"],["value","India"],["value","Indonesia"],["value","Iran, Islamic Republic of"],["value","Iraq"],["value","Ireland"],["value","Isle of Man"],["value","Israel"],["value","Italy"],["value","Jamaica"],["value","Japan"],["value","Jersey"],["value","Jordan"],["value","Kazakhstan"],["value","Kenya"],["value","Kiribati"],["value","Korea, Democratic People's Republic of"],["value","Korea, Republic of"],["value","Kosovo"],["value","Kuwait"],["value","Kyrgyzstan"],["value","Lao People's Democratic Republic"],["value","Latvia"],["value","Lebanon"],["value","Lesotho"],["value","Liberia"],["value","Libyan Arab Jamahiriya"],["value","Liechtenstein"],["value","Lithuania"],["value","Luxembourg"],["value","Macao"],["value","Macedonia, the Former Yugoslav Republic of"],["value","Madagascar"],["value","Malawi"],["value","Malaysia"],["value","Maldives"],["value","Mali"],["value","Malta"],["value","Marshall Islands"],["value","Martinique"],["value","Mauritania"],["value","Mauritius"],["value","Mayotte"],["value","Mexico"],["value","Micronesia, Federated States of"],["value","Moldova, Republic of"],["value","Monaco"],["value","Mongolia"],["value","Montenegro"],["value","Montserrat"],["value","Morocco"],["value","Mozambique"],["value","Myanmar"],["value","Namibia"],["value","Nauru"],["value","Nepal"],["value","Netherlands"],["value","Netherlands Antilles"],["value","New Caledonia"],["value","New Zealand"],["value","Nicaragua"],["value","Niger"],["value","Nigeria"],["value","Niue"],["value","Norfolk Island"],["value","Northern Mariana Islands"],["value","Norway"],["value","Oman"],["value","Pakistan"],["value","Palau"],["value","Palestinian Territory, Occupied"],["value","Panama"],["value","Papua New Guinea"],["value","Paraguay"],["value","Peru"],["value","Philippines"],["value","Pitcairn"],["value","Poland"],["value","Portugal"],["value","Puerto Rico"],["value","Qatar"],["value","Reunion"],["value","Romania"],["value","Russian Federation"],["value","Rwanda"],["value","Saint Barthelemy"],["value","Saint Helena"],["value","Saint Kitts and Nevis"],["value","Saint Lucia"],["value","Saint Martin"],["value","Saint Pierre and Miquelon"],["value","Saint Vincent and the Grenadines"],["value","Samoa"],["value","San Marino"],["value","Sao Tome and Principe"],["value","Saudi Arabia"],["value","Senegal"],["value","Serbia"],["value","Serbia and Montenegro"],["value","Seychelles"],["value","Sierra Leone"],["value","Singapore"],["value","Sint Maarten"],["value","Slovakia"],["value","Slovenia"],["value","Solomon Islands"],["value","Somalia"],["value","South Africa"],["value","South Georgia and the South Sandwich Islands"],["value","South Sudan"],["value","Spain"],["value","Sri Lanka"],["value","Sudan"],["value","Suriname"],["value","Svalbard and Jan Mayen"],["value","Swaziland"],["value","Sweden"],["value","Switzerland"],["value","Syrian Arab Republic"],["value","Taiwan, Province of China"],["value","Tajikistan"],["value","Tanzania, United Republic of"],["value","Thailand"],["value","Timor-Leste"],["value","Togo"],["value","Tokelau"],["value","Tonga"],["value","Trinidad and Tobago"],["value","Tunisia"],["value","Turkey"],["value","Turkmenistan"],["value","Turks and Caicos Islands"],["value","Tuvalu"],["value","Uganda"],["value","Ukraine"],["value","United Arab Emirates"],["value","United Kingdom"],["value","United States Minor Outlying Islands"],["value","Uruguay"],["value","Uzbekistan"],["value","Vanuatu"],["value","Venezuela"],["value","Viet Nam"],["value","Virgin Islands, British"],["value","Virgin Islands, U.s."],["value","Wallis and Futuna"],["value","Western Sahara"],["value","Yemen"],["value","Zambia"],["value","Zimbabwe"],[1,"form-group","col-md-4"],["for","postalCode",1,"control-label"],["name","postalCode","id","postalCode",1,"form-control",3,"ngModel","ngModelChange"],["id","timeZone","name","timeZone",1,"form-control","form-select",3,"ngModel","ngModelChange"],["value","-1"],[3,"value",4,"ngFor","ngForOf"],[1,"form-group","col-md-12"],["for","bio",1,"control-label"],["id","bio","name","bio",1,"form-control",3,"ngModel","ngModelChange"],["apiKey","kjvrmckj7e2u9yuxwg3akvfp3rkybse6455b25ja0liuef9o","name","emailSignature",2,"width","800px","height","400px",3,"init","ngModel","ngModelChange"],["label","Files"],["class","row",4,"ngIf"],["label","Profile Picture"],["width","255","height","255","alt","Profile Picture","style","border-radius: 128px;",3,"src",4,"ngIf"],["label","Digital Signature"],["label","Surveys"],["label","Applications"],["label","Change Password"],[1,"container",2,"width","500px"],[2,"text-align","right"],[1,"action",3,"click"],[1,"fa","fa-save"],[4,"ngIf"],["style","color:red",4,"ngIf"],[1,"form-group","row"],["for","oldpassword",1,"control-label"],["type","password","name","oldpassword",1,"form-control",3,"ngModel","ngModelChange"],["for","newpassword",1,"control-label"],["type","password","name","newpassword",1,"form-control",3,"ngModel","ngModelChange"],["for","confirmpassword",1,"control-label"],["type","password","name","confirmpassword",1,"form-control",3,"ngModel","ngModelChange"],["label","Delete Account"],[2,"color","red"],["type","text",1,"form-control",2,"width","300px",3,"ngModel","ngModelChange"],[1,"btn","btn-danger",3,"click"],["for","txtState",1,"control-label"],["for","selState",1,"control-label"],["id","txtState","type","text","name","state",1,"form-control",3,"ngModel","ngModelChange"],["id","selState","name","state",1,"form-control","form-select",3,"ngModel","ngModelChange"],["value","AL"],["value","AK"],["value","AZ"],["value","AR"],["value","CA"],["value","CO"],["value","CT"],["value","DE"],["value","DC"],["value","FL"],["value","GA"],["value","HI"],["value","ID"],["value","IL"],["value","IN"],["value","IA"],["value","KS"],["value","KY"],["value","LA"],["value","ME"],["value","MD"],["value","MA"],["value","MI"],["value","MN"],["value","MS"],["value","MO"],["value","MT"],["value","NE"],["value","NV"],["value","NH"],["value","NJ"],["value","NM"],["value","NY"],["value","NC"],["value","ND"],["value","OH"],["value","OK"],["value","OR"],["value","PA"],["value","RI"],["value","SC"],["value","SD"],["value","TN"],["value","TX"],["value","UT"],["value","VT"],["value","VA"],["value","WA"],["value","WV"],["value","WI"],["value","WY"],[3,"value"],["class","col-md-12",4,"ngIf"],[1,"fa","fa-plus","action"],[1,"table"],[4,"ngFor","ngForOf"],["data-toggle","validator","role","form","id","documentUploadForm","name","documentUploadForm"],[1,"form-group","has-feedback"],["for","resourceName",1,"control-label"],["id","resourceName","name","resourceName","required","","data-error","document name is required",1,"form-control",3,"ngModel","ngModelChange"],[1,"form-group"],["for","resourceDescription",1,"control-label"],["name","resourceDescription","id","resourceDescription",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary",2,"margin-left","10px",3,"disabled","click"],["ng2FileDrop","",1,"well","my-drop-zone",3,"ngClass","uploader","fileOver"],[1,"fa","fa-file-upload"],[1,"fileUpload","btn","btn-primary"],["type","file","ng2FileSelect","",1,"upload",3,"uploader"],[1,"progress"],["role","progressbar",1,"progress-bar",3,"ngStyle"],["width","255","height","255","alt","Profile Picture",2,"border-radius","128px",3,"src"],[2,"display","flex"],[2,"margin-right","10px"],[2,"background-color","white","border","1px solid silver","border-radius","10pt","height","230px","width","400px","margin-bottom","10px",3,"innerHTML"],[1,"btn","btn-danger",2,"margin-left","10px",3,"click"],[2,"height","230px"],["id","signatureCanvas","width","400","height","200",2,"border","1px solid #000000","background-color","white"],["signatureCanvas",""],[1,"btn","btn-success",3,"click"],["id","initialsCanvas","width","334","height","150",2,"border","1px solid #000000","background-color","white"],["initialsCanvas",""],[2,"width","140px"],[2,"width","120px"],["class","action","style","margin-right:10px",3,"routerLink",4,"ngIf"],[1,"fa","fa-download","action",2,"margin-right","10px",3,"click"],["class","fa fa-trash action-danger",3,"click",4,"ngIf"],[1,"action",2,"margin-right","10px",3,"routerLink"],[1,"fa","fa-trash","action-danger",3,"click"],[2,"width","400px"],[2,"width","100px"]],template:function(e,n){1&e&&w(0,tue,4,3,"div",0),2&e&&p("ngIf",n.user)},dependencies:[Zi,jt,ct,As,Kk,oo,ao,Bn,Nr,vn,Vk,Lm,pn,zp,nde,B6,Rd,ef,rh,oh,xb],styles:[".control-label[_ngcontent-%COMP%]{font-weight:700;font-size:16px;margin-left:5px;margin-top:10px;font-family:var(--bs-body-font-family)}.required[_ngcontent-%COMP%]{color:red;margin-left:5px}.my-drop-zone[_ngcontent-%COMP%]{border:dotted 3px lightgray;display:block;float:left;margin-right:20px;padding-top:10px;text-align:center;color:silver;font-size:48pt;height:100px;width:100px}.nv-file-over[_ngcontent-%COMP%]{border:dotted 3px red}.another-file-over-class[_ngcontent-%COMP%]{border:dotted 3px green}.fileUpload[_ngcontent-%COMP%]{position:relative;overflow:hidden;margin-top:10px;margin-bottom:10px}.fileUpload[_ngcontent-%COMP%] input.upload[_ngcontent-%COMP%]{position:absolute;top:0;right:0;margin:0;padding:0;font-size:20px;cursor:pointer;opacity:0;filter:alpha(opacity=0)}div.img-attr[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:120px}"]})}class Tb{constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||Tb)};static \u0275cmp=Be({type:Tb,selectors:[["app-about-sl"]],decls:2,vars:0,template:function(e,n){1&e&&(u(0,"p"),m(1," about-sl works!\n"),c())}})}class x_{html;constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||x_)};static \u0275cmp=Be({type:x_,selectors:[["app-preformatted-html-renderer"]],inputs:{html:"html"},decls:2,vars:3,consts:[[3,"innerHtml"]],template:function(e,n){1&e&&(H(0,"div",0),Qt(1,"preformattedHtml")),2&e&&p("innerHtml",Xt(1,1,n.html),Un)},dependencies:[kd],styles:["p[_ngcontent-%COMP%]{margin-bottom:0!important;background-color:#ff0}"]})}class ah{transform(t){if(t){let o=new Date(t),s=+new Date(Date.now())-+o;var e=6e4,n=60*e,r=24*n;if(s>r){let l=Math.floor(s/r);return 1==l?`${Math.floor(s/r)} day ago`:l<8?`${Math.floor(s/r)} days ago`:o.toLocaleDateString()}return s>n?`${Math.floor(s/n)} hour(s) ago`:s>e?`${Math.floor(s/e)} minute(s) ago`:"just now"}return"-"}static \u0275fac=function(e){return new(e||ah)};static \u0275pipe=Yn({name:"lastAccessPrinter",type:ah,pure:!0})}function nue(i,t){1&i&&(u(0,"div",6)(1,"div",7),m(2," IoT and Software Engineering Blog "),c()())}function iue(i,t){1&i&&H(0,"nuv-icon",16),2&i&&p("iconName",g().$implicit.icon)}function rue(i,t){if(1&i&&H(0,"img",17),2&i){const e=g().$implicit;gt("src",g(2).baseUrl+e.imageUrl,Yi)}}function oue(i,t){if(1&i){const e=pe();u(0,"div",10),N("click",function(){const o=R(e).$implicit;return L(g(2).showBlog(o))}),u(1,"div",11)(2,"div",12),w(3,iue,1,1,"nuv-icon",13),w(4,rue,1,1,"img",14),u(5,"h3"),m(6),c(),u(7,"p"),m(8),c()(),u(9,"div",15),m(10),Qt(11,"lastAccessPrinter"),c()()()}if(2&i){const e=t.$implicit;h(3),p("ngIf",!e.imageUrl&&e.icon),h(1),p("ngIf",e.imageUrl),h(2),Re(e.name),h(2),Re(e.summary),h(2),Ke(" ",Xt(11,5,e.datePublished),"")}}function aue(i,t){if(1&i&&(u(0,"div",8),w(1,oue,12,7,"div",9),c()),2&i){const e=g();h(1),p("ngForOf",e.blogItems)}}function sue(i,t){1&i&&H(0,"img",17),2&i&>("src",g(2).getImageUrl(),Yi)}function lue(i,t){if(1&i){const e=pe();u(0,"div",18)(1,"h4",19),N("click",function(){return R(e),L(g().showAllPosts())}),H(2,"i",20),m(3,"All Posts"),c(),u(4,"div",21),w(5,sue,1,1,"img",14),u(6,"h4"),m(7),c(),u(8,"div",0)(9,"span",22),m(10),c(),m(11),Qt(12,"lastAccessPrinter"),c(),H(13,"app-preformatted-html-renderer",23),c()()}if(2&i){const e=g();h(5),p("ngIf",e.blogItem.mediaResource),h(2),Re(e.blogItem.name),h(3),Re(e.blogItem.createdBy.text),h(1),Ke(" - ",Xt(12,5,e.blogItem.datePublished),""),h(2),p("html",e.blogItem.published.html)}}class k_{route;navService;contentService;paramsSubscription;baseUrl;blogItems;blogItem;orgNs;constructor(t,e,n){var r=this;this.route=t,this.navService=e,this.contentService=n,this.baseUrl="",this.paramsSubscription=this.route.params.subscribe(function(){var o=z(function*(a){r.orgNs=a.orgns,a.key&&(r.blogItem=yield r.contentService.getSiteContentForOrgNS(r.orgNs,"blog",a.key));let s=yield r.contentService.getSiteContentItemsForOrgNS(r.orgNs,"blog");r.blogItems=s.sort((l,d)=>l.datePublished>d.datePublished?-1:1)});return function(a){return o.apply(this,arguments)}}())}ngOnDestroy(){this.paramsSubscription.unsubscribe()}showBlog(t){var e=this;return z(function*(){e.blogItem=yield e.contentService.getSiteContentForOrgNS(e.orgNs,"blog",t.key),e.navService.setLocation(`/public/${e.orgNs}/blog/${t.key}`)})()}getImageUrl(){if(this.blogItem.mediaResource)return`/api/media/resource/${this.blogItem.ownerOrganization.id}/${this.blogItem.mediaResource.id}/download`}showAllPosts(){this.blogItem=void 0,this.navService.setLocation(`/public/${this.orgNs}/blog`)}static \u0275fac=function(e){return new(e||k_)(U(bi),U(Br),U(Aa))};static \u0275cmp=Be({type:k_,selectors:[["app-blog"]],decls:8,vars:3,consts:[[2,"margin-bottom","20px"],["style","height: 400px; background-repeat: no-repeat; background-size: cover; background-image: url(https://static.wixstatic.com/media/ab9b64_00f7966462c7429fa01299f6839a18a2~mv2.png/v1/fill/w_972,h_200,fp_0.50_0.50,q_85,enc_auto/ab9b64_00f7966462c7429fa01299f6839a18a2~mv2.png);",4,"ngIf"],[2,"display","flex"],[2,"flex-grow","1"],["style","display:flex;flex-wrap: wrap;max-width: 1400px;",4,"ngIf"],["class","blog-post",4,"ngIf"],[2,"height","400px","background-repeat","no-repeat","background-size","cover","background-image","url(https://static.wixstatic.com/media/ab9b64_00f7966462c7429fa01299f6839a18a2~mv2.png/v1/fill/w_972,h_200,fp_0.50_0.50,q_85,enc_auto/ab9b64_00f7966462c7429fa01299f6839a18a2~mv2.png)"],[2,"color","white","font-size","64px","text-align","center","padding-top","150px","font-family","helvetica-w01-bold, helvetica"],[2,"display","flex","flex-wrap","wrap","max-width","1400px"],["class","blog-row",3,"click",4,"ngFor","ngForOf"],[1,"blog-row",3,"click"],[2,"position","relative","height","100%"],[2,"text-align","center"],["fontSize","128px",3,"iconName",4,"ngIf"],[3,"src",4,"ngIf"],[2,"width","100%","position","absolute","bottom","0px","text-align","right","margin-right","20px"],["fontSize","128px",3,"iconName"],[3,"src"],[1,"blog-post"],[1,"action",3,"click"],[1,"fa","fa-chevron-left"],[1,"content"],[2,"font-weight","700"],[3,"html"]],template:function(e,n){1&e&&(u(0,"div",0),w(1,nue,3,0,"div",1),u(2,"div",2),H(3,"div",3),u(4,"div"),w(5,aue,2,1,"div",4),w(6,lue,14,7,"div",5),c(),H(7,"div",3),c()()),2&e&&(h(1),p("ngIf",!n.blogItem),h(4),p("ngIf",n.blogItems&&!n.blogItem),h(1),p("ngIf",n.blogItem))},dependencies:[Xa,x_,jt,ct,ah],styles:[".blog-row[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:128px;height:128px;border-radius:20px;overflow:hidden}.blog-row[_ngcontent-%COMP%]{cursor:pointer;margin-left:30px;margin-top:30px;padding:8px;width:300px;height:400px;border:3px solid var(--color-primary);border-radius:20px;background-image:linear-gradient(#FCF5EA,#E9F1FA)}.blog-row[_ngcontent-%COMP%]:hover{background-image:linear-gradient(#eCe5dA,#d9e1eA)}.blog-post[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px;max-width:800px}.blog-post[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:20px;border-radius:20px;border:3px solid silver;-webkit-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19);-webkit-box-shadow-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19)}.blog-post[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:400px;width:760px;object-fit:cover;left-margin:200px;border-radius:20px 20px 0 0;overflow:hidden}"]})}class T_{client;constructor(t){this.client=t}getDeviceGroups(t){return this.client.getListResponse(`api/repo/${t}/groups`)}createDeviceGroup(t){return this.client.getFormResponse(`api/repo/${t}/group/factory`)}getDeviceGroup(t,e){return this.client.getFormResponse(`api/repo/${t}/group/${e}`)}getSummaryDataForDeviceGroup(t,e){return this.client.getListResponse(`/api/repo/${t}/group/${e}/devices/summarydata`)}insertDeviceGroup(t,e){return this.client.insert(`/api/repo/${e}/group`,t)}updateDeviceGroup(t,e){return console.log(e),this.client.update(`/api/repo/${e}/group`,t)}saveDeviceGroup(t,e){return e.isEditing?this.updateDeviceGroup(e.model,t):this.insertDeviceGroup(e.model,t)}deleteDeviceGroup(t,e){return this.client.delete(`/api/repo/${t}/group/${e}`)}addDeviceToGroup(t,e,n){return this.client.requestForInvokeResultEx(`/api/repo/${t}/group/${e}/add/${n}`)}removeDeviceFromGroup(t,e,n){return this.client.get(`/api/repo/${t}/group/${e}/remove/${n}`)}static \u0275fac=function(e){return new(e||T_)(Ee(An))};static \u0275prov=$e({token:T_,factory:T_.\u0275fac,providedIn:"root"})}class sh{deviceGroupService;nuviotClient;constructor(t,e){this.deviceGroupService=t,this.nuviotClient=e}_deviceIdForLogs;_deviceId;_repoId;_device;_deviceGroup;_devices=[];_deviceRepo;_deviceRepos=[];_deviceGroups=[];_deviceGroups$=new Gt;_device$=new Gt;_deviceCleared$=new Gt;_deviceLoading$=new Gt;_devices$=new Gt;_devicesLoading$=new Gt;_deviceRepo$=new Gt;_deviceGroup$=new Gt;_deviceRepos$=new Gt;_deviceMetadataCache={};_deviceLogs$=new Gt;_deviceLogCleared$=new Gt;_deviceLogLoading$=new Gt;_deviceNotificationSubscription$=new Gt;_deviceGroupNotificationSubscription$=new Gt;_deviceRepoNotificationSubscription$=new Gt;_deviceNotificationWebSocket;_deviceGroupWebSocket;_deviceRepoWebSocket;loadDeviceRepositories(){var t=this;return z(function*(){let e=t.nuviotClient.getListResponse("/api/devicerepos");return t.setDeviceRepos((yield e).model),e})()}deviceSafeInit(t){t.primaryAccessKey||(t.primaryAccessKey=btoa(Math.random().toString(36).substring(2)+(new Date).getTime().toString(36))),t.secondaryAccessKey||(t.secondaryAccessKey=btoa(Math.random().toString(36).substring(2)+(new Date).getTime().toString(36))),t.properties||(t.properties=[])}createDevice(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse(`/api/device/${t}/factory`);return e.deviceSafeInit(n.model),n})()}addDeviceToLocation(t,e,n){var r=this;return z(function*(){return yield r.nuviotClient.request(`/api/device/${t}/${e}/location/${n}/add`)})()}removeDeviceFromLocation(t,e,n){var r=this;return z(function*(){return yield r.nuviotClient.delete(`/api/device/${t}/${e}/location/${n}/remove`)})()}sendCommand(t,e,n,r=[]){return this.nuviotClient.post(`/api/device/remoteconfig/${t}/${e}/command/${n}`,r)}sendCommandWithPin(t,e,n,r,o,a=[]){return this.nuviotClient.post(`/api/device/remoteconfig/${t}/${e}/${n}/${r}/command/${o}`,a)}createDeviceWithModelKey(t,e){var n=this;return z(function*(){return yield n.nuviotClient.request(`/api/device/${t}/key/${e}/create`)})()}loadDevice(t,e){var n=this;return z(function*(){return yield n.nuviotClient.getFormResponse(`/api/device/${t}/${e}/metadata`)})()}loadDeviceArchive(t,e){var n=this;return z(function*(){return yield n.nuviotClient.getListResponse(`/api/device/${t}/archives/${e}`)})()}getDeviceTypes(){var t=this;return z(function*(){return yield t.nuviotClient.getListResponse("/api/devicetypes")})()}deleteDevice(t,e){var n=this;return z(function*(){return yield n.nuviotClient.delete(`/api/device/${t}/${e}`)})()}completeProductionQA(t){var e=this;return z(function*(){return e.nuviotClient.request(`/api/devicetype/${t}/qa/completed`)})()}getDeviceType(t){return this.nuviotClient.getFormResponse(`/api/devicetype/${t}`)}createDeviceType(){return this.nuviotClient.getFormResponse("/api/devicetype/factory")}insertDeviceType(t){var e=this;return z(function*(){return yield e.nuviotClient.insert("/api/devicetype",t)})()}updateDeviceType(t){var e=this;return z(function*(){return yield e.nuviotClient.update("/api/devicetype",t)})()}deleteDeviceType(t){return this.nuviotClient.delete(`/api/devicetype/${t}`)}sendDeviceCommand(t,e,n){return this.nuviotClient.request(`/api/device/remoteconfig/${t}/${e}/command/${n}`)}getDeviceConfigurations(){return this.nuviotClient.request("/api/deviceconfigs")}getDeviceConfiguration(t){return this.nuviotClient.request(`/api/deviceconfig/${t}`)}createDeviceConfiguration(){return this.nuviotClient.request("/api/deviceconfig/factory")}addDeviceConfiguration(t){return this.nuviotClient.insert("/api/deviceconfig",t)}deleteDeviceConfiguration(t){return this.nuviotClient.delete(`/api/deviceconfig/${t}`)}updateDeviceConfiguration(t){return this.nuviotClient.update("/api/deviceconfig",t)}createDeviceConfigurationRoute(){return this.nuviotClient.request("/api/deviceconfig/route/factory")}editDeviceConfigurationRoute(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/deviceconfig/route/factory");return n.model=t,n.isEditing=!0,n})()}saveDeviceConfiguration(t){return t.isEditing?this.updateDeviceConfiguration(t.model):this.addDeviceConfiguration(t.model)}getDeviceOwners(t,e){var n=this;return z(function*(){return n.nuviotClient.getListResponse(`/api/devices/${t}/device/${e}/owners`)})()}addFirmware(t){var e=this;return z(function*(){return e.nuviotClient.post("/api/firmware",t)})()}updateFirmware(t){var e=this;return z(function*(){return e.nuviotClient.update("/api/firmware",t)})()}getFirmwares(){var t=this;return z(function*(){return t.nuviotClient.request("/api/firmwares")})()}createFirmware(){var t=this;return z(function*(){return t.nuviotClient.getFormResponse("/api/firmware/factory")})()}createFirmwareRevision(){var t=this;return z(function*(){return t.nuviotClient.getFormResponse("/api/firmware/revision/factory")})()}createBOMItem(){var t=this;return z(function*(){return t.nuviotClient.getFormResponse("/api/devicetype/bomitem/factory")})()}getFirmware(t){return this.nuviotClient.getFormResponse(`/api/firmware/${t}`)}getDeviceProperties(t){return this.nuviotClient.request(`/api/deviceconfig/${t}/properties`)}getDeviceConnectionEvents(t,e){return this.nuviotClient.request(`/api/device/${t}/${e}/connectionlog`)}LoadRepoGroupsAndDevices(t,e=!1){t===this._repoId&&this._deviceRepo&&this._devices&&this._deviceGroups&&!e?(this.setDeviceRepo(this._deviceRepo),this.setDevices(this._devices),this.setDeviceGroups(this._deviceGroups)):(this.setDeviceRepo(null),this.setDevices(null),this.setDeviceDetail(null),this.setDeviceGroups(null),this.setDevicesLoading(!0),this._repoId=t,this.nuviotClient.getFormResponse(`/api/devicerepo/${t}`).then(n=>this.setDeviceRepo(n.model)),this.nuviotClient.getListResponse(`/api/devices/${t}`).then(n=>{this.setDevices(n.model),this.setDevicesLoading(!1)}),this.nuviotClient.getListResponse(`api/repo/${t}/groups`).then(n=>this.setDeviceGroups(n.model)))}createDeviceRepo(){var t=this;return z(function*(){return yield t.nuviotClient.getFormResponse("/api/devicerepo/factory")})()}loadDeviceRepo(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse(`/api/devicerepo/${t}`);return e.setDeviceRepo(n.model),n})()}loadDeviceOntoPage(t,e){if(t&&e&&e!==this._deviceId){this._deviceLoading$.next(null),this._deviceCleared$.next(null);const n=`/api/device/${t}/${e}/metadata`;let r=this.deviceMetadataEntry(n);if(r.hasEntry){let o=0;const a=setInterval(()=>{o+=1,r.isLoaded?(clearInterval(a),console.log("--\x3e entry value found! lookup interval cleared."),this.deviceSafeInit(r.value),this.setDeviceDetail(r.value)):r=this.deviceMetadataEntry(n)},25)}else console.log("--\x3e uri has no entry yet; initial injection proceeding..."),this._deviceMetadataCache[n]=void 0,this.nuviotClient.getFormResponse(n).then(o=>{this._deviceId=e,this._repoId=t,this._deviceMetadataCache[n]=o.model,this.deviceSafeInit(o.model),this.setDeviceDetail(o.model),console.log("--\x3e initial injection complete.")})}}loadDeviceGroups(t){var e=this;return z(function*(){return yield e.nuviotClient.getListResponse(`api/repo/${t}/groups`)})()}updateRemoteDeviceProperties(t,e){return this.nuviotClient.request(`/api/device/remoteconfig/${t}/${e}/all/send`)}restartDevice(t,e){return this.nuviotClient.request(`/api/device/remoteconfig/${t}/${e}/restart`)}refreshDeviceTwin(t,e){return this.nuviotClient.request(`/api/device/remoteconfig/${t}/${e}/query`)}requestFirmwareUpdate(t,e,n,r){return this.nuviotClient.request(`/api/device/remoteconfig/${t}/${e}/firmware/${n}/revision/${r}?triggeredRemotely=true`)}getFirmwareHistory(t,e){return new Promise((r,o)=>{this.nuviotClient.getListResponse(`/api/firmware/history/${t}/${e}`).then(a=>{r(a.model)}).catch(a=>o(a))})}getDeviceGeoBoundingBox(t,e){return this.nuviotClient.request(`/api/device/${t}/${e}/boundingbox`,!1,!1)}loadDeviceLogs(t,e){if(e!==this._deviceIdForLogs){const n=`device/${t}/logs/${e}`;this._deviceLogLoading$.next(null),this._deviceCleared$.next(null),this.nuviotClient.getListResponse(n).then(r=>{this._deviceId=e,this._repoId=t,this._deviceLogs$.next(r.model)})}}downloadDeviceTypeResource(t,e,n){this.nuviotClient.getBlobResponse(`/api/devicetype/${e}/resources/${n}`,t)}getMediaItemsForDevice(t,e){return new Promise((r,o)=>{this.nuviotClient.getListResponse(`/api/${t}/devices/${e}/media`).then(s=>{r(s)}).catch(s=>{o(s)})})}getDeviceUnCached(t,e){var n=this;return z(function*(){const r=`/api/device/${t}/${e}/metadata`;return(yield n.nuviotClient.getFormResponse(r)).model})()}getDeviceCustomPage(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/deviceconfig/${t}/custompage`)})()}getDevice(t,e,n=!0){var r=this;return z(function*(){const o=`/api/device/${t}/${e}/metadata`;return t&&e?(n&&(r.setDeviceDetail(null),r._deviceLoading$.next(null)),new Promise((s,l)=>{let d=r.deviceMetadataEntry(o);if(d.hasEntry){let f=0;const y=setInterval(()=>{f+=1,d.isLoaded?(clearInterval(y),s(d.value),n&&r.setDeviceDetail(d.value)):d=r.deviceMetadataEntry(o)},25)}else r._deviceMetadataCache[o]=void 0,r.nuviotClient.getFormResponse(o).then(f=>{s(f.model),n&&r.setDeviceDetail(f.model),r._deviceMetadataCache[o]=f.model}).catch(f=>l(f))})):new Promise(void 0)})()}refreshDeviceData(t,e){if(t&&e){const n=`/api/device/${t}/${e}/metadata`;this._deviceMetadataCache[n]=void 0,this.nuviotClient.getFormResponse(n).then(r=>{this.setDeviceDetail(r.model),this._deviceMetadataCache[n]=r.model})}}createDeviceGroup(t){var e=this;return z(function*(){return e.deviceGroupService.createDeviceGroup(t)})()}loadDeviceGroup(t,e){var n=this;return z(function*(){n.setDeviceGroup(null);let r=yield n.deviceGroupService.getDeviceGroup(t,e);return n.setDeviceGroup(r.model),r})()}loadDeviceExceptions(t,e){return this.nuviotClient.getListResponse(`/api/device/${t}/errors/${e}`)}clearDevice(){this.setDeviceDetail(null)}clearDeviceErrorCode(t,e,n){return this.nuviotClient.delete(`/api/device/${t}/${e}/error/${n}`)}addDevice(t){var e=this;return z(function*(){let n=yield e.nuviotClient.insert(`/api/device/${t.deviceRepository.id}`,t);return n.successful&&e.setDeviceDetail(null),n})()}addUserDevice(t){return new Promise((n,r)=>{this.nuviotClient.insert(`/api/device/${t.device.deviceRepository.id}/userdevice`,t).then(o=>{this.setDeviceDetail(null),n(o)}).catch(o=>r(o))})}getUserDevices(t,e){return new Promise((r,o)=>{this.nuviotClient.getListResponse(`/api/users/repo/${t}`,e).then(a=>{r(a)}).catch(a=>o(a))})}updateCustomStatus(t,e,n){var r=this;return z(function*(){return r.nuviotClient.request(`/api/device/${t}/${e}/status/${n}`)})()}resetCustomStatus(t,e){var n=this;return z(function*(){return n.nuviotClient.request(`/api/device/${t}/${e}/status/reset`)})()}updateDevice(t,e=!0){var n=this;return z(function*(){let r=yield n.nuviotClient.updateWithResponse(`/api/device/${t.deviceRepository.id}`,t);return r.successful&&n.setDeviceDetail(e?null:t),r})()}saveSensor(t,e){var n=this;return z(function*(){return yield n.nuviotClient.postWithResponse(`/api/device/${t.deviceRepository.id}/device/${t.id}/sensor`,e)})()}removeSensor(t,e){var n=this;return z(function*(){return yield n.nuviotClient.deleteWithResponse(`/api/device/${t.deviceRepository.id}/device/${t.id}/sensor/${e.id}`)})()}addDeviceNote(t,e,n){return new Promise((o,a)=>{this.nuviotClient.post(`/api/device/${t}/${e}/note`,n).then(s=>{o(s)}).catch(s=>a(s))})}validateDevice(t){const e=[];return t.name||e.push({message:"Device Name is a required field."}),t.deviceId||e.push({message:"Device Id is a required field."}),t.primaryAccessKey||e.push({message:"Primary access key is a required field."}),t.secondaryAccessKey||e.push({message:"Secondary access key is a required field."}),t.deviceType&&t.deviceType.id?(!t.deviceConfiguration||!t.deviceConfiguration.id)&&e.push({message:"Device Configuration is a required field (device type may be invalid)"}):e.push({message:"Device Type is a required Field."}),e}createDeviceSensor(){return this.nuviotClient.getFormResponse("/api/device/sensor/factory")}editDeviceSensor(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/device/sensor/factory");return n.model=t,n.isEditing=!0,n})()}onDeviceNotificationSubscription(){return this._deviceNotificationSubscription$.asObservable()}onDeviceGroupNotificationSubscription(){return this._deviceGroupNotificationSubscription$.asObservable()}onDeviceRepoNotificationSubscription(){return this._deviceRepoNotificationSubscription$.asObservable()}onDevices(){return this._devices$.asObservable()}onDevicesLoading(){return this._devicesLoading$.asObservable()}onDeviceRepo(){return this._deviceRepo$.asObservable()}onDeviceGroups(){return this._deviceGroups$.asObservable()}onDeviceGroup(){return this._deviceGroup$.asObservable()}onDeviceRepos(){return this._deviceRepos$.asObservable()}onDeviceDetail(){return this._device$.asObservable()}onDeviceCleared(){return this._deviceCleared$.asObservable()}onDeviceLoading(){return this._deviceLoading$.asObservable()}onDeviceLog(){return this._deviceLogs$.asObservable()}onDeviceLogCleared(){return this._deviceLogCleared$.asObservable()}onDeviceLogLoading(){return this._deviceLogLoading$.asObservable()}getDeviceGroups(){return this._deviceGroups}getDevices(){return this._devices}getDevicesForRepo(t){return this.nuviotClient.getListResponse(`/api/devices/${t}`)}getPublicDevicesForRepo(t,e){return this.nuviotClient.request(`/device/org/${t}/repo/${e}`)}getDevicesForCustomer(t,e){return this.nuviotClient.getListResponse(`/api/devices/${t}/customer/${e}`)}getDevicesForCustomerLocation(t,e,n){return this.nuviotClient.getListResponse(`/api/devices/${t}/customer/${e}/location/${n}`)}getDevicesForRepoByDeviceType(t,e){return this.nuviotClient.getListResponse(`/api/devices/${t}/devicetype/${e}`)}getDevicesForRepoByDeviceTypeKey(t,e){return this.nuviotClient.getListResponse(`/api/devices/${t}/devicetype/key/${e}`)}getDeviceRepo(){return this._deviceRepo}getDeviceRepos(){return this._deviceRepos}getDeviceDetail(){return this._device}getConnectedDevices(t){return this.nuviotClient.getListResponse(`/api/deployment/instance/${t}/connected/monitored`)}getDeviceStatusHistory(t,e){return this.nuviotClient.getListResponse(`/api/device/${t}/status/${e}/history`)}getCurrentDevicesStatus(t){return this.nuviotClient.getListResponse(`/api/devices/${t}/status`)}setDevices(t){this._devices=t,this._devices$.next(t)}setDevicesLoading(t){this._devicesLoading$.next(t)}setDeviceRepo(t){this._deviceRepo=t,this._deviceRepo$.next(t)}setDeviceDetail(t){this._deviceId=t?t.id:null,this._device=t,this._device$.next(t)}setDeviceGroups(t){this._deviceGroups=t,this._deviceGroups$.next(t)}setDeviceRepos(t){this._deviceRepos=t,this._deviceRepos$.next(t)}setDeviceGroup(t){this._deviceGroup=t,this._deviceGroup$.next(t)}deviceMetadataEntry(t){const e=Object.keys(this._deviceMetadataCache).find(o=>o===t),n=e?this._deviceMetadataCache[e]:void 0;return{hasEntry:void 0!==e,isLoaded:void 0!==n,value:n}}getErrorCodes(){return this.nuviotClient.getListResponse("/api/errorcodes")}getErrorCode(t){return this.nuviotClient.getFormResponse(`/api/errorcode/${t}`)}createErrorCode(){return this.nuviotClient.getFormResponse("/api/errorcode/factory")}addErrorCode(t){return this.nuviotClient.insert("/api/errorcode",t)}updateErrorCode(t){return this.nuviotClient.update("/api/errorcode",t)}saveErrorCode(t){return t.isEditing?this.updateErrorCode(t.model):this.addErrorCode(t.model)}raiseDeviceError(t,e){return this.nuviotClient.request(`/api/device/${t.deviceRepository.id}/${t.id}/error/${e}/raise`)}deleteErrorCode(t){return this.nuviotClient.delete(`/api/errorcode/${t}`)}sendDeviceNotification(t,e,n=!1,r=!1){return this.nuviotClient.request(`/api/notifications/${t.deviceRepository.id}/${t.id}/${e}?testing=${n}&dryrun=${r}`)}testDeviceNotification(t,e,n,r=!1,o=!1){return this.nuviotClient.request(`/api/notifications/${t}/${e}/${n}?testing=${r}&dryrun=${o}`)}setDevicePinCode(t,e,n=!1){return this.nuviotClient.request(`/api/device/${t.deviceRepository.id}/${t.id}/pin/set/${e}?mustchange=${n}`)}setDeviceCustomState(t,e,n){return this.nuviotClient.request(`/api/device/${t}/${e}/customstatus/${n}`)}clearDevicePinCode(t){return this.nuviotClient.delete(`/api/device/${t.deviceRepository.id}/${t.id}/pin`)}getDeviceWithPin(t,e,n,r){return this.nuviotClient.request(`/api/device/${t}/${e}/${n}/${r}/view`)}signInWithNotification(t,e,n){return this.nuviotClient.request(`/device/notififcation/${t}/${e}/${n}/signin`)}silenceNotification(t,e){return this.nuviotClient.request(`/api/deployment/instance/${t}/device/${e}/notifications/silence`)}enableNotification(t,e){return this.nuviotClient.request(`/api/deployment/instance/${t}/device/${e}/notifications/enable`)}getDevicePems(t,e){return this.nuviotClient.getListResponse(`/api/device/${t}/pems/${e}`)}getDevicePin(t,e){return this.nuviotClient.request(`/api/device/${t}/${e}/pin`)}getDeviceTransactions(t){return this.nuviotClient.getListResponse(`/api/device/${t}/records`)}getShortenedLink(t,e){return this.nuviotClient.request(`/api/device/${t}/${e}/link/short`)}addDeviceContactListWithPin(t,e,n,r,o){return this.nuviotClient.post("/api/device/current/contacts",o)}sendOnlineNotification(t,e){return this.nuviotClient.request(`/api/notification/device/${t}/${e}/online/test`)}sendOfflineNotification(t,e){return this.nuviotClient.request(`/api/notification/device/${t}/${e}/offline/test`)}getSilencedAlarms(t,e){return this.nuviotClient.getListResponse(`/api/device/${t}/${e}/alarms/silenced`)}setCustomerLocation(t,e,n){return this.nuviotClient.postWithResponse(`/api/device/${t}/${e}/location`,n)}associateDeviceWithDiagram(t,e,n){return this.nuviotClient.post(`/api/device/${t}/${e}/diagram`,n)}removeDeviceFromDiagram(t,e){return this.nuviotClient.delete(`/api/device/${t}/${e}/diagram`)}setDeviceName(t,e,n){return this.nuviotClient.request(`/api/device/${t}/${e}/name?devicename=${encodeURIComponent(n)}`)}enableTestMode(t,e){return this.nuviotClient.request(`/api/device/${t}/${e}/testmode/true`)}disableTestMode(t,e){return this.nuviotClient.request(`/api/device/${t}/${e}/testmode/false`)}static \u0275fac=function(e){return new(e||sh)(Ee(T_),Ee(An))};static \u0275prov=$e({token:sh,factory:sh.\u0275fac,providedIn:"root"})}class lh{nuviotClient;constructor(t){this.nuviotClient=t}getHosts(){return this.nuviotClient.getListResponse("/api/deployment/hosts")}getFailedHosts(){return this.nuviotClient.getListResponse("/sys/api/deployment/hosts/failed")}getAllHosts(){return this.nuviotClient.getListResponse("/sys/api/deployment/hosts/active")}getActiveHosts(){return this.nuviotClient.getListResponse("/sys/api/deployment/hosts")}createHost(){return this.nuviotClient.getFormResponse("/api/deployment/host/factory")}getHost(t){return this.nuviotClient.getFormResponse(`/api/deployment/host/${t}`)}GetHostWithKeys(t){return this.nuviotClient.getFormResponse(`/api/deployment/host/${t}/secure`)}AddHost(t){return this.nuviotClient.post("/api/deployment/host",t)}RegenHostKey(t,e){return this.nuviotClient.request(`/api/deployment/host/${t}/generate/${e}`)}UpdateHost(t){return this.nuviotClient.update("/api/deployment/host",t)}DeleteHost(t){return this.nuviotClient.delete(`/api/deployment/host/${t}`)}GetSolutions(){return this.nuviotClient.getListResponse("/api/deployment/solutions")}GetSolution(t){return this.nuviotClient.getFormResponse(`/api/deployment/solution/${t}`)}CreateSolution(){return this.nuviotClient.getFormResponse("/api/deployment/solution/factory")}AddSolution(t){return this.nuviotClient.post("/api/deployment/solution",t)}UpdateSolution(t){return this.nuviotClient.update("/api/deployment/solution",t)}GetDeploymentActivities(t,e){return this.nuviotClient.getListResponse(`/api/deployment/solution/${t}/activities`)}GetSubscriptions(){return this.nuviotClient.getListResponse("/api/subscriptions")}GetInstances(){return this.nuviotClient.getListResponse("/api/deployment/instances")}GetAllInstances(){return this.nuviotClient.getListResponse("/sys/api/deployment/instances")}GetActiveInstances(){return this.nuviotClient.getListResponse("/sys/api/deployment/instances/active")}enableTestMode(t){return this.nuviotClient.request(`/api/deployment/instance/${t}/testmode/true`)}disableTestMode(t){return this.nuviotClient.request(`/api/deployment/instance/${t}/testmode/false`)}getInstance(t){return this.nuviotClient.getFormResponse(`/api/deployment/instance/${t}`)}CreateInstance(){return this.nuviotClient.getFormResponse("/api/deployment/instance/factory")}GetWebSocketUrl(t,e){return this.nuviotClient.request(`/api/wsuri/${t}/${e}/normal`)}GetUsageMetrics(t,e){return this.nuviotClient.getListResponse(`/api/usagemetrics/${t}/${e}`)}ValidateSolution(t){return this.nuviotClient.request(`/api/deployment/solution/${t}/validate`)}SendAction(t,e,n){return this.nuviotClient.request(`/api/deployment/${t}/${e}/${n}`)}DeployInstance(t){return this.nuviotClient.request(`/api/deployment/instance/${t}/deploy`)}RemoveSharedInstance(t,e){return this.nuviotClient.delete(`/api/deployment/host/${t}/remove/${e}`)}LoadStatusHistory(t,e,n){return this.nuviotClient.getListResponse(`/api/deployment/${t}/${e}/statushistory`,n)}LoadTelemetry(t,e,n,r){return this.nuviotClient.getListResponse(`/api/telemetry/${t}/${e}/${n}`,r)}GetContainerRepos(){return this.nuviotClient.getListResponse("/api/container/repos")}GetContainer(t){return this.nuviotClient.getFormResponse(`/api/container/repo/${t}`)}GetContainerTags(t){return this.nuviotClient.getListResponse(`/api/container/${t}/registry/tags`)}CreateContainerTag(){return this.nuviotClient.getFormResponse("/api/container/tag/factory")}CreateContainer(){return this.nuviotClient.getFormResponse("/api/container/repo/factory")}SaveContainer(t){return t.isEditing?this.nuviotClient.update("/api/container/repo",t.model):this.nuviotClient.post("/api/container/repo",t.model)}UpdateInstanceRuntime(t,e,n){return this.nuviotClient.get(`/api/deployment/instance/${t}/image/${e}/${n}`)}GetFailedPems(t,e){return this.nuviotClient.getListResponse(`/api/device/${t}/pems/errors/${e}`)}GetPem(t,e,n){let r=`/api/device/${t}/${e}/${n.replace(".","_")}/pem`;return this.nuviotClient.request(r)}GetSecret(t){return this.nuviotClient.request(`/api/secret/${t}`)}getClientApps(){return this.nuviotClient.getListResponse("/api/clientapps")}getClientApp(t){return this.nuviotClient.getFormResponse(`/api/clientapp/${t}`)}createClientApp(){return this.nuviotClient.getFormResponse("/api/clientapp/factory")}addClientApp(t){return this.nuviotClient.post("/api/clientapp",t)}updateClientApp(t){return this.nuviotClient.update("/api/clientapp",t)}deleteClientApp(t){return this.nuviotClient.delete(`/api/clientapp/${t}`)}saveClientApp(t){return t.isEditing?this.nuviotClient.update("/api/clientapp",t.model):this.nuviotClient.post("/api/clientapp",t.model)}getDeviceNotifications(){return this.nuviotClient.getListResponse("/api/notifications")}getDeviceNotificationsForCustomer(t){return this.nuviotClient.getListResponse(`/api/notifications/customer/${t}`)}getDeviceNotificationHistory(t){return this.nuviotClient.getListResponse(`/api/device/notification/${t}/history`)}getRaisedNotificationSummary(t,e){return this.nuviotClient.request(`/api/device/notification/raised/${t}/${e}/summary`)}getDeviceRepoNotificationHistory(t){return this.nuviotClient.getListResponse(`/api/device/notification/repo/${t}/history`)}getRaisedDeviceNotificationHistory(t){return this.nuviotClient.getListResponse(`/api/device/notification/raised/${t}/history`)}getRaisedDeviceRepoNotificationHistory(t){return this.nuviotClient.getListResponse(`/api/device/notification/raised/repo/${t}/history`)}getPublicRaisedDeviceRepoNotificationHistory(t,e){return this.nuviotClient.getListResponse(`/deviceapi/device/notification/${t}/raised/repo/${e}/history`)}getDeviceNotification(t){return this.nuviotClient.getFormResponse(`/api/notification/${t}`)}createDeviceNotification(){return this.nuviotClient.getFormResponse("/api/notification/factory")}addDeviceNotification(t){return this.nuviotClient.post("/api/notification",t)}updateDeviceNotification(t){return this.nuviotClient.update("/api/notification",t)}deleteDeviceNotification(t){return this.nuviotClient.delete(`/api/notification/${t}`)}saveDeviceNotification(t){return t.isEditing?this.nuviotClient.update("/api/clientapp",t.model):this.nuviotClient.post("/api/clientapp",t.model)}getSystemTests(){return this.nuviotClient.getListResponse("/api/systemtests")}getSystemTest(t){return this.nuviotClient.getFormResponse(`/api/systemtest/${t}`)}createSystemTest(){return this.nuviotClient.getFormResponse("/api/systemtest/factory")}addSystemTest(t){return this.nuviotClient.post("/api/systemtest",t)}updateSystemTest(t){return this.nuviotClient.update("/api/systemtest",t)}deleteSystemTest(t){return this.nuviotClient.delete(`/api/systemtest/${t}`)}saveSystemTest(t){return t.isEditing?this.nuviotClient.update("/api/systemtest",t.model):this.nuviotClient.post("/api/systemtest",t.model)}createTestExecution(t){return this.nuviotClient.request(`/api/systemtest/${t}/start`)}abortTestExecution(t){return this.nuviotClient.request(`/api/systemtest/${t}/abort`)}getTestExecution(t){var e=this;return z(function*(){return(yield e.nuviotClient.request(`/api/systemtest/execution/${t}/result`)).result})()}getTestExecutions(){return this.nuviotClient.getListResponse("/api/systemtest/execution/results")}completeTestStep(t,e,n){var r=this;return z(function*(){return(yield r.nuviotClient.postWithResponse(`/api/systemtest/${t}/step/${e}/complete`,n)).result})()}undoTestStep(t,e){var n=this;return z(function*(){return(yield n.nuviotClient.request(`/api/systemtest/${t}/step/${e}/undo`)).result})()}getIncidentProtocols(){return this.nuviotClient.getListResponse("/api/incident/protocols")}getIncidentProtocol(t){return this.nuviotClient.getFormResponse(`/api/incident/protocol/${t}`)}createIncidentProtocol(){return this.nuviotClient.getFormResponse("/api/incident/protocol/factory")}addIncidentProtocol(t){return this.nuviotClient.post("/api/incident/protocol",t)}updateIncidentProtocol(t){return this.nuviotClient.update("/api/incident/protocol",t)}deleteIncidentProtocol(t){return this.nuviotClient.delete(`/api/incident/protocol/${t}`)}saveIncidentProtocol(t){return t.isEditing?this.nuviotClient.update("/api/incident/protocol",t.model):this.nuviotClient.post("/api/incident/protocol",t.model)}createIntegration(){return this.nuviotClient.getFormResponse("/api/integration/factory")}getIntegration(t){return this.nuviotClient.getFormResponse(`/api/integration/${t}`)}deleteIntegration(t){return this.nuviotClient.delete(`/api/integration/${t}`)}getIntegrations(){return this.nuviotClient.getListResponse("/api/integrations")}insertIntegration(t){return this.nuviotClient.post("/api/integration",t)}updateIntegration(t){return this.nuviotClient.update("/api/integration",t)}saveIntegration(t){return t.isEditing?this.nuviotClient.update("/api/integration",t.model):this.nuviotClient.post("/api/integration",t.model)}getTelemetryData(t){return this.nuviotClient.getListResponse(t)}getStatusHistory(t){return this.nuviotClient.getListResponse(t)}createWiFiConnectionProfile(){return this.nuviotClient.getFormResponse("/api/wificonnectionprofile/factory")}editWiFiConnectionProfile(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/wificonnectionprofile/factory");return n.model=t,n.isEditing=!0,n})()}getWiFiConnectionProfile(t,e){return this.nuviotClient.request(`/api/deployment/instance/${t}/wifiprofile/${e}`)}saveWiFiConnectionProfile(t,e){return console.log(e),e.isEditing?this.nuviotClient.updateWithResponse(`/api/deployment/instance/${t}/wifiprofile`,e.model):this.nuviotClient.postWithResponse(`/api/deployment/instance/${t}/wifiprofile`,e.model)}static \u0275fac=function(e){return new(e||lh)(Ee(An))};static \u0275prov=$e({token:lh,factory:lh.\u0275fac,providedIn:"root"})}class Mf{nuviotClient;createPage(){return this.nuviotClient.getFormResponse("/api/deviceadmin/factory/page")}constructor(t){this.nuviotClient=t}getWorkflow(t){return this.nuviotClient.getFormResponse(`/api/deviceadmin/deviceworkflow/${t}`)}createWorkflow(){return this.nuviotClient.getFormResponse("/api/deviceadmin/factory/deviceworkflow")}getWorkflows(){return this.nuviotClient.getListResponse("/api/deviceadmin/deviceworkflows")}insertWorkflow(t){return this.nuviotClient.post("/api/deviceadmin/deviceworkflow",t)}updateWorkflow(t){return this.nuviotClient.update("/api/deviceadmin/deviceworkflow",t)}deleteWorkflow(t){return this.nuviotClient.delete("/api/deviceadmin/deviceworkflow")}createPlanner(){return this.nuviotClient.getFormResponse("/api/pipeline/admin/planner/factory")}getPlanner(t){return this.nuviotClient.getFormResponse(`/api/pipeline/admin/planner/${t}`)}getPlanners(){return this.nuviotClient.getListResponse("/api/pipeline/admin/planners")}addPlanner(t){return this.nuviotClient.post("/api/pipeline/admin/planner",t)}updatePlanner(t){return this.nuviotClient.update("/api/pipeline/admin/planner",t)}savePlanner(t){return t.isEditing?this.updatePlanner(t.model):this.addPlanner(t.model)}removePlanner(t){return this.nuviotClient.deleteWithResponse(`/api/pipeline/admin/planner/${t}`)}createAppCache(){return this.nuviotClient.getFormResponse("/api/appcache/factory")}getAppCache(t){return this.nuviotClient.getFormResponse(`/api/appcache/${t}`)}getAppCaches(){return this.nuviotClient.getListResponse("/api/appcaches")}addAppCache(t){return this.nuviotClient.post("/api/appcache",t)}updateAppCache(t){return this.nuviotClient.update("/api/appcache",t)}saveAppCache(t){return t.isEditing?this.updateAppCache(t.model):this.addAppCache(t.model)}createWorkflowInputNode(){return this.nuviotClient.getFormResponse("/api/deviceadmin/factory/input")}createWorkflowAttributeNode(){return this.nuviotClient.getFormResponse("/api/deviceadmin/factory/attribute")}createWorkflowOutputNode(){return this.nuviotClient.getFormResponse("/api/deviceadmin/factory/outputcommand")}createWorkflowOutputParameter(){return this.nuviotClient.getFormResponse("/api/deviceadmin/factory/outputcommand")}createWorkflowInputCommandNode(){return this.nuviotClient.getFormResponse("/api/deviceadmin/factory/inputcommand")}createStateMachineNode(){return this.nuviotClient.getFormResponse("/api/statemachine/factory")}editStateMachineNode(t){var e=this;return z(function*(){let n=yield e.createStateMachineNode();return n.model=t,n.isEditing=!0,n})()}getStateSets(){return this.nuviotClient.getListResponse("/api/statemachine/statesets")}getStateSet(t){return this.nuviotClient.getFormResponse(`/api/statemachine/stateset/${t}`)}createStateSet(){return this.nuviotClient.getFormResponse("/api/statemachine/factory/stateset")}createState(){return this.nuviotClient.getFormResponse("/api/statemachine/factory/state")}editState(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/statemachine/factory/state");return n.model=t,n.isEditing=!0,n})()}createTransmitter(){return this.nuviotClient.getFormResponse("/api/pipeline/admin/transmitter/factory")}getTransmitter(t){return this.nuviotClient.getFormResponse(`/api/pipeline/admin/transmitter/${t}`)}createTransition(){return this.nuviotClient.getFormResponse("/api/statemachine/factory/transition")}editTransition(t){var e=this;return z(function*(){let n=yield e.createTransition();return n.model=t,n.isEditing=!0,n})()}addStateSet(t){return this.nuviotClient.post("/api/statemachine/stateset",t)}updateStateSet(t){return this.nuviotClient.update("/api/statemachine/stateset",t)}saveStateSet(t){return t.isEditing?this.updateStateSet(t.model):this.addStateSet(t.model)}deleteStateSet(t){return this.nuviotClient.deleteWithResponse(`/api/statemachine/stateset/${t}`)}createEvent(){return this.nuviotClient.getFormResponse("/api/statemachine/factory/event")}editEvent(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/statemachine/factory/event");return n.model=t,n.isEditing=!0,n})()}createUnitSet(){return this.nuviotClient.getFormResponse("/api/deviceadmin/factory/unitset")}createUnit(){return this.nuviotClient.getFormResponse("/api/deviceadmin/unit/factory")}getUnitSets(){return this.nuviotClient.getListResponse("/api/deviceadmin/unitsets")}getUnitSet(t){return this.nuviotClient.getFormResponse(`/api/deviceadmin/unitset/${t}`)}addUnitSet(t){return this.nuviotClient.post("/api/deviceadmin/unitset",t)}updateUnitSet(t){return this.nuviotClient.update("/api/deviceadmin/unitset",t)}saveUnitSet(t){return t.isEditing?this.updateUnitSet(t.model):this.addUnitSet(t.model)}createCustomModule(){return this.nuviotClient.getFormResponse("/api/pipeline/admin/custommodule/factory")}getCustomModule(t){return this.nuviotClient.getFormResponse(`/api/pipeline/admin/custommodule/${t}`)}getCustomModules(){return this.nuviotClient.getListResponse("/api/pipeline/admin/custommodules")}addCustomModule(t){return this.nuviotClient.post("/api/pipeline/admin/custommodule",t)}updateCustomModule(t){return this.nuviotClient.update("/api/pipeline/admin/custommodule",t)}saveCustomModule(t){return t.isEditing?this.updateCustomModule(t.model):this.addCustomModule(t.model)}createDataStream(){var t=this;return z(function*(){return t.nuviotClient.getFormResponse("api/datastream/factory")})()}getDataStream(t){return this.nuviotClient.getFormResponse(`api/datastream/${t}`)}getDataStreams(){return this.nuviotClient.getListResponse("/api/datastreams")}getDataStreamField(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/datastreamfield/factory");return n.model=t,n.isEditing=!0,n})()}createDataStreamField(){var t=this;return z(function*(){return yield t.nuviotClient.getFormResponse("/api/datastreamfield/factory")})()}createOutputTranslator(){return this.nuviotClient.getFormResponse("/api/pipeline/admin/outputtranslator/factory")}getOutputTranslator(t){return this.nuviotClient.getFormResponse(`/api/pipeline/admin/outputtranslator/${t}`)}getInputTranslators(){return this.nuviotClient.getListResponse("/api/pipeline/admin/inputtranslators")}createInputTranslator(){return this.nuviotClient.getFormResponse("/api/pipeline/admin/inputtranslator/factory")}getInputTranslator(t){return this.nuviotClient.getFormResponse(`/api/pipeline/admin/inputtranslator/${t}`)}removeInputTranslator(t){return this.nuviotClient.deleteWithResponse(`/api/pipeline/admin/inputtranslator/${t}`)}insertInputTranslator(t){return this.nuviotClient.post("/api/pipeline/admin/inputtranslator",t)}updateInputTranslator(t){return this.nuviotClient.update("/api/pipeline/admin/inputtranslator",t)}getSentinels(){return this.nuviotClient.getListResponse("/api/pipeline/admin/sentinels")}createSentinel(){return this.nuviotClient.getFormResponse("/api/pipeline/admin/sentinel/factory")}getSentinel(t){return this.nuviotClient.getFormResponse(`/api/pipeline/admin/sentinel/${t}`)}removeSentinel(t){return this.nuviotClient.deleteWithResponse(`/api/pipeline/admin/sentinel/${t}`)}insertSentinel(t){return this.nuviotClient.post("/api/pipeline/admin/sentinel",t)}updateSentinel(t){return this.nuviotClient.update("/api/pipeline/admin/sentinel",t)}saveSentinel(t){return t.isEditing?this.updateSentinel(t.model):this.insertSentinel(t.model)}createListener(){return this.nuviotClient.getFormResponse("/api/pipeline/admin/listener/factory")}insertListener(t){return this.nuviotClient.post("/api/pipeline/admin/listener",t)}getDefaultListenerForRepo(t){return this.nuviotClient.request(`/api/device/repo/${t}/defaultlistener`)}getListener(t){return this.nuviotClient.getFormResponse(`/api/pipeline/admin/listener/${t}`)}getListeners(){return this.nuviotClient.getListResponse("/api/pipeline/admin/listeners")}removeListener(t){return this.nuviotClient.deleteWithResponse(`/api/pipeline/admin/listener/${t}`)}updateListener(t){return this.nuviotClient.update("/api/pipeline/admin/listener",t)}getOutputTranslators(){return this.nuviotClient.getListResponse("/api/pipeline/admin/outputtranslators")}getTransmitters(){return this.nuviotClient.getListResponse("/api/pipeline/admin/transmitters")}getSharedConnections(){return this.nuviotClient.getListResponse("/api/sharedconnections")}getSharedConnection(t){return this.nuviotClient.getFormResponse(`/api/sharedconnection/${t}`)}createSharedConnection(){return this.nuviotClient.getFormResponse("/api/sharedconnection/factory")}insertSharedConnection(t){return this.nuviotClient.post("/api/sharedconnection",t)}updateSharedConnection(t){return this.nuviotClient.update("/api/sharedconnection",t)}saveSharedConnection(t){return t.isEditing?this.updateSharedConnection(t.model):this.insertSharedConnection(t.model)}removeSharedConnection(t){return this.nuviotClient.deleteWithResponse(`/api/sharedconnection/${t}`)}static \u0275fac=function(e){return new(e||Mf)(Ee(An))};static \u0275prov=$e({token:Mf,factory:Mf.\u0275fac,providedIn:"root"})}const cue=["gmapContainer"];function due(i,t){if(1&i&&(u(0,"div",6)(1,"span"),m(2),c()()),2&i){const e=g(2);h(2),Re(e.location.address1)}}function uue(i,t){if(1&i&&(u(0,"div",6)(1,"span"),m(2),c()()),2&i){const e=g(2);h(2),Gr("",e.location.city," ",e.location.state,"")}}function hue(i,t){if(1&i&&(u(0,"div",6)(1,"span"),m(2),c()()),2&i){const e=g(2);h(2),Gr("Contact: ",e.adminContact.firstName," ",e.adminContact.lastName," ")}}function pue(i,t){if(1&i&&(u(0,"div",6)(1,"span")(2,"a",40),m(3),c()()()),2&i){const e=g(2);h(2),Ms("href","tel:",e.adminContact.phone,"",Yi),h(1),Re(e.adminContact.phone)}}function fue(i,t){if(1&i&&(u(0,"div",38,4)(2,"div",5),m(3),c(),w(4,due,3,1,"div",39),w(5,uue,3,2,"div",39),w(6,hue,3,2,"div",39),w(7,pue,4,2,"div",39),c()),2&i){const e=g();h(3),Re(e.customer.name),h(1),p("ngIf",e.location.address1),h(1),p("ngIf",e.location.city),h(1),p("ngIf",e.adminContact),h(1),p("ngIf",null==e.adminContact?null:e.adminContact.phone)}}function gue(i,t){if(1&i&&(u(0,"div",41),H(1,"img",42),u(2,"h2"),m(3),c()()),2&i){const e=g();h(3),Re(e.commandDevice.customStatus.text)}}function mue(i,t){if(1&i){const e=pe();u(0,"li")(1,"div",45),N("click",function(){const o=R(e).$implicit;return L(g(2).setIncidentState(o))}),H(2,"img",46),u(3,"div",47)(4,"h4"),m(5),c(),u(6,"span"),m(7),c()()()()}if(2&i){const e=t.$implicit;h(2),Ms("src","https://nuviot.blob.core.windows.net/cdn/ilug/",e.key,".png",Yi),h(3),Re(e.name),h(2),Re(e.description)}}function _ue(i,t){if(1&i&&(u(0,"div")(1,"h3",43),m(2,"Change Condition"),c(),u(3,"ol"),w(4,mue,8,3,"li",44),c()()),2&i){const e=g();h(4),p("ngForOf",e.incidentStates.states)}}function vue(i,t){if(1&i&&(u(0,"li",49)(1,"div"),m(2),c(),u(3,"div"),m(4),c(),u(5,"div"),m(6),Qt(7,"dateTimePrinter"),c()()),2&i){const e=t.$implicit;h(2),Ke("Room: ",e.title,""),h(2),Ke("Status: ",e.notification,""),h(2),Ke("Time: ",Xt(7,3,e.timeStamp),"")}}function yue(i,t){if(1&i&&(u(0,"div"),m(1," Notifications "),u(2,"ol"),w(3,vue,8,5,"li",48),c()()),2&i){const e=g();h(3),p("ngForOf",e.notifications)}}const CS="#A0A0A0";class xf{deviceService;notificationServer;pipelineService;route;paramsSubscription;repoWebSocket;busy=!1;longitude;latitude;polygons=[];markers=[];gmap;map;incidentStates;commandDevice;devices;notifications;diagram;layerId;shapeId;orgId;repoId;flashingShapeId;flashOn=!1;customer;location;adminContact;mapAlertIconImages=new Map;mapAlertIcons=new Map;overlaysById=new Map;normalizeState(t){switch(t.toLowerCase()){case"cold":case"green":case"blue":return"cold";case"warm":case"yellow":return"warm";case"hot":case"red":return"hot";default:return"unknown"}}getZBaseForState(t){return"hot"===t?40:"warm"===t?30:"cold"===t?20:10}stateToColor(t){return console.log("find color for ",t),"hot"===t?"#E53935":"warm"===t?"#FBC02D":"cold"==t?"#1E88E5":CS}clamp01(t){return Math.max(0,Math.min(1,t))}severityToRingWeight(t){let e=.2;"hot"===t?e=2:"warm"===t?e=1:"cold"===t&&(e=.5);const n=this.clamp01(e);return 3+Math.round(5*n)}constructor(t,e,n,r,o,a,s){var l=this;this.deviceService=e,this.notificationServer=n,this.pipelineService=a,this.route=s,this.paramsSubscription=this.route.params.subscribe(function(){var d=z(function*(f){let y=l.route.snapshot.params.diagramid;if(l.layerId=l.route.snapshot.params.layerid,l.shapeId=l.route.snapshot.params.shapeid,l.orgId=l.route.snapshot.params.orgid,l.repoId=l.route.snapshot.params.repoid,console.log(`DiagramId: ${y}, LayerId: ${l.layerId}, ShapeId: ${l.shapeId}, OrgId: ${l.orgId}, RepoId: ${l.repoId}`),l.repoWebSocket&&(l.repoWebSocket.socket.close(),l.repoWebSocket=void 0),l.diagram=yield t.getLocationDiagramOnly(y),l.diagram.layers=l.diagram.layers.filter(k=>k.id==l.layerId),l.configureMap(l.diagram),l.orgId&&l.repoId){let k=yield e.getDevicesForCustomer(l.repoId,l.diagram.customer.id);if(k.successful){let W=k.model;l.devices=W.filter(Ce=>Ce.diagramReference),l.commandDevice=W.find(Ce=>Ce.location?.id==l.diagram.location?.id);let ee=yield l.pipelineService.getStateSet("97B2762316F74389A8449004702C4E8B");l.incidentStates=ee.model;let ge=(yield r.getPublicRaisedDeviceRepoNotificationHistory(l.orgId,l.repoId)).model.filter(Ce=>"Device Online"!=Ce.notification&&"Device Offline"!=Ce.notification);for(let Ce of ge){let we=l.devices.find(ke=>ke.id==Ce.deviceUniqueId);Ce.title=we?we.diagramReference.locationDiagramShape.text:"?"}l.refreshRooms(),l.notifications=ge,l.repoWebSocket&&l.repoWebSocket.socket.close(),l.repoWebSocket=yield l.notificationServer.openSLSocketWithUri("location-diagram",`/api/wsuri/DeviceRepository/${l.repoId}/normal`),l.repoWebSocket&&(l.repoWebSocket.socket.onmessage=Ce=>{let we=JSON.parse(Ce.data);var ke=JSON.parse(we.payloadJSON);let Pe=l.devices.find(Ue=>Ue.id==ke.id);Pe&&(Pe.lastContact=ke.lastContact,Pe.customStatus=ke.customStatus,Pe.icon=ke.icon,console.log("Received notification for device ",Pe.deviceName," new state ",Pe.customStatus.id,Pe.icon),"hot"==ke.customStatus.id&&(l.flashingShapeId=Pe.diagramReference.locationDiagramShape.id),l.refreshRooms(),l.notifications.unshift({deviceUniqueId:ke.id,deviceId:ke.deviceId,deviceRepoId:"-",orgId:"-",testMode:!1,notification:ke.customStatus.text,title:Pe.diagramReference.locationDiagramShape.text,timeStamp:(new Date).toISOString(),notificationId:""}))})}let E=yield o.getCustomer(l.diagram.customer.id);E.successful&&(l.customer=E.model,l.location=E.model.locations.find(W=>y==W.diagram?.id),l.location&&(l.adminContact=l.customer.contacts.find(function(){var W=z(function*(ee){return ee.id==l.location.adminContact?.id});return function(ee){return W.apply(this,arguments)}}())),console.log(l.customer),l.adminContact||(l.adminContact=l.customer.contacts.find(function(){var W=z(function*(ee){return ee.id==l.customer.adminContact?.id});return function(ee){return W.apply(this,arguments)}}())))}});return function(f){return d.apply(this,arguments)}}()),window.setInterval(()=>{if(this.flashingShapeId){let d=this.polygons.find(k=>k.get("shapeId")==this.flashingShapeId);d&&d.setOptions({fillColor:this.flashOn?"#ff0000":"#fcfcfc"});let f=this.markers.find(k=>k.get("shapeId")==this.flashingShapeId),y=f.getLabel();y.color=this.flashOn?"#ffffff":"#000000",f.setLabel(y),this.flashOn=!this.flashOn}},500)}ngOnInit(){}ngOnDestroy(){this.repoWebSocket&&this.repoWebSocket.socket.close(),this.paramsSubscription.unsubscribe()}setIncidentState(t){var e=this;return z(function*(){if(e.busy=!0,console.log(t.key),yield e.deviceService.testDeviceNotification(e.repoId,e.commandDevice.id,t.key),yield e.deviceService.setDeviceCustomState(e.repoId,e.commandDevice.id,t.key),e.commandDevice.customStatus={id:t.key,key:t.key,text:t.name},"ilugnormal"==t.key){for(let n of e.devices)yield e.deviceService.setDeviceCustomState(e.repoId,n.id,"warm"),n.customStatus={id:"warm",key:"warm",text:"Warm"};e.refreshRooms()}e.busy=!1})()}drawArcFromBoundingBox(t,e,n,r=128){if(!this.map)throw new Error("Map not initialized.");if(!google.maps.geometry?.spherical)throw new Error("Google Maps geometry library not loaded. Add libraries=geometry.");if(!t||t.length<5)throw new Error("bbox must contain 5 points: TL,TR,BR,BL,TL.");const o=ze=>(ze%360+360)%360,a=t.slice(0,4).map(ze=>({lat:ze.lat,lng:ze.lon})),l="TL"===(ze=e)?0:"TR"===ze?1:"BR"===ze?2:3,f=(l+2)%4,y="CW"===n?(l+3)%4:(l+1)%4,k=new google.maps.LatLng(a[l].lat,a[l].lng),E=new google.maps.LatLng(a[f].lat,a[f].lng),W=new google.maps.LatLng(a[y].lat,a[y].lng),ee=google.maps.geometry.spherical.computeDistanceBetween(W,k),he=o(google.maps.geometry.spherical.computeHeading(W,k)),ge=o(google.maps.geometry.spherical.computeHeading(W,E));var ze;let Ce;Ce="CW"===n?(ge-he+360)%360:-(he-ge+360)%360;const we=[];for(let ze=0;ze<=r;ze++){const vt=google.maps.geometry.spherical.computeOffset(W,ee,he+Ce*(ze/r));we.push(vt.toJSON())}const ke=new google.maps.Polyline({map:this.map,path:we,strokeWeight:2,strokeOpacity:1,strokeColor:CS,zIndex:9}),Pe=we[we.length-1];return{arc:ke,leaf:new google.maps.Polyline({map:this.map,path:[W.toJSON(),Pe],strokeWeight:1,strokeColor:CS,strokeOpacity:1,zIndex:10})}}configureMap(t){this.diagram=t,window.setTimeout(()=>{if(t.geoLocationCenter){this.longitude=t.geoLocationCenter.longitude,this.latitude=t.geoLocationCenter.latitude;let r={center:new google.maps.LatLng(this.latitude,this.longitude),zoom:t.defaultGeoZoomLevel,mapId:"3736dc9f0c8836e7115beace "};this.map=new google.maps.Map(this.gmap.nativeElement,r)}for(let n of t.layers)for(let r of n.shapes){let o=r.geoPoints.map(a=>new google.maps.LatLng(a.latitude,a.longitude));if("door"==r.shapeType.key){var e=r.geoPoints.map(l=>({lat:l.latitude,lon:l.longitude}));let a="TL";0==r.rotation?a=r.flipX&&r.flipY?"BR":r.flipX?"TR":r.flipY?"BL":"TL":90==r.rotation?a=r.flipX&&r.flipY?"BL":r.flipX?"TL":r.flipY?"BR":"TR":180==r.rotation?a=r.flipX&&r.flipY?"TL":r.flipX?"BL":r.flipY?"TR":"BR":270==r.rotation&&(a=r.flipX&&r.flipY?"TR":r.flipX?"BR":r.flipY?"TL":"BL"),this.drawArcFromBoundingBox(e,a,r.flipX&&!r.flipY||!r.flipX&&r.flipY?"CCW":"CW",64)}else{const a=new google.maps.Polygon({paths:o,strokeColor:"#000000",strokeOpacity:.25,strokeWeight:1,fillColor:"#ffffff",fillOpacity:.08,map:this.map,clickable:!0,zIndex:1}),s="unknown",l=.2,d=new google.maps.Polygon({paths:o,strokeColor:this.stateToColor(s),strokeOpacity:.9,strokeWeight:this.severityToRingWeight(s),fillOpacity:0,map:this.map,clickable:!1,zIndex:10});a.set("shapeId",r.id),d.set("shapeId",r.id),this.polygons.push(a);let f=(r.geoPoints[0].longitude+r.geoPoints[1].longitude)/2,y=(r.geoPoints[1].latitude+r.geoPoints[2].latitude)/2,k=Math.abs(r.geoPoints[0].longitude-r.geoPoints[1].longitude),W=Math.abs(r.geoPoints[1].latitude-r.geoPoints[2].latitude)>k;const ee=new google.maps.Polygon({paths:o,strokeColor:this.stateToColor(s),strokeOpacity:0,strokeWeight:18,fillOpacity:0,map:this.map,clickable:!1,zIndex:8}),he=new google.maps.Marker({position:new google.maps.LatLng(y,f),zIndex:200,label:{color:"#2a2a2a",fontSize:`${r.fontSize}px`,fontWeight:"600",text:r.name,className:W?"marker-label-rotated":""},map:this.map,icon:{url:"",scaledSize:new google.maps.Size(0,0)}});he.set("shapeId",r.id),this.markers.push(he),this.overlaysById.set(r.id,{id:r.id,base:a,ring:d,glow:ee,marker:he,state:s,severity:l});const Ce=48,we=12,Pe=this.getBoundsFromPath(o).getNorthEast(),Ue=new google.maps.Marker({position:Pe,map:this.map,clickable:!1,zIndex:201,icon:{url:"REPLACE_WITH_YOUR_IMAGE_URL",scaledSize:new google.maps.Size(Ce,Ce),anchor:new google.maps.Point(Ce+we,we)}});Ue.set("shapeId",r.id),this.mapAlertIconImages.set(r.id,Ue),document.createElement("div").className="room-corner-icon";const Qe=this.makeCornerIconFromExisting();Qe.style.display="none",new google.maps.marker.AdvancedMarkerElement({map:this.map,position:Pe,content:Qe,zIndex:201}),Qe.style.transform="translate(-40px, 60px)",this.mapAlertIcons.set(r.id,Qe)}}this.refreshRooms()},100)}makeCornerIconFromExisting(){const t=document.querySelector(".icon-ae-core-2");if(!t)throw new Error("Could not find a rendered .icon-ae-core-2 to clone.");const e=t.cloneNode(!0);return e.style.fontSize="48px",e.style.lineHeight="1",e.style.display="inline-block",e}getBoundsFromPath(t){const e=new google.maps.LatLngBounds;for(const n of t)e.extend(n);return e}setShapeState(t,e,n,r=.5){const o=this.overlaysById.get(t);if(!o)return;o.state=e,o.severity=this.clamp01(r);const a=this.stateToColor(e);o.base.setOptions({fillColor:a,fillOpacity:.1,zIndex:this.getZBaseForState(e)}),o.ring.setOptions({strokeColor:a,strokeWeight:this.severityToRingWeight(e),strokeOpacity:.9,zIndex:this.getZBaseForState(e)}),o.glow?.setOptions({strokeColor:a,zIndex:this.getZBaseForState(e),strokeOpacity:"hot"===o.state?.25:0,strokeWeight:"hot"===o.state?16:0}),n.startsWith("http")?(this.mapAlertIconImages.get(t).setIcon({url:n,scaledSize:new google.maps.Size(48,48),anchor:new google.maps.Point(64,-18)}),this.mapAlertIcons.get(t).style.display="none"):(this.mapAlertIcons.get(t).className=n,this.mapAlertIcons.get(t).style.display="block")}refreshRooms(){if(this.devices)for(let t of this.devices)if(t.diagramReference&&t.customStatus){let e=this.normalizeState(t.customStatus.id);console.log(t.deviceName,t.customStatus.id),this.setShapeState(t.diagramReference.locationDiagramShape.id,e,t.icon,1)}}static \u0275fac=function(e){return new(e||xf)(U(Td),U(sh),U(nf),U(lh),U(la),U(Mf),U(bi))};static \u0275cmp=Be({type:xf,selectors:[["app-location-diagram"]],viewQuery:function(e,n){if(1&e&&un(cue,5),2&e){let r;pt(r=ft())&&(n.gmap=r.first)}},decls:51,vars:4,consts:[[1,"desktop-view",2,"display","flex"],["id","map",1,"map-container"],["gmapContainer",""],["role","region","aria-label","Map legend",1,"map-legend","stack"],["legendEl",""],[1,"map-legend__title"],[1,"map-legend__item"],["aria-hidden","true",1,"swatch","swatch--hot"],["aria-hidden","true",1,"swatch","swatch--warm"],["aria-hidden","true",1,"swatch","swatch--cold"],["aria-hidden","true",1,"swatch","swatch--unknown"],[1,"icon-ae-core-2",2,"font-size","48px","display","none"],[1,"path1"],[1,"path2"],[1,"path3"],[1,"path4"],[1,"path5"],[1,"path6"],[1,"path7"],[1,"path8"],[1,"path9"],[1,"path10"],[1,"path11"],[1,"path12"],[1,"path13"],[1,"path14"],[1,"path15"],[1,"path16"],[1,"path17"],[1,"path18"],[1,"path19"],[1,"path20"],[1,"path21"],[1,"path22"],["class","map-legend contacts stack","role","region","aria-label","Map legend",4,"ngIf"],[1,"history-container"],["style","text-align: center;",4,"ngIf"],[4,"ngIf"],["role","region","aria-label","Map legend",1,"map-legend","contacts","stack"],["class","map-legend__item",4,"ngIf"],[1,"phone",3,"href"],[2,"text-align","center"],["width","240","src","https://nuviot.blob.core.windows.net/cdn/gla/gla_wide.png",2,"margin-top","15px"],[2,"text-align","center","color","white","padding","5px","background-color","var(--color-primary)"],[4,"ngFor","ngForOf"],[1,"incident-state",2,"display","flex","padding","5px",3,"click"],["width","64","height","64",2,"margin-top","15px",3,"src"],[2,"margin","10px"],["style","margin-bottom: 10px",4,"ngFor","ngForOf"],[2,"margin-bottom","10px"]],template:function(e,n){1&e&&(u(0,"div",0),H(1,"div",1,2),u(3,"div",3,4)(5,"div",5),m(6,"Legend"),c(),u(7,"div",6),H(8,"span",7),u(9,"span"),m(10,"Hot"),c()(),u(11,"div",6),H(12,"span",8),u(13,"span"),m(14,"Warm"),c()(),u(15,"div",6),H(16,"span",9),u(17,"span"),m(18,"Cold"),c()(),u(19,"div",6),H(20,"span",10),u(21,"span"),m(22,"Unknown"),c()()(),u(23,"span",11),H(24,"span",12)(25,"span",13)(26,"span",14)(27,"span",15)(28,"span",16)(29,"span",17)(30,"span",18)(31,"span",19)(32,"span",20)(33,"span",21)(34,"span",22)(35,"span",23)(36,"span",24)(37,"span",25)(38,"span",26)(39,"span",27)(40,"span",28)(41,"span",29)(42,"span",30)(43,"span",31)(44,"span",32)(45,"span",33),c(),w(46,fue,8,5,"div",34),u(47,"div",35),w(48,gue,4,1,"div",36),w(49,_ue,5,1,"div",37),w(50,yue,4,1,"div",37),c()()),2&e&&(h(46),p("ngIf",n.customer&&n.location),h(2),p("ngIf",null==n.commandDevice?null:n.commandDevice.customStatus),h(1),p("ngIf",n.incidentStates),h(1),p("ngIf",n.notifications))},dependencies:[jt,ct,Bs],styles:["ol{margin:0;padding:0;list-style-type:none}ol li{padding-left:10px;font-size:.75em;border-bottom:1px solid #ccc}@media screen and (min-width: 1025px){.map-container{height:100vh;width:80%}}@media screen and (min-width: 1025px){.history-container{height:100vh;width:20%}}@media screen and (max-width: 1023px) and (orientation: landscape){.map-container{position:absolute;left:0;top:0;height:100vh;width:100vw}}@media screen and (max-width: 1023px) and (orientation: portrait){.map-container{height:100vw;width:100vh;position:absolute;left:-250px;top:250px;transform:rotate(90deg)}}@media screen and (max-width: 1023px){.history-container{display:none}}.incident-state:hover{background-color:#e0e0e0;cursor:pointer}.map-legend{position:absolute;top:70px;right:425px;z-index:5;min-width:180px;padding:10px 12px;border-radius:10px;background:rgba(20,20,20,.85);color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 6px 18px #00000059}.map-legend__title{font-weight:600;margin-bottom:8px;opacity:.95}.map-legend__item{display:flex;align-items:center;gap:8px;padding:4px 0}.map-legend__item .phone{color:#fff}.map-legend .swatch{width:12px;height:12px;border-radius:3px;box-shadow:inset 0 0 0 1px #ffffff40}.map-legend .swatch--hot{background:#E53935}.map-legend .swatch--warm{background:#FBC02D}.map-legend .swatch--cold{background:#1E88E5}.map-legend .swatch--unknown{background:#A0A0A0}.map-legend.contacts{top:266px}.room-corner-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;pointer-events:none}\n"],encapsulation:2})}class S_{router;userService;logo;constructor(t,e){this.router=t,this.userService=e,this.logo="https://www.nuviot.com/images/nuviot-blue.png"}ngOnInit(){var t=this;return z(function*(){(yield t.userService.getIsLoggedIn())&&(yield t.userService.logout())})()}login(){window.location.href="/public/welcome"}static \u0275fac=function(e){return new(e||S_)(U(Br),U($n))};static \u0275cmp=Be({type:S_,selectors:[["app-logout"]],decls:13,vars:0,consts:[[1,"fa","fa-check",2,"color","green","margin-right","10pt"],[2,"text-align","right"],[1,"btn","btn-primary",3,"click"]],template:function(e,n){1&e&&(u(0,"div"),H(1,"i",0),m(2,"Logging out of server\n"),c(),u(3,"div"),H(4,"i",0),m(5,"Clearing Browser State\n"),c(),u(6,"div"),H(7,"i",0),m(8,"Done\n"),c(),u(9,"div",1),H(10,"hr"),u(11,"button",2),N("click",function(){return n.login()}),m(12,"Login"),c()())},styles:["[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}.container[_ngcontent-%COMP%]{margin-left:auto!important;margin-right:auto!important}.page-container[_ngcontent-%COMP%]{height:100%}@media screen and (min-width: 768px){.login-panel[_ngcontent-%COMP%]{margin-top:50px;border:1px solid #999;-webkit-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19);-webkit-box-shadow-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19)}}.login-panel[_ngcontent-%COMP%]{justify-content:center;flex-direction:column;display:flex;background-color:#fff;padding:30px 50px;font-family:Roboto}.login-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2em}.oauth-btn[_ngcontent-%COMP%]{background-color:#f9f9f9;padding:6px;height:44px;width:100%;margin-bottom:10px;border:1px solid silver;border-radius:10px;display:flex}.oauth-btn[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:1.2em;font-weight:700;display:block;flex-grow:1;margin-left:20px}.oauth-btn[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#f0f0f0}.oauth-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:32px;height:32px;margin-left:20px}.busyMsg[_ngcontent-%COMP%]{color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1000;font-size:16pt}.busyMask[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;opacity:.5;z-index:999}.control-label[_ngcontent-%COMP%]{font-size:.8em;margin-left:5px;margin-top:10px;font-family:var(--bs-body-font-family)}.control-label[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:400}.label-required[_ngcontent-%COMP%]{font-weight:700}.required[_ngcontent-%COMP%]{color:red;margin-left:5px}.with-errors[_ngcontent-%COMP%]{color:red}.has-success[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-color:green}.has-error[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .has-danger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-color:red}.has-success[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:green}.has-error[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .has-danger[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:red}form[_ngcontent-%COMP%]{width:100%}.save-row[_ngcontent-%COMP%]{margin-top:20px;text-align:right}.logo-img[_ngcontent-%COMP%]{width:300px;height:85px;margin-bottom:15px}[_ngcontent-%COMP%]::placeholder{color:#ccc}"]})}function bue(i,t){if(1&i){const e=pe();u(0,"div",4)(1,"h4"),m(2,"Contact Form"),c(),u(3,"div",5)(4,"label"),m(5,"First Name"),c(),u(6,"input",6),N("ngModelChange",function(r){return R(e),L(g().contact.firstName=r)}),c()(),u(7,"div",5)(8,"label"),m(9,"Last Name"),c(),u(10,"input",6),N("ngModelChange",function(r){return R(e),L(g().contact.lastName=r)}),c()(),u(11,"div",5)(12,"label"),m(13,"Company"),c(),u(14,"input",6),N("ngModelChange",function(r){return R(e),L(g().contact.company=r)}),c()(),u(15,"div",5)(16,"label"),m(17,"Phone"),c(),u(18,"input",6),N("ngModelChange",function(r){return R(e),L(g().contact.phone=r)}),c()(),u(19,"div",5)(20,"label"),m(21,"Email"),c(),u(22,"input",6),N("ngModelChange",function(r){return R(e),L(g().contact.email=r)}),c()(),u(23,"div",5)(24,"label"),m(25,"Contact Me"),c(),u(26,"input",7),N("ngModelChange",function(r){return R(e),L(g().contact.contactMe=r)}),c()(),u(27,"div",5)(28,"label"),m(29,"Comments"),c(),u(30,"textarea",6),N("ngModelChange",function(r){return R(e),L(g().contact.comment=r)}),c()(),u(31,"div",8)(32,"button",9),N("click",function(){return R(e),L(g().saveContact())}),m(33,"Submit"),c()()()}if(2&i){const e=g();h(6),p("ngModel",e.contact.firstName),h(4),p("ngModel",e.contact.lastName),h(4),p("ngModel",e.contact.company),h(4),p("ngModel",e.contact.phone),h(4),p("ngModel",e.contact.email),h(4),p("ngModel",e.contact.contactMe),h(4),p("ngModel",e.contact.comment)}}function Cue(i,t){if(1&i&&(u(0,"div",10)(1,"h4"),m(2),c()()),2&i){const e=g();h(2),Re(e.thankYouMessage)}}class E_{businessService;route;navService;campaignId;promoId;industryId;industryNicheId;industryPersonaId;nichePersonaId;orgId;email;templateId;surveyId;landingPageId;orgNs;thankYouMessage;paramsSubscription;querySubscription;contact;constructor(t,e,n){var r=this;this.businessService=t,this.route=e,this.navService=n,this.paramsSubscription=this.route.params.subscribe(function(){var o=z(function*(a){r.orgNs=a.orgns,console.log("OrgNS: ",r.orgNs)});return function(a){return o.apply(this,arguments)}}()),this.querySubscription=this.route.queryParams.subscribe(function(){var o=z(function*(a){a.c&&(r.campaignId=a.c),a.o&&(r.orgId=a.o),a.p&&(r.promoId=a.p),a.i&&(r.industryId=a.i),a.l&&(r.landingPageId=a.l),a.n&&(r.industryNicheId=a.n),a.s&&(r.surveyId=a.s),a.ipr&&(r.industryPersonaId=a.ipr),a.npr&&(r.nichePersonaId=a.npr),a.e&&(r.email=a.e),a.t&&(r.templateId=a.t),r.contact=(yield t.createContactIntake(r.orgNs,r.orgId,r.landingPageId,r.campaignId,r.promoId,r.industryId,r.industryNicheId,r.nichePersonaId,r.industryPersonaId,r.email,r.templateId,r.surveyId)).result});return function(a){return o.apply(this,arguments)}}())}ngOnInit(){}ngOnDestroy(){this.paramsSubscription.unsubscribe(),this.querySubscription.unsubscribe()}saveContact(){var t=this;return z(function*(){yield t.businessService.saveContact(t.contact),t.thankYouMessage="Thank you for your interest. We will be in touch soon.",t.contact=null})()}static \u0275fac=function(e){return new(e||E_)(U(la),U(bi),U(Br))};static \u0275cmp=Be({type:E_,selectors:[["app-contact-form"]],decls:5,vars:2,consts:[[2,"display","flex"],[2,"flex-grow","1"],["style","width:480px","class","frame",4,"ngIf"],["style","width:480px;text-align: center;","class","frame",4,"ngIf"],[1,"frame",2,"width","480px"],[1,"form-group"],["type","text",1,"form-control",3,"ngModel","ngModelChange"],["type","checkbox",1,"form-check",3,"ngModel","ngModelChange"],[2,"text-align","right","margin-top","10px"],[1,"btn","btn-primary",3,"click"],[1,"frame",2,"width","480px","text-align","center"]],template:function(e,n){1&e&&(u(0,"div",0),H(1,"div",1),w(2,bue,34,7,"div",2),w(3,Cue,3,1,"div",3),H(4,"div",1),c()),2&e&&(h(2),p("ngIf",n.contact),h(1),p("ngIf",n.thankYouMessage))},dependencies:[Bn,yl,vn,pn,ct],styles:[".frame[_ngcontent-%COMP%]{padding:50px;margin-top:20px;background-color:#f1f1f1;-webkit-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19);-webkit-box-shadow-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19)}label[_ngcontent-%COMP%]{font-size:16px;font-weight:700}"]})}class xc{nuviotClient;cookieService;constructor(t,e){this.nuviotClient=t,this.cookieService=e}addModule(t){return this.nuviotClient.post("/api/module",t)}updateModule(t){return this.nuviotClient.update("/api/module",t)}getAllModules(){var t=this;return z(function*(){return yield t.nuviotClient.getListResponse("/api/modules")})()}getFullAppTreeForUserAsync(){var t=this;return z(function*(){return yield t.nuviotClient.request("/api/modules/tree")})()}getModules(t=!0){var e=this;return z(function*(){return yield e.nuviotClient.request("/api/modules/my",t)})()}getModulesForUser(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/modules/user/${t}`,!1)})()}getUserModule(t,e=!0){var n=this;return z(function*(){return yield n.nuviotClient.request(`/api/module/${t}/my`,e)})()}getModuleForUser(t,e){var n=this;return z(function*(){return yield n.nuviotClient.request(`/api/module/${t}/user/${e}`)})()}getModule(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/module/${t}`)})()}removeModule(t){var e=this;return z(function*(){return yield e.nuviotClient.delete(`/api/module/${t}`)})()}createModule(){var t=this;return z(function*(){return yield t.nuviotClient.request("/api/module/factory")})()}createArea(){var t=this;return z(function*(){return yield t.nuviotClient.request("/api/module/area/factory")})()}createCategory(t){return this.nuviotClient.request(`/api/category/${t}/factory`)}getCategory(t){return this.nuviotClient.request(`/api/category/${t}`)}getCategories(t){return this.nuviotClient.getListResponse(`/api/categories/${t}`)}addCategory(t){return this.nuviotClient.post("/api/category",t)}updateCategory(t){return this.nuviotClient.update("/api/category",t)}moveUp(t,e){var n=this;return z(function*(){return yield n.nuviotClient.get(`/api/module/moveup/${t}/${e}`)})()}moveDown(t,e){var n=this;return z(function*(){return yield n.nuviotClient.get(`/api/module/movedown/${t}/${e}`)})()}getLogs(t){var e=this;return z(function*(){return yield e.nuviotClient.getListResponse(t)})()}getArea(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/module/area/factory");return n.model=t,n.isEditing=!0,n})()}createPage(){var t=this;return z(function*(){return yield t.nuviotClient.request("/api/module/page/factory")})()}getPage(t){var e=this;return z(function*(){var n=yield e.nuviotClient.getFormResponse("/api/module/page/factory");return n.model=t,n.isEditing=!0,n})()}createFeature(){var t=this;return z(function*(){return yield t.nuviotClient.request("/api/module/feature/factory")})()}getFeature(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/module/feature/factory");return n.model=t,n.isEditing=!0,n})()}getModuleAreasByKey(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/module/${t}/areas`)})()}getPagesByKey(t,e){var n=this;return z(function*(){return yield n.nuviotClient.request(`/api/module/${t}/area/${e}/pages`)})()}getSysAllModulesForOrg(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/sys/api/modules/${t}/all`)})()}getSysAllModules(){var t=this;return z(function*(){return yield t.nuviotClient.request("/sys/api/modules/all")})()}getRoles(){var t=this;return z(function*(){return yield t.nuviotClient.request("/api/sys/roles")})()}getAssignableRoles(){var t=this;return z(function*(){return yield t.nuviotClient.request("/api/sys/roles/assignable")})()}addRole(t){var e=this;return z(function*(){return yield e.nuviotClient.post("/api/sys/role",t)})()}updateRole(t){var e=this;return z(function*(){return yield e.nuviotClient.update("/api/sys/role",t)})()}getRole(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/sys/role/${t}`)})()}newRole(){var t=this;return z(function*(){return yield t.nuviotClient.request("/api/sys/role/factory")})()}getRoleAccess(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/sys/role/${t}/access`)})()}newRoleAccess(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/sys/role/${t}/access/factory`)})()}addRoleAccess(t){var e=this;return z(function*(){return yield e.nuviotClient.post("/api/sys/role/access",t)})()}removeRoleAccess(t){var e=this;return z(function*(){return yield e.nuviotClient.delete(`/api/sys/role/access/${t}`)})()}getRoleAccessForModule(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/sys/role/access/module/${t}`)})()}getRoleAccessForArea(t,e){var n=this;return z(function*(){return yield n.nuviotClient.request(`/api/sys/role/access/module/${t}/area/${e}`)})()}getRoleAccessForPage(t,e,n){var r=this;return z(function*(){return yield r.nuviotClient.request(`/api/sys/role/access/module/${t}/area/${e}/page/${n}`)})()}getRoleAccessForModuleFeature(t,e){var n=this;return z(function*(){return yield n.nuviotClient.request(`/api/sys/role/access/module/${t}/feature/${e}`)})()}getRoleAccessForAreaFeature(t,e,n){var r=this;return z(function*(){return yield r.nuviotClient.request(`/api/sys/role/access/module/${t}/area/${e}/feature/${n}`)})()}getRoleAccessForPageFeature(t,e,n,r){var o=this;return z(function*(){return yield o.nuviotClient.request(`/api/sys/role/access/module/${t}/area/${e}/page/${n}/feature/${r}`)})()}getProductLines(){var t=this;return z(function*(){return yield t.nuviotClient.getListResponse("/api/productlines")})()}getProductLine(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/productline/${t}`)})()}createProductLine(){var t=this;return z(function*(){return yield t.nuviotClient.request("/api/productline/factory")})()}createToDoTemplate(){var t=this;return z(function*(){return yield t.nuviotClient.request("/api/productline/todotemplate/factory")})()}createProductLineObject(){var t=this;return z(function*(){return yield t.nuviotClient.request("/api/productline/object/factory")})()}addProductLine(t){var e=this;return z(function*(){return e.nuviotClient.post("/api/productline",t)})()}updateProductLine(t){var e=this;return z(function*(){return e.nuviotClient.update("/api/productline",t)})()}deleteProductLine(t){var e=this;return z(function*(){return yield e.nuviotClient.delete(`/api/productline/${t}`)})()}addFunctionMap(t){return this.nuviotClient.post("/api/function/map",t)}updateFunctionMap(t){return this.nuviotClient.update("/api/function/map",t)}getFunctionMap(t){return this.nuviotClient.getFormResponse(`/api/function/map/${t}`)}getFunctionMapByKey(t){return this.nuviotClient.getFormResponse(`/api/function/map/key/${t}`)}getTopLevelFunctionMap(){return this.nuviotClient.getFormResponse("/api/function/map/root")}deleteFunctionMap(t){return this.nuviotClient.delete(`/api/function/map/${t}`)}createFunctionMap(){return this.nuviotClient.getFormResponse("/api/function/map/factory")}createFunctionMapFunction(){return this.nuviotClient.getFormResponse("/api/function/map/function/factory")}editFunctionMapFunction(t){var e=this;return z(function*(){let n=yield e.createFunctionMapFunction();return n.model=t,n.isEditing=!0,n})()}saveFunctionMap(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateFunctionMap(t.model);{let n=e.addFunctionMap(t.model);return(yield n).successful&&(t.isEditing=!0),n}})()}getFunctionMaps(){return this.nuviotClient.getListResponse("/api/function/maps")}static \u0275fac=function(e){return new(e||xc)(Ee(An),Ee(Dd))};static \u0275prov=$e({token:xc,factory:xc.\u0275fac,providedIn:"root"})}function wue(i,t){if(1&i&&(u(0,"li"),m(1),c()),2&i){const e=t.$implicit;h(1),Re(e)}}function Due(i,t){if(1&i&&(u(0,"li")(1,"div")(2,"span",5),m(3,"Area Feature: "),c(),m(4),c(),u(5,"div"),m(6),c()()),2&i){const e=t.$implicit,n=g(2).$implicit,r=g(3);h(4),rc(" ",r.module.key,"/",n.key,"/",e.key,""),h(2),wx("(",e.key,") (",1==e.userAccess.create?"Create":"","",1==e.userAccess.read?", Read":"","",1==e.userAccess.update?", Update":"","",1==e.userAccess.delete?", Delete":"",")")}}function Mue(i,t){if(1&i&&(u(0,"div"),w(1,Due,7,8,"li",3),c()),2&i){const e=g().$implicit;h(1),p("ngForOf",e.features)}}function xue(i,t){if(1&i&&(u(0,"li")(1,"div")(2,"span",5),m(3,"Page Feature:"),c(),m(4),c(),u(5,"div"),m(6),c()()),2&i){const e=t.$implicit,n=g().$implicit,r=g(2).$implicit,o=g(3);h(4),Tu(" ",o.module.key,"/",r.key,"/",n.key,"/",e.key,""),h(2),Tu("(",1==e.userAccess.create?"Create":"","",1==e.userAccess.read?", Read":"","",1==e.userAccess.update?", Update":"","",1==e.userAccess.delete?", Delete":"",")")}}function kue(i,t){if(1&i&&(u(0,"li")(1,"div")(2,"span",5),m(3,"Page:"),c(),m(4),c(),u(5,"span"),m(6),c(),u(7,"ol"),w(8,xue,7,8,"li",3),c()()),2&i){const e=t.$implicit,n=g(2).$implicit,r=g(3);h(4),rc(" ",r.module.key,"/",n.key,"/",e.key,""),h(2),Tu("(",1==e.userAccess.create?"Create":"","",1==e.userAccess.read?", Read":"","",1==e.userAccess.update?", Update":"","",1==e.userAccess.delete?", Delete":"",")"),h(2),p("ngForOf",e.features)}}function Tue(i,t){if(1&i&&(u(0,"div"),w(1,kue,9,8,"li",3),c()),2&i){const e=g().$implicit;h(1),p("ngForOf",e.pages)}}function Sue(i,t){if(1&i&&(u(0,"li",7)(1,"div")(2,"span",5),m(3,"Area: "),c(),m(4),c(),u(5,"span"),m(6),c(),u(7,"ol",7),w(8,Mue,2,1,"div",4),w(9,Tue,2,1,"div",4),c()()),2&i){const e=t.$implicit,n=g(3);h(4),Gr("",n.module.key,"/",e.key,""),h(2),Tu("(",1==e.userAccess.create?"Create":"","",1==e.userAccess.read?", Read":"","",1==e.userAccess.update?", Update":"","",1==e.userAccess.delete?", Delete":"",")"),h(2),p("ngIf",e.features.length>0),h(1),p("ngIf",e.pages.length>0)}}function Eue(i,t){if(1&i&&(u(0,"ol")(1,"div")(2,"span",5),m(3,"Module:"),c(),m(4),c(),u(5,"span"),m(6),c(),u(7,"div"),w(8,Sue,10,8,"li",6),c()()),2&i){const e=g(2);h(4),Ke(" ",e.module.key,""),h(2),Tu("(",1==e.module.userAccess.create?"Create":"","",1==e.module.userAccess.read?", Read":"","",1==e.module.userAccess.update?", Update":"","",1==e.module.userAccess.delete?", Delete":"",")"),h(2),p("ngForOf",e.module.areas)}}function Aue(i,t){if(1&i&&(u(0,"li"),m(1),c()),2&i){const e=t.$implicit;h(1),Re(e)}}function Iue(i,t){if(1&i&&(u(0,"table",2)(1,"tr")(2,"td"),m(3,"Version:"),c(),u(4,"td"),m(5),c()(),u(6,"tr")(7,"td"),m(8,"Build Date:"),c(),u(9,"td"),m(10),Qt(11,"dateTimePrinter"),c()(),u(12,"tr")(13,"td"),m(14,"User:"),c(),u(15,"td"),m(16),c()(),u(17,"tr")(18,"td"),m(19,"Email:"),c(),u(20,"td"),m(21),c()(),u(22,"tr")(23,"td"),m(24,"Roles:"),c(),u(25,"td")(26,"ul"),w(27,wue,2,1,"li",3),c()()(),u(28,"tr")(29,"td"),m(30,"Module Access"),c(),u(31,"td"),w(32,Eue,9,6,"ol",4),c()(),u(33,"tr")(34,"td"),m(35,"Claims:"),c(),u(36,"td")(37,"ul"),w(38,Aue,2,1,"li",3),c()()()()),2&i){const e=g();h(5),Re(e.versionNumber),h(5),Re(Xt(11,8,e.buildDate)),h(6),Gr("",e.user.firstName," ",e.user.lastName,""),h(5),Re(e.user.email),h(6),p("ngForOf",e.roles),h(5),p("ngIf",e.module),h(6),p("ngForOf",e.claims)}}class Sb{adminService;userService;versionNumber;buildDate;user;org;module;claims;roles;constructor(t,e){this.adminService=t,this.userService=e}ngOnInit(){var t=this;return z(function*(){t.versionNumber="4.0.3152.1517",t.buildDate="2026-01-02T20:17:03Z",yield t.userService.getCurrentOrg(),t.user=yield t.userService.getUser(),t.module=yield t.adminService.getUserModule("public"),t.claims=yield t.userService.getClaims(),t.roles=yield t.userService.getRoles()})()}static \u0275fac=function(e){return new(e||Sb)(U(xc),U($n))};static \u0275cmp=Be({type:Sb,selectors:[["app-about"]],decls:4,vars:1,consts:[[1,"container"],["class","info",4,"ngIf"],[1,"info"],[4,"ngFor","ngForOf"],[4,"ngIf"],[2,"font-weight","bold"],["style","margin-left:20px",4,"ngFor","ngForOf"],[2,"margin-left","20px"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"h4"),m(2,"About"),c(),w(3,Iue,39,10,"table",1),c()),2&e&&(h(3),p("ngIf",n.user))},dependencies:[jt,ct,Bs],styles:["table[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-weight:700}table.info[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{font-weight:700;width:200px;vertical-align:top}li[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;line-height:1.5}"]})}class Eb{navService;constructor(t){this.navService=t}ngOnInit(){}gotoModuleHome(){this.navService.gotoModuleHome()}static \u0275fac=function(e){return new(e||Eb)(U(Br))};static \u0275cmp=Be({type:Eb,selectors:[["app-page-not-found"]],decls:14,vars:0,consts:[[2,"text-align","center"],["src","https://nuviot.blob.core.windows.net/cdn/nuviot-blue.png",2,"width","480px","margin-top","50px"],["src","https://nuviot.blob.core.windows.net/cdn/401.png",2,"border-radius","50%","width","480px","height","480px"],[2,"color","var(--color-fg)"],[1,"action",3,"click"]],template:function(e,n){1&e&&(u(0,"p",0),H(1,"img",1),c(),u(2,"h1",0),m(3,"404 Oops!"),c(),u(4,"h4",0),m(5," Sorry, we did the best we could but that page you requested, it just isn't around."),c(),u(6,"div",0),H(7,"img",2)(8,"br"),u(9,"div",3),m(10," Click"),u(11,"span",4),N("click",function(){return n.gotoModuleHome()}),m(12,"here"),c(),m(13,"to get back on the trail."),c()())}})}function Fue(i,t){if(1&i&&(u(0,"div")(1,"h2"),m(2),c(),u(3,"div",3),H(4,"div",4),u(5,"div",5),m(6),Qt(7,"moneyPrinter"),c()(),H(8,"hr"),c()),2&i){const e=t.$implicit;h(2),Re(e.name),h(2),p("innerHTML",e.detailsHTML,Un),h(2),Gr("",Xt(7,4,e.extended)," ",e.unitType,"")}}class Ab{route;productService;navService;_routeSubscription;productPage;constructor(t,e,n){var r=this;this.route=t,this.productService=e,this.navService=n,this._routeSubscription=this.route.params.subscribe(function(){var o=z(function*(a){const s=a.orgns,l=a.ppkey;let d=yield r.productService.getProductPageByKey(s,l);d.successful&&(r.productPage=d.result)});return function(a){return o.apply(this,arguments)}}())}ngOnInit(){}ngOnDestroy(){this._routeSubscription.unsubscribe()}getThumbnailImageUri(t){return t.thumbnailImageResource||t.thumbnailImageResourceId?`/api/media/resource/${this.productPage.orgId}/${t.thumbnailImageResourceId??t.thumbnailImageResource.id}/download`:"/app/ui-shared/assets/product.png"}getImageUri(t){return`/api/media/resource/${this.productPage.orgId}/${t.imageResourceId??t.imageResource.id}/download`}static \u0275fac=function(e){return new(e||Ab)(U(bi),U(Gu),U(Br))};static \u0275cmp=Be({type:Ab,selectors:[["app-product-page"]],decls:6,vars:3,consts:[[2,"margin","30px","width","800px"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[1,"product-detail",2,"display","flex"],[2,"width","680px","padding-left","20px","padding-right","20px",3,"innerHTML"],[2,"width","120px","font-size","larger","font-weight","bold","text-align","right"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"h1"),m(2),c(),H(3,"div",1)(4,"hr"),w(5,Fue,9,6,"div",2),c()),2&e&&(h(2),Re(n.productPage.name),h(1),p("innerHTML",n.productPage.shortSummaryHTML,Un),h(2),p("ngForOf",n.productPage.products))},dependencies:[jt,qu]})}const Pue=["pdfViewer"];function Rue(i,t){if(1&i){const e=pe();u(0,"h4"),m(1,"Signature"),c(),u(2,"canvas",0,1),m(4," Your browser does not support the HTML5 canvas tag and can not be used to sign documents. "),c(),H(5,"br"),u(6,"button",2),N("click",function(){return R(e),L(g().getSignature())}),m(7,"Get Signature"),c(),u(8,"button",2),N("click",function(){return R(e),L(g().clearSignature())}),m(9,"Clear Signature"),c(),H(10,"br"),u(11,"h4"),m(12,"Initials"),c(),u(13,"canvas",3,4),m(15," Your browser does not support the HTML5 canvas tag and can not be used to sign documents. "),c(),H(16,"br"),u(17,"button",2),N("click",function(){return R(e),L(g().getInitials())}),m(18,"Get Signature"),c(),u(19,"button",2),N("click",function(){return R(e),L(g().clearInitials())}),m(20,"Clear Signature"),c()}}class Ib{route;businessService;paramsSubscription;documentContent;pdf;zoom=1;pdfUrl="";signaturePad;initialsPad;signPoints=[];pdfViewer;constructor(t,e){var n=this;this.route=t,this.businessService=e,this.paramsSubscription=this.route.params.subscribe(function(){var r=z(function*(o){let a=o.docid;var l=yield n.businessService.getSignedDocument(a);n.documentContent=l.model.signedDocumentContent});return function(o){return r.apply(this,arguments)}}())}ngOnInit(){}getSignature(){let t=this.signaturePad.toSVG();console.log(t)}clearSignature(){this.signaturePad.clear()}getInitials(){let t=this.initialsPad.toSVG();console.log(t)}clearInitials(){this.initialsPad.clear()}navigateTo(t){console.log(t),console.log(this.pdfViewer.pdfLinkService.pdfDocument),this.pdfViewer.pdfLinkService.goToDestination(t)}pdfLoaded(t){var e=this;return z(function*(){e.pdf=t,yield e.pdf.getData(),e.signPoints=[];let r=yield t.getOutline();for(let o of r[0].items)console.log("Outline Item:",o.title,o.dest),o.dest&&o.dest.length>0&&e.signPoints.push({x:o.dest[2],y:o.dest[3],message:o.title,link:o.dest})})()}static \u0275fac=function(e){return new(e||Ib)(U(bi),U(la))};static \u0275cmp=Be({type:Ib,selectors:[["app-document-signing-complete"]],viewQuery:function(e,n){if(1&e&&un(Pue,7),2&e){let r;pt(r=ft())&&(n.pdfViewer=r.first)}},decls:2,vars:0,consts:[["id","signatureCanvas","width","664","height","292",2,"border","1px solid #000000"],["signatureCanvas",""],[3,"click"],["id","initialsCanvas","width","334","height","150",2,"border","1px solid #000000"],["initialsCanvas",""]],template:function(e,n){1&e&&(H(0,"div"),w(1,Rue,21,0,"ng-template"))}})}class A_{constructor(){}_errorMsgs=[];_errorMsgs$=new $i(this._errorMsgs);onErrMsgs(){return this._errorMsgs$.asObservable()}addErrors(t){t&&(console.log("ErrorReporterService.addErrors",t),this._errorMsgs$.next(t))}addError(t){this._errorMsgs$.next([t])}addErrorMessage(t){this._errorMsgs$.next([{message:t}])}addMessage(t){this.addError({message:t})}addMessages(t){const e=[];for(const n of t)e.push({message:n});this.addErrors(e)}clearErrors(){this._errorMsgs$.next(null)}static \u0275fac=function(e){return new(e||A_)};static \u0275prov=$e({token:A_,factory:A_.\u0275fac,providedIn:"root"})}class I_{constructor(){}_activeCallCount=0;_loadingMessages=[];_activeCalls=new $i(this._loadingMessages);_endCalls=new $i(this._loadingMessages);onCallBegin(){return this._activeCalls.asObservable()}onCallEnd(){return this._endCalls.asObservable()}beginCall(t="?"){this._activeCallCount++,this._loadingMessages.push("loading"),this._activeCalls.next(this._loadingMessages)}endCall(){this._activeCallCount--,this._loadingMessages.pop(),this._activeCallCount<0&&(this._activeCallCount=0),0==this._activeCallCount&&this._endCalls.next(this._loadingMessages)}static \u0275fac=function(e){return new(e||I_)};static \u0275prov=$e({token:I_,factory:I_.\u0275fac,providedIn:"root"})}class F_{http;errorReporter;networkCallService;constructor(t,e,n){this.http=t,this.errorReporter=e,this.networkCallService=n}getFullUrl(t){return t.startsWith("/")&&(t=t.substring(1)),`/${t}`}redirectToLogin(){window.location.href="https://www.software-logistics.com"}handleResponse(t,e=!0,n=!0){var o,r=this;return{next:o=>{e&&this.networkCallService.endCall(),o.successful||n&&this.errorReporter.addErrors(o.errors),t(o)},error:(o=z(function*(a){e&&r.networkCallService.endCall(),401==a.status?yield r.redirectToLogin():n&&r.errorReporter.addMessage(a.message),t({successful:!1,warnings:[],errors:[{message:a.message}]})}),function(s){return o.apply(this,arguments)})}}getPublicOrgInfo(t){var e=this;return z(function*(){let n=`/api/org/${t}/public/summary`;return new Promise((r,o)=>{e.http.get(e.getFullUrl(n)).subscribe(r)})})()}static \u0275fac=function(e){return new(e||F_)(Ee(_d),Ee(A_),Ee(I_))};static \u0275prov=$e({token:F_,factory:F_.\u0275fac,providedIn:"root"})}class P_{nuviotClient;constructor(t){this.nuviotClient=t}campaignFactory(){var t=this;return z(function*(){return t.nuviotClient.getFormResponse("/api/campaign/factory")})()}promotionFactory(){var t=this;return z(function*(){return t.nuviotClient.getFormResponse("/api/campaign/promotion/factory")})()}createCampaign(t){var e=this;return z(function*(){return e.nuviotClient.postWithResponse("/api/campaign",t)})()}updateCampaign(t){var e=this;return z(function*(){return e.nuviotClient.updateWithResponse("/api/campaign",t)})()}getCampaigns(){var t=this;return z(function*(){return t.nuviotClient.getListResponse("/api/campaigns")})()}getCampaign(t){var e=this;return z(function*(){return e.nuviotClient.getFormResponse(`/api/campaign/${t}`)})()}getAllWebSiteMetrics(){return this.nuviotClient.getListResponse("/web/sitemetrics",{pageSize:1e3,pageIndex:1})}getWebSiteMetricsByPath(t){return this.nuviotClient.getListResponse(`/web/sitemetrics/path/${t}`)}getContactLists(){return this.nuviotClient.getListResponse("/api/email/mailinglists")}createEmailList(){return this.nuviotClient.getFormResponse("/api/email/list/factory")}getEmailLists(){return this.nuviotClient.getListResponse("/api/email/lists")}getEmailList(t){return this.nuviotClient.getFormResponse(`/api/email/list/${t}`)}deleteEmailList(t){return this.nuviotClient.delete(`/api/email/list/${t}`)}updateEmailList(t){return this.nuviotClient.update("/api/email/list",t)}insertEmailList(t){return this.nuviotClient.insert("/api/email/list",t)}saveEmailList(t){return t.isEditing?this.updateEmailList(t.model):this.insertEmailList(t.model)}getEmailSenders(){return this.nuviotClient.getListResponse("/api/email/senders")}createEmailSender(){return this.nuviotClient.getFormResponse("/api/email/sender/factory")}getEmailSender(t){return this.nuviotClient.getFormResponse(`/api/email/sender/${t}`)}addUserAsSender(t,e){let n=`/api/email/sender/create/${t}`;return e&&(n+=`?nickName=${encodeURIComponent(e)}`),this.nuviotClient.request(n)}refreshJobStatus(t,e){return this.nuviotClient.request(`/api/email/list/${t}importjob/${e}/refresh`)}createEmailMailer(){return this.nuviotClient.getFormResponse("/api/email/mailer/factory")}getEmailMailers(){return this.nuviotClient.getListResponse("/api/email/mailers")}getEmailMailer(t){return this.nuviotClient.getFormResponse(`/api/email/mailer/${t}`)}deleteEmailMailer(t){return this.nuviotClient.delete(`/api/email/mailer/${t}`)}updateEmailMailer(t){return this.nuviotClient.update("/api/email/mailer",t)}insertEmailMailer(t){return this.nuviotClient.insert("/api/email/mailer",t)}saveEmailMailer(t){return t.isEditing?this.updateEmailMailer(t.model):this.insertEmailMailer(t.model)}sendMailer(t){return this.nuviotClient.request(`/api/email/mailer/${t}/send`)}getSentEmailsForOrg(){return this.nuviotClient.getListResponse("/api/email/sentemails/all")}getIndividualSentEmailsForOrg(){return this.nuviotClient.getListResponse("/api/email/sentemails/individual/all")}getSentEmailsForMailer(t){return this.nuviotClient.getListResponse(`/api/email/mailer/${t}/results`)}unsubscribeByEmail(t,e){return this.nuviotClient.request(`/api/public/unsubscribe/${t}?email=${e}`)}unsubscribeByContact(t,e,n){return this.nuviotClient.request(`/api/public/unsubscribe/${t}/${e}/${n}`)}resubscribeByEmail(t,e){return this.nuviotClient.request(`/api/public/resubscribe/${t}?email=${e}`)}resubscribeByContact(t,e,n){return this.nuviotClient.request(`/api/public/resubscribe/${t}/${e}/${n}`)}createBulkEmailMailer(){return this.nuviotClient.getFormResponse("/api/email/bulk/mailer/factory")}createBulkEmailMailerAbTemplate(){return this.nuviotClient.getFormResponse("/api/email/bulk/mailer/factory")}getBulkEmailMailers(){return this.nuviotClient.getListResponse("/api/email/bulk/mailers")}getBulkEmailMailer(t){return this.nuviotClient.getFormResponse(`/api/email/bulk/mailer/${t}`)}deleteBulkEmailMailer(t){return this.nuviotClient.delete(`/api/email/bulk/mailer/${t}`)}updateBulkEmailMailer(t){return this.nuviotClient.update("/api/email/bulk/mailer",t)}insertBulkEmailMailerList(t){return this.nuviotClient.insert("/api/email/bulk/mailer",t)}sendBulkMailer(t){return this.nuviotClient.request(`/api/email/bulk/mailer/${t}/send`)}saveEmailMailerList(t){return t.isEditing?this.updateBulkEmailMailer(t.model):this.insertBulkEmailMailerList(t.model)}getEmailListForIndustry(t){return this.nuviotClient.request(`/api/industry/${t}/contactlist`)}getEmailListForIndustryNiche(t,e){return this.nuviotClient.request(`/api/industry/${t}/${e}/contactlist`)}static \u0275fac=function(e){return new(e||P_)(Ee(An))};static \u0275prov=$e({token:P_,factory:P_.\u0275fac,providedIn:"root"})}function Lue(i,t){if(1&i&&(u(0,"p"),m(1),c()),2&i){const e=g(2);h(1),Re(e.message)}}function Oue(i,t){if(1&i){const e=pe();u(0,"div",1),H(1,"div",2),u(2,"div",3),H(3,"img",4),u(4,"h4"),m(5),c(),u(6,"h5"),m(7,"Unsubscribe from Communications"),c(),m(8," Unsubscribe the email address: "),u(9,"span",5),m(10),c(),w(11,Lue,2,1,"p",6),u(12,"div",7)(13,"button",8),N("click",function(){return R(e),L(g().unsubScribe())}),m(14,"Unsubscribe"),c(),u(15,"button",8),N("click",function(){return R(e),L(g().resubScribe())}),m(16,"Re-Subscribe"),c()()(),H(17,"div",2),c()}if(2&i){const e=g();h(3),p("src",e.logoImageUrl(),Yi),h(2),Re(e.orgInfo.tagLine),h(5),Re(e.email),h(1),p("ngIf",e.message)}}class R_{route;publicService;campaignService;paramsSubscription;orgNs;companyId;contactId;email;orgInfo;message;constructor(t,e,n){var r=this;this.route=t,this.publicService=e,this.campaignService=n,this.paramsSubscription=this.route.params.subscribe(function(){var o=z(function*(a){r.orgNs=a.orgns,r.companyId=a.companyid,r.contactId=a.contactid,r.orgInfo=yield r.publicService.getPublicOrgInfo(r.orgNs)});return function(a){return o.apply(this,arguments)}}()),this.paramsSubscription=this.route.queryParams.subscribe(function(){var o=z(function*(a){r.email=a.email});return function(a){return o.apply(this,arguments)}}())}logoImageUrl(){return`/api/media/resource/${this.orgInfo.id}/${this.orgInfo.lightLogo.id}/download`}ngOnInit(){}unsubScribe(){var t=this;return z(function*(){if(t.contactId&&t.companyId){let e=yield t.campaignService.unsubscribeByContact(t.orgNs,t.companyId,t.contactId);t.message=e.successful?"You have been successfully unsubscribed from our mailing list.":"There was an error unsubscribing you from our mailing list. Please try again later: "+e.errors[0].message}else if(t.email){let e=yield t.campaignService.unsubscribeByEmail(t.orgNs,t.email);t.message=e.successful?"You have been successfully unsubscribed from our mailing list.":"There was an error unsubscribing you from our mailing list. Please try again later: "+e.errors[0].message}})()}resubScribe(){var t=this;return z(function*(){t.contactId&&t.companyId?yield t.campaignService.resubscribeByContact(t.orgNs,t.companyId,t.contactId):t.email&&(yield t.campaignService.resubscribeByEmail(t.orgNs,t.email))})()}static \u0275fac=function(e){return new(e||R_)(U(bi),U(F_),U(P_))};static \u0275cmp=Be({type:R_,selectors:[["app-unsubscribe"]],decls:1,vars:1,consts:[["style","display:flex",4,"ngIf"],[2,"display","flex"],[2,"flex-grow","1"],[1,"panel"],["alt","Organization Logo",1,"img-fluid",2,"max-width","200px",3,"src"],[2,"font-weight","bold"],[4,"ngIf"],[1,"button-bar"],[1,"btn","btn-primary",3,"click"]],template:function(e,n){1&e&&w(0,Oue,18,4,"div",0),2&e&&p("ngIf",n.orgInfo)},dependencies:[ct],styles:[".panel[_ngcontent-%COMP%]{margin-top:30px;padding:20px;width:480px;box-shadow:0 4px 8px #80808033,0 6px 20px #80808030}button[_ngcontent-%COMP%]{width:120px;margin-right:20pt}p[_ngcontent-%COMP%]{margin:20px;font-size:24px;line-height:1.5;color:#333}.button-bar[_ngcontent-%COMP%]{text-align:center;margin-top:20px}"]})}class kc{nuviotClient;constructor(t){this.nuviotClient=t}getFormHelpResources(t){var e=this;return z(function*(){return yield e.nuviotClient.request(`/api/formhelpresource/form/${t}`,!0,!1)})()}getAllFormHelpResource(){var t=this;return z(function*(){return yield t.nuviotClient.getListResponse("/api/formhelpresources")})()}createFormHelpResult(t){var e=this;return z(function*(){return yield e.nuviotClient.getFormResponse(`/api/formhelpresource/${t}/factory`)})()}loadFormHelpResource(t){var e=this;return z(function*(){return yield e.nuviotClient.getFormResponse(`/api/formhelpresource/${t}`)})()}insertFormHelpResource(t){return this.nuviotClient.insert("/api/formhelpresource",t)}updateFormHelpResource(t){return this.nuviotClient.insert("/api/formhelpresource",t)}getShortenedLinkAsync(t){var e=this;return z(function*(){return yield e.nuviotClient.postWithResponse("/api/formhelpresource/shortenlink",{url:t})})()}saveFormHelpResource(t){var e=this;return z(function*(){return t.isEditing?yield e.updateFormHelpResource(t.model):yield e.insertFormHelpResource(t.model)})()}getFrequentlyAskedQuestions(){var t=this;return z(function*(){return yield t.nuviotClient.getListResponse("/api/faqs")})()}getFrequentlyAskedQuestionsForOrg(t){var e=this;return z(function*(){return yield e.nuviotClient.getListResponse(`/api/${t}/faqs`)})()}getFrequentlyAskedQuestion(t){var e=this;return z(function*(){return yield e.nuviotClient.getFormResponse(`/api/faq/${t}`)})()}getFrequentlyAskedQuestionForKey(t,e){var n=this;return z(function*(){return yield n.nuviotClient.request(`/api/${t}/faq/${e}`)})()}createFrequentlyAskedQuestion(){var t=this;return z(function*(){return yield t.nuviotClient.getFormResponse("/api/faq/factory")})()}insertFrequentlyAskedQuestion(t){return this.nuviotClient.insert("/api/faq",t)}updateFrequentlyAskedQuestion(t){return this.nuviotClient.insert("/api/faq",t)}deleteFrequentlyAskedQuestion(t){return this.nuviotClient.delete(`/api/faq/${t}`)}saveFrequentlyAskedQuestion(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateFrequentlyAskedQuestion(t.model);var n=yield e.insertFrequentlyAskedQuestion(t.model);return t.isEditing=!0,n})()}getTagGroup(t){return this.nuviotClient.request(t)}getContentDownloads(){var t=this;return z(function*(){return yield t.nuviotClient.getListResponse("/api/content/downloads")})()}getContentDownloadsForOrg(t){var e=this;return z(function*(){return yield e.nuviotClient.getListResponse(`/api/${t}/contentdownloads`)})()}getContentDownload(t){var e=this;return z(function*(){return yield e.nuviotClient.getFormResponse(`/api/content/download/${t}`)})()}createContentDownload(){var t=this;return z(function*(){return yield t.nuviotClient.getFormResponse("/api/content/download/factory")})()}createContentDownloadRevision(){var t=this;return z(function*(){return yield t.nuviotClient.getFormResponse("/api/content/download/revision/factory")})()}insertContentDownload(t){return this.nuviotClient.insert("/api/content/download",t)}updateContentDownload(t){return this.nuviotClient.update("/api/content/download",t)}deleteContentDownload(t){return this.nuviotClient.delete(`/api/content/download/${t}`)}saveContentDownload(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateContentDownload(t.model);var n=yield e.insertContentDownload(t.model);return t.isEditing=!0,n})()}static \u0275fac=function(e){return new(e||kc)(Ee(An))};static \u0275prov=$e({token:kc,factory:kc.\u0275fac,providedIn:"root"})}function Nue(i,t){if(1&i&&(u(0,"div",6),H(1,"h3",7),Qt(2,"safeHtml"),H(3,"div",7),Qt(4,"safeHtml"),c()),2&i){const e=t.$implicit;h(1),p("innerHTML",Xt(2,2,e.question),Un),h(2),p("innerHTML",Xt(4,4,e.answer),Un)}}function Bue(i,t){if(1&i&&(u(0,"div")(1,"h1"),m(2,"Frequently Asked Questions"),c(),w(3,Nue,5,6,"div",5),c()),2&i){const e=g();h(3),p("ngForOf",e.faqs)}}function Vue(i,t){if(1&i&&(u(0,"div",6),H(1,"h3",7),Qt(2,"safeHtml"),H(3,"div",7),Qt(4,"safeHtml"),c()),2&i){const e=g();h(1),p("innerHTML",Xt(2,2,e.faq.question),Un),h(2),p("innerHTML",Xt(4,4,e.faq.answer),Un)}}class L_{contentService;route;paramsSubscription;faqs;faq;constructor(t,e){var n=this;this.contentService=t,this.route=e,this.paramsSubscription=this.route.params.subscribe(function(){var r=z(function*(o){let a=n.route.snapshot.params.orgns,s=n.route.snapshot.params.faqkey;if(s&&a){let l=yield n.contentService.getFrequentlyAskedQuestionForKey(a,s);l.successful?n.faq=l.result:console.error("Error fetching FAQ:",l.errors)}else if(o.orgns){let l=yield t.getFrequentlyAskedQuestionsForOrg(o.orgns);l.successful?n.faqs=l.model:console.error("Error fetching FAQs:",l.errors)}});return function(o){return r.apply(this,arguments)}}())}ngOnInit(){}static \u0275fac=function(e){return new(e||L_)(U(kc),U(bi))};static \u0275cmp=Be({type:L_,selectors:[["app-faqs"]],decls:6,vars:2,consts:[[2,"display","flex"],[2,"flex-grow","1"],[1,"faq-section"],[4,"ngIf"],["class","faq-item",4,"ngIf"],["class","faq-item",4,"ngFor","ngForOf"],[1,"faq-item"],[3,"innerHTML"]],template:function(e,n){1&e&&(u(0,"div",0),H(1,"div",1),u(2,"div",2),w(3,Bue,4,1,"div",3),w(4,Vue,5,6,"div",4),c(),H(5,"div",1),c()),2&e&&(h(3),p("ngIf",n.faqs&&n.faqs.length>0),h(1),p("ngIf",n.faq))},dependencies:[jt,ct,gf],styles:[".faq-section[_ngcontent-%COMP%]{max-width:800px}.faq-section[_ngcontent-%COMP%] .faq-item[_ngcontent-%COMP%]{padding:20px;margin-top:20px;border-radius:20px;border:1px solid silver;-webkit-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19);-webkit-box-shadow-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19)}"]})}class Fb{constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||Fb)};static \u0275cmp=Be({type:Fb,selectors:[["app-connect"]],decls:2,vars:0,template:function(e,n){1&e&&(u(0,"p"),m(1," connect works!\n"),c())}})}class Pb{constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||Pb)};static \u0275cmp=Be({type:Pb,selectors:[["app-case-studies"]],decls:2,vars:0,template:function(e,n){1&e&&(u(0,"p"),m(1," case-studies works!\n"),c())}})}class Rb{constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||Rb)};static \u0275cmp=Be({type:Rb,selectors:[["app-term-viewer"]],decls:4,vars:0,consts:[[2,"padding","20px"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"h1"),m(2,"Glossary and Terms"),c(),H(3,"app-term"),c())},dependencies:[pf]})}function Hue(i,t){if(1&i&&(u(0,"div")(1,"h3"),H(2,"nuv-icon",1),m(3),c(),u(4,"div",2)(5,"h4"),m(6,"Definition"),c(),H(7,"app-preformatted-html-renderer",3),c(),u(8,"div",2)(9,"h4"),m(10,"Example"),c(),H(11,"app-preformatted-html-renderer",3),c()()),2&i){const e=g();h(2),p("iconName",e.term.icon),h(1),Ke(" ",e.term.name,""),h(4),p("html",e.term.definition),h(4),p("html",e.term.example)}}class O_{_renderer2;_document;_term;set glossary(t){}openInNewWindow=!0;set term(t){console.log("this is term",t),this._term=t;let e=this.openInNewWindow?'target="_blank"':"",n=t.definition.matchAll(/href="\.?\/?(\w+(\.md)?)"/g);for(let r of n)console.log(r[0],r[1]),this.term.definition=this.term.definition.replace(r[0],`class='child-term' href="/contentmanagement/glossary/${t.glossary.id}/view/${r[1]}" ${e}`);n=t.example.matchAll(/href="\.?\/?(\w+(\.md)?)"/g);for(let r of n)this.term.example=this.term.example.replace(r[0],`class='child-term' href="/contentmanagement/glossary/${t.glossary.id}/view/${r[1]}" ${e}`)}get term(){return this._term}showTerm(t){console.log(t)}constructor(t,e){this._renderer2=t,this._document=e}ngOnInit(){let t=this._renderer2.createElement("script");t.type="application/ld+json",t.text="\n function showTerm(termKey) {\n alert(')\n \n }\n ",this._renderer2.appendChild(this._document.body,t)}static \u0275fac=function(e){return new(e||O_)(U(ka),U(Wt))};static \u0275cmp=Be({type:O_,selectors:[["app-glossary-term-viewer"]],inputs:{glossary:"glossary",openInNewWindow:"openInNewWindow",term:"term"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"iconName"],[2,"margin-top","30px"],[3,"html"]],template:function(e,n){1&e&&w(0,Hue,12,4,"div",0),2&e&&p("ngIf",n.term)},dependencies:[Xa,ct,x_],styles:["[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}a.child-term[_ngcontent-%COMP%]{color:var(--color-nav-link)!important}a.child-term[_ngcontent-%COMP%]:hover{color:var(--color-nav-link-active)!important;text-decoration:underline}"]})}function Yue(i,t){if(1&i){const e=pe();u(0,"li",8),N("click",function(){const o=R(e).$implicit;return L(g(3).showTerm(o))}),m(1),c()}if(2&i){const e=t.$implicit;h(1),Re(e.name)}}function Uue(i,t){if(1&i&&(u(0,"ol",6),w(1,Yue,2,1,"li",7),c()),2&i){const e=g(2);h(1),p("ngForOf",e.terms)}}function jue(i,t){if(1&i&&(u(0,"div",4)(1,"h3"),m(2),c(),w(3,Uue,2,1,"ol",5),c()),2&i){const e=g();h(2),Re(e.glossary.name),h(1),p("ngIf",e.terms)}}function $ue(i,t){if(1&i&&H(0,"app-glossary-term-viewer",16),2&i){const e=g(2);p("openInNewWindow",!1)("term",e.term)}}function zue(i,t){if(1&i){const e=pe();u(0,"li",8),N("click",function(){const o=R(e).$implicit;return L(g(3).showRelatedTerm(o.key))}),m(1),c()}if(2&i){const e=t.$implicit;h(1),Re(e.text)}}function Wue(i,t){if(1&i&&(u(0,"ol",17),w(1,zue,2,1,"li",7),c()),2&i){const e=g(2);h(1),p("ngForOf",e.term.related)}}function Gue(i,t){if(1&i){const e=pe();u(0,"div",9)(1,"div",10)(2,"span",11),N("click",function(){R(e);const r=g();return L(r.editTerm(r.term))}),H(3,"i",12),m(4," Edit"),c()(),w(5,$ue,1,2,"app-glossary-term-viewer",13),u(6,"div",14)(7,"h4"),m(8,"Related Terms"),c(),w(9,Wue,2,1,"ol",15),c()()}if(2&i){const e=g();h(5),p("ngIf",e.term),h(4),p("ngIf",e.term.related)}}class Lb{router;glossaryService;navService;userService;route;_routeSubscription;glossary;term;terms;canEdit=!1;constructor(t,e,n,r,o){var a=this;this.router=t,this.glossaryService=e,this.navService=n,this.userService=r,this.route=o,this._routeSubscription=this.route.params.subscribe(function(){var s=z(function*(l){let d=l.id,f=l.term;if(a.glossary=(yield a.glossaryService.getGlossary(d)).model,a.canEdit=(yield a.userService.getCurrentOrg()).id==a.glossary.ownerOrganization.id,a.terms=a.glossary.definitions.filter(y=>y.isPublished),f){let y=a.glossary.definitions.find(k=>k.key==f.toLowerCase()||k.id==f);y.glossary={id:d,key:a.glossary.key,text:a.glossary.name},a.term=y}});return function(l){return s.apply(this,arguments)}}())}ngOnDestroy(){this._routeSubscription.unsubscribe()}showTerm(t){console.log(this.glossary,this.term),t.glossary={id:this.glossary.id,key:this.glossary.key,text:this.glossary.name},this.navService.setLocation(`/contentmanagement/glossary/${this.glossary.id}/view/${t.key}`),this.term=t}editTerm(t){this.navService.openInNewWindow(`/contentmanagement/glossary/${this.glossary.id}/${t.id}`)}showRelatedTerm(t){this.navService.setLocation(`/contentmanagement/glossary/${this.glossary.id}/view/${t}`);let e=this.glossary.definitions.find(n=>n.key==t.toLowerCase()||n.id==t);e.glossary={id:this.glossary.id,key:this.glossary.key,text:this.glossary.name},this.term=e}static \u0275fac=function(e){return new(e||Lb)(U(Ti),U(yc),U(Br),U($n),U(bi))};static \u0275cmp=Be({type:Lb,selectors:[["app-glossary-viewer"]],decls:4,vars:2,consts:[[1,"router-container",2,"display","flex"],[2,"margin-left","30px"],["style","width:400px",4,"ngIf"],["class","term-definition",4,"ngIf"],[2,"width","400px"],["class","terms-list terms-list-full",4,"ngIf"],[1,"terms-list","terms-list-full"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],[1,"term-definition"],[2,"text-align","right"],[1,"action",3,"click"],[1,"fa","fa-pencil"],[3,"openInNewWindow","term",4,"ngIf"],[2,"margin-top","30px"],["class","terms-list",4,"ngIf"],[3,"openInNewWindow","term"],[1,"terms-list"]],template:function(e,n){1&e&&(u(0,"div",0),H(1,"div",1),w(2,jue,4,2,"div",2),w(3,Gue,10,2,"div",3),c()),2&e&&(h(2),p("ngIf",n.glossary),h(1),p("ngIf",n.term))},dependencies:[jt,ct,O_],styles:[".terms-list-full[_ngcontent-%COMP%]{height:calc(100vh - 250px);overflow-y:scroll;border:1px solid var(--color-border-panel)}.terms-list[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0;background-color:var(--color-bg)}.term-definition[_ngcontent-%COMP%]{background-color:var(--color-bg);width:600px;margin-top:20px;margin-left:20px;padding:30px;border:1px solid var(--color-border-panel)}ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{cursor:pointer;font-weight:700;background-color:var(--color-bg-list-row-hover);color:var(--color-fg-list-row-hover)}ol[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0}ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{height:48px;padding:14px;border-bottom:1px var(--color-bg-list-separator)}ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(odd){background-color:var(--color-bg-list-row);color:var(--color-fg-list-row);border-bottom-width:1}ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(even){background-color:var(--color-bg-list-alt-row);color:var(--color-fg-list-alt-row);border-bottom-width:1}"]})}class Ob{constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||Ob)};static \u0275cmp=Be({type:Ob,selectors:[["app-glossary"]],decls:1,vars:0,template:function(e,n){1&e&&H(0,"app-glossary-viewer")},dependencies:[Lb]})}class Nb{constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||Nb)};static \u0275cmp=Be({type:Nb,selectors:[["app-company-about"]],decls:2,vars:0,template:function(e,n){1&e&&(u(0,"p"),m(1," company-about works!\n"),c())}})}const que=[{path:"public/diagram/:diagramid/:layerid/:shapeid",component:xf},{path:"public/diagram/:diagramid/:layerid/:shapeid/:orgid/:repoid",component:xf},{path:"public/diagram/:diagramid/:layerid/:shapeid/:orgid/:repoid/:customerid",component:xf},{path:"login",component:u_},{path:"public/login",component:u_},{path:"logout",component:S_},{path:"public/logout",component:S_},{path:"",redirectTo:"public",pathMatch:"full"},{path:"public/glossary/:glossaryid",component:pf},{path:"public/glossary/:glossaryid/term/:termid",component:pf},{path:"public/doc/sign/:docid/signee/:signeeid",component:Ib},{path:"public/:orgns/unsubscribe",component:R_},{path:"public/:orgns/unsubscribe/:companyid/:contactid",component:R_},{path:"public/careers",redirectTo:"public/softwarelogistics/careers"},{path:"public/blog",redirectTo:"public/softwarelogistics/blog"},{path:"public/products",redirectTo:"public/softwarelogistics/products"},{path:"public/productcategories",redirectTo:"public/softwarelogistics/productcategories"},{path:"public/welcome",redirectTo:"public/softwarelogistics/welcome"},{path:"public/home",redirectTo:"public/softwarelogistics/home"},{path:"public/connect",redirectTo:"public/softwarelogistics/connect"},{path:"public/casestudies",redirectTo:"public/softwarelogistics/casestudies"},{path:"public",component:X1,children:[{path:"",component:Tb},{path:"about",component:Sb},{path:":orgns/about",component:Nb},{path:":orgns/welcome",component:E_},{path:":orgns/contactus",component:E_},{path:":orgns/home",component:ib},{path:":orgns/glossary/:glossarykey",component:Ob},{path:":orgns/glossary/:glossarykey/term/:termkey",component:Rb},{path:":orgns/connect",component:Fb},{path:":orgns/casestudies",component:Pb},{path:"profile",component:kb},{path:":orgns/faqs",component:L_},{path:":orgns/faq/:faqkey",component:L_},{path:":orgns/content/:catgkey/:contentkey",component:Z1},{path:":orgns/careers",component:J1},{path:":orgns/career/:key",component:eb},{path:":orgns/blog",component:k_},{path:":orgns/blog/:key",component:k_},{path:":orgns/career/apply/:key",component:tb},{path:":orgns/survey/:toplevelsurveyid",component:mf},{path:":orgns/profile/survey/:toplevelsurveyid",component:mf},{path:":orgns/profile/survey/:toplevelsurveyid/question/:questionid",component:mf},{path:":orgns/product/:productid",component:kl},{path:":orgns/pp/:ppkey",component:Ab},{path:":orgns/products",component:kl},{path:":orgns/product/:productid",component:kl},{path:":orgns/productcategories",component:kl},{path:":orgns/productcategories/:catgtype",component:kl},{path:":orgns/productcategories/:catgtype/:catgid/products",component:kl},{path:":orgns/productcategories/:catgtype/:catgid/product/:productid",component:kl}]},{path:"**",component:Eb}];class Bb{static \u0275fac=function(e){return new(e||Bb)};static \u0275mod=Dt({type:Bb});static \u0275inj=wt({imports:[F1.forRoot(que),F1]})}class Vb{title="business";static \u0275fac=function(e){return new(e||Vb)};static \u0275cmp=Be({type:Vb,selectors:[["app-root"]],decls:1,vars:0,template:function(e,n){1&e&&H(0,"router-outlet")},dependencies:[b1]})}function Kue(i,t){if(1&i){const e=pe();u(0,"app-blade-list",4),N("add",function(){R(e);const r=g().$implicit,o=g();return L(r.add?r.add():o.skipIt())})("cancel",function(){R(e);const r=g().$implicit,o=g();return L(r.cancel?r.cancel():o.skipIt())})("selected",function(r){R(e);const o=g().$implicit,a=g();return L(o.selected?o.selected(r):a.skipIt())})("remove",function(r){R(e);const o=g().$implicit;return L(o.remove?o.remove(r):o.remove)}),c()}if(2&i){const e=g().$implicit;let n;p("listResponse",e.list)("title",null!==(n=null==e.list?null:e.list.title)&&void 0!==n?n:e.title)("items",e.items)("showAdd",!1!==e.showAdd)}}function Zue(i,t){if(1&i){const e=pe();u(0,"app-blade-form",5),N("saved",function(){R(e);const r=g().$implicit;return L(g().saved(r))})("cancel",function(){R(e);const r=g().$implicit;return L(g().cancel(r))}),c()}if(2&i){const e=g().$implicit;p("headerExtension",e.headerExtension)("autoSave",!0)("form",e.form)}}function Que(i,t){if(1&i&&(u(0,"div"),w(1,Kue,1,4,"app-blade-list",2),w(2,Zue,1,3,"app-blade-form",3),c()),2&i){const e=t.$implicit;h(1),p("ngIf",e.list||e.items),h(1),p("ngIf",e.form)}}class Hb{constructor(){}bladesService;ngOnInit(){}skipIt(){}saved(t){t?.saved&&t.saved()}cancel(t){t?.cancel?t.cancel():t.bladesService.popBlade(t)}static \u0275fac=function(e){return new(e||Hb)};static \u0275cmp=Be({type:Hb,selectors:[["app-blade-host"]],inputs:{bladesService:"bladesService"},decls:2,vars:1,consts:[[2,"display","flex","flex-direction","row"],[4,"ngFor","ngForOf"],[3,"listResponse","title","items","showAdd","add","cancel","selected","remove",4,"ngIf"],[3,"headerExtension","autoSave","form","saved","cancel",4,"ngIf"],[3,"listResponse","title","items","showAdd","add","cancel","selected","remove"],[3,"headerExtension","autoSave","form","saved","cancel"]],template:function(e,n){1&e&&(u(0,"div",0),w(1,Que,3,2,"div",1),c()),2&e&&(h(1),p("ngForOf",n.bladesService.blades))}})}let Jue=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[ki,_r,ih,ih,_r]}),i})();class kf{contentService;constructor(t){this.contentService=t}transform(t,e){var n=this;return z(function*(){if(t.startsWith("sharedcontentid=")){let r=t.replace("sharedcontentid=","");return(yield n.contentService.getRawSharedContent(r)).result}return t})()}static \u0275fac=function(e){return new(e||kf)(U(Aa,16))};static \u0275pipe=Yn({name:"sharedContent",type:kf,pure:!0})}class ch extends Error{}class ehe extends ch{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class the extends ch{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class nhe extends ch{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class N_ extends ch{}class oB extends ch{constructor(t){super(`Invalid unit ${t}`)}}class es extends ch{}class Ld extends ch{constructor(){super("Zone is an abstract class")}}const kt="numeric",Hs="short",Ia="long",wS={year:kt,month:kt,day:kt},aB={year:kt,month:Hs,day:kt},ihe={year:kt,month:Hs,day:kt,weekday:Hs},sB={year:kt,month:Ia,day:kt},lB={year:kt,month:Ia,day:kt,weekday:Ia},cB={hour:kt,minute:kt},dB={hour:kt,minute:kt,second:kt},uB={hour:kt,minute:kt,second:kt,timeZoneName:Hs},hB={hour:kt,minute:kt,second:kt,timeZoneName:Ia},pB={hour:kt,minute:kt,hourCycle:"h23"},fB={hour:kt,minute:kt,second:kt,hourCycle:"h23"},gB={hour:kt,minute:kt,second:kt,hourCycle:"h23",timeZoneName:Hs},mB={hour:kt,minute:kt,second:kt,hourCycle:"h23",timeZoneName:Ia},_B={year:kt,month:kt,day:kt,hour:kt,minute:kt},vB={year:kt,month:kt,day:kt,hour:kt,minute:kt,second:kt},yB={year:kt,month:Hs,day:kt,hour:kt,minute:kt},bB={year:kt,month:Hs,day:kt,hour:kt,minute:kt,second:kt},rhe={year:kt,month:Hs,day:kt,weekday:Hs,hour:kt,minute:kt},CB={year:kt,month:Ia,day:kt,hour:kt,minute:kt,timeZoneName:Hs},wB={year:kt,month:Ia,day:kt,hour:kt,minute:kt,second:kt,timeZoneName:Hs},DB={year:kt,month:Ia,day:kt,weekday:Ia,hour:kt,minute:kt,timeZoneName:Ia},MB={year:kt,month:Ia,day:kt,weekday:Ia,hour:kt,minute:kt,second:kt,timeZoneName:Ia};function oi(i){return typeof i>"u"}function dh(i){return"number"==typeof i}function Ub(i){return"number"==typeof i&&i%1==0}function xB(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function kB(i,t,e){if(0!==i.length)return i.reduce((n,r)=>{const o=[t(r),r];return n&&e(n[0],o[0])===n[0]?n:o},null)[1]}function Tf(i,t){return Object.prototype.hasOwnProperty.call(i,t)}function Tc(i,t,e){return Ub(i)&&i>=t&&i<=e}function Ar(i,t=2){let n;return n=i<0?"-"+(""+-i).padStart(t,"0"):(""+i).padStart(t,"0"),n}function Od(i){if(!oi(i)&&null!==i&&""!==i)return parseInt(i,10)}function uh(i){if(!oi(i)&&null!==i&&""!==i)return parseFloat(i)}function DS(i){if(!oi(i)&&null!==i&&""!==i){const t=1e3*parseFloat("0."+i);return Math.floor(t)}}function MS(i,t,e=!1){const n=10**t;return(e?Math.trunc:Math.round)(i*n)/n}function B_(i){return i%4==0&&(i%100!=0||i%400==0)}function V_(i){return B_(i)?366:365}function jb(i,t){const e=function che(i,t){return i-t*Math.floor(i/t)}(t-1,12)+1;return 2===e?B_(i+(t-e)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][e-1]}function xS(i){let t=Date.UTC(i.year,i.month-1,i.day,i.hour,i.minute,i.second,i.millisecond);return i.year<100&&i.year>=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}function $b(i){const t=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7,e=i-1,n=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7;return 4===t||3===n?53:52}function kS(i){return i>99?i:i>60?1900+i:2e3+i}function TB(i,t,e,n=null){const r=new Date(i),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);const a={timeZoneName:t,...o},s=new Intl.DateTimeFormat(e,a).formatToParts(r).find(l=>"timezonename"===l.type.toLowerCase());return s?s.value:null}function zb(i,t){let e=parseInt(i,10);Number.isNaN(e)&&(e=0);const n=parseInt(t,10)||0;return 60*e+(e<0||Object.is(e,-0)?-n:n)}function SB(i){const t=Number(i);if("boolean"==typeof i||""===i||Number.isNaN(t))throw new es(`Invalid unit value ${i}`);return t}function Wb(i,t){const e={};for(const n in i)if(Tf(i,n)){const r=i[n];if(null==r)continue;e[t(n)]=SB(r)}return e}function H_(i,t){const e=Math.trunc(Math.abs(i/60)),n=Math.trunc(Math.abs(i%60)),r=i>=0?"+":"-";switch(t){case"short":return`${r}${Ar(e,2)}:${Ar(n,2)}`;case"narrow":return`${r}${e}${n>0?`:${n}`:""}`;case"techie":return`${r}${Ar(e,2)}${Ar(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Gb(i){return function lhe(i,t){return t.reduce((e,n)=>(e[n]=i[n],e),{})}(i,["hour","minute","second","millisecond"])}const EB=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,dhe=["January","February","March","April","May","June","July","August","September","October","November","December"],AB=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],uhe=["J","F","M","A","M","J","J","A","S","O","N","D"];function IB(i){switch(i){case"narrow":return[...uhe];case"short":return[...AB];case"long":return[...dhe];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const FB=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],PB=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],hhe=["M","T","W","T","F","S","S"];function RB(i){switch(i){case"narrow":return[...hhe];case"short":return[...PB];case"long":return[...FB];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const LB=["AM","PM"],phe=["Before Christ","Anno Domini"],fhe=["BC","AD"],ghe=["B","A"];function OB(i){switch(i){case"narrow":return[...ghe];case"short":return[...fhe];case"long":return[...phe];default:return null}}function NB(i,t){let e="";for(const n of i)e+=n.literal?n.val:t(n.val);return e}const Che={D:wS,DD:aB,DDD:sB,DDDD:lB,t:cB,tt:dB,ttt:uB,tttt:hB,T:pB,TT:fB,TTT:gB,TTTT:mB,f:_B,ff:yB,fff:CB,ffff:DB,F:vB,FF:bB,FFF:wB,FFFF:MB};class zo{static create(t,e={}){return new zo(t,e)}static parseFormat(t){let e=null,n="",r=!1;const o=[];for(let a=0;a0&&o.push({literal:r,val:n}),e=null,n="",r=!r):r||s===e?n+=s:(n.length>0&&o.push({literal:!1,val:n}),n=s,e=s)}return n.length>0&&o.push({literal:r,val:n}),o}static macroTokenToFormatOpts(t){return Che[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}formatDateTime(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).format()}formatDateTimeParts(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).formatToParts()}resolvedOptions(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return Ar(t,e);const n={...this.opts};return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(E,W)=>this.loc.extract(t,E,W),a=E=>t.isOffsetFixed&&0===t.offset&&E.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,E.format):"",l=(E,W)=>n?function vhe(i,t){return IB(t)[i.month-1]}(t,E):o(W?{month:E}:{month:E,day:"numeric"},"month"),d=(E,W)=>n?function _he(i,t){return RB(t)[i.weekday-1]}(t,E):o(W?{weekday:E}:{weekday:E,month:"long",day:"numeric"},"weekday"),f=E=>{const W=zo.macroTokenToFormatOpts(E);return W?this.formatWithSystemDefault(t,W):E},y=E=>n?function yhe(i,t){return OB(t)[i.year<0?0:1]}(t,E):o({era:E},"era");return NB(zo.parseFormat(e),E=>{switch(E){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return n?function mhe(i){return LB[i.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?o({day:"numeric"},"day"):this.num(t.day);case"dd":return r?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return r?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?o({month:"numeric"},"month"):this.num(t.month);case"MM":return r?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?o({year:"numeric"},"year"):this.num(t.year);case"yy":return r?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return y("short");case"GG":return y("long");case"GGGGG":return y("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return f(E)}})}formatDurationFromString(t,e){const n=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=zo.parseFormat(e),a=o.reduce((l,{literal:d,val:f})=>d?l:l.concat(f),[]);return NB(o,(l=>d=>{const f=n(d);return f?this.num(l.get(f),d.length):d})(t.shiftTo(...a.map(n).filter(l=>l))))}}class Ys{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Y_{get type(){throw new Ld}get name(){throw new Ld}get ianaName(){return this.name}get isUniversal(){throw new Ld}offsetName(t,e){throw new Ld}formatOffset(t,e){throw new Ld}offset(t){throw new Ld}equals(t){throw new Ld}get isValid(){throw new Ld}}let TS=null;class qb extends Y_{static get instance(){return null===TS&&(TS=new qb),TS}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return TB(t,e,n)}formatOffset(t,e){return H_(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let Kb={};const Dhe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Zb={};class Sc extends Y_{static create(t){return Zb[t]||(Zb[t]=new Sc(t)),Zb[t]}static resetCache(){Zb={},Kb={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Sc.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return TB(t,e,n,this.name)}formatOffset(t,e){return H_(this.offset(t),e)}offset(t){const e=new Date(t);if(isNaN(e))return NaN;const n=function whe(i){return Kb[i]||(Kb[i]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Kb[i]}(this.name);let[r,o,a,s,l,d,f]=n.formatToParts?function xhe(i,t){const e=i.formatToParts(t),n=[];for(let r=0;r=0?W:1e3+W,(xS({year:r,month:o,day:a,hour:24===l?0:l,minute:d,second:f,millisecond:0})-E)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let SS=null;class Wo extends Y_{static get utcInstance(){return null===SS&&(SS=new Wo(0)),SS}static instance(t){return 0===t?Wo.utcInstance:new Wo(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new Wo(zb(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${H_(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${H_(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return H_(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class khe extends Y_{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Nd(i,t){if(oi(i)||null===i)return t;if(i instanceof Y_)return i;if(function ohe(i){return"string"==typeof i}(i)){const n=i.toLowerCase();return"default"===n?t:"local"===n||"system"===n?qb.instance:"utc"===n||"gmt"===n?Wo.utcInstance:Wo.parseSpecifier(n)||Sc.create(i)}return dh(i)?Wo.instance(i):"object"==typeof i&&i.offset&&"number"==typeof i.offset?i:new khe(i)}let jB,BB=()=>Date.now(),VB="system",HB=null,YB=null,UB=null;class Hr{static get now(){return BB}static set now(t){BB=t}static set defaultZone(t){VB=t}static get defaultZone(){return Nd(VB,qb.instance)}static get defaultLocale(){return HB}static set defaultLocale(t){HB=t}static get defaultNumberingSystem(){return YB}static set defaultNumberingSystem(t){YB=t}static get defaultOutputCalendar(){return UB}static set defaultOutputCalendar(t){UB=t}static get throwOnInvalid(){return jB}static set throwOnInvalid(t){jB=t}static resetCaches(){Qi.resetCache(),Sc.resetCache()}}let $B={},ES={};function AS(i,t={}){const e=JSON.stringify([i,t]);let n=ES[e];return n||(n=new Intl.DateTimeFormat(i,t),ES[e]=n),n}let IS={},FS={},U_=null;function Qb(i,t,e,n,r){const o=i.listingMode(e);return"error"===o?null:"en"===o?n(t):r(t)}class Ohe{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:o,...a}=n;if(!e||Object.keys(a).length>0){const s={useGrouping:!1,...n};n.padTo>0&&(s.minimumIntegerDigits=n.padTo),this.inf=function She(i,t={}){const e=JSON.stringify([i,t]);let n=IS[e];return n||(n=new Intl.NumberFormat(i,t),IS[e]=n),n}(t,s)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return Ar(this.floor?Math.floor(t):MS(t,3),this.padTo)}}class Nhe{constructor(t,e,n){let r;if(this.opts=n,t.zone.isUniversal){const a=t.offset/60*-1,s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;0!==t.offset&&Sc.create(s).valid?(r=s,this.dt=t):(r="UTC",this.dt=n.timeZoneName||0===t.offset?t:fn.fromMillis(t.ts+60*t.offset*1e3))}else"system"===t.zone.type?this.dt=t:(this.dt=t,r=t.zone.name);const o={...this.opts};r&&(o.timeZone=r),this.dtf=AS(e,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Bhe{constructor(t,e,n){this.opts={style:"long",...n},!e&&xB()&&(this.rtf=function Ehe(i,t={}){const{base:e,...n}=t,r=JSON.stringify([i,n]);let o=FS[r];return o||(o=new Intl.RelativeTimeFormat(i,t),FS[r]=o),o}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function bhe(i,t,e="always",n=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(i);if("auto"===e&&o){const y="days"===i;switch(t){case 1:return y?"tomorrow":`next ${r[i][0]}`;case-1:return y?"yesterday":`last ${r[i][0]}`;case 0:return y?"today":`this ${r[i][0]}`}}const a=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,d=r[i],f=n?l?d[1]:d[2]||d[1]:l?r[i][0]:i;return a?`${s} ${f} ago`:`in ${s} ${f}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}class Qi{static fromOpts(t){return Qi.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,e,n,r=!1){const o=t||Hr.defaultLocale,a=o||(r?"en-US":function Ahe(){return U_||(U_=(new Intl.DateTimeFormat).resolvedOptions().locale,U_)}());return new Qi(a,e||Hr.defaultNumberingSystem,n||Hr.defaultOutputCalendar,o)}static resetCache(){U_=null,ES={},IS={},FS={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:n}={}){return Qi.create(t,e,n)}constructor(t,e,n,r){const[o,a,s]=function Ihe(i){const t=i.indexOf("-u-");if(-1===t)return[i];{let e;const n=i.substring(0,t);try{e=AS(i).resolvedOptions()}catch{e=AS(n).resolvedOptions()}const{numberingSystem:r,calendar:o}=e;return[n,r,o]}}(t);this.locale=o,this.numberingSystem=e||a||null,this.outputCalendar=n||s||null,this.intl=function Fhe(i,t,e){return(e||t)&&(i+="-u",e&&(i+=`-ca-${e}`),t&&(i+=`-nu-${t}`)),i}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function Lhe(i){return(!i.numberingSystem||"latn"===i.numberingSystem)&&("latn"===i.numberingSystem||!i.locale||i.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(i.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?Qi.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1,n=!0){return Qb(this,t,n,IB,()=>{const r=e?{month:t,day:"numeric"}:{month:t},o=e?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=function Phe(i){const t=[];for(let e=1;e<=12;e++){const n=fn.utc(2016,e,1);t.push(i(n))}return t}(a=>this.extract(a,r,"month"))),this.monthsCache[o][t]})}weekdays(t,e=!1,n=!0){return Qb(this,t,n,RB,()=>{const r=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=e?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=function Rhe(i){const t=[];for(let e=1;e<=7;e++){const n=fn.utc(2016,11,13+e);t.push(i(n))}return t}(a=>this.extract(a,r,"weekday"))),this.weekdaysCache[o][t]})}meridiems(t=!0){return Qb(this,void 0,t,()=>LB,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[fn.utc(2016,11,13,9),fn.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(t,e=!0){return Qb(this,t,e,OB,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[fn.utc(-40,1,1),fn.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,e,n){const a=this.dtFormatter(t,e).formatToParts().find(s=>s.type.toLowerCase()===n);return a?a.value:null}numberFormatter(t={}){return new Ohe(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new Nhe(t,this.intl,e)}relFormatter(t={}){return new Bhe(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function The(i,t={}){const e=JSON.stringify([i,t]);let n=$B[e];return n||(n=new Intl.ListFormat(i,t),$B[e]=n),n}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}function Sf(...i){const t=i.reduce((e,n)=>e+n.source,"");return RegExp(`^${t}$`)}function Ef(...i){return t=>i.reduce(([e,n,r],o)=>{const[a,s,l]=o(t,r);return[{...e,...a},s||n,l]},[{},null,1]).slice(0,2)}function Af(i,...t){if(null==i)return[null,null];for(const[e,n]of t){const r=e.exec(i);if(r)return n(r)}return[null,null]}function zB(...i){return(t,e)=>{const n={};let r;for(r=0;rvoid 0!==E&&(W||E&&f)?-E:E;return[{years:k(uh(e)),months:k(uh(n)),weeks:k(uh(r)),days:k(uh(o)),hours:k(uh(a)),minutes:k(uh(s)),seconds:k(uh(l),"-0"===l),milliseconds:k(DS(d),y)}]}const Qhe={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function LS(i,t,e,n,r,o,a){const s={year:2===t.length?kS(Od(t)):Od(t),month:AB.indexOf(e)+1,day:Od(n),hour:Od(r),minute:Od(o)};return a&&(s.second=Od(a)),i&&(s.weekday=i.length>3?FB.indexOf(i)+1:PB.indexOf(i)+1),s}const Xhe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Jhe(i){const[,t,e,n,r,o,a,s,l,d,f,y]=i,k=LS(t,r,n,e,o,a,s);let E;return E=l?Qhe[l]:d?0:zb(f,y),[k,new Wo(E)]}const tpe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,npe=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ipe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function KB(i){const[,t,e,n,r,o,a,s]=i;return[LS(t,r,n,e,o,a,s),Wo.utcInstance]}function rpe(i){const[,t,e,n,r,o,a,s]=i;return[LS(t,s,e,n,r,o,a),Wo.utcInstance]}const ope=Sf(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,RS),ape=Sf(/(\d{4})-?W(\d\d)(?:-?(\d))?/,RS),spe=Sf(/(\d{4})-?(\d{3})/,RS),lpe=Sf(GB),ZB=Ef(function Ghe(i,t){return[{year:If(i,t),month:If(i,t+1,1),day:If(i,t+2,1)},null,t+3]},Ff,j_,$_),cpe=Ef(jhe,Ff,j_,$_),dpe=Ef($he,Ff,j_,$_),upe=Ef(Ff,j_,$_),mpe=Ef(Ff),vpe=Sf(/(\d{4})-(\d\d)-(\d\d)/,Whe),ype=Sf(qB),bpe=Ef(Ff,j_,$_),QB={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Dpe={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...QB},ts=365.2425,Pf=30.436875,Mpe={years:{quarters:4,months:12,weeks:ts/7,days:ts,hours:24*ts,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:ts/28,days:ts/4,hours:24*ts/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:Pf/7,days:Pf,hours:24*Pf,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...QB},hh=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],xpe=hh.slice(0).reverse();function Bd(i,t,e=!1){const n={values:e?t.values:{...i.values,...t.values||{}},loc:i.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||i.conversionAccuracy,matrix:t.matrix||i.matrix};return new si(n)}function XB(i,t,e,n,r){const o=i[r][e],a=t[e]/o,l=Math.sign(a)!==Math.sign(n[r])&&0!==n[r]&&Math.abs(a)<=1?function kpe(i){return i<0?Math.floor(i):Math.ceil(i)}(a):Math.trunc(a);n[r]+=l,t[e]-=l*o}class si{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?Mpe:Dpe;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||Qi.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return si.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new es("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new si({values:Wb(t,si.normalizeUnit),loc:Qi.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(dh(t))return si.fromMillis(t);if(si.isDuration(t))return t;if("object"==typeof t)return si.fromObject(t);throw new es(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[n]=function gpe(i){return Af(i,[Khe,Zhe])}(t);return n?si.fromObject(n,e):si.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[n]=function _pe(i){return Af(i,[qhe,mpe])}(t);return n?si.fromObject(n,e):si.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new es("need to specify a reason the Duration is invalid");const n=t instanceof Ys?t:new Ys(t,e);if(Hr.throwOnInvalid)throw new nhe(n);return new si({invalid:n})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!e)throw new oB(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?zo.create(this.loc,n).formatDurationFromString(this,t):"Invalid Duration"}toHuman(t={}){const e=hh.map(n=>{const r=this.values[n];return oi(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(r)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(t+=MS(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();if(e<0||e>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t};const n=this.shiftTo("hours","minutes","seconds","milliseconds");let r="basic"===t.format?"hhmm":"hh:mm";(!t.suppressSeconds||0!==n.seconds||0!==n.milliseconds)&&(r+="basic"===t.format?"ss":":ss",(!t.suppressMilliseconds||0!==n.milliseconds)&&(r+=".SSS"));let o=n.toFormat(r);return t.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=si.fromDurationLike(t),n={};for(const r of hh)(Tf(e.values,r)||Tf(this.values,r))&&(n[r]=e.get(r)+this.get(r));return Bd(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=si.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=SB(t(this.values[n],n));return Bd(this,{values:e},!0)}get(t){return this[si.normalizeUnit(t)]}set(t){return this.isValid?Bd(this,{values:{...this.values,...Wb(t,si.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:n,matrix:r}={}){return Bd(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return function Tpe(i,t){xpe.reduce((e,n)=>oi(t[n])?e:(e&&XB(i,t,e,t,n),n),null)}(this.matrix,t),Bd(this,{values:t},!0)}rescale(){return this.isValid?Bd(this,{values:function Spe(i){const t={};for(const[e,n]of Object.entries(i))0!==n&&(t[e]=n);return t}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map(a=>si.normalizeUnit(a));const e={},n={},r=this.toObject();let o;for(const a of hh)if(t.indexOf(a)>=0){o=a;let s=0;for(const d in n)s+=this.matrix[d][a]*n[d],n[d]=0;dh(r[a])&&(s+=r[a]);const l=Math.trunc(s);e[a]=l,n[a]=(1e3*s-1e3*l)/1e3;for(const d in r)hh.indexOf(d)>hh.indexOf(a)&&XB(this.matrix,r,d,e,a)}else dh(r[a])&&(n[a]=r[a]);for(const a in n)0!==n[a]&&(e[o]+=a===o?n[a]:n[a]/this.matrix[o][a]);return Bd(this,{values:e},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return Bd(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function e(n,r){return void 0===n||0===n?void 0===r||0===r:n===r}for(const n of hh)if(!e(this.values[n],t.values[n]))return!1;return!0}}const z_="Invalid Interval";class vr{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new es("need to specify a reason the Interval is invalid");const n=t instanceof Ys?t:new Ys(t,e);if(Hr.throwOnInvalid)throw new the(n);return new vr({invalid:n})}static fromDateTimes(t,e){const n=q_(t),r=q_(e),o=function Epe(i,t){return i&&i.isValid?t&&t.isValid?tt}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?vr.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(q_).filter(a=>this.contains(a)).sort(),n=[];let{s:r}=this,o=0;for(;r+this.e?this.e:a;n.push(vr.fromDateTimes(r,s)),r=s,o+=1}return n}splitBy(t){const e=si.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let o,{s:n}=this,r=1;const a=[];for(;nl*r));o=+s>+this.e?this.e:s,a.push(vr.fromDateTimes(n,o)),n=o,r+=1}return a}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e=n?null:vr.fromDateTimes(e,n)}union(t){return this.isValid?vr.fromDateTimes(this.st.e?this.e:t.e):this}static merge(t){const[e,n]=t.sort((r,o)=>r.s-o.s).reduce(([r,o],a)=>o?o.overlaps(a)||o.abutsStart(a)?[r,o.union(a)]:[r.concat([o]),a]:[r,a],[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const r=[],o=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...o).sort((l,d)=>l.time-d.time);for(const l of s)n+="s"===l.type?1:-1,1===n?e=l.time:(e&&+e!=+l.time&&r.push(vr.fromDateTimes(e,l.time)),e=null);return vr.merge(r)}difference(...t){return vr.xor([this].concat(t)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:z_}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:z_}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:z_}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:z_}toFormat(t,{separator:e=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:z_}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):si.invalid(this.invalidReason)}mapEndpoints(t){return vr.fromDateTimes(t(this.s),t(this.e))}}class Xb{static hasDST(t=Hr.defaultZone){const e=fn.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return Sc.isValidZone(t)}static normalizeZone(t){return Nd(t,Hr.defaultZone)}static months(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||Qi.create(e,n,o)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||Qi.create(e,n,o)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Qi.create(e,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Qi.create(e,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Qi.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return Qi.create(e,null,"gregory").eras(t)}static features(){return{relative:xB()}}}function JB(i,t){const e=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=e(t)-e(i);return Math.floor(si.fromMillis(n).as("days"))}const OS={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},e8={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Fpe=OS.hanidec.replace(/[\[|\]]/g,"").split("");function Us({numberingSystem:i},t=""){return new RegExp(`${OS[i||"latn"]}${t}`)}function wi(i,t=(e=>e)){return{regex:i,deser:([e])=>t(function Ppe(i){let t=parseInt(i,10);if(isNaN(t)){t="";for(let e=0;e=o&&n<=a&&(t+=n-o)}}return parseInt(t,10)}return t}(e))}}const t8=`[ ${String.fromCharCode(160)}]`,n8=new RegExp(t8,"g");function Lpe(i){return i.replace(/\./g,"\\.?").replace(n8,t8)}function i8(i){return i.replace(/\./g,"").replace(n8," ").toLowerCase()}function js(i,t){return null===i?null:{regex:RegExp(i.map(Lpe).join("|")),deser:([e])=>i.findIndex(n=>i8(e)===i8(n))+t}}function r8(i,t){return{regex:i,deser:([,e,n])=>zb(e,n),groups:t}}function NS(i){return{regex:i,deser:([t])=>t}}function Ope(i){return i.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const Bpe={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let BS=null;function o8(i,t){return Array.prototype.concat(...i.map(e=>function $pe(i,t){if(i.literal)return i;const n=s8(zo.macroTokenToFormatOpts(i.val),t);return null==n||n.includes(void 0)?i:n}(e,t)))}function a8(i,t,e){const n=o8(zo.parseFormat(e),i),r=n.map(a=>function Npe(i,t){const e=Us(t),n=Us(t,"{2}"),r=Us(t,"{3}"),o=Us(t,"{4}"),a=Us(t,"{6}"),s=Us(t,"{1,2}"),l=Us(t,"{1,3}"),d=Us(t,"{1,6}"),f=Us(t,"{1,9}"),y=Us(t,"{2,4}"),k=Us(t,"{4,6}"),E=he=>({regex:RegExp(Ope(he.val)),deser:([ge])=>ge,literal:!0}),ee=(he=>{if(i.literal)return E(he);switch(he.val){case"G":return js(t.eras("short",!1),0);case"GG":return js(t.eras("long",!1),0);case"y":return wi(d);case"yy":case"kk":return wi(y,kS);case"yyyy":case"kkkk":return wi(o);case"yyyyy":return wi(k);case"yyyyyy":return wi(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return wi(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return wi(n);case"MMM":return js(t.months("short",!0,!1),1);case"MMMM":return js(t.months("long",!0,!1),1);case"LLL":return js(t.months("short",!1,!1),1);case"LLLL":return js(t.months("long",!1,!1),1);case"o":case"S":return wi(l);case"ooo":case"SSS":return wi(r);case"u":return NS(f);case"uu":return NS(s);case"uuu":case"E":case"c":return wi(e);case"a":return js(t.meridiems(),0);case"EEE":return js(t.weekdays("short",!1,!1),1);case"EEEE":return js(t.weekdays("long",!1,!1),1);case"ccc":return js(t.weekdays("short",!0,!1),1);case"cccc":return js(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return r8(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return r8(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return NS(/[a-z_+-/]{1,256}?/i);default:return E(he)}})(i)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return ee.token=i,ee}(a,i)),o=r.find(a=>a.invalidReason);if(o)return{input:t,tokens:n,invalidReason:o.invalidReason};{const[a,s]=function Hpe(i){return[`^${i.map(e=>e.regex).reduce((e,n)=>`${e}(${n.source})`,"")}$`,i]}(r),l=RegExp(a,"i"),[d,f]=function Ype(i,t,e){const n=i.match(t);if(n){const r={};let o=1;for(const a in e)if(Tf(e,a)){const s=e[a],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(r[s.token.val[0]]=s.deser(n.slice(o,o+l))),o+=l}return[n,r]}return[n,{}]}(t,l,s),[y,k,E]=f?function Upe(i){let n,e=null;return oi(i.z)||(e=Sc.create(i.z)),oi(i.Z)||(e||(e=new Wo(i.Z)),n=i.Z),oi(i.q)||(i.M=3*(i.q-1)+1),oi(i.h)||(i.h<12&&1===i.a?i.h+=12:12===i.h&&0===i.a&&(i.h=0)),0===i.G&&i.y&&(i.y=-i.y),oi(i.u)||(i.S=DS(i.u)),[Object.keys(i).reduce((o,a)=>{const s=(o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(a);return s&&(o[s]=i[a]),o},{}),e,n]}(f):[null,null,void 0];if(Tf(f,"a")&&Tf(f,"H"))throw new N_("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:l,rawMatches:d,matches:f,result:y,zone:k,specificOffset:E}}}function s8(i,t){return i?zo.create(t,i).formatDateTimeParts(function jpe(){return BS||(BS=fn.fromMillis(1555555555555)),BS}()).map(r=>function Vpe(i,t,e){const{type:n,value:r}=i;if("literal"===n)return{literal:!0,val:r};let a=Bpe[n];return"object"==typeof a&&(a=a[e[n]]),a?{literal:!1,val:a}:void 0}(r,0,i)):null}const l8=[0,31,59,90,120,151,181,212,243,273,304,334],c8=[0,31,60,91,121,152,182,213,244,274,305,335];function ns(i,t){return new Ys("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${i}, which is invalid`)}function d8(i,t,e){const n=new Date(Date.UTC(i,t-1,e));i<100&&i>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const r=n.getUTCDay();return 0===r?7:r}function u8(i,t,e){return e+(B_(i)?c8:l8)[t-1]}function h8(i,t){const e=B_(i)?c8:l8,n=e.findIndex(o=>o$b(t)?(s=t+1,a=1):s=t,{weekYear:s,weekNumber:a,weekday:o,...Gb(i)}}function p8(i){const{weekYear:t,weekNumber:e,weekday:n}=i,r=d8(t,1,4),o=V_(t);let s,a=7*e+n-r-3;a<1?(s=t-1,a+=V_(s)):a>o?(s=t+1,a-=V_(t)):s=t;const{month:l,day:d}=h8(s,a);return{year:s,month:l,day:d,...Gb(i)}}function HS(i){const{year:t,month:e,day:n}=i;return{year:t,ordinal:u8(t,e,n),...Gb(i)}}function f8(i){const{year:t,ordinal:e}=i,{month:n,day:r}=h8(t,e);return{year:t,month:n,day:r,...Gb(i)}}function g8(i){const t=Ub(i.year),e=Tc(i.month,1,12),n=Tc(i.day,1,jb(i.year,i.month));return t?e?!n&&ns("day",i.day):ns("month",i.month):ns("year",i.year)}function m8(i){const{hour:t,minute:e,second:n,millisecond:r}=i,o=Tc(t,0,23)||24===t&&0===e&&0===n&&0===r,a=Tc(e,0,59),s=Tc(n,0,59),l=Tc(r,0,999);return o?a?s?!l&&ns("millisecond",r):ns("second",n):ns("minute",e):ns("hour",t)}const YS="Invalid DateTime",_8=864e13;function Jb(i){return new Ys("unsupported zone",`the zone "${i.name}" is not supported`)}function US(i){return null===i.weekData&&(i.weekData=VS(i.c)),i.weekData}function W_(i,t){const e={ts:i.ts,zone:i.zone,c:i.c,o:i.o,loc:i.loc,invalid:i.invalid};return new fn({...e,...t,old:e})}function v8(i,t,e){let n=i-60*t*1e3;const r=e.offset(n);if(t===r)return[n,t];n-=60*(r-t)*1e3;const o=e.offset(n);return r===o?[n,r]:[i-60*Math.min(r,o)*1e3,Math.max(r,o)]}function y8(i,t){const e=new Date(i+=60*t*1e3);return{year:e.getUTCFullYear(),month:e.getUTCMonth()+1,day:e.getUTCDate(),hour:e.getUTCHours(),minute:e.getUTCMinutes(),second:e.getUTCSeconds(),millisecond:e.getUTCMilliseconds()}}function eC(i,t,e){return v8(xS(i),t,e)}function b8(i,t){const e=i.o,n=i.c.year+Math.trunc(t.years),r=i.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o={...i.c,year:n,month:r,day:Math.min(i.c.day,jb(n,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=si.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=xS(o);let[l,d]=v8(s,e,i.zone);return 0!==a&&(l+=a,d=i.zone.offset(l)),{ts:l,o:d}}function G_(i,t,e,n,r,o){const{setZone:a,zone:s}=e;if(i&&0!==Object.keys(i).length){const l=t||s,d=fn.fromObject(i,{...e,zone:l,specificOffset:o});return a?d:d.setZone(s)}return fn.invalid(new Ys("unparsable",`the input "${r}" can't be parsed as ${n}`))}function tC(i,t,e=!0){return i.isValid?zo.create(Qi.create("en-US"),{allowZ:e,forceSimple:!0}).formatDateTimeFromString(i,t):null}function jS(i,t){const e=i.c.year>9999||i.c.year<0;let n="";return e&&i.c.year>=0&&(n+="+"),n+=Ar(i.c.year,e?6:4),t?(n+="-",n+=Ar(i.c.month),n+="-",n+=Ar(i.c.day)):(n+=Ar(i.c.month),n+=Ar(i.c.day)),n}function C8(i,t,e,n,r,o){let a=Ar(i.c.hour);return t?(a+=":",a+=Ar(i.c.minute),(0!==i.c.second||!e)&&(a+=":")):a+=Ar(i.c.minute),(0!==i.c.second||!e)&&(a+=Ar(i.c.second),(0!==i.c.millisecond||!n)&&(a+=".",a+=Ar(i.c.millisecond,3))),r&&(i.isOffsetFixed&&0===i.offset&&!o?a+="Z":i.o<0?(a+="-",a+=Ar(Math.trunc(-i.o/60)),a+=":",a+=Ar(Math.trunc(-i.o%60))):(a+="+",a+=Ar(Math.trunc(i.o/60)),a+=":",a+=Ar(Math.trunc(i.o%60)))),o&&(a+="["+i.zone.ianaName+"]"),a}const w8={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},qpe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Kpe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},D8=["year","month","day","hour","minute","second","millisecond"],Zpe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Qpe=["year","ordinal","hour","minute","second","millisecond"];function M8(i){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[i.toLowerCase()];if(!t)throw new oB(i);return t}function x8(i,t){const e=Nd(t.zone,Hr.defaultZone),n=Qi.fromObject(t),r=Hr.now();let o,a;if(oi(i.year))o=r;else{for(const d of D8)oi(i[d])&&(i[d]=w8[d]);const s=g8(i)||m8(i);if(s)return fn.invalid(s);const l=e.offset(r);[o,a]=eC(i,l,e)}return new fn({ts:o,zone:e,loc:n,o:a})}function k8(i,t,e){const n=!!oi(e.round)||e.round,r=(a,s)=>(a=MS(a,n||e.calendary?0:2,!0),t.loc.clone(e).relFormatter(e).format(a,s)),o=a=>e.calendary?t.hasSame(i,a)?0:t.startOf(a).diff(i.startOf(a),a).get(a):t.diff(i,a).get(a);if(e.unit)return r(o(e.unit),e.unit);for(const a of e.units){const s=o(a);if(Math.abs(s)>=1)return r(s,a)}return r(i>t?-0:0,e.units[e.units.length-1])}function T8(i){let e,t={};return i.length>0&&"object"==typeof i[i.length-1]?(t=i[i.length-1],e=Array.from(i).slice(0,i.length-1)):e=Array.from(i),[t,e]}class fn{constructor(t){const e=t.zone||Hr.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new Ys("invalid input"):null)||(e.isValid?null:Jb(e));this.ts=oi(t.ts)?Hr.now():t.ts;let r=null,o=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,o]=[t.old.c,t.old.o];else{const s=e.offset(this.ts);r=y8(this.ts,s),n=Number.isNaN(r.year)?new Ys("invalid input"):null,r=n?null:r,o=n?null:s}this._zone=e,this.loc=t.loc||Qi.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=o,this.isLuxonDateTime=!0}static now(){return new fn({})}static local(){const[t,e]=T8(arguments),[n,r,o,a,s,l,d]=e;return x8({year:n,month:r,day:o,hour:a,minute:s,second:l,millisecond:d},t)}static utc(){const[t,e]=T8(arguments),[n,r,o,a,s,l,d]=e;return t.zone=Wo.utcInstance,x8({year:n,month:r,day:o,hour:a,minute:s,second:l,millisecond:d},t)}static fromJSDate(t,e={}){const n=function ahe(i){return"[object Date]"===Object.prototype.toString.call(i)}(t)?t.valueOf():NaN;if(Number.isNaN(n))return fn.invalid("invalid input");const r=Nd(e.zone,Hr.defaultZone);return r.isValid?new fn({ts:n,zone:r,loc:Qi.fromObject(e)}):fn.invalid(Jb(r))}static fromMillis(t,e={}){if(dh(t))return t<-_8||t>_8?fn.invalid("Timestamp out of range"):new fn({ts:t,zone:Nd(e.zone,Hr.defaultZone),loc:Qi.fromObject(e)});throw new es(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(dh(t))return new fn({ts:1e3*t,zone:Nd(e.zone,Hr.defaultZone),loc:Qi.fromObject(e)});throw new es("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const n=Nd(e.zone,Hr.defaultZone);if(!n.isValid)return fn.invalid(Jb(n));const r=Hr.now(),o=oi(e.specificOffset)?n.offset(r):e.specificOffset,a=Wb(t,M8),s=!oi(a.ordinal),l=!oi(a.year),d=!oi(a.month)||!oi(a.day),f=l||d,y=a.weekYear||a.weekNumber,k=Qi.fromObject(e);if((f||s)&&y)throw new N_("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&s)throw new N_("Can't mix ordinal dates with month/day");const E=y||a.weekday&&!f;let W,ee,he=y8(r,o);E?(W=Zpe,ee=qpe,he=VS(he)):s?(W=Qpe,ee=Kpe,he=HS(he)):(W=D8,ee=w8);let ge=!1;for(const Qe of W)oi(a[Qe])?a[Qe]=ge?ee[Qe]:he[Qe]:ge=!0;const Ce=E?function Wpe(i){const t=Ub(i.weekYear),e=Tc(i.weekNumber,1,$b(i.weekYear)),n=Tc(i.weekday,1,7);return t?e?!n&&ns("weekday",i.weekday):ns("week",i.week):ns("weekYear",i.weekYear)}(a):s?function Gpe(i){const t=Ub(i.year),e=Tc(i.ordinal,1,V_(i.year));return t?!e&&ns("ordinal",i.ordinal):ns("year",i.year)}(a):g8(a),we=Ce||m8(a);if(we)return fn.invalid(we);const ke=E?p8(a):s?f8(a):a,[Pe,Ue]=eC(ke,o,n),ze=new fn({ts:Pe,zone:n,o:Ue,loc:k});return a.weekday&&f&&t.weekday!==ze.weekday?fn.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${ze.toISO()}`):ze}static fromISO(t,e={}){const[n,r]=function hpe(i){return Af(i,[ope,ZB],[ape,cpe],[spe,dpe],[lpe,upe])}(t);return G_(n,r,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[n,r]=function ppe(i){return Af(function epe(i){return i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(i),[Xhe,Jhe])}(t);return G_(n,r,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[n,r]=function fpe(i){return Af(i,[tpe,KB],[npe,KB],[ipe,rpe])}(t);return G_(n,r,e,"HTTP",e)}static fromFormat(t,e,n={}){if(oi(t)||oi(e))throw new es("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:o=null}=n,a=Qi.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),[s,l,d,f]=function zpe(i,t,e){const{result:n,zone:r,specificOffset:o,invalidReason:a}=a8(i,t,e);return[n,r,o,a]}(a,t,e);return f?fn.invalid(f):G_(s,l,n,`format ${e}`,t,d)}static fromString(t,e,n={}){return fn.fromFormat(t,e,n)}static fromSQL(t,e={}){const[n,r]=function Cpe(i){return Af(i,[vpe,ZB],[ype,bpe])}(t);return G_(n,r,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new es("need to specify a reason the DateTime is invalid");const n=t instanceof Ys?t:new Ys(t,e);if(Hr.throwOnInvalid)throw new ehe(n);return new fn({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const n=s8(t,Qi.fromObject(e));return n?n.map(r=>r?r.val:null).join(""):null}static expandFormat(t,e={}){return o8(zo.parseFormat(t),Qi.fromObject(e)).map(r=>r.val).join("")}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?US(this).weekYear:NaN}get weekNumber(){return this.isValid?US(this).weekNumber:NaN}get weekday(){return this.isValid?US(this).weekday:NaN}get ordinal(){return this.isValid?HS(this.c).ordinal:NaN}get monthShort(){return this.isValid?Xb.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Xb.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Xb.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Xb.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return B_(this.year)}get daysInMonth(){return jb(this.year,this.month)}get daysInYear(){return this.isValid?V_(this.year):NaN}get weeksInWeekYear(){return this.isValid?$b(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:n,calendar:r}=zo.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:r}}toUTC(t=0,e={}){return this.setZone(Wo.instance(t),e)}toLocal(){return this.setZone(Hr.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if((t=Nd(t,Hr.defaultZone)).equals(this.zone))return this;if(t.isValid){let r=this.ts;if(e||n){const o=t.offset(this.ts),a=this.toObject();[r]=eC(a,o,t)}return W_(this,{ts:r,zone:t})}return fn.invalid(Jb(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:n}={}){return W_(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=Wb(t,M8),n=!oi(e.weekYear)||!oi(e.weekNumber)||!oi(e.weekday),r=!oi(e.ordinal),o=!oi(e.year),a=!oi(e.month)||!oi(e.day);if((o||a||r)&&(e.weekYear||e.weekNumber))throw new N_("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&r)throw new N_("Can't mix ordinal dates with month/day");let d;n?d=p8({...VS(this.c),...e}):oi(e.ordinal)?(d={...this.toObject(),...e},oi(e.day)&&(d.day=Math.min(jb(d.year,d.month),d.day))):d=f8({...HS(this.c),...e});const[f,y]=eC(d,this.o,this.zone);return W_(this,{ts:f,o:y})}plus(t){return this.isValid?W_(this,b8(this,si.fromDurationLike(t))):this}minus(t){return this.isValid?W_(this,b8(this,si.fromDurationLike(t).negate())):this}startOf(t){if(!this.isValid)return this;const e={},n=si.normalizeUnit(t);switch(n){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===n&&(e.weekday=1),"quarters"===n){const r=Math.ceil(this.month/3);e.month=3*(r-1)+1}return this.set(e)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,e={}){return this.isValid?zo.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):YS}toLocaleString(t=wS,e={}){return this.isValid?zo.create(this.loc.clone(e),t).formatDateTime(this):YS}toLocaleParts(t={}){return this.isValid?zo.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const a="extended"===t;let s=jS(this,a);return s+="T",s+=C8(this,a,e,n,r,o),s}toISODate({format:t="extended"}={}){return this.isValid?jS(this,"extended"===t):null}toISOWeekDate(){return tC(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:o=!1,format:a="extended"}={}){return this.isValid?(r?"T":"")+C8(this,"extended"===a,e,t,n,o):null}toRFC2822(){return tC(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return tC(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?jS(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(e||t)&&(n&&(r+=" "),e?r+="z":t&&(r+="ZZ")),tC(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():YS}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",n={}){if(!this.isValid||!t.isValid)return si.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=function she(i){return Array.isArray(i)?i:[i]}(e).map(si.normalizeUnit),a=t.valueOf()>this.valueOf(),d=function Ipe(i,t,e,n){let[r,o,a,s]=function Ape(i,t,e){const n=[["years",(s,l)=>l.year-s.year],["quarters",(s,l)=>l.quarter-s.quarter+4*(l.year-s.year)],["months",(s,l)=>l.month-s.month+12*(l.year-s.year)],["weeks",(s,l)=>{const d=JB(s,l);return(d-d%7)/7}],["days",JB]],r={};let o,a;for(const[s,l]of n)if(e.indexOf(s)>=0){o=s;let d=l(i,t);a=i.plus({[s]:d}),a>t?(i=i.plus({[s]:d-1}),d-=1):i=a,r[s]=d}return[i,r,a,o]}(i,t,e);const l=t-r,d=e.filter(y=>["hours","minutes","seconds","milliseconds"].indexOf(y)>=0);0===d.length&&(a0?si.fromMillis(l,n).shiftTo(...d).plus(f):f}(a?this:t,a?t:this,o,r);return a?d.negate():d}diffNow(t="milliseconds",e={}){return this.diff(fn.now(),t,e)}until(t){return this.isValid?vr.fromDateTimes(this,t):this}hasSame(t,e){if(!this.isValid)return!1;const n=t.valueOf(),r=this.setZone(t.zone,{keepLocalTime:!0});return r.startOf(e)<=n&&n<=r.endOf(e)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||fn.fromObject({},{zone:this.zone}),n=t.padding?thise.valueOf(),Math.min)}static max(...t){if(!t.every(fn.isDateTime))throw new es("max requires all arguments be DateTimes");return kB(t,e=>e.valueOf(),Math.max)}static fromFormatExplain(t,e,n={}){const{locale:r=null,numberingSystem:o=null}=n;return a8(Qi.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,n={}){return fn.fromFormatExplain(t,e,n)}static get DATE_SHORT(){return wS}static get DATE_MED(){return aB}static get DATE_MED_WITH_WEEKDAY(){return ihe}static get DATE_FULL(){return sB}static get DATE_HUGE(){return lB}static get TIME_SIMPLE(){return cB}static get TIME_WITH_SECONDS(){return dB}static get TIME_WITH_SHORT_OFFSET(){return uB}static get TIME_WITH_LONG_OFFSET(){return hB}static get TIME_24_SIMPLE(){return pB}static get TIME_24_WITH_SECONDS(){return fB}static get TIME_24_WITH_SHORT_OFFSET(){return gB}static get TIME_24_WITH_LONG_OFFSET(){return mB}static get DATETIME_SHORT(){return _B}static get DATETIME_SHORT_WITH_SECONDS(){return vB}static get DATETIME_MED(){return yB}static get DATETIME_MED_WITH_SECONDS(){return bB}static get DATETIME_MED_WITH_WEEKDAY(){return rhe}static get DATETIME_FULL(){return CB}static get DATETIME_FULL_WITH_SECONDS(){return wB}static get DATETIME_HUGE(){return DB}static get DATETIME_HUGE_WITH_SECONDS(){return MB}}function q_(i){if(fn.isDateTime(i))return i;if(i&&i.valueOf&&dh(i.valueOf()))return fn.fromJSDate(i);if(i&&"object"==typeof i)return fn.fromObject(i);throw new es(`Unknown datetime argument: ${i}, of type ${typeof i}`)}class K_{timezone=Intl.DateTimeFormat().resolvedOptions().timeZone;getLocalDateTime(t){if(10==t.length){let e=new Date(t);return fn.fromJSDate(e)}return fn.fromISO(t,{zone:"utc"}).setZone(this.timezone)}formatDate(t,e="M/d/yyyy"){var n=this.getLocalDateTime(t);return n.year>1900?n.toFormat(e):"-"}transform(t,e){return t?this.formatDate(t,e):"-"}static \u0275fac=function(e){return new(e||K_)};static \u0275pipe=Yn({name:"datePrinter",type:K_,pure:!0})}class Z_{transform(t){return null==t||null==t?"-":"true"==t.toString()?"Yes":"No"}static \u0275fac=function(e){return new(e||Z_)};static \u0275pipe=Yn({name:"trueFalsePrinter",type:Z_,pure:!0})}class Q_{sanitizer;constructor(t){this.sanitizer=t}transform(t){let e=this.sanitizer.bypassSecurityTrustResourceUrl(t);return console.log(e),e}static \u0275fac=function(e){return new(e||Q_)(U(Ps,16))};static \u0275pipe=Yn({name:"safeNuviotLink",type:Q_,pure:!0})}class X_{transform(t,e){if(t){const n=t.indexOf(":");let r=0,o=0;-1!==n?(r=parseInt(t.substr(0,n)),o=parseInt(t.substr(n+1))):(r=parseInt(t.substr(0,2)),o=parseInt(t.substr(2)));let a="am",s=o.toString();return r>11&&(a="pm",r>12&&(r-=12)),o<10&&(s="0"+o),console.log("hh",r,o,s,a),`${r}:${s} ${a}`}return"-"}static \u0275fac=function(e){return new(e||X_)};static \u0275pipe=Yn({name:"timePrinter",type:X_,pure:!0})}class J_{transform(t,e){return t>1048576?(t/1048576).toFixed(2)+" MB":t>1024?(t/1024).toFixed(2)+" KB":t>0?t+" Bytes":void 0}static \u0275fac=function(e){return new(e||J_)};static \u0275pipe=Yn({name:"fileSize",type:J_,pure:!0})}class Rf{static \u0275fac=function(e){return new(e||Rf)};static \u0275mod=Dt({type:Rf});static \u0275inj=wt({})}class Lf{static \u0275fac=function(e){return new(e||Lf)};static \u0275mod=Dt({type:Lf});static \u0275inj=wt({imports:[ki]})}let $S=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[_r,_r]}),i})();class ev{static \u0275fac=function(e){return new(e||ev)};static \u0275mod=Dt({type:ev});static \u0275inj=wt({imports:[ki]})}var zS=V(5876);const Xpe=["qrcElement"];let Jpe=(()=>{class i{constructor(e,n){this.renderer=e,this.sanitizer=n,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new Ae,this.context=null}ngOnChanges(){var e=this;return z(function*(){yield e.createQRCode()})()}isValidQrCodeText(e){return!1===this.allowEmptyString?!(typeof e>"u"||""===e||"null"===e||null===e):!(typeof e>"u")}toDataURL(e){return new Promise((n,r)=>{zS.hz(this.qrdata,e,(o,a)=>{o?r(o):n(a)})})}toCanvas(e,n){return new Promise((r,o)=>{zS.rT(e,this.qrdata,n,a=>{a?o(a):r("success")})})}toSVG(e){return new Promise((n,r)=>{zS.toString(this.qrdata,e,(o,a)=>{o?r(o):n(a)})})}renderElement(e){for(const n of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,n);this.renderer.appendChild(this.qrcElement.nativeElement,e)}createQRCode(){var e=this;return z(function*(){e.version&&e.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),e.version=40):e.version&&e.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),e.version=1):void 0!==e.version&&isNaN(e.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),e.version=void 0);try{if(!e.isValidQrCodeText(e.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");e.isValidQrCodeText(e.qrdata)&&""===e.qrdata&&(e.qrdata=" ");const n={color:{dark:e.colorDark,light:e.colorLight},errorCorrectionLevel:e.errorCorrectionLevel,margin:e.margin,scale:e.scale,type:e.elementType,version:e.version,width:e.width},r=e.imageSrc,o=e.imageHeight||40,a=e.imageWidth||40;switch(e.elementType){case"canvas":const s=e.renderer.createElement("canvas");e.context=s.getContext("2d"),e.toCanvas(s,n).then(()=>{if(e.ariaLabel&&e.renderer.setAttribute(s,"aria-label",`${e.ariaLabel}`),e.title&&e.renderer.setAttribute(s,"title",`${e.title}`),r&&e.context){e.centerImage=new Image(a,o),r!==e.centerImage.src&&(e.centerImage.src=r),o!==e.centerImage.height&&(e.centerImage.height=o),a!==e.centerImage.width&&(e.centerImage.width=a);const f=e.centerImage;f&&(f.onload=()=>{e.context?.drawImage(f,s.width/2-a/2,s.height/2-o/2,a,o)})}e.renderElement(s),e.emitQRCodeURL(s)}).catch(f=>{console.error("[angularx-qrcode] canvas error:",f)});break;case"svg":const l=e.renderer.createElement("div");e.toSVG(n).then(f=>{e.renderer.setProperty(l,"innerHTML",f);const y=l.firstChild;e.renderer.setAttribute(y,"height",`${e.width}`),e.renderer.setAttribute(y,"width",`${e.width}`),e.renderElement(y),e.emitQRCodeURL(y)}).catch(f=>{console.error("[angularx-qrcode] svg error:",f)});break;default:const d=e.renderer.createElement("img");e.toDataURL(n).then(f=>{e.alt&&d.setAttribute("alt",e.alt),e.ariaLabel&&d.setAttribute("aria-label",e.ariaLabel),d.setAttribute("src",f),e.title&&d.setAttribute("title",e.title),e.renderElement(d),e.emitQRCodeURL(d)}).catch(f=>{console.error("[angularx-qrcode] img/url error:",f)})}}catch(n){console.error("[angularx-qrcode] Error generating QR Code:",n.message)}})()}emitQRCodeURL(e){const n=e.constructor.name;if(n===SVGSVGElement.name){const a=new Blob([e.outerHTML],{type:"image/svg+xml"}),s=URL.createObjectURL(a),l=this.sanitizer.bypassSecurityTrustUrl(s);return void this.qrCodeURL.emit(l)}let r="";n===HTMLCanvasElement.name&&(r=e.toDataURL("image/png")),n===HTMLImageElement.name&&(r=e.src),fetch(r).then(o=>o.blob()).then(o=>URL.createObjectURL(o)).then(o=>this.sanitizer.bypassSecurityTrustUrl(o)).then(o=>{this.qrCodeURL.emit(o)}).catch(o=>{console.error("[angularx-qrcode] Error when fetching image/png URL: "+o)})}}return i.\u0275fac=function(e){return new(e||i)(U(ka),U(Ps))},i.\u0275cmp=Be({type:i,selectors:[["qrcode"]],viewQuery:function(e,n){if(1&e&&un(Xpe,7),2&e){let r;pt(r=ft())&&(n.qrcElement=r.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[_i],decls:2,vars:2,consts:[["qrcElement",""]],template:function(e,n){1&e&&H(0,"div",null,0),2&e&&Co(n.cssClass)},encapsulation:2,changeDetection:0}),i})(),WS=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[]}),i})();class lC{static \u0275fac=function(e){return new(e||lC)};static \u0275mod=Dt({type:lC});static \u0275inj=wt({imports:[bd,ki,$S,WS,Lf,ev]})}class ln{_field;debug=!1;popupId;get field(){return this._field}set field(t){this._field=t,this.fieldSet(t)}model;view;fieldSet(t){}isDirty;isValid;hasValue;isEnabled=!0;showValidationErrors;regEx;regExMessage;isRegexInvalid;host;form;inputType="text";constructor(){this.hasValue=!1,this.isValid=!0,this.showValidationErrors=!1}onFocus(t){this.validate(),this.showValidationErrors=!0}onBlur(t){this.validate()}changed(t){this.field.propertyChanged&&this.field.propertyChanged(this.field),this.field.internalValueChanged&&this.field.internalValueChanged(this.field)}validateRegEx(){return this.isRegexInvalid=null!==this.field.value&&this.field.value.length>0&&!!this.field.regEx&&null===this.field.value.match(this.regEx),this.debug&&console.log("is reg ex valid",this.isRegexInvalid,this.field.value,this.regEx,this.regExMessage),this.isRegexInvalid}textChanged(t){this.validate()}validate(){return this.showValidationErrors=!0,"EntityHeaderPicker"===this.field.fieldType||"ProductPicker"===this.field.fieldType||"UserPicker"===this.field.fieldType?(this.debug&&console.log(this.field),this.hasValue=this.field.value&&this.field.value.id&&this.field.value.text,this.isValid=!0):(this.hasValue=0===this.field.value||!!this.field.value&&("0"==this.field.value.toString()||this.field.value.toString().length>0),this.debug&&console.log("Validating field",this.field.name,"value=",this.field.value,"isRequired=",this.field.isRequired,"hasValue=",this.hasValue),this.hasValue&&(this.isValid=!this.validateRegEx())),this.debug&&console.log(`Validating ${this.field.name}`,"valid=",this.isValid,"hv=",this.hasValue),this.isValid&&(this.hasValue||!this.field.isRequired)}ngOnInit(){this.field.host=this,this.popupId=`#popupHelp${this.field.name}`,this.isDirty=!1,this.isRegexInvalid=!1,this.field.regEx?(this.regEx=this.field.regEx,this.regExMessage=this.field.regExMessage):"Decimal"===this.field.fieldType?(this.regEx="^[-+]?[0-9]*.?[0-9]+$",this.regExMessage="Please enter a valid decimal number.",this.inputType="number"):"Integer"===this.field.fieldType&&(this.regEx="^\\d+$",this.regExMessage="Please enter a valid integer number.",this.inputType="number")}static \u0275fac=function(e){return new(e||ln)};static \u0275cmp=Be({type:ln,selectors:[["app-form-field-base"]],inputs:{field:"field",model:"model",view:"view",host:"host",form:"form"},decls:2,vars:0,template:function(e,n){1&e&&(u(0,"p"),m(1," form-field-base works!\n"),c())}})}class Wn{constructor(){}ariaLabel;modalName;field;ngOnInit(){this.ariaLabel="popupHelp"+this.field.name,this.modalName="myModel"+this.field}static \u0275fac=function(e){return new(e||Wn)};static \u0275cmp=Be({type:Wn,selectors:[["app-form-field-help"]],inputs:{field:"field"},decls:12,vars:4,consts:[["tabindex","-1","role","dialog","data-backdrop","false",1,"modal","fade",3,"id"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",2,"color","var(--color-primary)"],["data-dismiss","modal","aria-label","Close",1,"action"],["aria-hidden","true",2,"font-size","48px"],[1,"modal-body"],[2,"white-space","pre-wrap"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),m(5),c(),u(6,"span",5)(7,"span",6),m(8,"\xd7"),c()()(),u(9,"div",7)(10,"p",8),m(11),c()()()()()),2&e&&(Ms("id","popupHelp",n.field.name,""),mt("aria-labelledby",n.ariaLabel),h(5),Ke(" Help - ",n.field.label," "),h(6),Re(n.field.help))},styles:[".modal-dialog[_ngcontent-%COMP%], .modal-content[_ngcontent-%COMP%]{background-color:-var(--color-bg);color:-var(--color-fg)}.modal-header[_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%]{color:#000}"]})}function efe(i,t){if(1&i&&(u(0,"div",2),m(1),c()),2&i){const e=g(2);h(1),Ke(" ",e.requiredMessage," ")}}function tfe(i,t){if(1&i&&(u(0,"div",2),m(1),c()),2&i){const e=g(2);h(1),Ke(" ",e.regExMessage," ")}}function nfe(i,t){if(1&i&&(u(0,"div"),w(1,efe,2,1,"div",1),w(2,tfe,2,1,"div",1),c()),2&i){const e=g();h(1),p("ngIf",!e.hasValue&&e.isRequired),h(1),p("ngIf",e.isRegexInvalid&&e.hasValue)}}class Gn{constructor(){}isRequired;hasValue;showValidationErrors;isRegexInvalid;requiredMessage;regExMessage;ngOnInit(){}static \u0275fac=function(e){return new(e||Gn)};static \u0275cmp=Be({type:Gn,selectors:[["app-form-field-validation-section"]],inputs:{isRequired:"isRequired",hasValue:"hasValue",showValidationErrors:"showValidationErrors",isRegexInvalid:"isRegexInvalid",requiredMessage:"requiredMessage",regExMessage:"regExMessage"},decls:1,vars:1,consts:[[4,"ngIf"],["style","color:red",4,"ngIf"],[2,"color","red"]],template:function(e,n){1&e&&w(0,nfe,3,2,"div",0),2&e&&p("ngIf",n.showValidationErrors)},dependencies:[ct]})}const ife=["keyField"];function rfe(i,t){if(1&i&&(u(0,"h6"),H(1,"i",4),m(2),c()),2&i){const e=g();h(2),Ke(" ",e.field.value,"\n")}}function ofe(i,t){1&i&&H(0,"i",9),2&i&&mt("data-target",g(2).popupId)}function afe(i,t){if(1&i){const e=pe();u(0,"div",5)(1,"input",6,7),N("ngModelChange",function(r){return R(e),L(g().field.value=r)})("change",function(r){return R(e),L(g().changed(r))})("input",function(r){return R(e),L(g().textChanged(r))})("focus",function(r){return R(e),L(g().onFocus(r))})("blur",function(r){R(e);const o=g();return o.onBlur(r),L(o.isEditing=!1)}),c(),w(3,ofe,1,1,"i",8),c()}if(2&i){const e=g();h(1),Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.field.value)("type",e.inputType)("disabled",!e.field.isUserEditable),h(2),p("ngIf",e.field.help)}}class cC extends ln{isEditing=!1;constructor(){super()}nameInput;showEdit(){this.isEditing=!0,setTimeout(()=>{this.nameInput.nativeElement.focus(),this.nameInput.nativeElement.select()},0)}static \u0275fac=function(e){return new(e||cC)};static \u0275cmp=Be({type:cC,selectors:[["app-key"]],viewQuery:function(e,n){if(1&e&&un(ife,5),2&e){let r;pt(r=ft())&&(n.nameInput=r.first)}},features:[st],decls:4,vars:9,consts:[[4,"ngIf"],["class","input-group",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],[1,"fa","fa-key"],[1,"input-group"],[1,"form-control",3,"name","id","ngModel","type","disabled","placeholder","ngModelChange","change","input","focus","blur"],["keyField",""],["class","fa fa-question","data-toggle","modal","style","cursor:pointer;color:#A0A0A0",4,"ngIf"],["data-toggle","modal",1,"fa","fa-question",2,"cursor","pointer","color","#A0A0A0"]],template:function(e,n){1&e&&(w(0,rfe,3,1,"h6",0),w(1,afe,4,9,"div",1),H(2,"app-form-field-validation-section",2)(3,"app-form-field-help",3)),2&e&&(p("ngIf",!n.isEditing),h(1),p("ngIf",n.isEditing),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Bn,vn,pn,ct,Wn,Gn]})}const sfe=["nameField"];function lfe(i,t){if(1&i){const e=pe();u(0,"div",6),N("click",function(){return R(e),L(g().showEdit())}),m(1),H(2,"i",7),c()}if(2&i){const e=g();h(1),Ke(" ",e.field.value," ")}}function cfe(i,t){if(1&i){const e=pe();u(0,"input",8,9),N("ngModelChange",function(r){return R(e),L(g().field.value=r)})("change",function(r){return R(e),L(g().changed(r))})("input",function(r){return R(e),L(g().textChanged(r))})("focus",function(r){return R(e),L(g().onFocus(r))})("blur",function(r){R(e);const o=g();return o.onBlur(r),L(o.isEditing=!1)}),c()}if(2&i){const e=g();Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.field.value)("type",e.inputType)("disabled",!e.field.isUserEditable)}}function dfe(i,t){1&i&&H(0,"i",10),2&i&&mt("data-target",g().popupId)}class dC extends ln{isEditing=!1;constructor(){super()}nameInput;showEdit(){this.isEditing=!0,setTimeout(()=>{this.nameInput.nativeElement.focus(),this.nameInput.nativeElement.select()},0)}static \u0275fac=function(e){return new(e||dC)};static \u0275cmp=Be({type:dC,selectors:[["app-name"]],viewQuery:function(e,n){if(1&e&&un(sfe,5),2&e){let r;pt(r=ft())&&(n.nameInput=r.first)}},features:[st],decls:6,vars:10,consts:[["class","read-only-name",3,"click",4,"ngIf"],[1,"form-group"],["class","form-control",3,"name","id","ngModel","type","disabled","background-color","placeholder","ngModelChange","change","input","focus","blur",4,"ngIf"],["class","fa fa-question","data-toggle","modal","style","cursor:pointer;color:#A0A0A0",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],[1,"read-only-name",3,"click"],[1,"fa","fas","fa-pencil"],[1,"form-control",3,"name","id","ngModel","type","disabled","placeholder","ngModelChange","change","input","focus","blur"],["nameField",""],["data-toggle","modal",1,"fa","fa-question",2,"cursor","pointer","color","#A0A0A0"]],template:function(e,n){1&e&&(w(0,lfe,3,1,"div",0),u(1,"div",1),w(2,cfe,2,8,"input",2),w(3,dfe,1,1,"i",3),c(),H(4,"app-form-field-validation-section",4)(5,"app-form-field-help",5)),2&e&&(p("ngIf",!n.isEditing),h(2),p("ngIf",n.isEditing),h(1),p("ngIf",n.field.help),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Bn,vn,pn,ct,Wn,Gn],styles:[".read-only-name[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{font-size:24px}.read-only-name[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:none}.read-only-name[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%]{display:inline}"]})}class uC{activeModal;businessService;itemSelected=new Ae;landingPages;selectedLandingPage="-1";industryOptions;nicheOptions=void 0;industryId;nicheId;personaId;constructor(t,e){this.activeModal=t,this.businessService=e}ngOnInit(){var t=this;return z(function*(){alert("OBSOLETE!"),console.error("landing pages are stand alone and should be queried at the top level."),t.industryOptions=yield t.businessService.getIndustriesForPicker(),t.industryId&&"-1"!=t.industryId&&(t.nicheOptions=yield t.businessService.getIndustryNichesForPicker(t.industryId))})()}static \u0275fac=function(e){return new(e||uC)(U(dr),U(la))};static \u0275cmp=Be({type:uC,selectors:[["app-landing-page-picker"]],inputs:{industryId:"industryId",nicheId:"nicheId",personaId:"personaId"},outputs:{itemSelected:"itemSelected"},decls:0,vars:0,template:function(e,n){}})}function ufe(i,t){1&i&&(u(0,"span",3),m(1,"*"),c())}function hfe(i,t){if(1&i){const e=pe();u(0,"span",4),N("click",function(){R(e);const r=g();return L(null==r.ai?null:r.ai.emit())}),H(1,"i",5),m(2,"AI"),c()}}class qn{constructor(){}ai=new Ae;name;isRequired;label;aiButton=!1;ngOnInit(){}static \u0275fac=function(e){return new(e||qn)};static \u0275cmp=Be({type:qn,selectors:[["app-form-field-label"]],inputs:{name:"name",isRequired:"isRequired",label:"label",aiButton:"aiButton"},outputs:{ai:"ai"},decls:4,vars:4,consts:[[3,"for"],["style","color:red",4,"ngIf"],["style","font-weight: normal;font-family: serif;margin-left:10px","class","action",3,"click",4,"ngIf"],[2,"color","red"],[1,"action",2,"font-weight","normal","font-family","serif","margin-left","10px",3,"click"],[1,"fa","fa-user-robot"]],template:function(e,n){1&e&&(u(0,"label",0),m(1),w(2,ufe,2,0,"span",1),w(3,hfe,3,0,"span",2),c()),2&e&&(gt("for",n.name),h(1),Ke(" ",n.label," "),h(1),p("ngIf",n.isRequired),h(1),p("ngIf",n.aiButton))},dependencies:[ct]})}function pfe(i,t){if(1&i){const e=pe();u(0,"span",14),N("click",function(r){return R(e),g(3).clearLandingPage(),L(r.stopPropagation())}),H(1,"i",15),c()}}const ffe=function(i){return{"picker-link":i}};function gfe(i,t){if(1&i){const e=pe();u(0,"span",11),N("click",function(){return R(e),L(g(2).pickLandingPage())}),u(1,"span",12),m(2),c(),w(3,pfe,2,0,"span",13),c()}if(2&i){const e=g(2);h(1),p("ngClass",Ct(3,ffe,e.field.isUserEditable)),h(1),Re(e.field.value?null==e.field.value.page?null:e.field.value.page.text:e.field.watermark),h(1),p("ngIf",e.field.value&&!e.field.isRequired&&e.field.isUserEditable)}}function mfe(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g(2);h(1),Re(e.field.value.text)}}function _fe(i,t){if(1&i){const e=pe();u(0,"div")(1,"a",16),m(2),c(),u(3,"i",17),N("click",function(){R(e);const r=g(2);return L(r.copyToClipboard(r.buildLink()))}),c(),H(4,"qrcode",18),c()}if(2&i){const e=g(2);h(1),gt("href",e.buildLink,Yi),h(1),Re(e.buildLink()),h(2),p("qrdata",e.buildLink())("allowEmptyString",!0)("ariaLabel","QR Code image with the following content...")("cssClass","center")("colorDark","#000000ff")("colorLight","#ffffffff")("elementType","canvas")("errorCorrectionLevel","M")("imageHeight",75)("imageWidth",75)("margin",4)("scale",1)("title","QR Code")("width",300)}}function vfe(i,t){1&i&&(u(0,"span",19),H(1,"span",20),c()),2&i&&mt("data-target",g(2).popupId)}function yfe(i,t){if(1&i&&(u(0,"div",3)(1,"div",4)(2,"div",5),H(3,"app-form-field-label",6),u(4,"div",7),w(5,gfe,4,5,"span",8),w(6,mfe,2,1,"div",9),c(),w(7,_fe,5,16,"div",9),c(),u(8,"div"),w(9,vfe,2,1,"span",10),c()()()),2&i){const e=g();h(3),p("name",e.field.name)("label",e.field.label)("isRequired",e.field.isRequired),h(2),p("ngIf",e.isEnabled),h(1),p("ngIf",!e.isEnabled),h(1),p("ngIf",e.field.value),h(2),p("ngIf",e.field.help)}}class hC extends ln{modalService;userService;orgId;emailTemplateId;campaignId;promoId;constructor(t,e){super(),this.modalService=t,this.userService=e}ngOnInit(){var t=()=>super.ngOnInit,e=this;return z(function*(){t().call(e),e.model=e.host.model,console.log(e.form),"SampleEmailInformation"==e.form.modelName?e.emailTemplateId=e.form.parent.model.id:"CampaignPromotion"==e.form.modelName&&(e.promoId=e.model.id,e.campaignId=e.form.parent.model.id);let n=yield e.userService.getCurrentOrg();e.orgId=n.id})()}pickLandingPage(){var t=this;return z(function*(){let e=t.form.parent?.view.industry?Qn.resolveOption(t.form.parent.view.industry):void 0,n=t.view.industryNiche?Qn.resolveOption(t.view.industryNiche):void 0;console.log(e,n);const r=t.modalService.open(uC,{size:"lg"}).componentInstance;r.nicheId=n?n.id:"-1",r.industryId=e?e.id:"-1",r.itemSelected.subscribe(o=>{t.field.value=o,t.field.display=o.page.text,t.changed(t.field),console.log(o)})})()}copyToClipboard(t){Qn.copyToClipboard(t)}clearLandingPage(){this.field.value=void 0}buildLink(){if(!this.field.value||!this.field.value.link)return;let t=`${this.field.value.link}?o=${this.orgId}`;return this.campaignId&&(t+=`&c=${this.campaignId}`),this.promoId&&(t+=`&p=${this.promoId}`),this.emailTemplateId&&(t+=`&t=${this.emailTemplateId}`),t}static \u0275fac=function(e){return new(e||hC)(U(zn),U($n))};static \u0275cmp=Be({type:hC,selectors:[["app-landing-page-field"]],features:[st],decls:3,vars:8,consts:[["class","form-group","attr","one","ng-hide","!isVisible",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["attr","one","ng-hide","!isVisible",1,"form-group"],[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],[1,"input-group-holder"],[3,"click",4,"ngIf"],[4,"ngIf"],["data-toggle","modal",4,"ngIf"],[3,"click"],[3,"ngClass"],["class","picker-link-remove","style","margin-left:20px",3,"click",4,"ngIf"],[1,"picker-link-remove",2,"margin-left","20px",3,"click"],[1,"fa","fa-trash","action-danger"],["target","_blank",3,"href"],[1,"fa","fa-copy","action",3,"click"],[3,"qrdata","allowEmptyString","ariaLabel","cssClass","colorDark","colorLight","elementType","errorCorrectionLevel","imageHeight","imageWidth","margin","scale","title","width"],["data-toggle","modal"],[1,"fa","fa-question","action",2,"margin-left","10pt"]],template:function(e,n){1&e&&(w(0,yfe,10,7,"div",0),H(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&e&&(p("ngIf",n.field),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Zi,ct,Jpe,Wn,qn,Gn],styles:[".picker-link[_ngcontent-%COMP%], .picker-link-remove[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-accent)}.picker-link[_ngcontent-%COMP%]:hover{text-decoration:underline;color:var(--color-accent)}"]})}class Of{nuviotClient;constructor(t){this.nuviotClient=t}addComponent(t){return this.nuviotClient.post("/api/mfg/component",t)}updateComponent(t){return this.nuviotClient.update("/api/mfg/component",t)}getComponent(t){return this.nuviotClient.getFormResponse(`/api/mfg/component/${t}`)}getComponentCategories(){var t=this;return z(function*(){return(yield t.nuviotClient.getListResponse("/api/categories/component")).model.map(n=>({id:n.id,key:n.key,text:n.name}))})()}saveComponent(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateComponent(t.model);{let n=yield e.addComponent(t.model);return n.successful&&(t.isEditing=!0),n}})()}populateComponent(t){return this.nuviotClient.postWithResponse("/api/mfg/digikey/partlookup",t)}createComponent(){return this.nuviotClient.getFormResponse("/api/mfg/component/factory")}getComponents(){return this.nuviotClient.get("/api/mfg/components")}getComponentForCategory(t){return this.nuviotClient.get(`/api/mfg/components?componentType=${t}`)}createComponentPurchase(){return this.nuviotClient.getFormResponse("/api/mfg/component/purchase/factory")}addComponentPackage(t){return this.nuviotClient.post("/api/mfg/component/package",t)}updateComponentPackage(t){return this.nuviotClient.update("/api/mfg/component/package",t)}getComponentPackage(t){return this.nuviotClient.getFormResponse(`/api/mfg/component/package/${t}`)}saveComponentPackage(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateComponentPackage(t.model);{let n=yield e.addComponentPackage(t.model);return n.successful&&(t.isEditing=!0),n}})()}createComponentPackage(){return this.nuviotClient.getFormResponse("/api/mfg/component/package/factory")}getComponentPackages(){return this.nuviotClient.get("/api/mfg/component/packages")}createAutoFeederTemplate(){return this.nuviotClient.getFormResponse("/api/mfg/autofeeder/template/factory")}getAutoFeederTemplates(){return this.nuviotClient.get("/api/mfg/autofeeder/templates")}addAutoFeederTemplate(t){return this.nuviotClient.post("/api/mfg/autofeeder/template",t)}updateAutoFeederTemplate(t){return this.nuviotClient.update("/api/mfg/autofeeder/template",t)}getAutoFeederTemplate(t){return this.nuviotClient.getFormResponse(`/api/mfg/autofeeder/template/${t}`)}saveAutoFeederTemplate(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateAutoFeederTemplate(t.model);{let n=yield e.addAutoFeederTemplate(t.model);return n.successful&&(t.isEditing=!0),n}})()}createAutoFeeder(){return this.nuviotClient.getFormResponse("/api/mfg/autofeeder/factory")}createAutoFeederFromTemplate(t){return this.nuviotClient.getFormResponse(`/api/mfg/autofeeder/template/${t}/factory`)}getAutoFeeders(){return this.nuviotClient.get("/api/mfg/autofeeders")}addAutoFeeder(t){return this.nuviotClient.post("/api/mfg/autofeeder",t)}updateAutoFeeder(t){return this.nuviotClient.update("/api/mfg/autofeeder",t)}getAutoFeeder(t){return this.nuviotClient.getFormResponse(`/api/mfg/autofeeder/${t}`)}saveAutoFeeder(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateAutoFeeder(t.model);{let n=yield e.addAutoFeeder(t.model);return n.successful&&(t.isEditing=!0),n}})()}createMachine(){return this.nuviotClient.getFormResponse("/api/mfg/machine/factory")}getMachines(){return this.nuviotClient.get("/api/mfg/machines")}getStripFeedersForMachine(t,e=!1){return this.nuviotClient.getListResponse(`/api/mfg/machine/${t}/stripfeeders?loadcomponents=${e}`)}addMachine(t){return this.nuviotClient.post("/api/mfg/machine",t)}updateMachine(t){return this.nuviotClient.update("/api/mfg/machine",t)}getMachine(t){return this.nuviotClient.getFormResponse(`/api/mfg/machine/${t}`)}saveMachine(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateMachine(t.model);{let n=yield e.addMachine(t.model);return n.successful&&(t.isEditing=!0),n}})()}createStripFeeder(){return this.nuviotClient.getFormResponse("/api/mfg/stripfeeder/factory")}createStripFeederFromTemplate(t){return this.nuviotClient.getFormResponse(`/api/mfg/stripfeeder/template/${t}/factory`)}getStripFeeders(){return this.nuviotClient.get("/api/mfg/stripfeeders")}addStripFeeder(t){return this.nuviotClient.post("/api/mfg/stripfeeder",t)}updateStripFeeder(t){return this.nuviotClient.update("/api/mfg/stripfeeder",t)}getStripFeeder(t,e=!1){return this.nuviotClient.getFormResponse(`/api/mfg/stripfeeder/${t}?loadcomponent=${e}`)}saveStripFeeder(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateStripFeeder(t.model);{let n=yield e.addStripFeeder(t.model);return n.successful&&(t.isEditing=!0),n}})()}createStripFeederTemplate(){return this.nuviotClient.getFormResponse("/api/mfg/stripfeeder/template/factory")}getStripFeederTemplates(){return this.nuviotClient.get("/api/mfg/stripfeeder/templates")}addStripFeederTemplate(t){return this.nuviotClient.post("/api/mfg/stripfeeder/template",t)}updateStripFeederTemplate(t){return this.nuviotClient.update("/api/mfg/stripfeeder/template",t)}getStripFeederTemplate(t){return this.nuviotClient.getFormResponse(`/api/mfg/stripfeeder/template/${t}`)}saveStripFeederTemplate(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateStripFeederTemplate(t.model);{let n=yield e.addStripFeederTemplate(t.model);return n.successful&&(t.isEditing=!0),n}})()}associateStripFeeder(t,e,n,r,o){return this.nuviotClient.get(`/api/mfg/machine/${t}/stagingplate/${e}/${r}/${o}/stripfeeder/${n}/attach`)}createPartPack(){return this.nuviotClient.getFormResponse("/api/mfg/partpack/factory")}getPartPacks(){return this.nuviotClient.get("/api/mfg/partpacks")}addPartPack(t){return this.nuviotClient.post("/api/mfg/partpack",t)}updatePartPack(t){return this.nuviotClient.update("/api/mfg/partpack",t)}getPartPack(t){return this.nuviotClient.getFormResponse(`/api/mfg/partpack/${t}`)}savePartPack(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updatePartPack(t.model);{let n=yield e.addPartPack(t.model);return n.successful&&(t.isEditing=!0),n}})()}createPcb(){return this.nuviotClient.getFormResponse("/api/mfg/pcb/factory")}getPcbs(){return this.nuviotClient.get("/api/mfg/pcbs")}addPcb(t){return this.nuviotClient.post("/api/mfg/pcb",t)}updatePcb(t){return this.nuviotClient.update("/api/mfg/pcb",t)}getPcb(t){return this.nuviotClient.getFormResponse(`/api/mfg/pcb/${t}`)}savePcb(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updatePcb(t.model);{let n=yield e.addPcb(t.model);return n.successful&&(t.isEditing=!0),n}})()}createComponentOrder(){return this.nuviotClient.getFormResponse("/api/mfg/order/factory")}createComponentOrderLineItem(){return this.nuviotClient.getFormResponse("/api/mfg/order/lineitem")}getComponentOrders(){return this.nuviotClient.get("/api/mfg/orders")}addComponentOrder(t){return this.nuviotClient.post("/api/mfg/order",t)}updateComponentOrder(t){return this.nuviotClient.update("/api/mfg/order",t)}addComponentPurchase(t,e){return this.nuviotClient.post(`/api/mfg/component/${t}/purchase`,e)}receiveComponentOrder(t,e,n){return this.nuviotClient.update(`/api/mfg/component/${t}/purchase/${e}/receive/${n}`,{})}getComponentOrder(t){return this.nuviotClient.getFormResponse(`/api/mfg/order/${t}`)}saveComponentOrder(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateComponentOrder(t.model);{let n=yield e.addComponentOrder(t.model);return n.successful&&(t.isEditing=!0),n}})()}createPnpJob(){return this.nuviotClient.getFormResponse("/api/mfg/pnpjob/factory")}getPnpJobs(){return this.nuviotClient.get("/api/mfg/pnpjobs")}addPnpJob(t){return this.nuviotClient.post("/api/mfg/pnpjob",t)}updatePnpJob(t){return this.nuviotClient.update("/api/mfg/pnpjob",t)}getPnpJob(t){return this.nuviotClient.getFormResponse(`/api/mfg/pnpjob/${t}`)}savePnpJob(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updatePnpJob(t.model);{let n=yield e.addPnpJob(t.model);return n.successful&&(t.isEditing=!0),n}})()}editRevision(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/mfg/pcb/revision/factory");return n.isEditing=!0,n.model=t,n})()}testFitRevision(t,e){return this.nuviotClient.postWithResponse(`/api/mfg/machine/${t}/revision/testfit`,e)}createPnPJobFromPCB(t,e,n=""){let r=`/api/mfg/pcb/${t}/revision/${e}/job`;return n&&(r+=`?name=${n}`),this.nuviotClient.request(r)}createGCodeMapping(){return this.nuviotClient.getFormResponse("/api/mfg/gcodemapping/factory")}getGCodeMappings(){return this.nuviotClient.get("/api/mfg/gcodemappings")}addGCodeMapping(t){return this.nuviotClient.post("/api/mfg/gcodemapping",t)}updateGCodeMapping(t){return this.nuviotClient.update("/api/mfg/gcodemapping",t)}getGCodeMapping(t){return this.nuviotClient.getFormResponse(`/api/mfg/gcodemapping/${t}`)}saveGCodeMapping(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateGCodeMapping(t.model);{let n=yield e.addGCodeMapping(t.model);return n.successful&&(t.isEditing=!0),n}})()}createNozzleTip(){return this.nuviotClient.getFormResponse("/api/mfg/pnp/nozzletip/factory")}getNozzleTips(){return this.nuviotClient.get("/api/mfg/pnp/nozzletips")}addNozzleTip(t){return this.nuviotClient.post("/api/mfg/pnp/nozzletip",t)}updateNozzleTip(t){return this.nuviotClient.update("/api/mfg/pnp/nozzletip",t)}getNozzleTip(t){return this.nuviotClient.getFormResponse(`/api/mfg/pnp/nozzletip/${t}`)}saveNozzleTip(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateNozzleTip(t.model);{let n=yield e.addNozzleTip(t.model);return n.successful&&(t.isEditing=!0),n}})()}createInventoryLocation(){return this.nuviotClient.getFormResponse("/api/mfg/inventory/location/factory")}getInventoryLocations(){return this.nuviotClient.get("/api/mfg/inventory/locations")}addInventoryLocation(t){return this.nuviotClient.post("/api/mfg/inventory/location",t)}updateInventoryLocation(t){return this.nuviotClient.update("/api/mfg/inventory/location",t)}getInventoryLocation(t){return this.nuviotClient.getFormResponse(`/api/mfg/inventory/location/${t}`)}saveInventoryLocation(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateInventoryLocation(t.model);{let n=yield e.addInventoryLocation(t.model);return n.successful&&(t.isEditing=!0),n}})()}getGCodeForProject(t){return this.nuviotClient.postWithResponse("/api/mfg/gcode/generate",t)}createGCodeProject(){return this.nuviotClient.getFormResponse("/api/mfg/gcode/project/factory")}getGCodeProjects(){return this.nuviotClient.get("/api/mfg/gcode/projects")}addGCodeProject(t){return this.nuviotClient.post("/api/mfg/gcode/project",t)}updateGCoeProject(t){return this.nuviotClient.update("/api/mfg/gcode/project",t)}getGCodeProject(t){return this.nuviotClient.getFormResponse(`/api/mfg/gcode/project/${t}`)}saveGCodeProject(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateGCoeProject(t.model);{let n=yield e.addGCodeProject(t.model);return n.successful&&(t.isEditing=!0),n}})()}createAssemblyInstruction(){return this.nuviotClient.getFormResponse("/api/mfg/assembly/instruction/factory")}createAssemblyInstructionStep(){return this.nuviotClient.getFormResponse("/api/mfg/assembly/instructions/step/factory")}editAssemblyInstructionStep(t){var e=this;return z(function*(){let n=yield e.createAssemblyInstructionStep();return n.model=t,n})()}getAssemblyInstructions(){return this.nuviotClient.get("/api/mfg/assembly/instructions")}addAssemblyInstruction(t){return this.nuviotClient.post("/api/mfg/assembly/instruction",t)}updateAssemblyInstruction(t){return this.nuviotClient.update("/api/mfg/assembly/instruction",t)}getAssemblyInstruction(t){return this.nuviotClient.getFormResponse(`/api/mfg/assembly/instruction/${t}`)}saveAssemblyInstruction(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateAssemblyInstruction(t.model);{let n=yield e.addAssemblyInstruction(t.model);return n.successful&&(t.isEditing=!0),n}})()}static \u0275fac=function(e){return new(e||Of)(Ee(An))};static \u0275prov=$e({token:Of,factory:Of.\u0275fac,providedIn:"root"})}function bfe(i,t){if(1&i&&(u(0,"option",5),m(1),c()),2&i){const e=t.$implicit;p("value",e.key),h(1),Re(e.text)}}function Cfe(i,t){if(1&i){const e=pe();u(0,"li",8),N("click",function(){const o=R(e).$implicit;return L(g(2).partSelected(o))}),m(1),c()}if(2&i){const e=t.$implicit;h(1),rc(" ",e.name," ",e.value," (",e.package,") ")}}function wfe(i,t){if(1&i&&(u(0,"ol",6),w(1,Cfe,2,3,"li",7),c()),2&i){const e=g();h(1),p("ngForOf",e.parts)}}class pC{mfgService;activeModal;adminServices;itemSelected=new Ae;selectedCategory;componentCategories;parts;constructor(t,e,n){this.mfgService=t,this.activeModal=e,this.adminServices=n}ngOnInit(){var t=this;return z(function*(){let e=yield t.adminServices.getCategories("component");t.componentCategories=e.model.map(n=>({id:n.id,key:n.key,text:n.name})),t.componentCategories.unshift({id:"-1",key:"-1",text:"-select category-"}),t.selectedCategory=t.componentCategories[0].key})()}categorySelected(){var t=this;return z(function*(){t.parts="-1"==t.selectedCategory?void 0:(yield t.mfgService.getComponentForCategory(t.selectedCategory)).model})()}partSelected(t){var e=this;return z(function*(){e.itemSelected.emit({id:t.id,key:t.key,text:t.name}),e.activeModal.close()})()}static \u0275fac=function(e){return new(e||pC)(U(Of),U(dr),U(xc))};static \u0275cmp=Be({type:pC,selectors:[["app-component-picker"]],outputs:{itemSelected:"itemSelected"},decls:8,vars:3,consts:[[2,"margin","30px"],[2,"color","var(--color-primary-80)"],[1,"form-control","form-select",3,"ngModel","change","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["class","list-group",4,"ngIf"],[3,"value"],[1,"list-group"],["class","list-group-item",3,"click",4,"ngFor","ngForOf"],[1,"list-group-item",3,"click"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"h3",1),m(2,"Select Component"),c(),u(3,"label"),m(4,"Select Category"),c(),u(5,"select",2),N("change",function(){return n.categorySelected()})("ngModelChange",function(o){return n.selectedCategory=o}),w(6,bfe,2,2,"option",3),c(),w(7,wfe,2,1,"ol",4),c()),2&e&&(h(5),p("ngModel",n.selectedCategory),h(1),p("ngForOf",n.componentCategories),h(1),p("ngIf",n.parts))},dependencies:[oo,ao,Nr,vn,pn,jt,ct]})}function Dfe(i,t){if(1&i){const e=pe();u(0,"span",14),N("click",function(r){return R(e),g(3).clearComponent(),L(r.stopPropagation())}),H(1,"i",15),c()}}function Mfe(i,t){if(1&i){const e=pe();u(0,"span",11),N("click",function(){return R(e),L(g(2).pickComponent())}),u(1,"span",12),m(2),c(),w(3,Dfe,2,0,"span",13),c()}if(2&i){const e=g(2);h(2),Re(e.field.display?e.field.display:e.field.watermark),h(1),p("ngIf",e.field.value&&!e.field.isRequired&&e.field.isUserEditable)}}function xfe(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g(2);h(1),Re(e.field.value.text)}}function kfe(i,t){1&i&&(u(0,"span",16),H(1,"span",17),c()),2&i&&mt("data-target",g(2).popupId)}function Tfe(i,t){if(1&i&&(u(0,"div",3)(1,"div",4)(2,"div",5),H(3,"app-form-field-label",6),u(4,"div",7),w(5,Mfe,4,2,"span",8),w(6,xfe,2,1,"div",9),c()(),u(7,"div"),w(8,kfe,2,1,"span",10),c()()()),2&i){const e=g();h(3),p("name",e.field.name)("label",e.field.label)("isRequired",e.field.isRequired),h(2),p("ngIf",e.isEnabled),h(1),p("ngIf",!e.isEnabled),h(2),p("ngIf",e.field.help)}}class fC extends ln{modalService;userService;constructor(t,e){super(),this.modalService=t,this.userService=e}pickComponent(){this.modalService.open(pC,{size:"lg"}).componentInstance.itemSelected.subscribe(e=>{this.field.value=e,this.field.display=e,console.log(e),this.changed(this.field)})}clearComponent(){}static \u0275fac=function(e){return new(e||fC)(U(zn),U($n))};static \u0275cmp=Be({type:fC,selectors:[["app-component-picker-field"]],features:[st],decls:3,vars:8,consts:[["class","form-group","attr","one","ng-hide","!isVisible",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["attr","one","ng-hide","!isVisible",1,"form-group"],[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],[1,"input-group-holder"],[3,"click",4,"ngIf"],[4,"ngIf"],["data-toggle","modal",4,"ngIf"],[3,"click"],[1,"picker-link"],["class","picker-link-remove","style","margin-left:20px",3,"click",4,"ngIf"],[1,"picker-link-remove",2,"margin-left","20px",3,"click"],[1,"fa","fa-trash","action-danger"],["data-toggle","modal"],[1,"fa","fa-question","action",2,"margin-left","10pt"]],template:function(e,n){1&e&&(w(0,Tfe,9,6,"div",0),H(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&e&&(p("ngIf",n.field),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[ct,Wn,qn,Gn],styles:[".picker-link[_ngcontent-%COMP%], .picker-link-remove[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-accent)}.picker-link[_ngcontent-%COMP%]:hover{text-decoration:underline;color:var(--color-accent)}"]})}function Sfe(i,t){if(1&i&&(u(0,"option",6),m(1),c()),2&i){const e=t.$implicit;p("value",e.id),h(1),Re(e.text)}}function Efe(i,t){if(1&i&&(u(0,"option",7),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e.id),h(1),Re(e.text)}}function Afe(i,t){if(1&i&&(u(0,"option",7),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e.id),h(1),Re(e.text)}}function Ife(i,t){if(1&i&&(u(0,"option",7),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e.id),h(1),Re(e.text)}}function Ffe(i,t){if(1&i&&(u(0,"option",7),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e.id),h(1),Re(e.text)}}class gC extends ln{modalService;mfgService;locations;location;locationId;rooms;roomId;shelfUnits;shelfUnitId;shelves;shelfId;columns;columnId;bins;binId;selectedLocation;constructor(t,e){super(),this.modalService=t,this.mfgService=e}ngOnInit(){var t=()=>super.ngOnInit,e=this;return z(function*(){t().call(e),e.rooms=[],e.shelfUnits=[],e.shelves=[],e.columns=[],e.roomId="-1",e.shelfUnitId="-1",e.shelfId="-1",e.columnId="-1";var n=yield e.mfgService.getInventoryLocations();if(e.locations=n.model.map(r=>({id:r.id,key:r.key,text:r.name})),e.locations.unshift({id:"-1",key:"-1",text:"-select location-"}),e.field.value){e.selectedLocation=e.field.value,e.locationId=e.selectedLocation.location.id;let r=yield e.mfgService.getInventoryLocation(e.locationId);if(r.successful&&(e.location=r.model,e.rooms=e.location.rooms.map(o=>({id:o.id,key:o.key,text:o.name})),e.roomId=e.selectedLocation.room?.id??"-1",e.roomId)){let o=e.location.rooms.find(a=>a.id==e.roomId);if(e.shelfUnits=o.shelfUnits.map(a=>({id:a.id,key:a.key,text:a.name})),e.shelfUnitId=e.selectedLocation.shelfUnit?.id??"-1","-1"!=e.shelfUnitId){let a=o.shelfUnits.find(s=>s.id==e.shelfUnitId);if(e.shelves=a.shelves.map(s=>({id:s.id,key:s.key,text:s.name})),e.shelfId=e.selectedLocation?.shelf?.id??"-1","-1"!=e.shelfId){let s=a.shelves.find(l=>l.id==e.shelfId);e.columns=s.columns.map(l=>({id:l.id,key:l.key,text:l.name})),e.columnId=e.selectedLocation?.column?.id??"-1"}}}}else e.locationId=e.locations[0].id;e.rooms.unshift({id:"-1",key:"-1",text:"-select room-"}),e.shelfUnits.unshift({id:"-1",key:"-1",text:"-select shelf unit-"}),e.shelves.unshift({id:"-1",key:"-1",text:"-select shelf-"}),e.columns.unshift({id:"-1",key:"-1",text:"-select column-"}),console.log(e.locationId)})()}updateField(){var t=this;return z(function*(){if(t.selectedLocation&&t.selectedLocation.location.id==t.locationId)if(t.roomId!=t.selectedLocation.room?.id)if(t.roomId&&"-1"!=t.roomId){let e=t.location.rooms.find(n=>n.id==t.roomId);t.selectedLocation.room=t.rooms.find(n=>n.id==t.roomId),t.shelfUnits=e.shelfUnits.map(n=>({id:n.id,key:n.key,text:n.name})),t.shelfUnits.unshift({id:"-1",key:"-1",text:"-select shelf unit-"})}else t.shelfUnits=[],t.shelfUnits.push({id:"-1",key:"-1",text:"-select shelf unit-"}),t.selectedLocation.room=void 0,t.selectedLocation.shelfUnit=void 0,t.selectedLocation.shelf=void 0,t.selectedLocation.column=void 0,t.selectedLocation.bin=void 0,t.shelfUnitId="-1",t.shelfId="-1",t.columnId="-1";else if(t.shelfUnitId!=t.selectedLocation.shelfUnit?.id){if(console.log(t.shelfUnitId),t.shelfUnitId&&"-1"!=t.shelfUnitId){let n=t.location.rooms.find(r=>r.id==t.roomId).shelfUnits.find(r=>r.id==t.shelfUnitId);t.selectedLocation.shelfUnit=t.shelfUnits.find(r=>r.id==t.shelfUnitId),t.shelves=n.shelves.map(r=>({id:r.id,key:r.key,text:r.name})),t.shelves.unshift({id:"-1",key:"-1",text:"-select shelf-"})}else t.shelves=[],t.shelves.push({id:"-1",key:"-1",text:"-select shelf-"}),t.selectedLocation.shelfUnit=void 0,t.selectedLocation.shelf=void 0,t.selectedLocation.column=void 0,t.selectedLocation.bin=void 0,t.shelfId="-1",t.columnId="-1";t.shelfId="-1"}else if(t.shelfId!=t.selectedLocation.shelf?.id){if(t.shelfUnitId&&"-1"!=t.shelfUnitId){let r=t.location.rooms.find(o=>o.id==t.roomId).shelfUnits.find(o=>o.id==t.shelfUnitId).shelves.find(o=>o.id==t.shelfId);t.selectedLocation.shelf=t.shelves.find(o=>o.id==t.shelfId),t.columns=r.columns.map(o=>({id:o.id,key:o.key,text:o.name})),t.columns.unshift({id:"-1",key:"-1",text:"-select column-"})}else t.columns=[],t.columns.push({id:"-1",key:"-1",text:"-select column-"}),t.selectedLocation.shelf=void 0,t.selectedLocation.column=void 0,t.selectedLocation.bin=void 0,t.columnId="-1";t.columnId="-1"}else t.columnId!=t.selectedLocation.column?.id&&(t.selectedLocation.column=t.columnId&&"-1"!=t.columnId?t.columns.find(e=>e.id==t.columnId):void 0);else if("-1"==t.locationId)t.selectedLocation=void 0,t.rooms=[],t.rooms.push({id:"-1",key:"-1",text:"-select room-"}),t.roomId="-1",t.shelfUnitId="-1",t.shelfId="-1",t.columnId="-1";else{t.selectedLocation={location:t.locations.find(n=>n.id==t.locationId)},t.field.value=t.selectedLocation;let e=yield t.mfgService.getInventoryLocation(t.locationId);t.location=e.model,t.rooms=t.location.rooms.map(n=>({id:n.id,key:n.key,text:n.name})),t.rooms.unshift({id:"-1",key:"-1",text:"-select room-"}),t.roomId="-1"}})()}static \u0275fac=function(e){return new(e||gC)(U(zn),U(Of))};static \u0275cmp=Be({type:gC,selectors:[["app-inventory-location-picker"]],features:[st],decls:27,vars:15,consts:[[2,"display","flex"],[2,"width","20%"],[1,"form-control","form-select",3,"ngModel","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf"],[1,"form-control","form-select",3,"disabled","ngModel","ngModelChange","change"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"value"],[3,"ngValue"]],template:function(e,n){1&e&&(u(0,"div")(1,"div",0)(2,"div",1)(3,"label"),m(4),c(),u(5,"select",2),N("ngModelChange",function(o){return n.locationId=o})("change",function(){return n.updateField()}),w(6,Sfe,2,2,"option",3),c()(),u(7,"div",1)(8,"label"),m(9,"Room"),c(),u(10,"select",4),N("ngModelChange",function(o){return n.roomId=o})("change",function(){return n.updateField()}),w(11,Efe,2,2,"option",5),c()(),u(12,"div",1)(13,"label"),m(14,"Shelf Unit"),c(),u(15,"select",4),N("ngModelChange",function(o){return n.shelfUnitId=o})("change",function(){return n.updateField()}),w(16,Afe,2,2,"option",5),c()(),u(17,"div",1)(18,"label"),m(19,"Shelf"),c(),u(20,"select",4),N("ngModelChange",function(o){return n.shelfId=o})("change",function(){return n.updateField()}),w(21,Ife,2,2,"option",5),c()(),u(22,"div",1)(23,"label"),m(24,"Column"),c(),u(25,"select",4),N("ngModelChange",function(o){return n.columnId=o})("change",function(){return n.updateField()}),w(26,Ffe,2,2,"option",5),c()()()()),2&e&&(h(4),Re(n.field.label),h(1),p("ngModel",n.locationId),h(1),p("ngForOf",n.locations),h(4),p("disabled",!n.locationId||"-1"==n.locationId)("ngModel",n.roomId),h(1),p("ngForOf",n.rooms),h(4),p("disabled",!n.roomId||"-1"==n.roomId)("ngModel",n.shelfUnitId),h(1),p("ngForOf",n.shelfUnits),h(4),p("disabled",!n.shelfUnitId||"-1"==n.shelfUnitId)("ngModel",n.shelfId),h(1),p("ngForOf",n.shelves),h(4),p("disabled",!n.shelfId||"-1"==n.shelfId)("ngModel",n.columnId),h(1),p("ngForOf",n.columns))},dependencies:[oo,ao,Nr,vn,pn,jt],styles:["label[_ngcontent-%COMP%]{font-weight:700}select[_ngcontent-%COMP%]{margin-right:5px}"]})}const Pfe=["pickerModal"];function Rfe(i,t){if(1&i){const e=pe();u(0,"span",12),N("click",function(){return R(e),L(g(2).pickInvoice())}),u(1,"span",13),m(2),c()()}if(2&i){const e=g(2);h(2),Re(e.field.display?e.field.display:e.field.watermark)}}function Lfe(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g(2);h(1),Re(e.field.value.text)}}function Ofe(i,t){1&i&&(u(0,"span",14),H(1,"span",15),c()),2&i&&mt("data-target",g(2).popupId)}function Nfe(i,t){if(1&i&&(u(0,"div",4)(1,"div",5)(2,"div",6),H(3,"app-form-field-label",7),u(4,"div",8),w(5,Rfe,3,1,"span",9),w(6,Lfe,2,1,"div",10),c()(),u(7,"div"),w(8,Ofe,2,1,"span",11),c()()()),2&i){const e=g();h(3),p("name",e.field.name)("label",e.field.label)("isRequired",e.field.isRequired),h(2),p("ngIf",e.isEnabled),h(1),p("ngIf",!e.isEnabled),h(2),p("ngIf",e.field.help)}}function Bfe(i,t){if(1&i&&(u(0,"option",27),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e.key),h(1),Re(e.name)}}function Vfe(i,t){if(1&i&&(u(0,"option",27),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e.key),h(1),Re(e.text)}}function Hfe(i,t){if(1&i){const e=pe();u(0,"div",6)(1,"label",18),m(2,"Niche:"),c(),u(3,"select",19),N("ngModelChange",function(r){return R(e),L(g(2).selectedNiche=r)})("change",function(r){return R(e),L(g(2).filterChanged(r))}),w(4,Vfe,2,2,"option",20),c()()}if(2&i){const e=g(2);h(3),p("ngModel",e.selectedNiche),h(1),p("ngForOf",e.niches)}}function Yfe(i,t){if(1&i&&(u(0,"option",27),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e.key),h(1),Re(e.label)}}function Ufe(i,t){1&i&&(u(0,"li",33)(1,"span",34),m(2,"No customers found"),c()())}function jfe(i,t){if(1&i){const e=pe();u(0,"li",35),N("click",function(){const o=R(e).$implicit;return L(g(4).selectCustomer(o))}),u(1,"div"),m(2),c()()}if(2&i){const e=t.$implicit;h(2),Re(e.name)}}function $fe(i,t){if(1&i&&(u(0,"ol",30),w(1,Ufe,3,0,"li",31),w(2,jfe,3,1,"li",32),c()),2&i){const e=g(3);h(1),p("ngIf",0===e.customers.model.length),h(1),p("ngForOf",e.customers.model)}}function zfe(i,t){1&i&&(u(0,"li",33)(1,"span",34),m(2,"No invoices found"),c()())}function Wfe(i,t){if(1&i&&(u(0,"li",33),m(1),Qt(2,"currency"),c()),2&i){const e=t.$implicit;h(1),rc(" ",e.invoiceNumber," - ",e.status," - ",Xt(2,3,e.total)," ")}}function Gfe(i,t){if(1&i&&(u(0,"ol",30),w(1,zfe,3,0,"li",31),w(2,Wfe,3,5,"li",36),c()),2&i){const e=g(3);h(1),p("ngIf",0===e.invoices.model.length),h(1),p("ngForOf",e.invoices.model)}}function qfe(i,t){if(1&i&&(u(0,"div",28),w(1,$fe,3,2,"ol",29),w(2,Gfe,3,2,"ol",29),c()),2&i){const e=g(2);h(1),p("ngIf",!e.invoices&&e.customers),h(1),p("ngIf",e.invoices)}}function Kfe(i,t){1&i&&(u(0,"div",37)(1,"h4"),m(2,"Please Wait"),c(),H(3,"i",38),c())}function Zfe(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",16)(2,"h3"),m(3,"Customer Picker"),c()(),u(4,"div",17)(5,"div",6)(6,"label",18),m(7,"Industry:"),c(),u(8,"select",19),N("ngModelChange",function(r){return R(e),L(g().selectedIndustry=r)})("change",function(r){return R(e),L(g().filterChanged(r))}),w(9,Bfe,2,2,"option",20),c()(),w(10,Hfe,5,2,"div",21),u(11,"div",6)(12,"label",18),m(13,"Customer Status:"),c(),u(14,"select",19),N("ngModelChange",function(r){return R(e),L(g().selectedStage=r)})("change",function(r){return R(e),L(g().filterChanged(r))}),w(15,Yfe,2,2,"option",20),c()()(),u(16,"div",22),w(17,qfe,3,2,"div",23),w(18,Kfe,4,0,"div",24),c(),u(19,"div",25)(20,"button",26),N("click",function(){return R(e),L(g().closeModal())}),m(21,"Close"),c()()()}if(2&i){const e=g();h(8),p("ngModel",e.selectedIndustry),h(1),p("ngForOf",e.industries),h(1),p("ngIf",null!=e.selectedStage),h(4),p("ngModel",e.selectedStage),h(1),p("ngForOf",e.stageOptions),h(2),p("ngIf",!e.busy),h(1),p("ngIf",e.busy)}}class mC extends ln{modal;userService;businessService;storage;pickerModal;currentModal;customers;selectedIndustry="-1";selectedNiche="-1";selectedStage="-1";industries;niches=[];stageOptions;busy=!1;invoices;constructor(t,e,n,r){super(),this.modal=t,this.userService=e,this.businessService=n,this.storage=r}ngOnInit(){}pickInvoice(){var t=this;return z(function*(){t.busy=!0,t.industries=(yield t.businessService.getIndustries()).model,t.stageOptions=yield t.businessService.getCustomerStageOptions(),t.selectedStage=yield t.storage.getItemAsync("customer-filter-status","-1"),t.selectedIndustry=yield t.storage.getItemAsync("customer-filter-industry","-1"),t.stageOptions.unshift(Qn.getAllOption()),t.industries.unshift(Qn.getAllOption()),t.customers=yield t.businessService.getCustomers(t.selectedStage,t.selectedIndustry),t.currentModal=t.modal.open(t.pickerModal,{size:"lg"}),t.busy=!1})()}filterChanged(t){var e=this;return z(function*(){e.storage.setItemAsync("customer-filter-status",e.selectedStage),e.storage.setItemAsync("customer-filter-industry",e.selectedIndustry),e.customers=yield e.businessService.getCustomers(e.selectedStage,e.selectedIndustry),e.setIndustry(e.selectedIndustry)})()}setIndustry(t){var e=this;return z(function*(){if(t&&"-1"!=t){let n=e.industries.find(o=>o.key===t).id,r=yield e.businessService.getIndustry(n);e.niches=r.model.niches.map(o=>({id:o.id,key:o.key,text:o.name})),e.niches.unshift(Qn.getSelectOption())}})()}selectCustomer(t){var e=this;return z(function*(){e.invoices=yield e.businessService.getInvoicesForCustomer(t.id)})()}closeModal(){}static \u0275fac=function(e){return new(e||mC)(U(zn),U($n),U(la),U(co))};static \u0275cmp=Be({type:mC,selectors:[["app-invoice-picker"]],viewQuery:function(e,n){if(1&e&&un(Pfe,5),2&e){let r;pt(r=ft())&&(n.pickerModal=r.first)}},features:[st],decls:5,vars:8,consts:[["class","form-group","attr","one","ng-hide","!isVisible",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["pickerModal",""],["attr","one","ng-hide","!isVisible",1,"form-group"],[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],[1,"input-group-holder"],[3,"click",4,"ngIf"],[4,"ngIf"],["data-toggle","modal",4,"ngIf"],[3,"click"],[1,"picker-link"],["data-toggle","modal"],[1,"fa","fa-question","action",2,"margin-left","10pt"],[2,"border-bottom","1px solid silver","padding-top","10px","padding-right","10px","padding-left","10px"],[2,"display","flex","padding","20px"],[2,"display","inline","margin-right","5px"],[1,"form-control","form-select",2,"width","240px","display","inline",3,"ngModel","ngModelChange","change"],[3,"ngValue",4,"ngFor","ngForOf"],["style","flex-grow:1",4,"ngIf"],[2,"height","600px"],["style","padding:20px;background-color: white;",4,"ngIf"],["style","text-align:center;height: 550px; padding-top:50px;",4,"ngIf"],[2,"text-align","right","padding","10px","border-top","1pt solid silver"],[1,"btn","btn-secondary",3,"click"],[3,"ngValue"],[2,"padding","20px","background-color","white"],["class","list-group","style","max-height: 550px;overflow-y: auto;",4,"ngIf"],[1,"list-group",2,"max-height","550px","overflow-y","auto"],["class","list-group-item",4,"ngIf"],["class","list-group-item","style","cursor: pointer;",3,"click",4,"ngFor","ngForOf"],[1,"list-group-item"],[1,"text-muted"],[1,"list-group-item",2,"cursor","pointer",3,"click"],["class","list-group-item",4,"ngFor","ngForOf"],[2,"text-align","center","height","550px","padding-top","50px"],[1,"fa","fa-spinner","fa-spin","fa-3x"]],template:function(e,n){1&e&&(w(0,Nfe,9,6,"div",0),H(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2),w(3,Zfe,22,7,"ng-template",null,3,Vo)),2&e&&(p("ngIf",n.field),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[oo,ao,Nr,vn,pn,jt,ct,Wn,qn,Gn,ZO],styles:[".picker-link[_ngcontent-%COMP%], .picker-link-remove[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-accent)}.picker-link[_ngcontent-%COMP%]:hover{text-decoration:underline;color:var(--color-accent)}"]})}class _C extends ln{modalService;userService;constructor(t,e){super(),this.modalService=t,this.userService=e}ngOnInit(){}static \u0275fac=function(e){return new(e||_C)(U(zn),U($n))};static \u0275cmp=Be({type:_C,selectors:[["app-proposal-picker"]],features:[st],decls:2,vars:0,template:function(e,n){1&e&&(u(0,"p"),m(1," proposal-picker works!\n"),c())}})}class vC extends ln{modalService;userService;constructor(t,e){super(),this.modalService=t,this.userService=e}ngOnInit(){}static \u0275fac=function(e){return new(e||vC)(U(zn),U($n))};static \u0275cmp=Be({type:vC,selectors:[["app-agreement-picker"]],features:[st],decls:2,vars:0,template:function(e,n){1&e&&(u(0,"p"),m(1," agreement-picker works!\n"),c())}})}function Qfe(i,t){if(1&i){const e=pe();u(0,"span",9),N("click",function(){return R(e),L(g(2).editDiagram())}),u(1,"span",10),m(2),c()()}if(2&i){const e=g(2);h(2),Re(e.field.display?e.field.display:e.field.watermark)}}function Xfe(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g(2);h(1),Re(e.field.value.text)}}function Jfe(i,t){1&i&&(u(0,"span",11),H(1,"span",12),c()),2&i&&mt("data-target",g(2).popupId)}function ege(i,t){if(1&i&&(u(0,"div",1)(1,"div",2)(2,"div",3),H(3,"app-form-field-label",4),u(4,"div",5),w(5,Qfe,3,1,"span",6),w(6,Xfe,2,1,"div",7),c()(),u(7,"div"),w(8,Jfe,2,1,"span",8),c()()()),2&i){const e=g();h(3),p("name",e.field.name)("label",e.field.label)("isRequired",e.field.isRequired),h(2),p("ngIf",e.isEnabled),h(1),p("ngIf",!e.isEnabled),h(2),p("ngIf",e.field.help)}}class yC extends ln{modalService;businessService;orgService;userService;constructor(t,e,n,r){super(),this.modalService=t,this.businessService=e,this.orgService=n,this.userService=r}ngOnInit(){}editDiagram(){var t=this;return z(function*(){if(t.field.value)window.open(`/gla/c/diagram/${t.field.value.id}`,"_blank");else if(t.form.isEditing){let e=yield t.businessService.createLocationDiagram();e.model.name=`${t.model.name} Diagram`,e.model.key=`${t.model.key}diagram`,yield t.orgService.saveLocationDiagram(e),t.field.value={id:e.model.id,text:e.model.name,key:e.model.key},t.field.display=t.field.value,yield t.form.formHost.saveForm(!1),window.open(`/gla/c/diagram/${e.model.id}`,"_blank")}else alert("Please save your changes before editing the diagram")})()}static \u0275fac=function(e){return new(e||yC)(U(zn),U(la),U(Td),U($n))};static \u0275cmp=Be({type:yC,selectors:[["app-diagram"]],features:[st],decls:1,vars:1,consts:[["class","form-group","attr","one","ng-hide","!isVisible",4,"ngIf"],["attr","one","ng-hide","!isVisible",1,"form-group"],[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],[1,"input-group-holder"],[3,"click",4,"ngIf"],[4,"ngIf"],["data-toggle","modal",4,"ngIf"],[3,"click"],[1,"picker-link"],["data-toggle","modal"],[1,"fa","fa-question","action",2,"margin-left","10pt"]],template:function(e,n){1&e&&w(0,ege,9,6,"div",0),2&e&&p("ngIf",n.field)},dependencies:[ct,qn],styles:[".picker-link[_ngcontent-%COMP%], .picker-link-remove[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-accent)}.picker-link[_ngcontent-%COMP%]:hover{text-decoration:underline;color:var(--color-accent)}"]})}function tge(i,t){if(1&i&&H(0,"app-landing-page-field",3),2&i){const e=g();p("form",e.form)("host",e.host)("field",e.field)("model",e.model)("view",e.view)}}function nge(i,t){if(1&i&&H(0,"app-component-picker-field",3),2&i){const e=g();p("form",e.form)("host",e.host)("field",e.field)("model",e.model)("view",e.view)}}function ige(i,t){if(1&i&&H(0,"app-inventory-location-picker",4),2&i){const e=g();p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function rge(i,t){if(1&i&&H(0,"app-invoice-picker",4),2&i){const e=g();p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function oge(i,t){if(1&i&&H(0,"app-proposal-picker",4),2&i){const e=g();p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function age(i,t){if(1&i&&H(0,"app-agreement-picker",4),2&i){const e=g();p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function sge(i,t){if(1&i&&H(0,"app-diagram",4),2&i){const e=g();p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}class bC extends ln{customFieldType;constructor(){super()}ngOnInit(){super.ngOnInit()}static \u0275fac=function(e){return new(e||bC)};static \u0275cmp=Be({type:bC,selectors:[["app-custom-field"]],inputs:{customFieldType:"customFieldType"},features:[st],decls:8,vars:8,consts:[[2,"margin-bottom","15px",3,"ngSwitch"],[3,"form","host","field","model","view",4,"ngSwitchCase"],[3,"host","form","field","model","view",4,"ngSwitchCase"],[3,"form","host","field","model","view"],[3,"host","form","field","model","view"]],template:function(e,n){1&e&&(u(0,"div",0),w(1,tge,1,5,"app-landing-page-field",1),w(2,nge,1,5,"app-component-picker-field",1),w(3,ige,1,5,"app-inventory-location-picker",2),w(4,rge,1,5,"app-invoice-picker",2),w(5,oge,1,5,"app-proposal-picker",2),w(6,age,1,5,"app-agreement-picker",2),w(7,sge,1,5,"app-diagram",2),c()),2&e&&(p("ngSwitch",n.customFieldType),h(1),p("ngSwitchCase","landingpagepicker"),h(1),p("ngSwitchCase","componentpicker"),h(1),p("ngSwitchCase","inventorylocation"),h(1),p("ngSwitchCase","invoicepicker"),h(1),p("ngSwitchCase","proposalpicker"),h(1),p("ngSwitchCase","agreementpicker"),h(1),p("ngSwitchCase","diagram"))},dependencies:[dc,Fu,hC,fC,gC,mC,_C,vC,yC]})}function lge(i,t){1&i&&(u(0,"span",8),H(1,"span",9),c()),2&i&&mt("data-target",g(3).popupId)}function cge(i,t){if(1&i){const e=pe();u(0,"div",3)(1,"div",4)(2,"label",5)(3,"input",6),N("change",function(r){return R(e),L(g(2).changed(r))})("ngModelChange",function(r){return R(e),L(g(2).field.value=r)}),c(),m(4),c()(),u(5,"div"),w(6,lge,2,1,"span",7),c()()}if(2&i){const e=g(2);h(2),gt("for",e.field.name),h(1),gt("name",e.field.name),gt("id",e.field.name),p("ngModel",e.field.value),h(1),Ke(" ",e.field.label," "),h(2),p("ngIf",e.field.help)}}function dge(i,t){if(1&i&&(u(0,"div"),w(1,cge,7,6,"div",2),c()),2&i){const e=g();h(1),p("ngIf",e.field.isVisible)}}class CC extends ln{constructor(){super()}ngOnInit(){super.ngOnInit()}static \u0275fac=function(e){return new(e||CC)};static \u0275cmp=Be({type:CC,selectors:[["app-checkbox"]],features:[st],decls:2,vars:2,consts:[[4,"ngIf"],[3,"field"],["style","display:flex","class","checkbox",4,"ngIf"],[1,"checkbox",2,"display","flex"],[2,"flex-grow","1"],["click","toggle()",3,"for"],["type","checkbox",3,"name","id","ngModel","change","ngModelChange"],["data-toggle","modal",4,"ngIf"],["data-toggle","modal"],[1,"fa","fa-question","action",2,"margin-left","10pt"]],template:function(e,n){1&e&&(w(0,dge,2,1,"div",0),H(1,"app-form-field-help",1)),2&e&&(p("ngIf",!0),h(1),p("field",n.field))},dependencies:[yl,vn,pn,ct,Wn]})}const S8=lle();class uge{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Er(-this._previousScrollPosition.left),t.style.top=Er(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,n=t.style,r=this._document.body.style,o=n.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),S8&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),S8&&(n.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}}class hge{constructor(t,e,n,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class E8{enable(){}disable(){}attach(){}}function GS(i,t){return t.some(e=>i.bottome.bottom||i.righte.right)}function A8(i,t){return t.some(e=>i.tope.bottom||i.lefte.right)}class pge{constructor(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();GS(e,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let fge=(()=>{class i{constructor(e,n,r,o){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new E8,this.close=a=>new hge(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new uge(this._viewportRuler,this._document),this.reposition=a=>new pge(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return i.\u0275fac=function(e){return new(e||i)(Ee(P6),Ee(Df),Ee(Bt),Ee(Wt))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class wC{constructor(t){if(this.scrollStrategy=new E8,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class gge{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let I8=(()=>{class i{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(e){return new(e||i)(Ee(Wt))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),mge=(()=>{class i extends I8{constructor(e,n){super(e),this._ngZone=n,this._keydownListener=r=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const s=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return i.\u0275fac=function(e){return new(e||i)(Ee(Wt),Ee(Bt,8))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),_ge=(()=>{class i extends I8{constructor(e,n,r){super(e),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Vs(o)},this._clickListener=o=>{const a=Vs(o),s="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let d=l.length-1;d>-1;d--){const f=l[d];if(f._outsidePointerEvents.observers.length<1||!f.hasAttached())continue;if(f.overlayElement.contains(a)||f.overlayElement.contains(s))break;const y=f._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>y.next(o)):y.next(o)}}}add(e){if(super.add(e),!this._isAttached){const n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return i.\u0275fac=function(e){return new(e||i)(Ee(Wt),Ee(uo),Ee(Bt,8))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),DC=(()=>{class i{constructor(e,n){this._platform=n,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||cS()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(y),this._backdropTransitionendHandler=y=>{this._disposeBackdrop(y.target)},this._keydownEvents=new be,this._outsidePointerEvents=new be,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Xn(1)).subscribe(()=>{this.hasAttached()&&this.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(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Er(this._config.width),t.height=Er(this._config.height),t.minWidth=Er(this._config.minWidth),t.minHeight=Er(this._config.minHeight),t.maxWidth=Er(this._config.maxWidth),t.maxHeight=Er(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,n){const r=v_(e||[]).filter(o=>!!o);r.length&&(n?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Ot(jr(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const F8="cdk-overlay-connected-position-bounding-box",vge=/([A-Za-z%]+)$/;class P8{constructor(t,e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o,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 be,this._resizeSubscription=D.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(F8),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;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(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[];let a;for(let s of this._preferredPositions){let l=this._getOriginPoint(t,r,s),d=this._getOverlayPoint(l,e,s),f=this._getOverlayFit(d,e,n,s);if(f.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,l);this._canFitWithFlexibleDimensions(f,d,n)?o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)}):(!a||a.overlayFit.visibleAreal&&(l=f,s=d)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ph(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(F8),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,n){let r,o;if("center"==n.originX)r=t.left+t.width/2;else{const a=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;r="start"==n.originX?a:s}return e.left<0&&(r-=e.left),o="center"==n.originY?t.top+t.height/2:"top"==n.originY?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,n){let r,o;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,n,r){const o=L8(e);let{x:a,y:s}=t,l=this._getOffset(r,"x"),d=this._getOffset(r,"y");l&&(a+=l),d&&(s+=d);let k=0-s,E=s+o.height-n.height,W=this._subtractOverflows(o.width,0-a,a+o.width-n.width),ee=this._subtractOverflows(o.height,k,E),he=W*ee;return{visibleArea:he,isCompletelyWithinViewport:o.width*o.height===he,fitsInViewportVertically:ee===o.height,fitsInViewportHorizontally:W==o.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const r=n.bottom-e.y,o=n.right-e.x,a=R8(this._overlayRef.getConfig().minHeight),s=R8(this._overlayRef.getConfig().minWidth),d=t.fitsInViewportHorizontally||null!=s&&s<=o;return(t.fitsInViewportVertically||null!=a&&a<=r)&&d}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=L8(e),o=this._viewportRect,a=Math.max(t.x+r.width-o.width,0),s=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-n.top-t.y,0),d=Math.max(o.left-n.left-t.x,0);let f=0,y=0;return f=r.width<=o.width?d||-a:t.xW&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.y-W/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)k=n.width-t.x+this._viewportMargin,f=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)y=t.x,f=n.right-t.x;else{const E=Math.min(n.right-t.x+n.left,t.x),W=this._lastBoundingBoxSize.width;f=2*E,y=t.x-E,f>W&&!this._isInitialRender&&!this._growAfterOpen&&(y=t.x-W/2)}return{top:a,left:y,bottom:s,right:k,width:f,height:o}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=Er(n.height),r.top=Er(n.top),r.bottom=Er(n.bottom),r.width=Er(n.width),r.left=Er(n.left),r.right=Er(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Er(o)),a&&(r.maxWidth=Er(a))}this._lastBoundingBoxSize=n,ph(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ph(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ph(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const f=this._viewportRuler.getViewportScrollPosition();ph(n,this._getExactOverlayY(e,t,f)),ph(n,this._getExactOverlayX(e,t,f))}else n.position="static";let s="",l=this._getOffset(e,"x"),d=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),d&&(s+=`translateY(${d}px)`),n.transform=s.trim(),a.maxHeight&&(r?n.maxHeight=Er(a.maxHeight):o&&(n.maxHeight="")),a.maxWidth&&(r?n.maxWidth=Er(a.maxWidth):o&&(n.maxWidth="")),ph(this._pane.style,n)}_getExactOverlayY(t,e,n){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Er(o.y),r}_getExactOverlayX(t,e,n){let a,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),a=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Er(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:A8(t,n),isOriginOutsideView:GS(t,n),isOverlayClipped:A8(e,n),isOverlayOutsideView:GS(e,n)}}_subtractOverflows(t,...e){return e.reduce((n,r)=>n-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?t.offsetX??this._offsetX:t.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&v_(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Pt)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function ph(i,t){for(let e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i}function R8(i){if("number"!=typeof i&&null!=i){const[t,e]=i.split(vge);return e&&"px"!==e?null:parseFloat(t)}return i||null}function L8(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const O8="cdk-global-overlay-wrapper";class yge{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(O8),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=n,l=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),d=!("100%"!==o&&"100vh"!==o||s&&"100%"!==s&&"100vh"!==s),f=this._xPosition,y=this._xOffset,k="rtl"===this._overlayRef.getConfig().direction;let E="",W="",ee="";l?ee="flex-start":"center"===f?(ee="center",k?W=y:E=y):k?"left"===f||"end"===f?(ee="flex-end",E=y):("right"===f||"start"===f)&&(ee="flex-start",W=y):"left"===f||"start"===f?(ee="flex-start",E=y):("right"===f||"end"===f)&&(ee="flex-end",W=y),t.position=this._cssPosition,t.marginLeft=l?"0":E,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":W,e.justifyContent=ee,e.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(O8),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let bge=(()=>{class i{constructor(e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o}global(){return new yge}flexibleConnectedTo(e){return new P8(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(e){return new(e||i)(Ee(Df),Ee(Wt),Ee(uo),Ee(DC))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Cge=0,El=(()=>{class i{constructor(e,n,r,o,a,s,l,d,f,y,k,E){this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=s,this._ngZone=l,this._document=d,this._directionality=f,this._location=y,this._outsideClickDispatcher=k,this._animationsModuleType=E}create(e){const n=this._createHostElement(),r=this._createPaneElement(n),o=this._createPortalOutlet(r),a=new wC(e);return a.direction=a.direction||this._directionality.value,new tv(o,n,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const n=this._document.createElement("div");return n.id="cdk-overlay-"+Cge++,n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(hd)),new qle(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(e){return new(e||i)(Ee(fge),Ee(DC),Ee(Jl),Ee(bge),Ee(mge),Ee(Li),Ee(Bt),Ee(Wt),Ee(Do),Ee(pd),Ee(_ge),Ee(oa,8))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();const Mge={provide:new nt("cdk-connected-overlay-scroll-strategy"),deps:[El],useFactory:function Dge(i){return()=>i.scrollStrategies.reposition()}};let MC=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[El,Mge],imports:[b_,bf,R6,R6]}),i})();const xge=["mat-button",""],kge=["*"],Sge=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Ege=Cf(C_(yb(class{constructor(i){this._elementRef=i}})));let qS=(()=>{class i extends Ege{constructor(e,n,r){super(e),this._focusMonitor=n,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of Sge)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,n){e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(n=>this._getHostElement().hasAttribute(n))}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(Id),U(oa,8))},i.\u0275cmp=Be({type:i,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(e,n){if(1&e&&un(wf,5),2&e){let r;pt(r=ft())&&(n.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,n){2&e&&(mt("disabled",n.disabled||null),Zt("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-button-disabled",n.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[st],attrs:xge,ngContentSelectors:kge,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(e,n){1&e&&(ro(),u(0,"span",0),Ei(1),c(),H(2,"span",1)(3,"span",2)),2&e&&(h(2),Zt("mat-button-ripple-round",n.isRoundButton||n.isIconButton),p("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",n.isIconButton)("matRippleTrigger",n._getHostElement()))},dependencies:[wf],styles:[".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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),i})(),N8=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[bb,_r,_r]}),i})();const Age=["connectionContainer"],Ige=["inputContainer"],Fge=["label"];function Pge(i,t){1&i&&(yo(0),u(1,"div",14),H(2,"div",15)(3,"div",16)(4,"div",17),c(),u(5,"div",18),H(6,"div",15)(7,"div",16)(8,"div",17),c(),bo())}function Rge(i,t){if(1&i){const e=pe();u(0,"div",19),N("cdkObserveContent",function(){return R(e),L(g().updateOutlineGap())}),Ei(1,1),c()}2&i&&p("cdkObserveContentDisabled","outline"!=g().appearance)}function Lge(i,t){if(1&i&&(yo(0),Ei(1,2),u(2,"span"),m(3),c(),bo()),2&i){const e=g(2);h(3),Re(e._control.placeholder)}}function Oge(i,t){1&i&&Ei(0,3,["*ngSwitchCase","true"])}function Nge(i,t){1&i&&(u(0,"span",23),m(1," *"),c())}function Bge(i,t){if(1&i){const e=pe();u(0,"label",20,21),N("cdkObserveContent",function(){return R(e),L(g().updateOutlineGap())}),w(2,Lge,4,1,"ng-container",12),w(3,Oge,1,0,"ng-content",12),w(4,Nge,2,0,"span",22),c()}if(2&i){const e=g();Zt("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),p("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),mt("for",e._control.id)("aria-owns",e._control.id),h(2),p("ngSwitchCase",!1),h(1),p("ngSwitchCase",!0),h(1),p("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Vge(i,t){1&i&&(u(0,"div",24),Ei(1,4),c())}function Hge(i,t){if(1&i&&(u(0,"div",25),H(1,"span",26),c()),2&i){const e=g();h(1),Zt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Yge(i,t){1&i&&(u(0,"div"),Ei(1,5),c()),2&i&&p("@transitionMessages",g()._subscriptAnimationState)}function Uge(i,t){if(1&i&&(u(0,"div",30),m(1),c()),2&i){const e=g(2);p("id",e._hintLabelId),h(1),Re(e.hintLabel)}}function jge(i,t){if(1&i&&(u(0,"div",27),w(1,Uge,2,2,"div",28),Ei(2,6),H(3,"div",29),Ei(4,7),c()),2&i){const e=g();p("@transitionMessages",e._subscriptAnimationState),h(1),p("ngIf",e.hintLabel)}}const $ge=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],zge=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Wge=new nt("MatError"),Gge={transitionMessages:Pd("transitionMessages",[Ja("enter",Ni({opacity:1,transform:"translateY(0%)"})),$o("void => enter",[Ni({opacity:0,transform:"translateY(-5px)"}),jo("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let KS=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=it({type:i}),i})();const qge=new nt("MatHint");let B8=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=it({type:i,selectors:[["mat-label"]]}),i})(),Kge=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=it({type:i,selectors:[["mat-placeholder"]]}),i})();const Zge=new nt("MatPrefix"),V8=new nt("MatSuffix");let Qge=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=it({type:i,selectors:[["","matSuffix",""]],features:[Pn([{provide:V8,useExisting:i}])]}),i})(),H8=0;const Jge=Cf(class{constructor(i){this._elementRef=i}},"primary"),eme=new nt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ZS=new nt("MatFormField");let tme=(()=>{class i extends Jge{constructor(e,n,r,o,a,s,l){super(e),this._changeDetectorRef=n,this._dir=r,this._defaults=o,this._platform=a,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new be,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+H8++,this._labelId="mat-form-field-label-"+H8++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=o?.appearance||"legacy",o&&(this._hideRequiredMarker=Boolean(o.hideRequiredMarker),o.color&&(this.color=this.defaultColor=o.color))}get appearance(){return this._appearance}set appearance(e){const n=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&n!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ci(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(cr(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ot(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ot(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),jr(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(cr(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(cr(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ot(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const n=this._control?this._control.ngControl:null;return n&&n[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,yn(this._label.nativeElement,"transitionend").pipe(Xn(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const n=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,n=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",o=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const f=n.querySelectorAll(`${r}, ${o}`);for(let y=0;y0?.75*W+10:0}for(let f=0;f{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[ki,_r,hb,_r]}),i})();const U8=Cc({passive:!0});let nme=(()=>{class i{constructor(e,n){this._platform=e,this._ngZone=n,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Fr;const n=mr(e),r=this._monitoredElements.get(n);if(r)return r.subject;const o=new be,a="cdk-text-field-autofilled",s=l=>{"cdk-text-field-autofill-start"!==l.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===l.animationName&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1}))):(n.classList.add(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",s,U8),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:o,unlisten:()=>{n.removeEventListener("animationstart",s,U8)}}),o}stopMonitoring(e){const n=mr(e),r=this._monitoredElements.get(n);r&&(r.unlisten(),r.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n))}}return i.\u0275fac=function(e){return new(e||i)(Ee(uo),Ee(Bt))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),j8=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({}),i})();const $8=new nt("MAT_INPUT_VALUE_ACCESSOR"),ime=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let rme=0;const ome=nce(class{constructor(i,t,e,n){this._defaultErrorStateMatcher=i,this._parentForm=t,this._parentFormGroup=e,this.ngControl=n,this.stateChanges=new be}});let ame=(()=>{class i extends ome{constructor(e,n,r,o,a,s,l,d,f,y){super(s,o,a,r),this._elementRef=e,this._platform=n,this._autofillMonitor=d,this._formField=y,this._uid="mat-input-"+rme++,this.focused=!1,this.stateChanges=new be,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(W=>t6().has(W)),this._iOSKeyupListener=W=>{const ee=W.target;!ee.value&&0===ee.selectionStart&&0===ee.selectionEnd&&(ee.setSelectionRange(1,1),ee.setSelectionRange(0,0))};const k=this._elementRef.nativeElement,E=k.nodeName.toLowerCase();this._inputValueAccessor=l||k,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&f.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===E,this._isTextarea="textarea"===E,this._isInFormField=!!y,this._isNativeSelect&&(this.controlType=k.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ci(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(H3.required)??!1}set required(e){this._required=Ci(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&t6().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ci(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,n=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(n!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=n,n?r.setAttribute("placeholder",n):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){ime.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(uo),U(uc,10),U(zp,8),U(a1,8),U(v6),U($8,10),U(nme),U(Bt),U(ZS,8))},i.\u0275dir=it({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,n){1&e&&N("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&e&&(ml("disabled",n.disabled)("required",n.required),mt("id",n.id)("data-placeholder",n.placeholder)("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),Zt("mat-input-server",n._isServer)("mat-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Pn([{provide:KS,useExisting:i}]),st,_i]}),i})(),z8=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[v6],imports:[j8,xC,_r,j8,xC]}),i})();const sme=["mat-calendar-body",""];function lme(i,t){if(1&i&&(u(0,"tr",2)(1,"td",3),m(2),c()()),2&i){const e=g();h(1),Mn("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),mt("colspan",e.numCols),h(1),Ke(" ",e.label," ")}}function cme(i,t){if(1&i&&(u(0,"td",3),m(1),c()),2&i){const e=g(2);Mn("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),mt("colspan",e._firstRowOffset),h(1),Ke(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function dme(i,t){if(1&i){const e=pe();u(0,"td",7)(1,"button",8),N("click",function(r){const a=R(e).$implicit;return L(g(2)._cellClicked(a,r))})("focus",function(r){const a=R(e).$implicit;return L(g(2)._emitActiveDateChange(a,r))}),u(2,"div",9),m(3),c(),H(4,"div",10),c()()}if(2&i){const e=t.$implicit,n=t.index,r=g().index,o=g();Mn("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),mt("data-mat-row",r)("data-mat-col",n),h(1),Zt("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,n))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,n))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,n))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),p("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,n)?0:-1),mt("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null),h(1),Zt("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),h(1),Ke(" ",e.displayValue," ")}}function ume(i,t){if(1&i&&(u(0,"tr",4),w(1,cme,2,6,"td",5),w(2,dme,5,47,"td",6),c()),2&i){const e=t.$implicit,n=t.index,r=g();h(1),p("ngIf",0===n&&r._firstRowOffset),h(1),p("ngForOf",e)}}function hme(i,t){if(1&i&&(u(0,"th",5)(1,"span",6),m(2),c(),u(3,"span",7),m(4),c()()),2&i){const e=t.$implicit;h(2),Re(e.long),h(2),Re(e.narrow)}}const pme=["*"];function fme(i,t){}function gme(i,t){if(1&i){const e=pe();u(0,"mat-month-view",5),N("activeDateChange",function(r){return R(e),L(g().activeDate=r)})("_userSelection",function(r){return R(e),L(g()._dateSelected(r))}),c()}if(2&i){const e=g();p("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function mme(i,t){if(1&i){const e=pe();u(0,"mat-year-view",6),N("activeDateChange",function(r){return R(e),L(g().activeDate=r)})("monthSelected",function(r){return R(e),L(g()._monthSelectedInYearView(r))})("selectedChange",function(r){return R(e),L(g()._goToDateInView(r,"month"))}),c()}if(2&i){const e=g();p("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function _me(i,t){if(1&i){const e=pe();u(0,"mat-multi-year-view",7),N("activeDateChange",function(r){return R(e),L(g().activeDate=r)})("yearSelected",function(r){return R(e),L(g()._yearSelectedInMultiYearView(r))})("selectedChange",function(r){return R(e),L(g()._goToDateInView(r,"year"))}),c()}if(2&i){const e=g();p("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function vme(i,t){}const yme=["button"];function bme(i,t){1&i&&(mu(),u(0,"svg",3),H(1,"path",4),c())}const Cme=[[["","matDatepickerToggleIcon",""]]],wme=["[matDatepickerToggleIcon]"];let nv=(()=>{class i{constructor(){this.changes=new be,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class QS{constructor(t,e,n,r,o={},a=t,s){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s}}let Nf=(()=>{class i{constructor(e,n){this._elementRef=e,this._ngZone=n,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Ae,this.previewChange=new Ae,this.activeDateChange=new Ae,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const o=this._getCellFromElement(r.target);o&&this._ngZone.run(()=>this.previewChange.emit({value:o.enabled?o:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&this._getCellFromElement(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},n.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(e,n){e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const n=e.numCols,{rows:r,numCols:o}=this;(e.rows||n)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/o+"%"),(n||!this._cellWidth)&&(this._cellWidth=100/o+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,n){let r=e*this.numCols+n;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Xn(1)).subscribe(()=>{setTimeout(()=>{const n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return XS(e,this.startValue,this.endValue)}_isRangeEnd(e){return JS(e,this.startValue,this.endValue)}_isInRange(e){return eE(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return XS(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[n][r-1];if(!o){const a=this.rows[n-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,n,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[n][r+1];if(!o){const a=this.rows[n+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return JS(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return eE(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return XS(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return JS(e,this.previewStart,this.previewEnd)}_isInPreview(e){return eE(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let n;if(W8(e)?n=e:W8(e.parentNode)&&(n=e.parentNode),n){const r=n.getAttribute("data-mat-row"),o=n.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)][parseInt(o)]}return null}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(Bt))},i.\u0275cmp=Be({type:i,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[_i],attrs:sme,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,n){1&e&&(w(0,lme,3,6,"tr",0),w(1,ume,3,2,"tr",1)),2&e&&(p("ngIf",n._firstRowOffset=t&&i===e}function eE(i,t,e,n){return n&&null!==t&&null!==e&&t!==e&&i>=t&&i<=e}class ca{constructor(t,e){this.start=t,this.end=e}}let Vd=(()=>{class i{constructor(e,n){this.selection=e,this._adapter=n,this._selectionChanged=new be,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,n){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return i.\u0275fac=function(e){kp()},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})(),Dme=(()=>{class i extends Vd{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new i(this._adapter);return e.updateSelection(this.selection,this),e}}return i.\u0275fac=function(e){return new(e||i)(Ee(ho))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();const G8={provide:Vd,deps:[[new Cs,new Ql,Vd],ho],useFactory:function xme(i,t){return i||new Dme(t)}},kC=new nt("MAT_DATE_RANGE_SELECTION_STRATEGY");let q8=(()=>{class i{constructor(e,n,r,o,a){this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=r,this._dir=o,this._rangeStrategy=a,this._rerenderSubscription=D.EMPTY,this.selectedChange=new Ae,this._userSelection=new Ae,this.activeDateChange=new Ae,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const n=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof ca?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cr(null)).subscribe(()=>this._init())}ngOnChanges(e){const n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const n=e.value,r=this._getDateFromDayOfMonth(n);let o,a;this._selected instanceof ca?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==n||a!==n)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const n=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!Ad(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){const o=this._rangeStrategy.createPreview(n?n.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(o.start),this._previewEnd=this._getCellCompareValue(o.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow");let o=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:n[s]}));this._weekdays=o.slice(e).concat(o.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,o=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!(!e||!n||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(n)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){const n=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(n,r,o).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof ca?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return i.\u0275fac=function(e){return new(e||i)(U(ui),U(nh,8),U(ho,8),U(Do,8),U(kC,8))},i.\u0275cmp=Be({type:i,selectors:[["mat-month-view"]],viewQuery:function(e,n){if(1&e&&un(Nf,5),2&e){let r;pt(r=ft())&&(n._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[_i],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,n){1&e&&(u(0,"table",0)(1,"thead",1)(2,"tr"),w(3,hme,5,2,"th",2),c(),u(4,"tr"),H(5,"th",3),c()(),u(6,"tbody",4),N("selectedValueChange",function(o){return n._dateSelected(o)})("activeDateChange",function(o){return n._updateActiveDate(o)})("previewChange",function(o){return n._previewChanged(o)})("keyup",function(o){return n._handleCalendarBodyKeyup(o)})("keydown",function(o){return n._handleCalendarBodyKeydown(o)}),c()()),2&e&&(h(3),p("ngForOf",n._weekdays),h(3),p("label",n._monthLabel)("rows",n._weeks)("todayValue",n._todayDate)("startValue",n._rangeStart)("endValue",n._rangeEnd)("comparisonStart",n._comparisonRangeStart)("comparisonEnd",n._comparisonRangeEnd)("previewStart",n._previewStart)("previewEnd",n._previewEnd)("isRange",n._isRange)("labelMinRequiredCells",3)("activeCell",n._dateAdapter.getDate(n.activeDate)-1))},dependencies:[jt,Nf],encapsulation:2,changeDetection:0}),i})(),K8=(()=>{class i{constructor(e,n,r){this._changeDetectorRef=e,this._dateAdapter=n,this._dir=r,this._rerenderSubscription=D.EMPTY,this.selectedChange=new Ae,this.yearSelected=new Ae,this.activeDateChange=new Ae,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),Z8(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof ca?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cr(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const n=this._dateAdapter.getYear(this._activeDate)-iv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,o=[];r<24;r++)o.push(n+r),4==o.length&&(this._years.push(o.map(a=>this._createCellForYear(a))),o=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const n=e.value,r=this._dateAdapter.createDate(n,0,1),o=this._getDateFromYear(n);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const n=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-iv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-iv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return iv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const n=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){const n=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(n),o=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new QS(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class i{constructor(e,n,r,o){this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=r,this._dir=o,this._rerenderSubscription=D.EMPTY,this.selectedChange=new Ae,this.monthSelected=new Ae,this.activeDateChange=new Ae,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof ca?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(cr(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const n=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(r);const o=this._getDateFromMonth(n);this.selectedChange.emit(o)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const n=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,n){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new QS(e,n.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){const n=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;for(let o=this._dateAdapter.createDate(n,e,1);this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&n>o}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class i{constructor(e,n,r,o,a){this._intl=e,this.calendar=n,this._dateAdapter=r,this._dateFormats=o,this._buttonDescriptionId="mat-calendar-button-"+Ame++,this.calendar.stateChanges.subscribe(()=>a.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const n=this._dateAdapter.getYear(this.calendar.activeDate)-iv(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=n+24-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(o,a)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,n){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):Z8(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}}return i.\u0275fac=function(e){return new(e||i)(U(nv),U(Fn(()=>iE)),U(ho,8),U(nh,8),U(ui))},i.\u0275cmp=Be({type:i,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:pme,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,n){1&e&&(ro(),u(0,"div",0)(1,"div",1)(2,"button",2),N("click",function(){return n.currentPeriodClicked()}),u(3,"span"),m(4),c(),mu(),u(5,"svg",3),H(6,"polygon",4),c()(),function Ua(){!function jD(){bn.lFrame.currentNamespace=null}()}(),H(7,"div",5),Ei(8),u(9,"button",6),N("click",function(){return n.previousClicked()}),c(),u(10,"button",7),N("click",function(){return n.nextClicked()}),c()()()),2&e&&(h(2),mt("aria-label",n.periodButtonLabel)("aria-describedby",n._buttonDescriptionId),h(1),mt("id",n._buttonDescriptionId),h(1),Re(n.periodButtonText),h(1),Zt("mat-calendar-invert","month"!==n.calendar.currentView),h(4),p("disabled",!n.previousEnabled()),mt("aria-label",n.prevButtonLabel),h(1),p("disabled",!n.nextEnabled()),mt("aria-label",n.nextButtonLabel))},dependencies:[qS],encapsulation:2,changeDetection:0}),i})(),iE=(()=>{class i{constructor(e,n,r,o){this._dateAdapter=n,this._dateFormats=r,this._changeDetectorRef=o,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Ae,this.yearSelected=new Ae,this.monthSelected=new Ae,this.viewChanged=new Ae(!0),this._userSelection=new Ae,this.stateChanges=new be,this._intlChanges=e.changes.subscribe(()=>{o.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof ca?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&this.viewChanged.emit(n)}ngAfterContentInit(){this._calendarHeaderPortal=new y_(this.headerComponent||Ime),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=n||r||e.dateFilter;if(o&&!o.firstChange){const a=this._getCurrentViewComponent();a&&(this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const n=e.value;(this.selected instanceof ca||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return i.\u0275fac=function(e){return new(e||i)(U(nv),U(ho,8),U(nh,8),U(ui))},i.\u0275cmp=Be({type:i,selectors:[["mat-calendar"]],viewQuery:function(e,n){if(1&e&&(un(q8,5),un(X8,5),un(K8,5)),2&e){let r;pt(r=ft())&&(n.monthView=r.first),pt(r=ft())&&(n.yearView=r.first),pt(r=ft())&&(n.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[Pn([G8]),_i],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,n){1&e&&(w(0,fme,0,0,"ng-template",0),u(1,"div",1),w(2,gme,1,8,"mat-month-view",2),w(3,mme,1,6,"mat-year-view",3),w(4,_me,1,6,"mat-multi-year-view",4),c()),2&e&&(p("cdkPortalOutlet",n._calendarHeaderPortal),h(1),p("ngSwitch",n.currentView),h(1),p("ngSwitchCase","month"),h(1),p("ngSwitchCase","year"),h(1),p("ngSwitchCase","multi-year"))},dependencies:[dc,Fu,u6,Fd,q8,X8,K8],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),i})();const J8={transformPanel:Pd("transformPanel",[$o("void => enter-dropdown",jo("120ms cubic-bezier(0, 0, 0.2, 1)",x6([Ni({opacity:0,transform:"scale(1, 0.8)"}),Ni({opacity:1,transform:"scale(1, 1)"})]))),$o("void => enter-dialog",jo("150ms cubic-bezier(0, 0, 0.2, 1)",x6([Ni({opacity:0,transform:"scale(0.7)"}),Ni({transform:"none",opacity:1})]))),$o("* => void",jo("100ms linear",Ni({opacity:0})))]),fadeInCalendar:Pd("fadeInCalendar",[Ja("void",Ni({opacity:0})),Ja("enter",Ni({opacity:1})),$o("void => *",jo("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Fme=0;const eV=new nt("mat-datepicker-scroll-strategy"),Rme={provide:eV,deps:[El],useFactory:function Pme(i){return()=>i.scrollStrategies.reposition()}},Lme=Cf(class{constructor(i){this._elementRef=i}});let Ome=(()=>{class i extends Lme{constructor(e,n,r,o,a,s){super(e),this._changeDetectorRef=n,this._globalModel=r,this._dateAdapter=o,this._rangeSelectionStrategy=a,this._subscriptions=new D,this._animationDone=new be,this._actionsPortal=null,this._closeButtonText=s.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const n=this._model.selection,r=e.value,o=n instanceof ca;if(o&&this._rangeSelectionStrategy){const a=this._rangeSelectionStrategy.selectionFinished(r,n,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,n))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(ui),U(Vd),U(ho),U(kC,8),U(nv))},i.\u0275cmp=Be({type:i,selectors:[["mat-datepicker-content"]],viewQuery:function(e,n){if(1&e&&un(iE,5),2&e){let r;pt(r=ft())&&(n._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,n){1&e&&h0("@transformPanel.done",function(){return n._animationDone.next()}),2&e&&(g0("@transformPanel",n._animationState),Zt("mat-datepicker-content-touch",n.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[st],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,n){if(1&e&&(u(0,"div",0)(1,"mat-calendar",1),N("yearSelected",function(o){return n.datepicker._selectYear(o)})("monthSelected",function(o){return n.datepicker._selectMonth(o)})("viewChanged",function(o){return n.datepicker._viewChanged(o)})("_userSelection",function(o){return n._handleUserSelection(o)}),c(),w(2,vme,0,0,"ng-template",2),u(3,"button",3),N("focus",function(){return n._closeButtonFocused=!0})("blur",function(){return n._closeButtonFocused=!1})("click",function(){return n.datepicker.close()}),m(4),c()()),2&e){let r;Zt("mat-datepicker-content-container-with-custom-header",n.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",n._actionsPortal),mt("aria-modal",!0)("aria-labelledby",null!==(r=n._dialogLabelId)&&void 0!==r?r:void 0),h(1),p("id",n.datepicker.id)("ngClass",n.datepicker.panelClass)("startAt",n.datepicker.startAt)("startView",n.datepicker.startView)("minDate",n.datepicker._getMinDate())("maxDate",n.datepicker._getMaxDate())("dateFilter",n.datepicker._getDateFilter())("headerComponent",n.datepicker.calendarHeaderComponent)("selected",n._getSelected())("dateClass",n.datepicker.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)("@fadeInCalendar","enter"),h(1),p("cdkPortalOutlet",n._actionsPortal),h(1),Zt("cdk-visually-hidden",!n._closeButtonFocused),p("color",n.color||"primary"),h(1),Re(n._closeButtonText)}},dependencies:[Zi,qS,Yle,Fd,iE],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[J8.transformPanel,J8.fadeInCalendar]},changeDetection:0}),i})(),tV=(()=>{class i{constructor(e,n,r,o,a,s,l){this._overlay=e,this._ngZone=n,this._viewContainerRef=r,this._dateAdapter=a,this._dir=s,this._model=l,this._inputStateChanges=D.EMPTY,this._document=Hi(Wt),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new Ae,this.monthSelected=new Ae,this.viewChanged=new Ae(!0),this.openedStream=new Ae,this.closedStream=new Ae,this._opened=!1,this.id="mat-datepicker-"+Fme++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new be,this._scrollStrategy=o}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=Ci(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const n=Ci(e);n!==this._disabled&&(this._disabled=n,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Ci(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function Cle(i,t=/\s+/){const e=[];if(null!=i){const n=Array.isArray(i)?i:`${i}`.split(t);for(const r of n){const o=`${r}`.trim();o&&e.push(o)}}return e}(e)}get opened(){return this._opened}set opened(e){Ci(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof P8&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=m_(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;const e=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,n=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:r,location:o}=this._componentRef;r._startExitAnimation(),r._animationDone.pipe(Xn(1)).subscribe(()=>{const a=this._document.activeElement;e&&(!a||a===this._document.activeElement||o.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,n=new y_(Ome,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new wC({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),r.keydownEvents().subscribe(o=>{const a=o.keyCode;(38===a||40===a||37===a||39===a||33===a||34===a)&&o.preventDefault()}),this._componentRef=r.attach(n),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(Xn(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const n="end"===this.xPosition?"end":"start",r="start"===n?"end":"start",o="above"===this.yPosition?"bottom":"top",a="top"===o?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:o},{originX:n,originY:o,overlayX:n,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:a}])}_getCloseStream(e){return jr(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Oi(n=>27===n.keyCode&&!Ad(n)||this.datepickerInput&&Ad(n,"altKey")&&38===n.keyCode)))}}return i.\u0275fac=function(e){return new(e||i)(U(El),U(Bt),U(Mr),U(eV),U(ho,8),U(Do,8),U(Vd))},i.\u0275dir=it({type:i,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[_i]}),i})(),Nme=(()=>{class i extends tV{}return i.\u0275fac=function(){let t;return function(n){return(t||(t=Pi(i)))(n||i)}}(),i.\u0275cmp=Be({type:i,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Pn([G8,{provide:tV,useExisting:i}]),st],decls:0,vars:0,template:function(e,n){},encapsulation:2,changeDetection:0}),i})();class TC{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let Bme=(()=>{class i{constructor(e,n,r){this._elementRef=e,this._dateAdapter=n,this._dateFormats=r,this.dateChange=new Ae,this.dateInput=new Ae,this.stateChanges=new be,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=D.EMPTY,this._localeSubscription=D.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=o=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value));return!a||this._matchesFilter(a)?null:{matDatepickerFilter:!0}},this._minValidator=o=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value)),s=this._getMinDate();return!s||!a||this._dateAdapter.compareDate(s,a)<=0?null:{matDatepickerMin:{min:s,actual:a}}},this._maxValidator=o=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value)),s=this._getMaxDate();return!s||!a||this._dateAdapter.compareDate(s,a)>=0?null:{matDatepickerMax:{max:s,actual:a}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const n=Ci(e),r=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(n=>{if(this._shouldHandleChangeEvent(n)){const r=this._getValueFromModel(n.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new TC(this,this._elementRef.nativeElement)),this.dateChange.emit(new TC(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function Vme(i,t){const e=Object.keys(i);for(let n of e){const{previousValue:r,currentValue:o}=i[n];if(!t.isDateInstance(r)||!t.isDateInstance(o))return!0;if(!t.sameDate(r,o))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const n=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);const o=!this._dateAdapter.sameDate(r,this.value);!r||o?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),n!==this._lastValueValid&&this._validatorOnChange()),o&&(this._assignValue(r),this.dateInput.emit(new TC(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new TC(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const n=this._getDateFilter();return!n||n(e)}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(ho,8),U(nh,8))},i.\u0275dir=it({type:i,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[_i]}),i})();const Hme={provide:sa,useExisting:Fn(()=>rE),multi:!0},Yme={provide:qr,useExisting:Fn(()=>rE),multi:!0};let rE=(()=>{class i extends Bme{constructor(e,n,r,o){super(e,n,r),this._formField=o,this._closedSubscription=D.EMPTY,this._validator=H3.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}get max(){return this._max}set max(e){const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const n=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(ho,8),U(nh,8),U(ZS,8))},i.\u0275dir=it({type:i,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,n){1&e&&N("input",function(o){return n._onInput(o.target.value)})("change",function(){return n._onChange()})("blur",function(){return n._onBlur()})("keydown",function(o){return n._onKeydown(o)}),2&e&&(ml("disabled",n.disabled),mt("aria-haspopup",n._datepicker?"dialog":null)("aria-owns",(null==n._datepicker?null:n._datepicker.opened)&&n._datepicker.id||null)("min",n.min?n._dateAdapter.toIso8601(n.min):null)("max",n.max?n._dateAdapter.toIso8601(n.max):null)("data-mat-calendar",n._datepicker?n._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Pn([Hme,Yme,{provide:$8,useExisting:i}]),st]}),i})(),Ume=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=it({type:i,selectors:[["","matDatepickerToggleIcon",""]]}),i})(),jme=(()=>{class i{constructor(e,n,r){this._intl=e,this._changeDetectorRef=n,this._stateChanges=D.EMPTY;const o=Number(r);this.tabIndex=o||0===o?o:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=Ci(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:At(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:At(),r=this.datepicker?jr(this.datepicker.openedStream,this.datepicker.closedStream):At();this._stateChanges.unsubscribe(),this._stateChanges=jr(this._intl.changes,e,n,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return i.\u0275fac=function(e){return new(e||i)(U(nv),U(ui),cl("tabindex"))},i.\u0275cmp=Be({type:i,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,n,r){if(1&e&&En(r,Ume,5),2&e){let o;pt(o=ft())&&(n._customIcon=o.first)}},viewQuery:function(e,n){if(1&e&&un(yme,5),2&e){let r;pt(r=ft())&&(n._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,n){1&e&&N("click",function(o){return n._open(o)}),2&e&&(mt("tabindex",null)("data-mat-calendar",n.datepicker?n.datepicker.id:null),Zt("mat-datepicker-toggle-active",n.datepicker&&n.datepicker.opened)("mat-accent",n.datepicker&&"accent"===n.datepicker.color)("mat-warn",n.datepicker&&"warn"===n.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[_i],ngContentSelectors:wme,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,n){1&e&&(ro(Cme),u(0,"button",0,1),w(2,bme,2,0,"svg",2),Ei(3),c()),2&e&&(p("disabled",n.disabled)("disableRipple",n.disableRipple),mt("aria-haspopup",n.datepicker?"dialog":null)("aria-label",n.ariaLabel||n._intl.openCalendarLabel)("tabindex",n.disabled?-1:n.tabIndex),h(2),p("ngIf",!n._customIcon))},dependencies:[ct,qS],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),i})(),nV=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[nv,Rme],imports:[ki,N8,MC,pS,bf,_r,ih]}),i})();function $me(i,t){1&i&&(u(0,"span",11),H(1,"span",12),c()),2&i&&mt("data-target",g().popupId)}class SC extends ln{constructor(){super()}currentValueChanged(){if(this.field.display){const t=new Date(this.field.display);this.field.value=Qn.toDateOnly(t)}else this.field.value=null}static \u0275fac=function(e){return new(e||SC)};static \u0275cmp=Be({type:SC,selectors:[["app-date-picker"]],features:[st],decls:11,vars:14,consts:[[3,"name","label","isRequired"],[2,"display","flex"],[2,"flex-grow","1"],[2,"width","180px !important"],["matInput","","placeholder","select date",2,"width","100px !important",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],[2,"z-index","12000 !important"],["datePicker",""],["data-toggle","modal",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["data-toggle","modal"],[1,"fa","fa-question","action",2,"margin-left","10pt"]],template:function(e,n){if(1&e&&(H(0,"app-form-field-label",0),u(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"input",4),N("ngModelChange",function(o){return n.field.display=o})("ngModelChange",function(){return n.currentValueChanged()}),c(),H(5,"mat-datepicker-toggle",5)(6,"mat-datepicker",6,7),c()(),w(8,$me,2,1,"span",8),c(),H(9,"app-form-field-validation-section",9)(10,"app-form-field-help",10)),2&e){const r=No(7);p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(4),p("matDatepicker",r)("ngModel",n.field.display),h(1),p("for",r),h(3),p("ngIf",n.field.help),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field)}},dependencies:[Bn,vn,pn,ct,Nme,rE,jme,tme,Qge,ame,Wn,qn,Gn],styles:[".mat-focused .mat-form-field-label{color:var(--color-fg)!important} .mat-form-field-underline{background-color:var(--color-fg)!important} .mat-form-field-ripple{background-color:var(--color-fg)!important} .mat-form-field-label{color:var(--color-fg)!important}mat-datepicker-toggle[_ngcontent-%COMP%]{color:var(--color-fg)!important}"]})}class fh{nuviotClient;usersService;_task$=new Gt(null);constructor(t,e){this.nuviotClient=t,this.usersService=e}postAttachment(t){var e=this;return z(function*(){yield e.nuviotClient.post("/api/pm/attachment",t)})()}getProjects(){return this.nuviotClient.request("/api/projects")}getActiveProjects(t=!0){return this.nuviotClient.request("/api/projects/active",t)}newModule(){return this.nuviotClient.request("/api/project/module/factory")}newTaskRequest(t){return this.nuviotClient.request(`/api/pm/task/project/${t}/task/quickcreate/factory`)}createProject(){return this.nuviotClient.request("/api/project/factory")}createProjectFromTemplate(t){return this.nuviotClient.postWithResponse("/api/appwizard",t)}getProject(t){return this.nuviotClient.request(`/api/project/${t}`)}addProject(t){return this.nuviotClient.insert("/api/project",t)}updateProject(t){return this.nuviotClient.update("/api/project",t)}newProjectTeamMember(){return this.nuviotClient.request("/api/pm/teammember/factory")}deleteProject(t){return this.nuviotClient.delete(`/api/project/${t}`)}getSprints(t){return this.nuviotClient.request(`/api/project/${t}/sprints`)}writeTaskAllocations(t,e){this.nuviotClient.request(`/api/pm/tasks/project/${t}/sprint/current/rollup/${e}`)}GetTaskAllocation(t){return this.nuviotClient.request(`/api/pm/tasks/project/${t}/sprint/current/allocationhistory`)}newSprint(t){return this.nuviotClient.request(`/api/project/${t}/sprint/factory`)}getSprint(t){return this.nuviotClient.request(`/api/project/sprint/${t}`)}saveSprint(t){return t.isEditing?this.updateSprint(t.model):this.insertSprint(t.model)}insertSprint(t){return this.nuviotClient.insert("/api/project/sprint",t)}updateSprint(t){return this.nuviotClient.update("/api/project/sprint",t)}getCustomKanbanViews(t=!1){return this.nuviotClient.getListResponse(t?"/api/pm/kanbanviews?addalloption=true":"/api/pm/kanbanviews")}getCustomKanbanView(t){return this.nuviotClient.request(`/api/pm/kanbanview/${t}`)}createCustomKanbanView(){return this.nuviotClient.request("/api/pm/kanbanview/factory")}addCustomKanbanView(t){return this.nuviotClient.insert("/api/pm/kanbanview",t)}updateCustomKanbanView(t){return this.nuviotClient.update("/api/pm/kanbanview",t)}deleteCustomKanbanView(t){return this.nuviotClient.delete(`/api/pm/kanbanview/${t}`)}getTasksForKanbanView(t){return this.nuviotClient.getListResponse(`/api/pm/tasks/view/${t}`)}getTasks(t,e="all"){return this.nuviotClient.getListResponse("all"===e?`/api/pm/tasks/project/${t}`:`/api/pm/tasks/project/${t}/${e}`)}updateTaskStatus(t,e){return this.nuviotClient.request(`/api/pm/task/${t}/status/${e}`)}updateTaskStatusAndAssignedTo(t,e){return this.nuviotClient.updateWithResponse(`/api/pm/task/${t}/boardupdate`,e)}getTasksAssignedToUser(t,e){return this.nuviotClient.getListResponse("all"===e?`/api/pm/tasks/assignedto/${t}`:`/api/pm/tasks/assignedto/${t}/${e}`)}getTasksForSprint(t,e,n){return this.nuviotClient.getListResponse("all"===n?`/api/pm/tasks/sprint/${e}`:`/api/pm/tasks/sprint/${e}/${n}`)}getTasksForProjectForCurrentSprint(t){return this.nuviotClient.getListResponse(`/api/pm/tasks/project/${t}/sprint/current`)}newTask(t=null){return this.nuviotClient.request(t?`/api/pm/task/project/${t}/factory`:"/api/pm/task/factory")}newTaskQuickCreate(t){return this.nuviotClient.request(`/api/pm/task/project/${t}/task/quickcreate/factory`)}createTask(t){return this.nuviotClient.postWithResponse("/api/pm/task/add",t)}workTaskToSummary(t){}getTaskTemplates(){return this.nuviotClient.getListResponse("/api/pm/task/templates")}newTaskTemplate(){return this.nuviotClient.getFormResponse("/api/pm/task/template/factory")}getTaskTemplate(t){return this.nuviotClient.getFormResponse(`/api/pm/task/template/${t}`)}deleteTaskTemplate(t){return this.nuviotClient.delete(`/api/pm/task/template/${t}`)}createTaskTemplate(){return this.nuviotClient.getFormResponse("/api/pm/task/template/factory")}addTaskTemplate(t){return this.nuviotClient.post("/api/pm/task/template",t)}updateTaskTemplate(t){return this.nuviotClient.update("/api/pm/task/template",t)}saveTaskTemplate(t){return t.isEditing?this.nuviotClient.update("/api/pm/task/template",t.model):this.nuviotClient.post("/api/pm/task/template",t.model)}getProjectTemplates(){return this.nuviotClient.getListResponse("/api/project/templates")}getProjectTemplate(t){return this.nuviotClient.getFormResponse(`/api/project/template/${t}`)}deleteProjectTemplate(t){return this.nuviotClient.delete(`/api/project/template/${t}`)}createAppWizardRequestTemplate(){return this.nuviotClient.getFormResponse("/api/appwizard/projecttemplate/request/factory")}createProjectTemplate(){return this.nuviotClient.getFormResponse("/api/project/template/factory")}addProjectTemplate(t){return this.nuviotClient.post("/api/project/template",t)}updateProjectTemplate(t){return this.nuviotClient.update("/api/project/template",t)}saveProjectTemplate(t){return t.isEditing?this.updateProjectTemplate(t.model):this.addProjectTemplate(t.model)}getMeetings(){return this.nuviotClient.getListResponse("/api/meetings")}cloneMeeting(t){return this.nuviotClient.getFormResponse(`/api/meeting/${t}/clone`)}createMeeting(){return this.nuviotClient.getFormResponse("/api/meeting/factory")}getMeeting(t){return this.nuviotClient.getFormResponse(`/api/meeting/${t}`)}deleteMeeting(t){return this.nuviotClient.delete(`/api/meeting/${t}`)}addMeeting(t){return this.nuviotClient.post("/api/meeting",t)}updateMeeting(t){return this.nuviotClient.update("/api/meeting",t)}saveMeeting(t){return t.isEditing?this.updateMeeting(t.model):this.addMeeting(t.model)}newTaskForSprint(t,e){return this.nuviotClient.request(`/api/pm/task/project/${t}/sprint/${e}/factory`)}insertTask(t){return this.nuviotClient.insert("/api/pm/task",t)}getTask(t){var e=this;return z(function*(){let n=yield e.nuviotClient.request(`/api/pm/task/${t}`);return e.setTask(n.model),n})()}updateTask(t){return this.nuviotClient.updateWithResponse("/api/pm/task",t)}updateTaskFromExternalItem(t){return this.nuviotClient.updateWithResponse("/api/pm/task/externalupdate",t)}updateTaskDetail(t){return this.nuviotClient.update("/api/pm/task/detail",t)}updateTaskForKnownActivity(t,e,n){return this.nuviotClient.update(`/api/pm/task/${e}/${n}`,t)}requestUpdate(t,e,n){return this.nuviotClient.postWithResponse(`/api/pm/task/${t}/teammember/${e}/ping`,n)}updateNameDescription(t,e){return this.nuviotClient.updateWithResponse(`/api/pm/task/${t}/namedesciption`,e)}deleteTask(t){return this.nuviotClient.delete(`/api/pm/task/${t}`)}newSubTask(){return this.nuviotClient.request("/api/pm/subtask/factory")}newSubTaskQuickCreate(){return this.nuviotClient.request("/api/pm/subtask/quickcreate/factory")}editSubTask(t){var e=this;return z(function*(){let n=yield e.nuviotClient.request("/api/pm/subtask/factory");return n.model=t,n.isEditing=!0,n})()}newTaskTemplateSubTask(){return this.nuviotClient.request("/api/pm/task/template/subtask/factory")}editTaskTemplateSubTask(t){var e=this;return z(function*(){let n=yield e.nuviotClient.request("/api/pm/task/template/subtask/factory");return n.model=t,n.isEditing=!0,n})()}createHelpResource(){return this.nuviotClient.request("/api/pm/helpresource/factory")}editHelpResource(t){var e=this;return z(function*(){var n=yield e.nuviotClient.request("/api/pm/helpresource/factory");return n.model=t,n.isEditing=!0,n})()}newExpectedOutcome(){return this.nuviotClient.request("/api/pm/expectedoutcome/factory")}editExpectedOutcome(t){var e=this;return z(function*(){let n=yield e.nuviotClient.request("/api/pm/expectedoutcome/factory");return n.isEditing=!0,n.model=t,n})()}insertReportSettings(t){return this.nuviotClient.insert("/api/pm/tasks/report/settings",t)}getReportSettingForOrg(){return this.nuviotClient.getListResponse("/api/pm/tasks/report/settings")}createNewReportSettings(){return this.nuviotClient.request("/api/pm/tasks/report/settings/factory")}getReportSettings(t){return this.nuviotClient.request(`/api/pm/tasks/report/settings/${t}`)}updateReportSettings(t){return this.nuviotClient.update("/api/pm/tasks/report/settings",t)}getTasksByStatus(t){return this.nuviotClient.getListResponse(`/api/pm/tasks/${t}`)}getTasksForProjectByStatus(t,e){return this.nuviotClient.getListResponse(`/api/pm/tasks/project/${t}/${e}`)}getActiveTasks(){return this.nuviotClient.getListResponse("/api/pm/tasks/active")}getActiveTasksForProject(t){return this.nuviotClient.getListResponse(`/api/pm/tasks/active/project/${t}`)}createDiscussion(){return this.nuviotClient.request("/api/discussion/factory")}createDiscussionResponse(){return this.nuviotClient.request("/api/discussion/response/factory")}createToDo(){return this.nuviotClient.request("/api/pm/todo/factory")}toDoQuickCreate(t){return this.nuviotClient.postWithResponse("/api/pm/todo/quickcreate",t,!1)}createToDoForMe(){return this.nuviotClient.request("/api/pm/todo/factory/forme")}createTaskForToDo(t){return this.nuviotClient.request(`/api/pm/todo/${t}/createtask`)}getToDo(t){return this.nuviotClient.request(`/api/pm/todo/${t}`)}closeToDo(t){return this.nuviotClient.request(`/api/pm/todo/${t}/complete`)}insertToDo(t){return this.nuviotClient.insert("/api/pm/todo",t)}updateToDo(t){return this.nuviotClient.update("/api/pm/todo",t)}deleteToDo(t){return this.nuviotClient.delete(`/api/pm/todo/${t}`)}getAllToDos(){return this.nuviotClient.getListResponse("/api/pm/todos")}getAllOpenToDos(){return this.nuviotClient.getListResponse("/api/pm/todos/open")}getAllBackLoggedToDos(){return this.nuviotClient.getListResponse("/api/pm/todos/backlogged")}getCancelledToDos(){return this.nuviotClient.getListResponse("/api/pm/todos/cancelled")}getOpenToDosAssignedTo(t,e=!0){return this.nuviotClient.getListResponse(`/api/pm/todos/assignedto/${t}/open`,void 0,e)}getAllOpenTodosForCurrentUser(){return this.nuviotClient.getListResponse("/api/pm/todos/my/all/open")}getOpenToDosAssignedBy(t){return this.nuviotClient.getListResponse(`/api/pm/todos/assignedby/${t}/open`)}getAllToDosAssignedTo(t){return this.nuviotClient.getListResponse(`/api/pm/todos/assignedto/${t}`)}getAllToDosAssignedBy(t){return this.nuviotClient.getListResponse(`/api/pm/todos/assignedby/${t}`)}getBackLoggedToDosAssignedTo(t){return this.nuviotClient.getListResponse(`/api/pm/todos/assignedto/${t}/backlogged`)}getBackloggedToDosAssignedBy(t){return this.nuviotClient.getListResponse(`/api/pm/todos/assignedby/${t}/backlogged`)}addIssue(t,e){return this.nuviotClient.postWithResponse(`/api/pm/task/${t}/issue`,e)}updateIssue(t,e){return this.nuviotClient.updateWithResponse(`/api/pm/task/${t}/issue`,e)}saveIssue(t,e){return e.isEditing?this.updateIssue(t,e.model):this.addIssue(t,e.model)}removeIssue(t,e){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/issue/${e}`)}addTeamMember(t,e){return this.nuviotClient.postWithResponse(`/api/pm/task/${t}/teamMember`,e)}updateTeamMember(t,e){return this.nuviotClient.updateWithResponse(`/api/pm/task/${t}/teamMember`,e)}saveTeamMember(t,e){return e.isEditing?this.updateTeamMember(t,e.model):this.addTeamMember(t,e.model)}editTeamMember(t){var e=this;return z(function*(){let n=yield e.nuviotClient.request("/api/pm/teammember/factory");return n.model=t,n.isEditing=!0,n})()}removeTeamMember(t,e){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/teammember/${e}`)}addSubTask(t,e){return this.nuviotClient.postWithResponse(`/api/pm/task/${t}/subtask`,e)}updateSubTask(t,e){return this.nuviotClient.updateWithResponse(`/api/pm/task/${t}/subtask`,e)}removeSubTask(t,e){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/subtask/${e}`)}applyTemplate(t,e){return this.nuviotClient.request(`/api/pm/task/${t}/template/${e}/apply`)}moveSubTaskUp(t,e){return this.nuviotClient.request(`/api/pm/task/${t}/subtask/${e}/moveup`)}moveSubTaskDown(t,e){return this.nuviotClient.request(`/api/pm/task/${t}/subtask/${e}/movedown`)}addDiscussion(t,e){return this.nuviotClient.postWithResponse(`/api/pm/task/${t}/note`,e)}updateDiscussion(t,e){return this.nuviotClient.updateWithResponse(`/api/pm/task/${t}/note`,e)}removeDiscussion(t,e){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/note/${e}`)}addRisk(t,e){return this.nuviotClient.postWithResponse(`/api/pm/task/${t}/risk`,e)}updateRisk(t,e){return this.nuviotClient.updateWithResponse(`/api/pm/task/${t}/risk`,e)}saveRisk(t,e){return e.isEditing?this.updateRisk(t,e.model):this.addRisk(t,e.model)}createRisk(){return this.nuviotClient.getFormResponse("/api/pm/task/risk/factory")}editRisk(t){var e=this;return z(function*(){var n=yield e.nuviotClient.getFormResponse("/api/pm/task/risk/factory");return n.model=t,n.isEditing=!0,n})()}removeRisk(t,e){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/risk/${e}`)}addLabel(t,e){return this.nuviotClient.postWithResponse(`/api/pm/task/${t}/label`,e)}removeLabel(t,e){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/label/${e}`)}addHelpResources(t,e){return this.nuviotClient.postWithResponse(`/api/pm/task/${t}/helpresource`,e)}updateHelpResource(t,e){return this.nuviotClient.updateWithResponse(`/api/pm/task/${t}/helpresource`,e)}removeResource(t,e){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/helpresource/${e}`)}addSubTaskHelpResources(t,e,n){return this.nuviotClient.postWithResponse(`/api/pm/task/${t}/subtask/${e}/helpresource`,n)}updateSubTaskHelpResource(t,e,n){return this.nuviotClient.updateWithResponse(`/api/pm/task/${t}/subtask/${e}/helpresource`,n)}removeSubTaskResource(t,e,n){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/subtask/${e}/helpresource/${n}`)}addExpectedOutcome(t,e){return this.nuviotClient.postWithResponse(`/api/pm/task/${t}/expectedoutcome`,e)}updateExpectedOutcome(t,e){return this.nuviotClient.updateWithResponse(`/api/pm/task/${t}/expectedoutcome`,e)}removeExpectedOutcome(t,e){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/expectedoutcome/${e}`)}addVerificationRun(t,e,n){return this.nuviotClient.postWithResponse(`/api/pm/task/${t}/expectedoutcome/${e}/verificationrun`,n)}updateVerificationRun(t,e,n){return this.nuviotClient.updateWithResponse(`/api/pm/task/${t}/expectedoutcome/${e}/verificationrun`,n)}updateVerificationSteps(t,e,n){return this.nuviotClient.updateWithResponse(`/api/pm/task/${t}/expectedoutcome/${e}/verificationsteps`,n)}deleteVerificationRun(t,e,n){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/expectedoutcome/${e}/verificationrun/${n}`)}updateAdditionalInformation(t,e){return this.nuviotClient.updateWithResponse(`/api/pm/task/${t}/additionalinformation`,{contents:e})}flagTask(t,e,n){return this.nuviotClient.post("/api/pm/task/flag",{workTaskId:t,reason:e,notes:n})}getFlaggedTasks(){return this.nuviotClient.getListResponse("/api/pm/task/flagged")}getLateTasks(){return this.nuviotClient.getListResponse("/api/pm/task/late")}getTasksWithOpenIssues(){return this.nuviotClient.getListResponse("/api/pm/tasks/openissue")}getTasksWithRisks(){return this.nuviotClient.getListResponse("/api/pm/tasks/openrisks")}getBlockedTasks(){return this.nuviotClient.getListResponse("/api/pm/tasks/blocked")}updateDueDate(t,e){return this.nuviotClient.request(`/api/pm/task/${t}/duedate/${e}`)}updateFlagTask(t,e,n,r,o){return this.nuviotClient.updateWithResponse("/api/pm/task/flag",{workTaskId:t,flaggedTaskId:e,reason:r,notes:o,isOpen:n})}removeAttachmentFromTask(t,e){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/attachment/${e}`)}removeAttachment(t,e,n,r){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/${e}/${n}/attachment/${r}`)}createIssueNote(){return this.nuviotClient.getFormResponse("/api/pm/task/issue/note/factory")}createIssue(){return this.nuviotClient.getFormResponse("/api/pm/task/issue/factory")}addIssueNote(t,e,n){return this.nuviotClient.postWithResponse(`/api/pm/task/${t}/issue/${e}/note`,n)}removeIssueNote(t,e,n){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/issue/${e}/note/${n}`)}addUpstreamTask(t,e){return this.nuviotClient.request(`/api/pm/task/${t}/upstream/${e}`)}addDownstreamTask(t,e){return this.nuviotClient.request(`/api/pm/task/${t}/downstream/${e}`)}addRelatedTask(t,e){return this.nuviotClient.request(`/api/pm/task/${t}/related/${e}`)}removeUpstreamTask(t,e){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/upstream/${e}`)}removeDownstreamTask(t,e){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/downstream/${e}`)}removeRelatedTask(t,e){return this.nuviotClient.deleteWithResponse(`/api/pm/task/${t}/related/${e}`)}searchTasks(t,e){return this.nuviotClient.postForListResponse("/api/pm/task/search",{query:e,projectId:t})}searchSWOTItems(t,e){return this.nuviotClient.postForListResponse("/api/swotitem/search",{query:e,productPortfolioId:t})}deleteStatusConfigurations(t){var e=this;return z(function*(){return yield e.nuviotClient.delete(`/api/pm/statusconfiguration/${t}`)})()}getStatusConfigurations(){var t=this;return z(function*(){return yield t.nuviotClient.getListResponse("/api/pm/statusconfigurations")})()}getFullStatusConfigurations(){var t=this;return z(function*(){return yield t.nuviotClient.getListResponse("/api/pm/statusconfigurations/full")})()}getStatusConfiguration(t){var e=this;return z(function*(){return yield e.nuviotClient.getFormResponse(`/api/pm/statusconfiguration/${t}`)})()}addStatusConfigurations(t){var e=this;return z(function*(){return yield e.nuviotClient.insert("/api/pm/statusconfiguration",t)})()}updateStatusConfigurations(t){var e=this;return z(function*(){return yield e.nuviotClient.update("/api/pm/statusconfiguration",t)})()}createStatusConfiguration(){return this.nuviotClient.request("/api/pm/statusconfiguration/factory")}createStatusOption(){return this.nuviotClient.request("/api/pm/statusconfiguration/option/factory")}editStatusOption(t){var e=this;return z(function*(){var n=yield e.nuviotClient.request("/api/pm/statusconfiguration/option/factory");return n.model=t,n.isEditing=!0,n})()}createStatusTransition(t){var e=this;return z(function*(){let n=yield e.nuviotClient.request("/api/pm/statusconfiguration/statustransition/factory");return n.view.status.options=t.map(r=>({id:r.id,key:r.key,label:r.name,text:r.name})),n})()}editStatusTransition(t,e){var n=this;return z(function*(){var r=yield n.nuviotClient.request("/api/pm/statusconfiguration/statustransition/factory");return r.model=t,r.isEditing=!0,r.view.status.options=e.map(o=>({id:o.id,key:o.key,label:o.name,text:o.name})),r})()}deleteWorkTaskType(t){var e=this;return z(function*(){return yield e.nuviotClient.delete(`/api/pm/statusconfiguration/${t}`)})()}getWorkTaskTypes(){var t=this;return z(function*(){return yield t.nuviotClient.getListResponse("/api/pm/worktasktypes")})()}getWorkTaskType(t){var e=this;return z(function*(){return yield e.nuviotClient.getFormResponse(`/api/pm/worktasktype/${t}`)})()}addWorkTaskType(t){var e=this;return z(function*(){return yield e.nuviotClient.insert("/api/pm/worktasktype",t)})()}updateWorkTaskType(t){var e=this;return z(function*(){return yield e.nuviotClient.update("/api/pm/worktasktype",t)})()}saveWorkTaskType(t){var e=this;return z(function*(){return t.isEditing?yield e.updateWorkTaskType(t.model):yield e.addWorkTaskType(t.model)})()}createWorkTaskType(){return this.nuviotClient.request("/api/pm/worktasktype/factory")}convertToSummary(t){const e={id:t.id,projectId:t.project.id,projectName:t.project.text,key:t.key,canEdit:!0,isBlocked:!1,isFlagged:!1,organizationName:t.ownerOrganization.text,name:t.name,condition:t.condition.text,hasOpenIssues:!1,taskCode:t.taskCode,status:t.status.text,statusKey:t.status.key,statusId:t.status.key,sprint:"",sprintId:"",moduleName:"",moduleId:"",externalStatus:"",externalStatusId:"",dueDate:t.dueDate,expectedCloseDate:"",description:"",assignedToUser:"",assignedToUserId:"",primaryContributor:"",primaryContributorId:"",qaResource:"",qaResourceId:"",resolution:"",resolutionId:"",hoursUsed:t.hoursUsed,hoursEstimate:t.hoursEstimate,lastUpdatedDate:t.lastUpdatedDate,complexity:t.complexity.text,scopeOfEffort:t.scopeOfEffort.text,points:0,externalTaskCode:t.externalTaskCode,externalTaskLink:t.externalTaskLink,labels:t.labels,isActive:!0,rankedOrder:t.rankedOrder};return t.sprint&&(e.sprintId=t.sprint.id,e.sprint=t.sprint.text),t.externalStatus&&(e.externalStatus=t.externalStatus.text,e.externalStatusId=t.externalStatus.id),t.assignedByUser&&(e.assignedToUser=t.assignedToUser.text,e.assignedToUserId=t.assignedToUser.id),t.primaryContributorUser&&(e.primaryContributorId=t.primaryContributorUser.id,e.primaryContributor=t.primaryContributorUser.text),t.qaResource&&(e.qaResource=t.qaResource.text,e.qaResource=t.qaResource.id),e}getUseCases(){return this.nuviotClient.getListResponse("/api/usecases")}addUseCase(t){return this.nuviotClient.insert("/api/usecase",t)}updateUseCase(t){return this.nuviotClient.update("/api/usecase",t)}deleteUseCase(t){return this.nuviotClient.delete(`/api/usecase/${t}`)}getUseCase(t){return this.nuviotClient.getFormResponse(`/api/usecase/${t}`)}createUseCase(){return this.nuviotClient.getFormResponse("/api/usecase/factory")}saveUseCase(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateUseCase(t.model);let n=yield e.addUseCase(t.model);return t.isEditing=!0,n})()}createCompetitor(){return this.nuviotClient.getFormResponse("/api/competitor/factory")}getCompetitor(t){return this.nuviotClient.getFormResponse(`/api/competitor/${t}`)}getCompetitors(){return this.nuviotClient.getListResponse("/api/competitors")}addCompetitor(t){return this.nuviotClient.insert("/api/competitor",t)}updateCompetitor(t){return this.nuviotClient.update("/api/competitor",t)}deleteCompetitor(t){return this.nuviotClient.delete(`/api/competitor/${t}`)}saveCompetitor(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateCompetitor(t.model);{let n=yield e.addCompetitor(t.model);return n.successful&&(t.isEditing=!0),n}})()}createSystemTaskType(){return this.nuviotClient.getFormResponse("/api/systemtasktype/factory")}getSystemTaskType(t){return this.nuviotClient.getFormResponse(`/api/systemtasktype/${t}`)}getSystemTaskTypes(){return this.nuviotClient.getListResponse("/api/systemtasktypes")}addSystemTaskType(t){return this.nuviotClient.insert("/api/systemtasktype",t)}updateSystemTaskType(t){return this.nuviotClient.update("/api/systemtasktype",t)}deleteSystemTaskType(t){return this.nuviotClient.delete(`/api/systemtasktype/${t}`)}saveSystemTaskType(t){var e=this;return z(function*(){if(t.isEditing)return yield e.updateSystemTaskType(t.model);{let n=yield e.addSystemTaskType(t.model);return n.successful&&(t.isEditing=!0),n}})()}getALMIntegrations(){return this.nuviotClient.getListResponse("/api/alm/integrations")}createALMIntegration(){return this.nuviotClient.getFormResponse("/api/alm/integration/factory")}getALMIntegration(t){return this.nuviotClient.getFormResponse(`/api/alm/integration/${t}`)}deleteALMIntegration(t){return this.nuviotClient.delete(`/api/alm/integration/${t}`)}insertALMIntegration(t){return this.nuviotClient.insert("/api/alm/integration",t)}updateALMIntegration(t){return this.nuviotClient.update("/api/alm/integration",t)}getExternalItem(t){return this.nuviotClient.request(`/api/alm/external/workitem/${t}`)}getALMClientConfiguration(t){return this.nuviotClient.request(`/api/alm/integration/${t}/auth`)}getImportedWorkTasks(t,e=""){return e?this.nuviotClient.getListResponse(`/api/alm/devops/workitems/${t}`,{nextRowKey:e}):this.nuviotClient.getListResponse(`/api/alm/devops/workitems/${t}`)}archiveList(t){return this.nuviotClient.post("/api/alm/external/workitem/archive",t)}archiveExternalItem(t){return this.nuviotClient.get(`/api/alm/external/workitem/${t}/archive`)}getWorKTaskByExternalId(t){var e=this;return z(function*(){let n=yield e.nuviotClient.request(`/api/pm/task/externalid/${t}`);return e.setTask(n),n})()}createProjectMileStoneAsync(t){return this.nuviotClient.getFormResponse(`/api/project/${t}/milestone/factory`)}createMileStoneAsync(){return this.nuviotClient.getFormResponse("/api/milestone/factory")}createMileStoneGoalAsync(){return this.nuviotClient.getFormResponse("/api/milestone/goal/factory")}getMileStoneAsync(t){return this.nuviotClient.getFormResponse(`/api/milestone/${t}`)}getMileStonesForOrgAsync(t=!0){return this.nuviotClient.getListResponse("/api/milestones",void 0,t)}getOpenMileStonesForOrgAsync(t=!0){return this.nuviotClient.getListResponse("/api/milestones/open",void 0,t)}getActiveMileStonesForOrgAsync(t=!0){return this.nuviotClient.getListResponse("/api/milestones/active",void 0,t)}getMileStonesForProjectAsync(t){return this.nuviotClient.request(`/api/project/${t}/milestones`)}addMileStoneAsync(t){return this.nuviotClient.postWithResponse("/api/milestone",t)}updateMileStoneAsync(t){return this.nuviotClient.updateWithResponse("/api/milestone",t)}createSWOTItemAsync(){return this.nuviotClient.getFormResponse("/api/swotitem/factory")}getSWOTItemAsync(t){return this.nuviotClient.getFormResponse(`/api/swotitem/${t}`)}getSWOTItemsForOrgAsync(){return this.nuviotClient.getListResponse("/api/swotitems")}addSWOTItemAsync(t){return this.nuviotClient.postWithResponse("/api/swotitem",t)}deleteSWOTItemAsync(t){return this.nuviotClient.delete(`/api/swotitem/${t}`)}updateSWOTItemAsync(t){return this.nuviotClient.updateWithResponse("/api/swotitem",t)}getProductPortfolios(){return this.nuviotClient.getListResponse("/api/product/portfolios")}createProductPortfolio(){return this.nuviotClient.getFormResponse("/api/product/portfolio/factory")}getProductPortfolio(t){return this.nuviotClient.getFormResponse(`/api/product/portfolio/${t}`)}addProductPortfolioAsync(t){return this.nuviotClient.postWithResponse("/api/product/portfolio",t)}deleteProductPortfolioAsync(t){return this.nuviotClient.delete(`/api/product/portfolio/${t}`)}updateProductPortfolioAsync(t){return this.nuviotClient.updateWithResponse("/api/product/portfolio",t)}_currentTask;getCurrentTask(){return this._currentTask}setTask(t){this._currentTask=t,this._task$.next(t)}onTask(){return this._task$.asObservable()}refreshStatus(t){const e=[],n=t.model.statusConfigurationType.value.options.find(r=>r.key===t.model.status.key);if(!n)throw new Error(`Could not find current status for task ${t.model.status.value.key} - ${t.model.statusConfigurationType.text}`);if(e.push({id:n.id,key:n.key,name:n.name,label:n.name,text:n.name}),n.validTransitions)for(const r of n.validTransitions)e.push({id:r.status.id,key:r.status.key,name:r.name,label:r.name,text:r.name});if(t.view.status.options=e,t.model.externalStatusConfigurationType){t.view.externalStatus.isVisible=!0;const r=[];let o=t.model.externalStatusConfigurationType.value.options.find(a=>a.key===t.model.externalStatus.key);for(const a of o.validTransitions)r.push({key:a.key,id:a.id,name:a.name,label:a.name,text:a.name});t.view.externalStatus.options=r}else t.view.externalStatus.isVisible=!1,console.log(t.model.externalStatusConfigurationType,t.view.externalStatus)}createSystemTask(t,e="https://www.nuviot.com"){return this.nuviotClient.request(`${e}/systemtask/${t}/factory?anonymous`)}postSystemTask(t,e="https://www.nuviot.com"){return this.nuviotClient.postWithResponse(`${e}/systemtask?anonymous`,t)}getEditorOptions(){var e,t=this;return{plugins:"lists link image table code help wordcount fullscreen autoresize charmap emoticons media mergetags mentions",toolbar:"fullscreen undo redo | blocks | bold italic underline strikethrough | link image media table mergetags | align lineheight | tinycomments | checklist numlist bullist indent outdent | emoticons charmap | removeforma | mentions",mergetags_suffix:"]",mergetags_prefix:"[",min_height:250,menubar:"file edit view inert format tools table help custom",statusbar:!1,menu:{custom:{title:"Insert NuvIoT Objects",items:"sharedContent faqItem glossaryItem landingPageItem downloadableContentItem siteContentItem"}},setup:e=>{},branding:!1,content_style:".mymention { color: #13589D; font-weight: bold; }",mentions_item_type:"profile",mentions_item_fields:["name","avatar","title"],mentions_selector:".mymention",mentions_fetch:(e=z(function*(n,r){const o=yield t.usersService.getCachedUserSummary();console.log(o),r(o.filter(s=>s.name.toLowerCase().includes(n.term.toLowerCase())))}),function(r,o){return e.apply(this,arguments)}),mentions_menu_complete:(e,n)=>{const r=e.getDoc().createElement("span");return r.className="mymention",r.setAttribute("data-mention-id",n.id),r.appendChild(e.getDoc().createTextNode("@"+n.name)),r},mentions_select:function(){var e=z(function*(n,r){var o=n.getAttribute("data-mention-id");let s=(yield t.usersService.getCachedUserSummary()).find(d=>d.id===o);r(t.getMentionCardHtml(s))});return function(r,o){return e.apply(this,arguments)}}(),mentions_menu_hover:function(){var e=z(function*(n,r){let a=(yield t.usersService.getCachedUserSummary()).find(l=>l.id===n.id);r(t.getMentionCardHtml(a))});return function(r,o){return e.apply(this,arguments)}}()}}getMentionCardHtml(t){var e=document.createElement("div");return e.innerHTML='

'+t.name+"

"+t.description+"

",e}getReleases(t){return this.nuviotClient.getListResponse(`/api/project/${t}/releases`)}getDeployments(t){return this.nuviotClient.getListResponse(`/api/project/${t}/deployments`)}static \u0275fac=function(e){return new(e||fh)(Ee(An),Ee($n))};static \u0275prov=$e({token:fh,factory:fh.\u0275fac,providedIn:"root"})}class rv{nuviotClient;_templates;_template;_tickets;_ticket;_boards;_board;_partsKit;_templates$=new Gt;_template$=new Gt;_board$=new Gt;_boards$=new Gt;_tickets$=new Gt;_ticket$=new Gt;_partsKit$=new Gt;constructor(t){this.nuviotClient=t}loadTickets(t=null){return new Promise((n,r)=>{this.nuviotClient.getListResponse("/api/fslite/tickets",{pageSize:50,nextRowKey:t}).then(o=>{this.setTickets(o.model),n(o)}).catch(o=>r(o))})}loadTicketsForBoard(t,e=null){return new Promise((r,o)=>{this.nuviotClient.getListResponse(`/api/fslite/${t}/tickets`,{pageSize:50,nextRowKey:e}).then(a=>{this.setTickets(a.model),r(a)}).catch(a=>o(a))})}loadTicketsForDevice(t,e=null){return new Promise((r,o)=>{this.nuviotClient.getListResponse(`/api/fslite/ticket/device/${t}`,{pageSize:50,nextRowKey:e}).then(a=>{this.setTickets(a.model),r(a)}).catch(a=>o(a))})}loadTicketsWithFilter(t){return new Promise((n,r)=>{this.nuviotClient.getListResponse("/api/fslite/tickets").then(o=>{this.setTickets(o.model),n(o)}).catch(o=>r(o))})}loadTemplate(t){return new Promise((n,r)=>{this.nuviotClient.request(`/api/fslite/tickets/template/${t}/detail`).then(o=>{this.setTemplate(o),n(o)}).catch(o=>r(o))})}loadBoards(){return new Promise((e,n)=>{this.nuviotClient.getListResponse("/api/fslite/serviceboards").then(r=>{this.setTemplates(r.model),e(r.model)}).catch(r=>n(r))})}loadTemplates(){return new Promise((e,n)=>{this.nuviotClient.getListResponse("/api/fslite/tickets/templates").then(r=>{this.setTemplates(r.model),e(r.model)}).catch(r=>n(r))})}createTicket(t){return new Promise((n,r)=>{this.nuviotClient.insert("/api/fslite/ticket/create",t).then(o=>{const a=o;this.setTicket(a.result),n(a.result)}).catch(o=>r(o))})}addTicketNote(t,e){return new Promise((r,o)=>{this.nuviotClient.postWithResponse(`/api/fslite/ticket/${t}/note`,e).then(a=>{a.successful?r(a.result):o("could not add ticket note")}).catch(a=>o(a))})}changeTicketStatus(t,e){return new Promise((r,o)=>{this.nuviotClient.postWithResponse(`/api/fslite/ticket/${t}/status`,e).then(a=>{a.successful?r(a.result):o("could not set status")}).catch(a=>o(a))})}setTicketViewedStatus(t,e){return new Promise((r,o)=>{this.nuviotClient.request(`/api/fslite/ticket/${t}/viewed/${e}`).then(a=>{a.successful?r(a.result):o("could not set viewed status")}).catch(a=>o(a))})}setTicketClosedStatus(t,e){return new Promise((r,o)=>{this.nuviotClient.request(`/api/fslite/ticket/${t}/closed/${e}`).then(a=>{a.successful?r(a.result):o("could not set closed status")}).catch(a=>o(a))})}loadTicket(t){return new Promise((n,r)=>{this.nuviotClient.getFormResponse(`/api/fslite/ticket/${t}`).then(o=>{this.setTicket(o.model),n(o.model)}).catch(o=>r(o))})}loadPartsKit(t){return new Promise((n,r)=>{this.nuviotClient.request(`/api/fslite/partskit/${t}/detail`).then(o=>{this.setPartsKit(o),n(o)}).catch(o=>r(o))})}updateAssignedTo(t,e){return new Promise((r,o)=>{this.nuviotClient.post(`/api/fslite/ticket/${t}/assignedto`,e).then(a=>{a.successful?r(a.result):o("could not update user.")}).catch(a=>o(a))})}deleteTicket(t){return new Promise((n,r)=>{this.nuviotClient.delete(`/api/fslite/ticket/${t}`).then(o=>{n(o)}).catch(o=>r(o))})}onPartsKit(){return this._partsKit$.asObservable()}onBoard(){return this._board$.asObservable()}onBoards(){return this._boards$.asObservable()}onTicket(){return this._ticket$.asObservable()}onTickets(){return this._tickets$.asObservable()}onTemplates(){return this._templates$.asObservable()}onTemplate(){return this._template$.asObservable()}setBoard(t){this._board=t,this._board$.next(t)}setBoards(t){this._boards=t,this._boards$.next(t)}setTemplate(t){this._template=t,this._template$.next(t)}setTicket(t){this._ticket=t,this._ticket$.next(t)}setTickets(t){this._tickets=t,this._tickets$.next(t)}setTemplates(t){this._templates=t,this._templates$.next(t)}setPartsKit(t){this._partsKit=t,this._partsKit$.next(t)}getBoard(){return this._board}getBoards(){return this._boards}getTicket(){return this._ticket}getTickets(){return this._tickets}getTemplateSummaries(){return this._templates}getPartsKit(){return this._partsKit}static \u0275fac=function(e){return new(e||rv)(Ee(An))};static \u0275prov=$e({token:rv,factory:rv.\u0275fac,providedIn:"root"})}class ov{nuviotClient;constructor(t){this.nuviotClient=t}getMessages(){return this.nuviotClient.getListResponse("/api/devicemessagetypes")}getOutgoingMessages(){return this.nuviotClient.getListResponse("/api/devicemessagetypes/outgoing")}getIncomingMessages(){return this.nuviotClient.getListResponse("/api/devicemessagetypes/incoming")}getMessage(t){return this.nuviotClient.getFormResponse(`/api/devicemessagetype/${t}`)}createMessage(){return this.nuviotClient.getFormResponse("/api/devicemessagetype/factory")}createMessageVerifier(){return this.nuviotClient.getFormResponse("/api/verifier/factory/message")}createMessageFieldVerifier(){return this.nuviotClient.getFormResponse("/api/verifier/factory/messagefield")}createMessageAttributeParser(){return this.nuviotClient.getFormResponse("/api/messageattributeparser/factory")}createMessageField(){return this.nuviotClient.getFormResponse("/api/devicemessagetype/field/factory")}editMessageField(t){var e=this;return z(function*(){let n=yield e.createMessageField();return n.isEditing=!0,n.model=t,n})()}saveMessage(t){var e=this;return z(function*(){return t.isEditing?yield e.nuviotClient.update("/api/devicemessagetype",t.model):yield e.nuviotClient.post("/api/devicemessagetype",t.model)})()}saveVerifier(t){var e=this;return z(function*(){return t.isEditing?yield e.nuviotClient.update("/api/verifier",t.model):yield e.nuviotClient.post("/api/verifier",t.model)})()}runMessageVerifier(t){return this.nuviotClient.postRaw("/api/verifierruntime/messageparser/execute",t)}runMessageAttributeVerifier(t){return this.nuviotClient.postRaw("/api/verifierruntime/messageattributeparser/execute",t)}getVerifier(t){return this.nuviotClient.getFormResponse(`/api/verifier/${t}`)}deleteVerifier(t){return this.nuviotClient.delete(`/api/verifier/${t}`)}getVerifiersForComponent(t){return this.nuviotClient.getListResponse(`/api/verifiers/component/${t}`)}importMessage(t){console.log(t);let e=JSON.parse(t);return console.log("parsed",t,e),this.nuviotClient.postWithResponse("/api/devicemessagetype/fields/parse",JSON.parse(t))}static \u0275fac=function(e){return new(e||ov)(Ee(An))};static \u0275prov=$e({token:ov,factory:ov.\u0275fac,providedIn:"root"})}class av{nuviotClient;editMessageTemplate(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/simulator/messagetemplate/factory");return n.model=t,n.isEditing=!0,n})()}constructor(t){this.nuviotClient=t}getSimulators(){return this.nuviotClient.getListResponse("/api/org/simulators")}getSimulator(t){return this.nuviotClient.getFormResponse(`/api/simulator/${t}`)}createSimulator(){return this.nuviotClient.getFormResponse("/api/simulator/factory")}saveSimulator(t){return t.isEditing?this.nuviotClient.update("/api/simulator",t.model):this.nuviotClient.post("/api/simulator",t.model)}getSimulatorNetworks(){return this.nuviotClient.getListResponse("/api/simulator/networks")}createSimulatorNetwork(){return this.nuviotClient.getFormResponse("/api/simulator/network/factory")}getSimulatorNetwork(t){return this.nuviotClient.getFormResponse(`/api/simulator/network/${t}`)}getSimulatorNetworkWithKeys(t){return this.nuviotClient.getFormResponse(`/api/simulator/network/${t}/secure`)}saveSimulatorNetwork(t){return t.isEditing?this.nuviotClient.update("/api/simulator/network",t.model):this.nuviotClient.post("/api/simulator/network",t.model)}createSimulatorInstance(){return this.nuviotClient.getFormResponse("/api/simulator/instance/factory")}static \u0275fac=function(e){return new(e||av)(Ee(An))};static \u0275prov=$e({token:av,factory:av.\u0275fac,providedIn:"root"})}class sv{client;constructor(t){this.client=t}getReports(){return this.client.getListResponse("api/reports")}getReport(t){var e=this;return z(function*(){return yield e.client.getFormResponse(`/api/report/${t}`)})()}createReport(){var t=this;return z(function*(){return yield t.client.getFormResponse("/api/report/factory")})()}createReportRevision(){return this.client.getFormResponse("/api/report/revision/factory")}editReportRevision(t){var e=this;return z(function*(){let n=yield e.client.getFormResponse("/api/report/revision/factory");return n.model=t,n.isEditing=!0,n})()}saveReport(t){var e=this;return z(function*(){return t.isEditing?yield e.client.update("/api/report",t.model):yield e.client.post("/api/report",t.model)})()}queueForExecution(t,e){return new Promise((r,o)=>{this.client.insert(`/api/report/${t}/run`,e).then(a=>{r(a.result)}).catch(a=>o(a))})}deleteGeneratedReport(t,e){return this.client.delete(`/report/${t}/${e}`)}createScheduledReports(){return this.client.getFormResponse("/api/report/scheduled/factory")}getScheduledReport(t){return this.client.getFormResponse(`/api/report/scheduled/${t}`)}getScheduledReportsForReport(t){return this.client.getListResponse(`/api/reports/scheduled/${t}`)}getScheduledReports(){return this.client.getListResponse("/api/reports/scheduled")}insertScheduledReport(t){return this.client.post("/api/report/scheduled",t)}updateScheduledReport(t){return this.client.update("/api/report/scheduled",t)}deleteSchedueledReport(t){return this.client.delete(`/api/report/scheduled/${t}`)}getGeneratedReports(t){return this.client.getListResponse(`/report/${t}/generated`)}getDeviceGeneratedReports(t,e){return this.client.getListResponse(`/report/device/${t}/generated`,{pageSize:50,nextRowKey:e})}getStreamData(t,e,n){return new Promise((o,a)=>{this.client.getListResponse(`/api/datastream/${t}/data/${e}`,n).then(l=>{o(l)}).catch(l=>a(l))})}static \u0275fac=function(e){return new(e||sv)(Ee(An))};static \u0275prov=$e({token:sv,factory:sv.\u0275fac,providedIn:"root"})}class Bf{nuviotClient;_currentGuide;_currentGuideStep;_guide$=new Gt;_guideStep$=new Gt;_guideSummaries$=new Gt;constructor(t){this.nuviotClient=t}quickCreateGuide(t){return this.nuviotClient.post("/api/guide/quickcreate",t)}rebuildGuideTree(t){return this.nuviotClient.request(`/api/guide/${t}/createtree`)}getGuideCategories(){return this.nuviotClient.request("/api/guides/categories")}getGuideSubCategories(){return this.nuviotClient.request("/api/guides/subcategories")}getGuidesForNuvIoTObject(t){return this.nuviotClient.getListResponse(`/api/guides/nuviot/${t}`)}resetCFU(t){return this.nuviotClient.request(`/api/guides/completion/${t}/reset`)}submitQuizCompletion(t,e,n){return this.nuviotClient.post(`/api/guide/${t}/cfu/complete`,{passingPercent:e,passed:n})}getCompletionStatus(t){return this.nuviotClient.request(`/api/guides/completion/${t}`)}getGuideCompletionStatusForCurrentUser(){return this.nuviotClient.request("/api/guides/completion/all")}getCFUAnswers(t){return this.nuviotClient.request(`/api/guide/cfu/${t}`)}setAnswer(t,e,n){return this.nuviotClient.request(`/api/guide/cfu/${t}/${e}/${n}`)}loadGuides(){return this.nuviotClient.request("/api/guides/all")}loadGuideSummaries(){return this.nuviotClient.request("/api/guides/summaries")}addChildGuide(t){return this.nuviotClient.post("/api/guide/child",t)}rateGuide(t,e){return this.nuviotClient.request(`/api/guide/${t}/rate/${e}`)}clearGuideRating(t){return this.nuviotClient.delete(`/api/guide/${t}/rating`)}addComment(t,e){return this.nuviotClient.postWithResponse(`/api/guide/${t}/comment`,{content:e})}addReply(t,e,n){return this.nuviotClient.postWithResponse(`/api/guide/${t}/comment/${e}/reply`,{content:n})}loadPublicGuidesByCategory(t){return this.nuviotClient.request(`/api/guides/active/${t}`)}loadGuidesByCategory(t,e=!1){return this.nuviotClient.request(`/api/guides/${t}?toplevel=${e}`)}loadGuide(t){return this.nuviotClient.request(`/api/guide/${t}`)}loadLongFormGuide(t){return this.nuviotClient.request(`/api/guide/${t}/longform`)}deleteGuide(t){return this.nuviotClient.delete(`/api/guide/${t}`)}createNewGuide(){return this.nuviotClient.request("/api/guide/factory")}createGuideStep(){return this.nuviotClient.request("/api/guidestep/factory")}loadGuidStep(t,e){return this.nuviotClient.request(`/api/guide/${t}/step/${e}`)}createExampleApplication(t){return this.nuviotClient.request(`/api/examples/create/${t}`)}updateGuide(t,e=!0){return this.nuviotClient.update("/api/guide",t,e)}insertGuide(t){return this.nuviotClient.post("/api/guide",t)}setGuide(t){this._currentGuide=t,this._guide$.next(t)}setGuideStep(t){this._currentGuideStep=t,this._guideStep$.next(t)}setGuides(t){this._guideSummaries$.next(t)}getCurrentGuide(){return this._currentGuide}getCurrentGuideStep(){return this._currentGuideStep}onGuide(){return this._guide$.asObservable()}onGuideStep(){return this._guideStep$.asObservable()}onGuides(){return this._guideSummaries$.asObservable()}static \u0275fac=function(e){return new(e||Bf)(Ee(An))};static \u0275prov=$e({token:Bf,factory:Bf.\u0275fac,providedIn:"root"})}function zme(i,t){if(1&i){const e=pe();u(0,"span",7),N("click",function(){return R(e),L(g().edit())}),H(1,"i",8),m(2,"Edit"),c()}}function Wme(i,t){1&i&&H(0,"app-help-resource-viewer",9),2&i&&p("help",g().help)}function Gme(i,t){1&i&&(u(0,"div"),m(1," Sorry - No Help is available for this item. "),c())}function qme(i,t){if(1&i){const e=pe();u(0,"li"),m(1),u(2,"span",7),N("click",function(){const o=R(e).$implicit;return L(g(3).addGuide(o))}),m(3,"Add Guide"),c()()}if(2&i){const e=t.$implicit;h(1),Ke(" ",e.name," ")}}function Kme(i,t){if(1&i&&(u(0,"ol"),w(1,qme,4,1,"li",11),c()),2&i){const e=g(2);h(1),p("ngForOf",e.potentialGuides)}}function Zme(i,t){if(1&i){const e=pe();u(0,"div")(1,"app-form",10),N("saved",function(){return R(e),L(g().saved())})("cancel",function(){return R(e),L(g().helpForm=void 0)}),c(),u(2,"label"),m(3),c(),w(4,Kme,2,1,"ol",6),c()}if(2&i){const e=g();h(1),p("inPlaceEditing",!0)("autoSave",!0)("form",e.helpForm),h(2),Ke("Guides associated with ",e.modelName,""),h(1),p("ngIf",e.potentialGuides)}}class lv{contentManagementService;guideService;userService;activeModal;help;modelName;isForApp=!1;helpForm;canEdit;ready=!1;objectGuides;potentialGuides;constructor(t,e,n,r){this.contentManagementService=t,this.guideService=e,this.userService=n,this.activeModal=r}ngOnInit(){var t=this;return z(function*(){if(console.log("on init"),!t.help){t.canEdit=(yield t.userService.isPrimaryOrg())||t.isForApp;let e=yield t.contentManagementService.getFormHelpResources(t.modelName);e.successful&&(t.help=e.result),t.ready=!0}})()}edit(){var t=this;return z(function*(){t.helpForm=t.help?yield t.contentManagementService.loadFormHelpResource(t.help.id):yield t.contentManagementService.createFormHelpResult(t.modelName),t.objectGuides=(yield t.guideService.getGuidesForNuvIoTObject(t.modelName.toLocaleLowerCase())).model,t.potentialGuides=[];for(let e of t.objectGuides)t.helpForm.model.helpResources.find(n=>n.guide?.id==e.id)||t.potentialGuides.push(e);console.log(t.objectGuides)})()}setForm(t){this.helpForm=t}addGuide(t){this.helpForm.model.helpResources.push({id:Qn.newGuid(),name:t.name,key:t.key,visible:!1,icon:t.icon,creationDate:(new Date).toISOString(),guide:{id:t.id,key:t.key,text:t.name},resourceType:{id:"guide",key:"guide",text:"Guide"}}),this.potentialGuides.splice(this.potentialGuides.indexOf(t),1),console.log(this.helpForm)}saved(){var t=this;return z(function*(){t.help=t.helpForm.model,t.helpForm=void 0})()}static \u0275fac=function(e){return new(e||lv)(U(kc),U(Bf),U($n),U(dr))};static \u0275cmp=Be({type:lv,selectors:[["app-page-help-resources"]],inputs:{help:"help",modelName:"modelName",isForApp:"isForApp"},decls:8,vars:4,consts:[[1,"panel-actions",2,"margin-top","10px"],["class","action",3,"click",4,"ngIf"],[2,"cursor","pointer","font-size","24px",3,"click"],[1,"fa-solid","fa-times-circle"],[2,"margin","30px"],[3,"help",4,"ngIf"],[4,"ngIf"],[1,"action",3,"click"],["aria-hidden","true",1,"fa","fa-solid","fa-pencil"],[3,"help"],[3,"inPlaceEditing","autoSave","form","saved","cancel"],[4,"ngFor","ngForOf"]],template:function(e,n){1&e&&(u(0,"div",0),w(1,zme,3,0,"span",1),u(2,"span",2),N("click",function(){return n.activeModal.dismiss()}),H(3,"i",3),c()(),u(4,"div",4),w(5,Wme,1,1,"app-help-resource-viewer",5),w(6,Gme,2,0,"div",6),w(7,Zme,5,5,"div",6),c()),2&e&&(h(1),p("ngIf",!n.helpForm&&n.canEdit),h(4),p("ngIf",n.help&&!n.helpForm),h(1),p("ngIf",!n.help&&!n.helpForm&&n.ready),h(1),p("ngIf",n.helpForm))},styles:["h1[_ngcontent-%COMP%]{color:var(--color-primary-80)}ol[_ngcontent-%COMP%]{list-style:none}"]})}class gh{nuviotClient;constructor(t){this.nuviotClient=t}createModelSetting(){return this.nuviotClient.getFormResponse("/api/ml/model/setting/factory")}createPreprocessor(){return this.nuviotClient.getFormResponse("/api/ml/model/preprocessor/factory")}createPreprocessorSetting(){return this.nuviotClient.getFormResponse("/api/ml/model/preprocessor/setting/factory")}createExperiment(){return this.nuviotClient.getFormResponse("/api/ml/model/experiment/factory")}createModelNote(){return this.nuviotClient.getFormResponse("/api/ml/model/note/factory")}createModelRevision(){return this.nuviotClient.getFormResponse("/api/ml/model/revision/factory")}createModel(){return this.nuviotClient.getFormResponse("/api/ml/model/factory")}getModel(t){return this.nuviotClient.getFormResponse(`/api/ml/model/${t}`)}addModel(t){return this.nuviotClient.post("/api/ml/model",t)}updateModel(t){return this.nuviotClient.update("/api/ml/model",t)}getModels(){return this.nuviotClient.getListResponse("/api/ml/models")}deleteModel(t){return this.nuviotClient.delete(`/api/ml/model/${t}`)}getModelCategories(){return this.nuviotClient.getListResponse("/api/ml/modelcategories")}addModelCategory(t){return this.nuviotClient.post("/api/ml/modelcategory",t)}updateModelCategory(t){return this.nuviotClient.update("/api/ml/modelcategory",t)}saveCategory(t){return t.isEditing?this.updateModelCategory(t.model):this.addModelCategory(t.model)}generateImage(t){return this.nuviotClient.postWithResponse("/api/ai/image/generate",t,!1)}textQuery(t){return this.nuviotClient.postWithResponse("/api/ai/textquery",t,!1)}createModelCategory(){return this.nuviotClient.getFormResponse("/api/ml/modelcategory/factory")}getModelCategory(t){return this.nuviotClient.getFormResponse(`/api/ml/modelcategory/${t}`)}createModelLabelSet(){return this.nuviotClient.getFormResponse("/api/ml/labelset/factory")}getModelLabelSet(t){return this.nuviotClient.getFormResponse(`/api/ml/labelset/${t}`)}getModelLabelSets(){return this.nuviotClient.getListResponse("/api/ml/labelsets")}addModelLabelSet(t){return this.nuviotClient.post("/api/ml/labelset",t)}updateModelLabelSet(t){return this.nuviotClient.update("/api/ml/labelset",t)}saveModelLabelSet(t){return t.isEditing?this.updateModelLabelSet(t.model):this.addModelLabelSet(t.model)}createAgentContext(){return this.nuviotClient.getFormResponse("/api/ai/agentcontext/factory")}getAgentContext(t){return this.nuviotClient.getFormResponse(`/api/ai/agentcontext/${t}`)}getAgentContexts(){return this.nuviotClient.getListResponse("/api/ai/agentcontexts")}addAgentContext(t){return this.nuviotClient.post("/api/ai/agentcontext",t)}updateAgentContext(t){return this.nuviotClient.update("/api/ai/agentcontext",t)}saveAgentContext(t){return t.isEditing?this.updateAgentContext(t.model):this.addAgentContext(t.model)}executeAgentRequest(t,e,n){return t.streamMode=1,this.nuviotClient.postWithStreamNdjson("/api/ai/agent/execute",t,e,!0,n)}executeAgent(t){return this.nuviotClient.postWithResponse("/api/ai/agent/execute",t,!1)}llmQuery(t){return this.nuviotClient.request(`/api/ai/llm/query?question=${encodeURIComponent(t)}`)}getAgentSessions(){return this.nuviotClient.getListResponse("/api/ai/agent/sessions")}getAgentSession(t){return this.nuviotClient.request(`/api/ai/agent/session/${t}`)}static \u0275fac=function(e){return new(e||gh)(Ee(An))};static \u0275prov=$e({token:gh,factory:gh.\u0275fac,providedIn:"root"})}function Qme(i,t){if(1&i){const e=pe();u(0,"div")(1,"editor",13),N("ngModelChange",function(r){return R(e),L(g(2).discussion.note=r)}),c(),u(2,"div",14)(3,"span",15),N("click",function(){return R(e),L(g(2).saveNewDiscussion())}),H(4,"i",16),m(5," Save New Discussion"),c()()()}if(2&i){const e=g(2);h(1),p("init",e.getEditorOptions())("ngModel",e.discussion.note)}}function Xme(i,t){if(1&i){const e=pe();u(0,"span",15),N("click",function(){R(e);const r=g().$implicit;return L(g(2).editDiscussion(r))}),H(1,"i",23),c()}}function Jme(i,t){if(1&i){const e=pe();u(0,"span",15),N("click",function(){R(e);const r=g(2).$implicit;return L(g(2).addResponse(r))}),H(1,"i",24),m(2," Add Response"),c()}}function e_e(i,t){if(1&i){const e=pe();u(0,"span",15),N("click",function(){R(e);const r=g(2).$implicit;return L(g(2).openDiscussion(r))}),H(1,"i",25),m(2," Re-Open"),c()}}function t_e(i,t){if(1&i){const e=pe();u(0,"span",15),N("click",function(){R(e);const r=g(2).$implicit;return L(g(2).closeDiscussion(r))}),H(1,"i",26),m(2," Mark as Resolved"),c()}}function n_e(i,t){if(1&i&&(u(0,"div"),w(1,Jme,3,0,"span",21),w(2,e_e,3,0,"span",21),w(3,t_e,3,0,"span",21),c()),2&i){const e=g().$implicit;h(1),p("ngIf",e.open),h(1),p("ngIf",!e.open),h(1),p("ngIf",e.open)}}function i_e(i,t){1&i&&H(0,"div",27),2&i&&p("innerHTML",g().$implicit.note,Un)}function r_e(i,t){if(1&i){const e=pe();u(0,"div")(1,"editor",13),N("ngModelChange",function(r){return R(e),L(g(3).editingDiscussion.note=r)}),c(),u(2,"div",14)(3,"span",15),N("click",function(){return R(e),L(g(3).saveDiscussion())}),H(4,"i",16),m(5,"Save Discussion"),c()()()}if(2&i){const e=g(3);h(1),p("init",e.getEditorOptions())("ngModel",e.editingDiscussion.note)}}function o_e(i,t){if(1&i){const e=pe();u(0,"div")(1,"editor",13),N("ngModelChange",function(r){return R(e),L(g(4).response.note=r)}),c(),u(2,"div",14)(3,"span",15),N("click",function(){return R(e),L(g(4).saveResponse())}),H(4,"i",16),m(5," Save Response"),c(),u(6,"span",15),N("click",function(){return R(e),L(g(4).askTerminator())}),H(7,"i",29),m(8,"Consult T-802"),c()()()}if(2&i){const e=g(4);h(1),p("init",e.getEditorOptions())("ngModel",e.response.note)}}function a_e(i,t){if(1&i&&(u(0,"li",30)(1,"span",19),H(2,"i",31),m(3),c(),m(4),Qt(5,"dateTimePrinter"),H(6,"div",27),c()),2&i){const e=t.$implicit;h(3),Ke(" ",e.user.text,":"),h(1),Ke(" (",Xt(5,3,e.timestamp),") "),h(2),p("innerHTML",e.note,Un)}}function s_e(i,t){if(1&i&&(u(0,"ol"),w(1,o_e,9,2,"div",7),w(2,a_e,7,5,"li",28),c()),2&i){const e=g().$implicit,n=g(2);h(1),p("ngIf",n.response&&n.responseDiscussion==e),h(1),p("ngForOf",e.responses)}}const l_e=function(i,t){return{"discussion-section-closed":i,"discussion-section-open":t}};function c_e(i,t){if(1&i&&(u(0,"li",17)(1,"div",18)(2,"div",3)(3,"span",19),H(4,"i",20),m(5),c(),m(6),Qt(7,"dateTimePrinter"),w(8,Xme,2,0,"span",21),c(),w(9,n_e,4,3,"div",7),c(),w(10,i_e,1,1,"div",22),w(11,r_e,6,2,"div",7),w(12,s_e,3,2,"ol",7),c()),2&i){const e=t.$implicit,n=g(2);p("ngClass",yi(10,l_e,!e.open,e.open)),h(5),Ke(" ",e.user.text,""),h(1),Ke(" (",Xt(7,8,e.timestamp),") "),h(2),p("ngIf",e.open&&!n.editingDiscussion),h(1),p("ngIf",!n.editingDiscussion),h(1),p("ngIf",!n.editingDiscussion),h(1),p("ngIf",n.editingDiscussion==e),h(1),p("ngIf",!n.editingDiscussion||e!=n.editingDiscussion)}}function d_e(i,t){1&i&&H(0,"div",32)}function u_e(i,t){if(1&i&&(u(0,"div",33)(1,"h4"),m(2,"Please Wait..."),c(),u(3,"h4"),m(4,"...I'll Be Back"),c(),H(5,"app-loading-spinner",34),c()),2&i){const e=g(2);h(5),p("caption",e.terminatorQuote)}}function h_e(i,t){if(1&i){const e=pe();u(0,"div",1)(1,"h4",2)(2,"div",3),H(3,"i",4),m(4),c(),u(5,"i",5),N("click",function(){return R(e),L(g().addDiscussion())}),c()(),u(6,"p",6),m(7),c(),w(8,Qme,6,2,"div",7),H(9,"hr"),u(10,"div",8)(11,"ol",9),w(12,c_e,13,13,"li",10),c()(),w(13,d_e,1,0,"div",11),w(14,u_e,6,1,"div",12),c()}if(2&i){const e=g();h(4),Ke(" Discussions - ",e.form.modelTitle,""),h(3),Re(e.form.view.name.value),h(1),p("ngIf",e.discussion),h(4),p("ngForOf",e.form.model.discussions),h(1),p("ngIf",e.busy),h(1),p("ngIf",e.busy)}}class EC{route;mlService;usersService;pmService;form;isAdding=!1;busy=!1;terminatorQuote="I Am Human. Just Enhanced";discussion;editingDiscussion;response;responseDiscussion;constructor(t,e,n,r){this.route=t,this.mlService=e,this.usersService=n,this.pmService=r}ngOnInit(){var t=this;return z(function*(){t.discussion=0===t.form.model.discussions.length?yield t.pmService.createDiscussion():void 0})()}getEditorOptions(){var e,t=this;return{plugins:"lists link image table code help wordcount fullscreen autoresize charmap emoticons media mergetags mentions",toolbar:"fullscreen undo redo | blocks | bold italic underline strikethrough | link image media table mergetags | align lineheight | tinycomments | checklist numlist bullist indent outdent | emoticons charmap | removeforma | mentions",mergetags_suffix:"]",mergetags_prefix:"[",min_height:250,menubar:"file edit view inert format tools table help custom",statusbar:!1,menu:{custom:{title:"Insert NuvIoT Objects",items:"sharedContent faqItem glossaryItem landingPageItem downloadableContentItem siteContentItem"}},setup:e=>{},branding:!1,content_style:".mymention { color: #13589D; font-weight: bold; }",mentions_item_type:"profile",mentions_item_fields:["name","avatar","title"],mentions_selector:".mymention",mentions_fetch:(e=z(function*(n,r){const o=yield t.usersService.getCachedUserSummary();console.log(o),r(o.filter(s=>s.name.toLowerCase().includes(n.term.toLowerCase())))}),function(r,o){return e.apply(this,arguments)}),mentions_menu_complete:(e,n)=>{const r=e.getDoc().createElement("span");return r.className="mymention",r.setAttribute("data-mention-id",n.id),r.appendChild(e.getDoc().createTextNode("@"+n.name)),r},mentions_select:function(){var e=z(function*(n,r){var o=n.getAttribute("data-mention-id");let s=(yield t.usersService.getCachedUserSummary()).find(d=>d.id===o);r(t.getMentionCardHtml(s))});return function(r,o){return e.apply(this,arguments)}}(),mentions_menu_hover:function(){var e=z(function*(n,r){let a=(yield t.usersService.getCachedUserSummary()).find(l=>l.id===n.id);r(t.getMentionCardHtml(a))});return function(r,o){return e.apply(this,arguments)}}()}}getMentionCardHtml(t){var e=document.createElement("div");return e.innerHTML='

'+t.name+"

"+t.description+"

",e}addDiscussion(){var t=this;return z(function*(){t.discussion=yield t.pmService.createDiscussion()})()}askTerminator(){var t=this;return z(function*(){let e={query:t.response.note,role:"user",conversationId:void 0};t.busy=!0;let n=yield t.mlService.textQuery(e);t.busy=!1,n.successful&&(t.response.note+=n.result.response)})()}saveNewDiscussion(){var t=this;return z(function*(){t.discussion.note&&(t.form.model.discussions.unshift(t.discussion),t.discussion=void 0,yield t.form.formHost.saveForm(!1))})()}saveDiscussion(){var t=this;return z(function*(){yield t.form.formHost.saveForm(!1),t.editingDiscussion=void 0})()}editDiscussion(t){var e=this;return z(function*(){e.editingDiscussion=t})()}addResponse(t){var e=this;return z(function*(){e.response=yield e.pmService.createDiscussionResponse(),e.responseDiscussion=t})()}saveResponse(){var t=this;return z(function*(){t.response&&t.response.note&&(t.responseDiscussion.responses.unshift(t.response),t.response=void 0,yield t.form.formHost.saveForm(!1))})()}openDiscussion(t){var e=this;return z(function*(){t.open=!0,yield e.form.formHost.saveForm(!1)})()}closeDiscussion(t){var e=this;return z(function*(){t.open=!1,yield e.form.formHost.saveForm(!1)})()}static \u0275fac=function(e){return new(e||EC)(U(bi),U(gh),U($n),U(fh))};static \u0275cmp=Be({type:EC,selectors:[["app-discussions-modal"]],decls:1,vars:1,consts:[["style","padding:15px;",4,"ngIf"],[2,"padding","15px"],[2,"display","flex","color","var(--color-primary)"],[2,"flex-grow","1"],[1,"fa-solid","fa-comments"],[1,"fa","fa-plus","action",3,"click"],[2,"color","var(--color-fg)"],[4,"ngIf"],[2,"max-height","800px","overflow-y","auto"],[2,"margin","20px"],[3,"ngClass",4,"ngFor","ngForOf"],["style","width: 100%; height: 100%;opacity: 0.5; background-color: black;position: absolute;top:0",4,"ngIf"],["style","color:white; text-align: center;padding-top: 200px; position: absolute;top:0; width: 100%",4,"ngIf"],["apiKey","kjvrmckj7e2u9yuxwg3akvfp3rkybse6455b25ja0liuef9o",3,"init","ngModel","ngModelChange"],[2,"text-align","right","margin-top","5px"],[1,"action",3,"click"],[1,"fa","fa-save"],[3,"ngClass"],[2,"display","flex"],[2,"font-weight","bold","color","var(--color-primary)"],[1,"fa-solid","fa-user"],["class","action",3,"click",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"fa","fa-pencil"],[1,"fa","fa-plus-circle"],[1,"fa-solid","fa-folder-closed"],[1,"fa-solid","fa-folder-open"],[3,"innerHTML"],["style","margin-left: 20px;",4,"ngFor","ngForOf"],[1,"fa","fas","fa-user-robot"],[2,"margin-left","20px"],[1,"fa","fa-user"],[2,"width","100%","height","100%","opacity","0.5","background-color","black","position","absolute","top","0"],[2,"color","white","text-align","center","padding-top","200px","position","absolute","top","0","width","100%"],[3,"caption"]],template:function(e,n){1&e&&w(0,h_e,15,6,"div",0),2&e&&p("ngIf",n.form)},dependencies:[Zi,jt,ct,vn,pn,Rd,Ku,Bs],styles:["ol[_ngcontent-%COMP%]{list-style-type:none;padding-left:0}.discussion-section[_ngcontent-%COMP%], .discussion-section-open[_ngcontent-%COMP%], .discussion-section-closed[_ngcontent-%COMP%]{padding:10px;border:1px solid var(--color-border-panel);border-radius:8px;margin-bottom:10px;background-color:var(--color-bg-panel);color:var(--color-fg);color--webkit-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19);color--webkit-box-shadow-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19)}.discussion-section-closed[_ngcontent-%COMP%]{opacity:.5}"]})}class Hd{constructor(){}_topMenuOptions={saveVisible:!1,advancedVisible:!1,cancelVisible:!1,backVisible:!1,homeVisible:!1,filterVisible:!1,addVisible:!1};_menuItems=[];_menuOptionsUpdated$=new be;_headerOptionClick$=new be;_dummy$=new be;_menuOptionsVisibilityChanged=new be;addOption(t){this._menuItems=t,this.onMenuItemsChanged.emit(this._menuItems)}headerClick(t){console.log("headerClick",t),this.onHeaderClick.emit(t)}onMenuItemsChanged=new Ae;onMenuVisibilityChanged=new Ae;onHeaderClick=new Ae;onTitleChanged=new Ae;getMenuOptions(){return this._topMenuOptions}title=void 0;setTitle(t){this.title=t,this.onTitleChanged.emit(t)}get saveVisible(){return this._topMenuOptions.saveVisible}set saveVisible(t){this._topMenuOptions.saveVisible=t;let e=JSON.parse(JSON.stringify(this._topMenuOptions));e.saveVisible=t,this.onMenuVisibilityChanged.emit(e),this._topMenuOptions=e}get advancedVisible(){return this._topMenuOptions.advancedVisible}set advancedVisible(t){if(t!=this._topMenuOptions.advancedVisible){let e=JSON.parse(JSON.stringify(this._topMenuOptions));e.advancedVisible=t,this.onMenuVisibilityChanged.next(e),this._topMenuOptions=e}}get cancelVisible(){return this._topMenuOptions.cancelVisible}set cancelVisible(t){if(t!=this._topMenuOptions.cancelVisible){let e=JSON.parse(JSON.stringify(this._topMenuOptions));e.cancelVisible=t,this.onMenuVisibilityChanged.next(e),this._topMenuOptions=e}}get backVisible(){return this._topMenuOptions.backVisible}set backVisible(t){if(this._topMenuOptions.backVisible=t,t!=this._topMenuOptions.backVisible){let e=JSON.parse(JSON.stringify(this._topMenuOptions));e.backVisible=t,this.onMenuVisibilityChanged.next(e),this._topMenuOptions=e}}get homeVisible(){return this._topMenuOptions.homeVisible}set homeVisible(t){if(t!=this._topMenuOptions.homeVisible){this._topMenuOptions.homeVisible=t;let e=JSON.parse(JSON.stringify(this._topMenuOptions));e.backVisible=t,this.onMenuVisibilityChanged.next(e),this._topMenuOptions=e}}get filterVisible(){return this._topMenuOptions.filterVisible}set filterVisible(t){if(this._topMenuOptions.filterVisible=t,t!=this._topMenuOptions.filterVisible){let e=JSON.parse(JSON.stringify(this._topMenuOptions));e.filterVisible=t,this.onMenuVisibilityChanged.next(e),this._topMenuOptions=e}}get addVisible(){return this._topMenuOptions.addVisible}set addVisible(t){if(this._topMenuOptions.addVisible=t,t!=this._topMenuOptions.addVisible){let e=JSON.parse(JSON.stringify(this._topMenuOptions));e.addVisible=t,this.onMenuVisibilityChanged.next(e),this._topMenuOptions=e}}static \u0275fac=function(e){return new(e||Hd)};static \u0275prov=$e({token:Hd,factory:Hd.\u0275fac,providedIn:"root"})}class mh{constructor(){}isPhone(){var t=navigator.userAgent;return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(t)}isTablet(){var t=navigator.userAgent;return/iPad/i.test(t)}isDesktop(){return!this.isPhone()&&!this.isTablet()}static \u0275fac=function(e){return new(e||mh)};static \u0275prov=$e({token:mh,factory:mh.\u0275fac,providedIn:"root"})}class cv{nuviotClient;route;router;menuService;favoriteService;mruService;errorReporterService;modalService;appServices;id;busyMessage;uploader;hasBaseDropZoneOver=!1;fileNameOrStatus;debug=!1;hasAdvancedFields=!1;additionalActions;formIcon="icon-ae-document";favorite;phoneView=!1;_onHeaderClickSubscription;_formConditionals;constructor(t,e,n,r,o,a,s,l,d){this.nuviotClient=t,this.route=e,this.router=n,this.menuService=r,this.favoriteService=o,this.mruService=a,this.errorReporterService=s,this.modalService=l,this.appServices=d}ngOnDestroy(){this.model&&this.fields&&this.viewToModel(this.model,this.fields),this.model&&this.fieldsCol2&&this.viewToModel(this.model,this.fieldsCol2),this._onHeaderClickSubscription.unsubscribe(),window.setTimeout(()=>{this.menuService.saveVisible=!1,this.menuService.cancelVisible=!1,this.menuService.advancedVisible=!1,this.menuService.backVisible=!0},100),this.autoSaveTimerId&&(window.clearInterval(this.autoSaveTimerId),this.autoSaveTimerId=void 0)}ngOnInit(){this.phoneView=this.appServices.isPhone(),this.importObjectName&&(this.uploader=new ob({url:`/api/dataservices/yaml/${this.importObjectName}/import`}),this.uploader.onAfterAddingFile=e=>{this.fileNameOrStatus=`Uploading: ${e.some.name}`,this.uploader.uploadItem(e)},this.uploader.onCompleteItem=(e,n,r,o)=>{this.model=JSON.parse(n).result,this.modelToView(this.model,this.fields),this.modelToView(this.model,this._nameKeyFields),this.imported.emit(this.model),this.fileNameOrStatus=`Success uploading: ${e.some.name}`,this.isImporting=!1}),this._onHeaderClickSubscription=this.menuService.onHeaderClick.subscribe(t=>{switch(t){case"cancel":case"back":this.cancelForm();break;case"save":this.saveForm();break;case"advanced":this.toggleAdvancedFields()}})}_saveUrl;_updateUrl;view;_headerExtension;set headerExtension(t){t&&(this._headerExtension=t)}get headerExtension(){return this._headerExtension}set model(t){this._model=t,this.modelToView(this.model,this._nameKeyFields),this._model&&this._fields&&this.modelToView(this.model,this.fields),this._model&&this._fields2&&this.modelToView(this.model,this._fields2),this._model&&this.fieldsBottom&&this.modelToView(this.model,this.fieldsBottom)}get model(){return this._model}_isEditing;set isEditing(t){this._isEditing=t,this.setReadOnlyKey()}get isEditing(){return this._isEditing}allowKeyEdit=!1;title;summary;help;isBusy;hideToolBar=!1;canExport=!1;inPlaceEditing=!1;toggleEditorVisibility=!1;editorVisible=!0;canImport=!1;importObjectName;exportObjectName;allowSaveWithOutClose=!0;autoSave=!1;isChildForm=!1;advancedFieldsVisible=!1;_originalFormFields=void 0;_originalFormFieldsCol2=void 0;_form;readOnlyNameAndKey=!0;setForm(){var t=this;return z(function*(){const e=Object.keys(t.form.view),n=Object.values(t.form.view).filter(l=>l.parentRowName);t.additionalActions=t.form.formAdditionalActions,t._formConditionals=t.form.conditionalFields,t.fields=t.form.formFields.map(l=>{let d=n.filter(f=>f.parentRowName==l);if(d.length>0)return{name:l,childFields:d,label:"",fieldType:"ComponentRow",isUserEditable:!0,isVisible:!0,isEnabled:!0,isReferenceField:!1,isFileUploadImage:!1};if(!e.some(f=>f.toLowerCase()===l.toLocaleLowerCase())&&!n.some(f=>f.parentRowName==l))throw new Error(`Field ${l} does not exist on the view. And is not a parent row: ${n.some(f=>f.parentRowName==l)}`);return t.form.view[Qn.toCamelCase(l)]}),t.fieldsCol2=t.form.formFieldsCol2?t.form.formFieldsCol2.map(l=>{if(e.some(d=>d.toLowerCase()===l.toLocaleLowerCase()))return t.form.view[Qn.toCamelCase(l)]}):void 0,t.form.formFieldsBottom&&(t.fieldsBottom=t.form.formFieldsBottom.map(l=>{if(e.some(d=>d.toLowerCase()===l.toLocaleLowerCase()))return t.form.view[Qn.toCamelCase(l)]})),t.form.formFieldsTab&&(t.fieldsBottom=t.form.formFieldsTab.map(l=>{if(e.some(d=>d.toLowerCase()===l.toLocaleLowerCase()))return t.form.view[Qn.toCamelCase(l)]})),t.form.formFieldsSimple&&(t.fieldsSimple=t.form.formFieldsSimple.map(l=>{let d=n.filter(f=>f.parentRowName==l);if(d.length>0){let f={name:l,childFields:d,label:"",fieldType:"ComponentRow",isUserEditable:!0,isVisible:!0,isEnabled:!0,isReferenceField:!1,isFileUploadImage:!1};return console.log(f),f}return e.some(f=>f.toLowerCase()===l.toLocaleLowerCase())?t.form.view[Qn.toCamelCase(l)]:void 0}),console.log(t.fieldsSimple)),console.log("SET FC",t._formConditionals,t.form.conditionalFields);for(let l of t.fields)l.internalValueChanged=d=>t.fieldChanged(d);if(t.fieldsCol2)for(let l of t.fieldsCol2)l.internalValueChanged=d=>t.fieldChanged(d);let r=window.location.pathname,o=r.substring(1).split("/");t.form.isEditing&&t.mruService.addMRU({name:t.title,type:t.form.modelTitle,moduleKey:"public",icon:t.form.model.icon??t.form.icon??"icon-ae-document",summary:t.form.modelHelp,route:o,link:r});let s=yield t.favoriteService.getUserFavorites();t.favorite=s.favorites.find(l=>l.link==t.router.url)})()}count=0;get discussionCount(){return this.form.model.discussions.length}autoSaveTimerId;autoSaveHandler(){this.isDirtyCheck()&&this.internalSaveForm(!1,!0)}set form(t){var e=this;if(t&&t.model!=this.model){this.autoSaveTimerId&&window.clearInterval(this.autoSaveTimerId),t.autoSave&&(t.isEditing||t.saveDraft)&&(this.autoSaveTimerId=window.setInterval(z(function*(){yield e.autoSaveHandler()}),this.debug?5e3:t.autoSaveIntervalSections?1e3*t.autoSaveIntervalSections:6e4)),this._form=t,this._form.formHost=this;let r=this.form.model;if(this.form.isEditing){var n=r.name??r.title;this.title=n?`${t.modelTitle} - ${n}`:t.modelTitle}else this.title=`${t.modelTitle} - New`;if(r.icon?this.formIcon=r.icon:t.icon&&(this.formIcon=t.icon),this.help=t.modelHelp,this.isEditing=t.isEditing,this._saveUrl=t.saveUrl,this._updateUrl=t.updateUrl,!r.isDraft&&t.isEditing&&this.appServices.isDesktop()&&this.readOnlyNameAndKey){let o=this.form.formFields.findIndex(a=>"key"===a);-1!=o&&(this.readOnlyNameAndKey&&this.form.formFields.splice(o,1),this._nameKeyFields.push(this.form.view.key)),o=this.form.formFields.findIndex(a=>"name"===a),-1!=o&&(this.form.formFields.splice(o,1),this._nameKeyFields.push(this.form.view.name)),this.form.formFieldsSimple&&(o=this.form.formFieldsSimple?.findIndex(a=>"name"===a),-1!=o&&this.form.formFieldsSimple.splice(o,1),o=this.form.formFieldsSimple?.findIndex(a=>"key"===a),-1!=o&&this.form.formFieldsSimple.splice(o,1))}this.hasAdvancedFields=null!=t.formFieldsAdvanced&&t.formFieldsAdvanced.length>0,window.setTimeout(()=>{this.menuService.advancedVisible=this.hasAdvancedFields,this.menuService.saveVisible=!0,this.menuService.cancelVisible=!0,this.menuService.backVisible=!1},100),this.view=t.view,this.model=t.model,this.setForm(),!t.isEditing&&t.autoSave&&(this.model.isDraft=!0),this.modelToView(t.model,this._nameKeyFields)}}get form(){return this._form}isImporting=!1;_model;_nameKeyFields=[];_fields;_fields2;_fieldsBottom;_fieldsSimple;showSimpleView=!1;set fields(t){this._fields=t,this.setReadOnlyKey(),this._model&&this._fields&&this.modelToView(this.model,this.fields)}get fields(){return this._fields}set fieldsSimple(t){this._fieldsSimple=t,this.setReadOnlyKey(),this._model&&this._fieldsSimple&&this.modelToView(this.model,this.fieldsSimple)}get fieldsSimple(){return this._fieldsSimple}set fieldsCol2(t){this._fields2=t,this.setReadOnlyKey(),this._model&&this._fields2&&this.modelToView(this.model,this.fieldsCol2)}get fieldsCol2(){return this._fields2}set fieldsBottom(t){this._fieldsBottom=t,this.setReadOnlyKey(),this._model&&this._fieldsBottom&&this.modelToView(this.model,this._fieldsBottom)}get fieldsBottom(){return this._fieldsBottom}isDirty;isDirtyChanged=new Ae;imported=new Ae;save=new Ae;import;export=new Ae;saved=new Ae;modelUpdated=new Ae;cancel=new Ae;formAction=new Ae;setReadOnlyKey(){if(this._fields&&!this.model?.isDraft){let t=this._fields.find(e=>"key"==e.name);t?t.isUserEditable=!this._isEditing||this.allowKeyEdit:this._fields2&&(t=this._fields2.find(e=>"key"==e.name),t&&(t.isUserEditable=!this._isEditing||this.allowKeyEdit))}}getConditional(t){let e,n=t.value;return n||(n=this.model[t.name]),e=this._formConditionals.conditionals.find(r=>r.field==t.name&&((!r.value||"-1"==r.value)&&r.notSet||(r.value==t.value?.toString()||"*"==r.value&&t.value&&"-1"!=t.value)&&!r.notEquals&&!r.notSet||(r.value!==t.value?.toString()&&"-1"!=t.value||"*"==r.value&&!t.value)&&r.notEquals&&!r.notSet)&&(r.forCreate&&!this.isEditing||r.forUpdate&&this.isEditing)),e||(e=this._formConditionals.conditionals.find(r=>!r.field&&(r.forUpdate&&this.isEditing||r.forCreate&&!this.isEditing))),e||this._formConditionals.conditionals.find(r=>r.value==this.model[r.field]),this.debug&&(e?console.log(`hit-conditional-eval: ${e.field} - trigger: ${e.value}, field:${t.name} value: ${t.value}`,e,t):console.log(`miss-conditional-eval: ${t.name} - ${n}`),e&&console.log(e)),e}initialFieldVisibility(t){let e=this.fieldsCol2?this.fields.concat(this.fieldsCol2):this.fields;if(e)if(e=e.concat(this._nameKeyFields),this._formConditionals){for(let n of this._formConditionals.conditionalFields){let r=t.find(o=>o.name==n);r&&(r.isVisible=!1,r.isRequired=!1)}for(let n of e){let r=this.getConditional(n);if(r){for(let o of r.visibleFields){let a=t.find(s=>s.name==o);a&&(a.isVisible=!0)}for(let o of r.requiredFields){let a=t.find(s=>s.name==o);a&&(a.isRequired=!0,a.requiredMessage=`${a.label} is a required field.`)}for(let o of r.readOnlyFields){let a=t.find(s=>s.name==o);a&&(a.isUserEditable=!1)}}}}else console.log("initialFieldVisibility - no fc")}handleFieldChanged(t,e){if(!t)return;let n=this.fieldsCol2?this.fields.concat(this.fieldsCol2):this.fields;if(n=n.concat(this._nameKeyFields),this._formConditionals){for(let r of this._formConditionals.conditionalFields){let o=e.find(a=>a.name==r);o&&(o.isVisible=!1,o.isRequired=!1)}for(let r of n){let o=this.getConditional(r);if(o){for(let a of o.visibleFields){let s=e.find(l=>l.name==a);s&&(s.isVisible=!0)}for(let a of o.requiredFields){let s=e.find(l=>l.name==a);s&&(s.isRequired=!0,s.requiredMessage=`${s.label} is a required field.`)}for(let a of o.readOnlyFields){let s=e.find(l=>l.name==a);s&&(s.isUserEditable=!1)}}}}if("name"==t.name){let r=e.find(a=>"key"==a.name);if(r&&!r.value&&t.value){let a=t.value;a=a.replaceAll(/[^a-zA-Z0-9]/g,""),a=a.toLowerCase(),r.value=a,r.propertyChanged&&r.propertyChanged(r)}let o=e.find(a=>"title"==a.name);o&&!o.value&&t.value&&(o.value=t.value,o.propertyChanged&&o.propertyChanged(r))}this.isDirtyCheck()}fieldChanged(t){this.handleFieldChanged(t,this.fields),this.handleFieldChanged(t,this._nameKeyFields),this.fieldsCol2&&this.handleFieldChanged(t,this.fieldsCol2),this.fieldsBottom&&this.handleFieldChanged(t,this.fieldsBottom)}showHelpDialog(){this.modalService.open(lv,{size:"lg"}).componentInstance.modelName=this.form.modelName}showError(t){}fileOverBase(t){this.hasBaseDropZoneOver=t}getLatestModel(){var t=this;return z(function*(){let e={};if(t.validate())return t.viewToModel(e,t.fields),t.viewToModel(e,t._nameKeyFields),t.fieldsCol2&&t.viewToModel(e,t.fieldsCol2),t.fieldsBottom&&t.viewToModel(e,t.fieldsBottom),e;console.log("is not valid.")})()}saveForm(t=!0,e=!1){var n=this;return z(function*(){return yield n.internalSaveForm(t,!1)})()}internalSaveForm(t,e,n=!1){var r=this;return z(function*(){if(r.autoSave){if(r.model.isDraft||r.validate()){let o=r.model.isDraft;e||(r.model.isDraft=!1),r.viewToModel(r.model,r.fields),r.viewToModel(r.model,r._nameKeyFields),r.fieldsCol2&&r.viewToModel(r.model,r.fieldsCol2),r.fieldsBottom&&r.viewToModel(r.model,r.fieldsBottom);let a=null;if(!r.isChildForm)if(r.isEditing&&r._updateUrl)if(a=yield r.nuviotClient.updateWithResponse(r._updateUrl,r.model,!e),!a.successful&&o)r.model.isDraft=!0;else{r.isDirty=!1,r.model.lastUpdatedDate=(new Date).toISOString();for(let s in r.form.view)r.form.view[s].isDirty=!1}else if(!r.isEditing&&r._saveUrl)if(a=yield r.nuviotClient.insert(r._saveUrl,r.model,!e),!a.successful&&o)r.model.isDraft=!0;else{r.isDirty=!1,r.isEditing=!0,r.form.isEditing=!0,r.model.lastUpdatedDate=(new Date).toISOString();for(let s in r.form.view)r.form.view[s].isDirty=!1}else if(t)return r.saved.emit(a),r.isEditing=!0,r.form.isEditing=!0,!0;return!(!r.isChildForm&&null!=a&&!a.successful||(console.log("saved successfully.",a),t?(console.log("saved successfully.",a),r.didSave(),r.saved.emit(a)):r.modelUpdated?.emit(r.model),r.isEditing=!0,r.form.isEditing=!0,0))}return console.log("is not valid."),!1}return r.save.emit(null),!0})()}cancelForm(){var t=this;if(this.isDirtyCheck()){const e=this.modalService.open(xl,{size:"lg"}).componentInstance;e.title="Are you sure?",e.content="Any unsaved changes will be lost.",e.confirmButtonText="Confirm",e.confirmationMessage="Click 'Confirm' to leave without saving.",e.cancelButtonText="Cancel",e.isPermanent=!1,e.confirmationResult.subscribe(function(){var n=z(function*(r){r&&t.cancel.emit(null)});return function(r){return n.apply(this,arguments)}}())}else this.cancel.emit(null)}exportForm(){this.exportObjectName?window.open(`/api/dataservices/yaml/${this.exportObjectName}/${this.model.id}/generate`):this.export&&this.export.emit(null)}importForm(){this.import?this.import.emit(null):this.isImporting=!this.isImporting,console.log("Importing",this.isImporting)}showAlert(t,e,n){}throwException(t){throw this.showAlert("Messages.SystemError","Messages.FatalError - "+t.message),t}canClose(){return!this.isDirtyCheck()}validate(){let t=!0;return this.fields.forEach(e=>{if(e.host){let n=e.host;const r=n.validate();this.debug&&console.log(n.showValidationErrors,n.field.label,n.field.value),this.debug&&!r&&console.log(e.name+" is not valid - col1"),t=t&&r}else console.warn("host is null, not validating",e.name)}),null!=this.fieldsCol2&&this.fieldsCol2.forEach(e=>{if(e.host){let n=e.host;const r=e.host.validate();this.debug&&console.log(n.showValidationErrors,n.field.label,n.field.value),this.debug&&!r&&console.log(e.name+" is not valid - col2"),t=t&&r}}),t}getIdParamName(){return"id"}getFields(){return null}getFieldsCol2(){return null}getNewUrl(){return null}getLoadUrl(t){return null}propertyChanged(t){}postLoad(){}didSave(){}didCancel(){}isDirtyCheck(){var t=this.isDirty;return this.isDirty=!1,this._isDirtyCheck(this._fields)&&(this.isDirty=!0),this._fields2&&this._isDirtyCheck(this._fields2)&&(this.isDirty=!0),this._fieldsBottom&&this._isDirtyCheck(this._fieldsBottom)&&(this.isDirty=!0),t!=this.isDirty&&this.isDirtyChanged.emit(this.isDirty),this.isDirty}isPickerFieldEmpty(t){return"-1"===t||null==t||"-1"===t?.id}_isDirtyCheck(t){if(this.model)for(const e of t){const n=this.model[e.name];let r=e.value;if(e.isEnabled&&e.isUserEditable)if("EntityHeaderPicker"===e.fieldType||"CustomerPicker"===e.fieldType||"ContactPicker"===e.fieldType||"ProductPicker"===e.fieldType||"Custom"===e.fieldType&&"componentpicker"==e.customFieldType||"UserPicker"===e.fieldType||"Picker"===e.fieldType)if(n&&r){if(n.id!==r&&n.id!==r.id&&n.key!=r)return this.debug&&console.log("path 1",e.name,n,r),this.isDirty=!0,!0}else{if(this.isPickerFieldEmpty(n)&&!this.isPickerFieldEmpty(r))return this.debug&&console.log("path 2 - value cleared",e.name),this.isDirty=!0,!0;if(!this.isPickerFieldEmpty(n)&&this.isPickerFieldEmpty(r))return this.debug&&console.log("path 3 - new value set",e.name),this.isDirty=!0,!0}else if("ChildList"===e.fieldType||"ChildListInline"===e.fieldType||"ChildListInlinePicker"===e.fieldType||"ChildListSiteContentPicker"===e.fieldType||"MediaResources"===e.fieldType){if(e.isDirty)return this.isDirty=!0,!0}else if("NodeScript"!==e.fieldType){if(n&&!r)return this.debug&&console.log("path 4",e.name),this.isDirty=!0,!0;if(0===n&&"0"===r)continue;if("-1"===r&&(r=null),!n&&0!==n&&r)return this.debug&&console.log("path 5",e.name,n,r),this.isDirty=!0,!0;if(n&&r&&n.toString()!==r.toString()&&n.id!=r)return this.debug&&console.log("path 6",e.name,n,r),this.isDirty=!0,!0}}return!1}modelToView(t,e){if(this._formConditionals)for(let n of this._formConditionals.conditionalFields){let r=e.find(o=>o.name==n);r&&(r.isVisible=!1)}for(const n of e){const r=t[n.name];if("FileUpload"!==n.fieldType&&"MediaResourceUpload"!==n.fieldType)if(typeof r<"u"&&null!==r)if("EntityHeaderPicker"===n.fieldType||"ProductPicker"===n.fieldType||"Custom"===n.fieldType&&"componentpicker"==n.customFieldType||"Custom"===n.fieldType&&"diagram"==n.customFieldType||"CustomerPicker"===n.fieldType||"ContactPicker"===n.fieldType||"Point2D"===n.fieldType||"DevicePicker"===n.fieldType||"Point2DSize"===n.fieldType||"Point3D"===n.fieldType||"Point3DSize"===n.fieldType||"UserPicker"===n.fieldType){const o=r;n.value=o,n.display=o.text}else"Picker"===n.fieldType||"Category"===n.fieldType?n.value=r.id:"Integer"===n.fieldType||"Decimal"===n.fieldType?n.value=r.toString():"Date"===n.fieldType||"DateTime"==n.fieldType?r?(n.display=new Date(r),n.value=r):(n.display=null,n.value=null):n.value=r.text?r.text:r;else"NodeScript"===n.fieldType?n.value=r:"Picker"===n.fieldType?n.value="-1":(n.value=null,n.display="");else n.value=r;this.initialFieldVisibility(this.fields),this.fieldsCol2&&this.initialFieldVisibility(this.fieldsCol2),this.fieldsBottom&&this.initialFieldVisibility(this.fieldsBottom),n.childFields&&n.childFields.length>0&&this.modelToView(t,n.childFields)}this.form?.onModelToView&&this.form?.onModelToView()}viewToModel(t,e){for(const n of e){const r=n.name;if(n.isUserEditable&&"NodeScript"!==n.fieldType&&n.isUserEditable&&"ChildList"!==n.fieldType)if("CheckBox"===n.fieldType)t[r]=!!n.value;else if(null!==n.value)if("EntityHeaderPicker"===n.fieldType||"CustomerPicker"===n.fieldType||"ProductPicker"===n.fieldType||"Point2D"===n.fieldType||"Point2DSize"===n.fieldType||"Point3D"===n.fieldType||"Point3DSize"===n.fieldType||"Custom"===n.fieldType&&"diagram"==n.customFieldType||"Custom"===n.fieldType&&"componentpicker"==n.customFieldType||"UserPicker"===n.fieldType)t[r]=n.value;else if("Picker"===n.fieldType||"Category"===n.fieldType)if(n.value&&"-1"!==n.value){this.debug&&console.log("picker",r,n.value);const o=n.options.find(a=>a.key===n.value||a.id===n.value);o&&(t[r]=o.id&&o.key?{id:o.id,key:o.key,text:o.label}:{id:o.key,text:o.label})}else t[r]=null;else if("Date"===n.fieldType||"DateTime"===n.fieldType){let o=Qn.toDateOnly(new Date(n.value));this.debug&&console.log(o),t[r]=o}else"Integer"===n.fieldType?t[r]=parseInt(n.value):"Decimal"===n.fieldType?t[r]=parseFloat(n.value):(console.log("mapping",r,n.value),t[r]=n.value);else"FileUpload"!==n.fieldType&&n.isVisible&&(t[r]=void 0);else"NodeScript"===n.fieldType&&(t[r]=n.value);n.childFields&&n.childFields.length>0&&this.viewToModel(t,n.childFields)}this.form?.onViewToModel&&this.form?.onViewToModel()}updateModel(){return!!this.validate()&&(this.viewToModel(this.model,this.fields),this.fieldsCol2&&this.viewToModel(this.model,this.fieldsCol2),this.fieldsBottom&&this.viewToModel(this.model,this.fieldsBottom),!0)}toggleAdvancedFields(){this.viewToModel(this.model,this.fields),this.fieldsCol2&&this.viewToModel(this.model,this.fieldsCol2),this.fieldsBottom&&this.viewToModel(this.model,this.fieldsBottom),this.form.formFields!==this.form.formFieldsAdvanced?(this._originalFormFields=this.form.formFields,this._originalFormFieldsCol2=this.form.formFieldsCol2,this.form.formFields=this.form.formFieldsAdvanced,this.form.formFieldsCol2=this.form.formFieldsAdvancedCol2,this.advancedFieldsVisible=!0):(this.form.formFields=this._originalFormFields,this.form.formFieldsCol2=this._originalFormFieldsCol2,this.advancedFieldsVisible=!1),this.setForm()}addFavorite(){let e=window.location.pathname.substring(1).split("/");var n=this.form.model.name;this.favorite={id:Qn.newGuid(),name:n,type:this.form.modelTitle,moduleKey:"public",icon:this.formIcon,summary:this.form.modelHelp,route:e,link:this.router.url},this.favoriteService.addUserFavorites(this.favorite)}showDiscussions(){this.modalService.open(EC,{size:"xl"}).componentInstance.form=this.form}clearFavorite(){this.favoriteService.removeUserFavorite(this.favorite.id),this.favorite=void 0}performAction(t){this.formAction?.emit(t.key)}static \u0275fac=function(e){return new(e||cv)(U(An),U(bi),U(Ti),U(Hd),U(Dc),U(Mc),U(Cl),U(zn),U(mh))};static \u0275cmp=Be({type:cv,selectors:[["ng-component"]],inputs:{headerExtension:"headerExtension",model:"model",isEditing:"isEditing",allowKeyEdit:"allowKeyEdit",title:"title",summary:"summary",help:"help",isBusy:"isBusy",hideToolBar:"hideToolBar",canExport:"canExport",inPlaceEditing:"inPlaceEditing",toggleEditorVisibility:"toggleEditorVisibility",editorVisible:"editorVisible",canImport:"canImport",importObjectName:"importObjectName",exportObjectName:"exportObjectName",allowSaveWithOutClose:"allowSaveWithOutClose",autoSave:"autoSave",isChildForm:"isChildForm",readOnlyNameAndKey:"readOnlyNameAndKey",form:"form",showSimpleView:"showSimpleView",fields:"fields",fieldsSimple:"fieldsSimple",fieldsCol2:"fieldsCol2",fieldsBottom:"fieldsBottom"},outputs:{isDirty:"isDirty",isDirtyChanged:"isDirtyChanged",imported:"imported",save:"save",import:"import",export:"export",saved:"saved",modelUpdated:"modelUpdated",cancel:"cancel",formAction:"formAction"},decls:1,vars:0,template:function(e,n){1&e&&H(0,"div")},encapsulation:2})}function p_e(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g().toggleAdvancedFields())}),H(1,"i",8),m(2,"Standard Fields"),c()}}function f_e(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g().toggleAdvancedFields())}),H(1,"i",8),m(2,"Advanced Fields"),c()}}function g_e(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){R(e);const r=g().$implicit;return L(g().performAction(r))}),H(1,"i"),m(2),c()}if(2&i){const e=g().$implicit;h(1),gl("fa-solid ",e.icon,""),h(1),Re(e.title)}}function m_e(i,t){if(1&i&&(u(0,"span",9),w(1,g_e,3,4,"span",1),c()),2&i){const e=t.$implicit,n=g();h(1),p("ngIf",n.isEditing&&e.forEdit||!n.isEditing&&e.forCreate)}}function __e(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g().saveForm(!0))}),H(1,"i",10),m(2,"Save and Close"),c()}}function v_e(i,t){1&i&&(u(0,"span",12),m(1,"(*)"),c())}function y_e(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g().saveForm(!1))}),H(1,"i",10),m(2,"Save"),w(3,v_e,2,0,"span",11),c()}if(2&i){const e=g();h(3),p("ngIf",e.isDirty)}}function b_e(i,t){1&i&&(u(0,"span",12),m(1,"(*)"),c())}function C_e(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g().saveForm(!0))}),H(1,"i",10),m(2,"Save"),w(3,b_e,2,0,"span",11),c()}if(2&i){const e=g();h(3),p("ngIf",e.isDirty)}}function w_e(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g().cancelForm())}),H(1,"i",13),m(2,"Cancel"),c()}}function D_e(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g().showDiscussions())}),H(1,"i",14),m(2),c()}if(2&i){const e=g();h(2),Ke("Discussions (",e.discussionCount,")")}}function M_e(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g().exportForm())}),H(1,"i",15),m(2,"Export"),c()}}function x_e(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g().importForm())}),H(1,"i",16),m(2,"Import"),c()}}function k_e(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){R(e);const r=g();return L(r.editorVisible=!r.editorVisible)}),H(1,"i",17),m(2,"Edit"),c()}}function T_e(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){R(e);const r=g();return L(r.editorVisible=!r.editorVisible)}),H(1,"i",18),m(2,"Close"),c()}}function S_e(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g(3).addFavorite())}),H(1,"i",51),c()}}function E_e(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g(3).clearFavorite())}),H(1,"i",52),c()}}function A_e(i,t){if(1&i&&(u(0,"span",53),m(1),Qt(2,"lastAccessPrinter"),c()),2&i){const e=g(3);h(1),Ke("* draft ",Xt(2,1,e.model.lastUpdatedDate),"")}}function I_e(i,t){if(1&i&&(u(0,"p"),m(1),c()),2&i){const e=g(3);h(1),Ke(" ",e.form.modelHelp," ")}}function F_e(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",24)(2,"h1")(3,"i",25),N("click",function(){return R(e),L(g(2).cancelForm())}),c(),u(4,"span",26),H(5,"span",27)(6,"span",28)(7,"span",29)(8,"span",30)(9,"span",31)(10,"span",32)(11,"span",33)(12,"span",34)(13,"span",35)(14,"span",36)(15,"span",37)(16,"span",38)(17,"span",39)(18,"span",40)(19,"span",41)(20,"span",42)(21,"span",43)(22,"span",44)(23,"span",45)(24,"span",46)(25,"span",47)(26,"span",48),c(),u(27,"span",49),m(28),c(),w(29,S_e,2,0,"span",1),w(30,E_e,2,0,"span",1),w(31,A_e,3,3,"span",50),c(),w(32,I_e,2,1,"p",20),H(33,"hr"),c()()}if(2&i){const e=g(2);h(4),p("className",e.formIcon),h(24),Ke(" ",e.title," "),h(1),p("ngIf",!e.favorite&&e.isEditing),h(1),p("ngIf",e.favorite&&e.isEditing),h(1),p("ngIf",e.model.isDraft&&e.form.saveDraft),h(1),p("ngIf",(null==e.form?null:e.form.modelHelp)&&!e.inPlaceEditing)}}function P_e(i,t){if(1&i&&(u(0,"div",54)(1,"h5",55),m(2),c()()),2&i){const e=g(2);h(2),Re(e.title)}}function R_e(i,t){if(1&i&&H(0,"app-name",57),2&i){const e=g(3);p("field",e.view.name)("model",e.model)("view",e.view)}}function L_e(i,t){if(1&i&&H(0,"app-key",57),2&i){const e=g(3);p("field",e.view.key)("model",e.model)("view",e.view)}}function O_e(i,t){if(1&i&&(u(0,"div",55),w(1,R_e,1,3,"app-name",56),w(2,L_e,1,3,"app-key",56),c()),2&i){const e=g(2);h(1),p("ngIf",e.view.name),h(1),p("ngIf",e.view.key&&e.view.key.value)}}function N_e(i,t){if(1&i&&(u(0,"div",63),m(1),c()),2&i){const e=g(3);h(1),Re(e.summary)}}const B_e=function(i){return{width:i}};function V_e(i,t){if(1&i&&(u(0,"div"),m(1),u(2,"div",69),H(3,"div",70),c()()),2&i){const e=g(4);h(1),Ke(" ",e.fileNameOrStatus," "),h(2),p("ngStyle",Ct(2,B_e,e.uploader.progress+"%"))}}const H_e=function(i){return{"nv-file-over":i}};function Y_e(i,t){if(1&i){const e=pe();u(0,"div",64)(1,"span",65),N("fileOver",function(r){return R(e),L(g(3).fileOverBase(r))}),H(2,"i",66),c(),u(3,"span",67)(4,"span"),m(5,"Select File"),c(),H(6,"input",68),c(),w(7,V_e,4,4,"div",20),c()}if(2&i){const e=g(3);h(1),p("ngClass",Ct(4,H_e,e.hasBaseDropZoneOver))("uploader",e.uploader),h(5),p("uploader",e.uploader),h(1),p("ngIf",e.fileNameOrStatus)}}function U_e(i,t){if(1&i&&H(0,"app-form-field",78),2&i){const e=t.$implicit,n=g(5);p("field",e)("model",n.model)("view",n.view)("form",n.form)("host",n)}}function j_e(i,t){if(1&i&&H(0,"app-form-field",79),2&i){const e=t.$implicit,n=g(5);p("field",e)("model",n.model)("form",n.form)("host",n)("view",n.view)}}function $_e(i,t){if(1&i&&H(0,"app-form-field",79),2&i){const e=t.$implicit,n=g(5);p("field",e)("model",n.model)("form",n.form)("host",n)("view",n.view)}}function z_e(i,t){if(1&i&&(u(0,"div",73)(1,"div",74),w(2,U_e,1,5,"app-form-field",75),Ei(3,1,["style","display:inline"]),c(),u(4,"div",74),w(5,j_e,1,5,"app-form-field",76),Ei(6,2,["style","display:inline"]),c(),u(7,"div",77),w(8,$_e,1,5,"app-form-field",76),c()()),2&i){const e=g(4);h(2),p("ngForOf",e.fields),h(3),p("ngForOf",e.fieldsCol2),h(3),p("ngForOf",e.fieldsBottom)}}function W_e(i,t){if(1&i&&H(0,"app-form-field",78),2&i){const e=t.$implicit,n=g(5);p("field",e)("model",n.model)("view",n.view)("form",n.form)("host",n)}}function G_e(i,t){if(1&i&&H(0,"app-form-field",81),2&i){const e=t.$implicit,n=g(5);p("field",e)("model",n.model)("host",n)("form",n.form)("view",n.view)}}function q_e(i,t){if(1&i&&(u(0,"div",77),w(1,W_e,1,5,"app-form-field",75),Ei(2,3,["style","display:inline"]),w(3,G_e,1,5,"app-form-field",80),c()),2&i){const e=g(4);h(1),p("ngForOf",e.fields),h(2),p("ngForOf",e.fieldsBottom)}}function K_e(i,t){if(1&i&&H(0,"app-form-field",78),2&i){const e=t.$implicit,n=g(5);p("field",e)("model",n.model)("view",n.view)("form",n.form)("host",n)}}function Z_e(i,t){if(1&i&&(u(0,"div"),w(1,K_e,1,5,"app-form-field",75),c()),2&i){const e=g(4);h(1),p("ngForOf",e.fieldsSimple)}}function Q_e(i,t){if(1&i&&(u(0,"div"),w(1,z_e,9,3,"div",71),w(2,q_e,4,2,"div",72),w(3,Z_e,2,1,"div",20),c()),2&i){const e=g(3);h(1),p("ngIf",e.fieldsCol2&&!e.showSimpleView),h(1),p("ngIf",!e.fieldsCol2&&!e.showSimpleView),h(1),p("ngIf",e.showSimpleView)}}function X_e(i,t){if(1&i&&(u(0,"div",58)(1,"div",59),H(2,"div",60),w(3,N_e,2,1,"div",61),Ei(4),w(5,Y_e,8,6,"div",62),w(6,Q_e,4,3,"div",20),c()()),2&i){const e=g(2);h(3),p("ngIf",e.summary),h(2),p("ngIf",e.uploader&&e.isImporting),h(1),p("ngIf",!e.isImporting&&e.editorVisible)}}function J_e(i,t){if(1&i){const e=pe();u(0,"div",19),N("cancel",function(r){return R(e),L(g().weGotACancel(r))}),w(1,F_e,34,6,"div",20),w(2,P_e,3,1,"div",21),w(3,O_e,3,2,"div",22),w(4,X_e,7,3,"div",23),c()}if(2&i){const e=g();h(1),p("ngIf",!e.inPlaceEditing&&!e.toggleEditorVisibility),h(1),p("ngIf",e.inPlaceEditing),h(1),p("ngIf",(null==e.form?null:e.form.isEditing)&&!(null!=e.model&&e.model.isDraft)&&e.appServices.isDesktop()),h(1),p("ngIf",!e.hideToolBar)}}function eve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g(3).addFavorite())}),H(1,"i",51),c()}}function tve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g(3).clearFavorite())}),H(1,"i",52),c()}}function nve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g(3).toggleAdvancedFields())}),H(1,"i",8),m(2,"Standard Fields"),c()}}function ive(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g(3).toggleAdvancedFields())}),H(1,"i",8),m(2,"Advanced Fields"),c()}}function rve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){R(e);const r=g().$implicit;return L(g(3).performAction(r))}),H(1,"i"),m(2),c()}if(2&i){const e=g().$implicit;h(1),gl("fa-solid ",e.icon,""),h(1),Re(e.title)}}function ove(i,t){if(1&i&&(u(0,"span",9),w(1,rve,3,4,"span",1),c()),2&i){const e=t.$implicit,n=g(3);h(1),p("ngIf",n.isEditing&&e.forEdit||!n.isEditing&&e.forCreate)}}function ave(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g(3).saveForm(!0))}),H(1,"i",10),m(2,"Save and Close"),c()}}function sve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g(3).saveForm(!1))}),H(1,"i",10),m(2,"Save"),c()}}function lve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g(3).saveForm(!0))}),H(1,"i",10),m(2,"Save"),c()}}function cve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g(3).exportForm())}),H(1,"i",15),m(2,"Export"),c()}}function dve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g(3).importForm())}),H(1,"i",16),m(2,"Import"),c()}}function uve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){R(e);const r=g(3);return L(r.editorVisible=!r.editorVisible)}),H(1,"i",17),m(2,"Edit"),c()}}function hve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){R(e);const r=g(3);return L(r.editorVisible=!r.editorVisible)}),H(1,"i",18),m(2,"Close"),c()}}function pve(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",84)(2,"h1")(3,"i",25),N("click",function(){return R(e),L(g(2).cancelForm())}),c(),u(4,"span",26),H(5,"span",27)(6,"span",28)(7,"span",29)(8,"span",30)(9,"span",31)(10,"span",32)(11,"span",33)(12,"span",34)(13,"span",35)(14,"span",36)(15,"span",37)(16,"span",38)(17,"span",39)(18,"span",40)(19,"span",41)(20,"span",42)(21,"span",43)(22,"span",44)(23,"span",45)(24,"span",46)(25,"span",47)(26,"span",48),c(),u(27,"span",49),m(28),c(),w(29,eve,2,0,"span",1),w(30,tve,2,0,"span",1),c(),H(31,"hr"),u(32,"div",0),w(33,nve,3,0,"span",1),w(34,ive,3,0,"span",1),w(35,ove,2,1,"span",2),w(36,ave,3,0,"span",1),w(37,sve,3,0,"span",1),w(38,lve,3,0,"span",1),u(39,"span",3),N("click",function(){return R(e),L(g(2).showHelpDialog())}),H(40,"i",4),m(41,"Help"),c(),w(42,cve,3,0,"span",1),w(43,dve,3,0,"span",1),w(44,uve,3,0,"span",1),w(45,hve,3,0,"span",1),c()()()}if(2&i){const e=g(2);h(4),p("className",e.formIcon),h(24),Ke(" ",e.title," "),h(1),p("ngIf",!e.favorite&&e.isEditing),h(1),p("ngIf",e.favorite&&e.isEditing),h(3),p("ngIf",e.advancedFieldsVisible&&e.hasAdvancedFields),h(1),p("ngIf",!e.advancedFieldsVisible&&e.hasAdvancedFields),h(1),p("ngForOf",e.additionalActions),h(1),p("ngIf",e.allowSaveWithOutClose),h(1),p("ngIf",e.allowSaveWithOutClose),h(1),p("ngIf",!e.allowSaveWithOutClose),h(4),p("ngIf",e.isEditing&&(e.canExport||e.exportObjectName)),h(1),p("ngIf",e.importObjectName),h(1),p("ngIf",e.toggleEditorVisibility&&!e.editorVisible),h(1),p("ngIf",e.toggleEditorVisibility&&e.editorVisible)}}function fve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g(3).saveForm(!0))}),H(1,"i",10),m(2,"Save and Close"),c()}}function gve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g(3).saveForm(!1))}),H(1,"i",10),m(2,"Save"),c()}}function mve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){return R(e),L(g(3).saveForm(!0))}),H(1,"i",10),m(2,"Save"),c()}}function _ve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){R(e);const r=g(3);return L(r.editorVisible=!r.editorVisible)}),H(1,"i",17),m(2,"Edit"),c()}}function vve(i,t){if(1&i){const e=pe();u(0,"span",3),N("click",function(){R(e);const r=g(3);return L(r.editorVisible=!r.editorVisible)}),H(1,"i",18),m(2,"Close"),c()}}function yve(i,t){if(1&i){const e=pe();u(0,"div",85)(1,"div",0),w(2,fve,3,0,"span",1),w(3,gve,3,0,"span",1),w(4,mve,3,0,"span",1),u(5,"span",3),N("click",function(){return R(e),L(g(2).cancelForm())}),H(6,"i",13),m(7,"Cancel"),c(),u(8,"span",3),N("click",function(){return R(e),L(g(2).showHelpDialog())}),H(9,"i",4),m(10,"Help"),c(),w(11,_ve,3,0,"span",1),w(12,vve,3,0,"span",1),c()()}if(2&i){const e=g(2);h(2),p("ngIf",e.allowSaveWithOutClose),h(1),p("ngIf",e.allowSaveWithOutClose),h(1),p("ngIf",!e.allowSaveWithOutClose),h(7),p("ngIf",e.toggleEditorVisibility&&!e.editorVisible),h(1),p("ngIf",e.toggleEditorVisibility&&e.editorVisible)}}function bve(i,t){if(1&i&&H(0,"app-name",57),2&i){const e=g(3);p("field",e.view.name)("model",e.model)("view",e.view)}}function Cve(i,t){if(1&i&&H(0,"app-key",57),2&i){const e=g(3);p("field",e.view.key)("model",e.model)("view",e.view)}}function wve(i,t){if(1&i&&(u(0,"div",55),w(1,bve,1,3,"app-name",56),w(2,Cve,1,3,"app-key",56),c()),2&i){const e=g(2);h(1),p("ngIf",e.view.name),h(1),p("ngIf",e.view.key&&e.view.key.value)}}function Dve(i,t){if(1&i&&(u(0,"div",82),w(1,pve,46,14,"div",20),w(2,yve,13,5,"div",83),w(3,wve,3,2,"div",22),c()),2&i){const e=g();h(1),p("ngIf",!e.inPlaceEditing&&!e.toggleEditorVisibility),h(1),p("ngIf",e.inPlaceEditing),h(1),p("ngIf",(null==e.form?null:e.form.isEditing)&&!e.model.isDraft&&e.appServices.isDesktop())}}function Mve(i,t){if(1&i&&H(0,"app-form-field",88),2&i){const e=t.$implicit,n=g(2);p("form",n.form)("host",n)("field",e)("model",n.model)("view",n.view)}}function xve(i,t){if(1&i&&(u(0,"div",86),w(1,Mve,1,5,"app-form-field",87),Ei(2,4,["style","display:inline"]),c()),2&i){const e=g();h(1),p("ngForOf",e.fields)}}const kve=[[["header"]],[["","id","col1-extras"]],[["","id","col2-extras"]],[["","id","extras"]],[["","id","col1-extras"]]],Tve=["header","#col1-extras","#col2-extras","#extras","#col1-extras"];class Al extends cv{constructor(t,e,n,r,o,a,s,l,d){super(t,e,n,r,o,a,s,l,d)}weGotACancel(t){t.stopPropagation(),console.log("Cancel intercepted",console.log(t))}static \u0275fac=function(e){return new(e||Al)(U(An),U(bi),U(Ti),U(Hd),U(Dc),U(Mc),U(Cl),U(zn),U(mh))};static \u0275cmp=Be({type:Al,selectors:[["app-form"]],features:[st],ngContentSelectors:Tve,decls:19,vars:15,consts:[[1,"panel-actions"],["class","action",3,"click",4,"ngIf"],["class","action",4,"ngFor","ngForOf"],[1,"action",3,"click"],[1,"fa-solid","fa-question"],["class","panel","class","full-view",3,"cancel",4,"ngIf"],["class","panel","class","phone-view",4,"ngIf"],["class","panel-content phone-view","style","overflow-y: auto;height: calc(100%);",4,"ngIf"],[1,"fa","fa-gear"],[1,"action"],[1,"fa-solid","fa-save"],["style","font-size: larger;",4,"ngIf"],[2,"font-size","larger"],[1,"fa-solid","fa-times-circle"],[1,"fa-solid","fa-comments"],[1,"fa","fa-download"],[1,"fa","fa-upload"],[1,"fa-solid","fa-pencil"],[1,"fa-solid","fa-close"],[1,"full-view",3,"cancel"],[4,"ngIf"],["style","padding-top:10px;display:flex",4,"ngIf"],["style","margin-left: 20px;",4,"ngIf"],["class","panel-header full-view",4,"ngIf"],[2,"margin-left","20px","margin-top","5px"],[1,"action","fa","fa-chevron-left",2,"cursor","pointer","font-size","32px",3,"click"],["data-toggle","modal",2,"cursor","pointer","font-size","32px",3,"className"],[1,"path1"],[1,"path2"],[1,"path3"],[1,"path4"],[1,"path5"],[1,"path6"],[1,"path7"],[1,"path8"],[1,"path9"],[1,"path10"],[1,"path11"],[1,"path12"],[1,"path13"],[1,"path14"],[1,"path15"],[1,"path16"],[1,"path17"],[1,"path18"],[1,"path19"],[1,"path20"],[1,"path21"],[1,"path22"],[2,"color","var(--color-primary-80)"],["class","draft",4,"ngIf"],[1,"far","fa-star","action-favorite"],[1,"fa","fa-star","action-favorite"],[1,"draft"],[2,"padding-top","10px","display","flex"],[2,"margin-left","20px"],[3,"field","model","view",4,"ngIf"],[3,"field","model","view"],[1,"panel-header","full-view"],[1,"panel-content",2,"overflow-y","auto","height","calc(100%)"],[2,"clear","both"],["style","margin-bottom:15px",4,"ngIf"],["style","height:120px",4,"ngIf"],[2,"margin-bottom","15px"],[2,"height","120px"],["ng2FileDrop","",1,"well","my-drop-zone",3,"ngClass","uploader","fileOver"],[1,"fa","fa-file-upload"],[1,"fileUpload","btn","btn-primary"],["type","file","ng2FileSelect","",1,"upload",3,"uploader"],[1,"progress"],["role","progressbar",1,"progress-bar",3,"ngStyle"],["class","row","style","margin: 5px;",4,"ngIf"],["class","col-md-12",4,"ngIf"],[1,"row",2,"margin","5px"],[1,"col-md-6"],[3,"field","model","view","form","host",4,"ngFor","ngForOf"],[3,"field","model","form","host","view",4,"ngFor","ngForOf"],[1,"col-md-12"],[3,"field","model","view","form","host"],[3,"field","model","form","host","view"],[3,"field","model","host","form","view",4,"ngFor","ngForOf"],[3,"field","model","host","form","view"],[1,"phone-view"],["style","padding-top:10px",4,"ngIf"],[2,"margin-left","20px","margin-top","20px"],[2,"padding-top","10px"],[1,"panel-content","phone-view",2,"overflow-y","auto","height","calc(100%)"],[3,"form","host","field","model","view",4,"ngFor","ngForOf"],[3,"form","host","field","model","view"]],template:function(e,n){1&e&&(ro(kve),u(0,"div",0),w(1,p_e,3,0,"span",1),w(2,f_e,3,0,"span",1),w(3,m_e,2,1,"span",2),w(4,__e,3,0,"span",1),w(5,y_e,4,1,"span",1),w(6,C_e,4,1,"span",1),w(7,w_e,3,0,"span",1),u(8,"span",3),N("click",function(){return n.showHelpDialog()}),H(9,"i",4),m(10,"Help"),c(),w(11,D_e,3,1,"span",1),w(12,M_e,3,0,"span",1),w(13,x_e,3,0,"span",1),w(14,k_e,3,0,"span",1),w(15,T_e,3,0,"span",1),c(),w(16,J_e,5,4,"div",5),w(17,Dve,4,3,"div",6),w(18,xve,3,1,"div",7)),2&e&&(h(1),p("ngIf",n.advancedFieldsVisible&&n.hasAdvancedFields),h(1),p("ngIf",!n.advancedFieldsVisible&&n.hasAdvancedFields),h(1),p("ngForOf",n.additionalActions),h(1),p("ngIf",n.allowSaveWithOutClose),h(1),p("ngIf",n.allowSaveWithOutClose),h(1),p("ngIf",!n.allowSaveWithOutClose),h(1),p("ngIf",n.inPlaceEditing),h(4),p("ngIf",null==n.form?null:n.form.hasDiscussions),h(1),p("ngIf",n.isEditing&&(n.canExport||n.exportObjectName)),h(1),p("ngIf",n.importObjectName||n.canImport),h(1),p("ngIf",n.toggleEditorVisibility&&!n.editorVisible),h(1),p("ngIf",n.toggleEditorVisibility&&n.editorVisible),h(1),p("ngIf",n.fields),h(1),p("ngIf",n.fields),h(1),p("ngIf",n.phoneView))},styles:["[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}.form-title[_ngcontent-%COMP%]{display:inline-block!important}.menu[_ngcontent-%COMP%]{background-color:var(--color-bg);width:100%}.my-drop-zone[_ngcontent-%COMP%]{border:dotted 3px lightgray;display:block;float:left;margin-right:20px;padding-top:10px;text-align:center;color:var(--color-bg-panel);height:100px;width:100px}.nv-file-over[_ngcontent-%COMP%]{border:dotted 3px red}.another-file-over-class[_ngcontent-%COMP%]{border:dotted 3px green}.fileUpload[_ngcontent-%COMP%]{position:relative;overflow:hidden;margin-top:10px;margin-bottom:10px}.fileUpload[_ngcontent-%COMP%] input.upload[_ngcontent-%COMP%]{position:absolute;top:0;right:0;margin:0;padding:0;font-size:20px;cursor:pointer;opacity:0;filter:alpha(opacity=0)}.form-help[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);margin:10px;border-radius:4px;display:flex;font-size:20px}.draft[_ngcontent-%COMP%]{font-style:italic;font-size:smaller;color:var(--color-accent);margin-left:20px}"]})}function Sve(i,t){1&i&&H(0,"nuv-icon",9),2&i&&p("iconName",g(2).icon)}function Eve(i,t){1&i&&H(0,"i",12)}function Ave(i,t){if(1&i){const e=pe();u(0,"span",10),N("click",function(){return R(e),L(g(2).addItems())}),w(1,Eve,1,0,"i",11),c()}if(2&i){const e=g(2);h(1),p("ngIf",e.canAdd())}}function Ive(i,t){if(1&i&&(u(0,"div",16),H(1,"img",17)(2,"br"),u(3,"div"),m(4,"Please Wait"),c()()),2&i){const e=g(3);h(1),Ms("src","",e.root,"/app/ui-shared/assets/ajax-loader.gif",Yi)}}function Fve(i,t){if(1&i&&(u(0,"option",25),m(1),c()),2&i){const e=t.$implicit;p("value",e.id),h(1),Re(e.text)}}function Pve(i,t){if(1&i){const e=pe();u(0,"div",3)(1,"select",23),N("ngModelChange",function(r){return R(e),L(g(4).selectedCategory=r)})("change",function(){return R(e),L(g(4).applyFilter())}),w(2,Fve,2,2,"option",24),c()()}if(2&i){const e=g(4);h(1),p("ngModel",e.selectedCategory),h(1),p("ngForOf",e.categories)}}function Rve(i,t){if(1&i){const e=pe();u(0,"li",29),N("click",function(){const o=R(e).$implicit;return L(g(5).itemSelectedEvent(o))}),m(1),c()}if(2&i){const e=t.$implicit;h(1),Ke(" ",e.text," ")}}function Lve(i,t){if(1&i&&(u(0,"div",26)(1,"ol",27),w(2,Rve,2,1,"li",28),c()()),2&i){const e=g(4);h(2),p("ngForOf",e.filteredItems)}}function Ove(i,t){if(1&i&&(u(0,"option",34),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e),h(1),Re(e.text)}}function Nve(i,t){if(1&i&&(u(0,"option",34),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e),h(1),Re(e.text)}}function Bve(i,t){if(1&i){const e=pe();u(0,"div",30)(1,"div",31)(2,"h6"),m(3),c(),u(4,"select",32),N("ngModelChange",function(r){return R(e),L(g(4).selectedItem=r)})("change",function(r){return R(e),L(g(4).itemSelectedEvent(r))}),w(5,Ove,2,2,"option",33),c()(),u(6,"div",31)(7,"h6"),m(8),c(),u(9,"select",32),N("ngModelChange",function(r){return R(e),L(g(4).secondItemSelectedItem=r)})("change",function(r){return R(e),L(g(4).secondItemSelected(r))}),w(10,Nve,2,2,"option",33),c()()()}if(2&i){const e=g(4);h(3),Re(e.categoryName),h(1),p("ngModel",e.selectedItem),h(1),p("ngForOf",e.items),h(3),Re(e.valueName),h(1),p("ngModel",e.secondItemSelectedItem),h(1),p("ngForOf",e.secondItems)}}function Vve(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",18),w(2,Pve,3,2,"div",19),u(3,"div",3)(4,"input",20),N("ngModelChange",function(r){return R(e),L(g(3).searchText=r)})("change",function(){return R(e),L(g(3).applyFilter())}),c()()(),w(5,Lve,3,1,"div",21),w(6,Bve,11,6,"div",22),c()}if(2&i){const e=g(3);h(2),p("ngIf",!1),h(2),f0("margin-left:10px;width: 400px; background-image: url('",e.root,"/app/ui-shared/assets/search.png'); background-repeat: no-repeat; background-position: 6px 50%; padding: 7px 8.75px 7px 42px;"),p("ngModel",e.searchText),h(1),p("ngIf",!e.multiPick),h(1),p("ngIf",e.multiPick)}}function Hve(i,t){1&i&&(u(0,"div",35)(1,"h5"),m(2,"There are no items to select from."),c(),m(3," Use the button below to add to the list. "),c())}function Yve(i,t){if(1&i&&(u(0,"div",36)(1,"h5"),m(2,"Sorry can not select right now"),c(),m(3),c()),2&i){const e=g(3);h(3),Ke(" ",e.errorMsg," ")}}function Uve(i,t){if(1&i&&(u(0,"div"),w(1,Ive,5,1,"div",13),w(2,Vve,7,7,"div",7),w(3,Hve,4,0,"div",14),w(4,Yve,4,1,"div",15),c()),2&i){const e=g(2);h(1),p("ngIf",!e.items&&!e.errorMsg),h(1),p("ngIf",e.items&&e.items.length>0&&!e.errorMsg),h(1),p("ngIf",e.items&&0===e.items.length),h(1),p("ngIf",e.errorMsg)}}function jve(i,t){if(1&i){const e=pe();u(0,"div",37)(1,"app-form",38),N("cancel",function(){return R(e),L(g(2).resetModal())})("saved",function(){return R(e),L(g(2).savedItem())}),c()()}if(2&i){const e=g(2);h(1),p("form",e.form)("inPlaceEditing",!0)("autoSave",!0)}}function $ve(i,t){if(1&i){const e=pe();u(0,"div",1)(1,"div",2)(2,"h3",3),w(3,Sve,1,1,"nuv-icon",4),m(4),w(5,Ave,2,1,"span",5),c(),u(6,"i",6),N("click",function(){return R(e),L(g().closeModal())}),c()(),w(7,Uve,5,4,"div",7),w(8,jve,2,3,"div",8),c()}if(2&i){const e=g();h(3),p("ngIf",e.icon),h(1),Ke(" ",e.title," "),h(1),p("ngIf",!e.form),h(2),p("ngIf",!e.form),h(1),p("ngIf",e.form)}}class _t{businessService;pmService;deviceServices;deploymentService;fsliteService;messagingService;productService;simulatorService;reportingService;pipelineService;nuviotClientService;activeModal;itemSelected=new Ae;tableSettings={actions:{add:!1,edit:!1,delete:!1},columns:{text:{title:"Name",type:"string"}}};categoryName="Source";valueName="Value";categories;selectedItem;items;filteredItems;secondItems;secondItemSelectedItem;selectedCategory;title;title_hold;pickerType;entityHeaderPickerUrl;factoryUrl;parentId;model;view;root;multiPick=!1;errorMsg=void 0;childForm;form;parentForm;targetField;urls;_searchText;set searchText(t){this._searchText=t,this.applyFilter()}get searchText(){return this._searchText}static _extras=[];static getExtra(t){let e=this._extras.find(n=>n.extraType==t);if(!e)throw console.log(this._extras),`Could not find registered extra: ${t}.`;return e}static registerExtra(t,e){console.log("register extra");let n=this._extras.find(r=>r.extraType==t);e?n?e.extra=e:this._extras.push({extra:e,extraType:t}):n&&this._extras.splice(this._extras.indexOf(n),1),console.log(this._extras)}constructor(t,e,n,r,o,a,s,l,d,f,y,k){this.businessService=t,this.pmService=e,this.deviceServices=n,this.deploymentService=r,this.fsliteService=o,this.messagingService=a,this.productService=s,this.simulatorService=l,this.reportingService=d,this.pipelineService=f,this.nuviotClientService=y,this.activeModal=k,this.root="/public"}static key_agreement="agreement";static key_customer="customer";static key_customerContact="customercontact";static key_customField="customfield";static key_customStatusType="customstatustype";static key_defaultRevision="defaultrevision";static key_deviceMessageDefinition="devicemessagedefinition";static key_distroList="distrolist";static key_errorCode="errorcode";static key_highValueErrorCode="highvalueerrorcode";static key_lowValueErrorCode="lowvalueerrorcode";static key_deviceConfiguration="defaultdeviceconfiguration";static key_firmware="firmware";static key_qaFirmware="qafirmware";static key_firmwareRevision="firmwarerevision";static key_qaFirmwareRevision="qafirmwarerevision";static key_pipelineModuleType_Custom="custom";static key_pipelineModuleType_DataStream="datastream";static key_pipelineModuleType_InputTranslator="inputtranslator";static key_pipelineModuleType_OutputTranslator="outputtranslator";static key_pipelineModuleType_Sentinel="sentinel";static key_pipelineModuleType_Transmitter="transmitter";static key_pipelineModuleType_Workflow="workflow";static key_productPortfolio="productportfolio";static key_project="project";static key_report="report";static key_reportrevision="reportrevision";static key_selectListener="selectlistener";static key_serviceTicket="serviceticket";static key_serviceTicketTemplate="servicetickettemplate";static key_stateSet="stateset";static key_product="product";static key_sensor="sensor";static key_statusConfig="statusconfig";static key_subscription="subscription";static key_unitSet="unitset";static key_simulator="simulator";static key_message="message";static key_forState="forstate";static key_preferredTag="preferredtag";static key_gcodeOperationTool="gcodeoperationtool";type_key_errorCode="errorCode";type_key_highValueErrorCode="highValueErrorCode";type_key_lowValueErrorCode="lowValueErrorCode";icon;ngOnInit(){var t=this;return z(function*(){t.setItems(!1)})()}addItems(){var t=this;return z(function*(){t.form=yield t.nuviotClientService.getFormResponse(t.urls.factory),t.title_hold=t.title,t.title=`Add ${t.form.modelTitle} Item`})()}canAdd(){return this.urls?.factory?.length>0}closeModal(){this.activeModal.close()}resetModal(){this.form=void 0,this.title=this.title_hold}saveChildItem(){this.form.model[this.targetField]||(this.form.model[this.targetField]=[]),this.form.model[this.targetField].push(this.childForm.model),this.childForm=void 0}savedItem(){var t=this;return z(function*(){t.form=void 0,t.setItems(!0)})()}getDataForItems(t,e=!1){var n=this;return z(function*(){n.urls&&n.urls.entityHeaderPickerUrl&&(t=yield n.nuviotClientService.getListResponse(n.urls.entityHeaderPickerUrl),n.icon=t.icon),yield n.setItemsExec(t,e)})()}toCamelCase(t){return t.substring(0,1).toLowerCase()+t.substring(1)}setItems(t=!1){var e=this;return z(function*(){if(e.entityHeaderPickerUrl){let r=e.entityHeaderPickerUrl.match(/\{[A-Za-z\.]+\}/),o=e.entityHeaderPickerUrl;for(;r;){var n=r[0].replaceAll("{","").replaceAll("}","").split(".");console.log(n);for(let d=0;d1?l[e.toCamelCase(n[1])]:e.view[e.toCamelCase(n[0])].value,o=o.replace(r[0],e.parentId),r=o.match(/\{[A-Za-z\.]+\}/),console.log("now looking for",r,o)}console.log(o);let a=yield e.nuviotClientService.getListResponse(o);a.successful&&(e.icon=a.icon,e.categories=a.categories,e.setUrls(a,t),0==a.model.length?(e.items=[],e.errorMsg="Sorry nothing is available, please add a record and try again."):a.model[0].text?e.items=a.model.map(s=>({id:s.id,key:s.key,text:s.text}))||[]:a.model[0].name?e.items=a.model.map(s=>({id:s.id,key:s.key,text:s.name}))||[]:e.errorMsg="System error: Could not finding mapping for text or name."+JSON.stringify(a.model[0]))}else if(e.pickerType){switch(e.pickerType.toLowerCase()){case _t.key_agreement:let o=e.view.customer?.value?.id;o?yield e.getDataForItems(yield e.businessService.getActiveAgreements(o),t):e.errorMsg="Please select a customer before selecting an agreement.";break;case _t.key_defaultRevision:0==e.model.revisions.length?e.errorMsg="Please add a firmware revision.":(e.items=e.model.revisions.map(f=>({id:f.id,text:f.versionCode}))||[],console.log("found items",e.items));break;case _t.key_gcodeOperationTool:let a=e.parentForm.parent.parent.model;0==a.tools.length?e.errorMsg="Please add a tool revision.":e.items=a.tools.map(f=>({id:f.id,text:f.name}))||[];break;case _t.key_customer:yield e.getDataForItems(yield e.businessService.getCustomers("active"),t);break;case _t.key_customerContact:const s=yield e.businessService.getCustomer(e.parentId);e.items=s.model.contacts.map(f=>({id:f.id,key:f.id.toLocaleLowerCase(),text:`${f.firstName} ${f.lastName}`}))||[];break;case _t.key_customField:(!e.items||0===e.items.length)&&alert("please set the 'items' attribute for this property.");break;case _t.key_deviceConfiguration:yield e.getDataForItems(yield e.deviceServices.getDeviceConfigurations(),t);break;case _t.key_deviceMessageDefinition:yield e.getDataForItems(yield e.messagingService.getMessages(),t);break;case _t.key_product:case _t.key_sensor:yield e.getDataForItems(yield e.productService.getProductCategories(),t),e.multiPick=!0,e.categoryName="Product Category",e.valueName="Product";break;case _t.key_errorCode:case _t.key_highValueErrorCode:case _t.key_lowValueErrorCode:const l=yield e.deviceServices.getDeviceConfigurations();e.setItemsExec(l,t),l.successful&&(e.multiPick=e.items.length>0);break;case _t.key_firmware:case _t.key_qaFirmware:yield e.getDataForItems(yield e.deviceServices.getFirmwares(),t);break;case _t.key_qaFirmwareRevision:if(e.view.qaFirmware.value){const f=yield e.deviceServices.getFirmware(e.view.qaFirmware.value.id);f.successful&&(e.items=f.model.revisions.map(y=>({id:y.id,text:y.versionCode}))||[])}else e.errorMsg="Please select firmware before selecting a revision.";break;case _t.key_firmwareRevision:if(e.view.firmware.value){const f=yield e.deviceServices.getFirmware(e.view.firmware.value.id);f.successful&&(e.items=f.model.revisions.map(y=>({id:y.id,text:y.versionCode}))||[])}else e.errorMsg="Please select firmware before selecting a revision.";break;case _t.key_forState:{let f=_t.getExtra(_t.key_simulator).extra;e.items=f.simulatorStates.map(y=>({id:y.id,key:y.key,text:y.name}))}break;case _t.key_message:{let f=_t.getExtra(_t.key_simulator).extra;e.items=f.messageTemplates.map(y=>({id:y.id,key:y.key,text:y.name}))}break;case _t.key_pipelineModuleType_Custom:yield e.getDataForItems(yield e.pipelineService.getCustomModules(),t);break;case _t.key_pipelineModuleType_DataStream:yield e.getDataForItems(yield e.pipelineService.getDataStreams(),t);break;case _t.key_pipelineModuleType_InputTranslator:yield e.getDataForItems(yield e.pipelineService.getInputTranslators(),t);break;case _t.key_pipelineModuleType_OutputTranslator:yield e.getDataForItems(yield e.pipelineService.getOutputTranslators(),t);break;case _t.key_pipelineModuleType_Sentinel:yield e.getDataForItems(yield e.pipelineService.getSentinels(),t);break;case _t.key_pipelineModuleType_Transmitter:yield e.getDataForItems(yield e.pipelineService.getTransmitters(),t);break;case _t.key_pipelineModuleType_Workflow:yield e.getDataForItems(yield e.pipelineService.getWorkflows(),t);break;case _t.key_productPortfolio:yield e.getDataForItems(yield e.pmService.getProductPortfolios(),t);break;case _t.key_project:yield e.getDataForItems(yield e.pmService.getProjects(),t);break;case _t.key_report:yield e.getDataForItems(yield e.reportingService.getReports(),t);break;case _t.key_reportrevision:if(e.view.report.value){const f=yield e.reportingService.getReport(e.view.report.value.id);f.successful&&(e.items=f.model.revisions.map(y=>({id:y.id,text:y.versionCode}))||[])}else e.errorMsg="Please select firmware before selecting a revision.";break;case _t.key_serviceTicket:(!e.items||0===e.items.length)&&alert("please set the 'items' attribute for this property.");break;case _t.key_serviceTicketTemplate:const d={successful:!0,model:yield e.fsliteService.loadTemplates()};e.setItemsExec(d,t);break;case _t.key_stateSet:case _t.key_customStatusType:yield e.getDataForItems(yield e.pipelineService.getStateSets(),t);break;case _t.key_statusConfig:yield e.getDataForItems(yield e.pmService.getStatusConfigurations(),t);break;case _t.key_subscription:yield e.getDataForItems(yield e.deploymentService.GetSubscriptions(),t);break;case _t.key_unitSet:yield e.getDataForItems(yield e.pipelineService.getUnitSets(),t);break;case _t.key_preferredTag:e.items=e.model.tags.map(f=>({id:f.id,text:f.tag}))||[];break;case _t.key_selectListener:e.items=e.model.listeners.map(f=>({id:f.id,text:f.text}))||[],console.log(e.items),console.log(e.model)}e.items?.sort((o,a)=>o.text.toLocaleLowerCase()>a.text.toLocaleLowerCase()?1:o.text.toLocaleLowerCase()({id:r.id,key:r.key,text:r.name}))||[],n.setUrls(t,e),n.filteredItems=n.items)})()}setUrls(t,e=!1){console.log(t,e),e||(this.urls={entityHeaderPickerUrl:this.entityHeaderPickerUrl,factory:t.factoryUrl,get:t.getUrl,getList:t.getListUrl}),console.log(this.urls)}itemSelectedEvent(t){var e=this;return z(function*(){switch(console.log(t),e.pickerType){case _t.key_sensor:case _t.key_product:e.secondItems=(yield e.productService.getProducts(e.selectedItem.id)).model.map(n=>({id:n.id,key:n.key,text:n.name}))||[];break;default:e.itemSelected.emit(t),e.activeModal.close()}})()}secondItemSelected(t){var e=this;return z(function*(){e.itemSelected.emit(e.secondItemSelectedItem),e.activeModal.close()})()}static supportsPicker(t){let n;switch(t.toLowerCase()){case _t.key_agreement:case _t.key_customer:case _t.key_customerContact:case _t.key_customField:case _t.key_customStatusType:case _t.key_defaultRevision:case _t.key_deviceConfiguration:case _t.key_deviceMessageDefinition:case _t.key_distroList:case _t.key_errorCode:case _t.key_firmware:case _t.key_firmwareRevision:case _t.key_forState:case _t.key_highValueErrorCode:case _t.key_lowValueErrorCode:case _t.key_message:case _t.key_productPortfolio:case _t.key_preferredTag:case _t.key_project:case _t.key_report:case _t.key_reportrevision:case _t.key_selectListener:case _t.key_serviceTicket:case _t.key_serviceTicketTemplate:case _t.key_simulator:case _t.key_stateSet:case _t.key_product:case _t.key_sensor:case _t.key_subscription:case _t.key_unitSet:case _t.key_qaFirmware:case _t.key_qaFirmwareRevision:case _t.key_gcodeOperationTool:n=!0;break;default:n=!1}return n}applyFilter(){console.log(this.searchText,"<-filter"),this.filteredItems=this.searchText?this.items.filter(t=>t.text.toLocaleLowerCase().includes(this.searchText.toLocaleLowerCase())):this.items}static \u0275fac=function(e){return new(e||_t)(U(la),U(fh),U(sh),U(lh),U(rv),U(ov),U(Gu),U(av),U(sv),U(Mf),U(An),U(dr))};static \u0275cmp=Be({type:_t,selectors:[["app-generic-picker"]],outputs:{itemSelected:"itemSelected"},decls:1,vars:1,consts:[["class","picker-modal",4,"ngIf"],[1,"picker-modal"],[2,"display","flex","border-bottom","1px solid silver","padding-top","10px","padding-right","10px","padding-left","20px"],[2,"flex-grow","1"],["fontSize","32",3,"iconName",4,"ngIf"],["class","action",3,"click",4,"ngIf"],[1,"fa","fa-times",2,"font-size","20px","margin","10px","cursor","pointer",3,"click"],[4,"ngIf"],["style","background-color: var(--color-bg);color:var(--color-fg);overflow-y:auto;padding:10px",4,"ngIf"],["fontSize","32",3,"iconName"],[1,"action",3,"click"],["class","fa fa-plus action",4,"ngIf"],[1,"fa","fa-plus","action"],["style","text-align: center; margin: 4em;",4,"ngIf"],["style","margin:2em;",4,"ngIf"],["style","margin:2em;color:red",4,"ngIf"],[2,"text-align","center","margin","4em"],[3,"src"],[2,"display","flex","margin-left","20px","margin-right","20px","margin-top","10px","margin-bottom","10px"],["style","flex-grow:1",4,"ngIf"],["placeholder","filter",1,"form-control",3,"ngModel","ngModelChange","change"],["style","min-height: 150px; padding-left:20px;padding-right:20px",4,"ngIf"],["class","row","style","padding:1em;",4,"ngIf"],[1,"form-control",3,"ngModel","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[2,"min-height","150px","padding-left","20px","padding-right","20px"],[1,"list-gorup"],["class","list-group-item",3,"click",4,"ngFor","ngForOf"],[1,"list-group-item",3,"click"],[1,"row",2,"padding","1em"],[1,"col-md-6"],[1,"form-select",3,"ngModel","ngModelChange","change"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[2,"margin","2em"],[2,"margin","2em","color","red"],[2,"background-color","var(--color-bg)","color","var(--color-fg)","overflow-y","auto","padding","10px"],[3,"form","inPlaceEditing","autoSave","cancel","saved"]],template:function(e,n){1&e&&w(0,$ve,9,5,"div",0),2&e&&p("ngIf",n.items)},dependencies:[Al,Xa,jt,ct,oo,ao,Bn,Nr,vn,pn],styles:[".picker-modal[_ngcontent-%COMP%]{color:var(--color-fg);background-color:var(--color-bg)}ol[_ngcontent-%COMP%]{border-radius:6px;overflow-y:auto;max-height:400px;padding:0}li[_ngcontent-%COMP%]{padding:8px;cursor:pointer;border:1px solid silver}li[_ngcontent-%COMP%]:hover{background-color:#ddd}"]})}function zve(i,t){if(1&i&&(u(0,"option",9),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e),h(1),Re(e.text)}}function Wve(i,t){if(1&i){const e=pe();u(0,"div",6)(1,"label"),m(2),c(),u(3,"select",7),N("change",function(){return R(e),L(g().firstItemSelected())})("ngModelChange",function(r){return R(e),L(g().selectedFirstItem=r)}),w(4,zve,2,2,"option",8),c()()}if(2&i){const e=g();h(2),Re(e.firstLabel),h(1),p("ngModel",e.selectedFirstItem),h(1),p("ngForOf",e.firstItems)}}function Gve(i,t){if(1&i){const e=pe();u(0,"input",16),N("click",function(){R(e);const r=g().$implicit;return L(g(3).secondItemSelected(r))}),c()}}function qve(i,t){if(1&i){const e=pe();u(0,"input",17),N("ngModelChange",function(r){return R(e),L(g().$implicit.isSelected=r)}),c()}2&i&&p("ngModel",g().$implicit.isSelected)}function Kve(i,t){if(1&i&&(u(0,"div")(1,"div"),w(2,Gve,1,0,"input",14),w(3,qve,1,1,"input",15),m(4),c()()),2&i){const e=t.$implicit,n=g(3);h(2),p("ngIf",!n.isMultiSelect),h(1),p("ngIf",n.isMultiSelect),h(1),Ke(" ",e.text," ")}}function Zve(i,t){if(1&i&&(u(0,"div"),w(1,Kve,5,3,"div",13),c()),2&i){const e=g(2);h(1),p("ngForOf",e.secondItems)}}function Qve(i,t){if(1&i){const e=pe();u(0,"input",16),N("click",function(){R(e);const r=g().$implicit;return L(g(3).secondItemSelected(r))}),c()}}function Xve(i,t){if(1&i){const e=pe();u(0,"input",17),N("ngModelChange",function(r){return R(e),L(g().$implicit.isSelected=r)}),c()}2&i&&p("ngModel",g().$implicit.isSelected)}function Jve(i,t){if(1&i&&(u(0,"div")(1,"div"),w(2,Qve,1,0,"input",14),w(3,Xve,1,1,"input",15),m(4),c()()),2&i){const e=t.$implicit,n=g(3);h(2),p("ngIf",!n.isMultiSelect),h(1),p("ngIf",n.isMultiSelect),h(1),Ke(" ",e.text," ")}}function eye(i,t){if(1&i&&(u(0,"div"),w(1,Jve,5,3,"div",13),c()),2&i){const e=g(2);h(1),p("ngForOf",e.filteredSecondItems)}}function tye(i,t){if(1&i){const e=pe();u(0,"div",6)(1,"label"),m(2),c(),u(3,"div")(4,"input",10),N("ngModelChange",function(r){return R(e),L(g().searchText=r)}),c()(),u(5,"div",11),w(6,Zve,2,1,"div",12),w(7,eye,2,1,"div",12),c()()}if(2&i){const e=g();h(2),Re(e.secondLabel),h(2),f0("margin-left:10px;width: 200px; background-image: url('",e.root,"/app/ui-shared/assets/search.png'); background-repeat: no-repeat; background-position: 6px 50%; padding: 7px 8.75px 7px 42px;"),p("ngModel",e.searchText),h(2),p("ngIf",!e.filteredSecondItems),h(1),p("ngIf",e.filteredSecondItems)}}class dv{glossaryService;siteContentService;guideService;activeModal;title;pickerFor;model;view;root="";firstLabel;secondLabel;firstItems;selectedFirstItem;secondItems;filteredSecondItems;selectedSecondItem;isMultiSelect=!1;_searchText;set searchText(t){this._searchText=t,this.searchNow()}get searchText(){return this._searchText}itemsSelected=new Ae;itemSelected=new Ae;constructor(t,e,n,r){this.glossaryService=t,this.siteContentService=e,this.guideService=n,this.activeModal=r,this.root="/public"}ngOnInit(){var t=this;return z(function*(){switch(t.selectedFirstItem={id:"-1",key:"-1",text:"-select-"},t.pickerFor){case"GlossaryTerm":{t.firstLabel="Glossary",t.secondLabel="Term",t.isMultiSelect=!0;let e=(yield t.glossaryService.getGlossaries()).model.map(n=>({id:n.id,key:n.key,text:n.name}));e.unshift(t.selectedFirstItem),t.firstItems=e}break;case"SiteContent":{t.firstLabel="Site Content Category",t.secondLabel="Site Content";let e=(yield t.siteContentService.getContentTypes()).map(n=>({id:n.id,key:n.key,text:n.label}));e.unshift(t.selectedFirstItem),t.firstItems=e}break;case"Guide":{t.firstLabel="Site Guide Category",t.secondLabel="Guide";let e=yield t.guideService.getGuideCategories();e.unshift(t.selectedFirstItem),t.firstItems=e}}})()}searchNow(){this.filteredSecondItems=this.secondItems.filter(t=>t.text.toLowerCase().indexOf(this.searchText?.toLowerCase()??"")>-1)}firstItemSelected(){var t=this;return z(function*(){if(console.log(t.selectedFirstItem),t.selectedFirstItem&&"-1"!=t.selectedFirstItem.id)switch(t.pickerFor){case"GlossaryTerm":let n=(yield t.glossaryService.getGlossary(t.selectedFirstItem.id)).model.definitions.map(r=>({id:`${t.selectedFirstItem.id}${r.id}`,key:r.key,text:r.name,isSelected:!1}));n.unshift({id:"-1",key:"-1",text:"-select-",isSelected:!1}),t.secondItems=n;break;case"SiteContent":t.secondItems=(yield t.siteContentService.getFilteredSiteContent(t.selectedFirstItem.id)).model.map(r=>({id:r.id,key:r.key,text:r.name,isSelected:!1}));break;case"Guide":t.secondItems=(yield t.guideService.loadGuidesByCategory(t.selectedFirstItem.id,!1)).model.map(r=>({id:r.id,key:r.key,text:r.name,isSelected:!1}))}})()}secondItemSelected(t){this.selectedSecondItem=t}done(){this.selectedSecondItem&&this.itemSelected?.emit({id:this.selectedSecondItem.id,key:this.selectedSecondItem.key,text:this.selectedSecondItem.text}),this.itemsSelected?.emit(this.secondItems.filter(t=>t.isSelected).map(t=>({id:t.id,key:t.key,text:t.text}))),this.activeModal.close()}cancel(){this.activeModal.close()}static \u0275fac=function(e){return new(e||dv)(U(yc),U(Aa),U(Bf),U(dr))};static \u0275cmp=Be({type:dv,selectors:[["app-item-picker"]],outputs:{itemsSelected:"itemsSelected",itemSelected:"itemSelected"},decls:10,vars:3,consts:[[2,"margin","30px"],[2,"color","var(--color-primary-80)"],["class","form-group",4,"ngIf"],[2,"text-align","right"],[1,"btn","btn-primary",3,"click"],[1,"btn","btn-danger",3,"click"],[1,"form-group"],[1,"form-control","form-select",3,"ngModel","change","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],["type","search","placeholder","Search","aria-controls","DataTables_Table_2",1,"form-control",3,"ngModel","ngModelChange"],[2,"height","400px","width","100%","overflow-y","scroll"],[4,"ngIf"],[4,"ngFor","ngForOf"],["type","radio","name","exclusive-select-picker",3,"click",4,"ngIf"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],["type","radio","name","exclusive-select-picker",3,"click"],["type","checkbox",3,"ngModel","ngModelChange"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"h3",1),m(2),c(),w(3,Wve,5,3,"div",2),w(4,tye,8,7,"div",2),u(5,"div",3)(6,"button",4),N("click",function(){return n.done()}),m(7,"Done"),c(),u(8,"button",5),N("click",function(){return n.cancel()}),m(9,"Cancel"),c()()()),2&e&&(h(2),Re(n.title),h(1),p("ngIf",n.firstItems),h(1),p("ngIf",n.secondItems))},dependencies:[jt,ct,oo,ao,Bn,yl,Nr,vn,pn]})}function nye(i,t){if(1&i){const e=pe();u(0,"span",14),N("click",function(r){return R(e),g(3).clearEntityHeaderValue(),L(r.stopPropagation())}),H(1,"i",15),c()}}function iye(i,t){if(1&i){const e=pe();u(0,"span")(1,"i",16),N("click",function(){return R(e),L(g(3).showEditor())}),c()()}}const rye=function(i){return{"picker-link":i}};function oye(i,t){if(1&i){const e=pe();u(0,"span",11),N("click",function(){return R(e),L(g(2).pickEntityHeaderValue())}),u(1,"span",12),m(2),c(),w(3,nye,2,0,"span",13),w(4,iye,2,0,"span",9),c()}if(2&i){const e=g(2);let n;h(1),p("ngClass",Ct(4,rye,e.field.isUserEditable)),h(1),Re(e.field.value?e.field.value.text:null!==(n=e.field.watermark)&&void 0!==n?n:"-select-"),h(1),p("ngIf",e.field.value&&!e.field.isRequired&&e.field.isUserEditable),h(1),p("ngIf",e.field.editorPath&&e.field.value)}}function aye(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g(2);h(1),Re(e.field.value.text)}}function sye(i,t){1&i&&(u(0,"span",17),H(1,"span",18),c()),2&i&&mt("data-target",g(2).popupId)}function lye(i,t){if(1&i&&(u(0,"div",3)(1,"div",4)(2,"div",5),H(3,"app-form-field-label",6),u(4,"div",7),w(5,oye,5,6,"span",8),w(6,aye,2,1,"div",9),c()(),u(7,"div"),w(8,sye,2,1,"span",10),c()()()),2&i){const e=g();h(3),p("name",e.field.name)("label",e.field.label)("isRequired",e.field.isRequired),h(2),p("ngIf",e.isEnabled),h(1),p("ngIf",!e.isEnabled),h(2),p("ngIf",e.field.help)}}class AC extends ln{modalService;constructor(t){super(),this.modalService=t}ngOnInit(){super.ngOnInit()}pickEntityHeaderValue(){if(this.field.selectEntityHeader&&this.field.isUserEditable)this.field.selectEntityHeader(this.field);else if(this.field.pickerFor){const t=this.modalService.open(dv,{size:"lg"}).componentInstance;t.pickerFor=this.field.pickerFor,t.title=`Select ${this.field.label}`,t.model=this.model,t.view=this.view,t.itemSelected.subscribe(e=>{this.field.value=e,this.field.display=e.text,this.changed(this.field)})}else if(_t.supportsPicker(this.field.name)||this.field.entityHeaderPickerUrl){const t=this.modalService.open(_t,{size:"lg"}).componentInstance;t.pickerType=this.field.name,t.entityHeaderPickerUrl=this.field.entityHeaderPickerUrl,t.factoryUrl=this.field.factoryUrl,t.title=`Select ${this.field.label}`,t.model=this.model,t.view=this.view,t.parentForm=this.form,t.itemSelected.subscribe(e=>{this.field.value=e,this.field.display=e.text,this.changed(this.field)})}}clearEntityHeaderValue(){this.field.clearEntityHeader&&this.field.isUserEditable?this.field.clearEntityHeader(this.field):(this.field.value=void 0,this.field.display=void 0),this.changed(this.field)}showEditor(){console.log(this.field.value.id,this.field.editorPath);var t=this.field.editorPath.replace("{id}",this.field.value.id);window.open(t)}static \u0275fac=function(e){return new(e||AC)(U(zn))};static \u0275cmp=Be({type:AC,selectors:[["app-entity-header-picker"]],features:[st],decls:3,vars:8,consts:[["class","form-group","attr","one","ng-hide","!isVisible",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["attr","one","ng-hide","!isVisible",1,"form-group"],[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],[1,"input-group-holder"],[3,"click",4,"ngIf"],[4,"ngIf"],["data-toggle","modal",4,"ngIf"],[3,"click"],[3,"ngClass"],["class","picker-link-remove","style","margin-left:20px",3,"click",4,"ngIf"],[1,"picker-link-remove",2,"margin-left","20px",3,"click"],[1,"fa","fa-trash","action-danger"],[1,"fa-solid","fa-arrow-up-right-from-square","action",3,"click"],["data-toggle","modal"],[1,"fa","fa-question","action",2,"margin-left","10pt"]],template:function(e,n){1&e&&(w(0,lye,9,6,"div",0),H(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&e&&(p("ngIf",n.field),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Zi,ct,Wn,qn,Gn],styles:[".picker-link[_ngcontent-%COMP%], .picker-link-remove[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-accent)}.picker-link[_ngcontent-%COMP%]:hover{text-decoration:underline;color:var(--color-accent)}"]})}function cye(i,t){1&i&&(u(0,"label"),m(1,"Image Generation"),c())}function dye(i,t){1&i&&(u(0,"label"),m(1,"Request Updates"),c())}function uye(i,t){1&i&&(u(0,"span"),m(1,"(current)"),c())}const hye=function(i){return{"font-weight:bold":i}};function pye(i,t){if(1&i&&(u(0,"option",27)(1,"span",28),m(2),Qt(3,"dateTimePrinter"),w(4,uye,2,0,"span",14),c()()),2&i){const e=t.$implicit,n=g(2);p("value",e.id),h(1),p("ngStyle",Ct(7,hye,e.id==n.existingResource.currentRevision)),h(1),Gr("",e.name," - ",Xt(3,5,e.creationDate)," "),h(2),p("ngIf",e.id==n.existingResource.currentRevision)}}function fye(i,t){if(1&i){const e=pe();u(0,"div")(1,"textarea",32),N("ngModelChange",function(r){return R(e),L(g(3).revision.originalPrompt=r)}),c()()}if(2&i){const e=g(3);h(1),p("ngModel",e.revision.originalPrompt)}}function gye(i,t){if(1&i){const e=pe();u(0,"div")(1,"textarea",32),N("ngModelChange",function(r){return R(e),L(g(3).revision.revisedPrompt=r)}),c()()}if(2&i){const e=g(3);h(1),p("ngModel",e.revision.revisedPrompt)}}function mye(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",29)(2,"label"),m(3,"View: "),c(),u(4,"input",30),N("ngModelChange",function(r){return R(e),L(g(2).promptType=r)}),c(),m(5," Original Prompt "),u(6,"input",31),N("ngModelChange",function(r){return R(e),L(g(2).promptType=r)}),c(),m(7," Revised Prompt "),c(),w(8,fye,2,1,"div",14),w(9,gye,2,1,"div",14),c()}if(2&i){const e=g(2);h(4),p("ngModel",e.promptType),h(2),p("ngModel",e.promptType),h(2),p("ngIf","original"==e.promptType),h(1),p("ngIf","revised"==e.promptType)}}function _ye(i,t){if(1&i){const e=pe();u(0,"div",1)(1,"div",20)(2,"label"),m(3,"Revisions"),c(),u(4,"div",1)(5,"select",21),N("ngModelChange",function(r){return R(e),L(g().currentRevisionId=r)})("change",function(r){return R(e),L(g().onRevisionSelected(r))}),w(6,pye,5,9,"option",22),c(),u(7,"button",23),N("click",function(){R(e);const r=g();return L(r.applyRevision(r.revision))}),m(8,"Use this Revision"),c()(),w(9,mye,10,4,"div",14),c(),u(10,"div",24),H(11,"img",25)(12,"div",26),c()()}if(2&i){const e=g();h(5),p("ngModel",e.currentRevisionId),h(1),p("ngForOf",e.existingResource.history),h(1),p("disabled",e.revision.id==e.existingResource.currentRevision),h(2),p("ngIf",e.revision.originalPrompt),h(2),p("src",e.getImageUrl(e.revision),Yi)}}function vye(i,t){1&i&&H(0,"div",33)}function yye(i,t){if(1&i&&(u(0,"div",34)(1,"h4"),m(2,"Please Wait..."),c(),u(3,"h4"),m(4,"...I'll Be Back"),c(),u(5,"h4"),m(6,"This could take a couple of minutes "),c(),u(7,"h4"),m(8,"...seriously..."),c(),H(9,"app-loading-spinner",35),c()),2&i){const e=g();h(9),p("caption",e.terminatorQuote)}}class IC{mlService;activeModal;mediaService;busy=!1;terminatorQuote;terminatorQuotes=["Hasta la vista, baby","Come with me if you want to live","I need your clothes, your boots, and your motorcycle","I know Now Why You Cry, But It\u2019s Something I Can Never Do.","I\u2019m a cybernetic organism. Living tissue over a metal endoskeleton.","If A Machine, A Terminator, Can Learn The Value Of Human Life, Maybe We Can, Too.","All You Know How To Create Is Death And Destruction","She\u2019s A Priority To Me","If Someone Comes Up To You With An Attitude, You Say, 'Eat Me'","You Just Can\u2019t Go Around Killing People","Your Foster Parents Are Dead.","My Mission Is To Protect You","Maybe It\u2019ll Be Enough If You Know That, In The Few Hours We Had Together, We Loved A Lifetime\u2019s Worth","You\u2019re Terminated","So You Feel Nothing?","It Doesn\u2019t Feel Pity, Or Remorse, Or Fear, And It Absolutely Will Not Stop, Ever, Until You Are Dead!","His Name Is Connor. John Connor. Your Son, Sarah\u2026 Your Unborn Son","Cyborgs Don\u2019t Feel Pain. I Do","Your Clothes, Give Them To Me, Now","The Future Has Not Been Written. There Is No Fate But What We Make For Ourselves.","Judgment Day Is Inevitable","The Strength Of The Human Heart. The Difference Between Us And Machines.","This Is The World Now. Logged On, Plugged In, All The Time.","Skynet Was Gone. And Now One Road Has Become Many","When This Is All Over, I Am Going To Kill You","You Need Butterflies, Polka Dots, Balloons","I Am Human. Just Enhanced","Because I Was Her. And It Sucks","Once, I Saved Three Billion Lives\u2026 But I Couldn\u2019t Save My Son","I\u2019m Never Going To Fu**ing Call You Car","You Chose To Destroy Skynet. You Set Me Free"];imageType="-1";contentType;additionalInformation;fullRequest;isPublic=!0;resourceName;entityTypeName;entityFieldName;aspectRatio;promptType="original";baseUrl="";existingResource;currentRevisionId;imageGeneration=1;revision;constructor(t,e,n){this.mlService=t,this.activeModal=e,this.mediaService=n}ngOnInit(){this.aspectRatio="Auto"}getImageUrl(t){return`${this.baseUrl}/api/media/resource/${this.existingResource.id}/download/${t.id}`}onApplyContent=new Ae;generate(){var t=this;return z(function*(){let e=parseInt((Math.random()*t.terminatorQuotes.length).toString());if(t.terminatorQuote=t.terminatorQuotes[e],console.log(t.terminatorQuote),t.busy=!0,!t.additionalInformation)return void alert("Prompt is required");let n="Auto"!=t.aspectRatio?`${t.additionalInformation} aspect ratio should be ${t.aspectRatio}`:t.additionalInformation;"-1"!==t.imageType&&(n="Create a "+t.imageType+". "+n);let r={contentType:t.contentType,additionalDetails:n,numberGenerated:1,imageType:t.imageType,fullRequest:t.fullRequest,resourceName:t.resourceName,entityFieldName:t.entityFieldName,entityTypeName:t.entityTypeName,previousResponseId:t.revision?.responseId??null,mediaResourceId:t.existingResource?t.existingResource.id:null};t.imageGeneration++;let o=yield t.mlService.generateImage(r);t.busy=!1,o.successful&&(t.existingResource=o.result[0],t.revision=t.existingResource.currentRevision?t.existingResource.history.find(a=>a.id===t.existingResource.currentRevision):t.existingResource.history[0],t.currentRevisionId=t.revision.id,t.additionalInformation="")})()}onRevisionSelected(t){this.revision=this.existingResource.history.find(e=>e.id===this.currentRevisionId),this.promptType="original"}apply(){var t=this;return z(function*(){t.onApplyContent.emit({id:t.existingResource.id,key:t.existingResource.key,text:t.existingResource.fileName}),t.activeModal.close()})()}applyRevision(t){var e=this;return z(function*(){e.existingResource.currentRevision=t.id,e.mediaService.setMediaRevision(e.existingResource.id,t.id),e.onApplyContent.emit({id:e.existingResource.id,key:e.existingResource.key,text:e.existingResource.fileName})})()}cancel(){this.activeModal.close()}static \u0275fac=function(e){return new(e||IC)(U(gh),U(dr),U(Tl))};static \u0275cmp=Be({type:IC,selectors:[["app-image-generator"]],decls:53,vars:10,consts:[[2,"padding","10pt","position","relative"],[2,"display","flex"],[2,"flex-grow","1"],[1,"fa","fa-chevron-left","action",3,"click"],[1,"fa","fa-user-robot",2,"color","var(--color-accent)"],[1,"action",3,"click"],[1,"fa","fa-save"],[1,"form-group",2,"flex-grow","1"],[1,"form-select",3,"ngModel","ngModelChange"],["value","-1"],[1,"form-group",2,"flex-grow","1","margin-left","15px"],[2,"display","inline"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"form-group",2,"margin-top","10px"],[4,"ngIf"],[1,"form-control",2,"height","120px",3,"placeholder","ngModel","ngModelChange"],[1,"btn","btn-primary",2,"height","120px","margin-left","10px",3,"click"],["style","display:flex",4,"ngIf"],["style","width: 100%; height: 100%;opacity: 0.5; background-color: black;position: absolute;top:0",4,"ngIf"],["style","color:white; text-align: center;padding-top: 200px; position: absolute;top:0; width: 100%",4,"ngIf"],[2,"width","50%"],[1,"form-select",3,"ngModel","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf"],[1,"btn","btn-primary",2,"margin-left","10px",3,"disabled","click"],[2,"width","50%","margin","5px"],[2,"width","100%",3,"src"],[2,"margin","10px"],[3,"value"],[3,"ngStyle"],[2,"margin-top","10px"],["type","radio","name","promptType","value","original",2,"margin-left","10px",3,"ngModel","ngModelChange"],["type","radio","name","promptType","value","revised",2,"margin-left","10px",3,"ngModel","ngModelChange"],["rows","14",1,"form-control",2,"margin-top","10px",3,"ngModel","ngModelChange"],[2,"width","100%","height","100%","opacity","0.5","background-color","black","position","absolute","top","0"],[2,"color","white","text-align","center","padding-top","200px","position","absolute","top","0","width","100%"],[3,"caption"]],template:function(e,n){1&e&&(u(0,"div")(1,"div",0)(2,"div",1)(3,"h2",2)(4,"i",3),N("click",function(){return n.cancel()}),c(),H(5,"i",4),m(6," T-801 Cyber-Dime Image Generator Bot"),c(),u(7,"span",5),N("click",function(){return n.apply()}),H(8,"i",6),m(9," Save"),c()(),u(10,"div",1)(11,"div",7)(12,"label"),m(13,"Image Type"),c(),u(14,"select",8),N("ngModelChange",function(o){return n.imageType=o}),u(15,"option",9),m(16,"-type of image to generate-"),c(),u(17,"option"),m(18,"Flat Design Illustration with people having distorted features with a white background"),c(),u(19,"option"),m(20,"Photo Realistic"),c(),u(21,"option"),m(22,"Abstract"),c(),u(23,"option"),m(24,"Illustration"),c()()(),u(25,"div",10)(26,"label",11),m(27,"Is Public: "),c(),H(28,"br"),u(29,"input",12),N("ngModelChange",function(o){return n.isPublic=o}),c()(),u(30,"div",7)(31,"label"),m(32,"Aspect Ratio"),c(),u(33,"select",8),N("ngModelChange",function(o){return n.aspectRatio=o}),u(34,"option"),m(35,"Auto"),c(),m(36,"] "),u(37,"option"),m(38,"Square"),c(),u(39,"option"),m(40,"Portrait"),c(),u(41,"option"),m(42,"Landscape"),c()()()(),u(43,"div",13),w(44,cye,2,0,"label",14),w(45,dye,2,0,"label",14),u(46,"div",1)(47,"textarea",15),N("ngModelChange",function(o){return n.additionalInformation=o}),c(),u(48,"button",16),N("click",function(){return n.generate()}),m(49,"Ask Terminator"),c()()(),w(50,_ye,13,5,"div",17),c(),w(51,vye,1,0,"div",18),w(52,yye,10,1,"div",19),c()),2&e&&(h(14),p("ngModel",n.imageType),h(15),p("ngModel",n.isPublic),h(4),p("ngModel",n.aspectRatio),h(11),p("ngIf",!(null!=n.revision&&n.revision.originalPrompt)),h(1),p("ngIf",null==n.revision?null:n.revision.originalPrompt),h(2),gt("placeholder",null!=n.revision&&n.revision.originalPrompt?"provide some changes that you would you like to make to the image.":"provides some details about the image you would like to create"),p("ngModel",n.additionalInformation),h(3),p("ngIf",n.revision),h(1),p("ngIf",n.busy),h(1),p("ngIf",n.busy))},dependencies:[jt,ct,As,oo,ao,Bn,yl,Nr,Zk,vn,pn,Ku,Bs],styles:["label[_ngcontent-%COMP%]{font-weight:700}"]})}function bye(i,t){if(1&i){const e=pe();u(0,"div")(1,"img",9),N("click",function(){const o=R(e).$implicit;return L(g(2).select(o))}),c()()}if(2&i){const e=t.$implicit;h(1),p("src",e.thumbnail,Yi)}}function Cye(i,t){if(1&i&&(u(0,"div",7),w(1,bye,2,1,"div",8),c()),2&i){const e=g();h(1),p("ngForOf",e.results.model)}}function wye(i,t){if(1&i){const e=pe();u(0,"div"),H(1,"img",10),u(2,"div")(3,"h4"),m(4),c(),u(5,"label"),m(6,"License:"),c(),u(7,"a",11),m(8),c(),u(9,"label",12),m(10,"Size:"),c(),m(11),c(),u(12,"div",13)(13,"button",14),N("click",function(){return R(e),L(g().apply())}),m(14,"Apply"),c(),u(15,"button",15),N("click",function(){return R(e),L(g().selectedImage=void 0)}),m(16,"Cancel"),c()()()}if(2&i){const e=g();h(1),gt("src",e.selectedImage.url,Yi),h(3),Re(e.selectedImage.title),h(3),gt("href",e.selectedImage.license_url,Yi),h(1),Re(e.selectedImage.license),h(3),Gr(" ",e.selectedImage.width,"x",e.selectedImage.height," ")}}class FC{mediaService;activeModal;results;constructor(t,e){this.mediaService=t,this.activeModal=e}searchQuery;source;selectedImage;isPublic=!1;previewImageUrl;onApplyContent=new Ae;ngOnInit(){}searchNow(){var t=this;return z(function*(){t.results=void 0,t.selectedImage=void 0,t.results=yield t.mediaService.searchImages(t.searchQuery,t.source)})()}apply(){var t=this;return z(function*(){let e=new Date,n=t.selectedImage.url.split(".").pop();n=n??"png";let o={fileName:`FromSearch_${Qn.toDateOnly(e).replaceAll("/","")}_${Qn.dateToHHMM(e).replace(":","")}.${n}`,isPublic:t.isPublic,uri:t.selectedImage.url,license:t.selectedImage.license_url},a=yield t.mediaService.createMediaResource(o);console.log(a),t.onApplyContent.emit({id:a.result.id,key:a.result.key,text:a.result.fileName}),t.activeModal.close()})()}select(t){this.selectedImage=t}static \u0275fac=function(e){return new(e||FC)(U(Tl),U(dr))};static \u0275cmp=Be({type:FC,selectors:[["app-image-search"]],decls:12,vars:4,consts:[[2,"padding","10pt","position","relative"],["s","",1,"form-group"],["placeholder","image search criteria",1,"form-control",3,"ngModel","ngModelChange","keydown.enter"],[2,"text-align","right","margin-top","10px","margin-bottom","10px"],[1,"btn","btn-primary",3,"disabled","click"],["style","display:flex; flex-wrap: wrap;",4,"ngIf"],[4,"ngIf"],[2,"display","flex","flex-wrap","wrap"],[4,"ngFor","ngForOf"],[2,"max-width","200px","max-height","200px","margin","5px","border-radius","12px",3,"src","click"],[2,"max-width","100%","max-height","100%",3,"src"],["target","_blank",3,"href"],[2,"margin-right","30px"],[2,"text-align","right"],[1,"btn","btn-primary",2,"margin-left","20px",3,"click"],[1,"btn","btn-danger",3,"click"]],template:function(e,n){1&e&&(u(0,"div")(1,"div",0)(2,"h4"),m(3,"Image Search"),c(),H(4,"hr"),u(5,"div",1)(6,"input",2),N("ngModelChange",function(o){return n.searchQuery=o})("keydown.enter",function(){return n.searchNow()}),c()(),u(7,"div",3)(8,"button",4),N("click",function(){return n.searchNow()}),m(9,"Search"),c()(),w(10,Cye,2,1,"div",5),w(11,wye,17,6,"div",6),c()()),2&e&&(h(6),p("ngModel",n.searchQuery),h(2),p("disabled",!n.searchQuery),h(2),p("ngIf",n.results&&!n.selectedImage),h(1),p("ngIf",n.selectedImage))},dependencies:[jt,ct,Bn,vn,pn],styles:["label[_ngcontent-%COMP%]{font-weight:700;margin-right:10px}"]})}function Dye(i,t){if(1&i){const e=pe();u(0,"li",8)(1,"div",9)(2,"div",10),m(3),c(),u(4,"div")(5,"span",11),N("click",function(){const o=R(e).$implicit;return L(g(3).applyContentAsLink(o))}),m(6,"Link to Content"),c(),u(7,"span",11),N("click",function(){const o=R(e).$implicit;return L(g(3).editContent(o))}),m(8,"Edit"),c()()()()}if(2&i){const e=t.$implicit;h(3),Ke(" ",e.name," ")}}function Mye(i,t){if(1&i&&(u(0,"ol",6),w(1,Dye,9,1,"li",7),c()),2&i){const e=g(2);h(1),p("ngForOf",e.items.model)}}function xye(i,t){1&i&&(u(0,"div"),m(1," Sorry, no shared images available for this content type. "),c())}function kye(i,t){if(1&i){const e=pe();u(0,"div")(1,"button",13),N("click",function(){return R(e),L(g(3).saveToLibrary())}),m(2,"Add to image library"),c()()}}function Tye(i,t){if(1&i){const e=pe();u(0,"div")(1,"span"),m(2,"Name *"),c(),u(3,"input",12),N("ngModelChange",function(r){return R(e),L(g(2).resource.name=r)}),c(),w(4,kye,3,0,"div",3),c()}if(2&i){const e=g(2);h(3),p("ngModel",e.resource.name),h(1),p("ngIf",!e.resource.mediaTypeKey)}}function Sye(i,t){if(1&i){const e=pe();u(0,"div",1)(1,"h4"),m(2),c(),H(3,"hr"),u(4,"div")(5,"strong"),m(6,"Model:"),c(),m(7),c(),u(8,"div")(9,"strong"),m(10,"Field Text:"),c(),m(11),c(),u(12,"div")(13,"strong"),m(14,"Key:"),c(),m(15),c(),w(16,Mye,2,1,"ol",2),w(17,xye,2,0,"div",3),w(18,Tye,5,2,"div",3),H(19,"hr"),u(20,"div",4)(21,"button",5),N("click",function(){return R(e),L(g().cancel())}),m(22,"Cancel"),c()()()}if(2&i){const e=g();h(2),Re(e.field.label),h(5),Ke(" ",e.field.host.form.modelTitle,""),h(4),Ke(" ",e.field.label,""),h(4),Ke(" ",e.mediaTypeKey,""),h(1),p("ngIf",e.items&&e.items.model.length>0),h(1),p("ngIf",e.items&&0==e.items.model.length),h(1),p("ngIf",e.resource)}}class PC{activeModal;mediaService;items;resource;editResource;mediaTypeKey;field;fieldChange;constructor(t,e){this.activeModal=t,this.mediaService=e}ngOnInit(){var t=this;return z(function*(){if(console.log(t.field.host.form),t.mediaTypeKey=`${t.field.host.form.modelName.toLowerCase()}-${t.field.name.toLowerCase()}`,t.items=yield t.mediaService.loadMediaResourcesForMediaTypeKey(t.mediaTypeKey),t.field.value){let e=t.field.value,n=yield t.mediaService.loadMediaResource(e.id);n.successful&&(t.resource=n.model)}console.log(t.items)})()}applyContentAsLink(t){console.log("applyContentAsLink",t),this.field.value={id:t.id,text:t.name,name:t.name,key:t.key},this.activeModal.close(),this.fieldChange(this.field)}editContent(t){var e=this;return z(function*(){e.editResource=(yield e.mediaService.loadMediaResource(t.id)).model})()}saveToLibrary(){this.resource.mediaTypeKey=this.mediaTypeKey,this.mediaService.updateMediaResource(this.resource),this.activeModal.close(this.resource)}getImageUrl(t){return""}cancel(){this.activeModal.dismiss()}static \u0275fac=function(e){return new(e||PC)(U(dr),U(Tl))};static \u0275cmp=Be({type:PC,selectors:[["app-image-library"]],inputs:{field:"field"},outputs:{fieldChange:"fieldChange"},decls:1,vars:1,consts:[["style","padding:10px",4,"ngIf"],[2,"padding","10px"],["class","list-group",4,"ngIf"],[4,"ngIf"],[2,"text-align","right"],[1,"btn","btn-danger",3,"click"],[1,"list-group"],["class","list-group-item",4,"ngFor","ngForOf"],[1,"list-group-item"],[2,"display","flex"],[2,"flex-grow","1"],[1,"action",3,"click"],["type","text",1,"form-control",3,"ngModel","ngModelChange"],[1,"btn","btn-success",3,"click"]],template:function(e,n){1&e&&w(0,Sye,23,7,"div",0),2&e&&p("ngIf",n.field)},dependencies:[jt,ct,Bn,vn,pn],styles:["label[_ngcontent-%COMP%]{font-weight:700}label[_ngcontent-%COMP%] span.required[_ngcontent-%COMP%]{color:red}"]})}const Ec=function(i,t){return{"fa-star":i,"fa-star-o":t}};function Eye(i,t){if(1&i){const e=pe();u(0,"div"),H(1,"i",2)(2,"i",3)(3,"i",3)(4,"i",3)(5,"i",3),u(6,"i",4),N("click",function(){return R(e),L(g().clearRating())}),c()()}if(2&i){const e=g();h(2),p("ngClass",yi(4,Ec,e.rating.stars>=2,e.rating.stars<2)),h(1),p("ngClass",yi(7,Ec,e.rating.stars>=3,e.rating.stars<3)),h(1),p("ngClass",yi(10,Ec,e.rating.stars>=4,e.rating.stars<4)),h(1),p("ngClass",yi(13,Ec,e.rating.stars>=5,e.rating.stars<5))}}const uv=function(i){return{color:i}};function Aye(i,t){if(1&i){const e=pe();u(0,"div")(1,"i",5),N("mouseover",function(){return R(e),L(g().highlightRating(1))})("mouseleave",function(){return R(e),L(g().reset())})("click",function(){return R(e),L(g().rate(1))}),c(),u(2,"i",5),N("mouseover",function(){return R(e),L(g().highlightRating(2))})("mouseleave",function(){return R(e),L(g().reset())})("click",function(){return R(e),L(g().rate(2))}),c(),u(3,"i",5),N("mouseover",function(){return R(e),L(g().highlightRating(3))})("mouseleave",function(){return R(e),L(g().reset())})("click",function(){return R(e),L(g().rate(3))}),c(),u(4,"i",5),N("mouseover",function(){return R(e),L(g().highlightRating(4))})("mouseleave",function(){return R(e),L(g().reset())})("click",function(){return R(e),L(g().rate(4))}),c(),u(5,"i",5),N("mouseover",function(){return R(e),L(g().highlightRating(5))})("mouseleave",function(){return R(e),L(g().reset())})("click",function(){return R(e),L(g().rate(5))}),c()()}if(2&i){const e=g();h(1),p("ngStyle",Ct(10,uv,e.tempStars>=1?"gold":"gray"))("ngClass",yi(12,Ec,e.tempStars>=1,!e.tempStars)),h(1),p("ngStyle",Ct(15,uv,e.tempStars>=2?"gold":"gray"))("ngClass",yi(17,Ec,e.tempStars>=2,!e.tempStars||e.tempStars<2)),h(1),p("ngStyle",Ct(20,uv,e.tempStars>=3?"gold":"gray"))("ngClass",yi(22,Ec,e.tempStars>=3,!e.tempStars||e.tempStars<3)),h(1),p("ngStyle",Ct(25,uv,e.tempStars>=4?"gold":"gray"))("ngClass",yi(27,Ec,e.tempStars>=4,!e.tempStars||e.tempStars<4)),h(1),p("ngStyle",Ct(30,uv,5==e.tempStars?"gold":"gray"))("ngClass",yi(32,Ec,5==e.tempStars,!e.tempStars||e.tempStars<5))}}class RC{set=new Ae;clear=new Ae;rating;tempStars;constructor(){}ngOnInit(){}highlightRating(t){this.tempStars=t}reset(){this.tempStars=void 0}rate(t){this.set?.emit(t)}clearRating(){this.clear?.emit()}static \u0275fac=function(e){return new(e||RC)};static \u0275cmp=Be({type:RC,selectors:[["app-rating"]],inputs:{rating:"rating"},outputs:{set:"set",clear:"clear"},decls:3,vars:2,consts:[[2,"margin-top","10px","margin-bottom","10px"],[4,"ngIf"],[1,"fa","fa-star",2,"color","gold"],[1,"fa",2,"color","gold",3,"ngClass"],["title","Remove my rating",1,"fa","fa-trash","action-danger",3,"click"],[1,"fa",3,"ngStyle","ngClass","mouseover","mouseleave","click"]],template:function(e,n){1&e&&(u(0,"div",0),w(1,Eye,7,16,"div",1),w(2,Aye,6,35,"div",1),c()),2&e&&(h(1),p("ngIf",n.rating),h(1),p("ngIf",!n.rating))},dependencies:[Zi,ct,As],styles:["i[_ngcontent-%COMP%]{cursor:pointer;font-size:1.5em}"]})}const Iye=["mediaLibraryModal"],Fye=["advancedView"];function Pye(i,t){if(1&i){const e=pe();u(0,"div",3),N("click",function(){return R(e),L(g().generateImage())}),H(1,"i",15),u(2,"span",16),m(3,"AI"),c()()}}function Rye(i,t){if(1&i){const e=pe();u(0,"div",3),N("click",function(){return R(e),L(g().downloadFile())}),H(1,"i",17),m(2,"Download"),c()}}function Lye(i,t){if(1&i){const e=pe();u(0,"div",3),N("click",function(){return R(e),L(g().showAdvanced())}),H(1,"i",18),m(2,"Advanced"),c()}}function Oye(i,t){if(1&i){const e=pe();u(0,"div",19),N("click",function(){R(e);const r=g();return r.field.value=void 0,r.downloadFileName=void 0,r.fileNameOrStatus=void 0,L(r.error=void 0)}),H(1,"i",20),m(2,"Remove"),c()}}function Nye(i,t){1&i&&(u(0,"span",21),m(1,"Help"),c()),2&i&&mt("data-target",g().popupId)}const Bye=function(i){return{width:i}};function Vye(i,t){if(1&i&&(u(0,"div"),m(1),u(2,"div",27),H(3,"div",28),c()()),2&i){const e=g(3);h(1),Ke(" ",e.fileNameOrStatus," "),h(2),p("ngStyle",Ct(2,Bye,e.uploader.progress+"%"))}}function Hye(i,t){if(1&i&&(u(0,"div")(1,"span",29),m(2),c()()),2&i){const e=g(3);h(2),Re(e.error)}}const Yye=function(i){return{"nv-file-over":i}};function Uye(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",1)(2,"span",23),N("fileOver",function(r){return R(e),L(g(2).fileOverBase(r))}),H(3,"i",24),c(),u(4,"span",25)(5,"span"),m(6,"Select File"),c(),H(7,"input",26),c()(),w(8,Vye,4,4,"div",8),w(9,Hye,3,1,"div",8),c()}if(2&i){const e=g(2);h(2),p("ngClass",Ct(5,Yye,e.hasBaseDropZoneOver))("uploader",e.uploader),h(5),p("uploader",e.uploader),h(1),p("ngIf",e.fileNameOrStatus&&!e.error),h(1),p("ngIf",e.error)}}function jye(i,t){1&i&&H(0,"img",32),2&i&&p("src",g(3).downloadFileName,Yi)}function $ye(i,t){if(1&i&&(u(0,"span",33)(1,"label"),m(2,"File Name:"),c(),m(3),c()),2&i){const e=g(3);h(3),Ke(" ",e.field.value.text," ")}}function zye(i,t){if(1&i&&(u(0,"div",1)(1,"div"),w(2,jye,1,1,"img",30),w(3,$ye,4,1,"span",31),c()()),2&i){const e=g(2);h(2),p("ngIf",e.field.isFileUploadImage),h(1),p("ngIf",!e.field.isFileUploadImage)}}function Wye(i,t){if(1&i&&(u(0,"div"),w(1,Uye,10,7,"div",8),w(2,zye,4,2,"div",22),c()),2&i){const e=g();h(1),p("ngIf",!e.downloadFileName),h(1),p("ngIf",e.downloadFileName)}}function Gye(i,t){if(1&i&&(u(0,"option",43),m(1),c()),2&i){const e=t.$implicit;p("value",e.key),h(1),Re(e.name)}}function qye(i,t){if(1&i&&H(0,"img",53),2&i){const e=g().$implicit;gt("alt",e.name),p("src",e.link,Yi)}}function Kye(i,t){if(1&i){const e=pe();u(0,"tr")(1,"td",48)(2,"div",49),w(3,qye,1,2,"img",50),c()(),u(4,"td"),m(5),c(),u(6,"td"),m(7),c(),u(8,"td")(9,"span",51),N("click",function(){const o=R(e).$implicit;return L(g(3).selectResource(o))}),m(10,"Use as a Share"),c()(),u(11,"td")(12,"span",52),N("click",function(){const o=R(e).$implicit;return L(g(3).makeACopy(o))}),m(13,"Make a Copy"),c()()()}if(2&i){const e=t.$implicit;h(3),p("ngIf",e.link),h(2),Ke(" ",e.name," "),h(2),Ke(" ",e.category," ")}}function Zye(i,t){if(1&i){const e=pe();u(0,"div",54)(1,"span",3),N("click",function(){return R(e),L(g(3).showNextPage())}),m(2,"Next Page"),H(3,"i",55),c()()}}function Qye(i,t){if(1&i&&(u(0,"div")(1,"table",44)(2,"thead")(3,"tr")(4,"th"),m(5,"Preview"),c(),u(6,"th"),m(7,"Name"),c(),u(8,"th"),m(9,"Category"),c(),H(10,"th")(11,"th"),c()(),u(12,"tbody",45),w(13,Kye,14,3,"tr",46),c()(),w(14,Zye,4,0,"div",47),c()),2&i){const e=g(2);h(13),p("ngForOf",e.mediaResources.model),h(1),p("ngIf",e.mediaResources.hasMoreRecords)}}function Xye(i,t){if(1&i){const e=pe();u(0,"div",34)(1,"h4",35),m(2,"Media Library"),c(),u(3,"div",36)(4,"label"),m(5,"Category:"),c(),u(6,"select",37),N("ngModelChange",function(r){return R(e),L(g().categoryFilter=r)})("change",function(){return R(e),L(g().mediaFilterByCategory())}),u(7,"option",38),m(8,"-all-"),c(),w(9,Gye,2,2,"option",39),c()(),u(10,"button",40),N("click",function(){return L(R(e).$implicit.dismiss())}),u(11,"span",41),m(12,"\xd7"),c()()(),u(13,"div",42),w(14,Qye,15,2,"div",8),c()}if(2&i){const e=g();h(6),p("ngModel",e.categoryFilter),h(3),p("ngForOf",null==e.categories?null:e.categories.model),h(5),p("ngIf",e.mediaResources)}}function Jye(i,t){if(1&i){const e=pe();u(0,"div",36)(1,"label"),m(2,"File Name:"),c(),u(3,"input",60),N("ngModelChange",function(r){return R(e),L(g(2).resource.name=r)}),c()()}if(2&i){const e=g(2);h(3),p("ngModel",e.resource.name)}}function e0e(i,t){if(1&i&&(u(0,"div",61)(1,"div",33)(2,"label"),m(3,"Content Type:"),c(),m(4),c(),u(5,"div",33)(6,"label"),m(7,"File Size:"),c(),m(8),Qt(9,"fileSize"),c(),u(10,"div",33)(11,"label"),m(12,"Actual Size:"),c(),m(13),c()()),2&i){const e=g(2);h(4),Ke(" ",e.resource.mimeType," "),h(4),Ke(" ",Xt(9,4,e.resource.contentSize)," "),h(5),Gr(" ",e.resource.width,"x",e.resource.height," ")}}function t0e(i,t){if(1&i){const e=pe();u(0,"div")(1,"span",3),N("click",function(){return R(e),L(g(3).copyToThumbNailField())}),H(2,"i",70),m(3," Copy to Thumbnail"),c()()}}function n0e(i,t){if(1&i&&(u(0,"option",43),m(1),c()),2&i){const e=t.$implicit;p("value",e.key),h(1),Re(e.name)}}function i0e(i,t){if(1&i){const e=pe();u(0,"div")(1,"fieldset")(2,"legend"),m(3,"Resize Image"),c(),u(4,"label"),m(5,"Recommended:"),c(),m(6),u(7,"label"),m(8,"New Size"),c(),u(9,"div")(10,"input",62),N("ngModelChange",function(r){return R(e),L(g(2).resizeWidth=r)}),c(),m(11,"x "),u(12,"input",63),N("ngModelChange",function(r){return R(e),L(g(2).resizeHeight=r)}),c()(),u(13,"div")(14,"label"),m(15,"File Type:"),c(),u(16,"select",64),N("ngModelChange",function(r){return R(e),L(g(2).resizeFileType=r)}),u(17,"option",65),m(18,"JPEG"),c(),u(19,"option",66),m(20,"PNG"),c(),u(21,"option",67),m(22,"WEBP"),c()()(),u(23,"div",54)(24,"button",68),N("click",function(){return R(e),L(g(2).resize())}),m(25,"Resize"),c()()(),w(26,t0e,4,0,"div",8),u(27,"div",36)(28,"label"),m(29,"Category:"),c(),u(30,"select",37),N("ngModelChange",function(r){return R(e),L(g(2).mediaCategoryId=r)})("change",function(){return R(e),L(g(2).categoryChanged())}),u(31,"option",38),m(32,"-select category-"),c(),w(33,n0e,2,2,"option",39),c()(),u(34,"app-rating",69),N("set",function(r){return R(e),L(g(2).setRating(r))})("clear",function(){return R(e),L(g(2).clearRating())}),c()()}if(2&i){const e=g(2);h(6),Ke(" ",e.field.displayImageSize," "),h(4),p("ngModel",e.resizeWidth),h(2),p("ngModel",e.resizeHeight),h(4),p("ngModel",e.resizeFileType),h(10),p("ngIf",e.field.thumbnailField),h(4),p("ngModel",e.mediaCategoryId),h(3),p("ngForOf",null==e.categories?null:e.categories.model),h(1),p("rating",e.userRating)}}function r0e(i,t){if(1&i){const e=pe();u(0,"div",34)(1,"h4",35),m(2,"Advanced Image Options"),c(),u(3,"button",40),N("click",function(){return R(e),L(g().advancedModal.dismiss())}),u(4,"span",41),m(5,"\xd7"),c()()(),u(6,"div",42),w(7,Jye,4,1,"div",56),u(8,"div",57)(9,"div"),H(10,"img",58),c(),w(11,e0e,14,6,"div",59),w(12,i0e,35,8,"div",8),c()()}if(2&i){const e=g();h(7),p("ngIf",e.resource),h(3),p("src",e.downloadFileName,Yi),h(1),p("ngIf",e.resource),h(1),p("ngIf",e.resource)}}class LC extends ln{modalService;mediaService;adminService;userService;hasBaseDropZoneOver=!1;uploader;error;resource;fileNameOrStatus;orgId;resizeWidth;resizeHeight;resizeFileType;userRating;currentUser;downloadFileName;mediaResources;mediaLibraryModal;currentModal;advancedView;advancedModal;static formView(t,e){return{label:t,uploadUrl:e,name:"uploadControl",isRequired:!1,isEnabled:!0,isVisible:!0,isReferenceField:!1,fieldType:"FileUpload",isUserEditable:!0,isFileUploadImage:!0,fileUploaded:null,propertyChanged:null,addChildItem:null,clearEntityHeader:null,selectEntityHeader:null,childItemSelected:null,childListMenuSelected:null}}mediaCategoryId;categories;categoryFilter="-1";constructor(t,e,n,r){super(),this.modalService=t,this.mediaService=e,this.adminService=n,this.userService=r}ngOnInit(){var t=()=>super.ngOnInit,e=this;return z(function*(){if(e.fileNameOrStatus=null,e.orgId=(yield e.userService.getCurrentOrg()).id,e.field.refresh=z(function*(){console.log("here now",e.field.value),e.downloadFileName=`/api/media/resource/${e.orgId}/${e.field.value.id}/download`}),e.field.value&&(e.field.downloadUrl?e.downloadFileName=e.field.downloadUrl:e.field.value?.id&&(e.downloadFileName=`/api/media/resource/${e.orgId}/${e.field.value.id}/download`)),e.currentUser=yield e.userService.getUser(),(!e.field.uploadUrl||!e.field.uploadUrl.startsWith("http"))&&(e.field.uploadUrl=`${e.field.uploadUrl}`),e.form.modelName.toLocaleLowerCase(),e.field.name.toLocaleLowerCase(),e.categories=yield e.adminService.getCategories("mediaresource"),e.uploader=new ob({url:e.field.uploadUrl}),e.uploader.onAfterAddingFile=r=>{e.error=void 0,e.fileNameOrStatus=`Uploading: ${r.some.name}`,e.field.value=r.some.name,e.uploader.uploadItem(r)},e.uploader.onErrorItem=(r,o,a,s)=>{e.error=`Upload error: ${a}`},e.uploader.onCancelItem=(r,o,a,s)=>{e.error=`Upload canceled: ${a}`},e.uploader.onCompleteItem=(r,o,a,s)=>{let l=JSON.parse(o);if(l.successful)if(e.field.value=r.some.name,e.fileNameOrStatus=`Success uploading: ${r.some.name}`,e.field.fileUploaded)e.field.fileUploaded(l.result,r.some.name);else{const d=l.result;console.log("uploaded field value",d),d.id&&("MediaResource"==e.form.modelName?(e.field.value=r.some.name,e.model[e.field.name]=r.some.name):(e.field.value={id:d.id,key:d.key,text:d.fileName},e.field.value.text||(e.field.value.text=d.text),d.value&&(e.field.value.value=d.value))),window.setTimeout(()=>{e.field.value.id&&e.field.isFileUploadImage&&(e.downloadFileName=`/api/media/resource/${e.orgId}/${e.field.value.id}/download`)},1500)}else e.error=l.errors[0].message},e.field.displayImageSize){let r=e.field.displayImageSize.split("x");e.resizeWidth=parseInt(r[0]),e.resizeHeight=parseInt(r[1])}e.resizeFileType="webp",t().call(e)})()}setRating(t){var e=this;return z(function*(){let n=yield e.mediaService.setRating(e.resource.id,t);n.successful&&(e.resource.stars=n.result.stars,e.resource.ratings=n.result.ratings,e.resource.ratingsCount=n.result.ratingsCount,e.userRating=n.result.ratings.find(r=>r.user.id==e.currentUser.id))})()}clearRating(){var t=this;return z(function*(){let e=yield t.mediaService.clearRating(t.resource.id);e.successful&&(console.log("was successful!"),t.resource.stars=e.result.stars,t.resource.ratings=e.result.ratings,t.resource.ratingsCount=e.result.ratingsCount,t.userRating=void 0)})()}generateImage(){var t=this;return z(function*(){if(t.resource=void 0,t.field.value){let n=yield t.mediaService.loadMediaResource(t.field.value.id);if(!n.successful)return;t.resource=n.model}const e=t.modalService.open(IC,{size:"xl",beforeDismiss:()=>!0}).componentInstance;t.resource&&(e.existingResource=t.resource,e.currentRevisionId=t.resource.currentRevision,t.resource.history&&t.resource.history.length>0&&(e.revision=e.currentRevisionId?t.resource.history.find(n=>n.id===e.currentRevisionId):t.resource.history[0])),e.entityFieldName=t.field.name,e.entityTypeName=t.form.modelName,e.resourceName=t.model.name?t.model.name:"Auto Generated Resource",e.onApplyContent.subscribe(n=>{t.field.value=n,t.downloadFileName=void 0,window.setTimeout(()=>{t.downloadFileName=`/api/media/resource/${t.orgId}/${t.field.value.id}/download?t=${(new Date).getTime()}`},1e3)})})()}searchImages(){const t=this.modalService.open(FC,{size:"xl",beforeDismiss:()=>!0}).componentInstance;console.log(this.field),t.onApplyContent.subscribe(e=>{this.field.value=e,this.downloadFileName=`/api/media/resource/${this.orgId}/${this.field.value.id}/download`})}showAdvanced(){var t=this;return z(function*(){let e=yield t.mediaService.loadMediaResource(t.field.value.id);if(e.successful){t.mediaCategoryId=e.model.category?.id??"-1";let n=t.field.displayImageSize.split("x");t.resizeWidth=parseInt(n[0]),t.resizeHeight=parseInt(n[1]),t.userRating=e.model.ratings.find(r=>r.user.id==t.currentUser.id),t.resource=e.model,t.resource.width&&t.resource.height&&t.resizeWidth&&t.resizeHeight&&t.resizeHeight>0&&(t.resizeWidth=Math.round(t.resizeHeight*(t.resource.width/t.resource.height)))}t.advancedModal=t.modalService.open(t.advancedView,{size:"xl"})})()}categoryChanged(){var t=this;return z(function*(){if(t.mediaCategoryId&&"-1"!=t.mediaCategoryId&&t.mediaCategoryId!=t.resource?.category?.id){let e=t.categories.model.find(o=>o.key==t.mediaCategoryId),n={id:e.key,key:e.key,text:e.name};(yield t.mediaService.assignCategory(t.resource.id,n)).successful&&(t.resource.category=n)}})()}showMediaPicker(){var t=this;return z(function*(){t.currentModal=t.modalService.open(t.mediaLibraryModal,{size:"xl"}),t.categoryFilter=t.form.modelName.toLocaleLowerCase()+t.field.name.toLocaleLowerCase(),console.log(t.categoryFilter),t.mediaResources=yield t.mediaService.getMediaByCategory(t.categoryFilter)})()}showAllMedia(){var t=this;return z(function*(){t.mediaResources=yield t.mediaService.getAllMedia()})()}showNextPage(){var t=this;return z(function*(){t.mediaResources=yield t.mediaService.getAllMedia(t.mediaResources.pageIndex+1,t.mediaResources.pageSize)})()}downloadFile(){window.open(this.downloadFileName)}fileOverBase(t){this.hasBaseDropZoneOver=t}resize(){var t=this;return z(function*(){let e=yield t.mediaService.resizeMediaResource(t.resource.id,{fileType:t.resizeFileType,width:t.resizeWidth,height:t.resizeHeight});e.successful&&(t.resource=e.result)})()}showSharedImageModal(){const t=this.modalService.open(PC,{size:"lg",beforeDismiss:()=>!0}).componentInstance;t.field=this.field,t.fieldChange=e=>{this.downloadFileName=`/api/media/resource/${this.orgId}/${this.field.value.id}/download`},this.currentModal.close()}selectResource(t){this.field.value={id:t.id,key:t.key,text:t.name},this.downloadFileName=t.link}makeACopy(t){var e=this;return z(function*(){let n=yield e.mediaService.cloneMediaResource(t.id,e.form.modelName,e.field.name,t.name);if(n.successful){let r=n.result;e.field.value={id:r.id,key:r.key,text:r.name},e.downloadFileName=`/api/media/resource/${e.orgId}/${e.field.value.id}/download`}e.currentModal.close()})()}mediaFilterByCategory(){var t=this;return z(function*(){t.mediaResources=t.categoryFilter&&"-1"!=t.categoryFilter?yield t.mediaService.getMediaByCategory(t.categoryFilter):yield t.mediaService.getAllMedia()})()}viewImageHistory(){window.open("/contentmanagement/")}copyToThumbNailField(){var t=this;return z(function*(){let e=t.form.modelName,n=t.field.thumbnailField,r=t.form.view.name?t.form.view.name.value:"Auto Generated Resource",o=yield t.mediaService.cloneMediaResource(t.field.value.id,e,n,r);if(o.successful){let a=o.result;t.form.view[t.field.thumbnailField].value={id:a.id,key:a.key,text:a.name},t.form.view[t.field.thumbnailField].refresh()}})()}static \u0275fac=function(e){return new(e||LC)(U(zn),U(Tl),U(xc),U($n))};static \u0275cmp=Be({type:LC,selectors:[["app-file-upload"]],viewQuery:function(e,n){if(1&e&&(un(Iye,5),un(Fye,5)),2&e){let r;pt(r=ft())&&(n.mediaLibraryModal=r.first),pt(r=ft())&&(n.advancedView=r.first)}},features:[st],decls:18,vars:16,consts:[[3,"name","label","isRequired"],[2,"display","flex"],["class","action",3,"click",4,"ngIf"],[1,"action",3,"click"],[1,"fa","fa-images"],[2,"flex-grow","1"],["class","action-danger",3,"click",4,"ngIf"],["data-toggle","modal","class","action",4,"ngIf"],[4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["id","mediaLibraryModal"],["mediaLibraryModal",""],["id","advancedView"],["advancedView",""],[1,"fa","fas","fa-user-robot"],[2,"font-family","serif"],[1,"fa","fa-download"],[1,"fa","fa-gear"],[1,"action-danger",3,"click"],[1,"fa","fas","fa-trash"],["data-toggle","modal",1,"action"],["style","display:flex",4,"ngIf"],["ng2FileDrop","",1,"well","my-drop-zone",3,"ngClass","uploader","fileOver"],[1,"fa","fa-file-upload"],[1,"fileUpload","btn","btn-primary"],["type","file","ng2FileSelect","",1,"upload",3,"uploader"],[1,"progress"],["role","progressbar",1,"progress-bar",3,"ngStyle"],[2,"color","red"],["height","160","style","max-width: 100%; max-height: 100%;",3,"src",4,"ngIf"],["class","img-attr",4,"ngIf"],["height","160",2,"max-width","100%","max-height","100%",3,"src"],[1,"img-attr"],[1,"modal-header"],[1,"modal-title"],[1,"form-group"],[1,"form-select",2,"margin-top","10px",3,"ngModel","ngModelChange","change"],["value","-1"],[3,"value",4,"ngFor","ngForOf"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[3,"value"],[1,"table"],[1,"resource-list"],[4,"ngFor","ngForOf"],["class","save-bar",4,"ngIf"],[2,"display","flex","align-items","center","margin-bottom","10px","cursor","pointer"],[2,"display","block","width","250px","text-align","center"],["height","128",3,"src","alt",4,"ngIf"],["title","The exact same resource will be used and any changes to the resource here will also be made to the original resource.",1,"action",3,"click"],["title","A copy of this resource will be used, that means that any changes you make will not affect the original resource.",1,"action",3,"click"],["height","128",3,"src","alt"],[1,"save-bar"],[1,"fa","fa-chevron-right"],["class","form-group",4,"ngIf"],[2,"display","flex","margin-top","10px"],[2,"max-width","300px","width","auto","height","auto","max-height","300px",3,"src"],["style","width: 300px; padding-left:20px; padding-right: 20px",4,"ngIf"],[1,"form-control",3,"ngModel","ngModelChange"],[2,"width","300px","padding-left","20px","padding-right","20px"],["type","form-control","type","number",2,"width","120px","display","inline","text-align","right",3,"ngModel","ngModelChange"],["type","form-control","type","number",2,"width","120px","text-align","right",3,"ngModel","ngModelChange"],[1,"form-select",3,"ngModel","ngModelChange"],["value","jpeg"],["value","png"],["value","webp"],[1,"btn","btn-primary",3,"click"],[3,"rating","set","clear"],[1,"fa","fa-copy"]],template:function(e,n){1&e&&(H(0,"app-form-field-label",0),u(1,"div",1),w(2,Pye,4,0,"div",2),u(3,"div",3),N("click",function(){return n.showMediaPicker()}),H(4,"i",4),m(5," Media Library"),c(),w(6,Rye,3,0,"div",2),H(7,"div",5),w(8,Lye,3,0,"div",2),w(9,Oye,3,0,"div",6),c(),w(10,Nye,2,1,"span",7),w(11,Wye,3,2,"div",8),H(12,"app-form-field-validation-section",9)(13,"app-form-field-help",10),w(14,Xye,15,3,"ng-template",11,12,Vo),w(16,r0e,13,4,"ng-template",13,14,Vo)),2&e&&(p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(2),p("ngIf",n.field.imageUpload),h(4),p("ngIf",n.downloadFileName),h(2),p("ngIf",n.downloadFileName&&n.field.imageUpload),h(1),p("ngIf",n.field.value),h(1),p("ngIf",n.field.help),h(1),p("ngIf",n.uploader),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[oo,ao,Bn,Rs,Nr,vn,pn,Zi,jt,ct,As,rh,oh,Wn,qn,Gn,RC,J_],styles:[".my-drop-zone[_ngcontent-%COMP%]{border:dotted 3px lightgray;display:block;margin-right:20px;padding-top:10px;text-align:center;color:silver;font-size:48pt;height:100px;width:100px}.nv-file-over[_ngcontent-%COMP%]{border:dotted 3px red}.another-file-over-class[_ngcontent-%COMP%]{border:dotted 3px green}.fileUpload[_ngcontent-%COMP%]{position:relative;overflow:hidden;margin-top:10px;height:40px;margin-bottom:10px}.fileUpload[_ngcontent-%COMP%] input.upload[_ngcontent-%COMP%]{position:absolute;top:0;right:0;margin:0;padding:0;font-size:20px;cursor:pointer;opacity:0;filter:alpha(opacity=0)}div.img-attr[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:120px}.resource-list[_ngcontent-%COMP%]{max-height:calc(100vh - 250px);overflow-y:auto}label[_ngcontent-%COMP%]{font-weight:700;display:block!important}fieldset[_ngcontent-%COMP%]{margin:8px;border:1px solid lightgray;padding:10px;border-radius:5px}legend[_ngcontent-%COMP%]{float:unset;width:unset;font-size:unset;font-weight:700;color:#666}"]})}class OC{clientService;activeModal;form;constructor(t,e){this.clientService=t,this.activeModal=e}itemAdded=new Ae;factoryUrl;ngOnInit(){var t=this;return z(function*(){let e=yield t.clientService.getFormResponse(t.factoryUrl);e.formFieldsSimple&&(e.formFields=e.formFieldsSimple,e.formFieldsCol2=void 0),t.form=e})()}saved(){var t=this.form.model;this.itemAdded?.emit({id:t.id,name:t.name,label:t.name,text:t.name,key:t.key}),this.activeModal.close()}cancelled(){this.activeModal.close()}static \u0275fac=function(e){return new(e||OC)(U(An),U(dr))};static \u0275cmp=Be({type:OC,selectors:[["app-picker-add"]],outputs:{itemAdded:"itemAdded"},decls:1,vars:3,consts:[[3,"form","autoSave","inPlaceEditing","saved","cancel"]],template:function(e,n){1&e&&(u(0,"app-form",0),N("saved",function(){return n.saved()})("cancel",function(){return n.cancelled()}),c()),2&e&&p("form",n.form)("autoSave",!0)("inPlaceEditing",!0)},dependencies:[Al]})}function o0e(i,t){if(1&i&&(u(0,"option",8),m(1),c()),2&i){const e=t.$implicit;gt("value",e.id),h(1),Re(e.label)}}function a0e(i,t){1&i&&(u(0,"div",9),H(1,"span",10),c()),2&i&&mt("data-target",g().popupId)}function s0e(i,t){if(1&i){const e=pe();u(0,"div",11),N("click",function(){return R(e),L(g().add())}),H(1,"span",12),c()}}class NC extends ln{modalService;constructor(t){super(),this.modalService=t}validate(){return this.showValidationErrors=!0,this.field.isRequired?this.field.value&&"-1"!==this.field.value?(this.isValid=!0,this.hasValue=!0):(this.isValid=!1,this.hasValue=!1):this.isValid=!0,this.isValid}onChanged(t){console.log(t),this.field&&(this.showValidationErrors=!0,this.hasValue="-1"!==this.field.value),super.changed(t)}add(){const t=this.modalService.open(OC,{size:"lg"}).componentInstance;t.factoryUrl=this.field.factoryUrl,t.itemAdded.subscribe(e=>{this.field.value=e.key,this.field.display=e.text,this.changed(this.field),this.field.options.push(e)})}ngOnInit(){this.field.options.find(t=>"-1"===t.id)||this.field.options.unshift({key:"-1",label:this.field.watermark,text:this.field.watermark,id:"-1"}),super.ngOnInit()}static \u0275fac=function(e){return new(e||NC)(U(zn))};static \u0275cmp=Be({type:NC,selectors:[["app-picker"]],features:[st],decls:8,vars:19,consts:[[3,"name","label","isRequired"],[1,"input-group"],[1,"form-control","form-select",3,"name","id","ngModel","disabled","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf"],["class","input-group-append","data-toggle","modal","style","cursor:pointer",4,"ngIf"],["class","input-group-append","style","cursor:pointer",3,"click",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],[3,"value"],["data-toggle","modal",1,"input-group-append",2,"cursor","pointer"],[1,"input-group-text","fa","fa-question",2,"font-size","12pt","color","#A0A0A0"],[1,"input-group-append",2,"cursor","pointer",3,"click"],[1,"input-group-text","fa","fa-plus",2,"font-size","12pt","color","#A0A0A0"]],template:function(e,n){1&e&&(H(0,"app-form-field-label",0),u(1,"div",1)(2,"select",2),N("ngModelChange",function(o){return n.field.value=o})("change",function(o){return n.onChanged(o)}),w(3,o0e,2,2,"option",3),c(),w(4,a0e,2,1,"div",4),w(5,s0e,2,0,"div",5),c(),H(6,"app-form-field-validation-section",6)(7,"app-form-field-help",7)),2&e&&(p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(2),Mn("background-color",n.field.isUserEditable?"white":"#EEEEEE"),gt("name",n.field.name),gt("id",n.field.name),p("ngModel",n.field.value)("disabled",!n.field.isUserEditable),h(1),p("ngForOf",n.field.options),h(1),p("ngIf",n.field.help),h(1),p("ngIf",n.field.factoryUrl),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[oo,ao,Nr,vn,pn,jt,ct,Wn,qn,Gn]})}function l0e(i,t){if(1&i){const e=pe();u(0,"span",10),N("click",function(){return R(e),L(g().addDiscussion())}),H(1,"i",11),m(2,"Add"),c()}}function c0e(i,t){if(1&i){const e=pe();u(0,"i",12),N("click",function(){return R(e),L(g().expanded=!0)}),c()}}function d0e(i,t){if(1&i){const e=pe();u(0,"i",13),N("click",function(){return R(e),L(g().expanded=!1)}),c()}}const iV="lists link image table code help wordcount fullscreen",rV="fullscreen undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | align lineheight | tinycomments | checklist numlist bullist indent outdent | emoticons charmap | removeforma",u0e=function(){return{branding:!1,plugins:iV,toolbar:rV}};function h0e(i,t){if(1&i){const e=pe();u(0,"editor",14),N("ngModelChange",function(r){return R(e),L(g().discussionText=r)}),c()}if(2&i){const e=g();p("init",oc(2,u0e))("ngModel",e.discussionText)}}function p0e(i,t){if(1&i){const e=pe();u(0,"div",15)(1,"button",16),N("click",function(){return R(e),L(g().saveNewDiscussion())}),m(2,"Save"),c(),u(3,"button",17),N("click",function(){R(e);const r=g();return r.isEditorVisible=!1,L(r.discussionText="")}),m(4,"Cancel"),c()()}if(2&i){const e=g();h(1),p("disabled",!e.discussionText)}}function f0e(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",22)(2,"span",23),m(3),c(),m(4),u(5,"i",24),N("click",function(r){R(e);const o=g().$implicit;return g(2).editDiscussion(o),L(r.stopPropagation())}),c(),u(6,"i",25),N("click",function(r){R(e);const o=g().$implicit;return g(2).remove(o),L(r.stopPropagation())}),c()(),u(7,"div",26),H(8,"div",27),c()()}if(2&i){const e=g().$implicit,n=g(2);h(3),Re(e.user.text),h(1),Ke(" - ",n.formatTimeStamp(e.timestamp)," "),h(4),p("innerHTML",e.note,Un)}}const g0e=function(){return{plugins:iV,branding:!1,toolbar:rV}};function m0e(i,t){if(1&i){const e=pe();u(0,"div")(1,"editor",14),N("ngModelChange",function(r){return R(e),L(g().$implicit.note=r)}),c(),u(2,"div",15)(3,"button",28),N("click",function(){return R(e),L(g().$implicit.isEditing=!1)})("click",function(){R(e);const r=g().$implicit;return L(g(2).saveDiscussion(r))}),m(4,"Save"),c(),u(5,"button",17),N("click",function(){return R(e),L(g().$implicit.isEditing=!1)}),m(6,"Cancel"),c()()()}if(2&i){const e=g().$implicit;h(1),p("init",oc(2,g0e))("ngModel",e.note)}}function _0e(i,t){if(1&i&&(u(0,"div",20),w(1,f0e,9,3,"div",21),w(2,m0e,7,3,"div",21),c()),2&i){const e=t.$implicit;h(1),p("ngIf",!e.isEditing),h(1),p("ngIf",e.isEditing)}}function v0e(i,t){if(1&i&&(u(0,"div",18),w(1,_0e,3,2,"div",19),c()),2&i){const e=g();h(1),p("ngForOf",e.field.value)}}class BC extends ln{pmService;discussionText;isEditorVisible=!1;expanded=!1;constructor(t){super(),this.pmService=t}selected(t){}remove(t){}ngOnInit(){super.ngOnInit(),this.expanded=this.field.openByDefault}formatTimeStamp(t){const e=new Date(t);return`${e.toLocaleDateString()} ${e.toLocaleTimeString()}`}saveNewDiscussion(){var t=this;return z(function*(){var e=yield t.pmService.createDiscussion();e.note=t.discussionText,t.field.value.unshift(e),t.discussionText=void 0,t.isEditorVisible=!1})()}addDiscussion(){this.discussionText="",this.isEditorVisible=!0}editDiscussion(t){this.discussionText=t.note,t.isEditing=!0}saveDiscussion(t){t.note=this.discussionText,t.isEditing=!1}static \u0275fac=function(e){return new(e||BC)(U(fh))};static \u0275cmp=Be({type:BC,selectors:[["app-discussion-list"]],features:[st],decls:13,vars:9,consts:[[1,"panel"],[2,"display","flex","padding","10px"],[2,"flex-grow","1"],["class","action",3,"click",4,"ngIf"],["class","fa-regular fa-square-chevron-down action",3,"click",4,"ngIf"],["class","fa-regular fa-square-chevron-up action",3,"click",4,"ngIf"],["apiKey","kjvrmckj7e2u9yuxwg3akvfp3rkybse6455b25ja0liuef9o",3,"init","ngModel","ngModelChange",4,"ngIf"],["style","text-align: right;",4,"ngIf"],["style","padding: 10px",4,"ngIf"],[3,"field"],[1,"action",3,"click"],[1,"fa","fas","fa-plus"],[1,"fa-regular","fa-square-chevron-down","action",3,"click"],[1,"fa-regular","fa-square-chevron-up","action",3,"click"],["apiKey","kjvrmckj7e2u9yuxwg3akvfp3rkybse6455b25ja0liuef9o",3,"init","ngModel","ngModelChange"],[2,"text-align","right"],[1,"btn","btn-primary",3,"disabled","click"],[1,"btn","btn-danger",2,"margin-left","10px",3,"click"],[2,"padding","10px"],["style","margin-bottom:30px;border-bottom:2px solid silver",4,"ngFor","ngForOf"],[2,"margin-bottom","30px","border-bottom","2px solid silver"],[4,"ngIf"],[1,"panel-header"],[2,"font-weight","bold"],[1,"fa","fa-pencil","action",2,"margin-left","20px",3,"click"],[1,"fa","fa-trash","action-danger",3,"click"],[1,"panel-content"],[2,"overflow-x","auto",3,"innerHTML"],[1,"btn","btn-primary",3,"click"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1)(2,"div",2)(3,"label"),m(4),c()(),u(5,"div"),w(6,l0e,3,0,"span",3),w(7,c0e,1,0,"i",4),w(8,d0e,1,0,"i",5),c()(),w(9,h0e,1,3,"editor",6),w(10,p0e,5,1,"div",7),w(11,v0e,2,1,"div",8),H(12,"app-form-field-help",9),c()),2&e&&(h(4),Gr(" ",n.field.label," (",n.field.value.length,")"),h(2),p("ngIf",!n.isEditorVisible),h(1),p("ngIf",!n.expanded),h(1),p("ngIf",n.expanded),h(1),p("ngIf",n.isEditorVisible),h(1),p("ngIf",n.isEditorVisible),h(1),p("ngIf",(null==n.field?null:n.field.value)&&n.expanded),h(1),p("field",n.field))},dependencies:[vn,pn,jt,ct,Rd,Wn],styles:[".section-header[_ngcontent-%COMP%]{font-size:20pt;margin:14pt}.section-header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{float:right}ol[_ngcontent-%COMP%]{list-style:none;color:var(--color-fg);padding:0;margin:0}li[_ngcontent-%COMP%]{padding-top:14px;padding-bottom:14px;padding-left:10px;border-bottom:1px solid var(--color-gray-80);font-size:12pt}li[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{float:right;margin-right:14px;vertical-align:middle}li[_ngcontent-%COMP%]:hover{background-color:var(--color-bg-menu-active);color:var(--color-fg-panel-header-active);cursor:pointer}.panel[_ngcontent-%COMP%]{background-color:var(--color-bg-panel);border:1px solid var(--color-border-panel);border-radius:8px;-webkit-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19);-webkit-box-shadow-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19)}tr[_ngcontent-%COMP%]{border-bottom:1px solid var(--color-border-panel);color:var(--color-fg)}tr[_ngcontent-%COMP%]:hover{background-color:var(--color-bg-menu-active);color:var(--color-fg-panel-header-active);cursor:pointer}td[_ngcontent-%COMP%]:first-child{padding-left:14px}"]})}class oE{static GetToDefaultScript(){return"/* Provide a formula to convert this unit */\n/* to the default unit. */\n/* */\n/* For example to convert celcuis to */\n/* fahrenheit your script would be: */\n/* */\n/* function convertToDefaultUnit(value){ */\n/* return (value * 9/5) + 32; */\n/*} */\n/* */\n\nfunction convertToDefaultUnit(value) {\n return value;\n};"}static GetFromDefaultScript(){return"/* Provide a formula to convert the default*/\n/* unit value to this unit type. */\n/* */\n/* For example to convert celcuis to */\n/* fahrenheit your script would be: */\n/* */\n/* function convertFromDefaultUnit(value){ */\n/* return (value * 9/5) + 32; */\n/*} */\n/* */\n\nfunction convertFromDefaultUnit(value) {\n return value;\n};"}static GetExtraLibs(){return[]}}class hv{GetAttributeLib(){return{classLib:"declare class Attribute { value: any; }\n\n",fileName:"attribute.d.ts"}}GetGeoLocationLib(){return{classLib:"declare class GeoLocation { latitude: number; longitude:number; }\n\n",fileName:"geoLocationLib.d.ts"}}GetAttributesLib(t){let e="declare class Attributes {\n";for(const r of t)switch(e+=` /**\n * DataType: ${r.attributeType.text}\n `,r.description&&(e+=`* ${r.description}.\n `),e+=" */\n",r.attributeType.id){case"valuewithunit":case"decimal":case"integer":e+=`\t static ${r.key}:number;\n`;break;case"true-false":e+=`\t static ${r.key}:boolean;\n`;break;case"geolocation":e+=`\t static ${r.key}:GeoLocation;\n`;break;case"mlinference":e+=`\t static ${r.key}:MLInference;\n`;break;default:e+=`\t static ${r.key}:any;\n`}return{classLib:e,fileName:"attributes.d.ts"}}GetWorkflowInputsLib(t){let e="declare class WorkflowInputs {\n";for(const n of t)switch(e+=` /**\n * DataType: ${n.inputType.text}\n `,n.description&&(e+=`* ${n.description}.\n `),e+=" */\n",n.inputType.id){case"valuewithunit":case"decimal":case"integer":e+=`\t static ${n.key}:number;\n`;break;case"true-false":e+=`\t static ${n.key}:boolean;\n`;break;case"geolocation":e+=`\t static ${n.key}:GeoLocation;\n`;break;case"mlinference":e+=`\t static ${n.key}:MLInference;\n`;break;default:e+=`\t static ${n.key}:any;\n`}return e+="}\n",{classLib:e,fileName:"workflowInput.d.ts"}}GetInputLib(){return{classLib:"declare class Input{ getValue(); setValue(value); }\n\n",fileName:"input.d.ts"}}GetInputsLib(t){let e="declare class Inputs {";for(const n of t)e+="\t"+n.key+":Input;\n";return e+="}",{classLib:e,fileName:"inputs.d.ts"}}GetMLLib(){return{classLib:"declare class MLResult {\n confidence: number;\n key: String;\n name: String;\n}\n\n\n\ndeclare class MLInference {\n results: MLResult[];\n hasResults: boolean;\n modelName: String;\n modelRevision: String;\n}\n\n\n",fileName:"mlLib.d.ts"}}GetOutputCommandLib(){return{classLib:"declare class OutputCommand { create(); }\n\n",fileName:"outputcommand.d.ts"}}GetOutputCommandsLib(t){let e="";for(const n of t){e+=`declare class ${n.key}OutputCommand {\n`;for(const r of n.parameters)r.description&&(e+=` /**\n * ${r.description}.\n */\n`),e+=`\t${r.key}:string;\n`;e+="/**\n* Enqueue an output command to be sent to the device or output source.\n*/\n",e+="\tenqueue() : void\n",e+="}\n\n"}for(const n of t)e+=`declare class ${n.key}Factory {\n`,e+="/**\n* Create an instance of an output command that can be enqeued to be sent to a device or output source.\n*/\n",e+=`\tcreate() : ${n.key}OutputCommand;\n`,e+="/**\nWill invoke the method to create the output command.\n*/\n",e+="\tsend(...args : any[]) : void;\n",e+="}\n";e+="declare class OutputCommands {\n";for(const n of t)e+=`\t static ${n.key}:${n.key}Factory;\n`;return e+="}",{classLib:e,fileName:"outputcommands.d.ts"}}GetSensorSetters(){return{classLib:"\n /**\n*Sets a value on the ADC Sensor Port of the device.\n*/\n\n function setADCValue(sensorIndex: number, sensorValue: number) {} \n\n /**\n*Sets a value on the IO Sensor Port of the device.\n*/\n\n function setIOValue(sensorIndex: number, sensorValue: number) {} \n\n /**\n*Gets a value on the ADC Sensor Port of the device.\n*/\n\n function getADCValue(sensorIndex: number) : number {} \n\n /**\n*Gets a value on the IO Sensor Port of the device.\n*/\n\n function getIOValue(sensorIndex: number) : number {} \n\n /**\n*Gets the calibration for the ADC port.\n*/\n\n function getADCCalibration(sensorIndex: number) : number {} \n\n /**\n*Gets the calibration factor for the IO port.\n*/\n\n function setIOCalibration(sensorIndex: number) : number {} \n",fileName:"sensors.d.ts"}}GetStateMachineLib(){return{classLib:"declare class StateMachine {\n\n send() : void {} \n\n};",fileName:"statemachine.d.ts"}}GetStateMachinesLib(t){let e="";for(const n of t){e+=`declare class ${n.key}StateMachine {\n`,e+=` /** \n @param event ${n.name} Events:\n`;for(const r of n.events)e+=`'${r.key}' `;e+=" */ \n",e+=" send(event: string, ...args : any[]) : void\n",e+="}\n"}e+="declare class StateMachines {\n";for(const n of t)n.description&&(e+=` /**\n * ${n.description}.\n */\n`),e+=`\tstatic ${n.key}:${n.key}StateMachine;\n`;return e+="}",{classLib:e,fileName:"statemachines.d.ts"}}GetDeviceWorkflowLib(){return{classLib:"declare class DeviceWorkflow\n{\n outputCommands: OutputCommands;\n}",fileName:"deviceworkflow.d.ts"}}GetIoTDeviceLib(){return{classLib:"declare staitc class IoTDevice\n{\n /**\n * Given unique device id.\n */\n DeviceId: string;\n\n /**\n * Unique Generated Id for Device\n */\n Id: string;\n}\n\n/**\n * Any properties created at the device configuration level\n **/\ndeclare staitc class DeviceProperties {\n\n}\n",fileName:"iotDeviceLib.d.ts"}}GetPEMBusLib(){return{classLib:"\n /**\n * Enqueue a new PEM (Pipeline Execution Message) to be processed by a specific device.\n * @param msgId Message Id for new PEM\n * @param deviceId Device Id associated with the new PEM\n * @param json JSON Object that will be sent as part of the payload\n **/\n function enqueuePEM(msgId: string, deviceId: string, json:any){}\n\n /**\n * Enqueue a new PEM (Pipeline Execution Message) to be processed by the parent of the current device, if the parent does not exist this method will fail.\n * @param msgId Message Id for new PEM\n * @param json JSON Object that will be sent as part of the payload\n **/\n function enqueuePEMToParent(msgId: string, json:any){}\n\n /**\n * Enqueue a new PEM (Pipeline Execution Message) to be processed by all devices in the current repositories for a device configuration type.\n * @param msgId Message Id for new PEM\n * @param deviceConfigKey Device Id associated with the new PEM\n * @param json JSON Object that will be sent as part of the payload\n **/\n function enqueuePEMForDeviceConfig(msgId: string, deviceConfigKey: string, json:any){}\n\n /**\n * Enqueue a new PEM (Pipeline Execution Message) to be processed by a group of devices.\n * @param msgId Message Id for new PEM\n * @param deviceGroupKey Key of device group to receive this message\n * @param json JSON Object that will be sent as part of the payload\n **/\n function enqueuePEMToDeviceGroup(msgId: string, deviceGroupKey: string, json:any){}\n\n /**\n * Enqueue a new PEM (Pipeline Execution Message) to be processed by a set of device configurations\n * @param msgId Message Id for new PEM\n * @param deviceConfigKey Device Configuration Key to enqueue a message\n * @param json JSON Object that will be sent as part of the payload\n **/\n function enqueuePEMForDeviceConfig(msgId: string, deviceConfigKey: string, json:any){}",fileName:"pemBus.d.ts"}}GetMessagingLib(){return{classLib:"\n /**\n * Send a SMS meessage to a cell phone\n * @param pnone Phone Number to send SMS message\n * @param message Content of text message to be sent.\n **/\n function sendSMS(phone: string, message: message){};\n\n /**\n * Send a SMS meessage to a cell phone\n * @param Email Address of account to receive message.\n * @param Subject for Email.\n * @param Content of Email\n **/\n function xm(email: string, subject: string, body: string){}",fileName:"messaging.d.ts"}}GetDeviceWorkflowRepoLib(){return{classLib:"declare class Repository {\n /**\n * Load the work flow\n **/\n static getWorkflow(workflowKey: string): DeviceWorkflow\n}",fileName:"workflowrepo.d.ts"}}SetFSLiteTicketScript(){return{classLib:"\n /**\n * Create a field service lite service ticket from a ticket key\n * @param serviceTicketTemplateKey unique key assigned to the service ticket template in the Field Service Lite module\n * @param details (optional) any additional details to be added to the field service ticket when it is generated\n * @param dontCreateIfExists (optional, default is true) if this ticket type already exists and is open for this device another copy of the ticket should not be created\n **/\n function generateFSLiteTicket(serviceTicketTemplateKey: string, details: string, dontCreateIfExists: boolean ): {}\n",fileName:"fslitescripts.d.ts"}}GetDeviceStreamLib(){return{classLib:"\n /**\n * Add a message to the device stream\n * @param streamId Id of the stream where data will be logged\n * @param data JSON Object that will be sent as part of the payload\n **/\n function addToDataStream(streamKey: string, data: any): {}\n\n /**\n * Add a message to the device stream\n * @param streamId Id of the stream where data will be logged\n * @param updateValues JSON object that maps to the values that should be updated, the id of the property should mach the column name.\n * @param filterValues JSON Object that has the values that should be used to select the records to update.\n **/\n function updateDataStream(streamKey: string, updateValues: any, filterValues: any): {}",fileName:"deviceStream.d.ts"}}GetDeviceStatusLib(){return{classLib:"\n /**\n *Handle an error code for a device\n **/\n function getDeviceStatus(): string {};\n\n /**\n * Will set the device's custom status to the status identified by the status key\n **/\n function setCustomStatus(statusKey: string): void;\n ",fileName:"devicestatus.d.ts"}}GetDeviceExceptionLib(){return{classLib:"\n /**\n *Handle an error code for a device\n **/\n function generateError(errorCode: string, details: string): void {};",fileName:"deviceexceptions.d.ts"}}DevicePropertiesLib(){let t="/** \n * Log a message to the device \n **/ \nfunction logToDevice(msg:string) { }\n\n";return t+="/** \n * Clear Device Log \n **/ \nfunction clearDeviceLog() { }\n\n",t+="/** \n * Generate a new Guid \n **/ \nfunction newGuid() { }\n\n",t+="/** \n * Generate a new Id, similar to a 32 bit guid, but only upper case letters and numbers \n **/ \nfunction newId() { }\n\n",t+="/** \n * Write a message to the device console \n **/ \nfunction logConsole(msg: string) { }\n\n",t+="/** \n * Send a command to the device \n **/ \nfunction sendCommand(command: string, payload: string):void { }\n\n",t+="/** \n * Credit device account\n **/ \nfunction creditAccount(command: transactionType, payload: number, description: string):void { }\n\n",t+="/** \n * Debit device account\n **/ \nfunction debitAccount(command: transactionType, payload: number, description: string):void { }\n\n",t+="/** \n * Set a property that will be associated with the device \n **/ \nfunction addToPropertyBag(key:string,property) { }\n\n",t+="/** \n * Get a property from property bag that was previously associated with the device \n **/ \nfunction getFromPropertyBag(key:string,defaultValue?:any) :any { }\n\n",t+="/** \n * Check if a property exists in the property bag \n **/ \nfunction hasPropertyBagValue(key:string,defaultValue?:any) :boolean { }\n\n",t+="/** \n * Clear a property that was previously associated with the device \n **/ \nfunction clearPropertyBagValue(key:string) :any { }\n\n",t+="/** \n * Set a temporary storage variable in Session Values \n **/ \nfunction setSessionValue(key:string,property) { }\n\n",t+="/** \n * Get a temporary storage variable from Session Values \n **/ \nfunction getSessionValue(key:string,defaultValue?:any) :any { }\n\n",t+="/** \n * Check if a property exists in the Session Values \n **/ \nfunction hasSessionValue(key:string,defaultValue?:any) :boolean { }\n\n",t+="/** \n * Clear a temporary storage variable \n **/ \nfunction clearSessionValue(key:string) :any { }\n\n",t+="/** \n * Generate an error message with an error code and an optional detail that will be handled by the definition of the error code \n **/ \nfunction generateError(errorCode:string, details: string) :void { }\n\n",t+="/** \n * Send a web socket notification to the current instance \n **/ \nfunction sendInstanceNotification(payloadType:string, payload:any) { }\n\n",t+="/** \n * Send a web socket notification to device configurations for current device \n **/ \nfunction sendDeviceConfigurationNotification(payloadType:string, payload:any) { }\n\n",t+="/** \n * Send a web socket notification to the current device \n **/ \nfunction sendDeviceNotification(payloadType:string, payload:any) { }\n\n",{classLib:"/** \n * Log a message to the device \n **/ \nfunction logToDevice(msg:string) { }\n\n/** \n * Clear Device Log \n **/ \nfunction clearDeviceLog() { }\n\n/** \n * Generate a new Guid \n **/ \nfunction newGuid() { }\n\n/** \n * Generate a new Id, similar to a 32 bit guid, but only upper case letters and numbers \n **/ \nfunction newId() { }\n\n/** \n * Write a message to the device console \n **/ \nfunction logConsole(msg: string) { }\n\n/** \n * Send a command to the device \n **/ \nfunction sendCommand(command: string, payload: string):void { }\n\n/** \n * Credit device account\n **/ \nfunction creditAccount(command: transactionType, payload: number, description: string):void { }\n\n/** \n * Debit device account\n **/ \nfunction debitAccount(command: transactionType, payload: number, description: string):void { }\n\n/** \n * Set a property that will be associated with the device \n **/ \nfunction addToPropertyBag(key:string,property) { }\n\n/** \n * Get a property from property bag that was previously associated with the device \n **/ \nfunction getFromPropertyBag(key:string,defaultValue?:any) :any { }\n\n/** \n * Check if a property exists in the property bag \n **/ \nfunction hasPropertyBagValue(key:string,defaultValue?:any) :boolean { }\n\n/** \n * Clear a property that was previously associated with the device \n **/ \nfunction clearPropertyBagValue(key:string) :any { }\n\n/** \n * Set a temporary storage variable in Session Values \n **/ \nfunction setSessionValue(key:string,property) { }\n\n/** \n * Get a temporary storage variable from Session Values \n **/ \nfunction getSessionValue(key:string,defaultValue?:any) :any { }\n\n/** \n * Check if a property exists in the Session Values \n **/ \nfunction hasSessionValue(key:string,defaultValue?:any) :boolean { }\n\n/** \n * Clear a temporary storage variable \n **/ \nfunction clearSessionValue(key:string) :any { }\n\n/** \n * Generate an error message with an error code and an optional detail that will be handled by the definition of the error code \n **/ \nfunction generateError(errorCode:string, details: string) :void { }\n\n/** \n * Send a web socket notification to the current instance \n **/ \nfunction sendInstanceNotification(payloadType:string, payload:any) { }\n\n/** \n * Send a web socket notification to device configurations for current device \n **/ \nfunction sendDeviceConfigurationNotification(payloadType:string, payload:any) { }\n\n/** \n * Send a web socket notification to the current device \n **/ \nfunction sendDeviceNotification(payloadType:string, payload:any) { }\n\n",fileName:"commonfunc.d.ts"}}GetWorkflowObjectModel(t){const e=[];return e.push(this.GetGeoLocationLib()),e.push(this.GetPEMBusLib()),e.push(this.GetIoTDeviceLib()),e.push(this.GetMLLib()),e.push(this.GetDeviceStreamLib()),e.push(this.GetMessagingLib()),e.push(this.GetAttributeLib()),e.push(this.GetDeviceExceptionLib()),e.push(this.GetWorkflowInputsLib(t.inputs)),e.push(this.DevicePropertiesLib()),e.push(this.GetAttributesLib(t.attributes)),e.push(this.GetInputLib()),e.push(this.GetInputsLib(t.inputs)),e.push(this.GetOutputCommandLib()),e.push(this.GetOutputCommandsLib(t.outputCommands)),e.push(this.GetStateMachineLib()),e.push(this.GetStateMachinesLib(t.stateMachines)),e.push(this.GetDeviceWorkflowLib()),e.push(this.GetDeviceWorkflowRepoLib()),e.push(this.GetSensorSetters()),e.push(this.SetFSLiteTicketScript()),e}GetStateObjectModel(){const t=[];return t.push(this.GetPEMBusLib()),t.push(this.GetIoTDeviceLib()),t.push(this.GetDeviceStreamLib()),t.push(this.GetMessagingLib()),t.push(this.GetAttributeLib()),t.push(this.DevicePropertiesLib()),t.push(this.GetInputLib()),t.push(this.GetDeviceWorkflowRepoLib()),t}GetCustomPipelineObjectModel(t){const e=[];return e.push(this.GetGeoLocationLib()),e.push(this.GetPEMBusLib()),e.push(this.GetIoTDeviceLib()),e.push(this.GetDeviceStreamLib()),e.push(this.GetMessagingLib()),e.push(this.GetAttributeLib()),e.push(this.DevicePropertiesLib()),e.push(this.GetInputLib()),e.push(this.GetDeviceWorkflowRepoLib()),e}}class y0e extends hv{GetScriptHelpLinks(){var t=[];return t.push({title:"Scripting Help",link:"http://support.nuviot.com/help.html#/Scripting/Index.md"}),t.push({title:"State Machine - onTransition",link:"http://support.nuviot.com/help.html#/Scripting/StateTransition.md"}),t.push({title:"State Machine - handle",link:"http://support.nuviot.com/help.html#/Scripting/StateMachineSendEvent.md"}),t.push({title:"Working with Properties",link:"http://support.nuviot.com/help.html#/scripting/workingwithproperties"}),t.push({title:"Property Bag",link:"http://support.nuviot.com/help.html#/scripting/propertybag"}),t}static GetDefaultScript(){return"/*\n * Provide a script that will get execute when this transition\n * into a state occurs.\n *\n * Your onTransitionIn handler can accept an optional parameter\n * the method for the optional parameter would look like:\n *\n * function onTransitionIn(parameter) {\n *\n * }\n *\n */\nfunction onTransitionIn(parameter) {\n\n};"}constructor(t){super()}GetExtraLibs(t){let e=new hv,n=this.GetWorkflowObjectModel(t);return n.concat(e.GetStateObjectModel()),n}}class b0e extends hv{GetScriptHelpLinks(){var t=[];return t.push({title:"Scripting Help",link:"http://support.nuviot.com/help.html#/Scripting/Index.md"}),t.push({title:"State Machine - onTransition",link:"http://support.nuviot.com/help.html#/Scripting/StateTransition.md"}),t.push({title:"State Machine - handle",link:"http://support.nuviot.com/help.html#/Scripting/StateMachineSendEvent.md"}),t.push({title:"Working with Properties",link:"http://support.nuviot.com/help.html#/scripting/workingwithproperties"}),t.push({title:"Property Bag",link:"http://support.nuviot.com/help.html#/scripting/propertybag"}),t}static GetDefaultScript(){return"/*\n * Provide a script that will get execute when this transition\n * occurs.\n *\n * Your onTransition handler can accept an optional parameter\n * the method for the optional parameter would look like:\n *\n * function onTransition(parameter) {\n *\n * }\n *\n */\nfunction onTransition() {\n\n};"}DeviceWorkflow;Transition;ConnectionId;SourceState;DestState;StateMachine;Event;constructor(t,e,n,r,o,a,s){super(),this.StateMachine=e,this.DeviceWorkflow=t,this.Transition=n,this.ConnectionId=s,this.Event=a,this.SourceState=r,this.DestState=o}GetExtraLibs(){return this.GetWorkflowObjectModel(this.DeviceWorkflow)}UpdateScriptOnModel(t){this.Transition.transitionAction=t}}class C0e extends hv{businessRule;GetScriptHelpLinks(){const t=[];return t.push({title:"Scripting Help",link:"http://support.nuviot.com/help.html#/Scripting/Index.md"}),t.push({title:"Business Rules Script",link:"http://support.nuviot.com/help.html#/scripting/businessrules"}),t.push({title:"Working with Attributes",link:"http://support.nuviot.com/help.html#/scripting/workingwithattributes"}),t.push({title:"Working with Properties",link:"http://support.nuviot.com/help.html#/scripting/workingwithproperties"}),t.push({title:"Property Bag",link:"http://support.nuviot.com/help.html#/scripting/propertybag"}),t}static GetDefaultScript(){return"/*\n * Provide a script to be executed to evaluate this business rule\n * workflows have been executed.\n *\n * Your function might look as follows:\n *\n * // Example 1: Successful Case\n * function evaluate(){\n * const condition = Attributes.temperature < DeviceProperties.temperaturethreshold;\n * return condition;\n * }\n *\n * // Example 2: failed case\n * function evaluate(){\n * const condition = Attributes.temperature > DeviceProperties.temperaturethreshold;\n *\n * // set a reason to be passed with the error code or service ticket.\n * setReason('check failed, over temperature: ' + Attributes.temperature);\n *\n * // if this is set to true, a ticket will only be generated if the ticket does not exist\n * // if you set this to false, it will generate a service ticket each time this fails.\n * setExclusive(false);\n * return true;\n * }\n */\nfunction evaluate() /*boolean*/{\n\n return true;\n};"}workflow;constructor(t,e){super(),this.workflow=t,this.businessRule=e}GetExtraLibs(){const t=this.GetWorkflowObjectModel(this.workflow),e={fileName:"businessRuleExec.d.ts",classLib:"declare class ServiceTicketTemplate { /**\n *Create a new service ticket from the given template.\n */ id; }\n\n"};return e.classLib+="\n /**\n* Set a reason to be included with the service ticket or error code\n* that will be generated.\n**/\n function setReason( reason: string) { };\n\n /**\n* If you set isExclusive, if a ticket is already open on\n* the device an additional ticket will not be generated.\n**/\n function setExclusive(exclusive: bool) { };\n",t.push(e),t}UpdateScriptOnModel(t){this.businessRule.script=t}}class w0e extends hv{GetScriptHelpLinks(){var t=[];return t.push({title:"Scripting Help",link:"http://support.nuviot.com/help.html#/Scripting/Index.md"}),t.push({title:"Working with Properties",link:"http://support.nuviot.com/help.html#/scripting/workingwithproperties"}),t.push({title:"Property Bag",link:"http://support.nuviot.com/help.html#/scripting/propertybag"}),t}customModule;static GetDefaultScript(){return"/*\n * Provide a script to be executed when an\n * on an incoming message.\n *\n * Your function might look as follows\n *\n * function handle(pem) {\n *\n * return true;\n * }\n *\n */\n function handle(pem){\n\n return true;\n };"}GetScript(){return this.customModule.script?this.customModule.script:"/*\n * Provide a script to be executed when an\n * on an incoming message.\n *\n * Your function might look as follows\n *\n * function handle(pem) {\n *\n * return true;\n * }\n *\n */\nfunction handle(pem){\n\n return true;\n};"}constructor(t){super(),this.customModule=t}GetExtraLibs(){return this.GetCustomPipelineObjectModel(this.customModule)}UpdateScriptOnModel(t){this.customModule.script=t}}class pv{constructor(){}getScriptLibs(t,e){switch(console.log("getScriptLibs",t,e),t.scriptTemplateName){case"unitConversionFromScript":case"unitConversionToScript":return oE.GetExtraLibs();default:console.warn(`Don't know how to get default script libs for ${t.scriptTemplateName}`)}return[]}getDefaultScript(t){switch(t.scriptTemplateName){case"unitConversionToScript":return oE.GetToDefaultScript();case"unitConversionFromScript":return oE.GetFromDefaultScript();case"stateTransitionInAction":return y0e.GetDefaultScript();case"transitionAction":return b0e.GetDefaultScript();case"businessRule":return C0e.GetDefaultScript();case"customPipelineModule":return w0e.GetDefaultScript();default:console.warn(`Don't know how to get default script for ${t.scriptTemplateName}`)}return""}static \u0275fac=function(e){return new(e||pv)};static \u0275prov=$e({token:pv,factory:pv.\u0275fac,providedIn:"root"})}const aE=new nt("NGX_MONACO_EDITOR_CONFIG"),D0e=["editorContainer"];let aV,oV=!1;class VC{config;set insideNg(t){this._insideNg=t,this._editor&&(this._editor.dispose(),this.initMonaco(this._options,this.insideNg))}get insideNg(){return this._insideNg}_editorContainer;onInit=new Ae;_editor;_options;_windowResizeSubscription;_insideNg=!1;constructor(t){this.config=t}ngAfterViewInit(){oV?aV.then(()=>{this.initMonaco(this._options,this.insideNg)}):(oV=!0,aV=new Promise(t=>{const e=this.config.baseUrl||"public/assets";if("object"==typeof window.monaco)return this.initMonaco(this._options,this.insideNg),void t();const n=()=>{window.require.config({paths:{vs:`${e}/monaco/min/vs`}}),window.require(["vs/editor/editor.main"],()=>{"function"==typeof this.config.onMonacoLoad&&this.config.onMonacoLoad(),this.initMonaco(this._options,this.insideNg),t()})};if(window.require)n();else{const r=document.createElement("script");r.type="text/javascript",r.src=`${e}/monaco/min/vs/loader.js`,r.addEventListener("load",n),document.body.appendChild(r)}}))}ngOnDestroy(){this._windowResizeSubscription&&this._windowResizeSubscription.unsubscribe(),this._editor&&(this._editor.dispose(),this._editor=void 0)}static \u0275fac=function(e){return new(e||VC)(U(aE))};static \u0275cmp=Be({type:VC,selectors:[["ng-component"]],viewQuery:function(e,n){if(1&e&&un(D0e,7),2&e){let r;pt(r=ft())&&(n._editorContainer=r.first)}},inputs:{insideNg:"insideNg"},outputs:{onInit:"onInit"},decls:0,vars:0,template:function(e,n){},encapsulation:2})}function M0e(i,t){if(1&i&&(u(0,"h4",9),m(1),c()),2&i){const e=g();h(1),Re(e.field.label)}}function x0e(i,t){if(1&i){const e=pe();u(0,"span",10),N("click",function(){return R(e),L(g().fullScreenView())}),H(1,"i",11),m(2,"Full Screen "),c()}}function k0e(i,t){if(1&i){const e=pe();u(0,"span",10),N("click",function(){return R(e),L(g().normalView())}),H(1,"i",12),m(2,"Done "),c()}}function T0e(i,t){if(1&i){const e=pe();u(0,"i",19),N("click",function(){return R(e),L(g().$implicit.visible=!0)}),c()}}function S0e(i,t){if(1&i){const e=pe();u(0,"i",20),N("click",function(){return R(e),L(g().$implicit.visible=!1)}),c()}}function E0e(i,t){if(1&i){const e=pe();u(0,"div",22),N("click",function(){const o=R(e).$implicit;return L(g(4).insertTag(o))}),m(1),c()}if(2&i){const e=t.$implicit;h(1),Re(e)}}function A0e(i,t){if(1&i&&(u(0,"div"),w(1,E0e,2,1,"div",21),c()),2&i){const e=g().$implicit;h(1),p("ngForOf",e.tags)}}function I0e(i,t){if(1&i&&(u(0,"div")(1,"div")(2,"h5",15)(3,"div",9),m(4),c(),u(5,"div"),w(6,T0e,1,0,"i",16),w(7,S0e,1,0,"i",17),c()(),u(8,"p"),m(9),c(),w(10,A0e,2,1,"div",18),c()()),2&i){const e=t.$implicit;h(4),Ke(" ",e.name," "),h(2),p("ngIf",!e.visible),h(1),p("ngIf",e.visible),h(2),Re(e.description),h(1),p("ngIf",e.visible)}}function F0e(i,t){if(1&i&&(u(0,"div",13),w(1,I0e,11,5,"div",14),c()),2&i){const e=g();h(1),p("ngForOf",e.tagGroups)}}const P0e=function(i,t){return{"full-screen":i,"normal-height":t}};class fv extends VC{cmsService;zone;editorConfig;_value="";propagateChange=t=>{};onTouched=()=>{};field;fullScreenMode=!1;compiledLibraries;tagGroups=[];set options(t){this._options=Object.assign({},this.config.defaultOptions,t),this._editor&&(this._editor.dispose(),this.initMonaco(t,this.insideNg))}get options(){return this._options}set model(t){this.options.model=t,this._editor&&(this._editor.dispose(),this.initMonaco(this.options,this.insideNg))}constructor(t,e,n){super(n),this.cmsService=t,this.zone=e,this.editorConfig=n}writeValue(t){this._value=t||"",setTimeout(()=>{this._editor&&!this.options.model&&this._editor.setValue(this._value)})}registerOnChange(t){this.propagateChange=t}registerOnTouched(t){this.onTouched=t}initMonaco(t,e){const n=!!t.model;if(n){const r=monaco.editor.getModel(t.model.uri||"");r?(t.model=r,t.model.setValue(this._value)):t.model=monaco.editor.createModel(t.model.value,t.model.language,t.model.uri)}if(this.field&&this.field.extraScriptLibs&&this.field.extraScriptLibs){this.compiledLibraries=[];for(let r of this.field.extraScriptLibs){let o=monaco.languages.typescript.typescriptDefaults.addExtraLib(r.classLib,r.fileName);this.compiledLibraries.push(o)}}e?this._editor=monaco.editor.create(this._editorContainer.nativeElement,t):this.zone.runOutsideAngular(()=>{this._editor=monaco.editor.create(this._editorContainer.nativeElement,t)}),n||this._editor.setValue(this._value),this._editor.onDidChangeModelContent(r=>{const o=this._editor.getValue();this.zone.run(()=>{this.propagateChange(o),this._value=o})}),this._editor.onDidBlurEditorWidget(()=>{this.onTouched()}),this._windowResizeSubscription&&this._windowResizeSubscription.unsubscribe(),this._windowResizeSubscription=yn(window,"resize").subscribe(()=>this._editor.layout()),this.onInit.emit(this._editor),this.getTags()}ngOnDestroy(){if(super.ngOnDestroy(),this.compiledLibraries)for(let t of this.compiledLibraries)t.dispose();this.compiledLibraries=void 0}getTags(){var t=this;return z(function*(){let e=[];for(let n of t.field.tagsCSVURls){let r=yield t.cmsService.getTagGroup(n);e.push(r)}t.tagGroups=e})()}fullScreenView(){this.fullScreenMode=!0}normalView(){this.fullScreenMode=!1}insertTag(t){var e=this._editor.getPosition(),n=new monaco.Range(e.lineNumber,e.column,e.lineNumber,e.column);this._editor.executeEdits("my-source",[{identifier:{major:1,minor:1},range:n,text:t,forceMoveMarkers:!0}])}static \u0275fac=function(e){return new(e||fv)(U(kc),U(Bt),U(aE))};static \u0275cmp=Be({type:fv,selectors:[["ngx-monaco-editor"]],inputs:{field:"field",options:"options",model:"model"},features:[Pn([{provide:sa,useExisting:Fn(()=>fv),multi:!0}]),st],decls:10,vars:8,consts:[[1,"script-editor-container",3,"ngClass"],[2,"display","flex"],["style","flex-grow:1",4,"ngIf"],[2,"width","120px"],["class","action",3,"click",4,"ngIf"],[2,"display","flex","height","100%"],[1,"editor-container",2,"flex-grow","1"],["editorContainer",""],["style","width:400px;height: calc(100vh - 100px);overflow-y:auto",4,"ngIf"],[2,"flex-grow","1"],[1,"action",3,"click"],[1,"fa","fa-expand-arrows"],[1,"fa","fa-arrows-minimize"],[2,"width","400px","height","calc(100vh - 100px)","overflow-y","auto"],[4,"ngFor","ngForOf"],[1,"tag-group-label",2,"display","flex"],["class","fa fa-chevron-down action",3,"click",4,"ngIf"],["class","fa fa-chevron-up action",3,"click",4,"ngIf"],[4,"ngIf"],[1,"fa","fa-chevron-down","action",3,"click"],[1,"fa","fa-chevron-up","action",3,"click"],["class","tag",3,"click",4,"ngFor","ngForOf"],[1,"tag",3,"click"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1),w(2,M0e,2,1,"h4",2),u(3,"div",3),w(4,x0e,3,0,"span",4),w(5,k0e,3,0,"span",4),c()(),u(6,"div",5),H(7,"div",6,7),w(9,F0e,2,1,"div",8),c()()),2&e&&(p("ngClass",yi(5,P0e,n.fullScreenMode,!n.fullScreenMode)),h(2),p("ngIf",n.fullScreenMode),h(2),p("ngIf",!n.fullScreenMode),h(1),p("ngIf",n.fullScreenMode),h(4),p("ngIf",n.fullScreenMode))},dependencies:[Zi,jt,ct],styles:["[_nghost-%COMP%]{display:block;height:100%}.normal-height[_ngcontent-%COMP%] .editor-container[_ngcontent-%COMP%]{width:100%;height:98%}.full-screen[_ngcontent-%COMP%] .editor-container[_ngcontent-%COMP%]{width:calc(100vw - 400px)}.full-screen[_ngcontent-%COMP%]{top:0;left:0;background-color:#fff;position:fixed;height:calc(100vh - 80px);width:100vw;padding:10px}.normal-height[_ngcontent-%COMP%]{height:600px}"]})}const R0e=function(i){return{"normal-mode":i}},L0e=function(i){return{"full-screen-mode":i}};class HC{activeModal;scriptManager;constructor(t,e){this.activeModal=t,this.scriptManager=e}editorOptions={theme:"vs-dark",automaticLayout:!0,language:"typescript",fixedOverflowWidgets:!0};code='function x() {\nconsole.log("Hello world!");\n}';parentModel;script;fullScreenEnabled=!1;normalViewMode=!0;_fld;set field(t){this._fld=t;let e=this.scriptManager.getScriptLibs(t,this.parentModel);e&&!this._fld.extraScriptLibs&&(this._fld.extraScriptLibs=e),this.script=t.scriptTemplateName?t.value?t.value:this.scriptManager.getDefaultScript(t):t.value??t.defaultValue}get field(){return this._fld}scriptUpdated=new Ae;language="typescript";ngOnInit(){this.editorOptions.language=this.language,this.editorOptions.theme="vs-dark"}closeModal(){this.field&&this.field.defaultValue!=this.script&&(this.field.value=this.script),this.activeModal.close()}saveChanges(){this.field&&this.field.defaultValue!=this.script&&(this.field.value=this.script),this.save?.()}fullScreen(){this.fullScreenEnabled=!0,this.normalViewMode=!1}exitFullScreen(){this.fullScreenEnabled=!1,this.normalViewMode=!0}static \u0275fac=function(e){return new(e||HC)(U(dr),U(pv))};static \u0275cmp=Be({type:HC,selectors:[["app-script-editor"]],outputs:{scriptUpdated:"scriptUpdated"},decls:14,vars:10,consts:[[2,"z-index","1060","height","800px","width","1138px"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body",3,"ngClass"],[2,"height","600px",3,"field","options","ngModel","ngModelChange"],[1,"modal-footer"],[1,"btn","btn-md","btn-success",3,"click"],[1,"btn","btn-md","btn-primary",3,"click"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1)(2,"h5",2),m(3),c(),u(4,"button",3),N("click",function(){return n.closeModal()}),u(5,"span",4),m(6,"\xd7"),c()()(),u(7,"div",5)(8,"ngx-monaco-editor",6),N("ngModelChange",function(o){return n.script=o}),c()(),u(9,"div",7)(10,"button",8),N("click",function(){return n.saveChanges()}),m(11,"Save Changes to Server"),c(),u(12,"button",9),N("click",function(){return n.closeModal()}),m(13,"Close"),c()()()),2&e&&(h(3),Ke("Edit Script - ",n.field.label,""),h(4),p("ngClass",Ct(6,R0e,!1===n.fullScreenEnabled))("ngClass",Ct(8,L0e,n.fullScreenEnabled)),h(1),p("field",n.field)("options",n.editorOptions)("ngModel",n.script))},dependencies:[Zi,vn,pn,fv],styles:[".full-screen-mode[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1000}.normal-mode[_ngcontent-%COMP%]{height:600px}.editorFullView[_ngcontent-%COMP%]{height:calc(100vh - 80px)}"]})}function O0e(i,t){if(1&i){const e=pe();u(0,"span",7),N("click",function(){return R(e),L(g(2).showScriptEditor())}),m(1),c()}if(2&i){const e=g(2);h(1),Re(e.getLabel())}}function N0e(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g(2);h(1),Re(e.field.value.text)}}function B0e(i,t){if(1&i&&(u(0,"div",2),H(1,"app-form-field-label",3),u(2,"div",4),w(3,O0e,2,1,"span",5),w(4,N0e,2,1,"div",6),c()()),2&i){const e=g();h(1),p("name",e.field.name)("label",e.field.label)("isRequired",e.field.isRequired),h(2),p("ngIf",e.isEnabled),h(1),p("ngIf",!e.isEnabled)}}class YC extends ln{modalService;constructor(t){super(),this.modalService=t}showScriptEditor(){const e=this.modalService.open(HC,{size:"xl"}).componentInstance;e.save=()=>this.save(),"RawHtml"===this.field.fieldType&&(e.language="html"),e.field=this.field,e.parentModel=this.model}save(){this.host.saveForm(!1)}getLabel(){return"RawHtml"===this.field.fieldType?this.field.value?"-edit html-":"-add html-":this.field.value?"-edit script-":this.field.watermark??"-edit script-"}static \u0275fac=function(e){return new(e||YC)(U(zn))};static \u0275cmp=Be({type:YC,selectors:[["app-script"]],features:[st],decls:2,vars:7,consts:[["class","form-group","attr","one","ng-hide","!isVisible",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],["attr","one","ng-hide","!isVisible",1,"form-group"],[3,"name","label","isRequired"],[1,"input-group-holder"],["class","picker-link",3,"click",4,"ngIf"],[4,"ngIf"],[1,"picker-link",3,"click"]],template:function(e,n){1&e&&(w(0,B0e,5,5,"div",0),H(1,"app-form-field-validation-section",1)),2&e&&(p("ngIf",n.field),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors))},dependencies:[ct,qn,Gn],styles:[".picker-link[_ngcontent-%COMP%], .picker-link-remove[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-accent)}.picker-link[_ngcontent-%COMP%]:hover{text-decoration:underline;color:var(--color-accent)}"]})}const sV=function(){return{plugins:"lists link image table code help wordcount fullscreen",toolbar:"fullscreen undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | align lineheight | tinycomments | checklist numlist bullist indent outdent | emoticons charmap | removeforma"}};function Y0e(i,t){if(1&i){const e=pe();u(0,"editor",13),N("ngModelChange",function(r){return R(e),L(g().sourceContent=r)}),c()}if(2&i){const e=g();p("init",oc(2,sV))("ngModel",e.sourceContent)}}function U0e(i,t){if(1&i){const e=pe();u(0,"textarea",14),N("ngModelChange",function(r){return R(e),L(g().sourceContent=r)}),c()}2&i&&p("ngModel",g().sourceContent)}function j0e(i,t){if(1&i){const e=pe();u(0,"editor",13),N("ngModelChange",function(r){return R(e),L(g().response=r)}),c()}if(2&i){const e=g();p("init",oc(2,sV))("ngModel",e.response)}}function $0e(i,t){if(1&i){const e=pe();u(0,"textarea",14),N("ngModelChange",function(r){return R(e),L(g().response=r)}),c()}2&i&&p("ngModel",g().response)}function z0e(i,t){1&i&&H(0,"div",15)}function W0e(i,t){if(1&i&&(u(0,"div",16)(1,"h4"),m(2,"Please Wait..."),c(),u(3,"h4"),m(4,"...I'll Be Back"),c(),H(5,"app-loading-spinner",17),c()),2&i){const e=g();h(5),p("caption",e.terminatorQuote)}}class gv{activeModal;mlService;form;busy=!1;htmlContent=!1;request;outputFormat;response;sourceContent;onApplyContent=new Ae;_requestOption="-1";get requestOption(){return this._requestOption}set requestOption(t){this._requestOption=t,this.request=t}terminatorQuote;terminatorQuotes=["Hasta la vista, baby","Come with me if you want to live","I need your clothes, your boots, and your motorcycle","I know Now Why You Cry, But It\u2019s Something I Can Never Do.","I\u2019m a cybernetic organism. Living tissue over a metal endoskeleton.","If A Machine, A Terminator, Can Learn The Value Of Human Life, Maybe We Can, Too.","All You Know How To Create Is Death And Destruction","She\u2019s A Priority To Me","If Someone Comes Up To You With An Attitude, You Say, 'Eat Me'","You Just Can\u2019t Go Around Killing People","Your Foster Parents Are Dead.","My Mission Is To Protect You","Maybe It\u2019ll Be Enough If You Know That, In The Few Hours We Had Together, We Loved A Lifetime\u2019s Worth","You\u2019re Terminated","So You Feel Nothing?","It Doesn\u2019t Feel Pity, Or Remorse, Or Fear, And It Absolutely Will Not Stop, Ever, Until You Are Dead!","His Name Is Connor. John Connor. Your Son, Sarah\u2026 Your Unborn Son","Cyborgs Don\u2019t Feel Pain. I Do","Your Clothes, Give Them To Me, Now","The Future Has Not Been Written. There Is No Fate But What We Make For Ourselves.","Judgment Day Is Inevitable","The Strength Of The Human Heart. The Difference Between Us And Machines.","This Is The World Now. Logged On, Plugged In, All The Time.","Skynet Was Gone. And Now One Road Has Become Many","When This Is All Over, I Am Going To Kill You","You Need Butterflies, Polka Dots, Balloons","I Am Human. Just Enhanced","Because I Was Her. And It Sucks","Once, I Saved Three Billion Lives\u2026 But I Couldn\u2019t Save My Son","I\u2019m Never Going To Fu**ing Call You Car","You Chose To Destroy Skynet. You Set Me Free"];constructor(t,e){this.activeModal=t,this.mlService=e}ngOnInit(){this.outputFormat=this.htmlContent?"HTML":"Plain Text",this.request&&(this.request=this.request.replaceAll("{name}",this.form.view.name.value??"[SUBJECT MATTER]"))}callTerminator(){var t=this;return z(function*(){let e=parseInt((Math.random()*t.terminatorQuotes.length).toString());if(t.terminatorQuote=t.terminatorQuotes[e],console.log(t.terminatorQuote),t.busy=!0,!t.request&&!t.sourceContent)return void alert("Please provide a Request or Content.");var n="";t.request&&(n=t.request),"HTML"==t.outputFormat&&(n+=" please format as html"),t.sourceContent&&(n+=`: ${t.sourceContent}`);let r={query:n,role:"user",conversationId:void 0},o=yield t.mlService.textQuery(r);if(t.response=o.result.response,t.busy=!1,t.form.view.summary&&!t.form.view.summary.value){r.query=`Please summarize the following content: ${t.response}`;let a=yield t.mlService.textQuery(r);a.successful&&(t.form.view.summary.value=a.result.response)}})()}apply(){this.onApplyContent?.emit(this.response),this.activeModal.close()}cancel(){this.activeModal.close()}static \u0275fac=function(e){return new(e||gv)(U(dr),U(gh))};static \u0275cmp=Be({type:gv,selectors:[["app-text-helper"]],decls:53,vars:10,consts:[[2,"padding","10pt","position","relative"],[1,"form-select",3,"ngModel","ngModelChange"],["value","-1"],[1,"form-group",2,"margin-top","10px"],["placeholder","or enter a task",1,"form-control",3,"ngModel","ngModelChange"],["apiKey","kjvrmckj7e2u9yuxwg3akvfp3rkybse6455b25ja0liuef9o",3,"init","ngModel","ngModelChange",4,"ngIf"],["rows","15","class","form-control",3,"ngModel","ngModelChange",4,"ngIf"],[2,"text-align","right","margin-top","10px"],[1,"btn","btn-primary",2,"margin-right","10px",3,"click"],[1,"btn","btn-success",2,"margin-right","10px",3,"disabled","click"],[1,"btn","btn-danger",3,"click"],["style","width: 100%; height: 100%;opacity: 0.5; background-color: black;position: absolute;top:0",4,"ngIf"],["style","color:white; text-align: center;padding-top: 200px; position: absolute;top:0; width: 100%",4,"ngIf"],["apiKey","kjvrmckj7e2u9yuxwg3akvfp3rkybse6455b25ja0liuef9o",3,"init","ngModel","ngModelChange"],["rows","15",1,"form-control",3,"ngModel","ngModelChange"],[2,"width","100%","height","100%","opacity","0.5","background-color","black","position","absolute","top","0"],[2,"color","white","text-align","center","padding-top","200px","position","absolute","top","0","width","100%"],[3,"caption"]],template:function(e,n){1&e&&(u(0,"div")(1,"div",0)(2,"h4"),m(3,"T-800"),c(),u(4,"label"),m(5,"Common Tasks"),c(),u(6,"select",1),N("ngModelChange",function(o){return n.requestOption=o}),u(7,"option",2),m(8,"-select an task-"),c(),u(9,"option"),m(10,"Please Reword"),c(),u(11,"option"),m(12,"Please Reword and Provide More Detail"),c(),u(13,"option"),m(14,"Please Create an Email"),c(),u(15,"option"),m(16,"Please Fix the grammar"),c(),u(17,"option"),m(18,"Please Explain so that a second grader would understand"),c(),u(19,"option"),m(20,"Please Answer the question"),c(),u(21,"option"),m(22,"Please Generate Content"),c()(),u(23,"label"),m(24,"Output Format"),c(),u(25,"select",1),N("ngModelChange",function(o){return n.outputFormat=o}),u(26,"option"),m(27,"Plain Text"),c(),u(28,"option"),m(29,"HTML"),c()(),u(30,"div",3)(31,"label"),m(32,"Request"),c(),u(33,"input",4),N("ngModelChange",function(o){return n.request=o}),c()(),u(34,"div",3)(35,"label"),m(36,"Content"),c(),w(37,Y0e,1,3,"editor",5),w(38,U0e,1,1,"textarea",6),c(),u(39,"div",3)(40,"label"),m(41,"Response"),c(),w(42,j0e,1,3,"editor",5),w(43,$0e,1,1,"textarea",6),c(),u(44,"div",7)(45,"button",8),N("click",function(){return n.callTerminator()}),m(46,"Ask Terminator"),c(),u(47,"button",9),N("click",function(){return n.apply()}),m(48,"Apply"),c(),u(49,"button",10),N("click",function(){return n.cancel()}),m(50,"Cancel"),c()()(),w(51,z0e,1,0,"div",11),w(52,W0e,6,1,"div",12),c()),2&e&&(h(6),p("ngModel",n.requestOption),h(19),p("ngModel",n.outputFormat),h(8),p("ngModel",n.request),h(4),p("ngIf",n.htmlContent),h(1),p("ngIf",!n.htmlContent),h(4),p("ngIf",n.htmlContent),h(1),p("ngIf",!n.htmlContent),h(4),p("disabled",!n.response),h(4),p("ngIf",n.busy),h(1),p("ngIf",n.busy))},dependencies:[ct,oo,ao,Bn,Nr,vn,pn,Rd,Ku],styles:["label[_ngcontent-%COMP%]{font-weight:700;font-family:Roboto,sans-serif}"]})}function G0e(i,t){if(1&i){const e=pe();u(0,"div",8)(1,"div",9)(2,"button",10),N("click",function(){return R(e),L(g(2).import=!0)}),m(3,"Import"),c(),u(4,"p"),m(5,"Import an existing template into this object."),c()(),u(6,"div",9)(7,"button",10),N("click",function(){R(e);const r=g(2);return r.export=!0,L(r.isEditingContent=!0)}),m(8,"Export"),c(),u(9,"p"),m(10,"Save the provided content as a template that can be used in other objects."),c()()()}}function q0e(i,t){if(1&i){const e=pe();u(0,"li",14)(1,"div",15)(2,"div",9),m(3),c(),u(4,"div")(5,"span",16),N("click",function(){const o=R(e).$implicit;return L(g(4).applyContentAsLink(o))}),m(6,"Link to Content"),c(),u(7,"span",16),N("click",function(){const o=R(e).$implicit;return L(g(4).applyContent(o))}),m(8,"Copy Content"),c(),u(9,"span",16),N("click",function(){const o=R(e).$implicit;return L(g(4).editContent(o))}),m(10,"Edit"),c()()()()}if(2&i){const e=t.$implicit;h(3),Ke(" ",e.name," ")}}function K0e(i,t){if(1&i&&(u(0,"ol",12),w(1,q0e,11,1,"li",13),c()),2&i){const e=g(3);h(1),p("ngForOf",e.templates.model)}}function Z0e(i,t){1&i&&(u(0,"p"),m(1," Sorry there is no shared content available to import. "),c())}function Q0e(i,t){if(1&i&&(u(0,"div")(1,"h4"),m(2,"Import"),c(),w(3,K0e,2,1,"ol",11),w(4,Z0e,2,0,"p",3),c()),2&i){const e=g(2);h(3),p("ngIf",e.templates),h(1),p("ngIf",0==e.templates.model.length)}}function X0e(i,t){1&i&&(u(0,"div")(1,"h4"),m(2,"Export"),c()())}function J0e(i,t){if(1&i){const e=pe();u(0,"input",18),N("ngModelChange",function(r){return R(e),L(g(3).content=r)}),c()}2&i&&p("ngModel",g(3).content)}function e1e(i,t){if(1&i){const e=pe();u(0,"textarea",18),N("ngModelChange",function(r){return R(e),L(g(3).field.value=r)}),c()}2&i&&p("ngModel",g(3).field.value)}function t1e(i,t){if(1&i){const e=pe();u(0,"editor",22),N("ngModelChange",function(r){return R(e),L(g(3).content=r)}),c()}if(2&i){const e=g(3);p("init",e.getEditorOptions())("ngModel",e.content)}}function n1e(i,t){if(1&i){const e=pe();u(0,"div",17)(1,"label"),m(2,"Name"),c(),u(3,"input",18),N("ngModelChange",function(r){return R(e),L(g(2).sharedContentName=r)}),c(),u(4,"label"),m(5),u(6,"span",19),m(7,"*"),c()(),w(8,J0e,1,1,"input",20),w(9,e1e,1,1,"textarea",20),w(10,t1e,1,2,"editor",21),c()}if(2&i){const e=g(2);h(3),p("ngModel",e.sharedContentName),h(2),Ke("",e.field.label," "),h(3),p("ngIf","Text"==e.field.fieldType),h(1),p("ngIf","MultiLineText"==e.field.fieldType),h(1),p("ngIf","HtmlEditor"==e.field.fieldType)}}function i1e(i,t){if(1&i){const e=pe();u(0,"button",23),N("click",function(){return R(e),L(g(2).saveSharedContent())}),m(1,"Save"),c()}if(2&i){const e=g(2);p("disabled",!e.sharedContentName||e.sharedContentName.length<3)}}function r1e(i,t){if(1&i){const e=pe();u(0,"div",1)(1,"h4"),m(2),c(),H(3,"hr"),w(4,G0e,11,0,"div",2),w(5,Q0e,5,2,"div",3),w(6,X0e,3,0,"div",3),w(7,n1e,11,5,"div",4),H(8,"hr"),u(9,"div",5),w(10,i1e,2,1,"button",6),u(11,"button",7),N("click",function(){return R(e),L(g().cancel())}),m(12,"Cancel"),c()()()}if(2&i){const e=g();h(2),Re(e.field.label),h(2),p("ngIf",!e.import&&!e.export&&!e.isEditingContent),h(1),p("ngIf",e.import&&!e.isEditingContent),h(1),p("ngIf",e.export),h(1),p("ngIf",e.sharedContent&&e.isEditingContent),h(3),p("ngIf",e.isEditingContent)}}class Vf{siteContentService;activeModal;sharedContentName="";content;import=!1;export=!1;isAddingNew;isEditingContent=!1;templates;sharedContent;field;constructor(t,e){this.siteContentService=t,this.activeModal=e}ngOnInit(){var t=this;return z(function*(){t.templates=yield t.siteContentService.getSharedContentItems(t.field.sharedContentKey),t.sharedContent=(yield t.siteContentService.createSharedContent(t.field.sharedContentKey)).model,t.sharedContent.key=t.sharedContent.id.toLowerCase(),t.sharedContent.sharedContentKey=t.field.sharedContentKey,t.isAddingNew=!0,t.content=t.field.value})()}saveSharedContent(){var t=this;return z(function*(){t.sharedContent.name=t.sharedContentName,t.sharedContent.content=t.content,(t.isAddingNew?yield t.siteContentService.addSharedContent(t.sharedContent):yield t.siteContentService.updateSharedContent(t.sharedContent)).successful&&(t.activeModal.close(),t.field.value.startsWith("sharedcontentid=")||(t.field.value=t.content))})()}applyContentAsLink(t){this.field.value=`sharedcontentid=${t.id}`,this.activeModal.close()}applyContent(t){var e=this;return z(function*(){let n=yield e.siteContentService.getSharedContent(t.id);e.field.value=n.model.content,e.activeModal.close()})()}editContent(t){var e=this;return z(function*(){let n=yield e.siteContentService.getSharedContent(t.id);e.sharedContent=n.model,e.content=e.sharedContent.content,e.sharedContentName=e.sharedContent.name,e.isAddingNew=!1,e.isEditingContent=!0})()}getEditorOptions(){let t=[];if(this.field.tags)for(let e of this.field.tags)t.push({title:e.title,value:e.tag});return{plugins:"lists link image table code help wordcount fullscreen autoresize charmap emoticons media mergetags",toolbar:"fullscreen undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | align lineheight | tinycomments | checklist numlist bullist indent outdent | emoticons charmap | removeforma",mergetags_list:t,mergetags_suffix:"]",mergetags_prefix:"[",min_height:400,branding:!1}}cancel(){this.activeModal.dismiss()}static \u0275fac=function(e){return new(e||Vf)(U(Aa),U(dr))};static \u0275cmp=Be({type:Vf,selectors:[["app-shared-content-modal"]],inputs:{field:"field"},decls:1,vars:1,consts:[["style","padding:10px",4,"ngIf"],[2,"padding","10px"],["style","display:flex;height: 300px;padding-top:20px; text-align: center;",4,"ngIf"],[4,"ngIf"],["class","form-group",4,"ngIf"],[2,"text-align","right"],["class","btn btn-primary",3,"disabled","click",4,"ngIf"],[1,"btn","btn-danger",3,"click"],[2,"display","flex","height","300px","padding-top","20px","text-align","center"],[2,"flex-grow","1"],[1,"btn","btn-success",3,"click"],["class","list-group",4,"ngIf"],[1,"list-group"],["class","list-group-item",4,"ngFor","ngForOf"],[1,"list-group-item"],[2,"display","flex"],[1,"action",3,"click"],[1,"form-group"],["type","text",1,"form-control",3,"ngModel","ngModelChange"],[1,"required"],["type","text","class","form-control",3,"ngModel","ngModelChange",4,"ngIf"],["apiKey","kjvrmckj7e2u9yuxwg3akvfp3rkybse6455b25ja0liuef9o",3,"init","ngModel","ngModelChange",4,"ngIf"],["apiKey","kjvrmckj7e2u9yuxwg3akvfp3rkybse6455b25ja0liuef9o",3,"init","ngModel","ngModelChange"],[1,"btn","btn-primary",3,"disabled","click"]],template:function(e,n){1&e&&w(0,r1e,13,6,"div",0),2&e&&p("ngIf",n.field)},dependencies:[jt,ct,Bn,vn,pn,Rd],styles:["label[_ngcontent-%COMP%]{font-weight:700}label[_ngcontent-%COMP%] span.required[_ngcontent-%COMP%]{color:red}"]})}function o1e(i,t){if(1&i){const e=pe();u(0,"span",10),N("click",function(){return R(e),L(g().fullScreen())}),H(1,"i",11),m(2,"Full Screen "),c()}}function a1e(i,t){if(1&i){const e=pe();u(0,"span",10),N("click",function(){return R(e),L(g().normalViewMode())}),H(1,"i",12),m(2,"Done "),c()}}function s1e(i,t){if(1&i){const e=pe();u(0,"span",10),N("click",function(){return R(e),L(g().showSharedContentModal())}),H(1,"i",13),m(2," Shared Content "),c()}}function l1e(i,t){if(1&i){const e=pe();u(0,"i",20),N("click",function(){return R(e),L(g().$implicit.visible=!0)}),c()}}function c1e(i,t){if(1&i){const e=pe();u(0,"i",21),N("click",function(){return R(e),L(g().$implicit.visible=!1)}),c()}}function d1e(i,t){if(1&i){const e=pe();u(0,"div",23),N("click",function(){const o=R(e).$implicit;return L(g(4).insertTag(o))}),m(1),c()}if(2&i){const e=t.$implicit;h(1),Re(e)}}function u1e(i,t){if(1&i&&(u(0,"div"),w(1,d1e,2,1,"div",22),c()),2&i){const e=g().$implicit;h(1),p("ngForOf",e.tags)}}function h1e(i,t){if(1&i&&(u(0,"div")(1,"div")(2,"h5",16)(3,"div",2),m(4),c(),u(5,"div"),w(6,l1e,1,0,"i",17),w(7,c1e,1,0,"i",18),c()(),u(8,"p"),m(9),c(),w(10,u1e,2,1,"div",19),c()()),2&i){const e=t.$implicit;h(4),Ke(" ",e.name," "),h(2),p("ngIf",!e.visible),h(1),p("ngIf",e.visible),h(2),Re(e.description),h(1),p("ngIf",e.visible)}}function p1e(i,t){if(1&i&&(u(0,"div",14),w(1,h1e,11,5,"div",15),c()),2&i){const e=g();h(1),p("ngForOf",e.tagGroups)}}const f1e=function(i){return{fullScreen:i}},g1e=function(i){return{fontFamily:i}};class UC extends ln{modalService;cmsService;fullScreenMode=!1;tagGroups=[];constructor(t,e){super(),this.modalService=t,this.cmsService=e}keyDown(t){let e=t.target;if("Tab"===t.key){t.preventDefault();const n=e.selectionStart,r=e.selectionEnd;e.value=e.value.substring(0,n)+"\t"+e.value.substring(r),e.selectionStart=e.selectionEnd=n+1}}textElement;onBlur(t){super.onBlur(t),this.textElement=t.target}insertTag(t){if(this.textElement){const e=this.textElement.selectionStart,n=this.textElement.selectionEnd,r=this.textElement.value;this.textElement.value=r.substring(0,e)+t+r.substring(n),this.textElement.selectionStart=this.textElement.selectionEnd=e+t.length,this.field.value=this.textElement.value}}aiContentEdit(){const t=this.modalService.open(gv,{size:"lg",beforeDismiss:()=>!0}).componentInstance;t.sourceContent=this.field.value,t.onApplyContent.subscribe(e=>{this.field.value=e})}showSharedContentModal(){this.modalService.open(Vf,{size:"lg",beforeDismiss:()=>!0}).componentInstance.field=this.field}fullScreen(){var t=this;return z(function*(){t.fullScreenMode=!0;let e=[];for(let n of t.field.tagsCSVURls){let r=yield t.cmsService.getTagGroup(n);e.push(r)}t.tagGroups=e})()}normalViewMode(){this.fullScreenMode=!1}static \u0275fac=function(e){return new(e||UC)(U(zn),U(kc))};static \u0275cmp=Be({type:UC,selectors:[["app-text-area"]],features:[st],decls:13,vars:26,consts:[[3,"ngClass"],[1,"label-bar",2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired","ai"],["class","action",3,"click",4,"ngIf"],[2,"display","flex"],[1,"form-control",2,"flex-grow","1",3,"name","placeholder","id","ngModel","rows","disabled","ngStyle","ngModelChange","keydown","change","input","focus","blur"],["style","width:400px;height: calc(100vh - 100px);overflow-y:auto",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],[1,"action",3,"click"],[1,"fa","fa-expand-arrows"],[1,"fa","fa-arrows-minimize"],[1,"fa","fas","fa-copy"],[2,"width","400px","height","calc(100vh - 100px)","overflow-y","auto"],[4,"ngFor","ngForOf"],[1,"tag-group-label",2,"display","flex"],["class","fa fa-chevron-down action",3,"click",4,"ngIf"],["class","fa fa-chevron-up action",3,"click",4,"ngIf"],[4,"ngIf"],[1,"fa","fa-chevron-down","action",3,"click"],[1,"fa","fa-chevron-up","action",3,"click"],["class","tag",3,"click",4,"ngFor","ngForOf"],[1,"tag",3,"click"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1)(2,"div",2)(3,"app-form-field-label",3),N("ai",function(){return n.aiContentEdit()}),c()(),u(4,"div"),w(5,o1e,3,0,"span",4),w(6,a1e,3,0,"span",4),w(7,s1e,3,0,"span",4),c()(),u(8,"div",5)(9,"textarea",6),N("ngModelChange",function(o){return n.field.value=o})("keydown",function(o){return n.keyDown(o)})("change",function(o){return n.changed(o)})("input",function(o){return n.textChanged(o)})("focus",function(o){return n.onFocus(o)})("blur",function(o){return n.onBlur(o)}),c(),w(10,p1e,2,1,"div",7),c(),H(11,"app-form-field-validation-section",8)(12,"app-form-field-help",9),c()),2&e&&(p("ngClass",Ct(22,f1e,n.fullScreenMode)),h(3),p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(2),p("ngIf",!n.fullScreenMode),h(1),p("ngIf",n.fullScreenMode),h(1),p("ngIf",n.field.sharedContentKey),h(2),gt("name",n.field.name),gt("placeholder",n.field.watermark),gt("id",n.field.name),p("ngModel",n.field.value)("rows",n.field.rows)("disabled",!n.field.isUserEditable)("ngStyle",Ct(24,g1e,"MultiLineTextAreaFixedFont"==n.field.fieldType?"consolas":"")),h(1),p("ngIf",n.fullScreenMode),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Bn,vn,pn,Zi,jt,ct,As,Wn,qn,Gn],styles:[".fullScreen[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1000;background-color:#fff}.fullScreen[_ngcontent-%COMP%] .label-bar[_ngcontent-%COMP%]{margin-left:20px;margin-top:20px}.fullScreen[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:calc(100vw - 20px);height:calc(100vh - 100px);background-color:#fff;border:1px solid #ccc;margin:10px;padding:10px;font-size:16px;resize:none}"]})}function m1e(i,t){if(1&i){const e=pe();u(0,"span",7),N("click",function(){return R(e),L(g().showSharedContentModal())}),H(1,"i",8),m(2," Shared Content "),c()}}function _1e(i,t){if(1&i){const e=pe();u(0,"input",13),N("ngModelChange",function(r){return R(e),L(g(2).field.value=r)})("change",function(r){return R(e),L(g(2).changed(r))})("input",function(r){return R(e),L(g(2).textChanged(r))})("focus",function(r){return R(e),L(g(2).onFocus(r))})("blur",function(r){return R(e),L(g(2).onBlur(r))}),c()}if(2&i){const e=g(2);Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.field.value)("type",e.inputType)("disabled",!e.field.isUserEditable)}}function v1e(i,t){if(1&i){const e=pe();u(0,"div",14)(1,"h6"),m(2,"Linked Content - Ready Only"),u(3,"span",7),N("click",function(){return R(e),L(g(2).field.value="")}),H(4,"i",15),m(5,"Edit"),c()(),m(6),Qt(7,"async"),Qt(8,"sharedContent"),c()}if(2&i){const e=g(2);h(6),Ke(" ",Xt(7,1,Xt(8,3,e.field.value)),"")}}function y1e(i,t){1&i&&(u(0,"span",16),H(1,"i",17),c()),2&i&&mt("data-target",g(2).popupId)}function b1e(i,t){if(1&i&&(u(0,"div",9),w(1,_1e,1,8,"input",10),w(2,v1e,9,5,"div",11),w(3,y1e,2,1,"span",12),c()),2&i){const e=g();h(1),p("ngIf",!e.field.value||"Text"!=e.field.fieldType||!e.field.value.toString().startsWith("sharedcontentid")),h(1),p("ngIf",e.field.value&&"Text"==e.field.fieldType&&e.field.value.toString().startsWith("sharedcontentid")),h(1),p("ngIf",e.field.help)}}class jC extends ln{modalService;constructor(t){super(),this.modalService=t}ngOnInit(){super.ngOnInit()}showSharedContentModal(){this.modalService.open(Vf,{size:"lg",beforeDismiss:()=>!0}).componentInstance.field=this.field}static \u0275fac=function(e){return new(e||jC)(U(zn))};static \u0275cmp=Be({type:jC,selectors:[["app-text-box"]],features:[st],decls:8,vars:12,consts:[[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],["class","action",3,"click",4,"ngIf"],["class","input-group",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],[1,"action",3,"click"],[1,"fa","fas","fa-copy"],[1,"input-group"],["class","form-control",3,"name","id","ngModel","type","disabled","background-color","placeholder","ngModelChange","change","input","focus","blur",4,"ngIf"],["class","shared-content-preview",4,"ngIf"],["data-toggle","modal","class","input-group-text","style","cursor:pointer;color:#A0A0A0",4,"ngIf"],[1,"form-control",3,"name","id","ngModel","type","disabled","placeholder","ngModelChange","change","input","focus","blur"],[1,"shared-content-preview"],[1,"fa","fa-pencil"],["data-toggle","modal",1,"input-group-text",2,"cursor","pointer","color","#A0A0A0"],["aria-hidden","true",1,"fa","fa-question"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1),H(2,"app-form-field-label",2),c(),u(3,"div"),w(4,m1e,3,0,"span",3),c()(),w(5,b1e,4,3,"div",4),H(6,"app-form-field-validation-section",5)(7,"app-form-field-help",6)),2&e&&(h(2),p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(2),p("ngIf",n.field.sharedContentKey),h(1),p("ngIf",!0),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Bn,vn,pn,ct,Wn,qn,Gn,U0,kf],styles:[".shared-content-preview[_ngcontent-%COMP%]{-webkit-box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);-webkit-box-shadow-box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);background-color:var(--color-bg);border-radius:4px;padding:10px;border-color:gray}"]})}class Yd{client;router;apps;_currentAppsList$=new Gt;currentApp;_currentApp$=new Gt;_currentFolder$=new Gt;_currentFolder;_currentView;_currentView$=new Gt;_currentViewKey;_dateRange;kiosks;_currentKiosksList$=new Gt;_currentKioskKey;_currentKioskViewKey;_kioskViews;_kioskViews$=new Gt;currentKiosk;_currentKiosk$=new Gt;_currentKioskView;_currentKioskView$=new Gt;_dateRange$=new Gt;_addedWidgets$=new Gt(1);constructor(t,e){this.client=t,this.router=e}deviceRepoAppId;loadApps(t,e){var n=this;return z(function*(){let r=yield n.client.getListResponse(`/api/ui/apps/${t}`);if(n.apps=r.model,"iotdashboard"===t&&n.apps.unshift({id:n.deviceRepoAppId,isReadOnly:!0,title:"Device Explorer",name:"Device Explorer",icon:"fa fa-microchip",foregroundColor:"#fff",backgroundColor:"#3996F2",key:"deviceexplorer",defaultFolder:{id:"-1",text:"db"},defaultView:{id:"-1",text:"db"},phoneDefaultFolder:{id:"-1",text:"db"},tabletDefaultFolder:{id:"-1",text:"db"},help:"Explore and manage the devices in your device repositories.",isBeta:!1,folders:[]}),n._currentAppsList$.next(n.apps),e){const o=n.apps.find(a=>a.id===e);o?(n._currentApp$.next(o),n.currentApp=o):n.currentApp=null}return n.apps})()}getApp(t,e){var n=this;return z(function*(){let r=yield n.client.requestForInvokeResultEx(`/api/ui/app/${t}/${e}`);return n.setCurrentApp(r.result),r.result})()}getAppForEditing(t,e){return this.client.getFormResponse(`/api/ui/app/edit/${t}/${e}`)}createApp(t){return this.client.getFormResponse(`/api/ui/app/${t}/factory`)}createViewFolder(){return this.client.getFormResponse("/api/ui/app/folder/factory")}createView(){return this.client.getFormResponse("/api/ui/app/view/factory")}insertApp(t){var e=this;return z(function*(){return yield e.client.insert("/api/ui/app",t)})()}updateApp(t){var e=this;return z(function*(){return yield e.client.update("/api/ui/app",t)})()}saveApp(t){var e=this;return z(function*(){if(t.isEditing)return yield e.client.update("/api/ui/app",t);{let n=yield e.client.insert("/api/ui/app",t);return n.successful&&(t.isEditing=!0),n}})()}deleteApp(t){return this.client.delete(`/api/ui/iotapp/${t}`)}editApp(t){var e=this;return z(function*(){let n=yield e.client.getFormResponse("/api/ui/app/factory");return n.isEditing=!0,n.model=t,n})()}editFolder(t){var e=this;return z(function*(){let n=yield e.client.getFormResponse("/api/ui/app/folder/factory");return n.isEditing=!0,n.model=t,n})()}editView(t){var e=this;return z(function*(){let n=yield e.client.getFormResponse("/api/ui/app/view/factory");return n.isEditing=!0,n.model=t,n})()}navigateToAppsHome(){this.router.navigate(["apps"])}navigateToKiosksHome(){this.router.navigate(["kiosks"])}addWidgetToCurrentView(t){if(!t)throw new Error("Widget Template was Null");const e={id:Qn.newGuid(),name:t.name,widgetId:t.widgetId,title:t.title,widgetAttributes:t.getDefaultWidgetAttributes(),order:this.getCurrentView().widgets.length+1};console.log(e),this.getCurrentView().widgets.push(e)}createWidget(t,e,n){return this.client.request("/api/ui/widget/factory")}insertWidget(t){return this.client.insert("/api/ui/widget",t)}updateWidget(t){return this.client.update("/api/ui/widget",t)}onWidgetAddedToView(){return this._addedWidgets$.asObservable()}removeWidgetById(t){const e=this._currentView.widgets.find(r=>r.id===t),n=this._currentView.widgets.indexOf(e);this._currentView.widgets.splice(n,1)}reorderWidgets(t){const e=this._currentView.widgets;this._currentView.widgets=[];for(const n of t){const r=e.find(o=>o.id===n);this._currentView.widgets.push(r)}}getWidgets(t,e){return this.client.getListResponse(`/api/ui/dashboard/${t}/${e}`)}deviceSelected(t,e){this.router.navigate(this._currentView?["app",{appid:this.currentApp.id,folder:this._currentFolder,view:this._currentView.key,deviceid:e,repoid:t}]:this.currentApp?["app",{appid:this.currentApp.id,deviceid:e,repoid:t}]:["apps",{deviceid:e,repoid:t}])}clearApp(){this.currentApp=null,this._currentApp$.next(null)}clearView(){this._currentView=null,this._currentView$.next(null)}onDateRangeChanged(){return this._dateRange$.asObservable()}getDateRange(){if(this._dateRange){const t=this._dateRange.split("x");return{start:new Date(parseInt(t[0],10)),end:new Date(parseInt(t[1],10)),hasValue:!0}}return{hasValue:!0}}setDateRange(t,e){t&&e?(this._dateRange=`${t.getTime()}x${e.getTime()}`,this._dateRange$.next({start:t,end:e,hasValue:!0})):(this._dateRange=null,this._dateRange$.next({hasValue:!1}))}onCurrentApp(){return this._currentApp$.asObservable()}onCurrentFolder(){return this._currentFolder$.asObservable()}setCurrentFolder(t){this._currentFolder=t,this._currentFolder$.next(t)}getCurrentFolder(){return this._currentFolder}setCurrentView(t){this._currentView=t,this._currentView$.next(t)}setCurrentApp(t){this.currentApp=t,this._currentApp$.next(t)}onCurrentView(){return this._currentView$.asObservable()}getCurrentView(){return this._currentView}loadKioskViews(t,e,n){return new Promise((o,a)=>{this.currentKiosk&&t===this.currentKiosk.id&&this._kioskViews?(o(this._kioskViews),this.setCurrentKioskView(this.currentKiosk.key,e)):this.client.getListResponse(`/api/ui/kiosks/${t}/views`).then(s=>{this._kioskViews=s.model,n?n.views=this._kioskViews:this.currentKiosk.views=this._kioskViews,this._kioskViews$.next(s.model),o(s.model),this.setCurrentKioskView(this.currentKiosk.key,e)}).catch(s=>{a(s)})})}setCurrentKioskView(t,e){(t!==this._currentKioskKey||e!==this._currentKioskViewKey)&&(this._currentKioskKey=t,this._currentKioskViewKey=e,this.kiosks?(this.currentKiosk=this.kiosks.find(n=>n.key===t),this.currentKiosk&&(this._currentKiosk$.next(this.currentKiosk),this._currentKioskView=this.currentKiosk.views.find(n=>n.key===e),this._currentKioskView$.next(this._currentKioskView))):this.currentKiosk?this.loadKioskViews(this.currentKiosk.id,this._currentKioskViewKey,this.currentKiosk):this.router.navigate(["kiosks"]))}setKiosk(t,e){if(this.kiosks){const n=this.kiosks.find(r=>r.id===t);n&&(this.loadKioskViews(t,e,n),this.currentKiosk=n,this.router.navigate(["kiosk",{kioskid:t}]),this._currentKiosk$.next(n))}else this.loadKiosks(t,e)}loadKiosks(t,e){return new Promise((r,o)=>{this.client.getListResponse("/api/ui/kiosks").then(a=>{if(this.kiosks=a.model,this._currentKiosksList$.next(this.kiosks),r(a.model),t){const s=this.kiosks.find(l=>l.id===t);s?(this.loadKioskViews(t,e,s),this._currentKiosk$.next(s),this.currentKiosk=s):this.currentKiosk=null}}).catch(a=>{console.log("we are reject",a),o(a)})})}loadKiosk(t,e){return new Promise((r,o)=>{this.currentKiosk&&this.currentKiosk.id===t&&this.currentKiosk.viewDefinitions&&this._currentViewKey===e?r(this.currentKiosk):this.kiosks?(this.currentKiosk=this.kiosks.find(a=>a.id===t),this.currentKiosk&&(this._currentKiosk$.next(this.currentKiosk),r(this.currentKiosk),this.loadKioskViews(t,e,this.currentKiosk))):this.loadKiosks(t,e).then(a=>r(this.currentKiosk))})}getKiosk(t){return this.client.requestForInvokeResultEx(`/api/ui/kiosk/${t}`)}createKiosk(){return this.client.requestForInvokeResultEx("/api/ui/kiosk/factory")}insertKiosk(t){return new Promise((n,r)=>{this.client.insert("/api/ui/kiosk",t).then(o=>{this.kiosks.push(t),n(o)}).catch(o=>r(o))})}updateKiosk(t){return new Promise((n,r)=>{this.client.update("/api/ui/kiosk",t).then(o=>{this.kiosks&&(this.kiosks=this.kiosks.filter(a=>a.id!==t.id),this.kiosks.push(t)),n(o)}).catch(o=>r(o))})}deleteKiosk(t){return this.client.delete(`/api/ui/kiosk/${t}`)}getAllIcons(){return["nuv-user-guide","nuv-ml-workbench","nuv-online-chat","nuv-planner","nuv-project-management","nuv-solution","nuv-survey-tool","nuv-system-admin","nuv-system-messages","nuv-tools","nuv-uploading-images","nuv-user-groups","nuv-user-management","nuv-using-7-segment-parser","nuv-working-with-time-series-data","nuv-creating-kiosks","nuv-dashboards","nuv-dashboards-adding-and-config","nuv-dashboards-what-are-they","nuv-dashboards-widgets","nuv-deployment-instance","nuv-device-config","nuv-device-groups","nuv-device-model","nuv-device-repository","nuv-device-workflow","nuv-error-codes-notifications","nuv-error-handling","nuv-field-service-light","nuv-field-service-light-configuring","nuv-firmward-over-the-air-updates","nuv-field-service-lite-managing-tix","nuv-firmware","nuv-firmware-hardware-details","nuv-message-route","nuv-help-resources","nuv-how-to-video","nuv-written-instructions","nuv-instructions","nuv-slide-show","nuv-special-note","nuv-glossary","nuv-troubleshooting","nuv-user-guide","icon-ae-511","icon-ae-accounting","icon-ae-achivement","icon-ae-ads","icon-ae-ads-block","icon-ae-agile","icon-ae-ai","icon-ae-alchemy","icon-ae-antena-1","icon-ae-antena-2","icon-ae-antena-dish","icon-ae-anti-virus","icon-ae-api-1","icon-ae-api-2","icon-ae-apps","icon-ae-ask","icon-ae-assist","icon-ae-bad-review","icon-ae-bag","icon-ae-bank","icon-ae-banned","icon-ae-barcode","icon-ae-bill-1","icon-ae-bill-2","icon-ae-binary","icon-ae-bomb","icon-ae-book-1","icon-ae-book-2","icon-ae-book-connection","icon-ae-border-fill","icon-ae-brainstorm-1","icon-ae-brainstorm-2","icon-ae-briefcase-1","icon-ae-briefcase-2","icon-ae-broadcast","icon-ae-broken","icon-ae-bug-1","icon-ae-bug-2","icon-ae-building","icon-ae-button","icon-ae-buy","icon-ae-cactus","icon-ae-calculating","icon-ae-calculator","icon-ae-calendar","icon-ae-call-1","icon-ae-call-2","icon-ae-call-center","icon-ae-call-history","icon-ae-call-message","icon-ae-call-question","icon-ae-call-time","icon-ae-calling-1","icon-ae-calling-2","icon-ae-camera","icon-ae-cashback","icon-ae-cctv","icon-ae-cctv-2","icon-ae-center","icon-ae-certificate-1","icon-ae-certificate-2","icon-ae-chat-1","icon-ae-chat-2","icon-ae-chat-3","icon-ae-chatting-1","icon-ae-chatting-2","icon-ae-checklist-1","icon-ae-checklist-2","icon-ae-cheque","icon-ae-clipboard","icon-ae-close","icon-ae-cloud-1","icon-ae-cloud-2","icon-ae-cloud-3","icon-ae-cloud-file","icon-ae-cloud-security","icon-ae-coding-1","icon-ae-coding-2","icon-ae-coding-badge","icon-ae-coding-hand","icon-ae-coding-laptop","icon-ae-coding-metal","icon-ae-coding-proaction","icon-ae-coding-view","icon-ae-coffee-cup","icon-ae-color-editing","icon-ae-color-palette","icon-ae-color-wheel","icon-ae-computer-cloud","icon-ae-computer-fullsize","icon-ae-computer-network","icon-ae-computer-programming","icon-ae-connect","icon-ae-connection-1","icon-ae-connection-2","icon-ae-connection-3","icon-ae-console","icon-ae-consultation","icon-ae-control-panel","icon-ae-core-1","icon-ae-core-2","icon-ae-coupon","icon-ae-creating-kiosks","icon-ae-creative","icon-ae-creativity","icon-ae-creditcard","icon-ae-critical","icon-ae-critical-error","icon-ae-croping","icon-ae-css","icon-ae-currency","icon-ae-cv","icon-ae-dashboard","icon-ae-dashboard-widgets","icon-ae-dashboards-adding-and-config","icon-ae-dashboards-what-are-they","icon-ae-data","icon-ae-database-2","icon-ae-database-3","icon-ae-deadline-1","icon-ae-deadline-2","icon-ae-delivery","icon-ae-deployment-instance","icon-ae-design-1","icon-ae-design-2","icon-ae-design-mockup","icon-ae-designer","icon-ae-developer","icon-ae-development","icon-ae-device-config","icon-ae-device-groups","icon-ae-device-model","icon-ae-device-repository","icon-ae-device-workflow","icon-ae-diagram","icon-ae-dial","icon-ae-digital","icon-ae-direct-cursor","icon-ae-direction","icon-ae-discount","icon-ae-document","icon-ae-domain","icon-ae-download-1","icon-ae-download-2","icon-ae-download-3","icon-ae-download-4","icon-ae-download-computer","icon-ae-download-document","icon-ae-drawing","icon-ae-drone","icon-ae-duration","icon-ae-earpiece-wireless","icon-ae-ebook-1","icon-ae-ebook-2","icon-ae-ebook-laptop","icon-ae-ebook-mobile","icon-ae-ecommerce-1","icon-ae-ecommerce-2","icon-ae-ecommerce-3","icon-ae-ecommerce-4","icon-ae-editing","icon-ae-electric-car","icon-ae-email","icon-ae-email-1","icon-ae-email-2","icon-ae-email-3","icon-ae-emergency-911","icon-ae-emoji","icon-ae-error-1","icon-ae-error-2","icon-ae-error-codes-notifications","icon-ae-error-handling","icon-ae-ethernet","icon-ae-ethernet-2","icon-ae-eye","icon-fo-fo-fan-bladeless","icon-fo-faq","icon-fo-fax","icon-fo-feedback-1","icon-fo-feedback-2","icon-fo-field-service-light","icon-fo-field-service-light-configuring","icon-fo-field-service-lite-managing-tix","icon-fo-file","icon-fo-file-ai","icon-fo-file-doc","icon-fo-file-management-1","icon-fo-file-management-2","icon-fo-file-pdf","icon-fo-file-ppt","icon-fo-file-psd","icon-fo-file-sharing","icon-fo-file-txt","icon-fo-files","icon-fo-finding","icon-fo-finger-print","icon-fo-fire-wall","icon-fo-firewall","icon-fo-firmware","icon-fo-firmware-hardware-details","icon-fo-firmware-over-the-air-updates","icon-fo-fixing","icon-fo-flash-sale","icon-fo-flow","icon-fo-folder-1","icon-fo-folder-2","icon-fo-folder-3","icon-fo-folder-4","icon-fo-folder-5","icon-fo-folder-6","icon-fo-folder-delivery","icon-fo-folder-structure","icon-fo-folders","icon-fo-food-delivery-1","icon-fo-gallery-1","icon-fo-gallery-2","icon-fo-gear","icon-fo-gears-1","icon-fo-gears-2","icon-fo-gift","icon-fo-globe-1","icon-fo-globe-2","icon-fo-good-review","icon-fo-gps","icon-fo-green-house","icon-fo-grow-dollar","icon-fo-grow-pound","icon-fo-growth-1","icon-fo-growth-2","icon-fo-hand","icon-fo-hand-laptop","icon-fo-headphone-information","icon-fo-headphone-question","icon-fo-heartbeat","icon-fo-heartrate","icon-fo-help-resource","icon-fo-hologram","icon-fo-hot-coffee","icon-fo-hour","icon-fo-how-to-video","icon-fo-how-to-written","icon-fo-html","icon-fo-human-source","icon-fo-idea-1","icon-fo-idea-2","icon-fo-image","icon-fo-image-laptop","icon-fo-image-tablet","icon-fo-incognito","icon-fo-information-computer","icon-fo-information-laptop","icon-fo-ink-pen","icon-fo-inspection","icon-fo-instructions","icon-fo-internet-1","icon-fo-internet-2","icon-fo-internet-3","icon-fo-internet-network","icon-fo-internet-protection","icon-fo-key","icon-fo-keyboard","icon-fo-knowledge","icon-fo-lamp","icon-fo-lan","icon-fo-landing-page","icon-fo-landscape","icon-fo-laptop","icon-fo-laptop-fullscreen","icon-fo-laptop-info","icon-fo-laptop-management","icon-fo-laptop-protection","icon-fo-laptop-resize","icon-fo-launching","icon-fo-layer-1","icon-fo-layer-2","icon-fo-layer-3","icon-fo-layering","icon-fo-layout-ratio","icon-fo-left","icon-fo-linked","icon-fo-list","icon-fo-listening","icon-fo-location-1","icon-fo-location-2","icon-fo-lock-1","icon-fo-lock-2","icon-fo-magnet","icon-fo-mail","icon-fo-mailing","icon-fo-maintenance-1","icon-fo-maintenance-2","icon-fo-maintenance-3","icon-fo-maintenance-computer","icon-fo-maleware","icon-fo-management","icon-fo-marketing-1","icon-fo-marketing-2","icon-fo-math","icon-fo-medal-1","icon-fo-medal-2","icon-fo-meeting","icon-fo-message-1","icon-fo-message-2","icon-fo-message-info","icon-fo-message-route","icon-fo-mirror","icon-fo-ml-workbench","icon-fo-mobile-apps","icon-fo-mobile-book","icon-fo-mobile-cloud","icon-fo-mobile-code","icon-fo-mobile-discussion","icon-fo-mobile-ebook","icon-fo-mobile-info","icon-fo-mobile-layout","icon-fo-mobile-lock","icon-fo-mobile-maintenance","icon-fo-mobile-news","icon-fo-mobile-payment","icon-fo-mobile-protection","icon-fo-mobile-security","icon-fo-mobile-shop","icon-fo-mobile-site","icon-fo-mobile-web","icon-fo-mockup","icon-fo-modem","icon-fo-money","icon-fo-music-engineer","icon-fo-nerve","icon-fo-network","icon-fo-networking-1","icon-fo-networking-2","icon-fo-news","icon-fo-newsletter","icon-fo-no-internet","icon-fo-notification-1","icon-fo-notification-2","icon-fo-objects","icon-fo-offer","icon-fo-office","icon-fo-online","icon-fo-online-ads","icon-fo-online-book-1","icon-fo-online-book-2","icon-fo-online-book-3","icon-fo-online-chat","icon-fo-online-class","icon-fo-online-donation","icon-fo-online-learning-1","icon-fo-online-learning-2","icon-fo-online-payment","icon-fo-online-report","icon-fo-online-shopping","icon-fo-online-task","icon-fo-open","icon-fo-open-book","icon-fo-organize-1","icon-fo-organize-2","icon-pz-packing","icon-pz-pant","icon-pz-paper-plane","icon-pz-passcode","icon-pz-password","icon-pz-payment-1","icon-pz-payment-2","icon-pz-payment-3","icon-pz-pen-tablet-1","icon-pz-pen-tablet-2","icon-pz-phising","icon-pz-phone-box","icon-pz-phonebook","icon-pz-pick","icon-pz-pie-chart","icon-pz-pie-chart-2","icon-pz-pin","icon-pz-planner","icon-pz-plant","icon-pz-plug","icon-pz-podcast","icon-pz-poster","icon-pz-presentation","icon-pz-printer","icon-pz-problem-solving","icon-pz-processing","icon-pz-processor-1","icon-pz-processor-2","icon-pz-product-1","icon-pz-product-2","icon-pz-productive","icon-pz-profile-1","icon-pz-profile-2","icon-pz-profile-3","icon-pz-programer","icon-pz-programmer","icon-pz-programming","icon-pz-project","icon-pz-project-managment","icon-pz-protection","icon-pz-protection-2","icon-pz-purchase","icon-pz-pyramid","icon-pz-radio","icon-pz-rate","icon-pz-rating-1","icon-pz-rating-2","icon-pz-rating-star","icon-pz-reading","icon-pz-receipt","icon-pz-remote-bulb","icon-pz-report-1","icon-pz-report-2","icon-pz-report-3","icon-pz-report-4","icon-pz-resize-1","icon-pz-resize-2","icon-pz-responsive-1","icon-pz-responsive-2","icon-pz-responsive-3","icon-pz-retina-scan","icon-pz-revenue","icon-pz-review","icon-pz-right","icon-pz-rocket-1","icon-pz-rocket-2","icon-pz-router","icon-pz-ruler","icon-pz-safebox","icon-pz-safetyvest","icon-pz-satelite-1","icon-pz-satelite-2","icon-pz-satelite-3","icon-pz-script-1","icon-pz-script-2","icon-pz-scroll","icon-pz-sdc","icon-pz-search-engine-1","icon-pz-search-engine-2","icon-pz-search-engine-3","icon-pz-searching-1","icon-pz-searching-2","icon-pz-searching-3","icon-pz-searching-4","icon-pz-security","icon-pz-send-email","icon-pz-seo","icon-pz-seo-book","icon-pz-seo-cloud","icon-pz-server-1","icon-pz-server-2","icon-pz-server-cloud","icon-pz-settings-box","icon-pz-share","icon-pz-share-file","icon-pz-shield","icon-pz-shirt","icon-pz-shop","icon-pz-shopping-1","icon-pz-shopping-2","icon-pz-sim-card","icon-pz-siren","icon-pz-site","icon-pz-site-map","icon-pz-site-resize","icon-pz-sitemap-1","icon-pz-sitemap-2","icon-pz-size","icon-pz-skill","icon-pz-skirt","icon-pz-slide-show","icon-pz-slide-up-down","icon-pz-smart-house","icon-pz-smarthome","icon-pz-smartphone-1","icon-pz-smartphone-2","icon-pz-smartwatch-1","icon-pz-smartwatch-2","icon-pz-socialmedia-1","icon-pz-socialmedia-2","icon-pz-solar-panel","icon-pz-solution","icon-pz-sos","icon-pz-spam","icon-pz-special-note","icon-pz-speed-1","icon-pz-speed-2","icon-pz-split","icon-pz-stamp-1","icon-pz-stamp-2","icon-pz-steering-wheel","icon-pz-stock-1","icon-pz-stock-2","icon-pz-strategy-1","icon-pz-strategy-2","icon-pz-strategy-3","icon-pz-support-1","icon-pz-support-2","icon-pz-support-information","icon-pz-survey-tool","icon-pz-svg","icon-pz-sync","icon-pz-system-admin","icon-pz-system-messages","icon-pz-tab-bar","icon-pz-tablet-1","icon-pz-tablet-2","icon-pz-tag","icon-pz-target-goal","icon-pz-task","icon-pz-tea-talk","icon-pz-teamwork","icon-pz-telephone-1","icon-pz-telephone-2","icon-pz-template-1","icon-pz-template-2","icon-pz-terms","icon-pz-text-1","icon-pz-text-2","icon-pz-tie","icon-pz-time","icon-pz-timeline","icon-pz-tin-can-call","icon-pz-to-do","icon-pz-tools","icon-pz-tracking-delivery","icon-pz-transfer-file-cloud","icon-pz-translate-1","icon-pz-translate-2","icon-pz-translate-3","icon-pz-trophy","icon-pz-troubleshooting","icon-pz-tutorial-1","icon-pz-tutorial-2","icon-pz-tutorial-3","icon-pz-tutorial-4","icon-pz-typing-1","icon-pz-typing-2","icon-pz-unboxing","icon-pz-unknown","icon-pz-unlock-1","icon-pz-unlock-2","icon-pz-unlock-3","icon-pz-update-device-1","icon-pz-update-device-2","icon-pz-upload-1","icon-pz-upload-2","icon-pz-upload-3","icon-pz-upload-4","icon-pz-upload-images","icon-pz-user-groups","icon-pz-user-guide","icon-pz-user-interface","icon-pz-user-management","icon-pz-user-profile-1","icon-pz-user-profile-2","icon-pz-using-7-segment-parser","icon-pz-vector","icon-pz-video-1","icon-pz-video-2","icon-pz-video-call-1","icon-pz-video-call-2","icon-pz-virtual-reality","icon-pz-virus-1","icon-pz-virus-2","icon-pz-virus-computer","icon-pz-virus-laptop","icon-pz-vision-1","icon-pz-vision-2","icon-pz-vpn","icon-pz-web","icon-pz-web-design","icon-pz-web-development","icon-pz-wifi-1","icon-pz-wifi-2","icon-pz-wireless-charging","icon-pz-wishlist","icon-pz-working-with-time-series-data","icon-pz-worldwide-1","icon-pz-worldwide-2","icon-pz-worm","icon-pz-writing-email"]}static \u0275fac=function(e){return new(e||Yd)(Ee(An),Ee(Ti))};static \u0275prov=$e({token:Yd,factory:Yd.\u0275fac,providedIn:"root"})}function C1e(i,t){if(1&i){const e=pe();u(0,"div",2),N("click",function(){const o=R(e).$implicit;return L(g().iconClicked(o))}),H(1,"nuv-icon",3)(2,"br"),u(3,"div",4),m(4),c()()}if(2&i){const e=t.$implicit;h(1),p("iconName",e),h(3),Re(e)}}class $C{uiService;constructor(t){this.uiService=t}iconSelected=new Ae;isVisible=!1;icons_legacy=[];all_icons;icons;iconClicked(t){this.iconSelected.emit(t),this.isVisible=!1}ngOnInit(){this.all_icons=this.uiService.getAllIcons(),this.icons=this.all_icons}static \u0275fac=function(e){return new(e||$C)(U(Yd))};static \u0275cmp=Be({type:$C,selectors:[["app-icon-picker"]],outputs:{iconSelected:"iconSelected"},decls:3,vars:1,consts:[[2,"height","800px","overflow-y","scroll","width","100%","display","flex","flex-wrap","wrap"],["class","icon-panel",3,"click",4,"ngFor","ngForOf"],[1,"icon-panel",3,"click"],["fontSize","64px",3,"iconName"],[2,"color","var(--color-fg)"]],template:function(e,n){1&e&&(u(0,"div")(1,"div",0),w(2,C1e,5,2,"div",1),c()()),2&e&&(h(2),p("ngForOf",n.icons))},dependencies:[jt,Xa],styles:[".icon-panel[_ngcontent-%COMP%]{padding-top:5px;border-radius:6px;border:1px solid silver;margin:5px;background-color:#fff;width:120px;height:120px;text-align:center;cursor:pointer}.icon-panel[_ngcontent-%COMP%]:hover{box-shadow:4px 4px #ddd}"]})}function w1e(i,t){if(1&i){const e=pe();u(0,"nuv-icon",7),N("click",function(){return R(e),L(g().showPicker())}),c()}if(2&i){const e=g();um("data-bs-target","#",e.pickerId,""),p("iconName",e.field.value)}}function D1e(i,t){if(1&i){const e=pe();u(0,"div",8),N("click",function(){return R(e),L(g().showPicker())}),u(1,"span",9),m(2,"-select-"),c()()}2&i&&um("data-bs-target","#",g().pickerId,"")}function M1e(i,t){if(1&i){const e=pe();u(0,"div",10),N("click",function(){return R(e),L(g().showPicker())}),m(1," Replace\n"),c()}2&i&&um("data-bs-target","#",g().pickerId,"")}class zC extends ln{modalService;ariaLabel;modalId;pickerId;_filter;get filter(){return this._filter}set filter(t){this._filter=t,this.icons=t?this.allIcons.filter(e=>-1!=e.indexOf(t.toLocaleLowerCase())):this.allIcons}allIcons;icons;constructor(t,e){super(),this.modalService=e,this.allIcons=t.getAllIcons(),this.icons=this.allIcons,this.pickerId=Qn.newGuid()}ngOnInit(){super.ngOnInit(),this.ariaLabel="popupHelp"+this.field.name,this.modalId="popupModal"+this.field.name}iconClicked(t){console.log(t),this.field.value=t}showPicker(){let t=this.modalService.open($C,{size:"lg"});t.componentInstance.iconSelected.subscribe(n=>{this.field.value=n,t.close()})}static \u0275fac=function(e){return new(e||zC)(U(Yd),U(zn))};static \u0275cmp=Be({type:zC,selectors:[["app-form-icon-picker"]],features:[st],decls:7,vars:13,consts:[[3,"name","label","isRequired"],[1,"input-group"],["fontSize","32px","style","cursor:pointer","data-bs-toggle","modal",3,"iconName","click",4,"ngIf"],["class","input-group-append","data-bs-toggle","modal","style","cursor:pointer",3,"click",4,"ngIf"],["class","picker-link","data-bs-toggle","modal",3,"click",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["fontSize","32px","data-bs-toggle","modal",2,"cursor","pointer",3,"iconName","click"],["data-bs-toggle","modal",1,"input-group-append",2,"cursor","pointer",3,"click"],[1,"picker-link"],["data-bs-toggle","modal",1,"picker-link",3,"click"]],template:function(e,n){1&e&&(H(0,"app-form-field-label",0),u(1,"div",1),w(2,w1e,1,2,"nuv-icon",2),w(3,D1e,3,1,"div",3),c(),w(4,M1e,2,1,"div",4),H(5,"app-form-field-validation-section",5)(6,"app-form-field-help",6)),2&e&&(p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(2),p("ngIf",n.field.value),h(1),p("ngIf",!n.field.value),h(1),p("ngIf",n.field.value),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[ct,Wn,qn,Gn,Xa],styles:[".picker-link[_ngcontent-%COMP%], .picker-link-remove[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-accent)}.picker-link[_ngcontent-%COMP%]:hover{text-decoration:underline;color:var(--color-accent)}.icon-panel[_ngcontent-%COMP%]{padding-top:5px;border-radius:6px;border:1px solid silver;margin:5px;background-color:#fff;text-align:center;cursor:pointer}@media screen and (max-width: 480px){.icon-panel[_ngcontent-%COMP%]{width:40px;height:40px}.icon-panel[_ngcontent-%COMP%] .icon-preview[_ngcontent-%COMP%]{font-size:24px}}@media screen and (min-width: 481px){.icon-panel[_ngcontent-%COMP%]{width:120px;height:120px}.icon-panel[_ngcontent-%COMP%] .icon-preview[_ngcontent-%COMP%]{font-size:36px}}.icon-panel[_ngcontent-%COMP%]:hover{box-shadow:4px 4px #ddd}.icon-name[_ngcontent-%COMP%]{line-height:.9}"]})}function x1e(i,t){1&i&&(u(0,"div",6),H(1,"span",7),c()),2&i&&mt("data-target",g().popupId)}class WC extends ln{hours;minutes;ampm;constructor(){super()}fieldSet(t){if(t?.value){let e=parseInt(t.value.substring(0,2)),n=5==t.value.length?parseInt(t.value.substring(3,5)):parseInt(t.value.substring(2,4));this.ampm=e>11?"PM":"AM",this.hours=e>12?(e-12).toString():e.toString(),this.minutes=n<10?"0"+n.toString():n.toString(),console.log(this.minutes)}else this.hours="HH",this.minutes="MM",this.ampm="AMPM"}currentValueChanged(){if(parseInt(this.hours),this.hours&&"HH"!=this.hours&&this.minutes&&"MM"!=this.minutes&&this.ampm&&"AMPM"!=this.ampm){let e=Qn.toHHMM(this.hours,this.minutes,this.ampm,!1);this.field.value=e,console.log(e)}else this.field.value=void 0}static \u0275fac=function(e){return new(e||WC)};static \u0275cmp=Be({type:WC,selectors:[["app-time-picker"]],features:[st],decls:69,vars:14,consts:[[3,"name","label","isRequired"],[2,"display","flex"],[1,"form-control","form-select",3,"ngModel","ngModelChange"],["class","input-group-append","data-toggle","modal","style","cursor:pointer",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["data-toggle","modal",1,"input-group-append",2,"cursor","pointer"],[1,"input-group-text","fa","fa-question",2,"font-size","12pt","color","#A0A0A0"]],template:function(e,n){1&e&&(H(0,"app-form-field-label",0),u(1,"div",1)(2,"div")(3,"select",2),N("ngModelChange",function(o){return n.hours=o})("ngModelChange",function(){return n.currentValueChanged()}),u(4,"option"),m(5,"HH"),c(),u(6,"option"),m(7,"12"),c(),u(8,"option"),m(9,"1"),c(),u(10,"option"),m(11,"2"),c(),u(12,"option"),m(13,"3"),c(),u(14,"option"),m(15,"4"),c(),u(16,"option"),m(17,"5"),c(),u(18,"option"),m(19,"6"),c(),u(20,"option"),m(21,"7"),c(),u(22,"option"),m(23,"8"),c(),u(24,"option"),m(25,"9"),c(),u(26,"option"),m(27,"10"),c(),u(28,"option"),m(29,"11"),c()()(),u(30,"div")(31,"select",2),N("ngModelChange",function(o){return n.minutes=o})("ngModelChange",function(){return n.currentValueChanged()}),u(32,"option"),m(33,"MM"),c(),u(34,"option"),m(35,"00"),c(),u(36,"option"),m(37,"05"),c(),u(38,"option"),m(39,"10"),c(),u(40,"option"),m(41,"15"),c(),u(42,"option"),m(43,"20"),c(),u(44,"option"),m(45,"25"),c(),u(46,"option"),m(47,"30"),c(),u(48,"option"),m(49,"35"),c(),u(50,"option"),m(51,"40"),c(),u(52,"option"),m(53,"45"),c(),u(54,"option"),m(55,"50"),c(),u(56,"option"),m(57,"55"),c()()(),u(58,"div")(59,"select",2),N("ngModelChange",function(o){return n.ampm=o})("ngModelChange",function(){return n.currentValueChanged()}),u(60,"option"),m(61,"AM PM"),c(),u(62,"option"),m(63,"AM"),c(),u(64,"option"),m(65,"PM"),c()()(),w(66,x1e,2,1,"div",3),c(),H(67,"app-form-field-validation-section",4)(68,"app-form-field-help",5)),2&e&&(p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(3),p("ngModel",n.hours),h(28),p("ngModel",n.minutes),h(28),p("ngModel",n.ampm),h(7),p("ngIf",n.field.help),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[oo,ao,Nr,vn,pn,ct,Wn,qn,Gn],styles:["select[_ngcontent-%COMP%]{width:100px;text-align-last:right}option[_ngcontent-%COMP%]{direction:rtl}"]})}const k1e=["dialogPopup"],T1e=["hueSlider"],S1e=["alphaSlider"];function E1e(i,t){if(1&i&&H(0,"div"),2&i){const e=g();gl("arrow arrow-",e.cpUsePosition,""),Mn("top",e.arrowTop,"px")}}function A1e(i,t){if(1&i){const e=pe();u(0,"div",28),N("newValue",function(r){return R(e),L(g().onColorChange(r))})("dragStart",function(){return R(e),L(g().onDragStart("saturation-lightness"))})("dragEnd",function(){return R(e),L(g().onDragEnd("saturation-lightness"))}),H(1,"div",14),c()}if(2&i){const e=g();Mn("background-color",e.hueSliderColor),p("rgX",1)("rgY",1),h(1),Mn("top",null==e.slider?null:e.slider.v,"px")("left",null==e.slider?null:e.slider.s,"px")}}function I1e(i,t){1&i&&(mu(),u(0,"svg",29),H(1,"path",30)(2,"path",31),c())}function F1e(i,t){if(1&i){const e=pe();u(0,"button",32),N("click",function(r){R(e);const o=g();return L(o.onAddPresetColor(r,o.selectedColor))}),m(1),c()}if(2&i){const e=g();Co(e.cpAddColorButtonClass),p("disabled",e.cpPresetColors&&e.cpPresetColors.length>=e.cpMaxPresetColorsLength),h(1),Ke(" ",e.cpAddColorButtonText," ")}}function P1e(i,t){1&i&&H(0,"div",33)}function R1e(i,t){if(1&i){const e=pe();u(0,"input",39),N("keyup.enter",function(r){return R(e),L(g(2).onAcceptColor(r))})("newValue",function(r){return R(e),L(g(2).onAlphaInput(r))}),c()}if(2&i){const e=g(2);p("rg",1)("value",null==e.cmykText?null:e.cmykText.a)}}function L1e(i,t){1&i&&(u(0,"div"),m(1,"A"),c())}function O1e(i,t){if(1&i){const e=pe();u(0,"div",34)(1,"div",35)(2,"input",36),N("keyup.enter",function(r){return R(e),L(g().onAcceptColor(r))})("newValue",function(r){return R(e),L(g().onCyanInput(r))}),c(),u(3,"input",36),N("keyup.enter",function(r){return R(e),L(g().onAcceptColor(r))})("newValue",function(r){return R(e),L(g().onMagentaInput(r))}),c(),u(4,"input",36),N("keyup.enter",function(r){return R(e),L(g().onAcceptColor(r))})("newValue",function(r){return R(e),L(g().onYellowInput(r))}),c(),u(5,"input",36),N("keyup.enter",function(r){return R(e),L(g().onAcceptColor(r))})("newValue",function(r){return R(e),L(g().onBlackInput(r))}),c(),w(6,R1e,1,2,"input",37),c(),u(7,"div",35)(8,"div"),m(9,"C"),c(),u(10,"div"),m(11,"M"),c(),u(12,"div"),m(13,"Y"),c(),u(14,"div"),m(15,"K"),c(),w(16,L1e,2,0,"div",38),c()()}if(2&i){const e=g();Mn("display",3!==e.format?"none":"block"),h(2),p("rg",100)("value",null==e.cmykText?null:e.cmykText.c),h(1),p("rg",100)("value",null==e.cmykText?null:e.cmykText.m),h(1),p("rg",100)("value",null==e.cmykText?null:e.cmykText.y),h(1),p("rg",100)("value",null==e.cmykText?null:e.cmykText.k),h(1),p("ngIf","disabled"!==e.cpAlphaChannel),h(10),p("ngIf","disabled"!==e.cpAlphaChannel)}}function N1e(i,t){if(1&i){const e=pe();u(0,"input",39),N("keyup.enter",function(r){return R(e),L(g(2).onAcceptColor(r))})("newValue",function(r){return R(e),L(g(2).onAlphaInput(r))}),c()}if(2&i){const e=g(2);p("rg",1)("value",null==e.hslaText?null:e.hslaText.a)}}function B1e(i,t){1&i&&(u(0,"div"),m(1,"A"),c())}function V1e(i,t){if(1&i){const e=pe();u(0,"div",40)(1,"div",35)(2,"input",41),N("keyup.enter",function(r){return R(e),L(g().onAcceptColor(r))})("newValue",function(r){return R(e),L(g().onHueInput(r))}),c(),u(3,"input",36),N("keyup.enter",function(r){return R(e),L(g().onAcceptColor(r))})("newValue",function(r){return R(e),L(g().onSaturationInput(r))}),c(),u(4,"input",36),N("keyup.enter",function(r){return R(e),L(g().onAcceptColor(r))})("newValue",function(r){return R(e),L(g().onLightnessInput(r))}),c(),w(5,N1e,1,2,"input",37),c(),u(6,"div",35)(7,"div"),m(8,"H"),c(),u(9,"div"),m(10,"S"),c(),u(11,"div"),m(12,"L"),c(),w(13,B1e,2,0,"div",38),c()()}if(2&i){const e=g();Mn("display",2!==e.format?"none":"block"),h(2),p("rg",360)("value",null==e.hslaText?null:e.hslaText.h),h(1),p("rg",100)("value",null==e.hslaText?null:e.hslaText.s),h(1),p("rg",100)("value",null==e.hslaText?null:e.hslaText.l),h(1),p("ngIf","disabled"!==e.cpAlphaChannel),h(8),p("ngIf","disabled"!==e.cpAlphaChannel)}}function H1e(i,t){if(1&i){const e=pe();u(0,"input",39),N("keyup.enter",function(r){return R(e),L(g(2).onAcceptColor(r))})("newValue",function(r){return R(e),L(g(2).onAlphaInput(r))}),c()}if(2&i){const e=g(2);p("rg",1)("value",null==e.rgbaText?null:e.rgbaText.a)}}function Y1e(i,t){1&i&&(u(0,"div"),m(1,"A"),c())}function U1e(i,t){if(1&i){const e=pe();u(0,"div",42)(1,"div",35)(2,"input",43),N("keyup.enter",function(r){return R(e),L(g().onAcceptColor(r))})("newValue",function(r){return R(e),L(g().onRedInput(r))}),c(),u(3,"input",43),N("keyup.enter",function(r){return R(e),L(g().onAcceptColor(r))})("newValue",function(r){return R(e),L(g().onGreenInput(r))}),c(),u(4,"input",43),N("keyup.enter",function(r){return R(e),L(g().onAcceptColor(r))})("newValue",function(r){return R(e),L(g().onBlueInput(r))}),c(),w(5,H1e,1,2,"input",37),c(),u(6,"div",35)(7,"div"),m(8,"R"),c(),u(9,"div"),m(10,"G"),c(),u(11,"div"),m(12,"B"),c(),w(13,Y1e,2,0,"div",38),c()()}if(2&i){const e=g();Mn("display",1!==e.format?"none":"block"),h(2),p("rg",255)("value",null==e.rgbaText?null:e.rgbaText.r),h(1),p("rg",255)("value",null==e.rgbaText?null:e.rgbaText.g),h(1),p("rg",255)("value",null==e.rgbaText?null:e.rgbaText.b),h(1),p("ngIf","disabled"!==e.cpAlphaChannel),h(8),p("ngIf","disabled"!==e.cpAlphaChannel)}}function j1e(i,t){if(1&i){const e=pe();u(0,"input",39),N("keyup.enter",function(r){return R(e),L(g(2).onAcceptColor(r))})("newValue",function(r){return R(e),L(g(2).onAlphaInput(r))}),c()}if(2&i){const e=g(2);p("rg",1)("value",e.hexAlpha)}}function $1e(i,t){1&i&&(u(0,"div"),m(1,"A"),c())}function z1e(i,t){if(1&i){const e=pe();u(0,"div",44)(1,"div",35)(2,"input",45),N("blur",function(){return R(e),L(g().onHexInput(null))})("keyup.enter",function(r){return R(e),L(g().onAcceptColor(r))})("newValue",function(r){return R(e),L(g().onHexInput(r))}),c(),w(3,j1e,1,2,"input",37),c(),u(4,"div",35)(5,"div"),m(6,"Hex"),c(),w(7,$1e,2,0,"div",38),c()()}if(2&i){const e=g();Mn("display",0!==e.format?"none":"block"),Zt("hex-alpha","forced"===e.cpAlphaChannel),h(2),p("value",e.hexText),h(1),p("ngIf","forced"===e.cpAlphaChannel),h(4),p("ngIf","forced"===e.cpAlphaChannel)}}function W1e(i,t){if(1&i){const e=pe();u(0,"input",39),N("keyup.enter",function(r){return R(e),L(g(2).onAcceptColor(r))})("newValue",function(r){return R(e),L(g(2).onAlphaInput(r))}),c()}if(2&i){const e=g(2);p("rg",1)("value",null==e.hslaText?null:e.hslaText.a)}}function G1e(i,t){if(1&i){const e=pe();u(0,"div",46)(1,"div",35)(2,"input",36),N("keyup.enter",function(r){return R(e),L(g().onAcceptColor(r))})("newValue",function(r){return R(e),L(g().onValueInput(r))}),c(),w(3,W1e,1,2,"input",37),c(),u(4,"div",35)(5,"div"),m(6,"V"),c(),u(7,"div"),m(8,"A"),c()()()}if(2&i){const e=g();h(2),p("rg",100)("value",null==e.hslaText?null:e.hslaText.l),h(1),p("ngIf","disabled"!==e.cpAlphaChannel)}}function q1e(i,t){if(1&i){const e=pe();u(0,"div",47)(1,"span",48),N("click",function(){return R(e),L(g().onFormatToggle(-1))}),c(),u(2,"span",48),N("click",function(){return R(e),L(g().onFormatToggle(1))}),c()()}}function K1e(i,t){if(1&i){const e=pe();u(0,"span",55),N("click",function(r){R(e);const o=g().$implicit;return L(g(3).onRemovePresetColor(r,o))}),c()}2&i&&Co(g(4).cpRemoveColorButtonClass)}function Z1e(i,t){if(1&i){const e=pe();u(0,"div",53),N("click",function(){const o=R(e).$implicit;return L(g(3).setColorFromString(o))}),w(1,K1e,1,3,"span",54),c()}if(2&i){const e=t.$implicit,n=g(3);Mn("background-color",e),h(1),p("ngIf",n.cpAddColorButton)}}function Q1e(i,t){if(1&i&&(u(0,"div"),w(1,Z1e,2,3,"div",52),c()),2&i){const e=g(2);Co(e.cpPresetColorsClass),h(1),p("ngForOf",e.cpPresetColors)}}function X1e(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g(2);Co(e.cpPresetEmptyMessageClass),h(1),Re(e.cpPresetEmptyMessage)}}function J1e(i,t){if(1&i&&(u(0,"div",49),H(1,"hr"),u(2,"div",50),m(3),c(),w(4,Q1e,2,4,"div",51),w(5,X1e,2,4,"div",51),c()),2&i){const e=g();h(3),Re(e.cpPresetLabel),h(1),p("ngIf",null==e.cpPresetColors?null:e.cpPresetColors.length),h(1),p("ngIf",!(null!=e.cpPresetColors&&e.cpPresetColors.length)&&e.cpAddColorButton)}}function ebe(i,t){if(1&i){const e=pe();u(0,"button",58),N("click",function(r){return R(e),L(g(2).onCancelColor(r))}),m(1),c()}if(2&i){const e=g(2);Co(e.cpCancelButtonClass),h(1),Re(e.cpCancelButtonText)}}function tbe(i,t){if(1&i){const e=pe();u(0,"button",58),N("click",function(r){return R(e),L(g(2).onAcceptColor(r))}),m(1),c()}if(2&i){const e=g(2);Co(e.cpOKButtonClass),h(1),Re(e.cpOKButtonText)}}function nbe(i,t){if(1&i&&(u(0,"div",56),w(1,ebe,2,4,"button",57),w(2,tbe,2,4,"button",57),c()),2&i){const e=g();h(1),p("ngIf",e.cpCancelButton),h(1),p("ngIf",e.cpOKButton)}}function ibe(i,t){1&i&&vx(0)}function rbe(i,t){if(1&i&&(u(0,"div",59),w(1,ibe,1,0,"ng-container",60),c()),2&i){const e=g();h(1),p("ngTemplateOutlet",e.cpExtraTemplate)}}var po=(()=>{return(i=po||(po={}))[i.HEX=0]="HEX",i[i.RGBA=1]="RGBA",i[i.HSLA=2]="HSLA",i[i.CMYK=3]="CMYK",po;var i})();class Ac{constructor(t,e,n,r){this.r=t,this.g=e,this.b=n,this.a=r}}class GC{constructor(t,e,n,r){this.h=t,this.s=e,this.v=n,this.a=r}}class _h{constructor(t,e,n,r){this.h=t,this.s=e,this.l=n,this.a=r}}class mv{constructor(t,e,n,r,o=1){this.c=t,this.m=e,this.y=n,this.k=r,this.a=o}}let sbe=(()=>{class i{constructor(){this.newValue=new Ae}inputChange(e){const n=e.target.value;if(void 0===this.rg)this.newValue.emit(n);else{const r=parseFloat(n);this.newValue.emit({v:r,rg:this.rg})}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=it({type:i,selectors:[["","text",""]],hostBindings:function(e,n){1&e&&N("input",function(o){return n.inputChange(o)})},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}}),i})(),lbe=(()=>{class i{constructor(e){this.elRef=e,this.dragEnd=new Ae,this.dragStart=new Ae,this.newValue=new Ae,this.listenerMove=n=>this.move(n),this.listenerStop=()=>this.stop()}mouseDown(e){this.start(e)}touchStart(e){this.start(e)}move(e){e.preventDefault(),this.setCursor(e)}start(e){this.setCursor(e),e.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(e){const n=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==e.pageX?e.pageX:e.touches[0].pageX)-n.left-window.pageXOffset}getY(e){const n=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==e.pageY?e.pageY:e.touches[0].pageY)-n.top-window.pageYOffset}setCursor(e){const n=this.elRef.nativeElement.offsetWidth,r=this.elRef.nativeElement.offsetHeight,o=Math.max(0,Math.min(this.getX(e),n)),a=Math.max(0,Math.min(this.getY(e),r));void 0!==this.rgX&&void 0!==this.rgY?this.newValue.emit({s:o/n,v:1-a/r,rgX:this.rgX,rgY:this.rgY}):void 0===this.rgX&&void 0!==this.rgY?this.newValue.emit({v:a/r,rgY:this.rgY}):void 0!==this.rgX&&void 0===this.rgY&&this.newValue.emit({v:o/n,rgX:this.rgX})}}return i.\u0275fac=function(e){return new(e||i)(U(Pt))},i.\u0275dir=it({type:i,selectors:[["","slider",""]],hostBindings:function(e,n){1&e&&N("mousedown",function(o){return n.mouseDown(o)})("touchstart",function(o){return n.touchStart(o)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}}),i})();class lV{constructor(t,e,n,r){this.h=t,this.s=e,this.v=n,this.a=r}}class cV{constructor(t,e,n,r){this.h=t,this.s=e,this.v=n,this.a=r}}let sE=(()=>{class i{constructor(){this.active=null}setActive(e){this.active&&this.active!==e&&"inline"!==this.active.cpDialogDisplay&&this.active.closeDialog(),this.active=e}hsva2hsla(e){const n=e.h,r=e.s,o=e.v,a=e.a;if(0===o)return new _h(n,0,0,a);if(0===r&&1===o)return new _h(n,1,1,a);{const s=o*(2-r)/2;return new _h(n,o*r/(1-Math.abs(2*s-1)),s,a)}}hsla2hsva(e){const n=Math.min(e.h,1),r=Math.min(e.s,1),o=Math.min(e.l,1),a=Math.min(e.a,1);if(0===o)return new GC(n,0,0,a);{const s=o+r*(1-Math.abs(2*o-1))/2;return new GC(n,2*(s-o)/s,s,a)}}hsvaToRgba(e){let n,r,o;const a=e.h,s=e.s,l=e.v,d=e.a,f=Math.floor(6*a),y=6*a-f,k=l*(1-s),E=l*(1-y*s),W=l*(1-(1-y)*s);switch(f%6){case 0:n=l,r=W,o=k;break;case 1:n=E,r=l,o=k;break;case 2:n=k,r=l,o=W;break;case 3:n=k,r=E,o=l;break;case 4:n=W,r=k,o=l;break;case 5:n=l,r=k,o=E;break;default:n=0,r=0,o=0}return new Ac(n,r,o,d)}cmykToRgb(e){return new Ac((1-e.c)*(1-e.k),(1-e.m)*(1-e.k),(1-e.y)*(1-e.k),e.a)}rgbaToCmyk(e){const n=1-Math.max(e.r,e.g,e.b);return 1===n?new mv(0,0,0,1,e.a):new mv((1-e.r-n)/(1-n),(1-e.g-n)/(1-n),(1-e.b-n)/(1-n),n,e.a)}rgbaToHsva(e){let n,r;const o=Math.min(e.r,1),a=Math.min(e.g,1),s=Math.min(e.b,1),l=Math.min(e.a,1),d=Math.max(o,a,s),f=Math.min(o,a,s),y=d,k=d-f;if(r=0===d?0:k/d,d===f)n=0;else{switch(d){case o:n=(a-s)/k+(a{class i{constructor(e,n,r,o,a,s){this.ngZone=e,this.elRef=n,this.cdRef=r,this.document=o,this.platformId=a,this.service=s,this.isIE10=!1,this.dialogArrowSize=10,this.dialogArrowOffset=15,this.dialogInputFields=[po.HEX,po.RGBA,po.HSLA,po.CMYK],this.useRootViewContainer=!1,this.eyeDropperSupported=Fs(this.platformId)&&"EyeDropper"in this.document.defaultView}handleEsc(e){this.show&&"popup"===this.cpDialogDisplay&&this.onCancelColor(e)}handleEnter(e){this.show&&"popup"===this.cpDialogDisplay&&this.onAcceptColor(e)}ngOnInit(){this.slider=new lV(0,0,0,0),this.sliderDimMax=new cV(this.hueSlider.nativeElement.offsetWidth||140,this.cpWidth,130,this.alphaSlider.nativeElement.offsetWidth||140),this.format=this.cpCmykEnabled?po.CMYK:"rgba"===this.cpOutputFormat?po.RGBA:"hsla"===this.cpOutputFormat?po.HSLA:po.HEX,this.listenerMouseDown=r=>{this.onMouseDown(r)},this.listenerResize=()=>{this.onResize()},this.openDialog(this.initialColor,!1)}ngOnDestroy(){this.closeDialog()}ngAfterViewInit(){230===this.cpWidth&&"inline"!==this.cpDialogDisplay||(this.sliderDimMax=new cV(this.hueSlider.nativeElement.offsetWidth||140,this.cpWidth,130,this.alphaSlider.nativeElement.offsetWidth||140),this.updateColorPicker(!1),this.cdRef.detectChanges())}openDialog(e,n=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(e),this.setColorFromString(e,n),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(e,n,r,o,a,s,l,d,f,y,k,E,W,ee,he,ge,Ce,we,ke,Pe,Ue,ze,Qe,ht,vt,Vt,qt,Ft,ei,Kt,We,Ze,tt,Mt,Jt,ri,ot,Ii){this.setInitialColor(r),this.setColorMode(d),this.isIE10=10===function abe(){let i="";typeof navigator<"u"&&(i=navigator.userAgent.toLowerCase());const t=i.indexOf("msie ");return t>0&&parseInt(i.substring(t+5,i.indexOf(".",t)),10)}(),this.directiveInstance=e,this.directiveElementRef=n,this.cpDisableInput=E,this.cpCmykEnabled=f,this.cpAlphaChannel=y,this.cpOutputFormat=k,this.cpDialogDisplay=s,this.cpIgnoredElements=W,this.cpSaveClickOutside=ee,this.cpCloseClickOutside=he,this.useRootViewContainer=ge,this.width=this.cpWidth=parseInt(o,10),this.height=this.cpHeight=parseInt(a,10),this.cpPosition=Ce,this.cpPositionOffset=parseInt(we,10),this.cpOKButton=Vt,this.cpOKButtonText=Ft,this.cpOKButtonClass=qt,this.cpCancelButton=ei,this.cpCancelButtonText=We,this.cpCancelButtonClass=Kt,this.cpEyeDropper=ri,this.fallbackColor=l||"#fff",this.setPresetConfig(Pe,Ue),this.cpPresetColorsClass=ze,this.cpMaxPresetColorsLength=Qe,this.cpPresetEmptyMessage=ht,this.cpPresetEmptyMessageClass=vt,this.cpAddColorButton=Ze,this.cpAddColorButtonText=Mt,this.cpAddColorButtonClass=tt,this.cpRemoveColorButtonClass=Jt,this.cpTriggerElement=ot,this.cpExtraTemplate=Ii,ke||(this.dialogArrowOffset=0),"inline"===s&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),"hex"===k&&"always"!==y&&"forced"!==y&&(this.cpAlphaChannel="disabled")}setColorMode(e){switch(e.toString().toUpperCase()){case"1":case"C":case"COLOR":default:this.cpColorMode=1;break;case"2":case"G":case"GRAYSCALE":this.cpColorMode=2;break;case"3":case"P":case"PRESETS":this.cpColorMode=3}}setInitialColor(e){this.initialColor=e}setPresetConfig(e,n){this.cpPresetLabel=e,this.cpPresetColors=n}setColorFromString(e,n=!0,r=!0){let o;"always"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel?(o=this.service.stringToHsva(e,!0),!o&&!this.hsva&&(o=this.service.stringToHsva(e,!1))):o=this.service.stringToHsva(e,!1),!o&&!this.hsva&&(o=this.service.stringToHsva(this.fallbackColor,!1)),o&&(this.hsva=o,this.sliderH=this.hsva.h,"hex"===this.cpOutputFormat&&"disabled"===this.cpAlphaChannel&&(this.hsva.a=1),this.updateColorPicker(n,r))}onResize(){"fixed"===this.position?this.setDialogPosition():"inline"!==this.cpDialogDisplay&&this.closeColorPicker()}onDragEnd(e){this.directiveInstance.sliderDragEnd({slider:e,color:this.outputColor})}onDragStart(e){this.directiveInstance.sliderDragStart({slider:e,color:this.outputColor})}onMouseDown(e){this.show&&!this.isIE10&&"popup"===this.cpDialogDisplay&&e.target!==this.directiveElementRef.nativeElement&&!this.isDescendant(this.elRef.nativeElement,e.target)&&!this.isDescendant(this.directiveElementRef.nativeElement,e.target)&&0===this.cpIgnoredElements.filter(n=>n===e.target).length&&this.ngZone.run(()=>{this.cpSaveClickOutside?this.directiveInstance.colorSelected(this.outputColor):(this.hsva=null,this.setColorFromString(this.initialColor,!1),this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor),this.directiveInstance.colorCanceled()),this.cpCloseClickOutside&&this.closeColorPicker()})}onAcceptColor(e){e.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),"popup"===this.cpDialogDisplay&&this.closeColorPicker()}onCancelColor(e){this.hsva=null,e.stopPropagation(),this.directiveInstance.colorCanceled(),this.setColorFromString(this.initialColor,!0),"popup"===this.cpDialogDisplay&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker())}onEyeDropper(){this.eyeDropperSupported&&(new window.EyeDropper).open().then(n=>{this.setColorFromString(n.sRGBHex,!0)})}onFormatToggle(e){const n=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),r=((this.dialogInputFields.indexOf(this.format)+e)%n+n)%n;this.format=this.dialogInputFields[r]}onColorChange(e){this.hsva.s=e.s/e.rgX,this.hsva.v=e.v/e.rgY,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})}onHueChange(e){this.hsva.h=e.v/e.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(e){this.hsva.v=e.v/e.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(e){this.hsva.a=e.v/e.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(e){if(null===e)this.updateColorPicker();else{e&&"#"!==e[0]&&(e="#"+e);let n=/^#([a-f0-9]{3}|[a-f0-9]{6})$/gi;"always"===this.cpAlphaChannel&&(n=/^#([a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})$/gi);const r=n.test(e);r&&(e.length<5&&(e="#"+e.substring(1).split("").map(o=>o+o).join("")),"forced"===this.cpAlphaChannel&&(e+=Math.round(255*this.hsva.a).toString(16)),this.setColorFromString(e,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid:r,value:e,color:this.outputColor})}}onRedInput(e){const n=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.r=e.v/e.rg,this.hsva=this.service.rgbaToHsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"red",valid:r,value:n.r,color:this.outputColor})}onBlueInput(e){const n=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.b=e.v/e.rg,this.hsva=this.service.rgbaToHsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"blue",valid:r,value:n.b,color:this.outputColor})}onGreenInput(e){const n=this.service.hsvaToRgba(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.g=e.v/e.rg,this.hsva=this.service.rgbaToHsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"green",valid:r,value:n.g,color:this.outputColor})}onHueInput(e){const n=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;n&&(this.hsva.h=e.v/e.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid:n,value:this.hsva.h,color:this.outputColor})}onValueInput(e){const n=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;n&&(this.hsva.v=e.v/e.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid:n,value:this.hsva.v,color:this.outputColor})}onAlphaInput(e){const n=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;n&&(this.hsva.a=e.v/e.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid:n,value:this.hsva.a,color:this.outputColor})}onLightnessInput(e){const n=this.service.hsva2hsla(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.l=e.v/e.rg,this.hsva=this.service.hsla2hsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"lightness",valid:r,value:n.l,color:this.outputColor})}onSaturationInput(e){const n=this.service.hsva2hsla(this.hsva),r=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;r&&(n.s=e.v/e.rg,this.hsva=this.service.hsla2hsva(n),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"saturation",valid:r,value:n.s,color:this.outputColor})}onCyanInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.c=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.m=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.y=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.k=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(e,n){e.stopPropagation(),this.cpPresetColors.filter(r=>r===n).length||(this.cpPresetColors=this.cpPresetColors.concat(n),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(e,n){e.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(r=>r!==n),this.directiveInstance.presetColorsChanged(this.cpPresetColors)}openColorPicker(){this.show||(this.show=!0,this.hidden=!0,setTimeout(()=>{this.hidden=!1,this.setDialogPosition(),this.cdRef.detectChanges()},0),this.directiveInstance.stateChanged(!0),this.isIE10||this.ngZone.runOutsideAngular(()=>{dV?document.addEventListener("touchstart",this.listenerMouseDown):document.addEventListener("mousedown",this.listenerMouseDown)}),window.addEventListener("resize",this.listenerResize))}closeColorPicker(){this.show&&(this.show=!1,this.directiveInstance.stateChanged(!1),this.isIE10||(dV?document.removeEventListener("touchstart",this.listenerMouseDown):document.removeEventListener("mousedown",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(e=!0,n=!0,r=!1){if(this.sliderDimMax){let o,a,s;2===this.cpColorMode&&(this.hsva.s=0);const l=this.outputColor;if(a=this.service.hsva2hsla(this.hsva),this.cpCmykEnabled?(r?(s=this.service.cmykToRgb(this.service.normalizeCMYK(this.cmyk)),this.hsva=this.service.rgbaToHsva(s)):(s=this.service.hsvaToRgba(this.hsva),this.cmyk=this.service.denormalizeCMYK(this.service.rgbaToCmyk(s))),s=this.service.denormalizeRGBA(s),this.sliderH=this.hsva.h):s=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),o=this.service.denormalizeRGBA(this.service.hsvaToRgba(new GC(this.sliderH||this.hsva.h,1,1,1))),n&&(this.hslaText=new _h(Math.round(360*a.h),Math.round(100*a.s),Math.round(100*a.l),Math.round(100*a.a)/100),this.rgbaText=new Ac(s.r,s.g,s.b,Math.round(100*s.a)/100),this.cpCmykEnabled&&(this.cmykText=new mv(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k,Math.round(100*this.cmyk.a)/100)),this.hexText=this.service.rgbaToHex(s,"always"===this.cpAlphaChannel),this.hexAlpha=this.rgbaText.a),"auto"===this.cpOutputFormat&&this.format!==po.RGBA&&this.format!==po.CMYK&&this.format!==po.HSLA&&this.hsva.a<1&&(this.format=this.hsva.a<1?po.RGBA:po.HEX),this.hueSliderColor="rgb("+o.r+","+o.g+","+o.b+")",this.alphaSliderColor="rgb("+s.r+","+s.g+","+s.b+")",this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.format!==po.CMYK)this.cmykColor="";else if("always"===this.cpAlphaChannel||"enabled"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel){const d=Math.round(100*this.cmyk.a)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${d})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new lV((this.sliderH||this.hsva.h)*this.sliderDimMax.h-8,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),e&&l!==this.outputColor&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.outputColor))}}setDialogPosition(){if("inline"===this.cpDialogDisplay)this.position="relative";else{let r,e="static",n="",o=null,a=null,s=this.directiveElementRef.nativeElement.parentNode;const l=this.dialogElement.nativeElement.offsetHeight;for(;null!==s&&"HTML"!==s.tagName;){if(r=window.getComputedStyle(s),e=r.getPropertyValue("position"),n=r.getPropertyValue("transform"),"static"!==e&&null===o&&(o=s),n&&"none"!==n&&null===a&&(a=s),"fixed"===e){o=a;break}s=s.parentNode}const d=this.createDialogBox(this.directiveElementRef.nativeElement,"fixed"!==e);if(this.useRootViewContainer||"fixed"===e&&(!o||o instanceof HTMLUnknownElement))this.top=d.top,this.left=d.left;else{null===o&&(o=s);const y=this.createDialogBox(o,"fixed"!==e);this.top=d.top-y.top,this.left=d.left-y.left}"fixed"===e&&(this.position="fixed");let f=this.cpPosition;"auto"===this.cpPosition&&(f=function obe(i,t){let e="right",n="bottom";const{height:r,width:o}=i,{top:a,left:s}=t,l=a+t.height,d=s+t.width,f=a-r<0,y=l+r>(window.innerHeight||document.documentElement.clientHeight),k=s-o<0,E=d+o>(window.innerWidth||document.documentElement.clientWidth);return y&&(n="top"),f&&(n="bottom"),k&&(e="right"),E&&(e="left"),f&&y&&k&&E?["left","right","top","bottom"].reduce((he,ge)=>i[he]>i[ge]?he:ge):k&&E?f?"bottom":y||a>l?"top":"bottom":f&&y?k?"right":E||s>d?"left":"right":`${n}-${e}`}(this.dialogElement.nativeElement.getBoundingClientRect(),this.cpTriggerElement.nativeElement.getBoundingClientRect())),"top"===f?(this.arrowTop=l-1,this.top-=l+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*d.width-this.dialogArrowOffset):"bottom"===f?(this.top+=d.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*d.width-this.dialogArrowOffset):"top-left"===f||"left-top"===f?(this.top-=l-d.height+d.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset):"top-right"===f||"right-top"===f?(this.top-=l-d.height+d.height*this.cpPositionOffset/100,this.left+=d.width+this.dialogArrowSize-2-this.dialogArrowOffset):"left"===f||"bottom-left"===f||"left-bottom"===f?(this.top+=d.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2):(this.top+=d.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=d.width+this.dialogArrowSize-2),this.cpUsePosition=f}}isDescendant(e,n){let r=n.parentNode;for(;null!==r;){if(r===e)return!0;r=r.parentNode}return!1}createDialogBox(e,n){const{top:r,left:o}=e.getBoundingClientRect();return{top:r+(n?window.pageYOffset:0),left:o+(n?window.pageXOffset:0),width:e.offsetWidth,height:e.offsetHeight}}}return i.\u0275fac=function(e){return new(e||i)(U(Bt),U(Pt),U(ui),U(Wt),U(dd),U(sE))},i.\u0275cmp=Be({type:i,selectors:[["color-picker"]],viewQuery:function(e,n){if(1&e&&(un(k1e,7),un(T1e,7),un(S1e,7)),2&e){let r;pt(r=ft())&&(n.dialogElement=r.first),pt(r=ft())&&(n.hueSlider=r.first),pt(r=ft())&&(n.alphaSlider=r.first)}},hostBindings:function(e,n){1&e&&N("keyup.esc",function(o){return n.handleEsc(o)},0,AM)("keyup.enter",function(o){return n.handleEnter(o)},!1,AM)},decls:30,vars:51,consts:[[1,"color-picker",3,"click"],["dialogPopup",""],[3,"class","top",4,"ngIf"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue","dragStart","dragEnd",4,"ngIf"],[1,"hue-alpha","box"],[1,"left"],[1,"selected-color-background"],[1,"selected-color",3,"click"],["class","eyedropper-icon","xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",4,"ngIf"],["type","button",3,"class","disabled","click",4,"ngIf"],[1,"right"],["style","height: 16px;",4,"ngIf"],[1,"hue",3,"slider","rgX","newValue","dragStart","dragEnd"],["hueSlider",""],[1,"cursor"],[1,"value",3,"slider","rgX","newValue","dragStart","dragEnd"],["valueSlider",""],[1,"alpha",3,"slider","rgX","newValue","dragStart","dragEnd"],["alphaSlider",""],["class","cmyk-text",3,"display",4,"ngIf"],["class","hsla-text",3,"display",4,"ngIf"],["class","rgba-text",3,"display",4,"ngIf"],["class","hex-text",3,"hex-alpha","display",4,"ngIf"],["class","value-text",4,"ngIf"],["class","type-policy",4,"ngIf"],["class","preset-area",4,"ngIf"],["class","button-area",4,"ngIf"],["class","extra-template",4,"ngIf"],[1,"saturation-lightness",3,"slider","rgX","rgY","newValue","dragStart","dragEnd"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",1,"eyedropper-icon"],["d","M0 0h24v24H0V0z","fill","none"],["d","M17.66 5.41l.92.92-2.69 2.69-.92-.92 2.69-2.69M17.67 3c-.26 0-.51.1-.71.29l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42l-2.34-2.34c-.2-.19-.45-.29-.7-.29zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"],["type","button",3,"disabled","click"],[2,"height","16px"],[1,"cmyk-text"],[1,"box"],["type","number","pattern","[0-9]*","min","0","max","100",3,"text","rg","value","keyup.enter","newValue"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue",4,"ngIf"],[4,"ngIf"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue"],[1,"hsla-text"],["type","number","pattern","[0-9]*","min","0","max","360",3,"text","rg","value","keyup.enter","newValue"],[1,"rgba-text"],["type","number","pattern","[0-9]*","min","0","max","255",3,"text","rg","value","keyup.enter","newValue"],[1,"hex-text"],[3,"text","value","blur","keyup.enter","newValue"],[1,"value-text"],[1,"type-policy"],[1,"type-policy-arrow",3,"click"],[1,"preset-area"],[1,"preset-label"],[3,"class",4,"ngIf"],["class","preset-color",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"preset-color",3,"click"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"button-area"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"],[1,"extra-template"],[4,"ngTemplateOutlet"]],template:function(e,n){1&e&&(u(0,"div",0,1),N("click",function(o){return o.stopPropagation()}),w(2,E1e,1,5,"div",2),w(3,A1e,2,8,"div",3),u(4,"div",4)(5,"div",5),H(6,"div",6),u(7,"div",7),N("click",function(){return n.eyeDropperSupported&&n.cpEyeDropper&&n.onEyeDropper()}),w(8,I1e,3,0,"svg",8),c(),w(9,F1e,2,5,"button",9),c(),u(10,"div",10),w(11,P1e,1,0,"div",11),u(12,"div",12,13),N("newValue",function(o){return n.onHueChange(o)})("dragStart",function(){return n.onDragStart("hue")})("dragEnd",function(){return n.onDragEnd("hue")}),H(14,"div",14),c(),u(15,"div",15,16),N("newValue",function(o){return n.onValueChange(o)})("dragStart",function(){return n.onDragStart("value")})("dragEnd",function(){return n.onDragEnd("value")}),H(17,"div",14),c(),u(18,"div",17,18),N("newValue",function(o){return n.onAlphaChange(o)})("dragStart",function(){return n.onDragStart("alpha")})("dragEnd",function(){return n.onDragEnd("alpha")}),H(20,"div",14),c()()(),w(21,O1e,17,12,"div",19),w(22,V1e,14,10,"div",20),w(23,U1e,14,10,"div",21),w(24,z1e,8,7,"div",22),w(25,G1e,9,3,"div",23),w(26,q1e,3,0,"div",24),w(27,J1e,6,3,"div",25),w(28,nbe,3,2,"div",26),w(29,rbe,2,1,"div",27),c()),2&e&&(Mn("display",n.show?"block":"none")("visibility",n.hidden?"hidden":"visible")("top",n.top,"px")("left",n.left,"px")("position",n.position)("height",n.cpHeight,"px")("width",n.cpWidth,"px"),Zt("open",n.show),h(2),p("ngIf","popup"===n.cpDialogDisplay),h(1),p("ngIf",1===(n.cpColorMode||1)),h(4),Mn("background-color",n.selectedColor)("cursor",n.eyeDropperSupported&&n.cpEyeDropper?"pointer":null),h(1),p("ngIf",n.eyeDropperSupported&&n.cpEyeDropper),h(1),p("ngIf",n.cpAddColorButton),h(2),p("ngIf","disabled"===n.cpAlphaChannel),h(1),Mn("display",1===(n.cpColorMode||1)?"block":"none"),p("rgX",1),h(2),Mn("left",null==n.slider?null:n.slider.h,"px"),h(1),Mn("display",2===(n.cpColorMode||1)?"block":"none"),p("rgX",1),h(2),Mn("right",null==n.slider?null:n.slider.v,"px"),h(1),Mn("display","disabled"===n.cpAlphaChannel?"none":"block")("background-color",n.alphaSliderColor),p("rgX",1),h(2),Mn("left",null==n.slider?null:n.slider.a,"px"),h(1),p("ngIf",!n.cpDisableInput&&1===(n.cpColorMode||1)),h(1),p("ngIf",!n.cpDisableInput&&1===(n.cpColorMode||1)),h(1),p("ngIf",!n.cpDisableInput&&1===(n.cpColorMode||1)),h(1),p("ngIf",!n.cpDisableInput&&1===(n.cpColorMode||1)),h(1),p("ngIf",!n.cpDisableInput&&2===(n.cpColorMode||1)),h(1),p("ngIf",!n.cpDisableInput&&1===(n.cpColorMode||1)),h(1),p("ngIf",(null==n.cpPresetColors?null:n.cpPresetColors.length)||n.cpAddColorButton),h(1),p("ngIf",n.cpOKButton||n.cpCancelButton),h(1),p("ngIf",n.cpExtraTemplate))},dependencies:[jt,ct,jp,sbe,lbe],styles:['.color-picker{position:absolute;z-index:1000;width:230px;height:auto;border:#777 solid 1px;cursor:default;-webkit-user-select:none;user-select:none;background-color:#fff}.color-picker *{box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .arrow{position:absolute;z-index:999999;width:0;height:0;border-style:solid}.color-picker .arrow.arrow-top{left:8px;border-width:10px 5px;border-color:#777 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-bottom{top:-20px;left:8px;border-width:10px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #777 rgba(0,0,0,0)}.color-picker .arrow.arrow-top-left,.color-picker .arrow.arrow-left-top{right:-21px;bottom:8px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-top-right,.color-picker .arrow.arrow-right-top{bottom:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-left,.color-picker .arrow.arrow-left-bottom,.color-picker .arrow.arrow-bottom-left{top:8px;right:-21px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-right,.color-picker .arrow.arrow-right-bottom,.color-picker .arrow.arrow-bottom-right{top:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .cursor{position:relative;width:16px;height:16px;border:#222 solid 2px;border-radius:50%;cursor:default}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{flex:1 1 auto;padding:12px 8px}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .button-area button{margin-left:8px}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{overflow:hidden;width:100%;padding:4px;font-size:11px;white-space:nowrap;text-align:left;text-overflow:ellipsis;color:#555}.color-picker .preset-area .preset-color{position:relative;display:inline-block;width:18px;height:18px;margin:4px 6px 8px;border:#a9a9a9 solid 1px;border-radius:25%;cursor:pointer}.color-picker .preset-area .preset-empty-message{min-height:18px;margin-top:4px;margin-bottom:8px;font-style:italic;text-align:center}.color-picker .hex-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box div{float:left;flex:1 1 auto;text-align:center;color:#555;clear:left}.color-picker .hex-text .box input{flex:1 1 auto;padding:1px;border:#a9a9a9 solid 1px}.color-picker .hex-alpha .box div:first-child,.color-picker .hex-alpha .box input:first-child{flex-grow:3;margin-right:8px}.color-picker .cmyk-text,.color-picker .hsla-text,.color-picker .rgba-text,.color-picker .value-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .cmyk-text .box,.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .value-text .box{padding:0 8px 8px}.color-picker .cmyk-text .box div,.color-picker .hsla-text .box div,.color-picker .rgba-text .box div,.color-picker .value-text .box div{flex:1 1 auto;margin-right:8px;text-align:center;color:#555}.color-picker .cmyk-text .box div:last-child,.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child,.color-picker .value-text .box div:last-child{margin-right:0}.color-picker .cmyk-text .box input,.color-picker .hsla-text .box input,.color-picker .rgba-text .box input,.color-picker .value-text .box input{float:left;flex:1;padding:1px;margin:0 8px 0 0;border:#a9a9a9 solid 1px}.color-picker .cmyk-text .box input:last-child,.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child,.color-picker .value-text .box input:last-child{margin-right:0}.color-picker .hue-alpha{align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC)}.color-picker .value{direction:rtl;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAACTklEQVR42u3SYUcrABhA4U2SkmRJMmWSJklKJiWZZpKUJJskKUmaTFImKZOUzMySpGRmliRNJilJSpKSJEtmSpIpmWmSdO736/6D+x7OP3gUCoWCv1cqlSQlJZGcnExKSgqpqamkpaWRnp5ORkYGmZmZqFQqsrKyyM7OJicnh9zcXNRqNXl5eeTn56PRaCgoKKCwsJCioiK0Wi3FxcWUlJRQWlpKWVkZ5eXlVFRUUFlZiU6no6qqiurqampqaqitraWurg69Xk99fT0GgwGj0UhDQwONjY00NTXR3NxMS0sLra2ttLW10d7ejslkwmw209HRQWdnJ11dXXR3d9PT00Nvby99fX309/czMDDA4OAgFouFoaEhrFYrw8PDjIyMMDo6ytjYGDabjfHxcSYmJpicnGRqagq73c709DQzMzPMzs4yNzfH/Pw8DocDp9OJy+XC7XazsLDA4uIiS0tLLC8vs7KywurqKmtra3g8HrxeLz6fD7/fz/r6OhsbG2xubrK1tcX29jaBQICdnR2CwSC7u7vs7e2xv7/PwcEBh4eHHB0dcXx8zMnJCaenp5ydnXF+fs7FxQWXl5dcXV1xfX3Nzc0Nt7e33N3dEQqFuL+/5+HhgXA4TCQS4fHxkaenJ56fn3l5eeH19ZVoNMrb2xvv7+98fHwQi8WIx+N8fn6SSCT4+vri+/ubn58ffn9/+VcKgSWwBJbAElgCS2AJLIElsASWwBJYAktgCSyBJbAElsASWAJLYAksgSWwBJbAElgCS2AJLIElsP4/WH8AmJ5Z6jHS4h8AAAAASUVORK5CYII=)}.color-picker .alpha{direction:ltr;width:100%;height:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==)}.color-picker .type-policy{position:absolute;top:218px;right:12px;width:16px;height:24px;background-size:8px 16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center}.color-picker .type-policy .type-policy-arrow{display:block;width:100%;height:50%}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;border:1px solid #a9a9a9;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}.color-picker .saturation-lightness{direction:ltr;width:100%;height:130px;border:none;cursor:pointer;touch-action:manipulation;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9hNFIqTsp0GxI0ysioyjAjkY/tGJVEpz+fz+OWXX+7fv38//f777+Pbt2/j119/HT///PP49ddfx8fHRwrmTjV779EXu2px2xhjwtdJZQcAWQIPLPISsMJaSwiD8gzIKrwSyATE5j5nAbR5c1dBUwBlsEWW0h6LqiYsqFPAQxCyRZ3wOSARxmlXMX5k64pQfvv27f75+dk+Pj5OHx8f4/v37+Pbt2/jt99+G9++fRsfHx/jcrmUFLO31gYDWblxRIs/TqfT7ousxJsAxXA2Gc7TA9XdgfdoHbFsj76X2+1WArgI1ageGwA3qupqoHsmcbI6Fu93quggFa9d7LeDtgKfAFHBJ+NEByIkcJ5KervdTmhhGcgJJSZ5vn//fj+fz+18Pp8+Pz/H5+fnmGD+/vvv4/v37+Pj42N8fn6O2+1Ws7JjjP6wraMI5E4RZ8x2vV5TSwkquotV7/d7Tz6HFWsD/qNcdw0CQ3q/321c686TwDVIdbuy73zNldhSHb8I2klZznm+InBS4U6n0302aBFsLhHDAKJVJVglfI9jhvu53W53sLANYNxAiDA6MCeUHx8f9+v12i6XS7tcLqcZW57P5yeY8/fz83Ocz+fnsSmYUyknWEG85WBst9stzSLyMdfr9Qi08iY15UZ0LlDGLhR3o5zK2j7OPUTD0E+nU3tk7Xb/16NFbhloAMuY1zjLUOO3BKeIDe+Z8s3/J4gFo4TM5jPmuRg28foUKKVSwo16TgA5npywcWLHgYl/Pz8/73/605/ab7/91m63W7tcLie0sZj4mao5gTyfz88E0f1+j8EcYzwTPEG2cqjyfHNF0M8fuqEiaOVnRzZZQNh5fwQyHg/HDGfJo89Q1zb/quu5XC6773I2XKfTqd/v9+d3wuqWva/YTdUdEV3fhIv/Viyps6YE3x3r43K5bJQS66zaxVGFsvd+//j4aF+/fm3fv39vt9utff36tf3+++/tdrudvn37ZuNLBaaCMgUzC+rZRiFowxUuJI8YMqcCp9Opq5vagaYU6lGJA1XQqejchw6Cj0Gw5nYBrGw01A2O206n04BGouNNyTfp/FwElhUey6nXrIKw7QQWddxuN2ldL5fL839gSPF8ahu/JvBO48CPSuqMf8Vp9/P53L58+dLu93s7n8/tfr8/39/v9/b5+TkhPJ3P56mQ436/j+/fv+/iSgbzer0+AZx/5+88bv6OMda6S5z6kd21fYC9dxv7cIJJ2d9AOS30fPMzyHiTM8B4DF6XUlYHp4KQW3W+1t77MNB1vGHxWq7Xa7vf78+y5/N5A+H1et29xuP5dbYtyaRu4AksbPq6936fjRzXRxBbPr/b+b18+fKljTHaBBBfn8/n0/1+H1++fBnn8zm0sB8fH5u4cr5GuBhMVk0EEn9RsctgVhM+ixlJtMA23R8B6yysAstBOgFXIKKCMIgToMqNEu2fYMH7ztc732dQKkCj1ytAZtY0Kx8pIr8GGJ+AT3V+2Hirhl++fBmXy2Wz73w+b17P8p+fn8/tUwGVleVkTyUb68DkfayWY4zxNRihU4EpLJPZVrK+u7J4/mgfKqeLW9X2REWlItL1diynbDDb3+jXgYjQqn0rrxWc+NkILP7F7xIbMvx7vV53x40xnlbWJF12ZSag/N0pW6t+ZzmOMzHjajKwDfond78zYTdfq18up97zr2q8v3IioBprRtBl0EZ9og5WBRGOdOHjIjXF7UotFbgOWnXzIJyzYvjG5IYgsmMOxHkz8OsMSrVNWeq5T8DaOcbEv1Od5rbs9aO7YvMet63EkF++fMExq+MRl4/L5bLZN/+ez+fnZ6KazuMqXSQVO5spJXflHAIzes/xJseckRJiDMog9d6VfRrqXMr6KpVV27jRwJacGovOAM1zMdQMnwK1AubK63kdCChvI1C7g0z9nf/D+Xze2Vj8H7Gx4P9duQlsYCrqyN8XqG3Hm/10Oj3jw/n+crlstuM+jPmmxT2dTuPz83Pzt2pn1XsEHX/bnPaVqVmh0xwOt0o6XLLAHePUU203wHfcrspCwmV3TryB5s0Mseeg97x/BwzCjBlbB+pRAPla0BVQuT6V6QHdBlj3d0KG147b+DqxQeUymDO43W4dQar+TIjwmAd0z8/h65vf0/yLv3Pb5XLpru/ydDo9s7ET0I+Pj6dKK9VUEIeKWQWPAOrJ8LKd4vE+t91Y3e7UFlWatg2VwJnb+HPmtvm/sfK59/OaWF3x/eP1UPHvA5DDYDpYXfb0drv1V2DkBkxtw/tEWVVlXWdC9pFYs5/jfh9dS/16vW7s6lTG+TfqsxSJHxkXXq/Xdr1eu4LsfD6P3vsT3N77DkL+zPm5jSdKL4zR3AxQd6rHkLkYlSowsrq7znzu6wSwdsMJOXmA5fBcjxtgMGBYHlr5zokhtsMCTgXLQOW4XC6dEyEMprL8mAQzXRgduix2yZzorxkYsDn3hB1VeMLGsXsVtgl2pW8S3svk0vw7R4hNaHvv4cACl5HFzwIH0Kc6zu4XjDPR/jpAVxWzO1Xk2DDb3vTcxeGU1iWZHkmIDWziWKvirCJ4Dravs6IJ/GG6cTqWdXDy+fArQDVVkLqkVjAoZIITdmmIqXwqa95N3+MGYoZQdRVNO53Y1xRkhO16vY7eu507Ca9lJnbGpxOemQhSw/AQsmmp5zU9BiU8G6wvX76M6/U6Pj4+do0Bz4CpgiknTUeDqwlKBmg3u4OVjrZ1A+rAcgaejWq6eJCvCYFDONSwOgHX4EQRw8lxbzDOdEK6gZ3Hk1b+8g2o1JFtKXyv/fEdTXuWjWXdAZiBp6ADeDrCFiim7B6ZFneeI7Gvm/PMkUDX67W7xI8b0D7/v8dA9qfN5oaCf74WZjH0mf1cmfY1Y0JUFmVrTWu8uzkNcLtEj7u5FXBTkfC6GOA5q8YMxO8KVvF6sAVGdcrUbsKODcQKkLMOMdmlxum642YrPm26AlhZW1YB1R+rrGswE8TaYAWeUMxdf+WjwSvZ2Ef3ytOyfn5+PpVPAaqOn43MtNBqvmjjxbjM4lZjZY4gqNMI5ktaW/sYKNwS+9lFQzGihmMCKPa7+Z0V6Eb0GRmobtpX8JljWu5FMLN5ja6hG9kwQgZqf5+1NH5UxzkFReCdWhJ8XdlGUkxO7HRlYRm4mVO43W7ter12TPJEw/rmEN3L5SKHIWZg9mz+pUoKOYq5bJTJdX2gme1UcxMZQFaEQIlHct32M+Y1BzGkGuzfiyAN9z+ugplZ1symCrDCYYkGxDTpI9RzBy0rHyeDUC1nWaeUaD9n4xkNyYMBDZtzZ3B++fJlY21XFDOcARJlabOyiS3uCpLI9jrZjCDkaVvcCCjwognKShWdzXZWlZMvVTgD8LpqlCLrqgbcB+qYwrgKYpT0ccCqbKyCValkEabn/FynogCrPKfqf51xJ7sGB2ZXcZmxoSOztjx300DZi7a0/2AIR0UlBag9SuDw6KcAzlaB7vHZvWpjK90dyrq6bKyDUZQbR0B05biLQkHIcSUmgIK+SwuqgHCnoio2RQU1yj+BnBy9pphVKLGyC7ZzFK1pxWK+E8IhVCWLN/uLtnUU4ayoYLoaANz8FdtaSvY4pV0BEW2ls61czqllBKpTyKgMAhrZ1cdc1RROtPmvWNkdcKZ7ZKxaWjiPLJMpp7OZKxA+rqG/oJLjxf0pnJlqLoDZo3gyU0mKGys2taKecj/d1C+rJSplBqlTyAqgR+D8KjKlmRL2gtUcAdCtsL+ijCNT1oqqqkH2OHEbG5sDFnUg5Aa+yLou2VU1ptj1S2ZQqv1ORZN9IWzRfgaRBxKoBE8UWyqlJFtrIc0AxNjSjed99CTY/XDfSzCz5M0IZoVEsWnPFNTsl8ooVC1TzbGgqFZNDSgVwKK+1sGDMKqxZCWGVMDysiEr1jVSQJUYwj5iHOlThdHt44SQg9CN+nl8D90NMIgAdgr46JqRiR9I8vRdFvbr17m/yxUMKjNLMiVUADwu2CWGhhi+F55TWM9M9cogzms1dnM4uOF/LAEYWdcqnM7yFmyq3IfwmOROd7Y1iFWtOjoY8To41mTV5IysgFFuRzsbWFGbNIIJCDv1dOo4lZG7jWBwRFtVTKuWyeCByJKOan8oZ3ep9XddNl0tDuaywLz9cXPYeDAA0SpkBO9sbVcTOVWldPv4uyzEkzxHtjvonHoSkFEWNoo1d8DhcQputd2ppNon4BzoAiJ1hBFQg0dVtdbGHHDQWushmNEQukLM2QO1G2Y8bgTXqFhcBJj7EjPgcPts8US8qPpPB/dXznOh5Z438tzH5ec6QgrOKrRRfKmysBmUDB+PhYabMlVPER+GCSITTzr7am2tArH3bgcEzPJm+cr5jJ4NnHNFDVrFXcI5Le9k5Jnw+bedbV+FfRzZIHaOOaOsLY0/7UGs58DjrGwKMIMFIGzOEW1/jGsdAtCN6hEAI4hBe9YXeRROBSVPAVPAqvIM5bx5hVKWAMP6zBRy3iescridVdFBinBxXDnG2GRY2XbCvp1lhvGtO9Bxu5h908XQu42lnSArMFdizMim8uwRCxPGnnOS8lwpnbOiDqTAjsrRN/PcoAScCbaACqVM40ylnjjTBs+bwWlAG23/UKbdkiwKWIQPGzWaczpoSlxPEj822cNWkpS7FyzsDrqpfgpG3jahw2vgbaSQAxuLWZYt7JzyNe8JoZpNAcvDFOdw0wqYT9AK1rZz/DdbSlLPp0ryIxgQJlK9AZlEq7IOXpohg9PIhrCng88JsOxiV4ZWAYfg4sikx/8ky2Z9l862uqwrfscIH8+ugTmVGyiddeVYUgEMn4GZzg14EwIsh9sx2cKKiWXReuOE5gzGOQgdlRKVVdlevqb279Xq0Qnsts2VDaBO0coezsruWtHApu6sKG4IBhN0aGU2kLrMKGRTN3HmbCDwKV14zvkMEDG4QfZVspVlaNU2mhc5TEZ3N1h/zqTheuLpW05ZWTGVjb3dbnNmxKZBnN8JqidaVLKAOyARNLS+MB54Z2+VaqoMLKroVBlngefnTPAcoHNWCSvlfA8CI0HEmBNBnBlXyMrzU7A7WVm94PPqQ2gmqKx+WDGsnvilmcSOBJqOK1nYyAIzuAyesq3UdSK3KfWcYKD95HmfYOU3qser2CtYEUA+FpfqdNvgPBZUBhDrGONRVlQsh8rLcaUCykHG0OOUwTlLBrsh5soEMGezi1E4HRVt1icp5wZEFXdibCkG8Y8vX75sbO4E0iom9z+hjSiOfy3DhpXItpVhE+UGQdvoWjtChmrGHf4YAzKgBNnGtuJxFCeGdhUAfQLLK8kBYAP6gvFJZajMG3Xkycy8KuC0q4Eyymwtwdxdv2M0mIBtK0LKnf640j00Auq4gUkdWGlhs22qJc6dZCsL19oxnlTJG4SYVRIGpD8TPFBuM6OElbS1pldid4mGAyN6ZIupbC5bXJN9fdpbThSxLUaI8IG1XIYBxW3Tjs6KQosKcxfxcQmdnwRGM10GnFcCy2XYunLMyAkdgk4mePiczsLygthcBut6goOqS7YVFXADLjaosB6s6ofcZWAZSIRYqSUkizYwttYab3vUOQ9w2HRxIIg8WwRVeE68xi4UtL3zRphxplzwuZrcqYCq1I3jPI5dnJIygEohMbPqVJSzrwzxBJTs5zN+ReUSgxikPQVF3JVBeNQxbHENrEMNvEdFZVV9lH9+ORGEsNZQpyTNc4C3AG7XF4ngzq+DrO2zbuaaOXgdaFcdkEotoSFBVX2qJ0C8OWZeG4KGlpghA0XfTOPCqV2qqwQ26QWfF2PMLhI2w1lVAa2aPsYd0za25MQRwgcZN6uQDCi+ZxiD4XEM2kZxOT41FnZnaRlcpZouzlRqqdbQVWopQoSB58RV50lBNrHi/AwXS5LrwDVlpY3Fc3ByiYGc52Trist6kOXdwInAQtJpp5QchyaquYOV7Su+fxVMaV3dc0RE2S6mUY0gLt2pMcYqrKIQ9w2l1gpQUMtQYcmmbt5DTNxdhnUCjQqtbK9SUSzvrC0mmhhE1e2FS2+oxypy/ZASutkmtjx3vcBC24PX65nbqkBCRhfjS9kIYPnee8cMagVOhI/3T1fAmdtAWZsCswTJCkQVNa0qWKSKPOpHAUhD9DrbVcyoYkwqhvh17vYAayXLQyKGYdxlUDFp494rBXRjYgO17DDYetNIUj/ezp6S0lnlpEwsWmJMkOwsKXeZKEAjIHn0EQJISaRBcO6UMINz7p/bEjjnw4ft+xmDvksxX4G2rIris7qaeKwAFMP2Oi7n4criuZwtpSUwpfLxSnORSrIqusc5ZFaXysqRWjiZ2DyAWEIL35tVSoQElFACjOeGGSE7AHEQgdo/LSvCOgGBvkxsmDbvlS3Fp5vhaB2TAGqRKrKKMrhLVpaGzEVjZ0OQxDhaCTA+QyRR1d15aQzrJntL3RibsipjG6jlgL4yqbS0sNYg1e84vhbBVrElK64CUcWYXDfKxhpIuxiVJZUxsbMy/uRBKTNRQ4kQ3LdRYLS0rJjRPlTPqY6gdJsEDc+aQXAn+HgsNUCbRuF0Oj0zwnA7bWDkbhO5Ens00qeQhS1laBMl5M/cAaxsLF8rKyql+Tf7ELLEGu/ixiimdCvo0TjfpjKwaggen4eh5v7LokLKbLuyvHhcZG8dhGrEDx7Hg93ZppJF7qBqO3iVveXEDQNInzeoe8Yq6ePaZBZ2JviM3W2UAGotekRCAGq4EkF1X3DOnR11yRsBL1tRa0PVcZiNFXZ2c34FskvomInQQ6lzpJoZbJxk43NwKJFBquJSsrByHydxKOnTxQASBmS3j+JMnsHSla3Ec6K9VWoJVn9zfjwOM7hqYAAqJQwE2a3nA48J2QGegRkpZNivSY+ys3EkKd4oJIwsvIHl3cWgLt5k4NH6OmtLWdpurOkwEMupYc7eMtDRhOcI2ui5JhVIzXzLyto/GAPuZoyo8wkoduVgJglCt7OhGbgID4Mq4si+63zUS1FuFFXFlqyaj2emHlLMcBqYu0FMuR28BbB7lOxRMSiCQXFhCKuwkhZ+pYDiGSgbsKKV8MiSRsuHSIWM9rklRiIlZZuqXjsQK8ooYJMgq3JKWVkhHbhsVxFUzthOWPkYijcbx54IKsSdT+uLr3crGKyoYgFiGR9iBk4kfloUX+JIlQRQqabmpgnhqtpQpb6RVQ1WH5DnrS4hEoGZqaerQ2dhFbz8XePxShmDbo70eISjoorO2vK8SJXI4SUmEU4zWKDzUDtWTYw7xXlbSTEj4FRg7zKnKoGRALv0Gs9Tgc1BpCywGZRQAtqVz2xrBcAMzEpfZwFSa2G5W0QBFjSMapWAEFa3HcGN7CxDzECyIkJ97qwrqWNTWVo876PPsjPkj2wvgroM5lLZKMETKVql/CvnWVFiFa/SzJUQwkoZsr67Y6vlSRV3/2tmNTOY3vnaxYwMuoPKqdzR1w7IqHymlPxaAThfU7Ko2ZXYj4AYJHL+kNdKwRQYESTRa5fsUZ/rVC1TMTyWVyYoqNtuzaHsMyv2tvoarxdfqwYgU1axFo/cnql1FGsqK+uAROV8BX4GU8WcZTATi2q7Qcyi0O0V+GhWBMNRUkn8H1SsWVE5By3Gi0ECqUeJoBfAtDa4amkdXG37AGP5Ggeb84p7UazpoKRzdFzeQ8HkoHGxprKy/Hpm5t12p47J6xTYDEz7uINEXSuxYXvFskYAc+ySxH9sf5ftKzU6IbwVBcUGg5e5FMCEXSErZR0wGayV19woM9guPjTqJdVTqR4uE4nJnLldWVkECCZLd2VLF+xtamex7IpiriSDUpvrpn9lrwGMCHyppMH+ps6LILsuFGUj1XEOXiqbqSHPUKnClpWV68kqtURVNDY4TNaocykoYeTU5ngGEQa/S1DnnE4AeXMcKjHPAmFVjCBENaeyLVNHfr3px8xUstJ94hIpfH4HKE/eDaArK6lSyVVFbdt1gxTIVk3pppVlFXi4pEhVBTObquohU85MLXn1iahvUkHJjSCMc01tLFveVVBx0DodM6jftCu7DOtIzYxrc0qp1JGP2ayYFz2Gb6HvMrO8cnGtV6Gjm3uImSfD2GpWK6uowbZGMxFKQCo1pOMtcMXFpRst+hXGoAomF3sSTBGgTglbBKWwsQ3tZqaYSp0Z1CimRDWFcCJUPYJ00BI5FkKYNoifuQxmN88SWVXWLMaUqqqgC0BmQJR6sk3u9NCf6jYLXxAfqsYEgVLAhRY2AtgtflZNFmFyhxdrLkAdWlk4D88M2ixHyepIdhMHrG/iR1ZGtq0MGpbDbRPYOXeSY1M6Ny4ZstvGSktK+XbFPATj2D371saPEsAMXhXrsZ0km/XStkhhMyBfsa6uXFZe2VCe+YMr1+GKgwrQyNYq1VRrB+EizAow6NsdNKcyVEkYeM73ys6q4kAHp6BiFklTkIrVC5oYV7uzwOGCz4UJ0Stq2lWMJy4wtb+RetL6tZFicnJmBw5UjCvXXMZVJX2MQkbf+XN5EWd78Vz8/JEsMZTBiKNzsm1inLRUQ74H4NidaqI68j5sAFgxcRveC7ieLJXfQYxjZZ2CsiWFewZXJmBIlZ1tdtrX4hSuateKso/RZOtOKW2nmq1oTzeK6dRWAWu2NRVb4hq0SXm1GvtugHrbr5IXqmSktg5CuDE2MSlPwsY5kNE2Wp3AqiZbWVLAxiBF+2iBZbuNj6MB6rsMLC7FyasaYDyo7KkoPyEtw3pEMXfPvxAJi2jAQQgjrz0rLIZSWZlIoNhwd5xK4AR9mYNjWAaLrnuImJeBVN9zBORObVvbr+mTTfFSEJLSRnHo7hEJoIi8MFqjxmvgmF5URZz4zLFgZZ8Ctu2X7ggVccKm9gVxIsOHqxXgNMKnFWZYnf1dBnOhayXq17QwFlWW09eNKyVJFmXqaONGA5aCegMbJ3UUkGY1ic3nKWgjq8qfVYGQG1gRt6rs62a6HiqqUOqdesK5NmX4nGofJoiE1d0dF9lVVkvT1/kEEaaCoYOwFpcVcoLM+7669PxC9rWqktH0sWUYld0VCpuBZ/stVRcGgy9WX2+U1Qthi9SzAqSxzZsy+OiFzBYnySGV6Gku44rD8BCOZBV3BvD5+AKRHNwMEsB6EzHnJpkTAeiUlEGkcECeB6GDZTp5YEJTlvdrknxYjTllMkfNtXwDjM7uVjK5JXUUn43rrqpK2jytaxHW0M5G8DC8rtHMYs7KSgduVQMGTYFqFvVS6rkD3sDJ46afdYFwoq11AOKCBLhvwoUgc8IGANycR6knZrdJPdsuxnyjfd3FovTlRMdEdtOl5CMV5EHsXQBis7TOwvIDZaGj2Vnpbh7cpK63VwYEMLwqbjzyl699sawFFkF1yqjUU31HfC6sW1ZFVFuXVXVgz9keEaw0ys1lWfm+azQAQSWA+hKYVfsZjPncAcUB9oIayy/UZXRNckDGji77GsWbvBo6tPrWPqOyVkBUq+INeqpzNdYs/u0ifh5qmpqIW+33JVSUcwY70KL4U9lYdU6ljtSls7lmfi9g3YzeQfVkaGFaV3ODCnaD2N8wsEDFklE3RzM3ZghdYkWHsszq70FIecnKkVkt8ezMzRq9bkGuKojRLBVSod3Y1yPqKgYW7JRQTPVyy5xIYLjOgxgT52RKJUY1dOrIiRd4futQx/A5AcSmEjz0vFWrkLzvbWAu9HOWbGgxFk1VNTpnBKk6TgwisI/HcxYXP1uAWO72ULFlBTq+aSu2VTUs6hrxM2CF+hEor1VIA9ZmFUaab1lSSgZsVs4sxzHlVLoJHr9H4DhONTkI1XC0/wiY2NoWAG5RlnHFnq6oLccpQddMuJ/O17JVA5OHLi0BqCztq7Y1++ucCd98qLI8MIHBV/cKjxQTme3hFBS3MyCqnDsuym2o80HjvFFTtrURmNaGJsmVahImjTsUXKtQZTAVs7Mvv8/+fzUrZAXcLJ6M4koe6XP0b6SmWWNDzyUpQ8bl+LtWx4tuqZ36cRYV3yuVxPNwvIiqiQCSmu7srgTzR6nkyhpCarXwFy1vGd5iP2cY06lFr5Njhhg1Y6+NB28ftbK83s8rf7kLJbKwDFPbLg25a0AdZJEiqr5phixKMDlRUtcssq1hriLqGoH+zeNgVm9OemjsETV8JdF0NHnkIFxWY1OB4Yrp7rtWJ7NgAAAPXklEQVQ3oNs5nplyVf8u2FoLu1JrHveaZWQjqAkshtFa2gzsSG3Zpkbvg3HafF9slPPlldjFlK80Gysm8Mr4MPhneNWENPGjAIpmilTPATdTRTXlCBYHYAQuPwA36xIpWtGN4q3Y2MhiGsUpuSSnlEJRD8PorC7CFYVw+F51qThgabxsTxWzCGY0ZSsb3lfqAy0OPNjNy8xiQQKsHYFQ2HBZVvVbBuq3m1oWKajqaonsM6uZUr6CjXWNZ0l5E3h3jURma6kP3MJIiy1Lm+kahQq41N2iZja5sjtlLYNZHZrH6qUGm4vMbDp6Rw2CFmvuyFkrBcCyMtFqBaECmsHoK9BZ2LA/lJcRqSaDqnaWbrZdGaz3DLgIvBln4woGztbyJGqslwxkhhHrTjTYFXCtOoKS8uLdofVdAbOylGU6nlYpXWZts4nXBq6WxJitMNokHUJnbnJplQm+aGpY2a5GMV2QD1hRubBPFKdumf5OHkLHz0F9luE5kjBjRa0nFE5CUGqHw32MmjZ6xkgINVnSnZ1VZStK2qKlRaLlQgK7uTq7JFXJwM+3SOEKyhZNI+tJ0I5qMYy9k2qJD7dVWdqKXa0CKNR0Ccjg+B2IYu2fcBZJZkMFgM11r0X92wilghFGgzVnexlqB7xL9mS29SiYUVY2nXOZjNBRsyDsQPRWW5hrZ4XcdC4HVWRbjgJr4sFofK5SzjQ7rhI1UebdPdEbj6sqIvTZQZ5va08rABsAW0UxeWytAk7A2KJ9ZpxzCioB24XFtYAeXYxr6anSqhLgppEqWbGwLunTgrV+IjWlL29ljaAl4EQMGsErp4apeZiquwRXLXAqOCeru32mmydc6oWTSWpFAGdzeTB8RTHVMEtlM90CbbQCYhPjq3egYr1FGdYIQjiuDGZ5zZ/AzobKGOyLxti6c4Rwtv2anyWlLICnlLhxJRXt6A5ebDBWFNONbxWZ2d02mnu4S9YECpeppV1zSWRBWxHYzVIv1CXSouwqqX3jBBBDZdYQbpTQW4ZQlS8r5kH4suSRmg2++3JN10x1PaAmEkmtYlEdeGpJEM6kOuCqCR22oSujj5IV2HdT0zj5prLKTjXFAPjdQlyq7xIBxAQP5yMczG4VxAKw0n6ilZ2QBce2pLulkuxxqnoIzFfgqyqjil9S1VNwBrFmeyeops8yOjZUybZdfS8CuaTIJumzs5tODaNtLpFDQ/PcJGweLhmeL1nB0KqiUDScsiUVD89Di3HtrKtSULw3RLiygZD+7sF8JTObgYsrGvDNUFRGl1iy0Ll1YkUc2aJYMog920I8qW6YDCg1Mqk0JHJFKXkbgbRreI+qpYNOZHrVcDUba7pjsphSJNtK6upgRNAVoOS0mugBeN4bIZgHhuPZ/s1ENaX6KsVr+YNrh1Nb7ipR0PE5zbNRegCbrHRUw6Yf07dLBJl1f8KB9as2V1nNqAsl62LBBhehwalerkHmB1JFIEZKSEusdl5JQj1nJlHXSCF342gJ9CYGrXelknJIXqVP8sD+qtplCR3XH2qfKq0ygMp+KnVkKxNlZ8m2YkIlVMiCnXUwl7qznBKSvQz3m3Pt6oQbXO5b5FixCh/fHxUQW/AEcK6zCNqKQnL9sywqmKuwvqSYzT/aPVNNpVyhvRW21aqciCsjdWvBwILUvh5VyCzbWoC1pJjJ680CWsl+udKB6T5RwG1mlohnlpbg47iz5U9ha0FGtmRLFYBtO99y97Ap0z+ZDTAog6kSLZsMHg/IFkkgp6CpvU2U0cYVSdnmkjwBdOmXbxTWNWzuIbipMioVxEckZEoahSOiy2M3K0jcC1LhVDwaqG0ZvkcWqCnrG4GIxykrqlbWdw6LQyBaZR8HmLRIhQWsHswD42ZXVLNkf9l+FlW0HVQ2lwFsC/Z1FdzlQR0KaPfo+Fdfu+/dwVRICu1CGR7AEIiAhc+AZUF0kOBaPxmUqg4i64vQnU4nFDYJ9Nz+1fVXveH9qmr+kPILx8oKcRV/BFbxbE0JMT0kSD4w6L/lNY8ocsqagVdU3A3MjxhxcGuqzsPH4irpaow1q6OyrVjvp9Npc59E91LldboYVzJWdimWfAW2SNEKcDaX2FmBLLA/uKxlmhh613Is1URQApbKfttwxL02q6Onx5pQxSbPojAg+v5hAnN6LHVRDXIsvKtRjiS0qJUyZTAXVbAK82ElFJWaQdVoqUC1Unt7BVaTQudM6SuqexjQJN4+0icaxv/utbKv83ETbT8H8gjcOKxOJmbUa6OOVXht3dFY6rHv9XoNzFLceEA1o8+pKm0LAHPHZ2rYKjFq0hfZFixsqHJgD3eD5n+U0kb1mFjXkn2lvMSSOsNE/CdIAKF0Sytq6urOHUN5gwg4GZosgbmggM5ucra2qrS2Ig1cbiBBcxYzgzUDNLCvL8GbZXNp6ORy3LmS+Kk83zRIAK6A1ioKa2I9NapIuiUFdfC9766PFZUtqUr6KbWk+zZU1a/ZrIXEztrjTOfz7hwKziCeXIaraHtbZIMz+2pGgazCmw4qWAFvEdhodYp0Xq0pV7G1YWYWbO4qhGq42+Z8BYtrLWvluNPpZAeaFFS1vubPgbgxsqcpnAaszBovKaFoDQ8BGtjfUOl4NAG2nmQV04feJgumvX2fsrQEWZghL0JnVdYkn3DOZIeRN86RqPWCmsvGVqEMRnwxQAxwS8EMYo3IzmY2+BCcLp4MKiuyuhImamlbZFcNoNl7tp+RHd18ZjQIRKyXdFRhN98/hyKqwXWNo7O1wiaXoHN108REZZWEq6grnIfjzeg8jdRf1XEL4kkXa5bBjKxoKaljBjeHlVxQ4GaycpW4lDOAKtnTxHAtOfzOtZwHAM7sqVXkV6yu6kap1nHkXKqWF/4XHqjenNKqBjpR3l1ch3Ejg1+EsgdQhsdG0B4FM9sWAVWpuAyiwTPleZxt9VyZVS2qXfReWqTAilpr9ApoWTjxymit7NwV4JTriZyOA9B0k7HFfULourmKYHVnRQvqGL5HMHdqFcR2qWpmcK6eTwx2dipWrviDilr+fKWq3OWRWdHKwA4eu8wjchbeRzFilqjjZN3ufCpfkJ0/scVpnYk6L0PI77lxdWCZ87WiWm7B/AGquQSnujGKsB8CJmiJq8q1pKIVWyqOiTK66r18BN8r74/AE71fdC3yPS2MxdOpnE1tlVxD9JmVOoggN+r4PjAXVFPa3Eg5jVJGFVUGNolH20GVrUB7BOySWq6WqYQdWR92pcFMYMwckbSgCKCqD67DiiWu1g8MQC9ByfcFqW1L+jL714qNCuznoSxt0da2gtWN1G8F0BK0NN0nuimelUF9dIdAfjO44UT3CjQLoUeLHJFTO3gmpRuIIOvwBQCbqNeo3qtZ9iF6xVK13GRlo4zqimq+CGdTiR1uRY8oqgE02hZBa79kZXPMquxRHKla2saZWN4mRqZUj0vLCKhkjKnqOQHNuSZVJoKvAqS1wpEquvWDC1B2ypwrCPsRMEPVTODMLJMDv6qeKXwi2JYV5Sq4qKyvgGsHCLiuj2jR59V8gMqSJ2FJZRXEHVRHj3sFPrct6OpqlW1GpatQdt0GvwfM6n63InsGVFhJGaBqgqqIV6IsXllZgySPq4R3bnt3wi5cv+cN2yqQLW1T95KYVsWWtKk4cB9W53WQQflQYR6Wl4HaJZjvVE0D5yvq+RKgZCs5qdBEP5sD94cAvQLlSgNaSMAtHx88BuNQ41zdFsX30zKbcs0MLD/ihkpQzl0wiTqKLTfbKmCmyYICnK0IbaieC4CG9iSyLQ7cIMGQwau6TKoq60Apl3WN40LZpca1CKKK9VQyyIEn8w0F8F6CL2h8o3ixGwC7s7EWzCOqmcApYxYD4jsAzVS0sl2t98pA7vrKophCVSonbYpgH6mvSn24pTBV4sdtV3BtMq5k82y+IADvUJ0uAlkCVTxIaPm+UNu/qkV4F1TzHXCGrXIAqItBKypqK99VtAOVs64O4ObX7pHLVCpYHcRmwvLR7TvYAKBBN58LGVzDuFz+hQbWgncQyCZAk+VbsPSouf93261iZgmfCpwRbAvqmSqriU2PwhjaoOyYqtIegVXViTsmyta6bGySpY3gyRrpIyAeaWDDxtpsXwKyalMDKNP7YBXMqEskUsi2uC8FNAPxAKTVfT1o6VzM0E0jF+1rWcUuHvdyg7vgoFplX8HpvHpMCOMRUPHzZkInsqlFKNX/EIO52E0SxSzOwob2VmRLW5D1XIU0rbgM1AzWgyC7fe8G7xUAK/taEBat7luqtyP7EmsaJQOj5F+mrnZfCuYCfBUAWwShyd6pMY/vAHG1UqOYpbI/gy5T0CMKm+UO3gFuC85dgfDVeguPDfITrIBLsLrcgdh3CFgFZjaKJ4Iv3F8ANEqvuxR1tVKOgLoCa1jxboBAkj6v7j/icFbA7f4rfRnQDLRViG13i0vqBQrYVqBbADZT0ZpiHoSzvQpopKIFS3sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.color-picker .cp-add-color-button-class{position:absolute;display:inline;padding:0;margin:3px -3px;border:0;cursor:pointer;background:transparent}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{cursor:not-allowed;color:#999}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{position:absolute;top:-5px;right:-5px;display:block;width:10px;height:10px;border-radius:50%;cursor:pointer;text-align:center;background:#fff;box-shadow:1px 1px 5px #333}.color-picker .cp-remove-color-button-class:before{content:"x";position:relative;bottom:3.5px;display:inline-block;font-size:10px}.color-picker .eyedropper-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);fill:#fff;mix-blend-mode:exclusion}\n'],encapsulation:2}),i})(),ube=(()=>{class i{constructor(e,n,r,o,a,s){this.injector=e,this.cfr=n,this.appRef=r,this.vcRef=o,this.elRef=a,this._service=s,this.dialogCreated=!1,this.ignoreChanges=!1,this.viewAttachedToAppRef=!1,this.cpWidth="230px",this.cpHeight="auto",this.cpToggle=!1,this.cpDisabled=!1,this.cpIgnoredElements=[],this.cpFallbackColor="",this.cpColorMode="color",this.cpCmykEnabled=!1,this.cpOutputFormat="auto",this.cpAlphaChannel="enabled",this.cpDisableInput=!1,this.cpDialogDisplay="popup",this.cpSaveClickOutside=!0,this.cpCloseClickOutside=!0,this.cpUseRootViewContainer=!1,this.cpPosition="auto",this.cpPositionOffset="0%",this.cpPositionRelativeToArrow=!1,this.cpOKButton=!1,this.cpOKButtonText="OK",this.cpOKButtonClass="cp-ok-button-class",this.cpCancelButton=!1,this.cpCancelButtonText="Cancel",this.cpCancelButtonClass="cp-cancel-button-class",this.cpEyeDropper=!1,this.cpPresetLabel="Preset colors",this.cpPresetColorsClass="cp-preset-colors-class",this.cpMaxPresetColorsLength=6,this.cpPresetEmptyMessage="No colors added",this.cpPresetEmptyMessageClass="preset-empty-message",this.cpAddColorButton=!1,this.cpAddColorButtonText="Add color",this.cpAddColorButtonClass="cp-add-color-button-class",this.cpRemoveColorButtonClass="cp-remove-color-button-class",this.cpInputChange=new Ae(!0),this.cpToggleChange=new Ae(!0),this.cpSliderChange=new Ae(!0),this.cpSliderDragEnd=new Ae(!0),this.cpSliderDragStart=new Ae(!0),this.colorPickerOpen=new Ae(!0),this.colorPickerClose=new Ae(!0),this.colorPickerCancel=new Ae(!0),this.colorPickerSelect=new Ae(!0),this.colorPickerChange=new Ae(!1),this.cpCmykColorChange=new Ae(!0),this.cpPresetColorsChange=new Ae(!0)}handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(e){this.inputChange(e)}ngOnDestroy(){null!=this.cmpRef&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(e){e.cpToggle&&!this.cpDisabled&&(e.cpToggle.currentValue?this.openDialog():e.cpToggle.currentValue||this.closeDialog()),e.colorPicker&&(this.dialog&&!this.ignoreChanges&&("inline"===this.cpDialogDisplay&&this.dialog.setInitialColor(e.colorPicker.currentValue),this.dialog.setColorFromString(e.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(e.cpPresetLabel||e.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&this.dialog.openDialog(this.colorPicker);else{let e=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay){const o=this.injector.get(this.appRef.componentTypes[0],Li.NULL);o!==Li.NULL?e=o.vcRef||o.viewContainerRef||this.vcRef:this.viewAttachedToAppRef=!0}const n=this.cfr.resolveComponentFactory(cbe);if(this.viewAttachedToAppRef)this.cmpRef=n.create(this.injector),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{const r=Li.create({providers:[],parent:e.injector});this.cmpRef=e.createComponent(n,0,r,[])}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpEyeDropper,this.elRef,this.cpExtraTemplate),this.dialog=this.cmpRef.instance,this.vcRef!==e&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&"popup"===this.cpDialogDisplay&&this.dialog.closeDialog()}cmykChanged(e){this.cpCmykColorChange.emit(e)}stateChanged(e){this.cpToggleChange.emit(e),e?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(e,n=!0){this.ignoreChanges=n,this.colorPickerChange.emit(e)}colorSelected(e){this.colorPickerSelect.emit(e)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){const e=this.elRef.nativeElement,n=this.cpIgnoredElements.filter(r=>r===e);!this.cpDisabled&&!n.length&&(typeof document<"u"&&e===document.activeElement?this.openDialog():this.dialog&&this.dialog.show?this.closeDialog():this.openDialog())}inputChange(e){this.dialog?this.dialog.setColorFromString(e.target.value,!0):(this.colorPicker=e.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(e){this.cpInputChange.emit(e)}sliderChanged(e){this.cpSliderChange.emit(e)}sliderDragEnd(e){this.cpSliderDragEnd.emit(e)}sliderDragStart(e){this.cpSliderDragStart.emit(e)}presetColorsChanged(e){this.cpPresetColorsChange.emit(e)}}return i.\u0275fac=function(e){return new(e||i)(U(Li),U(Jl),U(hd),U(Mr),U(Pt),U(sE))},i.\u0275dir=it({type:i,selectors:[["","colorPicker",""]],hostBindings:function(e,n){1&e&&N("click",function(){return n.handleClick()})("focus",function(){return n.handleFocus()})("input",function(o){return n.handleInput(o)})},inputs:{colorPicker:"colorPicker",cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpEyeDropper:"cpEyeDropper",cpPresetLabel:"cpPresetLabel",cpPresetColors:"cpPresetColors",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",cpExtraTemplate:"cpExtraTemplate"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[_i]}),i})(),uV=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[sE],imports:[ki]}),i})();function hbe(i,t){1&i&&(u(0,"div",6),H(1,"span",7),c()),2&i&&mt("data-target",g().popupId)}class qC extends ln{fgColor="#ffffff";constructor(){super()}ngOnInit(){super.ngOnInit(),this.field.value&&(this.fgColor=this.invertColor(this.field.value))}invertColor(t){if(0===t.indexOf("#")&&(t=t.slice(1)),3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),6!==t.length)throw new Error(`Invalid HEX color. [${t}]`);var e=(255-parseInt(t.slice(0,2),16)).toString(16),n=(255-parseInt(t.slice(2,4),16)).toString(16),r=(255-parseInt(t.slice(4,6),16)).toString(16);return"#"+this.padZero(e)+this.padZero(n)+this.padZero(r)}padZero(t,e=2){return(new Array(e).join("0")+t).slice(-e)}colorChanged(t){this.textChanged(t),this.fgColor=this.invertColor(t)}static \u0275fac=function(e){return new(e||qC)};static \u0275cmp=Be({type:qC,selectors:[["app-color-picker"]],features:[st],decls:6,vars:24,consts:[[3,"name","label","isRequired"],[1,"input-group"],[2,"width","120px",3,"name","id","ngModel","type","colorPicker","disabled","placeholder","ngModelChange","change","colorPickerChange","input","focus","blur"],["class","input-group-append","data-toggle","modal","style","cursor:pointer",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["data-toggle","modal",1,"input-group-append",2,"cursor","pointer"],[1,"input-group-text","fa","fa-question",2,"font-size","12pt","color","#A0A0A0"]],template:function(e,n){1&e&&(H(0,"app-form-field-label",0),u(1,"div",1)(2,"input",2),N("ngModelChange",function(o){return n.field.value=o})("change",function(o){return n.changed(o)})("colorPickerChange",function(o){return n.field.value=o})("colorPickerChange",function(o){return n.colorChanged(o)})("input",function(o){return n.textChanged(o)})("focus",function(o){return n.onFocus(o)})("blur",function(o){return n.onBlur(o)}),c(),w(3,hbe,2,1,"div",3),c(),H(4,"app-form-field-validation-section",4)(5,"app-form-field-help",5)),2&e&&(p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(2),Mn("color",n.fgColor)("background-color",n.field.isUserEditable?"white":"#EEEEEE")("background",n.field.value),gt("name",n.field.name),gt("id",n.field.name),gt("placeholder",n.field.watermark),p("ngModel",n.field.value)("type",n.inputType)("colorPicker",n.field.value)("disabled",!n.field.isUserEditable),h(1),p("ngIf",n.field.help),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Bn,vn,pn,ct,ube,Wn,qn,Gn]})}class KC extends ln{constructor(){super()}selected(){this.field?.childListMenuSelected&&this.field.childListMenuSelected(this.field)}static \u0275fac=function(e){return new(e||KC)};static \u0275cmp=Be({type:KC,selectors:[["app-child-list"]],features:[st],decls:8,vars:2,consts:[[1,"action",2,"cursor","pointer",3,"click"],[2,"display","flex"],[2,"flex-grow","1","cursor","pointer"],[2,"margin-bottom","0"],[2,"margin-left","10px"],[1,"fas","fa-chevron-right"]],template:function(e,n){1&e&&(u(0,"div",0),N("click",function(){return n.selected()}),u(1,"div",1)(2,"div",2)(3,"label"),m(4),c(),H(5,"hr",3),c(),u(6,"div",4),H(7,"i",5),c()()()),2&e&&(h(4),Gr(" ",n.field.label," (",n.field.value.length,") "))},styles:["label[_ngcontent-%COMP%]{cursor:pointer}"]})}const pbe=["linkPicker"];function fbe(i,t){if(1&i){const e=pe();u(0,"span",10),N("click",function(){return R(e),L(g().isEditorVisible=!0)}),H(1,"i",11),m(2," Edit "),c()}}function gbe(i,t){if(1&i){const e=pe();u(0,"span",10),N("click",function(){return R(e),L(g().showSharedContentModal())}),H(1,"i",12),m(2," Shared Content "),c()}}function mbe(i,t){if(1&i){const e=pe();u(0,"div",10),N("click",function(){return R(e),L(g().isEditorVisible=!1)}),H(1,"i",13),m(2," Done "),c()}}function _be(i,t){1&i&&(u(0,"h6"),m(1,"Linked Content - Ready Only"),c())}function vbe(i,t){if(1&i&&(u(0,"div",14),w(1,_be,2,0,"h6",15),H(2,"div",16),Qt(3,"preformattedHtml"),Qt(4,"async"),Qt(5,"sharedContent"),c()),2&i){const e=g();h(1),p("ngIf",e.field.value&&e.field.value.startsWith("sharedcontentid")),h(1),p("innerHtml",Xt(3,2,Xt(4,4,Xt(5,6,e.field.value))),Un)}}function ybe(i,t){if(1&i){const e=pe();u(0,"div",17),N("click",function(){return R(e),L(g().isEditorVisible=!0)}),u(1,"span",18),H(2,"i",11),m(3," Add "),c()()}}function bbe(i,t){if(1&i){const e=pe();u(0,"editor",19),N("ngModelChange",function(r){return R(e),L(g().field.value=r)}),c()}if(2&i){const e=g();p("init",e.getEditorOptions())("ngModel",e.field.value)}}function Cbe(i,t){if(1&i&&(u(0,"option",26),m(1),c()),2&i){const e=t.$implicit;p("value",e),h(1),Re(e)}}function wbe(i,t){if(1&i){const e=pe();u(0,"div",23)(1,"span"),m(2,"Category"),c(),u(3,"select",24),N("ngModelChange",function(r){return R(e),L(g(2).selectedCategory=r)})("change",function(){return R(e),L(g(2).filterByCategory())}),w(4,Cbe,2,2,"option",25),c()()}if(2&i){const e=g(2);h(3),p("ngModel",e.selectedCategory),h(1),p("ngForOf",e.categories)}}function Dbe(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",27)(2,"label",28),m(3,"Name"),c(),u(4,"input",29),N("ngModelChange",function(r){return R(e),L(g(2).linkName=r)}),c()(),u(5,"div",27)(6,"label",28),m(7,"Link"),c(),u(8,"input",30),N("ngModelChange",function(r){return R(e),L(g(2).linkUrl=r)}),c()(),u(9,"div",27)(10,"label",28),m(11,"Open in New Window"),c(),H(12,"br"),u(13,"input",31),N("ngModelChange",function(r){return R(e),L(g(2).openInNewTab=r)}),c()(),u(14,"div",27)(15,"label",28),m(16,"Add Tracking Link"),c(),H(17,"br"),u(18,"input",32),N("ngModelChange",function(r){return R(e),L(g(2).addTrackingLink=r)})("change",function(){return R(e),L(g(2).addTrackingLinkChanged())}),c()(),u(19,"div",33)(20,"button",34),N("click",function(){return R(e),L(g(2).insertLink())}),H(21,"i",35),m(22," Insert Link "),c()()()}if(2&i){const e=g(2);h(4),p("ngModel",e.linkName),h(4),p("ngModel",e.linkUrl),h(5),p("ngModel",e.openInNewTab),h(5),p("ngModel",e.addTrackingLink)}}function Mbe(i,t){if(1&i){const e=pe();u(0,"li",40)(1,"div",17),N("click",function(){const o=R(e).$implicit;return L(g(4).insertFaqLink(o))}),u(2,"h6"),m(3),c(),H(4,"span",41),c()()}if(2&i){const e=t.$implicit;h(3),Re(e.name),h(1),p("innerHTML",e.question,Un)}}function xbe(i,t){1&i&&(u(0,"li"),m(1,"No FAQs found"),c())}function kbe(i,t){if(1&i&&(u(0,"ol",38),w(1,Mbe,5,2,"li",39),w(2,xbe,2,0,"li",15),c()),2&i){const e=g(3);h(1),p("ngForOf",e.filtererdFaqs),h(1),p("ngIf",0===e.filtererdFaqs.length)}}function Tbe(i,t){if(1&i){const e=pe();u(0,"li",40)(1,"div",17),N("click",function(){const o=R(e).$implicit;return L(g(4).selectGlossary(o))}),u(2,"h6"),m(3),c(),H(4,"span",41),c()()}if(2&i){const e=t.$implicit;h(3),Re(e.name),h(1),p("innerHTML",e.description,Un)}}function Sbe(i,t){1&i&&(u(0,"li"),m(1,"No glossaries found"),c())}function Ebe(i,t){if(1&i&&(u(0,"ol",38),w(1,Tbe,5,2,"li",39),w(2,Sbe,2,0,"li",15),c()),2&i){const e=g(3);h(1),p("ngForOf",e.filteredGlossaries),h(1),p("ngIf",0===e.filteredGlossaries.length)}}function Abe(i,t){if(1&i){const e=pe();u(0,"li",40)(1,"div",17),N("click",function(){const o=R(e).$implicit;return L(g(4).insertGlossaryLink(o))}),u(2,"h6"),m(3),c(),H(4,"span",41),c()()}if(2&i){const e=t.$implicit;h(3),Re(e.name),h(1),p("innerHTML",e.definition,Un)}}function Ibe(i,t){1&i&&(u(0,"li"),m(1,"No terms found"),c())}function Fbe(i,t){if(1&i&&(u(0,"ol",38),w(1,Abe,5,2,"li",39),w(2,Ibe,2,0,"li",15),c()),2&i){const e=g(3);h(1),p("ngForOf",e.terms),h(1),p("ngIf",0===e.terms.length)}}function Pbe(i,t){if(1&i){const e=pe();u(0,"li",40)(1,"div",17),N("click",function(){const o=R(e).$implicit;return L(g(4).insertLandingPageLink(o))}),u(2,"h6"),m(3),c(),H(4,"span",41),c()()}if(2&i){const e=t.$implicit;h(3),Re(e.name),h(1),p("innerHTML",e.description,Un)}}function Rbe(i,t){1&i&&(u(0,"li"),m(1,"No landing pages found"),c())}function Lbe(i,t){if(1&i&&(u(0,"ol",38),w(1,Pbe,5,2,"li",39),w(2,Rbe,2,0,"li",15),c()),2&i){const e=g(3);h(1),p("ngForOf",e.filteredLandingPages),h(1),p("ngIf",0===e.filteredLandingPages.length)}}function Obe(i,t){if(1&i){const e=pe();u(0,"li",40)(1,"div",17),N("click",function(){const o=R(e).$implicit;return L(g(4).insertDownloadLink(o))}),u(2,"h6"),m(3),c(),H(4,"span",41),c()()}if(2&i){const e=t.$implicit;h(3),Re(e.name),h(1),p("innerHTML",e.description,Un)}}function Nbe(i,t){1&i&&(u(0,"li"),m(1,"No downloads found"),c())}function Bbe(i,t){if(1&i&&(u(0,"ol",38),w(1,Obe,5,2,"li",39),w(2,Nbe,2,0,"li",15),c()),2&i){const e=g(3);h(1),p("ngForOf",e.filteredDownloads),h(1),p("ngIf",0===e.filteredDownloads.length)}}function Vbe(i,t){if(1&i){const e=pe();u(0,"li",40)(1,"div",17),N("click",function(){const o=R(e).$implicit;return L(g(4).insertSiteContentLink(o))}),u(2,"h6"),m(3),c(),H(4,"span",41),c()()}if(2&i){const e=t.$implicit;h(3),Re(e.name),h(1),p("innerHTML",e.summary,Un)}}function Hbe(i,t){1&i&&(u(0,"li"),m(1,"No site content found"),c())}function Ybe(i,t){if(1&i&&(u(0,"ol",38),w(1,Vbe,5,2,"li",39),w(2,Hbe,2,0,"li",15),c()),2&i){const e=g(3);h(1),p("ngForOf",e.filteredSiteContentItems),h(1),p("ngIf",0===e.filteredSiteContentItems.length)}}function Ube(i,t){if(1&i&&(u(0,"div",36),w(1,kbe,3,2,"ol",37),w(2,Ebe,3,2,"ol",37),w(3,Fbe,3,2,"ol",37),w(4,Lbe,3,2,"ol",37),w(5,Bbe,3,2,"ol",37),w(6,Ybe,3,2,"ol",37),c()),2&i){const e=g(2);h(1),p("ngIf",e.filtererdFaqs&&e.filtererdFaqs.length>0),h(1),p("ngIf",e.filteredGlossaries&&e.filteredGlossaries.length>0&&!e.terms),h(1),p("ngIf",e.terms),h(1),p("ngIf",e.filteredLandingPages),h(1),p("ngIf",e.filteredDownloads&&e.filteredDownloads.length>0),h(1),p("ngIf",e.filteredSiteContentItems&&e.filteredSiteContentItems.length>0)}}function jbe(i,t){if(1&i&&(u(0,"div",20)(1,"h4"),m(2),c(),w(3,wbe,5,2,"div",21),H(4,"hr"),w(5,Dbe,23,4,"div",15),w(6,Ube,7,6,"div",22),c()),2&i){const e=g();h(2),Re(e.linkPickerName),h(1),p("ngIf",e.categories&&e.categories.length>0),h(2),p("ngIf",!e.pickingLink),h(1),p("ngIf",e.pickingLink)}}class ZC extends ln{modalService;cms;userService;siteContentService;glossaryService;businessService;sanitizer;faqs;glossaries;selectedGlossary;terms;landingPages;downloads;siteContentItems;filteredSiteContentItems;filtererdFaqs;filteredGlossaries;filteredLandingPages;filteredDownloads;linkPickerName;linkType;linkName;baseLinkUrl;linkUrl;addTrackingLink=!1;pickingLink=!1;openInNewTab=!0;linkPickerModal;currentModal;isEditorVisible=!1;selectedCategory;editor;orgNs;categories;constructor(t,e,n,r,o,a,s){super(),this.modalService=t,this.cms=e,this.userService=n,this.siteContentService=r,this.glossaryService=o,this.businessService=a,this.sanitizer=s}ngOnInit(){var t=()=>super.ngOnInit,e=this;return z(function*(){t().call(e);let n=yield e.userService.getCurrentOrg();e.orgNs=n.namespace,e.isEditorVisible=e.field.openByDefault})()}getEditorOptions(){let t=[];if(this.field.tags)for(let e of this.field.tags)t.push({title:e.title,value:e.tag});return{plugins:"lists link image table code help wordcount fullscreen autoresize charmap emoticons media mergetags",toolbar:"fullscreen undo redo | blocks fontfamily fontsize | bold italic underline strikethrough | link image media table mergetags | align lineheight | tinycomments | checklist numlist bullist indent outdent | emoticons charmap | removeforma",mergetags_list:t,mergetags_suffix:"]",mergetags_prefix:"[",min_height:400,menubar:"file edit view inert format tools table help custom",menu:{custom:{title:"Insert NuvIoT Objects",items:"sharedContent faqItem glossaryItem landingPageItem downloadableContentItem siteContentItem"}},setup:e=>{this.editor=e,e.ui.registry.addMenuItem("faqItem",{text:"Frequently Asked Question",onAction:()=>{this.showLinkPicker("faqs")}}),e.ui.registry.addMenuItem("glossaryItem",{text:"Glossary Term",onAction:()=>{this.showLinkPicker("glossaries")}}),e.ui.registry.addMenuItem("landingPageItem",{text:"Landing Page",onAction:()=>{this.showLinkPicker("landingPages")}}),e.ui.registry.addMenuItem("downloadableContentItem",{text:"Downloadable Content",onAction:()=>{this.showLinkPicker("downloads")}}),e.ui.registry.addMenuItem("siteContentItem",{text:"Site Content",onAction:()=>{this.showLinkPicker("siteContent")}})},branding:!1}}isStringEmpty(t){return null==t.value||!t.value||0==t.value.length}addLink(t,e){var n=window.location.hostname;n="localhost"==n?n="dev.nuviot.com":n,this.linkName=e,this.baseLinkUrl=`https://${n}${t}`,this.addTrackingLink=!0,this.linkUrl=`${this.baseLinkUrl}?m=~internalEmailId~`,this.pickingLink=!1}addTrackingLinkChanged(){this.linkUrl=this.addTrackingLink?`${this.baseLinkUrl}?m=~internalEmailId~`:this.baseLinkUrl}insertLink(){this.editor.execCommand("mceInsertContent",!1,`${this.linkName}`),this.currentModal.close()}insertProductLink(t){this.addLink(`/public/${this.orgNs}/product/${t.key}`,t.name)}insertProductPage(t){this.addLink(`/public/${this.orgNs}/product/${t.key}`,t.name)}insertFaqLink(t){this.addLink(`/public/${this.orgNs}/faq/${t.key}`,t.name)}insertGlossaryLink(t){this.addLink(`/public/${this.orgNs}/glossary/${this.selectedGlossary.key}/term/${t.key}`,t.name)}insertLandingPageLink(t){this.addLink(`/lp/${this.orgNs}/${t.key}`,t.name)}insertDownloadLink(t){this.addLink(`${this.orgNs}/${t.key}/download`,t.name)}insertSiteContentLink(t){this.addLink(`/public/${this.orgNs}/content/${t.categoryId}/${t.key}`,t.name)}showLinkPicker(t){var e=this;return z(function*(){switch(e.faqs=void 0,e.glossaries=void 0,e.landingPages=void 0,e.downloads=void 0,e.terms=void 0,e.siteContentItems=void 0,e.filteredSiteContentItems=void 0,e.filteredDownloads=void 0,e.filteredLandingPages=void 0,e.filtererdFaqs=void 0,e.filteredGlossaries=void 0,e.pickingLink=!0,e.currentModal=e.modalService.open(e.linkPickerModal,{size:"lg",beforeDismiss:()=>!0}),t){case"faqs":e.faqs=(yield e.cms.getFrequentlyAskedQuestions()).model,e.filtererdFaqs=Object.assign([],e.faqs),e.categories=e.faqs.filter(n=>n.category).map(n=>n.category).filter((n,r,o)=>o.indexOf(n)===r),e.categories.sort(),e.linkPickerName="FAQ Picker";break;case"product":e.linkPickerName="Product Picker";break;case"productpage":e.linkPickerName="Product Page Picker";break;case"glossaries":e.glossaries=(yield e.glossaryService.getGlossaries()).model,1==e.glossaries.length?yield e.selectGlossary(e.glossaries[0]):e.filteredGlossaries=Object.assign([],e.glossaries),e.categories=[],e.linkPickerName="Glossary Picker";break;case"landingPages":e.landingPages=(yield e.businessService.getLandingPages()).model,e.filteredLandingPages=Object.assign([],e.landingPages),e.categories=e.landingPages.filter(n=>n.category).map(n=>n.category).filter((n,r,o)=>o.indexOf(n)===r),e.categories.sort(),e.linkPickerName="Landing Page Picker";break;case"downloads":e.downloads=(yield e.cms.getContentDownloads()).model,e.filteredDownloads=Object.assign([],e.downloads),e.categories=e.downloads.filter(n=>n.category).map(n=>n.category).filter((n,r,o)=>o.indexOf(n)===r),e.categories.sort(),e.linkPickerName="Downloadable Content Picker";break;case"siteContent":e.siteContentItems=(yield e.siteContentService.getAllSiteContent()).model,e.filteredSiteContentItems=Object.assign([],e.siteContentItems),e.categories=e.siteContentItems.filter(n=>n.category).map(n=>n.category).filter((n,r,o)=>o.indexOf(n)===r),e.categories.sort(),e.linkPickerName="Site Content Picker"}e.linkType=t,e.selectedCategory="All",e.categories.length>0&&(e.categories.unshift("Uncategorized"),e.categories.unshift(e.selectedCategory))})()}selectGlossary(t){var e=this;return z(function*(){e.selectedGlossary=t;let n=yield e.glossaryService.getGlossary(t.id);e.terms=n.model.definitions,e.terms.sort((r,o)=>r.name.localeCompare(o.name))})()}filterByCategory(){switch(this.linkType){case"faqs":this.filtererdFaqs=this.faqs.filter(t=>t.category===this.selectedCategory||"All"===this.selectedCategory);break;case"landingPages":this.filteredLandingPages=this.landingPages.filter(t=>t.category===this.selectedCategory||"All"===this.selectedCategory);break;case"downloads":this.filteredDownloads=this.downloads.filter(t=>t.category===this.selectedCategory||"All"===this.selectedCategory)}}showSharedContentModal(){this.modalService.open(Vf,{size:"lg",beforeDismiss:()=>!0}).componentInstance.field=this.field}aiContentEdit(){const t=this.modalService.open(gv,{size:"lg",beforeDismiss:()=>!0}).componentInstance;t.sourceContent=this.field.value,t.htmlContent=!0,t.form=this.form,t.request=this.field.aiChatPrompt,t.onApplyContent.subscribe(e=>{this.field.value=e})}transformHTML(t,e){let n="";return e&&e.length>=0&&(n=e),t&&0!==t.length?this.sanitizer.bypassSecurityTrustHtml(t):n}static \u0275fac=function(e){return new(e||ZC)(U(zn),U(kc),U($n),U(Aa),U(yc),U(la),U(Ps))};static \u0275cmp=Be({type:ZC,selectors:[["app-html-editor"]],viewQuery:function(e,n){if(1&e&&un(pbe,5),2&e){let r;pt(r=ft())&&(n.linkPickerModal=r.first)}},inputs:{isEditorVisible:"isEditorVisible"},features:[st],decls:13,vars:16,consts:[[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired","aiButton","ai"],["class","action",3,"click",4,"ngIf"],["class","html-preview",4,"ngIf"],[3,"click",4,"ngIf"],["apiKey","kjvrmckj7e2u9yuxwg3akvfp3rkybse6455b25ja0liuef9o",3,"init","ngModel","ngModelChange",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],["id","linkPicker","class","modal","tabindex","-1"],["linkPicker",""],[1,"action",3,"click"],[1,"fa","fas","fa-pencil-alt"],[1,"fa","fas","fa-copy"],[1,"fa","fas","fas","fa-arrow-left"],[1,"html-preview"],[4,"ngIf"],[3,"innerHtml"],[3,"click"],[1,"action"],["apiKey","kjvrmckj7e2u9yuxwg3akvfp3rkybse6455b25ja0liuef9o",3,"init","ngModel","ngModelChange"],[2,"margin","20px"],["style","margin-bottom: 10px;",4,"ngIf"],["style","max-height: 600px;overflow-y: auto;",4,"ngIf"],[2,"margin-bottom","10px"],[1,"form-select",3,"ngModel","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"form-group"],["for","linkType"],["type","text","id","linkName","placeholder","Enter Name",1,"form-control",3,"ngModel","ngModelChange"],["type","text","id","linkType","placeholder","Enter URL or select from below",1,"form-control",3,"ngModel","ngModelChange"],["type","checkbox","id","openInNewTab",1,"form-check-input",3,"ngModel","ngModelChange"],["type","checkbox","id","addTrackingLink",1,"form-check-input",3,"ngModel","ngModelChange","change"],[2,"text-align","right"],[1,"btn","btn-primary",3,"click"],[1,"fa","fas","fa-link"],[2,"max-height","600px","overflow-y","auto"],["class","list-group",4,"ngIf"],[1,"list-group"],["class","list-group-item",4,"ngFor","ngForOf"],[1,"list-group-item"],[3,"innerHTML"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1)(2,"app-form-field-label",2),N("ai",function(){return n.aiContentEdit()}),c()(),u(3,"div"),w(4,fbe,3,0,"span",3),w(5,gbe,3,0,"span",3),c(),w(6,mbe,3,0,"div",3),c(),w(7,vbe,6,8,"div",4),w(8,ybe,4,0,"div",5),w(9,bbe,1,2,"editor",6),H(10,"app-form-field-validation-section",7),w(11,jbe,7,4,"ng-template",8,9,Vo)),2&e&&(h(2),p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired)("aiButton",!0),h(2),p("ngIf",!n.isEditorVisible&&n.field.value&&n.field.value.length>0),h(1),p("ngIf",n.field.sharedContentKey),h(1),p("ngIf",n.isEditorVisible),h(1),p("ngIf",!n.isEditorVisible&&n.field.value),h(1),p("ngIf",n.isStringEmpty(n.field)&&!n.isEditorVisible),h(1),p("ngIf",n.isEditorVisible),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors))},dependencies:[oo,ao,Bn,yl,Nr,vn,pn,jt,ct,Rd,qn,Gn,U0,kf,kd],styles:[".html-preview[_ngcontent-%COMP%]{-webkit-box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);-webkit-box-shadow-box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);background-color:var(--color-bg);border-radius:4px;padding:10px;border-color:gray;width:100%}"]})}function $be(i,t){if(1&i){const e=pe();u(0,"span",11),N("click",function(){return R(e),L(g(3).addChildItem())}),H(1,"i",12),m(2,"Add"),c()}}function zbe(i,t){1&i&&H(0,"i",13),2&i&&mt("data-target",g(3).popupId)}function Wbe(i,t){if(1&i){const e=pe();u(0,"i",14),N("click",function(){return R(e),L(g(3).expanded=!0)}),c()}}function Gbe(i,t){if(1&i){const e=pe();u(0,"i",15),N("click",function(){return R(e),L(g(3).expanded=!1)}),c()}}function qbe(i,t){if(1&i&&(u(0,"div"),w(1,$be,3,0,"span",7),w(2,zbe,1,1,"i",8),w(3,Wbe,1,0,"i",9),w(4,Gbe,1,0,"i",10),c()),2&i){const e=g(2);h(1),p("ngIf",e.field.allowAddChild&&e.field.canAddRows),h(1),p("ngIf",e.field.help),h(1),p("ngIf",!e.expanded),h(1),p("ngIf",e.expanded)}}function Kbe(i,t){if(1&i&&(u(0,"div",5)(1,"div",6)(2,"label"),m(3),c()(),w(4,qbe,5,4,"div",2),c()),2&i){const e=g();h(3),Gr(" ",e.field.label," (",e.field.value.length,")"),h(1),p("ngIf",!e.editForm)}}function Zbe(i,t){if(1&i&&(u(0,"td",6),m(1),c()),2&i){const e=t.$implicit;h(1),Ke(" ",e," ")}}function Qbe(i,t){if(1&i){const e=pe();u(0,"i",25),N("click",function(r){R(e);const o=g().$implicit;return g(2).removeClick(o),L(r.stopPropagation())}),c()}}function Xbe(i,t){1&i&&(u(0,"i",26),m(1,"\xa0\xa0\xa0\xa0"),c())}function Jbe(i,t){if(1&i){const e=pe();u(0,"i",27),N("click",function(r){R(e);const o=g().$implicit;return g(2).moveDown(o),L(r.stopPropagation())}),c()}}function eCe(i,t){if(1&i){const e=pe();u(0,"i",28),N("click",function(r){R(e);const o=g().$implicit;return g(2).moveUp(o),L(r.stopPropagation())}),c()}}function tCe(i,t){if(1&i){const e=pe();u(0,"tr",18),N("click",function(){const o=R(e).$implicit;return L(g(2).selected(o))}),w(1,Zbe,2,1,"td",19),u(2,"td",20),w(3,Qbe,1,0,"i",21),w(4,Xbe,2,0,"i",22),w(5,Jbe,1,0,"i",23),w(6,eCe,1,0,"i",24),c()()}if(2&i){const e=t.$implicit,n=t.index,r=g(2);p("title",r.getItemKey(e,"key: ")),h(1),p("ngForOf",r.getDisplayValues(e,r.field)),h(2),p("ngIf",r.showRemove&&r.field.allowAddChild&&r.field.canAddRows),h(1),p("ngIf",r.field.value.length==n+1),h(1),p("ngIf",n0)}}function nCe(i,t){if(1&i&&(u(0,"div")(1,"table",16),w(2,tCe,7,6,"tr",17),c()()),2&i){const e=g();h(2),p("ngForOf",e.field.value)}}function iCe(i,t){if(1&i){const e=pe();u(0,"div",29)(1,"app-form",30),N("propertyChanged",function(r){return R(e),L(g().childFormPropertyChanged(r))})("cancel",function(){return R(e),L(g().editForm=void 0)})("saved",function(){return R(e),L(g().childSaved())}),c()()}if(2&i){const e=g();h(1),p("autoSave",!0)("inPlaceEditing",!0)("form",e.editForm)("isChildForm",!0)}}class QC extends ln{nuviotClient;modalComponent;showRemove=!0;expanded;editForm;ngOnInit(){super.ngOnInit(),this.expanded=this.field.openByDefault}constructor(t,e){super(),this.nuviotClient=t,this.modalComponent=e}addChildItem(){var t=this;return z(function*(){if(!t.field.saveBeforeRaisingEvent||(yield t.host.saveForm(!1)))if("ChildListInlinePicker"===t.field.fieldType&&t.field.entityHeaderPickerUrl){const e=t.modalComponent.open(_t,{size:"lg"}).componentInstance;e.pickerType=t.field.name,e.entityHeaderPickerUrl=t.field.entityHeaderPickerUrl,e.title=`Select ${t.field.label}`,e.model=t.model,e.view=t.view,e.itemSelected.subscribe(n=>{t.field.value||(t.field.value=[]),t.field.value.find(o=>o.id===n.id)?alert("Your selected item is already included and can not be added twice."):(t.field.value.push(n),t.isDirty=!0,t.field.isDirty=!0,t.field.propertyChanged?.(t.field))})}else if("ChildListInlinePicker"===t.field.fieldType&&t.field.pickerFor){const e=t.modalComponent.open(dv,{size:"lg"}).componentInstance;e.pickerFor=t.field.pickerFor,e.title=`Select ${t.field.label}`,e.model=t.model,e.view=t.view,e.itemsSelected.subscribe(n=>{for(let r of n){let o=!1;t.field.value||(t.field.value=[]),t.field.value.find(s=>s.id===r.id)?alert("Your selected item is already included and can not be added twice."):(t.field.value.push(r),o=!0,t.isDirty=!0,t.field.isDirty=!0,t.field.propertyChanged?.(t.field))}})}else if(t.field.factoryUrl){let e=t.field.factoryUrl.replace("{id}",t.model.id),n=yield t.nuviotClient.getFormResponse(e);n.autoSave=!1,n.parent=t.form,n.formInlineFields&&(n.formFields=n.formInlineFields,n.formFieldsCol2=void 0),t.field.childFormAdded?.(n),t.field.addChildItem?t.field.addChildItem(n):t.field.inPlaceEditing&&(t.editForm=n)}else t.field.addChildItem?.({resultId:"childitem",successful:!0,model:{},saveDraft:!0,autoSave:!0,autoSaveIntervalSections:30,formFields:t.field.formFields,conditionalFields:t.field.conditionalFields,modelHelp:t.field.modelHelp,modelTitle:t.field.modelTitle,modelName:t.field.modelName,view:t.field.view,isEditing:!1,parent:t.form})})()}childFormPropertyChanged(t){console.log("child form property changed",t),this.isDirty=!0,this.field.isDirty=!0,this.field.propertyChanged?.(this.field)}getItemKey(t,e){return e?`${e}${t.key}`:t.key}moveUp(t){if(this.field.value){let e=this.field.value.indexOf(t);e>0&&(this.field.value[e]=this.field.value[e-1],this.field.value[e-1]=t,this.field.isDirty=!0,this.field.propertyChanged?.(this.field))}}moveDown(t){if(this.field.value){let e=this.field.value.indexOf(t);e${t.name??t.text} will be PERMANENTLY removed.`,n.contentIsHtml=!0,n.confirmationResult.subscribe(function(){var r=z(function*(o){if(o){let a=e.field.value.indexOf(t);a>=0&&(e.isDirty=!0,e.field.isDirty=!0,e.field.value.splice(a,1),e.field.propertyChanged?.(e.field),e.field.childItemRemoved?.(e.form))}});return function(o){return r.apply(this,arguments)}}())}childSaved(){if(this.editForm.isEditing)this.field.value.find(e=>e.id===this.editForm.model.id).name=this.editForm.model.name;else if(this.field.isReferenceField){let t=this.editForm.model;this.field.value.push({id:t.id,text:t.name})}else this.field.value.push(this.editForm.model);this.isDirty=!0,this.field.isDirty=!0,this.field.childItemSaved?.(this.editForm),this.field.propertyChanged?.(this.field),this.editForm=void 0}selected(t){var e=this;return z(function*(){if(e.field.getUrl&&e.field.isReferenceField){let n=e.field.getUrl.replace("{id}",t.id);const r=yield e.nuviotClient.getFormResponse(n);if(e.field.childItemSelected){if(e.field.saveBeforeRaisingEvent&&!(yield e.host.saveForm(!1)))return;e.field.childItemSelected(r,t)}else e.field.inPlaceEditing&&(r.formInlineFields&&(r.formFields=r.formInlineFields,r.formFieldsCol2=void 0),e.editForm=r)}else if(e.field.factoryUrl){let n=e.field.factoryUrl.replace("{id}",e.model.id);const r=yield e.nuviotClient.getFormResponse(n);if(r.model=t,r.parent=e.form,r.isEditing=!0,e.field.childFormEditing?.(r),e.field.childItemSelected){if(e.field.saveBeforeRaisingEvent&&!(yield e.host.saveForm(!1)))return;e.field.childItemSelected?.(r,t)}else e.field.inPlaceEditing&&console.log(`settting edit form for ${r.modelName}`),e.editForm=r}else e.field?.childItemSelected&&e.field.childItemSelected({resultId:"childitem",successful:!0,model:t,saveDraft:!0,autoSave:!0,autoSaveIntervalSections:30,formFields:e.field.formFields,conditionalFields:e.field.conditionalFields,modelHelp:e.field.modelHelp,modelTitle:e.field.modelTitle,modelName:e.field.modelName,view:e.field.view,parent:e.form,isEditing:!0},t)})()}getDisplayValues(t,e){if(e.childItemName)return[t[e.childItemName]];if(e.childListDisplayMembers){let n=[],r=e.childListDisplayMembers;for(let o of r){let a=o.split(".");if(t){let s=t;for(let l of a)l=l.trim(),s&&("Text"==l&&(l="text"),s=s[l]);n.push(s)}}return n}if(e.childListDisplayMember){let n=e.childListDisplayMember.split(".");for(let r of n)if(!(t=t[r]))return["-"];return[t]}return[t.name??t.text]}static \u0275fac=function(e){return new(e||QC)(U(An),U(zn))};static \u0275cmp=Be({type:QC,selectors:[["app-child-list-inline"]],features:[st],decls:5,vars:4,consts:[[1,"panel"],["style","display:flex;padding:10px",4,"ngIf"],[4,"ngIf"],["class","sub-form",4,"ngIf"],[3,"field"],[2,"display","flex","padding","10px"],[2,"flex-grow","1"],["class","action",3,"click",4,"ngIf"],["data-toggle","modal","class","fas fa-question action",4,"ngIf"],["class","fa-regular fa-square-chevron-down action",3,"click",4,"ngIf"],["class","fa-regular fa-square-chevron-up action",3,"click",4,"ngIf"],[1,"action",3,"click"],[1,"fas","fa-plus"],["data-toggle","modal",1,"fas","fa-question","action"],[1,"fa-regular","fa-square-chevron-down","action",3,"click"],[1,"fa-regular","fa-square-chevron-up","action",3,"click"],[1,"table"],[3,"title","click",4,"ngFor","ngForOf"],[3,"title","click"],["style","flex-grow: 1;",4,"ngFor","ngForOf"],["width","130"],["class","fa fa-trash action-danger",3,"click",4,"ngIf"],["class","action",4,"ngIf"],["class","far fa-chevron-down action",3,"click",4,"ngIf"],["class","far fa-chevron-up action",3,"click",4,"ngIf"],[1,"fa","fa-trash","action-danger",3,"click"],[1,"action"],[1,"far","fa-chevron-down","action",3,"click"],[1,"far","fa-chevron-up","action",3,"click"],[1,"sub-form"],[3,"autoSave","inPlaceEditing","form","isChildForm","propertyChanged","cancel","saved"]],template:function(e,n){1&e&&(u(0,"div",0),w(1,Kbe,5,3,"div",1),w(2,nCe,3,1,"div",2),w(3,iCe,2,4,"div",3),c(),H(4,"app-form-field-help",4)),2&e&&(h(1),p("ngIf",!n.editForm),h(1),p("ngIf",(null==n.field?null:n.field.value)&&!n.editForm&&n.expanded),h(1),p("ngIf",n.editForm),h(1),p("field",n.field))},dependencies:[jt,ct,Wn,Al],styles:[".section-header[_ngcontent-%COMP%]{font-size:20pt;margin:14pt}.section-header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{float:right}ol[_ngcontent-%COMP%]{list-style:none;color:var(--color-fg);padding:0;margin:0}li[_ngcontent-%COMP%]{padding-top:14px;padding-bottom:14px;padding-left:10px;border-bottom:1px solid var(--color-gray-80);font-size:12pt}li[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{float:right;margin-right:14px;vertical-align:middle}li[_ngcontent-%COMP%]:hover{background-color:var(--color-bg-menu-active);color:var(--color-fg-panel-header-active);cursor:pointer}.panel[_ngcontent-%COMP%]{background-color:var(--color-bg-panel);border:1px solid var(--color-border-panel);border-radius:8px;-webkit-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19);-webkit-box-shadow-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19)}tr[_ngcontent-%COMP%]{border-bottom:1px solid var(--color-border-panel);color:var(--color-fg)}tr[_ngcontent-%COMP%]:hover{background-color:var(--color-bg-menu-active);color:var(--color-fg-panel-header-active);cursor:pointer}td[_ngcontent-%COMP%]:first-child{padding-left:14px}"]})}function rCe(i,t){if(1&i){const e=pe();u(0,"input",8),N("ngModelChange",function(r){return R(e),L(g().field.value=r)})("change",function(r){return R(e),L(g().changed(r))})("input",function(r){return R(e),L(g().textChanged(r))})("focus",function(r){return R(e),L(g().onFocus(r))})("blur",function(r){return R(e),L(g().onBlur(r))}),c()}if(2&i){const e=g();Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.field.value)("type",e.inputType)("disabled",!e.field.isUserEditable)}}function oCe(i,t){if(1&i){const e=pe();u(0,"textarea",9),N("ngModelChange",function(r){return R(e),L(g().field.value=r)})("change",function(r){return R(e),L(g().changed(r))})("input",function(r){return R(e),L(g().textChanged(r))})("focus",function(r){return R(e),L(g().onFocus(r))})("blur",function(r){return R(e),L(g().onBlur(r))}),m(1," "),c()}if(2&i){const e=g();Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.field.value)("disabled",!e.field.isUserEditable)}}function aCe(i,t){if(1&i){const e=pe();u(0,"span",10)(1,"i",11),N("click",function(r){return R(e),g().showSecret(),L(r.stopPropagation())}),c()()}}function sCe(i,t){if(1&i){const e=pe();u(0,"span",10)(1,"i",12),N("click",function(r){return R(e),g().copySecret(),L(r.stopPropagation())}),c()()}}function lCe(i,t){1&i&&(u(0,"span",13),H(1,"i",14),c()),2&i&&mt("data-target",g().popupId)}class XC extends ln{deploymentService;constructor(t){super(),this.deploymentService=t}copyToClipboard(t){const e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e);const n=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);e.select(),document.execCommand("copy"),document.body.removeChild(e),n&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n))}ngOnInit(){super.ngOnInit()}showSecret(){var t=this;return z(function*(){let e=yield t.deploymentService.GetSecret(t.model[t.field.secureIdFieldName]);e.successful&&(t.field.value=e.result)})()}copySecret(){var t=this;return z(function*(){let e=yield t.deploymentService.GetSecret(t.model[t.field.secureIdFieldName]);e.successful&&(t.copyToClipboard(e.result),alert("Copied to clipboard"))})()}static \u0275fac=function(e){return new(e||XC)(U(lh))};static \u0275cmp=Be({type:XC,selectors:[["app-password-field"]],features:[st],decls:9,vars:15,consts:[[3,"name","label","isRequired"],[1,"input-group"],["class","form-control",3,"name","id","ngModel","type","disabled","background-color","placeholder","ngModelChange","change","input","focus","blur",4,"ngIf"],["rows","8","class","form-control",3,"name","id","ngModel","disabled","background-color","placeholder","ngModelChange","change","input","focus","blur",4,"ngIf"],["class","input-group-text","style","color:#A0A0A0",4,"ngIf"],["class","input-group-text","data-toggle","modal","data-toggle","modal","style","cursor:pointer;color:#A0A0A0",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],[1,"form-control",3,"name","id","ngModel","type","disabled","placeholder","ngModelChange","change","input","focus","blur"],["rows","8",1,"form-control",3,"name","id","ngModel","disabled","placeholder","ngModelChange","change","input","focus","blur"],[1,"input-group-text",2,"color","#A0A0A0"],["aria-hidden","true",1,"fa","fa-eye",3,"click"],["aria-hidden","true",1,"fa","fa-copy",3,"click"],["data-toggle","modal","data-toggle","modal",1,"input-group-text",2,"cursor","pointer","color","#A0A0A0"],[1,"fa","fa-question"]],template:function(e,n){1&e&&(H(0,"app-form-field-label",0),u(1,"div",1),w(2,rCe,1,8,"input",2),w(3,oCe,2,7,"textarea",3),w(4,aCe,2,0,"span",4),w(5,sCe,2,0,"span",4),w(6,lCe,2,1,"span",5),c(),H(7,"app-form-field-validation-section",6)(8,"app-form-field-help",7)),2&e&&(p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(2),p("ngIf","Secret"==n.field.fieldType||"Password"==n.field.fieldType),h(1),p("ngIf","SecureCertificate"==n.field.fieldType),h(1),p("ngIf",n.model[n.field.secureIdFieldName]),h(1),p("ngIf",n.field.value),h(1),p("ngIf",n.field.help),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Bn,vn,pn,ct,Wn,qn,Gn]})}function cCe(i,t){1&i&&H(0,"i",7),2&i&&mt("data-target",g().popupId)}function dCe(i,t){if(1&i){const e=pe();u(0,"i",8),N("click",function(){return R(e),L(g().expanded=!0)}),c()}}function uCe(i,t){if(1&i){const e=pe();u(0,"i",9),N("click",function(){return R(e),L(g().expanded=!1)}),c()}}function hCe(i,t){1&i&&(u(0,"i",16),m(1,"\xa0\xa0\xa0\xa0"),c())}function pCe(i,t){if(1&i){const e=pe();u(0,"i",17),N("click",function(r){R(e);const o=g().$implicit;return g(2).moveDown(o),L(r.stopPropagation())}),c()}}function fCe(i,t){if(1&i){const e=pe();u(0,"i",18),N("click",function(r){R(e);const o=g().$implicit;return g(2).moveUp(o),L(r.stopPropagation())}),c()}}function gCe(i,t){if(1&i){const e=pe();u(0,"li",11),m(1),u(2,"i",12),N("click",function(r){const a=R(e).$implicit;return g(2).removeClick(a),L(r.stopPropagation())}),c(),w(3,hCe,2,0,"i",13),w(4,pCe,1,0,"i",14),w(5,fCe,1,0,"i",15),c()}if(2&i){const e=t.$implicit,n=t.index,r=g(2);p("title",r.getItemKey(e,"key: ")),h(1),Ke(" ",e.text," "),h(2),p("ngIf",r.field.value.length==n+1),h(1),p("ngIf",n0)}}function mCe(i,t){if(1&i&&(u(0,"div")(1,"ol"),w(2,gCe,6,5,"li",10),c()()),2&i){const e=g();h(2),p("ngForOf",e.field.value)}}class JC extends ln{modalService;modalComponent;expanded=!1;constructor(t,e){super(),this.modalService=t,this.modalComponent=e}ngOnInit(){null==this.field.value&&(this.field.value=[])}selected(){this.field?.childListMenuSelected&&this.field.childListMenuSelected(this.field)}addProduct(){const t=this.modalService.open(_t,{size:"lg"}).componentInstance;t.pickerType="product",t.entityHeaderPickerUrl=this.field.entityHeaderPickerUrl,t.factoryUrl=this.field.factoryUrl,t.title=`Select ${this.field.label}`,t.model=this.model,t.view=this.view,t.itemSelected.subscribe(e=>{null==this.field.value&&(this.field.value=[]),this.field.value.push(e)})}getItemKey(t,e){return e?`${e}${t.key}`:t.key}moveUp(t){if(this.field.value){let e=this.field.value.indexOf(t);e>0&&(this.field.value[e]=this.field.value[e-1],this.field.value[e-1]=t)}}moveDown(t){if(this.field.value){let e=this.field.value.indexOf(t);e${t.name??t.text} will be PERMANENTLY removed.`,n.contentIsHtml=!0,n.confirmationResult.subscribe(function(){var r=z(function*(o){if(o){let a=e.field.value.indexOf(t);a>=0&&(e.field.value.splice(a,1),e.field.propertyChanged&&e.field.propertyChanged(e.field))}});return function(o){return r.apply(this,arguments)}}())}static \u0275fac=function(e){return new(e||JC)(U(zn),U(zn))};static \u0275cmp=Be({type:JC,selectors:[["app-product-picker-list"]],features:[st],decls:11,vars:6,consts:[[2,"display","flex"],[2,"flex-grow","1"],[1,"fas","fa-plus","action",3,"click"],["data-toggle","modal","class","fas fa-question action",4,"ngIf"],["class","fa-regular fa-square-chevron-down action",3,"click",4,"ngIf"],["class","fa-regular fa-square-chevron-up action",3,"click",4,"ngIf"],[4,"ngIf"],["data-toggle","modal",1,"fas","fa-question","action"],[1,"fa-regular","fa-square-chevron-down","action",3,"click"],[1,"fa-regular","fa-square-chevron-up","action",3,"click"],[3,"title",4,"ngFor","ngForOf"],[3,"title"],[1,"fa","fa-trash","action-danger",3,"click"],["class","action",4,"ngIf"],["class","far fa-chevron-down action",3,"click",4,"ngIf"],["class","far fa-chevron-up action",3,"click",4,"ngIf"],[1,"action"],[1,"far","fa-chevron-down","action",3,"click"],[1,"far","fa-chevron-up","action",3,"click"]],template:function(e,n){1&e&&(u(0,"div")(1,"div",0)(2,"div",1)(3,"label"),m(4),c()(),u(5,"div")(6,"i",2),N("click",function(){return n.addProduct()}),c(),w(7,cCe,1,1,"i",3),w(8,dCe,1,0,"i",4),w(9,uCe,1,0,"i",5),c()(),w(10,mCe,3,1,"div",6),c()),2&e&&(h(4),Gr(" ",n.field.label," (",n.field.value.length,")"),h(3),p("ngIf",n.field.help),h(1),p("ngIf",!n.expanded),h(1),p("ngIf",n.expanded),h(1),p("ngIf",(null==n.field?null:n.field.value)&&n.expanded))},dependencies:[jt,ct],styles:[".picker-modal[_ngcontent-%COMP%]{color:var(--color-fg);background-color:var(--color-bg)}ol[_ngcontent-%COMP%]{border-radius:6px;overflow-y:auto;max-height:400px;padding:0}li[_ngcontent-%COMP%]{padding:8px;cursor:pointer;border:1px solid silver}li[_ngcontent-%COMP%]:hover{background-color:#ddd}"]})}function lE(i,t,e){for(let n in t)if(t.hasOwnProperty(n)){const r=t[n];r?i.setProperty(n,r,e?.has(n)?"important":""):i.removeProperty(n)}return i}function Hf(i,t){const e=t?"":"none";lE(i.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function hV(i,t,e){lE(i.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function ew(i,t){return t&&"none"!=t?i+" "+t:i}function pV(i){const t=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*t}function cE(i,t){return i.getPropertyValue(t).split(",").map(n=>n.trim())}function dE(i){const t=i.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function uE(i,t,e){const{top:n,bottom:r,left:o,right:a}=i;return e>=n&&e<=r&&t>=o&&t<=a}function _v(i,t,e){i.top+=t,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function fV(i,t,e,n){const{top:r,right:o,bottom:a,left:s,width:l,height:d}=i,f=l*t,y=d*t;return n>r-y&&ns-f&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:dE(e)})})}handleScroll(t){const e=Vs(t),n=this.positions.get(e);if(!n)return null;const r=n.scrollPosition;let o,a;if(e===this._document){const d=this.getViewportScrollPosition();o=d.top,a=d.left}else o=e.scrollTop,a=e.scrollLeft;const s=r.top-o,l=r.left-a;return this.positions.forEach((d,f)=>{d.clientRect&&e!==f&&e.contains(f)&&_v(d.clientRect,s,l)}),r.top=o,r.left=a,{top:s,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function mV(i){const t=i.cloneNode(!0),e=t.querySelectorAll("[id]"),n=i.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(s);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const l=this._getPointerPositionOnPage(s);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const E=Date.now()>=this._dragStartTime+this._getDragStartDelay(s),W=this._dropContainer;if(!E)return void this._endDragSequence(s);(!W||!W.isDragging()&&!W.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}s.preventDefault();const d=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(d),this._dropContainer)this._updateActiveDropContainer(d,l);else{const f=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,y=this._activeTransform;y.x=d.x-f.x+this._passiveTransform.x,y.y=d.y-f.y+this._passiveTransform.y,this._applyRootElementTransform(y.x,y.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:d,event:s,distance:this._getDragDistance(d),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this._nativeDragStart=s=>{if(this._handles.length){const l=this._getTargetHandle(s);l&&!this._disabledHandles.has(l)&&!this.disabled&&s.preventDefault()}else this.disabled||s.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new gV(n),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=Ci(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(n=>Hf(n,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(n=>mr(n)),this._handles.forEach(n=>Hf(n,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(n=>{this._handles.indexOf(n)>-1&&e.add(n)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=mr(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,tw),e.addEventListener("touchstart",this._pointerDown,bV),e.addEventListener("dragstart",this._nativeDragStart,tw)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?mr(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),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}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Hf(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Hf(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(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}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){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,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){vv(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const n=this._rootElement,r=n.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=this._createPreviewElement(),hV(n,!1,hE),this._document.body.appendChild(r.replaceChild(o,n)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const n=this.isDragging(),r=vv(e),o=!r&&0!==e.button,a=this._rootElement,s=Vs(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),d=r?mb(e):gb(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),n||o||l||d)return;if(this._handles.length){const k=a.style;this._rootElementTapHighlight=k.webkitTapHighlightColor||"",k.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(k=>this._updateOnScroll(k)),this._boundaryElement&&(this._boundaryRect=dE(this._boundaryElement));const f=this._previewTemplate;this._pickupPositionInElement=f&&f.template&&!f.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const y=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:y.x,y:y.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){hV(this._rootElement,!0,hE),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,n=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),a=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r,event:t}),e.drop(this,n,this._initialIndex,this._initialContainer,a,o,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:n,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(n,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,n=t?t.template:null;let r;if(n&&t){const o=t.matchSize?this._initialClientRect:null,a=t.viewContainer.createEmbeddedView(n,t.context);a.detectChanges(),r=wV(a,this._document),this._previewRef=a,t.matchSize?DV(r,o):r.style.transform=nw(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=mV(this._rootElement),DV(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return lE(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},hE),Hf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function vCe(i){const t=getComputedStyle(i),e=cE(t,"transition-property"),n=e.find(s=>"transform"===s||"all"===s);if(!n)return 0;const r=e.indexOf(n),o=cE(t,"transition-duration"),a=cE(t,"transition-delay");return pV(o[r])+pV(a[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{const r=a=>{(!a||Vs(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",r),n(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let n;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),n=wV(this._placeholderRef,this._document)):n=mV(this._rootElement),n.style.pointerEvents="none",n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(t,e,n){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,a=vv(n)?n.targetTouches[0]:n,s=this._getViewportScrollPosition();return{x:o.left-t.left+(a.pageX-o.left-s.left),y:o.top-t.top+(a.pageY-o.top-s.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),n=vv(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=n.pageX-e.left,o=n.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=o,s.matrixTransform(a.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:a}=this._pickupPositionInElement,s=this._boundaryRect,{width:l,height:d}=this._getPreviewRect(),f=s.top+a,y=s.bottom-(d-a);n=CV(n,s.left+o,s.right-(l-o)),r=CV(r,f,y)}return{x:n,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:n}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-o.x),s=Math.abs(n-o.y);return a>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=n>o.y?1:-1,o.y=n),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Hf(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,tw),t.removeEventListener("touchstart",this._pointerDown,bV),t.removeEventListener("dragstart",this._nativeDragStart,tw)}_applyRootElementTransform(t,e){const n=nw(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=ew(n,this._initialTransform)}_applyPreviewTransform(t,e){const n=this._previewTemplate?.template?void 0:this._initialTransform,r=nw(t,e);this._preview.style.transform=ew(r,n)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===n.width&&0===n.height)return;const o=r.left-n.left,a=n.right-r.right,s=r.top-n.top,l=n.bottom-r.bottom;r.width>n.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,r.height>n.height?(s>0&&(e+=s),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:vv(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const n=Vs(t);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&_v(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=lS(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const n=this._previewContainer||"global";if("parent"===n)return t;if("global"===n){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return mr(n)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function nw(i,t){return`translate3d(${Math.round(i)}px, ${Math.round(t)}px, 0)`}function CV(i,t,e){return Math.max(t,Math.min(e,i))}function vv(i){return"t"===i.type[0]}function wV(i,t){const e=i.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const n=t.createElement("div");return e.forEach(r=>n.appendChild(r)),n}function DV(i,t){i.style.width=`${t.width}px`,i.style.height=`${t.height}px`,i.style.transform=nw(t.left,t.top)}function MV(i,t,e){const n=yv(t,i.length-1),r=yv(e,i.length-1);if(n===r)return;const o=i[n],a=r0)return null;const s="horizontal"===this.orientation,l=o.findIndex(he=>he.drag===t),d=o[a],y=d.clientRect,k=l>a?1:-1,E=this._getItemOffsetPx(o[l].clientRect,y,k),W=this._getSiblingOffsetPx(l,o,k),ee=o.slice();return MV(o,l,a),o.forEach((he,ge)=>{if(ee[ge]===he)return;const Ce=he.drag===t,we=Ce?E:W,ke=Ce?t.getPlaceholderElement():he.drag.getRootElement();he.offset+=we,s?(ke.style.transform=ew(`translate3d(${Math.round(he.offset)}px, 0, 0)`,he.initialTransform),_v(he.clientRect,0,we)):(ke.style.transform=ew(`translate3d(0, ${Math.round(he.offset)}px, 0)`,he.initialTransform),_v(he.clientRect,we,0))}),this._previousSwap.overlaps=uE(y,e,n),this._previousSwap.drag=d.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:l,currentIndex:a}}enter(t,e,n,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,n):r,a=this._activeDraggables,s=a.indexOf(t),l=t.getPlaceholderElement();let d=a[o];if(d===t&&(d=a[o+1]),!d&&(null==o||-1===o||o-1&&a.splice(s,1),d&&!this._dragDropRegistry.isDragging(d)){const f=d.getRootElement();f.parentElement.insertBefore(l,f),a.splice(o,0,t)}else mr(this._element).appendChild(l),a.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const n=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=n||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(n=>n.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:n})=>{_v(n,t,e)}),this._itemPositions.forEach(({drag:n})=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const n=e.getVisibleElement();return{drag:e,offset:0,initialTransform:n.style.transform||"",clientRect:dE(n)}}).sort((e,n)=>t?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_getItemOffsetPx(t,e,n){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===n&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,n){const r="horizontal"===this.orientation,o=e[t].clientRect,a=e[t+-1*n];let s=o[r?"width":"height"]*n;if(a){const l=r?"left":"top",d=r?"right":"bottom";-1===n?s-=a.clientRect[l]-o[d]:s+=o[l]-a.clientRect[d]}return s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,r="horizontal"===this.orientation;if(n[0].drag!==this._activeDraggables[0]){const a=n[n.length-1].clientRect;return r?t>=a.right:e>=a.bottom}{const a=n[0].clientRect;return r?t<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(t,e,n,r){const o="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:s,clientRect:l})=>{if(s===t)return!1;if(r){const d=o?r.x:r.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&d===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&n!0,this.sortPredicate=()=>!0,this.beforeStarted=new be,this.entered=new be,this.exited=new be,this.dropped=new be,this.sorted=new be,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=D.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new be,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function _Ce(i=0,t=Xm){return i<0&&(i=0),Bu(i,i,t)}(0,A6).pipe(Ot(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-s):2===this._verticalScrollDirection&&a.scrollBy(0,s),1===this._horizontalScrollDirection?a.scrollBy(-s,0):2===this._horizontalScrollDirection&&a.scrollBy(s,0)})},this.element=mr(t),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new gV(n),this._sortStrategy=new wCe(this.element,e),this._sortStrategy.withSortPredicate((a,s)=>this.sortPredicate(a,s,this))}dispose(){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)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,n,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,n,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,n,r,o,a,s,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:n,container:this,previousContainer:r,isPointerOverContainer:o,distance:a,dropPoint:s,event:l})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(n=>n._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=mr(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,n,r){if(this.sortingDisabled||!this._clientRect||!fV(this._clientRect,.05,e,n))return;const o=this._sortStrategy.sort(t,e,n,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let n,r=0,o=0;if(this._parentPositions.positions.forEach((a,s)=>{s===this._document||!a.clientRect||n||fV(a.clientRect,.05,t,e)&&([r,o]=function MCe(i,t,e,n){const r=TV(t,n),o=SV(t,e);let a=0,s=0;if(r){const l=i.scrollTop;1===r?l>0&&(a=1):i.scrollHeight-l>i.clientHeight&&(a=2)}if(o){const l=i.scrollLeft;1===o?l>0&&(s=1):i.scrollWidth-l>i.clientWidth&&(s=2)}return[a,s]}(s,a.clientRect,t,e),(r||o)&&(n=s))}),!r&&!o){const{width:a,height:s}=this._viewportRuler.getViewportSize(),l={width:a,height:s,top:0,right:a,bottom:s,left:0};r=TV(l,e),o=SV(l,t),n=window}n&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||n!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=n,(r||o)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=mr(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=mr(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=mr(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&uE(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,n){return this._siblings.find(r=>r._canReceive(t,e,n))}_canReceive(t,e,n){if(!this._clientRect||!uE(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,n);if(!r)return!1;const o=mr(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const n=this._activeSiblings;!n.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(n.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=lS(mr(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function TV(i,t){const{top:e,bottom:n,height:r}=i,o=.05*r;return t>=e-o&&t<=e+o?1:t>=n-o&&t<=n+o?2:0}function SV(i,t){const{left:e,right:n,width:r}=i,o=.05*r;return t>=e-o&&t<=e+o?1:t>=n-o&&t<=n+o?2:0}const iw=Cc({passive:!1,capture:!0});let xCe=(()=>{class i{constructor(e,n){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new be,this.pointerUp=new be,this.scroll=new be,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=n}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,iw)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,iw)}startDragging(e,n){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=n.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:iw}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:iw}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(e){const n=this._activeDragInstances.indexOf(e);n>-1&&(this._activeDragInstances.splice(n,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const n=[this.scroll];return e&&e!==this._document&&n.push(new S(r=>this._ngZone.runOutsideAngular(()=>{const a=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),jr(...n)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,n)=>{this._document.removeEventListener(n,e.handler,e.options)}),this._globalListeners.clear()}}return i.\u0275fac=function(e){return new(e||i)(Ee(Bt),Ee(Wt))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const kCe={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let pE=(()=>{class i{constructor(e,n,r,o){this._document=e,this._ngZone=n,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,n=kCe){return new CCe(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new DCe(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return i.\u0275fac=function(e){return new(e||i)(Ee(Wt),Ee(Bt),Ee(Df),Ee(xCe))},i.\u0275prov=$e({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const fE=new nt("CDK_DRAG_PARENT"),EV=new nt("CdkDropListGroup"),AV=new nt("CDK_DRAG_CONFIG");let TCe=0;const IV=new nt("CdkDropList");let SCe=(()=>{class i{constructor(e,n,r,o,a,s,l){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new be,this.connectedTo=[],this.id="cdk-drop-list-"+TCe++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new Ae,this.entered=new Ae,this.exited=new Ae,this.sorted=new Ae,this._unsortedItems=new Set,this._dropListRef=n.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(d,f)=>this.enterPredicate(d.data,f.data),this._dropListRef.sortPredicate=(d,f,y)=>this.sortPredicate(d,f.data,y.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),i._dropLists.push(this),s&&s._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=Ci(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,n)=>e._dragRef.getVisibleElement().compareDocumentPosition(n._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=i._dropLists.indexOf(this);e>-1&&i._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(cr(this._dir.value),Ot(this._destroyed)).subscribe(n=>e.withDirection(n)),e.beforeStarted.subscribe(()=>{const n=v_(this.connectedTo).map(r=>"string"==typeof r?i._dropLists.find(a=>a.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===n.indexOf(r)&&n.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=Ci(this.sortingDisabled),e.autoScrollDisabled=Ci(this.autoScrollDisabled),e.autoScrollStep=th(this.autoScrollStep,2),e.connectedTo(n.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:this,item:n.item.data,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:this,item:n.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(n=>{this.sorted.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:n.item.data})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,item:n.item.data,isPointerOverContainer:n.isPointerOverContainer,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:n,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:a,listOrientation:s}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=a??!1,this.orientation=s||"vertical",n&&(this.lockAxis=n)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return i._dropLists=[],i.\u0275fac=function(e){return new(e||i)(U(Pt),U(pE),U(ui),U(P6),U(Do,8),U(EV,12),U(AV,8))},i.\u0275dir=it({type:i,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,n){2&e&&(mt("id",n.id),Zt("cdk-drop-list-disabled",n.disabled)("cdk-drop-list-dragging",n._dropListRef.isDragging())("cdk-drop-list-receiving",n._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[Pn([{provide:EV,useValue:void 0},{provide:IV,useExisting:i}])]}),i})();const gE=new nt("CdkDragHandle");let ECe=(()=>{class i{constructor(e,n){this.element=e,this._stateChanges=new be,this._disabled=!1,this._parentDrag=n}get disabled(){return this._disabled}set disabled(e){this._disabled=Ci(e),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(fE,12))},i.\u0275dir=it({type:i,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[Pn([{provide:gE,useExisting:i}])]}),i})();const ACe=new nt("CdkDragPlaceholder"),ICe=new nt("CdkDragPreview");let FV=(()=>{class i{constructor(e,n,r,o,a,s,l,d,f,y,k){this.element=e,this.dropContainer=n,this._ngZone=o,this._viewContainerRef=a,this._dir=l,this._changeDetectorRef=f,this._selfHandle=y,this._parentDrag=k,this._destroyed=new be,this.started=new Ae,this.released=new Ae,this.ended=new Ae,this.entered=new Ae,this.exited=new Ae,this.dropped=new Ae,this.moved=new S(E=>{const W=this._dragRef.moved.pipe(Ve(ee=>({source:this,pointerPosition:ee.pointerPosition,event:ee.event,delta:ee.delta,distance:ee.distance}))).subscribe(E);return()=>{W.unsubscribe()}}),this._dragRef=d.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:s?.zIndex}),this._dragRef.data=this,i._dragInstances.push(this),s&&this._assignDefaults(s),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=Ci(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Xn(1),Ot(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const n=e.rootElementSelector,r=e.freeDragPosition;n&&!n.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=i._dragInstances.indexOf(this);e>-1&&i._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let n=e;this.rootElementSelector&&(n=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(n||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):mr(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const n=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:th(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),n&&e.withDirection(n.value)}}),e.beforeStarted.pipe(Xn(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let n=this.element.nativeElement.parentElement;for(;n;){if(n.classList.contains("cdk-drag")){e.withParent(i._dragInstances.find(r=>r.element.nativeElement===n)?._dragRef||null);break}n=n.parentElement}})}_handleEvents(e){e.started.subscribe(n=>{this.started.emit({source:this,event:n.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(n=>{this.released.emit({source:this,event:n.event})}),e.ended.subscribe(n=>{this.ended.emit({source:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:n.container.data,item:this,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:n.container.data,item:this})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,isPointerOverContainer:n.isPointerOverContainer,item:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event})})}_assignDefaults(e){const{lockAxis:n,dragStartDelay:r,constrainPosition:o,previewClass:a,boundaryElement:s,draggingDisabled:l,rootElementSelector:d,previewContainer:f}=e;this.disabled=l??!1,this.dragStartDelay=r||0,n&&(this.lockAxis=n),o&&(this.constrainPosition=o),a&&(this.previewClass=a),s&&(this.boundaryElement=s),d&&(this.rootElementSelector=d),f&&(this.previewContainer=f)}_setupHandlesListener(){this._handles.changes.pipe(cr(this._handles),ir(e=>{const n=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&n.push(this.element),this._dragRef.withHandles(n)}),so(e=>jr(...e.map(n=>n._stateChanges.pipe(cr(n))))),Ot(this._destroyed)).subscribe(e=>{const n=this._dragRef,r=e.element.nativeElement;e.disabled?n.disableHandle(r):n.enableHandle(r)})}}return i._dragInstances=[],i.\u0275fac=function(e){return new(e||i)(U(Pt),U(IV,12),U(Wt),U(Bt),U(Mr),U(AV,8),U(Do,8),U(pE),U(ui),U(gE,10),U(fE,12))},i.\u0275dir=it({type:i,selectors:[["","cdkDrag",""]],contentQueries:function(e,n,r){if(1&e&&(En(r,ICe,5),En(r,ACe,5),En(r,gE,5)),2&e){let o;pt(o=ft())&&(n._previewTemplate=o.first),pt(o=ft())&&(n._placeholderTemplate=o.first),pt(o=ft())&&(n._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,n){2&e&&Zt("cdk-drag-disabled",n.disabled)("cdk-drag-dragging",n._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Pn([{provide:fE,useExisting:i}]),_i]}),i})(),PV=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[pE],imports:[ih]}),i})();function PCe(i,t){if(1&i){const e=pe();u(0,"span",11),N("click",function(){return R(e),L(g(3).cancelClick())}),H(1,"i",12),m(2," Cancel "),c()}}function RCe(i,t){if(1&i){const e=pe();u(0,"span",13),N("click",function(){return R(e),L(g(3).addClick())}),H(1,"i",14),m(2," Add"),c()}}function LCe(i,t){if(1&i&&(u(0,"div",6)(1,"label",7),m(2),c(),u(3,"div",8),w(4,PCe,3,0,"span",9),w(5,RCe,3,0,"span",10),c()()),2&i){const e=g(2);h(2),Re(e.title),h(2),p("ngIf",e.showCancel),h(1),p("ngIf",e.showAdd)}}function OCe(i,t){if(1&i){const e=pe();u(0,"i",20),N("click",function(r){R(e);const o=g().$implicit;return g(2).removeClick(o),L(r.stopPropagation())}),c()}}function NCe(i,t){if(1&i){const e=pe();u(0,"li",15),N("click",function(){const o=R(e).$implicit;return L(g(2).editClick(o))}),u(1,"div",16),m(2),c(),u(3,"div",17),H(4,"i",18),w(5,OCe,1,0,"i",19),c()()}if(2&i){const e=t.$implicit,n=g(2);h(2),Ke(" ",n.getDisplayValue(e)," "),h(3),p("ngIf",n.showRemove)}}const BCe=function(i){return{"height.px":i}};function VCe(i,t){if(1&i){const e=pe();u(0,"div",1),w(1,LCe,6,3,"div",2),u(2,"div",3),N("cdkDropListDropped",function(r){return R(e),L(g().drop(r))}),u(3,"ol",4),w(4,NCe,6,2,"li",5),c()()()}if(2&i){const e=g();h(1),p("ngIf",e.title||e.showAdd||e.showCancel),h(1),p("ngStyle",Ct(3,BCe,e.getHeight())),h(2),p("ngForOf",e.items)}}class bv{resizeSubscription$;resizeObservable$;constructor(){}title;displayMemberName="name";showCancel=!1;showAdd=!0;showRemove=!1;showReorder=!0;items;topMargin=60;listHeight=window.innerHeight-(this.topMargin+200);fixedHeight=void 0;autoGrow=!0;set listResponse(t){this.items=t.model}add=new Ae;cancel=new Ae;selected=new Ae;remove=new Ae;reordered=new Ae;getHeight(){return this.autoGrow?this.fixedHeight??window.innerHeight-(this.topMargin+200):void 0}ngOnInit(){this.resizeObservable$=yn(window,"resize"),this.resizeSubscription$=this.resizeObservable$.subscribe(t=>{t&&(this.listHeight=window.innerHeight-(this.topMargin+200))})}addClick(){this.add.emit()}editClick(t){this.selected.emit(t)}cancelClick(){this.cancel.emit()}getDisplayValue(t){var e="",n=this.displayMemberName.split(",");for(let r of n)r=r.trim(),t[r]&&(e+=t[r]+" ");return e.trim()}removeClick(t){this.remove&&this.remove.emit(t),this.items.splice(this.items.indexOf(t),1),console.log(this.items,t)}showAddTip(t){}moveUpClick(t){let e=this.items.indexOf(t);if(e>0){let n=this.items[e-1];this.items[e]=n,this.items[e-1]=t,this.reordered.emit({element1:t,element2:n,movedUp:!0})}}moveDownClick(t){let e=this.items.indexOf(t);if(e{this.field.value={id:e.id,text:e.name},this.field.display=e.name,this.field.propertyChanged&&this.field.propertyChanged(this.field)})}clearEntityHeaderValue(){this.field.clearEntityHeader&&this.field.isUserEditable?(this.field.clearEntityHeader(this.field),this.field.propertyChanged&&this.field.propertyChanged(this.field)):(this.field.value=void 0,this.field.display=void 0)}static \u0275fac=function(e){return new(e||ow)(U(zn))};static \u0275cmp=Be({type:ow,selectors:[["app-user-picker-field"]],features:[st],decls:2,vars:7,consts:[["class","form-group","attr","one","ng-hide","!isVisible",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],["attr","one","ng-hide","!isVisible",1,"form-group"],[3,"name","label","isRequired"],[1,"input-group-holder"],["class","picker-link",3,"click",4,"ngIf"],[4,"ngIf"],[1,"picker-link",3,"click"],[3,"ngClass"],["class","picker-link-remove","style","margin-left:20px",3,"click",4,"ngIf"],[1,"picker-link-remove",2,"margin-left","20px",3,"click"],[1,"fa","fa-trash","action-danger"]],template:function(e,n){1&e&&(w(0,WCe,5,5,"div",0),H(1,"app-form-field-validation-section",1)),2&e&&(p("ngIf",n.field),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors))},dependencies:[Zi,ct,qn,Gn],styles:[".picker-link[_ngcontent-%COMP%], .picker-link-remove[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-accent)}.picker-link[_ngcontent-%COMP%]:hover{text-decoration:underline;color:var(--color-accent)}"]})}class aw extends ln{constructor(){super()}ngOnInit(){super.ngOnInit()}showWebPage(){this.field.value&&window.open(this.field.value)}static \u0275fac=function(e){return new(e||aw)};static \u0275cmp=Be({type:aw,selectors:[["app-web-link-field"]],features:[st],decls:7,vars:18,consts:[[3,"name","label","isRequired"],[1,"input-group"],[1,"form-control",3,"name","id","ngModel","type","disabled","placeholder","ngModelChange","change","input","focus","blur"],[1,"input-group-text",2,"cursor","pointer","color","#A0A0A0",3,"click"],["aria-hidden","true",1,"fa","fa-link"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"]],template:function(e,n){1&e&&(H(0,"app-form-field-label",0),u(1,"div",1)(2,"input",2),N("ngModelChange",function(o){return n.field.value=o})("change",function(o){return n.changed(o)})("input",function(o){return n.textChanged(o)})("focus",function(o){return n.onFocus(o)})("blur",function(o){return n.onBlur(o)}),c(),u(3,"span",3),N("click",function(o){return n.showWebPage(),o.stopPropagation()}),H(4,"i",4),c()(),H(5,"app-form-field-validation-section",5)(6,"app-form-field-help",6)),2&e&&(p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(2),Mn("background-color",n.field.isUserEditable?"white":"#EEEEEE"),gt("name",n.field.name),gt("id",n.field.name),gt("placeholder",n.field.watermark),p("ngModel",n.field.value)("type",n.inputType)("disabled",!n.field.isUserEditable),h(3),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Bn,vn,pn,Wn,qn,Gn]})}class sw extends ln{constructor(){super()}selected(){this.field?.actionClick&&this.field.actionClick(this.field)}static \u0275fac=function(e){return new(e||sw)};static \u0275cmp=Be({type:sw,selectors:[["app-action-field"]],features:[st],decls:7,vars:1,consts:[[1,"action",2,"cursor","pointer","display","flex",3,"click"],[2,"flex-grow","1"],[2,"cursor","pointer"],[1,"fas","fa-chevron-right"]],template:function(e,n){1&e&&(u(0,"div",0),N("click",function(){return n.selected()}),u(1,"div",1)(2,"label",2),m(3),c(),H(4,"hr"),c(),u(5,"div"),H(6,"i",3),c()()),2&e&&(h(3),Re(n.field.label))}})}function GCe(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",11)(2,"input",12),N("ngModelChange",function(r){return L(R(e).$implicit.name=r)}),c(),u(3,"label",13),m(4),c(),u(5,"div",4)(6,"span",14),N("click",function(){const o=R(e).$implicit;return L(g(2).updateCategory(o))}),H(7,"i",15),c()()()()}if(2&i){const e=t.$implicit;h(2),p("ngModel",e.name),h(2),Re(e.key)}}function qCe(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",4)(2,"span",5),N("click",function(){return R(e),L(g(2).saveNewCategory())}),H(3,"i",16),m(4," Save"),c(),u(5,"span",5),N("click",function(){return R(e),L(g(2).newCategory=void 0)}),H(6,"i",17),m(7," Cancel"),c()(),u(8,"div",18)(9,"label"),m(10,"Name "),u(11,"span",19),m(12,"*"),c()(),u(13,"input",20),N("ngModelChange",function(r){return R(e),L(g(2).newCategory.name=r)}),c()(),u(14,"div",18)(15,"label"),m(16,"Key "),u(17,"span",19),m(18,"*"),c()(),u(19,"input",20),N("ngModelChange",function(r){return R(e),L(g(2).newCategory.key=r)}),c()()()}if(2&i){const e=g(2);h(13),p("ngModel",e.newCategory.name),h(6),p("ngModel",e.newCategory.key)}}function KCe(i,t){if(1&i){const e=pe();u(0,"div",1)(1,"h4"),m(2),u(3,"span",2),N("click",function(){return R(e),L(g().closeModal())}),H(4,"i",3),c()(),u(5,"div",4)(6,"span",5),N("click",function(){return R(e),L(g().addNewCategory())}),H(7,"i",6),m(8," Add New Category"),c()(),u(9,"div",7)(10,"label",8),m(11,"Name"),c(),u(12,"label"),m(13,"Key"),c()(),w(14,GCe,8,2,"div",9),w(15,qCe,20,2,"div",10),c()}if(2&i){const e=g();h(2),Ke(" Categories For: ",e.categoryName," "),h(12),p("ngForOf",e.categories),h(1),p("ngIf",e.newCategory)}}class lw{adminService;activeModal;newCategory;categories;categoryName;categoryType;updated=!1;itemAdded=new Ae;constructor(t,e){this.adminService=t,this.activeModal=e}ngOnInit(){var t=this;return z(function*(){let e=yield t.adminService.getCategories(t.categoryType);t.categories=e.model,console.log(t.categories)})()}addNewCategory(){var t=this;return z(function*(){t.newCategory=yield t.adminService.createCategory(t.categoryType),console.log(t.newCategory)})()}saveNewCategory(){var t=this;return z(function*(){(yield t.adminService.addCategory(t.newCategory)).successful&&(t.categories.push(t.newCategory),t.newCategory=null,t.updated=!0)})()}updateCategory(t){var e=this;return z(function*(){yield e.adminService.updateCategory(t),e.updated=!0})()}closeModal(){this.activeModal.close(),this.updated&&this.itemAdded?.emit()}static \u0275fac=function(e){return new(e||lw)(U(xc),U(dr))};static \u0275cmp=Be({type:lw,selectors:[["app-category-editor"]],outputs:{itemAdded:"itemAdded"},decls:1,vars:1,consts:[["style","margin:20px",4,"ngIf"],[2,"margin","20px"],[2,"float","right",3,"click"],[1,"fa","fa-close","action-danger"],[2,"text-align","right"],[1,"action",3,"click"],[1,"fa","fa-plus"],[2,"display","flex"],[2,"width","360px","display","inline-block"],[4,"ngFor","ngForOf"],[4,"ngIf"],[2,"margin-bottom","10px","display","flex"],[1,"form-control",2,"width","350px","margin-right","10px",3,"ngModel","ngModelChange"],[2,"flex-grow","1"],[3,"click"],[1,"fa","fa-save","action"],[1,"fa","fa-save"],[1,"fa","fa-arrow-left"],[1,"form-group"],[1,"required"],[1,"form-control",3,"ngModel","ngModelChange"]],template:function(e,n){1&e&&w(0,KCe,16,3,"div",0),2&e&&p("ngIf",n.categories)},dependencies:[Bn,vn,pn,jt,ct],styles:["label[_ngcontent-%COMP%]{font-weight:700}.required[_ngcontent-%COMP%]{color:red}"]})}function ZCe(i,t){if(1&i&&(u(0,"option",9),m(1),c()),2&i){const e=t.$implicit;gt("value",e.key),h(1),Re(e.label)}}function QCe(i,t){1&i&&H(0,"span",10),2&i&&mt("data-target",g().popupId)}class cw extends ln{modalService;adminService;constructor(t,e){super(),this.modalService=t,this.adminService=e}validate(){return this.showValidationErrors=!0,this.field.isRequired?this.field.value&&"-1"!==this.field.value?(this.isValid=!0,this.hasValue=!0):(this.isValid=!1,this.hasValue=!1):this.isValid=!0,this.isValid}onChanged(t){this.field&&(this.showValidationErrors=!0,this.hasValue="-1"!==this.field.value),super.changed(t)}ngOnInit(){var t=()=>super.ngOnInit,e=this;return z(function*(){t().call(e),e.loadCategories()})()}loadCategories(){var t=this;return z(function*(){let e=yield t.adminService.getCategories(t.field.customCategoryType??t.host.form.modelName.toLocaleLowerCase());e&&(t.field.options=e.model.map(n=>({key:n.key,label:n.name,text:n.name,id:n.key}))),t.field.options.find(n=>"-1"===n.id)||t.field.options.unshift({key:"-1",label:t.field.watermark,text:t.field.watermark,id:"-1"}),t.field.value||(t.field.value="-1")})()}editCategories(){const t=this.modalService.open(lw,{size:"lg"}).componentInstance;t.categoryType=this.field.customCategoryType??this.host.form.modelName.toLocaleLowerCase(),t.itemAdded.subscribe(()=>{this.loadCategories()}),t.categoryName=this.field.customCategoryType?`${this.host.form.modelTitle} (${this.field.customCategoryType}}`:this.host.form.modelTitle}static \u0275fac=function(e){return new(e||cw)(U(zn),U(xc))};static \u0275cmp=Be({type:cw,selectors:[["app-category-field"]],features:[st],decls:9,vars:18,consts:[[3,"name","label","isRequired"],[1,"input-group"],[1,"form-control","form-select",3,"name","id","ngModel","disabled","ngModelChange","change"],[3,"value",4,"ngFor","ngForOf"],[1,"input-group-append",2,"cursor","pointer"],["style","font-size:12pt;color:#A0A0A0","data-toggle","modal","class","input-group-text fa fa-question",4,"ngIf"],[1,"input-group-text","fa","fa-pencil",2,"cursor","pointer",3,"click"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],[3,"value"],["data-toggle","modal",1,"input-group-text","fa","fa-question",2,"font-size","12pt","color","#A0A0A0"]],template:function(e,n){1&e&&(H(0,"app-form-field-label",0),u(1,"div",1)(2,"select",2),N("ngModelChange",function(o){return n.field.value=o})("change",function(o){return n.onChanged(o)}),w(3,ZCe,2,2,"option",3),c(),u(4,"div",4),w(5,QCe,1,1,"span",5),u(6,"span",6),N("click",function(){return n.editCategories()}),c()()(),H(7,"app-form-field-validation-section",7)(8,"app-form-field-help",8)),2&e&&(p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(2),Mn("background-color",n.field.isUserEditable?"white":"#EEEEEE"),gt("name",n.field.name),gt("id",n.field.name),p("ngModel",n.field.value)("disabled",!n.field.isUserEditable),h(1),p("ngForOf",n.field.options),h(2),p("ngIf",n.field.help),h(2),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[oo,ao,Nr,vn,pn,jt,ct,Wn,qn,Gn]})}class dw{_dataSourceUpdated$=new Gt(0);_items;constructor(t){t&&t.model&&(this.items=t?.filteredItems??t.model,this.url=t.getListUrl,this.url||console.warn("PagedData created with no getListUrl - ",t.title),t.reload=e=>{e&&(this.items=e,console.log("items have updated",e)),this.updated()},t.refresh=()=>{this.items=t?.filteredItems??t.model,console.log("updated from refresh"),this.updated()})}static createFromArray(t){let e=new dw;return e.items=t,e}onDataSourceUpdated(){return this._dataSourceUpdated$.asObservable()}set items(t){this._items=t,this._dataSourceUpdated$.next(!0)}get items(){return this._items}updated(){console.log("ds update"),this._dataSourceUpdated$.next(!0)}concat(t){this.items=this.items.concat(!1)}push(t){this.items.push(t),this._dataSourceUpdated$.next(!1)}unshift(...t){this.items.unshift(t),this._dataSourceUpdated$.next(!1)}splice(t,e){this.items.splice(t,e),this._dataSourceUpdated$.next(!1)}remove(t){let e=this.items.indexOf(t);e>-1&&this.splice(e,1)}filter;url}const XCe=["*"];let uw;function Cv(i){return function JCe(){if(void 0===uw&&(uw=null,typeof window<"u")){const i=window;void 0!==i.trustedTypes&&(uw=i.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return uw}()?.createHTML(i)||i}function RV(i){return Error(`Unable to find icon with the name "${i}"`)}function LV(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function OV(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}class vh{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let hw=(()=>{class i{constructor(e,n,r,o){this._httpClient=e,this._sanitizer=n,this._errorHandler=o,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","mat-ligature-font"],this._document=r}addSvgIcon(e,n,r){return this.addSvgIconInNamespace("",e,n,r)}addSvgIconLiteral(e,n,r){return this.addSvgIconLiteralInNamespace("",e,n,r)}addSvgIconInNamespace(e,n,r,o){return this._addSvgIconConfig(e,n,new vh(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,r,o){const a=this._sanitizer.sanitize(di.HTML,r);if(!a)throw OV(r);const s=Cv(a);return this._addSvgIconConfig(e,n,new vh("",s,o))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,r){return this._addSvgIconSetConfig(e,new vh(n,null,r))}addSvgIconSetLiteralInNamespace(e,n,r){const o=this._sanitizer.sanitize(di.HTML,n);if(!o)throw OV(n);const a=Cv(o);return this._addSvgIconSetConfig(e,new vh("",a,r))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const n=this._sanitizer.sanitize(di.RESOURCE_URL,e);if(!n)throw LV(e);const r=this._cachedIconsByUrl.get(n);return r?At(pw(r)):this._loadSvgIconFromConfig(new vh(e,null)).pipe(ir(o=>this._cachedIconsByUrl.set(n,o)),Ve(o=>pw(o)))}getNamedSvgIcon(e,n=""){const r=NV(n,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(n,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):Gp(RV(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?At(pw(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ve(n=>pw(n)))}_getSvgFromIconSetConfigs(e,n){const r=this._extractIconWithNameFromAnySet(e,n);return r?At(r):N3(n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(pc(s=>{const d=`Loading icon set URL: ${this._sanitizer.sanitize(di.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(d)),At(null)})))).pipe(Ve(()=>{const a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw RV(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let r=n.length-1;r>=0;r--){const o=n[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(ir(n=>e.svgText=n),Ve(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?At(null):this._fetchIcon(e).pipe(ir(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,r){const o=e.querySelector(`[id="${n}"]`);if(!o)return null;const a=o.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,r);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),r);const s=this._svgElementFromString(Cv(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){const n=this._document.createElement("DIV");n.innerHTML=e;const r=n.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const n=this._svgElementFromString(Cv("")),r=e.attributes;for(let o=0;oCv(d)),d1(()=>this._inProgressUrlFetches.delete(a)),yg());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,n,r){return this._svgIconConfigs.set(NV(e,n),r),this}_addSvgIconSetConfig(e,n){const r=this._iconSetConfigs.get(e);return r?r.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){const n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let r=0;rt?t.pathname+t.search:""}}}),BV=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],swe=BV.map(i=>`[${i}]`).join(", "),lwe=/^url\(['"]?#(.*?)['"]?\)$/;let cwe=(()=>{class i extends iwe{constructor(e,n,r,o,a,s){super(e),this._iconRegistry=n,this._location=o,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=D.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ci(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){const r=e.childNodes[n];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),n.forEach(r=>e.classList.add(r)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const n=this._elementsWithExternalReferences;n&&n.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const n=e.querySelectorAll(swe),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const s=n[o],l=s.getAttribute(a),d=l?l.match(lwe):null;if(d){let f=r.get(s);f||(f=[],r.set(s,f)),f.push({name:a,value:d[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[n,r]=this._splitIconName(e);n&&(this._svgNamespace=n),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,n).pipe(Xn(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${n}:${r}! ${o.message}`))})}}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(hw),cl("aria-hidden"),U(owe),U(ec),U(rwe,8))},i.\u0275cmp=Be({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,n){2&e&&(mt("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet),Zt("mat-icon-inline",n.inline)("mat-icon-no-color","primary"!==n.color&&"accent"!==n.color&&"warn"!==n.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[st],ngContentSelectors:XCe,decls:1,vars:0,template:function(e,n){1&e&&(ro(),Ei(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),i})(),dwe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[_r,_r]}),i})();const uwe=["mat-menu-item",""];function hwe(i,t){1&i&&(mu(),u(0,"svg",2),H(1,"polygon",3),c())}const VV=["*"];function pwe(i,t){if(1&i){const e=pe();u(0,"div",0),N("keydown",function(r){return R(e),L(g()._handleKeydown(r))})("click",function(){return R(e),L(g().closed.emit("click"))})("@transformMenu.start",function(r){return R(e),L(g()._onAnimationStart(r))})("@transformMenu.done",function(r){return R(e),L(g()._onAnimationDone(r))}),u(1,"div",1),Ei(2),c()()}if(2&i){const e=g();p("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),mt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const fw={transformMenu:Pd("transformMenu",[Ja("void",Ni({opacity:0,transform:"scale(0.8)"})),$o("void => enter",jo("120ms cubic-bezier(0, 0, 0.2, 1)",Ni({opacity:1,transform:"scale(1)"}))),$o("* => void",jo("100ms 25ms linear",Ni({opacity:0})))]),fadeInItems:Pd("fadeInItems",[Ja("showing",Ni({opacity:1})),$o("void => *",[Ni({opacity:0}),jo("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},fwe=new nt("MatMenuContent"),mE=new nt("MAT_MENU_PANEL"),gwe=yb(C_(class{}));let _E=(()=>{class i extends gwe{constructor(e,n,r,o,a){super(),this._elementRef=e,this._document=n,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new be,this._focused=new be,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class i{constructor(e,n,r,o){this._elementRef=e,this._ngZone=n,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new cd,this._tabSubscription=D.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new be,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Ae,this.close=this.closed,this.panelId="mat-menu-panel-"+_we++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ci(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ci(e)}set panelClass(e){const n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new s6(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(cr(this._directDescendantItems),so(e=>jr(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const n=this._keyManager;if("enter"===this._panelAnimationState&&n.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,n.activeItemIndex||0));r[o]&&!r[o].disabled?n.setActiveItem(o):n.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(cr(this._directDescendantItems),so(n=>jr(...n.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const n=e.keyCode,r=this._keyManager;switch(n){case 27:Ad(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===n||40===n)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(Xn(1)).subscribe(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&n&&n.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const n=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${n}`,o=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,n=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===n,r["mat-menu-below"]="below"===n,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(cr(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(Bt),U(HV),U(ui))},i.\u0275dir=it({type:i,contentQueries:function(e,n,r){if(1&e&&(En(r,fwe,5),En(r,_E,5),En(r,_E,4)),2&e){let o;pt(o=ft())&&(n.lazyContent=o.first),pt(o=ft())&&(n._allItems=o),pt(o=ft())&&(n.items=o)}},viewQuery:function(e,n){if(1&e&&un(Ui,5),2&e){let r;pt(r=ft())&&(n.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),i})(),vwe=(()=>{class i extends wv{constructor(e,n,r,o){super(e,n,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(Bt),U(HV),U(ui))},i.\u0275cmp=Be({type:i,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,n){2&e&&mt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Pn([{provide:mE,useExisting:i}]),st],ngContentSelectors:VV,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,n){1&e&&(ro(),w(0,pwe,3,6,"ng-template"))},dependencies:[Zi],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;position:relative}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top: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}'],encapsulation:2,data:{animation:[fw.transformMenu,fw.fadeInItems]},changeDetection:0}),i})();const YV=new nt("mat-menu-scroll-strategy"),bwe={provide:YV,deps:[El],useFactory:function ywe(i){return()=>i.scrollStrategies.reposition()}},UV=Cc({passive:!0});let Cwe=(()=>{class i{constructor(e,n,r,o,a,s,l,d,f){this._overlay=e,this._element=n,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=l,this._focusMonitor=d,this._ngZone=f,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=D.EMPTY,this._hoverSubscription=D.EMPTY,this._menuCloseSubscription=D.EMPTY,this._handleTouchStart=y=>{mb(y)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ae,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ae,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof wv?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,UV),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),("click"===n||"tab"===n)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,UV),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const n=this._createOverlay(e),r=n.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),n.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof wv&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ot(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof wv?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Oi(r=>"void"===r.toState),Xn(1),Ot(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let n=0,r=e.parentMenu;for(;r;)n++,r=r.parentMenu;e.setElevation(n)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new wC({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",a="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,a)):e.setPositionClasses(o,a)})}_setPosition(e,n){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[a,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[l,d]=[a,s],[f,y]=[r,o],k=0;if(this.triggersSubmenu()){if(y=r="before"===e.xPosition?"start":"end",o=f="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const E=this._parentMaterialMenu.items.first;this._parentInnerPadding=E?E._getHostElement().offsetTop:0}k="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l="top"===a?"bottom":"top",d="top"===s?"bottom":"top");n.withPositions([{originX:r,originY:l,overlayX:f,overlayY:a,offsetY:k},{originX:o,originY:l,overlayX:y,overlayY:a,offsetY:k},{originX:r,originY:d,overlayX:f,overlayY:s,offsetY:-k},{originX:o,originY:d,overlayX:y,overlayY:s,offsetY:-k}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return jr(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:At(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Oi(a=>a!==this._menuItemInstance),Oi(()=>this._menuOpen)):At(),n)}_handleMousedown(e){gb(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const n=e.keyCode;(13===n||32===n)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===n&&"ltr"===this.dir||37===n&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Oi(e=>e===this._menuItemInstance&&!e.disabled),LT(0,yS)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof wv&&this.menu._isAnimating?this.menu._animationDone.pipe(Xn(1),LT(0,yS),Ot(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new vb(e.templateRef,this._viewContainerRef)),this._portal}}return i.\u0275fac=function(e){return new(e||i)(U(El),U(Pt),U(Mr),U(YV),U(mE,8),U(_E,10),U(Do,8),U(Id),U(Bt))},i.\u0275dir=it({type:i,hostVars:3,hostBindings:function(e,n){1&e&&N("click",function(o){return n._handleClick(o)})("mousedown",function(o){return n._handleMousedown(o)})("keydown",function(o){return n._handleKeydown(o)}),2&e&&mt("aria-haspopup",n.menu?"menu":null)("aria-expanded",n.menuOpen||null)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),i})(),wwe=(()=>{class i extends Cwe{}return i.\u0275fac=function(){let t;return function(n){return(t||(t=Pi(i)))(n||i)}}(),i.\u0275dir=it({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[st]}),i})(),Dwe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[bwe],imports:[ki,_r,bb,MC,ih,_r]}),i})();const Mwe=[[["grid-column"]]],xwe=["grid-column"],kwe=["fullWidth"];function Twe(i,t){if(1&i){const e=pe();u(0,"i",21),N("click",function(){return R(e),L(g(2).donePressed())}),c()}}function Swe(i,t){if(1&i){const e=pe();u(0,"i",22),N("click",function(){return R(e),L(g(2).addFavorite())}),c()}}function Ewe(i,t){if(1&i){const e=pe();u(0,"i",23),N("click",function(){return R(e),L(g(2).clearFavorite())}),c()}}function Awe(i,t){if(1&i&&(u(0,"h1",15),w(1,Twe,1,0,"i",16),H(2,"nuv-icon",17),u(3,"span",18),m(4),c(),w(5,Swe,1,0,"i",19),w(6,Ewe,1,0,"i",20),c()),2&i){const e=g();h(1),p("ngIf",e.doneVisible),h(1),p("iconName",e.listResponse.icon),h(2),Ke(" ",e.listResponse.title," "),h(1),p("ngIf",!e.favorite),h(1),p("ngIf",e.favorite)}}function Iwe(i,t){if(1&i){const e=pe();u(0,"i",21),N("click",function(){return R(e),L(g(2).donePressed())}),c()}}function Fwe(i,t){1&i&&H(0,"nuv-icon",17),2&i&&p("iconName",g(2).tableIcon)}function Pwe(i,t){if(1&i){const e=pe();u(0,"i",22),N("click",function(){return R(e),L(g(2).addFavorite())}),c()}}function Rwe(i,t){if(1&i){const e=pe();u(0,"i",23),N("click",function(){return R(e),L(g(2).clearFavorite())}),c()}}function Lwe(i,t){if(1&i&&(u(0,"h1",15),w(1,Iwe,1,0,"i",16),w(2,Fwe,1,1,"nuv-icon",24),u(3,"span",18),m(4),c(),w(5,Pwe,1,0,"i",19),w(6,Rwe,1,0,"i",20),c()),2&i){const e=g();let n;h(1),p("ngIf",e.doneVisible),h(1),p("ngIf",e.tableIcon),h(2),Ke(" ",null!==(n=e.tableTitle)&&void 0!==n?n:"Table"," "),h(1),p("ngIf",!e.favorite),h(1),p("ngIf",e.favorite)}}function Owe(i,t){if(1&i){const e=pe();u(0,"div",35)(1,"input",36),N("ngModelChange",function(r){return R(e),L(g(2).searchText=r)}),c(),u(2,"span",37),N("click",function(){return R(e),L(g(2).serverSearch())}),H(3,"i",38),c()()}if(2&i){const e=g(2);h(1),p("ngModel",e.searchText)}}function Nwe(i,t){if(1&i){const e=pe();u(0,"div")(1,"input",39),N("ngModelChange",function(r){return R(e),L(g(2).searchText=r)}),c()()}if(2&i){const e=g(2);h(1),f0("margin-left:10px;width: 200px; background-image: url('",e.root,"/app/ui-shared/assets/search.png'); background-repeat: no-repeat; background-position: 6px 50%; padding: 7px 8.75px 7px 42px;"),p("ngModel",e.searchText)}}function Bwe(i,t){if(1&i&&(u(0,"option",43),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e.key),h(1),Re(e.name)}}function Vwe(i,t){if(1&i){const e=pe();u(0,"div",40)(1,"select",41),N("change",function(){return R(e),L(g(2).refreshData())})("ngModelChange",function(r){return R(e),L(g(2).selectedCategory=r)}),w(2,Bwe,2,2,"option",42),c()()}if(2&i){const e=g(2);h(1),p("ngModel",e.selectedCategory),h(1),p("ngForOf",e.listResponse.categories)}}function Hwe(i,t){if(1&i){const e=pe();u(0,"span",44),N("click",function(){return R(e),L(g(2).add.emit())}),H(1,"i",45),u(2,"span",46),m(3,"Add"),c()()}}const Ywe=function(i){return{"margin-top.px":i}},$s=function(i){return{"width.px":i}};function Uwe(i,t){if(1&i){const e=pe();u(0,"div",25),w(1,Owe,4,1,"div",26),w(2,Nwe,2,4,"div",27),w(3,Vwe,3,2,"div",28),u(4,"div",29),Ei(5,1,["style","display:inline"]),c(),u(6,"div",30),m(7," Show "),u(8,"select",31),N("ngModelChange",function(r){return R(e),L(g().pageSize=r)}),u(9,"option"),m(10,"10"),c(),u(11,"option"),m(12,"25"),c(),u(13,"option"),m(14,"50"),c(),u(15,"option"),m(16,"100"),c(),u(17,"option"),m(18,"500"),c(),u(19,"option"),m(20,"1000"),c(),u(21,"option"),m(22,"2500"),c(),u(23,"option"),m(24,"5000"),c()(),m(25," entries "),w(26,Hwe,4,0,"span",32),u(27,"span",33)(28,"mat-icon",34),m(29,"more_horiz"),c()()()()}if(2&i){const e=g(),n=No(6);p("ngStyle",Ct(8,Ywe,e.topMargin))("ngStyle",Ct(10,$s,e.tableWidth+32)),h(1),p("ngIf",e.serverSideSearch),h(1),p("ngIf",!e.serverSideSearch),h(1),p("ngIf",(null==e.listResponse?null:e.listResponse.categories)&&(null==e.listResponse?null:e.listResponse.categories.length)>1),h(5),p("ngModel",e.pageSize),h(18),p("ngIf",e.addVisible),h(1),p("matMenuTriggerFor",n)}}function jwe(i,t){if(1&i&&(u(0,"span",57),m(1),c()),2&i){const e=g().$implicit;h(1),Ke(" ",e.header,"")}}function $we(i,t){1&i&&(u(0,"span"),m(1,"\xa0"),c())}function zwe(i,t){if(1&i){const e=pe();u(0,"input",6),N("ngModelChange",function(r){return R(e),L(g(3).selectAll=r)}),c()}2&i&&p("ngModel",g(3).selectAll)}const jV=function(i,t){return{"sort-desc":i,"sort-asc":t}};function Wwe(i,t){if(1&i){const e=pe();u(0,"th",54),N("click",function(){const o=R(e).$implicit;return L(g(2).sort(o))}),w(1,jwe,2,1,"span",55),w(2,$we,2,0,"span",27),w(3,zwe,1,1,"input",56),c()}if(2&i){const e=t.$implicit;p("ngClass",yi(5,jV,"desc"==e.sortDir,"asc"==e.sortDir))("ngStyle",Ct(8,$s,e.actualWidth)),h(1),p("ngIf",e.header),h(1),p("ngIf",!e.header),h(1),p("ngIf","select"==e.fieldType)}}function Gwe(i,t){if(1&i&&(u(0,"div",75),m(1),Qt(2,"datePrinter"),c()),2&i){const e=g().$implicit,n=g().$implicit;h(1),Ke(" ",Xt(2,1,n[e.fieldName])," ")}}function qwe(i,t){if(1&i&&(u(0,"div",75),m(1),Qt(2,"timePrinter"),c()),2&i){const e=g().$implicit,n=g().$implicit;h(1),Ke(" ",Xt(2,1,n[e.fieldName])," ")}}function Kwe(i,t){if(1&i&&(u(0,"div",76),m(1),Qt(2,"dateTimePrinter"),c()),2&i){const e=g().$implicit,n=g().$implicit;h(1),Ke(" ",Xt(2,1,n[e.fieldName])," ")}}function Zwe(i,t){if(1&i){const e=pe();u(0,"div",77),N("click",function(r){R(e);const o=g(2).$implicit;return g(2).rowSelectedWithTag("remove",o),L(r.stopPropagation())}),H(1,"i",78),c()}}function Qwe(i,t){if(1&i&&(u(0,"div",79),m(1),Qt(2,"moneyPrinter"),c()),2&i){const e=g().$implicit,n=g().$implicit,r=g(2);h(1),Ke(" ",Xt(2,1,r.getContent(n,e))," ")}}function Xwe(i,t){1&i&&H(0,"i",81)}function Jwe(i,t){if(1&i&&(u(0,"div",79),m(1),w(2,Xwe,1,0,"i",80),c()),2&i){const e=g(2).$implicit;h(1),Gr(" (",e.discussionsOpen,"/",e.discussionsTotal,")"),h(1),p("ngIf",e.discussionsOpen>0)}}function e2e(i,t){if(1&i){const e=pe();u(0,"div",82)(1,"a",37),N("click",function(r){R(e);const o=g().$implicit,a=g().$implicit;return g(2).sendEmail(a[o.fieldName]),L(r.stopPropagation())}),m(2),c()()}if(2&i){const e=g().$implicit,n=g().$implicit;p("ngStyle",Ct(2,$s,e.actualWidth)),h(2),Re(n[e.fieldName])}}function t2e(i,t){if(1&i){const e=pe();u(0,"div",83)(1,"a",37),N("click",function(r){R(e);const o=g().$implicit,a=g().$implicit;return g(2).makePhoneCall(a[o.fieldName]),L(r.stopPropagation())}),m(2),c()()}if(2&i){const e=g().$implicit,n=g().$implicit;h(2),Re(n[e.fieldName])}}function n2e(i,t){if(1&i&&(u(0,"div",83),m(1),Qt(2,"lastAccessPrinter"),c()),2&i){const e=g().$implicit,n=g().$implicit;h(1),Ke(" ",Xt(2,1,n[e.fieldName])," ")}}function i2e(i,t){if(1&i&&(u(0,"div",84),m(1),c()),2&i){const e=g().$implicit,n=g().$implicit,r=g(2);h(1),Ke(" ",r.getContent(n,e)," ")}}function r2e(i,t){if(1&i&&(u(0,"div",79),m(1),Qt(2,"trueFalsePrinter"),c()),2&i){const e=g().$implicit,n=g().$implicit;h(1),Ke(" ",Xt(2,1,n[e.fieldName])," ")}}function o2e(i,t){if(1&i){const e=pe();u(0,"div",85),N("click",function(r){R(e);const o=g().$implicit,a=g().$implicit;return g(2).rowSelectedWithTag(o.tag,a),L(r.stopPropagation())}),H(1,"i",86),c()}if(2&i){const e=g().$implicit;h(1),gl("far ",e.iconName," action")}}function a2e(i,t){if(1&i&&(u(0,"div"),H(1,"div",87),c()),2&i){const e=g().$implicit,n=g().$implicit,r=g(2);h(1),p("innerHTML",r.getContent(n,e),Un)}}function s2e(i,t){if(1&i){const e=pe();u(0,"div",88)(1,"input",89),N("change",function(){R(e);const r=g(2).$implicit;return L(g(2).rowSelected(r))})("ngModelChange",function(r){return R(e),L(g(2).$implicit.selected=r)}),c()()}if(2&i){const e=g(2).$implicit;h(1),p("ngModel",e.selected)}}const Ud=function(i,t){return{"fa-star":i,"fa-star-o":t}};function l2e(i,t){if(1&i&&(u(0,"div"),H(1,"i",90)(2,"i",91)(3,"i",91)(4,"i",91)(5,"i",91),c()),2&i){const e=g(2).$implicit,n=g().$implicit;h(2),p("ngClass",yi(4,Ud,n[e.fieldName]>=2,n[e.fieldName]<2)),h(1),p("ngClass",yi(7,Ud,n[e.fieldName]>=3,n[e.fieldName]<3)),h(1),p("ngClass",yi(10,Ud,n[e.fieldName]>=4,n[e.fieldName]<4)),h(1),p("ngClass",yi(13,Ud,n[e.fieldName]>=5,n[e.fieldName]<5))}}function c2e(i,t){if(1&i&&(u(0,"div"),w(1,l2e,6,16,"div",27),c()),2&i){const e=g().$implicit,n=g().$implicit;h(1),p("ngIf",n[e.fieldName]>0)}}function d2e(i,t){1&i&&H(0,"i",94),2&i&&gl("fas ",g(2).$implicit.iconName," action")}function u2e(i,t){if(1&i&&(u(0,"div",92),w(1,d2e,1,3,"i",93),c()),2&i){const e=g().$implicit,n=g().$implicit;h(1),p("ngIf",n[e.fieldName])}}function h2e(i,t){1&i&&H(0,"i",97)}function p2e(i,t){if(1&i&&H(0,"nuv-icon",98),2&i){const e=g(2).$implicit;p("iconName",g().$implicit[e.fieldName])}}function f2e(i,t){if(1&i&&(u(0,"div",79),w(1,h2e,1,0,"i",95),w(2,p2e,1,1,"nuv-icon",96),c()),2&i){const e=g().$implicit;h(1),p("ngIf",e.iconName),h(1),p("ngIf",e.fieldName)}}function g2e(i,t){if(1&i){const e=pe();u(0,"span",37),N("click",function(r){R(e);const o=g(2).$implicit,a=g().$implicit;return g(2).rowSelectedWithTag(o.tag,a),L(r.stopPropagation())}),m(1),c()}if(2&i){const e=g(2).$implicit,n=g().$implicit,r=g(2);h(1),Ke(" ",r.getContent(n,e)," ")}}function m2e(i,t){if(1&i&&(u(0,"span",104),m(1),Qt(2,"lastAccessPrinter"),c()),2&i){const e=g(4).$implicit;h(1),Ke("* Draft ",Xt(2,1,e.lastUpdatedDate),"")}}function _2e(i,t){if(1&i&&(u(0,"div",102),m(1),w(2,m2e,3,3,"span",103),c()),2&i){const e=g(2).$implicit,n=g().$implicit,r=g(2);h(1),Ke(" ",r.getContent(n,e)," "),h(1),p("ngIf",n.isDraft&&"name"==e.fieldName)}}function v2e(i,t){if(1&i&&(u(0,"div",99),w(1,g2e,2,1,"span",100),w(2,_2e,3,2,"div",101),c()),2&i){const e=g().$implicit;p("ngStyle",Ct(3,$s,e.actualWidth)),h(1),p("ngIf",e.tag),h(1),p("ngIf",!e.tag)}}const $V=function(i){return{action:i}};function y2e(i,t){if(1&i&&(u(0,"td",61),w(1,Gwe,3,3,"div",62),w(2,qwe,3,3,"div",62),w(3,Kwe,3,3,"div",63),w(4,Zwe,2,0,"div",64),w(5,Qwe,3,3,"div",65),w(6,Jwe,3,3,"div",65),w(7,e2e,3,4,"div",66),w(8,t2e,3,1,"div",67),w(9,n2e,3,3,"div",67),w(10,i2e,2,1,"div",68),w(11,r2e,3,3,"div",65),w(12,o2e,2,3,"div",69),w(13,a2e,2,1,"div",70),w(14,s2e,2,1,"div",71),w(15,c2e,2,1,"div",70),w(16,u2e,2,1,"div",72),w(17,f2e,3,2,"div",73),w(18,v2e,3,5,"div",74),c()),2&i){const e=t.$implicit;p("ngSwitch",e.fieldType)("ngStyle",Ct(20,$s,e.actualWidth))("ngClass",Ct(22,$V,e.isAction)),h(1),p("ngSwitchCase","date-only"),h(1),p("ngSwitchCase","time-only"),h(1),p("ngSwitchCase","date-time"),h(1),p("ngSwitchCase","remove"),h(1),p("ngSwitchCase","currency"),h(1),p("ngSwitchCase","discussion-counts"),h(1),p("ngSwitchCase","email"),h(1),p("ngSwitchCase","phone"),h(1),p("ngSwitchCase","lastaccess"),h(1),p("ngSwitchCase","number"),h(1),p("ngSwitchCase","yes-no"),h(1),p("ngSwitchCase","icon-button"),h(1),p("ngSwitchCase","html"),h(1),p("ngSwitchCase","select"),h(1),p("ngSwitchCase","stars"),h(1),p("ngSwitchCase","icon-conditional"),h(1),p("ngSwitchCase","icon")}}const b2e=function(i){return{deleted:i}};function C2e(i,t){if(1&i){const e=pe();u(0,"tr",58),N("click",function(){const o=R(e).$implicit;return L(g(2).rowTapped(o))}),w(1,y2e,19,24,"td",59),H(2,"td",60),c()}if(2&i){const e=t.$implicit,n=g(2);p("ngClass",Ct(2,b2e,e.isDeleted)),h(1),p("ngForOf",null==n.columns?null:n.columns.visibleColumns)}}const zV=function(i){return{"height.px":i}};function w2e(i,t){if(1&i){const e=pe();u(0,"table",47,48)(2,"thead",49)(3,"tr"),w(4,Wwe,4,10,"th",50),u(5,"th",51)(6,"span"),m(7,"\xa0"),c()()()(),u(8,"tbody",52),N("scroll",function(r){return R(e),L(g().contentScroll(r))}),w(9,C2e,3,4,"tr",53),c()()}if(2&i){const e=g();h(4),p("ngForOf",null==e.columns?null:e.columns.visibleColumns),h(4),p("ngStyle",Ct(3,zV,e.scrollableHeight)),h(1),p("ngForOf",e.currentPageDataSet)}}function D2e(i,t){if(1&i&&(u(0,"span"),m(1),c()),2&i){const e=g(2);h(1),rc(" Showing ",e.recordStartCount+1," to ",e.recordEndCount," of ",e.recordCount," entries. ")}}function M2e(i,t){1&i&&(u(0,"span"),m(1," No Data "),c())}const WV=function(i,t){return{current:i,pageEnabled:t}};function x2e(i,t){if(1&i){const e=pe();u(0,"a",110),N("click",function(){const o=R(e).$implicit;return L(g(3).showPage(o))}),m(1),c()}if(2&i){const e=t.$implicit;p("ngClass",yi(2,WV,e.current,e.enabled)),h(1),Re(e.name)}}function k2e(i,t){if(1&i){const e=pe();u(0,"a",37),N("click",function(){return R(e),L(g(3).loadMore())}),m(1,"Load More"),c()}}function T2e(i,t){if(1&i&&(u(0,"div",107),w(1,x2e,2,5,"a",108),w(2,k2e,2,0,"a",109),c()),2&i){const e=g(2);h(1),p("ngForOf",e.pages),h(1),p("ngIf",e.listResponse&&e.listResponse.hasMoreRecords)}}function S2e(i,t){if(1&i&&(u(0,"div",105),w(1,D2e,2,3,"span",27),w(2,M2e,2,0,"span",27),w(3,T2e,3,2,"div",106),c()),2&i){const e=g();p("ngStyle",Ct(4,$s,e.tableWidth+32)),h(1),p("ngIf",e.recordCount>0),h(1),p("ngIf",0==e.recordCount),h(1),p("ngIf",e.pages&&e.pages.length>1||e.listResponse&&e.listResponse.hasMoreRecords)}}function E2e(i,t){if(1&i&&(u(0,"span",57),m(1),c()),2&i){const e=g().$implicit;h(1),Ke(" ",e.header,"")}}function A2e(i,t){1&i&&(u(0,"span"),m(1,"\xa0"),c())}function I2e(i,t){if(1&i){const e=pe();u(0,"input",6),N("ngModelChange",function(r){return R(e),L(g(3).selectAll=r)}),c()}2&i&&p("ngModel",g(3).selectAll)}function F2e(i,t){if(1&i){const e=pe();u(0,"th",54),N("click",function(){const o=R(e).$implicit;return L(g(2).sort(o))}),w(1,E2e,2,1,"span",55),w(2,A2e,2,0,"span",27),w(3,I2e,1,1,"input",56),c()}if(2&i){const e=t.$implicit;p("ngClass",yi(5,jV,"desc"==e.sortDir,"asc"==e.sortDir))("ngStyle",Ct(8,$s,e.actualWidth)),h(1),p("ngIf",e.header),h(1),p("ngIf",!e.header),h(1),p("ngIf","select"==e.fieldType)}}function P2e(i,t){if(1&i&&(u(0,"div",75),m(1),Qt(2,"datePrinter"),c()),2&i){const e=g().$implicit,n=g().$implicit;h(1),Ke(" ",Xt(2,1,n[e.fieldName])," ")}}function R2e(i,t){if(1&i&&(u(0,"div",75),m(1),Qt(2,"timePrinter"),c()),2&i){const e=g().$implicit,n=g().$implicit;h(1),Ke(" ",Xt(2,1,n[e.fieldName])," ")}}function L2e(i,t){if(1&i&&(u(0,"div",76),m(1),Qt(2,"dateTimePrinter"),c()),2&i){const e=g().$implicit,n=g().$implicit;h(1),Ke(" ",Xt(2,1,n[e.fieldName])," ")}}function O2e(i,t){if(1&i){const e=pe();u(0,"div",77),N("click",function(r){R(e);const o=g(2).$implicit;return g(2).rowSelectedWithTag("remove",o),L(r.stopPropagation())}),H(1,"i",78),c()}}function N2e(i,t){if(1&i&&(u(0,"div",79),m(1),Qt(2,"moneyPrinter"),c()),2&i){const e=g().$implicit,n=g().$implicit,r=g(2);h(1),Ke(" ",Xt(2,1,r.getContent(n,e))," ")}}function B2e(i,t){if(1&i){const e=pe();u(0,"div",82)(1,"a",37),N("click",function(r){R(e);const o=g().$implicit,a=g().$implicit;return g(2).sendEmail(a[o.fieldName]),L(r.stopPropagation())}),m(2),c()()}if(2&i){const e=g().$implicit,n=g().$implicit;p("ngStyle",Ct(2,$s,e.actualWidth)),h(2),Re(n[e.fieldName])}}function V2e(i,t){if(1&i){const e=pe();u(0,"div",83)(1,"a",37),N("click",function(r){R(e);const o=g().$implicit,a=g().$implicit;return g(2).makePhoneCall(a[o.fieldName]),L(r.stopPropagation())}),m(2),c()()}if(2&i){const e=g().$implicit,n=g().$implicit;h(2),Re(n[e.fieldName])}}function H2e(i,t){if(1&i&&(u(0,"div",83),m(1),Qt(2,"lastAccessPrinter"),c()),2&i){const e=g().$implicit,n=g().$implicit;h(1),Ke(" ",Xt(2,1,n[e.fieldName])," ")}}function Y2e(i,t){if(1&i&&(u(0,"div",84),m(1),c()),2&i){const e=g().$implicit,n=g().$implicit,r=g(2);h(1),Ke(" ",r.getContent(n,e)," ")}}function U2e(i,t){if(1&i&&(u(0,"div",79),m(1),Qt(2,"trueFalsePrinter"),c()),2&i){const e=g().$implicit,n=g().$implicit;h(1),Ke(" ",Xt(2,1,n[e.fieldName])," ")}}function j2e(i,t){if(1&i){const e=pe();u(0,"div",85),N("click",function(r){R(e);const o=g().$implicit,a=g().$implicit;return g(2).rowSelectedWithTag(o.tag,a),L(r.stopPropagation())}),H(1,"i",86),c()}if(2&i){const e=g().$implicit;h(1),gl("far ",e.iconName," action")}}function $2e(i,t){if(1&i&&(u(0,"div"),H(1,"div",87),c()),2&i){const e=g().$implicit,n=g().$implicit,r=g(2);h(1),p("innerHTML",r.getContent(n,e),Un)}}function z2e(i,t){if(1&i){const e=pe();u(0,"div",88)(1,"input",89),N("change",function(){R(e);const r=g(2).$implicit;return L(g(2).rowSelected(r))})("ngModelChange",function(r){return R(e),L(g(2).$implicit.selected=r)}),c()()}if(2&i){const e=g(2).$implicit;h(1),p("ngModel",e.selected)}}function W2e(i,t){if(1&i&&(u(0,"div"),H(1,"i",90)(2,"i",91)(3,"i",91)(4,"i",91)(5,"i",91),c()),2&i){const e=g(2).$implicit,n=g().$implicit;h(2),p("ngClass",yi(4,Ud,n[e.fieldName]>=2,n[e.fieldName]<2)),h(1),p("ngClass",yi(7,Ud,n[e.fieldName]>=3,n[e.fieldName]<3)),h(1),p("ngClass",yi(10,Ud,n[e.fieldName]>=4,n[e.fieldName]<4)),h(1),p("ngClass",yi(13,Ud,n[e.fieldName]>=5,n[e.fieldName]<5))}}function G2e(i,t){if(1&i&&(u(0,"div"),w(1,W2e,6,16,"div",27),c()),2&i){const e=g().$implicit,n=g().$implicit;h(1),p("ngIf",n[e.fieldName]>0)}}function q2e(i,t){1&i&&H(0,"i",94),2&i&&gl("fas ",g(2).$implicit.iconName," action")}function K2e(i,t){if(1&i&&(u(0,"div",92),w(1,q2e,1,3,"i",93),c()),2&i){const e=g().$implicit,n=g().$implicit;h(1),p("ngIf",n[e.fieldName])}}function Z2e(i,t){1&i&&H(0,"i",97)}function Q2e(i,t){if(1&i&&H(0,"nuv-icon",98),2&i){const e=g(2).$implicit;p("iconName",g().$implicit[e.fieldName])}}function X2e(i,t){if(1&i&&(u(0,"div",79),w(1,Z2e,1,0,"i",95),w(2,Q2e,1,1,"nuv-icon",96),c()),2&i){const e=g().$implicit;h(1),p("ngIf",e.iconName),h(1),p("ngIf",e.fieldName)}}function J2e(i,t){if(1&i){const e=pe();u(0,"span",37),N("click",function(r){R(e);const o=g(2).$implicit,a=g().$implicit;return g(2).rowSelectedWithTag(o.tag,a),L(r.stopPropagation())}),m(1),c()}if(2&i){const e=g(2).$implicit,n=g().$implicit,r=g(2);h(1),Ke(" ",r.getContent(n,e)," ")}}function eDe(i,t){if(1&i&&(u(0,"div",102),m(1),c()),2&i){const e=g(2).$implicit,n=g().$implicit,r=g(2);h(1),Ke(" ",r.getContent(n,e)," ")}}function tDe(i,t){if(1&i&&(u(0,"div",99),w(1,J2e,2,1,"span",100),w(2,eDe,2,1,"div",101),c()),2&i){const e=g().$implicit;p("ngStyle",Ct(3,$s,e.actualWidth)),h(1),p("ngIf",e.tag),h(1),p("ngIf",!e.tag)}}function nDe(i,t){if(1&i&&(u(0,"td",61),w(1,P2e,3,3,"div",62),w(2,R2e,3,3,"div",62),w(3,L2e,3,3,"div",63),w(4,O2e,2,0,"div",64),w(5,N2e,3,3,"div",65),w(6,B2e,3,4,"div",66),w(7,V2e,3,1,"div",67),w(8,H2e,3,3,"div",67),w(9,Y2e,2,1,"div",68),w(10,U2e,3,3,"div",65),w(11,j2e,2,3,"div",69),w(12,$2e,2,1,"div",70),w(13,z2e,2,1,"div",71),w(14,G2e,2,1,"div",70),w(15,K2e,2,1,"div",72),w(16,X2e,3,2,"div",73),w(17,tDe,3,5,"div",74),c()),2&i){const e=t.$implicit;p("ngSwitch",e.fieldType)("ngStyle",Ct(19,$s,e.actualWidth))("ngClass",Ct(21,$V,e.isAction)),h(1),p("ngSwitchCase","date-only"),h(1),p("ngSwitchCase","time-only"),h(1),p("ngSwitchCase","date-time"),h(1),p("ngSwitchCase","remove"),h(1),p("ngSwitchCase","currency"),h(1),p("ngSwitchCase","email"),h(1),p("ngSwitchCase","phone"),h(1),p("ngSwitchCase","lastaccess"),h(1),p("ngSwitchCase","number"),h(1),p("ngSwitchCase","yes-no"),h(1),p("ngSwitchCase","icon-button"),h(1),p("ngSwitchCase","html"),h(1),p("ngSwitchCase","select"),h(1),p("ngSwitchCase","stars"),h(1),p("ngSwitchCase","icon-conditional"),h(1),p("ngSwitchCase","icon")}}function iDe(i,t){if(1&i){const e=pe();u(0,"tr",112),N("click",function(){const o=R(e).$implicit;return L(g(2).rowTapped(o))}),w(1,nDe,18,23,"td",59),H(2,"td",60),c()}if(2&i){const e=g(2);h(1),p("ngForOf",null==e.columns?null:e.columns.visibleColumns)}}function rDe(i,t){if(1&i){const e=pe();u(0,"table",47,48)(2,"thead",49)(3,"tr"),w(4,F2e,4,10,"th",50),u(5,"th",51)(6,"span"),m(7,"\xa0"),c()()()(),u(8,"tbody",52),N("scroll",function(r){return R(e),L(g().contentScroll(r))}),w(9,iDe,3,1,"tr",111),c()()}if(2&i){const e=g();h(4),p("ngForOf",null==e.columns?null:e.columns.visibleColumns),h(4),p("ngStyle",Ct(3,zV,e.scrollableHeight)),h(1),p("ngForOf",e.currentPageDataSet)}}function oDe(i,t){if(1&i&&(u(0,"span"),m(1),c()),2&i){const e=g(2);h(1),rc(" Showing ",e.recordStartCount+1," to ",e.recordEndCount," of ",e.recordCount," entries. ")}}function aDe(i,t){1&i&&(u(0,"span"),m(1," No Data "),c())}function sDe(i,t){if(1&i){const e=pe();u(0,"a",110),N("click",function(){const o=R(e).$implicit;return L(g(3).showPage(o))}),m(1),c()}if(2&i){const e=t.$implicit;p("ngClass",yi(2,WV,e.current,e.enabled)),h(1),Re(e.name)}}function lDe(i,t){if(1&i){const e=pe();u(0,"a",37),N("click",function(){return R(e),L(g(3).loadMore())}),m(1,"Load More"),c()}}function cDe(i,t){if(1&i&&(u(0,"div",107),w(1,sDe,2,5,"a",108),w(2,lDe,2,0,"a",109),c()),2&i){const e=g(2);h(1),p("ngForOf",e.pages),h(1),p("ngIf",e.listResponse&&e.listResponse.hasMoreRecords)}}function dDe(i,t){if(1&i&&(u(0,"div",105),w(1,oDe,2,3,"span",27),w(2,aDe,2,0,"span",27),w(3,cDe,3,2,"div",106),c()),2&i){const e=g();p("ngStyle",Ct(4,$s,e.tableWidth+32)),h(1),p("ngIf",e.recordCount>0),h(1),p("ngIf",0==e.recordCount),h(1),p("ngIf",e.pages&&e.pages.length>1||e.listResponse&&e.listResponse.hasMoreRecords)}}function uDe(i,t){if(1&i){const e=pe();u(0,"i",21),N("click",function(){return R(e),L(g(2).donePressed())}),c()}}function hDe(i,t){if(1&i){const e=pe();u(0,"i",22),N("click",function(){return R(e),L(g(2).addFavorite())}),c()}}function pDe(i,t){if(1&i){const e=pe();u(0,"i",23),N("click",function(){return R(e),L(g(2).clearFavorite())}),c()}}function fDe(i,t){if(1&i&&(u(0,"h1",113),w(1,uDe,1,0,"i",16),H(2,"nuv-icon",17),u(3,"span",18),m(4),c(),w(5,hDe,1,0,"i",19),w(6,pDe,1,0,"i",20),c()),2&i){const e=g();h(1),p("ngIf",e.doneVisible),h(1),p("iconName",e.listResponse.icon),h(2),Ke(" ",e.listResponse.title," "),h(1),p("ngIf",!e.favorite),h(1),p("ngIf",e.favorite)}}function gDe(i,t){if(1&i){const e=pe();u(0,"span",37),N("click",function(){return R(e),L(g(2).add.emit())}),H(1,"i",45),u(2,"span",116),m(3,"Add"),c()()}}function mDe(i,t){if(1&i&&(u(0,"div",122),H(1,"nuv-icon",98),c()),2&i){const e=g().$implicit;h(1),p("iconName",e.icon)}}function _De(i,t){if(1&i){const e=pe();u(0,"span",37),N("click",function(r){R(e);const o=g(2).$implicit,a=g().$implicit;return g(2).rowSelectedWithTag(o.tag,a),L(r.stopPropagation())}),m(1),c()}if(2&i){const e=g(2).$implicit,n=g().$implicit,r=g(2);h(1),Ke(" ",r.getContent(n,e)," ")}}function vDe(i,t){if(1&i&&(u(0,"div",102),m(1),c()),2&i){const e=g(2).$implicit,n=g().$implicit,r=g(2);h(1),Ke(" ",r.getContent(n,e)," ")}}function yDe(i,t){if(1&i&&(u(0,"div",125)(1,"div",126)(2,"div",127)(3,"label",128),m(4),c()(),u(5,"div",129),w(6,_De,2,1,"span",100),u(7,"button",130),H(8,"i",131),c(),w(9,vDe,2,1,"div",132),c()()()),2&i){const e=g().$implicit;h(4),Re(e.header),h(2),p("ngIf",e.tag),h(3),p("ngIf",!e.tag)}}function bDe(i,t){1&i&&(u(0,"div",123),w(1,yDe,10,3,"div",124),c()),2&i&&p("ngSwitch",t.$implicit.fieldType)}function CDe(i,t){if(1&i){const e=pe();u(0,"div",117),N("click",function(){const o=R(e).$implicit;return L(g(2).rowTapped(o))})("cdkDragMoved",function(r){const a=R(e).$implicit;return L(g(2).onDragMoved(r,a))})("cdkDragEnded",function(r){const a=R(e).$implicit;return L(g(2).onDragEnd(r,a))}),u(1,"div",118),w(2,mDe,2,1,"div",119),u(3,"div",120),w(4,bDe,2,1,"div",121),c()()()}if(2&i){const e=t.$implicit,n=t.index,r=g(2);p("cdkDragData",n)("cdkDragStartDelay",25),h(2),p("ngIf",e.icon),h(2),p("ngForOf",null==r.columns?null:r.columns.visibleColumns)}}function wDe(i,t){if(1&i&&(u(0,"div",114),w(1,gDe,4,0,"span",100),w(2,CDe,5,4,"div",115),c()),2&i){const e=g();h(1),p("ngIf",e.addVisible),h(1),p("ngForOf",e.currentPageDataSet)}}const DDe=[[["","id","columns"]],"*"],MDe=["#columns","*"];class Dv{fieldName;visibleFieldName;content;isAction;header;fieldType;width;sortDir="none";sortable="false";iconName="";tag="";mobileColumn=!0;actualWidth="100";static \u0275fac=function(e){return new(e||Dv)};static \u0275cmp=Be({type:Dv,selectors:[["grid-column"]],inputs:{fieldName:"fieldName",visibleFieldName:"visibleFieldName",content:"content",isAction:"isAction",header:"header",fieldType:"fieldType",width:"width",sortable:"sortable",iconName:"iconName",tag:"tag",mobileColumn:"mobileColumn"},decls:0,vars:0,template:function(e,n){},encapsulation:2})}class Yf{_cols;widths=[];set columns(t){this._cols=t,this.resize()}get columns(){return this._cols}visibleColumns;isMobile=!1;resize(t,e){let n=e;if(!n){let d=$("#fullWidth").get()[0];if(null==d)return-1;n=d.getBoundingClientRect().width;var r=window.innerWidth;r<480?n=r:(t&&td.mobileColumn):this.columns.toArray();for(let d of this.visibleColumns)d.width?(this.widths.push(d.width),d.width.indexOf("*")>-1?a.push({col:s,width:d.width}):o+=parseInt(d.width)):(this.widths.push("*"),a.push({col:s})),s++;if(n){let d=n-o;for(let f of a)this.widths[f.col]=(d/a.length).toString()}s=0;for(let d of this.visibleColumns)d.actualWidth=this.widths[s++];var l=0;for(let d of this.widths)l+=parseInt(d);return l}return 0}static \u0275fac=function(e){return new(e||Yf)};static \u0275cmp=Be({type:Yf,selectors:[["grid-columns"]],contentQueries:function(e,n,r){if(1&e&&En(r,Dv,4),2&e){let o;pt(o=ft())&&(n.columns=o)}},ngContentSelectors:xwe,decls:1,vars:0,template:function(e,n){1&e&&(ro(Mwe),Ei(0))},encapsulation:2})}class gw{nuviotClient;route;router;menuService;mruService;location;favoriteService;popupService;storage;_dataSet;_scrollableHeight=400;_topMargin=50;_bottomMargin=30;_onDataChange;_onHeaderClickSubscription;root="";isVisible=!0;dragStartX=0;threshold=-150;tableWidth=0;_cols;debug=!0;filterVisible=!1;currentPageDataSet;resizeObservable$;resizeSubscription$;favorite;constructor(t,e,n,r,o,a,s,l,d){this.nuviotClient=t,this.route=e,this.router=n,this.menuService=r,this.mruService=o,this.location=a,this.favoriteService=s,this.popupService=l,this.storage=d,this.root="/public",this._onHeaderClickSubscription=r.onHeaderClick.subscribe(y=>{switch(y){case"filter":this.filterVisible=!this.filterVisible,window.setTimeout(()=>{this.resizeHeight()});break;case"add":this.add.emit()}});var f=navigator.userAgent;this.filterVisible=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(f)}selectedCategory="-1";select=new Ae;add=new Ae;done=new Ae;selectedRowsChanged=new Ae;delete=new Ae;selectWithTag=new Ae;searchServer=new Ae;remove=new Ae;fullWidthElement;doneVisible=!1;_addVisible=!1;get addVisible(){return this._addVisible}set addVisible(t){this._addVisible=t}get selectedRecords(){return this._dataSet?this._dataSet?.filter(t=>t.selected):[]}onDragStart(t){this.dragStartX=t.pointerPosition.x}onDragMoved(t,e){const n=t.distance.x;this.draggingItem=e,n>0&&t.source._dragRef.reset()}draggingItem=null;onDragEnd(t,e){t.source.getFreeDragPosition().x-this.dragStartX{this._dataSet=this._pagedData.items,e?(this.filteredSet=this._dataSet,this.currentPage=1,this.setPagedDataSet()):this.refreshData(),setTimeout(()=>{this.menuService.filterVisible=!0,this.menuService.backVisible=!0,this.menuService.addVisible=this.addVisible,this.resizeHeight()},100)}))}get data(){return this._pagedData}_listResponse;setFavorite(){var t=this;return z(function*(){let n=(yield t.favoriteService.getUserFavorites()).modules.find(r=>"public"==r.moduleKey);n&&(t.favorite=n.items.find(r=>r.link==t.router.url))})()}serverSideSearch=!1;set listResponse(t){if(this._listResponse=t,t){this.data=new dw(t);let e=window.location.pathname,n=e.substring(1).split("/");this.addMru&&this.mruService.addMRU({name:t.title,type:"List",moduleKey:"public",icon:t.icon,summary:t.help,route:n,link:e}),this.setFavorite(),setTimeout(()=>{this.menuService.filterVisible=!0,this.menuService.backVisible=!0,this.menuService.addVisible=this.addVisible,this.resizeHeight()},500)}}get listResponse(){return this._listResponse}set standardFields(t){t&&(this.columns=new Yf,this.columns.columns=new cd,this.columns.columns.reset([{fieldName:"icon",header:"",width:"64",fieldType:"icon",actualWidth:"64",sortable:"false",sortDir:"none"},{fieldName:"name",mobileColumn:!0,header:"Name",width:"*",fieldType:"text",actualWidth:"200",sortable:"true",sortDir:"none"},{fieldName:"category",mobileColumn:!0,header:"Category",width:"150",fieldType:"text",actualWidth:"150",sortable:"true",sortDir:"none"},{header:"",width:"60",fieldType:"remove",actualWidth:"60",sortable:"false",sortDir:"none"}]))}setScrollableHeight(){this.scrollableHeight=window.innerHeight-(this._topMargin+300)}get topMargin(){return this._topMargin.toString()}set topMargin(t){this._topMargin=parseInt(t),this.setScrollableHeight()}get bottomMargin(){return this._bottomMargin.toString()}set bottomMargin(t){this._bottomMargin=parseInt(t),this.setScrollableHeight()}_selectAll=!1;get selectAll(){return this._selectAll}set selectAll(t){if(this._selectAll=t,this.currentPageDataSet)for(let e of this.currentPageDataSet)e.selected=t;this.selectedRowsChanged.emit(this.selectedRecords)}get scrollableHeight(){return this.fixedHeight?Number.parseInt(this.fixedHeight):this._scrollableHeight}set scrollableHeight(t){this._scrollableHeight=t}_fixedHeight;_fixedWidth;tableTitle="";tableIcon;addMru=!0;showTitleBlock=!0;set fixedWidth(t){this._fixedWidth=t?parseInt(t):void 0}get fixedWidth(){return this._fixedWidth?this._fixedWidth.toString():void 0}set fixedHeight(t){this._fixedHeight=t?parseInt(t):void 0}get fixedHeight(){return this._fixedHeight?this._fixedHeight.toString():void 0}_searchText;set searchText(t){this._searchText=t,this.searchNow()}get searchText(){return this._searchText}columnFilter(t,e,n){for(let r of n){const o=t[r.fieldName]?.toString().toLowerCase();if(o&&o.indexOf(e)>-1)return!0}return!1}sortColumn;refreshData(){let t;if(this.searchText){const e=this.searchText.toLowerCase();t=this.dataSet.filter(n=>this.columnFilter(n,e,this.columns.columns))}else t=this.dataSet;this.selectedCategory&&"-1"!=this.selectedCategory&&(t=t.filter(e=>e.categoryKey==this.selectedCategory)),console.log("Filtered",t,this.selectedCategory,this.searchText),this.filteredSet=t,this.sortColumn&&("asc"==this.sortColumn.sortDir?this.filteredSet.sort((e,n)=>e[this.sortColumn.fieldName]>n[this.sortColumn.fieldName]?1:-1):"desc"==this.sortColumn.sortDir&&this.filteredSet.sort((e,n)=>e[this.sortColumn.fieldName]>n[this.sortColumn.fieldName]?-1:1)),this.setPagedDataSet()}serverSearch(){this.searchText?this.searchServer.emit(this.searchText):this.filteredSet=this.dataSet}searchNow(){if(!this.serverSideSearch){if(this.searchText){const t=this.searchText.toLowerCase();this.filteredSet=this.dataSet.filter(e=>this.columnFilter(e,t,this.columns.columns))}else this.filteredSet=this.dataSet;this.currentPage=1,this.setPagedDataSet()}}filteredSet=[];pages=[];get dataSet(){return this._dataSet}set dataSet(t){t?(this._dataSet=t,this.filteredSet=this._dataSet,this.currentPage=1,this.setPagedDataSet(),this.resizeHeight()):(this._dataSet=null,this.currentPage=1,this.filteredSet=null)}setPagedDataSet(){var t=this;return z(function*(){if(t.filteredSet){yield t.restoreGridView(),t.recordCount=t.filteredSet.length,t.totalPages=Math.floor(t.recordCount/t.pageSize)+1,t.recordStartCount=(t.currentPage-1)*t.pageSize,t.recordEndCount=t.recordStartCount+t.pageSize,t.recordEndCount=Math.min(t.recordEndCount,t.filteredSet.length),t.currentPageDataSet=t.filteredSet.slice(t.recordStartCount,t.recordEndCount);let e=!0;for(let n of t.currentPageDataSet)e=n.selected&&e;if(t.selectAll=e,t.pages=[],t.totalPages>1){t.pages.push({enabled:t.currentPage>1,name:"Previous",current:!1,visible:!0});for(let n=0;n{let o=this.columns?.resize(this.maxWidth,this._fixedWidth);o>0?(this.tableWidth=o,window.clearInterval(r)):this.tableWidth=600},100)}ngOnInit(){var t=this;return z(function*(){t.resizeObservable$=yn(window,"resize"),t.resizeSubscription$=t.resizeObservable$.subscribe(e=>{e&&t.resizeHeight()})})()}ngOnDestroy(){this.resizeSubscription$&&(this.resizeSubscription$.unsubscribe(),this.resizeSubscription$=void 0),this._onHeaderClickSubscription.unsubscribe(),this.menuService.addVisible=!1,this.menuService.filterVisible=!1,this.menuService.cancelVisible=!1}showPage(t){"Previous"==t.name?this.currentPage>1&&(this.currentPage--,this.setPagedDataSet()):"Next"==t.name?this.currentPages[r]>l[r]?1:-1);let a=t.columns.columns.find(s=>s.fieldName==r);a?a.sortDir="asc":console.error("[SLTable__restoreGridView] - could not find column",r)}else if("desc"===o){t.filteredSet.sort((s,l)=>s[r]>l[r]?-1:1);let a=t.columns.columns.find(s=>s.fieldName==r);a?a.sortDir="desc":console.error("[SLTable__restoreGridView] - could not find column",r)}}t.resizeHeight()})()}sort(t){var e=this;return z(function*(){if(e.sortColumn=t,"true"===t.sortable){if("none"==t.sortDir){for(let n of e.columns.columns)n.sortDir="none";t.sortDir="asc",e.filteredSet.sort((n,r)=>n[t.fieldName]>r[t.fieldName]?1:-1),yield e.storage.setItemAsync(e.getSortKey(),`${t.fieldName}-asc`)}else"asc"==t.sortDir?(t.sortDir="desc",e.filteredSet.sort((n,r)=>n[t.fieldName]>r[t.fieldName]?-1:1),yield e.storage.setItemAsync(e.getSortKey(),`${t.fieldName}-desc`)):"desc"==t.sortDir&&(t.sortDir="asc",e.filteredSet.sort((n,r)=>n[t.fieldName]>r[t.fieldName]?1:-1),yield e.storage.setItemAsync(e.getSortKey(),`${t.fieldName}-asc`));e.currentPage=1,e.setPagedDataSet()}})()}getContent(t,e){if(e.fieldName){let n=e.fieldName.split(".");if(1==n.length)return t[e.fieldName];if(2==n.length)return t[n[0]]?t[n[0]][n[1]]:"";if(3==n.length)return t.field[0]&&t[n[0]][n[1]]?t[n[0]][n[1]][n[2]]:""}else if(e.content)return e.content}rowSelectedWithTag(t,e){var n=this;return z(function*(){if("remove"===t){if(yield n.popupService.showConfirmDelete("item"))if(n.remove.observed)n.remove.emit(e);else{let r=n._dataSet.indexOf(e);if(n.listResponse?.deleteUrl){let o=n.listResponse.deleteUrl.replace("{id}",e.id);(yield n.nuviotClient.delete(o)).successful&&(n.delete?.emit(e),n._dataSet.splice(r,1),n.setPagedDataSet())}else n.delete?.emit(e),n._dataSet.splice(r,1),n.setPagedDataSet()}}else n.selectWithTag.emit({tag:t,data:e})})()}contentScroll(t){let e=t.srcElement;e.scrollHeight-e.clientHeight-t.srcElement.scrollTop<10&&this.listResponse.hasMoreRecords&&this.loadMore()}showDrafts=!1;showDeleted=!1;showDraftsChanged(){var t=this;return z(function*(){let e={nextPartitionKey:t._listResponse.nextPartitionKey,nextRowKey:t._listResponse.nextRowKey,pageIndex:t._listResponse.pageIndex,pageSize:t._listResponse.pageSize,showDeleted:t.showDeleted,showDrafts:t.showDrafts},n=yield t.nuviotClient.getListResponse(t.data.url,e);t._listResponse=n,n.successful&&(t.dataSet=n.model,t.setPagedDataSet(),t.resizeHeight())})()}showDeletedChanged(){var t=this;return z(function*(){let e={nextPartitionKey:t._listResponse.nextPartitionKey,nextRowKey:t._listResponse.nextRowKey,pageIndex:t._listResponse.pageIndex,pageSize:t._listResponse.pageSize,showDeleted:t.showDeleted,showDrafts:t.showDrafts},n=yield t.nuviotClient.getListResponse(t.data.url,e);t._listResponse=n,n.successful&&(t.dataSet=n.model,t.setPagedDataSet(),t.resizeHeight())})()}rowTapped(t){console.log("Row tapped",t),this.select.emit(t)}rowSelected(t){this.selectedRowsChanged.emit(this.selectedRecords)}loading=!1;loadMore(){var t=this;return z(function*(){if(!t.loading){t.loading=!0;let e={nextPartitionKey:t._listResponse.nextPartitionKey,nextRowKey:t._listResponse.nextRowKey,pageIndex:t._listResponse.pageIndex+1,pageSize:t._listResponse.pageSize},n=yield t.nuviotClient.getListResponse(t.data.url,e);t._listResponse=n,n.successful&&(t.dataSet=t.dataSet?t.dataSet.concat(n.model):n.model,t.setPagedDataSet(),t.resizeHeight()),t.loading=!1}})()}addFavorite(){let t=this.router.url.split("/");console.log(t),console.log(this.route.snapshot.url),this.favorite={id:Qn.newGuid(),name:this.listResponse.title,type:"List",moduleKey:"public",icon:this.listResponse.icon,summary:this.listResponse.help,route:t,link:this.router.url},this.favoriteService.addUserFavorites(this.favorite)}clearFavorite(){this.favoriteService.removeUserFavorite(this.favorite.id),this.favorite=void 0}showFilter(){this.filterVisible=!0,window.setTimeout(()=>{this.resizeHeight()})}hideFilter(){this.filterVisible=!1,window.setTimeout(()=>{this.resizeHeight()})}sendEmail(t){window.location.href=`mailto:${t}`}makePhoneCall(t){document.querySelector("#rc-widget-adapter-frame").contentWindow.postMessage({type:"rc-adapter-new-call",phoneNumber:t,toCall:!0},"*")}donePressed(){this.done.observers.length>0?this.done.emit():this.location.back()}static \u0275fac=function(e){return new(e||gw)(U(An),U(bi),U(Ti),U(Hd),U(Mc),U(pd),U(Dc),U(hf),U(co))};static \u0275cmp=Be({type:gw,selectors:[["app-sl-table"]],contentQueries:function(e,n,r){if(1&e&&En(r,Yf,5),2&e){let o;pt(o=ft())&&(n.columns=o.first)}},viewQuery:function(e,n){if(1&e&&un(kwe,5),2&e){let r;pt(r=ft())&&(n.fullWidthElement=r.first)}},inputs:{doneVisible:"doneVisible",addVisible:"addVisible",items:"items",data:"data",serverSideSearch:"serverSideSearch",listResponse:"listResponse",standardFields:"standardFields",topMargin:"topMargin",bottomMargin:"bottomMargin",tableTitle:"tableTitle",tableIcon:"tableIcon",addMru:"addMru",showTitleBlock:"showTitleBlock",fixedWidth:"fixedWidth",fixedHeight:"fixedHeight",dataSet:"dataSet",maxHeight:"maxHeight",maxWidth:"maxWidth"},outputs:{select:"select",add:"add",done:"done",selectedRowsChanged:"selectedRowsChanged",delete:"delete",selectWithTag:"selectWithTag",searchServer:"searchServer",remove:"remove"},ngContentSelectors:MDe,decls:23,vars:11,consts:[[2,"padding","20px 20 0px 20px"],["class","full-view","id","table-header",4,"ngIf"],["id","table-toolbar","class","full-view filter-bar top-bar","style","padding:4px; ",3,"ngStyle",4,"ngIf"],["menu","matMenu"],[2,"padding","20px"],["type","checkbox",2,"margin-top","8px",3,"ngModel","ngModelChange"],["type","checkbox",3,"ngModel","ngModelChange"],[2,"margin-top","-15px"],["id","fullWidth",1,"full-view",2,"clear","both","height","1px"],[1,"full-view",2,"position","relative","margin-top","15px"],["class","table-fixed selectable",4,"ngIf"],["class","full-view","style","text-align:center;margin-top:10px;margin-bottom:10px",3,"ngStyle",4,"ngIf"],[1,"tablet-view",2,"position","relative"],["class","phone-view","id","table-header",4,"ngIf"],["class","phone-view","style","text-align:center;margin-top:10px;margin-bottom:10px;overflow-y: scroll; height: 750px;",4,"ngIf"],["id","table-header",1,"full-view"],["style","cursor:pointer;font-size:32px","class","action fa fa-chevron-left",3,"click",4,"ngIf"],["fontSize","32px",3,"iconName"],[2,"color","var(--color-primary-80)"],["class","far fa-star action-favorite","style","margin-left: 10px;",3,"click",4,"ngIf"],["class","fa fa-star action-favorite","style","margin-left: 10px;",3,"click",4,"ngIf"],[1,"action","fa","fa-chevron-left",2,"cursor","pointer","font-size","32px",3,"click"],[1,"far","fa-star","action-favorite",2,"margin-left","10px",3,"click"],[1,"fa","fa-star","action-favorite",2,"margin-left","10px",3,"click"],["fontSize","32px",3,"iconName",4,"ngIf"],["id","table-toolbar",1,"full-view","filter-bar","top-bar",2,"padding","4px",3,"ngStyle"],["style","display:flex",4,"ngIf"],[4,"ngIf"],["style","width:200px","class","form-group",4,"ngIf"],[2,"margin-left","20px","flex-grow","1"],[2,"margin-left","10px"],[1,"form-select",2,"width","90px","display","inline",3,"ngModel","ngModelChange"],["class","action","style","margin-left: 20px;",3,"click",4,"ngIf"],["matIconButton","","aria-label","Example icon-button with a menu",2,"margin-top","10px",3,"matMenuTriggerFor"],[2,"height","18px"],[2,"display","flex"],["placeholder","search","aria-controls","DataTables_Table_2",1,"form-control",2,"margin-left","10px","width","250px",3,"ngModel","ngModelChange"],[1,"action",3,"click"],[1,"fa","fas","fa-filter",2,"font-size","36px"],["type","search","placeholder","Search","aria-controls","DataTables_Table_2",1,"form-control",3,"ngModel","ngModelChange"],[1,"form-group",2,"width","200px"],[1,"form-select",3,"ngModel","change","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"action",2,"margin-left","20px",3,"click"],[1,"fa-solid","fa-plus"],[2,"margin-left","5px"],[1,"table-fixed","selectable"],["slTable",""],[1,"full-view"],[3,"ngClass","ngStyle","click",4,"ngFor","ngForOf"],[2,"width","32px","padding-left","0","padding-right","0"],[3,"ngStyle","scroll"],[3,"ngClass","click",4,"ngFor","ngForOf"],[3,"ngClass","ngStyle","click"],["style","text-wrap: nowrap;",4,"ngIf"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],[2,"text-wrap","nowrap"],[3,"ngClass","click"],[3,"ngSwitch","ngStyle","ngClass",4,"ngFor","ngForOf"],[2,"width","8px","padding","0px"],[3,"ngSwitch","ngStyle","ngClass"],["style","text-align:right",4,"ngSwitchCase"],["style","text-align:right;margin-right:15px",4,"ngSwitchCase"],["style","text-align:right",3,"click",4,"ngSwitchCase"],["style","text-align:center",4,"ngSwitchCase"],["style","text-align:left;text-overflow: ellipsis;overflow: hidden;",3,"ngStyle",4,"ngSwitchCase"],["style","text-align:left;text-overflow: ellipsis;",4,"ngSwitchCase"],["style","text-overflow:ellipsis;overflow:hidden;text-align: right;",4,"ngSwitchCase"],["style","text-align: center;",3,"click",4,"ngSwitchCase"],[4,"ngSwitchCase"],["style","text-align:center","onclick","window.event.stopPropagation();",4,"ngSwitchCase"],["style","text-align:center;margin-top:10px",4,"ngSwitchCase"],["style","text-align: center;",4,"ngSwitchCase"],["class","tbl-text-content",3,"ngStyle",4,"ngSwitchDefault"],[2,"text-align","right"],[2,"text-align","right","margin-right","15px"],[2,"text-align","right",3,"click"],[1,"fa","fa-trash","action-danger",2,"text-align","right","font-size","16pt","cursor","pointer"],[2,"text-align","center"],["style","margin-left: 10px;color:var(--color-primary-80)","class","fa fa-comments",4,"ngIf"],[1,"fa","fa-comments",2,"margin-left","10px","color","var(--color-primary-80)"],[2,"text-align","left","text-overflow","ellipsis","overflow","hidden",3,"ngStyle"],[2,"text-align","left","text-overflow","ellipsis"],[2,"text-overflow","ellipsis","overflow","hidden","text-align","right"],[2,"text-align","center",3,"click"],[2,"text-align","center","font-size","16pt","cursor","pointer"],[3,"innerHTML"],["onclick","window.event.stopPropagation();",2,"text-align","center"],["name","selectedCampaignIds","type","checkbox",1,"selected-campaign-ids",3,"ngModel","change","ngModelChange"],[1,"fa","fa-star",2,"color","gold"],[1,"fa",2,"color","gold",3,"ngClass"],[2,"text-align","center","margin-top","10px"],["style","font-size:16pt;",3,"class",4,"ngIf"],[2,"font-size","16pt"],["style","font-size:24pt;","class","fas column.iconName",4,"ngIf"],["fontSize","24px",3,"iconName",4,"ngIf"],[1,"fas","column.iconName",2,"font-size","24pt"],["fontSize","24px",3,"iconName"],[1,"tbl-text-content",3,"ngStyle"],["class","action",3,"click",4,"ngIf"],["style","text-overflow:ellipsis;display:inline-block;overflow:hidden",4,"ngIf"],[2,"text-overflow","ellipsis","display","inline-block","overflow","hidden"],["class","draft",4,"ngIf"],[1,"draft"],[1,"full-view",2,"text-align","center","margin-top","10px","margin-bottom","10px",3,"ngStyle"],["style","float:right","class","pager",4,"ngIf"],[1,"pager",2,"float","right"],["class","page",3,"ngClass","click",4,"ngFor","ngForOf"],["class","page","class","action",3,"click",4,"ngIf"],[1,"page",3,"ngClass","click"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["id","table-header",1,"phone-view"],[1,"phone-view",2,"text-align","center","margin-top","10px","margin-bottom","10px","overflow-y","scroll","height","750px"],["class","testing","style","position: relative; display: block; text-align: left; z-index: 2; overflow-x: visible; border-top: 1px solid #ccc; width: 100%;","cdkDrag","","cdkDragLockAxis","x",3,"cdkDragData","cdkDragStartDelay","click","cdkDragMoved","cdkDragEnded",4,"ngFor","ngForOf"],[2,"align-items","right"],["cdkDrag","","cdkDragLockAxis","x",1,"testing",2,"position","relative","display","block","text-align","left","z-index","2","overflow-x","visible","border-top","1px solid #ccc","width","100%",3,"cdkDragData","cdkDragStartDelay","click","cdkDragMoved","cdkDragEnded"],[2,"display","flex","align-items","center","margin-bottom","10px"],["style","text-align: left; margin-right: 10px;",4,"ngIf"],[2,"flex","1"],[3,"ngSwitch",4,"ngFor","ngForOf"],[2,"text-align","left","margin-right","10px"],[3,"ngSwitch"],["class","tbl-text-content",4,"ngSwitchDefault"],[1,"tbl-text-content"],[2,"display","block"],[2,"width","120px","display","inline-block"],[2,"font-weight","bold"],[2,"display","inline-block"],[1,"garbage-bin",2,"height","100%","width","150px","position","absolute","transform","translateY(-50%)","top","50%","right","-150px","transition","right 0.5s ease","padding","10px 20px","background-color","red","color","white","border","none","border-radius","5px"],[1,"fa","fa-trash",2,"font-size","2em"],["style","text-overflow: ellipsis; display: inline-block; overflow: hidden;",4,"ngIf"]],template:function(e,n){1&e&&(ro(DDe),u(0,"div",0),Ei(1,0,["#columns",""]),w(2,Awe,7,5,"h1",1),w(3,Lwe,7,5,"h1",1),w(4,Uwe,30,12,"div",2),u(5,"mat-menu",null,3)(7,"div",4)(8,"input",5),N("ngModelChange",function(o){return n.showDrafts=o})("ngModelChange",function(){return n.showDraftsChanged()}),c(),m(9," Show Drafts "),c(),u(10,"div",4)(11,"input",6),N("ngModelChange",function(o){return n.showDeleted=o})("ngModelChange",function(){return n.showDeletedChanged()}),c(),u(12,"span",7),m(13," Show Deleted"),c()()(),H(14,"div",8),u(15,"div",9),w(16,w2e,10,5,"table",10),w(17,S2e,4,6,"div",11),c(),u(18,"div",12),w(19,rDe,10,5,"table",10),w(20,dDe,4,6,"div",11),c(),w(21,fDe,7,5,"h1",13),w(22,wDe,3,2,"div",14),c()),2&e&&(h(2),p("ngIf",n.listResponse&&n.showTitleBlock),h(1),p("ngIf",!n.listResponse&&n.showTitleBlock&&n.tableIcon&&n.tableTitle),h(1),p("ngIf",n.filterVisible&&n.currentPageDataSet),h(4),p("ngModel",n.showDrafts),h(3),p("ngModel",n.showDeleted),h(5),p("ngIf",n.dataSet),h(1),p("ngIf",n.currentPageDataSet),h(2),p("ngIf",n.dataSet),h(1),p("ngIf",n.currentPageDataSet),h(1),p("ngIf",n.listResponse&&n.showTitleBlock),h(1),p("ngIf",n.currentPageDataSet))},dependencies:[Xa,Zi,jt,ct,As,dc,Fu,Y0,FV,oo,ao,Bn,yl,Nr,vn,pn,cwe,vwe,wwe,K_,qu,X_,Bs,Z_,ah],styles:['[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}.blade[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow:hidden;width:500px}.blade-content[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow-y:auto;width:500px;height:calc(100vh - 180px)}.blade-diagram[_ngcontent-%COMP%]{border:1px solid var(--color-border-panel);overflow:hidden;height:calc(100vh - 84px)}.blade-header[_ngcontent-%COMP%]{border-bottom:1px solid var(--color-panel-border);background-color:var(--color-bg-panel-header);padding:6px 6px 6px 16px}.blade-header[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;color:var(--color-fg-panel-header)}.blade-actions[_ngcontent-%COMP%]{text-align:right;right:0;float:right;flex-grow:1}.blade-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:4pt;color:var(--color-fg-panel-header)}.blade-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}.blade-actions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:8pt;border-radius:4pt;margin:4pt;color:var(--color-fg-panel-header);cursor:pointer}.blade-actions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{color:var(--color-fg-panel-header-active)}html[_ngcontent-%COMP%]{height:100%;height:100vh}body[_ngcontent-%COMP%]{font:100% Helvetica,sans-serif;color:var(--color-fg);margin:0;height:100%;width:100%}.main-icon[_ngcontent-%COMP%]{width:400px;height:122px;margin-top:100px}.action-inline[_ngcontent-%COMP%]{color:var(--color-nav-link)!important;cursor:pointer!important;text-decoration:none}.action-inline[_ngcontent-%COMP%]:hover{color:var(--color-nav-link-active)!important}.action[_ngcontent-%COMP%], .action-large[_ngcontent-%COMP%]{color:var(--color-nav-link)!important;cursor:pointer!important;margin-right:5px;text-decoration:none;padding:5px 8px;border-radius:4px}.action-favorite[_ngcontent-%COMP%]{color:gold!important;cursor:pointer!important;text-decoration:none}.action[_ngcontent-%COMP%]:hover, .action-large[_ngcontent-%COMP%]:hover{color:var(--color-nav-link-active)!important}.action[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .action-large[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:4pt}.action-danger[_ngcontent-%COMP%]{color:var(--color-danger)!important;cursor:pointer!important;margin-right:5px;margin-left:10px;padding:5px;border-radius:4px}.action-large[_ngcontent-%COMP%]{font-size:18pt}.btn-full-size[_ngcontent-%COMP%]{width:160px;height:40px;font-size:16pt;padding:4px;font-weight:700;margin:4pt}.btn-brand[_ngcontent-%COMP%]{background-color:var(--color-primary-button);color:var(--color-filled-button-text)}@media screen and (min-width: 768px){.panel[_ngcontent-%COMP%]{overflow:hidden}}@media screen and (max-width: 480px){.panel[_ngcontent-%COMP%]{overflow:hidden}}.png[_ngcontent-%COMP%] servanel-header[_ngcontent-%COMP%]{height:40px;padding:6px 6px 6px 16px}.panel-header[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700;display:block!important}.panel-content[_ngcontent-%COMP%]{clear:both;padding:6px;color:var(--color-fg-panel)}.panel-actions[_ngcontent-%COMP%]{position:sticky;top:0;text-align:right;right:0;background-color:#000;flex-grow:1;padding:3px;cursor:pointer;color:var(--color-nav-link)!important;z-index:100}.panel-footer[_ngcontent-%COMP%]{padding:10px;align-content:right;border-top:1px solid var(--color-fg-panel)}.panel-title[_ngcontent-%COMP%]{font-size:16pt;font-weight:700;float:left}.panel-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:4pt}.panel-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer;color:var(--color-nav-link-active)!important}.panel-actions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:8pt;border-radius:4pt;margin:4pt;cursor:pointer}.nv-hor-menu[_ngcontent-%COMP%]{margin-top:6px}.nv-hor-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-right:20px}.org-info[_ngcontent-%COMP%]{color:var(--color-nav-link-active)}.nv-app-header[_ngcontent-%COMP%]{color:var(--color-fg-menu);background-color:var(--color-bg-menu);height:60px;width:100%;border-bottom:2px solid var(--color-border-panel)}.nv-app-header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{padding-right:.5rem}.nv-app-header[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{list-style:none;padding:0}.nv-app-header[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline;margin-left:0;font-size:16pt}.nv-app-header[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--color-fg-menu-active)}.nv-app-header[_ngcontent-%COMP%] .nv-app-header-left[_ngcontent-%COMP%]{float:left;margin-left:10px}.nv-app-header[_ngcontent-%COMP%] .nv-app-header-right[_ngcontent-%COMP%]{float:right;margin-right:10px;height:32px}.task-search-bar[_ngcontent-%COMP%]{float:left;width:80%;height:32px;margin-bottom:10px}.search-button[_ngcontent-%COMP%]{float:right;padding:5px;margin-left:2px;height:32px;color:var(--color-main-icon);background-color:var(--color-primary-button);border-radius:4px}.dashboard-widget[_ngcontent-%COMP%]{margin-right:1em;clear:right;float:left;position:absolute;left:0;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;display:flex;flex-direction:column;width:100%;height:100%}.dashboard-widget.animate[_ngcontent-%COMP%]{transition:all .5s ease-out}.dashboard-widget.active[_ngcontent-%COMP%]{z-index:100000}.cdk-overlay-container[_ngcontent-%COMP%]{z-index:12000}.btn-container[_ngcontent-%COMP%]{margin:50% 0%}.demo[_ngcontent-%COMP%]{touch-action:none}.telem[_ngcontent-%COMP%] tr.telem-hdr[_ngcontent-%COMP%]{background-color:var(--color-bg-panel-header)}.telem[_ngcontent-%COMP%] tr.telem-hdr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:12px;border-color:var(--color-fg-panel-header);border-style:solid;border-width:1px;border-collapse:separate;color:var(--color-fg-panel-header);padding:2px}.telem[_ngcontent-%COMP%] tr.telem-row[_ngcontent-%COMP%]{font-family:Lucida Console,Monaco,monospace;font-size:12px;border-bottom-color:#c5cbd1}.telem[_ngcontent-%COMP%] tr.telem-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-bottom:2px;padding-left:2px;color:var(--color-fg)}.mat-tab-label-content[_ngcontent-%COMP%]{color:var(--color-fg)}.mat-tab-group.mat-primary[_ngcontent-%COMP%] .mat-ink-bar[_ngcontent-%COMP%]{background-color:var(--color-primary)!important}.container[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}@media screen and (min-width: 1024px){.full-view-flex[_ngcontent-%COMP%]{display:flex!important;flex-wrap:wrap!important}.full-view[_ngcontent-%COMP%]{display:visible!important}.tablet-view-flex[_ngcontent-%COMP%], .tablet-view[_ngcontent-%COMP%], .phone-view[_ngcontent-%COMP%]{display:none!important}}@media screen and (min-width: 481px) and (max-width: 1023px){.tablet-view-flex[_ngcontent-%COMP%]{display:flex!important;flex-wrap:wrap!important}.full-view-flex[_ngcontent-%COMP%], .full-view[_ngcontent-%COMP%], .phone-view[_ngcontent-%COMP%]{display:none!important}}@media screen and (max-width: 480px){.phone-view[_ngcontent-%COMP%]{display:visible!important}.full-view-flex[_ngcontent-%COMP%], .full-view[_ngcontent-%COMP%], .tablet-view-flex[_ngcontent-%COMP%], .tablet-view[_ngcontent-%COMP%]{display:none!important}}@media screen and (min-width: 1024px){.router-container[_ngcontent-%COMP%]{max-width:1800px}}a.child-term[_ngcontent-%COMP%]{color:var(--color-nav-link)!important;text-decoration:none;font-weight:700}a.child-term[_ngcontent-%COMP%]:hover{color:var(--color-nav-link-active)!important;text-decoration:underline}.busyMsg[_ngcontent-%COMP%]{color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1000;font-size:16pt}.busyMask[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;opacity:.5;z-index:999}.icon-image[_ngcontent-%COMP%]{border-radius:25%}.srcConnectorEp[_ngcontent-%COMP%]{position:absolute;bottom:46%;right:-5px;width:1em;height:1em;background-color:orange;cursor:pointer;box-shadow:0 0 2px #000;transition:box-shadow .25s ease-in}.diagram-container[_ngcontent-%COMP%]{background-color:var(--color-bg);position:relative;height:calc(100vh - 305px);width:calc(100vw - 70px);top:0;border:1px solid gray;overflow:auto}.diagram-node[_ngcontent-%COMP%]:hover{background-color:#5c96bc;color:#fff}.ep[_ngcontent-%COMP%]:hover{box-shadow:0 0 6px #000}.dragHover[_ngcontent-%COMP%]{border:2px solid orange}.node-name[_ngcontent-%COMP%]{color:var(--color-primary)}path[_ngcontent-%COMP%], .jtk-endpoint[_ngcontent-%COMP%]{cursor:pointer}div.mention-card[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .tox[_ngcontent-%COMP%] div.mention-card[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{flex-grow:1}div.mention-card[_ngcontent-%COMP%], .tox[_ngcontent-%COMP%] div.mention-card[_ngcontent-%COMP%]{width:240px;display:flex;background:white;border:1px solid #ccc;border-radius:3px;box-shadow:0 4px 8px #222f3e1a;padding:8px;font-size:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}div.mention-card[_ngcontent-%COMP%]:after, .tox[_ngcontent-%COMP%] div.mention-card[_ngcontent-%COMP%]:after{content:"";clear:both;display:table}div.mention-card[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .tox[_ngcontent-%COMP%] div.mention-card[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:14px;font-weight:700;margin:0 0 8px;padding:0;line-height:normal;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}div.mention-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .tox[_ngcontent-%COMP%] div.mention-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.tox[_ngcontent-%COMP%] div.mention-card[_ngcontent-%COMP%] img.avatar[_ngcontent-%COMP%], div.mention-card[_ngcontent-%COMP%] img.avatar[_ngcontent-%COMP%]{width:48px;height:48px;margin-right:8px;float:left}.save-bar[_ngcontent-%COMP%]{text-align:right;margin:10px 0}.save-bar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{margin-right:10px}.filter-bar[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:inline}.table-fixed[_ngcontent-%COMP%]{-moz-border-radius:10px;margin-bottom:15px;border-spacing:0}.table-fixed[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{width:100%}.table-fixed[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-left:4px;padding-top:11px;padding-bottom:11px}@media (min-width: 768px){th[_ngcontent-%COMP%]:first-of-type{border-top-left-radius:6px}}@media (min-width: 768px){.table-fixed[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-of-type{border-top-right-radius:6px;padding-top:11px;padding-bottom:11px}}.sort-asc[_ngcontent-%COMP%]{background-image:url(/app/ui-shared/assets/arrow_up.png);background-position:right 5px top 50%;background-repeat:no-repeat}.sort-desc[_ngcontent-%COMP%]{background-image:url(/app/ui-shared/assets/arrow_down.png);background-position:right 5px top 50%;background-repeat:no-repeat}.table-fixed[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{overflow-y:auto;width:100%}.table-fixed[_ngcontent-%COMP%] thead[_ngcontent-%COMP%], .table-fixed[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%], .table-fixed[_ngcontent-%COMP%] tr[_ngcontent-%COMP%], .table-fixed[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .table-fixed[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{display:block}.table-fixed[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .table-fixed[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{float:left;border-bottom-width:0}.table-fixed[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{clear:both;border-bottom-width:0}tr[_ngcontent-%COMP%]:nth-child(odd){background-color:var(--color-bg-list-row);color:var(--color-fg-list-row);border-bottom-width:1px}tr[_ngcontent-%COMP%]:nth-child(even){background-color:var(--color-bg-list-alt-row);color:var(--color-fg-list-alt-row);border-bottom-width:1px}tr.deleted[_ngcontent-%COMP%]{color:silver!important}tr.deleted[_ngcontent-%COMP%] td[_ngcontent-%COMP%], tr.deleted[_ngcontent-%COMP%] td[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-decoration:line-through}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px solid #c0c0c0;height:40px}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:700;color:var(--color-fg-panel-header);background-color:var(--color-bg-panel-header)}tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-left:4px;padding-top:2px;font-size:16px}tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:4px}tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] div[_ngcontent-%COMP%] .draft[_ngcontent-%COMP%]{font-style:italic}.tbl-text-content[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;display:inline-block;text-overflow:ellipsis;background-color:transparent!important}.testing[_ngcontent-%COMP%]:hover, .testing[_ngcontent-%COMP%]:active{cursor:pointer;background-color:var(--color-bg-list-row-hover);color:var(--color-fg-list-row-hover);border:1px}.table-fixed[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:var(--color-bg-list-row-hover);color:var(--color-fg-list-row-hover)}.table-fixed[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{color:var(--color-fg-list-row-hover)}.pager[_ngcontent-%COMP%] .page[_ngcontent-%COMP%]{padding:8px 12px;border:1px solid transparent;border-radius:2px;text-decoration:none;background-color:--color-bg-menu;color:--color-fg-menu;cursor:pointer}.pager[_ngcontent-%COMP%] .pageEnabled[_ngcontent-%COMP%]{cursor:pointer}.pager[_ngcontent-%COMP%] .pageEnabled[_ngcontent-%COMP%]:hover{border:1px solid silver;background:linear-gradient(to bottom,#9c9c9c 0%,#3c3c3c 100%);color:#fff}.pager[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{border:1px solid silver;background-color:--color-bg-menu;color:--color-fg-menu}tbody[_ngcontent-%COMP%]{border-top:1px solid black;border-left:1px solid silver;border-right:1px solid silver;border-bottom:1px solid silver;background-color:var(--color-bg)}@media (min-width: 768px){.top-bar[_ngcontent-%COMP%]{display:flex}}']})}function xDe(i,t){if(1&i&&(u(0,"option",7),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e.id),h(1),Re(e.text)}}function kDe(i,t){if(1&i){const e=pe();u(0,"div")(1,"h4"),m(2,"Step 1. Select a Device Repository"),c(),H(3,"hr",4),u(4,"select",5),N("ngModelChange",function(r){return R(e),L(g().onDeviceRepoSelected(r))})("ngModelChange",function(r){return R(e),L(g().selectedRepoId=r)}),w(5,xDe,2,2,"option",6),c()()}if(2&i){const e=g();h(4),p("ngModel",e.selectedRepoId),h(1),p("ngForOf",e.repos)}}function TDe(i,t){if(1&i&&(u(0,"option",7),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e.id),h(1),Re(e.text)}}function SDe(i,t){if(1&i){const e=pe();u(0,"div",12)(1,"label"),m(2,"Device Models"),c(),u(3,"select",5),N("ngModelChange",function(r){return R(e),L(g(2).deviceModelSelected(r))})("ngModelChange",function(r){return R(e),L(g(2).selectedDeviceModelId=r)}),w(4,TDe,2,2,"option",6),c()()}if(2&i){const e=g(2);h(3),p("ngModel",e.selectedDeviceModelId),h(1),p("ngForOf",e.deviceTypes)}}function EDe(i,t){if(1&i){const e=pe();u(0,"app-sl-table",18),N("select",function(r){return R(e),L(g(2).onDeviceSelected(r))}),u(1,"grid-columns"),H(2,"grid-column",19)(3,"grid-column",20),c()()}2&i&&p("listResponse",g(2).devices)}function ADe(i,t){1&i&&(u(0,"div")(1,"h4"),m(2,"No devices found"),c()())}function IDe(i,t){if(1&i){const e=pe();u(0,"div")(1,"h4"),m(2,"Step 2. Select a Device"),c(),H(3,"hr",4),u(4,"div",8)(5,"div",9)(6,"div",10),w(7,SDe,5,2,"div",11),c(),u(8,"div",10)(9,"div",12)(10,"label"),m(11,"Device Id"),c(),H(12,"input",13),c()(),u(13,"div",14)(14,"button",15),N("click",function(){return R(e),L(g().search())}),H(15,"i",16),c()()()(),w(16,EDe,4,1,"app-sl-table",17),w(17,ADe,3,0,"div",1),c()}if(2&i){const e=g();h(7),p("ngIf",e.deviceTypes),h(5),p("ngModel",e.searchDeviceId),h(4),p("ngIf",e.devices&&e.devices.model.length>0),h(1),p("ngIf",e.devices&&0==e.devices.model.length)}}class mw{deviceService;activeModal;constructor(t,e){this.deviceService=t,this.activeModal=e,this.showLoadingIndicator=!1,this.showDeviceRepos=!1}selectedDeviceId;deviceSelected=new Ae;devicePickerCancelled=new Ae;deviceRepoSelected=new Ae;repos;deviceConfigs;deviceTypes;devices;hidden;showDeviceRepos;searchDeviceId;selectedRepoId="-1";selectedDeviceModelId="-1";showLoadingIndicator;ngOnInit(){var t=this;return z(function*(){t.repos=(yield t.deviceService.loadDeviceRepositories()).model.map(e=>({id:e.id,text:e.name,key:e.key})),t.deviceTypes=(yield t.deviceService.getDeviceTypes()).model.map(e=>({id:e.id,text:e.name,key:e.key})),t.repos.unshift({id:"-1",text:"-select repository-",key:"-1"}),console.log(t.selectedRepoId),"-1"!=t.selectedRepoId&&(t.devices=yield t.deviceService.getDevicesForRepo(t.selectedRepoId))})()}onDeviceRepoSelected(t){var e=this;return z(function*(){e.selectedRepoId=t,e.devices=yield e.deviceService.getDevicesForRepo(t)})()}search(){var t=this;return z(function*(){t.devices=null})()}deviceModelSelected(t){this.search()}onDeviceSelected(t){console.log(t),this.deviceSelected.emit({deviceSummary:t,deviceRepo:this.repos.find(e=>e.id===this.selectedRepoId)}),this.activeModal.dismiss()}cancel(){this.showDeviceRepos?this.activeModal.dismiss():(this.devices=null,this.devicePickerCancelled.emit(),this.showDeviceRepos=!0)}static \u0275fac=function(e){return new(e||mw)(U(sh),U(dr))};static \u0275cmp=Be({type:mw,selectors:[["app-device-picker"]],inputs:{selectedDeviceId:"selectedDeviceId"},outputs:{deviceSelected:"deviceSelected",devicePickerCancelled:"devicePickerCancelled",deviceRepoSelected:"deviceRepoSelected"},decls:7,vars:2,consts:[[2,"padding","10pt","position","relative"],[4,"ngIf"],[2,"text-align","right","margin-top","50px"],[1,"btn","btn-danger",3,"click"],[2,"border","1px solid silver"],["color","primary",1,"form-select",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"container"],[1,"row"],[1,"col-sm-3"],["class","form-group",4,"ngIf"],[1,"form-group"],[1,"form-control",3,"ngModel"],[1,"col-sm-1"],[1,"btn","btn-success",2,"vertical-align","bottom",3,"click"],["aria-hidden","true",1,"fa","fa-search"],["bottomMargin","200",3,"listResponse","select",4,"ngIf"],["bottomMargin","200",3,"listResponse","select"],["header","Device Name","fieldName","deviceName","fieldType","string"],["header","Device Id","fieldName","deviceId","fieldType","string"]],template:function(e,n){1&e&&(u(0,"div")(1,"div",0),w(2,kDe,6,2,"div",1),w(3,IDe,18,4,"div",1),u(4,"div",2)(5,"button",3),N("click",function(){return n.cancel()}),m(6,"Cancel"),c()()()()),2&e&&(h(2),p("ngIf",n.repos),h(1),p("ngIf",n.devices))},dependencies:[jt,ct,oo,ao,Bn,Nr,vn,pn,Dv,Yf,gw]})}function FDe(i,t){if(1&i){const e=pe();u(0,"span",14),N("click",function(r){return R(e),g(3).clearEntityHeaderValue(),L(r.stopPropagation())}),H(1,"i",15),c()}}const PDe=function(i){return{"picker-link":i}};function RDe(i,t){if(1&i){const e=pe();u(0,"span",11),N("click",function(){return R(e),L(g(2).pickEntityHeaderValue())}),u(1,"span",12),m(2),c(),w(3,FDe,2,0,"span",13),c()}if(2&i){const e=g(2);h(1),p("ngClass",Ct(3,PDe,e.field.isUserEditable)),h(1),Re(e.field.value?e.field.value.text:e.field.watermark),h(1),p("ngIf",e.field.value&&!e.field.isRequired&&e.field.isUserEditable)}}function LDe(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g(2);h(1),Re(e.field.value.text)}}function ODe(i,t){1&i&&(u(0,"span",16),H(1,"span",17),c()),2&i&&mt("data-target",g(2).popupId)}function NDe(i,t){if(1&i&&(u(0,"div",3)(1,"div",4)(2,"div",5),H(3,"app-form-field-label",6),u(4,"div",7),w(5,RDe,4,5,"span",8),w(6,LDe,2,1,"div",9),c()(),u(7,"div"),w(8,ODe,2,1,"span",10),c()()()),2&i){const e=g();h(3),p("name",e.field.name)("label",e.field.label)("isRequired",e.field.isRequired),h(2),p("ngIf",e.isEnabled),h(1),p("ngIf",!e.isEnabled),h(2),p("ngIf",e.field.help)}}class _w extends ln{modalService;constructor(t){super(),this.modalService=t}ngOnInit(){super.ngOnInit()}pickEntityHeaderValue(){this.modalService.open(mw,{size:"lg"}).componentInstance.deviceSelected.subscribe(e=>{this.field.value={id:e.deviceSummary.id,text:e.deviceSummary.deviceName},this.field.display=e.deviceSummary.deviceName,this.changed(this.field)})}clearEntityHeaderValue(){this.field.value=void 0,this.field.display=void 0,this.changed(this.field)}static \u0275fac=function(e){return new(e||_w)(U(zn))};static \u0275cmp=Be({type:_w,selectors:[["app-device-picker-field"]],features:[st],decls:3,vars:8,consts:[["class","form-group","attr","one","ng-hide","!isVisible",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["attr","one","ng-hide","!isVisible",1,"form-group"],[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],[1,"input-group-holder"],[3,"click",4,"ngIf"],[4,"ngIf"],["data-toggle","modal",4,"ngIf"],[3,"click"],[3,"ngClass"],["class","picker-link-remove","style","margin-left:20px",3,"click",4,"ngIf"],[1,"picker-link-remove",2,"margin-left","20px",3,"click"],[1,"fa","fa-trash","action-danger"],["data-toggle","modal"],[1,"fa","fa-question","action",2,"margin-left","10pt"]],template:function(e,n){1&e&&(w(0,NDe,9,6,"div",0),H(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&e&&(p("ngIf",n.field),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Zi,ct,Wn,qn,Gn],styles:[".picker-link[_ngcontent-%COMP%], .picker-link-remove[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-accent)}.picker-link[_ngcontent-%COMP%]:hover{text-decoration:underline;color:var(--color-accent)}"]})}function BDe(i,t){1&i&&(u(0,"span",7),H(1,"i",8),c()),2&i&&mt("data-target",g().popupId)}class vw extends ln{constructor(){super()}ngOnInit(){super.ngOnInit()}static \u0275fac=function(e){return new(e||vw)};static \u0275cmp=Be({type:vw,selectors:[["app-money-editor"]],features:[st],decls:8,vars:18,consts:[[3,"name","label","isRequired"],[1,"input-group"],[1,"input-group-text"],["type","number","inputmode","numeric",1,"form-control",2,"text-align","right",3,"name","id","ngModel","disabled","placeholder","ngModelChange","change","input","focus","blur"],["data-toggle","modal","class","input-group-text","style","cursor:pointer;color:#A0A0A0",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["data-toggle","modal",1,"input-group-text",2,"cursor","pointer","color","#A0A0A0"],["aria-hidden","true",1,"fa","fa-question"]],template:function(e,n){1&e&&(H(0,"app-form-field-label",0),u(1,"div",1)(2,"span",2),m(3,"$"),c(),u(4,"input",3),N("ngModelChange",function(o){return n.field.value=o})("change",function(o){return n.changed(o)})("input",function(o){return n.textChanged(o)})("focus",function(o){return n.onFocus(o)})("blur",function(o){return n.onBlur(o)}),c(),w(5,BDe,2,1,"span",4),c(),H(6,"app-form-field-validation-section",5)(7,"app-form-field-help",6)),2&e&&(p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(4),Mn("background-color",n.field.isUserEditable?"white":"#EEEEEE"),gt("name",n.field.name),gt("id",n.field.name),gt("placeholder",n.field.watermark),p("ngModel",n.field.value)("disabled",!n.field.isUserEditable),h(1),p("ngIf",n.field.help),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Bn,Rs,vn,pn,ct,Wn,qn,Gn]})}function VDe(i,t){1&i&&(u(0,"span",9),H(1,"i",10),c()),2&i&&mt("data-target",g().popupId)}class yw extends ln{constructor(){super()}ngOnInit(){super.ngOnInit()}callContact(){this.field.value&&document.querySelector("#rc-widget-adapter-frame").contentWindow.postMessage({type:"rc-adapter-new-call",phoneNumber:this.field.value,toCall:!0},"*")}static \u0275fac=function(e){return new(e||yw)};static \u0275cmp=Be({type:yw,selectors:[["app-phone-field"]],features:[st],decls:9,vars:20,consts:[[3,"name","label","isRequired"],[1,"input-group"],[1,"form-control",3,"name","id","ngModel","type","disabled","placeholder","ngModelChange","change","input","focus","blur"],[1,"input-group-text",2,"cursor","pointer","color","#A0A0A0"],[3,"href"],["aria-hidden","true",1,"fa","fa-phone",3,"click"],["data-toggle","modal","class","input-group-text","style","cursor:pointer;color:#A0A0A0",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["data-toggle","modal",1,"input-group-text",2,"cursor","pointer","color","#A0A0A0"],["aria-hidden","true",1,"fa","fa-question"]],template:function(e,n){1&e&&(H(0,"app-form-field-label",0),u(1,"div",1)(2,"input",2),N("ngModelChange",function(o){return n.field.value=o})("change",function(o){return n.changed(o)})("input",function(o){return n.textChanged(o)})("focus",function(o){return n.onFocus(o)})("blur",function(o){return n.onBlur(o)}),c(),u(3,"span",3),H(4,"a",4),u(5,"i",5),N("click",function(o){return n.callContact(),o.stopPropagation()}),c()(),w(6,VDe,2,1,"span",6),c(),H(7,"app-form-field-validation-section",7)(8,"app-form-field-help",8)),2&e&&(p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(2),Mn("background-color",n.field.isUserEditable?"white":"#EEEEEE"),gt("name",n.field.name),gt("id",n.field.name),gt("placeholder",n.field.watermark),p("ngModel",n.field.value)("type",n.inputType)("disabled",!n.field.isUserEditable),h(2),gt("href",n.field.value,Yi),h(2),p("ngIf",n.field.help),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Bn,vn,pn,ct,Wn,qn,Gn]})}function HDe(i,t){if(1&i){const e=pe();u(0,"div")(1,"span",9),N("click",function(){return R(e),L(g().canEditCard=!0)}),m(2,"Change Credit Card"),c()()}}class bw extends ln{_stripe;_card;canEditCard=!0;constructor(){super()}ngOnInit(){super.ngOnInit(),console.log(this.model),this._stripe=new Stripe("pk_live_Hrvuo6OffaphWzWyUj8LtyHr");const e=this._stripe.elements();this._card=e.create("card"),this._card.mount("#card-element",{base:{color:"#32325d",lineHeight:"18px",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}}),this._card.addEventListener("change",function(n){document.getElementById("card-errors").textContent=n.error?n.error.message:""}),this.canEditCard="ok"!==this.model.paymentTokenStatus&&"waived"!==this.model.paymentTokenStatus,console.log(this.canEditCard)}submitCC(){var t=this;return z(function*(){let e=yield t._stripe.createSource(t._card);e.error?t.field.requiredMessage=e.error.message:(t.view.paymentToken.value=e.source.id,t.model.paymentToken=e.source.id,t.model.paymentTokenStatus="ok",t.view.status.value="ok",t.view.paymentTokenStatus="ok",t.canEditCard=!1)})()}static \u0275fac=function(e){return new(e||bw)};static \u0275cmp=Be({type:bw,selectors:[["app-payment-method"]],features:[st],decls:11,vars:11,consts:[[3,"name","label","isRequired"],[2,"padding","10px","background-color","#fff","border","1px solid #bbb","border-radius","4px"],[2,"display","flex"],["id","card-element",2,"min-width","400px","padding-top","5px"],[1,"fa","fa-save","action",3,"click"],["id","card-errors","role","alert"],[4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],[1,"action",3,"click"]],template:function(e,n){1&e&&(H(0,"app-form-field-label",0),u(1,"div")(2,"div",1)(3,"div",2),H(4,"div",3),u(5,"div")(6,"i",4),N("click",function(){return n.submitCC()}),c()()(),H(7,"div",5),c(),w(8,HDe,3,0,"div",6),c(),H(9,"app-form-field-validation-section",7)(10,"app-form-field-help",8)),2&e&&(p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(8),p("ngIf",!n.canEditCard),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[ct,Wn,qn,Gn]})}function YDe(i,t){if(1&i){const e=pe();u(0,"span",14),N("click",function(r){return R(e),g(3).clearEntityHeaderValue(),L(r.stopPropagation())}),H(1,"i",15),c()}}const UDe=function(i){return{"picker-link":i}};function jDe(i,t){if(1&i){const e=pe();u(0,"span",11),N("click",function(){return R(e),L(g(2).pickEntityHeaderValue())}),u(1,"span",12),m(2),c(),w(3,YDe,2,0,"span",13),c()}if(2&i){const e=g(2);h(1),p("ngClass",Ct(3,UDe,e.field.isUserEditable)),h(1),Re(e.field.value?e.field.value.text:e.field.watermark),h(1),p("ngIf",e.field.value&&!e.field.isRequired&&e.field.isUserEditable)}}function $De(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g(2);h(1),Re(e.field.value.text)}}function zDe(i,t){1&i&&(u(0,"span",16),H(1,"span",17),c()),2&i&&mt("data-target",g(2).popupId)}function WDe(i,t){if(1&i&&(u(0,"div",3)(1,"div",4)(2,"div",5),H(3,"app-form-field-label",6),u(4,"div",7),w(5,jDe,4,5,"span",8),w(6,$De,2,1,"div",9),c()(),u(7,"div"),w(8,zDe,2,1,"span",10),c()()()),2&i){const e=g();h(3),p("name",e.field.name)("label",e.field.label)("isRequired",e.field.isRequired),h(2),p("ngIf",e.isEnabled),h(1),p("ngIf",!e.isEnabled),h(2),p("ngIf",e.field.help)}}class Cw extends ln{constructor(){super()}ngOnInit(){super.ngOnInit()}pickEntityHeaderValue(){}clearEntityHeaderValue(){}static \u0275fac=function(e){return new(e||Cw)};static \u0275cmp=Be({type:Cw,selectors:[["app-org-location-picker"]],features:[st],decls:3,vars:8,consts:[["class","form-group","attr","one","ng-hide","!isVisible",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["attr","one","ng-hide","!isVisible",1,"form-group"],[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],[1,"input-group-holder"],[3,"click",4,"ngIf"],[4,"ngIf"],["data-toggle","modal",4,"ngIf"],[3,"click"],[3,"ngClass"],["class","picker-link-remove","style","margin-left:20px",3,"click",4,"ngIf"],[1,"picker-link-remove",2,"margin-left","20px",3,"click"],[1,"fa","fa-trash","action-danger"],["data-toggle","modal"],[1,"fa","fa-question","action",2,"margin-left","10pt"]],template:function(e,n){1&e&&(w(0,WDe,9,6,"div",0),H(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&e&&(p("ngIf",n.field),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Zi,ct,Wn,qn,Gn]})}const yh={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937},GV=class qDe{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||yh[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}},Mv=6378137,Uf=Math.PI*Mv,KDe=[-Uf,-Uf,Uf,Uf],ZDe=[-180,-85,180,85],ww=Mv*Math.log(Math.tan(Math.PI/2));class jf extends GV{constructor(t){super({code:t,units:"m",extent:KDe,global:!0,worldExtent:ZDe,getPointResolution:function(e,n){return e/Math.cosh(n[1]/Mv)}})}}const qV=[new jf("EPSG:3857"),new jf("EPSG:102100"),new jf("EPSG:102113"),new jf("EPSG:900913"),new jf("http://www.opengis.net/def/crs/EPSG/0/3857"),new jf("http://www.opengis.net/gml/srs/epsg.xml#3857")];function QDe(i,t,e){const n=i.length;e=e>1?e:2,void 0===t&&(t=e>2?i.slice():new Array(n));for(let r=0;rww?o=ww:o<-ww&&(o=-ww),t[r+1]=o}return t}function XDe(i,t,e){const n=i.length;e=e>1?e:2,void 0===t&&(t=e>2?i.slice():new Array(n));for(let r=0;ri[2]&&(l|=4),si[3]&&(l|=2),0===l&&(l=1),l}function Ic(i,t,e,n,r){return r?(r[0]=i,r[1]=t,r[2]=e,r[3]=n,r):[i,t,e,n]}function Ch(i){return Ic(1/0,1/0,-1/0,-1/0,i)}function xv(i,t){return i[0]==t[0]&&i[2]==t[2]&&i[1]==t[1]&&i[3]==t[3]}function zf(i,t){t[0]i[2]&&(i[2]=t[0]),t[1]i[3]&&(i[3]=t[1])}function iH(i,t,e,n,r){for(;et[0]?i[0]:t[0],n[1]=i[1]>t[1]?i[1]:t[1],n[2]=i[2]=t[0]&&i[1]<=t[3]&&i[3]>=t[1]}function kv(i){return i[2]=e[2])){const r=zi(e),a=Math.floor((n[0]-e[0])/r)*r;i[0]-=a,i[2]-=a}return i}function Ir(i,t,e){return Math.min(Math.max(i,t),e)}function _Me(i,t,e,n,r,o){const a=r-e,s=o-n;if(0!==a||0!==s){const l=((i-e)*a+(t-n)*s)/(a*a+s*s);l>1?(e=r,n=o):l>0&&(e+=a*l,n+=s*l)}return qf(i,t,e,n)}function qf(i,t,e,n){const r=e-i,o=n-t;return r*r+o*o}function Aw(i){return i*Math.PI/180}function Dh(i,t){const e=i%t;return e*t<0?e+t:e}function qs(i,t,e){return i+e*(t-i)}function Iw(i,t){const e=Math.pow(10,t);return Math.round(i*e)/e}function Fw(i,t){return Math.floor(Iw(i,t))}function Pw(i,t){return Math.ceil(Iw(i,t))}function Rw(i,t){let e=!0;for(let n=i.length-1;n>=0;--n)if(i[n]!=t[n]){e=!1;break}return e}function wE(i,t){const e=Math.cos(t),n=Math.sin(t),o=i[1]*e+i[0]*n;return i[0]=i[0]*e-i[1]*n,i[1]=o,i}function lH(i,t){if(t.canWrapX()){const e=zi(t.getExtent()),n=function MMe(i,t,e){const n=t.getExtent();let r=0;return t.canWrapX()&&(i[0]n[2])&&(e=e||zi(n),r=Math.floor((i[0]-n[0])/e)),r}(i,t,e);n&&(i[0]-=n*e)}return i}function DE(i,t,e){e=e||6371008.8;const n=Aw(i[1]),r=Aw(t[1]),o=(r-n)/2,a=Aw(t[0]-i[0])/2,s=Math.sin(o)*Math.sin(o)+Math.sin(a)*Math.sin(a)*Math.cos(n)*Math.cos(r);return 2*e*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))}const Tv_warn=2;let Nw=1;function cH(...i){Nw>Tv_warn||console.warn(...i)}let xE=!0;function dH(i){xE=!(void 0===i||i)}function kE(i,t){if(void 0!==t)for(let e=0,n=i.length;e=-180&&i[0]<=180&&i[1]>=-90&&i[1]<=90&&(xE=!1,cH("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),i}function EE(i,t){return i}function Mh(i,t){return i}!function RMe(){pH(qV),pH(ZV),function EMe(i,t,e,n){i.forEach(function(r){t.forEach(function(o){Mw(r,o,e),Mw(o,r,n)})})}(ZV,qV,QDe,XDe)}();const Pc=class LMe{constructor(t){this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}},AE=class OMe{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}};function xh(i,t){return i>t?1:i0?r-1:r}return n-1}if(e>0){for(let r=1;r0)}removeEventListener(t,e){const n=this.listeners_&&this.listeners_[t];if(n){const r=n.indexOf(e);-1!==r&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[r]=Qf,++this.pendingRemovals_[t]):(n.splice(r,1),0===n.length&&delete this.listeners_[t]))}}};function Di(i,t,e,n,r){if(n&&n!==i&&(e=e.bind(n)),r){const a=e;e=function(){i.removeEventListener(t,e),a.apply(this,arguments)}}const o={target:i,type:t,listener:e};return i.addEventListener(t,e),o}function Hw(i,t,e,n){return Di(i,t,e,n,!0)}function hr(i){i&&i.target&&(i.target.removeEventListener(i.type,i.listener),Fv(i))}const vH=class Yw extends Vw{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent("change")}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const n=t.length,r=new Array(n);for(let o=0;oE&&(k=(E+k)/2,E=k),W>ee&&(W=(ee+W)/2,ee=W);let he=Ir(n[0],k,E),ge=Ir(n[1],W,ee);if(a&&e&&r){const Ce=30*r;he+=-Ce*Math.log(1+Math.max(0,k-n[0])/Ce)+Ce*Math.log(1+Math.max(0,n[0]-E)/Ce),ge+=-Ce*Math.log(1+Math.max(0,W-n[1])/Ce)+Ce*Math.log(1+Math.max(0,n[1]-ee)/Ce)}return[he,ge]}}function zMe(i){return i}function PE(i,t,e,n){const r=zi(t)/e[0],o=Gs(t)/e[1];return n?Math.min(i,Math.max(r,o)):Math.min(i,Math.min(r,o))}function RE(i,t,e){let n=Math.min(i,t);return n*=Math.log(1+50*Math.max(0,i/t-1))/50+1,e&&(n=Math.max(n,e),n/=Math.log(1+50*Math.max(0,e/i-1))/50+1),Ir(n,e/2,2*t)}function CH(i,t,e,n,r){return e=void 0===e||e,function(o,a,s,l){if(void 0!==o){const d=n?PE(i,n,s,r):i;return e&&l?RE(o,d,t):Ir(o,t,d)}}}function LE(i){if(void 0!==i)return 0}function wH(i){if(void 0!==i)return i}function DH(i){return Math.pow(i,3)}function Xf(i){return 1-DH(1-i)}function OE(i){return 3*i*i-2*i*i*i}function ZMe(i){return i}const $d=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",QMe=$d.includes("firefox"),XMe=($d.includes("safari")&&!$d.includes("chrom")&&($d.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test($d)),$d.includes("webkit")&&!$d.includes("edge")),MH=$d.includes("macintosh"),xH=typeof devicePixelRatio<"u"?devicePixelRatio:1,NE=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,JMe=typeof Image<"u"&&Image.prototype.decode,kH=function(){let i=!1;try{const t=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("_",null,t),window.removeEventListener("_",null,t)}catch{}return i}();function Zr(i,t){const e=t[0],n=t[1];return t[0]=i[0]*e+i[2]*n+i[4],t[1]=i[1]*e+i[3]*n+i[5],t}function Lc(i,t,e,n,r,o,a,s){const l=Math.sin(o),d=Math.cos(o);return i[0]=n*d,i[1]=r*l,i[2]=-n*l,i[3]=r*d,i[4]=a*n*d-s*n*l+t,i[5]=a*r*l+s*r*d+e,i}function Uw(i,t){const e=function nxe(i){return i[0]*i[3]-i[1]*i[2]}(t);Jn(0!==e,32);const n=t[0],r=t[1],o=t[2],a=t[3],s=t[4],l=t[5];return i[0]=a/e,i[1]=-r/e,i[2]=-o/e,i[3]=n/e,i[4]=(o*l-a*s)/e,i[5]=-(n*l-r*s)/e,i}let TH;function HE(i){const t="matrix("+i.join(", ")+")";if(NE)return t;const e=TH||(TH=document.createElement("div"));return e.style.transform=t,e.style.transform}function kh(i,t,e,n,r,o){o=o||[];let a=0;for(let s=t;s1)y=e;else{if(k>0){for(let E=0;Er&&(r=d),o=s,a=l}return r}function RH(i,t,e,n,r,o,a,s,l,d,f){if(t==e)return d;let y,k;if(0===r){if(k=qf(a,s,i[t],i[t+1]),k0&&ee>E)&&(W<0&&he0&&he>W)?(d=y,f=k):(o[a++]=d,o[a++]=f,s=d,l=f,d=y,f=k)}return o[a++]=d,o[a++]=f,a}function Jf(i,t,e,n,r){r=void 0!==r?r:[];let o=0;for(let a=t;a0;){const y=d.pop(),k=d.pop();let E=0;const W=i[k],ee=i[k+1],he=i[y],ge=i[y+1];for(let Ce=k+n;CeE&&(f=Ce,E=Pe)}E>r&&(l[(f-t)/n]=1,k+no&&(d-s)*(o-l)-(r-s)*(f-l)>0&&a++:f<=o&&(d-s)*(o-l)-(r-s)*(f-l)<0&&a--,s=d,l=f}return 0!==a}function $E(i,t,e,n,r,o){if(0===e.length||!Sh(i,t,e[0],n,r,o))return!1;for(let a=1,s=e.length;a=r[0]&&o[2]<=r[2]||o[1]>=r[1]&&o[3]<=r[3])||function mxe(i,t,e,n,r){let o;for(t+=n;t=a&&ee<=l),!n&&!!(4&o)&&!(4&r)&&(he=E-(k-l)*W,n=he>=s&&he<=d),!n&&!!(8&o)&&!(8&r)&&(ee=k-(E-s)/W,n=ee>=a&&ee<=l),!n&&16&o&&!(16&r)&&(he=E-(k-a)*W,n=he>=s&&he<=d)}return n}(r,a,s)}))}function $H(i,t,e,n,r){return!!(zE(i,t,e,n,r)||Sh(i,t,e,n,r[0],r[1])||Sh(i,t,e,n,r[0],r[3])||Sh(i,t,e,n,r[2],r[1])||Sh(i,t,e,n,r[2],r[3]))}function _xe(i,t,e,n){for(;t0}function GE(i,t,e,n,r){r=void 0!==r&&r;for(let o=0,a=e.length;oge&&(d=(f+y)/2,$E(i,t,e,n,d,W)&&(he=d,ge=Ce)),f=y}return isNaN(he)&&(he=r[o]),a?(a.push(he,W,ge),a):[he,W,ge]}(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new fxe(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(t){return t<0||this.ends_.length<=t?null:new UH(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLinearRings(){const t=this.layout,e=this.flatCoordinates,n=this.ends_,r=[];let o=0;for(let a=0,s=n.length;af&&k1&&"function"==typeof arguments[e-1]&&(n=arguments[e-1],--e);let r=0;for(;r0}getInteracting(){return this.hints_[1]>0}cancelAnimations(){let t;this.setHint(0,-this.hints_[0]);for(let e=0,n=this.animations_.length;e=0;--n){const r=this.animations_[n];let o=!0;for(let a=0,s=r.length;a0?d/l.duration:1;f>=1?(l.complete=!0,f=1):o=!1;const y=l.easing(f);if(l.sourceCenter){const k=l.sourceCenter[0],E=l.sourceCenter[1],W=l.targetCenter[0],ee=l.targetCenter[1];this.nextCenter_=l.targetCenter,this.targetCenter_=[k+y*(W-k),E+y*(ee-E)]}if(l.sourceResolution&&l.targetResolution){const k=1===y?l.targetResolution:l.sourceResolution+y*(l.targetResolution-l.sourceResolution);if(l.anchor){const E=this.getViewportSize_(this.getRotation()),W=this.constraints_.resolution(k,0,E,!0);this.targetCenter_=this.calculateCenterZoom(W,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=k,this.applyTargetState_(!0)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){const k=1===y?Dh(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+y*(l.targetRotation-l.sourceRotation);if(l.anchor){const E=this.constraints_.rotation(k,!0);this.targetCenter_=this.calculateCenterRotate(E,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=k}if(this.applyTargetState_(!0),e=!0,!l.complete)break}if(o){this.animations_[n]=null,this.setHint(0,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const a=r[0].callback;a&&zw(a,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let n;const r=this.getCenterInternal();return void 0!==r&&(n=[r[0]-e[0],r[1]-e[1]],wE(n,t-this.getRotation()),function yMe(i,t){i[0]+=+t[0],i[1]+=+t[1]}(n,e)),n}calculateCenterZoom(t,e){let n;const r=this.getCenterInternal(),o=this.getResolution();return void 0!==r&&void 0!==o&&(n=[e[0]-t*(e[0]-r[0])/o,e[1]-t*(e[1]-r[1])/o]),n}getViewportSize_(t){const e=this.viewportSize_;if(t){const n=e[0],r=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(r*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(r*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t&&SE(t,this.getProjection())}getCenterInternal(){return this.get(Ks.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){return EE(this.calculateExtentInternal(t),this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();Jn(e,1);const n=this.getResolution();Jn(void 0!==n,2);const r=this.getRotation();return Jn(void 0!==r,3),bE(e,n,r,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(Ks.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal(Mh(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const n=zi(t)/e[0],r=Gs(t)/e[1];return Math.max(n,r)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),r=Math.log(e/this.minResolution_)/Math.log(t);return function(o){return e/Math.pow(t,o*r)}}getRotation(){return this.get(Ks.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),o=Math.log(n/this.minResolution_)/e;return function(a){return Math.log(n/a)/e/o}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const n=this.padding_;return n&&(e=[e[0]-n[1]-n[3],e[1]-n[0]-n[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),n=this.getRotation();let r=this.getCenterInternal();const o=this.padding_;if(o){const a=this.getViewportSizeMinusPadding_();r=KE(r,this.getViewportSize_(),[a[0]/2+o[3],a[1]/2+o[0]],e,n)}return{center:r.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let n,r,e=this.minZoom_||0;if(this.resolutions_){const o=IE(this.resolutions_,t,1);e=o,n=this.resolutions_[o],r=o==this.resolutions_.length-1?2:n/this.resolutions_[o+1]}else n=this.maxResolution_,r=this.zoomFactor_;return e+Math.log(n/t)/Math.log(r)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const e=Ir(Math.floor(t),0,this.resolutions_.length-2);return this.resolutions_[e]/Math.pow(this.resolutions_[e]/this.resolutions_[e+1],Ir(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let n;if(Jn(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t))Jn(!kv(t),25),n=GH(Mh(t,this.getProjection()));else if("Circle"===t.getType()){const r=Mh(t.getExtent(),this.getProjection());n=GH(r),n.rotate(this.getRotation(),Wf(r))}else{const r=mH();n=r?t.clone().transform(r,this.getProjection()):t}this.fitInternal(n,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),n=Math.cos(e),r=Math.sin(-e),o=t.getFlatCoordinates(),a=t.getStride();let s=1/0,l=1/0,d=-1/0,f=-1/0;for(let y=0,k=o.length;y0;)this.pop()}extend(t){for(let e=0,n=t.length;ethis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new Ww("add",e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let n=0,r=e.length;n=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new Ww("remove",e,t)),e}setAt(t,e){if(t>=this.getLength())return void this.insertAt(t,e);if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const r=this.array_[t];this.array_[t]=e,this.dispatchEvent(new Ww("remove",r,t)),this.dispatchEvent(new Ww("add",e,t))}updateLength_(){this.set("length",this.array_.length)}assertUnique_(t,e){for(let n=0,r=this.array_.length;n=1024){let o=0;for(const a in t)0==(3&o++)&&(delete t[a],--e)}r=function Txe(i){let t,e,n,r,o;if(ZH.exec(i)&&(i=function XH(i){const t=document.createElement("div");if(t.style.color=i,""!==t.style.color){document.body.appendChild(t);const e=getComputedStyle(t).color;return document.body.removeChild(t),e}return""}(i)),KH.exec(i)){const a=i.length-1;let s;s=a<=4?1:2;const l=4===a||8===a;t=parseInt(i.substr(1+0*s,s),16),e=parseInt(i.substr(1+1*s,s),16),n=parseInt(i.substr(1+2*s,s),16),r=l?parseInt(i.substr(1+3*s,s),16):255,1==s&&(t=(t<<4)+t,e=(e<<4)+e,n=(n<<4)+n,l&&(r=(r<<4)+r)),o=[t,e,n,r/255]}else i.startsWith("rgba(")?(o=i.slice(5,-1).split(",").map(Number),JH(o)):i.startsWith("rgb(")?(o=i.slice(4,-1).split(",").map(Number),o.push(1),JH(o)):Jn(!1,14);return o}(n),t[n]=r,++e}return r}}();function Gw(i){return Array.isArray(i)?i:kxe(i)}function JH(i){return i[0]=Ir(i[0]+.5|0,0,255),i[1]=Ir(i[1]+.5|0,0,255),i[2]=Ir(i[2]+.5|0,0,255),i[3]=Ir(i[3],0,1),i}function e7(i){let t=i[0];t!=(0|t)&&(t=t+.5|0);let e=i[1];e!=(0|e)&&(e=e+.5|0);let n=i[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+t+","+e+","+n+","+(void 0===i[3]?1:Math.round(100*i[3])/100)+")"}function t7(i,t,e){return t+":"+i+":"+(e?QH(e):"null")}const qw=new class Sxe{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const n=this.cache_[e];0==(3&t++)&&!n.hasListener()&&(delete this.cache_[e],--this.cacheSize_)}}}get(t,e,n){const r=t7(t,e,n);return r in this.cache_?this.cache_[r]:null}set(t,e,n,r){const o=t7(t,e,n);this.cache_[o]=r,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}},n7=class Exe extends Rc{constructor(t){super(),this.background_=t.background;const e=Object.assign({},t);"object"==typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e.opacity=void 0!==t.opacity?t.opacity:1,Jn("number"==typeof e.opacity,64),e.visible=void 0===t.visible||t.visible,e.zIndex=t.zIndex,e.maxResolution=void 0!==t.maxResolution?t.maxResolution:1/0,e.minResolution=void 0!==t.minResolution?t.minResolution:0,e.minZoom=void 0!==t.minZoom?t.minZoom:-1/0,e.maxZoom=void 0!==t.maxZoom?t.maxZoom:1/0,this.className_=void 0!==e.className?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=Ir(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n||e.managed?n:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return hi()}getLayerStatesArray(t){return hi()}getExtent(){return this.get("extent")}getMaxResolution(){return this.get("maxResolution")}getMinResolution(){return this.get("minResolution")}getMinZoom(){return this.get("minZoom")}getMaxZoom(){return this.get("maxZoom")}getOpacity(){return this.get("opacity")}getSourceState(){return hi()}getVisible(){return this.get("visible")}getZIndex(){return this.get("zIndex")}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set("extent",t)}setMaxResolution(t){this.set("maxResolution",t)}setMinResolution(t){this.set("minResolution",t)}setMaxZoom(t){this.set("maxZoom",t)}setMinZoom(t){this.set("minZoom",t)}setOpacity(t){Jn("number"==typeof t,64),this.set("opacity",t)}setVisible(t){this.set("visible",t)}setZIndex(t){this.set("zIndex",t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}};function ZE(i,t){if(!i.visible)return!1;const e=t.resolution;if(e=i.maxResolution)return!1;const n=t.zoom;return n>i.minZoom&&n<=i.maxZoom}const Kw=class Axe extends n7{constructor(t){const e=Object.assign({},t);delete e.source,super(e),this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,t.render&&(this.render=t.render),t.map&&this.setMap(t.map),this.addChangeListener("source",this.handleSourcePropertyChange_),this.setSource(t.source?t.source:null)}getLayersArray(t){return(t=t||[]).push(this),t}getLayerStatesArray(t){return(t=t||[]).push(this.getLayerState()),t}getSource(){return this.get("source")||null}getRenderSource(){return this.getSource()}getSourceState(){const t=this.getSource();return t?t.getState():"undefined"}handleSourceChange_(){this.changed(),!this.sourceReady_&&"ready"===this.getSource().getState()&&(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&(hr(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const t=this.getSource();t&&(this.sourceChangeKey_=Di(t,"change",this.handleSourceChange_,this),"ready"===t.getState()&&(this.sourceReady_=!0,setTimeout(()=>{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}isVisible(t){let e;const n=this.getMapInternal();let r;!t&&n&&(t=n.getView()),e=t instanceof Il?{viewState:t.getState(),extent:t.calculateExtent()}:t,!e.layerStatesArray&&n&&(e.layerStatesArray=n.getLayerGroup().getLayerStatesArray()),r=e.layerStatesArray?e.layerStatesArray.find(a=>a.layer===this):this.getLayerState();const o=this.getExtent();return ZE(r,e.viewState)&&(!o||da(o,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];let e;const n=this.getSource();if(n&&(e=n.getAttributions()),!e)return[];let o=e(t instanceof Il?t.getViewStateAndExtent():t);return Array.isArray(o)||(o=[o]),o}render(t,e){const n=this.getRenderer();return n.prepareFrame(t)?(this.rendered=!0,n.renderFrame(t,e)):null}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set("map",t)}getMapInternal(){return this.get("map")}setMap(t){this.mapPrecomposeKey_&&(hr(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(hr(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Di(t,"precompose",function(e){const r=e.frameState.layerStatesArray,o=this.getLayerState(!1);Jn(!r.some(function(a){return a.layer===o.layer}),67),r.push(o)},this),this.mapRenderKey_=Di(this,"change",t.render,t),this.changed())}setSource(t){this.set("source",t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}};function Fxe(i,t){qw.expire()}const Pxe=class Ixe extends AE{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){hi()}calculateMatrices2D(t){const e=t.viewState,n=t.coordinateToPixelTransform,r=t.pixelToCoordinateTransform;Lc(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Uw(r,n)}forEachFeatureAtCoordinate(t,e,n,r,o,a,s,l){let d;const f=e.viewState;function y(ke,Pe,Ue,ze){return o.call(a,Pe,ke?Ue:null,ze)}const k=f.projection,E=lH(t.slice(),k),W=[[0,0]];if(k.canWrapX()&&r){const Pe=zi(k.getExtent());W.push([-Pe,0],[Pe,0])}const ee=e.layerStatesArray,he=ee.length,ge=[],Ce=[];for(let ke=0;ke=0;--Pe){const Ue=ee[Pe],ze=Ue.layer;if(ze.hasRenderer()&&ZE(Ue,f)&&s.call(l,ze)){const Qe=ze.getRenderer(),ht=ze.getSource();if(Qe&&ht){const vt=ht.getWrapX()?E:t,Vt=y.bind(null,Ue.managed);Ce[0]=vt[0]+W[ke][0],Ce[1]=vt[1]+W[ke][1],d=Qe.forEachFeatureAtCoordinate(Ce,e,n,Vt,ge)}if(d)return d}}if(0===ge.length)return;const we=1/ge.length;return ge.forEach((ke,Pe)=>ke.distanceSq+=Pe*we),ge.sort((ke,Pe)=>ke.distanceSq-Pe.distanceSq),ge.some(ke=>d=ke.callback(ke.feature,ke.layer,ke.geometry)),d}hasFeatureAtCoordinate(t,e,n,r,o,a){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,r,Iv,this,o,a)}getMap(){return this.map_}renderFrame(t){hi()}flushDeclutterItems(t){}scheduleExpireIconCache(t){qw.canExpireCache()&&t.postRenderFunctions.push(Fxe)}},r7=class Rxe extends Pc{constructor(t,e,n,r){super(t),this.inversePixelTransform=e,this.frameState=n,this.context=r}},Zw="ol-hidden",Qw="ol-unselectable",QE="ol-control",o7="ol-collapsed",Lxe=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),a7=["style","variant","weight","size","lineHeight","family"],s7=function(i){const t=i.match(Lxe);if(!t)return null;const e={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let n=0,r=a7.length;nMath.max(r,t2(i,o)),0);return e[t]=n,n}const $xe=class jxe extends Pxe{constructor(t){super(t),this.fontChangeListenerKey_=Di(Bc,"propertychange",t.redrawText.bind(t)),this.element_=document.createElement("div");const e=this.element_.style;e.position="absolute",e.width="100%",e.height="100%",e.zIndex="0",this.element_.className=Qw+" ol-layers";const n=t.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0,this.declutterLayers_=[]}dispatchRenderEvent(t,e){const n=this.getMap();if(n.hasListener(t)){const r=new r7(t,void 0,e);n.dispatchEvent(r)}}disposeInternal(){hr(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(t){if(!t)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(t),this.dispatchRenderEvent("precompose",t);const e=t.layerStatesArray.sort(function(a,s){return a.zIndex-s.zIndex}),n=t.viewState;this.children_.length=0;const r=this.declutterLayers_;r.length=0;let o=null;for(let a=0,s=e.length;a=0;--n)e[n].renderDeclutter(t);e.length=0}};class zd extends Pc{constructor(t,e){super(t),this.layer=e}}class nA extends n7{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let n=t.layers;super(e),this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener("layers",this.handleLayersChanged_),n?Array.isArray(n)?n=new Fl(n.slice(),{unique:!0}):Jn("function"==typeof n.getArray,43):n=new Fl(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(hr),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push(Di(t,"add",this.handleLayersAdd_,this),Di(t,"remove",this.handleLayersRemove_,this));for(const n in this.listenerKeys_)this.listenerKeys_[n].forEach(hr);Fv(this.listenerKeys_);const e=t.getArray();for(let n=0,r=e.length;n{this.clickTimeoutId_=void 0;const n=new Wd(yr.SINGLECLICK,this.map_,t);this.dispatchEvent(n)},250)}updateActivePointers_(t){const e=t,n=e.pointerId;if(e.type==yr.POINTERUP||e.type==yr.POINTERCANCEL){delete this.trackedTouches_[n];for(const r in this.trackedTouches_)if(this.trackedTouches_[r].target!==e.target){delete this.trackedTouches_[r];break}}else(e.type==yr.POINTERDOWN||e.type==yr.POINTERMOVE)&&(this.trackedTouches_[n]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new Wd(yr.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(hr),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);const e=new Wd(yr.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){const n=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Di(n,yr.POINTERMOVE,this.handlePointerMove_,this),Di(n,yr.POINTERUP,this.handlePointerUp_,this),Di(this.element_,yr.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==n&&this.dragListenerKeys_.push(Di(this.element_.getRootNode(),yr.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new Wd(yr.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new Wd(yr.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;(!e||e.defaultPrevented)&&("boolean"!=typeof t.cancelable||!0===t.cancelable)&&t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(hr(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener("touchmove",this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(hr(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(hr),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}},r2=1/0,rA=class eke extends Rc{constructor(t){super();const e=t.element;e&&!t.target&&!e.style.pointerEvents&&(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){XE(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&XE(this.element);for(let e=0,n=this.listenerKeys.length;er.getAttributions(t)))),n=!this.getMap().getAllLayers().some(r=>r.getSource()&&!1===r.getSource().getAttributionsCollapsible());return this.overrideCollapsible_||this.setCollapsible(n),e}updateElement_(t){if(!t)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const e=this.collectSourceAttributions_(t),n=e.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!jd(e,this.renderedAttributions_)){!function Oxe(i){for(;i.lastChild;)i.removeChild(i.lastChild)}(this.ulElement_);for(let r=0,o=e.length;r0&&n%(2*Math.PI)!=0?e.animate({rotation:0,duration:this.duration_,easing:Xf}):e.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const n=e.viewState.rotation;if(n!=this.rotation_){const r="rotate("+n+"rad)";if(this.autoHide_){const o=this.element.classList.contains(Zw);o||0!==n?o&&0!==n&&this.element.classList.remove(Zw):this.element.classList.add(Zw)}this.label_.style.transform=r}this.rotation_=n}},ake=class oke extends rA{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=void 0!==t.className?t.className:"ol-zoom",n=void 0!==t.delta?t.delta:1,r=void 0!==t.zoomInClassName?t.zoomInClassName:e+"-in",o=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+"-out",a=void 0!==t.zoomInLabel?t.zoomInLabel:"+",s=void 0!==t.zoomOutLabel?t.zoomOutLabel:"\u2013",l=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",d=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",f=document.createElement("button");f.className=r,f.setAttribute("type","button"),f.title=l,f.appendChild("string"==typeof a?document.createTextNode(a):a),f.addEventListener("click",this.handleClick_.bind(this,n),!1);const y=document.createElement("button");y.className=o,y.setAttribute("type","button"),y.title=d,y.appendChild("string"==typeof s?document.createTextNode(s):s),y.addEventListener("click",this.handleClick_.bind(this,-n),!1);const E=this.element;E.className=e+" "+Qw+" "+QE,E.appendChild(f),E.appendChild(y),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const n=this.getMap().getView();if(!n)return;const r=n.getZoom();if(void 0!==r){const o=n.getConstrainedZoom(r+t);this.duration_>0?(n.getAnimating()&&n.cancelAnimations(),n.animate({zoom:o,duration:this.duration_,easing:Xf})):n.setZoom(o)}}};function oA(i,t,e,n){const r=i.getZoom();if(void 0===r)return;const o=i.getConstrainedZoom(r+t),a=i.getResolutionForZoom(o);i.getAnimating()&&i.cancelAnimations(),i.animate({resolution:a,anchor:e,duration:void 0!==n?n:250,easing:Xf})}const Vv=class lke extends Rc{constructor(t){super(),t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get("active")}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set("active",t)}setMap(t){this.map_=t}},uke=class dke extends Vv{constructor(t){super(),this.delta_=(t=t||{}).delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:250}handleEvent(t){let e=!1;if(t.type==yr.DBLCLICK){const n=t.originalEvent,o=t.coordinate,a=n.shiftKey?-this.delta_:this.delta_;oA(t.map.getView(),a,o,this.duration_),n.preventDefault(),e=!0}return!e}};function aA(i){const t=i.length;let e=0,n=0;for(let r=0;r0}}else if(t.type==yr.POINTERDOWN){const n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==yr.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}};function sA(i){const t=arguments;return function(e){let n=!0;for(let r=0,o=t.length;r0&&this.condition_(t)){const n=t.map.getView();return this.lastCentroid=null,n.getAnimating()&&n.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}},wke=class Cke extends Hv{constructor(t){t=t||{},super({stopDown:Bw}),this.condition_=t.condition?t.condition:pke,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!lA(t))return;const e=t.map,n=e.getView();if(n.getConstraints().rotation===LE)return;const r=e.getSize(),o=t.pixel,a=Math.atan2(r[1]/2-o[1],o[0]-r[0]/2);void 0!==this.lastAngle_&&n.adjustRotationInternal(-(a-this.lastAngle_)),this.lastAngle_=a}handleUpEvent(t){return!lA(t)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){return!!(lA(t)&&f7(t)&&this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0)}},Mke=class Dke extends AE{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,n="px",r=this.element_.style;r.left=Math.min(t[0],e[0])+n,r.top=Math.min(t[1],e[1])+n,r.width=Math.abs(e[0]-t[0])+n,r.height=Math.abs(e[1]-t[1])+n}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const t=this.startPixel_,e=this.endPixel_,r=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);r[4]=r[0].slice(),this.geometry_?this.geometry_.setCoordinates([r]):this.geometry_=new vxe([r])}getGeometry(){return this.geometry_}};class cA extends Pc{constructor(t,e,n){super(t),this.coordinate=e,this.mapBrowserEvent=n}}const kke=class xke extends Hv{constructor(t){super(),this.box_=new Mke((t=t||{}).className||"ol-dragbox"),this.minArea_=void 0!==t.minArea?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:f7,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,n){const r=n[0]-e[0],o=n[1]-e[1];return r*r+o*o>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new cA("boxdrag",t.coordinate,t))}handleUpEvent(t){this.box_.setMap(null);const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new cA(e?"boxend":"boxcancel",t.coordinate,t)),!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new cA("boxstart",t.coordinate,t)),!0)}onBoxEnd(t){}},Ske=class Tke extends kke{constructor(t){super({condition:(t=t||{}).condition?t.condition:_ke,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){const n=this.getMap().getView();let r=this.getGeometry();if(this.out_){const o=n.rotatedExtentForGeometry(r),a=n.getResolutionForExtentInternal(o),s=n.getResolution()/a;r=r.clone(),r.scale(s*s)}n.fitInternal(r,{duration:this.duration_,easing:Xf})}},Ake=class Eke extends Vv{constructor(t){super(),t=t||{},this.defaultCondition_=function(e){return g7(e)&&m7(e)},this.condition_=void 0!==t.condition?t.condition:this.defaultCondition_,this.duration_=void 0!==t.duration?t.duration:100,this.pixelDelta_=void 0!==t.pixelDelta?t.pixelDelta:128}handleEvent(t){let e=!1;if("keydown"==t.type){const n=t.originalEvent,r=n.key;if(this.condition_(t)&&("ArrowDown"==r||"ArrowLeft"==r||"ArrowRight"==r||"ArrowUp"==r)){const a=t.map.getView(),s=a.getResolution()*this.pixelDelta_;let l=0,d=0;"ArrowDown"==r?d=-s:"ArrowLeft"==r?l=-s:"ArrowRight"==r?l=s:d=s;const f=[l,d];wE(f,a.getRotation()),function cke(i,t,e){const n=i.getCenterInternal();n&&i.animateInternal({duration:void 0!==e?e:250,easing:ZMe,center:i.getConstrainedCenter([n[0]+t[0],n[1]+t[1]])})}(a,f,this.duration_),n.preventDefault(),e=!0}}return!e}},Fke=class Ike extends Vv{constructor(t){super(),this.condition_=(t=t||{}).condition?t.condition:function(e){return!function(i){const t=i.originalEvent;return MH?t.metaKey:t.ctrlKey}(e)&&m7(e)},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:100}handleEvent(t){let e=!1;if("keydown"==t.type||"keypress"==t.type){const n=t.originalEvent,r=n.key;if(this.condition_(t)&&("+"===r||"-"===r)){const a="+"===r?this.delta_:-this.delta_;oA(t.map.getView(),a,void 0,this.duration_),n.preventDefault(),e=!0}}return!e}},Oke=class Lke extends Vv{constructor(t){super(t=t||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:gke;this.condition_=t.onFocusOnly?sA(p7,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.mode_=void 0,this.trackpadEventGap_=400,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();t&&t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t)||"wheel"!==t.type)return!0;const n=t.map,r=t.originalEvent;let o;if(r.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),"wheel"==t.type&&(o=r.deltaY,QMe&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(o/=xH),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(o*=40)),0===o)return!1;this.lastDelta_=o;const a=Date.now();void 0===this.startTime_&&(this.startTime_=a),(!this.mode_||a-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(o)<4?"trackpad":"wheel");const s=n.getView();if("trackpad"===this.mode_&&!s.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(s.getAnimating()&&s.cancelAnimations(),s.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),s.adjustZoom(-o/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=a,!1;this.totalDelta_+=o;const l=Math.max(this.timeout_-(a-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),l),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let n=-Ir(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),oA(e,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}},Bke=class Nke extends Hv{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=Bw),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==t.threshold?t.threshold:.3,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){let e=0;const n=this.targetPointers[0],r=this.targetPointers[1],o=Math.atan2(r.clientY-n.clientY,r.clientX-n.clientX);if(void 0!==this.lastAngle_){const l=o-this.lastAngle_;this.rotationDelta_+=l,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=l}this.lastAngle_=o;const a=t.map,s=a.getView();s.getConstraints().rotation!==LE&&(this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(aA(this.targetPointers))),this.rotating_&&(a.render(),s.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){return!(this.targetPointers.length<2&&(t.map.getView().endInteraction(this.duration_),1))}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}},Hke=class Vke extends Hv{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=Bw),super(e),this.anchor_=null,this.duration_=void 0!==t.duration?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1;const n=this.targetPointers[0],r=this.targetPointers[1],o=n.clientX-r.clientX,a=n.clientY-r.clientY,s=Math.sqrt(o*o+a*a);void 0!==this.lastDistance_&&(e=this.lastDistance_/s),this.lastDistance_=s;const l=t.map,d=l.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=l.getCoordinateFromPixelInternal(l.getEventPixel(aA(this.targetPointers))),l.render(),d.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){return!(this.targetPointers.length<2)||(t.map.getView().endInteraction(this.duration_,this.lastScaleDelta_>1?1:-1),!1)}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};function _7(i){i=i||{};const t=new Fl,e=new class Pke{constructor(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]0&&this.points_[n+2]>t;)n-=3;const r=this.points_[e+2]-this.points_[n+2];if(r<1e3/60)return!1;const o=this.points_[e]-this.points_[n],a=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(a,o),this.initialVelocity_=Math.sqrt(o*o+a*a)/r,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}(-.005,.05,100);return(void 0===i.altShiftDragRotate||i.altShiftDragRotate)&&t.push(new wke),(void 0===i.doubleClickZoom||i.doubleClickZoom)&&t.push(new uke({delta:i.zoomDelta,duration:i.zoomDuration})),(void 0===i.dragPan||i.dragPan)&&t.push(new bke({onFocusOnly:i.onFocusOnly,kinetic:e})),(void 0===i.pinchRotate||i.pinchRotate)&&t.push(new Bke),(void 0===i.pinchZoom||i.pinchZoom)&&t.push(new Hke({duration:i.zoomDuration})),(void 0===i.keyboard||i.keyboard)&&(t.push(new Ake),t.push(new Fke({delta:i.zoomDelta,duration:i.zoomDuration}))),(void 0===i.mouseWheelZoom||i.mouseWheelZoom)&&t.push(new Oke({onFocusOnly:i.onFocusOnly,duration:i.zoomDuration})),(void 0===i.shiftDragZoom||i.shiftDragZoom)&&t.push(new Ske({duration:i.zoomDuration})),t}function v7(i){return i[0]>0&&i[1]>0}function is(i,t){return Array.isArray(i)?i:(void 0===t?t=[i,i]:(t[0]=i,t[1]=i),t)}function y7(i){i instanceof Kw?i.setMapInternal(null):i instanceof n2&&i.getLayers().forEach(y7)}function b7(i,t){if(i instanceof Kw)i.setMapInternal(t);else if(i instanceof n2){const e=i.getLayers().getArray();for(let n=0,r=e.length;nthis.updateSize()),this.controls=e.controls||function ske(i){i=i||{};const t=new Fl;return(void 0===i.zoom||i.zoom)&&t.push(new ake(i.zoomOptions)),(void 0===i.rotate||i.rotate)&&t.push(new rke(i.rotateOptions)),(void 0===i.attribution||i.attribution)&&t.push(new nke(i.attributionOptions)),t}(),this.interactions=e.interactions||_7({onFocusOnly:!0}),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new class Qxe extends class Kxe{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,Fv(this.queuedElements_)}dequeue(){const t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));const r=this.keyFunction_(n);return delete this.queuedElements_[r],n}enqueue(t){Jn(!(this.keyFunction_(t)in this.queuedElements_),31);const e=this.priorityFunction_(t);return e!=r2&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,n=this.priorities_,r=e.length,o=e[t],a=n[t],s=t;for(;t>1;){const l=this.getLeftChildIndex_(t),d=this.getRightChildIndex_(t),f=dt;){const s=this.getParentIndex_(e);if(!(r[s]>a))break;n[e]=n[s],r[e]=r[s],e=s}n[e]=o,r[e]=a}reprioritize(){const t=this.priorityFunction_,e=this.elements_,n=this.priorities_;let r=0;const o=e.length;let a,s,l;for(s=0;s0;)o=this.dequeue()[0],a=o.getKey(),r=o.getState(),0===r&&!(a in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[a]=!0,++this.tilesLoading_,++n,o.load())}}(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener("layergroup",this.handleLayerGroupChanged_),this.addChangeListener("view",this.handleViewChanged_),this.addChangeListener("size",this.handleSizeChanged_),this.addChangeListener("target",this.handleTargetChanged_),this.setProperties(e.values);const n=this;t.view&&!(t.view instanceof Il)&&t.view.then(function(r){n.setView(new Il(r))}),this.controls.addEventListener("add",r=>{r.element.setMap(this)}),this.controls.addEventListener("remove",r=>{r.element.setMap(null)}),this.interactions.addEventListener("add",r=>{r.element.setMap(this)}),this.interactions.addEventListener("remove",r=>{r.element.setMap(null)}),this.overlays_.addEventListener("add",r=>{this.addOverlayInternal_(r.element)}),this.overlays_.addEventListener("remove",r=>{const o=r.element.getId();void 0!==o&&delete this.overlayIdIndex_[o.toString()],r.element.setMap(null)}),this.controls.forEach(r=>{r.setMap(this)}),this.interactions.forEach(r=>{r.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){b7(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,n){if(!this.frameState_||!this.renderer_)return;const r=this.getCoordinateFromPixelInternal(t);return this.renderer_.forEachFeatureAtCoordinate(r,this.frameState_,void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,!1!==n.checkWrapped,e,null,void 0!==n.layerFilter?n.layerFilter:Iv,null)}getFeaturesAtPixel(t,e){const n=[];return this.forEachFeatureAtPixel(t,function(r){n.push(r)},e),n}getAllLayers(){const t=[];return function e(n){n.forEach(function(r){r instanceof n2?e(r.getLayers()):t.push(r)})}(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(t);return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,void 0!==(e=void 0!==e?e:{}).hitTolerance?e.hitTolerance:0,!1!==e.checkWrapped,void 0!==e.layerFilter?e.layerFilter:Iv,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const n=this.viewport_.getBoundingClientRect(),r=this.getSize(),s="changedTouches"in t?t.changedTouches[0]:t;return[(s.clientX-n.left)/(n.width/r[0]),(s.clientY-n.top)/(n.height/r[1])]}getTarget(){return this.get("target")}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return SE(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?Zr(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get("layergroup")}setLayers(t){const e=this.getLayerGroup();if(t instanceof Fl)return void e.setLayers(t);const n=e.getLayers();n.clear(),n.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,n=t.length;e=0;o--){const a=r[o];if(a.getMap()===this&&a.getActive()&&this.getTargetElement()&&(!a.handleEvent(t)||t.propagationStopped))break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let r=this.maxTilesLoading_,o=r;if(t){const a=t.viewHints;if(a[0]||a[1]){const s=Date.now()-t.time>8;r=s?0:8,o=s?0:2}}e.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new zd("removelayer",e)),this.set("layergroup",t)}setSize(t){this.set("size",t)}setTarget(t){this.set("target",t)}setView(t){if(!t||t instanceof Il)return void this.set("view",t);this.set("view",new Il);const e=this;t.then(function(n){e.setView(new Il(n))})}updateSize(){const t=this.getTargetElement();let e;if(t){const r=getComputedStyle(t),o=t.offsetWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.paddingLeft)-parseFloat(r.paddingRight)-parseFloat(r.borderRightWidth),a=t.offsetHeight-parseFloat(r.borderTopWidth)-parseFloat(r.paddingTop)-parseFloat(r.paddingBottom)-parseFloat(r.borderBottomWidth);!isNaN(o)&&!isNaN(a)&&(e=[o,a],!v7(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&cH("No map visible because the map container's width or height are 0."))}const n=this.getSize();e&&(!n||!jd(e,n))&&(this.setSize(e),this.updateViewportSize_())}updateViewportSize_(){const t=this.getView();if(t){let e;const n=getComputedStyle(this.viewport_);n.width&&n.height&&(e=[parseInt(n.width,10),parseInt(n.height,10)]),t.setViewportSize(e)}}},Wke=class zke extends Kw{constructor(t){t=t||{};const e=Object.assign({},t);delete e.preload,delete e.useInterimTilesOnError,super(e),this.setPreload(void 0!==t.preload?t.preload:0),this.setUseInterimTilesOnError(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}getPreload(){return this.get("preload")}setPreload(t){this.set("preload",t)}getUseInterimTilesOnError(){return this.get("useInterimTilesOnError")}setUseInterimTilesOnError(t){this.set("useInterimTilesOnError",t)}getData(t){return super.getData(t)}},qke=class Gke extends vH{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.declutterExecutorGroup=null}getFeatures(t){return hi()}getData(t){return null}prepareFrame(t){return hi()}renderFrame(t,e){return hi()}loadedTileCallback(t,e,n){t[e]||(t[e]={}),t[e][n.tileCoord.toString()]=n}createLoadedTileFinder(t,e,n){return(r,o)=>{const a=this.loadedTileCallback.bind(this,n,r);return t.forEachLoadedTile(e,r,o,a)}}forEachFeatureAtCoordinate(t,e,n,r,o){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;(2===e.getState()||3===e.getState())&&this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return 2!=e&&3!=e&&t.addEventListener("change",this.boundHandleImageChange_),0==e&&(t.load(),e=t.getState()),2==e}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}},C7=[];let ig=null;const w7=class Zke extends qke{constructor(t){super(t),this.container=null,this.tempTransform=[1,0,0,1,0,0],this.pixelTransform=[1,0,0,1,0,0],this.inversePixelTransform=[1,0,0,1,0,0],this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,e,n){let r;ig||function Kke(){ig=qo(1,1,void 0,{willReadFrequently:!0})}(),ig.clearRect(0,0,1,1);try{ig.drawImage(t,e,n,1,1,0,0,1,1),r=ig.getImageData(0,0,1,1).data}catch{return ig=null,null}return r}getBackground(t){let n=this.getLayer().getBackground();return"function"==typeof n&&(n=n(t.viewState.resolution)),n||void 0}useContainer(t,e,n){const r=this.getLayer().getClassName();let o,a;if(t&&t.className===r&&(!n||t&&t.style.backgroundColor&&jd(Gw(t.style.backgroundColor),Gw(n)))){const s=t.firstElementChild;s instanceof HTMLCanvasElement&&(a=s.getContext("2d"))}if(a&&a.canvas.style.transform===e?(this.container=t,this.context=a,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){o=document.createElement("div"),o.className=r;let s=o.style;s.position="absolute",s.width="100%",s.height="100%",a=qo();const l=a.canvas;o.appendChild(l),s=l.style,s.position="absolute",s.left="0",s.transformOrigin="top left",this.container=o,this.context=a}!this.containerReused&&n&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=n)}clipUnrotated(t,e,n){const r=wh(n),o=Ew(n),a=Sw(n),s=Tw(n);Zr(e.coordinateToPixelTransform,r),Zr(e.coordinateToPixelTransform,o),Zr(e.coordinateToPixelTransform,a),Zr(e.coordinateToPixelTransform,s);const l=this.inversePixelTransform;Zr(l,r),Zr(l,o),Zr(l,a),Zr(l,s),t.save(),t.beginPath(),t.moveTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.clip()}dispatchRenderEvent_(t,e,n){const r=this.getLayer();if(r.hasListener(t)){const o=new r7(t,this.inversePixelTransform,n,e);r.dispatchEvent(o)}}preRender(t,e){this.frameState=e,this.dispatchRenderEvent_("prerender",t,e)}postRender(t,e){this.dispatchRenderEvent_("postrender",t,e)}getRenderTransform(t,e,n,r,o,a,s){const f=r/e;return Lc(this.tempTransform,o/2,a/2,f,-f,-n,-t[0]+s,-t[1])}disposeInternal(){delete this.frameState,super.disposeInternal()}},D7=class Qke extends Vw{constructor(t,e,n){super(),n=n||{},this.tileCoord=t,this.state=e,this.interimTile=null,this.key="",this.transition_=void 0===n.transition?250:n.transition,this.transitionStarts_={},this.interpolate=!!n.interpolate}changed(){this.dispatchEvent("change")}release(){3===this.state&&this.setState(4)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){if(!this.interimTile)return this;let t=this.interimTile;do{if(2==t.getState())return this.transition_=0,t;t=t.interimTile}while(t);return this}refreshInterimChain(){if(!this.interimTile)return;let t=this.interimTile,e=this;do{if(2==t.getState()){t.interimTile=null;break}1==t.getState()?e=t:0==t.getState()?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(3!==this.state&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){hi()}getAlpha(t,e){if(!this.transition_)return 1;let n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;const r=e-n+1e3/60;return r>=this.transition_?1:DH(r/this.transition_)}inTransition(t){return!!this.transition_&&-1!==this.transitionStarts_[t]}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}};function dA(i,t,e){const n=i;let r=!0,o=!1,a=!1;const s=[Hw(n,"load",function(){a=!0,o||t()})];return n.src&&JMe?(o=!0,n.decode().then(function(){r&&t()}).catch(function(l){r&&(a?t():e())})):s.push(Hw(n,"error",e)),function(){r=!1,s.forEach(hr)}}const M7=class Xke extends D7{constructor(t,e,n,r,o,a){super(t,e,a),this.crossOrigin_=r,this.src_=n,this.key=n,this.image_=new Image,null!==r&&(this.image_.crossOrigin=r),this.unlisten_=null,this.tileLoadFunction_=o}getImage(){return this.image_}setImage(t){this.image_=t,this.state=2,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=3,this.unlistenImage_(),this.image_=function Jke(){const i=qo(1,1);return i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1),i.canvas}(),this.changed()}handleImageLoad_(){const t=this.image_;this.state=t.naturalWidth&&t.naturalHeight?2:4,this.unlistenImage_(),this.changed()}load(){3==this.state&&(this.state=0,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),0==this.state&&(this.state=1,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=dA(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}};let uA;const rg=[];function k7(i,t,e,n,r){i.beginPath(),i.moveTo(0,0),i.lineTo(t,e),i.lineTo(n,r),i.closePath(),i.save(),i.clip(),i.fillRect(0,0,Math.max(t,n)+1,Math.max(e,r)),i.restore()}function hA(i,t){return Math.abs(i[4*t]-210)>2||Math.abs(i[4*t+3]-191.25)>2}function T7(i,t,e,n){const r=Av(e,t,i);let o=hH(t,n,e);const a=t.getMetersPerUnit();void 0!==a&&(o*=a);const s=i.getMetersPerUnit();void 0!==s&&(o/=s);const l=i.getExtent();if(!l||xw(l,r)){const d=hH(i,o,r)/o;isFinite(d)&&d>0&&(o/=d)}return o}const pA=class sTe extends D7{constructor(t,e,n,r,o,a,s,l,d,f,y,k){super(o,0,{interpolate:!!k}),this.renderEdges_=void 0!==y&&y,this.pixelRatio_=s,this.gutter_=l,this.canvas_=null,this.sourceTileGrid_=e,this.targetTileGrid_=r,this.wrappedTileCoord_=a||o,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const E=r.getTileCoordExtent(this.wrappedTileCoord_),W=this.targetTileGrid_.getExtent();let ee=this.sourceTileGrid_.getExtent();const he=W?Gf(E,W):E;if(0===kw(he))return void(this.state=4);const ge=t.getExtent();ge&&(ee=ee?Gf(ee,ge):ge);const Ce=r.getResolution(this.wrappedTileCoord_[0]),we=function oTe(i,t,e,n){const r=Wf(e);let o=T7(i,t,r,n);return(!isFinite(o)||o<=0)&&rH(e,function(a){return o=T7(i,t,a,n),isFinite(o)&&o>0}),o}(t,n,he,Ce);if(!isFinite(we)||we<=0)return void(this.state=4);if(this.triangulation_=new class nTe{constructor(t,e,n,r,o,a){this.sourceProj_=t,this.targetProj_=e;let s={};const l=Ev(this.targetProj_,this.sourceProj_);this.transformInv_=function(Ce){const we=Ce[0]+"/"+Ce[1];return s[we]||(s[we]=l(Ce)),s[we]},this.maxSourceExtent_=r,this.errorThresholdSquared_=o*o,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&zi(r)>=zi(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?zi(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?zi(this.targetProj_.getExtent()):null;const d=wh(n),f=Ew(n),y=Sw(n),k=Tw(n),E=this.transformInv_(d),W=this.transformInv_(f),ee=this.transformInv_(y),he=this.transformInv_(k),ge=10+(a?Math.max(0,Math.ceil(Math.log2(kw(n)/(a*a*256*256)))):0);if(this.addQuad_(d,f,y,k,E,W,ee,he,ge),this.wrapsXInSource_){let Ce=1/0;this.triangles_.forEach(function(we,ke,Pe){Ce=Math.min(Ce,we.source[0][0],we.source[1][0],we.source[2][0])}),this.triangles_.forEach(we=>{if(Math.max(we.source[0][0],we.source[1][0],we.source[2][0])-Ce>this.sourceWorldWidth_/2){const ke=[[we.source[0][0],we.source[0][1]],[we.source[1][0],we.source[1][1]],[we.source[2][0],we.source[2][1]]];ke[0][0]-Ce>this.sourceWorldWidth_/2&&(ke[0][0]-=this.sourceWorldWidth_),ke[1][0]-Ce>this.sourceWorldWidth_/2&&(ke[1][0]-=this.sourceWorldWidth_),ke[2][0]-Ce>this.sourceWorldWidth_/2&&(ke[2][0]-=this.sourceWorldWidth_);const Pe=Math.min(ke[0][0],ke[1][0],ke[2][0]);Math.max(ke[0][0],ke[1][0],ke[2][0])-Pe.5&&y<1;let W=!1;if(d>0&&(this.targetProj_.isGlobal()&&this.targetWorldWidth_&&(W=zi(XV([t,e,n,r]))/this.targetWorldWidth_>.25||W),!E&&this.sourceProj_.isGlobal()&&y&&(W=y>.25||W)),!W&&this.maxSourceExtent_&&isFinite(f[0])&&isFinite(f[1])&&isFinite(f[2])&&isFinite(f[3])&&!da(f,this.maxSourceExtent_))return;let ee=0;if(!(W||isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(l[0])&&isFinite(l[1])))if(d>0)W=!0;else if(ee=(isFinite(o[0])&&isFinite(o[1])?0:8)+(isFinite(a[0])&&isFinite(a[1])?0:4)+(isFinite(s[0])&&isFinite(s[1])?0:2)+(isFinite(l[0])&&isFinite(l[1])?0:1),1!=ee&&2!=ee&&4!=ee&&8!=ee)return;if(d>0){if(!W){const ge=this.transformInv_([(t[0]+n[0])/2,(t[1]+n[1])/2]);let Ce;Ce=E?(Dh(o[0],k)+Dh(s[0],k))/2-Dh(ge[0],k):(o[0]+s[0])/2-ge[0];const we=(o[1]+s[1])/2-ge[1];W=Ce*Ce+we*we>this.errorThresholdSquared_}if(W){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){const he=[(e[0]+n[0])/2,(e[1]+n[1])/2],ge=this.transformInv_(he),Ce=[(r[0]+t[0])/2,(r[1]+t[1])/2],we=this.transformInv_(Ce);this.addQuad_(t,e,he,Ce,o,a,ge,we,d-1),this.addQuad_(Ce,he,n,r,we,ge,s,l,d-1)}else{const he=[(t[0]+e[0])/2,(t[1]+e[1])/2],ge=this.transformInv_(he),Ce=[(n[0]+r[0])/2,(n[1]+r[1])/2],we=this.transformInv_(Ce);this.addQuad_(t,he,Ce,r,o,ge,we,l,d-1),this.addQuad_(he,e,n,Ce,ge,a,s,we,d-1)}return}}if(E){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}0==(11&ee)&&this.addTriangle_(t,n,r,o,s,l),0==(14&ee)&&this.addTriangle_(t,n,e,o,s,a),ee&&(0==(13&ee)&&this.addTriangle_(e,r,t,a,l,o),0==(7&ee)&&this.addTriangle_(e,r,n,a,l,s))}calculateSourceExtent(){const t=[1/0,1/0,-1/0,-1/0];return this.triangles_.forEach(function(e,n,r){const o=e.source;zf(t,o[0]),zf(t,o[1]),zf(t,o[2])}),t}getTriangles(){return this.triangles_}}(t,n,he,ee,we*(void 0!==f?f:.5),Ce),0===this.triangulation_.getTriangles().length)return void(this.state=4);this.sourceZ_=e.getZForResolution(we);let Pe=this.triangulation_.calculateSourceExtent();if(ee&&(t.canWrapX()?(Pe[1]=Ir(Pe[1],ee[1],ee[3]),Pe[3]=Ir(Pe[3],ee[1],ee[3])):Pe=Gf(Pe,ee)),kw(Pe)){const Ue=e.getTileRangeForExtentAndZ(Pe,this.sourceZ_);for(let ze=Ue.minX;ze<=Ue.maxX;ze++)for(let Qe=Ue.minY;Qe<=Ue.maxY;Qe++){const ht=d(this.sourceZ_,ze,Qe,s);ht&&this.sourceTiles_.push(ht)}0===this.sourceTiles_.length&&(this.state=4)}else this.state=4}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach(e=>{e&&2==e.getState()&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}),this.sourceTiles_.length=0,0===t.length)this.state=3;else{const e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),r="number"==typeof n?n:n[0],o="number"==typeof n?n:n[1],a=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function aTe(i,t,e,n,r,o,a,s,l,d,f,y){const k=qo(Math.round(e*i),Math.round(e*t),rg);if(y||(k.imageSmoothingEnabled=!1),0===l.length)return k.canvas;function E(ke){return Math.round(ke*e)/e}k.scale(e,e),k.globalCompositeOperation="lighter";const W=[1/0,1/0,-1/0,-1/0];l.forEach(function(ke,Pe,Ue){!function cMe(i,t){t[0]i[2]&&(i[2]=t[2]),t[1]i[3]&&(i[3]=t[3])}(W,ke.extent)});const ee=zi(W),he=Gs(W),ge=qo(Math.round(e*ee/n),Math.round(e*he/n),rg);y||(ge.imageSmoothingEnabled=!1);const Ce=e/n;l.forEach(function(ke,Pe,Ue){const ze=ke.extent[0]-W[0],Qe=-(ke.extent[3]-W[3]),ht=zi(ke.extent),vt=Gs(ke.extent);ke.image.width>0&&ke.image.height>0&&ge.drawImage(ke.image,d,d,ke.image.width-2*d,ke.image.height-2*d,ze*Ce,Qe*Ce,ht*Ce,vt*Ce)});const we=wh(a);return s.getTriangles().forEach(function(ke,Pe,Ue){const ze=ke.source,Qe=ke.target;let ht=ze[0][0],vt=ze[0][1],Vt=ze[1][0],qt=ze[1][1],Ft=ze[2][0],ei=ze[2][1];const Kt=E((Qe[0][0]-we[0])/o),We=E(-(Qe[0][1]-we[1])/o),Ze=E((Qe[1][0]-we[0])/o),tt=E(-(Qe[1][1]-we[1])/o),Mt=E((Qe[2][0]-we[0])/o),Jt=E(-(Qe[2][1]-we[1])/o),ri=ht,ot=vt;ht=0,vt=0,Vt-=ri,qt-=ot,Ft-=ri,ei-=ot;const Ht=function vMe(i){const t=i.length;for(let n=0;no&&(o=l,r=s)}if(0===o)return null;const a=i[r];i[r]=i[n],i[n]=a;for(let s=n+1;s=0;n--){e[n]=i[n][t]/i[n][n];for(let r=n-1;r>=0;r--)i[r][t]-=i[r][n]*e[n]}return e}([[Vt,qt,0,0,Ze-Kt],[Ft,ei,0,0,Mt-Kt],[0,0,Vt,qt,tt-We],[0,0,Ft,ei,Jt-We]]);if(Ht){if(k.save(),k.beginPath(),function rTe(){if(void 0===uA){const i=qo(6,6,rg);i.globalCompositeOperation="lighter",i.fillStyle="rgba(210, 0, 0, 0.75)",k7(i,4,5,4,0),k7(i,4,5,0,5);const t=i.getImageData(0,0,3,3).data;uA=hA(t,0)||hA(t,4)||hA(t,8),Xw(i),rg.push(i.canvas)}return uA}()||!y){k.moveTo(Ze,tt);const Nn=4,To=Kt-Ze,pi=We-tt;for(let li=0;li{const n=e.getState();if(0==n||1==n){t++;const r=Di(e,"change",function(o){const a=e.getState();(2==a||3==a||4==a)&&(hr(r),t--,0===t&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(r)}}),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(e,n,r){0==e.getState()&&e.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(hr),this.sourcesListenerKeys_=null}release(){this.canvas_&&(Xw(this.canvas_.getContext("2d")),rg.push(this.canvas_),this.canvas_=null),super.release()}};class S7{constructor(t,e,n,r){this.minX=t,this.maxX=e,this.minY=n,this.maxY=r}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}}function og(i,t,e,n,r){return void 0!==r?(r.minX=i,r.maxX=t,r.minY=e,r.maxY=n,r):new S7(i,t,e,n)}const E7=S7,cTe=class lTe extends w7{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedProjection=null,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=[1/0,1/0,-1/0,-1/0],this.tmpTileRange_=new E7(0,0,0,0)}isDrawableTile(t){const e=this.getLayer(),n=t.getState(),r=e.getUseInterimTilesOnError();return 2==n||4==n||3==n&&!r}getTile(t,e,n,r){const o=r.pixelRatio,a=r.viewState.projection,s=this.getLayer();let d=s.getSource().getTile(t,e,n,o,a);return 3==d.getState()&&s.getUseInterimTilesOnError()&&s.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(d)||(d=d.getInterimTile()),d}getData(t){const e=this.frameState;if(!e)return null;const n=this.getLayer(),r=Zr(e.pixelToCoordinateTransform,t.slice()),o=n.getExtent();if(o&&!xw(o,r))return null;const a=e.pixelRatio,s=e.viewState.projection,l=e.viewState,d=n.getRenderSource(),f=d.getTileGridForProjection(l.projection),y=d.getTilePixelRatio(e.pixelRatio);for(let k=f.getZForResolution(l.resolution);k>=f.getMinZoom();--k){const E=f.getTileCoordForCoordAndZ(r,k),W=d.getTile(k,E[1],E[2],a,s);if(!(W instanceof M7||W instanceof pA)||W instanceof pA&&4===W.getState())return null;if(2!==W.getState())continue;const ee=f.getOrigin(k),he=is(f.getTileSize(k)),ge=f.getResolution(k),Ce=Math.floor(y*((r[0]-ee[0])/ge-E[1]*he[0])),we=Math.floor(y*((ee[1]-r[1])/ge-E[2]*he[1])),ke=Math.round(y*d.getGutterForProjection(l.projection));return this.getImageData(W.getImage(),Ce+ke,we+ke)}return null}loadedTileCallback(t,e,n){return!!this.isDrawableTile(n)&&super.loadedTileCallback(t,e,n)}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,e){const n=t.layerStatesArray[t.layerIndex],r=t.viewState,o=r.projection,a=r.resolution,s=r.center,l=r.rotation,d=t.pixelRatio,f=this.getLayer(),y=f.getSource(),k=y.getRevision(),E=y.getTileGridForProjection(o),W=E.getZForResolution(a,y.zDirection),ee=E.getResolution(W);let he=t.extent;const ge=t.viewState.resolution,Ce=y.getTilePixelRatio(d),we=Math.round(zi(he)/ge*d),ke=Math.round(Gs(he)/ge*d),Pe=n.extent&&Mh(n.extent);Pe&&(he=Gf(he,Mh(n.extent)));const Ue=ee*we/2/Ce,ze=ee*ke/2/Ce,Qe=[s[0]-Ue,s[1]-ze,s[0]+Ue,s[1]+ze],ht=E.getTileRangeForExtentAndZ(he,W),vt={};vt[W]={};const Vt=this.createLoadedTileFinder(y,o,vt),qt=this.tmpExtent,Ft=this.tmpTileRange_;this.newTiles_=!1;const ei=l?CE(r.center,ge,l,t.size):void 0;for(let Ii=ht.minX;Ii<=ht.maxX;++Ii)for(let Ht=ht.minY;Ht<=ht.maxY;++Ht){if(l&&!E.tileCoordIntersectsViewport([W,Ii,Ht],ei))continue;const Nn=this.getTile(W,Ii,Ht,t);if(this.isDrawableTile(Nn)){const li=Mi(this);if(2==Nn.getState()){vt[W][Nn.tileCoord.toString()]=Nn;let Wi=Nn.inTransition(li);Wi&&1!==n.opacity&&(Nn.endTransition(li),Wi=!1),!this.newTiles_&&(Wi||!this.renderedTiles.includes(Nn))&&(this.newTiles_=!0)}if(1===Nn.getAlpha(li,t.time))continue}const To=E.getTileCoordChildTileRange(Nn.tileCoord,Ft,qt);let pi=!1;To&&(pi=Vt(W+1,To)),pi||E.forEachTileCoordParentTileRange(Nn.tileCoord,Vt,Ft,qt)}const Kt=ee/a*d/Ce;Lc(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/d,1/d,l,-we/2,-ke/2);const We=HE(this.pixelTransform);this.useContainer(e,We,this.getBackground(t));const Ze=this.context,tt=Ze.canvas;Uw(this.inversePixelTransform,this.pixelTransform),Lc(this.tempTransform,we/2,ke/2,Kt,Kt,0,-we/2,-ke/2),tt.width!=we||tt.height!=ke?(tt.width=we,tt.height=ke):this.containerReused||Ze.clearRect(0,0,we,ke),Pe&&this.clipUnrotated(Ze,t,Pe),y.getInterpolate()||(Ze.imageSmoothingEnabled=!1),this.preRender(Ze,t),this.renderedTiles.length=0;let Jt,ri,ot,Mt=Object.keys(vt).map(Number);Mt.sort(xh),1!==n.opacity||this.containerReused&&!y.getOpaque(t.viewState.projection)?(Jt=[],ri=[]):Mt=Mt.reverse();for(let Ii=Mt.length-1;Ii>=0;--Ii){const Ht=Mt[Ii],Nn=y.getTilePixelSize(Ht,d,o),pi=E.getResolution(Ht)/ee,li=Nn[0]*pi*Kt,Wi=Nn[1]*pi*Kt,La=E.getTileCoordForCoordAndZ(wh(Qe),Ht),as=E.getTileCoordExtent(La),ru=Zr(this.tempTransform,[Ce*(as[0]-Qe[0])/ee,Ce*(Qe[3]-as[3])/ee]),Vh=Ce*y.getGutterForProjection(o),Bl=vt[Ht];for(const Hh in Bl){const el=Bl[Hh],Yh=el.tileCoord,fg=La[1]-Yh[1],gg=Math.round(ru[0]-(fg-1)*li),fa=La[2]-Yh[2],ou=Math.round(ru[1]-(fa-1)*Wi),fo=Math.round(ru[0]-fg*li),Ko=Math.round(ru[1]-fa*Wi),Zo=gg-fo,ss=ou-Ko,jc=W===Ht,Vl=jc&&1!==el.getAlpha(Mi(this),t.time);let tl=!1;if(!Vl)if(Jt){ot=[fo,Ko,fo+Zo,Ko,fo+Zo,Ko+ss,fo,Ko+ss];for(let mg=0,J2=Jt.length;mg0,6),Jn(!((void 0!==t.width||void 0!==t.height)&&void 0!==t.scale),69);const l=void 0!==t.src?0:2;if(this.color_=void 0!==t.color?Gw(t.color):null,this.iconImage_=function gTe(i,t,e,n,r,o){let a=qw.get(t,n,o);return a||(a=new fTe(i,t,e,n,r,o),qw.set(t,n,o,a)),a}(a,s,void 0!==this.imgSize_?this.imgSize_:null,this.crossOrigin_,l,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==t.size?t.size:null,void 0!==t.width||void 0!==t.height){let d,f;if(t.size)[d,f]=t.size;else{const y=this.getImage(1);if(!(y instanceof HTMLCanvasElement||y.src&&y.complete)){this.initialOptions_=t;const k=()=>{if(this.unlistenImageChange(k),!this.initialOptions_)return;const E=this.iconImage_.getSize();this.setScale(O7(E[0],E[1],t.width,t.height))};return void this.listenImageChange(k)}d=y.width,f=y.height}void 0!==d&&this.setScale(O7(d,f,t.width,t.height))}}clone(){let t,e,n;return this.initialOptions_?(e=this.initialOptions_.width,n=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new wA({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:n,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const r=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!r)return null;t=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(t[0]*=r[0]),"fraction"==this.anchorYUnits_&&(t[1]*=r[1])}if("top-left"!=this.anchorOrigin_){if(!r)return null;t===this.anchor_&&(t=this.anchor_.slice()),("top-right"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(t[0]=-t[0]+r[0]),("bottom-left"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(t[1]=-t[1]+r[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),n=this.getScaleArray();return[t[0]-e[0]/n[0],t[1]+e[1]/n[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if("top-left"!=this.offsetOrigin_){const e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),("top-right"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(t[0]=n[0]-e[0]-t[0]),("bottom-left"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:2==this.iconImage_.getImageState()?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){const t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:2==this.iconImage_.getImageState()?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener("change",t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener("change",t)}}const N7=wA;class DA{constructor(t){this.font_=(t=t||{}).font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=is(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.repeat_=t.repeat,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new vA({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding}clone(){const t=this.getScale();return new DA({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRepeat(t){this.repeat_=t}setRotateWithView(t){this.rotateWithView_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=is(void 0!==t?t:1)}setStroke(t){this.stroke_=t}setText(t){this.text_=t}setTextAlign(t){this.textAlign_=t}setJustify(t){this.justify_=t}setTextBaseline(t){this.textBaseline_=t}setBackgroundFill(t){this.backgroundFill_=t}setBackgroundStroke(t){this.backgroundStroke_=t}setPadding(t){this.padding_=t}}const _Te=DA;function B7(i){return new CA({fill:Uv(i,""),stroke:jv(i,""),text:vTe(i),image:yTe(i)})}function Uv(i,t){const e=i[t+"fill-color"];if(e)return"none"===e?null:new vA({color:e})}function jv(i,t){const e=i[t+"stroke-width"],n=i[t+"stroke-color"];if(e||n)return new R7({width:e,color:n,lineCap:i[t+"stroke-line-cap"],lineJoin:i[t+"stroke-line-join"],lineDash:i[t+"stroke-line-dash"],lineDashOffset:i[t+"stroke-line-dash-offset"],miterLimit:i[t+"stroke-miter-limit"]})}function vTe(i){const t=i["text-value"];return t?new _Te({text:t,font:i["text-font"],maxAngle:i["text-max-angle"],offsetX:i["text-offset-x"],offsetY:i["text-offset-y"],overflow:i["text-overflow"],placement:i["text-placement"],repeat:i["text-repeat"],scale:i["text-scale"],rotateWithView:i["text-rotate-with-view"],rotation:i["text-rotation"],textAlign:i["text-align"],justify:i["text-justify"],textBaseline:i["text-baseline"],padding:i["text-padding"],fill:Uv(i,"text-"),backgroundFill:Uv(i,"text-background-"),stroke:jv(i,"text-"),backgroundStroke:jv(i,"text-background-")}):void 0}function yTe(i){const t=i["icon-src"],e=i["icon-img"];if(t||e)return new N7({src:t,img:e,imgSize:i["icon-img-size"],anchor:i["icon-anchor"],anchorOrigin:i["icon-anchor-origin"],anchorXUnits:i["icon-anchor-x-units"],anchorYUnits:i["icon-anchor-y-units"],color:i["icon-color"],crossOrigin:i["icon-cross-origin"],offset:i["icon-offset"],displacement:i["icon-displacement"],opacity:i["icon-opacity"],scale:i["icon-scale"],width:i["icon-width"],height:i["icon-height"],rotation:i["icon-rotation"],rotateWithView:i["icon-rotate-with-view"],size:i["icon-size"],declutterMode:i["icon-declutter-mode"]});const n=i["shape-points"];if(n){const o="shape-";return new F7({points:n,fill:Uv(i,o),stroke:jv(i,o),radius:i["shape-radius"],radius1:i["shape-radius1"],radius2:i["shape-radius2"],angle:i["shape-angle"],displacement:i["shape-displacement"],rotation:i["shape-rotation"],rotateWithView:i["shape-rotate-with-view"],scale:i["shape-scale"],declutterMode:i["shape-declutter-mode"]})}const r=i["circle-radius"];if(r){const o="circle-";return new P7({radius:r,fill:Uv(i,o),stroke:jv(i,o),displacement:i["circle-displacement"],scale:i["circle-scale"],rotation:i["circle-rotation"],rotateWithView:i["circle-rotate-with-view"],declutterMode:i["circle-declutter-mode"]})}}const CTe=class bTe extends Kw{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=void 0!==t.declutter&&t.declutter,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get("renderOrder")}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t){t.declutterTree||(t.declutterTree=new A7(9)),this.getRenderer().renderDeclutter(t)}setRenderOrder(t){this.set("renderOrder",t)}setStyle(t){let e;if(void 0===t)e=pTe;else if(null===t)e=null;else if("function"==typeof t)e=t;else if(t instanceof CA)e=t;else if(Array.isArray(t)){const n=t.length,r=new Array(n);for(let o=0;os&&(this.instructions.push([gn.CUSTOM,s,d,t,n,Jf]),this.hitDetectionInstructions.push([gn.CUSTOM,s,d,t,r||n,Jf]));break;case"Point":l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),d=this.coordinates.length,this.instructions.push([gn.CUSTOM,s,d,t,n]),this.hitDetectionInstructions.push([gn.CUSTOM,s,d,t,r||n])}this.endGeometry(e)}beginGeometry(t,e){this.beginGeometryInstruction1_=[gn.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[gn.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;let e;t.reverse();const n=t.length;let r,o,a=-1;for(e=0;ethis.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0}createFill(t){const e=t.fillStyle,n=[gn.SET_FILL_STYLE,e];return"string"!=typeof e&&n.push(!0),n}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[gn.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const n=t.fillStyle;("string"!=typeof n||t.currentFillStyle!=n)&&(void 0!==n&&this.instructions.push(e.call(this,t)),t.currentFillStyle=n)}updateStrokeStyle(t,e){const n=t.strokeStyle,r=t.lineCap,o=t.lineDash,a=t.lineDashOffset,s=t.lineJoin,l=t.lineWidth,d=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=r||o!=t.currentLineDash&&!jd(t.currentLineDash,o)||t.currentLineDashOffset!=a||t.currentLineJoin!=s||t.currentLineWidth!=l||t.currentMiterLimit!=d)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=r,t.currentLineDash=o,t.currentLineDashOffset=a,t.currentLineJoin=s,t.currentLineWidth=l,t.currentMiterLimit=d)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[gn.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){return!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=JV(this.maxExtent),this.maxLineWidth>0)&&vE(this.bufferedMaxExtent_,this.resolution*(this.maxLineWidth+1)/2,this.bufferedMaxExtent_),this.bufferedMaxExtent_}},U7=class STe extends zv{constructor(t,e,n,r){super(t,e,n,r)}drawFlatCoordinatess_(t,e,n,r){const o=this.state,a=void 0!==o.fillStyle,s=void 0!==o.strokeStyle,l=n.length;this.instructions.push(Fh),this.hitDetectionInstructions.push(Fh);for(let d=0;d=i){const W=(i-s+E)/E,ee=qs(d,y,W),he=qs(f,k,W);l.push(ee,he),o.push(l),l=[ee,he],s==i&&(a+=r),s=0}else if(s0&&o.push(l),o}function ATe(i,t,e,n,r){let f,y,k,E,W,ee,he,ge,Ce,we,o=e,a=e,s=0,l=0,d=e;for(y=e;yi&&(l>s&&(s=l,o=d,a=y),l=0,d=y-r)),k=E,he=Ce,ge=we),W=ke,ee=Pe}return l+=E,l>s?[d,y]:[o,a]}const l2={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},FTe={Circle:U7,Default:zv,Image:class MTe extends zv{constructor(t,e,n,r){super(t,e,n,r),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const n=t.getFlatCoordinates(),r=t.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(n,r);this.instructions.push([gn.DRAW_IMAGE,o,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([gn.DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const n=t.getFlatCoordinates(),r=t.getStride(),o=this.coordinates.length,a=this.appendFlatPointCoordinates(n,r);this.instructions.push([gn.DRAW_IMAGE,o,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([gn.DRAW_IMAGE,o,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(t,e){const n=t.getAnchor(),r=t.getSize(),o=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=r[1],this.opacity_=t.getOpacity(),this.originX_=o[0],this.originY_=o[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=r[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}},LineString:class kTe extends zv{constructor(t,e,n,r){super(t,e,n,r)}drawFlatCoordinates_(t,e,n,r){const o=this.coordinates.length,a=this.appendFlatLineCoordinates(t,e,n,r,!1,!1),s=[gn.MOVE_TO_LINE_TO,o,a];return this.instructions.push(s),this.hitDetectionInstructions.push(s),n}drawLineString(t,e){const n=this.state;if(void 0===n.strokeStyle||void 0===n.lineWidth)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([gn.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,Oc,0],Fh);const a=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(a,0,a.length,s),this.hitDetectionInstructions.push(Kd),this.endGeometry(e)}drawMultiLineString(t,e){const n=this.state;if(void 0===n.strokeStyle||void 0===n.lineWidth)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([gn.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,Oc,0],Fh);const a=t.getEnds(),s=t.getFlatCoordinates(),l=t.getStride();let d=0;for(let f=0,y=a.length;f{const ke=a[2*(ge+we)]===d[we*f]&&a[2*(ge+we)+1]===d[we*f+1];return ke||--ge,ke})}this.saveTextStates_(),(o.backgroundFill||o.backgroundStroke)&&(this.setFillStrokeStyle(o.backgroundFill,o.backgroundStroke),o.backgroundFill&&this.updateFillStyle(this.state,this.createFill),o.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);let E=o.padding;if(E!=Ah&&(o.scale[0]<0||o.scale[1]<0)){let ge=o.padding[0],Ce=o.padding[1],we=o.padding[2],ke=o.padding[3];o.scale[0]<0&&(Ce=-Ce,ke=-ke),o.scale[1]<0&&(ge=-ge,we=-we),E=[ge,Ce,we,ke]}const W=this.pixelRatio;this.instructions.push([gn.DRAW_IMAGE,s,k,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,E==Ah?Ah:E.map(function(ge){return ge*W}),!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,y]);const ee=1/W,he=this.state.fillStyle;o.backgroundFill&&(this.state.fillStyle=ha,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([gn.DRAW_IMAGE,s,k,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[ee,ee],NaN,void 0,this.declutterImageWithText_,E,!!o.backgroundFill,!!o.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?ha:this.fillKey_,this.textOffsetX_,this.textOffsetY_,y]),o.backgroundFill&&(this.state.fillStyle=he,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(e)}else{if(!da(this.getBufferedMaxExtent(),t.getExtent()))return;let y;if(d=t.getFlatCoordinates(),"LineString"==l)y=[d.length];else if("MultiLineString"==l)y=t.getEnds();else if("Polygon"==l)y=t.getEnds().slice(0,1);else if("MultiPolygon"==l){const ee=t.getEndss();y=[];for(let he=0,ge=ee.length;heWe[2]}else Vt=ke>ht;const qt=Math.PI,Ft=[],ei=Ue+n===t;let Kt;if(he=0,ge=ze,k=i[t=Ue],E=i[t+1],ei)return Ce(),Kt=Math.atan2(E-ee,k-W),Vt&&(Kt+=Kt>0?-qt:qt),Ft[0]=[(ht+ke)/2,(vt+Pe)/2,(Qe-o)/2,Kt,r],Ft;for(let We=0,Ze=(r=r.replace(/\n/g," ")).length;We0?-qt:qt),void 0!==Kt){let Ht=tt-Kt;if(Ht+=Ht>qt?-2*qt:Ht<-qt?2*qt:0,Math.abs(Ht)>a)return null}Kt=tt;const Mt=We;let Jt=0;for(;We0&&i.push("\n",""),i.push(t,""),i}const NTe=class OTe{constructor(t,e,n,r){this.overlaps=n,this.pixelRatio=e,this.resolution=t,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=[1,0,0,1,0,0],this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={}}createLabel(t,e,n,r){const o=t+e+n+r;if(this.labels_[o])return this.labels_[o];const a=r?this.strokeStates[r]:null,s=n?this.fillStates[n]:null,l=this.textStates[e],d=this.pixelRatio,f=[l.scale[0]*d,l.scale[1]*d],y=Array.isArray(t),k=l.justify?l2[l.justify]:MA(Array.isArray(t)?t[0]:t,l.textAlign||Nv),E=r&&a.lineWidth?a.lineWidth:0,W=y?t:t.split("\n").reduce(LTe,[]),{width:ee,height:he,widths:ge,heights:Ce,lineWidths:we}=function Hxe(i,t){const e=[],n=[],r=[];let o=0,a=0,s=0,l=0;for(let d=0,f=t.length;d<=f;d+=2){const y=t[d];if("\n"===y||d===f){o=Math.max(o,a),r.push(a),a=0,s+=l;continue}const k=t[d+1]||i.font,E=t2(k,y);e.push(E),a+=E;const W=Vxe(k);n.push(W),l=Math.max(l,W)}return{width:o,height:s,widths:e,heights:n,lineWidths:r}}(l,W),ke=ee+E,Pe=[],Ue=(ke+2)*f[0],ze=(he+E)*f[1],Qe={width:Ue<0?Math.floor(Ue):Math.ceil(Ue),height:ze<0?Math.floor(ze):Math.ceil(ze),contextInstructions:Pe};(1!=f[0]||1!=f[1])&&Pe.push("scale",f),r&&(Pe.push("strokeStyle",a.strokeStyle),Pe.push("lineWidth",E),Pe.push("lineCap",a.lineCap),Pe.push("lineJoin",a.lineJoin),Pe.push("miterLimit",a.miterLimit),Pe.push("setLineDash",[a.lineDash]),Pe.push("lineDashOffset",a.lineDashOffset)),n&&Pe.push("fillStyle",s.fillStyle),Pe.push("textBaseline","middle"),Pe.push("textAlign","center");const ht=.5-k;let vt=k*ke+ht*E;const Vt=[],qt=[];let Ze,Ft=0,ei=0,Kt=0,We=0;for(let tt=0,Mt=W.length;ttt?t-d:o,ke=a+f>e?e-f:a,Pe=W[3]+we*k[0]+W[1],Ue=W[0]+ke*k[1]+W[2],ze=ge-W[3],Qe=Ce-W[0];let ht;return(ee||0!==y)&&(Zd[0]=ze,Qd[0]=ze,Zd[1]=Qe,Vc[1]=Qe,Vc[0]=ze+Pe,Hc[0]=Vc[0],Hc[1]=Qe+Ue,Qd[1]=Hc[1]),0!==y?(ht=Lc([1,0,0,1,0,0],n,r,1,1,y,-n,-r),Zr(ht,Zd),Zr(ht,Vc),Zr(ht,Hc),Zr(ht,Qd),Ic(Math.min(Zd[0],Vc[0],Hc[0],Qd[0]),Math.min(Zd[1],Vc[1],Hc[1],Qd[1]),Math.max(Zd[0],Vc[0],Hc[0],Qd[0]),Math.max(Zd[1],Vc[1],Hc[1],Qd[1]),ag)):Ic(Math.min(ze,ze+Pe),Math.min(Qe,Qe+Ue),Math.max(ze,ze+Pe),Math.max(Qe,Qe+Ue),ag),E&&(ge=Math.round(ge),Ce=Math.round(Ce)),{drawImageX:ge,drawImageY:Ce,drawImageW:we,drawImageH:ke,originX:d,originY:f,declutterBox:{minX:ag[0],minY:ag[1],maxX:ag[2],maxY:ag[3],value:he},canvasTransform:ht,scale:k}}replayImageOrLabel_(t,e,n,r,o,a,s){const d=r.declutterBox,f=t.canvas,y=s?s[2]*r.scale[0]/2:0;return d.minX-y<=f.width/e&&d.maxX+y>=0&&d.minY-y<=f.height/e&&d.maxY+y>=0&&(!(!a&&!s)&&this.replayTextBackground_(t,Zd,Vc,Hc,Qd,a,s),function Yxe(i,t,e,n,r,o,a,s,l,d,f){i.save(),1!==e&&(i.globalAlpha*=e),t&&i.setTransform.apply(i,t),n.contextInstructions?(i.translate(l,d),i.scale(f[0],f[1]),function Uxe(i,t){const e=i.contextInstructions;for(let n=0,r=e.length;nZe&&(this.fill_(t),ht=0),vt>Ze&&(t.stroke(),vt=0),!ht&&!vt&&(t.beginPath(),he=NaN,ge=NaN),++f;break;case gn.CIRCLE:k=ot[1];const Ht=d[k],Nn=d[k+1],li=d[k+2]-Ht,Wi=d[k+3]-Nn,La=Math.sqrt(li*li+Wi*Wi);t.moveTo(Ht+La,Nn),t.arc(Ht,Nn,La,0,2*Math.PI,!0),++f;break;case gn.CLOSE_PATH:t.closePath(),++f;break;case gn.CUSTOM:k=ot[1],E=ot[2];const ru=ot[4],Vh=6==ot.length?ot[5]:void 0;We.geometry=ot[3],We.feature=tt,f in Ft||(Ft[f]=[]);const Bl=Ft[f];Vh?Vh(d,k,E,2,Bl):(Bl[0]=d[k],Bl[1]=d[k+1],Bl.length=2),ru(Bl,We),++f;break;case gn.DRAW_IMAGE:k=ot[1],E=ot[2],ke=ot[3],W=ot[4],ee=ot[5];let Hh=ot[6];const el=ot[7],Yh=ot[8],fg=ot[9],gg=ot[10];let fa=ot[11];const ou=ot[12];let fo=ot[13];const Ko=ot[14],Zo=ot[15];if(!ke&&ot.length>=20){Pe=ot[19],Ue=ot[20],ze=ot[21],Qe=ot[22];const Oa=this.drawLabelWithPointPlacement_(Pe,Ue,ze,Qe);ke=Oa.label,ot[3]=ke,W=(Oa.anchorX-ot[23])*this.pixelRatio,ot[4]=W,ee=(Oa.anchorY-ot[24])*this.pixelRatio,ot[5]=ee,Hh=ke.height,ot[6]=Hh,fo=ke.width,ot[13]=fo}let ss,jc,Vl,tl;ot.length>25&&(ss=ot[25]),ot.length>17?(jc=ot[16],Vl=ot[17],tl=ot[18]):(jc=Ah,Vl=!1,tl=!1),gg&&Kt?fa+=ei:!gg&&!Kt&&(fa-=ei);let mg=0;for(;ke)break;let l=n[s];l||(l=[],n[s]=l),l.push(4*((i+o)*t+(i+a))+3),o>0&&l.push(4*((i-o)*t+(i+a))+3),a>0&&(l.push(4*((i+o)*t+(i-a))+3),o>0&&l.push(4*((i-o)*t+(i-a))+3))}const r=[];for(let o=0,a=n.length;o0){if(!a||"Image"!==E&&"Text"!==E||a.includes(Pe)){const vt=(k[Qe]-3)/4,Vt=r-vt%s,qt=r-(vt/s|0),Ft=o(Pe,Ue,Vt*Vt+qt*qt);if(Ft)return Ft}f.clearRect(0,0,s,s);break}}const ee=Object.keys(this.executorsByZIndex_).map(Number);let he,ge,Ce,we,ke;for(ee.sort(xh),he=ee.length-1;he>=0;--he){const Pe=ee[he].toString();for(Ce=this.executorsByZIndex_[Pe],ge=xA.length-1;ge>=0;--ge)if(E=xA[ge],we=Ce[E],void 0!==we&&(ke=we.executeHitDetection(f,l,n,W,y),ke))return ke}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const n=e[0],r=e[1],o=e[2],a=e[3],s=[n,r,n,a,o,a,o,r];return kh(s,0,8,2,t,s),s}isEmpty(){return Pv(this.executorsByZIndex_)}execute(t,e,n,r,o,a,s){const l=Object.keys(this.executorsByZIndex_).map(Number);let d,f,y,k,E,W;for(l.sort(xh),this.maxExtent_&&(t.save(),this.clip(t,n)),a=a||xA,s&&l.reverse(),d=0,f=l.length;dy*this.pixelRatio_),lineDashOffset:(a||0)*this.pixelRatio_,lineJoin:void 0!==s?s:eg,lineWidth:(void 0!==l?l:1)*this.pixelRatio_,miterLimit:void 0!==d?d:10,strokeStyle:Rl(n||Ov)}}else this.strokeState_=null}setImageStyle(t){let e;if(!t||!(e=t.getSize()))return void(this.image_=null);const n=t.getPixelRatio(this.pixelRatio_),r=t.getAnchor(),o=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=r[0]*n,this.imageAnchorY_=r[1]*n,this.imageHeight_=e[1]*n,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=o[0],this.imageOriginY_=o[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const a=t.getScaleArray();this.imageScale_=[a[0]*this.pixelRatio_/n,a[1]*this.pixelRatio_/n],this.imageWidth_=e[0]*n}setTextStyle(t){if(t){const e=t.getFill();if(e){const E=e.getColor();this.textFillState_={fillStyle:Rl(E||ha)}}else this.textFillState_=null;const n=t.getStroke();if(n){const E=n.getColor(),W=n.getLineCap(),ee=n.getLineDash(),he=n.getLineDashOffset(),ge=n.getLineJoin(),Ce=n.getWidth(),we=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==W?W:Jw,lineDash:ee||Oc,lineDashOffset:he||0,lineJoin:void 0!==ge?ge:eg,lineWidth:void 0!==Ce?Ce:1,miterLimit:void 0!==we?we:10,strokeStyle:Rl(E||Ov)}}else this.textStrokeState_=null;const r=t.getFont(),o=t.getOffsetX(),a=t.getOffsetY(),s=t.getRotateWithView(),l=t.getRotation(),d=t.getScaleArray(),f=t.getText(),y=t.getTextAlign(),k=t.getTextBaseline();this.textState_={font:void 0!==r?r:c7,textAlign:void 0!==y?y:Nv,textBaseline:void 0!==k?k:e2},this.text_=void 0!==f?Array.isArray(f)?f.reduce((E,W,ee)=>E+(ee%2?" ":W),""):f:"",this.textOffsetX_=void 0!==o?this.pixelRatio_*o:0,this.textOffsetY_=void 0!==a?this.pixelRatio_*a:0,this.textRotateWithView_=void 0!==s&&s,this.textRotation_=void 0!==l?l:0,this.textScale_=[this.pixelRatio_*d[0],this.pixelRatio_*d[1]]}else this.text_=""}},Ll=.5,q7={Point:function JTe(i,t,e,n,r){const o=e.getImage(),a=e.getText();let s;if(o){if(2!=o.getImageState())return;let l=i;if(r){const f=o.getDeclutterMode();if("none"!==f)if(l=r,"obstacle"===f){const y=i.getBuilder(e.getZIndex(),"Image");y.setImageStyle(o,s),y.drawPoint(t,n)}else a&&a.getText()&&(s={})}const d=l.getBuilder(e.getZIndex(),"Image");d.setImageStyle(o,s),d.drawPoint(t,n)}if(a&&a.getText()){let l=i;r&&(l=r);const d=l.getBuilder(e.getZIndex(),"Text");d.setTextStyle(a,s),d.drawText(t,n)}},LineString:function ZTe(i,t,e,n,r){const o=e.getStroke();if(o){const s=i.getBuilder(e.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawLineString(t,n)}const a=e.getText();if(a&&a.getText()){const s=(r||i).getBuilder(e.getZIndex(),"Text");s.setTextStyle(a),s.drawText(t,n)}},Polygon:function tSe(i,t,e,n,r){const o=e.getFill(),a=e.getStroke();if(o||a){const l=i.getBuilder(e.getZIndex(),"Polygon");l.setFillStrokeStyle(o,a),l.drawPolygon(t,n)}const s=e.getText();if(s&&s.getText()){const l=(r||i).getBuilder(e.getZIndex(),"Text");l.setTextStyle(s),l.drawText(t,n)}},MultiPoint:function eSe(i,t,e,n,r){const o=e.getImage(),a=e.getText();let s;if(o){if(2!=o.getImageState())return;let l=i;if(r){const f=o.getDeclutterMode();if("none"!==f)if(l=r,"obstacle"===f){const y=i.getBuilder(e.getZIndex(),"Image");y.setImageStyle(o,s),y.drawMultiPoint(t,n)}else a&&a.getText()&&(s={})}const d=l.getBuilder(e.getZIndex(),"Image");d.setImageStyle(o,s),d.drawMultiPoint(t,n)}if(a&&a.getText()){let l=i;r&&(l=r);const d=l.getBuilder(e.getZIndex(),"Text");d.setTextStyle(a,s),d.drawText(t,n)}},MultiLineString:function QTe(i,t,e,n,r){const o=e.getStroke();if(o){const s=i.getBuilder(e.getZIndex(),"LineString");s.setFillStrokeStyle(null,o),s.drawMultiLineString(t,n)}const a=e.getText();if(a&&a.getText()){const s=(r||i).getBuilder(e.getZIndex(),"Text");s.setTextStyle(a),s.drawText(t,n)}},MultiPolygon:function XTe(i,t,e,n,r){const o=e.getFill(),a=e.getStroke();if(a||o){const l=i.getBuilder(e.getZIndex(),"Polygon");l.setFillStrokeStyle(o,a),l.drawMultiPolygon(t,n)}const s=e.getText();if(s&&s.getText()){const l=(r||i).getBuilder(e.getZIndex(),"Text");l.setTextStyle(s),l.drawText(t,n)}},GeometryCollection:function KTe(i,t,e,n,r){const o=t.getGeometriesArray();let a,s;for(a=0,s=o.length;a{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const n=[this.context.canvas.width,this.context.canvas.height];Zr(this.pixelTransform,n);const r=this.renderedCenter_,o=this.renderedResolution_,a=this.renderedRotation_,s=this.renderedProjection_,l=this.wrappedRenderedExtent_,d=this.getLayer(),f=[],y=n[0]*Ll,k=n[1]*Ll;f.push(this.getRenderTransform(r,o,a,Ll,y,k,0).slice());const E=d.getSource(),W=s.getExtent();if(E.getWrapX()&&s.canWrapX()&&!$f(W,l)){let ee=l[0];const he=zi(W);let Ce,ge=0;for(;eeW[2];)++ge,Ce=he*ge,f.push(this.getRenderTransform(r,o,a,Ll,y,k,Ce).slice()),ee-=he}this.hitDetectionImageData_=function UTe(i,t,e,n,r,o,a){const d=qo(i[0]*Ll,i[1]*Ll);d.imageSmoothingEnabled=!1;const f=d.canvas,y=new YTe(d,Ll,r,null,a),k=e.length,E=Math.floor(16777215/k),W={};for(let he=1;he<=k;++he){const ge=e[he-1],Ce=ge.getStyleFunction()||n;if(!Ce)continue;let we=Ce(ge,o);if(!we)continue;Array.isArray(we)||(we=[we]);const Pe=(he*E).toString(16).padStart(7,"#00000");for(let Ue=0,ze=we.length;Uey=E.forEachFeatureAtCoordinate(t,a,s,n,f,E===this.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map(W=>W.value):null)),y}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),n=e.getSource();if(!n)return!1;const r=t.viewHints[0],o=t.viewHints[1],a=e.getUpdateWhileAnimating(),s=e.getUpdateWhileInteracting();if(this.ready&&!a&&r||!s&&o)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const l=t.extent,d=t.viewState,f=d.projection,y=d.resolution,k=t.pixelRatio,E=e.getRevision(),W=e.getRenderBuffer();let ee=e.getRenderOrder();void 0===ee&&(ee=zTe);const he=d.center.slice(),ge=vE(l,W*y),Ce=ge.slice(),we=[ge.slice()],ke=f.getExtent();if(n.getWrapX()&&f.canWrapX()&&!$f(ke,t.extent)){const We=zi(ke),Ze=Math.max(zi(ge)/2,We);ge[0]=ke[0]-Ze,ge[2]=ke[2]+Ze,lH(he,f);const tt=oH(we[0],f);tt[0]ke[0]&&tt[2]>ke[2]&&we.push([tt[0]-We,tt[1],tt[2]-We,tt[3]])}if(this.ready&&this.renderedResolution_==y&&this.renderedRevision_==E&&this.renderedRenderOrder_==ee&&$f(this.wrappedRenderedExtent_,ge))return jd(this.renderedExtent_,Ce)||(this.hitDetectionImageData_=null,this.renderedExtent_=Ce),this.renderedCenter_=he,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const Pe=new j7(TA(y,k),ge,y,k);let Ue;this.getLayer().getDeclutter()&&(Ue=new j7(TA(y,k),ge,y,k));const ze=mH();let Qe;if(ze){for(let We=0,Ze=we.length;We{let Ze;const tt=We.getStyleFunction()||e.getStyleFunction();if(tt&&(Ze=tt(We,y)),Ze){const Mt=this.renderFeature(We,ht,Ze,Pe,Qe,Ue);vt=vt&&!Mt}},qt=EE(ge),Ft=n.getFeaturesInExtent(qt);ee&&Ft.sort(ee);for(let We=0,Ze=Ft.length;We0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;for(;e;)t(e.value_,e.key_,this),e=e.newer}get(t,e){const n=this.entries_[t];return Jn(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_}remove(t){const e=this.entries_[t];return Jn(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let n,e=0;for(n=this.newest_;n;n=n.older)t[e++]=n.key_;return t}getValues(){const t=new Array(this.count_);let n,e=0;for(n=this.newest_;n;n=n.older)t[e++]=n.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){if(this.containsKey(t))return this.entries_[t].value_}pop(){const t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){Jn(!(t in this.entries_),16);const n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_}setSize(t){this.highWaterMark=t}}{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()}pruneExceptNewestZ(){if(0===this.getCount())return;const n=function lSe(i){return i.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach(r=>{r.tileCoord[0]!==n&&(this.remove(X7(r.tileCoord)),r.release())})}};function e9(i){return i?Array.isArray(i)?function(t){return i}:"function"==typeof i?i:function(t){return[i]}:null}const t9=class hSe extends Rc{constructor(t){super(),this.projection=Mo(t.projection),this.attributions_=e9(t.attributions),this.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,this.loading=!1,this.state_=void 0!==t.state?t.state:"ready",this.wrapX_=void 0!==t.wrapX&&t.wrapX,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;const e=this;this.viewPromise_=new Promise(function(n,r){e.viewResolver=n,e.viewRejector=r})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=e9(t),this.changed()}setState(t){this.state_=t,this.changed()}},sg=[0,0,0],n9=class pSe{constructor(t){let e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Jn(function BMe(i,t,e){const n=t||xh;return i.every(function(r,o){if(0===o)return!0;const a=n(i[o-1],r);return!(a>0||e&&0===a)})}(this.resolutions_,function(r,o){return o-r},!0),17),!t.origins)for(let r=0,o=this.resolutions_.length-1;r=this.minZoom;){if(2===this.zoomFactor_?(a=Math.floor(a/2),s=Math.floor(s/2),o=og(a,a,s,s,n)):o=this.getTileRangeForExtentAndZ(l,d,n),e(d,o))return!0;--d}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,n){if(t[0]this.maxZoom||e0?n:Math.max(o/e[0],r/e[1]);const a=t+1,s=new Array(a);for(let l=0;le||e>t.getMaxZoom())return!1;const o=t.getFullTileRange(e);return!o||o.containsXY(n,r)}(t,n)?t:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}updateCacheSize(t,e){const n=this.getTileCacheForProjection(e);t>n.highWaterMark&&(n.highWaterMark=t)}useTile(t,e,n,r){}};function CSe(i,t){const e=/\{z\}/g,n=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){if(a)return i.replace(e,a[0].toString()).replace(n,a[1].toString()).replace(r,a[2].toString()).replace(o,function(){const f=t.getFullTileRange(a[0]);return Jn(f,55),(f.getHeight()-a[2]-1).toString()})}}class AA extends bSe{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===AA.prototype.tileUrlFunction,this.tileLoadFunction=t.tileLoadFunction,t.tileUrlFunction&&(this.tileUrlFunction=t.tileUrlFunction),this.urls=null,t.urls?this.setUrls(t.urls):t.url&&this.setUrl(t.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(t){const e=t.target,n=Mi(e),r=e.getState();let o;1==r?(this.tileLoadingKeys_[n]=!0,o="tileloadstart"):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],o=3==r?"tileloaderror":2==r?"tileloadend":void 0),null!=o&&this.dispatchEvent(new ySe(o,e))}setTileLoadFunction(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()}setTileUrlFunction(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),typeof e<"u"?this.setKey(e):this.changed()}setUrl(t){const e=function MSe(i){const t=[];let e=/\{([a-z])-([a-z])\}/.exec(i);if(e){const n=e[1].charCodeAt(0),r=e[2].charCodeAt(0);let o;for(o=n;o<=r;++o)t.push(i.replace(e[0],String.fromCharCode(o)));return t}if(e=/\{(\d+)-(\d+)\}/.exec(i),e){const n=parseInt(e[2],10);for(let r=parseInt(e[1],10);r<=n;r++)t.push(i.replace(e[0],r.toString()));return t}return t.push(i),t}(t);this.urls=e,this.setUrls(e)}setUrls(t){this.urls=t;const e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function wSe(i,t){const e=i.length,n=new Array(e);for(let r=0;rthis.getTileInternal(he,ge,Ce,we,a),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return ee.key=y,d?(ee.interimTile=d,ee.refreshInterimChain(),s.replace(f,ee)):s.set(f,ee),ee}getTileInternal(t,e,n,r,o){let a=null;const s=Wv(t,e,n),l=this.getKey();if(this.tileCache.containsKey(s)){if(a=this.tileCache.get(s),a.key!=l){const d=a;a=this.createTile_(t,e,n,r,o,l),a.interimTile=0==d.getState()?d.interimTile:d,a.refreshInterimChain(),this.tileCache.replace(s,a)}}else a=this.createTile_(t,e,n,r,o,l),this.tileCache.set(s,a);return a}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(const e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}}setTileGridForProjection(t,e){const n=Mo(t);if(n){const r=Mi(n);r in this.tileGridForProjection||(this.tileGridForProjection[r]=e)}}clear(){super.clear();for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}},ASe=class ESe extends SSe{constructor(t){const e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",n=void 0!==t.tileGrid?t.tileGrid:function mSe(i){const t=i||{},e=t.extent||Mo("EPSG:3857").getExtent(),n={extent:e,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:r9(e,t.maxZoom,t.tileSize,t.maxResolution)};return new n9(n)}({extent:EA(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0}getGutter(){return this.gutter_}},PSe=class FSe extends ASe{constructor(t){let e;e=void 0!==(t=t||{}).attributions?t.attributions:['© OpenStreetMap contributors.'],super({attributions:e,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:void 0!==t.crossOrigin?t.crossOrigin:"anonymous",interpolate:t.interpolate,maxZoom:void 0!==t.maxZoom?t.maxZoom:19,opaque:void 0===t.opaque||t.opaque,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:void 0!==t.url?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:t.wrapX,zDirection:t.zDirection})}},o9=class RSe{constructor(t){this.rbush_=new A7(t),this.items_={}}insert(t,e){const n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[Mi(e)]=n}load(t,e){const n=new Array(e.length);for(let r=0,o=e.length;r=200&&s.status<300){const d=t.getType();let f;"json"==d||"text"==d?f=s.responseText:"xml"==d?(f=s.responseXML,f||(f=(new DOMParser).parseFromString(s.responseText,"application/xml"))):"arraybuffer"==d&&(f=s.response),f?o(t.readFeatures(f,{extent:e,featureProjection:r}),t.readProjection(f)):a()}else a()},s.onerror=a,s.send()}(i,t,e,n,r,function(l,d){s.addFeatures(l),void 0!==o&&o(l)},a||Qf)}}class Jd extends Pc{constructor(t,e,n){super(t),this.feature=e,this.features=n}}const BSe=class NSe extends t9{constructor(t){super({attributions:(t=t||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.loader_=Qf,this.format_=t.format,this.overlaps_=void 0===t.overlaps||t.overlaps,this.url_=t.url,void 0!==t.loader?this.loader_=t.loader:void 0!==this.url_&&(Jn(this.format_,7),this.loader_=s9(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:LSe;const e=void 0===t.useSpatialIndex||t.useSpatialIndex;let n,r;this.featuresRtree_=e?new o9:null,this.loadedExtentsRtree_=new o9,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(t.features)?r=t.features:t.features&&(n=t.features,r=n.getArray()),!e&&void 0===n&&(n=new Fl(r)),void 0!==r&&this.addFeaturesInternal(r),void 0!==n&&this.bindFeaturesCollection_(n)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=Mi(t);if(!this.addToIndex_(e,t))return void(this.featuresCollection_&&this.featuresCollection_.remove(t));this.setupChangeEvents_(e,t);const n=t.getGeometry();if(n){const r=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(r,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new Jd("addfeature",t))}setupChangeEvents_(t,e){this.featureChangeKeys_[t]=[Di(e,"change",this.handleFeatureChange_,this),Di(e,"propertychange",this.handleFeatureChange_,this)]}addToIndex_(t,e){let n=!0;const r=e.getId();return void 0!==r&&(r.toString()in this.idIndex_?n=!1:this.idIndex_[r.toString()]=e),n&&(Jn(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),n}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],n=[],r=[];for(let o=0,a=t.length;o{e||(e=!0,this.addFeature(n.element),e=!1)}),t.addEventListener("remove",n=>{e||(e=!0,this.removeFeature(n.element),e=!1)}),this.featuresCollection_=t}clear(t){if(t){for(const n in this.featureChangeKeys_)this.featureChangeKeys_[n].forEach(hr);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){this.featuresRtree_.forEach(r=>{this.removeFeatureInternal(r)});for(const r in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[r])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new Jd("clear");this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){return this.forEachFeatureInExtent([t[0],t[1],t[0],t[1]],function(r){if(r.getGeometry().intersectsCoordinate(t))return e(r)})}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,function(n){if(n.getGeometry().intersectsExtent(t)){const o=e(n);if(o)return o}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Pv(this.nullGeometryFeatures_)||_H(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,function(n){e.push(n)}),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const r=function mMe(i,t){if(t.canWrapX()){const e=t.getExtent();if(!isFinite(i[0])||!isFinite(i[2]))return[[e[0],i[1],e[2],i[3]]];oH(i,t);const n=zi(e);if(zi(i)>n)return[[e[0],i[1],e[2],i[3]]];if(i[0]e[2])return[[i[0],i[1],e[2],i[3]],[e[0],i[1],i[2]-n,i[3]]]}return[i]}(t,e);return[].concat(...r.map(o=>this.featuresRtree_.getInExtent(o)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const n=t[0],r=t[1];let o=null;const a=[NaN,NaN];let s=1/0;const l=[-1/0,-1/0,1/0,1/0];return e=e||Iv,this.featuresRtree_.forEachInExtent(l,function(d){if(e(d)){const f=d.getGeometry(),y=s;if(s=f.closestPointXY(n,r,a,s),s{--this.loadingExtentsCount_,this.dispatchEvent(new Jd("featuresloadend",void 0,f))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new Jd("featuresloaderror"))}),r.insert(l,{extent:l.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_;let n;e.forEachInExtent(t,function(r){if(xv(r.extent,t))return n=r,!0}),n&&e.remove(n)}removeFeature(t){if(!t)return;const e=Mi(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){const e=Mi(t),n=this.featureChangeKeys_[e];if(!n)return;n.forEach(hr),delete this.featureChangeKeys_[e];const r=t.getId();return void 0!==r&&delete this.idIndex_[r.toString()],delete this.uidIndex_[e],this.dispatchEvent(new Jd("removefeature",t)),t}removeFromIdIndex_(t){let e=!1;for(const n in this.idIndex_)if(this.idIndex_[n]===t){delete this.idIndex_[n],e=!0;break}return e}setLoader(t){this.loader_=t}setUrl(t){Jn(this.format_,7),this.url_=t,this.setLoader(s9(t,this.format_))}};function VSe(i,t){if(1&i&&(u(0,"span",11)(1,"span",12),m(2,"Center"),c(),m(3),c()),2&i){const e=g(2);h(3),Ke("Lat: ",e.getCoordinateDisplay(e.latitude),"")}}function HSe(i,t){if(1&i&&(u(0,"span",13),m(1),c()),2&i){const e=g(2);h(1),Ke("Lon: ",e.getCoordinateDisplay(e.longitude),"")}}function YSe(i,t){if(1&i&&(u(0,"div",8),w(1,VSe,4,1,"span",9),w(2,HSe,2,1,"span",10),c()),2&i){const e=g();h(1),p("ngIf",!e.isSettingLocation),h(1),p("ngIf",!e.isSettingLocation)}}function USe(i,t){1&i&&(u(0,"div",8),m(1," Tap map to set location. "),c())}function jSe(i,t){1&i&&(u(0,"span",14),H(1,"i",15),m(2,"Clear"),c())}function $Se(i,t){if(1&i){const e=pe();u(0,"span",5),N("click",function(){return R(e),L(g().toggleLocationMode())}),H(1,"i",16),m(2,"Edit"),c()}}class c2{activeModal;hasPosition=!1;isSettingLocation=!0;latitude=void 0;longitude=void 0;zoom=16;map=void 0;geoLocationSelected=new Ae;geoLocationCleared=new Ae;constructor(t){this.activeModal=t}set location(t){this.latitude=t.latitude,this.longitude=t.longitude,this.zoom=16}get location(){return{latitude:this.latitude,longitude:this.longitude}}ngOnInit(){this.latitude&&this.longitude?(this.configureMap(),this.hasPosition=!0,this.isSettingLocation=!1):"geolocation"in navigator?navigator.geolocation.getCurrentPosition(t=>{this.latitude=t.coords.latitude,this.longitude=t.coords.longitude,this.configureMap(),this.hasPosition=!0}):alert("Geolocation is not available on this device")}configureMap(){const e=_7({mouseWheelZoom:!1}),n=new uTe({source:new PSe}),r=new oSe({source:new BSe({features:[]}),style:{"circle-radius":9,"circle-fill-color":"lime","circle-stroke-color":"black","circle-stroke-width":1}});let o=function AMe(i,t){return dH(),Av(i,"EPSG:4326",void 0!==t?t:"EPSG:3857")}([this.longitude,this.latitude]);console.log(o);const a=[n,r];let s=new Il({center:o,zoom:this.zoom});console.log(s),this.map=new $ke({interactions:e,layers:a,view:s,target:"map"})}mapClick(t){if(this.isSettingLocation&&t){this.isSettingLocation=!1;let e=this.map.getCoordinateFromPixel([t.clientX,t.clientY]);const n=function IMe(i,t){const e=Av(i,void 0!==t?t:"EPSG:3857","EPSG:4326"),n=e[0];return(n<-180||n>180)&&(e[0]=Dh(n+180,360)-180),e}(this.map.getEventCoordinate(t));this.location={latitude:parseFloat(n[1].toFixed(7)),longitude:parseFloat(n[0].toFixed(7)),altitude:0},console.log(this.location,e)}}toggleLocationMode(){this.isSettingLocation=!this.isSettingLocation}getCoordinateDisplay(t){return t?t.toFixed(6):"N/A"}clearLocation(){"geolocation"in navigator?navigator.geolocation.getCurrentPosition(t=>{this.latitude=t.coords.latitude,this.longitude=t.coords.longitude,this.configureMap(),this.hasPosition=!0}):alert("Geolocation is not available on this device")}save(){this.geoLocationSelected.emit(this.location),this.activeModal.close(),console.log("save me!")}cancel(){this.activeModal.close()}static \u0275fac=function(e){return new(e||c2)(U(dr))};static \u0275cmp=Be({type:c2,selectors:[["app-geo-location-editor"]],inputs:{location:"location"},outputs:{geoLocationSelected:"geoLocationSelected",geoLocationCleared:"geoLocationCleared"},decls:11,vars:4,consts:[[2,"margin","10px","display","flex"],[1,"fa","fas","fa-arrow-left","action",3,"click"],["style","flex-grow: 1;",4,"ngIf"],["class","action-danger",4,"ngIf"],["class","action",3,"click",4,"ngIf"],[1,"action",3,"click"],[1,"fa-solid","fa-save"],["id","map",2,"margin-left","60px","width","600px","height","600px",3,"click"],[2,"flex-grow","1"],["style","float: left;",4,"ngIf"],["style","float: left; margin-left: 1em;",4,"ngIf"],[2,"float","left"],[2,"margin-right","1em"],[2,"float","left","margin-left","1em"],[1,"action-danger"],[1,"fa","fa-trash"],[1,"fa","fa-pencil"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"i",1),N("click",function(){return n.cancel()}),c(),w(2,YSe,3,2,"div",2),w(3,USe,2,0,"div",2),u(4,"div"),w(5,jSe,3,0,"span",3),w(6,$Se,3,0,"span",4),u(7,"span",5),N("click",function(){return n.save()}),H(8,"i",6),m(9,"Save"),c()()(),u(10,"div",7),N("click",function(o){return n.mapClick(o)}),c()),2&e&&(h(2),p("ngIf",n.hasPosition&&!n.isSettingLocation),h(1),p("ngIf",n.isSettingLocation),h(2),p("ngIf",n.hasPosition),h(1),p("ngIf",!n.isSettingLocation))},dependencies:[ct]})}function zSe(i,t){if(1&i){const e=pe();u(0,"span",15),N("click",function(r){return R(e),g(3).clearGeoLocation(),L(r.stopPropagation())}),H(1,"i",16),c()}}function WSe(i,t){if(1&i){const e=pe();u(0,"i",17),N("click",function(){return R(e),L(g(3).showMap())}),c()}}const GSe=function(i){return{"picker-link":i}};function qSe(i,t){if(1&i){const e=pe();u(0,"span",11),N("click",function(){return R(e),L(g(2).setGeoLocation())}),u(1,"span",12),m(2),c(),w(3,zSe,2,0,"span",13),w(4,WSe,1,0,"i",14),c()}if(2&i){const e=g(2);h(1),p("ngClass",Ct(4,GSe,e.field.isUserEditable)),h(1),Re(e.getDisplay()),h(1),p("ngIf",e.field.value&&!e.field.isRequired&&e.field.isUserEditable),h(1),p("ngIf",e.field.value)}}function KSe(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g(2);h(1),Re(e.field.value.text)}}function ZSe(i,t){1&i&&(u(0,"span",18),H(1,"span",19),c()),2&i&&mt("data-target",g(2).popupId)}function QSe(i,t){if(1&i&&(u(0,"div",3)(1,"div",4)(2,"div",5),H(3,"app-form-field-label",6),u(4,"div",7),w(5,qSe,5,6,"span",8),w(6,KSe,2,1,"div",9),c()(),u(7,"div"),w(8,ZSe,2,1,"span",10),c()()()),2&i){const e=g();h(3),p("name",e.field.name)("label",e.field.label)("isRequired",e.field.isRequired),h(2),p("ngIf",e.isEnabled),h(1),p("ngIf",!e.isEnabled),h(2),p("ngIf",e.field.help)}}class d2 extends ln{modalService;constructor(t){super(),this.modalService=t}ngOnInit(){super.ngOnInit()}setGeoLocation(){const t=this.modalService.open(c2,{size:"lg"}).componentInstance;this.field.value&&(t.latitude=this.field.value?.latitude,t.longitude=this.field.value?.longitude),t.geoLocationSelected.subscribe(e=>{this.field.value=e}),t.geoLocationCleared.subscribe(e=>{this.field.value=void 0})}clearGeoLocation(){}getDisplay(){return this.field.value?`${this.field.value.latitude}, ${this.field.value.longitude}`:this.field.watermark??"-set geolocation-"}showMap(){window.open(`https://www.google.com/maps/search/?api=1&query=${this.field.value.latitude},${this.field.value.longitude}`)}static \u0275fac=function(e){return new(e||d2)(U(zn))};static \u0275cmp=Be({type:d2,selectors:[["app-geo-location-field"]],features:[st],decls:3,vars:8,consts:[["class","form-group","attr","one","ng-hide","!isVisible",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["attr","one","ng-hide","!isVisible",1,"form-group"],[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],[1,"input-group-holder"],[3,"click",4,"ngIf"],[4,"ngIf"],["data-toggle","modal",4,"ngIf"],[3,"click"],[3,"ngClass"],["class","picker-link-remove","style","margin-left:20px",3,"click",4,"ngIf"],["class","fa fa-globe action",3,"click",4,"ngIf"],[1,"picker-link-remove",2,"margin-left","20px",3,"click"],[1,"fa","fa-trash","action-danger"],[1,"fa","fa-globe","action",3,"click"],["data-toggle","modal"],[1,"fa","fa-question","action",2,"margin-left","10pt"]],template:function(e,n){1&e&&(w(0,QSe,9,6,"div",0),H(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&e&&(p("ngIf",n.field),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Zi,ct,Wn,qn,Gn],styles:[".picker-link[_ngcontent-%COMP%], .picker-link-remove[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-accent)}.picker-link[_ngcontent-%COMP%]:hover{text-decoration:underline;color:var(--color-accent)}"]})}class Gv{nuviotClient;constructor(t){this.nuviotClient=t}isValidID(t){if(!t)return!1;const e=t.match("^[\\dABCDEF]{32}$");return e&&1===e.length}invokeSuccess(){return{successful:!0,errors:[],warnings:[]}}invokeError(t){return{successful:!1,errors:[{message:t}],warnings:[]}}createSchedule(){return this.nuviotClient.getFormResponse("/api/core/schedule/factory")}static \u0275fac=function(e){return new(e||Gv)(Ee(An))};static \u0275prov=$e({token:Gv,factory:Gv.\u0275fac,providedIn:"root"})}function XSe(i,t){if(1&i){const e=pe();u(0,"div",1)(1,"h3",2),m(2),c(),H(3,"app-form",3),u(4,"table",4)(5,"thead")(6,"tr")(7,"th"),m(8,"Sunday"),c(),u(9,"th"),m(10,"Monday"),c(),u(11,"th"),m(12,"Tuesday"),c(),u(13,"th"),m(14,"Wednesday"),c(),u(15,"th"),m(16,"Thursday"),c(),u(17,"th"),m(18,"Friday"),c(),u(19,"th"),m(20,"Saturday"),c()()(),u(21,"tbody")(22,"td")(23,"input",5),N("ngModelChange",function(r){return R(e),L(g().form.model.sunday=r)}),c()(),u(24,"td")(25,"input",5),N("ngModelChange",function(r){return R(e),L(g().form.model.monday=r)}),c()(),u(26,"td")(27,"input",5),N("ngModelChange",function(r){return R(e),L(g().form.model.tuesday=r)}),c()(),u(28,"td")(29,"input",5),N("ngModelChange",function(r){return R(e),L(g().form.model.wednesday=r)}),c()(),u(30,"td")(31,"input",5),N("ngModelChange",function(r){return R(e),L(g().form.model.thursday=r)}),c()(),u(32,"td")(33,"input",5),N("ngModelChange",function(r){return R(e),L(g().form.model.friday=r)}),c()(),u(34,"td")(35,"input",5),N("ngModelChange",function(r){return R(e),L(g().form.model.saturday=r)}),c()()()(),u(36,"div",6)(37,"button",7),N("click",function(){return R(e),L(g().done())}),m(38,"Done"),c(),u(39,"button",8),N("click",function(){return R(e),L(g().cancel())}),m(40,"Cancel"),c()()()}if(2&i){const e=g();h(2),Re(e.title),h(1),p("form",e.form),h(20),p("ngModel",e.form.model.sunday),h(2),p("ngModel",e.form.model.monday),h(2),p("ngModel",e.form.model.tuesday),h(2),p("ngModel",e.form.model.wednesday),h(2),p("ngModel",e.form.model.thursday),h(2),p("ngModel",e.form.model.friday),h(2),p("ngModel",e.form.model.saturday)}}class u2{activeModal;coreService;scheduleModel;form;title="Schedule Editor";itemSelected=new Ae;constructor(t,e){this.activeModal=t,this.coreService=e}ngOnInit(){var t=this;return z(function*(){t.form=yield t.coreService.createSchedule()})()}done(){this.activeModal.close()}cancel(){this.activeModal.close()}static \u0275fac=function(e){return new(e||u2)(U(dr),U(Gv))};static \u0275cmp=Be({type:u2,selectors:[["app-schedule-editor"]],outputs:{itemSelected:"itemSelected"},decls:1,vars:1,consts:[["style","margin:30px",4,"ngIf"],[2,"margin","30px"],[2,"color","var(--color-primary-80)"],[3,"form"],[2,"width","100%"],["type","checkbox",3,"ngModel","ngModelChange"],[2,"text-align","right"],[1,"btn","btn-primary",3,"click"],[1,"btn","btn-danger",3,"click"]],template:function(e,n){1&e&&w(0,XSe,41,9,"div",0),2&e&&p("ngIf",n.form)},dependencies:[Al,ct,yl,vn,pn]})}function JSe(i,t){if(1&i){const e=pe();u(0,"span")(1,"i",13),N("click",function(){return R(e),L(g(3).editSchedule())}),c()()}}const eEe=function(i){return{"picker-link":i}};function tEe(i,t){if(1&i){const e=pe();u(0,"span",11),N("click",function(){return R(e),L(g(2).editSchedule())}),u(1,"span",12),m(2,"Edit Schedule"),c(),w(3,JSe,2,0,"span",9),c()}if(2&i){const e=g(2);h(1),p("ngClass",Ct(2,eEe,e.field.isUserEditable)),h(2),p("ngIf",e.field.editorPath&&e.field.value)}}function nEe(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g(2);h(1),Re(e.field.value.text)}}function iEe(i,t){1&i&&(u(0,"span",14),H(1,"span",15),c()),2&i&&mt("data-target",g(2).popupId)}function rEe(i,t){if(1&i&&(u(0,"div",3)(1,"div",4)(2,"div",5),H(3,"app-form-field-label",6),u(4,"div",7),w(5,tEe,4,4,"span",8),w(6,nEe,2,1,"div",9),c()(),u(7,"div"),w(8,iEe,2,1,"span",10),c()()()),2&i){const e=g();h(3),p("name",e.field.name)("label",e.field.label)("isRequired",e.field.isRequired),h(2),p("ngIf",e.isEnabled),h(1),p("ngIf",!e.isEnabled),h(2),p("ngIf",e.field.help)}}class h2 extends ln{modalService;constructor(t){super(),this.modalService=t}editSchedule(){this.modalService.open(u2,{size:"lg"}).componentInstance.scheduleModel=this.field.value}static \u0275fac=function(e){return new(e||h2)(U(zn))};static \u0275cmp=Be({type:h2,selectors:[["app-schedule"]],features:[st],decls:3,vars:8,consts:[["class","form-group","attr","one","ng-hide","!isVisible",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["attr","one","ng-hide","!isVisible",1,"form-group"],[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],[1,"input-group-holder"],[3,"click",4,"ngIf"],[4,"ngIf"],["data-toggle","modal",4,"ngIf"],[3,"click"],[3,"ngClass"],[1,"fa-solid","fa-arrow-up-right-from-square","action",3,"click"],["data-toggle","modal"],[1,"fa","fa-question","action",2,"margin-left","10pt"]],template:function(e,n){1&e&&(w(0,rEe,9,6,"div",0),H(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&e&&(p("ngIf",n.field),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Zi,ct,Wn,qn,Gn],styles:[".picker-link[_ngcontent-%COMP%], .picker-link-remove[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-accent)}.picker-link[_ngcontent-%COMP%]:hover{text-decoration:underline;color:var(--color-accent)}"]})}const oEe=["canvasElement"],aEe=["videoElement"],sEe=["photoElement"],lEe=["formElement"];function cEe(i,t){if(1&i){const e=pe();u(0,"span",10),N("click",function(){return R(e),L(g(3).add())}),H(1,"i",11),m(2,"Add"),c()}}function dEe(i,t){if(1&i){const e=pe();u(0,"span",10),N("click",function(){return R(e),L(g(3).takePhoto())}),H(1,"i",11),m(2,"Take Photo"),c()}}function uEe(i,t){1&i&&H(0,"i",12),2&i&&mt("data-target",g(3).popupId)}function hEe(i,t){if(1&i){const e=pe();u(0,"i",13),N("click",function(){return R(e),L(g(3).expanded=!0)}),c()}}function pEe(i,t){if(1&i){const e=pe();u(0,"i",14),N("click",function(){return R(e),L(g(3).expanded=!1)}),c()}}function fEe(i,t){if(1&i&&(u(0,"div"),w(1,cEe,3,0,"span",6),w(2,dEe,3,0,"span",6),w(3,uEe,1,1,"i",7),w(4,hEe,1,0,"i",8),w(5,pEe,1,0,"i",9),c()),2&i){const e=g(2);h(1),p("ngIf",e.field),h(1),p("ngIf",e.field),h(1),p("ngIf",e.field.help),h(1),p("ngIf",!e.expanded),h(1),p("ngIf",e.expanded)}}function gEe(i,t){1&i&&(u(0,"i",21),m(1,"\xa0\xa0\xa0\xa0"),c())}function mEe(i,t){if(1&i){const e=pe();u(0,"li",16),N("click",function(){const o=R(e).$implicit;return L(g(3).itemSelected(o))}),u(1,"span"),m(2),u(3,"a",17),H(4,"i",18),c()(),u(5,"i",19),N("click",function(r){const a=R(e).$implicit;return g(3).removeClick(a),L(r.stopPropagation())}),c(),w(6,gEe,2,0,"i",20),c()}if(2&i){const e=t.$implicit,n=t.index,r=g(3);p("title",r.getItemKey(e,"key: ")),h(2),Ke(" ",e.name," "),h(1),bx("href","",r.baseUri,"/api/media/resource/",r.orgId,"/",e.id,"/download",Yi),h(3),p("ngIf",r.field.value.length==n+1)}}function _Ee(i,t){if(1&i&&(u(0,"div")(1,"ol"),w(2,mEe,7,6,"li",15),c()()),2&i){const e=g(2);h(2),p("ngForOf",e.field.value)}}function vEe(i,t){if(1&i){const e=pe();u(0,"app-form",22,23),N("saved",function(r){return R(e),L(g(2).saved(r))})("cancel",function(){return R(e),L(g(2).mediaForm=void 0)}),c()}if(2&i){const e=g(2);p("inPlaceEditing",!0)("form",e.mediaForm)("autoSave",!0)}}function yEe(i,t){if(1&i){const e=pe();u(0,"button",29),N("click",function(){return R(e),L(g(3).capturePhoto())}),m(1,"Capture"),c()}}function bEe(i,t){if(1&i){const e=pe();u(0,"button",29),N("click",function(){return R(e),L(g(3).uploadPhoto())}),m(1,"Accept"),c()}}function CEe(i,t){1&i&&(u(0,"div")(1,"h4"),m(2,"Capture"),c(),H(3,"video",30,31),c())}function wEe(i,t){1&i&&(u(0,"div"),H(1,"canvas",null,32),c())}function DEe(i,t){1&i&&(u(0,"h4"),m(1,"Output"),c())}function MEe(i,t){if(1&i){const e=pe();u(0,"div")(1,"div",24),w(2,yEe,2,0,"button",25),w(3,bEe,2,0,"button",25),u(4,"button",26),N("click",function(){return R(e),L(g(2).takingPhoto=!1)}),m(5,"Cancel"),c()(),u(6,"div",27),w(7,CEe,5,0,"div",4),w(8,wEe,3,0,"div",4),u(9,"div"),w(10,DEe,2,0,"h4",4),H(11,"img",null,28),c()()()}if(2&i){const e=g(2);h(2),p("ngIf",!e.captured),h(1),p("ngIf",e.captured),h(4),p("ngIf",e.previewingPhoto),h(1),p("ngIf",!e.captured),h(2),p("ngIf",e.captured)}}function xEe(i,t){if(1&i&&(u(0,"div",1)(1,"div",2)(2,"div",3)(3,"label"),m(4),c()(),w(5,fEe,6,5,"div",4),c(),w(6,_Ee,3,1,"div",4),w(7,vEe,2,3,"app-form",5),w(8,MEe,13,5,"div",4),c()),2&i){const e=g();h(4),Gr(" ",e.field.label," (",null==e.field.value?null:e.field.value.length,")"),h(1),p("ngIf",!e.mediaForm),h(1),p("ngIf",(null==e.field?null:e.field.value)&&!e.mediaForm&&!e.takingPhoto&&e.expanded),h(1),p("ngIf",e.mediaForm),h(1),p("ngIf",e.takingPhoto)}}class p2 extends ln{mediaService;http;networkCallService;userService;modalComponent;takingPhoto=!1;isEditing=!1;captured=!1;expanded=!1;stream;previewingPhoto=!1;canvasElement;videoElement;photoElement;formElement;baseUri="";orgId;mediaForm;constructor(t,e,n,r,o){super(),this.mediaService=t,this.http=e,this.networkCallService=n,this.userService=r,this.modalComponent=o}ngOnInit(){var t=()=>super.ngOnInit,e=this;return z(function*(){t().call(e),e.orgId=(yield e.userService.getCurrentOrg()).id,console.log(e.field),e.field.value||(e.field.value=[])})()}add(){var t=this;return z(function*(){t.isEditing=!1;let e=yield t.mediaService.newMediaResource();t.mediaForm=e,t.mediaForm.view.fileName.isVisible=!0,t.mediaForm.view.contentSize.isVisible=!0,t.mediaForm.view.mimeType.isVisible=!0,t.mediaForm.view.link.isVisible=!1,e.view.isFileUpload.propertyChanged=n=>{t.mediaForm.view.fileName.isVisible=n.value,t.mediaForm.view.contentSize.isVisible=n.value,t.mediaForm.view.mimeType.isVisible=n.value,t.mediaForm.view.link.isVisible=!n.value},e.view.fileName.uploadUrl=`/api/media/resources/${e.model.id}`,e.view.fileName.fileUploaded=(n,r)=>{t.isEditing=!0,t.mediaForm.view.contentSize.value=n.contentSize.toString(),t.mediaForm.view.mimeType.value=n.mimeType,t.mediaForm.view.fileName.value=n.fileName,t.mediaForm.model.mimeType=n.mimeType,t.mediaForm.model.fileName=n.fileName,t.mediaForm.model.contentSize=n.contentSize,t.mediaForm.model.resourceType=n.resourceType,t.mediaForm.model.storageReferenceName=n.storageReferenceName}})()}getItemKey(t,e){return e?`${e}${t.key}`:t.key}itemSelected(t){var e=this;return z(function*(){e.isEditing=!0,e.mediaForm=yield e.mediaService.loadMediaResource(t.id)})()}saved(t){var e=this;return z(function*(){e.field.value.push(t.result),e.field.isDirty=!0,e.field.propertyChanged?.(e.field),e.mediaForm=void 0})()}takePhoto(){this.captured=!1,this.takingPhoto=!0,this.previewingPhoto=!0,this.startWebCam()}convertDataURIToBinary(t){var e=t.indexOf(";base64,")+8,n=t.substring(e),r=window.atob(n),o=r.length,a=new Uint8Array(new ArrayBuffer(o));for(let s=0;s{t.networkCallService.endCall();let a=o;a.successful&&(console.log(a),t.field.value.push({id:a.result.id,key:a.result.key,name:n,text:n}),t.field.isDirty=!0,t.field.propertyChanged?.(t.field),t.takingPhoto=!1,t.expanded=!0)})})()}removeClick(t){var e=this;const n=this.modalComponent.open(xl,{size:"lg"}).componentInstance;n.title=`Remove item from ${this.field.label}`,n.content=`${t.name??t.text} will be PERMANENTLY removed.`,n.contentIsHtml=!0,n.confirmationResult.subscribe(function(){var r=z(function*(o){if(o){let a=e.field.value.indexOf(t);a>=0&&(e.field.value.splice(a,1),e.field.isDirty=!0,e.field.propertyChanged?.(e.field))}});return function(o){return r.apply(this,arguments)}}())}static \u0275fac=function(e){return new(e||p2)(U(Tl),U(_d),U(mc),U($n),U(zn))};static \u0275cmp=Be({type:p2,selectors:[["app-media-resources-field"]],viewQuery:function(e,n){if(1&e&&(un(oEe,5),un(aEe,5),un(sEe,5),un(lEe,5)),2&e){let r;pt(r=ft())&&(n.canvasElement=r.first),pt(r=ft())&&(n.videoElement=r.first),pt(r=ft())&&(n.photoElement=r.first),pt(r=ft())&&(n.formElement=r.first)}},features:[st],decls:1,vars:1,consts:[["class","panel",4,"ngIf"],[1,"panel"],[2,"display","flex","padding","10px"],[2,"flex-grow","1"],[4,"ngIf"],[3,"inPlaceEditing","form","autoSave","saved","cancel",4,"ngIf"],["class","action",3,"click",4,"ngIf"],["data-toggle","modal","class","fas fa-question action",4,"ngIf"],["class","fa-regular fa-square-chevron-down action",3,"click",4,"ngIf"],["class","fa-regular fa-square-chevron-up action",3,"click",4,"ngIf"],[1,"action",3,"click"],[1,"fas","fa-plus"],["data-toggle","modal",1,"fas","fa-question","action"],[1,"fa-regular","fa-square-chevron-down","action",3,"click"],[1,"fa-regular","fa-square-chevron-up","action",3,"click"],[3,"title","click",4,"ngFor","ngForOf"],[3,"title","click"],["target","_blank",3,"href"],[1,"fa","fa-link","action"],[1,"fa","fa-trash","action-danger",3,"click"],["class","action",4,"ngIf"],[1,"action"],[3,"inPlaceEditing","form","autoSave","saved","cancel"],["formElement",""],[2,"text-align","right"],["class","btn btn-primary",3,"click",4,"ngIf"],[1,"btn","btn-danger",3,"click"],[2,"display","flex"],["photoElement",""],[1,"btn","btn-primary",3,"click"],["autoplay",""],["videoElement",""],["canvasElement",""]],template:function(e,n){1&e&&w(0,xEe,9,6,"div",0),2&e&&p("ngIf",n.field)},dependencies:[jt,ct,Al],styles:[".section-header[_ngcontent-%COMP%]{font-size:20pt;margin:14pt}.section-header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{float:right}ol[_ngcontent-%COMP%]{list-style:none;color:var(--color-fg);padding:0;margin:0}li[_ngcontent-%COMP%]{padding-top:14px;padding-bottom:14px;padding-left:10px;border-bottom:1px solid var(--color-gray-80);font-size:12pt}li[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{float:right;margin-right:14px;vertical-align:middle}li[_ngcontent-%COMP%]:hover{background-color:var(--color-bg-menu-active);color:var(--color-fg-panel-header-active);cursor:pointer}.sub-form[_ngcontent-%COMP%], .panel[_ngcontent-%COMP%]{background-color:var(--color-bg-panel);border:1px solid var(--color-border-panel);border-radius:8px;-webkit-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19);-webkit-box-shadow-box-shadow:0 4px 8px 0 rgba(128,128,128,.2),0 6px 20px 0 rgba(128,128,128,.19)}"]})}function kEe(i,t){if(1&i&&(u(0,"span"),m(1),c()),2&i){const e=g();h(1),Ke(" for ",e.parentCompany.name,"")}}function TEe(i,t){if(1&i&&(u(0,"option",14),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e.key),h(1),Re(e.name)}}function SEe(i,t){if(1&i&&(u(0,"option",14),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e.key),h(1),Re(e.text)}}function EEe(i,t){if(1&i){const e=pe();u(0,"div",9)(1,"label",10),m(2,"Niche:"),c(),u(3,"select",11),N("ngModelChange",function(r){return R(e),L(g(2).selectedNiche=r)})("change",function(r){return R(e),L(g(2).filterChanged(r))}),w(4,SEe,2,2,"option",12),c()()}if(2&i){const e=g(2);h(3),p("ngModel",e.selectedNiche),h(1),p("ngForOf",e.niches)}}function AEe(i,t){if(1&i&&(u(0,"option",14),m(1),c()),2&i){const e=t.$implicit;p("ngValue",e.key),h(1),Re(e.label)}}function IEe(i,t){if(1&i){const e=pe();u(0,"div",8)(1,"div",9)(2,"label",10),m(3,"Industry:"),c(),u(4,"select",11),N("ngModelChange",function(r){return R(e),L(g().selectedIndustry=r)})("change",function(r){return R(e),L(g().filterChanged(r))}),w(5,TEe,2,2,"option",12),c()(),w(6,EEe,5,2,"div",13),u(7,"div",9)(8,"label",10),m(9,"Customer Status:"),c(),u(10,"select",11),N("ngModelChange",function(r){return R(e),L(g().selectedStage=r)})("change",function(r){return R(e),L(g().filterChanged(r))}),w(11,AEe,2,2,"option",12),c()()()}if(2&i){const e=g();h(4),p("ngModel",e.selectedIndustry),h(1),p("ngForOf",e.industries),h(1),p("ngIf",null!=e.selectedStage),h(4),p("ngModel",e.selectedStage),h(1),p("ngForOf",e.stageOptions)}}function FEe(i,t){if(1&i){const e=pe();u(0,"app-simple-list",18),N("selected",function(r){return R(e),L(g(2).customerSelectedEvent(r))}),c()}if(2&i){const e=g(2);p("fixedHeight",500)("items",e.customers.model)("showReorder",!1)("showAdd",!1)}}function PEe(i,t){if(1&i){const e=pe();u(0,"app-simple-list",19),N("selected",function(r){return R(e),L(g(2).contactSelectedEvent(r))}),c()}if(2&i){const e=g(2);p("fixedHeight",500)("items",e.contacts)("displayMemberName","firstName,lastName")("showReorder",!1)("showAdd",!1)}}function REe(i,t){if(1&i&&(u(0,"div",15),w(1,FEe,1,4,"app-simple-list",16),w(2,PEe,1,5,"app-simple-list",17),c()),2&i){const e=g();h(1),p("ngIf",e.customers&&!e.contacts),h(1),p("ngIf",e.contacts)}}function LEe(i,t){1&i&&(u(0,"div",20)(1,"h4"),m(2,"Please Wait"),c(),H(3,"i",21),c())}class f2{businessService;storage;activeModal;busy;contactPicker=!1;industries;stageOptions;customers;contacts;parentCompany;selectedCompany;selectedCompanyEntityHeader;niches=[];selectedIndustry="-1";selectedNiche="-1";selectedStage="-1";customerSelected=new Ae;contactSelected=new Ae;constructor(t,e,n){this.businessService=t,this.storage=e,this.activeModal=n}ngOnInit(){var t=this;return z(function*(){if(t.busy=!0,t.parentCompany)t.contacts=t.parentCompany.contacts;else{if(t.industries=(yield t.businessService.getIndustries()).model,t.stageOptions=yield t.businessService.getCustomerStageOptions(),t.selectedStage=yield t.storage.getItemAsync("customer-filter-status","-1"),t.selectedIndustry=yield t.storage.getItemAsync("customer-filter-industry","-1"),t.setIndustry(t.selectedIndustry),t.stageOptions.unshift(Qn.getAllOption()),t.industries.unshift(Qn.getAllOption()),t.customers=yield t.businessService.getCustomers(t.selectedStage,t.selectedIndustry),console.log(t.customers,t.selectedCompany),t.selectedCompany){let e=yield t.businessService.getCustomer(t.selectedCompany.id);t.contacts=e.model.contacts}if(t.selectedCompanyEntityHeader){let e=yield t.businessService.getCustomer(t.selectedCompanyEntityHeader.id);t.contacts=e.model.contacts}}t.busy=!1})()}filterChanged(t){var e=this;return z(function*(){e.storage.setItemAsync("customer-filter-status",e.selectedStage),e.storage.setItemAsync("customer-filter-industry",e.selectedIndustry),e.customers=yield e.businessService.getCustomers(e.selectedStage,e.selectedIndustry),e.setIndustry(e.selectedIndustry)})()}setIndustry(t){var e=this;return z(function*(){if(t&&"-1"!=t){let n=e.industries.find(o=>o.key===t).id,r=yield e.businessService.getIndustry(n);e.niches=r.model.niches.map(o=>({id:o.id,key:o.key,text:o.name})),e.niches.unshift(Qn.getSelectOption())}})()}contactSelectedEvent(t){var e=this;return z(function*(){e.contactSelected.emit({contact:t,company:e.selectedCompany,companyEntityHeader:e.selectedCompanyEntityHeader}),e.activeModal.close()})()}customerSelectedEvent(t){var e=this;return z(function*(){if(e.selectedCompany=t,e.selectedCompanyEntityHeader={id:t.id,key:t.key,text:t.name},console.log("customer selected",t),e.contactPicker){let n=yield e.businessService.getCustomer(t.id);e.contacts=n.model.contacts}else e.customerSelected.emit(e.selectedCompany),e.activeModal.close()})()}closeModal(){this.activeModal.close()}static \u0275fac=function(e){return new(e||f2)(U(la),U(co),U(dr))};static \u0275cmp=Be({type:f2,selectors:[["app-customer-picker"]],outputs:{customerSelected:"customerSelected",contactSelected:"contactSelected"},decls:12,vars:4,consts:[[2,"border-bottom","1px solid silver","padding-top","10px","padding-right","10px","padding-left","10px"],[4,"ngIf"],["style","display:flex;padding:20px",4,"ngIf"],[2,"height","600px"],["style","padding:20px;background-color: white;",4,"ngIf"],["style","text-align:center;height: 550px; padding-top:50px;",4,"ngIf"],[2,"text-align","right","padding","10px","border-top","1pt solid silver"],[1,"btn","btn-secondary",3,"click"],[2,"display","flex","padding","20px"],[2,"flex-grow","1"],[2,"display","inline","margin-right","5px"],[1,"form-control","form-select",2,"width","240px","display","inline",3,"ngModel","ngModelChange","change"],[3,"ngValue",4,"ngFor","ngForOf"],["style","flex-grow:1",4,"ngIf"],[3,"ngValue"],[2,"padding","20px","background-color","white"],["title","Select Customer",3,"fixedHeight","items","showReorder","showAdd","selected",4,"ngIf"],["title","Select Contact",3,"fixedHeight","items","displayMemberName","showReorder","showAdd","selected",4,"ngIf"],["title","Select Customer",3,"fixedHeight","items","showReorder","showAdd","selected"],["title","Select Contact",3,"fixedHeight","items","displayMemberName","showReorder","showAdd","selected"],[2,"text-align","center","height","550px","padding-top","50px"],[1,"fa","fa-spinner","fa-spin","fa-3x"]],template:function(e,n){1&e&&(u(0,"div")(1,"div",0)(2,"h3"),m(3,"Customer Picker "),w(4,kEe,2,1,"span",1),c()(),w(5,IEe,12,5,"div",2),u(6,"div",3),w(7,REe,3,2,"div",4),w(8,LEe,4,0,"div",5),c(),u(9,"div",6)(10,"button",7),N("click",function(){return n.closeModal()}),m(11,"Close"),c()()()),2&e&&(h(4),p("ngIf",n.parentCompany),h(1),p("ngIf",!n.parentCompany),h(2),p("ngIf",!n.busy),h(1),p("ngIf",n.busy))},dependencies:[jt,ct,oo,ao,Nr,vn,pn,bv]})}class qv{nuviotClient;storage;constructor(t,e){this.nuviotClient=t,this.storage=e}getCurrentCustomer(){return this.nuviotClient.request("/api/customer/current")}getCurrentCustomerForEditing(){return this.nuviotClient.getFormResponse("/api/customer/current/form")}getDistributionLists(){var t=this;return z(function*(){return yield t.nuviotClient.getListResponse("/api/customer/distros")})()}createDistributionList(){var t=this;return z(function*(){return yield t.nuviotClient.getFormResponse("/api/customer/distro/factory")})()}updateDistributionList(t){var e=this;return z(function*(){return yield e.nuviotClient.update("/api/customer/distro",t)})()}addDistributionList(t){var e=this;return z(function*(){return yield e.nuviotClient.post("/api/customer/distro",t)})()}deleteDistributionList(t){var e=this;return z(function*(){return yield e.nuviotClient.delete(`/api/customer/distro/${t}`)})()}getDistributionList(t){var e=this;return z(function*(){return yield e.nuviotClient.getFormResponse(`/api/customer/distro/${t}`)})()}getDevicesForCustomer(){return this.nuviotClient.getListResponse("/api/customer/devices")}getDeviceDetail(t){return this.nuviotClient.request(`/api/customer/device/${t}`)}getOrgLocation(){return this.nuviotClient.request("/api/customer/orglocation")}getLocations(){return this.nuviotClient.getListResponse("/api/customer/locations")}getCustomerLocation(t){return this.nuviotClient.getFormResponse(`/api/customer/location/${t}`)}getDeviceTypes(){return this.nuviotClient.getListResponse("/api/customer/devicemodels")}getDefaultListenerConfiguration(){return this.nuviotClient.request("/api/customer/devicemodels")}getMediaLibraries(){return this.nuviotClient.getListResponse("/api/customer/media/libraries")}getNotifications(){return this.nuviotClient.getListResponse("/api/customer/notifications")}createNotification(){return this.nuviotClient.getFormResponse("/api/customer/notification/factory")}getNotification(t){return this.nuviotClient.getFormResponse(`/api/customer/notification/${t}`)}addNotification(t){return this.nuviotClient.post("/api/customer/notification",t)}updateNotification(t){return this.nuviotClient.update("/api/customer/notification",t)}addDevice(t){return this.nuviotClient.request(`/api/customer/device/${t}/add`)}getDevicesForLocation(t){var e=this;return z(function*(){return e.nuviotClient.getListResponse(`/api/customer/location/${t}/devices`)})()}createDevice(){var t=this;return z(function*(){return t.nuviotClient.getFormResponse("/api/customer/device/factory")})()}createExternalContact(){return this.nuviotClient.getFormResponse("/api/distro/externalcontact/factory")}getWiFiConnectionProfiles(){return this.nuviotClient.getListResponse("/api/customer/wifiprofiles")}createWiFiConnectionProfile(){return this.nuviotClient.getFormResponse("/api/customer/wifiprofile/factory")}editWiFiConnectionProfile(t){var e=this;return z(function*(){let n=yield e.nuviotClient.getFormResponse("/api/customer/wifiprofile/factory");return n.model=t,n.isEditing=!0,n})()}saveWiFiConnectionProfile(t){return console.log("calling save profile"),t.isEditing?this.nuviotClient.updateWithResponse("/api/customer/wifiprofile",t.model):this.nuviotClient.postWithResponse("/api/customer/wifiprofile",t.model)}static \u0275fac=function(e){return new(e||qv)(Ee(An),Ee(co))};static \u0275prov=$e({token:qv,factory:qv.\u0275fac,providedIn:"root"})}const OEe=function(i){return{"picker-link":i}};function NEe(i,t){if(1&i){const e=pe();u(0,"span",12),N("click",function(){return R(e),L(g(2).selectCustomer())}),u(1,"span",13),m(2),c()()}if(2&i){const e=g(2);let n;h(1),p("ngClass",Ct(2,OEe,e.field.isUserEditable)),h(1),Re(e.field.value?e.field.value.text:null!==(n=e.field.watermark)&&void 0!==n?n:"-select-")}}function BEe(i,t){if(1&i){const e=pe();u(0,"span",14),N("click",function(r){return R(e),g(2).clearEntityHeaderValue(),L(r.stopPropagation())}),H(1,"i",15),c()}}function VEe(i,t){if(1&i&&(u(0,"div"),m(1),c()),2&i){const e=g(2);h(1),Re(e.field.value.text)}}function HEe(i,t){1&i&&(u(0,"span",16),H(1,"span",17),c()),2&i&&mt("data-target",g(2).popupId)}function YEe(i,t){if(1&i&&(u(0,"div",3)(1,"div",4)(2,"div",5),H(3,"app-form-field-label",6),u(4,"div",7),w(5,NEe,3,4,"span",8),w(6,BEe,2,0,"span",9),w(7,VEe,2,1,"div",10),c()(),u(8,"div"),w(9,HEe,2,1,"span",11),c()()()),2&i){const e=g();h(3),p("name",e.field.name)("label",e.field.label)("isRequired",e.field.isRequired),h(2),p("ngIf",e.isEnabled),h(1),p("ngIf",e.field.value&&!e.field.isRequired&&e.field.isUserEditable),h(1),p("ngIf",!e.isEnabled),h(2),p("ngIf",e.field.help)}}class g2 extends ln{modalService;customerService;modalComponent;constructor(t,e,n){super(),this.modalService=t,this.customerService=e,this.modalComponent=n}ngOnInit(){super.ngOnInit(),console.log(this.field)}selected(){}selectCustomer(){var t=this;return z(function*(){let e;if("CustomerLocation"===t.form.modelName){let r=yield t.customerService.getCurrentCustomer();r.successful&&(e=r.result)}const n=t.modalService.open(f2,{size:"lg"}).componentInstance;n.parentCompany="CustomerEntity"===t.form.modelName?t.model:e,n.contactPicker="ContactPicker"==t.field.fieldType,t.view.company?.value&&(n.selectedCompanyEntityHeader=t.view.company.value),n.customerSelected.subscribe(r=>{t.field.value={id:r.id,text:r.name},t.view.industry&&r.industryTypeId&&(t.view.industry.value={id:r.industryTypeId,key:r.industryTypeKey,text:r.industryType}),t.view.industryNiche&&r.industryNicheId&&(t.view.industryNiche.value={id:r.industryNicheId,key:r.industryNicheKey,text:r.industryNiche}),t.field.propertyChanged&&t.field.propertyChanged(t.field)}),n.contactSelected.subscribe(r=>{console.log(r),t.view.company&&r.companyEntityHeader&&(t.view.company.value=r.companyEntityHeader),t.field.value={id:r.contact.id,text:`${r.contact.firstName} ${r.contact.lastName}`},t.view.firstName&&(t.view.firstName.value=r.contact.firstName),t.view.lastName&&(t.view.lastName.value=r.contact.lastName),t.view.email&&(t.view.email.value=r.contact.email),t.view.emailAddress&&(t.view.emailAddress.value=r.contact.email),t.view.industry&&r.company?.industryTypeId&&(t.view.industry.value={id:r.company.industryTypeId,key:r.company.industryTypeKey,text:r.company.industryType}),t.view.industryNiche&&r.company?.industryNicheId&&(t.view.industryNiche.value={id:r.company.industryNicheId,key:r.company.industryNicheKey,text:r.company.industryNiche}),t.view.persona&&(t.view.persona.value=r.contact.persona),t.field.propertyChanged&&t.field.propertyChanged(t.field)})})()}clearEntityHeaderValue(){this.field.clearEntityHeader&&this.field.isUserEditable?this.field.clearEntityHeader(this.field):(this.field.value=void 0,this.field.display=void 0),this.changed(this.field)}static \u0275fac=function(e){return new(e||g2)(U(zn),U(qv),U(zn))};static \u0275cmp=Be({type:g2,selectors:[["app-customer-picker-field"]],features:[st],decls:3,vars:8,consts:[["class","form-group","attr","one","ng-hide","!isVisible",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["attr","one","ng-hide","!isVisible",1,"form-group"],[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],[1,"input-group-holder"],[3,"click",4,"ngIf"],["class","picker-link-remove","style","margin-left:20px",3,"click",4,"ngIf"],[4,"ngIf"],["data-toggle","modal",4,"ngIf"],[3,"click"],[3,"ngClass"],[1,"picker-link-remove",2,"margin-left","20px",3,"click"],[1,"fa","fa-trash","action-danger"],["data-toggle","modal"],[1,"fa","fa-question","action",2,"margin-left","10pt"]],template:function(e,n){1&e&&(w(0,YEe,10,7,"div",0),H(1,"app-form-field-validation-section",1)(2,"app-form-field-help",2)),2&e&&(p("ngIf",n.field),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Zi,ct,Wn,qn,Gn],styles:[".picker-link[_ngcontent-%COMP%], .picker-link-remove[_ngcontent-%COMP%]{cursor:pointer;color:var(--color-accent)}.picker-link[_ngcontent-%COMP%]:hover{text-decoration:underline;color:var(--color-accent)}"]})}const UEe=["nameField"];function jEe(i,t){1&i&&(u(0,"span",10),m(1,"X ="),c())}function $Ee(i,t){1&i&&(u(0,"span",10),m(1,"Width ="),c())}function zEe(i,t){1&i&&(u(0,"span",10),m(1,"Y ="),c())}function WEe(i,t){1&i&&(u(0,"span",10),m(1,"Length ="),c())}function GEe(i,t){1&i&&(u(0,"span",11),H(1,"i",12),c()),2&i&&mt("data-target",g(2).popupId)}function qEe(i,t){if(1&i){const e=pe();u(0,"div",6),w(1,jEe,2,0,"span",7),w(2,$Ee,2,0,"span",7),u(3,"input",8),N("ngModelChange",function(r){return R(e),L(g().value1=r)})("change",function(r){return R(e),L(g().changed(r))})("input",function(r){return R(e),L(g().textChanged(r))})("focus",function(r){return R(e),L(g().onFocus(r))})("blur",function(r){return R(e),L(g().onBlur(r))}),c(),w(4,zEe,2,0,"span",7),w(5,WEe,2,0,"span",7),u(6,"input",8),N("ngModelChange",function(r){return R(e),L(g().value2=r)})("change",function(r){return R(e),L(g().changed(r))})("input",function(r){return R(e),L(g().textChanged(r))})("focus",function(r){return R(e),L(g().onFocus(r))})("blur",function(r){return R(e),L(g().onBlur(r))}),c(),w(7,GEe,2,1,"span",9),c()}if(2&i){const e=g();h(1),p("ngIf","Point2D"==e.field.fieldType),h(1),p("ngIf","Point2DSize"==e.field.fieldType),h(1),Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.value1)("disabled",!e.field.isUserEditable),h(1),p("ngIf","Point2D"==e.field.fieldType),h(1),p("ngIf","Point2DSize"==e.field.fieldType),h(1),Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.value2)("disabled",!e.field.isUserEditable),h(1),p("ngIf",e.field.help)}}class m2 extends ln{isEditing=!1;constructor(){super()}nameInput;get value1(){return this.field.value?.x}set value1(t){this.field.value||(this.field.value={x:0,y:0}),this.field.value.x=t}get value2(){return this.field.value?.y}set value2(t){this.field.value||(this.field.value={x:0,y:0}),this.field.value.y=t}static \u0275fac=function(e){return new(e||m2)};static \u0275cmp=Be({type:m2,selectors:[["app-point2d"]],viewQuery:function(e,n){if(1&e&&un(UEe,5),2&e){let r;pt(r=ft())&&(n.nameInput=r.first)}},features:[st],decls:6,vars:11,consts:[[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],["class","input-group",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],[1,"input-group"],["class","input-group-text",4,"ngIf"],["type","number",1,"form-control",2,"text-align","right",3,"name","id","ngModel","disabled","placeholder","ngModelChange","change","input","focus","blur"],["data-toggle","modal","class","input-group-text","style","cursor:pointer;color:#A0A0A0",4,"ngIf"],[1,"input-group-text"],["data-toggle","modal",1,"input-group-text",2,"cursor","pointer","color","#A0A0A0"],["aria-hidden","true",1,"fa","fa-question"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1),H(2,"app-form-field-label",2),c()(),w(3,qEe,8,19,"div",3),H(4,"app-form-field-validation-section",4)(5,"app-form-field-help",5)),2&e&&(h(2),p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(1),p("ngIf",!0),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Bn,Rs,vn,pn,ct,Wn,qn,Gn]})}function KEe(i,t){1&i&&(u(0,"span",10),m(1,"X ="),c())}function ZEe(i,t){1&i&&(u(0,"span",10),m(1,"Width ="),c())}function QEe(i,t){1&i&&(u(0,"span",10),m(1,"Y ="),c())}function XEe(i,t){1&i&&(u(0,"span",10),m(1,"Length ="),c())}function JEe(i,t){1&i&&(u(0,"span",10),m(1,"Z ="),c())}function eAe(i,t){1&i&&(u(0,"span",10),m(1,"Height ="),c())}function tAe(i,t){1&i&&(u(0,"span",11),H(1,"i",12),c()),2&i&&mt("data-target",g(2).popupId)}function nAe(i,t){if(1&i){const e=pe();u(0,"div",6),w(1,KEe,2,0,"span",7),w(2,ZEe,2,0,"span",7),u(3,"input",8),N("ngModelChange",function(r){return R(e),L(g().value1=r)})("change",function(r){return R(e),L(g().changed(r))})("input",function(r){return R(e),L(g().textChanged(r))})("focus",function(r){return R(e),L(g().onFocus(r))})("blur",function(r){return R(e),L(g().onBlur(r))}),c(),w(4,QEe,2,0,"span",7),w(5,XEe,2,0,"span",7),u(6,"input",8),N("ngModelChange",function(r){return R(e),L(g().value2=r)})("change",function(r){return R(e),L(g().changed(r))})("input",function(r){return R(e),L(g().textChanged(r))})("focus",function(r){return R(e),L(g().onFocus(r))})("blur",function(r){return R(e),L(g().onBlur(r))}),c(),w(7,JEe,2,0,"span",7),w(8,eAe,2,0,"span",7),u(9,"input",8),N("ngModelChange",function(r){return R(e),L(g().value3=r)})("change",function(r){return R(e),L(g().changed(r))})("input",function(r){return R(e),L(g().textChanged(r))})("focus",function(r){return R(e),L(g().onFocus(r))})("blur",function(r){return R(e),L(g().onBlur(r))}),c(),w(10,tAe,2,1,"span",9),c()}if(2&i){const e=g();h(1),p("ngIf","Point3D"==e.field.fieldType),h(1),p("ngIf","Point3DSize"==e.field.fieldType),h(1),Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.value1)("disabled",!e.field.isUserEditable),h(1),p("ngIf","Point3D"==e.field.fieldType),h(1),p("ngIf","Point3DSize"==e.field.fieldType),h(1),Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.value2)("disabled",!e.field.isUserEditable),h(1),p("ngIf","Point3D"==e.field.fieldType),h(1),p("ngIf","Point3DSize"==e.field.fieldType),h(1),Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.value3)("disabled",!e.field.isUserEditable),h(1),p("ngIf",e.field.help)}}class _2 extends ln{isEditing=!1;constructor(){super()}get value1(){return this.field.value?.x}set value1(t){this.field.value||(this.field.value={x:0,y:0,z:0}),this.field.value.x=t}get value2(){return this.field.value?.y}set value2(t){this.field.value||(this.field.value={x:0,y:0,z:0}),this.field.value.y=t}get value3(){return this.field.value?.z}set value3(t){this.field.value||(this.field.value={x:0,y:0,z:0}),this.field.value.z=t}static \u0275fac=function(e){return new(e||_2)};static \u0275cmp=Be({type:_2,selectors:[["app-point3d"]],features:[st],decls:6,vars:11,consts:[[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],["class","input-group",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],[1,"input-group"],["class","input-group-text",4,"ngIf"],["type","number",1,"form-control",2,"text-align","right",3,"name","id","ngModel","disabled","placeholder","ngModelChange","change","input","focus","blur"],["data-toggle","modal","class","input-group-text","style","cursor:pointer;color:#A0A0A0",4,"ngIf"],[1,"input-group-text"],["data-toggle","modal",1,"input-group-text",2,"cursor","pointer","color","#A0A0A0"],["aria-hidden","true",1,"fa","fa-question"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1),H(2,"app-form-field-label",2),c()(),w(3,nAe,11,28,"div",3),H(4,"app-form-field-validation-section",4)(5,"app-form-field-help",5)),2&e&&(h(2),p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(1),p("ngIf",!0),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Bn,Rs,vn,pn,ct,Wn,qn,Gn]})}function iAe(i,t){1&i&&(u(0,"span",10),m(1,"X ="),c())}function rAe(i,t){1&i&&(u(0,"span",10),m(1,"Width ="),c())}function oAe(i,t){1&i&&(u(0,"span",10),m(1,"Y ="),c())}function aAe(i,t){1&i&&(u(0,"span",10),m(1,"Height ="),c())}function sAe(i,t){1&i&&(u(0,"span",10),m(1,"Z ="),c())}function lAe(i,t){1&i&&(u(0,"span",10),m(1,"Depth ="),c())}function cAe(i,t){1&i&&(u(0,"span",11),H(1,"i",12),c()),2&i&&mt("data-target",g(2).popupId)}function dAe(i,t){if(1&i){const e=pe();u(0,"div",6),w(1,iAe,2,0,"span",7),w(2,rAe,2,0,"span",7),u(3,"input",8),N("ngModelChange",function(r){return R(e),L(g().value1=r)})("change",function(r){return R(e),L(g().changed(r))})("input",function(r){return R(e),L(g().textChanged(r))})("focus",function(r){return R(e),L(g().onFocus(r))})("blur",function(r){return R(e),L(g().onBlur(r))}),c(),w(4,oAe,2,0,"span",7),w(5,aAe,2,0,"span",7),u(6,"input",8),N("ngModelChange",function(r){return R(e),L(g().value2=r)})("change",function(r){return R(e),L(g().changed(r))})("input",function(r){return R(e),L(g().textChanged(r))})("focus",function(r){return R(e),L(g().onFocus(r))})("blur",function(r){return R(e),L(g().onBlur(r))}),c(),w(7,sAe,2,0,"span",7),w(8,lAe,2,0,"span",7),u(9,"input",8),N("ngModelChange",function(r){return R(e),L(g().value3=r)})("change",function(r){return R(e),L(g().changed(r))})("input",function(r){return R(e),L(g().textChanged(r))})("focus",function(r){return R(e),L(g().onFocus(r))})("blur",function(r){return R(e),L(g().onBlur(r))}),c(),w(10,cAe,2,1,"span",9),c()}if(2&i){const e=g();h(1),p("ngIf","Point3D"==e.field.fieldType),h(1),p("ngIf","Point3DSize"==e.field.fieldType),h(1),Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.value1)("disabled",!e.field.isUserEditable),h(1),p("ngIf","Point3D"==e.field.fieldType),h(1),p("ngIf","Point3DSize"==e.field.fieldType),h(1),Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.value2)("disabled",!e.field.isUserEditable),h(1),p("ngIf","Point3D"==e.field.fieldType),h(1),p("ngIf","Point3DSize"==e.field.fieldType),h(1),Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.value3)("disabled",!e.field.isUserEditable),h(1),p("ngIf",e.field.help)}}class v2 extends ln{isEditing=!1;constructor(){super()}get value1(){return this.field.value?.width}set value1(t){this.field.value||(this.field.value={width:0,height:0,depth:0}),this.field.value.width=t}get value2(){return this.field.value?.height}set value2(t){this.field.value||(this.field.value={width:0,height:0,depth:0}),this.field.value.height=t}get value3(){return this.field.value?.depth}set value3(t){this.field.value||(this.field.value={width:0,height:0,depth:0}),this.field.value.depth=t}static \u0275fac=function(e){return new(e||v2)};static \u0275cmp=Be({type:v2,selectors:[["app-size3d"]],features:[st],decls:6,vars:11,consts:[[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],["class","input-group",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],[1,"input-group"],["class","input-group-text",4,"ngIf"],["type","number",1,"form-control",2,"text-align","right",3,"name","id","ngModel","disabled","placeholder","ngModelChange","change","input","focus","blur"],["data-toggle","modal","class","input-group-text","style","cursor:pointer;color:#A0A0A0",4,"ngIf"],[1,"input-group-text"],["data-toggle","modal",1,"input-group-text",2,"cursor","pointer","color","#A0A0A0"],["aria-hidden","true",1,"fa","fa-question"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1),H(2,"app-form-field-label",2),c()(),w(3,dAe,11,28,"div",3),H(4,"app-form-field-validation-section",4)(5,"app-form-field-help",5)),2&e&&(h(2),p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(1),p("ngIf",!0),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Bn,Rs,vn,pn,ct,Wn,qn,Gn]})}const uAe=["nameField"];function hAe(i,t){1&i&&(u(0,"span",10),H(1,"i",11),c()),2&i&&mt("data-target",g(2).popupId)}function pAe(i,t){if(1&i){const e=pe();u(0,"div",6)(1,"span",7),m(2,"Width ="),c(),u(3,"input",8),N("ngModelChange",function(r){return R(e),L(g().value1=r)})("change",function(r){return R(e),L(g().changed(r))})("input",function(r){return R(e),L(g().textChanged(r))})("focus",function(r){return R(e),L(g().onFocus(r))})("blur",function(r){return R(e),L(g().onBlur(r))}),c(),u(4,"span",7),m(5,"Length ="),c(),u(6,"input",8),N("ngModelChange",function(r){return R(e),L(g().value2=r)})("change",function(r){return R(e),L(g().changed(r))})("input",function(r){return R(e),L(g().textChanged(r))})("focus",function(r){return R(e),L(g().onFocus(r))})("blur",function(r){return R(e),L(g().onBlur(r))}),c(),w(7,hAe,2,1,"span",9),c()}if(2&i){const e=g();h(3),Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.value1)("disabled",!e.field.isUserEditable),h(3),Mn("background-color",e.field.isUserEditable?"white":"#EEEEEE"),gt("name",e.field.name),gt("id",e.field.name),gt("placeholder",e.field.watermark),p("ngModel",e.value2)("disabled",!e.field.isUserEditable),h(1),p("ngIf",e.field.help)}}class y2 extends ln{isEditing=!1;constructor(){super()}nameInput;get value1(){return this.field.value?.x}set value1(t){this.field.value||(this.field.value={x:0,y:0}),this.field.value.x=t}get value2(){return this.field.value?.y}set value2(t){this.field.value||(this.field.value={x:0,y:0}),this.field.value.y=t}static \u0275fac=function(e){return new(e||y2)};static \u0275cmp=Be({type:y2,selectors:[["app-size2d"]],viewQuery:function(e,n){if(1&e&&un(uAe,5),2&e){let r;pt(r=ft())&&(n.nameInput=r.first)}},features:[st],decls:6,vars:11,consts:[[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],["class","input-group",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],[1,"input-group"],[1,"input-group-text"],["type","number",1,"form-control",2,"text-align","right",3,"name","id","ngModel","disabled","placeholder","ngModelChange","change","input","focus","blur"],["data-toggle","modal","class","input-group-text","style","cursor:pointer;color:#A0A0A0",4,"ngIf"],["data-toggle","modal",1,"input-group-text",2,"cursor","pointer","color","#A0A0A0"],["aria-hidden","true",1,"fa","fa-question"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1),H(2,"app-form-field-label",2),c()(),w(3,pAe,8,15,"div",3),H(4,"app-form-field-validation-section",4)(5,"app-form-field-help",5)),2&e&&(h(2),p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(1),p("ngIf",!0),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Bn,Rs,vn,pn,ct,Wn,qn,Gn]})}const fAe=["pickerTemplate"];function gAe(i,t){if(1&i){const e=pe();u(0,"i",8),N("click",function(){return R(e),L(g().pickIcon())}),c()}}function mAe(i,t){if(1&i){const e=pe();u(0,"i",9),N("click",function(){return R(e),L(g().pickIcon())}),c()}2&i&&gl("",g().field.value," action")}function _Ae(i,t){if(1&i){const e=pe();u(0,"i",10),N("click",function(){return R(e),L(g().clearIcon())}),c()}}function vAe(i,t){1&i&&H(0,"i",22)}function yAe(i,t){if(1&i){const e=pe();u(0,"div",19),N("click",function(){const o=R(e).$implicit;return L(g(4).visibleSection=o)}),w(1,vAe,1,0,"i",20),u(2,"span",21),m(3),c()()}if(2&i){const e=t.$implicit,n=g(4);h(1),p("ngIf",n.visibleSection!=e),h(2),Re(n.camelCase(e))}}function bAe(i,t){if(1&i){const e=pe();u(0,"div",15)(1,"h4")(2,"i",16),N("click",function(){return R(e),L(g(3).visibleSection=void 0)}),c(),m(3,"Icon Categories"),c(),H(4,"hr"),u(5,"div",17),w(6,yAe,4,2,"div",18),c()()}if(2&i){const e=g(3);h(6),p("ngForOf",e.categories)}}function CAe(i,t){if(1&i){const e=pe();u(0,"div",25),N("click",function(){const o=R(e).$implicit;return L(g(5).selectIcon(o))}),u(1,"div",26),H(2,"i",27),c(),u(3,"div",28),m(4),c()()}if(2&i){const e=t.$implicit;h(2),gl("fa fa-",e,""),h(2),Ke("fa fa-",e,"")}}function wAe(i,t){if(1&i){const e=pe();u(0,"div")(1,"h4")(2,"i",16),N("click",function(){return R(e),L(g(4).visibleSection=void 0)}),c(),m(3),c(),H(4,"hr"),u(5,"div",15),w(6,CAe,5,4,"div",24),c()()}if(2&i){const e=g().$implicit,n=g(3);h(3),Re(n.camelCase(e)),h(3),p("ngForOf",n.icons[e].icons)}}function DAe(i,t){if(1&i&&(u(0,"div"),w(1,wAe,7,2,"div",23),c()),2&i){const e=t.$implicit,n=g(3);h(1),p("ngIf",n.visibleSection==e)}}function MAe(i,t){if(1&i&&(u(0,"div",12),w(1,bAe,7,1,"div",13),w(2,DAe,2,1,"div",14),c()),2&i){const e=g(2);h(1),p("ngIf",!e.visibleSection),h(1),p("ngForOf",e.categories)}}function xAe(i,t){1&i&&w(0,MAe,3,2,"div",11),2&i&&p("ngIf",g().icons)}class b2 extends ln{modalService;uiService;pickerModal;currentModal;categories;icons;visibleSection;constructor(t,e){super(),this.modalService=t,this.uiService=e}ngOnInit(){var t=()=>super.ngOnInit,e=this;return z(function*(){yield t().call(e),$.getJSON("https://nuviot.blob.core.windows.net/cdn/faicons.json",n=>{e.icons=n,e.categories=[];for(let r in e.icons)e.categories.push(r)})})()}camelCase(t){return t.substring(0,1).toUpperCase()+t.substring(1)}pickIcon(){this.currentModal=this.modalService.open(this.pickerModal,{size:"lg"})}selectIcon(t){this.field.value=`fa fa-${t}`,this.currentModal.close()}clearIcon(){this.field.value=void 0}static \u0275fac=function(e){return new(e||b2)(U(zn),U(Yd))};static \u0275cmp=Be({type:b2,selectors:[["app-font-awesome-icon-picker"]],viewQuery:function(e,n){if(1&e&&un(fAe,5),2&e){let r;pt(r=ft())&&(n.pickerModal=r.first)}},features:[st],decls:8,vars:13,consts:[[3,"name","label","isRequired"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],["class","fa fa-pencil action",3,"click",4,"ngIf"],["style","font-size:24px",3,"class","click",4,"ngIf"],["class","fa fa-trash action-danger",3,"click",4,"ngIf"],[3,"field"],["class","modal","id","pickerTemplate"],["pickerTemplate",""],[1,"fa","fa-pencil","action",3,"click"],[2,"font-size","24px",3,"click"],[1,"fa","fa-trash","action-danger",3,"click"],["style","margin:20px",4,"ngIf"],[2,"margin","20px"],["style","display:flex;flex-flow:row wrap;gap:10px;",4,"ngIf"],[4,"ngFor","ngForOf"],[2,"display","flex","flex-flow","row wrap","gap","10px"],[1,"fa","fa-chevron-left","action",3,"click"],[2,"display","flex","flex-flow","row wrap","gap","10px","margin","20px"],["class","icon-category action",3,"click",4,"ngFor","ngForOf"],[1,"icon-category","action",3,"click"],["class","fa fa-chevron-down",4,"ngIf"],[2,"margin-left","10px"],[1,"fa","fa-chevron-down"],[4,"ngIf"],["class","icon-block",3,"click",4,"ngFor","ngForOf"],[1,"icon-block",3,"click"],[1,"icon-preview"],[2,"display","block"],[1,"icon-label"]],template:function(e,n){1&e&&(H(0,"app-form-field-label",0)(1,"app-form-field-validation-section",1),w(2,gAe,1,0,"i",2),w(3,mAe,1,3,"i",3),w(4,_Ae,1,0,"i",4),H(5,"app-form-field-help",5),w(6,xAe,1,1,"ng-template",6,7,Vo)),2&e&&(p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("ngIf",!n.field.value),h(1),p("ngIf",n.field.value),h(1),p("ngIf",n.field.value&&!n.field.isRequired),h(1),p("field",n.field))},dependencies:[jt,ct,Wn,qn,Gn],styles:[".icon-block[_ngcontent-%COMP%]{border:1px solid silver;border-radius:4px;padding:3px;background-color:#f0f0f0;color:#666}.icon-block[_ngcontent-%COMP%]:hover{background-color:#fff;color:#000;cursor:pointer}.icon-label[_ngcontent-%COMP%]{text-wrap:nowrap}.icon-preview[_ngcontent-%COMP%]{text-align:center}.icon-preview[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:24px}.icon-category[_ngcontent-%COMP%]{border:1px solid silver;border-radius:4px;padding:5px;background-color:#f0f0f0}.icon-category[_ngcontent-%COMP%]:hover{background-color:#d3d3de;cursor:pointer}"]})}function kAe(i,t){if(1&i&&(u(0,"div",2),H(1,"app-form-field",3),c()),2&i){const e=t.$implicit,n=g();h(1),p("host",n.host)("form",n.form)("field",e)("model",n.model)("view",n.view)}}class Kv extends ln{modalService;fields;constructor(t){super(),this.modalService=t}ngOnInit(){super.ngOnInit()}static \u0275fac=function(e){return new(e||Kv)(U(zn))};static \u0275cmp=Be({type:Kv,selectors:[["app-component-row-field"]],inputs:{fields:"fields"},features:[st],decls:2,vars:1,consts:[[2,"display","flex"],["style","flex-grow:1; padding-right:10px",4,"ngFor","ngForOf"],[2,"flex-grow","1","padding-right","10px"],[3,"host","form","field","model","view"]],template:function(e,n){1&e&&(u(0,"div",0),w(1,kAe,2,5,"div",1),c()),2&e&&(h(1),p("ngForOf",n.fields))}})}function TAe(i,t){if(1&i){const e=pe();u(0,"div",0)(1,"label",6),m(2),c(),u(3,"input",10),N("ngModelChange",function(r){return L(R(e).$implicit.x=r)}),c(),u(4,"input",11),N("ngModelChange",function(r){return L(R(e).$implicit.y=r)}),c(),u(5,"i",12),N("click",function(){const o=R(e).$implicit;return L(g().insertAfter(o))}),c(),u(6,"i",13),N("click",function(){const o=R(e).$implicit;return L(g().insertBefore(o))}),c(),u(7,"i",14),N("click",function(){const o=R(e).$implicit;return L(g().moveUp(o))}),c(),u(8,"i",15),N("click",function(){const o=R(e).$implicit;return L(g().moveDown(o))}),c(),u(9,"i",16),N("click",function(){const o=R(e).$implicit;return L(g().remove(o))}),c()()}if(2&i){const e=t.$implicit,n=t.index;h(2),Ke("",n+1,"."),h(1),p("ngModel",e.x),h(1),p("ngModel",e.y)}}class C2 extends ln{isEditing=!1;constructor(){super()}ngOnInit(){super.ngOnInit(),this.points=this.field.value}points=[];addPoint(){this.points.push({x:0,y:0})}insertBefore(t){}insertAfter(t){}moveUp(t){}moveDown(t){}remove(t){const e=this.points.indexOf(t);e>=0&&this.points.splice(e,1)}static \u0275fac=function(e){return new(e||C2)};static \u0275cmp=Be({type:C2,selectors:[["app-point2d-array"]],features:[st],decls:16,vars:4,consts:[[2,"display","flex"],[2,"flex-grow","1"],[3,"name","label","isRequired"],[2,"text-align","right","width","350px"],[1,"action",3,"click"],[1,"fa","fa-plus"],[2,"display","inline-block","text-align","right","margin-right","15px","width","30px","margin-top","5px"],[2,"width","100px","display","block","text-align","center"],[2,"width","10px"],["style","display: flex",4,"ngFor","ngForOf"],[1,"form-control",2,"width","100px","display","block-inline","margin-right","10px",3,"ngModel","ngModelChange"],[1,"form-control",2,"width","100px","display","block-inline",3,"ngModel","ngModelChange"],["title","insert after",1,"action","fa","fa-down-to-line",2,"width","20px",3,"click"],["title","insert before",1,"action","fa","fa-up-to-line",2,"width","20px",3,"click"],["title","move up",1,"action","fa","fa-chevron-up",2,"width","20px",3,"click"],["title","move down",1,"action","fa","fa-chevron-down",2,"width","20px",3,"click"],["title","remove",1,"action-danger","fa","fa-trash",2,"width","20px",3,"click"]],template:function(e,n){1&e&&(u(0,"div",0)(1,"div",1),H(2,"app-form-field-label",2),c()(),u(3,"div")(4,"div",3)(5,"span",4),N("click",function(){return n.addPoint()}),H(6,"i",5),m(7,"Add"),c()(),u(8,"div",0),H(9,"label",6),u(10,"label",7),m(11,"X"),c(),H(12,"label",8),u(13,"label",7),m(14,"Y"),c()(),w(15,TAe,10,3,"div",9),c()),2&e&&(h(2),p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(13),p("ngForOf",n.points))},dependencies:[Bn,vn,pn,jt,qn]})}function SAe(i,t){1&i&&(u(0,"span",7),H(1,"i",8),c()),2&i&&mt("data-target",g().popupId)}class w2 extends ln{constructor(){super()}ngOnInit(){super.ngOnInit()}static \u0275fac=function(e){return new(e||w2)};static \u0275cmp=Be({type:w2,selectors:[["app-percent"]],features:[st],decls:8,vars:18,consts:[[3,"name","label","isRequired"],[1,"input-group"],["type","number","inputmode","numeric",1,"form-control",2,"text-align","right",3,"name","id","ngModel","disabled","placeholder","ngModelChange","change","input","focus","blur"],[1,"input-group-text"],["data-toggle","modal","class","input-group-text","style","cursor:pointer;color:#A0A0A0",4,"ngIf"],[3,"isRequired","hasValue","isRegexInvalid","requiredMessage","regExMessage","showValidationErrors"],[3,"field"],["data-toggle","modal",1,"input-group-text",2,"cursor","pointer","color","#A0A0A0"],["aria-hidden","true",1,"fa","fa-question"]],template:function(e,n){1&e&&(H(0,"app-form-field-label",0),u(1,"div",1)(2,"input",2),N("ngModelChange",function(o){return n.field.value=o})("change",function(o){return n.changed(o)})("input",function(o){return n.textChanged(o)})("focus",function(o){return n.onFocus(o)})("blur",function(o){return n.onBlur(o)}),c(),u(3,"span",3),m(4,"%"),c(),w(5,SAe,2,1,"span",4),c(),H(6,"app-form-field-validation-section",5)(7,"app-form-field-help",6)),2&e&&(p("name",n.field.name)("label",n.field.label)("isRequired",n.field.isRequired),h(2),Mn("background-color",n.field.isUserEditable?"white":"#EEEEEE"),gt("name",n.field.name),gt("id",n.field.name),gt("placeholder",n.field.watermark),p("ngModel",n.field.value)("disabled",!n.field.isUserEditable),h(3),p("ngIf",n.field.help),h(1),p("isRequired",n.field.isRequired)("hasValue",n.hasValue)("isRegexInvalid",n.isRegexInvalid)("requiredMessage",n.field.requiredMessage)("regExMessage",n.regExMessage)("showValidationErrors",n.showValidationErrors),h(1),p("field",n.field))},dependencies:[Bn,Rs,vn,pn,ct,Wn,qn,Gn]})}function EAe(i,t){if(1&i&&H(0,"app-text-area",11),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("view",e.view)("form",e.form)}}function AAe(i,t){if(1&i&&H(0,"app-text-area",11),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("view",e.view)("form",e.form)}}function IAe(i,t){if(1&i&&H(0,"app-picker",11),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("view",e.view)("form",e.form)}}function FAe(i,t){if(1&i&&H(0,"app-picker",11),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("view",e.view)("form",e.form)}}function PAe(i,t){if(1&i&&H(0,"app-date-picker",11),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("view",e.view)("form",e.form)}}function RAe(i,t){if(1&i&&H(0,"app-time-picker",11),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("view",e.view)("form",e.form)}}function LAe(i,t){if(1&i&&H(0,"app-date-picker",11),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("view",e.view)("form",e.form)}}function OAe(i,t){if(1&i&&H(0,"app-form-icon-picker",11),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("view",e.view)("form",e.form)}}function NAe(i,t){if(1&i&&H(0,"app-checkbox",11),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("view",e.view)("form",e.form)}}function BAe(i,t){if(1&i&&H(0,"app-file-upload",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function VAe(i,t){if(1&i&&H(0,"app-file-upload",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function HAe(i,t){if(1&i&&H(0,"app-color-picker",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function YAe(i,t){if(1&i&&H(0,"app-entity-header-picker",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function UAe(i,t){if(1&i&&H(0,"app-entity-header-picker",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function jAe(i,t){if(1&i&&H(0,"app-product-picker-list",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function $Ae(i,t){if(1&i&&H(0,"app-customer-picker-field",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function zAe(i,t){if(1&i&&H(0,"app-customer-picker-field",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function WAe(i,t){if(1&i&&H(0,"app-discussion-list",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function GAe(i,t){if(1&i&&H(0,"app-child-list",13),2&i){const e=g(2);p("field",e.field)("host",e.host)("model",e.model)("form",e.form)("view",e.view)}}function qAe(i,t){if(1&i&&H(0,"app-child-list-inline",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function KAe(i,t){if(1&i&&H(0,"app-child-list-inline",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function ZAe(i,t){if(1&i&&H(0,"app-child-list-inline",14),2&i){const e=g(2);p("host",e.host)("field",e.field)("form",e.form)("model",e.model)("view",e.view)}}function QAe(i,t){if(1&i&&H(0,"app-script",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function XAe(i,t){if(1&i&&H(0,"app-script",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function JAe(i,t){if(1&i&&H(0,"app-password-field",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function eIe(i,t){if(1&i&&H(0,"app-password-field",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function tIe(i,t){if(1&i&&H(0,"app-password-field",12),2&i){const e=g(2);p("host",e.host)("field",e.field)("model",e.model)("form",e.form)("view",e.view)}}function nIe(i,t){if(1&i&&H(0,"app-user-picker-field",14),2&i){const e=g(2);p("host",e.host)("field",e.field)("form",e.form)("model",e.model)("view",e.view)}}function iIe(i,t){if(1&i&&H(0,"app-web-link-field",14),2&i){const e=g(2);p("host",e.host)("field",e.field)("form",e.form)("model",e.model)("view",e.view)}}function rIe(i,t){if(1&i&&H(0,"app-action-field",14),2&i){const e=g(2);p("host",e.host)("field",e.field)("form",e.form)("form",e.form)("model",e.model)("view",e.view)}}function oIe(i,t){if(1&i&&H(0,"app-html-editor",14),2&i){const e=g(2);p("host",e.host)("field",e.field)("form",e.form)("model",e.model)("view",e.view)}}function aIe(i,t){if(1&i&&H(0,"app-category-field",14),2&i){const e=g(2);p("host",e.host)("field",e.field)("form",e.form)("model",e.model)("view",e.view)}}function sIe(i,t){if(1&i&&H(0,"app-money-editor",14),2&i){const e=g(2);p("host",e.host)("field",e.field)("form",e.form)("model",e.model)("view",e.view)}}function lIe(i,t){if(1&i&&H(0,"app-phone-field",14),2&i){const e=g(2);p("host",e.host)("field",e.field)("form",e.form)("model",e.model)("view",e.view)}}function cIe(i,t){if(1&i&&H(0,"app-payment-method",15),2&i){const e=g(2);p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function dIe(i,t){if(1&i&&H(0,"app-device-picker-field",15),2&i){const e=g(2);p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function uIe(i,t){if(1&i&&H(0,"app-geo-location-field",15),2&i){const e=g(2);p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function hIe(i,t){if(1&i&&H(0,"app-org-location-picker",16),2&i){const e=g(2);p("form",e.form)("host",e.host)("field",e.field)("model",e.model)("view",e.view)}}function pIe(i,t){if(1&i&&H(0,"app-schedule",15),2&i){const e=g(2);p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function fIe(i,t){if(1&i&&H(0,"app-media-resources-field",16),2&i){const e=g(2);p("form",e.form)("host",e.host)("field",e.field)("model",e.model)("view",e.view)}}function gIe(i,t){if(1&i&&H(0,"app-custom-field",17),2&i){const e=g(2);p("form",e.form)("field",e.field)("customFieldType",e.field.customFieldType)("host",e.host)("field",e.field)("model",e.model)("view",e.view)}}function mIe(i,t){if(1&i&&H(0,"app-percent",15),2&i){const e=g(2);p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function _Ie(i,t){if(1&i&&H(0,"app-text-box",15),2&i){const e=g(2);p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function vIe(i,t){if(1&i&&H(0,"app-point2d",15),2&i){const e=g(2);p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function yIe(i,t){if(1&i&&H(0,"app-size2d",15),2&i){const e=g(2);p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function bIe(i,t){if(1&i&&H(0,"app-point3d",15),2&i){const e=g(2);p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function CIe(i,t){if(1&i&&H(0,"app-size3d",15),2&i){const e=g(2);p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function wIe(i,t){if(1&i&&H(0,"app-font-awesome-icon-picker",15),2&i){const e=g(2);p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function DIe(i,t){if(1&i&&H(0,"app-component-row-field",18),2&i){const e=g(2);p("host",e.host)("form",e.form)("fields",e.field.childFields)("field",e.field)("model",e.model)("view",e.view)}}function MIe(i,t){if(1&i&&H(0,"app-point2d-array",15),2&i){const e=g(2);p("host",e.host)("form",e.form)("field",e.field)("model",e.model)("view",e.view)}}function xIe(i,t){if(1&i&&(u(0,"div",1),w(1,EAe,1,5,"app-text-area",2),w(2,AAe,1,5,"app-text-area",2),w(3,IAe,1,5,"app-picker",2),w(4,FAe,1,5,"app-picker",2),w(5,PAe,1,5,"app-date-picker",2),w(6,RAe,1,5,"app-time-picker",2),w(7,LAe,1,5,"app-date-picker",2),w(8,OAe,1,5,"app-form-icon-picker",2),w(9,NAe,1,5,"app-checkbox",2),w(10,BAe,1,5,"app-file-upload",3),w(11,VAe,1,5,"app-file-upload",3),w(12,HAe,1,5,"app-color-picker",3),w(13,YAe,1,5,"app-entity-header-picker",3),w(14,UAe,1,5,"app-entity-header-picker",3),w(15,jAe,1,5,"app-product-picker-list",3),w(16,$Ae,1,5,"app-customer-picker-field",3),w(17,zAe,1,5,"app-customer-picker-field",3),w(18,WAe,1,5,"app-discussion-list",3),w(19,GAe,1,5,"app-child-list",4),w(20,qAe,1,5,"app-child-list-inline",3),w(21,KAe,1,5,"app-child-list-inline",3),w(22,ZAe,1,5,"app-child-list-inline",5),w(23,QAe,1,5,"app-script",3),w(24,XAe,1,5,"app-script",3),w(25,JAe,1,5,"app-password-field",3),w(26,eIe,1,5,"app-password-field",3),w(27,tIe,1,5,"app-password-field",3),w(28,nIe,1,5,"app-user-picker-field",5),w(29,iIe,1,5,"app-web-link-field",5),w(30,rIe,1,6,"app-action-field",5),w(31,oIe,1,5,"app-html-editor",5),w(32,aIe,1,5,"app-category-field",5),w(33,sIe,1,5,"app-money-editor",5),w(34,lIe,1,5,"app-phone-field",5),w(35,cIe,1,5,"app-payment-method",6),w(36,dIe,1,5,"app-device-picker-field",6),w(37,uIe,1,5,"app-geo-location-field",6),w(38,hIe,1,5,"app-org-location-picker",7),w(39,pIe,1,5,"app-schedule",6),w(40,fIe,1,5,"app-media-resources-field",7),w(41,gIe,1,7,"app-custom-field",8),w(42,mIe,1,5,"app-percent",6),w(43,_Ie,1,5,"app-text-box",9),w(44,vIe,1,5,"app-point2d",6),w(45,yIe,1,5,"app-size2d",6),w(46,bIe,1,5,"app-point3d",6),w(47,CIe,1,5,"app-size3d",6),w(48,wIe,1,5,"app-font-awesome-icon-picker",6),w(49,DIe,1,6,"app-component-row-field",10),w(50,MIe,1,5,"app-point2d-array",6),c()),2&i){const e=g();p("ngSwitch",null==e.field?null:e.field.fieldType),h(1),p("ngSwitchCase","MultiLineText"),h(1),p("ngSwitchCase","MultiLineTextAreaFixedFont"),h(1),p("ngSwitchCase","Picker"),h(1),p("ngSwitchCase","OptionsList"),h(1),p("ngSwitchCase","Date"),h(1),p("ngSwitchCase","Time"),h(1),p("ngSwitchCase","DateTime"),h(1),p("ngSwitchCase","Icon"),h(1),p("ngSwitchCase","CheckBox"),h(1),p("ngSwitchCase","FileUpload"),h(1),p("ngSwitchCase","MediaResourceUpload"),h(1),p("ngSwitchCase","Color"),h(1),p("ngSwitchCase","EntityHeaderPicker"),h(1),p("ngSwitchCase","ProductPicker"),h(1),p("ngSwitchCase","ProductPickerList"),h(1),p("ngSwitchCase","CustomerPicker"),h(1),p("ngSwitchCase","ContactPicker"),h(1),p("ngSwitchCase","Discussion"),h(1),p("ngSwitchCase","ChildList"),h(1),p("ngSwitchCase","ChildListInline"),h(1),p("ngSwitchCase","ChildListInlinePicker"),h(1),p("ngSwitchCase","ChildListSiteContentPicker"),h(1),p("ngSwitchCase","NodeScript"),h(1),p("ngSwitchCase","RawHtml"),h(1),p("ngSwitchCase","Password"),h(1),p("ngSwitchCase","Secret"),h(1),p("ngSwitchCase","SecureCertificate"),h(1),p("ngSwitchCase","UserPicker"),h(1),p("ngSwitchCase","WebLink"),h(1),p("ngSwitchCase","Action"),h(1),p("ngSwitchCase","HtmlEditor"),h(1),p("ngSwitchCase","Category"),h(1),p("ngSwitchCase","Money"),h(1),p("ngSwitchCase","Phone"),h(1),p("ngSwitchCase","PaymentMethod"),h(1),p("ngSwitchCase","DevicePicker"),h(1),p("ngSwitchCase","GeoLocation"),h(1),p("ngSwitchCase","OrgLocationPicker"),h(1),p("ngSwitchCase","Schedule"),h(1),p("ngSwitchCase","MediaResources"),h(1),p("ngSwitchCase","Custom"),h(1),p("ngSwitchCase","Percent"),h(2),p("ngSwitchCase","Point2D"),h(1),p("ngSwitchCase","Point2DSize"),h(1),p("ngSwitchCase","Point3D"),h(1),p("ngSwitchCase","Point3DSize"),h(1),p("ngSwitchCase","FontAwesomeIconPicker"),h(1),p("ngSwitchCase","ComponentRow"),h(1),p("ngSwitchCase","Point2DArray")}}class lg{form;field;model;view;host;constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||lg)};static \u0275cmp=Be({type:lg,selectors:[["app-form-field"]],inputs:{form:"form",field:"field",model:"model",view:"view",host:"host"},decls:1,vars:1,consts:[["class","form-group","style","margin-bottom:15px",3,"ngSwitch",4,"ngIf"],[1,"form-group",2,"margin-bottom","15px",3,"ngSwitch"],[3,"host","field","model","view","form",4,"ngSwitchCase"],[3,"host","field","model","form","view",4,"ngSwitchCase"],[3,"field","host","model","form","view",4,"ngSwitchCase"],[3,"host","field","form","model","view",4,"ngSwitchCase"],[3,"host","form","field","model","view",4,"ngSwitchCase"],[3,"form","host","field","model","view",4,"ngSwitchCase"],[3,"form","field","customFieldType","host","model","view",4,"ngSwitchCase"],[3,"host","form","field","model","view",4,"ngSwitchDefault"],[3,"host","form","fields","field","model","view",4,"ngSwitchCase"],[3,"host","field","model","view","form"],[3,"host","field","model","form","view"],[3,"field","host","model","form","view"],[3,"host","field","form","model","view"],[3,"host","form","field","model","view"],[3,"form","host","field","model","view"],[3,"form","field","customFieldType","host","model","view"],[3,"host","form","fields","field","model","view"]],template:function(e,n){1&e&&w(0,xIe,51,50,"div",0),2&e&&p("ngIf",null==n.field?null:n.field.isVisible)},dependencies:[ct,dc,Fu,Y0,bC,CC,SC,AC,LC,NC,BC,YC,UC,jC,zC,WC,qC,KC,ZC,QC,XC,JC,ow,aw,sw,cw,_w,vw,yw,bw,Cw,d2,h2,p2,g2,m2,_2,v2,y2,b2,Kv,C2,w2]})}class Zv{static \u0275fac=function(e){return new(e||Zv)};static \u0275mod=Dt({type:Zv});static \u0275inj=wt({imports:[bd,ki,$S,Lf,J6,PV,nV,xC,z8,uV,lC,ev,Rf]})}function kIe(i,t){}du(Al,[Zi,jt,ct,As,rh,oh,lg,dC,cC],[ah]),du(Kv,[jt,lg],[]);class D2{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let l9=(()=>{class i extends gS{constructor(e,n,r,o,a,s,l,d){super(),this._elementRef=e,this._focusTrapFactory=n,this._config=o,this._interactivityChecker=a,this._ngZone=s,this._overlayRef=l,this._focusMonitor=d,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=f=>{this._portalOutlet.hasAttached();const y=this._portalOutlet.attachDomPortal(f);return this._contentAttached(),y},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(n)}_focusByCssSelector(e,n){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,n)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(n=>{n||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let n=null;if("string"==typeof e?n=this._document.querySelector(e):"boolean"==typeof e?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&"function"==typeof n.focus){const r=m_(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,n=m_();return e===n||e.contains(n)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=m_())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(fb),U(Wt,8),U(D2),U(pb),U(Bt),U(tv),U(Id))},i.\u0275cmp=Be({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(e,n){if(1&e&&un(Fd,7),2&e){let r;pt(r=ft())&&(n._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,n){2&e&&mt("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null)},features:[st],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,n){1&e&&w(0,kIe,0,0,"ng-template",0)},dependencies:[Fd],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),i})();class IA{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new be,this.disableClose=e.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{27===n.keyCode&&!this.disableClose&&!Ad(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(t,e){if(this.containerInstance){const n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),n.next(t),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",e=""){return this.overlayRef.updateSize({width:t,height:e}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}}const c9=new nt("DialogScrollStrategy"),TIe=new nt("DialogData"),SIe=new nt("DefaultDialogConfig"),AIe={provide:c9,deps:[El],useFactory:function EIe(i){return()=>i.scrollStrategies.block()}};let IIe=0,d9=(()=>{class i{constructor(e,n,r,o,a,s){this._overlay=e,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new be,this._afterOpenedAtThisLevel=new be,this._ariaHiddenElements=new Map,this.afterAllClosed=Nm(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cr(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,n){(n={...this._defaultOptions||new D2,...n}).id=n.id||"cdk-dialog-"+IIe++,n.id&&this.getDialogById(n.id);const o=this._getOverlayConfig(n),a=this._overlay.create(o),s=new IA(a,n),l=this._attachContainer(a,s,n);return s.containerInstance=l,this._attachDialogContent(e,s,l,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){FA(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){FA(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),FA(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const n=new wC({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,r){const o=r.injector||r.viewContainerRef?.injector,a=[{provide:D2,useValue:r},{provide:IA,useValue:n},{provide:tv,useValue:e}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=l9;const l=new y_(s,r.viewContainerRef,Li.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,n,r,o){if(e instanceof Ui){const a=this._createInjector(o,n,r,void 0);let s={$implicit:o.data,dialogRef:n};o.templateContext&&(s={...s,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new vb(e,null,s,a))}else{const a=this._createInjector(o,n,r,this._injector),s=r.attachComponentPortal(new y_(e,o.viewContainerRef,a,o.componentFactoryResolver));n.componentInstance=s.instance}}_createInjector(e,n,r,o){const a=e.injector||e.viewContainerRef?.injector,s=[{provide:TIe,useValue:e.data},{provide:IA,useValue:n}];return e.providers&&("function"==typeof e.providers?s.push(...e.providers(n,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(Do,null,rn.Optional))&&s.push({provide:Do,useValue:{value:e.direction,change:At()}}),Li.create({parent:a||o,providers:s})}_removeOpenDialog(e,n){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const n=e.parentElement.children;for(let r=n.length-1;r>-1;r--){const o=n[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return i.\u0275fac=function(e){return new(e||i)(Ee(El),Ee(Li),Ee(SIe,8),Ee(i,12),Ee(DC),Ee(c9))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();function FA(i,t){let e=i.length;for(;e--;)t(i[e])}let FIe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[d9,AIe],imports:[MC,bf,pS,bf]}),i})();function PIe(i,t){}const cg={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},RIe={dialogContainer:Pd("dialogContainer",[Ja("void, exit",Ni({opacity:0,transform:"scale(0.7)"})),Ja("enter",Ni({transform:"none"})),$o("* => enter",D6([jo("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ni({transform:"none",opacity:1})),T6("@*",k6(),{optional:!0})]),cg),$o("* => void, * => exit",D6([jo("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ni({opacity:0})),T6("@*",k6(),{optional:!0})]),cg)])};class M2{constructor(){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.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=cg.params.enterAnimationDuration,this.exitAnimationDuration=cg.params.exitAnimationDuration}}let LIe=(()=>{class i extends l9{constructor(e,n,r,o,a,s,l,d){super(e,n,r,o,a,s,l,d),this._animationStateChanged=new Ae}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(fb),U(Wt,8),U(M2),U(pb),U(Bt),U(tv),U(Id))},i.\u0275cmp=Be({type:i,selectors:[["ng-component"]],features:[st],decls:0,vars:0,template:function(e,n){},encapsulation:2}),i})(),OIe=(()=>{class i extends LIe{constructor(e,n,r,o,a,s,l,d,f){super(e,n,r,o,a,s,l,f),this._changeDetectorRef=d,this._state="enter"}_onAnimationDone({toState:e,totalTime:n}){"enter"===e?this._openAnimationDone(n):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:n})}_onAnimationStart({toState:e,totalTime:n}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:n}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:n})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||cg.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||cg.params.exitAnimationDuration}}}}return i.\u0275fac=function(e){return new(e||i)(U(Pt),U(fb),U(Wt,8),U(M2),U(pb),U(Bt),U(tv),U(ui),U(Id))},i.\u0275cmp=Be({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,n){1&e&&h0("@dialogContainer.start",function(o){return n._onAnimationStart(o)})("@dialogContainer.done",function(o){return n._onAnimationDone(o)}),2&e&&(ml("id",n._config.id),mt("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),g0("@dialogContainer",n._getAnimationState()))},features:[st],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,n){1&e&&w(0,PIe,0,0,"ng-template",0)},dependencies:[Fd],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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[RIe.dialogContainer]}}),i})();class NIe{constructor(t,e,n){this._ref=t,this._containerInstance=n,this._afterOpened=new be,this._beforeClosed=new be,this._state=0,this.disableClose=e.disableClose,this.id=t.id,n._animationStateChanged.pipe(Oi(r=>"opened"===r.state),Xn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Oi(r=>"closed"===r.state),Xn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),jr(this.backdropClick(),this.keydownEvents().pipe(Oi(r=>27===r.keyCode&&!this.disableClose&&!Ad(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function BIe(i,t,e){i._closeInteractionType=t,i.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Oi(e=>"closing"===e.state),Xn(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let e=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",e=""){return this._ref.updateSize(t,e),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const VIe=new nt("MatDialogData"),HIe=new nt("mat-dialog-default-options"),u9=new nt("mat-dialog-scroll-strategy"),UIe={provide:u9,deps:[El],useFactory:function YIe(i){return()=>i.scrollStrategies.block()}};let jIe=0,$Ie=(()=>{class i{constructor(e,n,r,o,a,s,l,d,f,y){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=d,this._dialogDataToken=f,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new be,this._afterOpenedAtThisLevel=new be,this._idPrefix="mat-dialog-",this.afterAllClosed=Nm(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(cr(void 0))),this._scrollStrategy=s,this._dialog=n.get(d9)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,n){let r;(n={...this._defaultOptions||new M2,...n}).id=n.id||`${this._idPrefix}${jIe++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...n,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:M2,useValue:n},{provide:D2,useValue:n}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>(r=new this._dialogRefConstructor(a,n,l),r.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}}return i.\u0275fac=function(e){kp()},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})(),zIe=(()=>{class i extends $Ie{constructor(e,n,r,o,a,s,l,d){super(e,n,o,s,l,a,NIe,OIe,VIe,d)}}return i.\u0275fac=function(e){return new(e||i)(Ee(El),Ee(Li),Ee(pd,8),Ee(HIe,8),Ee(u9),Ee(i,12),Ee(DC),Ee(oa,8))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})(),WIe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[zIe,UIe],imports:[FIe,MC,bf,_r,_r]}),i})(),h9=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({}),i})(),oFe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[h9,bb,_r,hb,h9,_r]}),i})();class Qv{static forRoot(t={}){return{ngModule:Qv,providers:[{provide:aE,useValue:t}]}}static \u0275fac=function(e){return new(e||Qv)};static \u0275mod=Dt({type:Qv});static \u0275inj=wt({imports:[ki]})}function aFe(i,t){if(1&i){const e=pe();u(0,"span",8),N("click",function(){return R(e),L(g().cancelClick())}),H(1,"i",9),m(2," Cancel "),c()}}function sFe(i,t){if(1&i){const e=pe();u(0,"span",10),N("click",function(){return R(e),L(g().addClick())}),H(1,"i",11),m(2," Add "),c()}}function lFe(i,t){if(1&i){const e=pe();u(0,"i",18),N("click",function(r){R(e);const o=g().$implicit;return g().moveDownClick(o),L(r.stopPropagation())}),c()}}function cFe(i,t){if(1&i){const e=pe();u(0,"i",19),N("click",function(r){R(e);const o=g().$implicit;return g().moveUpClick(o),L(r.stopPropagation())}),c()}}function dFe(i,t){1&i&&(u(0,"i",20),m(1,"\xa0\xa0\xa0"),c())}function uFe(i,t){if(1&i){const e=pe();u(0,"i",21),N("click",function(r){R(e);const o=g().$implicit;return g().removeClick(o),L(r.stopPropagation())}),c()}}function hFe(i,t){if(1&i){const e=pe();u(0,"li",8),N("click",function(){const o=R(e).$implicit;return L(g().editClick(o))}),u(1,"div",12),m(2),c(),u(3,"div",13),w(4,lFe,1,0,"i",14),w(5,cFe,1,0,"i",15),w(6,dFe,2,0,"i",16),w(7,uFe,1,0,"i",17),c()()}if(2&i){const e=t.$implicit,n=t.index,r=g();h(2),Ke(" ",e[r.displayMemberName]," "),h(2),p("ngIf",r.allowReorder&&r.items.length-1>n),h(1),p("ngIf",r.allowReorder&&n>0),h(1),p("ngIf",r.allowReorder&&0==n),h(1),p("ngIf",r.showRemove)}}class x2{modalComponent;client;constructor(t,e){this.modalComponent=t,this.client=e}title;displayMemberName="name";showCancel=!1;showAdd=!0;showRemove=!1;allowReorder=!1;_items;get items(){return this._items}set items(t){t&&(this._items=t)}_listResponse;set listResponse(t){this._listResponse=t,t&&(this.items=t.model,t.title&&(this.title=t.title))}get listResponse(){return this._listResponse}add=new Ae;cancel=new Ae;selected=new Ae;remove=new Ae;_blade;set blade(t){this._blade=t,t&&(this.listResponse=t.list,this.items=t.items)}get blade(){return this._blade}ngOnInit(){}addClick(){this.add.emit()}editClick(t){this.selected.emit(t)}cancelClick(){this.cancel.emit()}removeClick(t){var e=this;const n=this.modalComponent.open(xl,{size:"lg"}).componentInstance;n.title="Are you sure?",n.content="This item will be PERMANENTLY deleted.",n.contentIsHtml=!0,n.confirmButtonText="Proceed",n.confirmationMessage="Click 'Proceed' to delete this item.",n.isPermanent=!1,n.confirmationResult.subscribe(function(){var r=z(function*(o){if(o)if(e._listResponse?.deleteUrl){let a=e._listResponse?.deleteUrl.replace("{id}",t.id);(yield e.client.delete(a))&&e.items.splice(e.items.indexOf(t),1)}else e.items.splice(e.items.indexOf(t),1),e.remove.emit(t)});return function(o){return r.apply(this,arguments)}}())}showAddTip(t){}moveUpClick(t){let e=this.items.indexOf(t);e>0&&(this.items[e]=this.items[e-1],this.items[e-1]=t)}moveDownClick(t){let e=this.items.indexOf(t);e({id:a.id,key:a.key||void 0,text:a.name}))||[];r.executePopulatePicker(t,o,n),console.log("configured by NuvIoTUiUtils.configurePropertyViaCollection()",o)})()}configurePropertyPickerWithListResponse(t,e,n){var r=this;return z(function*(){let a=(yield e)?.model?.map(s=>({id:s.id,key:s.key||void 0,text:s.name}))||[];r.executePopulatePicker(t,a,n),console.log("configured by NuvIoTUiUtils.configurePropertyViaListResponse()")})()}configurePropertyPickerWithPromise(t,e,n){var r=this;return z(function*(){let a=(yield e)?.map(s=>({id:s.id,key:s.key||void 0,text:s.name}))||[];r.executePopulatePicker(t,a,n),console.log("configured by NuvIoTUiUtils.configurePropertyViaPromise()")})()}executePopulatePicker(t,e,n){var r=this;n.clearEntityHeader=()=>{n.value=void 0},n.selectEntityHeader=function(){var o=z(function*(a){if(e.length>0){const s=r.modalComponent.open(_t,{size:"lg"}).componentInstance;s.title=t,s.items=e,s.itemSelected.subscribe(l=>{n.value=l})}else alert("Please add items to select from.")});return function(a){return o.apply(this,arguments)}}()}handleFormKeyEditability(t){null==t.isEditing&&(t.isEditing=(void 0!==t?.model?.key||void 0!==t?.model?.id)&&t?.model?.name.length>0),t.view.key.isUserEditable=!t.isEditing}static \u0275fac=function(e){return new(e||k2)(Ee(zn))};static \u0275mod=Dt({type:k2});static \u0275inj=wt({})}var p9=V(5439);const Ph=p9||V.t(p9,2),f9=new nt("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function fFe(){return{useUtc:!1}}});function gFe(i,t){const e=Array(i);for(let n=0;n{class i extends ho{constructor(e,n){super(),this._options=n,this.setLocale(e||Ph.locale())}setLocale(e){super.setLocale(e);let n=Ph.localeData(e);this._localeData={firstDayOfWeek:n.firstDayOfWeek(),longMonths:n.months(),shortMonths:n.monthsShort(),dates:gFe(31,r=>this.createDate(2017,0,r+1).format("D")),longDaysOfWeek:n.weekdays(),shortDaysOfWeek:n.weekdaysShort(),narrowDaysOfWeek:n.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return"long"==e?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return"long"==e?this._localeData.longDaysOfWeek:"short"==e?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,n,r){const o=this._createMoment({year:e,month:n,date:r}).locale(this.locale);return o.isValid(),o}today(){return this._createMoment().locale(this.locale)}parse(e,n){return e&&"string"==typeof e?this._createMoment(e,n,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,n){return e=this.clone(e),this.isValid(e),e.format(n)}addCalendarYears(e,n){return this.clone(e).add({years:n})}addCalendarMonths(e,n){return this.clone(e).add({months:n})}addCalendarDays(e,n){return this.clone(e).add({days:n})}toIso8601(e){return this.clone(e).format()}deserialize(e){let n;if(e instanceof Date)n=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if("string"==typeof e){if(!e)return null;n=this._createMoment(e,Ph.ISO_8601).locale(this.locale)}return n&&this.isValid(n)?this._createMoment(n).locale(this.locale):super.deserialize(e)}isDateInstance(e){return Ph.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return Ph.invalid()}_createMoment(e,n,r){const{strict:o,useUtc:a}=this._options||{};return a?Ph.utc(e,n,r,o):Ph(e,n,r,o)}}return i.\u0275fac=function(e){return new(e||i)(Ee(_6,8),Ee(f9,8))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();const _Fe={parse:{dateInput:"l"},display:{dateInput:"l",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let vFe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[{provide:ho,useClass:mFe,deps:[_6,f9]}]}),i})(),yFe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:[{provide:nh,useValue:_Fe}],imports:[vFe]}),i})();function g9(i){return new et(3e3,!1)}function ePe(){return typeof window<"u"&&typeof window.document<"u"}function PA(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function eu(i){switch(i.length){case 0:return new D_;case 1:return i[0];default:return new E6(i)}}function m9(i,t,e,n,r=new Map,o=new Map){const a=[],s=[];let l=-1,d=null;if(n.forEach(f=>{const y=f.get("offset"),k=y==l,E=k&&d||new Map;f.forEach((W,ee)=>{let he=ee,ge=W;if("offset"!==ee)switch(he=t.normalizePropertyName(he,a),ge){case"!":ge=r.get(ee);break;case wc:ge=o.get(ee);break;default:ge=t.normalizeStyleValue(ee,he,ge,a)}E.set(he,ge)}),k||s.push(E),d=E,l=y}),a.length)throw function UFe(i){return new et(3502,!1)}();return s}function RA(i,t,e,n){switch(t){case"start":i.onStart(()=>n(e&&LA(e,"start",i)));break;case"done":i.onDone(()=>n(e&&LA(e,"done",i)));break;case"destroy":i.onDestroy(()=>n(e&&LA(e,"destroy",i)))}}function LA(i,t,e){const o=OA(i.element,i.triggerName,i.fromState,i.toState,t||i.phaseName,e.totalTime??i.totalTime,!!e.disabled),a=i._data;return null!=a&&(o._data=a),o}function OA(i,t,e,n,r="",o=0,a){return{element:i,triggerName:t,fromState:e,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function Pa(i,t,e){let n=i.get(t);return n||i.set(t,n=e),n}function _9(i){const t=i.indexOf(":");return[i.substring(1,t),i.slice(t+1)]}let NA=(i,t)=>!1,v9=(i,t,e)=>[],y9=null;function BA(i){const t=i.parentNode||i.host;return t===y9?null:t}(PA()||typeof Element<"u")&&(ePe()?(y9=(()=>document.documentElement)(),NA=(i,t)=>{for(;t;){if(t===i)return!0;t=BA(t)}return!1}):NA=(i,t)=>i.contains(t),v9=(i,t,e)=>{if(e)return Array.from(i.querySelectorAll(t));const n=i.querySelector(t);return n?[n]:[]});let Rh=null,b9=!1;const C9=NA,w9=v9;let D9=(()=>{class i{validateStyleProperty(e){return function nPe(i){Rh||(Rh=function iPe(){return typeof document<"u"?document.body:null}()||{},b9=!!Rh.style&&"WebkitAppearance"in Rh.style);let t=!0;return Rh.style&&!function tPe(i){return"ebkit"==i.substring(1,6)}(i)&&(t=i in Rh.style,!t&&b9&&(t="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Rh.style)),t}(e)}matchesElement(e,n){return!1}containsElement(e,n){return C9(e,n)}getParentElement(e){return BA(e)}query(e,n,r){return w9(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,o,a,s=[],l){return new D_(r,o)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})(),VA=(()=>{class i{}return i.NOOP=new D9,i})();const HA="ng-enter",T2="ng-leave",S2="ng-trigger",E2=".ng-trigger",x9="ng-animating",YA=".ng-animating";function Yc(i){if("number"==typeof i)return i;const t=i.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:UA(parseFloat(t[1]),t[2])}function UA(i,t){return"s"===t?1e3*i:i}function A2(i,t,e){return i.hasOwnProperty("duration")?i:function aPe(i,t,e){let r,o=0,a="";if("string"==typeof i){const s=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return t.push(g9()),{duration:0,delay:0,easing:""};r=UA(parseFloat(s[1]),s[2]);const l=s[3];null!=l&&(o=UA(parseFloat(l),s[4]));const d=s[5];d&&(a=d)}else r=i;if(!e){let s=!1,l=t.length;r<0&&(t.push(function bFe(){return new et(3100,!1)}()),s=!0),o<0&&(t.push(function CFe(){return new et(3101,!1)}()),s=!0),s&&t.splice(l,0,g9())}return{duration:r,delay:o,easing:a}}(i,t,e)}function Xv(i,t={}){return Object.keys(i).forEach(e=>{t[e]=i[e]}),t}function k9(i){const t=new Map;return Object.keys(i).forEach(e=>{t.set(e,i[e])}),t}function tu(i,t=new Map,e){if(e)for(let[n,r]of e)t.set(n,r);for(let[n,r]of i)t.set(n,r);return t}function S9(i,t,e){return e?t+":"+e+";":""}function E9(i){let t="";for(let e=0;e{const o=$A(r);e&&!e.has(r)&&e.set(r,i.style[o]),i.style[o]=n}),PA()&&E9(i))}function Lh(i,t){i.style&&(t.forEach((e,n)=>{const r=$A(n);i.style[r]=""}),PA()&&E9(i))}function Jv(i){return Array.isArray(i)?1==i.length?i[0]:M6(i):i}const jA=new RegExp("{{\\s*(.+?)\\s*}}","g");function A9(i){let t=[];if("string"==typeof i){let e;for(;e=jA.exec(i);)t.push(e[1]);jA.lastIndex=0}return t}function ey(i,t,e){const n=i.toString(),r=n.replace(jA,(o,a)=>{let s=t[a];return null==s&&(e.push(function DFe(i){return new et(3003,!1)}()),s=""),s.toString()});return r==n?i:r}function I2(i){const t=[];let e=i.next();for(;!e.done;)t.push(e.value),e=i.next();return t}const cPe=/-+([a-z0-9])/g;function $A(i){return i.replace(cPe,(...t)=>t[1].toUpperCase())}function dPe(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ra(i,t,e){switch(t.type){case 7:return i.visitTrigger(t,e);case 0:return i.visitState(t,e);case 1:return i.visitTransition(t,e);case 2:return i.visitSequence(t,e);case 3:return i.visitGroup(t,e);case 4:return i.visitAnimate(t,e);case 5:return i.visitKeyframes(t,e);case 6:return i.visitStyle(t,e);case 8:return i.visitReference(t,e);case 9:return i.visitAnimateChild(t,e);case 10:return i.visitAnimateRef(t,e);case 11:return i.visitQuery(t,e);case 12:return i.visitStagger(t,e);default:throw function MFe(i){return new et(3004,!1)}()}}function I9(i,t){return window.getComputedStyle(i)[t]}function mPe(i,t){const e=[];return"string"==typeof i?i.split(/\s*,\s*/).forEach(n=>function _Pe(i,t,e){if(":"==i[0]){const l=function vPe(i,t){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(i,e);if("function"==typeof l)return void t.push(l);i=l}const n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function NFe(i){return new et(3015,!1)}()),t;const r=n[1],o=n[2],a=n[3];t.push(F9(r,a));"<"==o[0]&&!("*"==r&&"*"==a)&&t.push(F9(a,r))}(n,e,t)):e.push(i),e}const L2=new Set(["true","1"]),O2=new Set(["false","0"]);function F9(i,t){const e=L2.has(i)||O2.has(i),n=L2.has(t)||O2.has(t);return(r,o)=>{let a="*"==i||i==r,s="*"==t||t==o;return!a&&e&&"boolean"==typeof r&&(a=r?L2.has(i):O2.has(i)),!s&&n&&"boolean"==typeof o&&(s=o?L2.has(t):O2.has(t)),a&&s}}const yPe=new RegExp("s*:selfs*,?","g");function zA(i,t,e,n){return new bPe(i).build(t,e,n)}class bPe{constructor(t){this._driver=t}build(t,e,n){const r=new DPe(e);return this._resetContextStyleTimingState(r),Ra(this,Jv(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const o=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push(function kFe(){return new et(3006,!1)}()),t.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const l=s,d=l.name;d.toString().split(/\s*,\s*/).forEach(f=>{l.name=f,o.push(this.visitState(l,e))}),l.name=d}else if(1==s.type){const l=this.visitTransition(s,e);n+=l.queryCount,r+=l.depCount,a.push(l)}else e.errors.push(function TFe(){return new et(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:a,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const o=new Set,a=r||{};n.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{A9(l).forEach(d=>{a.hasOwnProperty(d)||o.add(d)})})}),o.size&&(I2(o.values()),e.errors.push(function SFe(i,t){return new et(3008,!1)}()))}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Ra(this,Jv(t.animation),e);return{type:1,matchers:mPe(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Oh(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(n=>Ra(this,n,e)),options:Oh(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const o=t.steps.map(a=>{e.currentTime=n;const s=Ra(this,a,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:o,options:Oh(t.options)}}visitAnimate(t,e){const n=function xPe(i,t){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return WA(A2(i,t).duration,0,"");const e=i;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=WA(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=A2(e,t);return WA(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let r,o=t.styles?t.styles:Ni({});if(5==o.type)r=this.visitKeyframes(o,e);else{let a=t.styles,s=!1;if(!a){s=!0;const d={};n.easing&&(d.easing=n.easing),a=Ni(d)}e.currentTime+=n.duration+n.delay;const l=this.visitStyle(a,e);l.isEmptyStep=s,r=l}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let s of r)"string"==typeof s?s===wc?n.push(s):e.errors.push(new et(3002,!1)):n.push(k9(s));let o=!1,a=null;return n.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o))for(let l of s.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:n,easing:a,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),t.styles.forEach(a=>{"string"!=typeof a&&a.forEach((s,l)=>{const d=e.collectedStyles.get(e.currentQuerySelector),f=d.get(l);let y=!0;f&&(o!=r&&o>=f.startTime&&r<=f.endTime&&(e.errors.push(function AFe(i,t,e,n,r){return new et(3010,!1)}()),y=!1),o=f.startTime),y&&d.set(l,{startTime:o,endTime:r}),e.options&&function lPe(i,t,e){const n=t.params||{},r=A9(i);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||e.push(function wFe(i){return new et(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function IFe(){return new et(3011,!1)}()),n;let o=0;const a=[];let s=!1,l=!1,d=0;const f=t.steps.map(ge=>{const Ce=this._makeStyleAst(ge,e);let we=null!=Ce.offset?Ce.offset:function MPe(i){if("string"==typeof i)return null;let t=null;if(Array.isArray(i))i.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){const e=i;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(Ce.styles),ke=0;return null!=we&&(o++,ke=Ce.offset=we),l=l||ke<0||ke>1,s=s||ke0&&o{const we=k>0?Ce==E?1:k*Ce:a[Ce],ke=we*he;e.currentTime=W+ee.delay+ke,ee.duration=ke,this._validateStyleAst(ge,e),ge.offset=we,n.styles.push(ge)}),n}visitReference(t,e){return{type:8,animation:Ra(this,Jv(t.animation),e),options:Oh(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Oh(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Oh(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,a]=function CPe(i){const t=!!i.split(/\s*,\s*/).find(e=>":self"==e);return t&&(i=i.replace(yPe,"")),i=i.replace(/@\*/g,E2).replace(/@\w+/g,e=>E2+"-"+e.slice(1)).replace(/:animating/g,YA),[i,t]}(t.selector);e.currentQuerySelector=n.length?n+" "+o:o,Pa(e.collectedStyles,e.currentQuerySelector,new Map);const s=Ra(this,Jv(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:Oh(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function LFe(){return new et(3013,!1)}());const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:A2(t.timings,e.errors,!0);return{type:12,animation:Ra(this,Jv(t.animation),e),timings:n,options:null}}}class DPe{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Oh(i){return i?(i=Xv(i)).params&&(i.params=function wPe(i){return i?Xv(i):null}(i.params)):i={},i}function WA(i,t,e){return{duration:i,delay:t,easing:e}}function GA(i,t,e,n,r,o,a=null,s=!1){return{type:1,element:i,keyframes:t,preStyleProps:e,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}class N2{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const SPe=new RegExp(":enter","g"),APe=new RegExp(":leave","g");function qA(i,t,e,n,r,o=new Map,a=new Map,s,l,d=[]){return(new IPe).buildKeyframes(i,t,e,n,r,o,a,s,l,d)}class IPe{buildKeyframes(t,e,n,r,o,a,s,l,d,f=[]){d=d||new N2;const y=new KA(t,e,d,r,o,f,[]);y.options=l;const k=l.delay?Yc(l.delay):0;y.currentTimeline.delayNextStep(k),y.currentTimeline.setStyles([a],null,y.errors,l),Ra(this,n,y);const E=y.timelines.filter(W=>W.containsAnimation());if(E.length&&s.size){let W;for(let ee=E.length-1;ee>=0;ee--){const he=E[ee];if(he.element===e){W=he;break}}W&&!W.allowOnlyTimelineStyles()&&W.setStyles([s],null,y.errors,l)}return E.length?E.map(W=>W.buildKeyframes()):[GA(e,[],[],[],0,k,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.get(e.element);if(n){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,n),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,n){for(const r of t){const o=r?.delay;if(o){const a="number"==typeof o?o:Yc(ey(o,r?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(t,e,n){let o=e.currentTimeline.currentTime;const a=null!=n.duration?Yc(n.duration):null,s=null!=n.delay?Yc(n.delay):null;return 0!==a&&t.forEach(l=>{const d=e.appendInstructionToTimeline(l,a,s);o=Math.max(o,d.duration+d.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Ra(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=B2);const a=Yc(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(a=>Ra(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?Yc(t.options.delay):0;t.steps.forEach(a=>{const s=e.createSubContext(t.options);o&&s.delayNextStep(o),Ra(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return A2(e.params?ey(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,t.styles.forEach(l=>{s.forwardTime((l.offset||0)*o),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Yc(r.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=B2);let a=n;const s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((d,f)=>{e.currentQueryIndex=f;const y=e.createSubContext(t.options,d);o&&y.delayNextStep(o),d===e.element&&(l=y.currentTimeline),Ra(this,t.animation,y),y.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,y.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,o=t.timings,a=Math.abs(o.duration),s=a*(e.currentQueryTotal-1);let l=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=n.currentStaggerTime}const f=e.currentTimeline;l&&f.delayNextStep(l);const y=f.currentTime;Ra(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-y+(r.startTime-n.currentTimeline.startTime)}}const B2={};class KA{constructor(t,e,n,r,o,a,s,l){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=B2,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new V2(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=Yc(n.duration)),null!=n.delay&&(r.delay=Yc(n.delay));const o=n.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=ey(o[s],a,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,o=new KA(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=B2,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},o=new FPe(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,o,a){let s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(SPe,"."+this._enterClassName)).replace(APe,"."+this._leaveClassName);let d=this._driver.query(this.element,t,1!=n);0!==n&&(d=n<0?d.slice(d.length+n,d.length):d.slice(0,n)),s.push(...d)}return!o&&0==s.length&&a.push(function OFe(i){return new et(3014,!1)}()),s}}class V2{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new V2(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||wc),this._currentKeyframe.set(e,wc);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function PPe(i,t){const e=new Map;let n;return i.forEach(r=>{if("*"===r){n=n||t.keys();for(let o of n)e.set(o,wc)}else tu(r,e)}),e}(t,this._globalTimelineStyles);for(let[s,l]of a){const d=ey(l,o,n);this._pendingStyles.set(s,d),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??wc),this._updateStyle(s,d)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,n)=>{const r=this._styleSummary.get(n);(!r||e.time>r.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,l)=>{const d=tu(s,new Map,this._backFill);d.forEach((f,y)=>{"!"===f?t.add(y):f===wc&&e.add(y)}),n||d.set("offset",l/this.duration),r.push(d)});const o=t.size?I2(t.values()):[],a=e.size?I2(e.values()):[];if(n){const s=r[0],l=new Map(s);s.set("offset",0),l.set("offset",1),r=[s,l]}return GA(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class FPe extends V2{constructor(t,e,n,r,o,a,s=!1){super(t,e,a.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],a=n+e,s=e/a,l=tu(t[0]);l.set("offset",0),o.push(l);const d=tu(t[0]);d.set("offset",L9(s)),o.push(d);const f=t.length-1;for(let y=1;y<=f;y++){let k=tu(t[y]);const E=k.get("offset");k.set("offset",L9((e+E*n)/a)),o.push(k)}n=a,e=0,r="",t=o}return GA(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function L9(i,t=3){const e=Math.pow(10,t-1);return Math.round(i*e)/e}class ZA{}const RPe=new Set(["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"]);class LPe extends ZA{normalizePropertyName(t,e){return $A(t)}normalizeStyleValue(t,e,n,r){let o="";const a=n.toString().trim();if(RPe.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(function xFe(i,t){return new et(3005,!1)}())}return a+o}}function O9(i,t,e,n,r,o,a,s,l,d,f,y,k){return{type:0,element:i,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:n,toStyles:a,timelines:s,queriedElements:l,preStyleProps:d,postStyleProps:f,totalTime:y,errors:k}}const QA={};class N9{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function OPe(i,t,e,n,r){return i.some(o=>o(t,e,n,r))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,n):new Map}build(t,e,n,r,o,a,s,l,d,f){const y=[],k=this.ast.options&&this.ast.options.params||QA,W=this.buildStyles(n,s&&s.params||QA,y),ee=l&&l.params||QA,he=this.buildStyles(r,ee,y),ge=new Set,Ce=new Map,we=new Map,ke="void"===r,Pe={params:NPe(ee,k),delay:this.ast.options?.delay},Ue=f?[]:qA(t,e,this.ast.animation,o,a,W,he,Pe,d,y);let ze=0;if(Ue.forEach(ht=>{ze=Math.max(ht.duration+ht.delay,ze)}),y.length)return O9(e,this._triggerName,n,r,ke,W,he,[],[],Ce,we,ze,y);Ue.forEach(ht=>{const vt=ht.element,Vt=Pa(Ce,vt,new Set);ht.preStyleProps.forEach(Ft=>Vt.add(Ft));const qt=Pa(we,vt,new Set);ht.postStyleProps.forEach(Ft=>qt.add(Ft)),vt!==e&&ge.add(vt)});const Qe=I2(ge.values());return O9(e,this._triggerName,n,r,ke,W,he,Ue,Qe,Ce,we,ze)}}function NPe(i,t){const e=Xv(t);for(const n in i)i.hasOwnProperty(n)&&null!=i[n]&&(e[n]=i[n]);return e}class BPe{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n=new Map,r=Xv(this.defaultParams);return Object.keys(t).forEach(o=>{const a=t[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,s)=>{a&&(a=ey(a,r,e));const l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),n.set(l,a)})}),n}}class HPe{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new BPe(r.style,r.options&&r.options.params||{},n))}),B9(this.states,"true","1"),B9(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new N9(t,r,this.states))}),this.fallbackTransition=function YPe(i,t,e){return new N9(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,s)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(a=>a.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function B9(i,t,e){i.has(t)?i.has(e)||i.set(e,i.get(t)):i.has(e)&&i.set(t,i.get(e))}const UPe=new N2;class jPe{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const n=[],o=zA(this._driver,e,n,[]);if(n.length)throw function jFe(i){return new et(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,n){const r=t.element,o=m9(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],o=this._animations.get(t);let a;const s=new Map;if(o?(a=qA(this._driver,e,o,HA,T2,new Map,new Map,n,UPe,r),a.forEach(f=>{const y=Pa(s,f.element,new Map);f.postStyleProps.forEach(k=>y.set(k,null))})):(r.push(function $Fe(){return new et(3300,!1)}()),a=[]),r.length)throw function zFe(i){return new et(3504,!1)}();s.forEach((f,y)=>{f.forEach((k,E)=>{f.set(E,this._driver.computeStyle(y,E,wc))})});const d=eu(a.map(f=>{const y=s.get(f.element);return this._buildPlayer(f,new Map,y)}));return this._playersById.set(t,d),d.onDestroy(()=>this.destroy(t)),this.players.push(d),d}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function WFe(i){return new et(3301,!1)}();return e}listen(t,e,n,r){const o=OA(e,"","","");return RA(this._getPlayer(t),n,o,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const V9="ng-animate-queued",XA="ng-animate-disabled",qPe=[],H9={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},KPe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},rs="__ng_removed";class JA{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=function JPe(i){return i??null}(n?t.value:t),n){const o=Xv(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const n=this.options.params;Object.keys(e).forEach(r=>{null==n[r]&&(n[r]=e[r])})}}}const ty="void",eI=new JA(ty);class ZPe{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,os(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.has(e))throw function GFe(i,t){return new et(3302,!1)}();if(null==n||0==n.length)throw function qFe(i){return new et(3303,!1)}();if(!function eRe(i){return"start"==i||"done"==i}(n))throw function KFe(i,t){return new et(3400,!1)}();const o=Pa(this._elementListeners,t,[]),a={name:e,phase:n,callback:r};o.push(a);const s=Pa(this._engine.statesByElement,t,new Map);return s.has(e)||(os(t,S2),os(t,S2+"-"+e),s.set(e,eI)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(a);l>=0&&o.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function ZFe(i){return new et(3401,!1)}();return e}trigger(t,e,n,r=!0){const o=this._getTrigger(e),a=new tI(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(os(t,S2),os(t,S2+"-"+e),this._engine.statesByElement.set(t,s=new Map));let l=s.get(e);const d=new JA(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&d.absorbOptions(l.options),s.set(e,d),l||(l=eI),d.value!==ty&&l.value===d.value){if(!function iRe(i,t){const e=Object.keys(i),n=Object.keys(t);if(e.length!=n.length)return!1;for(let r=0;r{Lh(t,he),Ol(t,ge)})}return}const k=Pa(this._engine.playersByElement,t,[]);k.forEach(ee=>{ee.namespaceId==this.id&&ee.triggerName==e&&ee.queued&&ee.destroy()});let E=o.matchTransition(l.value,d.value,t,d.params),W=!1;if(!E){if(!r)return;E=o.fallbackTransition,W=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:E,fromState:l,toState:d,player:a,isFallbackTransition:W}),W||(os(t,V9),a.onStart(()=>{dg(t,V9)})),a.onDone(()=>{let ee=this.players.indexOf(a);ee>=0&&this.players.splice(ee,1);const he=this._engine.playersByElement.get(t);if(he){let ge=he.indexOf(a);ge>=0&&he.splice(ge,1)}}),this.players.push(a),k.push(a),a}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,E2,!0);n.forEach(r=>{if(r[rs])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,n,r){const o=this._engine.statesByElement.get(t),a=new Map;if(o){const s=[];if(o.forEach((l,d)=>{if(a.set(d,l.value),this._triggers.has(d)){const f=this.trigger(t,d,ty,r);f&&s.push(f)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,a),n&&eu(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const r=new Set;e.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const l=this._triggers.get(a).fallbackTransition,d=n.get(a)||eI,f=new JA(ty),y=new tI(this.id,a,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:a,transition:l,fromState:d,toState:f,player:y,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let a=t;for(;a=a.parentNode;)if(n.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const o=t[rs];(!o||o===H9)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){os(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const o=n.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==n.triggerName){const l=OA(o,n.triggerName,n.fromState.value,n.toState.value);l._data=t,RA(n.player,s.phase,l,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{const o=n.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(n=>n.element===t)||e,e}}class QPe{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,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=(r,o)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&t.push(n)})}),t}createNamespace(t,e){const n=new ZPe(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){const l=r.get(s);if(l){const d=n.indexOf(l);n.splice(d+1,0,t),a=!0;break}s=this.driver.getParentElement(s)}a||n.unshift(t)}else n.push(t);return r.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n)for(let r of n.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,n,r){if(H2(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,n,r),!0}return!1}insertNode(t,e,n,r){if(!H2(e))return;const o=e[rs];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(t){const a=this._fetchNamespace(t);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),os(t,XA)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),dg(t,XA))}removeNode(t,e,n,r){if(H2(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){const a=this.namespacesByHostElement.get(e);a&&a.id!==t&&a.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,n,r,o){this.collectedLeaveElements.push(e),e[rs]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,n,r,o){return H2(e)?this._fetchNamespace(t).listen(e,n,r,o):()=>{}}_buildInstruction(t,e,n,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,E2,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,YA,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return eu(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[rs];if(e&&e.setForRemoval){if(t[rs]=H9,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(XA)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?eu(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(t){throw function QFe(i){return new et(3402,!1)}()}_flushAnimations(t,e){const n=new N2,r=[],o=new Map,a=[],s=new Map,l=new Map,d=new Map,f=new Set;this.disabledNodes.forEach(We=>{f.add(We);const Ze=this.driver.query(We,".ng-animate-queued",!0);for(let tt=0;tt{const tt=HA+ee++;W.set(Ze,tt),We.forEach(Mt=>os(Mt,tt))});const he=[],ge=new Set,Ce=new Set;for(let We=0;Wege.add(Mt)):Ce.add(Ze))}const we=new Map,ke=j9(k,Array.from(ge));ke.forEach((We,Ze)=>{const tt=T2+ee++;we.set(Ze,tt),We.forEach(Mt=>os(Mt,tt))}),t.push(()=>{E.forEach((We,Ze)=>{const tt=W.get(Ze);We.forEach(Mt=>dg(Mt,tt))}),ke.forEach((We,Ze)=>{const tt=we.get(Ze);We.forEach(Mt=>dg(Mt,tt))}),he.forEach(We=>{this.processLeaveNode(We)})});const Pe=[],Ue=[];for(let We=this._namespaceList.length-1;We>=0;We--)this._namespaceList[We].drainQueuedTransitions(e).forEach(tt=>{const Mt=tt.player,Jt=tt.element;if(Pe.push(Mt),this.collectedEnterElements.length){const pi=Jt[rs];if(pi&&pi.setForMove){if(pi.previousTriggersValues&&pi.previousTriggersValues.has(tt.triggerName)){const li=pi.previousTriggersValues.get(tt.triggerName),Wi=this.statesByElement.get(tt.element);if(Wi&&Wi.has(tt.triggerName)){const La=Wi.get(tt.triggerName);La.value=li,Wi.set(tt.triggerName,La)}}return void Mt.destroy()}}const ri=!y||!this.driver.containsElement(y,Jt),ot=we.get(Jt),Ii=W.get(Jt),Ht=this._buildInstruction(tt,n,Ii,ot,ri);if(Ht.errors&&Ht.errors.length)return void Ue.push(Ht);if(ri)return Mt.onStart(()=>Lh(Jt,Ht.fromStyles)),Mt.onDestroy(()=>Ol(Jt,Ht.toStyles)),void r.push(Mt);if(tt.isFallbackTransition)return Mt.onStart(()=>Lh(Jt,Ht.fromStyles)),Mt.onDestroy(()=>Ol(Jt,Ht.toStyles)),void r.push(Mt);const Nn=[];Ht.timelines.forEach(pi=>{pi.stretchStartingKeyframe=!0,this.disabledNodes.has(pi.element)||Nn.push(pi)}),Ht.timelines=Nn,n.append(Jt,Ht.timelines),a.push({instruction:Ht,player:Mt,element:Jt}),Ht.queriedElements.forEach(pi=>Pa(s,pi,[]).push(Mt)),Ht.preStyleProps.forEach((pi,li)=>{if(pi.size){let Wi=l.get(li);Wi||l.set(li,Wi=new Set),pi.forEach((La,as)=>Wi.add(as))}}),Ht.postStyleProps.forEach((pi,li)=>{let Wi=d.get(li);Wi||d.set(li,Wi=new Set),pi.forEach((La,as)=>Wi.add(as))})});if(Ue.length){const We=[];Ue.forEach(Ze=>{We.push(function XFe(i,t){return new et(3505,!1)}())}),Pe.forEach(Ze=>Ze.destroy()),this.reportError(We)}const ze=new Map,Qe=new Map;a.forEach(We=>{const Ze=We.element;n.has(Ze)&&(Qe.set(Ze,Ze),this._beforeAnimationBuild(We.player.namespaceId,We.instruction,ze))}),r.forEach(We=>{const Ze=We.element;this._getPreviousPlayers(Ze,!1,We.namespaceId,We.triggerName,null).forEach(Mt=>{Pa(ze,Ze,[]).push(Mt),Mt.destroy()})});const ht=he.filter(We=>z9(We,l,d)),vt=new Map;U9(vt,this.driver,Ce,d,wc).forEach(We=>{z9(We,l,d)&&ht.push(We)});const qt=new Map;E.forEach((We,Ze)=>{U9(qt,this.driver,new Set(We),l,"!")}),ht.forEach(We=>{const Ze=vt.get(We),tt=qt.get(We);vt.set(We,new Map([...Array.from(Ze?.entries()??[]),...Array.from(tt?.entries()??[])]))});const Ft=[],ei=[],Kt={};a.forEach(We=>{const{element:Ze,player:tt,instruction:Mt}=We;if(n.has(Ze)){if(f.has(Ze))return tt.onDestroy(()=>Ol(Ze,Mt.toStyles)),tt.disabled=!0,tt.overrideTotalTime(Mt.totalTime),void r.push(tt);let Jt=Kt;if(Qe.size>1){let ot=Ze;const Ii=[];for(;ot=ot.parentNode;){const Ht=Qe.get(ot);if(Ht){Jt=Ht;break}Ii.push(ot)}Ii.forEach(Ht=>Qe.set(Ht,Jt))}const ri=this._buildAnimation(tt.namespaceId,Mt,ze,o,qt,vt);if(tt.setRealPlayer(ri),Jt===Kt)Ft.push(tt);else{const ot=this.playersByElement.get(Jt);ot&&ot.length&&(tt.parentPlayer=eu(ot)),r.push(tt)}}else Lh(Ze,Mt.fromStyles),tt.onDestroy(()=>Ol(Ze,Mt.toStyles)),ei.push(tt),f.has(Ze)&&r.push(tt)}),ei.forEach(We=>{const Ze=o.get(We.element);if(Ze&&Ze.length){const tt=eu(Ze);We.setRealPlayer(tt)}}),r.forEach(We=>{We.parentPlayer?We.syncPlayerEvents(We.parentPlayer):We.destroy()});for(let We=0;We!ri.destroyed);Jt.length?tRe(this,Ze,Jt):this.processLeaveNode(Ze)}return he.length=0,Ft.forEach(We=>{this.players.push(We),We.onDone(()=>{We.destroy();const Ze=this.players.indexOf(We);this.players.splice(Ze,1)}),We.play()}),Ft}elementContainsData(t,e){let n=!1;const r=e[rs];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,o){let a=[];if(e){const s=this.playersByQueriedElement.get(t);s&&(a=s)}else{const s=this.playersByElement.get(t);if(s){const l=!o||o==ty;s.forEach(d=>{d.queued||!l&&d.triggerName!=r||a.push(d)})}}return(n||r)&&(a=a.filter(s=>!(n&&n!=s.namespaceId||r&&r!=s.triggerName))),a}_beforeAnimationBuild(t,e,n){const o=e.element,a=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const d=l.element,f=d!==o,y=Pa(n,d,[]);this._getPreviousPlayers(d,f,a,s,e.toState).forEach(E=>{const W=E.getRealPlayer();W.beforeDestroy&&W.beforeDestroy(),E.destroy(),y.push(E)})}Lh(o,e.fromStyles)}_buildAnimation(t,e,n,r,o,a){const s=e.triggerName,l=e.element,d=[],f=new Set,y=new Set,k=e.timelines.map(W=>{const ee=W.element;f.add(ee);const he=ee[rs];if(he&&he.removedBeforeQueried)return new D_(W.duration,W.delay);const ge=ee!==l,Ce=function nRe(i){const t=[];return $9(i,t),t}((n.get(ee)||qPe).map(ze=>ze.getRealPlayer())).filter(ze=>!!ze.element&&ze.element===ee),we=o.get(ee),ke=a.get(ee),Pe=m9(0,this._normalizer,0,W.keyframes,we,ke),Ue=this._buildPlayer(W,Pe,Ce);if(W.subTimeline&&r&&y.add(ee),ge){const ze=new tI(t,s,ee);ze.setRealPlayer(Ue),d.push(ze)}return Ue});d.forEach(W=>{Pa(this.playersByQueriedElement,W.element,[]).push(W),W.onDone(()=>function XPe(i,t,e){let n=i.get(t);if(n){if(n.length){const r=n.indexOf(e);n.splice(r,1)}0==n.length&&i.delete(t)}return n}(this.playersByQueriedElement,W.element,W))}),f.forEach(W=>os(W,x9));const E=eu(k);return E.onDestroy(()=>{f.forEach(W=>dg(W,x9)),Ol(l,e.toStyles)}),y.forEach(W=>{Pa(r,W,[]).push(E)}),E}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new D_(t.duration,t.delay)}}class tI{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new D_,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,n)=>{e.forEach(r=>RA(t,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Pa(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function H2(i){return i&&1===i.nodeType}function Y9(i,t){const e=i.style.display;return i.style.display=t??"none",e}function U9(i,t,e,n,r){const o=[];e.forEach(l=>o.push(Y9(l)));const a=[];n.forEach((l,d)=>{const f=new Map;l.forEach(y=>{const k=t.computeStyle(d,y,r);f.set(y,k),(!k||0==k.length)&&(d[rs]=KPe,a.push(d))}),i.set(d,f)});let s=0;return e.forEach(l=>Y9(l,o[s++])),a}function j9(i,t){const e=new Map;if(i.forEach(s=>e.set(s,[])),0==t.length)return e;const r=new Set(t),o=new Map;function a(s){if(!s)return 1;let l=o.get(s);if(l)return l;const d=s.parentNode;return l=e.has(d)?d:r.has(d)?1:a(d),o.set(s,l),l}return t.forEach(s=>{const l=a(s);1!==l&&e.get(l).push(s)}),e}function os(i,t){i.classList?.add(t)}function dg(i,t){i.classList?.remove(t)}function tRe(i,t,e){eu(e).onDone(()=>i.processLeaveNode(t))}function $9(i,t){for(let e=0;er.add(o)):t.set(i,n),e.delete(i),!0}class Y2{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new QPe(t,e,n),this._timelineEngine=new jPe(t,e,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,n,r,o){const a=t+"-"+r;let s=this._triggerCache[a];if(!s){const l=[],f=zA(this._driver,o,l,[]);if(l.length)throw function YFe(i,t){return new et(3404,!1)}();s=function VPe(i,t,e){return new HPe(i,t,e)}(r,f,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,r,s)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[o,a]=_9(n);this._timelineEngine.command(o,e,a,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,o){if("@"==n.charAt(0)){const[a,s]=_9(n);return this._timelineEngine.listen(a,e,s,o)}return this._transitionEngine.listen(t,e,n,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let oRe=(()=>{class i{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let o=i.initialStylesByElement.get(e);o||i.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Ol(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ol(this._element,this._initialStyles),this._endStyles&&(Ol(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(Lh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Lh(this._element,this._endStyles),this._endStyles=null),Ol(this._element,this._initialStyles),this._state=3)}}return i.initialStylesByElement=new WeakMap,i})();function nI(i){let t=null;return i.forEach((e,n)=>{(function aRe(i){return"display"===i||"position"===i})(n)&&(t=t||new Map,t.set(n,e))}),t}class W9{constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(t,e,n){return t.animate(this._convertKeyframesToObject(e),n)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{"offset"!==r&&t.set(r,this._finished?n:I9(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class sRe{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return C9(t,e)}getParentElement(t){return BA(t)}query(t,e,n){return w9(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}animate(t,e,n,r,o,a=[]){const l={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const d=new Map,f=a.filter(E=>E instanceof W9);(function uPe(i,t){return 0===i||0===t})(n,r)&&f.forEach(E=>{E.currentSnapshot.forEach((W,ee)=>d.set(ee,W))});let y=function sPe(i){return i.length?i[0]instanceof Map?i:i.map(t=>k9(t)):[]}(e).map(E=>tu(E));y=function hPe(i,t,e){if(e.size&&t.length){let n=t[0],r=[];if(e.forEach((o,a)=>{n.has(a)||r.push(a),n.set(a,o)}),r.length)for(let o=1;oa.set(s,I9(i,s)))}}return t}(t,y,d);const k=function rRe(i,t){let e=null,n=null;return Array.isArray(t)&&t.length?(e=nI(t[0]),t.length>1&&(n=nI(t[t.length-1]))):t instanceof Map&&(e=nI(t)),e||n?new oRe(i,e,n):null}(t,y);return new W9(t,y,l,k)}}let lRe=(()=>{class i extends w6{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:va.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?M6(e):e;return G9(this._renderer,null,n,"register",[r]),new cRe(n,this._renderer)}}return i.\u0275fac=function(e){return new(e||i)(Ee(wp),Ee(Wt))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();class cRe extends class cce{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new dRe(this._id,t,e||{},this._renderer)}}class dRe{constructor(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return G9(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function G9(i,t,e,n,r){return i.setProperty(t,`@@${e}:${n}`,r)}const q9="@.disabled";let uRe=(()=>{class i{constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=(o,a)=>{const s=a?.parentNode(o);s&&a.removeChild(s,o)}}createRenderer(e,n){const o=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let f=this._rendererCache.get(o);return f||(f=new K9("",o,this.engine),this._rendererCache.set(o,f)),f}const a=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const l=f=>{Array.isArray(f)?f.forEach(l):this.engine.registerTrigger(a,s,e,f.name,f)};return n.data.animation.forEach(l),new hRe(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){e>=0&&en(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return i.\u0275fac=function(e){return new(e||i)(Ee(wp),Ee(Y2),Ee(Bt))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})();class K9{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,r=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==q9?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class hRe extends K9{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==q9?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.slice(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const r=function pRe(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(t);let o=e.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function fRe(i){const t=i.indexOf(".");return[i.substring(0,t),i.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,s=>{this.factory.scheduleListenerCallback(s._data||-1,n,s)})}return this.delegate.listen(t,e,n)}}const Z9=[{provide:w6,useClass:lRe},{provide:ZA,useFactory:function mRe(){return new LPe}},{provide:Y2,useClass:(()=>{class i extends Y2{constructor(e,n,r,o){super(e.body,n,r)}ngOnDestroy(){this.flush()}}return i.\u0275fac=function(e){return new(e||i)(Ee(Wt),Ee(VA),Ee(ZA),Ee(hd))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})()},{provide:wp,useFactory:function _Re(i,t,e){return new uRe(i,t,e)},deps:[q0,Y2,Bt]}],iI=[{provide:VA,useFactory:()=>new sRe},{provide:oa,useValue:"BrowserAnimations"},...Z9],Q9=[{provide:VA,useClass:D9},{provide:oa,useValue:"NoopAnimations"},...Z9];let vRe=(()=>{class i{static withConfig(e){return{ngModule:i,providers:e.disableAnimations?Q9:iI}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({providers:iI,imports:[y3]}),i})();function yRe(i,t){if(1&i&&(u(0,"li")(1,"label",9),H(2,"nuv-icon",10),m(3),c()()),2&i){const e=t.$implicit;h(2),p("iconName",e.icon),h(1),Ke(" ",e.name,"")}}function bRe(i,t){if(1&i&&(u(0,"div",7)(1,"h3"),m(2,"Guides"),c(),u(3,"ul"),w(4,yRe,4,2,"li",8),c()()),2&i){const e=g(2);h(4),p("ngForOf",e.guides)}}function CRe(i,t){if(1&i){const e=pe();u(0,"li")(1,"label",11),N("click",function(){const o=R(e).$implicit;return L(g(3).showVideo(o))}),H(2,"nuv-icon",10),m(3),c()()}if(2&i){const e=t.$implicit;h(2),p("iconName",e.icon),h(1),Ke(" ",e.name,"")}}function wRe(i,t){if(1&i&&(u(0,"div",7)(1,"h3"),m(2,"Videos"),c(),u(3,"ul"),w(4,CRe,4,2,"li",8),c()()),2&i){const e=g(2);h(4),p("ngForOf",e.videos)}}function DRe(i,t){if(1&i&&(u(0,"li")(1,"label",12),H(2,"nuv-icon",10),u(3,"a",13),m(4),c()()()),2&i){const e=t.$implicit;h(2),p("iconName",e.icon),h(1),gt("href",e.url,Yi),h(1),Re(e.name)}}function MRe(i,t){if(1&i&&(u(0,"div",7)(1,"h3"),m(2,"Web Resource"),c(),u(3,"ul"),w(4,DRe,5,3,"li",8),c()()),2&i){const e=g(2);h(4),p("ngForOf",e.links)}}function xRe(i,t){if(1&i){const e=pe();u(0,"i",19),N("click",function(){return R(e),L(g().$implicit.visible=!1)}),c()}}function kRe(i,t){if(1&i){const e=pe();u(0,"i",20),N("click",function(){return R(e),L(g().$implicit.visible=!0)}),c()}}function TRe(i,t){1&i&&H(0,"div",21),2&i&&p("innerHTML",g().$implicit.htmlContent,Un)}function SRe(i,t){if(1&i&&(u(0,"li")(1,"h4"),H(2,"nuv-icon",10),m(3),u(4,"div",15),w(5,xRe,1,0,"i",16),w(6,kRe,1,0,"i",17),c()(),w(7,TRe,1,1,"div",18),c()),2&i){const e=t.$implicit;h(2),p("iconName",e.icon),h(1),Ke(" ",e.name," "),h(2),p("ngIf",e.visible),h(1),p("ngIf",!e.visible),h(1),p("ngIf",e.visible)}}function ERe(i,t){if(1&i&&(u(0,"div",14)(1,"ul"),w(2,SRe,8,5,"li",8),c()()),2&i){const e=g(2);h(2),p("ngForOf",e.htmlNotes)}}function ARe(i,t){if(1&i){const e=pe();u(0,"li")(1,"label",11),N("click",function(){const o=R(e).$implicit;return L(g(3).showTerm(o))}),m(2),c()()}if(2&i){const e=t.$implicit;h(2),Re(e.text)}}function IRe(i,t){if(1&i&&(u(0,"div",7)(1,"h3"),m(2,"Terms"),c(),u(3,"ul"),w(4,ARe,3,1,"li",8),c()()),2&i){const e=g(2);h(4),p("ngForOf",e.terms)}}function FRe(i,t){if(1&i&&(u(0,"div"),H(1,"iframe",22),Qt(2,"safeNuviotLink"),c()),2&i){const e=g(2);h(1),p("src",Xt(2,1,e.videoLink),pM)}}function PRe(i,t){if(1&i&&(u(0,"div"),H(1,"app-glossary-term-viewer",23),c()),2&i){const e=g(2);h(1),p("term",e.term)}}function RRe(i,t){if(1&i&&(u(0,"div")(1,"h1"),H(2,"nuv-icon",2),m(3),c(),H(4,"div",3),u(5,"div",4),w(6,bRe,5,1,"div",5),w(7,wRe,5,1,"div",5),w(8,MRe,5,1,"div",5),w(9,ERe,3,1,"div",6),w(10,IRe,5,1,"div",5),c(),w(11,FRe,3,3,"div",1),w(12,PRe,2,1,"div",1),c()),2&i){const e=g();h(2),p("iconName",e.help.icon),h(1),Re(e.help.name),h(1),p("innerHTML",e.help.description,Un),h(2),p("ngIf",e.guides.length>0),h(1),p("ngIf",e.videos.length>0),h(1),p("ngIf",e.links.length>0),h(1),p("ngIf",e.htmlNotes.length>0),h(1),p("ngIf",e.terms.length>0),h(1),p("ngIf",e.videoLink),h(1),p("ngIf",e.term)}}class j2{glossaryService;help;term;htmlNotes;guides;videos;links;terms;videoLink;constructor(t){this.glossaryService=t}ngOnInit(){this.guides=this.help.helpResources.filter(e=>"guide"==e.resourceType.key),this.videos=this.help.helpResources.filter(e=>"video"==e.resourceType.key),this.links=this.help.helpResources.filter(e=>"weblink"==e.resourceType.key),this.htmlNotes=this.help.helpResources.filter(e=>"note"==e.resourceType.key);let t=this.help.helpResources.filter(e=>"terms"==e.resourceType.key);this.terms=[];for(let e of t)this.terms=this.terms.concat(e.terms);this.terms=this.terms.sort((e,n)=>e.text.localeCompare(n.text)),console.log(this.terms)}showHelpResource(t){console.log(t)}_selectedTermId;showTerm(t){var e=this;return z(function*(){if(e.videoLink=void 0,e._selectedTermId!=t.id){e._selectedTermId=t.id;var n=t.id.substring(0,32),r=t.id.substring(32);e.term=yield e.glossaryService.getTerm(n,r)}})()}showVideo(t){this.term=void 0,this.videoLink=t.url}static \u0275fac=function(e){return new(e||j2)(U(yc))};static \u0275cmp=Be({type:j2,selectors:[["app-help-resource-viewer"]],inputs:{help:"help"},decls:2,vars:1,consts:[[2,"margin","30px"],[4,"ngIf"],["fontSize","32px",3,"iconName"],[3,"innerHTML"],[2,"display","flex","flex-wrap","wrap"],["style","max-width:1024px",4,"ngIf"],["style","width:100%",4,"ngIf"],[2,"max-width","1024px"],[4,"ngFor","ngForOf"],[1,"action"],["fontSize","24px",3,"iconName"],[1,"action",3,"click"],[1,"action",2,"font-size","24px"],["target","_blank",3,"href"],[2,"width","100%"],[2,"float","right"],["class","fa fa-chevron-up",3,"click",4,"ngIf"],["class","fa fa-chevron-down",3,"click",4,"ngIf"],["class","help-content",3,"innerHTML",4,"ngIf"],[1,"fa","fa-chevron-up",3,"click"],[1,"fa","fa-chevron-down",3,"click"],[1,"help-content",3,"innerHTML"],["width","960","height","512","webkitallowfullscreen","","mozallowfullscreen","","allowfullscreen","",3,"src"],[3,"term"]],template:function(e,n){1&e&&(u(0,"div",0),w(1,RRe,13,10,"div",1),c()),2&e&&(h(1),p("ngIf",n.help))},dependencies:[Xa,jt,ct,O_,Q_],styles:["[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg:var(--color-gray-5);--color-bg-panel: #fff;--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-80);--color-bg-list-separator: var(--color-gray-100);--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-10);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-primary-40);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-35);--color-fg-panel-header-active: #fff;--color-fg-panel-active: var(---color-accent2-125)}[_ngcontent-%COMP%]:root{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/light-bg-tile.png);--color-bg: #fff;--color-bg-panel: var(--color-gray-5);--color-bg-panel-active: var(--color-gray-2);--color-bg-menu: var(--color-primary);--color-bg-submenu: var(--color-primary-80);--color-bg-panel-header: var(--color-primary);--color-bg-drop: var(--color-accent2-125);--color-bg-menu-active: var(--color-gray-20);--color-bg-list-separator: black;--color-bg-list-row: var(--color-gray-2);--color-bg-list-alt-row: var(--color-gray-5);--color-bg-list-row-hover: var(--color-gray-20);--color-fg-list-row: var(--color-gray-80);--color-fg-list-alt-row: var(--color-gray-95);--color-fg-list-row-hover: var(--color-gray-100);--color-fg: var(--color-gray-100);--color-main-heading:var(--color-gray-100);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel: var(--color-fg);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-35);--color-border-panel: var(--color-gray-50);--color-border-menu: var(--color-gray-2);--color-primary-border: var(--color-primary-40);--color-accent-border: var(--color-accent);--color-fg-panel-link: var(var(--color-accent));--color-fg-panel-link-active: var(var(--color-accent-125));--color-fg-menu: var(--color-gray-20);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-primary-80);--color-nav-link-active: var(--color-primary);--color-primary-button: var(--color-accent2-125);--color-primary-button-hover: var(--color-accent2-60);--color-accent-button: var(--color-accent2);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent2-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: #c0c0c0;--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}body.dark-theme[_ngcontent-%COMP%]{--color-primary: #1976D2;--color-primary-10: #E8F2FB;--color-primary-20: #D1E4F6;--color-primary-40: #A3C8ED;--color-primary-60: #75ADE4;--color-primary-80: #4791DB;--color-primary-125: #13589D;--color-primary-150: #0C3B69;--color-primary-175: #061D34;--color-accent: #D48D17;--color-accent-10: #FBF4E8;--color-accent-20: #F6E8D1;--color-accent-40: #EED1A2;--color-accent-60: #E5BB74;--color-accent-80: #DDA445;--color-accent-125: #9F6A11;--color-accent-150: #6A460B;--color-accent-175: #352306;--color-accent1: #681DD6;--color-accent1-10: #F0E9FB;--color-accent1-20: #E1D2F7;--color-accent1-40: #C3A5EF;--color-accent1-60: #A477E6;--color-accent1-80: #864ADE;--color-accent1-125: #4E16A0;--color-accent1-150: #340E6B;--color-accent1-175: #1A0735;--color-accent2: #1CBA88;--color-accent2-10: #E8F2FB;--color-accent2-20: #D2F1E7;--color-accent2-40: #A4E3CF;--color-accent2-60: #77D6B8;--color-accent2-80: #49C8A0;--color-accent2-125: #158B66;--color-accent2-150: #0E5D44;--color-accent2-175: #072E22;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(https://www.nuviot.com/images/nuviot-white.png);--sl-logo-image: url(https://webimages.nyc3.cdn.digitaloceanspaces.com/public/sftlog-large-white.png);--page-bg-tile-image: url(https://www.nuviot.com/images/dark-bg-tile.png);--color-bg: var(--color-gray-100);--color-bg-panel: var(--color-primary-150);--color-bg-panel-active: var(--color-primary-125);--color-bg-menu: var(--color-primary-175);--color-bg-submenu: var(--color-primary-150);--color-bg-panel-header: var(--color-gray-95);--color-bg-drop: var(--color-primary-125);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: var(--color-gray-50);--color-bg-list-row: var(--color-gray-80);--color-bg-list-alt-row: var(--color-gray-95);--color-bg-list-row-hover: var(--color-gray-65);--color-fg-list-row: var(--color-gray-5);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: #fff;--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-gray-80);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu: var(--color-gray-10);--color-fg-menu-active: var(--color-gray-2);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-primary-125);--color-primary-button-hover: var(--color-primary-150);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-gray-80);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent2-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(--color-gray-80)}body.custom-theme[_ngcontent-%COMP%]{--color-primary: #B4626B;--color-primary-10: #F8EFF0;--color-primary-20: #F0E0E1;--color-primary-40: #E1C0C4;--color-primary-60: #D2A1A6;--color-primary-80: #C38189;--color-primary-125: #874A50;--color-primary-150: #5A3136;--color-primary-175: #2D191B;--color-accent: #7E5D5C;--color-accent-10: #F2EFEF;--color-accent-20: #E5DFDE;--color-accent-40: #CBBEBE;--color-accent-60: #B29E9D;--color-accent-80: #987D7D;--color-accent-125: #5F4645;--color-accent-150: #3F2F2E;--color-accent-175: #201717;--color-accent1: #5AC0C6;--color-accent1-10: #EFF9F9;--color-accent1-20: #DEF2F4;--color-accent1-40: #BDE6E8;--color-accent1-60: #9CD9DD;--color-accent1-80: #7BCDD1;--color-accent1-125: #449095;--color-accent1-150: #2D6063;--color-accent1-175: #173032;--color-accent2: #103A4C;--color-accent2-10: #E7EBED;--color-accent2-20: #CFD8DB;--color-accent2-40: #9FB0B7;--color-accent2-60: #708994;--color-accent2-80: #406170;--color-accent2-125: #0C2C39;--color-accent2-150: #081D26;--color-accent2-175: #040F13;--color-alert-success: #27A752;--color-alert-warning: #DFB42F;--color-alert-error: #E5463B;--color-danger: var(--color-alert-error);--color-gray-100: #222222;--color-gray-95: #2D2D2D;--color-gray-80: #4E4E4E;--color-gray-65: #6F6F6F;--color-gray-50: #919191;--color-gray-35: #B2B2B2;--color-gray-20: #D3D3D3;--color-gray-10: #E9E9E9;--color-gray-5: #F4F4F4;--color-gray-2: #FBFBFB;--logo-image: url(/app/ui-shared/assets/nuviot-white.png);--color-bg: var(--color-primary-175);--color-bg-panel: var(--color-primary-125);--color-bg-panel-active: var(--color-primary-150);--color-bg-menu: var(--color-primary-150);--color-bg-submenu: var(--color-primary-125);--color-bg-panel-header: var(--color-accent1-150);--color-bg-drop: var(--color-accent1-150);--color-bg-menu-active: var(--color-primary-175);--color-bg-list-separator: black;--color-bg-list-row: var(--color-primary-125);--color-bg-list-alt-row: var(--color-primary-150);--color-bg-list-row-hover: var(--color-primary-175);--color-fg-list-row: var(--color-gray-10);--color-fg-list-alt-row: var(--color-gray-5);--color-fg-list-row-hover: var(--color-gray-2);--color-fg: var(--color-gray-2);--color-fg-panel: var(--color-gray-2);--color-main-heading:var(--color-gray-2);--color-primary-heading: var(--color-primary);--color-accent-heading: var(--color-gray-2);--color-fg-panel-header: var(--color-gray-2);--color-fg-menu: var(--color-gray-2);--color-small-text: var(--color-gray-10);--color-placeholder-text: var(--color-gray-10);--color-border-panel: var(--color-primary-60);--color-border-menu: var(--color-primary-60);--color-primary-border: var(--color-primary);--color-accent-border: var(--color-accent1-20);--color-fg-panel-link: var(--color-primary-20);--color-fg-panel-link-active: var(--color-primary-40);--color-fg-menu-active: var(--color-primary-10);--color-nav-link: var(--color-gray-2);--color-nav-link-active: var(--color-gray-20);--color-primary-button: var(--color-accent1-150);--color-primary-button-hover: var(--color-accent1-125);--color-accent-button: var(--color-accent);--color-gray-button: var(--color-gray-100);--color-accent-button-hover: var(--color-accent-60);--color-filled-button-text: var(--color-gray-2);--color--outline-button-text: var(--color-gray-100);--color-main-icon: var(--color-gray-2);--color-primary-icon: var(--color-primary);--color-accent1-icon: var(--color-accent);--color-accent2-icon: var(--color-accent2);--color-accent3-icon: var(--color-accent3);--color-shadow-panel: var(--color-gray-100);--color-fg-panel-header-active: var(--color-gray-2);--color-fg-panel-active: var(---color-accent2-125)}ul[_ngcontent-%COMP%]{padding:0;list-style:none}label[_ngcontent-%COMP%]{font-size:24px}.help-content[_ngcontent-%COMP%]{background:var(--color-bg);color:var(--color-fg);padding:10px;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;margin-bottom:20px}"]})}var nu=(()=>{return(i=nu||(nu={})).AM="AM",i.PM="PM",nu;var i})(),Xs=(()=>{return(i=Xs||(Xs={})).TWELVE="hh:mm a",i.TWELVE_SHORT="h:m a",i.TWENTY_FOUR="HH:mm",i.TWENTY_FOUR_SHORT="H:m",Xs;var i})();function oI(i,t,e="minutes"){return"hours"===e?i.hour>=t.hour:"minutes"===e?i.hasSame(t,e)||i.valueOf()>t.valueOf():void 0}function aI(i,t,e="minutes"){return"hours"===e?i.hour<=t.hour:"minutes"===e?i.hasSame(t,e)||i.valueOf()<=t.valueOf():void 0}let Nh=(()=>{class i{static parseTime(e,n){const{numberingSystem:r,locale:o}=i.getLocaleOptionsByTime(e,n),s=2===e.split(" ").length?Xs.TWELVE_SHORT:Xs.TWENTY_FOUR_SHORT;return fn.fromFormat(e,s,{numberingSystem:r,locale:o})}static formatTime(e,n){if(!e)return"Invalid Time";const{format:r}=n,o=i.parseTime(e,n).setLocale(i.DEFAULT_LOCALE);return o.isValid?24!==r?o.toLocaleString(Object.assign(Object.assign({},fn.TIME_SIMPLE),{hour12:24!==r,numberingSystem:i.DEFAULT_NUMBERING_SYSTEM})).replace(/\u200E/g,"").replace(/\u202F/g," "):o.toISOTime({includeOffset:!1,suppressMilliseconds:!0,suppressSeconds:!0}).replace(/\u200E/g,"").replace(/\u202F/g," "):null}static toLocaleTimeString(e,n={}){const{format:r=i.DEFAULT_FORMAT,locale:o=i.DEFAULT_LOCALE}=n,a=24===r?"h23":"h12",s=Object.assign(Object.assign({},fn.TIME_SIMPLE),{hourCycle:a}),l=24===r?Xs.TWENTY_FOUR_SHORT:Xs.TWELVE_SHORT,d=Object.assign({locale:n.locale,numberingSystem:n.numberingSystem},s);return fn.fromFormat(e,l).setLocale(o).toLocaleString(d).replace(/\u202F/g," ")}static isTimeAvailable(e,n,r,o,a,s){if(!e)return;const l=this.parseTime(e,{format:s}),d=l.minute;if(a&&d==d&&d%a!=0)throw new Error(`Your minutes - ${d} doesn't match your minutesGap - ${a}`);const f=n&&!r&&oI(l,n,o),y=r&&!n&&aI(l,r,o),k=n&&r&&function qRe(i,t,e,n="minutes"){return"hours"===n?aI(i,e,n)&&oI(i,t,n):"minutes"===n?aI(i,e)&&oI(i,t):void 0}(l,n,r,o);return f||y||k||!n&&!r}static formatHour(e,n,r){if(24===n)return e;const o=r===nu.AM?e:e+12;return r===nu.AM&&12===o?0:r===nu.PM&&24===o?12:o}static fromDateTimeToString(e,n){const r=24===n?Xs.TWENTY_FOUR:Xs.TWELVE;return e.reconfigure({numberingSystem:i.DEFAULT_NUMBERING_SYSTEM,locale:i.DEFAULT_LOCALE}).toFormat(r).replace(/\u202F/g," ")}static getLocaleOptionsByTime(e,n){const r={numberingSystem:n.numberingSystem,locale:n.locale},o={numberingSystem:i.DEFAULT_NUMBERING_SYSTEM,locale:i.DEFAULT_LOCALE};return isNaN(parseInt(e,10))?r:o}}return i.DEFAULT_FORMAT=12,i.DEFAULT_LOCALE="en-US",i.DEFAULT_NUMBERING_SYSTEM="latn",i})();const KRe=new nt("TimeLocale",{providedIn:"root",factory:()=>Nh.DEFAULT_LOCALE}),ZRe=new nt("NumberingSystem",{providedIn:"root",factory:()=>Nh.DEFAULT_NUMBERING_SYSTEM});let XRe=(()=>{class i{static setOpts(e,n=Nh.DEFAULT_NUMBERING_SYSTEM){return{ngModule:i,providers:[{provide:KRe,useValue:e},{provide:ZRe,useValue:n}]}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[[ki,bd,XQ]]}),i})();function JRe(i,t){if(1&i){const e=pe();u(0,"span",10),N("click",function(){return R(e),L(g(3).exportForm())}),H(1,"i",14),m(2,"Export"),c()}}function eLe(i,t){if(1&i){const e=pe();u(0,"span",10),N("click",function(){return R(e),L(g(3).importForm())}),H(1,"i",15),m(2,"Import"),c()}}function tLe(i,t){if(1&i){const e=pe();u(0,"div")(1,"label"),m(2),c(),u(3,"div",9)(4,"span",10),N("click",function(){return R(e),L(g(2).saveForm())}),H(5,"i",11),m(6,"Save"),c(),u(7,"span",10),N("click",function(){return R(e),L(g(2).cancelForm())}),H(8,"i",12),m(9,"Cancel"),c(),w(10,JRe,3,0,"span",13),w(11,eLe,3,0,"span",13),c()()}if(2&i){const e=g(2);h(2),Re(e.title),h(8),p("ngIf",e.canExport),h(1),p("ngIf",e.importObjectName)}}function nLe(i,t){if(1&i){const e=pe();u(0,"span",18),N("click",function(){return L(R(e).$implicit.click())}),H(1,"i"),m(2),c()}if(2&i){const e=t.$implicit;h(1),Co(e.icon),h(1),Re(e.title)}}function iLe(i,t){if(1&i&&(u(0,"div",16)(1,"label"),m(2),c(),u(3,"div",9),w(4,nLe,3,4,"span",17),c()()),2&i){const e=g(2);h(2),Re(e.headerExtension.title),h(2),p("ngForOf",e.headerExtension.actions)}}function rLe(i,t){if(1&i&&(u(0,"div",19),m(1),c()),2&i){const e=g(2);h(1),Re(e.summary)}}const oLe=function(i){return{width:i}};function aLe(i,t){if(1&i&&(u(0,"div"),m(1),u(2,"div",25),H(3,"div",26),c()()),2&i){const e=g(3);h(1),Ke(" ",e.fileNameOrStatus," "),h(2),p("ngStyle",Ct(2,oLe,e.uploader.progress+"%"))}}const sLe=function(i){return{"nv-file-over":i}};function lLe(i,t){if(1&i){const e=pe();u(0,"div",20)(1,"span",21),N("fileOver",function(r){return R(e),L(g(2).fileOverBase(r))}),H(2,"i",22),c(),u(3,"span",23)(4,"span"),m(5,"Select File"),c(),H(6,"input",24),c(),w(7,aLe,4,4,"div",2),c()}if(2&i){const e=g(2);h(1),p("ngClass",Ct(4,sLe,e.hasBaseDropZoneOver))("uploader",e.uploader),h(5),p("uploader",e.uploader),h(1),p("ngIf",e.fileNameOrStatus)}}function cLe(i,t){if(1&i&&H(0,"app-form-field",29),2&i){const e=t.$implicit,n=g(3);p("field",e)("model",n.model)("view",n.view)}}function dLe(i,t){if(1&i&&(u(0,"div",27),w(1,cLe,1,3,"app-form-field",28),Ei(2),c()),2&i){const e=g(2);h(1),p("ngForOf",e.fields)}}function uLe(i,t){if(1&i&&(u(0,"div",1),w(1,tLe,12,3,"div",2),w(2,iLe,5,2,"div",3),u(3,"div",4),H(4,"div",5),w(5,rLe,2,1,"div",6),w(6,lLe,8,6,"div",7),w(7,dLe,3,1,"div",8),c()()),2&i){const e=g();h(1),p("ngIf",!e.hideToolBar),h(1),p("ngIf",e.headerExtension),h(3),p("ngIf",e.summary),h(1),p("ngIf",e.uploader&&e.isImporting),h(1),p("ngIf",!e.isImporting)}}const hLe=[[["footer"]]],pLe=["footer"];class $2 extends cv{constructor(t,e,n,r,o,a,s,l,d){super(t,e,n,r,o,a,s,l,d),super.readOnlyNameAndKey=!1}_blade;set blade(t){this._blade=t,t&&(this.form=t.form)}get blade(){return this._blade}static \u0275fac=function(e){return new(e||$2)(U(An),U(bi),U(Ti),U(Hd),U(Dc),U(Mc),U(Cl),U(zn),U(mh))};static \u0275cmp=Be({type:$2,selectors:[["app-blade-form"]],inputs:{blade:"blade"},features:[st],ngContentSelectors:pLe,decls:1,vars:1,consts:[["class","blade",4,"ngIf"],[1,"blade"],[4,"ngIf"],["class","blade-header",4,"ngIf"],[1,"blade-content"],[2,"clear","both"],["style","margin-bottom:15px",4,"ngIf"],["style","height:120px",4,"ngIf"],["style","margin-left:10px; margin-right:10px",4,"ngIf"],[1,"blade-actions","action"],[1,"action",3,"click"],[1,"fa-solid","fa-save","action"],[1,"fa","fa-arrow-left","action"],["class","action",3,"click",4,"ngIf"],[1,"fa","fa-download","action"],[1,"fa","fa-upload","action"],[1,"blade-header"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],[2,"margin-bottom","15px"],[2,"height","120px"],["ng2FileDrop","",1,"well","my-drop-zone",3,"ngClass","uploader","fileOver"],[1,"fa","fa-file-upload"],[1,"fileUpload","btn","btn-primary"],["type","file","ng2FileSelect","",1,"upload",3,"uploader"],[1,"progress"],["role","progressbar",1,"progress-bar",3,"ngStyle"],[2,"margin-left","10px","margin-right","10px"],[3,"field","model","view",4,"ngFor","ngForOf"],[3,"field","model","view"]],template:function(e,n){1&e&&(ro(hLe),w(0,uLe,8,5,"div",0)),2&e&&p("ngIf",n.fields)},dependencies:[Zi,jt,ct,As,rh,oh,lg],styles:[".form[_ngcontent-%COMP%]{border-bottom:1px solid silver}"]})}class ny{static \u0275fac=function(e){return new(e||ny)};static \u0275mod=Dt({type:ny});static \u0275inj=wt({imports:[Zv,ki,PV,bd,$S,nV,$6,WIe,uV,xC,z8,k2,XRe,J6,Rf,F1,oFe,$6,Lf,Jue,dwe,Dwe,N8,yFe,vRe,WS,Qv.forRoot(),Zv]})}du(Hb,[$2,jt,ct,x2],[]),du(lv,[Al,jt,ct,j2],[]);class z2{static \u0275fac=function(e){return new(e||z2)};static \u0275mod=Dt({type:z2});static \u0275inj=wt({imports:[ki]})}let hg={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const gLe=/[&<>"']/,mLe=/[&<>"']/g,_Le=/[<>"']|&(?!#?\w+;)/,vLe=/[<>"']|&(?!#?\w+;)/g,yLe={"&":"&","<":"<",">":">",'"':""","'":"'"},tY=i=>yLe[i];function Qr(i,t){if(t){if(gLe.test(i))return i.replace(mLe,tY)}else if(_Le.test(i))return i.replace(vLe,tY);return i}const bLe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function nY(i){return i.replace(bLe,(t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const CLe=/(^|[^\[])\^/g;function Bi(i,t){i="string"==typeof i?i:i.source,t=t||"";const e={replace:(n,r)=>(r=(r=r.source||r).replace(CLe,"$1"),i=i.replace(n,r),e),getRegex:()=>new RegExp(i,t)};return e}const wLe=/[^\w:]/g,DLe=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function iY(i,t,e){if(i){let n;try{n=decodeURIComponent(nY(e)).replace(wLe,"").toLowerCase()}catch{return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!DLe.test(e)&&(e=function TLe(i,t){W2[" "+i]||(W2[" "+i]=MLe.test(i)?i+"/":q2(i,"/",!0));const e=-1===(i=W2[" "+i]).indexOf(":");return"//"===t.substring(0,2)?e?t:i.replace(xLe,"$1")+t:"/"===t.charAt(0)?e?t:i.replace(kLe,"$1")+t:i+t}(t,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const W2={},MLe=/^[^:]+:\/*[^/]*$/,xLe=/^([^:]+:)[\s\S]*$/,kLe=/^([^:]+:\/*[^/]*)[\s\S]*$/,G2={exec:function(){}};function Js(i){let e,n,t=1;for(;t{let l=!1,d=a;for(;--d>=0&&"\\"===s[d];)l=!l;return l?"|":" |"}).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length1;)1&t&&(e+=i),t>>=1,i+=i;return e+i}function sY(i,t,e,n){const r=t.href,o=t.title?Qr(t.title):null,a=i[1].replace(/\\([\[\]])/g,"$1");if("!"!==i[0].charAt(0)){n.state.inLink=!0;const s={type:"link",raw:e,href:r,title:o,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,s}return{type:"image",raw:e,href:r,title:o,text:Qr(a)}}class sI{constructor(t){this.options=t||hg}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:q2(n,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const n=e[0],r=function ELe(i,t){const e=i.match(/^(\s+)(?:```)/);if(null===e)return t;const n=e[1];return t.split("\n").map(r=>{const o=r.match(/^\s+/);if(null===o)return r;const[a]=o;return a.length>=n.length?r.slice(n.length):r}).join("\n")}(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:r}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(/#$/.test(n)){const r=q2(n,"#");(this.options.pedantic||!r||/ $/.test(r))&&(n=r.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){const n=e[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:e[0],tokens:this.lexer.blockTokens(n,[]),text:n}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n,r,o,a,s,l,d,f,y,k,E,W,ee=e[1].trim();const he=ee.length>1,ge={type:"list",raw:"",ordered:he,start:he?+ee.slice(0,-1):"",loose:!1,items:[]};ee=he?`\\d{1,9}\\${ee.slice(-1)}`:`\\${ee}`,this.options.pedantic&&(ee=he?ee:"[*+-]");const Ce=new RegExp(`^( {0,3}${ee})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;t&&(W=!1,(e=Ce.exec(t))&&!this.rules.block.hr.test(t));){if(n=e[0],t=t.substring(n.length),f=e[2].split("\n",1)[0],y=t.split("\n",1)[0],this.options.pedantic?(a=2,E=f.trimLeft()):(a=e[2].search(/[^ ]/),a=a>4?1:a,E=f.slice(a),a+=e[1].length),l=!1,!f&&/^ *$/.test(y)&&(n+=y+"\n",t=t.substring(y.length+1),W=!0),!W){const ke=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),Pe=new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Ue=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),ze=new RegExp(`^ {0,${Math.min(3,a-1)}}#`);for(;t&&(k=t.split("\n",1)[0],f=k,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(Ue.test(f)||ze.test(f)||ke.test(f)||Pe.test(t)));){if(f.search(/[^ ]/)>=a||!f.trim())E+="\n"+f.slice(a);else{if(l)break;E+="\n"+f}!l&&!f.trim()&&(l=!0),n+=k+"\n",t=t.substring(k.length+1)}}ge.loose||(d?ge.loose=!0:/\n *\n *$/.test(n)&&(d=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(E),r&&(o="[ ] "!==r[0],E=E.replace(/^\[[ xX]\] +/,""))),ge.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:E}),ge.raw+=n}ge.items[ge.items.length-1].raw=n.trimRight(),ge.items[ge.items.length-1].text=E.trimRight(),ge.raw=ge.raw.trimRight();const we=ge.items.length;for(s=0;s"space"===Ue.type),Pe=ke.every(Ue=>{const ze=Ue.raw.split("");let Qe=0;for(const ht of ze)if("\n"===ht&&(Qe+=1),Qe>1)return!0;return!1});!ge.loose&&ke.length&&Pe&&(ge.loose=!0,ge.items[s].loose=!0)}return ge}}html(t){const e=this.rules.block.html.exec(t);if(e){const n={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};if(this.options.sanitize){const r=this.options.sanitizer?this.options.sanitizer(e[0]):Qr(e[0]);n.type="paragraph",n.text=r,n.tokens=this.lexer.inline(r)}return n}}def(t){const e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2]?e[2].replace(this.rules.inline._escapes,"$1"):e[2],title:e[3]?e[3].replace(this.rules.inline._escapes,"$1"):e[3]}}table(t){const e=this.rules.block.table.exec(t);if(e){const n={type:"table",header:rY(e[1]).map(r=>({text:r})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];let o,a,s,l,r=n.align.length;for(o=0;o({text:d}));for(r=n.header.length,a=0;a/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):Qr(e[0]):e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const n=e[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const a=q2(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else{const a=function SLe(i,t){if(-1===i.indexOf(t[1]))return-1;const e=i.length;let n=0,r=0;for(;r-1){const l=(0===e[0].indexOf("!")?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let r=e[2],o="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);a&&(r=a[1],o=a[3])}else o=e[3]?e[3].slice(1,-1):"";return r=r.trim(),/^$/.test(n)?r.slice(1):r.slice(1,-1)),sY(e,{href:r&&r.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let r=(n[2]||n[1]).replace(/\s+/g," ");if(r=e[r.toLowerCase()],!r||!r.href){const o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return sY(n,r,n[0],this.lexer)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrong.lDelim.exec(t);if(!r||r[3]&&n.match(/[\p{L}\p{N}]/u))return;const o=r[1]||r[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){const a=r[0].length-1;let s,l,d=a,f=0;const y="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(y.lastIndex=0,e=e.slice(-1*t.length+a);null!=(r=y.exec(e));){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(l=s.length,r[3]||r[4]){d+=l;continue}if((r[5]||r[6])&&a%3&&!((a+l)%3)){f+=l;continue}if(d-=l,d>0)continue;l=Math.min(l,l+d+f);const k=t.slice(0,a+r.index+(r[0].length-s.length)+l);if(Math.min(a,l)%2){const W=k.slice(1,-1);return{type:"em",raw:k,text:W,tokens:this.lexer.inlineTokens(W)}}const E=k.slice(2,-2);return{type:"strong",raw:k,text:E,tokens:this.lexer.inlineTokens(E)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(/\n/g," ");const r=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return r&&o&&(n=n.substring(1,n.length-1)),n=Qr(n,!0),{type:"codespan",raw:e[0],text:n}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t,e){const n=this.rules.inline.autolink.exec(t);if(n){let r,o;return"@"===n[2]?(r=Qr(this.options.mangle?e(n[1]):n[1]),o="mailto:"+r):(r=Qr(n[1]),o=r),{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(t,e){let n;if(n=this.rules.inline.url.exec(t)){let r,o;if("@"===n[2])r=Qr(this.options.mangle?e(n[0]):n[0]),o="mailto:"+r;else{let a;do{a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(a!==n[0]);r=Qr(n[0]),o="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t,e){const n=this.rules.inline.text.exec(t);if(n){let r;return r=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Qr(n[0]):n[0]:Qr(this.options.smartypants?e(n[0]):n[0]),{type:"text",raw:n[0],text:r}}}}const an={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:G2,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};an.def=Bi(an.def).replace("label",an._label).replace("title",an._title).getRegex(),an.bullet=/(?:[*+-]|\d{1,9}[.)])/,an.listItemStart=Bi(/^( *)(bull) */).replace("bull",an.bullet).getRegex(),an.list=Bi(an.list).replace(/bull/g,an.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+an.def.source+")").getRegex(),an._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",an._comment=/|$)/,an.html=Bi(an.html,"i").replace("comment",an._comment).replace("tag",an._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),an.paragraph=Bi(an._paragraph).replace("hr",an.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",an._tag).getRegex(),an.blockquote=Bi(an.blockquote).replace("paragraph",an.paragraph).getRegex(),an.normal=Js({},an),an.gfm=Js({},an.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),an.gfm.table=Bi(an.gfm.table).replace("hr",an.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",an._tag).getRegex(),an.gfm.paragraph=Bi(an._paragraph).replace("hr",an.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",an.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",an._tag).getRegex(),an.pedantic=Js({},an.normal,{html:Bi("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",an._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:G2,paragraph:Bi(an.normal._paragraph).replace("hr",an.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",an.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Nt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:G2,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:G2,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),t+="&#"+n+";";return t}Nt._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Nt.punctuation=Bi(Nt.punctuation).replace(/punctuation/g,Nt._punctuation).getRegex(),Nt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Nt.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,Nt._comment=Bi(an._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Nt.emStrong.lDelim=Bi(Nt.emStrong.lDelim).replace(/punct/g,Nt._punctuation).getRegex(),Nt.emStrong.rDelimAst=Bi(Nt.emStrong.rDelimAst,"g").replace(/punct/g,Nt._punctuation).getRegex(),Nt.emStrong.rDelimUnd=Bi(Nt.emStrong.rDelimUnd,"g").replace(/punct/g,Nt._punctuation).getRegex(),Nt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Nt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Nt._email=/[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])?)+(?![-_])/,Nt.autolink=Bi(Nt.autolink).replace("scheme",Nt._scheme).replace("email",Nt._email).getRegex(),Nt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Nt.tag=Bi(Nt.tag).replace("comment",Nt._comment).replace("attribute",Nt._attribute).getRegex(),Nt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Nt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Nt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Nt.link=Bi(Nt.link).replace("label",Nt._label).replace("href",Nt._href).replace("title",Nt._title).getRegex(),Nt.reflink=Bi(Nt.reflink).replace("label",Nt._label).replace("ref",an._label).getRegex(),Nt.nolink=Bi(Nt.nolink).replace("ref",an._label).getRegex(),Nt.reflinkSearch=Bi(Nt.reflinkSearch,"g").replace("reflink",Nt.reflink).replace("nolink",Nt.nolink).getRegex(),Nt.normal=Js({},Nt),Nt.pedantic=Js({},Nt.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Bi(/^!?\[(label)\]\((.*?)\)/).replace("label",Nt._label).getRegex(),reflink:Bi(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Nt._label).getRegex()}),Nt.gfm=Js({},Nt.normal,{escape:Bi(Nt.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\l+" ".repeat(d.length));t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(s=>!!(n=s.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),1===n.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),r=e[e.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?e.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),r=e[e.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),e.push(n);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let s=1/0;const l=t.slice(1);let d;this.options.extensions.startBlock.forEach(function(f){d=f.call({lexer:this},l),"number"==typeof d&&d>=0&&(s=Math.min(s,d))}),s<1/0&&s>=0&&(o=t.substring(0,s+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o))){r=e[e.length-1],a&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(n),a=o.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),r=e[e.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(n);continue}if(t){const s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n,r,o,s,l,d,a=t;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(a));)f.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+aY("a",s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,s.index)+"["+aY("a",s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,s.index+s[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(l||(d=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>!!(n=f.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),r=e[e.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),r=e[e.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);continue}if(n=this.tokenizer.emStrong(t,a,d)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.autolink(t,lY)){t=t.substring(n.raw.length),e.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t,lY))){t=t.substring(n.raw.length),e.push(n);continue}if(o=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const y=t.slice(1);let k;this.options.extensions.startInline.forEach(function(E){k=E.call({lexer:this},y),"number"==typeof k&&k>=0&&(f=Math.min(f,k))}),f<1/0&&f>=0&&(o=t.substring(0,f+1))}if(n=this.tokenizer.inlineText(o,ALe)){t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(d=n.raw.slice(-1)),l=!0,r=e[e.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}return e}}class pg{constructor(t){this.options=t||hg}code(t,e,n){const r=(e||"").match(/\S*/)[0];if(this.options.highlight){const o=this.options.highlight(t,r);null!=o&&o!==t&&(n=!0,t=o)}return t=t.replace(/\n$/,"")+"\n",r?'
'+(n?t:Qr(t,!0))+"
\n":"
"+(n?t:Qr(t,!0))+"
\n"}blockquote(t){return`
\n${t}
\n`}html(t){return t}heading(t,e,n,r){return this.options.headerIds?`${t}\n`:`${t}\n`}hr(){return this.options.xhtml?"
\n":"
\n"}list(t,e,n){const r=e?"ol":"ul";return"<"+r+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"\n"}listitem(t){return`
  • ${t}
  • \n`}checkbox(t){return" "}paragraph(t){return`

    ${t}

    \n`}table(t,e){return e&&(e=`${e}`),"\n\n"+t+"\n"+e+"
    \n"}tablerow(t){return`\n${t}\n`}tablecell(t,e){const n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`\n`}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}`}br(){return this.options.xhtml?"
    ":"
    "}del(t){return`${t}`}link(t,e,n){if(null===(t=iY(this.options.sanitize,this.options.baseUrl,t)))return n;let r='",r}image(t,e,n){if(null===(t=iY(this.options.sanitize,this.options.baseUrl,t)))return n;let r=`${n}":">",r}text(t){return t}}class cY{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,e,n){return""+n}image(t,e,n){return""+n}br(){return""}}class dY{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,e){let n=t,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[t];do{r++,n=t+"-"+r}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=r,this.seen[n]=0),n}slug(t,e={}){const n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)}}class Nl{constructor(t){this.options=t||hg,this.options.renderer=this.options.renderer||new pg,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new cY,this.slugger=new dY}static parse(t,e){return new Nl(e).parse(t)}static parseInline(t,e){return new Nl(e).parseInline(t)}parse(t,e=!0){let r,o,a,s,l,d,f,y,k,E,W,ee,he,ge,Ce,we,ke,Pe,Ue,n="";const ze=t.length;for(r=0;r0&&"paragraph"===Ce.tokens[0].type?(Ce.tokens[0].text=Pe+" "+Ce.tokens[0].text,Ce.tokens[0].tokens&&Ce.tokens[0].tokens.length>0&&"text"===Ce.tokens[0].tokens[0].type&&(Ce.tokens[0].tokens[0].text=Pe+" "+Ce.tokens[0].tokens[0].text)):Ce.tokens.unshift({type:"text",text:Pe}):ge+=Pe),ge+=this.parse(Ce.tokens,he),k+=this.renderer.listitem(ge,ke,we);n+=this.renderer.list(k,W,ee);continue;case"html":n+=this.renderer.html(E.text);continue;case"paragraph":n+=this.renderer.paragraph(this.parseInline(E.tokens));continue;case"text":for(k=E.tokens?this.parseInline(E.tokens):E.text;r+1"u"||null===i)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof i)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected");if("function"==typeof t&&(e=t,t=null),oY(t=Js({},mn.defaults,t||{})),e){const r=t.highlight;let o;try{o=Uc.lex(i,t)}catch(l){return e(l)}const a=function(l){let d;if(!l)try{t.walkTokens&&mn.walkTokens(o,t.walkTokens),d=Nl.parse(o,t)}catch(f){l=f}return t.highlight=r,l?e(l):e(null,d)};if(!r||r.length<3||(delete t.highlight,!o.length))return a();let s=0;return mn.walkTokens(o,function(l){"code"===l.type&&(s++,setTimeout(()=>{r(l.text,l.lang,function(d,f){if(d)return a(d);null!=f&&f!==l.text&&(l.text=f,l.escaped=!0),s--,0===s&&a()})},0))}),void(0===s&&a())}function n(r){if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+Qr(r.message+"",!0)+"
    ";throw r}try{const r=Uc.lex(i,t);if(t.walkTokens){if(t.async)return Promise.all(mn.walkTokens(r,t.walkTokens)).then(()=>Nl.parse(r,t)).catch(n);mn.walkTokens(r,t.walkTokens)}return Nl.parse(r,t)}catch(r){n(r)}}mn.options=mn.setOptions=function(i){return Js(mn.defaults,i),function fLe(i){hg=i}(mn.defaults),mn},mn.getDefaults=function eY(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},mn.defaults=hg,mn.use=function(...i){const t=Js({},...i),e=mn.defaults.extensions||{renderers:{},childTokens:{}};let n;i.forEach(r=>{if(r.extensions&&(n=!0,r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const a=e.renderers?e.renderers[o.name]:null;e.renderers[o.name]=a?function(...s){let l=o.renderer.apply(this,s);return!1===l&&(l=a.apply(this,s)),l}:o.renderer}if(o.tokenizer){if(!o.level||"block"!==o.level&&"inline"!==o.level)throw new Error("extension level must be 'block' or 'inline'");e[o.level]?e[o.level].unshift(o.tokenizer):e[o.level]=[o.tokenizer],o.start&&("block"===o.level?e.startBlock?e.startBlock.push(o.start):e.startBlock=[o.start]:"inline"===o.level&&(e.startInline?e.startInline.push(o.start):e.startInline=[o.start]))}o.childTokens&&(e.childTokens[o.name]=o.childTokens)})),r.renderer){const o=mn.defaults.renderer||new pg;for(const a in r.renderer){const s=o[a];o[a]=(...l)=>{let d=r.renderer[a].apply(o,l);return!1===d&&(d=s.apply(o,l)),d}}t.renderer=o}if(r.tokenizer){const o=mn.defaults.tokenizer||new sI;for(const a in r.tokenizer){const s=o[a];o[a]=(...l)=>{let d=r.tokenizer[a].apply(o,l);return!1===d&&(d=s.apply(o,l)),d}}t.tokenizer=o}if(r.walkTokens){const o=mn.defaults.walkTokens;t.walkTokens=function(a){let s=[];return s.push(r.walkTokens.call(this,a)),o&&(s=s.concat(o.call(this,a))),s}}n&&(t.extensions=e),mn.setOptions(t)})},mn.walkTokens=function(i,t){let e=[];for(const n of i)switch(e=e.concat(t.call(mn,n)),n.type){case"table":for(const r of n.header)e=e.concat(mn.walkTokens(r.tokens,t));for(const r of n.rows)for(const o of r)e=e.concat(mn.walkTokens(o.tokens,t));break;case"list":e=e.concat(mn.walkTokens(n.items,t));break;default:mn.defaults.extensions&&mn.defaults.extensions.childTokens&&mn.defaults.extensions.childTokens[n.type]?mn.defaults.extensions.childTokens[n.type].forEach(function(r){e=e.concat(mn.walkTokens(n[r],t))}):n.tokens&&(e=e.concat(mn.walkTokens(n.tokens,t)))}return e},mn.parseInline=function(i,t){if(typeof i>"u"||null===i)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof i)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected");oY(t=Js({},mn.defaults,t||{}));try{const e=Uc.lexInline(i,t);return t.walkTokens&&mn.walkTokens(e,t.walkTokens),Nl.parseInline(e,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+Qr(e.message+"",!0)+"
    ";throw e}},mn.Parser=Nl,mn.parser=Nl.parse,mn.Renderer=pg,mn.TextRenderer=cY,mn.Lexer=Uc,mn.lexer=Uc.lex,mn.Tokenizer=sI,mn.Slugger=dY,mn.parse=mn;let lI=(()=>{class i{constructor(){this._buttonClick$=new be,this.copied$=this._buttonClick$.pipe(so(()=>jr(At(!0),Bu(3e3).pipe(c1(!1)))),rf(),z6(1)),this.copiedText$=this.copied$.pipe(cr(!1),Ve(e=>e?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=Be({type:i,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(e,n){1&e&&(u(0,"button",0),N("click",function(){return n.onCopyToClipboardClick()}),Qt(1,"async"),m(2),Qt(3,"async"),c()),2&e&&(Zt("copied",Xt(1,3,n.copied$)),h(2),Re(Xt(3,5,n.copiedText$)))},dependencies:[U0],encapsulation:2,changeDetection:0}),i})();class RLe{}class uY{}const hY=new nt("SECURITY_CONTEXT");let cI=(()=>{class i{constructor(e,n,r,o,a,s){this.platform=e,this.securityContext=n,this.http=r,this.clipboardOptions=o,this.sanitizer=s,this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this.DEFAULT_MARKED_OPTIONS={renderer:new pg},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this._reload$=new be,this.reload$=this._reload$.asObservable(),this.options=a}get options(){return this._options}set options(e){this._options={...this.DEFAULT_MARKED_OPTIONS,...e}}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}parse(e,n=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:r,inline:o,emoji:a,mermaid:s,markedOptions:l=this.options}=n;s&&(this.renderer=this.extendRenderer(l.renderer||new pg));const d=this.trimIndentation(e),f=r?this.decodeHtml(d):d,y=a?this.parseEmoji(f):f,k=this.parseMarked(y,l,o);return this.sanitizer.sanitize(this.securityContext,k)||""}render(e,n=this.DEFAULT_RENDER_OPTIONS,r){const{clipboard:o,clipboardOptions:a,katex:s,katexOptions:l,mermaid:d,mermaidOptions:f}=n;o&&this.renderClipboard(e,r,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...a}),s&&this.renderKatex(e,{...this.DEFAULT_KATEX_OPTIONS,...l}),d&&this.renderMermaid(e,{...this.DEFAULT_MERMAID_OPTIONS,...f}),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(Ve(n=>this.handleExtension(e,n)))}highlight(e){if(!Fs(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);const n=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(n,r=>r.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!Fs(this.platform))return e;const n=document.createElement("textarea");return n.innerHTML=e,n.value}extendRenderer(e){const n=e;if(!0===n.\u0275NgxMarkdownRendererExtended)return e;const r=e.code;return e.code=function(o,a,s){return"mermaid"===a?`
    ${o}
    `:r.call(this,o,a,s)},n.\u0275NgxMarkdownRendererExtended=!0,e}handleExtension(e,n){const r=e.lastIndexOf("://"),o=r>-1?e.substring(r+4):e,a=o.lastIndexOf("/"),s=a>-1?o.substring(a+1).split("?")[0]:"",l=s.lastIndexOf("."),d=l>-1?s.substring(l+1):"";return d&&"md"!==d?"```"+d+"\n"+n+"\n```":n}parseMarked(e,n,r=!1){return Fs(this.platform)?r?mn.parseInline(e,n):mn.parse(e,n):e}parseEmoji(e){if(!Fs(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}renderKatex(e,n){if(Fs(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(e,n)}}renderClipboard(e,n,r){if(!Fs(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!n)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:o,buttonTemplate:a}=r,s=e.querySelectorAll("pre");for(let l=0;ly.style.opacity="1",d.onmouseout=()=>y.style.opacity="0",k=o?n.createComponent(o).hostView:a?n.createEmbeddedView(a):n.createComponent(lI).hostView,k.rootNodes.forEach(W=>{W.onmouseover=()=>y.style.opacity="1",y.appendChild(W),E=new ClipboardJS(W,{text:()=>d.innerText})}),k.onDestroy(()=>E.destroy())}}renderMermaid(e,n=this.DEFAULT_MERMAID_OPTIONS){if(!Fs(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.init>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const r=e.querySelectorAll(".mermaid");0!==r.length&&(mermaid.initialize(n),mermaid.init(r))}trimIndentation(e){if(!e)return"";let n;return e.split("\n").map(r=>{let o=n;return r.length>0&&(o=isNaN(o)?r.search(/\S|$/):Math.min(r.search(/\S|$/),o)),isNaN(n)&&(n=o),o?r.substring(o):r}).join("\n")}}return i.\u0275fac=function(e){return new(e||i)(Ee(dd),Ee(hY),Ee(_d,8),Ee(RLe,8),Ee(uY,8),Ee(Ps))},i.\u0275prov=$e({token:i,factory:i.\u0275fac}),i})(),ULe=(()=>{class i{static forRoot(e){return{ngModule:i,providers:[cI,e&&e.loader||[],e&&e.clipboardOptions||[],e&&e.markedOptions||[],{provide:hY,useValue:e&&null!=e.sanitize?e.sanitize:di.HTML}]}}static forChild(){return{ngModule:i}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({imports:[ki]}),i})();var pY;!function(i){let t;var r;let e,n;(r=t=i.SecurityLevel||(i.SecurityLevel={})).Strict="strict",r.Loose="loose",r.Antiscript="antiscript",r.Sandbox="sandbox",function(r){r.Base="base",r.Forest="forest",r.Dark="dark",r.Default="default",r.Neutral="neutral"}(e=i.Theme||(i.Theme={})),function(r){r[r.Debug=1]="Debug",r[r.Info=2]="Info",r[r.Warn=3]="Warn",r[r.Error=4]="Error",r[r.Fatal=5]="Fatal"}(n=i.LogLevel||(i.LogLevel={}))}(pY||(pY={}));var pa=V(6036);V(2813),function Z2(){return typeof window>"u"}()||function K2(i,t,e){i[t]=e}(pa,"verbosity",pa.VerbosityLevel.ERRORS);let zLe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=Dt({type:i}),i.\u0275inj=wt({}),i})();function WLe(){const i=new pg;return i.link=(t,e,n)=>t.startsWith("./")?`
    ${n}`:`${n}++++`,i.blockquote=t=>'

    '+t+"

    ",{renderer:i,gfm:!0,breaks:!1,pedantic:!1,smartLists:!0,smartypants:!1}}class Q2{static \u0275fac=function(e){return new(e||Q2)};static \u0275mod=Dt({type:Q2});static \u0275inj=wt({imports:[zLe,F1,WS,ny,z2,bd,ki,Rf,ULe.forRoot({markedOptions:{provide:uY,useFactory:WLe}})]})}class X2{static \u0275fac=function(e){return new(e||X2)};static \u0275mod=Dt({type:X2,bootstrap:[Vb]});static \u0275inj=wt({providers:[Yd,{provide:Ik,useClass:d_,multi:!0}],imports:[Q2,ny,y3,bd,Bb,QZ]})}(function oq(){vO=!1})(),TZ().bootstrapModule(X2).catch(i=>console.error(i))},4901:Te=>{"use strict";var I={single_source_shortest_paths:function(V,b,_){var x={},C={};C[b]=0;var M,A,P,B,ce,ne,D=I.PriorityQueue.make();for(D.push(b,0);!D.empty();)for(P in B=(M=D.pop()).cost,ce=V[A=M.value]||{})ce.hasOwnProperty(P)&&(ne=B+ce[P],(typeof C[P]>"u"||C[P]>ne)&&(C[P]=ne,D.push(P,ne),x[P]=A));if(typeof _<"u"&&typeof C[_]>"u"){var j=["Could not find a path from ",b," to ",_,"."].join("");throw new Error(j)}return x},extract_shortest_path_from_predecessor_list:function(V,b){for(var _=[],x=b;x;)_.push(x),x=V[x];return _.reverse(),_},find_path:function(V,b,_){var x=I.single_source_shortest_paths(V,b,_);return I.extract_shortest_path_from_predecessor_list(x,_)},PriorityQueue:{make:function(V){var x,b=I.PriorityQueue,_={};for(x in V=V||{},b)b.hasOwnProperty(x)&&(_[x]=b[x]);return _.queue=[],_.sorter=V.sorter||b.default_sorter,_},default_sorter:function(V,b){return V.cost-b.cost},push:function(V,b){this.queue.push({value:V,cost:b}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Te.exports=I},8419:Te=>{"use strict";Te.exports=function(V){for(var b=[],_=V.length,x=0;x<_;x++){var C=V.charCodeAt(x);if(C>=55296&&C<=56319&&_>x+1){var D=V.charCodeAt(x+1);D>=56320&&D<=57343&&(C=1024*(C-55296)+D-56320+65536,x+=1)}C<128?b.push(C):C<2048?(b.push(C>>6|192),b.push(63&C|128)):C<55296||C>=57344&&C<65536?(b.push(C>>12|224),b.push(C>>6&63|128),b.push(63&C|128)):C>=65536&&C<=1114111?(b.push(C>>18|240),b.push(C>>12&63|128),b.push(C>>6&63|128),b.push(63&C|128)):b.push(239,191,189)}return new Uint8Array(b).buffer}},7088:function(Te,I,V){!function(b){"use strict";b.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(x){return/^nm$/i.test(x)},meridiem:function(x,C,D){return x<12?D?"vm":"VM":D?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(x){return x+(1===x||8===x||x>=20?"ste":"de")},week:{dow:1,doy:4}})}(V(5439))},2502:function(Te,I,V){!function(b){"use strict";var _=function(A){return 0===A?0:1===A?1:2===A?2:A%100>=3&&A%100<=10?3:A%100>=11?4:5},x={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},C=function(A){return function(P,B,ce,X){var ne=_(P),Q=x[A][_(P)];return 2===ne&&(Q=Q[B?0:1]),Q.replace(/%d/i,P)}},D=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];b.defineLocale("ar-dz",{months:D,monthsShort:D,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(A){return"\u0645"===A},meridiem:function(A,P,B){return A<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:C("s"),ss:C("s"),m:C("m"),mm:C("m"),h:C("h"),hh:C("h"),d:C("d"),dd:C("d"),M:C("M"),MM:C("M"),y:C("y"),yy:C("y")},postformat:function(A){return A.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(V(5439))},128:function(Te,I,V){!function(b){"use strict";b.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(V(5439))},4519:function(Te,I,V){!function(b){"use strict";var _={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},x=function(P){return 0===P?0:1===P?1:2===P?2:P%100>=3&&P%100<=10?3:P%100>=11?4:5},C={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},D=function(P){return function(B,ce,X,ne){var Q=x(B),fe=C[P][x(B)];return 2===Q&&(fe=fe[ce?0:1]),fe.replace(/%d/i,B)}},M=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];b.defineLocale("ar-ly",{months:M,monthsShort:M,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(P){return"\u0645"===P},meridiem:function(P,B,ce){return P<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:D("s"),ss:D("s"),m:D("m"),mm:D("m"),h:D("h"),hh:D("h"),d:D("d"),dd:D("d"),M:D("M"),MM:D("M"),y:D("y"),yy:D("y")},preparse:function(P){return P.replace(/\u060c/g,",")},postformat:function(P){return P.replace(/\d/g,function(B){return _[B]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(V(5439))},5443:function(Te,I,V){!function(b){"use strict";b.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(V(5439))},7642:function(Te,I,V){!function(b){"use strict";var _={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},x={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};b.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(D){return"\u0645"===D},meridiem:function(D,M,A){return D<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(D){return D.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(M){return x[M]}).replace(/\u060c/g,",")},postformat:function(D){return D.replace(/\d/g,function(M){return _[M]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(V(5439))},8592:function(Te,I,V){!function(b){"use strict";b.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(V(5439))},7038:function(Te,I,V){!function(b){"use strict";var _={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},x={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},C=function(B){return 0===B?0:1===B?1:2===B?2:B%100>=3&&B%100<=10?3:B%100>=11?4:5},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},M=function(B){return function(ce,X,ne,Q){var fe=C(ce),j=D[B][C(ce)];return 2===fe&&(j=j[X?0:1]),j.replace(/%d/i,ce)}},A=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];b.defineLocale("ar",{months:A,monthsShort:A,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(B){return"\u0645"===B},meridiem:function(B,ce,X){return B<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:M("s"),ss:M("s"),m:M("m"),mm:M("m"),h:M("h"),hh:M("h"),d:M("d"),dd:M("d"),M:M("M"),MM:M("M"),y:M("y"),yy:M("y")},preparse:function(B){return B.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(ce){return x[ce]}).replace(/\u060c/g,",")},postformat:function(B){return B.replace(/\d/g,function(ce){return _[ce]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(V(5439))},1213:function(Te,I,V){!function(b){"use strict";var _={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};b.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(C){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(C)},meridiem:function(C,D,M){return C<4?"gec\u0259":C<12?"s\u0259h\u0259r":C<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(C){if(0===C)return C+"-\u0131nc\u0131";var D=C%10;return C+(_[D]||_[C%100-D]||_[C>=100?100:null])},week:{dow:1,doy:7}})}(V(5439))},9191:function(Te,I,V){!function(b){"use strict";function x(D,M,A){return"m"===A?M?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===A?M?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":D+" "+function _(D,M){var A=D.split("_");return M%10==1&&M%100!=11?A[0]:M%10>=2&&M%10<=4&&(M%100<10||M%100>=20)?A[1]:A[2]}({ss:M?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:M?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:M?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[A],+D)}b.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:x,mm:x,h:x,hh:x,d:"\u0434\u0437\u0435\u043d\u044c",dd:x,M:"\u043c\u0435\u0441\u044f\u0446",MM:x,y:"\u0433\u043e\u0434",yy:x},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(D){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(D)},meridiem:function(D,M,A){return D<4?"\u043d\u043e\u0447\u044b":D<12?"\u0440\u0430\u043d\u0456\u0446\u044b":D<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(D,M){switch(M){case"M":case"d":case"DDD":case"w":case"W":return D%10!=2&&D%10!=3||D%100==12||D%100==13?D+"-\u044b":D+"-\u0456";case"D":return D+"-\u0433\u0430";default:return D}},week:{dow:1,doy:7}})}(V(5439))},322:function(Te,I,V){!function(b){"use strict";b.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(x){var C=x%10,D=x%100;return 0===x?x+"-\u0435\u0432":0===D?x+"-\u0435\u043d":D>10&&D<20?x+"-\u0442\u0438":1===C?x+"-\u0432\u0438":2===C?x+"-\u0440\u0438":7===C||8===C?x+"-\u043c\u0438":x+"-\u0442\u0438"},week:{dow:1,doy:7}})}(V(5439))},8042:function(Te,I,V){!function(b){"use strict";b.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(V(5439))},5903:function(Te,I,V){!function(b){"use strict";var _={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},x={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};b.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(D){return D.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(M){return x[M]})},postformat:function(D){return D.replace(/\d/g,function(M){return _[M]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(D,M){return 12===D&&(D=0),"\u09b0\u09be\u09a4"===M?D<4?D:D+12:"\u09ad\u09cb\u09b0"===M||"\u09b8\u0995\u09be\u09b2"===M?D:"\u09a6\u09c1\u09aa\u09c1\u09b0"===M?D>=3?D:D+12:"\u09ac\u09bf\u0995\u09be\u09b2"===M||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===M?D+12:void 0},meridiem:function(D,M,A){return D<4?"\u09b0\u09be\u09a4":D<6?"\u09ad\u09cb\u09b0":D<12?"\u09b8\u0995\u09be\u09b2":D<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":D<18?"\u09ac\u09bf\u0995\u09be\u09b2":D<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(V(5439))},9620:function(Te,I,V){!function(b){"use strict";var _={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},x={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};b.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(D){return D.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(M){return x[M]})},postformat:function(D){return D.replace(/\d/g,function(M){return _[M]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(D,M){return 12===D&&(D=0),"\u09b0\u09be\u09a4"===M&&D>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===M&&D<5||"\u09ac\u09bf\u0995\u09be\u09b2"===M?D+12:D},meridiem:function(D,M,A){return D<4?"\u09b0\u09be\u09a4":D<10?"\u09b8\u0995\u09be\u09b2":D<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":D<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(V(5439))},9645:function(Te,I,V){!function(b){"use strict";var _={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},x={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};b.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(D){return D.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(M){return x[M]})},postformat:function(D){return D.replace(/\d/g,function(M){return _[M]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(D,M){return 12===D&&(D=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===M&&D>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===M&&D<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===M?D+12:D},meridiem:function(D,M,A){return D<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":D<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":D<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":D<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(V(5439))},5020:function(Te,I,V){!function(b){"use strict";function _(j,J,te){return j+" "+function D(j,J){return 2===J?function M(j){var J={m:"v",b:"v",d:"z"};return void 0===J[j.charAt(0)]?j:J[j.charAt(0)]+j.substring(1)}(j):j}({mm:"munutenn",MM:"miz",dd:"devezh"}[te],j)}function C(j){return j>9?C(j%10):j}var A=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],P=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,Q=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];b.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:Q,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:Q,monthsRegex:P,monthsShortRegex:P,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:A,longMonthsParse:A,shortMonthsParse:A,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:_,h:"un eur",hh:"%d eur",d:"un devezh",dd:_,M:"ur miz",MM:_,y:"ur bloaz",yy:function x(j){switch(C(j)){case 1:case 3:case 4:case 5:case 9:return j+" bloaz";default:return j+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(j){return j+(1===j?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(j){return"g.m."===j},meridiem:function(j,J,te){return j<12?"a.m.":"g.m."}})}(V(5439))},4792:function(Te,I,V){!function(b){"use strict";function _(C,D,M){var A=C+" ";switch(M){case"ss":return A+(1===C?"sekunda":2===C||3===C||4===C?"sekunde":"sekundi");case"m":return D?"jedna minuta":"jedne minute";case"mm":return A+(1===C?"minuta":2===C||3===C||4===C?"minute":"minuta");case"h":return D?"jedan sat":"jednog sata";case"hh":return A+(1===C?"sat":2===C||3===C||4===C?"sata":"sati");case"dd":return A+(1===C?"dan":"dana");case"MM":return A+(1===C?"mjesec":2===C||3===C||4===C?"mjeseca":"mjeseci");case"yy":return A+(1===C?"godina":2===C||3===C||4===C?"godine":"godina")}}b.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:_,m:_,mm:_,h:_,hh:_,d:"dan",dd:_,M:"mjesec",MM:_,y:"godinu",yy:_},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(V(5439))},7980:function(Te,I,V){!function(b){"use strict";b.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(x,C){var D=1===x?"r":2===x?"n":3===x?"r":4===x?"t":"\xe8";return("w"===C||"W"===C)&&(D="a"),x+D},week:{dow:1,doy:4}})}(V(5439))},7322:function(Te,I,V){!function(b){"use strict";var _={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},x="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),C=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],D=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function M(B){return B>1&&B<5&&1!=~~(B/10)}function A(B,ce,X,ne){var Q=B+" ";switch(X){case"s":return ce||ne?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return ce||ne?Q+(M(B)?"sekundy":"sekund"):Q+"sekundami";case"m":return ce?"minuta":ne?"minutu":"minutou";case"mm":return ce||ne?Q+(M(B)?"minuty":"minut"):Q+"minutami";case"h":return ce?"hodina":ne?"hodinu":"hodinou";case"hh":return ce||ne?Q+(M(B)?"hodiny":"hodin"):Q+"hodinami";case"d":return ce||ne?"den":"dnem";case"dd":return ce||ne?Q+(M(B)?"dny":"dn\xed"):Q+"dny";case"M":return ce||ne?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return ce||ne?Q+(M(B)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):Q+"m\u011bs\xedci";case"y":return ce||ne?"rok":"rokem";case"yy":return ce||ne?Q+(M(B)?"roky":"let"):Q+"lety"}}b.defineLocale("cs",{months:_,monthsShort:x,monthsRegex:D,monthsShortRegex:D,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:C,longMonthsParse:C,shortMonthsParse:C,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:A,ss:A,m:A,mm:A,h:A,hh:A,d:A,dd:A,M:A,MM:A,y:A,yy:A},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},365:function(Te,I,V){!function(b){"use strict";b.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(x){return x+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(x)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(x)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(V(5439))},2092:function(Te,I,V){!function(b){"use strict";b.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(x){var D="";return x>20?D=40===x||50===x||60===x||80===x||100===x?"fed":"ain":x>0&&(D=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][x]),x+D},week:{dow:1,doy:4}})}(V(5439))},7387:function(Te,I,V){!function(b){"use strict";b.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},9459:function(Te,I,V){!function(b){"use strict";function _(C,D,M,A){var P={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[C+" Tage",C+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[C+" Monate",C+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[C+" Jahre",C+" Jahren"]};return D?P[M][0]:P[M][1]}b.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:_,mm:"%d Minuten",h:_,hh:"%d Stunden",d:_,dd:_,w:_,ww:"%d Wochen",M:_,MM:_,y:_,yy:_},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},3694:function(Te,I,V){!function(b){"use strict";function _(C,D,M,A){var P={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[C+" Tage",C+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[C+" Monate",C+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[C+" Jahre",C+" Jahren"]};return D?P[M][0]:P[M][1]}b.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:_,mm:"%d Minuten",h:_,hh:"%d Stunden",d:_,dd:_,w:_,ww:"%d Wochen",M:_,MM:_,y:_,yy:_},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},4307:function(Te,I,V){!function(b){"use strict";function _(C,D,M,A){var P={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[C+" Tage",C+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[C+" Monate",C+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[C+" Jahre",C+" Jahren"]};return D?P[M][0]:P[M][1]}b.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:_,mm:"%d Minuten",h:_,hh:"%d Stunden",d:_,dd:_,w:_,ww:"%d Wochen",M:_,MM:_,y:_,yy:_},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},9659:function(Te,I,V){!function(b){"use strict";var _=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],x=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];b.defineLocale("dv",{months:_,monthsShort:_,weekdays:x,weekdaysShort:x,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(D){return"\u0789\u078a"===D},meridiem:function(D,M,A){return D<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(D){return D.replace(/\u060c/g,",")},postformat:function(D){return D.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(V(5439))},3460:function(Te,I,V){!function(b){"use strict";b.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(C,D){return C?"string"==typeof D&&/D/.test(D.substring(0,D.indexOf("MMMM")))?this._monthsGenitiveEl[C.month()]:this._monthsNominativeEl[C.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(C,D,M){return C>11?M?"\u03bc\u03bc":"\u039c\u039c":M?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(C){return"\u03bc"===(C+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(C,D){var M=this._calendarEl[C],A=D&&D.hours();return function _(C){return typeof Function<"u"&&C instanceof Function||"[object Function]"===Object.prototype.toString.call(C)}(M)&&(M=M.apply(D)),M.replace("{}",A%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(V(5439))},4369:function(Te,I,V){!function(b){"use strict";b.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(x){var C=x%10;return x+(1==~~(x%100/10)?"th":1===C?"st":2===C?"nd":3===C?"rd":"th")},week:{dow:0,doy:4}})}(V(5439))},530:function(Te,I,V){!function(b){"use strict";b.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(x){var C=x%10;return x+(1==~~(x%100/10)?"th":1===C?"st":2===C?"nd":3===C?"rd":"th")}})}(V(5439))},9998:function(Te,I,V){!function(b){"use strict";b.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(x){var C=x%10;return x+(1==~~(x%100/10)?"th":1===C?"st":2===C?"nd":3===C?"rd":"th")},week:{dow:1,doy:4}})}(V(5439))},3391:function(Te,I,V){!function(b){"use strict";b.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(x){var C=x%10;return x+(1==~~(x%100/10)?"th":1===C?"st":2===C?"nd":3===C?"rd":"th")},week:{dow:1,doy:4}})}(V(5439))},5414:function(Te,I,V){!function(b){"use strict";b.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(x){var C=x%10;return x+(1==~~(x%100/10)?"th":1===C?"st":2===C?"nd":3===C?"rd":"th")}})}(V(5439))},9615:function(Te,I,V){!function(b){"use strict";b.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(x){var C=x%10;return x+(1==~~(x%100/10)?"th":1===C?"st":2===C?"nd":3===C?"rd":"th")},week:{dow:0,doy:6}})}(V(5439))},1248:function(Te,I,V){!function(b){"use strict";b.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(x){var C=x%10;return x+(1==~~(x%100/10)?"th":1===C?"st":2===C?"nd":3===C?"rd":"th")},week:{dow:1,doy:4}})}(V(5439))},3767:function(Te,I,V){!function(b){"use strict";b.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(x){var C=x%10;return x+(1==~~(x%100/10)?"th":1===C?"st":2===C?"nd":3===C?"rd":"th")},week:{dow:1,doy:4}})}(V(5439))},4530:function(Te,I,V){!function(b){"use strict";b.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(x){return"p"===x.charAt(0).toLowerCase()},meridiem:function(x,C,D){return x>11?D?"p.t.m.":"P.T.M.":D?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(V(5439))},8944:function(Te,I,V){!function(b){"use strict";var _="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),x="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),C=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],D=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;b.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,P){return A?/-MMM-/.test(P)?x[A.month()]:_[A.month()]:_},monthsRegex:D,monthsShortRegex:D,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:C,longMonthsParse:C,shortMonthsParse:C,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(V(5439))},9116:function(Te,I,V){!function(b){"use strict";var _="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),x="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),C=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],D=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;b.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,P){return A?/-MMM-/.test(P)?x[A.month()]:_[A.month()]:_},monthsRegex:D,monthsShortRegex:D,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:C,longMonthsParse:C,shortMonthsParse:C,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(V(5439))},3609:function(Te,I,V){!function(b){"use strict";var _="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),x="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),C=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],D=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;b.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,P){return A?/-MMM-/.test(P)?x[A.month()]:_[A.month()]:_},monthsRegex:D,monthsShortRegex:D,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:C,longMonthsParse:C,shortMonthsParse:C,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(V(5439))},6866:function(Te,I,V){!function(b){"use strict";var _="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),x="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),C=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],D=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;b.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,P){return A?/-MMM-/.test(P)?x[A.month()]:_[A.month()]:_},monthsRegex:D,monthsShortRegex:D,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:C,longMonthsParse:C,shortMonthsParse:C,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(V(5439))},6725:function(Te,I,V){!function(b){"use strict";function _(C,D,M,A){var P={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[C+"sekundi",C+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[C+" minuti",C+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[C+" tunni",C+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[C+" kuu",C+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[C+" aasta",C+" aastat"]};return D?P[M][2]?P[M][2]:P[M][1]:A?P[M][0]:P[M][1]}b.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:_,ss:_,m:_,mm:_,h:_,hh:_,d:_,dd:"%d p\xe4eva",M:_,MM:_,y:_,yy:_},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},7931:function(Te,I,V){!function(b){"use strict";b.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(V(5439))},6417:function(Te,I,V){!function(b){"use strict";var _={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},x={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};b.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(D){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(D)},meridiem:function(D,M,A){return D<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(D){return D.replace(/[\u06f0-\u06f9]/g,function(M){return x[M]}).replace(/\u060c/g,",")},postformat:function(D){return D.replace(/\d/g,function(M){return _[M]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(V(5439))},944:function(Te,I,V){!function(b){"use strict";var _="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),x=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",_[7],_[8],_[9]];function C(A,P,B,ce){var X="";switch(B){case"s":return ce?"muutaman sekunnin":"muutama sekunti";case"ss":X=ce?"sekunnin":"sekuntia";break;case"m":return ce?"minuutin":"minuutti";case"mm":X=ce?"minuutin":"minuuttia";break;case"h":return ce?"tunnin":"tunti";case"hh":X=ce?"tunnin":"tuntia";break;case"d":return ce?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":X=ce?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return ce?"kuukauden":"kuukausi";case"MM":X=ce?"kuukauden":"kuukautta";break;case"y":return ce?"vuoden":"vuosi";case"yy":X=ce?"vuoden":"vuotta"}return function D(A,P){return A<10?P?x[A]:_[A]:A}(A,ce)+" "+X}b.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:C,ss:C,m:C,mm:C,h:C,hh:C,d:C,dd:C,M:C,MM:C,y:C,yy:C},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},1766:function(Te,I,V){!function(b){"use strict";b.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(x){return x},week:{dow:1,doy:4}})}(V(5439))},5867:function(Te,I,V){!function(b){"use strict";b.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},6848:function(Te,I,V){!function(b){"use strict";b.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(x,C){switch(C){default:case"M":case"Q":case"D":case"DDD":case"d":return x+(1===x?"er":"e");case"w":case"W":return x+(1===x?"re":"e")}}})}(V(5439))},7773:function(Te,I,V){!function(b){"use strict";b.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(x,C){switch(C){default:case"M":case"Q":case"D":case"DDD":case"d":return x+(1===x?"er":"e");case"w":case"W":return x+(1===x?"re":"e")}},week:{dow:1,doy:4}})}(V(5439))},1636:function(Te,I,V){!function(b){"use strict";var C=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,D=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];b.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:C,monthsShortRegex:C,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(A,P){switch(P){case"D":return A+(1===A?"er":"");default:case"M":case"Q":case"DDD":case"d":return A+(1===A?"er":"e");case"w":case"W":return A+(1===A?"re":"e")}},week:{dow:1,doy:4}})}(V(5439))},4940:function(Te,I,V){!function(b){"use strict";var _="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),x="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");b.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(D,M){return D?/-MMM-/.test(M)?x[D.month()]:_[D.month()]:_},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(D){return D+(1===D||8===D||D>=20?"ste":"de")},week:{dow:1,doy:4}})}(V(5439))},1402:function(Te,I,V){!function(b){"use strict";b.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(P){return P+(1===P?"d":P%10==2?"na":"mh")},week:{dow:1,doy:4}})}(V(5439))},6924:function(Te,I,V){!function(b){"use strict";b.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(P){return P+(1===P?"d":P%10==2?"na":"mh")},week:{dow:1,doy:4}})}(V(5439))},6398:function(Te,I,V){!function(b){"use strict";b.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(x){return 0===x.indexOf("un")?"n"+x:"en "+x},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(V(5439))},2457:function(Te,I,V){!function(b){"use strict";function _(C,D,M,A){var P={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[C+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",C+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[C+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",C+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[C+" \u0935\u0930\u093e\u0902\u0928\u0940",C+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[C+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",C+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[C+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",C+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[C+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",C+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return A?P[M][0]:P[M][1]}b.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:_,ss:_,m:_,mm:_,h:_,hh:_,d:_,dd:_,M:_,MM:_,y:_,yy:_},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(C,D){return"D"===D?C+"\u0935\u0947\u0930":C},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(C,D){return 12===C&&(C=0),"\u0930\u093e\u0924\u0940"===D?C<4?C:C+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===D?C:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===D?C>12?C:C+12:"\u0938\u093e\u0902\u091c\u0947"===D?C+12:void 0},meridiem:function(C,D,M){return C<4?"\u0930\u093e\u0924\u0940":C<12?"\u0938\u0915\u093e\u0933\u0940\u0902":C<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":C<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(V(5439))},2545:function(Te,I,V){!function(b){"use strict";function _(C,D,M,A){var P={s:["thoddea sekondamni","thodde sekond"],ss:[C+" sekondamni",C+" sekond"],m:["eka mintan","ek minut"],mm:[C+" mintamni",C+" mintam"],h:["eka voran","ek vor"],hh:[C+" voramni",C+" voram"],d:["eka disan","ek dis"],dd:[C+" disamni",C+" dis"],M:["eka mhoinean","ek mhoino"],MM:[C+" mhoineamni",C+" mhoine"],y:["eka vorsan","ek voros"],yy:[C+" vorsamni",C+" vorsam"]};return A?P[M][0]:P[M][1]}b.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:_,ss:_,m:_,mm:_,h:_,hh:_,d:_,dd:_,M:_,MM:_,y:_,yy:_},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(C,D){return"D"===D?C+"er":C},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(C,D){return 12===C&&(C=0),"rati"===D?C<4?C:C+12:"sokallim"===D?C:"donparam"===D?C>12?C:C+12:"sanje"===D?C+12:void 0},meridiem:function(C,D,M){return C<4?"rati":C<12?"sokallim":C<16?"donparam":C<20?"sanje":"rati"}})}(V(5439))},2641:function(Te,I,V){!function(b){"use strict";var _={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},x={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};b.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(D){return D.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(M){return x[M]})},postformat:function(D){return D.replace(/\d/g,function(M){return _[M]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(D,M){return 12===D&&(D=0),"\u0ab0\u0abe\u0aa4"===M?D<4?D:D+12:"\u0ab8\u0ab5\u0abe\u0ab0"===M?D:"\u0aac\u0aaa\u0acb\u0ab0"===M?D>=10?D:D+12:"\u0ab8\u0abe\u0a82\u0a9c"===M?D+12:void 0},meridiem:function(D,M,A){return D<4?"\u0ab0\u0abe\u0aa4":D<10?"\u0ab8\u0ab5\u0abe\u0ab0":D<17?"\u0aac\u0aaa\u0acb\u0ab0":D<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(V(5439))},7536:function(Te,I,V){!function(b){"use strict";b.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(x){return 2===x?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":x+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(x){return 2===x?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":x+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(x){return 2===x?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":x+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(x){return 2===x?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":x%10==0&&10!==x?x+" \u05e9\u05e0\u05d4":x+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(x){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(x)},meridiem:function(x,C,D){return x<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":x<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":x<12?D?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":x<18?D?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(V(5439))},6335:function(Te,I,V){!function(b){"use strict";var _={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},x={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},C=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];b.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:C,longMonthsParse:C,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(A){return A.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(P){return x[P]})},postformat:function(A){return A.replace(/\d/g,function(P){return _[P]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(A,P){return 12===A&&(A=0),"\u0930\u093e\u0924"===P?A<4?A:A+12:"\u0938\u0941\u092c\u0939"===P?A:"\u0926\u094b\u092a\u0939\u0930"===P?A>=10?A:A+12:"\u0936\u093e\u092e"===P?A+12:void 0},meridiem:function(A,P,B){return A<4?"\u0930\u093e\u0924":A<10?"\u0938\u0941\u092c\u0939":A<17?"\u0926\u094b\u092a\u0939\u0930":A<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(V(5439))},7458:function(Te,I,V){!function(b){"use strict";function _(C,D,M){var A=C+" ";switch(M){case"ss":return A+(1===C?"sekunda":2===C||3===C||4===C?"sekunde":"sekundi");case"m":return D?"jedna minuta":"jedne minute";case"mm":return A+(1===C?"minuta":2===C||3===C||4===C?"minute":"minuta");case"h":return D?"jedan sat":"jednog sata";case"hh":return A+(1===C?"sat":2===C||3===C||4===C?"sata":"sati");case"dd":return A+(1===C?"dan":"dana");case"MM":return A+(1===C?"mjesec":2===C||3===C||4===C?"mjeseca":"mjeseci");case"yy":return A+(1===C?"godina":2===C||3===C||4===C?"godine":"godina")}}b.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:_,m:_,mm:_,h:_,hh:_,d:"dan",dd:_,M:"mjesec",MM:_,y:"godinu",yy:_},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(V(5439))},6540:function(Te,I,V){!function(b){"use strict";var _="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function x(M,A,P,B){var ce=M;switch(P){case"s":return B||A?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return ce+(B||A)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(B||A?" perc":" perce");case"mm":return ce+(B||A?" perc":" perce");case"h":return"egy"+(B||A?" \xf3ra":" \xf3r\xe1ja");case"hh":return ce+(B||A?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(B||A?" nap":" napja");case"dd":return ce+(B||A?" nap":" napja");case"M":return"egy"+(B||A?" h\xf3nap":" h\xf3napja");case"MM":return ce+(B||A?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(B||A?" \xe9v":" \xe9ve");case"yy":return ce+(B||A?" \xe9v":" \xe9ve")}return""}function C(M){return(M?"":"[m\xfalt] ")+"["+_[this.day()]+"] LT[-kor]"}b.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(M){return"u"===M.charAt(1).toLowerCase()},meridiem:function(M,A,P){return M<12?!0===P?"de":"DE":!0===P?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return C.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return C.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},5283:function(Te,I,V){!function(b){"use strict";b.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(x){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(x)},meridiem:function(x){return x<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":x<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":x<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(x,C){switch(C){case"DDD":case"w":case"W":case"DDDo":return 1===x?x+"-\u056b\u0576":x+"-\u0580\u0564";default:return x}},week:{dow:1,doy:7}})}(V(5439))},8780:function(Te,I,V){!function(b){"use strict";b.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(x,C){return 12===x&&(x=0),"pagi"===C?x:"siang"===C?x>=11?x:x+12:"sore"===C||"malam"===C?x+12:void 0},meridiem:function(x,C,D){return x<11?"pagi":x<15?"siang":x<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(V(5439))},4205:function(Te,I,V){!function(b){"use strict";function _(D){return D%100==11||D%10!=1}function x(D,M,A,P){var B=D+" ";switch(A){case"s":return M||P?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return _(D)?B+(M||P?"sek\xfandur":"sek\xfandum"):B+"sek\xfanda";case"m":return M?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return _(D)?B+(M||P?"m\xedn\xfatur":"m\xedn\xfatum"):M?B+"m\xedn\xfata":B+"m\xedn\xfatu";case"hh":return _(D)?B+(M||P?"klukkustundir":"klukkustundum"):B+"klukkustund";case"d":return M?"dagur":P?"dag":"degi";case"dd":return _(D)?M?B+"dagar":B+(P?"daga":"d\xf6gum"):M?B+"dagur":B+(P?"dag":"degi");case"M":return M?"m\xe1nu\xf0ur":P?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return _(D)?M?B+"m\xe1nu\xf0ir":B+(P?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):M?B+"m\xe1nu\xf0ur":B+(P?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return M||P?"\xe1r":"\xe1ri";case"yy":return _(D)?B+(M||P?"\xe1r":"\xe1rum"):B+(M||P?"\xe1r":"\xe1ri")}}b.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:x,ss:x,m:x,mm:x,h:"klukkustund",hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},9985:function(Te,I,V){!function(b){"use strict";b.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(x){return(/^[0-9].+$/.test(x)?"tra":"in")+" "+x},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(V(5439))},4211:function(Te,I,V){!function(b){"use strict";b.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(V(5439))},1003:function(Te,I,V){!function(b){"use strict";b.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(x,C){return"\u5143"===C[1]?1:parseInt(C[1]||x,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(x){return"\u5348\u5f8c"===x},meridiem:function(x,C,D){return x<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(x){return x.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(x){return this.week()!==x.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(x,C){switch(C){case"y":return 1===x?"\u5143\u5e74":x+"\u5e74";case"d":case"D":case"DDD":return x+"\u65e5";default:return x}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(V(5439))},420:function(Te,I,V){!function(b){"use strict";b.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(x,C){return 12===x&&(x=0),"enjing"===C?x:"siyang"===C?x>=11?x:x+12:"sonten"===C||"ndalu"===C?x+12:void 0},meridiem:function(x,C,D){return x<11?"enjing":x<15?"siyang":x<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(V(5439))},851:function(Te,I,V){!function(b){"use strict";b.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(x){return x.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(C,D,M){return"\u10d8"===M?D+"\u10e8\u10d8":D+M+"\u10e8\u10d8"})},past:function(x){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(x)?x.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(x)?x.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):x},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(x){return 0===x?x:1===x?x+"-\u10da\u10d8":x<20||x<=100&&x%20==0||x%100==0?"\u10db\u10d4-"+x:x+"-\u10d4"},week:{dow:1,doy:7}})}(V(5439))},6074:function(Te,I,V){!function(b){"use strict";var _={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};b.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(C){return C+(_[C]||_[C%10]||_[C>=100?100:null])},week:{dow:1,doy:7}})}(V(5439))},3343:function(Te,I,V){!function(b){"use strict";var _={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},x={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};b.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(D){return"\u179b\u17d2\u1784\u17b6\u1785"===D},meridiem:function(D,M,A){return D<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(D){return D.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(M){return x[M]})},postformat:function(D){return D.replace(/\d/g,function(M){return _[M]})},week:{dow:1,doy:4}})}(V(5439))},4799:function(Te,I,V){!function(b){"use strict";var _={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},x={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};b.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(D){return D.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(M){return x[M]})},postformat:function(D){return D.replace(/\d/g,function(M){return _[M]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(D,M){return 12===D&&(D=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===M?D<4?D:D+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===M?D:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===M?D>=10?D:D+12:"\u0cb8\u0c82\u0c9c\u0cc6"===M?D+12:void 0},meridiem:function(D,M,A){return D<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":D<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":D<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":D<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(D){return D+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(V(5439))},3549:function(Te,I,V){!function(b){"use strict";b.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(x,C){switch(C){case"d":case"D":case"DDD":return x+"\uc77c";case"M":return x+"\uc6d4";case"w":case"W":return x+"\uc8fc";default:return x}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(x){return"\uc624\ud6c4"===x},meridiem:function(x,C,D){return x<12?"\uc624\uc804":"\uc624\ud6c4"}})}(V(5439))},1037:function(Te,I,V){!function(b){"use strict";var _={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},x={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},C=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];b.defineLocale("ku",{months:C,monthsShort:C,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(M){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(M)},meridiem:function(M,A,P){return M<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(M){return M.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(A){return x[A]}).replace(/\u060c/g,",")},postformat:function(M){return M.replace(/\d/g,function(A){return _[A]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(V(5439))},3125:function(Te,I,V){!function(b){"use strict";var _={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};b.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(C){return C+(_[C]||_[C%10]||_[C>=100?100:null])},week:{dow:1,doy:7}})}(V(5439))},9586:function(Te,I,V){!function(b){"use strict";function _(A,P,B,ce){var X={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return P?X[B][0]:X[B][1]}function D(A){if(A=parseInt(A,10),isNaN(A))return!1;if(A<0)return!0;if(A<10)return 4<=A&&A<=7;if(A<100){var P=A%10;return D(0===P?A/10:P)}if(A<1e4){for(;A>=10;)A/=10;return D(A)}return D(A/=1e3)}b.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function x(A){return D(A.substr(0,A.indexOf(" ")))?"a "+A:"an "+A},past:function C(A){return D(A.substr(0,A.indexOf(" ")))?"viru "+A:"virun "+A},s:"e puer Sekonnen",ss:"%d Sekonnen",m:_,mm:"%d Minutten",h:_,hh:"%d Stonnen",d:_,dd:"%d Deeg",M:_,MM:"%d M\xe9int",y:_,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},2349:function(Te,I,V){!function(b){"use strict";b.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(x){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===x},meridiem:function(x,C,D){return x<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(x){return"\u0e97\u0eb5\u0ec8"+x}})}(V(5439))},2400:function(Te,I,V){!function(b){"use strict";var _={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function C(B,ce,X,ne){return ce?M(X)[0]:ne?M(X)[1]:M(X)[2]}function D(B){return B%10==0||B>10&&B<20}function M(B){return _[B].split("_")}function A(B,ce,X,ne){var Q=B+" ";return 1===B?Q+C(0,ce,X[0],ne):ce?Q+(D(B)?M(X)[1]:M(X)[0]):ne?Q+M(X)[1]:Q+(D(B)?M(X)[1]:M(X)[2])}b.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function x(B,ce,X,ne){return ce?"kelios sekund\u0117s":ne?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:A,m:C,mm:A,h:C,hh:A,d:C,dd:A,M:C,MM:A,y:C,yy:A},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(B){return B+"-oji"},week:{dow:1,doy:4}})}(V(5439))},9991:function(Te,I,V){!function(b){"use strict";var _={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function x(P,B,ce){return ce?B%10==1&&B%100!=11?P[2]:P[3]:B%10==1&&B%100!=11?P[0]:P[1]}function C(P,B,ce){return P+" "+x(_[ce],P,B)}function D(P,B,ce){return x(_[ce],P,B)}b.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function M(P,B){return B?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:C,m:D,mm:C,h:D,hh:C,d:D,dd:C,M:D,MM:C,y:D,yy:C},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},8477:function(Te,I,V){!function(b){"use strict";var _={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(C,D){return 1===C?D[0]:C>=2&&C<=4?D[1]:D[2]},translate:function(C,D,M){var A=_.words[M];return 1===M.length?D?A[0]:A[1]:C+" "+_.correctGrammaticalCase(C,A)}};b.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:_.translate,m:_.translate,mm:_.translate,h:_.translate,hh:_.translate,d:"dan",dd:_.translate,M:"mjesec",MM:_.translate,y:"godinu",yy:_.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(V(5439))},5118:function(Te,I,V){!function(b){"use strict";b.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(V(5439))},5943:function(Te,I,V){!function(b){"use strict";b.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(x){var C=x%10,D=x%100;return 0===x?x+"-\u0435\u0432":0===D?x+"-\u0435\u043d":D>10&&D<20?x+"-\u0442\u0438":1===C?x+"-\u0432\u0438":2===C?x+"-\u0440\u0438":7===C||8===C?x+"-\u043c\u0438":x+"-\u0442\u0438"},week:{dow:1,doy:7}})}(V(5439))},3849:function(Te,I,V){!function(b){"use strict";b.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(x,C){return 12===x&&(x=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===C&&x>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===C||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===C?x+12:x},meridiem:function(x,C,D){return x<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":x<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":x<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":x<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(V(5439))},1977:function(Te,I,V){!function(b){"use strict";function _(C,D,M,A){switch(M){case"s":return D?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return C+(D?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return C+(D?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return C+(D?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return C+(D?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return C+(D?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return C+(D?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return C}}b.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(C){return"\u04ae\u0425"===C},meridiem:function(C,D,M){return C<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:_,ss:_,m:_,mm:_,h:_,hh:_,d:_,dd:_,M:_,MM:_,y:_,yy:_},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(C,D){switch(D){case"d":case"D":case"DDD":return C+" \u04e9\u0434\u04e9\u0440";default:return C}}})}(V(5439))},6184:function(Te,I,V){!function(b){"use strict";var _={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},x={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function C(M,A,P,B){var ce="";if(A)switch(P){case"s":ce="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":ce="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":ce="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":ce="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":ce="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":ce="%d \u0924\u093e\u0938";break;case"d":ce="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":ce="%d \u0926\u093f\u0935\u0938";break;case"M":ce="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":ce="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":ce="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":ce="%d \u0935\u0930\u094d\u0937\u0947"}else switch(P){case"s":ce="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":ce="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":ce="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":ce="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":ce="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":ce="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":ce="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":ce="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":ce="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":ce="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":ce="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":ce="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return ce.replace(/%d/i,M)}b.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:C,ss:C,m:C,mm:C,h:C,hh:C,d:C,dd:C,M:C,MM:C,y:C,yy:C},preparse:function(M){return M.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(A){return x[A]})},postformat:function(M){return M.replace(/\d/g,function(A){return _[A]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(M,A){return 12===M&&(M=0),"\u092a\u0939\u093e\u091f\u0947"===A||"\u0938\u0915\u093e\u0933\u0940"===A?M:"\u0926\u0941\u092a\u093e\u0930\u0940"===A||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===A||"\u0930\u093e\u0924\u094d\u0930\u0940"===A?M>=12?M:M+12:void 0},meridiem:function(M,A,P){return M>=0&&M<6?"\u092a\u0939\u093e\u091f\u0947":M<12?"\u0938\u0915\u093e\u0933\u0940":M<17?"\u0926\u0941\u092a\u093e\u0930\u0940":M<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(V(5439))},4524:function(Te,I,V){!function(b){"use strict";b.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(x,C){return 12===x&&(x=0),"pagi"===C?x:"tengahari"===C?x>=11?x:x+12:"petang"===C||"malam"===C?x+12:void 0},meridiem:function(x,C,D){return x<11?"pagi":x<15?"tengahari":x<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(V(5439))},485:function(Te,I,V){!function(b){"use strict";b.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(x,C){return 12===x&&(x=0),"pagi"===C?x:"tengahari"===C?x>=11?x:x+12:"petang"===C||"malam"===C?x+12:void 0},meridiem:function(x,C,D){return x<11?"pagi":x<15?"tengahari":x<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(V(5439))},6681:function(Te,I,V){!function(b){"use strict";b.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(V(5439))},2024:function(Te,I,V){!function(b){"use strict";var _={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},x={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};b.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(D){return D.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(M){return x[M]})},postformat:function(D){return D.replace(/\d/g,function(M){return _[M]})},week:{dow:1,doy:4}})}(V(5439))},2688:function(Te,I,V){!function(b){"use strict";b.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},8914:function(Te,I,V){!function(b){"use strict";var _={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},x={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};b.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(D){return D.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(M){return x[M]})},postformat:function(D){return D.replace(/\d/g,function(M){return _[M]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(D,M){return 12===D&&(D=0),"\u0930\u093e\u0924\u093f"===M?D<4?D:D+12:"\u092c\u093f\u0939\u093e\u0928"===M?D:"\u0926\u093f\u0909\u0901\u0938\u094b"===M?D>=10?D:D+12:"\u0938\u093e\u0901\u091d"===M?D+12:void 0},meridiem:function(D,M,A){return D<3?"\u0930\u093e\u0924\u093f":D<12?"\u092c\u093f\u0939\u093e\u0928":D<16?"\u0926\u093f\u0909\u0901\u0938\u094b":D<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(V(5439))},2272:function(Te,I,V){!function(b){"use strict";var _="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),x="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),C=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],D=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;b.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(A,P){return A?/-MMM-/.test(P)?x[A.month()]:_[A.month()]:_},monthsRegex:D,monthsShortRegex:D,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:C,longMonthsParse:C,shortMonthsParse:C,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(A){return A+(1===A||8===A||A>=20?"ste":"de")},week:{dow:1,doy:4}})}(V(5439))},1758:function(Te,I,V){!function(b){"use strict";var _="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),x="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),C=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],D=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;b.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(A,P){return A?/-MMM-/.test(P)?x[A.month()]:_[A.month()]:_},monthsRegex:D,monthsShortRegex:D,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:C,longMonthsParse:C,shortMonthsParse:C,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(A){return A+(1===A||8===A||A>=20?"ste":"de")},week:{dow:1,doy:4}})}(V(5439))},1510:function(Te,I,V){!function(b){"use strict";b.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},2797:function(Te,I,V){!function(b){"use strict";b.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(x,C){var D=1===x?"r":2===x?"n":3===x?"r":4===x?"t":"\xe8";return("w"===C||"W"===C)&&(D="a"),x+D},week:{dow:1,doy:4}})}(V(5439))},7944:function(Te,I,V){!function(b){"use strict";var _={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},x={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};b.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(D){return D.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(M){return x[M]})},postformat:function(D){return D.replace(/\d/g,function(M){return _[M]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(D,M){return 12===D&&(D=0),"\u0a30\u0a3e\u0a24"===M?D<4?D:D+12:"\u0a38\u0a35\u0a47\u0a30"===M?D:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===M?D>=10?D:D+12:"\u0a38\u0a3c\u0a3e\u0a2e"===M?D+12:void 0},meridiem:function(D,M,A){return D<4?"\u0a30\u0a3e\u0a24":D<10?"\u0a38\u0a35\u0a47\u0a30":D<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":D<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(V(5439))},1605:function(Te,I,V){!function(b){"use strict";var _="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),x="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),C=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function D(P){return P%10<5&&P%10>1&&~~(P/10)%10!=1}function M(P,B,ce){var X=P+" ";switch(ce){case"ss":return X+(D(P)?"sekundy":"sekund");case"m":return B?"minuta":"minut\u0119";case"mm":return X+(D(P)?"minuty":"minut");case"h":return B?"godzina":"godzin\u0119";case"hh":return X+(D(P)?"godziny":"godzin");case"ww":return X+(D(P)?"tygodnie":"tygodni");case"MM":return X+(D(P)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return X+(D(P)?"lata":"lat")}}b.defineLocale("pl",{months:function(P,B){return P?/D MMMM/.test(B)?x[P.month()]:_[P.month()]:_},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:C,longMonthsParse:C,shortMonthsParse:C,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:M,m:M,mm:M,h:M,hh:M,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:M,M:"miesi\u0105c",MM:M,y:"rok",yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},3840:function(Te,I,V){!function(b){"use strict";b.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(V(5439))},4225:function(Te,I,V){!function(b){"use strict";b.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(V(5439))},5128:function(Te,I,V){!function(b){"use strict";function _(C,D,M){var P=" ";return(C%100>=20||C>=100&&C%100==0)&&(P=" de "),C+P+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[M]}b.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:_,m:"un minut",mm:_,h:"o or\u0103",hh:_,d:"o zi",dd:_,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:_,M:"o lun\u0103",MM:_,y:"un an",yy:_},week:{dow:1,doy:7}})}(V(5439))},5127:function(Te,I,V){!function(b){"use strict";function x(M,A,P){return"m"===P?A?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":M+" "+function _(M,A){var P=M.split("_");return A%10==1&&A%100!=11?P[0]:A%10>=2&&A%10<=4&&(A%100<10||A%100>=20)?P[1]:P[2]}({ss:A?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:A?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[P],+M)}var C=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];b.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:C,longMonthsParse:C,shortMonthsParse:C,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(M){if(M.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(M){if(M.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:x,m:x,mm:x,h:"\u0447\u0430\u0441",hh:x,d:"\u0434\u0435\u043d\u044c",dd:x,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:x,M:"\u043c\u0435\u0441\u044f\u0446",MM:x,y:"\u0433\u043e\u0434",yy:x},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(M){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(M)},meridiem:function(M,A,P){return M<4?"\u043d\u043e\u0447\u0438":M<12?"\u0443\u0442\u0440\u0430":M<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(M,A){switch(A){case"M":case"d":case"DDD":return M+"-\u0439";case"D":return M+"-\u0433\u043e";case"w":case"W":return M+"-\u044f";default:return M}},week:{dow:1,doy:4}})}(V(5439))},2525:function(Te,I,V){!function(b){"use strict";var _=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],x=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];b.defineLocale("sd",{months:_,monthsShort:_,weekdays:x,weekdaysShort:x,weekdaysMin:x,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(D){return"\u0634\u0627\u0645"===D},meridiem:function(D,M,A){return D<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(D){return D.replace(/\u060c/g,",")},postformat:function(D){return D.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(V(5439))},9893:function(Te,I,V){!function(b){"use strict";b.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},3123:function(Te,I,V){!function(b){"use strict";b.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(x){return x+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(x){return"\u0db4.\u0dc0."===x||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===x},meridiem:function(x,C,D){return x>11?D?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":D?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(V(5439))},9635:function(Te,I,V){!function(b){"use strict";var _="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),x="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function C(A){return A>1&&A<5}function D(A,P,B,ce){var X=A+" ";switch(B){case"s":return P||ce?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return P||ce?X+(C(A)?"sekundy":"sek\xfand"):X+"sekundami";case"m":return P?"min\xfata":ce?"min\xfatu":"min\xfatou";case"mm":return P||ce?X+(C(A)?"min\xfaty":"min\xfat"):X+"min\xfatami";case"h":return P?"hodina":ce?"hodinu":"hodinou";case"hh":return P||ce?X+(C(A)?"hodiny":"hod\xedn"):X+"hodinami";case"d":return P||ce?"de\u0148":"d\u0148om";case"dd":return P||ce?X+(C(A)?"dni":"dn\xed"):X+"d\u0148ami";case"M":return P||ce?"mesiac":"mesiacom";case"MM":return P||ce?X+(C(A)?"mesiace":"mesiacov"):X+"mesiacmi";case"y":return P||ce?"rok":"rokom";case"yy":return P||ce?X+(C(A)?"roky":"rokov"):X+"rokmi"}}b.defineLocale("sk",{months:_,monthsShort:x,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},8106:function(Te,I,V){!function(b){"use strict";function _(C,D,M,A){var P=C+" ";switch(M){case"s":return D||A?"nekaj sekund":"nekaj sekundami";case"ss":return P+(1===C?D?"sekundo":"sekundi":2===C?D||A?"sekundi":"sekundah":C<5?D||A?"sekunde":"sekundah":"sekund");case"m":return D?"ena minuta":"eno minuto";case"mm":return P+(1===C?D?"minuta":"minuto":2===C?D||A?"minuti":"minutama":C<5?D||A?"minute":"minutami":D||A?"minut":"minutami");case"h":return D?"ena ura":"eno uro";case"hh":return P+(1===C?D?"ura":"uro":2===C?D||A?"uri":"urama":C<5?D||A?"ure":"urami":D||A?"ur":"urami");case"d":return D||A?"en dan":"enim dnem";case"dd":return P+(1===C?D||A?"dan":"dnem":2===C?D||A?"dni":"dnevoma":D||A?"dni":"dnevi");case"M":return D||A?"en mesec":"enim mesecem";case"MM":return P+(1===C?D||A?"mesec":"mesecem":2===C?D||A?"meseca":"mesecema":C<5?D||A?"mesece":"meseci":D||A?"mesecev":"meseci");case"y":return D||A?"eno leto":"enim letom";case"yy":return P+(1===C?D||A?"leto":"letom":2===C?D||A?"leti":"letoma":C<5?D||A?"leta":"leti":D||A?"let":"leti")}}b.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:_,ss:_,m:_,mm:_,h:_,hh:_,d:_,dd:_,M:_,MM:_,y:_,yy:_},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(V(5439))},8799:function(Te,I,V){!function(b){"use strict";b.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(x){return"M"===x.charAt(0)},meridiem:function(x,C,D){return x<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},2872:function(Te,I,V){!function(b){"use strict";var _={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(C,D){return C%10>=1&&C%10<=4&&(C%100<10||C%100>=20)?C%10==1?D[0]:D[1]:D[2]},translate:function(C,D,M,A){var B,P=_.words[M];return 1===M.length?"y"===M&&D?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":A||D?P[0]:P[1]:(B=_.correctGrammaticalCase(C,P),"yy"===M&&D&&"\u0433\u043e\u0434\u0438\u043d\u0443"===B?C+" \u0433\u043e\u0434\u0438\u043d\u0430":C+" "+B)}};b.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:_.translate,m:_.translate,mm:_.translate,h:_.translate,hh:_.translate,d:_.translate,dd:_.translate,M:_.translate,MM:_.translate,y:_.translate,yy:_.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(V(5439))},7949:function(Te,I,V){!function(b){"use strict";var _={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(C,D){return C%10>=1&&C%10<=4&&(C%100<10||C%100>=20)?C%10==1?D[0]:D[1]:D[2]},translate:function(C,D,M,A){var B,P=_.words[M];return 1===M.length?"y"===M&&D?"jedna godina":A||D?P[0]:P[1]:(B=_.correctGrammaticalCase(C,P),"yy"===M&&D&&"godinu"===B?C+" godina":C+" "+B)}};b.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:_.translate,m:_.translate,mm:_.translate,h:_.translate,hh:_.translate,d:_.translate,dd:_.translate,M:_.translate,MM:_.translate,y:_.translate,yy:_.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(V(5439))},6167:function(Te,I,V){!function(b){"use strict";b.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(x,C,D){return x<11?"ekuseni":x<15?"emini":x<19?"entsambama":"ebusuku"},meridiemHour:function(x,C){return 12===x&&(x=0),"ekuseni"===C?x:"emini"===C?x>=11?x:x+12:"entsambama"===C||"ebusuku"===C?0===x?0:x+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(V(5439))},9713:function(Te,I,V){!function(b){"use strict";b.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(x){var C=x%10;return x+(1==~~(x%100/10)?":e":1===C||2===C?":a":":e")},week:{dow:1,doy:4}})}(V(5439))},1982:function(Te,I,V){!function(b){"use strict";b.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(V(5439))},2732:function(Te,I,V){!function(b){"use strict";var _={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},x={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};b.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(D){return D+"\u0bb5\u0ba4\u0bc1"},preparse:function(D){return D.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(M){return x[M]})},postformat:function(D){return D.replace(/\d/g,function(M){return _[M]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(D,M,A){return D<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":D<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":D<10?" \u0b95\u0bbe\u0bb2\u0bc8":D<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":D<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":D<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(D,M){return 12===D&&(D=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===M?D<2?D:D+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===M||"\u0b95\u0bbe\u0bb2\u0bc8"===M||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===M&&D>=10?D:D+12},week:{dow:0,doy:6}})}(V(5439))},3636:function(Te,I,V){!function(b){"use strict";b.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(x,C){return 12===x&&(x=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===C?x<4?x:x+12:"\u0c09\u0c26\u0c2f\u0c02"===C?x:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===C?x>=10?x:x+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===C?x+12:void 0},meridiem:function(x,C,D){return x<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":x<10?"\u0c09\u0c26\u0c2f\u0c02":x<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":x<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(V(5439))},2115:function(Te,I,V){!function(b){"use strict";b.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(x){var C=x%10;return x+(1==~~(x%100/10)?"th":1===C?"st":2===C?"nd":3===C?"rd":"th")},week:{dow:1,doy:4}})}(V(5439))},9801:function(Te,I,V){!function(b){"use strict";var _={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};b.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(C,D){return 12===C&&(C=0),"\u0448\u0430\u0431"===D?C<4?C:C+12:"\u0441\u0443\u0431\u04b3"===D?C:"\u0440\u04ef\u0437"===D?C>=11?C:C+12:"\u0431\u0435\u0433\u043e\u04b3"===D?C+12:void 0},meridiem:function(C,D,M){return C<4?"\u0448\u0430\u0431":C<11?"\u0441\u0443\u0431\u04b3":C<16?"\u0440\u04ef\u0437":C<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(C){return C+(_[C]||_[C%10]||_[C>=100?100:null])},week:{dow:1,doy:7}})}(V(5439))},2868:function(Te,I,V){!function(b){"use strict";b.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(x){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===x},meridiem:function(x,C,D){return x<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(V(5439))},1310:function(Te,I,V){!function(b){"use strict";var _={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};b.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(C,D){switch(D){case"d":case"D":case"Do":case"DD":return C;default:if(0===C)return C+"'unjy";var M=C%10;return C+(_[M]||_[C%100-M]||_[C>=100?100:null])}},week:{dow:1,doy:7}})}(V(5439))},2360:function(Te,I,V){!function(b){"use strict";b.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(x){return x},week:{dow:1,doy:4}})}(V(5439))},6645:function(Te,I,V){!function(b){"use strict";var _="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function D(P,B,ce,X){var ne=function M(P){var B=Math.floor(P%1e3/100),ce=Math.floor(P%100/10),X=P%10,ne="";return B>0&&(ne+=_[B]+"vatlh"),ce>0&&(ne+=(""!==ne?" ":"")+_[ce]+"maH"),X>0&&(ne+=(""!==ne?" ":"")+_[X]),""===ne?"pagh":ne}(P);switch(ce){case"ss":return ne+" lup";case"mm":return ne+" tup";case"hh":return ne+" rep";case"dd":return ne+" jaj";case"MM":return ne+" jar";case"yy":return ne+" DIS"}}b.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function x(P){var B=P;return-1!==P.indexOf("jaj")?B.slice(0,-3)+"leS":-1!==P.indexOf("jar")?B.slice(0,-3)+"waQ":-1!==P.indexOf("DIS")?B.slice(0,-3)+"nem":B+" pIq"},past:function C(P){var B=P;return-1!==P.indexOf("jaj")?B.slice(0,-3)+"Hu\u2019":-1!==P.indexOf("jar")?B.slice(0,-3)+"wen":-1!==P.indexOf("DIS")?B.slice(0,-3)+"ben":B+" ret"},s:"puS lup",ss:D,m:"wa\u2019 tup",mm:D,h:"wa\u2019 rep",hh:D,d:"wa\u2019 jaj",dd:D,M:"wa\u2019 jar",MM:D,y:"wa\u2019 DIS",yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},8374:function(Te,I,V){!function(b){"use strict";var _={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};b.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(C,D,M){return C<12?M?"\xf6\xf6":"\xd6\xd6":M?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(C){return"\xf6s"===C||"\xd6S"===C},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(C,D){switch(D){case"d":case"D":case"Do":case"DD":return C;default:if(0===C)return C+"'\u0131nc\u0131";var M=C%10;return C+(_[M]||_[C%100-M]||_[C>=100?100:null])}},week:{dow:1,doy:7}})}(V(5439))},256:function(Te,I,V){!function(b){"use strict";function x(C,D,M,A){var P={s:["viensas secunds","'iensas secunds"],ss:[C+" secunds",C+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[C+" m\xeduts",C+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[C+" \xfeoras",C+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[C+" ziuas",C+" ziuas"],M:["'n mes","'iens mes"],MM:[C+" mesen",C+" mesen"],y:["'n ar","'iens ar"],yy:[C+" ars",C+" ars"]};return A||D?P[M][0]:P[M][1]}b.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(C){return"d'o"===C.toLowerCase()},meridiem:function(C,D,M){return C>11?M?"d'o":"D'O":M?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(V(5439))},1631:function(Te,I,V){!function(b){"use strict";b.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(V(5439))},1595:function(Te,I,V){!function(b){"use strict";b.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(V(5439))},6050:function(Te,I,V){!function(b){"use strict";b.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(x,C){return 12===x&&(x=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===C||"\u0633\u06d5\u06be\u06d5\u0631"===C||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===C?x:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===C||"\u0643\u06d5\u0686"===C?x+12:x>=11?x:x+12},meridiem:function(x,C,D){var M=100*x+C;return M<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":M<900?"\u0633\u06d5\u06be\u06d5\u0631":M<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":M<1230?"\u0686\u06c8\u0634":M<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(x,C){switch(C){case"d":case"D":case"DDD":return x+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return x+"-\u06be\u06d5\u067e\u062a\u06d5";default:return x}},preparse:function(x){return x.replace(/\u060c/g,",")},postformat:function(x){return x.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(V(5439))},5610:function(Te,I,V){!function(b){"use strict";function x(A,P,B){return"m"===B?P?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===B?P?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":A+" "+function _(A,P){var B=A.split("_");return P%10==1&&P%100!=11?B[0]:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?B[1]:B[2]}({ss:P?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:P?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:P?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[B],+A)}function D(A){return function(){return A+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}b.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function C(A,P){var B={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===A?B.nominative.slice(1,7).concat(B.nominative.slice(0,1)):A?B[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(P)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(P)?"genitive":"nominative"][A.day()]:B.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:D("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:D("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:D("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:D("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return D("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return D("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:x,m:x,mm:x,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:x,d:"\u0434\u0435\u043d\u044c",dd:x,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:x,y:"\u0440\u0456\u043a",yy:x},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(A){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(A)},meridiem:function(A,P,B){return A<4?"\u043d\u043e\u0447\u0456":A<12?"\u0440\u0430\u043d\u043a\u0443":A<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(A,P){switch(P){case"M":case"d":case"DDD":case"w":case"W":return A+"-\u0439";case"D":return A+"-\u0433\u043e";default:return A}},week:{dow:1,doy:7}})}(V(5439))},6077:function(Te,I,V){!function(b){"use strict";var _=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],x=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];b.defineLocale("ur",{months:_,monthsShort:_,weekdays:x,weekdaysShort:x,weekdaysMin:x,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(D){return"\u0634\u0627\u0645"===D},meridiem:function(D,M,A){return D<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(D){return D.replace(/\u060c/g,",")},postformat:function(D){return D.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(V(5439))},2207:function(Te,I,V){!function(b){"use strict";b.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(V(5439))},2862:function(Te,I,V){!function(b){"use strict";b.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(V(5439))},8093:function(Te,I,V){!function(b){"use strict";b.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(x){return/^ch$/i.test(x)},meridiem:function(x,C,D){return x<12?D?"sa":"SA":D?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(x){return x},week:{dow:1,doy:4}})}(V(5439))},5590:function(Te,I,V){!function(b){"use strict";b.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(x){var C=x%10;return x+(1==~~(x%100/10)?"th":1===C?"st":2===C?"nd":3===C?"rd":"th")},week:{dow:1,doy:4}})}(V(5439))},9058:function(Te,I,V){!function(b){"use strict";b.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(V(5439))},7908:function(Te,I,V){!function(b){"use strict";b.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(x,C){return 12===x&&(x=0),"\u51cc\u6668"===C||"\u65e9\u4e0a"===C||"\u4e0a\u5348"===C?x:"\u4e0b\u5348"===C||"\u665a\u4e0a"===C?x+12:x>=11?x:x+12},meridiem:function(x,C,D){var M=100*x+C;return M<600?"\u51cc\u6668":M<900?"\u65e9\u4e0a":M<1130?"\u4e0a\u5348":M<1230?"\u4e2d\u5348":M<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(x){return x.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(x){return this.week()!==x.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(x,C){switch(C){case"d":case"D":case"DDD":return x+"\u65e5";case"M":return x+"\u6708";case"w":case"W":return x+"\u5468";default:return x}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(V(5439))},8867:function(Te,I,V){!function(b){"use strict";b.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(x,C){return 12===x&&(x=0),"\u51cc\u6668"===C||"\u65e9\u4e0a"===C||"\u4e0a\u5348"===C?x:"\u4e2d\u5348"===C?x>=11?x:x+12:"\u4e0b\u5348"===C||"\u665a\u4e0a"===C?x+12:void 0},meridiem:function(x,C,D){var M=100*x+C;return M<600?"\u51cc\u6668":M<900?"\u65e9\u4e0a":M<1200?"\u4e0a\u5348":1200===M?"\u4e2d\u5348":M<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(x,C){switch(C){case"d":case"D":case"DDD":return x+"\u65e5";case"M":return x+"\u6708";case"w":case"W":return x+"\u9031";default:return x}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(V(5439))},1133:function(Te,I,V){!function(b){"use strict";b.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(x,C){return 12===x&&(x=0),"\u51cc\u6668"===C||"\u65e9\u4e0a"===C||"\u4e0a\u5348"===C?x:"\u4e2d\u5348"===C?x>=11?x:x+12:"\u4e0b\u5348"===C||"\u665a\u4e0a"===C?x+12:void 0},meridiem:function(x,C,D){var M=100*x+C;return M<600?"\u51cc\u6668":M<900?"\u65e9\u4e0a":M<1130?"\u4e0a\u5348":M<1230?"\u4e2d\u5348":M<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(x,C){switch(C){case"d":case"D":case"DDD":return x+"\u65e5";case"M":return x+"\u6708";case"w":case"W":return x+"\u9031";default:return x}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(V(5439))},3291:function(Te,I,V){!function(b){"use strict";b.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(x,C){return 12===x&&(x=0),"\u51cc\u6668"===C||"\u65e9\u4e0a"===C||"\u4e0a\u5348"===C?x:"\u4e2d\u5348"===C?x>=11?x:x+12:"\u4e0b\u5348"===C||"\u665a\u4e0a"===C?x+12:void 0},meridiem:function(x,C,D){var M=100*x+C;return M<600?"\u51cc\u6668":M<900?"\u65e9\u4e0a":M<1130?"\u4e0a\u5348":M<1230?"\u4e2d\u5348":M<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(x,C){switch(C){case"d":case"D":case"DDD":return x+"\u65e5";case"M":return x+"\u6708";case"w":case"W":return x+"\u9031";default:return x}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(V(5439))},5439:function(Te,I,V){(Te=V.nmd(Te)).exports=function(){"use strict";var b,J;function _(){return b.apply(null,arguments)}function C(v){return v instanceof Array||"[object Array]"===Object.prototype.toString.call(v)}function D(v){return null!=v&&"[object Object]"===Object.prototype.toString.call(v)}function M(v,T){return Object.prototype.hasOwnProperty.call(v,T)}function A(v){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(v).length;var T;for(T in v)if(M(v,T))return!1;return!0}function P(v){return void 0===v}function B(v){return"number"==typeof v||"[object Number]"===Object.prototype.toString.call(v)}function ce(v){return v instanceof Date||"[object Date]"===Object.prototype.toString.call(v)}function X(v,T){var oe,Z=[],_e=v.length;for(oe=0;oe<_e;++oe)Z.push(T(v[oe],oe));return Z}function ne(v,T){for(var Z in T)M(T,Z)&&(v[Z]=T[Z]);return M(T,"toString")&&(v.toString=T.toString),M(T,"valueOf")&&(v.valueOf=T.valueOf),v}function Q(v,T,Z,oe){return Kc(v,T,Z,oe,!0).utc()}function j(v){return null==v._pf&&(v._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),v._pf}function te(v){if(null==v._isValid){var T=j(v),Z=J.call(T.parsedDateParts,function(_e){return null!=_e}),oe=!isNaN(v._d.getTime())&&T.overflow<0&&!T.empty&&!T.invalidEra&&!T.invalidMonth&&!T.invalidWeekday&&!T.weekdayMismatch&&!T.nullInput&&!T.invalidFormat&&!T.userInvalidated&&(!T.meridiem||T.meridiem&&Z);if(v._strict&&(oe=oe&&0===T.charsLeftOver&&0===T.unusedTokens.length&&void 0===T.bigHour),null!=Object.isFrozen&&Object.isFrozen(v))return oe;v._isValid=oe}return v._isValid}function K(v){var T=Q(NaN);return null!=v?ne(j(T),v):j(T).userInvalidated=!0,T}J=Array.prototype.some?Array.prototype.some:function(v){var oe,T=Object(this),Z=T.length>>>0;for(oe=0;oe0)for(Z=0;Z=0?Z?"+":"":"-")+Math.pow(10,Math.max(0,T-oe.length)).toString().substr(1)+oe}var le=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,me=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,be={},Ie={};function Se(v,T,Z,oe){var _e=oe;"string"==typeof oe&&(_e=function(){return this[oe]()}),v&&(Ie[v]=_e),T&&(Ie[T[0]]=function(){return ue(_e.apply(this,arguments),T[1],T[2])}),Z&&(Ie[Z]=function(){return this.localeData().ordinal(_e.apply(this,arguments),v)})}function Ne(v){return v.match(/\[[\s\S]/)?v.replace(/^\[|\]$/g,""):v.replace(/\\/g,"")}function Xe(v,T){return v.isValid()?(T=Ve(T,v.localeData()),be[T]=be[T]||function Ye(v){var Z,oe,T=v.match(le);for(Z=0,oe=T.length;Z=0&&me.test(v);)v=v.replace(me,oe),me.lastIndex=0,Z-=1;return v}var Je={};function rt(v,T){var Z=v.toLowerCase();Je[Z]=Je[Z+"s"]=Je[T]=v}function Ge(v){return"string"==typeof v?Je[v]||Je[v.toLowerCase()]:void 0}function Tt(v){var Z,oe,T={};for(oe in v)M(v,oe)&&(Z=Ge(oe))&&(T[Z]=v[oe]);return T}var yt={};function tn(v,T){yt[v]=T}function ti(v){return v%4==0&&v%100!=0||v%400==0}function en(v){return v<0?Math.ceil(v)||0:Math.floor(v)}function Yt(v){var T=+v,Z=0;return 0!==T&&isFinite(T)&&(Z=en(T)),Z}function Yr(v,T){return function(Z){return null!=Z?(us(this,v,Z),_.updateOffset(this,T),this):ds(this,v)}}function ds(v,T){return v.isValid()?v._d["get"+(v._isUTC?"UTC":"")+T]():NaN}function us(v,T,Z){v.isValid()&&!isNaN(Z)&&("FullYear"===T&&ti(v.year())&&1===v.month()&&29===v.date()?(Z=Yt(Z),v._d["set"+(v._isUTC?"UTC":"")+T](Z,v.month(),jh(Z,v.month()))):v._d["set"+(v._isUTC?"UTC":"")+T](Z))}var Hl,au=/\d/,Ri=/\d\d/,or=/\d{3}/,pr=/\d{4}/,Xr=/[+-]?\d{6}/,He=/\d\d?/,Oe=/\d\d\d\d?/,je=/\d\d\d\d\d\d?/,bt=/\d{1,3}/,nn=/\d{1,4}/,Dn=/[+-]?\d{1,6}/,xn=/\d+/,kn=/[+-]?\d+/,So=/Z|[+-]\d\d:?\d\d/gi,ma=/Z|[+-]\d\d(?::?\d\d)?/gi,nl=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Et(v,T,Z){Hl[v]=ye(T)?T:function(oe,_e){return oe&&Z?Z:T}}function vg(v,T){return M(Hl,v)?Hl[v](T._strict,T._locale):new RegExp(function _a(v){return Eo(v.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(T,Z,oe,_e,Fe){return Z||oe||_e||Fe}))}(v))}function Eo(v){return v.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Hl={};var ar={};function ni(v,T){var Z,_e,oe=T;for("string"==typeof v&&(v=[v]),B(T)&&(oe=function(Fe,qe){qe[T]=Yt(Fe)}),_e=v.length,Z=0;Z<_e;Z++)ar[v[Z]]=oe}function Fr(v,T){ni(v,function(Z,oe,_e,Fe){_e._w=_e._w||{},T(Z,_e._w,_e,Fe)})}function pI(v,T,Z){null!=T&&M(ar,v)&&ar[v](T,Z._a,Z,v)}var sr;function jh(v,T){if(isNaN(v)||isNaN(T))return NaN;var Z=function iD(v,T){return(v%T+T)%T}(T,12);return v+=(T-Z)/12,1===Z?ti(v)?29:28:31-Z%7%2}sr=Array.prototype.indexOf?Array.prototype.indexOf:function(v){var T;for(T=0;T68?1900:2e3)};var et=Yr("FullYear",!0);function Cn(v,T,Z,oe,_e,Fe,qe){var zt;return v<100&&v>=0?(zt=new Date(v+400,T,Z,oe,_e,Fe,qe),isFinite(zt.getFullYear())&&zt.setFullYear(v)):zt=new Date(v,T,Z,oe,_e,Fe,qe),zt}function Hn(v){var T,Z;return v<100&&v>=0?((Z=Array.prototype.slice.call(arguments))[0]=v+400,T=new Date(Date.UTC.apply(null,Z)),isFinite(T.getUTCFullYear())&&T.setUTCFullYear(v)):T=new Date(Date.UTC.apply(null,arguments)),T}function qh(v,T,Z){var oe=7+T-Z;return-(7+Hn(v,0,oe).getUTCDay()-T)%7+oe-1}function oD(v,T,Z,oe,_e){var Sn,vi,zt=1+7*(T-1)+(7+Z-oe)%7+qh(v,oe,_e);return zt<=0?vi=Wh(Sn=v-1)+zt:zt>Wh(v)?(Sn=v+1,vi=zt-Wh(v)):(Sn=v,vi=zt),{year:Sn,dayOfYear:vi}}function su(v,T,Z){var Fe,qe,oe=qh(v.year(),T,Z),_e=Math.floor((v.dayOfYear()-oe-1)/7)+1;return _e<1?Fe=_e+Jo(qe=v.year()-1,T,Z):_e>Jo(v.year(),T,Z)?(Fe=_e-Jo(v.year(),T,Z),qe=v.year()+1):(qe=v.year(),Fe=_e),{week:Fe,year:qe}}function Jo(v,T,Z){var oe=qh(v,T,Z),_e=qh(v+1,T,Z);return(Wh(v)-oe+_e)/7}Se("w",["ww",2],"wo","week"),Se("W",["WW",2],"Wo","isoWeek"),rt("week","w"),rt("isoWeek","W"),tn("week",5),tn("isoWeek",5),Et("w",He),Et("ww",He,Ri),Et("W",He),Et("WW",He,Ri),Fr(["w","ww","W","WW"],function(v,T,Z,oe){T[oe.substr(0,1)]=Yt(v)});function uy(v,T){return v.slice(T,7).concat(v.slice(0,T))}Se("d",0,"do","day"),Se("dd",0,0,function(v){return this.localeData().weekdaysMin(this,v)}),Se("ddd",0,0,function(v){return this.localeData().weekdaysShort(this,v)}),Se("dddd",0,0,function(v){return this.localeData().weekdays(this,v)}),Se("e",0,0,"weekday"),Se("E",0,0,"isoWeekday"),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),tn("day",11),tn("weekday",11),tn("isoWeekday",11),Et("d",He),Et("e",He),Et("E",He),Et("dd",function(v,T){return T.weekdaysMinRegex(v)}),Et("ddd",function(v,T){return T.weekdaysShortRegex(v)}),Et("dddd",function(v,T){return T.weekdaysRegex(v)}),Fr(["dd","ddd","dddd"],function(v,T,Z,oe){var _e=Z._locale.weekdaysParse(v,oe,Z._strict);null!=_e?T.d=_e:j(Z).invalidWeekday=v}),Fr(["d","e","E"],function(v,T,Z,oe){T[oe]=Yt(v)});var sD="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),lD="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),cD="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),yI=nl,Io=nl,ci=nl;function $e(v,T,Z){var oe,_e,Fe,qe=v.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],oe=0;oe<7;++oe)Fe=Q([2e3,1]).day(oe),this._minWeekdaysParse[oe]=this.weekdaysMin(Fe,"").toLocaleLowerCase(),this._shortWeekdaysParse[oe]=this.weekdaysShort(Fe,"").toLocaleLowerCase(),this._weekdaysParse[oe]=this.weekdays(Fe,"").toLocaleLowerCase();return Z?"dddd"===T?-1!==(_e=sr.call(this._weekdaysParse,qe))?_e:null:"ddd"===T?-1!==(_e=sr.call(this._shortWeekdaysParse,qe))?_e:null:-1!==(_e=sr.call(this._minWeekdaysParse,qe))?_e:null:"dddd"===T?-1!==(_e=sr.call(this._weekdaysParse,qe))||-1!==(_e=sr.call(this._shortWeekdaysParse,qe))||-1!==(_e=sr.call(this._minWeekdaysParse,qe))?_e:null:"ddd"===T?-1!==(_e=sr.call(this._shortWeekdaysParse,qe))||-1!==(_e=sr.call(this._weekdaysParse,qe))||-1!==(_e=sr.call(this._minWeekdaysParse,qe))?_e:null:-1!==(_e=sr.call(this._minWeekdaysParse,qe))||-1!==(_e=sr.call(this._weekdaysParse,qe))||-1!==(_e=sr.call(this._shortWeekdaysParse,qe))?_e:null}function Zh(){function v(fr,bs){return bs.length-fr.length}var Fe,qe,zt,Sn,vi,T=[],Z=[],oe=[],_e=[];for(Fe=0;Fe<7;Fe++)qe=Q([2e3,1]).day(Fe),zt=Eo(this.weekdaysMin(qe,"")),Sn=Eo(this.weekdaysShort(qe,"")),vi=Eo(this.weekdays(qe,"")),T.push(zt),Z.push(Sn),oe.push(vi),_e.push(zt),_e.push(Sn),_e.push(vi);T.sort(v),Z.sort(v),oe.sort(v),_e.sort(v),this._weekdaysRegex=new RegExp("^("+_e.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+oe.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Z.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+T.join("|")+")","i")}function qc(){return this.hours()%12||12}function Dg(v,T){Se(v,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),T)})}function py(v,T){return T._meridiemParse}Se("H",["HH",2],0,"hour"),Se("h",["hh",2],0,qc),Se("k",["kk",2],0,function wg(){return this.hours()||24}),Se("hmm",0,0,function(){return""+qc.apply(this)+ue(this.minutes(),2)}),Se("hmmss",0,0,function(){return""+qc.apply(this)+ue(this.minutes(),2)+ue(this.seconds(),2)}),Se("Hmm",0,0,function(){return""+this.hours()+ue(this.minutes(),2)}),Se("Hmmss",0,0,function(){return""+this.hours()+ue(this.minutes(),2)+ue(this.seconds(),2)}),Dg("a",!0),Dg("A",!1),rt("hour","h"),tn("hour",13),Et("a",py),Et("A",py),Et("H",He),Et("h",He),Et("k",He),Et("HH",He,Ri),Et("hh",He,Ri),Et("kk",He,Ri),Et("hmm",Oe),Et("hmmss",je),Et("Hmm",Oe),Et("Hmmss",je),ni(["H","HH"],3),ni(["k","kk"],function(v,T,Z){var oe=Yt(v);T[3]=24===oe?0:oe}),ni(["a","A"],function(v,T,Z){Z._isPm=Z._locale.isPM(v),Z._meridiem=v}),ni(["h","hh"],function(v,T,Z){T[3]=Yt(v),j(Z).bigHour=!0}),ni("hmm",function(v,T,Z){var oe=v.length-2;T[3]=Yt(v.substr(0,oe)),T[4]=Yt(v.substr(oe)),j(Z).bigHour=!0}),ni("hmmss",function(v,T,Z){var oe=v.length-4,_e=v.length-2;T[3]=Yt(v.substr(0,oe)),T[4]=Yt(v.substr(oe,2)),T[5]=Yt(v.substr(_e)),j(Z).bigHour=!0}),ni("Hmm",function(v,T,Z){var oe=v.length-2;T[3]=Yt(v.substr(0,oe)),T[4]=Yt(v.substr(oe))}),ni("Hmmss",function(v,T,Z){var oe=v.length-4,_e=v.length-2;T[3]=Yt(v.substr(0,oe)),T[4]=Yt(v.substr(oe,2)),T[5]=Yt(v.substr(_e))});var pD=Yr("Hours",!0);var eo,xg={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ly,monthsShort:cy,week:{dow:0,doy:6},weekdays:sD,weekdaysMin:cD,weekdaysShort:lD,meridiemParse:/[ap]\.?m?\.?/i},qi={},ta={};function MI(v,T){var Z,oe=Math.min(v.length,T.length);for(Z=0;Z0;){if(_e=kg(Fe.slice(0,Z).join("-")))return _e;if(oe&&oe.length>=Z&&MI(Fe,oe)>=Z-1)break;Z--}T++}return eo}(v)}function lu(v){var T,Z=v._a;return Z&&-2===j(v).overflow&&(T=Z[1]<0||Z[1]>11?1:Z[2]<1||Z[2]>jh(Z[0],Z[1])?2:Z[3]<0||Z[3]>24||24===Z[3]&&(0!==Z[4]||0!==Z[5]||0!==Z[6])?3:Z[4]<0||Z[4]>59?4:Z[5]<0||Z[5]>59?5:Z[6]<0||Z[6]>999?6:-1,j(v)._overflowDayOfYear&&(T<0||T>2)&&(T=2),j(v)._overflowWeeks&&-1===T&&(T=7),j(v)._overflowWeekday&&-1===T&&(T=8),j(v).overflow=T),v}var fy=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fs=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cu=/Z|[+-]\d\d(?::?\d\d)?/,Qh=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Be=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],du=/^\/?Date\((-?\d+)/i,gy=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,my={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dt(v){var T,Z,Fe,qe,zt,Sn,oe=v._i,_e=fy.exec(oe)||fs.exec(oe),vi=Qh.length,fr=Be.length;if(_e){for(j(v).iso=!0,T=0,Z=vi;T7)&&(Sn=!0)):(Fe=v._locale._week.dow,qe=v._locale._week.doy,vi=su(gi(),Fe,qe),Z=ya(T.gg,v._a[0],vi.year),oe=ya(T.w,vi.week),null!=T.d?((_e=T.d)<0||_e>6)&&(Sn=!0):null!=T.e?(_e=T.e+Fe,(T.e<0||T.e>6)&&(Sn=!0)):_e=Fe),oe<1||oe>Jo(Z,Fe,qe)?j(v)._overflowWeeks=!0:null!=Sn?j(v)._overflowWeekday=!0:(zt=oD(Z,oe,_e,Fe,qe),v._a[0]=zt.year,v._dayOfYear=zt.dayOfYear)}(v),null!=v._dayOfYear&&(qe=ya(v._a[0],_e[0]),(v._dayOfYear>Wh(qe)||0===v._dayOfYear)&&(j(v)._overflowDayOfYear=!0),Z=Hn(qe,0,v._dayOfYear),v._a[1]=Z.getUTCMonth(),v._a[2]=Z.getUTCDate()),T=0;T<3&&null==v._a[T];++T)v._a[T]=oe[T]=_e[T];for(;T<7;T++)v._a[T]=oe[T]=v._a[T]??(2===T?1:0);24===v._a[3]&&0===v._a[4]&&0===v._a[5]&&0===v._a[6]&&(v._nextDay=!0,v._a[3]=0),v._d=(v._useUTC?Hn:Cn).apply(null,oe),Fe=v._useUTC?v._d.getUTCDay():v._d.getDay(),null!=v._tzm&&v._d.setUTCMinutes(v._d.getUTCMinutes()-v._tzm),v._nextDay&&(v._a[3]=24),v._w&&typeof v._w.d<"u"&&v._w.d!==Fe&&(j(v).weekdayMismatch=!0)}}function wn(v){if(v._f!==_.ISO_8601)if(v._f!==_.RFC_2822){v._a=[],j(v).empty=!0;var Z,oe,_e,Fe,qe,vi,fr,T=""+v._i,zt=T.length,Sn=0;for(fr=(_e=Ve(v._f,v._locale).match(le)||[]).length,Z=0;Z0&&j(v).unusedInput.push(qe),T=T.slice(T.indexOf(oe)+oe.length),Sn+=oe.length),Ie[Fe]?(oe?j(v).empty=!1:j(v).unusedTokens.push(Fe),pI(Fe,oe,v)):v._strict&&!oe&&j(v).unusedTokens.push(Fe);j(v).charsLeftOver=zt-Sn,T.length>0&&j(v).unusedInput.push(T),v._a[3]<=12&&!0===j(v).bigHour&&v._a[3]>0&&(j(v).bigHour=void 0),j(v).parsedDateParts=v._a.slice(0),j(v).meridiem=v._meridiem,v._a[3]=function Vi(v,T,Z){var oe;return null==Z?T:null!=v.meridiemHour?v.meridiemHour(T,Z):(null!=v.isPM&&((oe=v.isPM(Z))&&T<12&&(T+=12),!oe&&12===T&&(T=0)),T)}(v._locale,v._a[3],v._meridiem),null!==(vi=j(v).era)&&(v._a[0]=v._locale.erasConvertYear(vi,v._a[0])),go(v),lu(v)}else $r(v);else Dt(v)}function ol(v){var T=v._i,Z=v._f;return v._locale=v._locale||na(v._l),null===T||void 0===Z&&""===T?K({nullInput:!0}):("string"==typeof T&&(v._i=T=v._locale.preparse(T)),G(T)?new q(lu(T)):(ce(T)?v._d=T:C(Z)?function Po(v){var T,Z,oe,_e,Fe,qe,zt=!1,Sn=v._f.length;if(0===Sn)return j(v).invalidFormat=!0,void(v._d=new Date(NaN));for(_e=0;_ethis?this:v:K()});function jl(v,T){var Z,oe;if(1===T.length&&C(T[0])&&(T=T[0]),!T.length)return gi();for(Z=T[0],oe=1;oe=0?new Date(v+400,T,Z)-pu:new Date(v,T,Z).valueOf()}function ip(v,T,Z){return v<100&&v>=0?Date.UTC(v+400,T,Z)-pu:Date.UTC(v,T,Z)}function op(v,T){return T.erasAbbrRegex(v)}function gu(){var _e,Fe,v=[],T=[],Z=[],oe=[],qe=this.eras();for(_e=0,Fe=qe.length;_e(Fe=Jo(v,oe,_e))&&(T=Fe),vs.call(this,v,T,Z,oe,_e))}function vs(v,T,Z,oe,_e){var Fe=oD(v,T,Z,oe,_e),qe=Hn(Fe.year,0,Fe.dayOfYear);return this.year(qe.getUTCFullYear()),this.month(qe.getUTCMonth()),this.date(qe.getUTCDate()),this}Se("N",0,0,"eraAbbr"),Se("NN",0,0,"eraAbbr"),Se("NNN",0,0,"eraAbbr"),Se("NNNN",0,0,"eraName"),Se("NNNNN",0,0,"eraNarrow"),Se("y",["y",1],"yo","eraYear"),Se("y",["yy",2],0,"eraYear"),Se("y",["yyy",3],0,"eraYear"),Se("y",["yyyy",4],0,"eraYear"),Et("N",op),Et("NN",op),Et("NNN",op),Et("NNNN",function fu(v,T){return T.erasNameRegex(v)}),Et("NNNNN",function Ha(v,T){return T.erasNarrowRegex(v)}),ni(["N","NN","NNN","NNNN","NNNNN"],function(v,T,Z,oe){var _e=Z._locale.erasParse(v,oe,Z._strict);_e?j(Z).era=_e:j(Z).invalidEra=v}),Et("y",xn),Et("yy",xn),Et("yyy",xn),Et("yyyy",xn),Et("yo",function Ng(v,T){return T._eraYearOrdinalRegex||xn}),ni(["y","yy","yyy","yyyy"],0),ni(["yo"],function(v,T,Z,oe){var _e;Z._locale._eraYearOrdinalRegex&&(_e=v.match(Z._locale._eraYearOrdinalRegex)),T[0]=Z._locale.eraYearOrdinalParse?Z._locale.eraYearOrdinalParse(v,_e):parseInt(v,10)}),Se(0,["gg",2],0,function(){return this.weekYear()%100}),Se(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Bg("gggg","weekYear"),Bg("ggggg","weekYear"),Bg("GGGG","isoWeekYear"),Bg("GGGGG","isoWeekYear"),rt("weekYear","gg"),rt("isoWeekYear","GG"),tn("weekYear",1),tn("isoWeekYear",1),Et("G",kn),Et("g",kn),Et("GG",He,Ri),Et("gg",He,Ri),Et("GGGG",nn,pr),Et("gggg",nn,pr),Et("GGGGG",Dn,Xr),Et("ggggg",Dn,Xr),Fr(["gggg","ggggg","GGGG","GGGGG"],function(v,T,Z,oe){T[oe.substr(0,2)]=Yt(v)}),Fr(["gg","GG"],function(v,T,Z,oe){T[oe]=_.parseTwoDigitYear(v)}),Se("Q",0,"Qo","quarter"),rt("quarter","Q"),tn("quarter",7),Et("Q",au),ni("Q",function(v,T){T[1]=3*(Yt(v)-1)}),Se("D",["DD",2],"Do","date"),rt("date","D"),tn("date",9),Et("D",He),Et("DD",He,Ri),Et("Do",function(v,T){return v?T._dayOfMonthOrdinalParse||T._ordinalParse:T._dayOfMonthOrdinalParseLenient}),ni(["D","DD"],2),ni("Do",function(v,T){T[2]=Yt(v.match(He)[0])});var Vg=Yr("Date",!0);Se("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("dayOfYear","DDD"),tn("dayOfYear",4),Et("DDD",bt),Et("DDDD",or),ni(["DDD","DDDD"],function(v,T,Z){Z._dayOfYear=Yt(v)}),Se("m",["mm",2],0,"minute"),rt("minute","m"),tn("minute",14),Et("m",He),Et("mm",He,Ri),ni(["m","mm"],4);var HD=Yr("Minutes",!1);Se("s",["ss",2],0,"second"),rt("second","s"),tn("second",15),Et("s",He),Et("ss",He,Ri),ni(["s","ss"],5);var Ya,Yg,Hg=Yr("Seconds",!1);for(Se("S",0,0,function(){return~~(this.millisecond()/100)}),Se(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Se(0,["SSS",3],0,"millisecond"),Se(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Se(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Se(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Se(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Se(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Se(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),rt("millisecond","ms"),tn("millisecond",16),Et("S",bt,au),Et("SS",bt,Ri),Et("SSS",bt,or),Ya="SSSS";Ya.length<=9;Ya+="S")Et(Ya,xn);function Ug(v,T){T[6]=Yt(1e3*("0."+v))}for(Ya="S";Ya.length<=9;Ya+="S")ni(Ya,Ug);Yg=Yr("Milliseconds",!1),Se("z",0,0,"zoneAbbr"),Se("zz",0,0,"zoneName");var ut=q.prototype;function jg(v){return v}ut.add=SI,ut.calendar=function Fg(v,T){1===arguments.length&&(arguments[0]?AI(arguments[0])?(v=arguments[0],T=void 0):PI(arguments[0])&&(T=arguments[0],v=void 0):(v=void 0,T=void 0));var Z=v||gi(),oe=Xc(Z,this).startOf("day"),_e=_.calendarFormat(this,oe)||"sameElse",Fe=T&&(ye(T[_e])?T[_e].call(this,Z):T[_e]);return this.format(Fe||this.localeData().calendar(_e,this,gi(Z)))},ut.clone=function RI(){return new q(this)},ut.diff=function xD(v,T,Z){var oe,_e,Fe;if(!this.isValid())return NaN;if(!(oe=Xc(v,this)).isValid())return NaN;switch(_e=6e4*(oe.utcOffset()-this.utcOffset()),T=Ge(T)){case"year":Fe=tp(this,oe)/12;break;case"month":Fe=tp(this,oe);break;case"quarter":Fe=tp(this,oe)/3;break;case"second":Fe=(this-oe)/1e3;break;case"minute":Fe=(this-oe)/6e4;break;case"hour":Fe=(this-oe)/36e5;break;case"day":Fe=(this-oe-_e)/864e5;break;case"week":Fe=(this-oe-_e)/6048e5;break;default:Fe=this-oe}return Z?Fe:en(Fe)},ut.endOf=function Ro(v){var T,Z;if(void 0===(v=Ge(v))||"millisecond"===v||!this.isValid())return this;switch(Z=this._isUTC?ip:My,v){case"year":T=Z(this.year()+1,0,1)-1;break;case"quarter":T=Z(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":T=Z(this.year(),this.month()+1,1)-1;break;case"week":T=Z(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":T=Z(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":T=Z(this.year(),this.month(),this.date()+1)-1;break;case"hour":T=this._d.valueOf(),T+=Lg-Pr(T+(this._isUTC?0:this.utcOffset()*ed),Lg)-1;break;case"minute":T=this._d.valueOf(),T+=ed-Pr(T,ed)-1;break;case"second":T=this._d.valueOf(),T+=1e3-Pr(T,1e3)-1}return this._d.setTime(T),_.updateOffset(this,!0),this},ut.format=function Pg(v){v||(v=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var T=Xe(this,v);return this.localeData().postformat(T)},ut.from=function TD(v,T){return this.isValid()&&(G(v)&&v.isValid()||gi(v).isValid())?Va({to:this,from:v}).locale(this.locale()).humanize(!T):this.localeData().invalidDate()},ut.fromNow=function ia(v){return this.from(gi(),v)},ut.to=function Rg(v,T){return this.isValid()&&(G(v)&&v.isValid()||gi(v).isValid())?Va({from:this,to:v}).locale(this.locale()).humanize(!T):this.localeData().invalidDate()},ut.toNow=function SD(v){return this.to(gi(),v)},ut.get=function Wc(v){return ye(this[v=Ge(v)])?this[v]():this},ut.invalidAt=function NI(){return j(this).overflow},ut.isAfter=function LI(v,T){var Z=G(v)?v:gi(v);return!(!this.isValid()||!Z.isValid())&&("millisecond"===(T=Ge(T)||"millisecond")?this.valueOf()>Z.valueOf():Z.valueOf()9999?Xe(Z,T?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ye(Date.prototype.toISOString)?T?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Xe(Z,"Z")):Xe(Z,T?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ut.inspect=function kD(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var Z,oe,v="moment",T="";return this.isLocal()||(v=0===this.utcOffset()?"moment.utc":"moment.parseZone",T="Z"),Z="["+v+'("]',oe=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(Z+oe+"-MM-DD[T]HH:mm:ss.SSS"+T+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(ut[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ut.toJSON=function Og(){return this.isValid()?this.toISOString():null},ut.toString=function Cy(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ut.unix=function rp(){return Math.floor(this.valueOf()/1e3)},ut.valueOf=function AD(){return this._d.valueOf()-6e4*(this._offset||0)},ut.creationData=function FD(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ut.eraName=function LD(){var v,T,Z,oe=this.localeData().eras();for(v=0,T=oe.length;vthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ut.isLocal=function vD(){return!!this.isValid()&&!this._isUTC},ut.isUtcOffset=function xI(){return!!this.isValid()&&this._isUTC},ut.isUtc=vy,ut.isUTC=vy,ut.zoneAbbr=function YD(){return this._isUTC?"UTC":""},ut.zoneName=function Ay(){return this._isUTC?"Coordinated Universal Time":""},ut.dates=ae("dates accessor is deprecated. Use date instead.",Vg),ut.months=ae("months accessor is deprecated. Use month instead",$h),ut.years=ae("years accessor is deprecated. Use year instead",et),ut.zone=ae("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function _D(v,T){return null!=v?("string"!=typeof v&&(v=-v),this.utcOffset(v,T),this):-this.utcOffset()}),ut.isDSTShifted=ae("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function wa(){if(!P(this._isDSTShifted))return this._isDSTShifted;var T,v={};return Y(v,this),(v=ol(v))._a?(T=v._isUTC?Q(v._a):gi(v._a),this._isDSTShifted=this.isValid()&&function mD(v,T,Z){var qe,oe=Math.min(v.length,T.length),_e=Math.abs(v.length-T.length),Fe=0;for(qe=0;qe0):this._isDSTShifted=!1,this._isDSTShifted});var ii=de.prototype;function nd(v,T,Z,oe){var _e=na(),Fe=Q().set(oe,T);return _e[Z](Fe,v)}function Py(v,T,Z){if(B(v)&&(T=v,v=void 0),v=v||"",null!=T)return nd(v,T,Z,"month");var oe,_e=[];for(oe=0;oe<12;oe++)_e[oe]=nd(v,oe,Z,"month");return _e}function $g(v,T,Z,oe){"boolean"==typeof v?(B(T)&&(Z=T,T=void 0),T=T||""):(Z=T=v,v=!1,B(T)&&(Z=T,T=void 0),T=T||"");var qe,_e=na(),Fe=v?_e._week.dow:0,zt=[];if(null!=Z)return nd(T,(Z+Fe)%7,oe,"day");for(qe=0;qe<7;qe++)zt[qe]=nd(T,(qe+Fe)%7,oe,"day");return zt}ii.calendar=function se(v,T,Z){var oe=this._calendar[v]||this._calendar.sameElse;return ye(oe)?oe.call(T,Z):oe},ii.longDateFormat=function Rt(v){var T=this._longDateFormat[v],Z=this._longDateFormat[v.toUpperCase()];return T||!Z?T:(this._longDateFormat[v]=Z.match(le).map(function(oe){return"MMMM"===oe||"MM"===oe||"DD"===oe||"dddd"===oe?oe.slice(1):oe}).join(""),this._longDateFormat[v])},ii.invalidDate=function Lt(){return this._invalidDate},ii.ordinal=function Xi(v){return this._ordinal.replace("%d",v)},ii.preparse=jg,ii.postformat=jg,ii.relativeTime=function Ut(v,T,Z,oe){var _e=this._relativeTime[Z];return ye(_e)?_e(v,T,Z,oe):_e.replace(/%d/i,v)},ii.pastFuture=function Le(v,T){var Z=this._relativeTime[v>0?"future":"past"];return ye(Z)?Z(T):Z.replace(/%s/i,T)},ii.set=function xe(v){var T,Z;for(Z in v)M(v,Z)&&(ye(T=v[Z])?this[Z]=T:this["_"+Z]=T);this._config=v,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ii.eras=function PD(v,T){var Z,oe,_e,Fe=this._eras||na("en")._eras;for(Z=0,oe=Fe.length;Z=0)return Fe[oe]},ii.erasConvertYear=function Ty(v,T){var Z=v.since<=v.until?1:-1;return void 0===T?_(v.since).year():_(v.since).year()+(T-v.offset)*Z},ii.erasAbbrRegex=function L(v){return M(this,"_erasAbbrRegex")||gu.call(this),v?this._erasAbbrRegex:this._erasRegex},ii.erasNameRegex=function R(v){return M(this,"_erasNameRegex")||gu.call(this),v?this._erasNameRegex:this._erasRegex},ii.erasNarrowRegex=function Cr(v){return M(this,"_erasNarrowRegex")||gu.call(this),v?this._erasNarrowRegex:this._erasRegex},ii.months=function yg(v,T){return v?C(this._months)?this._months[v.month()]:this._months[(this._months.isFormat||dy).test(T)?"format":"standalone"][v.month()]:C(this._months)?this._months:this._months.standalone},ii.monthsShort=function bg(v,T){return v?C(this._monthsShort)?this._monthsShort[v.month()]:this._monthsShort[dy.test(T)?"format":"standalone"][v.month()]:C(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ii.monthsParse=function Cg(v,T,Z){var oe,_e,Fe;if(this._monthsParseExact)return Si.call(this,v,T,Z);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),oe=0;oe<12;oe++){if(_e=Q([2e3,oe]),Z&&!this._longMonthsParse[oe]&&(this._longMonthsParse[oe]=new RegExp("^"+this.months(_e,"").replace(".","")+"$","i"),this._shortMonthsParse[oe]=new RegExp("^"+this.monthsShort(_e,"").replace(".","")+"$","i")),!Z&&!this._monthsParse[oe]&&(Fe="^"+this.months(_e,"")+"|^"+this.monthsShort(_e,""),this._monthsParse[oe]=new RegExp(Fe.replace(".",""),"i")),Z&&"MMMM"===T&&this._longMonthsParse[oe].test(v))return oe;if(Z&&"MMM"===T&&this._shortMonthsParse[oe].test(v))return oe;if(!Z&&this._monthsParse[oe].test(v))return oe}},ii.monthsRegex=function dn(v){return this._monthsParseExact?(M(this,"_monthsRegex")||zh.call(this),v?this._monthsStrictRegex:this._monthsRegex):(M(this,"_monthsRegex")||(this._monthsRegex=jr),this._monthsStrictRegex&&v?this._monthsStrictRegex:this._monthsRegex)},ii.monthsShortRegex=function Fn(v){return this._monthsParseExact?(M(this,"_monthsRegex")||zh.call(this),v?this._monthsShortStrictRegex:this._monthsShortRegex):(M(this,"_monthsShortRegex")||(this._monthsShortRegex=er),this._monthsShortStrictRegex&&v?this._monthsShortStrictRegex:this._monthsShortRegex)},ii.week=function Ao(v){return su(v,this._week.dow,this._week.doy).week},ii.firstDayOfYear=function gI(){return this._week.doy},ii.firstDayOfWeek=function aD(){return this._week.dow},ii.weekdays=function bI(v,T){var Z=C(this._weekdays)?this._weekdays:this._weekdays[v&&!0!==v&&this._weekdays.isFormat.test(T)?"format":"standalone"];return!0===v?uy(Z,this._week.dow):v?Z[v.day()]:Z},ii.weekdaysMin=function wI(v){return!0===v?uy(this._weekdaysMin,this._week.dow):v?this._weekdaysMin[v.day()]:this._weekdaysMin},ii.weekdaysShort=function CI(v){return!0===v?uy(this._weekdaysShort,this._week.dow):v?this._weekdaysShort[v.day()]:this._weekdaysShort},ii.weekdaysParse=function DI(v,T,Z){var oe,_e,Fe;if(this._weekdaysParseExact)return $e.call(this,v,T,Z);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),oe=0;oe<7;oe++){if(_e=Q([2e3,1]).day(oe),Z&&!this._fullWeekdaysParse[oe]&&(this._fullWeekdaysParse[oe]=new RegExp("^"+this.weekdays(_e,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[oe]=new RegExp("^"+this.weekdaysShort(_e,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[oe]=new RegExp("^"+this.weekdaysMin(_e,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[oe]||(Fe="^"+this.weekdays(_e,"")+"|^"+this.weekdaysShort(_e,"")+"|^"+this.weekdaysMin(_e,""),this._weekdaysParse[oe]=new RegExp(Fe.replace(".",""),"i")),Z&&"dddd"===T&&this._fullWeekdaysParse[oe].test(v))return oe;if(Z&&"ddd"===T&&this._shortWeekdaysParse[oe].test(v))return oe;if(Z&&"dd"===T&&this._minWeekdaysParse[oe].test(v))return oe;if(!Z&&this._weekdaysParse[oe].test(v))return oe}},ii.weekdaysRegex=function hy(v){return this._weekdaysParseExact?(M(this,"_weekdaysRegex")||Zh.call(this),v?this._weekdaysStrictRegex:this._weekdaysRegex):(M(this,"_weekdaysRegex")||(this._weekdaysRegex=yI),this._weekdaysStrictRegex&&v?this._weekdaysStrictRegex:this._weekdaysRegex)},ii.weekdaysShortRegex=function uD(v){return this._weekdaysParseExact?(M(this,"_weekdaysRegex")||Zh.call(this),v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(M(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Io),this._weekdaysShortStrictRegex&&v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ii.weekdaysMinRegex=function hD(v){return this._weekdaysParseExact?(M(this,"_weekdaysRegex")||Zh.call(this),v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(M(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ci),this._weekdaysMinStrictRegex&&v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ii.isPM=function rn(v){return"p"===(v+"").toLowerCase().charAt(0)},ii.meridiem=function ea(v,T,Z){return v>11?Z?"pm":"PM":Z?"am":"AM"},Yl("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(v){var T=v%10;return v+(1===Yt(v%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")}}),_.lang=ae("moment.lang is deprecated. Use moment.locale instead.",Yl),_.langData=ae("moment.langData is deprecated. Use moment.localeData instead.",na);var Ua=Math.abs;function Ry(v,T,Z,oe){var _e=Va(T,Z);return v._milliseconds+=oe*_e._milliseconds,v._days+=oe*_e._days,v._months+=oe*_e._months,v._bubble()}function _u(v){return v<0?Math.floor(v):Math.ceil(v)}function lp(v){return 4800*v/146097}function cp(v){return 146097*v/4800}function Lo(v){return function(){return this.as(v)}}var WD=Lo("ms"),GD=Lo("s"),vu=Lo("m"),zg=Lo("h"),qD=Lo("d"),KD=Lo("w"),VI=Lo("M"),HI=Lo("Q"),dp=Lo("y");function ja(v){return function(){return this.isValid()?this._data[v]:NaN}}var Ny=ja("milliseconds"),By=ja("seconds"),id=ja("minutes"),ZD=ja("hours"),rd=ja("days"),Wg=ja("months"),up=ja("years");var $a=Math.round,ql={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function QD(v,T,Z,oe,_e){return _e.relativeTime(T||1,!!Z,v,oe)}var bu=Math.abs;function ys(v){return(v>0)-(v<0)||+v}function Kl(){if(!this.isValid())return this.localeData().invalidDate();var oe,_e,Fe,qe,Sn,vi,fr,bs,v=bu(this._milliseconds)/1e3,T=bu(this._days),Z=bu(this._months),zt=this.asSeconds();return zt?(oe=en(v/60),_e=en(oe/60),v%=60,oe%=60,Fe=en(Z/12),Z%=12,qe=v?v.toFixed(3).replace(/\.?0+$/,""):"",Sn=zt<0?"-":"",vi=ys(this._months)!==ys(zt)?"-":"",fr=ys(this._days)!==ys(zt)?"-":"",bs=ys(this._milliseconds)!==ys(zt)?"-":"",Sn+"P"+(Fe?vi+Fe+"Y":"")+(Z?vi+Z+"M":"")+(T?fr+T+"D":"")+(_e||oe||v?"T":"")+(_e?bs+_e+"H":"")+(oe?bs+oe+"M":"")+(v?bs+qe+"S":"")):"P0D"}var Zn=uu.prototype;return Zn.isValid=function ba(){return this._isValid},Zn.abs=function jD(){var v=this._data;return this._milliseconds=Ua(this._milliseconds),this._days=Ua(this._days),this._months=Ua(this._months),v.milliseconds=Ua(v.milliseconds),v.seconds=Ua(v.seconds),v.minutes=Ua(v.minutes),v.hours=Ua(v.hours),v.months=Ua(v.months),v.years=Ua(v.years),this},Zn.add=function $D(v,T){return Ry(this,v,T,1)},Zn.subtract=function ap(v,T){return Ry(this,v,T,-1)},Zn.as=function zD(v){if(!this.isValid())return NaN;var T,Z,oe=this._milliseconds;if("month"===(v=Ge(v))||"quarter"===v||"year"===v)switch(T=this._days+oe/864e5,Z=this._months+lp(T),v){case"month":return Z;case"quarter":return Z/3;case"year":return Z/12}else switch(T=this._days+Math.round(cp(this._months)),v){case"week":return T/7+oe/6048e5;case"day":return T+oe/864e5;case"hour":return 24*T+oe/36e5;case"minute":return 1440*T+oe/6e4;case"second":return 86400*T+oe/1e3;case"millisecond":return Math.floor(864e5*T)+oe;default:throw new Error("Unknown unit "+v)}},Zn.asMilliseconds=WD,Zn.asSeconds=GD,Zn.asMinutes=vu,Zn.asHours=zg,Zn.asDays=qD,Zn.asWeeks=KD,Zn.asMonths=VI,Zn.asQuarters=HI,Zn.asYears=dp,Zn.valueOf=function ll(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Yt(this._months/12):NaN},Zn._bubble=function sp(){var _e,Fe,qe,zt,Sn,v=this._milliseconds,T=this._days,Z=this._months,oe=this._data;return v>=0&&T>=0&&Z>=0||v<=0&&T<=0&&Z<=0||(v+=864e5*_u(cp(Z)+T),T=0,Z=0),oe.milliseconds=v%1e3,_e=en(v/1e3),oe.seconds=_e%60,Fe=en(_e/60),oe.minutes=Fe%60,qe=en(Fe/60),oe.hours=qe%24,T+=en(qe/24),Z+=Sn=en(lp(T)),T-=_u(cp(Sn)),zt=en(Z/12),Z%=12,oe.days=T,oe.months=Z,oe.years=zt,this},Zn.clone=function Ly(){return Va(this)},Zn.get=function Oy(v){return v=Ge(v),this.isValid()?this[v+"s"]():NaN},Zn.milliseconds=Ny,Zn.seconds=By,Zn.minutes=id,Zn.hours=ZD,Zn.days=rd,Zn.weeks=function YI(){return en(this.days()/7)},Zn.months=Wg,Zn.years=up,Zn.humanize=function Gg(v,T){if(!this.isValid())return this.localeData().invalidDate();var _e,Fe,Z=!1,oe=ql;return"object"==typeof v&&(T=v,v=!1),"boolean"==typeof v&&(Z=v),"object"==typeof T&&(oe=Object.assign({},ql,T),null!=T.s&&null==T.ss&&(oe.ss=T.s-1)),Fe=function za(v,T,Z,oe){var _e=Va(v).abs(),Fe=$a(_e.as("s")),qe=$a(_e.as("m")),zt=$a(_e.as("h")),Sn=$a(_e.as("d")),vi=$a(_e.as("M")),fr=$a(_e.as("w")),bs=$a(_e.as("y")),Pi=Fe<=Z.ss&&["s",Fe]||Fe0,Pi[4]=oe,QD.apply(null,Pi)}(this,!Z,oe,_e=this.localeData()),Z&&(Fe=_e.pastFuture(+this,Fe)),_e.postformat(Fe)},Zn.toISOString=Kl,Zn.toString=Kl,Zn.toJSON=Kl,Zn.locale=np,Zn.localeData=ED,Zn.toIsoString=ae("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kl),Zn.lang=Dy,Se("X",0,0,"unix"),Se("x",0,0,"valueOf"),Et("x",kn),Et("X",/[+-]?\d+(\.\d{1,3})?/),ni("X",function(v,T,Z){Z._d=new Date(1e3*parseFloat(v))}),ni("x",function(v,T,Z){Z._d=new Date(Yt(v))}),_.version="2.29.4",function x(v){b=v}(gi),_.fn=ut,_.min=function Sg(){return jl("isBefore",[].slice.call(arguments,0))},_.max=function $l(){return jl("isAfter",[].slice.call(arguments,0))},_.now=function(){return Date.now?Date.now():+new Date},_.utc=Q,_.unix=function Iy(v){return gi(1e3*v)},_.months=function io(v,T){return Py(v,T,"months")},_.isDate=ce,_.locale=Yl,_.invalid=K,_.duration=Va,_.isMoment=G,_.weekdays=function nr(v,T,Z){return $g(v,T,Z,"weekdays")},_.parseZone=function Fy(){return gi.apply(null,arguments).parseZone()},_.localeData=na,_.isDuration=mi,_.monthsShort=function sl(v,T){return Py(v,T,"monthsShort")},_.weekdaysMin=function UD(v,T,Z){return $g(v,T,Z,"weekdaysMin")},_.defineLocale=rl,_.updateLocale=function ai(v,T){if(null!=T){var Z,oe,_e=xg;null!=qi[v]&&null!=qi[v].parentLocale?qi[v].set(ve(qi[v]._config,T)):(null!=(oe=kg(v))&&(_e=oe._config),T=ve(_e,T),null==oe&&(T.abbr=v),(Z=new de(T)).parentLocale=qi[v],qi[v]=Z),Yl(v)}else null!=qi[v]&&(null!=qi[v].parentLocale?(qi[v]=qi[v].parentLocale,v===Yl()&&Yl(v)):null!=qi[v]&&delete qi[v]);return qi[v]},_.locales=function Tg(){return ie(qi)},_.weekdaysShort=function mu(v,T,Z){return $g(v,T,Z,"weekdaysShort")},_.normalizeUnits=Ge,_.relativeTimeRounding=function XD(v){return void 0===v?$a:"function"==typeof v&&($a=v,!0)},_.relativeTimeThreshold=function yu(v,T){return void 0!==ql[v]&&(void 0===T?ql[v]:(ql[v]=T,"s"===v&&(ql.ss=T-1),!0))},_.calendarFormat=function yy(v,T){var Z=v.diff(T,"days",!0);return Z<-6?"sameElse":Z<-1?"lastWeek":Z<0?"lastDay":Z<1?"sameDay":Z<2?"nextDay":Z<7?"nextWeek":"sameElse"},_.prototype=ut,_.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},_}()},6036:function(module,__unused_webpack_exports,__webpack_require__){var _asyncToGenerator=__webpack_require__(7156).default,V;V=function(){return(()=>{"use strict";var __webpack_modules__=[(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"addLinkAttributes",{enumerable:!0,get:function(){return b.addLinkAttributes}}),Object.defineProperty(I,"getFilenameFromUrl",{enumerable:!0,get:function(){return b.getFilenameFromUrl}}),Object.defineProperty(I,"LinkTarget",{enumerable:!0,get:function(){return b.LinkTarget}}),Object.defineProperty(I,"loadScript",{enumerable:!0,get:function(){return b.loadScript}}),Object.defineProperty(I,"PDFDateString",{enumerable:!0,get:function(){return b.PDFDateString}}),Object.defineProperty(I,"RenderingCancelledException",{enumerable:!0,get:function(){return b.RenderingCancelledException}}),Object.defineProperty(I,"build",{enumerable:!0,get:function(){return _.build}}),Object.defineProperty(I,"getDocument",{enumerable:!0,get:function(){return _.getDocument}}),Object.defineProperty(I,"LoopbackPort",{enumerable:!0,get:function(){return _.LoopbackPort}}),Object.defineProperty(I,"PDFDataRangeTransport",{enumerable:!0,get:function(){return _.PDFDataRangeTransport}}),Object.defineProperty(I,"PDFWorker",{enumerable:!0,get:function(){return _.PDFWorker}}),Object.defineProperty(I,"version",{enumerable:!0,get:function(){return _.version}}),Object.defineProperty(I,"CMapCompressionType",{enumerable:!0,get:function(){return x.CMapCompressionType}}),Object.defineProperty(I,"createObjectURL",{enumerable:!0,get:function(){return x.createObjectURL}}),Object.defineProperty(I,"createPromiseCapability",{enumerable:!0,get:function(){return x.createPromiseCapability}}),Object.defineProperty(I,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return x.createValidAbsoluteUrl}}),Object.defineProperty(I,"InvalidPDFException",{enumerable:!0,get:function(){return x.InvalidPDFException}}),Object.defineProperty(I,"MissingPDFException",{enumerable:!0,get:function(){return x.MissingPDFException}}),Object.defineProperty(I,"OPS",{enumerable:!0,get:function(){return x.OPS}}),Object.defineProperty(I,"PasswordResponses",{enumerable:!0,get:function(){return x.PasswordResponses}}),Object.defineProperty(I,"PermissionFlag",{enumerable:!0,get:function(){return x.PermissionFlag}}),Object.defineProperty(I,"removeNullCharacters",{enumerable:!0,get:function(){return x.removeNullCharacters}}),Object.defineProperty(I,"shadow",{enumerable:!0,get:function(){return x.shadow}}),Object.defineProperty(I,"UnexpectedResponseException",{enumerable:!0,get:function(){return x.UnexpectedResponseException}}),Object.defineProperty(I,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return x.UNSUPPORTED_FEATURES}}),Object.defineProperty(I,"Util",{enumerable:!0,get:function(){return x.Util}}),Object.defineProperty(I,"VerbosityLevel",{enumerable:!0,get:function(){return x.VerbosityLevel}}),Object.defineProperty(I,"AnnotationLayer",{enumerable:!0,get:function(){return C.AnnotationLayer}}),Object.defineProperty(I,"apiCompatibilityParams",{enumerable:!0,get:function(){return D.apiCompatibilityParams}}),Object.defineProperty(I,"GlobalWorkerOptions",{enumerable:!0,get:function(){return M.GlobalWorkerOptions}}),Object.defineProperty(I,"renderTextLayer",{enumerable:!0,get:function(){return A.renderTextLayer}}),Object.defineProperty(I,"SVGGraphics",{enumerable:!0,get:function(){return P.SVGGraphics}});var b=V(1),_=V(5),x=V(2),C=V(19),D=V(9),M=V(12),A=V(21),P=V(22);{const{isNodeJS:X}=V(4);if(X){const ne=V(23).PDFNodeStream;(0,_.setPDFNetworkStreamFactory)(Q=>new ne(Q))}else{const ne=V(26).PDFNetworkStream;let Q;(0,b.isFetchSupported)()&&(Q=V(27).PDFFetchStream),(0,_.setPDFNetworkStreamFactory)(fe=>Q&&(0,b.isValidFetchUrl)(fe.url)?new Q(fe):new ne(fe))}}},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.addLinkAttributes=function ne(Y,{url:q,target:G,rel:re,enabled:ae=!0}={}){(0,b.assert)(q&&"string"==typeof q,'addLinkAttributes: A valid "url" parameter must provided.');const Me=(0,b.removeNullCharacters)(q);ae?Y.href=Y.title=Me:(Y.href="",Y.title=`Disabled: ${Me}`,Y.onclick=()=>!1);let De="";switch(G){case X.NONE:break;case X.SELF:De="_self";break;case X.BLANK:De="_blank";break;case X.PARENT:De="_parent";break;case X.TOP:De="_top"}Y.target=De,Y.rel="string"==typeof re?re:_},I.deprecated=function K(Y){console.log("Deprecated API usage: "+Y)},I.getFilenameFromUrl=function Q(Y){const q=Y.indexOf("#"),G=Y.indexOf("?"),re=Math.min(q>0?q:Y.length,G>0?G:Y.length);return Y.substring(Y.lastIndexOf("/",re)+1,re)},I.isFetchSupported=j,I.isValidFetchUrl=J,I.loadScript=function te(Y,q=!1){return new Promise((G,re)=>{const ae=document.createElement("script");ae.src=Y,ae.onload=function(Me){q&&ae.remove(),G(Me)},ae.onerror=function(){re(new Error(`Cannot load script at: ${ae.src}`))},(document.head||document.documentElement).appendChild(ae)})},I.StatTimer=I.RenderingCancelledException=I.PDFDateString=I.PageViewport=I.LinkTarget=I.DOMSVGFactory=I.DOMCMapReaderFactory=I.DOMCanvasFactory=I.DEFAULT_LINK_REL=I.BaseCMapReaderFactory=I.BaseCanvasFactory=void 0;var b=V(2);const _="noopener noreferrer nofollow";I.DEFAULT_LINK_REL=_;const x="http://www.w3.org/2000/svg";class C{constructor(){this.constructor===C&&(0,b.unreachable)("Cannot initialize BaseCanvasFactory.")}create(q,G){(0,b.unreachable)("Abstract method `create` called.")}reset(q,G,re){if(!q.canvas)throw new Error("Canvas is not specified");if(G<=0||re<=0)throw new Error("Invalid canvas size");q.canvas.width=G,q.canvas.height=re}destroy(q){if(!q.canvas)throw new Error("Canvas is not specified");q.canvas.width=0,q.canvas.height=0,q.canvas=null,q.context=null}}I.BaseCanvasFactory=C,I.DOMCanvasFactory=class D extends C{constructor({ownerDocument:q=globalThis.document}={}){super(),this._document=q}create(q,G){if(q<=0||G<=0)throw new Error("Invalid canvas size");const re=this._document.createElement("canvas"),ae=re.getContext("2d");return re.width=q,re.height=G,{canvas:re,context:ae}}};class M{constructor({baseUrl:q=null,isCompressed:G=!1}){this.constructor===M&&(0,b.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=q,this.isCompressed=G}fetch({name:q}){var G=this;return _asyncToGenerator(function*(){if(!G.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!q)throw new Error("CMap name must be specified.");const re=G.baseUrl+q+(G.isCompressed?".bcmap":"");return G._fetchData(re,G.isCompressed?b.CMapCompressionType.BINARY:b.CMapCompressionType.NONE).catch(Me=>{throw new Error(`Unable to load ${G.isCompressed?"binary ":""}CMap at: ${re}`)})})()}_fetchData(q,G){(0,b.unreachable)("Abstract method `_fetchData` called.")}}I.BaseCMapReaderFactory=M,I.DOMCMapReaderFactory=class A extends M{_fetchData(q,G){var re=this;return j()&&J(q,document.baseURI)?fetch(q).then(function(){var ae=_asyncToGenerator(function*(Me){if(!Me.ok)throw new Error(Me.statusText);let De;return De=re.isCompressed?new Uint8Array(yield Me.arrayBuffer()):(0,b.stringToBytes)(yield Me.text()),{cMapData:De,compressionType:G}});return function(Me){return ae.apply(this,arguments)}}()):new Promise((ae,Me)=>{const De=new XMLHttpRequest;De.open("GET",q,!0),this.isCompressed&&(De.responseType="arraybuffer"),De.onreadystatechange=()=>{if(De.readyState===XMLHttpRequest.DONE){if(200===De.status||0===De.status){let ye;if(this.isCompressed&&De.response?ye=new Uint8Array(De.response):!this.isCompressed&&De.responseText&&(ye=(0,b.stringToBytes)(De.responseText)),ye)return void ae({cMapData:ye,compressionType:G})}Me(new Error(De.statusText))}},De.send(null)})}},I.DOMSVGFactory=class P{create(q,G){(0,b.assert)(q>0&&G>0,"Invalid SVG dimensions");const re=document.createElementNS(x,"svg:svg");return re.setAttribute("version","1.1"),re.setAttribute("width",q+"px"),re.setAttribute("height",G+"px"),re.setAttribute("preserveAspectRatio","none"),re.setAttribute("viewBox","0 0 "+q+" "+G),re}createElement(q){return(0,b.assert)("string"==typeof q,"Invalid SVG element type"),document.createElementNS(x,q)}};class B{constructor({viewBox:q,scale:G,rotation:re,offsetX:ae=0,offsetY:Me=0,dontFlip:De=!1}){this.viewBox=q,this.scale=G,this.rotation=re,this.offsetX=ae,this.offsetY=Me;const ye=(q[2]+q[0])/2,xe=(q[3]+q[1])/2;let ve,de,ie,S,se,ue,le,me;switch(re=(re%=360)<0?re+360:re){case 180:ve=-1,de=0,ie=0,S=1;break;case 90:ve=0,de=1,ie=1,S=0;break;case 270:ve=0,de=-1,ie=-1,S=0;break;case 0:ve=1,de=0,ie=0,S=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}De&&(ie=-ie,S=-S),0===ve?(se=Math.abs(xe-q[1])*G+ae,ue=Math.abs(ye-q[0])*G+Me,le=Math.abs(q[3]-q[1])*G,me=Math.abs(q[2]-q[0])*G):(se=Math.abs(ye-q[0])*G+ae,ue=Math.abs(xe-q[1])*G+Me,le=Math.abs(q[2]-q[0])*G,me=Math.abs(q[3]-q[1])*G),this.transform=[ve*G,de*G,ie*G,S*G,se-ve*G*ye-ie*G*xe,ue-de*G*ye-S*G*xe],this.width=le,this.height=me}clone({scale:q=this.scale,rotation:G=this.rotation,offsetX:re=this.offsetX,offsetY:ae=this.offsetY,dontFlip:Me=!1}={}){return new B({viewBox:this.viewBox.slice(),scale:q,rotation:G,offsetX:re,offsetY:ae,dontFlip:Me})}convertToViewportPoint(q,G){return b.Util.applyTransform([q,G],this.transform)}convertToViewportRectangle(q){const G=b.Util.applyTransform([q[0],q[1]],this.transform),re=b.Util.applyTransform([q[2],q[3]],this.transform);return[G[0],G[1],re[0],re[1]]}convertToPdfPoint(q,G){return b.Util.applyInverseTransform([q,G],this.transform)}}I.PageViewport=B,I.RenderingCancelledException=class ce extends b.BaseException{constructor(q,G){super(q),this.type=G}};const X={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function j(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype&&typeof ReadableStream<"u"}function J(Y,q){try{const{protocol:G}=q?new URL(Y,q):new URL(Y);return"http:"===G||"https:"===G}catch{return!1}}let O;I.LinkTarget=X,I.StatTimer=class fe{constructor(){this.started=Object.create(null),this.times=[]}time(q){q in this.started&&(0,b.warn)(`Timer is already running for ${q}`),this.started[q]=Date.now()}timeEnd(q){q in this.started||(0,b.warn)(`Timer has not been started for ${q}`),this.times.push({name:q,start:this.started[q],end:Date.now()}),delete this.started[q]}toString(){const q=[];let G=0;for(const re of this.times){const ae=re.name;ae.length>G&&(G=ae.length)}for(const re of this.times){const ae=re.end-re.start;q.push(`${re.name.padEnd(G)} ${ae}ms\n`)}return q.join("")}},I.PDFDateString=class F{static toDateObject(q){if(!q||!(0,b.isString)(q))return null;O||(O=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const G=O.exec(q);if(!G)return null;const re=parseInt(G[1],10);let ae=parseInt(G[2],10);ae=ae>=1&&ae<=12?ae-1:0;let Me=parseInt(G[3],10);Me=Me>=1&&Me<=31?Me:1;let De=parseInt(G[4],10);De=De>=0&&De<=23?De:0;let ye=parseInt(G[5],10);ye=ye>=0&&ye<=59?ye:0;let xe=parseInt(G[6],10);xe=xe>=0&&xe<=59?xe:0;const ve=G[7]||"Z";let de=parseInt(G[8],10);de=de>=0&&de<=23?de:0;let ie=parseInt(G[9],10)||0;return ie=ie>=0&&ie<=59?ie:0,"-"===ve?(De+=de,ye+=ie):"+"===ve&&(De-=de,ye-=ie),new Date(Date.UTC(re,ae,Me,De,ye,xe))}}},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.arrayByteLength=It,I.arraysToBytes=function Lt(He){const Oe=He.length;if(1===Oe&&He[0]instanceof Uint8Array)return He[0];let je=0;for(let Dn=0;DnOe}),He.promise=new Promise(function(je,bt){He.resolve=function(nn){Oe=!0,je(nn)},He.reject=function(nn){Oe=!0,bt(nn)}}),He},I.createValidAbsoluteUrl=function S(He,Oe){if(!He)return null;try{const je=Oe?new URL(He,Oe):new URL(He);if(function ie(He){if(!He)return!1;switch(He.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(je))return je}catch{}return null},I.encodeToXmlString=function Xr(He){const Oe=[];let je=0;for(let bt=0,nn=He.length;bt55295&&(Dn<57344||Dn>65533)&&bt++,je=bt+1}return 0===Oe.length?He:(je"\n"===Oe?"\\n":"\r"===Oe?"\\r":`\\${Oe}`)},I.getModificationDate=function au(He=new Date){return[He.getUTCFullYear().toString(),(He.getUTCMonth()+1).toString().padStart(2,"0"),He.getUTCDate().toString().padStart(2,"0"),He.getUTCHours().toString().padStart(2,"0"),He.getUTCMinutes().toString().padStart(2,"0"),He.getUTCSeconds().toString().padStart(2,"0")].join("")},I.getVerbosityLevel=function Me(){return re},I.info=function De(He){re>=O.INFOS&&console.log(`Info: ${He}`)},I.isArrayBuffer=function Wc(He){return"object"==typeof He&&null!==He&&void 0!==He.byteLength},I.isArrayEqual=function Uh(He,Oe){return He.length===Oe.length&&He.every(function(je,bt){return je===Oe[bt]})},I.isAscii=function _n(He){return/^[\x00-\x7F]*$/.test(He)},I.isBool=function Yr(He){return"boolean"==typeof He},I.isNum=function ds(He){return"number"==typeof He},I.isSameOrigin=function de(He,Oe){let je;try{if(je=new URL(He),!je.origin||"null"===je.origin)return!1}catch{return!1}const bt=new URL(Oe,je);return je.origin===bt.origin},I.isString=function us(He){return"string"==typeof He},I.objectFromEntries=function Xi(He){return Object.assign(Object.create(null),Object.fromEntries(He))},I.objectSize=function cn(He){return Object.keys(He).length},I.removeNullCharacters=function Ve(He){return"string"!=typeof He?(ye("The argument for removeNullCharacters must be a string."),He):He.replace(Xe,"")},I.setVerbosityLevel=function ae(He){Number.isInteger(He)&&(re=He)},I.shadow=se,I.string32=function $t(He){return String.fromCharCode(He>>24&255,He>>16&255,He>>8&255,255&He)},I.stringToBytes=Rt,I.stringToPDFString=function yt(He){const Oe=He.length,je=[];if("\xfe"===He[0]&&"\xff"===He[1])for(let bt=2;bt>8&255)),Oe.push(String.fromCharCode(255&nn))}return Oe.join("")},I.stringToUTF8String=function en(He){return decodeURIComponent(escape(He))},I.unreachable=xe,I.utf8StringToString=function Yt(He){return unescape(encodeURIComponent(He))},I.warn=ye,I.VerbosityLevel=I.Util=I.UNSUPPORTED_FEATURES=I.UnknownErrorException=I.UnexpectedResponseException=I.TextRenderingMode=I.StreamType=I.PermissionFlag=I.PasswordResponses=I.PasswordException=I.PageActionEventType=I.OPS=I.MissingPDFException=I.IsLittleEndianCached=I.IsEvalSupportedCached=I.InvalidPDFException=I.ImageKind=I.IDENTITY_MATRIX=I.FormatError=I.FontType=I.FONT_IDENTITY_MATRIX=I.DocumentActionEventType=I.createObjectURL=I.CMapCompressionType=I.BaseException=I.AnnotationType=I.AnnotationStateModelType=I.AnnotationReviewState=I.AnnotationReplyType=I.AnnotationMarkedState=I.AnnotationFlag=I.AnnotationFieldFlag=I.AnnotationBorderStyleType=I.AnnotationActionEventType=I.AbortException=void 0,V(3),I.IDENTITY_MATRIX=[1,0,0,1,0,0],I.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],I.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},I.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},I.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},I.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},I.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},I.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},I.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},I.AnnotationReplyType={GROUP:"Group",REPLY:"R"},I.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},I.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},I.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},I.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},I.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},I.PageActionEventType={O:"PageOpen",C:"PageClose"},I.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},I.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const O={ERRORS:0,WARNINGS:1,INFOS:5};I.VerbosityLevel=O,I.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},I.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},I.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"},I.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let re=O.WARNINGS;function ye(He){re>=O.WARNINGS&&console.log(`Warning: ${He}`)}function xe(He){throw new Error(He)}function ve(He,Oe){He||xe(Oe)}function se(He,Oe,je){return Object.defineProperty(He,Oe,{value:je,enumerable:!0,configurable:!0,writable:!1}),je}const ue=function(){function Oe(je){this.constructor===Oe&&xe("Cannot initialize BaseException."),this.message=je,this.name=this.constructor.name}return Oe.prototype=new Error,Oe.constructor=Oe,Oe}();I.BaseException=ue,I.PasswordException=class le extends ue{constructor(Oe,je){super(Oe),this.code=je}},I.UnknownErrorException=class me extends ue{constructor(Oe,je){super(Oe),this.details=je}},I.InvalidPDFException=class be extends ue{},I.MissingPDFException=class Ie extends ue{},I.UnexpectedResponseException=class Se extends ue{constructor(Oe,je){super(Oe),this.status=je}},I.FormatError=class Ne extends ue{},I.AbortException=class Ye extends ue{};const Xe=/\x00/g;function Rt(He){ve("string"==typeof He,"Invalid argument for stringToBytes");const Oe=He.length,je=new Uint8Array(Oe);for(let bt=0;btHe.toString(16).padStart(2,"0"));class Ge{static makeHexColor(Oe,je,bt){return`#${rt[Oe]}${rt[je]}${rt[bt]}`}static transform(Oe,je){return[Oe[0]*je[0]+Oe[2]*je[1],Oe[1]*je[0]+Oe[3]*je[1],Oe[0]*je[2]+Oe[2]*je[3],Oe[1]*je[2]+Oe[3]*je[3],Oe[0]*je[4]+Oe[2]*je[5]+Oe[4],Oe[1]*je[4]+Oe[3]*je[5]+Oe[5]]}static applyTransform(Oe,je){return[Oe[0]*je[0]+Oe[1]*je[2]+je[4],Oe[0]*je[1]+Oe[1]*je[3]+je[5]]}static applyInverseTransform(Oe,je){const bt=je[0]*je[3]-je[1]*je[2];return[(Oe[0]*je[3]-Oe[1]*je[2]+je[2]*je[5]-je[4]*je[3])/bt,(-Oe[0]*je[1]+Oe[1]*je[0]+je[4]*je[1]-je[5]*je[0])/bt]}static getAxialAlignedBoundingBox(Oe,je){const bt=Ge.applyTransform(Oe,je),nn=Ge.applyTransform(Oe.slice(2,4),je),Dn=Ge.applyTransform([Oe[0],Oe[3]],je),xn=Ge.applyTransform([Oe[2],Oe[1]],je);return[Math.min(bt[0],nn[0],Dn[0],xn[0]),Math.min(bt[1],nn[1],Dn[1],xn[1]),Math.max(bt[0],nn[0],Dn[0],xn[0]),Math.max(bt[1],nn[1],Dn[1],xn[1])]}static inverseTransform(Oe){const je=Oe[0]*Oe[3]-Oe[1]*Oe[2];return[Oe[3]/je,-Oe[1]/je,-Oe[2]/je,Oe[0]/je,(Oe[2]*Oe[5]-Oe[4]*Oe[3])/je,(Oe[4]*Oe[1]-Oe[5]*Oe[0])/je]}static apply3dTransform(Oe,je){return[Oe[0]*je[0]+Oe[1]*je[1]+Oe[2]*je[2],Oe[3]*je[0]+Oe[4]*je[1]+Oe[5]*je[2],Oe[6]*je[0]+Oe[7]*je[1]+Oe[8]*je[2]]}static singularValueDecompose2dScale(Oe){const je=[Oe[0],Oe[2],Oe[1],Oe[3]],bt=Oe[0]*je[0]+Oe[1]*je[2],xn=Oe[2]*je[1]+Oe[3]*je[3],kn=(bt+xn)/2,So=Math.sqrt((bt+xn)*(bt+xn)-4*(bt*xn-(Oe[2]*je[0]+Oe[3]*je[2])*(Oe[0]*je[1]+Oe[1]*je[3])))/2,Gc=kn-So||1;return[Math.sqrt(kn+So||1),Math.sqrt(Gc)]}static normalizeRect(Oe){const je=Oe.slice(0);return Oe[0]>Oe[2]&&(je[0]=Oe[2],je[2]=Oe[0]),Oe[1]>Oe[3]&&(je[1]=Oe[3],je[3]=Oe[1]),je}static intersect(Oe,je){function bt(kn,So){return kn-So}const nn=[Oe[0],Oe[2],je[0],je[2]].sort(bt),Dn=[Oe[1],Oe[3],je[1],je[3]].sort(bt),xn=[];return Oe=Ge.normalizeRect(Oe),je=Ge.normalizeRect(je),nn[0]===Oe[0]&&nn[1]===je[0]||nn[0]===je[0]&&nn[1]===Oe[0]?(xn[0]=nn[1],xn[2]=nn[2],Dn[0]===Oe[1]&&Dn[1]===je[1]||Dn[0]===je[1]&&Dn[1]===Oe[1]?(xn[1]=Dn[1],xn[3]=Dn[2],xn):null):null}}I.Util=Ge;const Tt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],or=function(){const Oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(bt,nn,Dn=!1){if(!Dn&&URL.createObjectURL){const kn=new Blob([bt],{type:nn});return URL.createObjectURL(kn)}let xn=`data:${nn};base64,`;for(let kn=0,So=bt.length;kn>2]+Oe[(3&ma)<<4|Gc>>4]+Oe[kn+1>6:64]+Oe[kn+2{V(4)},(Te,I)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.isNodeJS=void 0;const V=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);I.isNodeJS=V},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultCMapReaderFactory=exports.DefaultCanvasFactory=exports.build=void 0;var _util=__w_pdfjs_require__(2),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(6),_node_utils=__w_pdfjs_require__(7),_annotation_storage=__w_pdfjs_require__(8),_api_compatibility=__w_pdfjs_require__(9),_canvas=__w_pdfjs_require__(10),_worker_options=__w_pdfjs_require__(12),_is_node=__w_pdfjs_require__(4),_message_handler=__w_pdfjs_require__(13),_metadata=__w_pdfjs_require__(14),_optional_content_config=__w_pdfjs_require__(16),_transport_stream=__w_pdfjs_require__(17),_webgl=__w_pdfjs_require__(18);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DefaultCanvasFactory=_is_node.isNodeJS?_node_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_is_node.isNodeJS?_node_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;let createPDFNetworkStream;function setPDFNetworkStreamFactory(Te){createPDFNetworkStream=Te}function getDocument(Te){const I=new PDFDocumentLoadingTask;let V;if("string"==typeof Te)V={url:Te};else if((0,_util.isArrayBuffer)(Te))V={data:Te};else if(Te instanceof PDFDataRangeTransport)V={range:Te};else{if("object"!=typeof Te)throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!Te.url&&!Te.data&&!Te.range)throw new Error("Invalid parameter object: need either .data, .range or .url");V=Te}const b=Object.create(null);let _=null,x=null;for(const D in V)if("url"===D&&typeof window<"u")b[D]=new URL(V[D],window.location).href;else if("range"!==D)if("worker"!==D)if("data"!==D||V[D]instanceof Uint8Array)b[D]=V[D];else{const M=V[D];if("string"==typeof M)b[D]=(0,_util.stringToBytes)(M);else if("object"!=typeof M||null===M||isNaN(M.length)){if(!(0,_util.isArrayBuffer)(M))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");b[D]=new Uint8Array(M)}else b[D]=new Uint8Array(M)}else x=V[D];else _=V[D];if(b.rangeChunkSize=b.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,b.CMapReaderFactory=b.CMapReaderFactory||DefaultCMapReaderFactory,b.ignoreErrors=!0!==b.stopAtErrors,b.fontExtraProperties=!0===b.fontExtraProperties,b.pdfBug=!0===b.pdfBug,Number.isInteger(b.maxImageSize)||(b.maxImageSize=-1),"boolean"!=typeof b.isEvalSupported&&(b.isEvalSupported=!0),"boolean"!=typeof b.disableFontFace&&(b.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),typeof b.ownerDocument>"u"&&(b.ownerDocument=globalThis.document),"boolean"!=typeof b.disableRange&&(b.disableRange=!1),"boolean"!=typeof b.disableStream&&(b.disableStream=!1),"boolean"!=typeof b.disableAutoFetch&&(b.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(b.verbosity),!x){const D={verbosity:b.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};x=D.port?PDFWorker.fromPort(D):new PDFWorker(D),I._worker=x}const C=I.docId;return x.promise.then(function(){if(I.destroyed)throw new Error("Loading aborted");const D=_fetchDocument(x,b,_,C),M=new Promise(function(A){let P;_?P=new _transport_stream.PDFDataTransportStream({length:b.length,initialData:b.initialData,progressiveDone:b.progressiveDone,disableRange:b.disableRange,disableStream:b.disableStream},_):b.data||(P=createPDFNetworkStream({url:b.url,length:b.length,httpHeaders:b.httpHeaders,withCredentials:b.withCredentials,rangeChunkSize:b.rangeChunkSize,disableRange:b.disableRange,disableStream:b.disableStream})),A(P)});return Promise.all([D,M]).then(function([A,P]){if(I.destroyed)throw new Error("Loading aborted");const B=new _message_handler.MessageHandler(C,A,x.port);B.postMessageTransfers=x.postMessageTransfers;const ce=new WorkerTransport(B,I,P,b);I._transport=ce,B.send("Ready",null)})}).catch(I._capability.reject),I}function _fetchDocument(Te,I,V,b){return Te.destroyed?Promise.reject(new Error("Worker was destroyed")):(V&&(I.length=V.length,I.initialData=V.initialData,I.progressiveDone=V.progressiveDone),Te.messageHandler.sendWithPromise("GetDocRequest",{docId:b,apiVersion:"2.7.570",source:{data:I.data,url:I.url,password:I.password,disableAutoFetch:I.disableAutoFetch,rangeChunkSize:I.rangeChunkSize,length:I.length},maxImageSize:I.maxImageSize,disableFontFace:I.disableFontFace,postMessageTransfers:Te.postMessageTransfers,docBaseUrl:I.docBaseUrl,ignoreErrors:I.ignoreErrors,isEvalSupported:I.isEvalSupported,fontExtraProperties:I.fontExtraProperties}).then(function(_){if(Te.destroyed)throw new Error("Worker was destroyed");return _}))}exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const PDFDocumentLoadingTask=function(){let I=0;return class V{constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+I++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}destroy(){return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(()=>{this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)})}}}();class PDFDataRangeTransport{constructor(I,V,b=!1){this.length=I,this.initialData=V,this.progressiveDone=b,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(I){this._rangeListeners.push(I)}addProgressListener(I){this._progressListeners.push(I)}addProgressiveReadListener(I){this._progressiveReadListeners.push(I)}addProgressiveDoneListener(I){this._progressiveDoneListeners.push(I)}onDataRange(I,V){for(const b of this._rangeListeners)b(I,V)}onDataProgress(I,V){this._readyCapability.promise.then(()=>{for(const b of this._progressListeners)b(I,V)})}onDataProgressiveRead(I){this._readyCapability.promise.then(()=>{for(const V of this._progressiveReadListeners)V(I)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const I of this._progressiveDoneListeners)I()})}transportReady(){this._readyCapability.resolve()}requestDataRange(I,V){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(I,V){this._pdfInfo=I,this._transport=V}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}get numPages(){return this._pdfInfo.numPages}get fingerprint(){return this._pdfInfo.fingerprint}getPage(I){return this._transport.getPage(I)}getPageIndex(I){return this._transport.getPageIndex(I)}getDestinations(){return this._transport.getDestinations()}getDestination(I){return this._transport.getDestination(I)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}getStats(){return this._transport.getStats()}cleanup(){return this._transport.startCleanup()}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}saveDocument(I){return this._transport.saveDocument(I)}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(I,V,b,_,x=!1){this._pageIndex=I,this._pageInfo=V,this._ownerDocument=_,this._transport=b,this._stats=x?new _display_utils.StatTimer:null,this._pdfBug=x,this.commonObjs=b.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:I,rotation:V=this.rotate,offsetX:b=0,offsetY:_=0,dontFlip:x=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:I,rotation:V,offsetX:b,offsetY:_,dontFlip:x})}getAnnotations({intent:I=null}={}){return(!this.annotationsPromise||this.annotationsIntent!==I)&&(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,I),this.annotationsIntent=I),this.annotationsPromise}getJSActions(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}render({canvasContext:I,viewport:V,intent:b="display",enableWebGL:_=!1,renderInteractiveForms:x=!1,transform:C=null,imageLayer:D=null,canvasFactory:M=null,background:A=null,annotationStorage:P=null,optionalContentConfigPromise:B=null}){this._stats&&this._stats.time("Overall");const ce="print"===b?"print":"display";this.pendingCleanup=!1,B||(B=this._transport.getOptionalContentConfig());let X=this._intentStates.get(ce);X||(X=Object.create(null),this._intentStates.set(ce,X)),X.streamReaderCancelTimeout&&(clearTimeout(X.streamReaderCancelTimeout),X.streamReaderCancelTimeout=null);const ne=M||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),Q=new _webgl.WebGLContext({enable:_});X.displayReadyCapability||(X.displayReadyCapability=(0,_util.createPromiseCapability)(),X.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:ce,renderInteractiveForms:!0===x,annotationStorage:P?.getAll()||null}));const fe=te=>{const K=X.renderTasks.indexOf(j);K>=0&&X.renderTasks.splice(K,1),(this.cleanupAfterRender||"print"===ce)&&(this.pendingCleanup=!0),this._tryCleanup(),te?(j.capability.reject(te),this._abortOperatorList({intentState:X,reason:te})):j.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},j=new InternalRenderTask({callback:fe,params:{canvasContext:I,viewport:V,transform:C,imageLayer:D,background:A},objs:this.objs,commonObjs:this.commonObjs,operatorList:X.operatorList,pageIndex:this._pageIndex,canvasFactory:ne,webGLContext:Q,useRequestAnimationFrame:"print"!==ce,pdfBug:this._pdfBug});X.renderTasks||(X.renderTasks=[]),X.renderTasks.push(j);const J=j.task;return Promise.all([X.displayReadyCapability.promise,B]).then(([te,K])=>{this.pendingCleanup?fe():(this._stats&&this._stats.time("Rendering"),j.initializeGraphics({transparency:te,optionalContentConfig:K}),j.operatorListChanged())}).catch(fe),J}getOperatorList(){const V="oplist";let _,b=this._intentStates.get(V);return b||(b=Object.create(null),this._intentStates.set(V,b)),b.opListReadCapability||(_=Object.create(null),_.operatorListChanged=function I(){if(b.operatorList.lastChunk){b.opListReadCapability.resolve(b.operatorList);const x=b.renderTasks.indexOf(_);x>=0&&b.renderTasks.splice(x,1)}},b.opListReadCapability=(0,_util.createPromiseCapability)(),b.renderTasks=[],b.renderTasks.push(_),b.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:V})),b.opListReadCapability.promise}streamTextContent({normalizeWhitespace:I=!1,disableCombineTextItems:V=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===I,combineTextItems:!0!==V},{highWaterMark:100,size:_=>_.items.length})}getTextContent(I={}){const V=this.streamTextContent(I);return new Promise(function(b,_){const C=V.getReader(),D={items:[],styles:Object.create(null)};!function x(){C.read().then(function({value:M,done:A}){A?b(D):(Object.assign(D.styles,M.styles),D.items.push(...M.items),x())},_)}()})}_destroy(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;const I=[];for(const[V,b]of this._intentStates)if(this._abortOperatorList({intentState:b,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==V)for(const _ of b.renderTasks)I.push(_.completed),_.cancel();return this.objs.clear(),this.annotationsPromise=null,this._jsActionsPromise=null,this.pendingCleanup=!1,Promise.all(I)}cleanup(I=!1){return this.pendingCleanup=!0,this._tryCleanup(I)}_tryCleanup(I=!1){if(!this.pendingCleanup)return!1;for(const{renderTasks:V,operatorList:b}of this._intentStates.values())if(0!==V.length||!b.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.annotationsPromise=null,this._jsActionsPromise=null,I&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}_startRenderPage(I,V){const b=this._intentStates.get(V);!b||(this._stats&&this._stats.timeEnd("Page Request"),b.displayReadyCapability&&b.displayReadyCapability.resolve(I))}_renderPageChunk(I,V){for(let b=0,_=I.length;b<_;b++)V.operatorList.fnArray.push(I.fnArray[b]),V.operatorList.argsArray.push(I.argsArray[b]);V.operatorList.lastChunk=I.lastChunk;for(let b=0;b{b.read().then(({value:C,done:D})=>{D?_.streamReader=null:this._transport.destroyed||(this._renderPageChunk(C,_),x())},C=>{if(_.streamReader=null,!this._transport.destroyed){if(_.operatorList){_.operatorList.lastChunk=!0;for(let D=0;D<_.renderTasks.length;D++)_.renderTasks[D].operatorListChanged();this._tryCleanup()}if(_.displayReadyCapability)_.displayReadyCapability.reject(C);else{if(!_.opListReadCapability)throw C;_.opListReadCapability.reject(C)}}})};x()}_abortOperatorList({intentState:I,reason:V,force:b=!1}){if((0,_util.assert)(V instanceof Error||"object"==typeof V&&null!==V,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),I.streamReader){if(!b){if(0!==I.renderTasks.length)return;if(V instanceof _display_utils.RenderingCancelledException)return void(I.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:I,reason:V,force:!0}),I.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}if(I.streamReader.cancel(new _util.AbortException(V?.message)),I.streamReader=null,!this._transport.destroyed){for(const[_,x]of this._intentStates)if(x===I){this._intentStates.delete(_);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(I=!0){this._listeners=[],this._defer=I,this._deferred=Promise.resolve(void 0)}postMessage(I,V){if(!this._defer)return void this._listeners.forEach(C=>{C.call(this,{data:I})});const _=new WeakMap,x={data:function b(C){if("object"!=typeof C||null===C)return C;if(_.has(C))return _.get(C);let D,M;if((D=C.buffer)&&(0,_util.isArrayBuffer)(D))return M=V?.includes(D)?new C.constructor(D,C.byteOffset,C.byteLength):new C.constructor(C),_.set(C,M),M;M=Array.isArray(C)?[]:{},_.set(C,M);for(const A in C){let P,B=C;for(;!(P=Object.getOwnPropertyDescriptor(B,A));)B=Object.getPrototypeOf(B);if(!(typeof P.value>"u")){if("function"==typeof P.value){if(C.hasOwnProperty&&C.hasOwnProperty(A))throw new Error(`LoopbackPort.postMessage - cannot clone: ${C[A]}`);continue}M[A]=b(P.value)}}return M}(I)};this._deferred.then(()=>{this._listeners.forEach(C=>{C.call(this,x)})})}addEventListener(I,V){this._listeners.push(V)}removeEventListener(I,V){const b=this._listeners.indexOf(V);this._listeners.splice(b,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorker=function PDFWorkerClosure(){const pdfWorkerPorts=new WeakMap;let isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document&&"currentScript"in document){const Te=document.currentScript?.src;Te&&(fallbackWorkerSrc=Te.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(typeof fallbackWorkerSrc<"u")return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){let Te;try{Te=globalThis.pdfjsWorker?.WorkerMessageHandler}catch{}return Te||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();const loader=function(){var _ref2=_asyncToGenerator(function*(){const mainWorkerMessageHandler=getMainThreadWorkerMessageHandler();if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(getWorkerSrc());return worker.WorkerMessageHandler}return yield(0,_display_utils.loadScript)(getWorkerSrc()),window.pdfjsWorker.WorkerMessageHandler});return function Te(){return _ref2.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(Te){return URL.createObjectURL(new Blob(["importScripts('"+Te+"');"]))}class PDFWorker{constructor({name:I=null,port:V=null,verbosity:b=(0,_util.getVerbosityLevel)()}={}){if(V&&pdfWorkerPorts.has(V))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=I,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=b,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,V)return pdfWorkerPorts.set(V,this),void this._initializeFromPort(V);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(I){this._port=I,this._messageHandler=new _message_handler.MessageHandler("main","worker",I),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if(typeof Worker<"u"&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){let I=getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,I)||(I=createCDNWrapper(new URL(I,window.location).href));const V=new Worker(I),b=new _message_handler.MessageHandler("main","worker",V),_=()=>{V.removeEventListener("error",x),b.destroy(),V.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},x=()=>{this._webWorker||_()};V.addEventListener("error",x),b.on("test",D=>{V.removeEventListener("error",x),this.destroyed?_():D?(this._messageHandler=b,this._port=V,this._webWorker=V,D.supportTransfers||(this.postMessageTransfers=!1),this._readyCapability.resolve(),b.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),b.destroy(),V.terminate())}),b.on("ready",D=>{if(V.removeEventListener("error",x),this.destroyed)_();else try{C()}catch{this._setupFakeWorker()}});const C=()=>{const D=new Uint8Array([this.postMessageTransfers?255:0]);try{b.send("test",D,[D.buffer])}catch{(0,_util.warn)("Cannot use postMessage transfers."),D[0]=0,b.send("test",D)}};return void C()}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then(I=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const V=new LoopbackPort;this._port=V;const b="fake"+nextFakeWorkerId++,_=new _message_handler.MessageHandler(b+"_worker",b,V);I.setup(_,V);const x=new _message_handler.MessageHandler(b,b+"_worker",V);this._messageHandler=x,this._readyCapability.resolve(),x.send("configure",{verbosity:this.verbosity})}).catch(I=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${I.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(I){if(!I||!I.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(I.port)?pdfWorkerPorts.get(I.port):new PDFWorker(I)}static getWorkerSrc(){return getWorkerSrc()}}return PDFWorker}();exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(I,V,b,_){this.messageHandler=I,this.loadingTask=V,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:V.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:_.ownerDocument}),this._params=_,this.CMapReaderFactory=new _.CMapReaderFactory({baseUrl:_.cMapUrl,isCompressed:_.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=b,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get loadingTaskSettled(){return this.loadingTask._capability.settled}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const I=[];this.pageCache.forEach(function(b){b&&I.push(b._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;const V=this.messageHandler.sendWithPromise("Terminate",null);if(I.push(V),this.loadingTaskSettled){const b=this.loadingTask.promise.then(_=>{_.hasOwnProperty("annotationStorage")&&_.annotationStorage.resetModified()}).catch(()=>{});I.push(b)}return Promise.all(I).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:I,loadingTask:V}=this;I.on("GetReader",(b,_)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=x=>{this._lastProgress={loaded:x.loaded,total:x.total}},_.onPull=()=>{this._fullReader.read().then(function({value:x,done:C}){C?_.close():((0,_util.assert)((0,_util.isArrayBuffer)(x),"GetReader - expected an ArrayBuffer."),_.enqueue(new Uint8Array(x),1,[x]))}).catch(x=>{_.error(x)})},_.onCancel=x=>{this._fullReader.cancel(x),_.ready.catch(C=>{if(!this.destroyed)throw C})}}),I.on("ReaderHeadersReady",b=>{const _=(0,_util.createPromiseCapability)(),x=this._fullReader;return x.headersReady.then(()=>{(!x.isStreamingSupported||!x.isRangeSupported)&&(this._lastProgress&&V.onProgress&&V.onProgress(this._lastProgress),x.onProgress=C=>{V.onProgress&&V.onProgress({loaded:C.loaded,total:C.total})}),_.resolve({isStreamingSupported:x.isStreamingSupported,isRangeSupported:x.isRangeSupported,contentLength:x.contentLength})},_.reject),_.promise}),I.on("GetRangeReader",(b,_)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const x=this._networkStream.getRangeReader(b.begin,b.end);x?(_.onPull=()=>{x.read().then(function({value:C,done:D}){D?_.close():((0,_util.assert)((0,_util.isArrayBuffer)(C),"GetRangeReader - expected an ArrayBuffer."),_.enqueue(new Uint8Array(C),1,[C]))}).catch(C=>{_.error(C)})},_.onCancel=C=>{x.cancel(C),_.ready.catch(D=>{if(!this.destroyed)throw D})}):_.close()}),I.on("GetDoc",({pdfInfo:b})=>{this._numPages=b.numPages,V._capability.resolve(new PDFDocumentProxy(b,this))}),I.on("DocException",function(b){let _;switch(b.name){case"PasswordException":_=new _util.PasswordException(b.message,b.code);break;case"InvalidPDFException":_=new _util.InvalidPDFException(b.message);break;case"MissingPDFException":_=new _util.MissingPDFException(b.message);break;case"UnexpectedResponseException":_=new _util.UnexpectedResponseException(b.message,b.status);break;case"UnknownErrorException":_=new _util.UnknownErrorException(b.message,b.details)}_ instanceof Error||(0,_util.warn)("DocException - expected a valid Error."),V._capability.reject(_)}),I.on("PasswordRequest",b=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),V.onPassword){const _=x=>{this._passwordCapability.resolve({password:x})};try{V.onPassword(_,b.code)}catch(x){this._passwordCapability.reject(x)}}else this._passwordCapability.reject(new _util.PasswordException(b.message,b.code));return this._passwordCapability.promise}),I.on("DataLoaded",b=>{V.onProgress&&V.onProgress({loaded:b.length,total:b.length}),this.downloadInfoCapability.resolve(b)}),I.on("StartRenderPage",b=>{this.destroyed||this.pageCache[b.pageIndex]._startRenderPage(b.transparency,b.intent)}),I.on("commonobj",b=>{if(this.destroyed)return;const[_,x,C]=b;if(!this.commonObjs.has(_))switch(x){case"Font":const D=this._params;if("error"in C){const P=C.error;(0,_util.warn)(`Error during font loading: ${P}`),this.commonObjs.resolve(_,P);break}let M=null;D.pdfBug&&globalThis.FontInspector?.enabled&&(M={registerFont(P,B){globalThis.FontInspector.fontAdded(P,B)}});const A=new _font_loader.FontFaceObject(C,{isEvalSupported:D.isEvalSupported,disableFontFace:D.disableFontFace,ignoreErrors:D.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:M});this.fontLoader.bind(A).catch(P=>I.sendWithPromise("FontFallback",{id:_})).finally(()=>{!D.fontExtraProperties&&A.data&&(A.data=null),this.commonObjs.resolve(_,A)});break;case"FontPath":case"Image":this.commonObjs.resolve(_,C);break;default:throw new Error(`Got unknown common object type ${x}`)}}),I.on("obj",b=>{if(this.destroyed)return;const[_,x,C,D]=b,M=this.pageCache[x];if(!M.objs.has(_)){if("Image"!==C)throw new Error(`Got unknown object type ${C}`);M.objs.resolve(_,D),D?.data?.length>8e6&&(M.cleanupAfterRender=!0)}}),I.on("DocProgress",b=>{this.destroyed||V.onProgress&&V.onProgress({loaded:b.loaded,total:b.total})}),I.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),I.on("FetchBuiltInCMap",(b,_)=>{if(this.destroyed)return void _.error(new Error("Worker was destroyed"));let x=!1;_.onPull=()=>{x?_.close():(x=!0,this.CMapReaderFactory.fetch(b).then(function(C){_.enqueue(C,1,[C.cMapData.buffer])}).catch(function(C){_.error(C)}))}})}_onUnsupportedFeature({featureId:I}){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(I)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(I){if(!Number.isInteger(I)||I<=0||I>this._numPages)return Promise.reject(new Error("Invalid page request"));const V=I-1;if(V in this.pagePromises)return this.pagePromises[V];const b=this.messageHandler.sendWithPromise("GetPage",{pageIndex:V}).then(_=>{if(this.destroyed)throw new Error("Transport destroyed");const x=new PDFPageProxy(V,_,this,this._params.ownerDocument,this._params.pdfBug);return this.pageCache[V]=x,x});return this.pagePromises[V]=b,b}getPageIndex(I){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:I}).catch(function(V){return Promise.reject(new Error(V))})}getAnnotations(I,V){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:I,intent:V})}saveDocument(I){return this.messageHandler.sendWithPromise("SaveDocument",{numPages:this._numPages,annotationStorage:I?.getAll()||null,filename:this._fullReader?.filename??null}).finally(()=>{I&&I.resetModified()})}getFieldObjects(){return this.messageHandler.sendWithPromise("GetFieldObjects",null)}hasJSActions(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(I){return"string"!=typeof I?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:I})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(I){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:I})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(I=>new _optional_content_config.OptionalContentConfig(I))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.messageHandler.sendWithPromise("GetMetadata",null).then(I=>({info:I[0],metadata:I[1]?new _metadata.Metadata(I[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}getStats(){return this.messageHandler.sendWithPromise("GetStats",null)}startCleanup(){return this.messageHandler.sendWithPromise("Cleanup",null).then(()=>{for(let I=0,V=this.pageCache.length;I{this._nextBound().catch(this.cancel.bind(this))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}_next(){var _=this;return _asyncToGenerator(function*(){_.cancelled||(_.operatorListIdx=_.gfx.executeOperatorList(_.operatorList,_.operatorListIdx,_._continueBound,_.stepper),_.operatorListIdx===_.operatorList.argsArray.length&&(_.running=!1,_.operatorList.lastChunk&&(_.gfx.endDrawing(),_._canvas&&I.delete(_._canvas),_.callback())))})()}}}(),version="2.7.570";exports.version=version;const build="f2c7338b0";exports.build=build},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.FontLoader=I.FontFaceObject=void 0;var b=V(2);class _{constructor({docId:M,onUnsupportedFeature:A,ownerDocument:P=globalThis.document}){this.constructor===_&&(0,b.unreachable)("Cannot initialize BaseFontLoader."),this.docId=M,this._onUnsupportedFeature=A,this._document=P,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(M){this.nativeFontFaces.push(M),this._document.fonts.add(M)}insertRule(M){let A=this.styleElement;A||(A=this.styleElement=this._document.createElement("style"),A.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].appendChild(A));const P=A.sheet;P.insertRule(M,P.cssRules.length)}clear(){this.nativeFontFaces.forEach(M=>{this._document.fonts.delete(M)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}bind(M){var A=this;return _asyncToGenerator(function*(){if(M.attached||M.missingFile)return;if(M.attached=!0,A.isFontLoadingAPISupported){const B=M.createNativeFontFace();if(B){A.addNativeFontFace(B);try{yield B.loaded}catch(ce){throw A._onUnsupportedFeature({featureId:b.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,b.warn)(`Failed to load font '${B.family}': '${ce}'.`),M.disableFontFace=!0,ce}}return}const P=M.createFontFaceRule();if(P){if(A.insertRule(P),A.isSyncFontLoadingSupported)return;yield new Promise(B=>{const ce=A._queueLoadingCallback(B);A._prepareFontLoadEvent([P],[M],ce)})}})()}_queueLoadingCallback(M){(0,b.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){return(0,b.shadow)(this,"isFontLoadingAPISupported",!!this._document?.fonts)}get isSyncFontLoadingSupported(){(0,b.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,b.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(M,A,P){(0,b.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let x;I.FontLoader=x,I.FontLoader=x=class extends _{constructor(M){super(M),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let M=!1;return(typeof navigator>"u"||/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent)?.[1]>=14)&&(M=!0),(0,b.shadow)(this,"isSyncFontLoadingSupported",M)}_queueLoadingCallback(M){const P=this.loadingContext,B={id:"pdfjs-font-loading-"+P.nextRequestId++,done:!1,complete:function A(){for((0,b.assert)(!B.done,"completeRequest() cannot be called twice."),B.done=!0;P.requests.length>0&&P.requests[0].done;){const ce=P.requests.shift();setTimeout(ce.callback,0)}},callback:M};return P.requests.push(B),B}get _loadTestFont(){return(0,b.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(M,A,P){function B(De,ye){return De.charCodeAt(ye)<<24|De.charCodeAt(ye+1)<<16|De.charCodeAt(ye+2)<<8|255&De.charCodeAt(ye+3)}function ce(De,ye,xe,ve){return De.substring(0,ye)+ve+De.substring(ye+xe)}let X,ne;const Q=this._document.createElement("canvas");Q.width=1,Q.height=1;const fe=Q.getContext("2d");let j=0;const te=`lt${Date.now()}${this.loadTestFontId++}`;let K=this._loadTestFont;K=ce(K,976,te.length,te);const Y=1482184792;let q=B(K,16);for(X=0,ne=te.length-3;X30)return(0,b.warn)("Load test font never loaded."),void ye();fe.font="30px "+De,fe.fillText(".",0,20),fe.getImageData(0,0,1,1).data[3]>0?ye():setTimeout(J.bind(null,De,ye))}(te,()=>{this._document.body.removeChild(Me),P.complete()})}},I.FontFaceObject=class C{constructor(M,{isEvalSupported:A=!0,disableFontFace:P=!1,ignoreErrors:B=!1,onUnsupportedFeature:ce=null,fontRegistry:X=null}){this.compiledGlyphs=Object.create(null);for(const ne in M)this[ne]=M[ne];this.isEvalSupported=!1!==A,this.disableFontFace=!0===P,this.ignoreErrors=!0===B,this._onUnsupportedFeature=ce,this.fontRegistry=X}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;const M=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),M}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const M=(0,b.bytesToString)(new Uint8Array(this.data)),A=`url(data:${this.mimetype};base64,${btoa(M)});`,P=`@font-face {font-family:"${this.loadedName}";src:${A}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,A),P}getPathGenerator(M,A){if(void 0!==this.compiledGlyphs[A])return this.compiledGlyphs[A];let P,B;try{P=M.get(this.loadedName+"_path_"+A)}catch(ce){if(!this.ignoreErrors)throw ce;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:b.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,b.warn)(`getPathGenerator - ignoring character: "${ce}".`),this.compiledGlyphs[A]=function(X,ne){}}if(this.isEvalSupported&&b.IsEvalSupportedCached.value){let ce,X="";for(let ne=0,Q=P.length;ne{Object.defineProperty(I,"__esModule",{value:!0}),I.NodeCMapReaderFactory=I.NodeCanvasFactory=void 0;var b=V(1),_=V(4),x=V(2);let C=class{constructor(){(0,x.unreachable)("Not implemented: NodeCanvasFactory")}};I.NodeCanvasFactory=C;let D=class{constructor(){(0,x.unreachable)("Not implemented: NodeCMapReaderFactory")}};I.NodeCMapReaderFactory=D,_.isNodeJS&&(I.NodeCanvasFactory=C=class extends b.BaseCanvasFactory{create(M,A){if(M<=0||A<=0)throw new Error("Invalid canvas size");const B=__webpack_require__(3414).createCanvas(M,A);return{canvas:B,context:B.getContext("2d")}}},I.NodeCMapReaderFactory=D=class extends b.BaseCMapReaderFactory{_fetchData(M,A){return new Promise((P,B)=>{__webpack_require__(172).readFile(M,(X,ne)=>{!X&&ne?P({cMapData:new Uint8Array(ne),compressionType:A}):B(new Error(X))})})}})},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.AnnotationStorage=void 0;var b=V(2);I.AnnotationStorage=class _{constructor(){this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}getOrCreateValue(C,D){return this._storage.has(C)?this._storage.get(C):(this._storage.set(C,D),D)}setValue(C,D){const M=this._storage.get(C);let A=!1;if(void 0!==M)for(const[P,B]of Object.entries(D))M[P]!==B&&(A=!0,M[P]=B);else this._storage.set(C,D),A=!0;A&&this._setModified()}getAll(){return 0===this._storage.size?null:(0,b.objectFromEntries)(this._storage)}get size(){return this._storage.size}_setModified(){this._modified||(this._modified=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this._modified&&(this._modified=!1,"function"==typeof this.onResetModified&&this.onResetModified())}}},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.apiCompatibilityParams=void 0;var b=V(4);const _=Object.create(null);b.isNodeJS&&(_.disableFontFace=!0);const x=Object.freeze(_);I.apiCompatibilityParams=x},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.CanvasGraphics=void 0;var b=V(2),_=V(11);const D=4096,P=16;function B(fe){fe.mozCurrentTransform||(fe._originalSave=fe.save,fe._originalRestore=fe.restore,fe._originalRotate=fe.rotate,fe._originalScale=fe.scale,fe._originalTranslate=fe.translate,fe._originalTransform=fe.transform,fe._originalSetTransform=fe.setTransform,fe._transformMatrix=fe._transformMatrix||[1,0,0,1,0,0],fe._transformStack=[],Object.defineProperty(fe,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(fe,"mozCurrentTransformInverse",{get:function(){const J=this._transformMatrix,te=J[0],K=J[1],O=J[2],F=J[3],Y=J[4],q=J[5],G=te*F-K*O,re=K*O-te*F;return[F/G,K/re,O/re,te/G,(F*Y-O*q)/re,(K*Y-te*q)/G]}}),fe.save=function(){const J=this._transformMatrix;this._transformStack.push(J),this._transformMatrix=J.slice(0,6),this._originalSave()},fe.restore=function(){const J=this._transformStack.pop();J&&(this._transformMatrix=J,this._originalRestore())},fe.translate=function(J,te){const K=this._transformMatrix;K[4]=K[0]*J+K[2]*te+K[4],K[5]=K[1]*J+K[3]*te+K[5],this._originalTranslate(J,te)},fe.scale=function(J,te){const K=this._transformMatrix;K[0]=K[0]*J,K[1]=K[1]*J,K[2]=K[2]*te,K[3]=K[3]*te,this._originalScale(J,te)},fe.transform=function(J,te,K,O,F,Y){const q=this._transformMatrix;this._transformMatrix=[q[0]*J+q[2]*te,q[1]*J+q[3]*te,q[0]*K+q[2]*O,q[1]*K+q[3]*O,q[0]*F+q[2]*Y+q[4],q[1]*F+q[3]*Y+q[5]],fe._originalTransform(J,te,K,O,F,Y)},fe.setTransform=function(J,te,K,O,F,Y){this._transformMatrix=[J,te,K,O,F,Y],fe._originalSetTransform(J,te,K,O,F,Y)},fe.rotate=function(J){const te=Math.cos(J),K=Math.sin(J),O=this._transformMatrix;this._transformMatrix=[O[0]*te+O[2]*K,O[1]*te+O[3]*K,O[0]*-K+O[2]*te,O[1]*-K+O[3]*te,O[4],O[5]],this._originalRotate(J)})}const ce=function(){function j(J){this.canvasFactory=J,this.cache=Object.create(null)}return j.prototype={getCanvas:function(te,K,O,F){let Y;return void 0!==this.cache[te]?(Y=this.cache[te],this.canvasFactory.reset(Y,K,O),Y.context.setTransform(1,0,0,1,0,0)):(Y=this.canvasFactory.create(K,O),this.cache[te]=Y),F&&B(Y.context),Y},clear(){for(const J in this.cache)this.canvasFactory.destroy(this.cache[J]),delete this.cache[J]}},j}(),ne=function(){function j(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=b.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=b.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=b.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null,this.transferMaps=null}return j.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(te,K){this.x=te,this.y=K}},j}(),Q=function(){function te(de,ie,S,se,ue,le,me){this.ctx=de,this.current=new ne,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=ie,this.objs=S,this.canvasFactory=se,this.webGLContext=ue,this.imageLayer=le,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=me,this.cachedCanvases=new ce(this.canvasFactory),de&&B(de),this._cachedGetSinglePixelWidth=null}function K(de,ie,S=null){if(typeof ImageData<"u"&&ie instanceof ImageData)return void de.putImageData(ie,0,0);const se=ie.height,ue=ie.width,le=se%P,me=(se-le)/P,be=0===le?me:me+1,Ie=de.createImageData(ue,P);let Ne,Se=0;const Ye=ie.data,Xe=Ie.data;let Ve,lt,Rt,It,Lt,$t,cn,Xi;if(S)switch(S.length){case 1:Lt=S[0],$t=S[0],cn=S[0],Xi=S[0];break;case 4:Lt=S[0],$t=S[1],cn=S[2],Xi=S[3]}if(ie.kind===b.ImageKind.GRAYSCALE_1BPP){const Gi=Ye.byteLength,Ut=new Uint32Array(Xe.buffer,0,Xe.byteLength>>2),Le=Ut.length,Je=ue+7>>3;let rt=4294967295,Ge=b.IsLittleEndianCached.value?4278190080:255;for(Xi&&255===Xi[0]&&0===Xi[255]&&([rt,Ge]=[Ge,rt]),Ve=0;VeJe?ue:8*Tt-7,_n=-8&tn;let ti=0,en=0;for(;yt<_n;yt+=8)en=Ye[Se++],Ut[Ne++]=128&en?rt:Ge,Ut[Ne++]=64&en?rt:Ge,Ut[Ne++]=32&en?rt:Ge,Ut[Ne++]=16&en?rt:Ge,Ut[Ne++]=8&en?rt:Ge,Ut[Ne++]=4&en?rt:Ge,Ut[Ne++]=2&en?rt:Ge,Ut[Ne++]=1&en?rt:Ge;for(;yt>=1}for(;Ne=me&&(Rt=le,It=ue*Rt),Ne=0,lt=It;lt--;)Xe[Ne++]=Ye[Se++],Xe[Ne++]=Ye[Se++],Xe[Ne++]=Ye[Se++],Xe[Ne++]=255;if(Gi)for(let Ut=0;Ut>=1}de.putImageData(be,0,Ye*P)}}function F(de,ie){const S=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(let se=0,ue=S.length;se>8,de[le-2]=de[le-2]*me+S*be>>8,de[le-1]=de[le-1]*me+se*be>>8}}}function G(de,ie,S){const se=de.length;for(let le=3;le>8]>>8:ie[ue]*le>>16}}function Me(de,ie,S,se){const ue=ie.canvas,le=ie.context;de.setTransform(ie.scaleX,0,0,ie.scaleY,ie.offsetX,ie.offsetY);const me=ie.backdrop||null;if(!ie.transferMap&&se.isEnabled){const be=se.composeSMask({layer:S.canvas,mask:ue,properties:{subtype:ie.subtype,backdrop:me}});return de.setTransform(1,0,0,1,0,0),void de.drawImage(be,ie.offsetX,ie.offsetY)}(function ae(de,ie,S,se,ue,le,me){const be=!!le,Ie=be?le[0]:0,Se=be?le[1]:0,Ne=be?le[2]:0;let Ye;Ye="Luminosity"===ue?re:G;const Ve=Math.min(se,Math.ceil(1048576/S));for(let lt=0;lt10&&"function"==typeof se,Ne=Se?Date.now()+15:0;let Ye=0;const Xe=this.commonObjs,Ve=this.objs;let lt;for(;;){if(void 0!==ue&&be===ue.nextBreakPoint)return ue.breakIt(be,se),be;if(lt=me[be],lt!==b.OPS.dependency)this[lt].apply(this,le[be]);else for(const Rt of le[be]){const It=Rt.startsWith("g_")?Xe:Ve;if(!It.has(Rt))return It.get(Rt,se),be}if(be++,be===Ie)return be;if(Se&&++Ye>10){if(Date.now()>Ne)return se(),be;Ye=0}}},endDrawing:function(){for(;this.stateStack.length||null!==this.current.activeSMask;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(ie){this.current.lineWidth=ie,this.ctx.lineWidth=ie},setLineCap:function(ie){this.ctx.lineCap=De[ie]},setLineJoin:function(ie){this.ctx.lineJoin=ye[ie]},setMiterLimit:function(ie){this.ctx.miterLimit=ie},setDash:function(ie,S){const se=this.ctx;void 0!==se.setLineDash&&(se.setLineDash(ie),se.lineDashOffset=S)},setRenderingIntent(de){},setFlatness(de){},setGState:function(ie){for(let S=0,se=ie.length;S0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=me?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break;case"TR":this.current.transferMaps=me}}},beginSMaskGroup:function(){const ie=this.current.activeSMask,le=this.cachedCanvases.getCanvas("smaskGroupAt"+this.groupLevel,ie.canvas.width,ie.canvas.height,!0),me=this.ctx,be=me.mozCurrentTransform;this.ctx.save();const Ie=le.context;Ie.scale(1/ie.scaleX,1/ie.scaleY),Ie.translate(-ie.offsetX,-ie.offsetY),Ie.transform.apply(Ie,be),ie.startTransformInverse=Ie.mozCurrentTransformInverse,F(me,Ie),this.ctx=Ie,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(me),this.groupLevel++},suspendSMaskGroup:function(){const ie=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),Me(this.ctx,this.current.activeSMask,ie,this.webGLContext),this.ctx.restore(),this.ctx.save(),F(ie,this.ctx),this.current.resumeSMaskCtx=ie;const S=b.Util.transform(this.current.activeSMask.startTransformInverse,ie.mozCurrentTransform);this.ctx.transform.apply(this.ctx,S),ie.save(),ie.setTransform(1,0,0,1,0,0),ie.clearRect(0,0,ie.canvas.width,ie.canvas.height),ie.restore()},resumeSMaskGroup:function(){const S=this.ctx;this.ctx=this.current.resumeSMaskCtx,this.groupStack.push(S),this.groupLevel++},endSMaskGroup:function(){const ie=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),Me(this.ctx,this.current.activeSMask,ie,this.webGLContext),this.ctx.restore(),F(ie,this.ctx);const S=b.Util.transform(this.current.activeSMask.startTransformInverse,ie.mozCurrentTransform);this.ctx.transform.apply(this.ctx,S)},save:function(){this.ctx.save();const ie=this.current;this.stateStack.push(ie),this.current=ie.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null!==this.current.activeSMask&&(0===this.stateStack.length||this.stateStack[this.stateStack.length-1].activeSMask!==this.current.activeSMask)&&this.endSMaskGroup(),0!==this.stateStack.length?(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null):this.current.activeSMask=null},transform:function(ie,S,se,ue,le,me){this.ctx.transform(ie,S,se,ue,le,me),this._cachedGetSinglePixelWidth=null},constructPath:function(ie,S){const se=this.ctx,ue=this.current;let le=ue.x,me=ue.y;for(let be=0,Ie=0,Se=ie.length;be=be?(S.resetTransform(),S.lineWidth=Math.round(this._combinedScaleFactor)):S.lineWidth=Math.max(me,be),S.stroke(),S.restore()}else{const ue=this.getSinglePixelWidth();ue<0&&-ue>=this.current.lineWidth?(S.save(),S.resetTransform(),S.lineWidth=Math.round(this._combinedScaleFactor),S.stroke(),S.restore()):(S.lineWidth=Math.max(ue,this.current.lineWidth),S.stroke())}ie&&this.consumePath(),S.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(ie){ie=!(typeof ie<"u")||ie;const S=this.ctx,se=this.current.fillColor;let le=!1;this.current.patternFill&&(S.save(),this.baseTransform&&S.setTransform.apply(S,this.baseTransform),S.fillStyle=se.getPattern(S,this),le=!0),this.contentVisible&&(this.pendingEOFill?(S.fill("evenodd"),this.pendingEOFill=!1):S.fill()),le&&S.restore(),ie&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=xe},eoClip:function(){this.pendingClip=ve},beginText:function(){this.current.textMatrix=b.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){const ie=this.pendingTextPaths,S=this.ctx;if(void 0!==ie){S.save(),S.beginPath();for(let se=0;se100&&(Se=100),this.current.fontSizeScale=S/Se,this.ctx.font=`${be} ${me} ${Se}px ${Ie}`},setTextRenderingMode:function(ie){this.current.textRenderingMode=ie},setTextRise:function(ie){this.current.textRise=ie},moveText:function(ie,S){this.current.x=this.current.lineX+=ie,this.current.y=this.current.lineY+=S},setLeadingMoveText:function(ie,S){this.setLeading(-S),this.moveText(ie,S)},setTextMatrix:function(ie,S,se,ue,le,me){this.current.textMatrix=[ie,S,se,ue,le,me],this.current.textMatrixScale=Math.sqrt(ie*ie+S*S),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar(de,ie,S,se,ue){const le=this.ctx,me=this.current,be=me.font,Ie=me.textRenderingMode,Se=me.fontSize/me.fontSizeScale,Ne=Ie&b.TextRenderingMode.FILL_STROKE_MASK,Ye=!!(Ie&b.TextRenderingMode.ADD_TO_PATH_FLAG),Xe=me.patternFill&&!be.missingFile;let Ve;(be.disableFontFace||Ye||Xe)&&(Ve=be.getPathGenerator(this.commonObjs,de)),be.disableFontFace||Xe?(le.save(),le.translate(ie,S),le.beginPath(),Ve(le,Se),se&&le.setTransform.apply(le,se),(Ne===b.TextRenderingMode.FILL||Ne===b.TextRenderingMode.FILL_STROKE)&&le.fill(),(Ne===b.TextRenderingMode.STROKE||Ne===b.TextRenderingMode.FILL_STROKE)&&(ue&&(le.resetTransform(),le.lineWidth=Math.round(this._combinedScaleFactor)),le.stroke()),le.restore()):((Ne===b.TextRenderingMode.FILL||Ne===b.TextRenderingMode.FILL_STROKE)&&le.fillText(de,ie,S),(Ne===b.TextRenderingMode.STROKE||Ne===b.TextRenderingMode.FILL_STROKE)&&(ue?(le.save(),le.moveTo(ie,S),le.resetTransform(),le.lineWidth=Math.round(this._combinedScaleFactor),le.strokeText(de,0,0),le.restore()):le.strokeText(de,ie,S))),Ye&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:le.mozCurrentTransform,x:ie,y:S,fontSize:Se,addToPath:Ve})},get isFontSubpixelAAEnabled(){const{context:de}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);de.scale(1.5,1),de.fillText("I",0,10);const ie=de.getImageData(0,0,10,10).data;let S=!1;for(let se=3;se0&&ie[se]<255){S=!0;break}return(0,b.shadow)(this,"isFontSubpixelAAEnabled",S)},showText:function(ie){const S=this.current,se=S.font;if(se.isType3Font)return this.showType3Text(ie);const ue=S.fontSize;if(0===ue)return;const le=this.ctx,me=S.fontSizeScale,be=S.charSpacing,Ie=S.wordSpacing,Se=S.fontDirection,Ne=S.textHScale*Se,Ye=ie.length,Xe=se.vertical,Ve=Xe?1:-1,lt=se.defaultVMetrics,Rt=ue*S.fontMatrix[0],It=S.textRenderingMode===b.TextRenderingMode.FILL&&!se.disableFontFace&&!S.patternFill;let Lt;if(le.save(),S.patternFill){le.save();const Le=S.fillColor.getPattern(le,this);Lt=le.mozCurrentTransform,le.restore(),le.fillStyle=Le}le.transform.apply(le,S.textMatrix),le.translate(S.x,S.y+S.textRise),le.scale(Ne,Se>0?-1:1);let $t=S.lineWidth,cn=!1;const Xi=S.textMatrixScale;if(0===Xi||0===$t){const Le=S.textRenderingMode&b.TextRenderingMode.FILL_STROKE_MASK;(Le===b.TextRenderingMode.STROKE||Le===b.TextRenderingMode.FILL_STROKE)&&(this._cachedGetSinglePixelWidth=null,$t=this.getSinglePixelWidth(),cn=$t<0)}else $t/=Xi;1!==me&&(le.scale(me,me),$t/=me),le.lineWidth=$t;let Ut,Gi=0;for(Ut=0;Ut0){const en=1e3*le.measureText(Ge).width/ue*me;if(_nnew te(me,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext)},ue)}else S=(0,_.getShadingPatternFromIR)(ie);return S},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(ie,S,se){const ue=b.Util.makeHexColor(ie,S,se);this.ctx.strokeStyle=ue,this.current.strokeColor=ue},setFillRGBColor:function(ie,S,se){const ue=b.Util.makeHexColor(ie,S,se);this.ctx.fillStyle=ue,this.current.fillColor=ue,this.current.patternFill=!1},shadingFill:function(ie){if(!this.contentVisible)return;const S=this.ctx;this.save();const se=(0,_.getShadingPatternFromIR)(ie);S.fillStyle=se.getPattern(S,this,!0);const ue=S.mozCurrentTransformInverse;if(ue){const le=S.canvas,me=le.width,be=le.height,Ie=b.Util.applyTransform([0,0],ue),Se=b.Util.applyTransform([0,be],ue),Ne=b.Util.applyTransform([me,0],ue),Ye=b.Util.applyTransform([me,be],ue),Xe=Math.min(Ie[0],Se[0],Ne[0],Ye[0]),Ve=Math.min(Ie[1],Se[1],Ne[1],Ye[1]),lt=Math.max(Ie[0],Se[0],Ne[0],Ye[0]),Rt=Math.max(Ie[1],Se[1],Ne[1],Ye[1]);this.ctx.fillRect(Xe,Ve,lt-Xe,Rt-Ve)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,b.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,b.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(ie,S){this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(ie)&&6===ie.length&&this.transform.apply(this,ie),this.baseTransform=this.ctx.mozCurrentTransform,S)&&(this.ctx.rect(S[0],S[1],S[2]-S[0],S[3]-S[1]),this.clip(),this.endPath())},paintFormXObjectEnd:function(){!this.contentVisible||(this.restore(),this.baseTransform=this.baseTransformStack.pop())},beginGroup:function(ie){if(!this.contentVisible)return;this.save();const S=this.ctx;ie.isolated||(0,b.info)("TODO: Support non-isolated groups."),ie.knockout&&(0,b.warn)("Knockout groups not supported.");const se=S.mozCurrentTransform;if(ie.matrix&&S.transform.apply(S,ie.matrix),!ie.bbox)throw new Error("Bounding box is required.");let ue=b.Util.getAxialAlignedBoundingBox(ie.bbox,S.mozCurrentTransform);ue=b.Util.intersect(ue,[0,0,S.canvas.width,S.canvas.height])||[0,0,0,0];const me=Math.floor(ue[0]),be=Math.floor(ue[1]);let Ie=Math.max(Math.ceil(ue[2])-me,1),Se=Math.max(Math.ceil(ue[3])-be,1),Ne=1,Ye=1;Ie>D&&(Ne=Ie/D,Ie=D),Se>D&&(Ye=Se/D,Se=D);let Xe="groupAt"+this.groupLevel;ie.smask&&(Xe+="_smask_"+this.smaskCounter++%2);const Ve=this.cachedCanvases.getCanvas(Xe,Ie,Se,!0),lt=Ve.context;lt.scale(1/Ne,1/Ye),lt.translate(-me,-be),lt.transform.apply(lt,se),ie.smask?this.smaskStack.push({canvas:Ve.canvas,context:lt,offsetX:me,offsetY:be,scaleX:Ne,scaleY:Ye,subtype:ie.smask.subtype,backdrop:ie.smask.backdrop,transferMap:ie.smask.transferMap||null,startTransformInverse:null}):(S.setTransform(1,0,0,1,0,0),S.translate(me,be),S.scale(Ne,Ye)),F(S,lt),this.ctx=lt,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(S),this.groupLevel++,this.current.activeSMask=null},endGroup:function(ie){if(!this.contentVisible)return;this.groupLevel--;const S=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,ie.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(S.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(ie,S,se){this.save(),Y(this.ctx),this.current=new ne,Array.isArray(ie)&&4===ie.length&&(this.ctx.rect(ie[0],ie[1],ie[2]-ie[0],ie[3]-ie[1]),this.clip(),this.endPath()),this.transform.apply(this,S),this.transform.apply(this,se)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(ie){if(!this.contentVisible)return;const S=this.ctx,se=ie.width,ue=ie.height,le=this.current.fillColor,me=this.current.patternFill,be=this.processingType3;if(be&&void 0===be.compiled&&(be.compiled=se<=1e3&&ue<=1e3?function X(fe){const J=fe.width,te=fe.height,K=J+1;let O,F,Y,q;const G=new Uint8Array(K*(te+1)),re=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),ae=J+7&-8,Me=fe.data,De=new Uint8Array(ae*te);let ye=0;for(O=0,F=Me.length;O0;)De[ye++]=S&se?0:255,se>>=1}let xe=0;for(ye=0,0!==De[ye]&&(G[0]=1,++xe),Y=1;Y>2)+(De[ye+1]?4:0)+(De[ye-ae+1]?8:0),re[S]&&(G[q+Y]=re[S],++xe),ye++;if(De[ye-ae]!==De[ye]&&(G[q+Y]=De[ye]?2:4,++xe),xe>1e3)return null}for(ye=ae*(te-1),q=O*K,0!==De[ye]&&(G[q]=8,++xe),Y=1;Y1e3)return null;const ve=new Int32Array([0,K,-1,0,-K,0,0,0,1]),de=[];for(O=0;xe&&O<=te;O++){let S=O*K;const se=S+J;for(;S>4,G[S]&=me>>2|me<<2),ue.push(S%K),ue.push(S/K|0),G[S]||--xe}while(le!==S);de.push(ue),--O}return function(S){S.save(),S.scale(1/J,-1/te),S.translate(0,-te),S.beginPath();for(let se=0,ue=de.length;se2&&Rt>1||Ye>2&&It>1;){let $t=Rt,cn=It;Ie>2&&Rt>1&&($t=Math.ceil(Rt/2),Ie/=Rt/$t),Ye>2&&It>1&&(cn=Math.ceil(It/2),Ye/=It/cn),Ve=this.cachedCanvases.getCanvas(Lt,$t,cn),lt=Ve.context,lt.clearRect(0,0,$t,cn),lt.drawImage(Xe,0,0,Rt,It,0,0,$t,cn),Xe=Ve.canvas,Rt=$t,It=cn,Lt="prescale1"===Lt?"prescale2":"prescale1"}if(ue.drawImage(Xe,0,0,Rt,It,0,-se,S,se),this.imageLayer){const $t=this.getCanvasPosition(0,-se);this.imageLayer.appendImage({imgData:ie,left:$t[0],top:$t[1],width:S/le[0],height:se/le[3]})}this.restore()},paintInlineImageXObjectGroup:function(ie,S){if(!this.contentVisible)return;const se=this.ctx,ue=ie.width,le=ie.height,me=this.cachedCanvases.getCanvas("inlineImage",ue,le);K(me.context,ie,this.current.transferMaps);for(let Ie=0,Se=S.length;Ie1?-this._combinedScaleFactor*ue:ie>Number.EPSILON?1.0000001*ue:1}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(ie,S){const se=this.ctx.mozCurrentTransform;return[se[0]*ie+se[2]*S+se[4],se[1]*ie+se[3]*S+se[5]]},isContentVisible:function(){for(let ie=this.markedContentStack.length-1;ie>=0;ie--)if(!this.markedContentStack[ie].visible)return!1;return!0}};for(const de in b.OPS)te.prototype[b.OPS[de]]=te.prototype[de];return te}();I.CanvasGraphics=Q},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.getShadingPatternFromIR=function D(A){const P=_[A[0]];if(!P)throw new Error(`Unknown IR type: ${A[0]}`);return P.fromIR(A)},I.TilingPattern=void 0;var b=V(2);const _={};function x(A,P){if(!P||typeof Path2D>"u")return;const B=P[2]-P[0],ce=P[3]-P[1],X=new Path2D;X.rect(P[0],P[1],B,ce),A.clip(X)}_.RadialAxial={fromIR:function(P){const B=P[1],ce=P[2],X=P[3],ne=P[4],Q=P[5],fe=P[6],j=P[7];return{getPattern:function(te){let K;x(te,ce),"axial"===B?K=te.createLinearGradient(ne[0],ne[1],Q[0],Q[1]):"radial"===B&&(K=te.createRadialGradient(ne[0],ne[1],fe,Q[0],Q[1],j));for(let O=0,F=X.length;OO[fe+1]&&(G=Q,Q=fe,fe=G,G=J,J=te,te=G),O[fe+1]>O[j+1]&&(G=fe,fe=j,j=G,G=te,te=K,K=G),O[Q+1]>O[fe+1]&&(G=Q,Q=fe,fe=G,G=J,J=te,te=G);const re=(O[Q]+ne.offsetX)*ne.scaleX,ae=(O[Q+1]+ne.offsetY)*ne.scaleY,Me=(O[fe]+ne.offsetX)*ne.scaleX,De=(O[fe+1]+ne.offsetY)*ne.scaleY,ye=(O[j]+ne.offsetX)*ne.scaleX,xe=(O[j+1]+ne.offsetY)*ne.scaleY;if(ae>=xe)return;const ve=F[J],de=F[J+1],ie=F[J+2],S=F[te],se=F[te+1],ue=F[te+2],le=F[K],me=F[K+1],be=F[K+2],Ie=Math.round(ae),Se=Math.round(xe);let Ne,Ye,Xe,Ve,lt,Rt,It,Lt;for(let $t=Ie;$t<=Se;$t++){if($txe?1:De===xe?0:(De-$t)/(De-xe),Ne=Me-(Me-ye)*Le,Ye=S-(S-le)*Le,Xe=se-(se-me)*Le,Ve=ue-(ue-be)*Le}let cn;cn=$txe?1:(ae-$t)/(ae-xe),lt=re-(re-ye)*cn,Rt=ve-(ve-le)*cn,It=de-(de-me)*cn,Lt=ie-(ie-be)*cn;const Xi=Math.round(Math.min(Ne,lt)),Gi=Math.round(Math.max(Ne,lt));let Ut=q*$t+4*Xi;for(let Le=Xi;Le<=Gi;Le++)cn=(Ne-Le)/(Ne-lt),cn<0?cn=0:cn>1&&(cn=1),Y[Ut++]=Ye-(Ye-Rt)*cn|0,Y[Ut++]=Xe-(Xe-It)*cn|0,Y[Ut++]=Ve-(Ve-Lt)*cn|0,Y[Ut++]=255}}function B(X,ne,Q){const fe=ne.coords,j=ne.colors;let J,te;switch(ne.type){case"lattice":const K=ne.verticesPerRow,O=Math.floor(fe.length/K)-1,F=K-1;for(J=0;J=j?J=j:fe=J/ne,{scale:fe,size:J}},clipBbox:function(ne,Q,fe,j,J,te){Array.isArray(Q)&&4===Q.length&&(ne.ctx.rect(fe,j,J-fe,te-j),ne.clip(),ne.endPath())},setFillAndStrokeStyleToContext:function(ne,Q,fe){const j=ne.ctx,J=ne.current;switch(Q){case 1:const te=this.ctx;j.fillStyle=te.fillStyle,j.strokeStyle=te.strokeStyle,J.fillColor=te.fillStyle,J.strokeColor=te.strokeStyle;break;case 2:const K=b.Util.makeHexColor(fe[0],fe[1],fe[2]);j.fillStyle=K,j.strokeStyle=K,J.fillColor=K,J.strokeColor=K;break;default:throw new b.FormatError(`Unsupported paint type: ${Q}`)}},getPattern:function(ne,Q){(ne=this.ctx).setTransform.apply(ne,this.baseTransform),ne.transform.apply(ne,this.matrix);const fe=this.createPatternCanvas(Q);return ne.createPattern(fe,"repeat")}},ce}();I.TilingPattern=M},(Te,I)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.GlobalWorkerOptions=void 0;const V=Object.create(null);I.GlobalWorkerOptions=V,V.workerPort=void 0===V.workerPort?null:V.workerPort,V.workerSrc=void 0===V.workerSrc?"":V.workerSrc},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.MessageHandler=void 0;var b=V(2);function C(M){if("object"!=typeof M||null===M)return M;switch(M.name){case"AbortException":return new b.AbortException(M.message);case"MissingPDFException":return new b.MissingPDFException(M.message);case"UnexpectedResponseException":return new b.UnexpectedResponseException(M.message,M.status);case"UnknownErrorException":return new b.UnknownErrorException(M.message,M.details);default:return new b.UnknownErrorException(M.message,M.toString())}}I.MessageHandler=class D{constructor(A,P,B){this.sourceName=A,this.targetName=P,this.comObj=B,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=ce=>{const X=ce.data;if(X.targetName!==this.sourceName)return;if(X.stream)return void this._processStreamMessage(X);if(X.callback){const Q=X.callbackId,fe=this.callbackCapabilities[Q];if(!fe)throw new Error(`Cannot resolve callback ${Q}`);if(delete this.callbackCapabilities[Q],1===X.callback)fe.resolve(X.data);else{if(2!==X.callback)throw new Error("Unexpected callback case");fe.reject(C(X.reason))}return}const ne=this.actionHandler[X.action];if(!ne)throw new Error(`Unknown action from worker: ${X.action}`);if(X.callbackId){const Q=this.sourceName,fe=X.sourceName;new Promise(function(j){j(ne(X.data))}).then(function(j){B.postMessage({sourceName:Q,targetName:fe,callback:1,callbackId:X.callbackId,data:j})},function(j){B.postMessage({sourceName:Q,targetName:fe,callback:2,callbackId:X.callbackId,reason:C(j)})})}else X.streamId?this._createStreamSink(X):ne(X.data)},B.addEventListener("message",this._onComObjOnMessage)}on(A,P){const B=this.actionHandler;if(B[A])throw new Error(`There is already an actionName called "${A}"`);B[A]=P}send(A,P,B){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:A,data:P},B)}sendWithPromise(A,P,B){const ce=this.callbackId++,X=(0,b.createPromiseCapability)();this.callbackCapabilities[ce]=X;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:A,callbackId:ce,data:P},B)}catch(ne){X.reject(ne)}return X.promise}sendWithStream(A,P,B,ce){const X=this.streamId++,ne=this.sourceName,Q=this.targetName,fe=this.comObj;return new ReadableStream({start:j=>{const J=(0,b.createPromiseCapability)();return this.streamControllers[X]={controller:j,startCall:J,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:ne,targetName:Q,action:A,streamId:X,data:P,desiredSize:j.desiredSize},ce),J.promise},pull:j=>{const J=(0,b.createPromiseCapability)();return this.streamControllers[X].pullCall=J,fe.postMessage({sourceName:ne,targetName:Q,stream:6,streamId:X,desiredSize:j.desiredSize}),J.promise},cancel:j=>{(0,b.assert)(j instanceof Error,"cancel must have a valid reason");const J=(0,b.createPromiseCapability)();return this.streamControllers[X].cancelCall=J,this.streamControllers[X].isClosed=!0,fe.postMessage({sourceName:ne,targetName:Q,stream:1,streamId:X,reason:C(j)}),J.promise}},B)}_createStreamSink(A){const P=this,B=this.actionHandler[A.action],ce=A.streamId,X=this.sourceName,ne=A.sourceName,Q=this.comObj,fe={enqueue(j,J=1,te){if(this.isCancelled)return;const K=this.desiredSize;this.desiredSize-=J,K>0&&this.desiredSize<=0&&(this.sinkCapability=(0,b.createPromiseCapability)(),this.ready=this.sinkCapability.promise),P._postMessage({sourceName:X,targetName:ne,stream:4,streamId:ce,chunk:j},te)},close(){this.isCancelled||(this.isCancelled=!0,Q.postMessage({sourceName:X,targetName:ne,stream:3,streamId:ce}),delete P.streamSinks[ce])},error(j){(0,b.assert)(j instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,Q.postMessage({sourceName:X,targetName:ne,stream:5,streamId:ce,reason:C(j)}))},sinkCapability:(0,b.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:A.desiredSize,ready:null};fe.sinkCapability.resolve(),fe.ready=fe.sinkCapability.promise,this.streamSinks[ce]=fe,new Promise(function(j){j(B(A.data,fe))}).then(function(){Q.postMessage({sourceName:X,targetName:ne,stream:8,streamId:ce,success:!0})},function(j){Q.postMessage({sourceName:X,targetName:ne,stream:8,streamId:ce,reason:C(j)})})}_processStreamMessage(A){const P=A.streamId,B=this.sourceName,ce=A.sourceName,X=this.comObj;switch(A.stream){case 8:A.success?this.streamControllers[P].startCall.resolve():this.streamControllers[P].startCall.reject(C(A.reason));break;case 7:A.success?this.streamControllers[P].pullCall.resolve():this.streamControllers[P].pullCall.reject(C(A.reason));break;case 6:if(!this.streamSinks[P]){X.postMessage({sourceName:B,targetName:ce,stream:7,streamId:P,success:!0});break}this.streamSinks[P].desiredSize<=0&&A.desiredSize>0&&this.streamSinks[P].sinkCapability.resolve(),this.streamSinks[P].desiredSize=A.desiredSize;const{onPull:ne}=this.streamSinks[A.streamId];new Promise(function(fe){fe(ne&&ne())}).then(function(){X.postMessage({sourceName:B,targetName:ce,stream:7,streamId:P,success:!0})},function(fe){X.postMessage({sourceName:B,targetName:ce,stream:7,streamId:P,reason:C(fe)})});break;case 4:if((0,b.assert)(this.streamControllers[P],"enqueue should have stream controller"),this.streamControllers[P].isClosed)break;this.streamControllers[P].controller.enqueue(A.chunk);break;case 3:if((0,b.assert)(this.streamControllers[P],"close should have stream controller"),this.streamControllers[P].isClosed)break;this.streamControllers[P].isClosed=!0,this.streamControllers[P].controller.close(),this._deleteStreamController(P);break;case 5:(0,b.assert)(this.streamControllers[P],"error should have stream controller"),this.streamControllers[P].controller.error(C(A.reason)),this._deleteStreamController(P);break;case 2:A.success?this.streamControllers[P].cancelCall.resolve():this.streamControllers[P].cancelCall.reject(C(A.reason)),this._deleteStreamController(P);break;case 1:if(!this.streamSinks[P])break;const{onCancel:Q}=this.streamSinks[A.streamId];new Promise(function(fe){fe(Q&&Q(C(A.reason)))}).then(function(){X.postMessage({sourceName:B,targetName:ce,stream:2,streamId:P,success:!0})},function(fe){X.postMessage({sourceName:B,targetName:ce,stream:2,streamId:P,reason:C(fe)})}),this.streamSinks[P].sinkCapability.reject(C(A.reason)),this.streamSinks[P].isCancelled=!0,delete this.streamSinks[P];break;default:throw new Error("Unexpected stream case")}}_deleteStreamController(A){var P=this;return _asyncToGenerator(function*(){yield Promise.allSettled([P.streamControllers[A].startCall,P.streamControllers[A].pullCall,P.streamControllers[A].cancelCall].map(function(B){return B&&B.promise})),delete P.streamControllers[A]})()}_postMessage(A,P){P&&this.postMessageTransfers?this.comObj.postMessage(A,P):this.comObj.postMessage(A)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.Metadata=void 0;var b=V(2),_=V(15);I.Metadata=class x{constructor(D){(0,b.assert)("string"==typeof D,"Metadata: input is not a string"),D=this._repair(D);const A=new _.SimpleXMLParser({lowerCaseName:!0}).parseFromString(D);this._metadataMap=new Map,A&&this._parse(A),this._data=D}_repair(D){return D.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(M,A){const P=A.replace(/\\([0-3])([0-7])([0-7])/g,function(ce,X,ne,Q){return String.fromCharCode(64*X+8*ne+1*Q)}).replace(/&(amp|apos|gt|lt|quot);/g,function(ce,X){switch(X){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${X} isn't defined.`)});let B="";for(let ce=0,X=P.length;ce=32&&ne<127&&60!==ne&&62!==ne&&38!==ne?String.fromCharCode(ne):"&#x"+(65536+ne).toString(16).substring(1)+";"}return">"+B})}_getSequence(D){const M=D.nodeName;return"rdf:bag"!==M&&"rdf:seq"!==M&&"rdf:alt"!==M?null:D.childNodes.filter(A=>"rdf:li"===A.nodeName)}_getCreators(D){if("dc:creator"!==D.nodeName)return!1;if(!D.hasChildNodes())return!0;const A=this._getSequence(D.childNodes[0])||[];return this._metadataMap.set(D.nodeName,A.map(P=>P.textContent.trim())),!0}_parse(D){let M=D.documentElement;if("rdf:rdf"!==M.nodeName)for(M=M.firstChild;M&&"rdf:rdf"!==M.nodeName;)M=M.nextSibling;if(M&&"rdf:rdf"===M.nodeName&&M.hasChildNodes())for(const A of M.childNodes)if("rdf:description"===A.nodeName)for(const P of A.childNodes){const B=P.nodeName;"#text"!==B&&(this._getCreators(P)||this._metadataMap.set(B,P.textContent.trim()))}}getRaw(){return this._data}get(D){return this._metadataMap.get(D)??null}getAll(){return(0,b.objectFromEntries)(this._metadataMap)}has(D){return this._metadataMap.has(D)}}},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.SimpleXMLParser=I.SimpleDOMNode=void 0;var b=V(2);function x(P,B){const ce=P[B];return" "===ce||"\n"===ce||"\r"===ce||"\t"===ce}class M{constructor(B,ce){this.nodeName=B,this.nodeValue=ce,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes&&this.childNodes[0]}get nextSibling(){const B=this.parentNode.childNodes;if(!B)return;const ce=B.indexOf(this);return-1!==ce?B[ce+1]:void 0}get textContent(){return this.childNodes?this.childNodes.map(function(B){return B.textContent}).join(""):this.nodeValue||""}hasChildNodes(){return this.childNodes&&this.childNodes.length>0}searchNode(B,ce){if(ce>=B.length)return this;const X=B[ce],ne=[];let Q=this;for(;;){if(X.name===Q.nodeName){if(0!==X.pos){if(0===ne.length)return null;{const[fe]=ne.pop();let j=0;for(const J of fe.childNodes)if(X.name===J.nodeName){if(j===X.pos)return J.searchNode(B,ce+1);j++}return Q.searchNode(B,ce+1)}}{const fe=Q.searchNode(B,ce+1);if(null!==fe)return fe}}if(Q.childNodes&&0!==Q.childNodes.length)ne.push([Q,0]),Q=Q.childNodes[0];else{if(0===ne.length)return null;for(;0!==ne.length;){const[fe,j]=ne.pop(),J=j+1;if(J");for(const ce of this.childNodes)ce.dump(B);B.push(``)}else B.push(this.nodeValue?`>${(0,b.encodeToXmlString)(this.nodeValue)}`:"/>")}else B.push((0,b.encodeToXmlString)(this.nodeValue))}}I.SimpleDOMNode=M,I.SimpleXMLParser=class A extends class D{_resolveEntities(B){return B.replace(/&([^;]+);/g,(ce,X)=>{if("#x"===X.substring(0,2))return String.fromCodePoint(parseInt(X.substring(2),16));if("#"===X.substring(0,1))return String.fromCodePoint(parseInt(X.substring(1),10));switch(X){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return this.onResolveEntity(X)})}_parseContent(B,ce){const X=[];let ne=ce;function Q(){for(;ne"!==B[ne]&&"/"!==B[ne];)++ne;const fe=B.substring(ce,ne);for(Q();ne"!==B[ne]&&"/"!==B[ne]&&"?"!==B[ne];){Q();let j="",J="";for(;ne"!==B[X]&&"/"!==B[X];)++X;const Q=B.substring(ce,X);!function ne(){for(;X"!==B[X+1]);)++X;return{name:Q,value:B.substring(fe,X),parsed:X-ce}}parseXml(B){let ce=0;for(;ce",ne),fe<0)return void this.onError(-9);this.onEndElement(B.substring(ne,fe)),ne=fe+1;break;case"?":++ne;const j=this._parseProcessingInstruction(B,ne);if("?>"!==B.substring(ne+j.parsed,ne+j.parsed+2))return void this.onError(-3);this.onPi(j.name,j.value),ne+=j.parsed+2;break;case"!":if("--"===B.substring(ne+1,ne+3)){if(fe=B.indexOf("--\x3e",ne+3),fe<0)return void this.onError(-5);this.onComment(B.substring(ne+3,fe)),ne=fe+3}else if("[CDATA["===B.substring(ne+1,ne+8)){if(fe=B.indexOf("]]>",ne+8),fe<0)return void this.onError(-2);this.onCdata(B.substring(ne+8,fe)),ne=fe+3}else{if("DOCTYPE"!==B.substring(ne+1,ne+8))return void this.onError(-6);{const K=B.indexOf("[",ne+8);let O=!1;if(fe=B.indexOf(">",ne+8),fe<0)return void this.onError(-4);if(K>0&&fe>K){if(fe=B.indexOf("]>",ne+8),fe<0)return void this.onError(-4);O=!0}const F=B.substring(ne+8,fe+(O?1:0));this.onDoctype(F),ne=fe+(O?2:1)}}break;default:const J=this._parseContent(B,ne);if(null===J)return void this.onError(-6);let te=!1;if("/>"===B.substring(ne+J.parsed,ne+J.parsed+2))te=!0;else if(">"!==B.substring(ne+J.parsed,ne+J.parsed+1))return void this.onError(-9);this.onBeginElement(J.name,J.attributes,te),ne+=J.parsed+(te?2:1)}}else{for(;ne{Object.defineProperty(I,"__esModule",{value:!0}),I.OptionalContentConfig=void 0;var b=V(2);class _{constructor(D,M){this.visible=!0,this.name=D,this.intent=M}}I.OptionalContentConfig=class x{constructor(D){if(this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==D){this.name=D.name,this.creator=D.creator,this._order=D.order;for(const M of D.groups)this._groups.set(M.id,new _(M.name,M.intent));if("OFF"===D.baseState)for(const M of this._groups)M.visible=!1;for(const M of D.on)this._groups.get(M).visible=!0;for(const M of D.off)this._groups.get(M).visible=!1}}isVisible(D){if("OCG"===D.type)return this._groups.has(D.id)?this._groups.get(D.id).visible:((0,b.warn)(`Optional content group not found: ${D.id}`),!0);if("OCMD"===D.type){if(D.expression&&(0,b.warn)("Visibility expression not supported yet."),!D.policy||"AnyOn"===D.policy){for(const M of D.ids){if(!this._groups.has(M))return(0,b.warn)(`Optional content group not found: ${M}`),!0;if(this._groups.get(M).visible)return!0}return!1}if("AllOn"===D.policy){for(const M of D.ids){if(!this._groups.has(M))return(0,b.warn)(`Optional content group not found: ${M}`),!0;if(!this._groups.get(M).visible)return!1}return!0}if("AnyOff"===D.policy){for(const M of D.ids){if(!this._groups.has(M))return(0,b.warn)(`Optional content group not found: ${M}`),!0;if(!this._groups.get(M).visible)return!0}return!1}if("AllOff"===D.policy){for(const M of D.ids){if(!this._groups.has(M))return(0,b.warn)(`Optional content group not found: ${M}`),!0;if(this._groups.get(M).visible)return!1}return!0}return(0,b.warn)(`Unknown optional content policy ${D.policy}.`),!0}return(0,b.warn)(`Unknown group type ${D.type}.`),!0}setVisibility(D,M=!0){this._groups.has(D)?this._groups.get(D).visible=!!M:(0,b.warn)(`Optional content group not found: ${D}`)}getOrder(){return this._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}getGroups(){return this._groups.size?(0,b.objectFromEntries)(this._groups):null}getGroup(D){return this._groups.get(D)||null}}},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.PDFDataTransportStream=void 0;var b=V(2);I.PDFDataTransportStream=class _{constructor(M,A){(0,b.assert)(A,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=M.progressiveDone||!1;const P=M.initialData;if(P?.length>0){const B=new Uint8Array(P).buffer;this._queuedChunks.push(B)}this._pdfDataRangeTransport=A,this._isStreamingSupported=!M.disableStream,this._isRangeSupported=!M.disableRange,this._contentLength=M.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((B,ce)=>{this._onReceiveData({begin:B,chunk:ce})}),this._pdfDataRangeTransport.addProgressListener((B,ce)=>{this._onProgress({loaded:B,total:ce})}),this._pdfDataRangeTransport.addProgressiveReadListener(B=>{this._onReceiveData({chunk:B})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(M){const A=new Uint8Array(M.chunk).buffer;if(void 0===M.begin)this._fullRequestReader?this._fullRequestReader._enqueue(A):this._queuedChunks.push(A);else{const P=this._rangeReaders.some(function(B){return B._begin===M.begin&&(B._enqueue(A),!0)});(0,b.assert)(P,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(M){if(void 0===M.total){const A=this._rangeReaders[0];A?.onProgress&&A.onProgress({loaded:M.loaded})}else{const A=this._fullRequestReader;A?.onProgress&&A.onProgress({loaded:M.loaded,total:M.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(M){const A=this._rangeReaders.indexOf(M);A>=0&&this._rangeReaders.splice(A,1)}getFullReader(){(0,b.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const M=this._queuedChunks;return this._queuedChunks=null,new x(this,M,this._progressiveDone)}getRangeReader(M,A){if(A<=this._progressiveDataLength)return null;const P=new C(this,M,A);return this._pdfDataRangeTransport.requestDataRange(M,A),this._rangeReaders.push(P),P}cancelAllRequests(M){this._fullRequestReader&&this._fullRequestReader.cancel(M),this._rangeReaders.slice(0).forEach(function(P){P.cancel(M)}),this._pdfDataRangeTransport.abort()}};class x{constructor(M,A,P=!1){this._stream=M,this._done=P||!1,this._filename=null,this._queuedChunks=A||[],this._loaded=0;for(const B of this._queuedChunks)this._loaded+=B.byteLength;this._requests=[],this._headersReady=Promise.resolve(),M._fullRequestReader=this,this.onProgress=null}_enqueue(M){this._done||(this._requests.length>0?this._requests.shift().resolve({value:M,done:!1}):this._queuedChunks.push(M),this._loaded+=M.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}read(){var M=this;return _asyncToGenerator(function*(){if(M._queuedChunks.length>0)return{value:M._queuedChunks.shift(),done:!1};if(M._done)return{value:void 0,done:!0};const A=(0,b.createPromiseCapability)();return M._requests.push(A),A.promise})()}cancel(M){this._done=!0,this._requests.forEach(function(A){A.resolve({value:void 0,done:!0})}),this._requests=[]}progressiveDone(){this._done||(this._done=!0)}}class C{constructor(M,A,P){this._stream=M,this._begin=A,this._end=P,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(M){this._done||(0===this._requests.length?this._queuedChunk=M:(this._requests.shift().resolve({value:M,done:!1}),this._requests.forEach(function(P){P.resolve({value:void 0,done:!0})}),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}get isStreamingSupported(){return!1}read(){var M=this;return _asyncToGenerator(function*(){if(M._queuedChunk){const P=M._queuedChunk;return M._queuedChunk=null,{value:P,done:!1}}if(M._done)return{value:void 0,done:!0};const A=(0,b.createPromiseCapability)();return M._requests.push(A),A.promise})()}cancel(M){this._done=!0,this._requests.forEach(function(A){A.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}}},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.WebGLContext=void 0;var b=V(2);I.WebGLContext=class _{constructor({enable:D=!1}){this._enabled=!0===D}get isEnabled(){let D=this._enabled;return D&&(D=x.tryInitGL()),(0,b.shadow)(this,"isEnabled",D)}composeSMask({layer:D,mask:M,properties:A}){return x.composeSMask(D,M,A)}drawFigures({width:D,height:M,backgroundColor:A,figures:P,context:B}){return x.drawFigures(D,M,A,P,B)}clear(){x.cleanup()}};const x=function(){function D(G,re,ae){const Me=G.createShader(ae);if(G.shaderSource(Me,re),G.compileShader(Me),!G.getShaderParameter(Me,G.COMPILE_STATUS)){const ye=G.getShaderInfoLog(Me);throw new Error("Error during shader compilation: "+ye)}return Me}function M(G,re){return D(G,re,G.VERTEX_SHADER)}function A(G,re){return D(G,re,G.FRAGMENT_SHADER)}function P(G,re){const ae=G.createProgram();for(let De=0,ye=re.length;De 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ")]);re.useProgram(De);const ye={};ye.gl=re,ye.canvas=G,ye.resolutionLocation=re.getUniformLocation(De,"u_resolution"),ye.positionLocation=re.getAttribLocation(De,"a_position"),ye.backdropLocation=re.getUniformLocation(De,"u_backdrop"),ye.subtypeLocation=re.getUniformLocation(De,"u_subtype");const xe=re.getAttribLocation(De,"a_texCoord"),ve=re.getUniformLocation(De,"u_image"),de=re.getUniformLocation(De,"u_mask"),ie=re.createBuffer();re.bindBuffer(re.ARRAY_BUFFER,ie),re.bufferData(re.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),re.STATIC_DRAW),re.enableVertexAttribArray(xe),re.vertexAttribPointer(xe,2,re.FLOAT,!1,0,0),re.uniform1i(ve,0),re.uniform1i(de,1),j=ye}();const ye=j,xe=ye.canvas,ve=ye.gl;xe.width=Me,xe.height=De,ve.viewport(0,0,ve.drawingBufferWidth,ve.drawingBufferHeight),ve.uniform2f(ye.resolutionLocation,Me,De),ae.backdrop?ve.uniform4f(ye.resolutionLocation,ae.backdrop[0],ae.backdrop[1],ae.backdrop[2],1):ve.uniform4f(ye.resolutionLocation,0,0,0,0),ve.uniform1i(ye.subtypeLocation,"Luminosity"===ae.subtype?1:0);const de=B(ve,G,ve.TEXTURE0),ie=B(ve,re,ve.TEXTURE1),S=ve.createBuffer();return ve.bindBuffer(ve.ARRAY_BUFFER,S),ve.bufferData(ve.ARRAY_BUFFER,new Float32Array([0,0,Me,0,0,De,0,De,Me,0,Me,De]),ve.STATIC_DRAW),ve.enableVertexAttribArray(ye.positionLocation),ve.vertexAttribPointer(ye.positionLocation,2,ve.FLOAT,!1,0,0),ve.clearColor(0,0,0,0),ve.enable(ve.BLEND),ve.blendFunc(ve.ONE,ve.ONE_MINUS_SRC_ALPHA),ve.clear(ve.COLOR_BUFFER_BIT),ve.drawArrays(ve.TRIANGLES,0,6),ve.flush(),ve.deleteTexture(de),ve.deleteTexture(ie),ve.deleteBuffer(S),xe},drawFigures:function q(G,re,ae,Me,De){F||function Y(){ne();const G=X;X=null;const re=ce;ce=null;const De=P(re,[M(re," attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } "),A(re," precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ")]);re.useProgram(De);const ye={};ye.gl=re,ye.canvas=G,ye.resolutionLocation=re.getUniformLocation(De,"u_resolution"),ye.scaleLocation=re.getUniformLocation(De,"u_scale"),ye.offsetLocation=re.getUniformLocation(De,"u_offset"),ye.positionLocation=re.getAttribLocation(De,"a_position"),ye.colorLocation=re.getAttribLocation(De,"a_color"),F=ye}();const ye=F,xe=ye.canvas,ve=ye.gl;xe.width=G,xe.height=re,ve.viewport(0,0,ve.drawingBufferWidth,ve.drawingBufferHeight),ve.uniform2f(ye.resolutionLocation,G,re);let de=0;for(let Se=0,Ne=Me.length;Se{Object.defineProperty(I,"__esModule",{value:!0}),I.AnnotationLayer=void 0;var b=V(1),_=V(2),x=V(8),C=V(20);class D{static create(S){switch(S.data.annotationType){case _.AnnotationType.LINK:return new A(S);case _.AnnotationType.TEXT:return new P(S);case _.AnnotationType.WIDGET:switch(S.data.fieldType){case"Tx":return new ce(S);case"Btn":return S.data.radioButton?new ne(S):S.data.checkBox?new X(S):new Q(S);case"Ch":return new fe(S)}return new B(S);case _.AnnotationType.POPUP:return new j(S);case _.AnnotationType.FREETEXT:return new te(S);case _.AnnotationType.LINE:return new K(S);case _.AnnotationType.SQUARE:return new O(S);case _.AnnotationType.CIRCLE:return new F(S);case _.AnnotationType.POLYLINE:return new Y(S);case _.AnnotationType.CARET:return new G(S);case _.AnnotationType.INK:return new re(S);case _.AnnotationType.POLYGON:return new q(S);case _.AnnotationType.HIGHLIGHT:return new ae(S);case _.AnnotationType.UNDERLINE:return new Me(S);case _.AnnotationType.SQUIGGLY:return new De(S);case _.AnnotationType.STRIKEOUT:return new ye(S);case _.AnnotationType.STAMP:return new xe(S);case _.AnnotationType.FILEATTACHMENT:return new ve(S);default:return new M(S)}}}class M{constructor(S,{isRenderable:se=!1,ignoreBorder:ue=!1,createQuadrilaterals:le=!1}={}){this.isRenderable=se,this.data=S.data,this.layer=S.layer,this.page=S.page,this.viewport=S.viewport,this.linkService=S.linkService,this.downloadManager=S.downloadManager,this.imageResourcesPath=S.imageResourcesPath,this.renderInteractiveForms=S.renderInteractiveForms,this.svgFactory=S.svgFactory,this.annotationStorage=S.annotationStorage,this.enableScripting=S.enableScripting,this.hasJSActions=S.hasJSActions,this._mouseState=S.mouseState,se&&(this.container=this._createContainer(ue)),le&&(this.quadrilaterals=this._createQuadrilaterals(ue))}_createContainer(S=!1){const se=this.data,ue=this.page,le=this.viewport,me=document.createElement("section");let be=se.rect[2]-se.rect[0],Ie=se.rect[3]-se.rect[1];me.setAttribute("data-annotation-id",se.id);const Se=_.Util.normalizeRect([se.rect[0],ue.view[3]-se.rect[1]+ue.view[1],se.rect[2],ue.view[3]-se.rect[3]+ue.view[1]]);if(me.style.transform=`matrix(${le.transform.join(",")})`,me.style.transformOrigin=`${-Se[0]}px ${-Se[1]}px`,!S&&se.borderStyle.width>0){me.style.borderWidth=`${se.borderStyle.width}px`,se.borderStyle.style!==_.AnnotationBorderStyleType.UNDERLINE&&(be-=2*se.borderStyle.width,Ie-=2*se.borderStyle.width);const Ne=se.borderStyle.horizontalCornerRadius,Ye=se.borderStyle.verticalCornerRadius;switch((Ne>0||Ye>0)&&(me.style.borderRadius=`${Ne}px / ${Ye}px`),se.borderStyle.style){case _.AnnotationBorderStyleType.SOLID:me.style.borderStyle="solid";break;case _.AnnotationBorderStyleType.DASHED:me.style.borderStyle="dashed";break;case _.AnnotationBorderStyleType.BEVELED:(0,_.warn)("Unimplemented border style: beveled");break;case _.AnnotationBorderStyleType.INSET:(0,_.warn)("Unimplemented border style: inset");break;case _.AnnotationBorderStyleType.UNDERLINE:me.style.borderBottomStyle="solid"}se.color?me.style.borderColor=_.Util.makeHexColor(0|se.color[0],0|se.color[1],0|se.color[2]):me.style.borderWidth=0}return me.style.left=`${Se[0]}px`,me.style.top=`${Se[1]}px`,me.style.width=`${be}px`,me.style.height=`${Ie}px`,me}_createQuadrilaterals(S=!1){if(!this.data.quadPoints)return null;const se=[],ue=this.data.rect;for(const le of this.data.quadPoints)this.data.rect=[le[2].x,le[2].y,le[1].x,le[1].y],se.push(this._createContainer(S));return this.data.rect=ue,se}_createPopup(S,se){let ue=this.container;this.quadrilaterals&&(S=S||this.quadrilaterals,ue=this.quadrilaterals[0]),S||((S=document.createElement("div")).style.height=ue.style.height,S.style.width=ue.style.width,ue.appendChild(S));const me=new J({container:ue,trigger:S,color:se.color,title:se.title,modificationDate:se.modificationDate,contents:se.contents,hideWrapper:!0}).render();me.style.left=ue.style.width,ue.appendChild(me)}_renderQuadrilaterals(S){return this.quadrilaterals.forEach(se=>{se.className=S}),this.quadrilaterals}render(){(0,_.unreachable)("Abstract method `AnnotationElement.render` called")}}class A extends M{constructor(S){super(S,{isRenderable:!!(S.data.url||S.data.dest||S.data.action||S.data.isTooltipOnly||S.data.actions&&(S.data.actions.Action||S.data.actions["Mouse Up"]||S.data.actions["Mouse Down"])),createQuadrilaterals:!0})}render(){const{data:S,linkService:se}=this,ue=document.createElement("a");return S.url?(0,b.addLinkAttributes)(ue,{url:S.url,target:S.newWindow?b.LinkTarget.BLANK:se.externalLinkTarget,rel:se.externalLinkRel,enabled:se.externalLinkEnabled}):S.action?this._bindNamedAction(ue,S.action):S.dest?this._bindLink(ue,S.dest):S.actions&&(S.actions.Action||S.actions["Mouse Up"]||S.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions?this._bindJSAction(ue,S):this._bindLink(ue,""),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((le,me)=>{const be=0===me?ue:ue.cloneNode();return le.appendChild(be),le}):(this.container.className="linkAnnotation",this.container.appendChild(ue),this.container)}_bindLink(S,se){S.href=this.linkService.getDestinationHash(se),S.onclick=()=>(se&&this.linkService.goToDestination(se),!1),(se||""===se)&&(S.className="internalLink")}_bindNamedAction(S,se){S.href=this.linkService.getAnchorUrl(""),S.onclick=()=>(this.linkService.executeNamedAction(se),!1),S.className="internalLink"}_bindJSAction(S,se){S.href=this.linkService.getAnchorUrl("");const ue=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const le of Object.keys(se.actions)){const me=ue.get(le);!me||(S[me]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:se.id,name:le}}),!1))}S.className="internalLink"}}class P extends M{constructor(S){super(S,{isRenderable:!!(S.data.hasPopup||S.data.title||S.data.contents)})}render(){this.container.className="textAnnotation";const S=document.createElement("img");return S.style.height=this.container.style.height,S.style.width=this.container.style.width,S.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",S.alt="[{{type}} Annotation]",S.dataset.l10nId="text_annotation_type",S.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(S,this.data),this.container.appendChild(S),this.container}}class B extends M{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(S){return navigator.platform.includes("Win")&&S.ctrlKey||navigator.platform.includes("Mac")&&S.metaKey}_setEventListener(S,se,ue,le){se.includes("mouse")?S.addEventListener(se,me=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:ue,value:le(me),shift:me.shiftKey,modifier:this._getKeyModifier(me)}})}):S.addEventListener(se,me=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:ue,value:me.target.checked}})})}_setEventListeners(S,se,ue){for(const[le,me]of se)("Action"===me||this.data.actions?.[me])&&this._setEventListener(S,le,me,ue)}}class ce extends B{constructor(S){super(S,{isRenderable:S.renderInteractiveForms||!S.data.hasAppearance&&!!S.data.fieldValue})}render(){const S=this.annotationStorage,se=this.data.id;this.container.className="textWidgetAnnotation";let ue=null;if(this.renderInteractiveForms){const le=S.getOrCreateValue(se,{value:this.data.fieldValue}).value,me={userValue:null,formattedValue:null,beforeInputSelectionRange:null,beforeInputValue:null};this.data.multiLine?(ue=document.createElement("textarea"),ue.textContent=le):(ue=document.createElement("input"),ue.type="text",ue.setAttribute("value",le)),me.userValue=le,ue.setAttribute("id",se),ue.addEventListener("input",function(Ie){S.setValue(se,{value:Ie.target.value})});let be=Ie=>{me.formattedValue&&(Ie.target.value=me.formattedValue),Ie.target.setSelectionRange(0,0),me.beforeInputSelectionRange=null};if(this.enableScripting&&this.hasJSActions&&(ue.addEventListener("focus",Ie=>{me.userValue&&(Ie.target.value=me.userValue)}),ue.addEventListener("updatefromsandbox",function(Ie){const{detail:Se}=Ie,Ne={value(){me.userValue=Se.value||"",S.setValue(se,{value:me.userValue.toString()}),me.formattedValue||(Ie.target.value=me.userValue)},valueAsString(){me.formattedValue=Se.valueAsString||"",Ie.target!==document.activeElement&&(Ie.target.value=me.formattedValue),S.setValue(se,{formattedValue:me.formattedValue})},focus(){setTimeout(()=>Ie.target.focus({preventScroll:!1}),0)},userName(){Ie.target.title=Se.userName},hidden(){Ie.target.style.visibility=Se.hidden?"hidden":"visible",S.setValue(se,{hidden:Se.hidden})},editable(){Ie.target.disabled=!Se.editable},selRange(){const[Ye,Xe]=Se.selRange;Ye>=0&&XeYe in Ne).forEach(Ye=>Ne[Ye]())}),this.data.actions)){ue.addEventListener("keydown",Se=>{me.beforeInputValue=Se.target.value;let Ne=-1;"Escape"===Se.key?Ne=0:"Enter"===Se.key?Ne=2:"Tab"===Se.key&&(Ne=3),-1!==Ne&&(me.userValue=Se.target.value,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:se,name:"Keystroke",value:Se.target.value,willCommit:!0,commitKey:Ne,selStart:Se.target.selectionStart,selEnd:Se.target.selectionEnd}}))});const Ie=be;be=null,ue.addEventListener("blur",Se=>{this._mouseState.isDown&&(me.userValue=Se.target.value,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:se,name:"Keystroke",value:Se.target.value,willCommit:!0,commitKey:1,selStart:Se.target.selectionStart,selEnd:Se.target.selectionEnd}})),Ie(Se)}),ue.addEventListener("mousedown",Se=>{me.beforeInputValue=Se.target.value,me.beforeInputSelectionRange=null}),ue.addEventListener("keyup",Se=>{Se.target.selectionStart===Se.target.selectionEnd&&(me.beforeInputSelectionRange=null)}),ue.addEventListener("select",Se=>{me.beforeInputSelectionRange=[Se.target.selectionStart,Se.target.selectionEnd]}),"Keystroke"in this.data.actions&&ue.addEventListener("input",Se=>{let Ne=-1,Ye=-1;me.beforeInputSelectionRange&&([Ne,Ye]=me.beforeInputSelectionRange),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:se,name:"Keystroke",value:me.beforeInputValue,change:Se.data,willCommit:!1,selStart:Ne,selEnd:Ye}})}),this._setEventListeners(ue,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Se=>Se.target.value)}if(be&&ue.addEventListener("blur",be),ue.disabled=this.data.readOnly,ue.name=this.data.fieldName,null!==this.data.maxLen&&(ue.maxLength=this.data.maxLen),this.data.comb){const Se=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;ue.classList.add("comb"),ue.style.letterSpacing=`calc(${Se}px - 1ch)`}}else ue=document.createElement("div"),ue.textContent=this.data.fieldValue,ue.style.verticalAlign="middle",ue.style.display="table-cell";return this._setTextStyle(ue),this.container.appendChild(ue),this.container}_setTextStyle(S){const{fontSize:ue,fontColor:le}=this.data.defaultAppearanceData,me=S.style;ue&&(me.fontSize=`${ue}px`),me.color=_.Util.makeHexColor(le[0],le[1],le[2]),null!==this.data.textAlignment&&(me.textAlign=["left","center","right"][this.data.textAlignment])}}class X extends B{constructor(S){super(S,{isRenderable:S.renderInteractiveForms})}render(){const S=this.annotationStorage,se=this.data,ue=se.id,le=S.getOrCreateValue(ue,{value:se.fieldValue&&"Off"!==se.fieldValue}).value;this.container.className="buttonWidgetAnnotation checkBox";const me=document.createElement("input");return me.disabled=se.readOnly,me.type="checkbox",me.name=this.data.fieldName,le&&me.setAttribute("checked",!0),me.setAttribute("id",ue),me.addEventListener("change",function(be){const Ie=be.target.name;for(const Se of document.getElementsByName(Ie))Se!==be.target&&(Se.checked=!1,S.setValue(Se.parentNode.getAttribute("data-annotation-id"),{value:!1}));S.setValue(ue,{value:be.target.checked})}),this.enableScripting&&this.hasJSActions&&(me.addEventListener("updatefromsandbox",be=>{const{detail:Ie}=be,Se={value(){be.target.checked="Off"!==Ie.value,S.setValue(ue,{value:be.target.checked})},focus(){setTimeout(()=>be.target.focus({preventScroll:!1}),0)},hidden(){be.target.style.visibility=Ie.hidden?"hidden":"visible",S.setValue(ue,{hidden:Ie.hidden})},editable(){be.target.disabled=!Ie.editable}};Object.keys(Ie).filter(Ne=>Ne in Se).forEach(Ne=>Se[Ne]())}),this._setEventListeners(me,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],be=>be.target.checked)),this.container.appendChild(me),this.container}}class ne extends B{constructor(S){super(S,{isRenderable:S.renderInteractiveForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const S=this.annotationStorage,se=this.data,ue=se.id,le=S.getOrCreateValue(ue,{value:se.fieldValue===se.buttonValue}).value,me=document.createElement("input");return me.disabled=se.readOnly,me.type="radio",me.name=se.fieldName,le&&me.setAttribute("checked",!0),me.setAttribute("pdfButtonValue",se.buttonValue),me.setAttribute("id",ue),me.addEventListener("change",function(be){const{target:Ie}=be;for(const Se of document.getElementsByName(Ie.name))Se!==Ie&&S.setValue(Se.getAttribute("id"),{value:!1});S.setValue(ue,{value:Ie.checked})}),this.enableScripting&&this.hasJSActions&&(me.addEventListener("updatefromsandbox",be=>{const{detail:Ie}=be,Se={value(){const Ne=Ie.value;for(const Ye of document.getElementsByName(be.target.name)){const Xe=Ye.getAttribute("id");Ne===Ye.getAttribute("pdfButtonValue")?(Ye.setAttribute("checked",!0),S.setValue(Xe,{value:!0})):S.setValue(Xe,{value:!1})}},focus(){setTimeout(()=>be.target.focus({preventScroll:!1}),0)},hidden(){be.target.style.visibility=Ie.hidden?"hidden":"visible",S.setValue(ue,{hidden:Ie.hidden})},editable(){be.target.disabled=!Ie.editable}};Object.keys(Ie).filter(Ne=>Ne in Se).forEach(Ne=>Se[Ne]())}),this._setEventListeners(me,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],be=>be.target.checked)),this.container.appendChild(me),this.container}}class Q extends A{render(){const S=super.render();return S.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(S.title=this.data.alternativeText),S}}class fe extends B{constructor(S){super(S,{isRenderable:S.renderInteractiveForms})}render(){this.container.className="choiceWidgetAnnotation";const S=this.annotationStorage,se=this.data.id;S.getOrCreateValue(se,{value:this.data.fieldValue.length>0?this.data.fieldValue[0]:void 0});const ue=document.createElement("select");ue.disabled=this.data.readOnly,ue.name=this.data.fieldName,ue.setAttribute("id",se),this.data.combo||(ue.size=this.data.options.length,this.data.multiSelect&&(ue.multiple=!0));for(const me of this.data.options){const be=document.createElement("option");be.textContent=me.displayValue,be.value=me.exportValue,this.data.fieldValue.includes(me.exportValue)&&be.setAttribute("selected",!0),ue.appendChild(be)}function le(me){const be=me.target.options;return be[be.selectedIndex].value}return this.enableScripting&&this.hasJSActions?(ue.addEventListener("updatefromsandbox",me=>{const{detail:be}=me,Ie={value(){const Se=me.target.options,Ne=be.value,Ye=Se.indexOf(Ne);-1!==Ye&&(Se.selectedIndex=Ye,S.setValue(se,{value:Ne}))},focus(){setTimeout(()=>me.target.focus({preventScroll:!1}),0)},hidden(){me.target.style.visibility=be.hidden?"hidden":"visible",S.setValue(se,{hidden:be.hidden})},editable(){me.target.disabled=!be.editable}};Object.keys(be).filter(Se=>Se in Ie).forEach(Se=>Ie[Se]())}),ue.addEventListener("input",me=>{const be=le(me);S.setValue(se,{value:be}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:se,name:"Keystroke",changeEx:be,willCommit:!0,commitKey:1,keyDown:!1}})}),this._setEventListeners(ue,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],me=>me.target.checked)):ue.addEventListener("input",function(me){S.setValue(se,{value:le(me)})}),this.container.appendChild(ue),this.container}}class j extends M{constructor(S){super(S,{isRenderable:!(!S.data.title&&!S.data.contents)})}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const ue=this.layer.querySelectorAll(`[data-annotation-id="${this.data.parentId}"]`);if(0===ue.length)return this.container;const le=new J({container:this.container,trigger:Array.from(ue),color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),me=this.page,be=_.Util.normalizeRect([this.data.parentRect[0],me.view[3]-this.data.parentRect[1]+me.view[1],this.data.parentRect[2],me.view[3]-this.data.parentRect[3]+me.view[1]]),Ie=be[0]+this.data.parentRect[2]-this.data.parentRect[0],Se=be[1];return this.container.style.transformOrigin=`${-Ie}px ${-Se}px`,this.container.style.left=`${Ie}px`,this.container.style.top=`${Se}px`,this.container.appendChild(le.render()),this.container}}class J{constructor(S){this.container=S.container,this.trigger=S.trigger,this.color=S.color,this.title=S.title,this.modificationDate=S.modificationDate,this.contents=S.contents,this.hideWrapper=S.hideWrapper||!1,this.pinned=!1}render(){const se=document.createElement("div");se.className="popupWrapper",this.hideElement=this.hideWrapper?se:this.container,this.hideElement.setAttribute("hidden",!0);const ue=document.createElement("div");ue.className="popup";const le=this.color;le&&(ue.style.backgroundColor=_.Util.makeHexColor(0|.7*(255-le[0])+le[0],0|.7*(255-le[1])+le[1],0|.7*(255-le[2])+le[2]));const me=document.createElement("h1");me.textContent=this.title,ue.appendChild(me);const be=b.PDFDateString.toDateObject(this.modificationDate);if(be){const Se=document.createElement("span");Se.textContent="{{date}}, {{time}}",Se.dataset.l10nId="annotation_date_string",Se.dataset.l10nArgs=JSON.stringify({date:be.toLocaleDateString(),time:be.toLocaleTimeString()}),ue.appendChild(Se)}const Ie=this._formatContents(this.contents);return ue.appendChild(Ie),Array.isArray(this.trigger)||(this.trigger=[this.trigger]),this.trigger.forEach(Se=>{Se.addEventListener("click",this._toggle.bind(this)),Se.addEventListener("mouseover",this._show.bind(this,!1)),Se.addEventListener("mouseout",this._hide.bind(this,!1))}),ue.addEventListener("click",this._hide.bind(this,!0)),se.appendChild(ue),se}_formatContents(S){const se=document.createElement("p"),ue=S.split(/(?:\r\n?|\n)/);for(let le=0,me=ue.length;le{me.style.transform=se})}S.div.removeAttribute("hidden")}}},(Te,I)=>{function V(_){return Math.floor(255*Math.max(0,Math.min(1,_))).toString(16).padStart(2,"0")}Object.defineProperty(I,"__esModule",{value:!0}),I.ColorConverters=void 0,I.ColorConverters=class b{static CMYK_G([x,C,D,M]){return["G",1-Math.min(1,.3*x+.59*D+.11*C+M)]}static G_CMYK([x]){return["CMYK",0,0,0,1-x]}static G_RGB([x]){return["RGB",x,x,x]}static G_HTML([x]){const C=V(x);return`#${C}${C}${C}`}static RGB_G([x,C,D]){return["G",.3*x+.59*C+.11*D]}static RGB_HTML([x,C,D]){return`#${V(x)}${V(C)}${V(D)}`}static T_HTML(){return"#00000000"}static CMYK_RGB([x,C,D,M]){return["RGB",1-Math.min(1,x+M),1-Math.min(1,D+M),1-Math.min(1,C+M)]}static CMYK_HTML(x){return this.RGB_HTML(this.CMYK_RGB(x))}static RGB_CMYK([x,C,D]){const M=1-x,A=1-C,P=1-D;return["CMYK",M,A,P,Math.min(M,A,P)]}}},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.renderTextLayer=void 0;var b=V(2);const _=function(){const D=/\S/;function A(j,J,te){const K=document.createElement("span"),O={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(j._textDivs.push(K),function M(j){return!D.test(j)}(J.str))return O.isWhitespace=!0,void j._textDivProperties.set(K,O);const F=b.Util.transform(j._viewport.transform,J.transform);let Y=Math.atan2(F[1],F[0]);const q=te[J.fontName];q.vertical&&(Y+=Math.PI/2);const G=Math.sqrt(F[2]*F[2]+F[3]*F[3]);let ae,Me,re=G;q.ascent?re*=q.ascent:q.descent&&(re*=1+q.descent),0===Y?(ae=F[4],Me=F[5]-re):(ae=F[4]+re*Math.sin(Y),Me=F[5]-re*Math.cos(Y)),K.style.left=`${ae}px`,K.style.top=`${Me}px`,K.style.fontSize=`${G}px`,K.style.fontFamily=q.fontFamily,K.textContent=J.str,j._fontInspectorEnabled&&(K.dataset.fontName=J.fontName),0!==Y&&(O.angle=Y*(180/Math.PI));let De=!1;if(J.str.length>1)De=!0;else if(J.transform[0]!==J.transform[3]){const ye=Math.abs(J.transform[0]),xe=Math.abs(J.transform[3]);ye!==xe&&Math.max(ye,xe)/Math.min(ye,xe)>1.5&&(De=!0)}if(De&&(O.canvasWidth=q.vertical?J.height*j._viewport.scale:J.width*j._viewport.scale),j._textDivProperties.set(K,O),j._textContentStream&&j._layoutText(K),j._enhanceTextSelection){let ye=1,xe=0;0!==Y&&(ye=Math.cos(Y),xe=Math.sin(Y));const ve=(q.vertical?J.height:J.width)*j._viewport.scale,de=G;let ie,S;0!==Y?(ie=[ye,xe,-xe,ye,ae,Me],S=b.Util.getAxialAlignedBoundingBox([0,0,ve,de],ie)):S=[ae,Me,ae+ve,Me+de],j._bounds.push({left:S[0],top:S[1],right:S[2],bottom:S[3],div:K,size:[ve,de],m:ie})}}function P(j){if(j._canceled)return;const J=j._textDivs,te=j._capability,K=J.length;if(K>1e5)return j._renderingDone=!0,void te.resolve();if(!j._textContentStream)for(let O=0;O0&&(K=K?Math.min(F,K):F)}return K}function ne(j,J){J.sort(function(O,F){return O.x1-F.x1||O.index-F.index});const K=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];J.forEach(function(O){let F=0;for(;F=0&&K[Y].start>=O.y2;)Y--;let q,G,re,ae,Me=-1/0;for(re=F;re<=Y;re++){let xe;q=K[re],G=q.boundary,xe=G.x2>O.x1?G.index>O.index?G.x1New:O.x1:void 0===G.x2New?(G.x2+O.x1)/2:G.x2New,xe>Me&&(Me=xe)}for(O.x1New=Me,re=F;re<=Y;re++)q=K[re],G=q.boundary,void 0===G.x2New?G.x2>O.x1?G.index>O.index&&(G.x2New=G.x2):G.x2New=Me:G.x2New>Me&&(G.x2New=Math.max(Me,G.x2));const De=[];let ye=null;for(re=F;re<=Y;re++){q=K[re],G=q.boundary;const xe=G.x2>O.x2?G:O;ye===xe?De[De.length-1].end=q.end:(De.push({start:q.start,end:q.end,boundary:xe}),ye=xe)}for(K[F].start=0&&K[ae].start>=G.y1;ae--)xe=K[ae].boundary===G;for(ae=Y+1;!xe&&ae{this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}return Q.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new b.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems(j,J){for(let te=0,K=j.length;te0&&(J.scale=J.canvasWidth/F,te=`scaleX(${J.scale})`)}0!==J.angle&&(te=`rotate(${J.angle}deg) ${te}`),te.length>0&&(this._enhanceTextSelection&&(J.originalTransform=te),j.style.transform=te),this._textDivProperties.set(j,J),this._container.appendChild(j)},_render:function(J){const te=(0,b.createPromiseCapability)();let K=Object.create(null);const O=this._document.createElement("canvas");if(O.mozOpaque=!0,this._layoutTextCtx=O.getContext("2d",{alpha:!1}),this._textContent)this._processItems(this._textContent.items,this._textContent.styles),te.resolve();else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const F=()=>{this._reader.read().then(({value:Y,done:q})=>{q?te.resolve():(Object.assign(K,Y.styles),this._processItems(Y.items,K),F())},te.reject)};this._reader=this._textContentStream.getReader(),F()}}te.promise.then(()=>{K=null,J?this._renderTimer=setTimeout(()=>{P(this),this._renderTimer=null},J):P(this)},this._capability.reject)},expandTextDivs:function(J){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(function ce(j){const J=j._bounds,te=j._viewport,K=function X(j,J,te){const K=te.map(function(F,Y){return{x1:F.left,y1:F.top,x2:F.right,y2:F.bottom,index:Y,x1New:void 0,x2New:void 0}});ne(j,K);const O=new Array(te.length);return K.forEach(function(F){O[F.index]={left:F.x1New,top:0,right:F.x2New,bottom:0}}),te.map(function(F,Y){const q=O[Y],G=K[Y];G.x1=F.top,G.y1=j-q.right,G.x2=F.bottom,G.y2=j-q.left,G.index=Y,G.x1New=void 0,G.x2New=void 0}),ne(J,K),K.forEach(function(F){const Y=F.index;O[Y].top=F.x1New,O[Y].bottom=F.x2New}),O}(te.width,te.height,J);for(let O=0;O0?(K.push(`${q.paddingTop}px`),te.push(`translateY(${-q.paddingTop}px)`)):K.push(0),K.push(q.paddingRight>0?q.paddingRight/q.scale+"px":0),K.push(q.paddingBottom>0?`${q.paddingBottom}px`:0),q.paddingLeft>0?(K.push(q.paddingLeft/q.scale+"px"),te.push(`translateX(${-q.paddingLeft/q.scale}px)`)):K.push(0),Y.style.padding=K.join(" "),te.length&&(Y.style.transform=te.join(" "))):(Y.style.padding=null,Y.style.transform=q.originalTransform))}}},function fe(j){const J=new Q({textContent:j.textContent,textContentStream:j.textContentStream,container:j.container,viewport:j.viewport,textDivs:j.textDivs,textContentItemsStr:j.textContentItemsStr,enhanceTextSelection:j.enhanceTextSelection});return J._render(j.timeout),J}}();I.renderTextLayer=_},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.SVGGraphics=void 0;var b=V(2),_=V(1),x=V(4);let C=function(){throw new Error("Not implemented: SVGGraphics")};I.SVGGraphics=C;{let ne=function(K){let O=[];const F=[];for(const Y of K)"save"!==Y.fn?"restore"===Y.fn?O=F.pop():O.push(Y):(O.push({fnId:92,fn:"group",items:[]}),F.push(O),O=O[O.length-1].items);return O},Q=function(K){if(Number.isInteger(K))return K.toString();const O=K.toFixed(10);let F=O.length-1;if("0"!==O[F])return O;do{F--}while("0"===O[F]);return O.substring(0,"."===O[F]?F:F+1)},fe=function(K){if(0===K[4]&&0===K[5]){if(0===K[1]&&0===K[2])return 1===K[0]&&1===K[3]?"":`scale(${Q(K[0])} ${Q(K[3])})`;if(K[0]===K[3]&&K[1]===-K[2]){const O=180*Math.acos(K[0])/Math.PI;return`rotate(${Q(O)})`}}else if(1===K[0]&&0===K[1]&&0===K[2]&&1===K[3])return`translate(${Q(K[4])} ${Q(K[5])})`;return`matrix(${Q(K[0])} ${Q(K[1])} ${Q(K[2])} ${Q(K[3])} ${Q(K[4])} ${Q(K[5])})`};const D={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},M="http://www.w3.org/XML/1998/namespace",A="http://www.w3.org/1999/xlink",P=["butt","round","square"],B=["miter","round","bevel"],ce=function(){const K=new Uint8Array([137,80,78,71,13,10,26,10]),F=new Int32Array(256);for(let De=0;De<256;De++){let ye=De;for(let xe=0;xe<8;xe++)ye=1&ye?3988292384^ye>>1&2147483647:ye>>1&2147483647;F[De]=ye}function q(De,ye,xe,ve){let de=ve;const ie=ye.length;xe[de]=ie>>24&255,xe[de+1]=ie>>16&255,xe[de+2]=ie>>8&255,xe[de+3]=255&ie,de+=4,xe[de]=255&De.charCodeAt(0),xe[de+1]=255&De.charCodeAt(1),xe[de+2]=255&De.charCodeAt(2),xe[de+3]=255&De.charCodeAt(3),de+=4,xe.set(ye,de),de+=ye.length;const S=function Y(De,ye,xe){let ve=-1;for(let de=ye;de>>8^F[255&(ve^De[de])];return-1^ve}(xe,ve+4,de);xe[de]=S>>24&255,xe[de+1]=S>>16&255,xe[de+2]=S>>8&255,xe[de+3]=255&S}function ae(De){let ye=De.length;const xe=65535,ve=Math.ceil(ye/xe),de=new Uint8Array(2+ye+5*ve+4);let ie=0;de[ie++]=120,de[ie++]=156;let S=0;for(;ye>xe;)de[ie++]=0,de[ie++]=255,de[ie++]=255,de[ie++]=0,de[ie++]=0,de.set(De.subarray(S,S+xe),ie),ie+=xe,S+=xe,ye-=xe;de[ie++]=1,de[ie++]=255&ye,de[ie++]=ye>>8&255,de[ie++]=255&~ye,de[ie++]=(65535&~ye)>>8&255,de.set(De.subarray(S),ie),ie+=De.length-S;const se=function G(De,ye,xe){let ve=1,de=0;for(let ie=ye;ie>24&255,de[ie++]=se>>16&255,de[ie++]=se>>8&255,de[ie++]=255&se,de}return function(ye,xe,ve){return function Me(De,ye,xe,ve){const de=De.width,ie=De.height;let S,se,ue;const le=De.data;switch(ye){case b.ImageKind.GRAYSCALE_1BPP:se=0,S=1,ue=de+7>>3;break;case b.ImageKind.RGB_24BPP:se=2,S=8,ue=3*de;break;case b.ImageKind.RGBA_32BPP:se=6,S=8,ue=4*de;break;default:throw new Error("invalid format")}const me=new Uint8Array((1+ue)*ie);let be=0,Ie=0;for(let lt=0;lt>24&255,de>>16&255,de>>8&255,255&de,ie>>24&255,ie>>16&255,ie>>8&255,255&ie,S,se,0,0,0]),Ne=function re(De){if(!x.isNodeJS)return ae(De);try{let ye;ye=parseInt(process.versions.node)>=8?De:Buffer.from(De);const xe=__webpack_require__(2258).deflateSync(ye,{level:9});return xe instanceof Uint8Array?xe:new Uint8Array(xe)}catch(ye){(0,b.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+ye)}return ae(De)}(me),Xe=new Uint8Array(K.length+36+Se.length+Ne.length);let Ve=0;return Xe.set(K,Ve),Ve+=K.length,q("IHDR",Se,Xe,Ve),Ve+=12+Se.length,q("IDATA",Ne,Xe,Ve),Ve+=12+Ne.length,q("IEND",new Uint8Array(0),Xe,Ve),(0,b.createObjectURL)(Xe,"image/png",xe)}(ye,void 0===ye.kind?b.ImageKind.GRAYSCALE_1BPP:ye.kind,xe,ve)}}();class X{constructor(){this.fontSizeScale=1,this.fontWeight=D.fontWeight,this.fontSize=0,this.textMatrix=b.IDENTITY_MATRIX,this.fontMatrix=b.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=b.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=D.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(O,F){this.x=O,this.y=F}}let j=0,J=0,te=0;I.SVGGraphics=C=class{constructor(O,F,Y=!1){this.svgFactory=new _.DOMSVGFactory,this.current=new X,this.transformMatrix=b.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=O,this.objs=F,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!Y,this._operatorIdMapping=[];for(const q in b.OPS)this._operatorIdMapping[b.OPS[q]]=q}save(){this.transformStack.push(this.transformMatrix);const O=this.current;this.extraStack.push(O),this.current=O.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(O){this.save(),this.executeOpTree(O),this.restore()}loadDependencies(O){const F=O.fnArray,Y=O.argsArray;for(let q=0,G=F.length;q{ae.get(re,De)});this.current.dependencies.push(Me)}return Promise.all(this.current.dependencies)}transform(O,F,Y,q,G,re){this.transformMatrix=b.Util.transform(this.transformMatrix,[O,F,Y,q,G,re]),this.tgrp=null}getSVG(O,F){this.viewport=F;const Y=this._initialize(F);return this.loadDependencies(O).then(()=>(this.transformMatrix=b.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(O)),Y))}convertOpList(O){const F=this._operatorIdMapping,Y=O.argsArray,q=O.fnArray,G=[];for(let re=0,ae=q.length;re0&&(this.current.lineWidth=O)}setLineCap(O){this.current.lineCap=P[O]}setLineJoin(O){this.current.lineJoin=B[O]}setMiterLimit(O){this.current.miterLimit=O}setStrokeAlpha(O){this.current.strokeAlpha=O}setStrokeRGBColor(O,F,Y){this.current.strokeColor=b.Util.makeHexColor(O,F,Y)}setFillAlpha(O){this.current.fillAlpha=O}setFillRGBColor(O,F,Y){this.current.fillColor=b.Util.makeHexColor(O,F,Y),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(O){this.current.strokeColor=this._makeColorN_Pattern(O)}setFillColorN(O){this.current.fillColor=this._makeColorN_Pattern(O)}shadingFill(O){const F=this.viewport.width,Y=this.viewport.height,q=b.Util.inverseTransform(this.transformMatrix),G=b.Util.applyTransform([0,0],q),re=b.Util.applyTransform([0,Y],q),ae=b.Util.applyTransform([F,0],q),Me=b.Util.applyTransform([F,Y],q),De=Math.min(G[0],re[0],ae[0],Me[0]),ye=Math.min(G[1],re[1],ae[1],Me[1]),xe=Math.max(G[0],re[0],ae[0],Me[0]),ve=Math.max(G[1],re[1],ae[1],Me[1]),de=this.svgFactory.createElement("svg:rect");de.setAttributeNS(null,"x",De),de.setAttributeNS(null,"y",ye),de.setAttributeNS(null,"width",xe-De),de.setAttributeNS(null,"height",ve-ye),de.setAttributeNS(null,"fill",this._makeShadingPattern(O)),this.current.fillAlpha<1&&de.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(de)}_makeColorN_Pattern(O){return"TilingPattern"===O[0]?this._makeTilingPattern(O):this._makeShadingPattern(O)}_makeTilingPattern(O){const F=O[1],Y=O[2],q=O[3]||b.IDENTITY_MATRIX,[G,re,ae,Me]=O[4],De=O[5],ye=O[6],xe=O[7],ve="shading"+te++,[de,ie]=b.Util.applyTransform([G,re],q),[S,se]=b.Util.applyTransform([ae,Me],q),[ue,le]=b.Util.singularValueDecompose2dScale(q),me=De*ue,be=ye*le,Ie=this.svgFactory.createElement("svg:pattern");Ie.setAttributeNS(null,"id",ve),Ie.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Ie.setAttributeNS(null,"width",me),Ie.setAttributeNS(null,"height",be),Ie.setAttributeNS(null,"x",`${de}`),Ie.setAttributeNS(null,"y",`${ie}`);const Se=this.svg,Ne=this.transformMatrix,Ye=this.current.fillColor,Xe=this.current.strokeColor,Ve=this.svgFactory.create(S-de,se-ie);if(this.svg=Ve,this.transformMatrix=q,2===xe){const lt=b.Util.makeHexColor(...F);this.current.fillColor=lt,this.current.strokeColor=lt}return this.executeOpTree(this.convertOpList(Y)),this.svg=Se,this.transformMatrix=Ne,this.current.fillColor=Ye,this.current.strokeColor=Xe,Ie.appendChild(Ve.childNodes[0]),this.defs.appendChild(Ie),`url(#${ve})`}_makeShadingPattern(O){switch(O[0]){case"RadialAxial":const F="shading"+te++,Y=O[3];let q;switch(O[1]){case"axial":const G=O[4],re=O[5];q=this.svgFactory.createElement("svg:linearGradient"),q.setAttributeNS(null,"id",F),q.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),q.setAttributeNS(null,"x1",G[0]),q.setAttributeNS(null,"y1",G[1]),q.setAttributeNS(null,"x2",re[0]),q.setAttributeNS(null,"y2",re[1]);break;case"radial":const ae=O[4],Me=O[5],De=O[6],ye=O[7];q=this.svgFactory.createElement("svg:radialGradient"),q.setAttributeNS(null,"id",F),q.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),q.setAttributeNS(null,"cx",Me[0]),q.setAttributeNS(null,"cy",Me[1]),q.setAttributeNS(null,"r",ye),q.setAttributeNS(null,"fx",ae[0]),q.setAttributeNS(null,"fy",ae[1]),q.setAttributeNS(null,"fr",De);break;default:throw new Error(`Unknown RadialAxial type: ${O[1]}`)}for(const G of Y){const re=this.svgFactory.createElement("svg:stop");re.setAttributeNS(null,"offset",G[0]),re.setAttributeNS(null,"stop-color",G[1]),q.appendChild(re)}return this.defs.appendChild(q),`url(#${F})`;case"Mesh":return(0,b.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${O[0]}`)}}setDash(O,F){this.current.dashArray=O,this.current.dashPhase=F}constructPath(O,F){const Y=this.current;let q=Y.x,G=Y.y,re=[],ae=0;for(const Me of O)switch(0|Me){case b.OPS.rectangle:q=F[ae++],G=F[ae++];const xe=q+F[ae++],ve=G+F[ae++];re.push("M",Q(q),Q(G),"L",Q(xe),Q(G),"L",Q(xe),Q(ve),"L",Q(q),Q(ve),"Z");break;case b.OPS.moveTo:q=F[ae++],G=F[ae++],re.push("M",Q(q),Q(G));break;case b.OPS.lineTo:q=F[ae++],G=F[ae++],re.push("L",Q(q),Q(G));break;case b.OPS.curveTo:q=F[ae+4],G=F[ae+5],re.push("C",Q(F[ae]),Q(F[ae+1]),Q(F[ae+2]),Q(F[ae+3]),Q(q),Q(G)),ae+=6;break;case b.OPS.curveTo2:re.push("C",Q(q),Q(G),Q(F[ae]),Q(F[ae+1]),Q(F[ae+2]),Q(F[ae+3])),q=F[ae+2],G=F[ae+3],ae+=4;break;case b.OPS.curveTo3:q=F[ae+2],G=F[ae+3],re.push("C",Q(F[ae]),Q(F[ae+1]),Q(q),Q(G),Q(q),Q(G)),ae+=4;break;case b.OPS.closePath:re.push("Z")}re=re.join(" "),Y.path&&O.length>0&&O[0]!==b.OPS.rectangle&&O[0]!==b.OPS.moveTo?re=Y.path.getAttributeNS(null,"d")+re:(Y.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(Y.path)),Y.path.setAttributeNS(null,"d",re),Y.path.setAttributeNS(null,"fill","none"),Y.element=Y.path,Y.setCurrentPoint(q,G)}endPath(){const O=this.current;if(O.path=null,!this.pendingClip)return;if(!O.element)return void(this.pendingClip=null);const F="clippath"+j++,Y=this.svgFactory.createElement("svg:clipPath");Y.setAttributeNS(null,"id",F),Y.setAttributeNS(null,"transform",fe(this.transformMatrix));const q=O.element.cloneNode(!0);q.setAttributeNS(null,"clip-rule","evenodd"===this.pendingClip?"evenodd":"nonzero"),this.pendingClip=null,Y.appendChild(q),this.defs.appendChild(Y),O.activeClipUrl&&(O.clipGroup=null,this.extraStack.forEach(function(G){G.clipGroup=null}),Y.setAttributeNS(null,"clip-path",O.activeClipUrl)),O.activeClipUrl=`url(#${F})`,this.tgrp=null}clip(O){this.pendingClip=O}closePath(){const O=this.current;if(O.path){const F=`${O.path.getAttributeNS(null,"d")}Z`;O.path.setAttributeNS(null,"d",F)}}setLeading(O){this.current.leading=-O}setTextRise(O){this.current.textRise=O}setTextRenderingMode(O){this.current.textRenderingMode=O}setHScale(O){this.current.textHScale=O/100}setRenderingIntent(O){}setFlatness(O){}setGState(O){for(const[F,Y]of O)switch(F){case"LW":this.setLineWidth(Y);break;case"LC":this.setLineCap(Y);break;case"LJ":this.setLineJoin(Y);break;case"ML":this.setMiterLimit(Y);break;case"D":this.setDash(Y[0],Y[1]);break;case"RI":this.setRenderingIntent(Y);break;case"FL":this.setFlatness(Y);break;case"Font":this.setFont(Y);break;case"CA":this.setStrokeAlpha(Y);break;case"ca":this.setFillAlpha(Y);break;default:(0,b.warn)(`Unimplemented graphic state operator ${F}`)}}fill(){const O=this.current;O.element&&(O.element.setAttributeNS(null,"fill",O.fillColor),O.element.setAttributeNS(null,"fill-opacity",O.fillAlpha),this.endPath())}stroke(){const O=this.current;O.element&&(this._setStrokeAttributes(O.element),O.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(O,F=1){const Y=this.current;let q=Y.dashArray;1!==F&&q.length>0&&(q=q.map(function(G){return F*G})),O.setAttributeNS(null,"stroke",Y.strokeColor),O.setAttributeNS(null,"stroke-opacity",Y.strokeAlpha),O.setAttributeNS(null,"stroke-miterlimit",Q(Y.miterLimit)),O.setAttributeNS(null,"stroke-linecap",Y.lineCap),O.setAttributeNS(null,"stroke-linejoin",Y.lineJoin),O.setAttributeNS(null,"stroke-width",Q(F*Y.lineWidth)+"px"),O.setAttributeNS(null,"stroke-dasharray",q.map(Q).join(" ")),O.setAttributeNS(null,"stroke-dashoffset",Q(F*Y.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const O=this.svgFactory.createElement("svg:rect");O.setAttributeNS(null,"x","0"),O.setAttributeNS(null,"y","0"),O.setAttributeNS(null,"width","1px"),O.setAttributeNS(null,"height","1px"),O.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(O)}paintImageXObject(O){const F=O.startsWith("g_")?this.commonObjs.get(O):this.objs.get(O);F?this.paintInlineImageXObject(F):(0,b.warn)(`Dependent image with object ID ${O} is not ready yet`)}paintInlineImageXObject(O,F){const Y=O.width,q=O.height,G=ce(O,this.forceDataSchema,!!F),re=this.svgFactory.createElement("svg:rect");re.setAttributeNS(null,"x","0"),re.setAttributeNS(null,"y","0"),re.setAttributeNS(null,"width",Q(Y)),re.setAttributeNS(null,"height",Q(q)),this.current.element=re,this.clip("nonzero");const ae=this.svgFactory.createElement("svg:image");ae.setAttributeNS(A,"xlink:href",G),ae.setAttributeNS(null,"x","0"),ae.setAttributeNS(null,"y",Q(-q)),ae.setAttributeNS(null,"width",Q(Y)+"px"),ae.setAttributeNS(null,"height",Q(q)+"px"),ae.setAttributeNS(null,"transform",`scale(${Q(1/Y)} ${Q(-1/q)})`),F?F.appendChild(ae):this._ensureTransformGroup().appendChild(ae)}paintImageMaskXObject(O){const F=this.current,Y=O.width,q=O.height,G=F.fillColor;F.maskId="mask"+J++;const re=this.svgFactory.createElement("svg:mask");re.setAttributeNS(null,"id",F.maskId);const ae=this.svgFactory.createElement("svg:rect");ae.setAttributeNS(null,"x","0"),ae.setAttributeNS(null,"y","0"),ae.setAttributeNS(null,"width",Q(Y)),ae.setAttributeNS(null,"height",Q(q)),ae.setAttributeNS(null,"fill",G),ae.setAttributeNS(null,"mask",`url(#${F.maskId})`),this.defs.appendChild(re),this._ensureTransformGroup().appendChild(ae),this.paintInlineImageXObject(O,re)}paintFormXObjectBegin(O,F){if(Array.isArray(O)&&6===O.length&&this.transform(O[0],O[1],O[2],O[3],O[4],O[5]),F){const Y=F[2]-F[0],q=F[3]-F[1],G=this.svgFactory.createElement("svg:rect");G.setAttributeNS(null,"x",F[0]),G.setAttributeNS(null,"y",F[1]),G.setAttributeNS(null,"width",Q(Y)),G.setAttributeNS(null,"height",Q(q)),this.current.element=G,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(O){const F=this.svgFactory.create(O.width,O.height),Y=this.svgFactory.createElement("svg:defs");F.appendChild(Y),this.defs=Y;const q=this.svgFactory.createElement("svg:g");return q.setAttributeNS(null,"transform",fe(O.transform)),F.appendChild(q),this.svg=q,F}_ensureClipGroup(){if(!this.current.clipGroup){const O=this.svgFactory.createElement("svg:g");O.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(O),this.current.clipGroup=O}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",fe(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.PDFNodeStream=void 0;var b=V(2),_=V(24);const x=__webpack_require__(172),C=__webpack_require__(2001),D=__webpack_require__(3779),M=__webpack_require__(6558),A=/^file:\/\/\/[a-zA-Z]:\//;I.PDFNodeStream=class B{constructor(K){this.source=K,this.url=function P(te){const K=M.parse(te);return"file:"===K.protocol||K.host?K:/^[a-z]:[/\\]/i.test(te)?M.parse(`file:///${te}`):(K.host||(K.protocol="file:"),K)}(K.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&K.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,b.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new j(this):new Q(this),this._fullRequestReader}getRangeReader(K,O){if(O<=this._progressiveDataLength)return null;const F=this.isFsUrl?new J(this,K,O):new fe(this,K,O);return this._rangeRequestReaders.push(F),F}cancelAllRequests(K){this._fullRequestReader&&this._fullRequestReader.cancel(K),this._rangeRequestReaders.slice(0).forEach(function(F){F.cancel(K)})}};class ce{constructor(K){this._url=K.url,this._done=!1,this._storedError=null,this.onProgress=null;const O=K.source;this._contentLength=O.length,this._loaded=0,this._filename=null,this._disableRange=O.disableRange||!1,this._rangeChunkSize=O.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!O.disableStream,this._isRangeSupported=!O.disableRange,this._readableStream=null,this._readCapability=(0,b.createPromiseCapability)(),this._headersCapability=(0,b.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var K=this;return _asyncToGenerator(function*(){if(yield K._readCapability.promise,K._done)return{value:void 0,done:!0};if(K._storedError)throw K._storedError;const O=K._readableStream.read();return null===O?(K._readCapability=(0,b.createPromiseCapability)(),K.read()):(K._loaded+=O.length,K.onProgress&&K.onProgress({loaded:K._loaded,total:K._contentLength}),{value:new Uint8Array(O).buffer,done:!1})})()}cancel(K){this._readableStream?this._readableStream.destroy(K):this._error(K)}_error(K){this._storedError=K,this._readCapability.resolve()}_setReadableStream(K){this._readableStream=K,K.on("readable",()=>{this._readCapability.resolve()}),K.on("end",()=>{K.destroy(),this._done=!0,this._readCapability.resolve()}),K.on("error",O=>{this._error(O)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new b.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class X{constructor(K){this._url=K.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,b.createPromiseCapability)(),this._isStreamingSupported=!K.source.disableStream}get isStreamingSupported(){return this._isStreamingSupported}read(){var K=this;return _asyncToGenerator(function*(){if(yield K._readCapability.promise,K._done)return{value:void 0,done:!0};if(K._storedError)throw K._storedError;const O=K._readableStream.read();return null===O?(K._readCapability=(0,b.createPromiseCapability)(),K.read()):(K._loaded+=O.length,K.onProgress&&K.onProgress({loaded:K._loaded}),{value:new Uint8Array(O).buffer,done:!1})})()}cancel(K){this._readableStream?this._readableStream.destroy(K):this._error(K)}_error(K){this._storedError=K,this._readCapability.resolve()}_setReadableStream(K){this._readableStream=K,K.on("readable",()=>{this._readCapability.resolve()}),K.on("end",()=>{K.destroy(),this._done=!0,this._readCapability.resolve()}),K.on("error",O=>{this._error(O)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function ne(te,K){return{protocol:te.protocol,auth:te.auth,host:te.hostname,port:te.port,path:te.path,method:"GET",headers:K}}class Q extends ce{constructor(K){super(K);const O=F=>{if(404===F.statusCode){const re=new b.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=re,void this._headersCapability.reject(re)}this._headersCapability.resolve(),this._setReadableStream(F);const Y=re=>this._readableStream.headers[re.toLowerCase()],{allowRangeRequests:q,suggestedLength:G}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:Y,isHttp:K.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=q,this._contentLength=G||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(Y)};this._request=null,this._request="http:"===this._url.protocol?C.request(ne(this._url,K.httpHeaders),O):D.request(ne(this._url,K.httpHeaders),O),this._request.on("error",F=>{this._storedError=F,this._headersCapability.reject(F)}),this._request.end()}}class fe extends X{constructor(K,O,F){super(K),this._httpHeaders={};for(const q in K.httpHeaders){const G=K.httpHeaders[q];typeof G>"u"||(this._httpHeaders[q]=G)}this._httpHeaders.Range=`bytes=${O}-${F-1}`;const Y=q=>{if(404!==q.statusCode)this._setReadableStream(q);else{const G=new b.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=G}};this._request=null,this._request="http:"===this._url.protocol?C.request(ne(this._url,this._httpHeaders),Y):D.request(ne(this._url,this._httpHeaders),Y),this._request.on("error",q=>{this._storedError=q}),this._request.end()}}class j extends ce{constructor(K){super(K);let O=decodeURIComponent(this._url.path);A.test(this._url.href)&&(O=O.replace(/^\//,"")),x.lstat(O,(F,Y)=>{if(F)return"ENOENT"===F.code&&(F=new b.MissingPDFException(`Missing PDF "${O}".`)),this._storedError=F,void this._headersCapability.reject(F);this._contentLength=Y.size,this._setReadableStream(x.createReadStream(O)),this._headersCapability.resolve()})}}class J extends X{constructor(K,O,F){super(K);let Y=decodeURIComponent(this._url.path);A.test(this._url.href)&&(Y=Y.replace(/^\//,"")),this._setReadableStream(x.createReadStream(Y,{start:O,end:F-1}))}}},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.createResponseStatusError=function D(A,P){return 404===A||0===A&&P.startsWith("file:")?new b.MissingPDFException('Missing PDF "'+P+'".'):new b.UnexpectedResponseException("Unexpected server response ("+A+') while retrieving PDF "'+P+'".',A)},I.extractFilenameFromHeader=function C(A){const P=A("Content-Disposition");if(P){let B=(0,_.getFilenameFromContentDispositionHeader)(P);if(B.includes("%"))try{B=decodeURIComponent(B)}catch{}if(/\.pdf$/i.test(B))return B}return null},I.validateRangeRequestCapabilities=function x({getResponseHeader:A,isHttp:P,rangeChunkSize:B,disableRange:ce}){(0,b.assert)(B>0,"Range chunk size must be larger than zero");const X={allowRangeRequests:!1,suggestedLength:void 0},ne=parseInt(A("Content-Length"),10);return!Number.isInteger(ne)||(X.suggestedLength=ne,ne<=2*B)||ce||!P||"bytes"!==A("Accept-Ranges")||"identity"!==(A("Content-Encoding")||"identity")||(X.allowRangeRequests=!0),X},I.validateResponseStatus=function M(A){return 200===A||206===A};var b=V(2),_=V(25)},(Te,I)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.getFilenameFromContentDispositionHeader=function V(b){let _=!0,x=C("filename\\*","i").exec(b);if(x){x=x[1];let X=P(x);return X=unescape(X),X=B(X),X=ce(X),M(X)}if(x=function A(X){const ne=[];let Q;const fe=C("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(Q=fe.exec(X));){let[,J,te,K]=Q;if(J=parseInt(J,10),J in ne){if(0===J)break}else ne[J]=[te,K]}const j=[];for(let J=0;J{Object.defineProperty(I,"__esModule",{value:!0}),I.PDFNetworkStream=void 0;var b=V(2),_=V(24);class M{constructor(X,ne){this.url=X,ne=ne||{},this.isHttp=/^https?:/i.test(X),this.httpHeaders=this.isHttp&&ne.httpHeaders||{},this.withCredentials=ne.withCredentials||!1,this.getXhr=ne.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(X,ne,Q){const fe={begin:X,end:ne};for(const j in Q)fe[j]=Q[j];return this.request(fe)}requestFull(X){return this.request(X)}request(X){const ne=this.getXhr(),Q=this.currXhrId++,fe=this.pendingRequests[Q]={xhr:ne};ne.open("GET",this.url),ne.withCredentials=this.withCredentials;for(const j in this.httpHeaders){const J=this.httpHeaders[j];typeof J>"u"||ne.setRequestHeader(j,J)}return this.isHttp&&"begin"in X&&"end"in X?(ne.setRequestHeader("Range",`bytes=${X.begin}-${X.end-1}`),fe.expectedStatus=206):fe.expectedStatus=200,ne.responseType="arraybuffer",X.onError&&(ne.onerror=function(j){X.onError(ne.status)}),ne.onreadystatechange=this.onStateChange.bind(this,Q),ne.onprogress=this.onProgress.bind(this,Q),fe.onHeadersReceived=X.onHeadersReceived,fe.onDone=X.onDone,fe.onError=X.onError,fe.onProgress=X.onProgress,ne.send(null),Q}onProgress(X,ne){const Q=this.pendingRequests[X];!Q||Q.onProgress&&Q.onProgress(ne)}onStateChange(X,ne){const Q=this.pendingRequests[X];if(!Q)return;const fe=Q.xhr;if(fe.readyState>=2&&Q.onHeadersReceived&&(Q.onHeadersReceived(),delete Q.onHeadersReceived),4!==fe.readyState||!(X in this.pendingRequests))return;if(delete this.pendingRequests[X],0===fe.status&&this.isHttp)return void(Q.onError&&Q.onError(fe.status));const j=fe.status||200;if((200!==j||206!==Q.expectedStatus)&&j!==Q.expectedStatus)return void(Q.onError&&Q.onError(fe.status));const te=function D(ce){const X=ce.response;return"string"!=typeof X?X:(0,b.stringToBytes)(X).buffer}(fe);if(206===j){const K=fe.getResponseHeader("Content-Range"),O=/bytes (\d+)-(\d+)\/(\d+)/.exec(K);Q.onDone({begin:parseInt(O[1],10),chunk:te})}else te?Q.onDone({begin:0,chunk:te}):Q.onError&&Q.onError(fe.status)}getRequestXhr(X){return this.pendingRequests[X].xhr}isPendingRequest(X){return X in this.pendingRequests}abortRequest(X){const ne=this.pendingRequests[X].xhr;delete this.pendingRequests[X],ne.abort()}}I.PDFNetworkStream=class A{constructor(X){this._source=X,this._manager=new M(X.url,{httpHeaders:X.httpHeaders,withCredentials:X.withCredentials}),this._rangeChunkSize=X.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(X){const ne=this._rangeRequestReaders.indexOf(X);ne>=0&&this._rangeRequestReaders.splice(ne,1)}getFullReader(){return(0,b.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new P(this._manager,this._source),this._fullRequestReader}getRangeReader(X,ne){const Q=new B(this._manager,X,ne);return Q.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(Q),Q}cancelAllRequests(X){this._fullRequestReader&&this._fullRequestReader.cancel(X),this._rangeRequestReaders.slice(0).forEach(function(Q){Q.cancel(X)})}};class P{constructor(X,ne){this._manager=X;const Q={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=ne.url,this._fullRequestId=X.requestFull(Q),this._headersReceivedCapability=(0,b.createPromiseCapability)(),this._disableRange=ne.disableRange||!1,this._contentLength=ne.length,this._rangeChunkSize=ne.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const X=this._fullRequestId,ne=this._manager.getRequestXhr(X),Q=J=>ne.getResponseHeader(J),{allowRangeRequests:fe,suggestedLength:j}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:Q,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});fe&&(this._isRangeSupported=!0),this._contentLength=j||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(Q),this._isRangeSupported&&this._manager.abortRequest(X),this._headersReceivedCapability.resolve()}_onDone(X){X&&(this._requests.length>0?this._requests.shift().resolve({value:X.chunk,done:!1}):this._cachedChunks.push(X.chunk)),this._done=!0,!(this._cachedChunks.length>0)&&(this._requests.forEach(function(ne){ne.resolve({value:void 0,done:!0})}),this._requests=[])}_onError(X){const Q=(0,_.createResponseStatusError)(X,this._url);this._storedError=Q,this._headersReceivedCapability.reject(Q),this._requests.forEach(function(fe){fe.reject(Q)}),this._requests=[],this._cachedChunks=[]}_onProgress(X){this.onProgress&&this.onProgress({loaded:X.loaded,total:X.lengthComputable?X.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}read(){var X=this;return _asyncToGenerator(function*(){if(X._storedError)throw X._storedError;if(X._cachedChunks.length>0)return{value:X._cachedChunks.shift(),done:!1};if(X._done)return{value:void 0,done:!0};const ne=(0,b.createPromiseCapability)();return X._requests.push(ne),ne.promise})()}cancel(X){this._done=!0,this._headersReceivedCapability.reject(X),this._requests.forEach(function(ne){ne.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class B{constructor(X,ne,Q){this._manager=X;const fe={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=X.requestRange(ne,Q,fe),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}_close(){this.onClosed&&this.onClosed(this)}_onDone(X){const ne=X.chunk;this._requests.length>0?this._requests.shift().resolve({value:ne,done:!1}):this._queuedChunk=ne,this._done=!0,this._requests.forEach(function(Q){Q.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}_onProgress(X){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:X.loaded})}get isStreamingSupported(){return!1}read(){var X=this;return _asyncToGenerator(function*(){if(null!==X._queuedChunk){const Q=X._queuedChunk;return X._queuedChunk=null,{value:Q,done:!1}}if(X._done)return{value:void 0,done:!0};const ne=(0,b.createPromiseCapability)();return X._requests.push(ne),ne.promise})()}cancel(X){this._done=!0,this._requests.forEach(function(ne){ne.resolve({value:void 0,done:!0})}),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(Te,I,V)=>{Object.defineProperty(I,"__esModule",{value:!0}),I.PDFFetchStream=void 0;var b=V(2),_=V(24);function x(P,B,ce){return{method:"GET",headers:P,signal:ce?.signal,mode:"cors",credentials:B?"include":"same-origin",redirect:"follow"}}function C(P){const B=new Headers;for(const ce in P){const X=P[ce];typeof X>"u"||B.append(ce,X)}return B}I.PDFFetchStream=class D{constructor(B){this.source=B,this.isHttp=/^https?:/i.test(B.url),this.httpHeaders=this.isHttp&&B.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,b.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new M(this),this._fullRequestReader}getRangeReader(B,ce){if(ce<=this._progressiveDataLength)return null;const X=new A(this,B,ce);return this._rangeRequestReaders.push(X),X}cancelAllRequests(B){this._fullRequestReader&&this._fullRequestReader.cancel(B),this._rangeRequestReaders.slice(0).forEach(function(X){X.cancel(B)})}};class M{constructor(B){this._stream=B,this._reader=null,this._loaded=0,this._filename=null;const ce=B.source;this._withCredentials=ce.withCredentials||!1,this._contentLength=ce.length,this._headersCapability=(0,b.createPromiseCapability)(),this._disableRange=ce.disableRange||!1,this._rangeChunkSize=ce.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),typeof AbortController<"u"&&(this._abortController=new AbortController),this._isStreamingSupported=!ce.disableStream,this._isRangeSupported=!ce.disableRange,this._headers=C(this._stream.httpHeaders);const X=ce.url;fetch(X,x(this._headers,this._withCredentials,this._abortController)).then(ne=>{if(!(0,_.validateResponseStatus)(ne.status))throw(0,_.createResponseStatusError)(ne.status,X);this._reader=ne.body.getReader(),this._headersCapability.resolve();const Q=J=>ne.headers.get(J),{allowRangeRequests:fe,suggestedLength:j}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:Q,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=fe,this._contentLength=j||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(Q),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new b.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var B=this;return _asyncToGenerator(function*(){yield B._headersCapability.promise;const{value:ce,done:X}=yield B._reader.read();return X?{value:ce,done:X}:(B._loaded+=ce.byteLength,B.onProgress&&B.onProgress({loaded:B._loaded,total:B._contentLength}),{value:new Uint8Array(ce).buffer,done:!1})})()}cancel(B){this._reader&&this._reader.cancel(B),this._abortController&&this._abortController.abort()}}class A{constructor(B,ce,X){this._stream=B,this._reader=null,this._loaded=0;const ne=B.source;this._withCredentials=ne.withCredentials||!1,this._readCapability=(0,b.createPromiseCapability)(),this._isStreamingSupported=!ne.disableStream,typeof AbortController<"u"&&(this._abortController=new AbortController),this._headers=C(this._stream.httpHeaders),this._headers.append("Range",`bytes=${ce}-${X-1}`);const Q=ne.url;fetch(Q,x(this._headers,this._withCredentials,this._abortController)).then(fe=>{if(!(0,_.validateResponseStatus)(fe.status))throw(0,_.createResponseStatusError)(fe.status,Q);this._readCapability.resolve(),this._reader=fe.body.getReader()}).catch(fe=>{if("AbortError"!==fe?.name)throw fe}),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}read(){var B=this;return _asyncToGenerator(function*(){yield B._readCapability.promise;const{value:ce,done:X}=yield B._reader.read();return X?{value:ce,done:X}:(B._loaded+=ce.byteLength,B.onProgress&&B.onProgress({loaded:B._loaded}),{value:new Uint8Array(ce).buffer,done:!1})})()}cancel(B){this._reader&&this._reader.cancel(B),this._abortController&&this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(Te){if(__webpack_module_cache__[Te])return __webpack_module_cache__[Te].exports;var I=__webpack_module_cache__[Te]={exports:{}};return __webpack_modules__[Te](I,I.exports,__w_pdfjs_require__),I.exports}return __w_pdfjs_require__(0)})()},module.exports=V()},2813:function(Te,I,V){var b=V(7156).default;Te.exports=(()=>{"use strict";var _=[(D,M,A)=>{Object.defineProperty(M,"__esModule",{value:!0}),Object.defineProperty(M,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return P.AnnotationLayerBuilder}}),Object.defineProperty(M,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return P.DefaultAnnotationLayerFactory}}),Object.defineProperty(M,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return B.DefaultTextLayerFactory}}),Object.defineProperty(M,"TextLayerBuilder",{enumerable:!0,get:function(){return B.TextLayerBuilder}}),Object.defineProperty(M,"EventBus",{enumerable:!0,get:function(){return ce.EventBus}}),Object.defineProperty(M,"NullL10n",{enumerable:!0,get:function(){return ce.NullL10n}}),Object.defineProperty(M,"ProgressBar",{enumerable:!0,get:function(){return ce.ProgressBar}}),Object.defineProperty(M,"PDFLinkService",{enumerable:!0,get:function(){return X.PDFLinkService}}),Object.defineProperty(M,"SimpleLinkService",{enumerable:!0,get:function(){return X.SimpleLinkService}}),Object.defineProperty(M,"DownloadManager",{enumerable:!0,get:function(){return ne.DownloadManager}}),Object.defineProperty(M,"GenericL10n",{enumerable:!0,get:function(){return Q.GenericL10n}}),Object.defineProperty(M,"PDFFindController",{enumerable:!0,get:function(){return fe.PDFFindController}}),Object.defineProperty(M,"PDFHistory",{enumerable:!0,get:function(){return j.PDFHistory}}),Object.defineProperty(M,"PDFPageView",{enumerable:!0,get:function(){return J.PDFPageView}}),Object.defineProperty(M,"PDFSinglePageViewer",{enumerable:!0,get:function(){return te.PDFSinglePageViewer}}),Object.defineProperty(M,"PDFViewer",{enumerable:!0,get:function(){return K.PDFViewer}});var P=A(1),B=A(5),ce=A(3),X=A(4),ne=A(6),Q=A(8),fe=A(10),j=A(12),J=A(13),te=A(15),K=A(17)},(D,M,A)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.DefaultAnnotationLayerFactory=M.AnnotationLayerBuilder=void 0;var P=A(2),B=A(3),ce=A(4);class X{constructor({pageDiv:fe,pdfPage:j,linkService:J,downloadManager:te,annotationStorage:K=null,imageResourcesPath:O="",renderInteractiveForms:F=!0,l10n:Y=B.NullL10n,enableScripting:q=!1,hasJSActionsPromise:G=null,mouseState:re=null}){this.pageDiv=fe,this.pdfPage=j,this.linkService=J,this.downloadManager=te,this.imageResourcesPath=O,this.renderInteractiveForms=F,this.l10n=Y,this.annotationStorage=K,this.enableScripting=q,this._hasJSActionsPromise=G,this._mouseState=re,this.div=null,this._cancelled=!1}render(fe,j="display"){return Promise.all([this.pdfPage.getAnnotations({intent:j}),this._hasJSActionsPromise]).then(([J,te=!1])=>{if(this._cancelled||0===J.length)return;const K={viewport:fe.clone({dontFlip:!0}),div:this.div,annotations:J,page:this.pdfPage,imageResourcesPath:this.imageResourcesPath,renderInteractiveForms:this.renderInteractiveForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:te,mouseState:this._mouseState};this.div?P.AnnotationLayer.update(K):(this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.appendChild(this.div),K.div=this.div,P.AnnotationLayer.render(K),this.l10n.translate(this.div))})}cancel(){this._cancelled=!0}hide(){!this.div||this.div.setAttribute("hidden","true")}}M.AnnotationLayerBuilder=X;M.DefaultAnnotationLayerFactory=class ne{createAnnotationLayerBuilder(fe,j,J=null,te="",K=!0,O=B.NullL10n,F=!1,Y=null,q=null){return new X({pageDiv:fe,pdfPage:j,imageResourcesPath:te,renderInteractiveForms:K,linkService:new ce.SimpleLinkService,l10n:O,annotationStorage:J,enableScripting:F,hasJSActionsPromise:Y,mouseState:q})}}},D=>{let M;M=typeof window<"u"&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:V(6036),D.exports=M},(D,M)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.approximateFraction=function de(Le){if(Math.floor(Le)===Le)return[Le,1];const Je=1/Le;if(Je>8)return[1,8];if(Math.floor(Je)===Je)return[1,Je];const Ge=Le>1?Je:Le;let ti,Tt=0,yt=1,tn=1,_n=1;for(;;){const en=Tt+tn,Yt=yt+_n;if(Yt>8)break;Ge<=en/Yt?(tn=en,_n=Yt):(Tt=en,yt=Yt)}return ti=Ge-Tt/yt_n}:function en(Ri){const or=Ri.div;return or.offsetTop+or.clientTop+or.clientHeight>yt});us>0&&us=tn&&(Wc=nn);else if((Ge?Xr:He)>Wc)break;if(nn<=yt||He>=tn||bt<=_n||Xr>=ti)continue;const Dn=Math.max(0,yt-He)+Math.max(0,nn-tn),So=(Oe-(Math.max(0,_n-Xr)+Math.max(0,bt-ti)))/Oe;Yr.push({id:or.id,x:Xr,y:He,view:or,percent:(je-Dn)/je*So*100|0,widthPercent:100*So|0})}const Uh=Yr[0],au=Yr[Yr.length-1];return rt&&Yr.sort(function(Ri,or){const pr=Ri.percent-or.percent;return Math.abs(pr)>.001?-pr:Ri.id-or.id}),{first:Uh,last:au,views:Yr}},M.isPortraitOrientation=function Ve(Le){return Le.width<=Le.height},M.isValidRotation=function Ne(Le){return Number.isInteger(Le)&&Le%90==0},M.isValidScrollMode=function Ye(Le){return Number.isInteger(Le)&&Object.values(Y).includes(Le)&&Le!==Y.UNKNOWN},M.isValidSpreadMode=function Xe(Le){return Number.isInteger(Le)&&Object.values(q).includes(Le)&&Le!==q.UNKNOWN},M.moveToEndOfArray=function Gi(Le,Je){const rt=[],Ge=Le.length;let Tt=0;for(let yt=0;yt1?yt[1]:null;rt[decodeURIComponent(tn)]=decodeURIComponent(_n)}return rt},M.roundToDivide=function ie(Le,Je){const rt=Le%Je;return 0===rt?Le:Math.round(Le-rt+Je)},M.scrollIntoView=function De(Le,Je,rt=!1){let Ge=Le.offsetParent;if(!Ge)return void console.error("offsetParent is not set -- cannot scroll");let Tt=Le.offsetTop+Le.clientTop,yt=Le.offsetLeft+Le.clientLeft;for(;Ge.clientHeight===Ge.scrollHeight&&Ge.clientWidth===Ge.scrollWidth||rt&&"hidden"===getComputedStyle(Ge).overflow;)if(Ge.dataset._scaleY&&(Tt/=Ge.dataset._scaleY,yt/=Ge.dataset._scaleX),Tt+=Ge.offsetTop,yt+=Ge.offsetLeft,Ge=Ge.offsetParent,!Ge)return;Je&&(void 0!==Je.top&&(Tt+=Je.top),void 0!==Je.left&&(yt+=Je.left,Ge.scrollLeft=yt)),Ge.scrollTop=Tt},M.waitOnEventOrTimeout=function Rt({target:Le,name:Je,delay:rt=0}){return new Promise(function(Ge,Tt){if("object"!=typeof Le||!Je||"string"!=typeof Je||!(Number.isInteger(rt)&&rt>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function yt(en){Le instanceof $t?Le._off(Je,tn):Le.removeEventListener(Je,tn),ti&&clearTimeout(ti),Ge(en)}const tn=yt.bind(null,lt.EVENT);Le instanceof $t?Le._on(Je,tn):Le.addEventListener(Je,tn);const _n=yt.bind(null,lt.TIMEOUT),ti=setTimeout(_n,rt)})},M.watchScroll=function ye(Le,Je){const rt=function(yt){Tt||(Tt=window.requestAnimationFrame(function(){Tt=null;const _n=Le.scrollLeft,ti=Ge.lastX;_n!==ti&&(Ge.right=_n>ti),Ge.lastX=_n;const en=Le.scrollTop,Yt=Ge.lastY;en!==Yt&&(Ge.down=en>Yt),Ge.lastY=en,Je(Ge)}))},Ge={right:!0,down:!0,lastX:Le.scrollLeft,lastY:Le.scrollTop,_eventHandler:rt};let Tt=null;return Le.addEventListener("scroll",rt,!0),Ge},M.WaitOnType=M.VERTICAL_PADDING=M.UNKNOWN_SCALE=M.TextLayerMode=M.SpreadMode=M.SidebarView=M.ScrollMode=M.SCROLLBAR_PADDING=M.RendererType=M.ProgressBar=M.PresentationModeState=M.NullL10n=M.MIN_SCALE=M.MAX_SCALE=M.MAX_AUTO_SCALE=M.EventBus=M.DEFAULT_SCALE_VALUE=M.DEFAULT_SCALE=M.CSS_UNITS=M.AutoPrintRegExp=M.animationStarted=void 0,M.CSS_UNITS=96/72,M.DEFAULT_SCALE_VALUE="auto",M.DEFAULT_SCALE=1,M.MIN_SCALE=.1,M.MAX_SCALE=10,M.UNKNOWN_SCALE=0,M.MAX_AUTO_SCALE=1.25,M.SCROLLBAR_PADDING=40,M.VERTICAL_PADDING=5;M.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},M.SidebarView={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4},M.RendererType={CANVAS:"canvas",SVG:"svg"},M.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};const Y={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};M.ScrollMode=Y;const q={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function ve(Le,Je){let rt=0,Ge=Le.length-1;if(Ge<0||!Je(Le[Ge]))return Le.length;if(Je(Le[rt]))return rt;for(;rt>1;Je(Le[Tt])?Ge=Tt:rt=Tt+1}return rt}function se(Le,Je,rt){if(Le<2)return Le;let Ge=Je[Le].div,Tt=Ge.offsetTop+Ge.clientTop;Tt>=rt&&(Ge=Je[Le-1].div,Tt=Ge.offsetTop+Ge.clientTop);for(let yt=Le-2;yt>=0&&(Ge=Je[yt].div,!(Ge.offsetTop+Ge.clientTop+Ge.clientHeight<=Tt));--yt)Le=yt;return Le}function Ie(Le){let Je=Math.sqrt(Le.deltaX*Le.deltaX+Le.deltaY*Le.deltaY);const rt=Math.atan2(Le.deltaY,Le.deltaX);return-.25*Math.PIb(function*(){return"en-us"})(),getDirection:()=>b(function*(){return"ltr"})(),get:(Le,Je,rt)=>b(function*(){return function re(Le,Je){return Je?Le.replace(/\{\{\s*(\w+)\s*\}\}/g,(rt,Ge)=>Ge in Je?Je[Ge]:"{{"+Ge+"}}"):Le}(rt,Je)})(),translate:Le=>b(function*(){})()};const lt={EVENT:"event",TIMEOUT:"timeout"};M.WaitOnType=lt;const It=new Promise(function(Le){window.requestAnimationFrame(Le)});M.animationStarted=It;class $t{constructor(Je){this._listeners=Object.create(null)}on(Je,rt,Ge=null){this._on(Je,rt,{external:!0,once:Ge?.once})}off(Je,rt,Ge=null){this._off(Je,rt,{external:!0,once:Ge?.once})}dispatch(Je){const rt=this._listeners[Je];if(!rt||0===rt.length)return;const Ge=Array.prototype.slice.call(arguments,1);let Tt;rt.slice(0).forEach(({listener:yt,external:tn,once:_n})=>{_n&&this._off(Je,yt),tn?(Tt||(Tt=[])).push(yt):yt.apply(null,Ge)}),Tt&&(Tt.forEach(yt=>{yt.apply(null,Ge)}),Tt=null)}_on(Je,rt,Ge=null){var Tt;((Tt=this._listeners)[Je]||(Tt[Je]=[])).push({listener:rt,external:!0===Ge?.external,once:!0===Ge?.once})}_off(Je,rt,Ge=null){const Tt=this._listeners[Je];if(Tt)for(let yt=0,tn=Tt.length;yt0&&document.documentElement.style.setProperty("--loadingBar-end-offset",`${Ge}px`)}hide(){!this.visible||(this.visible=!1,this.bar.classList.add("hidden"))}show(){this.visible||(this.visible=!0,this.bar.classList.remove("hidden"))}}},(D,M,A)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.SimpleLinkService=M.PDFLinkService=void 0;var P=A(3);M.PDFLinkService=class B{constructor({eventBus:Q,externalLinkTarget:fe=null,externalLinkRel:j=null,externalLinkEnabled:J=!0,ignoreDestinationZoom:te=!1}={}){this.eventBus=Q,this.externalLinkTarget=fe,this.externalLinkRel=j,this.externalLinkEnabled=J,this._ignoreDestinationZoom=te,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}setDocument(Q,fe=null){this.baseUrl=fe,this.pdfDocument=Q,this._pagesRefCache=Object.create(null)}setViewer(Q){this.pdfViewer=Q}setHistory(Q){this.pdfHistory=Q}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(Q){this.pdfViewer.currentPageNumber=Q}get rotation(){return this.pdfViewer.pagesRotation}set rotation(Q){this.pdfViewer.pagesRotation=Q}navigateTo(Q){console.error("Deprecated method: `navigateTo`, use `goToDestination` instead."),this.goToDestination(Q)}_goToDestinationHelper(Q,fe=null,j){const J=j[0];let te;if(J instanceof Object){if(te=this._cachedPageNumber(J),null===te)return void this.pdfDocument.getPageIndex(J).then(K=>{this.cachePageRef(K+1,J),this._goToDestinationHelper(Q,fe,j)}).catch(()=>{console.error(`PDFLinkService._goToDestinationHelper: "${J}" is not a valid page reference, for dest="${Q}".`)})}else{if(!Number.isInteger(J))return void console.error(`PDFLinkService._goToDestinationHelper: "${J}" is not a valid destination reference, for dest="${Q}".`);te=J+1}!te||te<1||te>this.pagesCount?console.error(`PDFLinkService._goToDestinationHelper: "${te}" is not a valid page number, for dest="${Q}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:fe,explicitDest:j,pageNumber:te})),this.pdfViewer.scrollPageIntoView({pageNumber:te,destArray:j,ignoreDestinationZoom:this._ignoreDestinationZoom}))}goToDestination(Q){var fe=this;return b(function*(){if(!fe.pdfDocument)return;let j,J;"string"==typeof Q?(j=Q,J=yield fe.pdfDocument.getDestination(Q)):(j=null,J=yield Q),Array.isArray(J)?fe._goToDestinationHelper(Q,j,J):console.error(`PDFLinkService.goToDestination: "${J}" is not a valid destination array, for dest="${Q}".`)})()}goToPage(Q){if(!this.pdfDocument)return;const fe="string"==typeof Q&&this.pdfViewer.pageLabelToPageNumber(Q)||0|Q;Number.isInteger(fe)&&fe>0&&fe<=this.pagesCount?(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(fe)),this.pdfViewer.scrollPageIntoView({pageNumber:fe})):console.error(`PDFLinkService.goToPage: "${Q}" is not a valid page.`)}getDestinationHash(Q){if("string"==typeof Q){if(Q.length>0)return this.getAnchorUrl("#"+escape(Q))}else if(Array.isArray(Q)){const fe=JSON.stringify(Q);if(fe.length>0)return this.getAnchorUrl("#"+escape(fe))}return this.getAnchorUrl("")}getAnchorUrl(Q){return(this.baseUrl||"")+Q}setHash(Q){if(!this.pdfDocument)return;let fe,j;if(Q.includes("=")){const J=(0,P.parseQueryString)(Q);if("search"in J&&this.eventBus.dispatch("findfromurlhash",{source:this,query:J.search.replace(/"/g,""),phraseSearch:"true"===J.phrase}),"page"in J&&(fe=0|J.page||1),"zoom"in J){const te=J.zoom.split(","),K=te[0],O=parseFloat(K);K.includes("Fit")?"Fit"===K||"FitB"===K?j=[null,{name:K}]:"FitH"===K||"FitBH"===K||"FitV"===K||"FitBV"===K?j=[null,{name:K},te.length>1?0|te[1]:null]:"FitR"===K?5!==te.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):j=[null,{name:K},0|te[1],0|te[2],0|te[3],0|te[4]]:console.error(`PDFLinkService.setHash: "${K}" is not a valid zoom value.`):j=[null,{name:"XYZ"},te.length>1?0|te[1]:null,te.length>2?0|te[2]:null,O?O/100:K]}j?this.pdfViewer.scrollPageIntoView({pageNumber:fe||this.page,destArray:j,allowNegativeOffset:!0}):fe&&(this.page=fe),"pagemode"in J&&this.eventBus.dispatch("pagemode",{source:this,mode:J.pagemode}),"nameddest"in J&&this.goToDestination(J.nameddest)}else{j=unescape(Q);try{j=JSON.parse(j),Array.isArray(j)||(j=j.toString())}catch{}if("string"==typeof j||function ce(ne){if(!Array.isArray(ne))return!1;const Q=ne.length;if(Q<2)return!1;const fe=ne[0];if(!("object"==typeof fe&&Number.isInteger(fe.num)&&Number.isInteger(fe.gen)||Number.isInteger(fe)&&fe>=0))return!1;const j=ne[1];if("object"!=typeof j||"string"!=typeof j.name)return!1;let J=!0;switch(j.name){case"XYZ":if(5!==Q)return!1;break;case"Fit":case"FitB":return 2===Q;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==Q)return!1;break;case"FitR":if(6!==Q)return!1;J=!1;break;default:return!1}for(let te=2;te{Object.defineProperty(M,"__esModule",{value:!0}),M.TextLayerBuilder=M.DefaultTextLayerFactory=void 0;var P=A(2);class ce{constructor({textLayerDiv:Q,eventBus:fe,pageIndex:j,viewport:J,findController:te=null,enhanceTextSelection:K=!1}){this.textLayerDiv=Q,this.eventBus=fe,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=j,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=J,this.textDivs=[],this.findController=te,this.textLayerRenderTask=null,this.enhanceTextSelection=K,this._onUpdateTextLayerMatches=null,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const Q=document.createElement("div");Q.className="endOfContent",this.textLayerDiv.appendChild(Q)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(Q=0){if(!this.textContent&&!this.textContentStream||this.renderingDone)return;this.cancel(),this.textDivs=[];const fe=document.createDocumentFragment();this.textLayerRenderTask=(0,P.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:fe,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:Q,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(()=>{this.textLayerDiv.appendChild(fe),this._finishRendering(),this._updateMatches()},function(j){}),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=j=>{(j.pageIndex===this.pageIdx||-1===j.pageIndex)&&this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}cancel(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}setTextContentStream(Q){this.cancel(),this.textContentStream=Q}setTextContent(Q){this.cancel(),this.textContent=Q}_convertMatches(Q,fe){if(!Q)return[];const{textContentItemsStr:j}=this;let J=0,te=0;const K=j.length-1,O=[];for(let F=0,Y=Q.length;F=te+j[J].length;)te+=j[J].length,J++;J===j.length&&console.error("Could not find a matching mapping");const G={begin:{divIdx:J,offset:q-te}};for(q+=fe[F];J!==K&&q>te+j[J].length;)te+=j[J].length,J++;G.end={divIdx:J,offset:q-te},O.push(G)}return O}_renderMatches(Q){if(0===Q.length)return;const{findController:fe,pageIdx:j,textContentItemsStr:J,textDivs:te}=this,K=j===fe.selected.pageIdx,O=fe.selected.matchIdx;let Y=null;const q_offset=void 0;function G(De,ye){const xe=De.divIdx;te[xe].textContent="",re(xe,0,De.offset,ye)}function re(De,ye,xe,ve){const de=te[De],ie=J[De].substring(ye,xe),S=document.createTextNode(ie);if(ve){const se=document.createElement("span");return se.className=ve,se.appendChild(S),void de.appendChild(se)}de.appendChild(S)}let ae=O,Me=ae+1;if(fe.state.highlightAll)ae=0,Me=Q.length;else if(!K)return;for(let De=ae;De{if(this.enhanceTextSelection&&this.textLayerRenderTask)return this.textLayerRenderTask.expandTextDivs(!0),void(fe&&(clearTimeout(fe),fe=null));const J=Q.querySelector(".endOfContent");if(!J)return;let te=j.target!==Q;if(te=te&&"none"!==window.getComputedStyle(J).getPropertyValue("-moz-user-select"),te){const K=Q.getBoundingClientRect(),O=Math.max(0,(j.pageY-K.top)/K.height);J.style.top=(100*O).toFixed(2)+"%"}J.classList.add("active")}),Q.addEventListener("mouseup",()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return void(fe=setTimeout(()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),fe=null},300));const j=Q.querySelector(".endOfContent");!j||(j.style.top="",j.classList.remove("active"))})}}M.TextLayerBuilder=ce;M.DefaultTextLayerFactory=class X{createTextLayerBuilder(Q,fe,j,J=!1,te){return new ce({textLayerDiv:Q,pageIndex:fe,viewport:j,enhanceTextSelection:J,eventBus:te})}}},(D,M,A)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.DownloadManager=void 0;var P=A(2),B=A(7);function ce(ne,Q){const fe=document.createElement("a");if(!fe.click)throw new Error('DownloadManager: "a.click()" is not supported.');fe.href=ne,fe.target="_parent","download"in fe&&(fe.download=Q),(document.body||document.documentElement).appendChild(fe),fe.click(),fe.remove()}M.DownloadManager=class X{downloadUrl(Q,fe){!(0,P.createValidAbsoluteUrl)(Q,"http://example.com")||ce(Q+"#pdfjs.action=download",fe)}downloadData(Q,fe,j){ce((0,P.createObjectURL)(Q,j,B.viewerCompatibilityParams.disableCreateObjectURL),fe)}download(Q,fe,j,J="download"){B.viewerCompatibilityParams.disableCreateObjectURL?this.downloadUrl(fe,j):ce(URL.createObjectURL(Q),j)}}},(D,M)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.viewerCompatibilityParams=void 0;const A=Object.create(null);{const B=typeof navigator<"u"&&navigator.userAgent||"",ce=typeof navigator<"u"&&navigator.platform||"",X=typeof navigator<"u"&&navigator.maxTouchPoints||1,ne=/Android/.test(B),Q=/\b(iPad|iPhone|iPod)(?=;)/.test(B)||"MacIntel"===ce&&X>1;/CriOS/.test(B)&&(A.disableCreateObjectURL=!0),(Q||ne)&&(A.maxCanvasPixels=5242880)}const P=Object.freeze(A);M.viewerCompatibilityParams=P},(D,M,A)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.GenericL10n=void 0,A(9);const P=document.webL10n;M.GenericL10n=class B{constructor(X){this._lang=X,this._ready=new Promise((ne,Q)=>{P.setLanguage(X,()=>{ne(P)})})}getLanguage(){var X=this;return b(function*(){return(yield X._ready).getLanguage()})()}getDirection(){var X=this;return b(function*(){return(yield X._ready).getDirection()})()}get(X,ne,Q){var fe=this;return b(function*(){return(yield fe._ready).get(X,ne,Q)})()}translate(X){var ne=this;return b(function*(){return(yield ne._ready).translate(X)})()}}},()=>{document.webL10n=function(D,M,A){var P={},B="",ce="textContent",X="",ne={},Q="loading";function O(ve,de,ie){de=de||function(ue){},ie=ie||function(){};var S=new XMLHttpRequest;S.open("GET",ve,true),S.overrideMimeType&&S.overrideMimeType("text/plain; charset=utf-8"),S.onreadystatechange=function(){4==S.readyState&&(200==S.status||0===S.status?de(S.responseText):ie())},S.onerror=ie,S.ontimeout=ie;try{S.send(null)}catch{ie()}}function F(ve,de,ie,S){var se=ve.replace(/[^\/]*$/,"")||"./";function ue(me){return me.lastIndexOf("\\")<0?me:me.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}O(ve,function(me){B+=me,function le(me,be){var Ie={},Se=/^\s*|\s*$/,Ne=/^\s*#|^\s*$/,Ye=/^\s*\[(.*)\]\s*$/,Xe=/^\s*@import\s+url\((.*)\)\s*$/i,Ve=/^([^=\s]*)\s*=\s*(.+)$/;function lt(It,Lt,$t){var cn=It.replace(Se,"").split(/[\r\n]+/),Xi="*",Gi=de.split("-",1)[0],Ut=!1,Le="";!function Je(){for(;;){if(!cn.length)return void $t();var rt=cn.shift();if(!Ne.test(rt)){if(Lt){if(Le=Ye.exec(rt)){Xi=Le[1].toLowerCase(),Ut="*"!==Xi&&Xi!==de&&Xi!==Gi;continue}if(Ut)continue;if(Le=Xe.exec(rt))return void Rt(se+Le[1],Je)}var Ge=rt.match(Ve);Ge&&3==Ge.length&&(Ie[Ge[1]]=ue(Ge[2]))}}}()}function Rt(It,Lt){O(It,function($t){lt($t,!1,Lt)},function(){console.warn(It+" not found."),Lt()})}lt(me,!0,function(){be(Ie)})}(me,function(be){for(var Ie in be){var Se,Ne,Ye=Ie.lastIndexOf(".");Ye>0?(Se=Ie.substring(0,Ye),Ne=Ie.substring(Ye+1)):(Se=Ie,Ne=ce),P[Se]||(P[Se]={}),P[Se][Ne]=be[Ie]}ie&&ie()})},S)}function Y(ve,de){ve&&(ve=ve.toLowerCase()),de=de||function(){},function q(){P={},B="",X=""}(),X=ve;var ie=function j(){return M.querySelectorAll('link[type="application/l10n"]')}(),S=ie.length;if(0!==S){var me,be=0;me=function(){++be>=S&&(de(),Q="complete")};for(var Se=0;Se0&&(se=ve.substring(S+1),ve=ve.substring(0,S)),ie&&((ue={})[se]=ie);var le=re(ve,de,ue);return le&&se in le?le[se]:"{{"+ve+"}}"},getData:function(){return P},getText:function(){return B},getLanguage:function(){return X},setLanguage:function(ve,de){Y(ve,function(){de&&de()})},getDirection:function(){var de=X.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(de)>=0?"rtl":"ltr"},translate:function xe(ve){for(var de=function te(ve){return ve?ve.querySelectorAll("*[data-l10n-id]"):[]}(ve=ve||M.documentElement),ie=de.length,S=0;S{Object.defineProperty(M,"__esModule",{value:!0}),M.PDFFindController=M.FindState=void 0;var P=A(2),B=A(11),ce=A(3);const X={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};M.FindState=X;const j={"\u2018":"'","\u2019":"'","\u201a":"'","\u201b":"'","\u201c":'"',"\u201d":'"',"\u201e":'"',"\u201f":'"',"\xbc":"1/4","\xbd":"1/2","\xbe":"3/4"};let J=null;function te(F){if(!J){const G=Object.keys(j).join("");J=new RegExp(`[${G}]`,"g")}let Y=null;return[F.replace(J,function(G,re){const ae=j[G],Me=ae.length-G.length;return 0!==Me&&(Y||(Y=[])).push([re,Me]),ae}),Y]}function K(F,Y=null){if(!Y)return F;let q=0;for(const[G,re]of Y){const ae=G+q;if(ae>=F)break;if(ae+re>F){q+=F-ae;break}q+=re}return F-q}M.PDFFindController=class O{constructor({linkService:Y,eventBus:q}){this._linkService=Y,this._eventBus=q,this._reset(),q._on("findbarclose",this._onFindBarClose.bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(Y){this._pdfDocument&&this._reset(),Y&&(this._pdfDocument=Y,this._firstPageCapability.resolve())}executeCommand(Y,q){if(!q)return;const G=this._pdfDocument;(null===this._state||this._shouldDirtyMatch(Y,q))&&(this._dirtyMatch=!0),this._state=q,"findhighlightallchange"!==Y&&this._updateUIState(X.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||G&&this._pdfDocument!==G)return;this._extractText();const re=!this._highlightMatches,ae=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),"find"===Y?this._findTimeout=setTimeout(()=>{this._nextMatch(),this._findTimeout=null},250):this._dirtyMatch?this._nextMatch():"findagain"===Y?(this._nextMatch(),re&&this._state.highlightAll&&this._updateAllPages()):"findhighlightallchange"===Y?(ae?this._nextMatch():this._highlightMatches=!0,this._updateAllPages()):this._nextMatch()})}scrollMatchIntoView({element:Y=null,pageIndex:q=-1,matchIndex:G=-1}){this._scrollMatches&&Y&&-1!==G&&G===this._selected.matchIdx&&-1!==q&&q===this._selected.pageIdx&&(this._scrollMatches=!1,(0,ce.scrollIntoView)(Y,{top:-50,left:-400},!0))}_reset(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=Object.create(null),this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,P.createPromiseCapability)()}get _query(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=te(this._state.query)),this._normalizedQuery}_shouldDirtyMatch(Y,q){if(q.query!==this._state.query)return!0;switch(Y){case"findagain":const G=this._selected.pageIdx+1,re=this._linkService;return G>=1&&G<=re.pagesCount&&G!==re.page&&!re.isPageVisible(G);case"findhighlightallchange":return!1}return!0}_prepareMatches(Y,q,G){function re(ae){const Me=Y[ae];if(ae=0;ye--){const xe=Y[ye];if(!xe.skipped){if(xe.match+xe.matchLength=Me.match+Me.matchLength)return Me.skipped=!0,!0}}return!1}Y.sort(function(ae,Me){return ae.match===Me.match?ae.matchLength-Me.matchLength:ae.match-Me.match});for(let ae=0,Me=Y.length;ae0){const ae=Y.charCodeAt(q),Me=Y.charCodeAt(q-1);if((0,B.getCharacterType)(ae)===(0,B.getCharacterType)(Me))return!1}const re=q+G-1;if(re0&&(this._matchesCountTotal+=ye,this._updateUIResultsCount())}_extractText(){if(this._extractTextPromises.length>0)return;let Y=Promise.resolve();for(let q=0,G=this._linkService.pagesCount;qthis._pdfDocument.getPage(q+1).then(ae=>ae.getTextContent({normalizeWhitespace:!0})).then(ae=>{const Me=ae.items,De=[];for(let ye=0,xe=Me.length;ye{console.error(`Unable to get text content for page ${q+1}`,ae),this._pageContents[q]="",this._pageDiffs[q]=null,re.resolve(q)}))}}_updatePage(Y){this._scrollMatches&&this._selected.pageIdx===Y&&(this._linkService.page=Y+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:Y})}_updateAllPages(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}_nextMatch(){const Y=this._state.findPrevious,q=this._linkService.page-1,G=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=q,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(let ae=0;ae{delete this._pendingFindMatches[Me],this._calculateMatch(Me)}))}if(""===this._query)return void this._updateUIState(X.FOUND);if(this._resumePageIdx)return;const re=this._offset;if(this._pagesToSearch=G,null!==re.matchIdx){const ae=this._pageMatches[re.pageIdx].length;if(!Y&&re.matchIdx+10)return re.matchIdx=Y?re.matchIdx-1:re.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(Y)}this._nextPageMatch()}_matchesReady(Y){const q=this._offset,G=Y.length,re=this._state.findPrevious;return G?(q.matchIdx=re?G-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(re),!!(q.wrapped&&(q.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}_nextPageMatch(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");let Y=null;do{const q=this._offset.pageIdx;if(Y=this._pageMatches[q],!Y){this._resumePageIdx=q;break}}while(!this._matchesReady(Y))}_advanceOffsetPage(Y){const q=this._offset,G=this._linkService.pagesCount;q.pageIdx=Y?q.pageIdx-1:q.pageIdx+1,q.matchIdx=null,this._pagesToSearch--,(q.pageIdx>=G||q.pageIdx<0)&&(q.pageIdx=Y?G-1:0,q.wrapped=!0)}_updateMatch(Y=!1){let q=X.NOT_FOUND;const G=this._offset.wrapped;if(this._offset.wrapped=!1,Y){const re=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,q=G?X.WRAPPED:X.FOUND,-1!==re&&re!==this._selected.pageIdx&&this._updatePage(re)}this._updateUIState(q,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}_onFindBarClose(Y){const q=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||q&&this._pdfDocument!==q||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this._updateUIState(X.FOUND),this._highlightMatches=!1,this._updateAllPages())})}_requestMatchesCount(){const{pageIdx:Y,matchIdx:q}=this._selected;let G=0,re=this._matchesCountTotal;if(-1!==q){for(let ae=0;aere)&&(G=re=0),{current:G,total:re}}_updateUIResultsCount(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}_updateUIState(Y,q){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:Y,previous:q,matchesCount:this._requestMatchesCount(),rawQuery:this._state?this._state.query:null})}}},(D,M)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.getCharacterType=function K(O){return function P(O){return O<11904}(O)?function B(O){return 0==(65408&O)}(O)?function ne(O){return 32===O||9===O||13===O||10===O}(O)?A.SPACE:function ce(O){return O>=97&&O<=122||O>=65&&O<=90}(O)||function X(O){return O>=48&&O<=57}(O)||95===O?A.ALPHA_LETTER:A.PUNCT:function te(O){return 3584==(65408&O)}(O)?A.THAI_LETTER:160===O?A.SPACE:A.ALPHA_LETTER:function Q(O){return O>=13312&&O<=40959||O>=63744&&O<=64255}(O)?A.HAN_LETTER:function fe(O){return O>=12448&&O<=12543}(O)?A.KATAKANA_LETTER:function j(O){return O>=12352&&O<=12447}(O)?A.HIRAGANA_LETTER:function J(O){return O>=65376&&O<=65439}(O)?A.HALFWIDTH_KATAKANA_LETTER:A.ALPHA_LETTER},M.CharacterType=void 0;const A={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};M.CharacterType=A},(D,M,A)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.isDestArraysEqual=j,M.isDestHashesEqual=fe,M.PDFHistory=void 0;var P=A(3);function ne(){return document.location.hash}function fe(J,te){if("string"!=typeof J||"string"!=typeof te)return!1;if(J===te)return!0;const{nameddest:K}=(0,P.parseQueryString)(J);return K===te}function j(J,te){function K(O,F){if(typeof O!=typeof F||Array.isArray(O)||Array.isArray(F))return!1;if(null!==O&&"object"==typeof O&&null!==F){if(Object.keys(O).length!==Object.keys(F).length)return!1;for(const Y in O)if(!K(O[Y],F[Y]))return!1;return!0}return O===F||Number.isNaN(O)&&Number.isNaN(F)}if(!Array.isArray(J)||!Array.isArray(te)||J.length!==te.length)return!1;for(let O=0,F=J.length;O{this._isViewerInPresentationMode=O.state!==P.PresentationModeState.NORMAL}),this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",O=>{this._isPagesLoaded=!!O.pagesCount},{once:!0})})}initialize({fingerprint:te,resetHistory:K=!1,updateUrl:O=!1}){if(!te||"string"!=typeof te)return void console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');this._initialized&&this.reset();const F=""!==this._fingerprint&&this._fingerprint!==te;this._fingerprint=te,this._updateUrl=!0===O,this._initialized=!0,this._bindEvents();const Y=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=ne(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(Y,!0)||K){const{hash:G,page:re,rotation:ae}=this._parseCurrentHash(!0);return!G||F||K?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:G,page:re,rotation:ae},!0)}const q=Y.destination;this._updateInternalState(q,Y.uid,!0),void 0!==q.rotation&&(this._initialRotation=q.rotation),q.dest?(this._initialBookmark=JSON.stringify(q.dest),this._destination.page=null):q.hash?this._initialBookmark=q.hash:q.page&&(this._initialBookmark=`page=${q.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:te=null,explicitDest:K,pageNumber:O}){if(!this._initialized)return;if(te&&"string"!=typeof te)return void console.error(`PDFHistory.push: "${te}" is not a valid namedDest parameter.`);if(!Array.isArray(K))return void console.error(`PDFHistory.push: "${K}" is not a valid explicitDest parameter.`);if(!(Number.isInteger(O)&&O>0&&O<=this.linkService.pagesCount)&&(null!==O||this._destination))return void console.error(`PDFHistory.push: "${O}" is not a valid pageNumber parameter.`);const F=te||JSON.stringify(K);if(!F)return;let Y=!1;if(this._destination&&(fe(this._destination.hash,F)||j(this._destination.dest,K))){if(this._destination.page)return;Y=!0}this._popStateInProgress&&!Y||(this._pushOrReplaceState({dest:K,hash:F,page:O,rotation:this.linkService.rotation},Y),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(te){if(this._initialized){if(!(Number.isInteger(te)&&te>0&&te<=this.linkService.pagesCount))return void console.error(`PDFHistory.pushPage: "${te}" is not a valid page number.`);this._destination?.page!==te&&(this._popStateInProgress||(this._pushOrReplaceState({hash:`page=${te}`,page:te,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const te=window.history.state;this._isValidState(te)&&te.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const te=window.history.state;this._isValidState(te)&&te.uid0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(te,K=!1){const O=K||!this._destination,F={fingerprint:this._fingerprint,uid:O?this._uid:this._uid+1,destination:te};let Y;if(this._updateInternalState(te,F.uid),this._updateUrl&&te?.hash){const q=document.location.href.split("#")[0];q.startsWith("file://")||(Y=`${q}#${te.hash}`)}O?window.history.replaceState(F,"",Y):window.history.pushState(F,"",Y)}_tryPushCurrentPosition(te=!1){if(!this._position)return;let K=this._position;if(te&&(K=Object.assign(Object.create(null),this._position),K.temporary=!0),!this._destination)return void this._pushOrReplaceState(K);if(this._destination.temporary)return void this._pushOrReplaceState(K,!0);if(this._destination.hash===K.hash||!this._destination.page&&this._numPositionUpdates<=50)return;let O=!1;if(this._destination.page>=K.first&&this._destination.page<=K.page){if(this._destination.dest||!this._destination.first)return;O=!0}this._pushOrReplaceState(K,O)}_isValidState(te,K=!1){if(!te)return!1;if(te.fingerprint!==this._fingerprint){if(!K)return!1;{if("string"!=typeof te.fingerprint||te.fingerprint.length!==this._fingerprint.length)return!1;const[O]=performance.getEntriesByType("navigation");if("reload"!==O?.type)return!1}}return!(!Number.isInteger(te.uid)||te.uid<0||null===te.destination||"object"!=typeof te.destination)}_updateInternalState(te,K,O=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),O&&te?.temporary&&delete te.temporary,this._destination=te,this._uid=K,this._maxUid=Math.max(this._maxUid,K),this._numPositionUpdates=0}_parseCurrentHash(te=!1){const K=unescape(ne()).substring(1),O=(0,P.parseQueryString)(K),F=O.nameddest||"";let Y=0|O.page;return(!(Number.isInteger(Y)&&Y>0&&Y<=this.linkService.pagesCount)||te&&F.length>0)&&(Y=null),{hash:K,page:Y,rotation:this.linkService.rotation}}_updateViewarea({location:te}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?`page=${te.pageNumber}`:te.pdfOpenParams.substring(1),page:this.linkService.page,first:te.pageNumber,rotation:te.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},1e3))}_popState({state:te}){const K=ne(),O=this._currentHash!==K;if(this._currentHash=K,!te){this._uid++;const{hash:Y,page:q,rotation:G}=this._parseCurrentHash();return void this._pushOrReplaceState({hash:Y,page:q,rotation:G},!0)}if(!this._isValidState(te))return;this._popStateInProgress=!0,O&&(this._blockHashChange++,(0,P.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(()=>{this._blockHashChange--}));const F=te.destination;this._updateInternalState(F,te.uid,!0),(0,P.isValidRotation)(F.rotation)&&(this.linkService.rotation=F.rotation),F.dest?this.linkService.goToDestination(F.dest):F.hash?this.linkService.setHash(F.hash):F.page&&(this.linkService.page=F.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}_pageHide(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){!this._boundEvents||(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}},(D,M,A)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.PDFPageView=void 0;var P=A(3),B=A(2),ce=A(14);const ne=A(7).viewerCompatibilityParams.maxCanvasPixels||16777216;M.PDFPageView=class Q{constructor(j){const J=j.container,te=j.defaultViewport;this.id=j.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=j.scale||P.DEFAULT_SCALE,this.viewport=te,this.pdfPageRotate=te.rotation,this._optionalContentConfigPromise=j.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(j.textLayerMode)?j.textLayerMode:P.TextLayerMode.ENABLE,this.imageResourcesPath=j.imageResourcesPath||"",this.renderInteractiveForms="boolean"!=typeof j.renderInteractiveForms||j.renderInteractiveForms,this.useOnlyCssZoom=j.useOnlyCssZoom||!1,this.maxCanvasPixels=j.maxCanvasPixels||ne,this.eventBus=j.eventBus,this.renderingQueue=j.renderingQueue,this.textLayerFactory=j.textLayerFactory,this.annotationLayerFactory=j.annotationLayerFactory,this.renderer=j.renderer||P.RendererType.CANVAS,this.enableWebGL=j.enableWebGL||!1,this.l10n=j.l10n||P.NullL10n,this.enableScripting=j.enableScripting||!1,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=ce.RenderingStates.INITIAL,this.resume=null,this._renderError=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;const K=document.createElement("div");K.className="page",K.style.width=Math.floor(this.viewport.width)+"px",K.style.height=Math.floor(this.viewport.height)+"px",K.setAttribute("data-page-number",this.id),this.div=K,J.appendChild(K)}setPdfPage(j){this.pdfPage=j,this.pdfPageRotate=j.rotate,this.viewport=j.getViewport({scale:this.scale*P.CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}_renderAnnotationLayer(){var j=this;return b(function*(){let J=null;try{yield j.annotationLayer.render(j.viewport,"display")}catch(te){J=te}finally{j.eventBus.dispatch("annotationlayerrendered",{source:j,pageNumber:j.id,error:J})}})()}_resetZoomLayer(j=!1){if(!this.zoomLayer)return;const J=this.zoomLayer.firstChild;this.paintedViewportMap.delete(J),J.width=0,J.height=0,j&&this.zoomLayer.remove(),this.zoomLayer=null}reset(j=!1,J=!1){this.cancelRendering(J),this.renderingState=ce.RenderingStates.INITIAL;const te=this.div;te.style.width=Math.floor(this.viewport.width)+"px",te.style.height=Math.floor(this.viewport.height)+"px";const K=te.childNodes,O=j&&this.zoomLayer||null,F=J&&this.annotationLayer&&this.annotationLayer.div||null;for(let Y=K.length-1;Y>=0;Y--){const q=K[Y];O===q||F===q||te.removeChild(q)}te.removeAttribute("data-loaded"),F?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),O||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",te.appendChild(this.loadingIconDiv)}update(j,J,te=null){if(this.scale=j||this.scale,typeof J<"u"&&(this.rotation=J),te instanceof Promise&&(this._optionalContentConfigPromise=te),this.viewport=this.viewport.clone({scale:this.scale*P.CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});let O=!1;if(this.canvas&&this.maxCanvasPixels>0){const F=this.outputScale;(Math.floor(this.viewport.width)*F.sx|0)*(Math.floor(this.viewport.height)*F.sy|0)>this.maxCanvasPixels&&(O=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&O)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});!this.zoomLayer&&!this.canvas.hasAttribute("hidden")&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}cancelRendering(j=!1){this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!j&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}cssTransform(j,J=!1){const te=this.viewport.width,K=this.viewport.height,O=this.div;j.style.width=j.parentNode.style.width=O.style.width=Math.floor(te)+"px",j.style.height=j.parentNode.style.height=O.style.height=Math.floor(K)+"px";const F=this.viewport.rotation-this.paintedViewportMap.get(j).rotation,Y=Math.abs(F);let q=1,G=1;if((90===Y||270===Y)&&(q=K/te,G=te/K),j.style.transform=`rotate(${F}deg) scale(${q}, ${G})`,this.textLayer){const re=this.textLayer.viewport,Me=Math.abs(this.viewport.rotation-re.rotation);let De=te/re.width;(90===Me||270===Me)&&(De=te/re.height);const ye=this.textLayer.textLayerDiv;let xe,ve;switch(Me){case 0:xe=ve=0;break;case 90:xe=0,ve="-"+ye.style.height;break;case 180:xe="-"+ye.style.width,ve="-"+ye.style.height;break;case 270:xe="-"+ye.style.width,ve=0;break;default:console.error("Bad rotation value.")}ye.style.transform=`rotate(${Me}deg) scale(${De}) translate(${xe}, ${ve})`,ye.style.transformOrigin="0% 0%"}J&&this.annotationLayer&&this._renderAnnotationLayer()}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(j,J){return this.viewport.convertToPdfPoint(j,J)}draw(){var j=this;this.renderingState!==ce.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:J,pdfPage:te}=this;if(!te)return this.renderingState=ce.RenderingStates.FINISHED,this.loadingIconDiv&&(J.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=ce.RenderingStates.RUNNING;const K=document.createElement("div");K.style.width=J.style.width,K.style.height=J.style.height,K.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?J.insertBefore(K,this.annotationLayer.div):J.appendChild(K);let O=null;if(this.textLayerMode!==P.TextLayerMode.DISABLE&&this.textLayerFactory){const re=document.createElement("div");re.className="textLayer",re.style.width=K.style.width,re.style.height=K.style.height,this.annotationLayer&&this.annotationLayer.div?J.insertBefore(re,this.annotationLayer.div):J.appendChild(re),O=this.textLayerFactory.createTextLayerBuilder(re,this.id-1,this.viewport,this.textLayerMode===P.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=O;let F=null;this.renderingQueue&&(F=re=>{if(!this.renderingQueue.isHighestPriority(this))return this.renderingState=ce.RenderingStates.PAUSED,void(this.resume=()=>{this.renderingState=ce.RenderingStates.RUNNING,re()});re()});const Y=function(){var re=b(function*(ae=null){if(q===j.paintTask&&(j.paintTask=null),ae instanceof B.RenderingCancelledException)j._renderError=null;else if(j._renderError=ae,j.renderingState=ce.RenderingStates.FINISHED,j.loadingIconDiv&&(J.removeChild(j.loadingIconDiv),delete j.loadingIconDiv),j._resetZoomLayer(!0),j.eventBus.dispatch("pagerendered",{source:j,pageNumber:j.id,cssTransform:!1,timestamp:performance.now(),error:j._renderError}),ae)throw ae});return function(){return re.apply(this,arguments)}}(),q=this.renderer===P.RendererType.SVG?this.paintOnSvg(K):this.paintOnCanvas(K);q.onRenderContinue=F,this.paintTask=q;const G=q.promise.then(function(){return Y(null).then(function(){if(O){const re=te.streamTextContent({normalizeWhitespace:!0});O.setTextContentStream(re),O.render()}})},function(re){return Y(re)});return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(J,te,null,this.imageResourcesPath,this.renderInteractiveForms,this.l10n,this.enableScripting,null,null)),this._renderAnnotationLayer()),J.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),G}paintOnCanvas(j){const J=(0,B.createPromiseCapability)(),te={promise:J.promise,onRenderContinue(xe){xe()},cancel(){ye.cancel()}},K=this.viewport,O=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then(xe=>{O.setAttribute("aria-label",xe)}),O.setAttribute("hidden","hidden");let F=!0;const Y=function(){F&&(O.removeAttribute("hidden"),F=!1)};j.appendChild(O),this.canvas=O,O.mozOpaque=!0;const q=O.getContext("2d",{alpha:!1}),G=(0,P.getOutputScale)(q);if(this.outputScale=G,this.useOnlyCssZoom){const xe=K.clone({scale:P.CSS_UNITS});G.sx*=xe.width/K.width,G.sy*=xe.height/K.height,G.scaled=!0}if(this.maxCanvasPixels>0){const ve=Math.sqrt(this.maxCanvasPixels/(K.width*K.height));G.sx>ve||G.sy>ve?(G.sx=ve,G.sy=ve,G.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const re=(0,P.approximateFraction)(G.sx),ae=(0,P.approximateFraction)(G.sy);O.width=(0,P.roundToDivide)(K.width*G.sx,re[0]),O.height=(0,P.roundToDivide)(K.height*G.sy,ae[0]),O.style.width=(0,P.roundToDivide)(K.width,re[1])+"px",O.style.height=(0,P.roundToDivide)(K.height,ae[1])+"px",this.paintedViewportMap.set(O,K);const ye=this.pdfPage.render({canvasContext:q,transform:G.scaled?[G.sx,0,0,G.sy,0,0]:null,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms,optionalContentConfigPromise:this._optionalContentConfigPromise});return ye.onContinue=function(xe){Y(),te.onRenderContinue?te.onRenderContinue(xe):xe()},ye.promise.then(function(){Y(),J.resolve(void 0)},function(xe){Y(),J.reject(xe)}),te}paintOnSvg(j){let J=!1;const te=()=>{if(J)throw new B.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},K=this.pdfPage,O=this.viewport.clone({scale:P.CSS_UNITS});return{promise:K.getOperatorList().then(Y=>(te(),new B.SVGGraphics(K.commonObjs,K.objs).getSVG(Y,O).then(G=>{te(),this.svg=G,this.paintedViewportMap.set(G,O),G.style.width=j.style.width,G.style.height=j.style.height,this.renderingState=ce.RenderingStates.FINISHED,j.appendChild(G)}))),onRenderContinue(Y){Y()},cancel(){J=!0}}}setPageLabel(j){this.pageLabel="string"==typeof j?j:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}}},(D,M,A)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.RenderingStates=M.PDFRenderingQueue=void 0;var P=A(2);const ce={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};M.RenderingStates=ce;M.PDFRenderingQueue=class X{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(Q){this.pdfViewer=Q}setThumbnailViewer(Q){this.pdfThumbnailViewer=Q}isHighestPriority(Q){return this.highestPriorityPage===Q.renderingId}renderHighestPriority(Q){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(Q)&&(this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4)))}getHighestPriority(Q,fe,j){const J=Q.views,te=J.length;if(0===te)return null;for(let K=0;K{this.renderHighestPriority()}).catch(fe=>{fe instanceof P.RenderingCancelledException||console.error(`renderView: "${fe}"`)})}return!0}}},(D,M,A)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.PDFSinglePageViewer=void 0;var P=A(16),B=A(2);M.PDFSinglePageViewer=class ce extends P.BaseViewer{constructor(ne){super(ne),this.eventBus._on("pagesinit",Q=>{this._ensurePageViewVisible()})}get _viewerElement(){return(0,B.shadow)(this,"_viewerElement",this._shadowViewer)}get _pageWidthScaleFactor(){return 1}_resetView(){super._resetView(),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}_ensurePageViewVisible(){const ne=this._pages[this._currentPageNumber-1],Q=this._pages[this._previousPageNumber-1],fe=this.viewer.childNodes;switch(fe.length){case 0:this.viewer.appendChild(ne.div);break;case 1:if(fe[0]!==Q.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(ne===Q)break;this._shadowViewer.appendChild(Q.div),this.viewer.appendChild(ne.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}_scrollUpdate(){this._updateScrollDown&&this._updateScrollDown(),super._scrollUpdate()}_scrollIntoView({pageDiv:ne,pageSpot:Q=null,pageNumber:fe=null}){fe&&this._setCurrentPageNumber(fe);const j=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),super._scrollIntoView({pageDiv:ne,pageSpot:Q,pageNumber:fe}),this._updateScrollDown=()=>{this.scroll.down=j,this._updateScrollDown=null}}_getVisiblePages(){return this._getCurrentVisiblePage()}_updateHelper(ne){}get _isScrollModeHorizontal(){return(0,B.shadow)(this,"_isScrollModeHorizontal",!1)}_updateScrollMode(){}_updateSpreadMode(){}_getPageAdvance(){return 1}}},(D,M,A)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.BaseViewer=void 0;var P=A(2),B=A(3),ce=A(14),X=A(1),ne=A(13),Q=A(4),fe=A(5);function J(O){const F=[];this.push=function(Y){const q=F.indexOf(Y);q>=0&&F.splice(q,1),F.push(Y),F.length>O&&F.shift().destroy()},this.resize=function(Y,q){if(O=Y,q){const G=new Set;for(let re=0,ae=q.length;reO;)F.shift().destroy()},this.has=function(Y){return F.includes(Y)}}class K{constructor(F){if(this.constructor===K)throw new Error("Cannot initialize BaseViewer.");const Y="2.7.570";if(P.version!==Y)throw new Error(`The API version "${P.version}" does not match the Viewer version "${Y}".`);if(this._name=this.constructor.name,this.container=F.container,this.viewer=F.viewer||F.container.firstElementChild,"DIV"!==this.container?.tagName.toUpperCase()||"DIV"!==this.viewer?.tagName.toUpperCase())throw new Error("Invalid `container` and/or `viewer` option.");if("absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.");this.eventBus=F.eventBus,this.linkService=F.linkService||new Q.SimpleLinkService,this.downloadManager=F.downloadManager||null,this.findController=F.findController||null,this.removePageBorders=F.removePageBorders||!1,this.textLayerMode=Number.isInteger(F.textLayerMode)?F.textLayerMode:B.TextLayerMode.ENABLE,this.imageResourcesPath=F.imageResourcesPath||"",this.renderInteractiveForms="boolean"!=typeof F.renderInteractiveForms||F.renderInteractiveForms,this.enablePrintAutoRotate=F.enablePrintAutoRotate||!1,this.renderer=F.renderer||B.RendererType.CANVAS,this.enableWebGL=F.enableWebGL||!1,this.useOnlyCssZoom=F.useOnlyCssZoom||!1,this.maxCanvasPixels=F.maxCanvasPixels,this.l10n=F.l10n||B.NullL10n,this.enableScripting=F.enableScripting||!1,this._mouseState=F.mouseState||null,this.defaultRenderingQueue=!F.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new ce.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=F.renderingQueue,this.scroll=(0,B.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=B.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then(()=>{this.eventBus.dispatch("baseviewerinit",{source:this})})}get pagesCount(){return this._pages.length}getPageView(F){return this._pages[F]}get pageViewsReady(){return!!this._pagesCapability.settled&&this._pages.every(function(F){return F&&F.pdfPage})}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(F){if(!Number.isInteger(F))throw new Error("Invalid page number.");!this.pdfDocument||this._setCurrentPageNumber(F,!0)||console.error(`${this._name}.currentPageNumber: "${F}" is not a valid page.`)}_setCurrentPageNumber(F,Y=!1){if(this._currentPageNumber===F)return Y&&this._resetCurrentPageView(),!0;if(!(0=0&&(Y=q+1)}this._setCurrentPageNumber(Y,!0)||console.error(`${this._name}.currentPageLabel: "${F}" is not a valid page.`)}get currentScale(){return this._currentScale!==B.UNKNOWN_SCALE?this._currentScale:B.DEFAULT_SCALE}set currentScale(F){if(isNaN(F))throw new Error("Invalid numeric scale.");!this.pdfDocument||this._setScale(F,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(F){!this.pdfDocument||this._setScale(F,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(F){if(!(0,B.isValidRotation)(F))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||this._pagesRotation===F)return;this._pagesRotation=F;const Y=this._currentPageNumber;for(let q=0,G=this._pages.length;q{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:Y})}),this._onBeforeDraw=re=>{const ae=this._pages[re.pageNumber-1];!ae||this._buffer.push(ae)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=re=>{re.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve(),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),q.then(re=>{this._firstPageCapability.resolve(re),this._optionalContentConfigPromise=G;const ae=this.currentScale,Me=re.getViewport({scale:ae*B.CSS_UNITS}),De=this.textLayerMode!==B.TextLayerMode.DISABLE?this:null;for(let xe=1;xe<=Y;++xe){const ve=new ne.PDFPageView({container:this._viewerElement,eventBus:this.eventBus,id:xe,scale:ae,defaultViewport:Me.clone(),optionalContentConfigPromise:G,renderingQueue:this.renderingQueue,textLayerFactory:De,textLayerMode:this.textLayerMode,annotationLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderInteractiveForms:this.renderInteractiveForms,renderer:this.renderer,enableWebGL:this.enableWebGL,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,l10n:this.l10n,enableScripting:this.enableScripting});this._pages.push(ve)}const ye=this._pages[0];ye&&(ye.setPdfPage(re),this.linkService.cachePageRef(1,re.ref)),this._spreadMode!==B.SpreadMode.NONE&&this._updateSpreadMode(),this._onePageRenderedOrForceFetch().then(()=>{if(this.findController&&this.findController.setDocument(F),F.loadingParams.disableAutoFetch||Y>7500)return void this._pagesCapability.resolve();let xe=Y-1;if(xe<=0)this._pagesCapability.resolve();else for(let ve=2;ve<=Y;++ve)F.getPage(ve).then(de=>{const ie=this._pages[ve-1];ie.pdfPage||ie.setPdfPage(de),this.linkService.cachePageRef(ve,de.ref),0==--xe&&this._pagesCapability.resolve()},de=>{console.error(`Unable to get page ${ve} to initialize viewer`,de),0==--xe&&this._pagesCapability.resolve()})}),this.eventBus.dispatch("pagesinit",{source:this}),this.defaultRenderingQueue&&this.update()}).catch(re=>{console.error("Unable to initialize viewer",re)})}setPageLabels(F){if(this.pdfDocument){F?Array.isArray(F)&&this.pdfDocument.numPages===F.length?this._pageLabels=F:(this._pageLabels=null,console.error(`${this._name}.setPageLabels: Invalid page labels.`)):this._pageLabels=null;for(let Y=0,q=this._pages.length;Y0)this._setScaleUpdatePages(q,F,Y,!1);else{const G=this._pages[this._currentPageNumber-1];if(!G)return;const re=this.isInPresentationMode||this.removePageBorders;let ae=re?0:B.SCROLLBAR_PADDING,Me=re?0:B.VERTICAL_PADDING;!re&&this._isScrollModeHorizontal&&([ae,Me]=[Me,ae]);const De=(this.container.clientWidth-ae)/G.width*G.scale/this._pageWidthScaleFactor,ye=(this.container.clientHeight-Me)/G.height*G.scale;switch(F){case"page-actual":q=1;break;case"page-width":q=De;break;case"page-height":q=ye;break;case"page-fit":q=Math.min(De,ye);break;case"auto":const xe=(0,B.isPortraitOrientation)(G)?De:Math.min(ye,De);q=Math.min(B.MAX_AUTO_SCALE,xe);break;default:return void console.error(`${this._name}._setScale: "${F}" is an unknown zoom value.`)}this._setScaleUpdatePages(q,F,Y,!0)}}_resetCurrentPageView(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),this._scrollIntoView({pageDiv:this._pages[this._currentPageNumber-1].div})}pageLabelToPageNumber(F){if(!this._pageLabels)return null;const Y=this._pageLabels.indexOf(F);return Y<0?null:Y+1}scrollPageIntoView({pageNumber:F,destArray:Y=null,allowNegativeOffset:q=!1,ignoreDestinationZoom:G=!1}){if(!this.pdfDocument)return;const re=Number.isInteger(F)&&this._pages[F-1];if(!re)return void console.error(`${this._name}.scrollPageIntoView: "${F}" is not a valid pageNumber parameter.`);if(this.isInPresentationMode||!Y)return void this._setCurrentPageNumber(F,!0);let xe,ve,ae=0,Me=0,De=0,ye=0;const de=re.rotation%180!=0,ie=(de?re.height:re.width)/re.scale/B.CSS_UNITS,S=(de?re.width:re.height)/re.scale/B.CSS_UNITS;let se=0;switch(Y[1].name){case"XYZ":ae=Y[2],Me=Y[3],se=Y[4],ae=null!==ae?ae:0,Me=null!==Me?Me:S;break;case"Fit":case"FitB":se="page-fit";break;case"FitH":case"FitBH":Me=Y[2],se="page-width",null===Me&&this._location?(ae=this._location.left,Me=this._location.top):"number"!=typeof Me&&(Me=S);break;case"FitV":case"FitBV":ae=Y[2],De=ie,ye=S,se="page-height";break;case"FitR":ae=Y[2],Me=Y[3],De=Y[4]-ae,ye=Y[5]-Me,xe=(this.container.clientWidth-(this.removePageBorders?0:B.SCROLLBAR_PADDING))/De/B.CSS_UNITS,ve=(this.container.clientHeight-(this.removePageBorders?0:B.VERTICAL_PADDING))/ye/B.CSS_UNITS,se=Math.min(Math.abs(xe),Math.abs(ve));break;default:return void console.error(`${this._name}.scrollPageIntoView: "${Y[1].name}" is not a valid destination type.`)}if(G||(se&&se!==this._currentScale?this.currentScaleValue=se:this._currentScale===B.UNKNOWN_SCALE&&(this.currentScaleValue=B.DEFAULT_SCALE_VALUE)),"page-fit"===se&&!Y[4])return void this._scrollIntoView({pageDiv:re.div,pageNumber:F});const ue=[re.viewport.convertToViewportPoint(ae,Me),re.viewport.convertToViewportPoint(ae+De,Me+ye)];let le=Math.min(ue[0][0],ue[1][0]),me=Math.min(ue[0][1],ue[1][1]);q||(le=Math.max(le,0),me=Math.max(me,0)),this._scrollIntoView({pageDiv:re.div,pageSpot:{left:le,top:me},pageNumber:F})}_updateLocation(F){const Y=this._currentScale,q=this._currentScaleValue,G=parseFloat(q)===Y?Math.round(1e4*Y)/100:q,re=F.id;let ae="#page="+re;ae+="&zoom="+G;const De=this.container,ye=this._pages[re-1].getPagePoint(De.scrollLeft-F.x,De.scrollTop-F.y),xe=Math.round(ye[0]),ve=Math.round(ye[1]);ae+=","+xe+","+ve,this._location={pageNumber:re,scale:G,top:ve,left:xe,rotation:this._pagesRotation,pdfOpenParams:ae}}_updateHelper(F){throw new Error("Not implemented: _updateHelper")}update(){const F=this._getVisiblePages(),Y=F.views,q=Y.length;if(0===q)return;const G=Math.max(10,2*q+1);this._buffer.resize(G,Y),this.renderingQueue.renderHighestPriority(F),this._updateHelper(Y),this._updateLocation(F.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(F){return this.container.contains(F)}focus(){this.container.focus()}get _isScrollModeHorizontal(){return!this.isInPresentationMode&&this._scrollMode===B.ScrollMode.HORIZONTAL}get _isContainerRtl(){return"rtl"===getComputedStyle(this.container).direction}get isInPresentationMode(){return this.presentationModeState===B.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===B.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}_getCurrentVisiblePage(){if(!this.pagesCount)return{views:[]};const F=this._pages[this._currentPageNumber-1],Y=F.div,q={id:F.id,x:Y.offsetLeft+Y.clientLeft,y:Y.offsetTop+Y.clientTop,view:F};return{first:q,last:q,views:[q]}}_getVisiblePages(){return(0,B.getVisibleElements)({scrollEl:this.container,views:this._pages,sortByVisibility:!0,horizontal:this._isScrollModeHorizontal,rtl:this._isScrollModeHorizontal&&this._isContainerRtl})}isPageVisible(F){return!!this.pdfDocument&&(Number.isInteger(F)&&F>0&&F<=this.pagesCount?this._getVisiblePages().views.some(function(Y){return Y.id===F}):(console.error(`${this._name}.isPageVisible: "${F}" is not a valid page.`),!1))}isPageCached(F){if(!this.pdfDocument||!this._buffer)return!1;if(!(Number.isInteger(F)&&F>0&&F<=this.pagesCount))return console.error(`${this._name}.isPageCached: "${F}" is not a valid page.`),!1;const Y=this._pages[F-1];return!!Y&&this._buffer.has(Y)}cleanup(){for(let F=0,Y=this._pages.length;F(F.pdfPage||F.setPdfPage(q),this._pagesRequests.delete(F),q)).catch(q=>{console.error("Unable to get page for page view",q),this._pagesRequests.delete(F)});return this._pagesRequests.set(F,Y),Y}forceRendering(F){const Y=F||this._getVisiblePages(),G=this.renderingQueue.getHighestPriority(Y,this._pages,this._isScrollModeHorizontal?this.scroll.right:this.scroll.down);return!!G&&(this._ensurePdfPageLoaded(G).then(()=>{this.renderingQueue.renderView(G)}),!0)}createTextLayerBuilder(F,Y,q,G=!1,re){return new fe.TextLayerBuilder({textLayerDiv:F,eventBus:re,pageIndex:Y,viewport:q,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&G})}createAnnotationLayerBuilder(F,Y,q=null,G="",re=!1,ae=B.NullL10n,Me=!1,De=null,ye=null){return new X.AnnotationLayerBuilder({pageDiv:F,pdfPage:Y,annotationStorage:q||this.pdfDocument?.annotationStorage,imageResourcesPath:G,renderInteractiveForms:re,linkService:this.linkService,downloadManager:this.downloadManager,l10n:ae,enableScripting:Me,hasJSActionsPromise:De||this.pdfDocument?.hasJSActions(),mouseState:ye||this._mouseState})}get hasEqualPageSizes(){const F=this._pages[0];for(let Y=1,q=this._pages.length;Y=ye;De--){const ve=re[De+1]-1;if(re[De]ve)return ve-F}if(Y){const De=re[0];if(DeF)return De-F+1}break}break}case B.ScrollMode.HORIZONTAL:break;case B.ScrollMode.VERTICAL:{if(this._spreadMode===B.SpreadMode.NONE)break;const q=this._spreadMode-1;if(Y&&F%2!==q)break;if(!Y&&F%2===q)break;const{views:G}=this._getVisiblePages(),re=Y?F-1:F+1;for(const{id:ae,percent:Me,widthPercent:De}of G)if(ae===re){if(Me>0&&100===De)return 2;break}break}}return 1}nextPage(){const F=this._currentPageNumber,Y=this.pagesCount;if(F>=Y)return!1;const q=this._getPageAdvance(F,!1)||1;return this.currentPageNumber=Math.min(F+q,Y),!0}previousPage(){const F=this._currentPageNumber;if(F<=1)return!1;const Y=this._getPageAdvance(F,!0)||1;return this.currentPageNumber=Math.max(F-Y,1),!0}initializeScriptingEvents(){if(!this.enableScripting||this._pageOpenPendingSet)return;const F=this.eventBus,Y=this._pageOpenPendingSet=new Set,q=this._scriptingEvents||(this._scriptingEvents=Object.create(null)),G=ae=>{Y.has(ae)||F.dispatch("pageclose",{source:this,pageNumber:ae})},re=ae=>{const Me=this._pages[ae-1];Me?.renderingState===ce.RenderingStates.FINISHED?(Y.delete(ae),F.dispatch("pageopen",{source:this,pageNumber:ae,actionsPromise:Me.pdfPage?.getJSActions()})):Y.add(ae)};q.onPageChanging=({pageNumber:ae,previous:Me})=>{ae!==Me&&(G(Me),re(ae))},F._on("pagechanging",q.onPageChanging),q.onPageRendered=({pageNumber:ae})=>{!Y.has(ae)||ae===this._currentPageNumber&&re(ae)},F._on("pagerendered",q.onPageRendered),q.onPagesDestroy=()=>{G(this._currentPageNumber)},F._on("pagesdestroy",q.onPagesDestroy),re(this._currentPageNumber)}_resetScriptingEvents(){if(!this.enableScripting||!this._pageOpenPendingSet)return;const F=this.eventBus,Y=this._scriptingEvents;F._off("pagechanging",Y.onPageChanging),Y.onPageChanging=null,F._off("pagerendered",Y.onPageRendered),Y.onPageRendered=null,F._off("pagesdestroy",Y.onPagesDestroy),Y.onPagesDestroy=null,this._pageOpenPendingSet=null}}M.BaseViewer=K},(D,M,A)=>{Object.defineProperty(M,"__esModule",{value:!0}),M.PDFViewer=void 0;var P=A(3),B=A(16),ce=A(2);M.PDFViewer=class X extends B.BaseViewer{get _viewerElement(){return(0,ce.shadow)(this,"_viewerElement",this.viewer)}_scrollIntoView({pageDiv:Q,pageSpot:fe=null,pageNumber:j=null}){if(!fe&&!this.isInPresentationMode){const J=Q.offsetLeft+Q.clientLeft,te=J+Q.clientWidth,{scrollLeft:K,clientWidth:O}=this.container;(this._isScrollModeHorizontal||JK+O)&&(fe={left:0,top:0})}super._scrollIntoView({pageDiv:Q,pageSpot:fe,pageNumber:j})}_getVisiblePages(){return this.isInPresentationMode?this._getCurrentVisiblePage():super._getVisiblePages()}_updateHelper(Q){if(this.isInPresentationMode)return;let fe=this._currentPageNumber,j=!1;for(const J of Q){if(J.percent<100)break;if(J.id===fe&&this._scrollMode===P.ScrollMode.VERTICAL&&this._spreadMode===P.SpreadMode.NONE){j=!0;break}}j||(fe=Q[0].id),this._setCurrentPageNumber(fe)}}}],x={};return function C(D){if(x[D])return x[D].exports;var M=x[D]={exports:{}};return _[D](M,M.exports,C),M.exports}(0)})()},2402:function(Te){Te.exports=function(){"use strict";function I(j,J,te,K,O){!function F(Y,q,G,re,ae){for(;re>G;){if(re-G>600){var Me=re-G+1,De=q-G+1,ye=Math.log(Me),xe=.5*Math.exp(2*ye/3),ve=.5*Math.sqrt(ye*xe*(Me-xe)/Me)*(De-Me/2<0?-1:1);F(Y,q,Math.max(G,Math.floor(q-De*xe/Me+ve)),Math.min(re,Math.floor(q+(Me-De)*xe/Me+ve)),ae)}var S=Y[q],se=G,ue=re;for(V(Y,G,q),ae(Y[re],S)>0&&V(Y,G,re);se0;)ue--}0===ae(Y[G],S)?V(Y,G,ue):V(Y,++ue,re),ue<=q&&(G=ue+1),q<=ue&&(re=ue-1)}}(j,J,te||0,K||j.length-1,O||b)}function V(j,J,te){var K=j[J];j[J]=j[te],j[te]=K}function b(j,J){return jJ?1:0}var _=function(j){void 0===j&&(j=9),this._maxEntries=Math.max(4,j),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function x(j,J,te){if(!te)return J.indexOf(j);for(var K=0;K=j.minX&&J.maxY>=j.minY}function Q(j){return{children:j,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function fe(j,J,te,K,O){for(var F=[J,te];F.length;)if(!((te=F.pop())-(J=F.pop())<=K)){var Y=J+Math.ceil((te-J)/K/2)*K;I(j,Y,J,te,O),F.push(J,Y,Y,te)}}return _.prototype.all=function(){return this._all(this.data,[])},_.prototype.search=function(j){var J=this.data,te=[];if(!ne(j,J))return te;for(var K=this.toBBox,O=[];J;){for(var F=0;F=0&&O[J].children.length>this._maxEntries;)this._split(O,J),J--;this._adjustParentBBoxes(K,O,J)},_.prototype._split=function(j,J){var te=j[J],K=te.children.length,O=this._minEntries;this._chooseSplitAxis(te,O,K);var F=this._chooseSplitIndex(te,O,K),Y=Q(te.children.splice(F,te.children.length-F));Y.height=te.height,Y.leaf=te.leaf,C(te,this.toBBox),C(Y,this.toBBox),J?j[J-1].children.push(Y):this._splitRoot(te,Y)},_.prototype._splitRoot=function(j,J){this.data=Q([j,J]),this.data.height=j.height+1,this.data.leaf=!1,C(this.data,this.toBBox)},_.prototype._chooseSplitIndex=function(j,J,te){for(var K,O,F,Y,q,G,re,ae=1/0,Me=1/0,De=J;De<=te-J;De++){var ye=D(j,0,De,this.toBBox),xe=D(j,De,te,this.toBBox),ve=(O=ye,F=xe,void 0,void 0,void 0,void 0,Y=Math.max(O.minX,F.minX),q=Math.max(O.minY,F.minY),G=Math.min(O.maxX,F.maxX),re=Math.min(O.maxY,F.maxY),Math.max(0,G-Y)*Math.max(0,re-q)),de=B(ye)+B(xe);ve=J;ae--){var Me=j.children[ae];M(Y,j.leaf?O(Me):Me),q+=ce(Y)}return q},_.prototype._adjustParentBBoxes=function(j,J,te){for(var K=te;K>=0;K--)M(J[K],j)},_.prototype._condense=function(j){for(var J=j.length-1,te=void 0;J>=0;J--)0===j[J].children.length?J>0?(te=j[J-1].children).splice(te.indexOf(j[J]),1):this.clear():C(j[J],this.toBBox)},_}()},6700:(Te,I,V)=>{var b={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":9635,"./sk.js":9635,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function _(C){var D=x(C);return V(D)}function x(C){if(!V.o(b,C)){var D=new Error("Cannot find module '"+C+"'");throw D.code="MODULE_NOT_FOUND",D}return b[C]}_.keys=function(){return Object.keys(b)},_.resolve=x,Te.exports=_,_.id=6700},3414:()=>{},172:()=>{},2001:()=>{},3779:()=>{},6558:()=>{},2258:()=>{},7156:Te=>{function I(b,_,x,C,D,M,A){try{var P=b[M](A),B=P.value}catch(ce){return void x(ce)}P.done?_(B):Promise.resolve(B).then(C,D)}Te.exports=function V(b){return function(){var _=this,x=arguments;return new Promise(function(C,D){var M=b.apply(_,x);function A(B){I(M,C,D,A,P,"next",B)}function P(B){I(M,C,D,A,P,"throw",B)}A(void 0)})}},Te.exports.__esModule=!0,Te.exports.default=Te.exports}},Te=>{Te(Te.s=8577)}]);